SlideShare a Scribd company logo
Self-adaptive Software
            An Introduction


                Sagar Sen
Scientist, Ecole des Mines, Nantes, France
From?


  Ecole des Mines, Nantes




          City of Nantes
  (Rivers: Erdre, Loire|Population: 300,000)
Three real stories...
The Gardner Heist in
      Boston


       1. In 1990, two men dressed as police officers broke
       into the Isabella Stewart Gardner Museum in Boston

       2. Stole a Vermeer, five Degas and three Rembrandts.

       3. Estimated cost : $500 million only /-!

       4. OBSERVATION: Total failure of motion sensor and
       video surveillance systems!
An Analysis...

                                    Software

1. Video surveillance software system did not capture clear images in the darkness of the
night!

2. Security guard was gagged and tied up! Software requires human interaction!

3. No automatic communication to police! The thieves had all night to displace the art!
Software did not adapt to the situation that the guard was in distress!

4. Reward $5 million!
The Ariane V501 Disaster
•   4 juin, 1996, H0 at 08h35mn

•   The Ariane 501 launcher tilts brutally and is subject to extreme aerodynamic
    forces.

•   Self-destruct at H0+40sec.

•   Cost: 500 million dollars!
Qu'est-il arrivé?
Overflow in BOTH (main+redundant) Inertial
            Reference Systems
    Sign (1) Exp (11)               Mantissa (52)              0


      63   62         52 51                                    0
                                           CAST


                Sign (1)      Value (15)                0


                 15     14                              0

                                For example,
                   32769.445 leads to overflow in signed Int
The Earthquake in
                   Japan
•   March 2011, Tohoku Earthquake close to Japan, Cost $235 billion

•   Number of crisis management services were engaged in parallel

•   Communication software helps engage ambulances, fire-fighters,
    medics, police...
Lessons learned...
Software is fragile! (Ariane!)
Software must adapt to context
       (Gardner Heist)
Software communicates with
unreliable distributed services
Towards a Solution...
Self-adaptive Software
Software should adapt at
        runtime
Architectural Elements in Self-
      adaptive Software
Services/Components
Software Function as a Service
                       Biological Analogy




 Lifecyle of an
                  Interacting cells in the body
 OSGi service
                     with specific function
The Notion of a Dynamic
               Service/Module
1. A software module or service that can be unloaded/loaded at
runtime. (Open heart surgery)

2. Each module has its own life-cycle, memory space

3. Modules have well-defined interfaces and communicate using
messages

4. Stopping/replacing a module need not stop the software system!

5. Available inherently in dynamic languages such as Python

6. Implemented in statically typed languages such as JAVA under the
name Open Service Gateway Interface (OSGi)
Service Registry
Service Registry

             msg
           publishes       subscribes

Provider                   delivers Consumer

                             msg
Service Registry
               Biological Analogy




                            Gene Expression
                                    vs.
                         Subscribing to and Using
Service Registry vs. DNA         a Service
Context Manager
Context Manager




     Sensors         Monitoring Metrics
                           (self)

               Context
               Manager

[NightFall, IntrusionDetected, Low Memory]
         Context Configuration
Context Manager
 Biological Analogy




                      Night Fall!
Adaptation Planner
            Context Configuration
    [NightFall, IntrusionDetected, Low Memory]


                  Adaptation
                   Planner     Set of Rules


[Infrared Camera, Face Detection, GarbageCollector]
             System Configuration
Adaptation Planner
                    Biological Analogy



External/Internal                         Action
    Stimulus                             decision
Component/Service Executor

[Infrared Camera, Face Detection, GarbageCollector]
             System Configuration
            1           2
                     subscribe
      Component
       Executor         3
                      service
           4
           execute
Component Executor
   Biological Analogy




    Taking Action!
Tekio: A Self-adaptive Vision System




     With Santiago Hurtado, Colombia
Tekio: A Self-adaptive
   Vision System
Variability inTekio
Example Execution




Intrusion Detection   Face Detection
Simple Demo
Is Tekio good enough?
Experimental
              Questions

Q1: Is Self-adaptation in Tekio fast?


Q2: Is Self-adaptation in Tekio robust?
Experimental Setup


Measurements
1. Throughput in Frames per second (FPS)
2. Memory usage in %
3. CPU usage in %
4. Settling time in seconds (time required to execute normally
after adaptation)
Machine: iMac with the Intel Core i3 Processor of 3.06GHz and 4GB 1333 MHz
DDR3.
Comparison of Tekio to
 Static Implementation
Stress Testing
Lessons Learned?
Lessons Learned
1. Modern software must adapt to context. Eg. Gmail docs on
context such as desktop, mobile phone, geography, language,
local ads.

2. Building a self-adaptive system relies of services that can be
loaded dynamically.

3. The adaptation planner is a key component that maps
context to a system configuration based on rules.

4. Self-adaptive systems need to be performant compared to
traditional software. As seen in Tekio.
Thank you.

More Related Content

PPT
Complex Adaptive Systems Theory
PPT
Hausi Müller - Towards Self-Adaptive Software-Intensive Systems
PDF
Model Manipulation Using Embedded DSLs in Scala
PDF
A Self-Adaptive Evolutionary Negative Selection Approach for Anom
PDF
Self-Adaptive Federated Authorisation Infrastructures
PDF
Unisys Service Oriented Self Adaptive Systems
PDF
ACTRESS: Domain-Specific Modeling of Self-Adaptive Software Architectures
PDF
Intensive Surrogate Model Exploitation in Self-adaptive Surrogate-assisted CM...
Complex Adaptive Systems Theory
Hausi Müller - Towards Self-Adaptive Software-Intensive Systems
Model Manipulation Using Embedded DSLs in Scala
A Self-Adaptive Evolutionary Negative Selection Approach for Anom
Self-Adaptive Federated Authorisation Infrastructures
Unisys Service Oriented Self Adaptive Systems
ACTRESS: Domain-Specific Modeling of Self-Adaptive Software Architectures
Intensive Surrogate Model Exploitation in Self-adaptive Surrogate-assisted CM...

Viewers also liked (19)

PDF
PhD Thesis Defense
PDF
Domain specific languages and Scala
PDF
A Self-Adaptive Deployment Framework for Service-Oriented Systems
PDF
Do Search-Based Approaches Improve the Design of Self-Adaptive Systems ? A Co...
PDF
Architectural Design Spaces for Feedback Control in Self-Adaptive Systems Con...
PPTX
Self-Adaptive SLA-Driven Capacity Management for Internet Services
PPT
RFID Technology
PPT
RFID Basics
PDF
201209 An Introduction to Building Affective-Driven Self-Adaptive Software
PPT
Rfid presentation
PPT
RFID and its applications
PPTX
Rfid ppt 8th sem
TXT
PPTX
The Building Blocks of Great Video
PDF
Ushul Firaq wal Adyaan wal Madzaahib Al Fikriyah (Ar)
PDF
Thi cong coc khoan nhoi va coc barret pgs.ts le kieu
DOCX
Report..costing..
PPT
Learning organization may2010
PDF
PhD Thesis Defense
Domain specific languages and Scala
A Self-Adaptive Deployment Framework for Service-Oriented Systems
Do Search-Based Approaches Improve the Design of Self-Adaptive Systems ? A Co...
Architectural Design Spaces for Feedback Control in Self-Adaptive Systems Con...
Self-Adaptive SLA-Driven Capacity Management for Internet Services
RFID Technology
RFID Basics
201209 An Introduction to Building Affective-Driven Self-Adaptive Software
Rfid presentation
RFID and its applications
Rfid ppt 8th sem
The Building Blocks of Great Video
Ushul Firaq wal Adyaan wal Madzaahib Al Fikriyah (Ar)
Thi cong coc khoan nhoi va coc barret pgs.ts le kieu
Report..costing..
Learning organization may2010
Ad

Similar to Self-adaptive Systems : An Introduction (20)

PDF
S-CUBE LP: Techniques for design for adaptation
PDF
A white-box perspective on self-adaptation and self-awareness
PDF
A White-box Perspective on Self-Adaptation and Self-Awareness (with a focus o...
PPTX
MICE: Monitoring and modelIng of Context Evolution
PDF
RCIM 2008 - - ALaRI
DOC
Adaptive Computing Seminar Report - Suyog Potdar
PPT
Is It API Time For A New Strategy?
PDF
Automated Planning as a Semantic Technology
PPT
Evolving Future Information Systems: Challenges, Perspectives and Applications
PPT
Agents In An Exponential World Foster
PDF
A4WSN: an Architecting environment 4 Wireless Sensor Networks
PPT
Socio Technical Systems in Software Engineering SE2
KEY
High-Confidence Ubiquitous Computing Systems (invited talk at ISHCS 2011)
PPTX
A new approach for converging LVC simulation architectures
PDF
Modern Software Architectures - Overview
KEY
Switch! Recommending Artifacts Needed Next Based on Personal and Shared Context
PDF
Bertenthal
PDF
Autonomic Computing: Vision or Reality - Presentation
PDF
Open GeoSocial API
S-CUBE LP: Techniques for design for adaptation
A white-box perspective on self-adaptation and self-awareness
A White-box Perspective on Self-Adaptation and Self-Awareness (with a focus o...
MICE: Monitoring and modelIng of Context Evolution
RCIM 2008 - - ALaRI
Adaptive Computing Seminar Report - Suyog Potdar
Is It API Time For A New Strategy?
Automated Planning as a Semantic Technology
Evolving Future Information Systems: Challenges, Perspectives and Applications
Agents In An Exponential World Foster
A4WSN: an Architecting environment 4 Wireless Sensor Networks
Socio Technical Systems in Software Engineering SE2
High-Confidence Ubiquitous Computing Systems (invited talk at ISHCS 2011)
A new approach for converging LVC simulation architectures
Modern Software Architectures - Overview
Switch! Recommending Artifacts Needed Next Based on Personal and Shared Context
Bertenthal
Autonomic Computing: Vision or Reality - Presentation
Open GeoSocial API
Ad

Recently uploaded (20)

PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation theory and applications.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Electronic commerce courselecture one. Pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation theory and applications.pdf
MYSQL Presentation for SQL database connectivity
Per capita expenditure prediction using model stacking based on satellite ima...
Spectroscopy.pptx food analysis technology
Electronic commerce courselecture one. Pdf
The AUB Centre for AI in Media Proposal.docx
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Building Integrated photovoltaic BIPV_UPV.pdf

Self-adaptive Systems : An Introduction

  • 1. Self-adaptive Software An Introduction Sagar Sen Scientist, Ecole des Mines, Nantes, France
  • 2. From? Ecole des Mines, Nantes City of Nantes (Rivers: Erdre, Loire|Population: 300,000)
  • 4. The Gardner Heist in Boston 1. In 1990, two men dressed as police officers broke into the Isabella Stewart Gardner Museum in Boston 2. Stole a Vermeer, five Degas and three Rembrandts. 3. Estimated cost : $500 million only /-! 4. OBSERVATION: Total failure of motion sensor and video surveillance systems!
  • 5. An Analysis... Software 1. Video surveillance software system did not capture clear images in the darkness of the night! 2. Security guard was gagged and tied up! Software requires human interaction! 3. No automatic communication to police! The thieves had all night to displace the art! Software did not adapt to the situation that the guard was in distress! 4. Reward $5 million!
  • 6. The Ariane V501 Disaster • 4 juin, 1996, H0 at 08h35mn • The Ariane 501 launcher tilts brutally and is subject to extreme aerodynamic forces. • Self-destruct at H0+40sec. • Cost: 500 million dollars!
  • 7. Qu'est-il arrivé? Overflow in BOTH (main+redundant) Inertial Reference Systems Sign (1) Exp (11) Mantissa (52) 0 63 62 52 51 0 CAST Sign (1) Value (15) 0 15 14 0 For example, 32769.445 leads to overflow in signed Int
  • 8. The Earthquake in Japan • March 2011, Tohoku Earthquake close to Japan, Cost $235 billion • Number of crisis management services were engaged in parallel • Communication software helps engage ambulances, fire-fighters, medics, police...
  • 10. Software is fragile! (Ariane!)
  • 11. Software must adapt to context (Gardner Heist)
  • 14. Software should adapt at runtime
  • 15. Architectural Elements in Self- adaptive Software
  • 17. Software Function as a Service Biological Analogy Lifecyle of an Interacting cells in the body OSGi service with specific function
  • 18. The Notion of a Dynamic Service/Module 1. A software module or service that can be unloaded/loaded at runtime. (Open heart surgery) 2. Each module has its own life-cycle, memory space 3. Modules have well-defined interfaces and communicate using messages 4. Stopping/replacing a module need not stop the software system! 5. Available inherently in dynamic languages such as Python 6. Implemented in statically typed languages such as JAVA under the name Open Service Gateway Interface (OSGi)
  • 20. Service Registry msg publishes subscribes Provider delivers Consumer msg
  • 21. Service Registry Biological Analogy Gene Expression vs. Subscribing to and Using Service Registry vs. DNA a Service
  • 23. Context Manager Sensors Monitoring Metrics (self) Context Manager [NightFall, IntrusionDetected, Low Memory] Context Configuration
  • 24. Context Manager Biological Analogy Night Fall!
  • 25. Adaptation Planner Context Configuration [NightFall, IntrusionDetected, Low Memory] Adaptation Planner Set of Rules [Infrared Camera, Face Detection, GarbageCollector] System Configuration
  • 26. Adaptation Planner Biological Analogy External/Internal Action Stimulus decision
  • 27. Component/Service Executor [Infrared Camera, Face Detection, GarbageCollector] System Configuration 1 2 subscribe Component Executor 3 service 4 execute
  • 28. Component Executor Biological Analogy Taking Action!
  • 29. Tekio: A Self-adaptive Vision System With Santiago Hurtado, Colombia
  • 30. Tekio: A Self-adaptive Vision System
  • 34. Is Tekio good enough?
  • 35. Experimental Questions Q1: Is Self-adaptation in Tekio fast? Q2: Is Self-adaptation in Tekio robust?
  • 36. Experimental Setup Measurements 1. Throughput in Frames per second (FPS) 2. Memory usage in % 3. CPU usage in % 4. Settling time in seconds (time required to execute normally after adaptation) Machine: iMac with the Intel Core i3 Processor of 3.06GHz and 4GB 1333 MHz DDR3.
  • 37. Comparison of Tekio to Static Implementation
  • 40. Lessons Learned 1. Modern software must adapt to context. Eg. Gmail docs on context such as desktop, mobile phone, geography, language, local ads. 2. Building a self-adaptive system relies of services that can be loaded dynamically. 3. The adaptation planner is a key component that maps context to a system configuration based on rules. 4. Self-adaptive systems need to be performant compared to traditional software. As seen in Tekio.