run time composite event recognition
play

Run-Time Composite Event Recognition Alexander Artikis, Marek Sergot - PowerPoint PPT Presentation

Run-Time Composite Event Recognition Alexander Artikis, Marek Sergot and George Paliouras Institute of Informatics & Telecommunications, NCSR Demokritos, Greece Department of Computing, Imperial College London, UK


  1. Run-Time Composite Event Recognition Alexander Artikis, Marek Sergot and George Paliouras Institute of Informatics & Telecommunications, NCSR “Demokritos”, Greece Department of Computing, Imperial College London, UK a.artikis@iit.demokritos.gr m.sergot@imperial.ac.uk paliourg@iit.demokritos.gr

  2. Event Recognition Problem: ◮ Event recognition (event pattern matching): ◮ Input: Simple, derived events (SDE) coming from various types of sensor. ◮ Output: Composite events (CE), ie collections of SDE and CE that satisfy some pattern. Aim: ◮ Real-time CE recognition in large-scale DEBS. ◮ Formal & declarative semantics. Approach: ◮ Highly efficient logic programming: Event Calculus.

  3. Event Recognition for City Transport Management City Transport Management SENSOR RESOURCE DATA NETWORK & DIGITAL MAPS IRM Demonstrator SENSOR & GEO DATA PROCESSING EVENT RECOGNITION INFORMATION EXTRACTION Driver Driver Actual Training / Operation Debriefing Operator Operator Control Centre

  4. Event Recognition for City Transport Management Input Output 200 scheduled stop enter 215 late stop leave [215 , 400] abrupt acceleration [350 , 600] sharp turn 700 scheduled stop enter 705 passenger density change to high 820 scheduled stop leave . . .

  5. Event Recognition for City Transport Management Input Output 200 scheduled stop enter 215 late stop leave since (215) non-punctual [215 , 400] abrupt acceleration [350 , 600] sharp turn [215 , 600] uncomfortable driving 700 scheduled stop enter 705 passenger density change to high 820 scheduled stop leave . . .

  6. Event Recognition for City Transport Management Input Output 200 scheduled stop enter 215 late stop leave since (215) non-punctual [215 , 400] abrupt acceleration [350 , 600] sharp turn [215 , 600] uncomfortable driving 700 scheduled stop enter 705 passenger density change to high 820 scheduled stop leave [215,820] non-punctual . . .

  7. Event Calculus ◮ A logic programming language for representing and reasoning about events and their effects. ◮ Key components: ◮ event (typically instantaneous). ◮ fluent: a property that may have different values at different points in time. ◮ Built-in representation of inertia: ◮ F holds at a particular time-point if F has been initiated by an event at some earlier time-point, and not terminated by another event in the meantime.

  8. CE Definitions in the Event Calculus CE definition: punctuality ( ID ) = non punctual initiated iff enter stop ( ID , StopCode , late ) happens or leave stop ( ID , StopCode , early ) happens punctuality ( ID ) = non punctual terminatedAt T iff enter stop ( ID , StopCode , scheduled ) happensAt T ′ , leave stop ( ID , StopCode , scheduled ) happensAt T CE recognition: ◮ punctuality ( ID ) = non punctual holdsFor I

  9. CE Definitions in the Event Calculus CE definition: driving quality ( ID ) = low iff punctuality ( ID ) = non punctual or driving style ( ID ) = unsafe Compiled CE definition: driving quality ( ID ) = low holdsFor I 1 ∪ I 2 iff punctuality ( ID ) = non punctual holdsFor I 1 , driving style ( ID ) = unsafe holdsFor I 2

  10. CE Definitions in the Event Calculus CE definition: driving quality ( ID ) = medium iff punctuality ( ID ) = punctual , driving style ( ID ) = uncomfortable Compiled CE definition: driving quality ( ID ) = medium holdsFor I 1 ∩ I 2 iff punctuality ( ID ) = punctual holdsFor I 1 , driving style ( ID ) = uncomfortable holdsFor I 2

  11. CE Definitions in the Event Calculus CE definition: driving quality ( ID ) = high iff punctuality ( ID ) = punctual , driving style ( ID ) � = unsafe , driving style ( ID ) � = uncomfortable Compiled CE definition: driving quality ( ID ) = high holdsFor I 1 \ I 2 ∪ I 3 iff punctuality ( ID ) = punctual holdsFor I 1 , driving style ( ID ) = unsafe holdsFor I 2 , driving style ( ID ) = uncomfortable holdsFor I 3

  12. Run-Time Event Recognition Real-time decision-support in the presence of: ◮ Very large SDE streams. ◮ Non-sorted SDE streams. ◮ SDE revision. ◮ Very large CE numbers.

  13. Event Calculus: Run-Time Event Recognition

  14. Event Calculus: Run-Time Event Recognition

  15. Event Calculus: Run-Time Event Recognition

  16. Event Calculus: Run-Time Event Recognition

  17. Event Calculus: Run-Time Event Recognition

  18. Event Calculus: Run-Time Event Recognition

  19. Event Calculus: Run-Time Event Recognition

  20. Event Calculus: Run-Time Event Recognition

  21. City Transport Management in Helsinki 1 processor 8 processors 500 450 400 350 300 Time (ms) 250 200 150 100 50 0 7 sec = 13 sec = 19 sec = 25 sec = 31 sec = 37 sec = 43 sec = 2450 SDE 4550 SDE 6650 SDE 8750 SDE 10850 SDE 12950 SDE 15050 SDE Working Memory

  22. City Transport Management in Very Big Cities 8 processors 1200 1000 800 Time (ms) 600 400 200 0 7 sec = 13 sec = 19 sec = 25 sec = 31 sec = 37 sec = 43 sec = 23331 SDE 43329 SDE 63327 SDE 83325 SDE 103323 SDE 123321 SDE 143319 SDE Working Memory

  23. Summary Event Calculus for real-time CE recognition: ◮ ‘Windowing’ mechanism. ◮ A simple indexing mechanism means that we do not have to rely on SDE filtering modules. ◮ A form of caching stores the results of sub-computations in order to avoid unnecessary recomputations. ◮ A set of interval manipulation constructs simplify CE definitions and improve reasoning efficiency.

  24. Summary ◮ Complex temporal representation: ◮ Succinct representation → code maintenance. ◮ Intuitive representation → facilitates interaction with domain experts unfamiliar with programming. ◮ Formal & declarative semantics.

  25. Further Work ◮ Event recognition under uncertainty in the Event Calculus: ◮ Erroneous SDE detection. ◮ Incomplete SDE stream. ◮ Imprecise CE definition. ◮ Machine learning in the Event Calculus: ◮ Automated generation of CE definitions.

Recommend


More recommend