����3rd IEEE International Conference�on�Advanced Information and Communication Technologies (AICT) ‑ 2019�Lviv, Ukraine�July 4 2019���Knowledge Representation in Smart Rules Engine�
Professor, Anatolii Kargin (kargin@kart.edu.ua)
Associate Professor, Tetyana Petrenko (petrenko_tg@kart.edu.ua)
Department of Information Technology
Ukrainian State University of Railway Transport (UkrSURT)
Kharkiv, Ukraine
Data processing� for IoT applications
Features
Two approaches
2
Rules Based systems technology in IoT�Rules Engine
3
Model
Pattern
Framework
Rule based systems models
4
Rules Engine Frameworks in IoT - Flow diagrams, Complex Event Processing, Apache Spark, Business Process Management
5
Waylay IoT rules engine
The Waylay IoT rules engine belongs to the group of inference engines, and it is based on the Bayesian Networks.
Every node in the graph infers its state to all other nodes, and that each node “feels” what other node is experiencing at any moment in time.
Waylay IoT can model uncertainties, but only in probabilistic way.
6
Rules Engine problems that do not allow to fully take into account the features of the IoT application domain
7
1
2
3
4
Smart Rules Engine model
8
Abstraction engine based on L-R fuzzy numbers calculations
Two stages RE. Engine of 1-st stage is abstraction from data
Multilevel structured fact is computational meaning of data from sensors obtained by abstraction engine
Domain knowledge are represented by semantic structured prototypes
Lotfi A. Zadeh conception FROM NUMBERS TO WORDS
Objective of the paper is Smart Rules Engine knowledge representation model
9
Abstraction from sensory data in nature
10
Abstraction processing model.�Abstraction of input data from sensors� reduces the number of rules
11
What is a multilevel fact representing data from sensors at different levels of abstraction� and� how to get it
?
12
What is Multilevel fact ?
13
How to get Multilevel fact ?
14
Quantitative abstraction from data
Definitive abstraction
Abstraction by generalization
…
Abstraction by generalization
15
Fact Fuzzy Characteristic (FFC)
16
Fact Fuzzy Characteristic (FFC)
17
Fact Fuzzy Characteristic (FFC)
18
Knowledge representation model.�Knowledge portion about concept
<N, know, {<Mi, (ai, bi, vi, gi)>, Mi 𝜖 ΩN},
N – concept ID;
know is symbolic description of a knowledge portion about concept;
ΩN={Mi}i=1,2,...,k is set of lower levels concepts, which are used in the definition of know concept;
Mi is the lower level concept, the knowledge portion of which is used in determining the concept N;
(ai, bi, vi, gi) are knowledge portion characteristics of concept Mi.
19
Knowledge representation model.�Knowledge portion about concept (continue)
20
Example Knowledge Portion Representation
Prototype Structure
Formal concept of 1.0 definition
<1.0, THERE IS AN OBJECT AT CLOSE RANGE,
{<0.1, (1.0, 0, 0.0, 1.0)>,
<0.2, (1.0, 0, 0.0, 1.0)>,
<0.3, (0.6, 0, 0.0, 1.0)>}>
21
Example Knowledge Portion Representation
know = THERE IS AN OBJECT AT CLOSE RANGE;
Ω1.0 = {0.1, 0.2, 0.3} is identifiers of concepts representing prototype concepts such as SECTION 1 (some object is on the 1st section), SECTION 2, SECTION 3, respectively. g1=1.0, reflects the expert's opinion that the concept SECTION 1 is distinguishing to determine concept THERE IS AN OBJECT AT CLOSE RANGE.
g1=1.0 indicates that the information about the location of an object on the 1st section (concept SECTION 1) is sufficient to describe the situation with the concept THERE IS AN OBJECT AT CLOSE RANGE
The dynamic parameters (b = 0, v = 0.0) indicate that according to the prototype, it is not important to know when the object appeared on the 1st section, but the only significant thing is that it is now on the 1st section.
22
SRE adaptability: the replenishment of new knowledge and the inclusion of new sources of data from sensors
23
SRE adaptability: the replenishment of new knowledge and the inclusion of new sources of data from sensors
24
SRE adaptability: inclusion of new sources of data from sensors
1.<0.1, some object is on the 1st section, {<>}>;
..
7.<0.7, some object is on the 2th section, {<>}>;
12.<1.2, object has moved slowly from section 2 to section 1, {<0.1,(1.0, 0, 0.15, 0.5)>, <0.2, (1.0, 2, 0.15, 0.5)>}>;
…
20.<1.7, object has moved slowly from section 7 to section 6, {<0.6, (1.0, 0, 0.15, 0.5)>, <0.7, (1.0, 2, 0.15, 0.5)>}>;
27. <1.14, there is no object near, {<0.1, (−1.0, 0, 0.0, 0.33)>, <0.2, (−1.0, 0, 0.0, 0.33)>, <0.3, (−1.0, 0, 0.0, 0.33)>}>;
…
33. <5.0, at close range the situation is safe, {<4.0, (1.0,0, 0.0, 0.5)>, <1.10, (1.0, 0, 0.0, 0.5)>}>.
34.<3.2, the object is approaching with a slowdown», {<2.2, (1.0, 1, 0.0, 0.5)>, <2.1, (1.0, 0, 0.0, 0.5)>}>;
35.<4.1, object close, approaching slowly, slowing, {<1.0, (1.0,0,0.0,0.33)>,<2.1, (1.0,0,0.0,0.33)>,<3.2, (1.0,0,0.0,0.33)>}>;
…
38.<5.2, before the object was close and approached slowly and slowed down, now the object is close stopped, {<4.1, (1.0, 1, 0.0, 0.5)>,<3.3, (1.0, 0, 0.0, 0.5)>}>;
39.<6.0, safely,{<5.1, (1.0, t, 0.0, 1.0)>,<5.2, (1.0,t,0.0,1.0)>}>;
40.<7.0, near safe, <5.0, (1.0,0,0.0,1.0)>,<6.0, (1.0,0,0.0,1.0)>}>.
25
Reasoning engine
26
Research and Training polygon IoT&SM
Available: https://www.youtube.com/channel/UCxCCUJvQwUBn9WEpaUh_fGg
(accessed Jun. 27, 2019).
27
Summary
Abstraction approach to processing data from sensors in rules based system overcomes problems:
due to the use of the knowledge representation model in the form of parameterized semantic prototypes and multilevel facts.
28
Future
29
Thanks
Questions ?
30