YOLOv8-Based Deep Learning for Multi-Class Farmland Intrusion Detection: Architecture, Transfer Learning, and Wavelet Coefficient Shrinkage Preprocessing
Authors
Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Nigeria (Nigeria)
Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Nigeria (Nigeria)
Department of Computer Science, Ladoke Akintola University of Technology, Ogbomoso, Nigeria (Nigeria)
Department of Mathematics and Computer Sciences, University of Medical Sciences, Ondo, Nigeria (Nigeria)
Department of Computer Sciences, Lagos State University of Science and Technology, Ikorodu, Lagos State, Nigeria (Nigeria)
Article Information
DOI: 10.47772/IJRISS.2026.100600227
Subject Category: Computer Science
Volume/Issue: 10/6 | Page No: 3098-3105
Publication Timeline
Submitted: 2026-05-29
Accepted: 2026-06-03
Published: 2026-06-20
Abstract
The computational vision problem of object detection and classification in outdoor agricultural settings is particularly difficult due to the combination of highly variable illumination, cluttered backgrounds, multi-scale target sizes, class imbalance, and sensor noise from low-cost IoT camera nodes. In this paper, a YOLOv8-based Convolutional Neural Network (CNN) pipeline for real-time multi-class agricultural incursion detection is designed, implemented, and rigorously evaluated. Images are categorized by the system into three security-related groups: No-Intrusion, Animal (cows, goats, and livestock), and Human Intruder. While domain-specific fine-tuning on a bespoke 1,850-image field dataset adjusts the model to agricultural circumstances, transfer learning from the Microsoft COCO dataset (330,000+ annotated images, 80 object categories) offers fundamental feature representations. Daubechies-1 (db1) wavelets with two-level decomposition are used in a specific wavelet-based picture preprocessing pipeline and soft coefficient thresholding maintains important object borders and textures while reducing sensor and ambient noise. The system obtained a mAP@50 of 98.58% on the held-out test set after APO-based hyperparameter optimization, with per-class precision above 97% in all three categories. While the Animal class showed a recall of 94.51%, which represents a 29.11 percentage point gain over the 65.4% baseline recall and directly addresses the most important safety gap in previous farmland security systems, the Human Intruder class attained perfect memory (100%). Confusion matrix study confirms operational suitability for production IoT deployment with a remarkably low false positive rate of 0.72%.
Keywords
YOLOv8, Object Detection, Transfer Learning, Wavelet Coefficient Shrinkage, Daubechies Wavelet
Downloads
References
1. Abdul Rahim, S., and Manoharan, A. (2024a). An optimization-based feature selection and hybrid Spiking VGG 16 for intrusion detection. IEEE Access, 12, 152709–152720. [Google Scholar] [Crossref]
2. Bochkovskiy, A., Wang, C. Y., and Liao, H. Y. M. (2020). YOLOv4: Optimal speed and accuracy of object detection. arXiv:2004.10934. [Google Scholar] [Crossref]
3. Donoho, D. L., and Johnstone, I. M. (1994). Ideal spatial adaptation by wavelet shrinkage. Biometrika, 81(3), 425–455. [Google Scholar] [Crossref]
4. El Sakka, M., et al. (2025). A review of CNN applications in smart agriculture using multimodal data. Sensors, 25(2), 472. [Google Scholar] [Crossref]
5. Ge, Z., et al. (2021). YOLOX: Exceeding YOLO series detectors. arXiv:2107.08430. [Google Scholar] [Crossref]
6. Gonzalez, R. C., and Woods, R. E. (2018). Digital Image Processing (4th ed.). Pearson. [Google Scholar] [Crossref]
7. He, K., et al. (2016). Deep residual learning for image recognition. CVPR 2016. [Google Scholar] [Crossref]
8. Hussain, M., Bird, J. J., and Faria, D. R. (2018). A study on CNN transfer learning for image classification. UKCI 2018, AISC. [Google Scholar] [Crossref]
9. Jocher, G., et al. (2021). YOLOv5 documentation. Ultralytics. https://github.com/ultralytics/yolov5 [Google Scholar] [Crossref]
10. Lin, T. Y., et al. (2014). Microsoft COCO: Common objects in context. ECCV 2014. [Google Scholar] [Crossref]
11. Lin, T. Y., et al. (2017). Feature pyramid networks for object detection. CVPR 2017. [Google Scholar] [Crossref]
12. Olatunji, O. O., and David, A. O. (2025). Improved YOLOv8 for detection of intruders using deep learning. ResearchGate preprint. [Google Scholar] [Crossref]
13. Oyelade, I. M., et al. (2024). Farmland intrusion detection using IoT and computer vision. Int. J. ITCS, 16(2), 32–44. [Google Scholar] [Crossref]
14. Ravoor, P. C., et al. (2021). Digital borders: Animal intrusion detection based on deep learning. CCIS, 1378, 186–200. [Google Scholar] [Crossref]
15. Redmon, J., et al. (2016). You only look once: Unified, real-time object detection. CVPR 2016. [Google Scholar] [Crossref]
16. Wang, X., et al. (2020). CSPNet: A new backbone that can enhance learning capability of CNN. CVPRW 2020. [Google Scholar] [Crossref]
17. Yosinski, J., et al. (2014). How transferable are features in deep neural networks? NeurIPS 2014. [Google Scholar] [Crossref]
18. Zhang, X., et al. (2022). Real-time farmland intrusion detection with attention-enhanced YOLOv5. C&EA. [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- What the Desert Fathers Teach Data Scientists: Ancient Ascetic Principles for Ethical Machine-Learning Practice
- Comparative Analysis of Some Machine Learning Algorithms for the Classification of Ransomware
- Comparative Performance Analysis of Some Priority Queue Variants in Dijkstra’s Algorithm
- Transfer Learning in Detecting E-Assessment Malpractice from a Proctored Video Recordings.
- Dual-Modal Detection of Parkinson’s Disease: A Clinical Framework and Deep Learning Approach Using NeuroParkNet