SlideShare une entreprise Scribd logo
1  sur  8
An Approach for Data-Driven and Logic-
Based Complex Event Processing
Darko Anicic, Paul Fodor, Roland Stühmer, Nenad Stojanovic
3rd ACM International Conference on Distributed Event-Based Systems (DEBS
2009), Nashville, USA
Motivation

 Role of Logic in Event Processing:
   • Formal logical semantics to ground well defined behaviour of EP;
   • Further on, to control reactive behaviour (actions/reactions)
       triggered by detected events;
 Problem:
   • State-of-the-art logic-based EP is query driven (not event-driven)
 ETALIS approach is logic-based and event-driven!
   • Reasoning over time, space, and context in EP;
   • Detection of complex events, states, and situations of interest;
   • Pattern rule management: consistency checking, minimal set of
       rules, correctness.
ETALIS Algorithm
                                                        1. Complex pattern (not
a ⊗ b ⊗ c → ce1
                                                        event-driven rule)
((a ⊗ b) ⊗ c) → ce1                                     2. Decoupling

a ⊗ b → ie1                                             3. Binarization
ie1 ⊗ c → ce1

a :- while_do(a,1).
a(1) :- ins(goal(b,a,ie1)).                             4. Event-driven
                                                        backward
b :- while_do(b,1).
b(1) :- goal(b,a,ie1) ⊗ del(goal(b,a,ie1)) ⊗ ie1.       chaining
                                                        rules
ie1 :- while_do(ie1,1).
ie1(1) :- ins(goal(c,ie1,ce1)).

c :- while_do(c,1).
c(1) :- goal(c,ie1,ce1) ⊗ del(goal(c,ie1,ce1)) ⊗ ce1.

ce1 :- action1.
ETALIS Update Algorithm
a ⊗ b ⊗ c → ce1     a :- while_do(a,1).
                    a :- while_do(a,1).
                    a(1) :- ins(goal(b,a,ie1)).
b ⊗ c ⊗ d → ce2     a(1) :- ins(goal(b,a,ie1)).
                    b :- while_do(b,1).
c ⊗ d → ce3         b(1)while_do(b,1). ⊗ del(goal(b,a,ie1)) ⊗ ie1.
                    b :- :- goal(b,a,ie1)
                    b(1) :- goal(b,a,ie1) * del(goal(b,a,ie1)) * ie1.
                    b(2):-:-while_do(ie1,1).
                    ie1      ins(goal(c,b,ie2)).
                    ie1(1) :- ins(goal(c,ie1,ce1)).
                    c :- while_do(c,1).
                    c(1) :- goal(c,ie1,ce1) * del(goal(c,ie1,ce1)) * ce1.
                    c :- while_do(c,1).
                    c(2) goal(c,b,ie2) * ⊗ del(goal(c,ie1,ce1))
                    c(1) :- goal(c,ie1,ce1)del(goal(c,b,ie2)) * ie2. ⊗ ce1.
                    c(3) :- ins(goal(d,c,ce3)).
                    ce1 :- action1.
                    d :- while_do(d,1).
                    d(1) :- goal(d,ie2,ce2) * del(goal(d,ie2,ce2)) * ce2.
                    d(2) :- goal(d,c,ce3) * del(goal(d,c,ce3)) * ce3.

                    ie1 :- while_do(ie1,1).
                    ie1(1) :- ins(goal(c,ie1,ce1)).

                    ie2 :- while_do(ie2,1).
                    ie2(1) :- ins(goal(d,ie2,ce2)).
Representation of Binary Events
                                  1. Complex pattern (not
a ⊗ b ⊗ c → ce1
                                  event-driven rule)
((a ⊗ b) ⊗ c) → ce1               2. Decoupling

a ⊗ b → ie1                       3. Binarization
ie1 ⊗ c → ce1


    ie1                 ce1       4. Representation
                                  of binary events

    ⊗                   ⊗
a         b       ie1         c
ETALIS Candelas
a ⊗ b ⊗ c → ce1                             a

b ⊗ c ⊗ d → ce2                             b
c ⊗ d → ce3                                 c

                                            d

                                            ie1
                          ⊗
                                            ie2
                  ⊗
                                 ⊗          ce1

                                            ce2
                      ⊗                     ce3
      ⊗
Advantages of ETALIS
                      Possibilities to        Different consumption   Standard event
Reasoning and         discover a desired      policies of events      operators supported:
querying over whole   state in the process    supported.
event space.          of pattern detection.                           • sequence
                                                                      • parallel composition
                                                                      • conjunction
                                                                      • negation
                                                                      • disjunction
                                              ⊗
                                                                      • window operators
                                                                      etc.
                      ⊗
                                                                ⊗     New operators easy to
                                                                      develop.

                                                                       Aggregation
                                                                       functions supported:
                                     ⊗                                 • count
         ⊗                                                             • sum
                                                  Handling out-of-     • min
                                                  order events
                                                  supported.           • max
                                                                       • average
Thank you!
                     ETALIS
(Event-driven Transaction Logic Inference System)
                   Open source:
         http://code.google.com/p/etalis

            See also our Live DEMO at:
    http://krake26.perimeter.fzi.de:8080/etalis

                                      darko.anicic@fzi.de
                                   pfodor@cs.sunysb.edu
                                  roland.stuehmer@fzi.de
                                 nenad.stojanovic@fzi.de

Contenu connexe

En vedette

Event Processing and Stream Reasoning with ETALIS
Event Processing and Stream Reasoning with ETALISEvent Processing and Stream Reasoning with ETALIS
Event Processing and Stream Reasoning with ETALIS
Darko Anicic
 
Twister.pps
Twister.ppsTwister.pps
Twister.pps
kirdocs
 
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
Hugo Brioso
 

En vedette (11)

Event Processing and Stream Reasoning with ETALIS
Event Processing and Stream Reasoning with ETALISEvent Processing and Stream Reasoning with ETALIS
Event Processing and Stream Reasoning with ETALIS
 
ETALIS at RR 2010
ETALIS at RR 2010ETALIS at RR 2010
ETALIS at RR 2010
 
Twister.pps
Twister.ppsTwister.pps
Twister.pps
 
Pmp pmi - training - project management certificate programme
Pmp   pmi - training - project management certificate programmePmp   pmi - training - project management certificate programme
Pmp pmi - training - project management certificate programme
 
Evaluación Aeropuerto El Trompillo, by Roger Flores
Evaluación Aeropuerto El Trompillo, by Roger FloresEvaluación Aeropuerto El Trompillo, by Roger Flores
Evaluación Aeropuerto El Trompillo, by Roger Flores
 
ETALIS_DEBS_2010
ETALIS_DEBS_2010ETALIS_DEBS_2010
ETALIS_DEBS_2010
 
Hugo Brioso | Website Design & Development | Graphic Design | Portfolio
Hugo Brioso | Website Design & Development | Graphic Design | PortfolioHugo Brioso | Website Design & Development | Graphic Design | Portfolio
Hugo Brioso | Website Design & Development | Graphic Design | Portfolio
 
Eye Caching Photos with Great Quotes
Eye Caching Photos with Great QuotesEye Caching Photos with Great Quotes
Eye Caching Photos with Great Quotes
 
Next Generation Learning Berbasis Crayonpedia
Next Generation Learning Berbasis CrayonpediaNext Generation Learning Berbasis Crayonpedia
Next Generation Learning Berbasis Crayonpedia
 
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
Hugo Brioso | Corporate Identity, Logo Design & Branding | Stationery | Adver...
 
GAS - Google Analytics on Steroids
GAS - Google Analytics on SteroidsGAS - Google Analytics on Steroids
GAS - Google Analytics on Steroids
 

Dernier

Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
DUBAI (+971)581248768 BUY ABORTION PILLS IN ABU dhabi...Qatar
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
ZurliaSoop
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
Nauman Safdar
 

Dernier (20)

Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 Updated
 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Falcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to ProsperityFalcon's Invoice Discounting: Your Path to Prosperity
Falcon's Invoice Discounting: Your Path to Prosperity
 
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
!~+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUD...
 
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGParadip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Paradip CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Falcon Invoice Discounting: Tailored Financial Wings
Falcon Invoice Discounting: Tailored Financial WingsFalcon Invoice Discounting: Tailored Financial Wings
Falcon Invoice Discounting: Tailored Financial Wings
 
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdfTVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
TVB_The Vietnam Believer Newsletter_May 6th, 2024_ENVol. 006.pdf
 
Power point presentation on enterprise performance management
Power point presentation on enterprise performance managementPower point presentation on enterprise performance management
Power point presentation on enterprise performance management
 
Pre Engineered Building Manufacturers Hyderabad.pptx
Pre Engineered  Building Manufacturers Hyderabad.pptxPre Engineered  Building Manufacturers Hyderabad.pptx
Pre Engineered Building Manufacturers Hyderabad.pptx
 
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pillsMifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
Mifty kit IN Salmiya (+918133066128) Abortion pills IN Salmiyah Cytotec pills
 
Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030Over the Top (OTT) Market Size & Growth Outlook 2024-2030
Over the Top (OTT) Market Size & Growth Outlook 2024-2030
 
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
Unveiling Falcon Invoice Discounting: Leading the Way as India's Premier Bill...
 
New 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck TemplateNew 2024 Cannabis Edibles Investor Pitch Deck Template
New 2024 Cannabis Edibles Investor Pitch Deck Template
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
 
Rice Manufacturers in India | Shree Krishna Exports
Rice Manufacturers in India | Shree Krishna ExportsRice Manufacturers in India | Shree Krishna Exports
Rice Manufacturers in India | Shree Krishna Exports
 
Cracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' SlideshareCracking the 'Career Pathing' Slideshare
Cracking the 'Career Pathing' Slideshare
 
Mckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for ViewingMckinsey foundation level Handbook for Viewing
Mckinsey foundation level Handbook for Viewing
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 

ETALIS at Debs 09

  • 1. An Approach for Data-Driven and Logic- Based Complex Event Processing Darko Anicic, Paul Fodor, Roland Stühmer, Nenad Stojanovic 3rd ACM International Conference on Distributed Event-Based Systems (DEBS 2009), Nashville, USA
  • 2. Motivation  Role of Logic in Event Processing: • Formal logical semantics to ground well defined behaviour of EP; • Further on, to control reactive behaviour (actions/reactions) triggered by detected events;  Problem: • State-of-the-art logic-based EP is query driven (not event-driven)  ETALIS approach is logic-based and event-driven! • Reasoning over time, space, and context in EP; • Detection of complex events, states, and situations of interest; • Pattern rule management: consistency checking, minimal set of rules, correctness.
  • 3. ETALIS Algorithm 1. Complex pattern (not a ⊗ b ⊗ c → ce1 event-driven rule) ((a ⊗ b) ⊗ c) → ce1 2. Decoupling a ⊗ b → ie1 3. Binarization ie1 ⊗ c → ce1 a :- while_do(a,1). a(1) :- ins(goal(b,a,ie1)). 4. Event-driven backward b :- while_do(b,1). b(1) :- goal(b,a,ie1) ⊗ del(goal(b,a,ie1)) ⊗ ie1. chaining rules ie1 :- while_do(ie1,1). ie1(1) :- ins(goal(c,ie1,ce1)). c :- while_do(c,1). c(1) :- goal(c,ie1,ce1) ⊗ del(goal(c,ie1,ce1)) ⊗ ce1. ce1 :- action1.
  • 4. ETALIS Update Algorithm a ⊗ b ⊗ c → ce1 a :- while_do(a,1). a :- while_do(a,1). a(1) :- ins(goal(b,a,ie1)). b ⊗ c ⊗ d → ce2 a(1) :- ins(goal(b,a,ie1)). b :- while_do(b,1). c ⊗ d → ce3 b(1)while_do(b,1). ⊗ del(goal(b,a,ie1)) ⊗ ie1. b :- :- goal(b,a,ie1) b(1) :- goal(b,a,ie1) * del(goal(b,a,ie1)) * ie1. b(2):-:-while_do(ie1,1). ie1 ins(goal(c,b,ie2)). ie1(1) :- ins(goal(c,ie1,ce1)). c :- while_do(c,1). c(1) :- goal(c,ie1,ce1) * del(goal(c,ie1,ce1)) * ce1. c :- while_do(c,1). c(2) goal(c,b,ie2) * ⊗ del(goal(c,ie1,ce1)) c(1) :- goal(c,ie1,ce1)del(goal(c,b,ie2)) * ie2. ⊗ ce1. c(3) :- ins(goal(d,c,ce3)). ce1 :- action1. d :- while_do(d,1). d(1) :- goal(d,ie2,ce2) * del(goal(d,ie2,ce2)) * ce2. d(2) :- goal(d,c,ce3) * del(goal(d,c,ce3)) * ce3. ie1 :- while_do(ie1,1). ie1(1) :- ins(goal(c,ie1,ce1)). ie2 :- while_do(ie2,1). ie2(1) :- ins(goal(d,ie2,ce2)).
  • 5. Representation of Binary Events 1. Complex pattern (not a ⊗ b ⊗ c → ce1 event-driven rule) ((a ⊗ b) ⊗ c) → ce1 2. Decoupling a ⊗ b → ie1 3. Binarization ie1 ⊗ c → ce1 ie1 ce1 4. Representation of binary events ⊗ ⊗ a b ie1 c
  • 6. ETALIS Candelas a ⊗ b ⊗ c → ce1 a b ⊗ c ⊗ d → ce2 b c ⊗ d → ce3 c d ie1 ⊗ ie2 ⊗ ⊗ ce1 ce2 ⊗ ce3 ⊗
  • 7. Advantages of ETALIS Possibilities to Different consumption Standard event Reasoning and discover a desired policies of events operators supported: querying over whole state in the process supported. event space. of pattern detection. • sequence • parallel composition • conjunction • negation • disjunction ⊗ • window operators etc. ⊗ ⊗ New operators easy to develop. Aggregation functions supported: ⊗ • count ⊗ • sum Handling out-of- • min order events supported. • max • average
  • 8. Thank you! ETALIS (Event-driven Transaction Logic Inference System) Open source: http://code.google.com/p/etalis See also our Live DEMO at: http://krake26.perimeter.fzi.de:8080/etalis darko.anicic@fzi.de pfodor@cs.sunysb.edu roland.stuehmer@fzi.de nenad.stojanovic@fzi.de