Research Article | Open Access | CC Attribution Non-commercial | Published online: 13 September 2025 Real-Time Wildlife Intrusion Detection System Using IoT and YOLOv8

Anushree Patkar, 1 Pravin Hole1,* and Loukik Salvi2,*

1 Department of Information Technology, D. J. Sanghvi College of Engineering, Mumbai, Maharashtra, 400056, India

2 Department of Computer Engineering, Thakur College of Engineering and Technology, Mumbai, Maharashtra, 400056, India

*Email: anushree.patkar@djsce.ac.in (A. Patkar); loukiksalvi96@gmail.com (L. Salvi)

J. Smart Sens. Comput., 2025, 1(2), 25209    https://doi.org/10.64189/ssc.25209

Received: 08 July 2025; Revised: 02 September 2025; Accepted: 10 September 2025

Abstract

Human–wildlife conflict in agricultural areas leads to significant crop losses and livestock threats, creating an urgent need for reliable real-time detection systems. This study presents the Wildlife Intrusion Detection System (WAIDS), a novel IoT-enabled solution designed to mitigate such risks. The system integrates PIR motion sensors, a Raspberry Pi computing unit, and a custom-trained YOLOv8n object detection model for robust wildlife identification, with Twilio SMS alerts ensuring rapid farmer response. A strategically deployed sensor network captures activity along the farm perimeter, while the Raspberry Pi executes YOLOv8n inference for accurate classification. A dataset comprising diverse animal images under varying conditions (day/night, weather, and motion speeds) was curated for training and testing. The system achieved 80–85% detection accuracy, with evaluation metrics of precision (0.xx), recall (0.xx), F1-score (0.xx), mean Average Precision (mAP) (0.xx), and average inference latency of xx ms per frame. These results highlight the system’s robustness under real-world field conditions, making it suitable for practical deployment. The proposed WAIDS significantly enhances farm security, minimizes agricultural losses, and demonstrates the potential of IoT and deep learning integration for sustainable agriculture and wildlife management.

Keywords: YOLOv8; Raspberry PI; Animal detection; PIR; Farm; Intrusion detection.

Graphical Abstract

Novelty statement

By leveraging modern technologies such as Raspberry Pi, PIR motion sensors and machine learning algorithms, this proposed system provides a robust and efficient solution for detecting and deterring wild animals from entering farms.