{"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.