modeling and reasoning with problog an application in
play

Modeling and Reasoning with ProbLog: An Application in Recognizing - PowerPoint PPT Presentation

Modeling and Reasoning with ProbLog: An Application in Recognizing Complex Activities Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 1 19.03.2018 19.03.2018 Content C O M O R EA @P ERCOM 2018 1. Motivation 2. Model & System 3.


  1. Modeling and Reasoning with ProbLog: An Application in Recognizing Complex Activities Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 1 19.03.2018

  2. 19.03.2018 Content C O M O R EA @P ERCOM 2018 1. Motivation 2. Model & System 3. Preliminary Results 4. Discussion 5. Ongoing Work 2 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  3. MOTIVATION Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 3 19.03.2018

  4. 19.03.2018 Scenario C O M O R EA @P ERCOM 2018 We focus on recognizing complex activities like “watering plants” or “taking medicine”. So far we relied on... ... ontological and probabilistic reasoning (as it overcomes well-known limitations) What we are targeting right now ... ... online recognition and active learning Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 4

  5. 19.03.2018 Scenario C O M O R EA @P ERCOM 2018 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 5

  6. 19.03.2018 Motivation C O M O R EA @P ERCOM 2018 Until now we used Markov Logic Networks (RockIt) to model our scenario, but ... ... weights are not this intuitive as probabilities ... much computational effort ... did not support time-constraints and marginal inferences (RockIt). We decided to investigate ProbLog in respect of Activity Recognition Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 6

  7. 19.03.2018 Idea C O M O R EA @P ERCOM 2018 ProbLog is a probabilistic extension of Prolog which allows to explicitly define probabilistic facts and rules. Segment sensor stream into windows Build for each window a ProbLog program Allows to query the user in almost real-time “Marginal Inferences” allows to apply rules but also interpret the results across windows Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 7

  8. 19.03.2018 Contribution C O M O R EA @P ERCOM 2018 We clarify the benefits of ProbLog for activity recognition We introduce a guidance on how to write ProbLog programs. We present a ProbLog -based method to recognize activities of daily living in an online fashion We show potential advantages of ProbLog’s marginal inference Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 8

  9. MODEL & SYSTEM Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 9 19.03.2018

  10. 19.03.2018 System C O M O R EA @P ERCOM 2018 1. Extracting probabilities (sensor type ↔ activity) extracted from the dataset (supervised) 2. Segmentation Standard windowing approach with a fixed size 3. ProbLog Program Generation As soon as a window is finalized we generate the ProbLog program 4. Online Activity Recognition We choose the most likely activity 10 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  11. 19.03.2018 Building a ProbLog Program (1/4) C O M O R EA @P ERCOM 2018 Event and Instance Clauses (Example) 1.0:: event (e 1 , water, 5). 1.0:: event (e 2 , absent, 6). This implies that these two clauses have to be part of each possible world (ground truth). 0.5:: instance (ai 1 , ac 1 , 0, 7); 0.5:: instance (ai 1 , ac 2 , 0, 7). 0.5:: instance (ai 2 , ac 1 , 4, 10); 0.5:: instance (ai 2 , ac 2 , 4, 10). e.g. cleaning predicate XOR 11 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  12. 19.03.2018 Building a ProbLog Program (1/4) C O M O R EA @P ERCOM 2018 Probabilistic Facts (Example) 0.9:: related (X, watering) :- event (X, water, T) allows to incorporate mined probabilities Temporal Constraints (Example) closeAfter (T 1 ,T 2 ) :- T 1 >T 2 ,T 3 is T 1 -T 2 , T 3 <3. 0.6:: producedBy (X 2 ,I) :- event (X 1 ,Y 1 ,T1), event (X 2 ,Y 2 ,T 2 ), closeAfter (T 2 ,T 1 ), producedBy (X 1 ,I) Intuitively, temporally close events more likely belong to the same activity instance. 12 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  13. 19.03.2018 Building a ProbLog Program (1/4) C O M O R EA @P ERCOM 2018 Knowledge-based Facts (Example) 0.9:: bond (Y, waterplants) :- event (X1, water, T1), event (X2, can, T2), closeAfter (T1,T2), producedBy (X1,Y). W e assume that “can” is only used for “ waterplants ” Domain Constraints (Example) r1 :- related (e 1 , ac 1 ), \+ related (e 1 , ac 2 ); related (e 2 , ac 1 ), \+ related (e 2 , ac 2 ); evidence (r1,true). We want to be sure that each sensor event is assigned to exactly one activity. 13 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  14. 19.03.2018 Executing a ProbLog Program C O M O R EA @P ERCOM 2018 A C 1 We have to An instance of formulate a query 3 X Y our program A instance(ai 1 ,ac 1 ,0,7) Each of them has a 1 producedBy(e 1 ,ac 1 ) probability X related(e 1 , cleaning) The probabilities of all Probability of a certain instances answer our query program instance 14 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  15. PRELIMINARY RESULTS Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 15 19.03.2018

  16. 19.03.2018 Dataset: CASAS C O M O R EA @P ERCOM 2018 CASAS: A smart home in a box, D.J. Cook et al., 2013 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 16

  17. 19.03.2018 Results: Recognition Rate C O M O R EA @P ERCOM 2018 1 0,9 0,8 F-measure 0,7 0,6 0,5 0,4 0,3 0,2 0,1 0 ac1 ac2 ac3 ac4 ac5 ac6 ac7 ac8 Activities The activities are well recognized but there is a gap between the worst and best result (ac 1 vs. ac 5 ) Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 17

  18. 19.03.2018 Results: Marginal Inference C O M O R EA @P ERCOM 2018 1 0,9 F-measure 0,8 Top-1 Top-2 0,7 Top-3 0,6 0,5 ac1 ac2 ac3 ac4 ac5 ac6 ac7 ac8 Activities This militates for the quality of the ranking but also for the reliability of the approach. Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 18

  19. 19.03.2018 Runtime C O M O R EA @P ERCOM 2018 Cumulative probability Computation time of a segment (seconds) Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 19

  20. DISCUSSION Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 20 19.03.2018

  21. 19.03.2018 Discussion C O M O R EA @P ERCOM 2018 The results look promising but ... ... difficult to compare to existing works due to different setups ... only a standard windowing approach ... probabilities were extracted from the dataset ... Interleaved activities are not explicitly modeled Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 21

  22. ONGOING WORK Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt 22 19.03.2018

  23. 19.03.2018 Ongoing Work C O M O R EA @P ERCOM 2018 Our next steps are ... ... fully exploit marginal inferences refine the classification of the windows ... investigating active learning for personalization (e.g. correcting/adapting probabilities) Currently, in another work, we focus on suitable online and active learning techniques 23 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

  24. 19.03.2018 C O M O R EA @P ERCOM 2018 Thank you for your attention :) 24 Timo Sztyler, Gabriele Civitarese, Heiner Stuckenschmidt

Recommend


More recommend