← Latest papers
💻 computer science

Edge AI and IoT-Enabled Livestock Intrusion Detection and Automated Farm Protection Using YOLOv8s and MQTT-Enabled Event Notification

This paper presents an Edge AI and IoT framework that integrates YOLOv8s-based cattle detection with MQTT-driven communication and automated acoustic deterrence to enable real-time, autonomous livestock intrusion monitoring and farm protection.

Original authors: Caleb Olugbenga Oladepo, Akorede Bello Abeeb, Habeebullahi Opemipo Akinleye

Published 2026-09-16
📖 4 min read☕ Coffee break read

Original authors: Caleb Olugbenga Oladepo, Akorede Bello Abeeb, Habeebullahi Opemipo Akinleye

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the quiet hours of the night, a farmer's livelihood often hangs on the boundary between a cultivated field and the wild. For generations, the threat of livestock wandering onto crops has been a constant source of loss, requiring constant human vigilance or simple, static barriers that animals can easily breach. Modern agriculture has begun to answer this age-old problem with a blend of two powerful technologies: artificial intelligence that can "see" and the Internet of Things, a network of connected devices that can talk to one another. The former allows a machine to recognize a specific animal in a video stream, while the latter enables that machine to instantly alert a human or trigger a physical response without waiting for a person to be present. This intersection of sight and connection offers a way to turn passive monitoring into active protection, potentially ending the cycle of crop destruction and conflict between herders and farmers.

Researchers Caleb Olugbenga Oladepo, Akorede Bello Abeeb, and Habeebullahi Opemipo Akinleye have built a system that brings this concept to life in a single, unified framework. Their work, titled "Edge AI and IoT-Enabled Livestock Intrusion Detection and Automated Farm Protection," moves beyond simple observation to create a cyber-physical shield for farms. Instead of relying on separate tools for watching and warning, they integrated a camera, a smart computer, and a loud alarm into a seamless chain of events. The core of their invention is a camera that feeds video to a specialized software model trained to recognize cattle. When the software spots a cow, it does not just log the event; it immediately sends a signal through a lightweight messaging system to a small controller, which then activates a siren to scare the animal away. Simultaneously, the system sends a digital alert to the farmer's phone and saves a record of the intrusion to the cloud, ensuring the farmer knows exactly what happened and when.

The team tested this system using a dataset of thousands of images of cattle, teaching the software to distinguish animals from the background with high reliability. In their experiments, the system proved capable of identifying cattle with a precision of roughly 80 percent and a recall of about 68 percent, meaning it caught the majority of intrusions while keeping false alarms relatively low. Perhaps more importantly for a real-world farm, the system was fast. The time it took for the camera to process an image and decide a cow was present was just over 132 milliseconds, and the time for the message to travel to the alarm controller was a mere fraction of a second. This speed is critical, as it allows the system to react almost instantly, stopping an animal before it can cause significant damage to the crops.

What makes this approach distinct from previous attempts is its complete integration. Many earlier systems focused only on the visual detection or the notification, leaving a gap between seeing a problem and fixing it. This research bridges that gap by connecting the "eyes" of the camera directly to the "voice" of the siren and the "memory" of the cloud. The researchers demonstrated that the entire process, from the moment a cow steps into the frame to the moment the alarm sounds and the farmer receives a notification, happens automatically and without human intervention. They verified this by setting up the hardware, including a small microcontroller and a piezo siren, and watching it successfully trigger whenever the software detected an intrusion. The system also captured images of the event and uploaded them to a cloud storage service, creating a digital log that farmers can review later.

While the results are promising, the researchers are careful to note the boundaries of their current work. The system was trained specifically to detect cattle and was tested under controlled conditions, meaning its performance might vary in extreme weather, heavy fog, or in environments with many different types of animals. The study does not claim to have solved every problem in farm security, but rather demonstrates that a fully automated, end-to-end protection system is feasible. The authors suggest that future versions could expand to detect other types of livestock or wildlife, and could even incorporate additional sensors like thermal cameras to work better in the dark. For now, however, the work stands as a concrete proof that intelligent, automated guardians are no longer just a theoretical idea, but a working reality that can protect the land and the people who work it.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →