JNACSISSN:2582-3817

Guarding the Digital Harvest: An AI/ML-Based Intrusion Detection Framework for Agriculture 4.0 Networks

Abstract

Agriculture 4.0 is transforming modern farming practices. It uses Internet of Things devices, smart sensors, drones, automated irrigation systems, and cloud-based technologies. These new technologies help farmers improve operational efficiency and use resources wisely. However, they also make Agriculture 4.0 networks more vulnerable to cyberattacks. Various types of attacks can disrupt agricultural operations, such as Distributed Denial-of-Service attacks, Port Scanning, Botnet activities, and Brute Force intrusions. These attacks can disrupt farming operations and put important Agriculture 4.0 data at risk. Traditional intrusion detection methods mostly look for known threats and often miss new or unknown ones. This study proposes a Machine Learning-based Intrusion Detection System (IDS) for Agriculture 4.0 environments using the Random Forest algorithm. The Farm Flow dataset containing agricultural network traffic was utilized for training and evaluation. Data preprocessing techniques, including feature selection, label encoding, and normalization, were applied to improve model performance. The proposed system identifies whether network traffic is normal or associated with attacks such as DDoS, Port Scan, Botnet, or Brute Force. The system was evaluated using performance metrics such as accuracy and precision, along with a confusion matrix. The results show that using machine learning can effectively enhance the security of farming systems against cyberattacks by detecting malicious activities quickly and accurately. Furthermore, the proposed system provides a cost-effective approach for securing Agriculture 4.0 systems.

References

  • Ferrag, M. A., Shu, L., Friha, O., & Yang, X. (2022). Cyber Security Intrusion Detection for Agriculture 4.0: Machine Learning-Based Solutions, Datasets, and Future Directions.
  • Keating, L. (2026). AI-Based Detection of Cyber Intrusions in Food Supply Chains and Agricultural IoT Networks.
  • Konstantinou, D., Stoyanov, S., Stoyanova, T., & Rafailov, R. (2025). Securing the Internet of Things: The Role of Artificial Intelligence in Agricultural Cyber Defense.
  • Mirmarghabi, M., Afshar, A., & Atriyanfar, H. (2025). Intrusion Detection System for Securing Agriculture 4.0 against DDoS Attacks using Deep Learning and Machine Learning Models.
  • Mohamed, N. (2023). Current Trends in AI and ML for Cybersecurity: A State-of-the-Art Survey. Cogent Engineering, 10(2), 2272358.
  • Suneetha, C., Maloth, B., & Addepalli, L. (2026). Cybersecurity Intrusion Detection in Industry 4.0 WSNs Using ML/DL.
  • Khan, N., Ahmad, K., Al Tamimi, A., Alani, M. M., Bermak, A., & Khalil, I. (2024). Explainable AI-Based Intrusion Detection System for Industry 5.0.
  • Ojika, F. U., Owobu, W. O., Abieba, O. A., Esan, O. J., Ubamadu, B. C., & Daraojimba, A. I. (2024). The Role of AI in Cybersecurity: A Cross-Industry Model for Integrating Machine Learning and Data Analysis for Improved Threat Detection.
  • Diro, A. A., & Chilamkurti, N. (2018). Distributed Attack Detection Scheme Using Deep Learning Approach for IoT.
  • Koroniotis, N., Moustafa, N., Sitnikova, E., & Turnbull, B. (2019). Towards the Development of Realistic Botnet Dataset in the Internet of Things for Network Forensic Analytics.