An AI-powered smart agriculture solution that detects birds in real time using computer vision and automatically triggers deterrent actions to reduce crop damage.
The system uses YOLOv8 ONNX running on Raspberry Pi for bird detection and communicates with ESP32 nodes using MQTT to activate sound-based bird repellent mechanisms.
Bird attacks on crops cause major agricultural losses and traditional deterrent methods require continuous manual intervention.
This project provides an intelligent and automated approach by combining:
- Edge AI
- Computer Vision
- IoT Communication
- Smart Deterrence Mechanisms
- Real-time Data Logging
The system only activates when birds are detected, helping reduce unnecessary power consumption.
✅ Real-time bird detection using YOLOv8 ONNX
✅ Raspberry Pi based image processing pipeline
✅ MQTT communication between Raspberry Pi and ESP32
✅ Automatic sound triggering system
✅ Bird activity logging and timestamp storage
✅ Detection image saving
✅ Scalable architecture for multiple nodes
✅ Low-cost smart agriculture implementation
- Raspberry Pi 4
- Pi Camera Module
- YOLOv8 ONNX model
- Image processing pipeline
- MQTT publisher
- HiveMQ Cloud MQTT Broker
- JSON message transfer
- Real-time event publishing
- ESP32 Development Board
- MQTT subscriber
- Speaker control system
- Pattern analysis
- Sound triggering logic
- Camera continuously captures field images
- Raspberry Pi runs YOLOv8 ONNX inference
- Bird object is detected
- Detection data is packaged into JSON format
- Data is published to MQTT topic:
bird/control
- ESP32 subscribes to topic
- Detection event processed
- Speaker system activated
- Detection logs stored for analysis
- Raspberry Pi 4
- Raspberry Pi Camera Module
- Power Supply
- ESP32 Dev Board
- Audio Amplifier Module
- Speaker
- Breadboard & jumper wires
- Python
- OpenCV
- YOLOv8 ONNX
- MQTT
- HiveMQ Cloud
- ESP32 Firmware
- ESP-IDF Framework
- Local MQTT broker reliability issues on Raspberry Pi
- Connectivity challenges with ESP32 nodes
- False detections due to limited non-bird dataset samples
- Real-time optimization between AI inference and IoT communication
- Pattern-based deterrence tuning
- Improve detection accuracy using larger datasets
- Reduce false positives
- Add bird species classification
- Solar-powered deployment
- Mobile dashboard support
- Multiple IoT node deployment
- Remote analytics and monitoring
- Smart Agriculture
- Crop Protection Systems
- Edge AI Solutions
- IoT Monitoring Systems
- Automated Bird Deterrence
D Mabu Jaheer Abbas
Narra Raghuvender
This project is developed as part of the Capstone Project.
Open for educational and research purposes.


