SlideShare a Scribd company logo
1 of 30
Controlling Home Appliances adopting
Chatbot using Machine Learning Approach
Kazi Mojammel Hossen, Minhazul Arefin , Rakib Hossen and Mohammed Nasir Uddin
ICO-2022: 5th International Conference on Intelligent Computing & Optimization 2022
Date: October 27-28, 2022
Overview
2
1 3 5
6
4
2
Introduction Literature Review
Experimental Analysis /
Result
Problem Statement/
Objective
Methodology Conclusion/
Future Work
Abstract
 In the last decades, home automation becomes popular and rapidly increased artificial intelligence-based controlling systems.
 It involves certain electrical and electronic systems in a building with some degree of computerized or automated control.
 It can control elements of our home environments (e.g. light, fans, electrical devices, and safety systems).
 We propose an approach that fully controlled the home appliances by chatbot technology.
 Our model can control the home appliances from a long distance because we used the wireless fidelity system.
3
1. Introduction
 Automation is a strategy, method, or system for using electronic equipment to operate or control a process while minimizing
human participation ..
 We concentrate on Intelligent Conversational Software Agents or Chatbots with a machine learning approach.
 A natural language-based (English) home automation system that will work through the internet and also enable one to
remotely manage his/her appliances from anywhere, anytime.
 The demand for mobile applications is continuously increasing because of the continuous evolution of the mobile device's
popularity and functionality. Using several forms of connection mechanisms, the smartphone application is utilized to manage
and monitor home appliances.
 This system is useful to help handicapped and aged people that control home appliances.
4
1.2 Problem Statement
 In the last decades, home automation becomes popular and rapidly increased artificial intelligence-based controlling systems.
 It involves certain electrical and electronic systems in a building with some degree of computerized or automated control.
 It can control elements of our home environments (e.g. light, fans, electrical devices, and safety systems).
 We propose an approach that fully controlled the home appliances by chatbot technology.
 Our model can control the home appliances from a long distance because we used the wireless fidelity system.
5
1.3 Objectives
The main objectives of this research is given below:
 To design a system that convert Natural Language commands into hardware commands to operate the IoT device in a house.
 To connect android mobile phone with IoT device
 To user machine learning algorithm in IoT platform.
6
1.4 Contribution
The main objectives of this research is given below:
 Use mobile phone in IoT device
 Use machine learning algorithm in mobile based IoT platform
7
2. IoT System Architecture
 The architecture of an Internet of Things system is a multi-stage
process in which data is delivered from sensors connected to
"things" to a network, then processed, analyzed, and stored in a
corporate data center or the cloud.
 A "thing" in the Internet of Things might be a machine, a
structure, or even a person.
 In order to govern a physical process, processes in the IoT
architecture also transfer data in the form of instructions or
commands, which inform an actuator or other physically linked
device how to accomplish a task.
 An actuator can perform basic tasks such as turning on a light or
more sophisticated tasks such as shutting down a production line
if a problem is discovered.
8
2. IoT System Architecture
 The chatbot algorithm's architectural framework is stored on a
web server.
 The Chatbot's application will be connected to the webserver. The
requests will be received by the client application, which will
process them on the server before delivering them to the
hardware (Raspberry Pi 3) for control.
 The hardware (Raspberry Pi 3) sends an acknowledgment signal
to the server and, as a result, to the client once the job is done.
 As a result, the user gets told when the task is completed
successfully.
 Users can directly communicate with the chatbot by giving it
instructions and receiving responses.
9
2. IoT System Architecture
 Once the task is completed, the hardware(Raspberry Pi 3) sends
an acknowledgment signal back to the server and hence to the
client.
 As a result, the user gets notified that the task is completed
successfully.
 Users can talk to the chatbot directly by doing input some
commands and can get replies from Chatbot.
 After processing the raw text input received by the user, the
system will process the sentence and find the desired action by
the user.
 Using the user input, the system will determine whether or not
turn on or turn off a device.
 If the word is understandable then it will perform what the user
wants.
 Otherwise, it will ask the user again what he/she wants.
10
3. Literature Review
Sl.
No
Paper Title Author Analysis Limitations
1
Text messaging-based
medical diagnosis using
natural language
processing and fuzzy
logic
N. A. Omoregbe, I. O.
Ndaman, S. Misra, O. O.
Abayomi-Alli, and R.
Damaˇseviˇcius
This paper successfully
implemented natural language
processing system for medical
diagnosis
• They use fuzzy logic
• It cannot use audio input
• Final result is confirmed
by human doctor
2
Integrating chatbot
application with Qlik
sense business
intelligence (bi) tool using
natural language
processing
V. Vashisht and P.
Dharia
This paper focuses on answering
diferent types of bussiness
question sucessfully..
• They use fuzzy logic for
group classification
• Accuracy is low due to
using old method
11
4. Proposed System Architecture
12
4.1 Text Preprocessing
 Text preprocessing is traditionally an important step for natural language processing (NLP) tasks.
 It transforms text into a more digestible form so that machine learning algorithms can perform better.
 We use different text preprocessing step:
 Tokenization
 Lower casing
 Stop words removal
13
4.2 Extraction of Device Name
 Extraction of the device name is a particular solution that uses the Jaro-Winkler string matching algorithm to extract
the device name from the input text.
 Jaro-Winkler Distance formula is used to calculate the distance (𝑑𝑗) between the two strings A and S.
𝑑𝑗 =
1
3
𝑛
|𝐴|
+
𝑛
|𝑆|
+
𝑛 − 𝑡
𝑛
× 100%
 where,
▻ n is the same number of letter
▻ |A| is the length of Attribute string
▻ |S| is the length of input string
▻ t is the amount of Transposition
14
4.3 Operation Extraction
 In the operation Extraction part, we use a Naive Bayes algorithm to extract operation from the input text.
 It is a set of categories to which a new observation belongs in machine learning, as determined by a training set of data that
comprises observations (or instances) with known category membership.
 A categorization model attempts to derive conclusions from observed data.
 Given one or more inputs, a classification model will attempt to predict the value of one or more outputs.
15
4.3 Operation Extraction
16
4.3 Operation Extraction
Table: Part of Training Data Set
17
4.3 Operation Extraction
Table: Output for multinomial naive bayes classification
18
4.3 Operation Extraction
19
4.4 Store the data
 If the word is not understandable by any process given on earlier then, the chatbot will ask the user again what he/she wants.
 We use knowledge base technology to store doubtful words.
 By this, the system can learn from the user some new words day by day.
 If the word is not understandable by any process given on earlier then, the chatbot will ask the user again what he/she wants.
 We use knowledge base technology to store doubtful words.
 By this, the system can learn from the user some new words day by day.
20
4.5 Run the operation
 The setup and use phases of the chatbot implementation are basically divided into two sections.
 The user will be asked for the information needed to set up the chatbot during the setup process.
 When the chatbot’s setting is complete, it will know how many appliances are in each area of the house.
 During the use phase, users will be able to ask the chatbot to execute a variety of tasks, such as turning on and off lights and
fans, as well as setting timers for the same.
21
5. Experimental Analysis
 Running the application for the first time after installation in the mobile phone automatically opens a login activity to connect
the user to the online web server.
 It requires only phone number.
 Then the user will get verification code (a six-digit number) known as OTP (One Time Password) in his/her phone.
 After successfully get the OTP verification code, the user needs to type the code in the designated space.
 Once the OTP is entered, it is verified and the user will log in into their account.
22
5. Experimental Analysis
23
5. Experimental Analysis
 To control the home appliance user just need to type their command on the app.
 The system will then process the sentence and find the desired action by the user.
 Using the user input, the system will determine whether or not turn on or turn off a device.
 If the word is understandable then it will perform what the user wants.
 Otherwise, it will ask the user again what actually he/she wants.
24
5. Experimental Analysis
25
6. Result
 The accuracy is calculated using the equation:
𝐴𝑐𝑐𝑢𝑢𝑟𝑎𝑐𝑦 =
𝑖=0
𝑛
𝑃𝑟𝑒𝑑𝑖𝑐𝑡𝑖𝑜𝑛𝑐𝑜𝑟𝑟𝑒𝑐𝑡
𝑃𝑟𝑒𝑑𝑖𝑐𝑡𝑖𝑜𝑛𝑡𝑜𝑡𝑎𝑙
× 100%
 The results comparing the proposed method with Naive bayes and Support Vector Machine is shown in the table
bellow:
Algorithms Accuracy (%) Error Rate (%)
Naive Bayes 91.45 8.55
Support Vector Machine 78.76 21.24
26
6. Result
27
7. Conclusion
 Controlling home automation technology remotely is likely to change day to day lifestyle of a user.
 In our proposed system users can control and monitor the home environment by using an android application.
 The android based home application communicates with the Raspberry Pi 3 via the internet.
 Any android supported device can be used to install the smart home application.
 It improves the certain system which supports the lifestyle of the individuals.
28
7. Future Work
 In the future, different sensor-based control can be added with Chatbot.
 Self-automation will make this system more user-friendly.
 Besides home appliances, this system can be used for other gadgets controlling like vehicles.
 Home security like access control, alarm, etc. can be an extension of this system.
29
30
THANKS!

More Related Content

What's hot

THE THIRD EYE-Presentation
THE THIRD EYE-PresentationTHE THIRD EYE-Presentation
THE THIRD EYE-Presentation
Romil Shah
 

What's hot (20)

Facial emotion recognition
Facial emotion recognitionFacial emotion recognition
Facial emotion recognition
 
Arduino vs Raspberry Pi
Arduino vs Raspberry PiArduino vs Raspberry Pi
Arduino vs Raspberry Pi
 
Automatic door using arduino
Automatic door using arduinoAutomatic door using arduino
Automatic door using arduino
 
Traning and placement management system
Traning and placement management systemTraning and placement management system
Traning and placement management system
 
Driver drowsiness monitoring system using visual behavior and Machine Learning.
Driver drowsiness monitoring system using visual behavior and Machine Learning.Driver drowsiness monitoring system using visual behavior and Machine Learning.
Driver drowsiness monitoring system using visual behavior and Machine Learning.
 
E farming management system project ppt
E farming management system project pptE farming management system project ppt
E farming management system project ppt
 
Training report on web developing
Training report on web developingTraining report on web developing
Training report on web developing
 
E farming
E farmingE farming
E farming
 
Lect # 2
Lect # 2Lect # 2
Lect # 2
 
smart street light projet
smart street light projetsmart street light projet
smart street light projet
 
Final Year Project Presentation
Final Year Project PresentationFinal Year Project Presentation
Final Year Project Presentation
 
THE THIRD EYE-Presentation
THE THIRD EYE-PresentationTHE THIRD EYE-Presentation
THE THIRD EYE-Presentation
 
Human Detection Robot
Human Detection RobotHuman Detection Robot
Human Detection Robot
 
Server industry report
Server industry reportServer industry report
Server industry report
 
ppt-1.pptx
ppt-1.pptxppt-1.pptx
ppt-1.pptx
 
Smart bore well child rescue system
Smart bore well child rescue systemSmart bore well child rescue system
Smart bore well child rescue system
 
Srs2 Job Portal
Srs2 Job PortalSrs2 Job Portal
Srs2 Job Portal
 
Location Finding for blind People Using Voice Navigation Stick Seminar
Location Finding for blind People Using Voice Navigation Stick SeminarLocation Finding for blind People Using Voice Navigation Stick Seminar
Location Finding for blind People Using Voice Navigation Stick Seminar
 
Automatic Attendance System using Deep Learning
Automatic Attendance System using Deep LearningAutomatic Attendance System using Deep Learning
Automatic Attendance System using Deep Learning
 
Internship Presentation 1 Web Developer
Internship Presentation 1 Web DeveloperInternship Presentation 1 Web Developer
Internship Presentation 1 Web Developer
 

Similar to Controlling Home Appliances adopting Chatbot using Machine Learning Approach

Java project titles
Java project titlesJava project titles
Java project titles
Ashly Liza
 
Formatted Paper_References added
Formatted Paper_References addedFormatted Paper_References added
Formatted Paper_References added
Mark Kurtz
 

Similar to Controlling Home Appliances adopting Chatbot using Machine Learning Approach (20)

INTENSIFICATION OF HOME AUTOMATION USING IOT
INTENSIFICATION OF HOME AUTOMATION USING IOTINTENSIFICATION OF HOME AUTOMATION USING IOT
INTENSIFICATION OF HOME AUTOMATION USING IOT
 
IRJET - Face Recognition Door Lock using IoT
IRJET - Face Recognition Door Lock using IoTIRJET - Face Recognition Door Lock using IoT
IRJET - Face Recognition Door Lock using IoT
 
IRJET - E-Assistant: An Interactive Bot for Banking Sector using NLP Process
IRJET -  	  E-Assistant: An Interactive Bot for Banking Sector using NLP ProcessIRJET -  	  E-Assistant: An Interactive Bot for Banking Sector using NLP Process
IRJET - E-Assistant: An Interactive Bot for Banking Sector using NLP Process
 
13. 23763.pdf
13. 23763.pdf13. 23763.pdf
13. 23763.pdf
 
Smart Home Automation using Voice Assistant
Smart Home Automation using Voice AssistantSmart Home Automation using Voice Assistant
Smart Home Automation using Voice Assistant
 
IRJET - Query Processing using NLP
IRJET - Query Processing using NLPIRJET - Query Processing using NLP
IRJET - Query Processing using NLP
 
IRJET- Smart Home Automation using IoT and Deep Learning
IRJET-  	  Smart Home Automation using IoT and Deep LearningIRJET-  	  Smart Home Automation using IoT and Deep Learning
IRJET- Smart Home Automation using IoT and Deep Learning
 
IRJET- Voice Based Home Automation System using Raspberry Pi
IRJET-  	  Voice Based Home Automation System using Raspberry PiIRJET-  	  Voice Based Home Automation System using Raspberry Pi
IRJET- Voice Based Home Automation System using Raspberry Pi
 
Java project titles
Java project titlesJava project titles
Java project titles
 
Energy Management with Disaster Intimation and Control using IoT
Energy Management with Disaster Intimation and Control using IoTEnergy Management with Disaster Intimation and Control using IoT
Energy Management with Disaster Intimation and Control using IoT
 
IRJET- Smart Switch Board Compatible with Google Assistance along with Fa...
IRJET-  	  Smart Switch Board Compatible with Google Assistance along with Fa...IRJET-  	  Smart Switch Board Compatible with Google Assistance along with Fa...
IRJET- Smart Switch Board Compatible with Google Assistance along with Fa...
 
Home Automation Control System
Home Automation Control SystemHome Automation Control System
Home Automation Control System
 
3
33
3
 
3
33
3
 
IRJET - Gesture Controlled Home Automation using CNN
IRJET -  	  Gesture Controlled Home Automation using CNNIRJET -  	  Gesture Controlled Home Automation using CNN
IRJET - Gesture Controlled Home Automation using CNN
 
Formatted Paper_References added
Formatted Paper_References addedFormatted Paper_References added
Formatted Paper_References added
 
An effecient spam detection technique for io t devices using machine learning
An effecient spam detection technique for io t devices using machine learningAn effecient spam detection technique for io t devices using machine learning
An effecient spam detection technique for io t devices using machine learning
 
AUTOMATIC DOOR UNLOCK WITH FACIAL RECOGNITION USING IoT
AUTOMATIC DOOR UNLOCK WITH FACIAL RECOGNITION USING IoTAUTOMATIC DOOR UNLOCK WITH FACIAL RECOGNITION USING IoT
AUTOMATIC DOOR UNLOCK WITH FACIAL RECOGNITION USING IoT
 
Automated System Using Speech Recognition
Automated System Using Speech RecognitionAutomated System Using Speech Recognition
Automated System Using Speech Recognition
 
Smart Home services-CS.pdf
Smart Home services-CS.pdfSmart Home services-CS.pdf
Smart Home services-CS.pdf
 

More from Minhazul Arefin

More from Minhazul Arefin (7)

Object Detection on Dental X-ray Images using R-CNN
Object Detection on Dental X-ray Images using R-CNNObject Detection on Dental X-ray Images using R-CNN
Object Detection on Dental X-ray Images using R-CNN
 
Natural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning ApproachNatural Language Query to SQL conversion using Machine Learning Approach
Natural Language Query to SQL conversion using Machine Learning Approach
 
Efficient estimation of word representations in vector space (2013)
Efficient estimation of word representations in vector space (2013)Efficient estimation of word representations in vector space (2013)
Efficient estimation of word representations in vector space (2013)
 
Semantic scaffolds for pseudocode to-code generation (2020)
Semantic scaffolds for pseudocode to-code generation (2020)Semantic scaffolds for pseudocode to-code generation (2020)
Semantic scaffolds for pseudocode to-code generation (2020)
 
Recurrent neural networks (rnn) and long short term memory networks (lstm)
Recurrent neural networks (rnn) and long short term memory networks (lstm)Recurrent neural networks (rnn) and long short term memory networks (lstm)
Recurrent neural networks (rnn) and long short term memory networks (lstm)
 
SPoC: search-based pseudocode to code
SPoC: search-based pseudocode to codeSPoC: search-based pseudocode to code
SPoC: search-based pseudocode to code
 
The rise of “Big Data” on cloud computing
The rise of “Big Data” on cloud computingThe rise of “Big Data” on cloud computing
The rise of “Big Data” on cloud computing
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[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
 
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
 
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
 
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
 
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
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
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
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 

Controlling Home Appliances adopting Chatbot using Machine Learning Approach

  • 1. Controlling Home Appliances adopting Chatbot using Machine Learning Approach Kazi Mojammel Hossen, Minhazul Arefin , Rakib Hossen and Mohammed Nasir Uddin ICO-2022: 5th International Conference on Intelligent Computing & Optimization 2022 Date: October 27-28, 2022
  • 2. Overview 2 1 3 5 6 4 2 Introduction Literature Review Experimental Analysis / Result Problem Statement/ Objective Methodology Conclusion/ Future Work
  • 3. Abstract  In the last decades, home automation becomes popular and rapidly increased artificial intelligence-based controlling systems.  It involves certain electrical and electronic systems in a building with some degree of computerized or automated control.  It can control elements of our home environments (e.g. light, fans, electrical devices, and safety systems).  We propose an approach that fully controlled the home appliances by chatbot technology.  Our model can control the home appliances from a long distance because we used the wireless fidelity system. 3
  • 4. 1. Introduction  Automation is a strategy, method, or system for using electronic equipment to operate or control a process while minimizing human participation ..  We concentrate on Intelligent Conversational Software Agents or Chatbots with a machine learning approach.  A natural language-based (English) home automation system that will work through the internet and also enable one to remotely manage his/her appliances from anywhere, anytime.  The demand for mobile applications is continuously increasing because of the continuous evolution of the mobile device's popularity and functionality. Using several forms of connection mechanisms, the smartphone application is utilized to manage and monitor home appliances.  This system is useful to help handicapped and aged people that control home appliances. 4
  • 5. 1.2 Problem Statement  In the last decades, home automation becomes popular and rapidly increased artificial intelligence-based controlling systems.  It involves certain electrical and electronic systems in a building with some degree of computerized or automated control.  It can control elements of our home environments (e.g. light, fans, electrical devices, and safety systems).  We propose an approach that fully controlled the home appliances by chatbot technology.  Our model can control the home appliances from a long distance because we used the wireless fidelity system. 5
  • 6. 1.3 Objectives The main objectives of this research is given below:  To design a system that convert Natural Language commands into hardware commands to operate the IoT device in a house.  To connect android mobile phone with IoT device  To user machine learning algorithm in IoT platform. 6
  • 7. 1.4 Contribution The main objectives of this research is given below:  Use mobile phone in IoT device  Use machine learning algorithm in mobile based IoT platform 7
  • 8. 2. IoT System Architecture  The architecture of an Internet of Things system is a multi-stage process in which data is delivered from sensors connected to "things" to a network, then processed, analyzed, and stored in a corporate data center or the cloud.  A "thing" in the Internet of Things might be a machine, a structure, or even a person.  In order to govern a physical process, processes in the IoT architecture also transfer data in the form of instructions or commands, which inform an actuator or other physically linked device how to accomplish a task.  An actuator can perform basic tasks such as turning on a light or more sophisticated tasks such as shutting down a production line if a problem is discovered. 8
  • 9. 2. IoT System Architecture  The chatbot algorithm's architectural framework is stored on a web server.  The Chatbot's application will be connected to the webserver. The requests will be received by the client application, which will process them on the server before delivering them to the hardware (Raspberry Pi 3) for control.  The hardware (Raspberry Pi 3) sends an acknowledgment signal to the server and, as a result, to the client once the job is done.  As a result, the user gets told when the task is completed successfully.  Users can directly communicate with the chatbot by giving it instructions and receiving responses. 9
  • 10. 2. IoT System Architecture  Once the task is completed, the hardware(Raspberry Pi 3) sends an acknowledgment signal back to the server and hence to the client.  As a result, the user gets notified that the task is completed successfully.  Users can talk to the chatbot directly by doing input some commands and can get replies from Chatbot.  After processing the raw text input received by the user, the system will process the sentence and find the desired action by the user.  Using the user input, the system will determine whether or not turn on or turn off a device.  If the word is understandable then it will perform what the user wants.  Otherwise, it will ask the user again what he/she wants. 10
  • 11. 3. Literature Review Sl. No Paper Title Author Analysis Limitations 1 Text messaging-based medical diagnosis using natural language processing and fuzzy logic N. A. Omoregbe, I. O. Ndaman, S. Misra, O. O. Abayomi-Alli, and R. Damaˇseviˇcius This paper successfully implemented natural language processing system for medical diagnosis • They use fuzzy logic • It cannot use audio input • Final result is confirmed by human doctor 2 Integrating chatbot application with Qlik sense business intelligence (bi) tool using natural language processing V. Vashisht and P. Dharia This paper focuses on answering diferent types of bussiness question sucessfully.. • They use fuzzy logic for group classification • Accuracy is low due to using old method 11
  • 12. 4. Proposed System Architecture 12
  • 13. 4.1 Text Preprocessing  Text preprocessing is traditionally an important step for natural language processing (NLP) tasks.  It transforms text into a more digestible form so that machine learning algorithms can perform better.  We use different text preprocessing step:  Tokenization  Lower casing  Stop words removal 13
  • 14. 4.2 Extraction of Device Name  Extraction of the device name is a particular solution that uses the Jaro-Winkler string matching algorithm to extract the device name from the input text.  Jaro-Winkler Distance formula is used to calculate the distance (𝑑𝑗) between the two strings A and S. 𝑑𝑗 = 1 3 𝑛 |𝐴| + 𝑛 |𝑆| + 𝑛 − 𝑡 𝑛 × 100%  where, ▻ n is the same number of letter ▻ |A| is the length of Attribute string ▻ |S| is the length of input string ▻ t is the amount of Transposition 14
  • 15. 4.3 Operation Extraction  In the operation Extraction part, we use a Naive Bayes algorithm to extract operation from the input text.  It is a set of categories to which a new observation belongs in machine learning, as determined by a training set of data that comprises observations (or instances) with known category membership.  A categorization model attempts to derive conclusions from observed data.  Given one or more inputs, a classification model will attempt to predict the value of one or more outputs. 15
  • 17. 4.3 Operation Extraction Table: Part of Training Data Set 17
  • 18. 4.3 Operation Extraction Table: Output for multinomial naive bayes classification 18
  • 20. 4.4 Store the data  If the word is not understandable by any process given on earlier then, the chatbot will ask the user again what he/she wants.  We use knowledge base technology to store doubtful words.  By this, the system can learn from the user some new words day by day.  If the word is not understandable by any process given on earlier then, the chatbot will ask the user again what he/she wants.  We use knowledge base technology to store doubtful words.  By this, the system can learn from the user some new words day by day. 20
  • 21. 4.5 Run the operation  The setup and use phases of the chatbot implementation are basically divided into two sections.  The user will be asked for the information needed to set up the chatbot during the setup process.  When the chatbot’s setting is complete, it will know how many appliances are in each area of the house.  During the use phase, users will be able to ask the chatbot to execute a variety of tasks, such as turning on and off lights and fans, as well as setting timers for the same. 21
  • 22. 5. Experimental Analysis  Running the application for the first time after installation in the mobile phone automatically opens a login activity to connect the user to the online web server.  It requires only phone number.  Then the user will get verification code (a six-digit number) known as OTP (One Time Password) in his/her phone.  After successfully get the OTP verification code, the user needs to type the code in the designated space.  Once the OTP is entered, it is verified and the user will log in into their account. 22
  • 24. 5. Experimental Analysis  To control the home appliance user just need to type their command on the app.  The system will then process the sentence and find the desired action by the user.  Using the user input, the system will determine whether or not turn on or turn off a device.  If the word is understandable then it will perform what the user wants.  Otherwise, it will ask the user again what actually he/she wants. 24
  • 26. 6. Result  The accuracy is calculated using the equation: 𝐴𝑐𝑐𝑢𝑢𝑟𝑎𝑐𝑦 = 𝑖=0 𝑛 𝑃𝑟𝑒𝑑𝑖𝑐𝑡𝑖𝑜𝑛𝑐𝑜𝑟𝑟𝑒𝑐𝑡 𝑃𝑟𝑒𝑑𝑖𝑐𝑡𝑖𝑜𝑛𝑡𝑜𝑡𝑎𝑙 × 100%  The results comparing the proposed method with Naive bayes and Support Vector Machine is shown in the table bellow: Algorithms Accuracy (%) Error Rate (%) Naive Bayes 91.45 8.55 Support Vector Machine 78.76 21.24 26
  • 28. 7. Conclusion  Controlling home automation technology remotely is likely to change day to day lifestyle of a user.  In our proposed system users can control and monitor the home environment by using an android application.  The android based home application communicates with the Raspberry Pi 3 via the internet.  Any android supported device can be used to install the smart home application.  It improves the certain system which supports the lifestyle of the individuals. 28
  • 29. 7. Future Work  In the future, different sensor-based control can be added with Chatbot.  Self-automation will make this system more user-friendly.  Besides home appliances, this system can be used for other gadgets controlling like vehicles.  Home security like access control, alarm, etc. can be an extension of this system. 29