SlideShare a Scribd company logo
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 & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & ReasoningSajid Marwat
 
Truth management system
Truth  management systemTruth  management system
Truth management system
Mohammad Kamrul Hasan
 
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceKodok Ngorex
 
Artificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain SituationsArtificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain Situations
Laguna State Polytechnic University
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
vikas dhakane
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
The wumpus world
The wumpus worldThe wumpus world
The wumpus world
Megha Sharma
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial IntelligenceBise Mond
 
What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?
Anant Soft Computing
 
Uncertainty in AI
Uncertainty in AIUncertainty in AI
Uncertainty in AI
Amruth Veerabhadraiah
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
Tajim Md. Niamat Ullah Akhund
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
Yasir Khan
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
chauhankapil
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AIVishal Singh
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
Lê Anh Đạt
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
Tafhim Islam
 
Expert system 21 sldes
Expert system 21 sldesExpert system 21 sldes
Expert system 21 sldesYasir Khan
 
Practical Non-Monotonic Reasoning
Practical Non-Monotonic ReasoningPractical Non-Monotonic Reasoning
Practical Non-Monotonic Reasoning
Guido Governatori
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
Experfy
 

What's hot (20)

Knowledge Representation & Reasoning
Knowledge Representation & ReasoningKnowledge Representation & Reasoning
Knowledge Representation & Reasoning
 
Truth management system
Truth  management systemTruth  management system
Truth management system
 
Lecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial IntelligenceLecture5 Expert Systems And Artificial Intelligence
Lecture5 Expert Systems And Artificial Intelligence
 
Artificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain SituationsArtificial Intelligence - Reasoning in Uncertain Situations
Artificial Intelligence - Reasoning in Uncertain Situations
 
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
I.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE II. HEURISTIC FUNCTION IN AI III...
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
The wumpus world
The wumpus worldThe wumpus world
The wumpus world
 
Heuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.pptHeuristic Search Techniques Unit -II.ppt
Heuristic Search Techniques Unit -II.ppt
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?What is knowledge representation and reasoning ?
What is knowledge representation and reasoning ?
 
Uncertainty in AI
Uncertainty in AIUncertainty in AI
Uncertainty in AI
 
AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)AI Lecture 7 (uncertainty)
AI Lecture 7 (uncertainty)
 
Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence Knowledge Representation in Artificial intelligence
Knowledge Representation in Artificial intelligence
 
First order predicate logic (fopl)
First order predicate logic (fopl)First order predicate logic (fopl)
First order predicate logic (fopl)
 
Knowledge representation in AI
Knowledge representation in AIKnowledge representation in AI
Knowledge representation in AI
 
Stuart russell and peter norvig artificial intelligence - a modern approach...
Stuart russell and peter norvig   artificial intelligence - a modern approach...Stuart russell and peter norvig   artificial intelligence - a modern approach...
Stuart russell and peter norvig artificial intelligence - a modern approach...
 
Elements of dynamic programming
Elements of dynamic programmingElements of dynamic programming
Elements of dynamic programming
 
Expert system 21 sldes
Expert system 21 sldesExpert system 21 sldes
Expert system 21 sldes
 
Practical Non-Monotonic Reasoning
Practical Non-Monotonic ReasoningPractical Non-Monotonic Reasoning
Practical Non-Monotonic Reasoning
 
Uncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial IntelligenceUncertain Knowledge and Reasoning in Artificial Intelligence
Uncertain Knowledge and Reasoning in Artificial Intelligence
 

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 networks
Abhishek 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 Project
Valerii 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 Environment
George 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 logic
Veselin 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 Sahi
SilvaGraf83
 
Real time visualization of structured things
Real time visualization of structured thingsReal time visualization of structured things
Real time visualization of structured things
Nurul 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 Bangalore
Aidell2583
 
IRJET- Smart Sensory Furniture
IRJET-  	  Smart Sensory FurnitureIRJET-  	  Smart Sensory Furniture
IRJET- Smart Sensory Furniture
IRJET Journal
 
IoT Levels and Deployment Templates
IoT Levels and Deployment TemplatesIoT Levels and Deployment Templates
IoT Levels and Deployment Templates
Prakash Honnur
 
Lect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdfLect14-15 iotlevelsanddeploymenttemplates.pdf
Lect14-15 iotlevelsanddeploymenttemplates.pdf
jayakumar703719
 
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
Pace IT at Edmonds Community College
 
UC PRESENTATION.pptx
UC PRESENTATION.pptxUC PRESENTATION.pptx
UC PRESENTATION.pptx
VishalThakur201540
 
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 Devices
Srinath Perera
 
EMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfEMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdf
NadiSarj2
 
PHR PPT (1).pptx
PHR PPT (1).pptxPHR PPT (1).pptx
PHR PPT (1).pptx
VarunJain966586
 
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
 
Ch20
Ch20Ch20
Robotics and expert systems
Robotics and expert systemsRobotics and expert systems
Robotics and expert systems
ANTONY ODHIAMBO OKEYO
 
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 estimation
Abhishek Kori
 
Blockchain and cryptocurrency
Blockchain and cryptocurrencyBlockchain and cryptocurrency
Blockchain and cryptocurrency
Abhishek Kori
 
Leader Vs Managaer
Leader Vs ManagaerLeader Vs Managaer
Leader Vs Managaer
Abhishek Kori
 
Flappy bird
Flappy birdFlappy bird
Flappy bird
Abhishek Kori
 
Math in daily life
Math in daily life Math in daily life
Math in daily life
Abhishek 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

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 

Recently uploaded (20)

PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 

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.