Comparison Analysis of SVM and KNN Algorithm For IoT-Based Home Fire Detection System

R. Wibowo, Istikmal, A. Irawan
{"title":"Comparison Analysis of SVM and KNN Algorithm For IoT-Based Home Fire Detection System","authors":"R. Wibowo, Istikmal, A. Irawan","doi":"10.1109/IAICT59002.2023.10205837","DOIUrl":null,"url":null,"abstract":"Internet of Things (IoT) is a network that connects various integrated objects. One application of IoT is a fire detection system to provide remote warnings. In this study, IoT deployments were performed using SVM (Support Vector Machine) algorithm and KNN (K-Nearest Neighbor) algorithm. The algorithm is attached to the ESP32 microcontroller for data classification. The sensors used include temperature, humidity, fire, and smoke sensors. In case of fire a warning will be sent to Telegram. Classification results were tested with Quality of Service (QoS) parameters on throughput, delay, and jitter values, as well as with the confusion matrix with 3 simulation variations. The test outcomes display that the system is in the correct category with an average throughput value of 1.848 bps and the best value of 1.858 bps, an average delay of 593.045 ms, and a jitter of 594.188 ms. The highest accuracy was obtained in simulation 2, namely 100% for SVM and 97.5% for KNN with K=1 in KNN. Meanwhile, in simulation 1 KNN has an accuracy of 95% and SVM 98%, simulation 3 KNN 97% and SVM 100%. Thus, the SVM algorithm can classify the system better than the KNN algorithm.","PeriodicalId":339796,"journal":{"name":"2023 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT)","volume":"178 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology (IAICT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IAICT59002.2023.10205837","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Internet of Things (IoT) is a network that connects various integrated objects. One application of IoT is a fire detection system to provide remote warnings. In this study, IoT deployments were performed using SVM (Support Vector Machine) algorithm and KNN (K-Nearest Neighbor) algorithm. The algorithm is attached to the ESP32 microcontroller for data classification. The sensors used include temperature, humidity, fire, and smoke sensors. In case of fire a warning will be sent to Telegram. Classification results were tested with Quality of Service (QoS) parameters on throughput, delay, and jitter values, as well as with the confusion matrix with 3 simulation variations. The test outcomes display that the system is in the correct category with an average throughput value of 1.848 bps and the best value of 1.858 bps, an average delay of 593.045 ms, and a jitter of 594.188 ms. The highest accuracy was obtained in simulation 2, namely 100% for SVM and 97.5% for KNN with K=1 in KNN. Meanwhile, in simulation 1 KNN has an accuracy of 95% and SVM 98%, simulation 3 KNN 97% and SVM 100%. Thus, the SVM algorithm can classify the system better than the KNN algorithm.
基于物联网的家庭火灾探测系统中SVM与KNN算法的比较分析
物联网(Internet of Things, IoT)是连接各种集成对象的网络。物联网的一个应用是提供远程警报的火灾探测系统。在本研究中,物联网部署使用SVM(支持向量机)算法和KNN (k -最近邻)算法进行。该算法附加在ESP32单片机上进行数据分类。传感器包括温度传感器、湿度传感器、火灾传感器和烟雾传感器。如果发生火灾,将向电报发送警告。使用吞吐量、延迟和抖动值的服务质量(QoS)参数以及具有3个模拟变量的混淆矩阵对分类结果进行测试。测试结果表明,系统处于正确的类别,平均吞吐量为1.848 bps,最佳值为1.858 bps,平均延迟为593.045 ms,抖动为594.188 ms。仿真2的准确率最高,SVM的准确率为100%,KNN中K=1的KNN准确率为97.5%。同时,仿真1中KNN的准确率为95%,SVM为98%,仿真3中KNN的准确率为97%,SVM为100%。因此,SVM算法可以比KNN算法更好地对系统进行分类。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信