Raspberry Pi FarmGuard uses AI to detect troublesome wildlife and alert farmers

 Raspberry Pi.
Raspberry Pi.

The Raspberry Pi has proven to be a competent board for creating various AI-powered projects. Today, we’ve got a great example of this technology in action known as FarmGuard, created by maker and developer Samith. With help from our favorite SBC, Samith can monitor farmland, detect unwanted wildlife, and notify users when something is spotted.

Samith said the goal was to create a system to help farmers look for animals that might accidentally damage their crops. The result is a monitor driven primarily by a Raspberry Pi. It’s paired with an AI camera for image processing and a Blues Notecard cellular IoT board for notifications.

The wildlife is identified using a module known as the Gravity HuskyLens Vision Sensor. This board has a camera and is ready to handle many AI tasks like object recognition. The module also sports a 2-inch IPS screen for video output. Samith trained the model with images of wild boar, elephants, and monkeys to test the setup.

Image 1 of 2

Raspberry Pi
Raspberry Pi

Image 2 of 2

Raspberry Pi
Raspberry Pi

Samith is using a Raspberry Pi 4 Model B for the project but there’s no reason you couldn’t get away with a Pi 5 if you’ve got one on hand. It’s working alongside the HuskyLens Vision Sensor and a Blues Notecard for SMS support. The Blues Notecard uses a special carrier board to connect to the Pi. All the hardware is held together using a case made from laser-cut acrylic sheets.

Raspberry Pi OS Bullseye Edition is the central operating system used by the Pi. It works with the notification system’s Twilio SMS Messaging API and Blues Notehub.io. You can read more about the code used in this Raspberry Pi project in greater detail at the official Hackster project page. There, you’ll also find a complete breakdown of the assembly process and instructions for anyone who wants to recreate it at home.