AN ADAPTIVE FOCAL LOSS-BASED XGBOOST FRAMEWORK WITH SELECTIVE BLOCKCHAIN LOGGING FOR SECURE INTRUSION DETECTION IN IoT FARM NETWORKS
Internet of Things (IoT) technologies in smart agriculture have enhanced monitoring,automation, and decision-making, but also present major security challenges, including DDoS,spoofing, and data injection attacks. Such threats are especially hard to identify because thedata related to the IoT networks is highly imbalanced, with instances of attacks beingunderrepresented. In dealing with this, the paper suggests an Adaptive Focal Loss-basedExtreme Gradient Boosting (AFL-XGB) framework to the efficient intrusion detection in IoTbased farm setups. The model uses a dynamically scaled focal loss term that maximizesminority attack detection and minimizes false negatives, increasing generalization as comparedto traditional methods. Further, selective blockchain record mechanism is proposed where onlyhigh-confidence benign information is stored, which reduces storage overhead and maintainsdata integrity and trust to distributed systems. Experimental results through the Farm-Flowdataset illustrate that the proposed model is able to achieve a higher performance, with 96%accuracy, 94.5% F1-score, and 0.97 AUC in comparison to the traditional models of SVM,Random Forest, and the default XGBoost. Another advantage of the framework is that itminimizes the blockchain storage overhead. Altogether, the proposed AFL-XGB system offersa scalable, secure and efficient intrusion detection solution to smart agriculture IoT systems.
Authors
- SR Ajitha (ORCID: https://orcid.org/0000-0002-2017-2198)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-05-10
- DOI
- https://doi.org/10.5281/zenodo.20109274
- Primary Topic
- Network Security and Intrusion Detection
- Type
- article
- Field-Weighted Citation Impact
- 0.00