SlideShare a Scribd company logo
1 of 22
Rule Based Expert System with uncertainty
management in Smart Homes
Team Members
o Abhay R Dixit - 1DS13CS003
o Abhishek Kori - 1DS13CS007
o Diksha Kushwaha - 1DS13CS034
o Varshini B. K. – 1DS13CS112
Under the guidance of
● Prof. Rashmi S R
Smart home
● A home equipped with lighting, heating, and electronic devices that can be controlled
remotely by smartphone or computer.
● Falls in the domain of IOT
● Sensor placed around the house for to sense the outer and inner environment
● All the sensors and electronic components are controlled by central processing and
control unit
Need for smart homes
● All the electronic devices are getting smarter and connected to the internet
● Advancement and digitalization of real estate sector
● Security and comfortable living
● Saves energy and cost of running house activities
● Personalised home living
Expert system
● A piece of software which uses databases of expert knowledge to offer advice or make
decisions
● It mimics a human expert
● Examples: Medical , Agriculture field
Rule based expert system
● A rule-based system is a set of "if-then" statements that uses a set of assertions, to
which rules on how to act upon those assertions are created.
Components
● Domain specific knowledge base
● Inference engine
● User Interface
Uncertainty
● The sensors and electronic appliances are exposed to nature and human interaction. They
are more likely to get damaged due and give wrong input
● The situations like sensor getting damaged , devices not able to connect to the internet
etc
● These situations collectively contribute to uncertainty situations
Need to solve uncertain situations
● The likelihood the uncertain situations is high
● Customers lose trust over the system
● Wrong decisions or no decisions may cause discomfort and in some cases it might be life
threatening
Problem statement
To build an smart system in a regular home which will react and take appropriate decisions to
changing environment and also counter uncertainty situations.
It should be
● Safe
● Dynamic
● Smart
● Adaptable
● Real time
Literature Review
“ Explicit Knowledge-based Reasoning for Visual Question Answering “ [1]
Pros:Recognising the question and answering it with reason.
Cons:The problem is that the amount of prior information that can be encoded within a LSTM system is very
limited
“Integration of Rule based and Case based Reasoning System to Support Decision Making “ [2]
Pros: Case Based Reasoning system. An approach has been made to develop a decision support system which will
take decision under complex environment.
Cons: The integration of raw facts and knowledge into a linking case base knowledge to enhance the potential of
the candidate system and to improve the probability of finding the correct measure.
“Detecting Inconsistencies in Rule-Based Reasoning for Ambient Intelligence” [3]
Pros: The purpose of this approach is to facilitate the creation of an information system for AmI using ontological
model and rule-based reasoning, in order to reduce the errors and encourage a more flexible prototyping process
Cons: little refactoring exists in models and rules, and expert-users often find themselves with redundancy between
the various rules’ content
“A Case-Based Reasoning System to Control Traffic at Signalized Intersections” [4]
Pros: Monitors , record and measure the traffic flow and regulates the signal
Cons: Initial knowledge is not available and and do not specify the correct source of knowledge
“A Rule-Based Tracking System for Video Surveillance Applications” [5]
Pros: Rule based object identification to help in monitoring video captured by security cameras
Cons: It’s very domain specific and can only focus on certain kind of situations
“Rule-Based Solution for Context-Aware Reasoning on Mobile Devices” [6]
Pros: Mobile computing devices which has even the knowledge of the context which it's currently present in
Cons: Modeling , representing and classifying context is a big challenge
“Considerations on uncertain spatio-temporal reasoning in smart home systems” [7]
Pros: Helps in assisting the elderly inside and promote over all healthy lifestyle
Cons: Inference and measurement of the environment by the hardware is still in its early stage
Implementation
Rule base and factbase
● Rule base and fact base are implemented in Java expert system shell (SHELL)
● What is JESS?
JESS execution Cycle
1. Match
2. Conflict
3. Act
JESS syntax
● (deftemplate <template-name> (slot <var-name>) (slot <var-name>) (slot <var-name>))
● (defrule <rule-name>
"<Brief description>"
(<Conditon or LHS>)
=>
(<Action or RHS>)
Proposed Model
Components
● Rain and moisture sensor
● Event detection module
● Bayesian network
● Knowledge base
Bayesian Network
● is a probabilistic graphical model that represents a set of random variables and their
conditional dependencies via a directed acyclic graph
● Example: Rain , sprinkler, grass wet
Conditional probability
● Conditional probability is a measure of the probability of an event given that (by
assumption, presumption, assertion or evidence) another event has occurred.
Example taking from conditional probability table
● With conditional probability and table we can answer questions like
“What is the probability that it is raining, given the grass is wet?”
Overall process flow
1. Send sensor input to event detection module
2. Sense for any event (rain or no rain)
3. If detected assert the fact in fact base
4. Inference engine checks the rules for matching rule with fact in the fact base
5. If a rule is matched then RHS part of that rule gets executed
6. If there is uncertain condition go to Bayesian network , conditional probability module
to calculate the probability of rain
7. If the probability is more than the pre set threshold then assert its rain true else set false
in the fact base
8. Inference engine again scans through the rules for matching rules and executes the
respective RHS
9. Depending on the RHS part the action is sent to electromechanical unit
Rain Detection Sensor
● If there is no rain, the resistance between the wires will be very high and there will
be no conduction between the wires in the sensor.
● If there is rain, the water drops will fall on the rain sensor which will decrease the
resistance between the wires and wires on the sensor board will conduct
Soil Moisture Sensor
● The Soil Moisture Sensor uses capacitance to measure dielectric permittivity of the
surrounding medium.
● In soil, dielectric permittivity is a function of the water content.
● The sensor creates a voltage proportional to the dielectric permittivity, and therefore
the water content of the soil.
Raspberry Pi
● The Raspberry Pi is a low cost, single-board computer that is capable of doing
everything a desktop computer can to do
● It is very easy to interface hardware with raspberrry pi.
Servo Motors
● Servos are controlled by sending an electrical pulse of variable width, or pulse
width modulation (PWM), through the control wire.
● The PWM sent to the motor determines position of the shaft, and based on the
duration of the pulse sent via the control wire; the rotor will turn to the desired
position.
● For example, a 1.5ms pulse will make the motor turn to the 90° position. Shorter
than 1.5ms moves it in the counter clockwise direction toward the 0° position, and
any longer than 1.5ms will turn the servo in a clockwise direction toward the 180°
position.
Proposed Model (Automatic doorbell)
Video stream : Video stream is a combination of various frames moving at a certain
speed.
Frame Processing , Key frames : All the frame are separated and and processed
separately, the important frames (key frames) are generated for the video.
Video Processing System: Object identification and annotation in the key frames are
done and their actions are noted down.
Facts Generation : Facts are generated depending on the object annotation.
Video Inference System : Inference is derived by checking the facts against the rules and
an action is decided upon.
Hybrid Knowledge Base : A theoretical framework capturing all the knowledge of the
system.
LabelMe - Annotation Tool
● The LabelMe annotation tool
provides a means for users to
contribute to the project.
● The tool can be accessed
anonymously or by logging in to
a free account.
● To access the tool, users must
have a compatible web browser
with javascript support.
● An XML code can be generate
that contain the data about the
annotated image.
Thank You

More Related Content

What's hot

Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceRamla Sheikh
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI Bharat Bhushan
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Yasir Khan
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agentsMegha Sharma
 
Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence Lalit Birla
 
Alpha-beta pruning (Artificial Intelligence)
Alpha-beta pruning (Artificial Intelligence)Alpha-beta pruning (Artificial Intelligence)
Alpha-beta pruning (Artificial Intelligence)Falak Chaudry
 
Relationship Among Token, Lexeme & Pattern
Relationship Among Token, Lexeme & PatternRelationship Among Token, Lexeme & Pattern
Relationship Among Token, Lexeme & PatternBharat Rathore
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AIAmey Kerkar
 
Representing uncertainty in expert systems
Representing uncertainty in expert systemsRepresenting uncertainty in expert systems
Representing uncertainty in expert systemsbhupendra kumar
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representationSajan Sahu
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningVeni7
 

What's hot (20)

Knowledge representation In Artificial Intelligence
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
 
Planning
PlanningPlanning
Planning
 
Rule Based System
Rule Based SystemRule Based System
Rule Based System
 
Planning
Planning Planning
Planning
 
Control Strategies in AI
Control Strategies in AI Control Strategies in AI
Control Strategies in AI
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
Problem solving agents
Problem solving agentsProblem solving agents
Problem solving agents
 
Agents in Artificial intelligence
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence
 
Peephole Optimization
Peephole OptimizationPeephole Optimization
Peephole Optimization
 
Alpha-beta pruning (Artificial Intelligence)
Alpha-beta pruning (Artificial Intelligence)Alpha-beta pruning (Artificial Intelligence)
Alpha-beta pruning (Artificial Intelligence)
 
Sementic nets
Sementic netsSementic nets
Sementic nets
 
Mycin
MycinMycin
Mycin
 
Relationship Among Token, Lexeme & Pattern
Relationship Among Token, Lexeme & PatternRelationship Among Token, Lexeme & Pattern
Relationship Among Token, Lexeme & Pattern
 
Control Strategies in AI
Control Strategies in AIControl Strategies in AI
Control Strategies in AI
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
Expert Systems
Expert SystemsExpert Systems
Expert Systems
 
Representing uncertainty in expert systems
Representing uncertainty in expert systemsRepresenting uncertainty in expert systems
Representing uncertainty in expert systems
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
Artificial intelligence and knowledge representation
Artificial intelligence and knowledge representationArtificial intelligence and knowledge representation
Artificial intelligence and knowledge representation
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 

Similar to Rule based expert system

Rulebased system presentation under uncertainty using Bayesian networks
Rulebased system presentation under uncertainty using Bayesian networksRulebased system presentation under uncertainty using Bayesian networks
Rulebased system presentation under uncertainty using Bayesian networksAbhishek Kori
 
Artificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support ProjectArtificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support ProjectValerii Klymchuk
 
Rule-based Real-Time Activity Recognition in a Smart Home Environment
Rule-based Real-Time Activity Recognition in a Smart Home EnvironmentRule-based Real-Time Activity Recognition in a Smart Home Environment
Rule-based Real-Time Activity Recognition in a Smart Home EnvironmentGeorge Baryannis
 
A practical look at how to build & run IoT business logic
A practical look at how to build & run IoT business logicA practical look at how to build & run IoT business logic
A practical look at how to build & run IoT business logicVeselin Pizurica
 
1 Object tracking using sensor network Orla Sahi
1       Object tracking using sensor network Orla Sahi1       Object tracking using sensor network Orla Sahi
1 Object tracking using sensor network Orla SahiSilvaGraf83
 
Real time visualization of structured things
Real time visualization of structured thingsReal time visualization of structured things
Real time visualization of structured thingsNurul Amin Choudhury
 
Embedded system projects for final year Bangalore
Embedded system projects for final year BangaloreEmbedded system projects for final year Bangalore
Embedded system projects for final year BangaloreAidell2583
 
IRJET- Smart Sensory Furniture
IRJET-  	  Smart Sensory FurnitureIRJET-  	  Smart Sensory Furniture
IRJET- Smart Sensory FurnitureIRJET Journal
 
IoT Levels and Deployment Templates
IoT Levels and Deployment TemplatesIoT Levels and Deployment Templates
IoT Levels and Deployment TemplatesPrakash Honnur
 
Lect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdfLect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdfjayakumar703719
 
Ch20-Software Engineering 9
Ch20-Software Engineering 9Ch20-Software Engineering 9
Ch20-Software Engineering 9Ian Sommerville
 
Data, Big Data and real time analytics for Connected Devices
Data, Big Data and real time analytics for Connected DevicesData, Big Data and real time analytics for Connected Devices
Data, Big Data and real time analytics for Connected DevicesSrinath Perera
 
EMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfEMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfNadiSarj2
 
Composite Intrusion Detection in Process Control Networks
Composite Intrusion Detection in Process Control NetworksComposite Intrusion Detection in Process Control Networks
Composite Intrusion Detection in Process Control Networksguest8fdee6
 
IRJET- Surveillance of Object Motion Detection and Caution System using B...
IRJET-  	  Surveillance of Object Motion Detection and Caution System using B...IRJET-  	  Surveillance of Object Motion Detection and Caution System using B...
IRJET- Surveillance of Object Motion Detection and Caution System using B...IRJET Journal
 

Similar to Rule based expert system (20)

Rulebased system presentation under uncertainty using Bayesian networks
Rulebased system presentation under uncertainty using Bayesian networksRulebased system presentation under uncertainty using Bayesian networks
Rulebased system presentation under uncertainty using Bayesian networks
 
Artificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support ProjectArtificial Intelligence for Automated Decision Support Project
Artificial Intelligence for Automated Decision Support Project
 
Rule-based Real-Time Activity Recognition in a Smart Home Environment
Rule-based Real-Time Activity Recognition in a Smart Home EnvironmentRule-based Real-Time Activity Recognition in a Smart Home Environment
Rule-based Real-Time Activity Recognition in a Smart Home Environment
 
A practical look at how to build & run IoT business logic
A practical look at how to build & run IoT business logicA practical look at how to build & run IoT business logic
A practical look at how to build & run IoT business logic
 
1 Object tracking using sensor network Orla Sahi
1       Object tracking using sensor network Orla Sahi1       Object tracking using sensor network Orla Sahi
1 Object tracking using sensor network Orla Sahi
 
Real time visualization of structured things
Real time visualization of structured thingsReal time visualization of structured things
Real time visualization of structured things
 
Embedded system projects for final year Bangalore
Embedded system projects for final year BangaloreEmbedded system projects for final year Bangalore
Embedded system projects for final year Bangalore
 
IRJET- Smart Sensory Furniture
IRJET-  	  Smart Sensory FurnitureIRJET-  	  Smart Sensory Furniture
IRJET- Smart Sensory Furniture
 
IoT Levels and Deployment Templates
IoT Levels and Deployment TemplatesIoT Levels and Deployment Templates
IoT Levels and Deployment Templates
 
Lect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdfLect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdf
 
PACE-IT, Security+ 2.4: Basic Forensic Procedures
PACE-IT, Security+ 2.4: Basic Forensic ProceduresPACE-IT, Security+ 2.4: Basic Forensic Procedures
PACE-IT, Security+ 2.4: Basic Forensic Procedures
 
UC PRESENTATION.pptx
UC PRESENTATION.pptxUC PRESENTATION.pptx
UC PRESENTATION.pptx
 
Ch20-Software Engineering 9
Ch20-Software Engineering 9Ch20-Software Engineering 9
Ch20-Software Engineering 9
 
Data, Big Data and real time analytics for Connected Devices
Data, Big Data and real time analytics for Connected DevicesData, Big Data and real time analytics for Connected Devices
Data, Big Data and real time analytics for Connected Devices
 
EMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfEMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdf
 
PHR PPT (1).pptx
PHR PPT (1).pptxPHR PPT (1).pptx
PHR PPT (1).pptx
 
Composite Intrusion Detection in Process Control Networks
Composite Intrusion Detection in Process Control NetworksComposite Intrusion Detection in Process Control Networks
Composite Intrusion Detection in Process Control Networks
 
Ch20
Ch20Ch20
Ch20
 
Robotics and expert systems
Robotics and expert systemsRobotics and expert systems
Robotics and expert systems
 
IRJET- Surveillance of Object Motion Detection and Caution System using B...
IRJET-  	  Surveillance of Object Motion Detection and Caution System using B...IRJET-  	  Surveillance of Object Motion Detection and Caution System using B...
IRJET- Surveillance of Object Motion Detection and Caution System using B...
 

More from Abhishek Kori

Product manager interview estimation
Product manager interview estimationProduct manager interview estimation
Product manager interview estimationAbhishek Kori
 
Blockchain and cryptocurrency
Blockchain and cryptocurrencyBlockchain and cryptocurrency
Blockchain and cryptocurrencyAbhishek Kori
 

More from Abhishek Kori (6)

Product manager interview estimation
Product manager interview estimationProduct manager interview estimation
Product manager interview estimation
 
Blockchain and cryptocurrency
Blockchain and cryptocurrencyBlockchain and cryptocurrency
Blockchain and cryptocurrency
 
Leader Vs Managaer
Leader Vs ManagaerLeader Vs Managaer
Leader Vs Managaer
 
intership_report
intership_reportintership_report
intership_report
 
Flappy bird
Flappy birdFlappy bird
Flappy bird
 
Math in daily life
Math in daily life Math in daily life
Math in daily life
 

Recently uploaded

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Rule based expert system

  • 1. Rule Based Expert System with uncertainty management in Smart Homes Team Members o Abhay R Dixit - 1DS13CS003 o Abhishek Kori - 1DS13CS007 o Diksha Kushwaha - 1DS13CS034 o Varshini B. K. – 1DS13CS112 Under the guidance of ● Prof. Rashmi S R
  • 2. Smart home ● A home equipped with lighting, heating, and electronic devices that can be controlled remotely by smartphone or computer. ● Falls in the domain of IOT ● Sensor placed around the house for to sense the outer and inner environment ● All the sensors and electronic components are controlled by central processing and control unit
  • 3. Need for smart homes ● All the electronic devices are getting smarter and connected to the internet ● Advancement and digitalization of real estate sector ● Security and comfortable living ● Saves energy and cost of running house activities ● Personalised home living
  • 4. Expert system ● A piece of software which uses databases of expert knowledge to offer advice or make decisions ● It mimics a human expert ● Examples: Medical , Agriculture field
  • 5. Rule based expert system ● A rule-based system is a set of "if-then" statements that uses a set of assertions, to which rules on how to act upon those assertions are created. Components ● Domain specific knowledge base ● Inference engine ● User Interface
  • 6. Uncertainty ● The sensors and electronic appliances are exposed to nature and human interaction. They are more likely to get damaged due and give wrong input ● The situations like sensor getting damaged , devices not able to connect to the internet etc ● These situations collectively contribute to uncertainty situations Need to solve uncertain situations ● The likelihood the uncertain situations is high ● Customers lose trust over the system ● Wrong decisions or no decisions may cause discomfort and in some cases it might be life threatening
  • 7. Problem statement To build an smart system in a regular home which will react and take appropriate decisions to changing environment and also counter uncertainty situations. It should be ● Safe ● Dynamic ● Smart ● Adaptable ● Real time
  • 8. Literature Review “ Explicit Knowledge-based Reasoning for Visual Question Answering “ [1] Pros:Recognising the question and answering it with reason. Cons:The problem is that the amount of prior information that can be encoded within a LSTM system is very limited “Integration of Rule based and Case based Reasoning System to Support Decision Making “ [2] Pros: Case Based Reasoning system. An approach has been made to develop a decision support system which will take decision under complex environment. Cons: The integration of raw facts and knowledge into a linking case base knowledge to enhance the potential of the candidate system and to improve the probability of finding the correct measure. “Detecting Inconsistencies in Rule-Based Reasoning for Ambient Intelligence” [3] Pros: The purpose of this approach is to facilitate the creation of an information system for AmI using ontological model and rule-based reasoning, in order to reduce the errors and encourage a more flexible prototyping process Cons: little refactoring exists in models and rules, and expert-users often find themselves with redundancy between the various rules’ content
  • 9. “A Case-Based Reasoning System to Control Traffic at Signalized Intersections” [4] Pros: Monitors , record and measure the traffic flow and regulates the signal Cons: Initial knowledge is not available and and do not specify the correct source of knowledge “A Rule-Based Tracking System for Video Surveillance Applications” [5] Pros: Rule based object identification to help in monitoring video captured by security cameras Cons: It’s very domain specific and can only focus on certain kind of situations “Rule-Based Solution for Context-Aware Reasoning on Mobile Devices” [6] Pros: Mobile computing devices which has even the knowledge of the context which it's currently present in Cons: Modeling , representing and classifying context is a big challenge “Considerations on uncertain spatio-temporal reasoning in smart home systems” [7] Pros: Helps in assisting the elderly inside and promote over all healthy lifestyle Cons: Inference and measurement of the environment by the hardware is still in its early stage
  • 10. Implementation Rule base and factbase ● Rule base and fact base are implemented in Java expert system shell (SHELL) ● What is JESS? JESS execution Cycle 1. Match 2. Conflict 3. Act JESS syntax ● (deftemplate <template-name> (slot <var-name>) (slot <var-name>) (slot <var-name>)) ● (defrule <rule-name> "<Brief description>" (<Conditon or LHS>) => (<Action or RHS>)
  • 11. Proposed Model Components ● Rain and moisture sensor ● Event detection module ● Bayesian network ● Knowledge base
  • 12. Bayesian Network ● is a probabilistic graphical model that represents a set of random variables and their conditional dependencies via a directed acyclic graph ● Example: Rain , sprinkler, grass wet
  • 13. Conditional probability ● Conditional probability is a measure of the probability of an event given that (by assumption, presumption, assertion or evidence) another event has occurred. Example taking from conditional probability table ● With conditional probability and table we can answer questions like “What is the probability that it is raining, given the grass is wet?”
  • 14. Overall process flow 1. Send sensor input to event detection module 2. Sense for any event (rain or no rain) 3. If detected assert the fact in fact base 4. Inference engine checks the rules for matching rule with fact in the fact base 5. If a rule is matched then RHS part of that rule gets executed 6. If there is uncertain condition go to Bayesian network , conditional probability module to calculate the probability of rain 7. If the probability is more than the pre set threshold then assert its rain true else set false in the fact base 8. Inference engine again scans through the rules for matching rules and executes the respective RHS 9. Depending on the RHS part the action is sent to electromechanical unit
  • 15. Rain Detection Sensor ● If there is no rain, the resistance between the wires will be very high and there will be no conduction between the wires in the sensor. ● If there is rain, the water drops will fall on the rain sensor which will decrease the resistance between the wires and wires on the sensor board will conduct
  • 16. Soil Moisture Sensor ● The Soil Moisture Sensor uses capacitance to measure dielectric permittivity of the surrounding medium. ● In soil, dielectric permittivity is a function of the water content. ● The sensor creates a voltage proportional to the dielectric permittivity, and therefore the water content of the soil.
  • 17. Raspberry Pi ● The Raspberry Pi is a low cost, single-board computer that is capable of doing everything a desktop computer can to do ● It is very easy to interface hardware with raspberrry pi.
  • 18. Servo Motors ● Servos are controlled by sending an electrical pulse of variable width, or pulse width modulation (PWM), through the control wire. ● The PWM sent to the motor determines position of the shaft, and based on the duration of the pulse sent via the control wire; the rotor will turn to the desired position. ● For example, a 1.5ms pulse will make the motor turn to the 90° position. Shorter than 1.5ms moves it in the counter clockwise direction toward the 0° position, and any longer than 1.5ms will turn the servo in a clockwise direction toward the 180° position.
  • 20. Video stream : Video stream is a combination of various frames moving at a certain speed. Frame Processing , Key frames : All the frame are separated and and processed separately, the important frames (key frames) are generated for the video. Video Processing System: Object identification and annotation in the key frames are done and their actions are noted down. Facts Generation : Facts are generated depending on the object annotation. Video Inference System : Inference is derived by checking the facts against the rules and an action is decided upon. Hybrid Knowledge Base : A theoretical framework capturing all the knowledge of the system.
  • 21. LabelMe - Annotation Tool ● The LabelMe annotation tool provides a means for users to contribute to the project. ● The tool can be accessed anonymously or by logging in to a free account. ● To access the tool, users must have a compatible web browser with javascript support. ● An XML code can be generate that contain the data about the annotated image.