a constraint-based approach for plan management in...
TRANSCRIPT
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Constraint-Based Approach forPlan Management in Intelligent Environments
Federico Pecora and Marcello Cirillo
Center for Applied Autonomous Sensor Systems
Örebro University, SWEDEN
<name>.<surname>@oru.se
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 1 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Outline
1 Motivation: Contextualized Proactive Services for HumanAssistance in Smart Environments
2 A Solution Based on Constraint ReasoningRepresentationReasoningExample Run in the PEIS-Home
3 Conclusions and On-Going Work
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 2 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Motivation: Contextualized Proactive Services for Human Assistance in Smart Environments
The PEIS-Home TestbedA prototypical sensor- andactuator-rich home environment
Grounded on an “ecological” visionof robotics [Saffiotti et al., 2008]
Each individual in the ecology is aPhysically Embedded IntelligentSystem (PEIS)
The PEIS Home
The PEIS-Home includes a number ofdeployed PEIS
automated refrigerator w/ gripperautonomous moving tableRFID-based object trackingartificial noses, RFID-tagged floor, . . .
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 3 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Motivation: Contextualized Proactive Services for Human Assistance in Smart Environments
Synthesizing Intelligent Services in the PEIS-Home
Activity recognition: the ability of the intelligent system todeduce temporally contextualized knowledge regarding the stateof the user
based on heterogeneous sensor readings and previously inferredknowledge
Planning and Execution: the ability to proactively plan andexecute services that provide contextualized assistance
based on the results of activity recognition
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 4 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Motivation: Contextualized Proactive Services for Human Assistance in Smart Environments
Synthesizing Intelligent Services in the PEIS-Home
Activity recognition: the ability of the intelligent system todeduce temporally contextualized knowledge regarding the stateof the user
based on heterogeneous sensor readings and previously inferredknowledge
Planning and Execution: the ability to proactively plan andexecute services that provide contextualized assistance
based on the results of activity recognition
We address both issues through a constraint-based representation and temporal reasoningtechniques
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 4 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Constraint Reasoning for Domestic Plan Management
The SAM Activity Management architecture: aconstraint-based approach for activity recognition, planning andexecution in PEIS Ecologies
Grounded on the OMPS framework for constraint-basedtemporal reasoning [Fratini et al., 2008]
developed for ESA to improve the cost-effectiveness and flexibilityof mission planning support tool developmentused within Space Mission Planning domain [Cesta et al., 2008]and other domains [Cesta and Fratini, 2008]
Grounded on the notions of component and timeline
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 5 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Space Mission Planning in OMPS
Custom component(a-priori model of
physical phenomena)
Custom component(cons. resource)
State Variable(timed automaton)
State Variable(timed automaton)
State Variable(timed automaton)
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 6 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Domestic Plan Management in SAMSensors, actuators and human modeled as state variablesAssertions on values of state variables and temporalconstraints used to model
sensor readings from the real environment, deduced useractivities and plans for real world actuators
A Sensor
An actuator
Human
v1
v3
v6v5
v2
v4 EQUALSBEFORE [6,∞)
AFTER [0,∞)
AFT
ER
[0,∞
)
CONTAINS [0,∞)[5,22]
BEFORE [0,∞)
Custom component
of sensor readings)(real-time representation
Custom component
monitoring of real actuator)(command dispatch & exec.
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 7 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Representation
Domestic Plan Management in SAM: Representation
A domain theory modelstemporal relations that existbetween
sensor readingsinferred human activitiesactuator commands
Expressed as sets oftemporal constraintsbetween state variable values
Human : SleepingEQUALS Lighting : offDURING [0,∞)[0,∞) Bed : occupied
Human : EatingCONTAINS [0,∞)[0,∞) KTRfid : dishDURING [0,∞)[0,∞) Location : table
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 8 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Representation
Domestic Plan Management in SAM: Reasoning
A domain theory modelstemporal relations that existbetween
sensor readingsinferred human activitiesactuator commands
Expressed as sets oftemporal constraintsbetween state variable values
occup. off
Human
Bed Lighting
EQUALSDURING [0,∞)[0,∞)
Sleeping
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 9 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Reasoning
Domestic Plan Management in SAM: Reasoning
A domain theory modelstemporal relations that existbetween
sensor readingsinferred human activitiesactuator commands
Expressed as sets oftemporal constraintsbetween state variable values
time
time
Bed
time
4510 40
Lighting
15
Human
occup.
off
Sleeping
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 9 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Reasoning
Domestic Plan Management in SAM: Reasoning
MovingTableHuman
PlaceDrink
Fridge
DeliverDrink
UndockFridge
DockFridge
MET−BY
MEETS
Close
Open
Sensors
RelaxingSTARTS
AFTER[0,
∞)
MET-
BY
BEFORE[0,
∞)
Both activity recognition and actuationrequirements are modeled as temporalrelations
Human : Relaxing<requirements for recognition>STARTS MovingTable : DeliverDrink
MovingTable : DockFridgeMET-BY Fridge : Open
MovingTable : UndockFridgeBEFORE [0,∞) Fridge : Close
MovingTable : DeliverDrinkAFTER [0,∞) Fridge : PlaceDrink
Fridge : PlaceDrinkMET-BY MovingTable : DockFridgeMEETS MovingTable : UnDockFridge
Fridge : OpenMET-BY Fridge : GraspDrink
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 10 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Example Run in the PEIS-Home
Example Run
SAM is interfaced with five sensors in the PEIS-Homestereo camera for person localization
pressure sensor under the bed
RFID tag reader in the kitchen table and a number of tagged kitchen
utensils
stove state sensor
luminosity sensor next to the bed
Two actuators are also presentautonomous mobile table that can dock the fridge
actuated fridge that can grasp a drink and place it on the docked table
A human subject carries out a number of actions in thePEIS-Home involving the use of the sensors
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 11 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
A Solution Based on Constraint Reasoning
Example Run in the PEIS-Home
Example Run
Plan Management in the PEIS-Home
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 12 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Conclusions and On-Going Work
Conclusions and On-Going Work
SAM leverages temporal constraint reasoning to performconcurrent activity reconition, planning and execution insensor/actuator-rich environments
Single formalism for recognition and actuation
Fully integrated into real environment (PEIS-Home)
Designed to satisfy requirements posed by operating in arealistic setting [Ullberg et al., 2009]
scalability“reactivity” while ensuring correctness
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 13 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Conclusions and On-Going Work
Thank You!
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 14 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
Conclusions and On-Going Work
Future Work: Comparing/Integrating with Other Approaches
A similar knowledge-based approach is presented in[Dousson et al., 1993], in which
synchronizations ∼ chronicles, temporal propagation used todetermine when sensory events support chroniclesinference is event driven, each chronicle is a constraint networkscalability issues addressed differently (curtailing the number ofchronicles rather than search in the DN)
Combining complementary strengths of (a) knowledge-driven and (b)statistical/data-driven approaches
(a) [+] useful when criteria for recognizing activities are given bycrisp rules that are clearly identifiable /[−] require modeling from first principles
(b) [+] can learn unknown requirements for activity recognition /[−] suffer from eccessive domain dependence
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 15 / 15
A Constraint-Based Approach for Plan Management in Intelligent Environments
References
References
Cesta, A. and Fratini, S. (2008).
The Timeline Representation Framework as a Planning and Scheduling Software Development Environment.In Proc. of 27th Workshop of the UK Planning and Scheduling SIG.
Cesta, A., Fratini, S., Oddi, A., and Pecora, F. (2008).
APSI Case#1: Pre-planning Science Operations in Mars Express.In Proc. of iSAIRAS-08.
Dousson, C., Gaborit, P., and Ghallab, M. (1993).
Situation recognition: Representation and algorithms.In Proc. of 13th Int. Joint Conf. on Artificial Intelligence (IJCAI), pages 166–174.
Fratini, S., Pecora, F., and Cesta, A. (2008).
Unifying Planning and Scheduling as Timelines in a Component-Based Perspective.Archives of Control Sciences, 18(2):231–271.
Saffiotti, A., Broxvall, M., Gritti, M., LeBlanc, K., Lundh, R., J., R., Seo, B., and Cho, Y. (2008).
The PEIS-ecology project: vision and results.In Proc of the IEEE/RSJ Int Conf on Intelligent Robots and Systems (IROS), Nice, France.
Ullberg, J., Loutfi, A., and Pecora, F. (2009).
Towards Continuous Activity Monitoring with Temporal Constraints.In Proc. of the Workshop on Planning and Plan Execution for Real-World Systems at ICAPS09.
F. Pecora, M. Cirillo – “SPARK: Scheduling and Planning Applications woRKshop” at ICAPS09, Sep 20th 2009 15 / 15