[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-126018-en":3,"doc-seo-126018-105":31,"detail-sidebar-cat-0-en-105":93},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":21,"is_downloadable":21,"audit_status":21,"page_count":22,"language":23,"language_code":24,"site_id":25,"html_lang":24,"table_of_contents":26,"faqs":27,"seo_title":28,"seo_description":14,"update_tm":29,"read_time":30},126018,2336474466412,"Ezra","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","Performance Analysis of Selected Machine Learning Algorithms in the prediction of Man-in-the-Middle in Internet of Things Environment","Concerns over the rapid expansion and vulnerability of Internet of Things (IoT) devices to cyberattacks motivate this performance study on Man-in-the-Middle (MitM) threats. Logistic Regression, Decision Trees, and K-Nearest Neighbors are evaluated and compared using accuracy, precision, recall, F1-score, and error rate on a Kaggle dataset containing both normal and attacked samples. Decision Trees achieve the highest MitM prediction accuracy (99.42%) with strong balance across precision, F1-score, and recall, and the lowest error rate (0.0058). Findings support selecting appropriate machine-learning models to strengthen IoT security systems and indicate future work on transfer other techniques for MitM detection.","Covenant Journal of Informatics & Communication Technology. Vol. 12, No. 2, December, 2024  \nISSN: print 2354 – 3566 electronics 2354 – 3507 DOI:  \nAn Open Access Journal Available Online  \nPerformance Analysis of selected Machine Learning Algorithms in the prediction of Man in the Middle in Internet of Things Environment  \nStephen A. Mogaji, Olaiya Folorunsho, Yetunde Daramola, Timothy T.  \nOdufuwa  \nDepartment of Computer Sciences, Federal University, Oye Ekiti, Nigeria.  \n[stephen.mogaji@fuoye.edu.ng](stephen.mogaji@fuoye.edu.ng), [olaiya.folorunsho@fuoye.edu.ng](olaiya.folorunsho@fuoye.edu.ng), [comfort.daramola@fuoye.edu.ng](comfort.daramola@fuoye.edu.ng), [tolulope.odufuwa@fuoye.edu.ng](tolulope.odufuwa@fuoye.edu.ng)  \n[Received: xx.xx.xxxx Accepted: xx.xx.xxxx](Received: xx.xx.xxxx Accepted: xx.xx.xxxx)  \nPublication: December 2024  \nAbstract— Concerns have been expressed over Internet of Things (IoT) devices'growing prevalence and susceptibility to cyberattacks, namely Man-in-the-Middle (MitM) assaults. The performance of selected machine learning algorithms: Logistic Regression, Decision Trees, and K-Nearest Neighbors were analyzed and compared using accuracy, precision, recall, F1-score, and error rate using a dataset comprising normal and attacked data sets from Kaggle. According to the research findings, the Decision Tree algorithm outperformed other selected algorithms in terms of MitM attack prediction accuracy of 99.42% and a good balance between precision, F1-score, and recall, with the lowest error rate of 0. 0058. The results of the study improve the security and reliability of IoT applications by aiding in the creation of efficient MitM attack prediction systems for IoT environments. The findings also emphasize how crucial it is to choose the best machine-learning algorithm for a given IoT security task. Investigating the use of transfer other techniques in MitM attack detection for IoT contexts is one area of future research.  \nKeywords/Index Terms— Prediction, MiTM, Decision Tree, Logistic regression, KNN  \n1. Introduction  \nThe Internet of Things (IoT) permits seamless communications, from smart household appliances to industrial machines enabling them to communicate and interact with each other over the internet. According to (Alexander, 2024), the Internet of Things (IoT) is a system of intelligent things that includes sensors, actuators, programmable central microcontrollers, and other processors that may be wirelessly connected to routers and gateways. The core of IoT networks are sensors, which are in charge of monitoring and collecting data on changes in the physical environment, such as temperature, motion, humidity, and pressure, and convert the detected changes into a format that can be understood and processed by the microcontroller or processor, transmitting the data in either digital or analog signals, enabling the IoT network to make decisions and operate efficiently. The microcontrollers or processors utilized in both embedded systems and various applications and IoT networks are designed to be efficient and are often battery-powered, which also form the core of the network, are typically batterypowered and resource-constrained in terms of power consumption, Random Access Memory (RAM), and Read-Only Memory (ROM) . These resource constraints require efficient processing, memory management, and power optimization to ensure reliable performance and extended battery life in IoT devices (Aeris, 2024) . This network is made up of various connected \"things\"including devices like networked household devices, portable technology, and networked vehicles, all of which  \ncommunicate with each other and with centralized systems to automate and streamline processes.  \nWhen a felonious individual places himself in the center of a discussion between a user and an application, either to eavesdrop or to pretend to be one of the parties, creating the impression that a legitimate information exchange is taking ","cbCaidW2jcwN8Xyr","https://ap.wps.com/l/cbCaidW2jcwN8Xyr","pdf",506527,6,1,19,"English","en",105,"# Introduction\n## Internet of Things (IoT) fundamentals\n## Man-in-the-Middle (MiTM) attack overview\n## Intrusion Detection Systems (IDS) and limitations for IoT\n## Machine learning approaches for MitM detection\n# Performance Analysis of Selected Algorithms","[{\"question\":\"Which machine learning algorithms are analyzed for MitM prediction in IoT environments?\",\"answer\":\"The study compares Logistic Regression, Decision Trees, and K-Nearest Neighbors using evaluation metrics including accuracy, precision, recall, F1-score, and error rate.\"},{\"question\":\"How is the dataset for the MitM prediction experiments constructed?\",\"answer\":\"The models are tested using a Kaggle dataset that includes both normal data and MitM attacked data.\"},{\"question\":\"What algorithm performs best for MitM attack prediction and what are its key results?\",\"answer\":\"Decision Trees outperform the other algorithms, reaching 99.42% accuracy, a strong balance across precision/F1-score/recall, and the lowest error rate of 0.0058.\"}]","Performance Analysis of Selected Machine Learning Algorithms in the prediction of Man-in-the-Middle in Internet of Things Environment | PDF",1785902567,48,{"code":4,"msg":32,"data":33},"ok",{"site_id":25,"language":24,"slug":34,"title":13,"keywords":35,"description":14,"schema_data":36,"social_meta":88,"head_meta":90,"extra_data":92,"updated_unix":29},"performance-analysis-of-selected-machine-learning-algorithms-in-the-prediction-of-man-in-the-middle-in-internet-of-things-environment","",{"@graph":37,"@context":87},[38,55,70],{"@type":39,"itemListElement":40},"BreadcrumbList",[41,45,49,52],{"item":42,"name":43,"@type":44,"position":21},"https://docshare.wps.com","Home","ListItem",{"item":46,"name":47,"@type":44,"position":48},"https://docshare.wps.com/document/","Document",2,{"item":50,"name":12,"@type":44,"position":51},"https://docshare.wps.com/document/research-report/",3,{"item":53,"name":13,"@type":44,"position":54},"https://docshare.wps.com/document/performance-analysis-of-selected-machine-learning-algorithms-in-the-prediction-of-man-in-the-middle-in-internet-of-things-environment/126018/",4,{"url":53,"name":13,"@type":56,"author":57,"headline":13,"publisher":59,"fileFormat":62,"inLanguage":24,"description":14,"dateModified":63,"datePublished":64,"encodingFormat":62,"isAccessibleForFree":65,"interactionStatistic":66},"DigitalDocument",{"name":9,"@type":58},"Person",{"url":42,"name":60,"@type":61},"DocShare","Organization","application/pdf","2026-08-24","2026-08-05",true,{"@type":67,"interactionType":68,"userInteractionCount":20},"InteractionCounter",{"@type":69},"ViewAction",{"@type":71,"mainEntity":72},"FAQPage",[73,79,83],{"name":74,"@type":75,"acceptedAnswer":76},"Which machine learning algorithms are analyzed for MitM prediction in IoT environments?","Question",{"text":77,"@type":78},"The study compares Logistic Regression, Decision Trees, and K-Nearest Neighbors using evaluation metrics including accuracy, precision, recall, F1-score, and error rate.","Answer",{"name":80,"@type":75,"acceptedAnswer":81},"How is the dataset for the MitM prediction experiments constructed?",{"text":82,"@type":78},"The models are tested using a Kaggle dataset that includes both normal data and MitM attacked data.",{"name":84,"@type":75,"acceptedAnswer":85},"What algorithm performs best for MitM attack prediction and what are its key results?",{"text":86,"@type":78},"Decision Trees outperform the other algorithms, reaching 99.42% accuracy, a strong balance across precision/F1-score/recall, and the lowest error rate of 0.0058.","https://schema.org",{"og:url":53,"og:type":89,"og:title":13,"og:site_name":60,"og:description":14},"article",{"robots":91,"canonical":53},"index,follow",{"doc_id":7,"site_id":25},{"code":4,"msg":5,"data":94},[95,99,103,107,112,116,121,124,129,132,136],{"id":21,"doc_module":4,"doc_module_name":47,"category_name":96,"show_sort_weight":97,"slug":98},"Story & Novel",90,"story-novel",{"id":48,"doc_module":4,"doc_module_name":47,"category_name":100,"show_sort_weight":101,"slug":102},"Literature",80,"literature",{"id":54,"doc_module":4,"doc_module_name":47,"category_name":104,"show_sort_weight":105,"slug":106},"Exam",70,"exam",{"id":108,"doc_module":4,"doc_module_name":47,"category_name":109,"show_sort_weight":110,"slug":111},5,"Comic",60,"comic",{"id":20,"doc_module":4,"doc_module_name":47,"category_name":113,"show_sort_weight":114,"slug":115},"Technology",50,"technology",{"id":117,"doc_module":4,"doc_module_name":47,"category_name":118,"show_sort_weight":119,"slug":120},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":47,"category_name":12,"show_sort_weight":122,"slug":123},30,"research-report",{"id":125,"doc_module":4,"doc_module_name":47,"category_name":126,"show_sort_weight":127,"slug":128},9,"Religion & Spirituality",20,"religion-spirituality",{"id":127,"doc_module":4,"doc_module_name":47,"category_name":130,"show_sort_weight":127,"slug":131},"World Cup","world-cup",{"id":133,"doc_module":4,"doc_module_name":47,"category_name":134,"show_sort_weight":133,"slug":135},10,"Lifestyle","lifestyle",{"id":22,"doc_module":4,"doc_module_name":47,"category_name":137,"show_sort_weight":108,"slug":138},"General","general"]