Authors Aziboledia Frederick BoyeRivers State University, Port Harcourt, NigeriaOnate Egerton TaylorRivers State University, Dept. of Computer Science, Port Harcourt-NigeriaVincent Ike EmekaRivers State University, Dept. of Computer Science, Port Harcourt-NigeriaEmmanuel Okoni, BennettRivers State University, Dept. of Computer Science, Port Harcourt-Nigeria Abstract With the growing integration of the Industrial Internet of Things, securing these systems from cyberattacks and cyber threats has become critical. This research proposes a novel real-time intrusion detection and prevention (IDPS) combining Convolutional Neural Networks (CNN) and Fuzzy Logic (FL) approach for the industrial IoT systems tested on the dataset. Implemented in Python programming language using the Jupyter environment, this hybrid model leverages CNN’s spatial feature extraction capabilities with Fuzzy Logic’s adaptability in handling data uncertainty, achieving an acceptable industrial accuracy of 92.5% for industrial IoT systems. The system also maintained an average low false positive rate (FPR) of 2.51%, underscoring its effectiveness in distinguishing benign from malicious activity within industrial IoT networks. Additionally, the model achieved an average detection rate (DR) of 92.9% during simulation, making the model viable and allowing a quick response to potential threats. The system’s latency achieved low metric average results measured in 1.207 µsec, or 0.001207 milliseconds given a less percentage of 7.14% latency average acceptable and good and excellent for most industrial IoT applications. These findings demonstrate that a CNN-Fuzzy Logic approach offers both high accuracy and efficiency, proving to be a promising for industrial cybersecurity in industrial IoT environments. Keywords Intrusion Detection Industrial IoT Cybersecurity CNN Fuzzy Logic Machine Learning Dataset Real-Time Threat Prediction time Citation of this Article Aziboledia Frederick Boye, Onate Egerton Taylor, Vincent Ike Emeka, & Emmanuel Okoni, Bennett. (2025). A CNN-Fuzzy Logic Approach for Real-Time Intrusion Detection and Prevention in Industrial IoT Systems. Journal of Artificial Intelligence and Emerging Technologies (JAIET). 2(10), 1-13. Article DOI: https://doi.org/10.47001/JAIET/2025.210001 Licence Copyright (c) 2026 Journal of Artificial Intelligence and Emerging Technologies. This work is licensed under a Creative Commons Attribution Non Commercial 4.0 International Licence. References Jonathon G., Andrew M, E. Christian H. Dan Ricci, Tony T., Sarah F., Peter B, (2024), Industrial Cyber Manufacturing Handbook, Industrial Cyber, (Online).Ferrag, M.A., Friha, O., Hamouda, D., Maglaras, L., Member, S. & Janicke, H. (2022). Edge-IIoTset: A New Comprehensive Realistic Cyber Security Dataset of IoT and IIoT Applications for Centralized and Federated Learning”. Institute of Electrical and Electronic Engineering TechRxiv conference.Ramya, M. (2022).What Is a Man-in-the-Middle Attack? Definition, Detection, and Prevention Best Practices for 2022, www.spiceworks.com/it-security/data security/articles/man-in-the-middle-attack/.Panigrahi R. & S. Borah (2018), “A detailed analysis of CICIDS2017 dataset for designing intrusion detection systems,” Int. J. Eng. Technol., vol. 7, no. 3.24, pp. 479–482.Abdallah E.E, W. Eleisah, & A. F. Otoom., (2022) “Intrusion detection systems using supervised machine learning techniques: A survey,” Procedia Comput. Sci., vol. 201, pp. 205–212, 2022. https://doi.org/10.1016/j.procs.2022.03.02.Sangeeta S., Ashish K., Navdeep S. R., & Shivanshu S., (2024), Intrusion detection and prevention systems in industrial IoT network, Indian Academy of Sciences, 49:244.Almiani, M., AbuGhazleh, B., Al-Rahayfeh, A., Atiewi, S. & Razaque, A. (2020). Deep Recurrent Neural Network for IoT Intrusion Detection System. Science Direct Simulation Model for Practical Theory, 101, 102031. Jiang, K., Wang, W., Wang, A. & Wu, H. (2020). Network intrusion detection combined hybrid sampling with deep hierarchical network. IEEE Access, 8(32), 464 – 476.Dutt, I. (2018). Real Time Hybrid Intrusion Detection System. International Conference on Communication, Devices and Networking, 885-894.Einipour, A. (2018). Intelligent intrusion detection in computer networks using fuzzy systems. Global Journal of Computer Science and Technology, 2012.Guardian Nigeria (2022). Technology, Ransomware hits 71% of Nigerian organisations, guardian.ng/technology/ransomware-hits-71-of-nigerian-organisations/.Shanmugam, B. & Idris, N. B. (2019). Improved intrusion detection system using fuzzy logic for detecting anomaly and misuse type of attacks. In Proceeding of 2009 International Conference of Soft Computing and Pattern Recognition, 212-217.Hamamoto, A. H. Carvalho, L. F. L., Sampaio, D. H., Abrão, T. & Proença, M. L. (2018). Network anomaly detection system using genetic algorithm and fuzzy logic. Expert Systems with Applications, 92, 390-402.Ghanei H., Manavi F. & Hamzeh A. (2021). A novel method for malware detection based on hardware events using deep neural networks. Journal of Computer Virology and Hacking Technology, 17(4), 319–331.Jessica Lyons (2024), Schneider Electric ransomware crew demand $125k paid in Baguettes, Cyber-Crime, theregister,com (online).Brett Rowe (2024), Global Cybercrime Threats in 2024, and what to look out for, Securus communication, (Online).Nabil, M. A. M & Govardhan, A. (2012), Comparison study between Traditional and Object-Oriented Approaches to Develop all projects in Software Engineering. International Journal of Computer Science and Information Technologies, 3(1), 3022 – 3028.Oliver E., Philipp K., & Paul T. (2019), Detection of Man-in-the-Middle Attacks on Industrial Control Networks, DOI: 10.1109/ICSSA.2016.19, ResearchGate.Omar S. A & Omar A. I. Al-Dabbagh (2021), Ransomware Detection System Based on Machine Learning, Journal of Education and Science (ISSN 1812-125X), Vol: 30, No: 5, 2021 (86-102).D. Maiorca, et al. “R-PackDroid (2017), API package-based characterization and detection of mobile ransomware,” Proceedings of the symposium on applied computing.Ammarah C, Moeenuddin T, Adnan H, 1 Muhammad M. K, Fahad A, & Muhammad A. (2022), Prevention Techniques against Distributed Denial of Service Attacks in Heterogeneous Networks: A Systematic Review, Hindawi Security and Communication Networks Volume, Article ID 8379532, 15 pages https://doi.org/10.1155/2022/8379532.Deval B., Maede Z., Aiman E., Raj J., Khaled K., Nader M. (2019), Cybersecurity for Industrial Control Systems: A Survey, Computers and Security, Elseveir. Pg18.McMillen D., (2019), “Attacks Targeting Industrial Control Systems (ICS) Up 110 Percent,” [Online]. Available: https://securityintelligence.com/attacks-targeting-industrialcontrol-systems-ics-up-110-percent.Abdalrahman G. A. & Varol H., (2019), “Defending against cyber-attacks on the internet of things,” in 2019 7th International Symposium on Digital Forensics and Security (ISDFS), June 2019, pp. 1–6.Chris Hauk (2023), DDoS Attack Statistics, Facts, And Figures For 2023, pixelprivacy.com (Online).Atzori, L., Iera, A. & Morabito, G. (2010). The Internet of Things. A Survey of Computer Network, 54, 2787–2805.Sri R. D. & Mohan M. K. (2019), Cyber Security Affairs in Empowering Technologies, International Journal of Innovative Technology and Exploring Engineering (IJITEE) 8(10S), 278-3075.Jonathan G., (2024), Targeting Critical Infrastructure: Recent Incidents Analyzed, industrialcyber.co/analysis/targeting-critical-infrastructure-recent-incidents-analyzed/H-ISAC, (2021), Distributed Denial of Service (DDoS), Health-ISAC, www. H-isac.org.Michael Ruppe, adesso Schweiz (2024), 19 Keys to Detecting and Preventing Man-In-The-Middle Attacks, Forbes Technology Councilwww.forbes.com/sites/forbestechcouncil/2024/03/07/19-keys-to-detecting-and-preventing-man-in-the-middle-attacks/Sophos (2024), The State of Ransomware 2024 Findings from an independent, vendor-agnostic survey of 5,000 leaders responsible for IT/cybersecurity across 14 countries, conducted in January-February 2024.CISA, FBI & WaterISAC (2024) Recent Cyber Attacks on US Infrastructure Underscore Vulnerability of Critical US Systems, November 2023–April 2024, Office of the Director of National Intelligence.State of Operational Technology and Cybersecurity Report, 2024.Abu Rayhan & David Gross (2023). The Rise of Python: A Survey of Recent Research, ResearchGate. DOI: 10.13140/RG.2.2.27388.92809.Annual Report Insights Into ICS/OT Cybersecurity 2022, TXOne Networks Inc. (2022).Sanjay Fuloria (2022), Cybersecurity and Ransomware, Academia Letters, Article 4820. https://doi.org/10.20935/AL4820.Lucia S. (2024), The Role of AI in Cybersecurity, (www.crowdstrike.com/cybersecurity-101/artificial-intelligence/)(Online). Emiliano, S., Abusayeed, S., Song, H., Ulf, J. & Mikael, G. (2018). Industrial Internet of Things: Challenges, Opportunities, and Directions, IEEE Transactions on Industrial Informatics, X(X).Panchal, A.C., Khadse, V.M. & Mahalle, P.N (2018). Security issues in IIoT: A comprehensive survey of attacks on IIoT and its countermeasures. In Proceedings of the 2018 IEEE Global Conference on Wireless Computing and Networking, Lonavala, India, 124–130.Mohammad S, Chen F, Hamed B, Ali H & Rasoul R (2022), Classification and Detection of Malicious Attacks in Industrial IoT Devices via Machine Learning, Conference paper, Open Access, link.springer.com/chapter/10.1007/978-3-031-18326-3_10.HiveMQ (2024), Building Industrial IoT Systems in 2024, What’s driving and delaying the business impact of IIoT. ivemq.com (Online).Khan, A., Sohail, A., Zahoora, U. & Qureshi, A. S. (2020). A survey of the recent architectures of deep convolutional neural networks. Artificial Intelligence Review, 53(8), 3455-5516.Mahmoud K. B., Issa A., Mohammad A., Hasan K., Nibras A., Ola A., Ahmed A. O. (2024), Web Attack Intrusion Detection System Using Machine Learning Techniques, Vol. 20 No. 3.Yang, K., Ren, J., Zhu, Y., & Zhang, W. (2018). Active Learning for Wireless IoT Intrusion Detection. IEEE Wirel. Communication, 25, 19–25.Homeland Security, (2016), Recommended Practice: Improving Industrial Control System Cybersecurity with Defense-in-Depth Strategies, Industrial Control Systems Cyber Emergency Response Team September 2016.Almiani, M., AbuGhazleh, B., Al-Rahayfeh, A., Atiewi, S. & Razaque, A. (2020). Deep Recurrent Neural Network for IoT Intrusion Detection System. Science Direct Simulation Model for Practical Theory, 101, 102031.Abu R.& David G. (2023). The Rise of Python: A Survey of Recent Research, Researchgate. DOI: 10.13140/RG.2.2.27388.92809.Sayeth S. A.L., Fareez, MMM & Vinothraj.T (2019), Python Current Trend Applications - An Overview Popular Web Development Frameworks in Python, International Journal of Advance Engineering and Research Development, 6(10).Desmedt Y, (2011) Man-in-the-middle attack, in: Encyclopedia of cryptography and security, Springer, 2011, pp. 759–759.Eurelectric, 2025, Cybersecurity in the Power Sector, eurelectric.org. (Online).Reliandoid 2025, DDoS Trends and Predictions for 2025, relianiod.com (Online).Boye, A.F., Taylor, E.O. and Bhagat, D., (2024). AI and Performance Capability of Cybersecurity in the Energy Industry. ISAR Journal of Science and Technology, 2(12), 29-36.