SlideShare une entreprise Scribd logo
1  sur  51
Télécharger pour lire hors ligne
ual-logo
Compact representation of conditional probability
for rule-based mobile context-aware systems
Szymon Bobek, Grzegorz J. Nalepa
AGH University of Science and Technology
RuleML 2015
5 August 2015, Berlin
http://geist.agh.edu.pl
SBK+GJN (AGH-UST) Indect 5 August 2015 1 / 28
ual-logo
Outline I
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 2 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 3 / 28
ual-logo
Mobile context-aware systems (mCAS)
• Where you are, who you are with, what resources are nearby
(Schillit)
• Any informaiton that can be used to characterize the situation
of an entity (Dey)
• Individuality, activity, location, time, relations (Zimmerman)
• Set of variables that may be of interest for an agent and that
influence its actions (Bolchini)
Context
• Artificial intelligence methods
Aware
• Intelligent homes, intelligent cars, robotics
• Ambient intelligence, pervasive environments, ubiquitous
computing
• Mobile computing (location aware mobile applicaitons)
• Intelligent software (contextual advertising, etc.)
Systems
SBK+GJN (AGH-UST) Indect 5 August 2015 4 / 28
ual-logo
Mobile environment and uncertainty
SBK+GJN (AGH-UST) Indect 5 August 2015 5 / 28
ual-logo
Different types of uncertainty
High-level classification
1 Uncertainty due to lack of knowledge – that comes from incomplete
information both at the model level or if the information is not provided by
the sensors,
2 Uncertainty due to lack of semantic precision – that may appear due to
semantic mismatch in the notion of the information,
3 Uncertainty due to lack of machine precision – which covers machine sensors
imprecision and ambiguity.
SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
ual-logo
Different types of uncertainty
High-level classification
1 Uncertainty due to lack of knowledge – that comes from incomplete
information both at the model level or if the information is not provided by
the sensors,
2 Uncertainty due to lack of semantic precision – that may appear due to
semantic mismatch in the notion of the information,
3 Uncertainty due to lack of machine precision – which covers machine sensors
imprecision and ambiguity.
SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
ual-logo
Different types of uncertainty
High-level classification
1 Uncertainty due to lack of knowledge – that comes from incomplete
information both at the model level or if the information is not provided by
the sensors,
2 Uncertainty due to lack of semantic precision – that may appear due to
semantic mismatch in the notion of the information,
3 Uncertainty due to lack of machine precision – which covers machine sensors
imprecision and ambiguity.
SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
ual-logo
Different uncertainty modelling and handling
mechanisms
Uncertainty source
Lack of
knowledge
Semantic
imprecision
Machine
imprecision
Implementation
effort
Probabilistic Q H G High
Fuzzy Logic H Q Q Medium
Certainty Factors Q H G Low
Machine learning G H G High
Table : Comparison of uncertainty handling mechanisms. Full circles represent full
support, whereas empty circles represent low or no support.
SBK+GJN (AGH-UST) Indect 5 August 2015 7 / 28
ual-logo
Mobile environment and uncertainty
Nature of mCAS
The uncertainty of data is inevitable and it is dynamic
mCAS are build usually as a user centric systems
Intelligibility is very important as it may improve users trust to the system
Mediation may help resolve ambiguity
SBK+GJN (AGH-UST) Indect 5 August 2015 8 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 9 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
HeaRTDroid
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF approach
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
HeaRTDroid
XTT2 rule representation
SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
ual-logo
CF was not enough
Assumed system state
Weather forecast: sunny weather with certainty 0.3, cloudy with 0.1, and
rainy with 0.6.
How much user is interested inn particular POIs: places for eating – 60%,
culture – 20%, entertainment – 80%, sightseeing – 20%.
the user have been recently walking with certainty 0.8, running with 0.1
certainty and driving with certainty 0.1.
SBK+GJN (AGH-UST) Indect 5 August 2015 11 / 28
ual-logo
Uncertainties
(?) weather (?) user profile (?) activity cf(conditions) cf(rule) cf(conclusion)
0.3 0.6 0.8 0.3 1 0.3
0.6 0.6 0.8 0.6 1 0.6
0.6 0.6 0.1 0.1 1 0.1
0.6 0.84 0.8 0.6 1 0.6
0.6 0.36 0.8 0.36 1 0.36
0.3 0.36 0.8 0.3 1 0.3
Assumed system state with zero certainty
Weather forecast: sunny weather with certainty 0.3, cloudy with 0.1, and
rainy with 0.6.
How much user is interested inn particular POIs: places for eating – 60%,
culture – 20%, entertainment – 80%, sightseeing – 20%.
the user have been recently walking with certainty 0.8, running with 0.1
certainty and driving with certainty 0.1.
SBK+GJN (AGH-UST) Indect 5 August 2015 12 / 28
ual-logo
CF was not enough
Assumed system state
Weather forecast: sunny weather with certainty 0.0, cloudy with 0.0,
and rainy with 0.0.
How much user is interested inn particular POIs: places for eating – 60%,
culture – 20%, entertainment – 80%, sightseeing – 20%.
the user have been recently walking with certainty 0.8, running with 0.1
certainty and driving with certainty 0.1.
SBK+GJN (AGH-UST) Indect 5 August 2015 13 / 28
ual-logo
Uncertainties
(?) weather (?) user profile (?) activity cf(conditions) cf(rule) cf(conclusion)
0.0 0.6 0.8 0.0 1 0.0
0.0 0.6 0.8 0.0 1 0.0
0.0 0.6 0.1 0.0 1 0.0
0.0 0.84 0.8 0.0 1 0.0
0.0 0.36 0.8 0.0 1 0.0
0.0 0.36 0.8 0.0 1 0.0
Assumed system state with zero certainty
Weather forecast: sunny weather with certainty 0.0, cloudy with 0.0,
and rainy with 0.0.
How much user is interested inn particular POIs: places for eating – 60%,
culture – 20%, entertainment – 80%, sightseeing – 20%.
the user have been recently walking with certainty 0.8, running with 0.1
certainty and driving with certainty 0.1.
SBK+GJN (AGH-UST) Indect 5 August 2015 14 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 15 / 28
ual-logo
Use Bayesian Networks as ”backup” representation
Solution
XTT2 models can be immediately translated into Bayesian networks
HeaRTDroid stores historical states, which can be used to train Bayesian
networks
(?) location (?) daytime (?) today (->) action
= home
= outside
= work
= work
= outside
= home
= home
= home
= outside
= outside
= morning
= morning
= dayatime
= afternoon
= afternoon
= evening
= night
= any
= evening
= night
= workday
= workday
= workday
= workday
= workday
= any
= any
= weekend
= any
= any
:= leaving_home
:= travelling_work
:= working
:= leaving_work
:= travelling_home
:= resting
:= sleeping
:= resting
:= entertaining
:= travelling_home
Table id: tab_4 - Actions
(?) action (?) transportation (->) {application}
= leaving_home
∈ {leaving_work,leaving_home}
∈ {travelling_home,travelling_work}
∈ {travelling_home,travelling_work}
∈ {resting,entertaining}
= working
= sleeping
∈ {resting,entertaining}
= idle
∈ {walking,running}
∈ {driving,cycling}
∈ {bus,train}
∈ {running,cycling}
= any
= idle
∈ {driving,bus,train}
:= {news,weather}
:= {clock,navigation}
:= navigation
:= {news,clock}
:= {sport_tracker,weather}
:= {calendar,mail}
:= clock
:= trip_advisor
Table id: tab_5 - Applications
(?) action (->) profile
∈ {travelling_home,travelling_work,leaving_home,leaving_work}
∈ {working,resting,entertaining}
= sleeping
:= loud
:= vibrations
:= offline
Table id: tab_6 - Profile
1
2
3
4
5
6
7
8
1
2
3
1
2
3
4
5
6
7
8
9
10
SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
ual-logo
Use Bayesian Networks as ”backup” representation
Solution
XTT2 models can be immediately translated into Bayesian networks
HeaRTDroid stores historical states, which can be used to train Bayesian
networks
SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
ual-logo
Use Bayesian Networks as ”backup” representation
Solution
XTT2 models can be immediately translated into Bayesian networks
HeaRTDroid stores historical states, which can be used to train Bayesian
networks
XTT2 Model Manager
Reasoning Engine
Working Memory
-n
-n+1
-1
0
.
.
.
Contex Providers
HeaRTDroid
States
SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
ual-logo
Use Bayesian Networks as ”backup” representation
Solution
XTT2 models can be immediately translated into Bayesian networks
HeaRTDroid stores historical states, which can be used to train Bayesian
networks
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
HeaRTDroid
XTT2 rule representation
SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
ual-logo
Use Bayesian Networks as ”backup” representation
Solution
XTT2 models can be immediately translated into Bayesian networks
HeaRTDroid stores historical states, which can be used to train Bayesian
networks
Intelligibility
Mediation
Uncertainty
Dynamics
Rules
CF
Dynamic CF
HeaRTDroid
Dual representation
SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 17 / 28
ual-logo
ALSV(FD) logic
XTT2 rule in ALSV(FD) logic
(Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (Am ∝ Vm) ∧ (An ∝ Vn) −→ RHS
Syntax Interpretation Relation
Ai = di value of Ai is pre-
cisely defined as di
eq
Ai ∈ Vi value of Ai is in Vi in
Ai = di shorthand for Ai ∈
(Di  {di })
neq
Ai ∈ Vi shorthand for Ai ∈
(Di  Vi )
notin
Table : Formula for simple attributes
Syntax Interpretation Relation
Ai = Vi Ai equal Vi eq
Ai = Vi Ai does not equal
Vi
neq
Ai ⊆ Vi Ai is a subset Vi subset
Ai ⊇ Vi Ai is a superset Vi supset
Ai ∼ Vi Ai has non-empty
intersection with
Vi
sim
Ai ∼ Vi Ai has empty in-
tersection with Vi
notsim
Table : Formula for generalized
attributes
SBK+GJN (AGH-UST) Indect 5 August 2015 18 / 28
ual-logo
Probabilistic interpretation of ALSV(FD) rule
XTT2 rule as conditional probability
(Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (An ∝ dn) −→ (Ad = dd )
(Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (An ∝ dn) −→ Ag = {v1, v2, . . . vn}
P(DEC | COND)
Interpretation
Every rule is represented by a pair r, p , where r is an XTT2 rule and p ∈ [0; 1]
defines a certainty of a rule given its preconditions.
simple attributes p : P (Ad | Ai , Aj . . . , An)
generalised attributes
P(Ag = {v1, v2, . . . vn} | Ai , Aj , . . . , An) = P(v1 | Ai , Aj , . . . , An)·
P(v2 | Ai , Aj , . . . , An)·
. . .
P(vn | Ai , Aj , . . . , An)
SBK+GJN (AGH-UST) Indect 5 August 2015 19 / 28
ual-logo
Probabilistic interpretation of XTT2 models
(?) location (?) daytime (?) today (->) action
= home
= outside
= work
= work
= outside
= home
= home
= home
= outside
= outside
= morning
= morning
= dayatime
= afternoon
= afternoon
= evening
= night
= any
= evening
= night
= workday
= workday
= workday
= workday
= workday
= any
= any
= weekend
= any
= any
:= leaving_home
:= travelling_work
:= working
:= leaving_work
:= travelling_home
:= resting
:= sleeping
:= resting
:= entertaining
:= travelling_home
Table id: tab_4 - Actions
(?) action (?) transportation (->) {application}
= leaving_home
∈ {leaving_work,leaving_home}
∈ {travelling_home,travelling_work}
∈ {travelling_home,travelling_work}
∈ {resting,entertaining}
= working
= sleeping
∈ {resting,entertaining}
= idle
∈ {walking,running}
∈ {driving,cycling}
∈ {bus,train}
∈ {running,cycling}
= any
= idle
∈ {driving,bus,train}
:= {news,weather}
:= {clock,navigation}
:= navigation
:= {news,clock}
:= {sport_tracker,weather}
:= {calendar,mail}
:= clock
:= trip_advisor
Table id: tab_5 - Applications
(?) action (->) profile
∈ {travelling_home,travelling_work,leaving_home,leaving_work}
∈ {working,resting,entertaining}
= sleeping
:= loud
:= vibrations
:= offline
Table id: tab_6 - Profile
1
2
3
4
5
6
7
8
1
2
3
1
2
3
4
5
6
7
8
9
10
SBK+GJN (AGH-UST) Indect 5 August 2015 20 / 28
ual-logo
Probabilistic interpretation of XTT2 models
SBK+GJN (AGH-UST) Indect 5 August 2015 20 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 21 / 28
ual-logo
Hybrid reasoning
Data: E – the set of all known attributes values
A – the set of attributes which values are to be found
Result: V – values for attributes from the set A
1 Create a stack of tables T that needs to be processed to obtain V ;
2 while not empty T do
3 t = pop(T);
4 Identify schema (COND, DEC) of table t;
5 if ∀c ∈ COND, Val(c) ∈ E then
6 Execute table t;
7 ∀a ∈ DEC ∩ A : add Val(a) to E and V ;
8 else
9 Run probabilistic reasoning to obtain P(a)∀a ∈ DEC;
10 Select rule rmax , pmax such that: ∀ r, p ∈ t : p ≤ pmax ;
11 if pmax ≥ then
12 execute rule r;
13 ∀a ∈ DEC ∩ A : add Val(a) to E and V ;
14 else
15 ∀a ∈ DEC ∩ A : add P(a) to E and V ;
16 t = pop(T);
17 Identify schema (COND, DEC) of table t;
18 goto 9
19 end
20 end
21 end
22 return V ;
Inference modes
1 Deterministic
inference
2 Probabilistic
inference
3 Hybrid
inference
SBK+GJN (AGH-UST) Indect 5 August 2015 22 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
(->) B
1
2
3
4
5
No. (?) A
B = a
B = b
B = c
B = d
B = e
P(B=d | evidence) = 0.2
P(B=c | evidence) = 0.2
P(B=b | evidence) = 0.2
P(B=a | evidence) = 0.2
P(B=e | evidence) = 0.2
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
(->) E(?) B
1
2
3
4
5
No. (?) D
E = a
E = b
E = c
E = d
E = e
P(E=d | evidence) = 0.6
P(E=c | evidence) = 0.1
P(E=b | evidence) = 0.0
P(E=a | evidence) = 0.1
P(E=e | evidence) = 0.2
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Hybrid reasoning
Assumptions
Value of attribute G is needed
Only value of attribute C is known
Attribute F is set to be in/out
A B
C D
B D E
E F
E G
SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 24 / 28
ual-logo
Prototype Implementation
Components
HeaRTDroid for deterministic reasoning and training set preparation
Translator XTT2 to BN
WEKA
Prototype reasoner that combines HeaRTDroid and WEKA
HeaRTDroidWeka
XTT2 Model
Translator
XTT2 to BN
Hybrid Reasoner
States
SBK+GJN (AGH-UST) Indect 5 August 2015 25 / 28
ual-logo
Outline
1 Introduction
2 Previous works
3 Proposed solution
4 Probabilistic interpretation of XTT2 rules
5 Probabilistic reasoning in XTT2 models
6 Implementation
7 Summary and future work
SBK+GJN (AGH-UST) Indect 5 August 2015 26 / 28
ual-logo
Summary and future work
Summary
We provided probabilistic interpretation of XTT2 knowledge representation
We proposed a hybrid inference algorithm
We implemented prototype reasoner that binds HeaRTDroid, XTT2 and
Bayesian network representation of XTT2 into one hybrid reasoner
Future works
Make the reasoner part of HeaRTDroid
Evaluate the hybrid reasoning on the real-life use case
SBK+GJN (AGH-UST) Indect 5 August 2015 27 / 28
ual-logo
Thank you for your attention!
Do you have any questions?
RuleML 2015
http://geist.agh.edu.pl
SBK+GJN (AGH-UST) Indect 5 August 2015 28 / 28

Contenu connexe

Similaire à RuleML2015: Compact representation of conditional probability for rule-based mobile context-aware systems

Oscillation Compensating Dynamic Adaptive Streaming over HTTP
Oscillation Compensating Dynamic Adaptive Streaming over HTTPOscillation Compensating Dynamic Adaptive Streaming over HTTP
Oscillation Compensating Dynamic Adaptive Streaming over HTTP
Alpen-Adria-Universität
 
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
Yole Developpement
 
Getting more out of Matplotlib with GR
Getting more out of Matplotlib with GRGetting more out of Matplotlib with GR
Getting more out of Matplotlib with GR
Josef Heinen
 

Similaire à RuleML2015: Compact representation of conditional probability for rule-based mobile context-aware systems (20)

Oscillation Compensating Dynamic Adaptive Streaming over HTTP
Oscillation Compensating Dynamic Adaptive Streaming over HTTPOscillation Compensating Dynamic Adaptive Streaming over HTTP
Oscillation Compensating Dynamic Adaptive Streaming over HTTP
 
USING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENT
USING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENTUSING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENT
USING ORFEO TOOLBOX A GROWING COMPETENCE IN A COLLABORATIVE ENVIRONMENT
 
Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Sour...
Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Sour...Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Sour...
Analyzing the State of Static Analysis: A Large-Scale Evaluation in Open Sour...
 
Concentric Semantic Snapshot
Concentric Semantic SnapshotConcentric Semantic Snapshot
Concentric Semantic Snapshot
 
DeepaliCVM[1]
DeepaliCVM[1]DeepaliCVM[1]
DeepaliCVM[1]
 
How to fully automate a store.pptx
How to fully automate a store.pptxHow to fully automate a store.pptx
How to fully automate a store.pptx
 
Flow Trajectory Approach for Human Action Recognition
Flow Trajectory Approach for Human Action RecognitionFlow Trajectory Approach for Human Action Recognition
Flow Trajectory Approach for Human Action Recognition
 
IPv6: Unleashing The Power
IPv6: Unleashing The PowerIPv6: Unleashing The Power
IPv6: Unleashing The Power
 
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
2-Axis Gyroscopes for Optical Image Stabilization: STMicroelectronics L2G2IS ...
 
AI-Based Pet Adoption System
AI-Based Pet Adoption SystemAI-Based Pet Adoption System
AI-Based Pet Adoption System
 
L.E.D (LifeFone for Elderly and Disabled)
L.E.D (LifeFone for Elderly and Disabled)L.E.D (LifeFone for Elderly and Disabled)
L.E.D (LifeFone for Elderly and Disabled)
 
Introducing the Galileo PVT App:from Assisted GNSS to NeQuick model in Android
Introducing the Galileo PVT App:from Assisted GNSS to NeQuick model in AndroidIntroducing the Galileo PVT App:from Assisted GNSS to NeQuick model in Android
Introducing the Galileo PVT App:from Assisted GNSS to NeQuick model in Android
 
SiamQuant Workshop 2.0 Slides
SiamQuant Workshop 2.0 SlidesSiamQuant Workshop 2.0 Slides
SiamQuant Workshop 2.0 Slides
 
Funnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and DruidFunnel Analysis with Apache Spark and Druid
Funnel Analysis with Apache Spark and Druid
 
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s 	  Clock Gating of Streaming Applications for Power Minimization on FPGA’s
Clock Gating of Streaming Applications for Power Minimization on FPGA’s
 
CAPTCHA2
CAPTCHA2CAPTCHA2
CAPTCHA2
 
IRJET- Moving Object Detection with Shadow Compression using Foreground Segme...
IRJET- Moving Object Detection with Shadow Compression using Foreground Segme...IRJET- Moving Object Detection with Shadow Compression using Foreground Segme...
IRJET- Moving Object Detection with Shadow Compression using Foreground Segme...
 
SplunkLive! Paris 2018: Integrating Metrics and Logs
SplunkLive! Paris 2018: Integrating Metrics and LogsSplunkLive! Paris 2018: Integrating Metrics and Logs
SplunkLive! Paris 2018: Integrating Metrics and Logs
 
Getting more out of Matplotlib with GR
Getting more out of Matplotlib with GRGetting more out of Matplotlib with GR
Getting more out of Matplotlib with GR
 
Deploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data InDeploying Splunk on OpenShift – Part2 : Getting Data In
Deploying Splunk on OpenShift – Part2 : Getting Data In
 

Plus de RuleML

A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
RuleML
 

Plus de RuleML (20)

Aggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and SolutionsAggregates in Recursion: Issues and Solutions
Aggregates in Recursion: Issues and Solutions
 
A software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasksA software agent controlling 2 robot arms in co-operating concurrent tasks
A software agent controlling 2 robot arms in co-operating concurrent tasks
 
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
Port Clearance Rules in PSOA RuleML: From Controlled-English Regulation to Ob...
 
RuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule EventsRuleML 2015: When Processes Rule Events
RuleML 2015: When Processes Rule Events
 
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth ContextRuleML 2015: Ontology Reasoning using Rules in an eHealth Context
RuleML 2015: Ontology Reasoning using Rules in an eHealth Context
 
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
RuleML 2015: Semantics of Notation3 Logic: A Solution for Implicit Quantifica...
 
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
Challenge@RuleML2015 Developing Situation-Aware Applications for Disaster Man...
 
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive ConceptsRule Generalization Strategies in Incremental Learning of Disjunctive Concepts
Rule Generalization Strategies in Incremental Learning of Disjunctive Concepts
 
RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?RuleML 2015 Constraint Handling Rules - What Else?
RuleML 2015 Constraint Handling Rules - What Else?
 
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
RuleML2015 The Herbrand Manifesto - Thinking Inside the Box
 
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and RulesRuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
RuleML2015 PSOA RuleML: Integrated Object-Relational Data and Rules
 
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
Industry@RuleML2015: Norwegian State of Estate A Reporting Service for the St...
 
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...A Service for Improving the Assignments of Common Agriculture Policy Funds to...
A Service for Improving the Assignments of Common Agriculture Policy Funds to...
 
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
Datalog+-Track Introduction & Reasoning on UML Class Diagrams via Datalog+-
 
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function SymbolsRuleML2015: Binary Frontier-guarded ASP with Function Symbols
RuleML2015: Binary Frontier-guarded ASP with Function Symbols
 
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge PlatformsRuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
RuleML2015: API4KP Metamodel: A Meta-API for Heterogeneous Knowledge Platforms
 
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
RuleML2015: Rule-Based Exploration of Structured Data in the BrowserRuleML2015: Rule-Based Exploration of Structured Data in the Browser
RuleML2015: Rule-Based Exploration of Structured Data in the Browser
 
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
RuleML2015: Ontology-Based Multidimensional Contexts with Applications to Qua...
 
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information SystemsRuleML2015: Learning Characteristic Rules in Geographic Information Systems
RuleML2015: Learning Characteristic Rules in Geographic Information Systems
 
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
RuleML2015: Using Substitutive Itemset Mining Framework for Finding Synonymou...
 

Dernier

CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
anilsa9823
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Sérgio Sacani
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
Sérgio Sacani
 

Dernier (20)

Physiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptxPhysiochemical properties of nanomaterials and its nanotoxicity.pptx
Physiochemical properties of nanomaterials and its nanotoxicity.pptx
 
GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)GBSN - Microbiology (Unit 1)
GBSN - Microbiology (Unit 1)
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Biological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdfBiological Classification BioHack (3).pdf
Biological Classification BioHack (3).pdf
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 60009654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
9654467111 Call Girls In Raj Nagar Delhi Short 1500 Night 6000
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service  🪡
CALL ON ➥8923113531 🔝Call Girls Kesar Bagh Lucknow best Night Fun service 🪡
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
Lucknow 💋 Russian Call Girls Lucknow Finest Escorts Service 8923113531 Availa...
 
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
Discovery of an Accretion Streamer and a Slow Wide-angle Outflow around FUOri...
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCRStunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
Stunning ➥8448380779▻ Call Girls In Panchshil Enclave Delhi NCR
 
Botany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdfBotany 4th semester series (krishna).pdf
Botany 4th semester series (krishna).pdf
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
PossibleEoarcheanRecordsoftheGeomagneticFieldPreservedintheIsuaSupracrustalBe...
 
Animal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptxAnimal Communication- Auditory and Visual.pptx
Animal Communication- Auditory and Visual.pptx
 

RuleML2015: Compact representation of conditional probability for rule-based mobile context-aware systems

  • 1. ual-logo Compact representation of conditional probability for rule-based mobile context-aware systems Szymon Bobek, Grzegorz J. Nalepa AGH University of Science and Technology RuleML 2015 5 August 2015, Berlin http://geist.agh.edu.pl SBK+GJN (AGH-UST) Indect 5 August 2015 1 / 28
  • 2. ual-logo Outline I 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 2 / 28
  • 3. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 3 / 28
  • 4. ual-logo Mobile context-aware systems (mCAS) • Where you are, who you are with, what resources are nearby (Schillit) • Any informaiton that can be used to characterize the situation of an entity (Dey) • Individuality, activity, location, time, relations (Zimmerman) • Set of variables that may be of interest for an agent and that influence its actions (Bolchini) Context • Artificial intelligence methods Aware • Intelligent homes, intelligent cars, robotics • Ambient intelligence, pervasive environments, ubiquitous computing • Mobile computing (location aware mobile applicaitons) • Intelligent software (contextual advertising, etc.) Systems SBK+GJN (AGH-UST) Indect 5 August 2015 4 / 28
  • 5. ual-logo Mobile environment and uncertainty SBK+GJN (AGH-UST) Indect 5 August 2015 5 / 28
  • 6. ual-logo Different types of uncertainty High-level classification 1 Uncertainty due to lack of knowledge – that comes from incomplete information both at the model level or if the information is not provided by the sensors, 2 Uncertainty due to lack of semantic precision – that may appear due to semantic mismatch in the notion of the information, 3 Uncertainty due to lack of machine precision – which covers machine sensors imprecision and ambiguity. SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
  • 7. ual-logo Different types of uncertainty High-level classification 1 Uncertainty due to lack of knowledge – that comes from incomplete information both at the model level or if the information is not provided by the sensors, 2 Uncertainty due to lack of semantic precision – that may appear due to semantic mismatch in the notion of the information, 3 Uncertainty due to lack of machine precision – which covers machine sensors imprecision and ambiguity. SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
  • 8. ual-logo Different types of uncertainty High-level classification 1 Uncertainty due to lack of knowledge – that comes from incomplete information both at the model level or if the information is not provided by the sensors, 2 Uncertainty due to lack of semantic precision – that may appear due to semantic mismatch in the notion of the information, 3 Uncertainty due to lack of machine precision – which covers machine sensors imprecision and ambiguity. SBK+GJN (AGH-UST) Indect 5 August 2015 6 / 28
  • 9. ual-logo Different uncertainty modelling and handling mechanisms Uncertainty source Lack of knowledge Semantic imprecision Machine imprecision Implementation effort Probabilistic Q H G High Fuzzy Logic H Q Q Medium Certainty Factors Q H G Low Machine learning G H G High Table : Comparison of uncertainty handling mechanisms. Full circles represent full support, whereas empty circles represent low or no support. SBK+GJN (AGH-UST) Indect 5 August 2015 7 / 28
  • 10. ual-logo Mobile environment and uncertainty Nature of mCAS The uncertainty of data is inevitable and it is dynamic mCAS are build usually as a user centric systems Intelligibility is very important as it may improve users trust to the system Mediation may help resolve ambiguity SBK+GJN (AGH-UST) Indect 5 August 2015 8 / 28
  • 11. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 9 / 28
  • 18. ual-logo CF approach Intelligibility Mediation Uncertainty Dynamics Rules CF Dynamic CF HeaRTDroid XTT2 rule representation SBK+GJN (AGH-UST) Indect 5 August 2015 10 / 28
  • 19. ual-logo CF was not enough Assumed system state Weather forecast: sunny weather with certainty 0.3, cloudy with 0.1, and rainy with 0.6. How much user is interested inn particular POIs: places for eating – 60%, culture – 20%, entertainment – 80%, sightseeing – 20%. the user have been recently walking with certainty 0.8, running with 0.1 certainty and driving with certainty 0.1. SBK+GJN (AGH-UST) Indect 5 August 2015 11 / 28
  • 20. ual-logo Uncertainties (?) weather (?) user profile (?) activity cf(conditions) cf(rule) cf(conclusion) 0.3 0.6 0.8 0.3 1 0.3 0.6 0.6 0.8 0.6 1 0.6 0.6 0.6 0.1 0.1 1 0.1 0.6 0.84 0.8 0.6 1 0.6 0.6 0.36 0.8 0.36 1 0.36 0.3 0.36 0.8 0.3 1 0.3 Assumed system state with zero certainty Weather forecast: sunny weather with certainty 0.3, cloudy with 0.1, and rainy with 0.6. How much user is interested inn particular POIs: places for eating – 60%, culture – 20%, entertainment – 80%, sightseeing – 20%. the user have been recently walking with certainty 0.8, running with 0.1 certainty and driving with certainty 0.1. SBK+GJN (AGH-UST) Indect 5 August 2015 12 / 28
  • 21. ual-logo CF was not enough Assumed system state Weather forecast: sunny weather with certainty 0.0, cloudy with 0.0, and rainy with 0.0. How much user is interested inn particular POIs: places for eating – 60%, culture – 20%, entertainment – 80%, sightseeing – 20%. the user have been recently walking with certainty 0.8, running with 0.1 certainty and driving with certainty 0.1. SBK+GJN (AGH-UST) Indect 5 August 2015 13 / 28
  • 22. ual-logo Uncertainties (?) weather (?) user profile (?) activity cf(conditions) cf(rule) cf(conclusion) 0.0 0.6 0.8 0.0 1 0.0 0.0 0.6 0.8 0.0 1 0.0 0.0 0.6 0.1 0.0 1 0.0 0.0 0.84 0.8 0.0 1 0.0 0.0 0.36 0.8 0.0 1 0.0 0.0 0.36 0.8 0.0 1 0.0 Assumed system state with zero certainty Weather forecast: sunny weather with certainty 0.0, cloudy with 0.0, and rainy with 0.0. How much user is interested inn particular POIs: places for eating – 60%, culture – 20%, entertainment – 80%, sightseeing – 20%. the user have been recently walking with certainty 0.8, running with 0.1 certainty and driving with certainty 0.1. SBK+GJN (AGH-UST) Indect 5 August 2015 14 / 28
  • 23. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 15 / 28
  • 24. ual-logo Use Bayesian Networks as ”backup” representation Solution XTT2 models can be immediately translated into Bayesian networks HeaRTDroid stores historical states, which can be used to train Bayesian networks (?) location (?) daytime (?) today (->) action = home = outside = work = work = outside = home = home = home = outside = outside = morning = morning = dayatime = afternoon = afternoon = evening = night = any = evening = night = workday = workday = workday = workday = workday = any = any = weekend = any = any := leaving_home := travelling_work := working := leaving_work := travelling_home := resting := sleeping := resting := entertaining := travelling_home Table id: tab_4 - Actions (?) action (?) transportation (->) {application} = leaving_home ∈ {leaving_work,leaving_home} ∈ {travelling_home,travelling_work} ∈ {travelling_home,travelling_work} ∈ {resting,entertaining} = working = sleeping ∈ {resting,entertaining} = idle ∈ {walking,running} ∈ {driving,cycling} ∈ {bus,train} ∈ {running,cycling} = any = idle ∈ {driving,bus,train} := {news,weather} := {clock,navigation} := navigation := {news,clock} := {sport_tracker,weather} := {calendar,mail} := clock := trip_advisor Table id: tab_5 - Applications (?) action (->) profile ∈ {travelling_home,travelling_work,leaving_home,leaving_work} ∈ {working,resting,entertaining} = sleeping := loud := vibrations := offline Table id: tab_6 - Profile 1 2 3 4 5 6 7 8 1 2 3 1 2 3 4 5 6 7 8 9 10 SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
  • 25. ual-logo Use Bayesian Networks as ”backup” representation Solution XTT2 models can be immediately translated into Bayesian networks HeaRTDroid stores historical states, which can be used to train Bayesian networks SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
  • 26. ual-logo Use Bayesian Networks as ”backup” representation Solution XTT2 models can be immediately translated into Bayesian networks HeaRTDroid stores historical states, which can be used to train Bayesian networks XTT2 Model Manager Reasoning Engine Working Memory -n -n+1 -1 0 . . . Contex Providers HeaRTDroid States SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
  • 27. ual-logo Use Bayesian Networks as ”backup” representation Solution XTT2 models can be immediately translated into Bayesian networks HeaRTDroid stores historical states, which can be used to train Bayesian networks Intelligibility Mediation Uncertainty Dynamics Rules CF Dynamic CF HeaRTDroid XTT2 rule representation SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
  • 28. ual-logo Use Bayesian Networks as ”backup” representation Solution XTT2 models can be immediately translated into Bayesian networks HeaRTDroid stores historical states, which can be used to train Bayesian networks Intelligibility Mediation Uncertainty Dynamics Rules CF Dynamic CF HeaRTDroid Dual representation SBK+GJN (AGH-UST) Indect 5 August 2015 16 / 28
  • 29. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 17 / 28
  • 30. ual-logo ALSV(FD) logic XTT2 rule in ALSV(FD) logic (Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (Am ∝ Vm) ∧ (An ∝ Vn) −→ RHS Syntax Interpretation Relation Ai = di value of Ai is pre- cisely defined as di eq Ai ∈ Vi value of Ai is in Vi in Ai = di shorthand for Ai ∈ (Di {di }) neq Ai ∈ Vi shorthand for Ai ∈ (Di Vi ) notin Table : Formula for simple attributes Syntax Interpretation Relation Ai = Vi Ai equal Vi eq Ai = Vi Ai does not equal Vi neq Ai ⊆ Vi Ai is a subset Vi subset Ai ⊇ Vi Ai is a superset Vi supset Ai ∼ Vi Ai has non-empty intersection with Vi sim Ai ∼ Vi Ai has empty in- tersection with Vi notsim Table : Formula for generalized attributes SBK+GJN (AGH-UST) Indect 5 August 2015 18 / 28
  • 31. ual-logo Probabilistic interpretation of ALSV(FD) rule XTT2 rule as conditional probability (Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (An ∝ dn) −→ (Ad = dd ) (Ai ∝ di ) ∧ (Aj ∝ dj ) ∧ . . . (An ∝ dn) −→ Ag = {v1, v2, . . . vn} P(DEC | COND) Interpretation Every rule is represented by a pair r, p , where r is an XTT2 rule and p ∈ [0; 1] defines a certainty of a rule given its preconditions. simple attributes p : P (Ad | Ai , Aj . . . , An) generalised attributes P(Ag = {v1, v2, . . . vn} | Ai , Aj , . . . , An) = P(v1 | Ai , Aj , . . . , An)· P(v2 | Ai , Aj , . . . , An)· . . . P(vn | Ai , Aj , . . . , An) SBK+GJN (AGH-UST) Indect 5 August 2015 19 / 28
  • 32. ual-logo Probabilistic interpretation of XTT2 models (?) location (?) daytime (?) today (->) action = home = outside = work = work = outside = home = home = home = outside = outside = morning = morning = dayatime = afternoon = afternoon = evening = night = any = evening = night = workday = workday = workday = workday = workday = any = any = weekend = any = any := leaving_home := travelling_work := working := leaving_work := travelling_home := resting := sleeping := resting := entertaining := travelling_home Table id: tab_4 - Actions (?) action (?) transportation (->) {application} = leaving_home ∈ {leaving_work,leaving_home} ∈ {travelling_home,travelling_work} ∈ {travelling_home,travelling_work} ∈ {resting,entertaining} = working = sleeping ∈ {resting,entertaining} = idle ∈ {walking,running} ∈ {driving,cycling} ∈ {bus,train} ∈ {running,cycling} = any = idle ∈ {driving,bus,train} := {news,weather} := {clock,navigation} := navigation := {news,clock} := {sport_tracker,weather} := {calendar,mail} := clock := trip_advisor Table id: tab_5 - Applications (?) action (->) profile ∈ {travelling_home,travelling_work,leaving_home,leaving_work} ∈ {working,resting,entertaining} = sleeping := loud := vibrations := offline Table id: tab_6 - Profile 1 2 3 4 5 6 7 8 1 2 3 1 2 3 4 5 6 7 8 9 10 SBK+GJN (AGH-UST) Indect 5 August 2015 20 / 28
  • 33. ual-logo Probabilistic interpretation of XTT2 models SBK+GJN (AGH-UST) Indect 5 August 2015 20 / 28
  • 34. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 21 / 28
  • 35. ual-logo Hybrid reasoning Data: E – the set of all known attributes values A – the set of attributes which values are to be found Result: V – values for attributes from the set A 1 Create a stack of tables T that needs to be processed to obtain V ; 2 while not empty T do 3 t = pop(T); 4 Identify schema (COND, DEC) of table t; 5 if ∀c ∈ COND, Val(c) ∈ E then 6 Execute table t; 7 ∀a ∈ DEC ∩ A : add Val(a) to E and V ; 8 else 9 Run probabilistic reasoning to obtain P(a)∀a ∈ DEC; 10 Select rule rmax , pmax such that: ∀ r, p ∈ t : p ≤ pmax ; 11 if pmax ≥ then 12 execute rule r; 13 ∀a ∈ DEC ∩ A : add Val(a) to E and V ; 14 else 15 ∀a ∈ DEC ∩ A : add P(a) to E and V ; 16 t = pop(T); 17 Identify schema (COND, DEC) of table t; 18 goto 9 19 end 20 end 21 end 22 return V ; Inference modes 1 Deterministic inference 2 Probabilistic inference 3 Hybrid inference SBK+GJN (AGH-UST) Indect 5 August 2015 22 / 28
  • 36. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 37. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 38. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 39. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 40. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 41. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 42. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out (->) B 1 2 3 4 5 No. (?) A B = a B = b B = c B = d B = e P(B=d | evidence) = 0.2 P(B=c | evidence) = 0.2 P(B=b | evidence) = 0.2 P(B=a | evidence) = 0.2 P(B=e | evidence) = 0.2 SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 43. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 44. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out (->) E(?) B 1 2 3 4 5 No. (?) D E = a E = b E = c E = d E = e P(E=d | evidence) = 0.6 P(E=c | evidence) = 0.1 P(E=b | evidence) = 0.0 P(E=a | evidence) = 0.1 P(E=e | evidence) = 0.2 SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 45. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 46. ual-logo Hybrid reasoning Assumptions Value of attribute G is needed Only value of attribute C is known Attribute F is set to be in/out A B C D B D E E F E G SBK+GJN (AGH-UST) Indect 5 August 2015 23 / 28
  • 47. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 24 / 28
  • 48. ual-logo Prototype Implementation Components HeaRTDroid for deterministic reasoning and training set preparation Translator XTT2 to BN WEKA Prototype reasoner that combines HeaRTDroid and WEKA HeaRTDroidWeka XTT2 Model Translator XTT2 to BN Hybrid Reasoner States SBK+GJN (AGH-UST) Indect 5 August 2015 25 / 28
  • 49. ual-logo Outline 1 Introduction 2 Previous works 3 Proposed solution 4 Probabilistic interpretation of XTT2 rules 5 Probabilistic reasoning in XTT2 models 6 Implementation 7 Summary and future work SBK+GJN (AGH-UST) Indect 5 August 2015 26 / 28
  • 50. ual-logo Summary and future work Summary We provided probabilistic interpretation of XTT2 knowledge representation We proposed a hybrid inference algorithm We implemented prototype reasoner that binds HeaRTDroid, XTT2 and Bayesian network representation of XTT2 into one hybrid reasoner Future works Make the reasoner part of HeaRTDroid Evaluate the hybrid reasoning on the real-life use case SBK+GJN (AGH-UST) Indect 5 August 2015 27 / 28
  • 51. ual-logo Thank you for your attention! Do you have any questions? RuleML 2015 http://geist.agh.edu.pl SBK+GJN (AGH-UST) Indect 5 August 2015 28 / 28