Welcome to our Wildlife Monitoring and Anomaly Detection System! This project leverages state-of-the-art deep learning technology to enhance wildlife conservation through real-time monitoring and emergency alert mechanisms.
Wildlife poaching, habitat destruction, and unauthorized human activities in protected areas are escalating threats to biodiversity. Our system offers a cost-effective, real-time solution using YOLOv5 to detect various anomalies, including poaching, unauthorized vehicles, wild animals, and forest fires. By addressing these issues with high precision and recall, our project plays a critical role in conservation efforts.
sample.mp4
Our system processes input frames from live video feeds, using drones, UAVs, or surveillance cameras. It utilizes YOLOv5 for anomaly detection and generates emergency alerts. Below are our architecture and workflow diagrams:
- Input: Captured by UAVs or stationary cameras.
- Frame Extraction: The video is broken into frames.
- Detection: YOLOv5 identifies anomalies.
- Alert System: Notifies relevant authorities via API.
- Visualization: Displays detected events on an interactive map.
- Backbone: CSP-Darknet53, optimized for efficient feature extraction.
- Neck: Uses advanced blocks and SPPF for feature pyramid representation.
- Head: Responsible for final object detection outputs.
Our experiments yielded outstanding results, demonstrating high precision and recall for multiple anomaly detection tasks:
Our model was trained and evaluated under different lighting conditions (day and night), with the following performance curves:
Loss Curve (Day) | Precision Curve (Day) | Recall Curve (Day) | mAP Curve (Day) |
---|---|---|---|
Loss Curve (Night) | Precision Curve (Night) | Recall Curve (Night) | mAP Curve (Night) |
---|---|---|---|
Task | Class | Precision | Recall | mAP@0.5 | mAP@0.5:0.9 |
---|---|---|---|---|---|
Wild Animal Surveillance | Elephant | 0.976 | 0.827 | 0.911 | 0.839 |
Wildfire Detection | Fire/Smoke | 1.000 | 0.915 | 0.957 | 0.935 |
Vehicle Detection | Vehicle | 0.996 | 0.885 | 0.940 | 0.858 |
Poacher Detection | Human/Poacher | 1.000 | 0.987 | 0.993 | 0.965 |
Our dataset is carefully constructed to ensure diversity and robustness across multiple classes.
- Training Data: Collected from publicly available sources such as Roboflow and Kaggle, along with frames extracted from various wildlife surveillance videos. We annotated 3,193 images for training.
- Validation and Testing: Contains 684 and 685 images, respectively, sourced similarly to maintain consistency and diversity.
- Classes: Includes categories like person, elephant, zebra, giraffe, deer, bison, rhino, boar, leopard, vehicle, and fire.
- Annotation Tools: Labelimg, CVAT, and Make-Sense were used for manual annotation. The annotations were converted to YOLOv5 format, and cross-verification was done to ensure accuracy.
It is recommended to create a new environment for this project.
pip install -r requirements.txt
fastapi dev main.py
This Wildlife Monitoring and Anomaly Detection System showcases the potential of deep learning for real-time wildlife conservation. Our YOLOv5-based model, combined with a robust alert mechanism, provides a scalable and efficient tool for conservationists and authorities. We encourage collaboration and feedback to further enhance the system's capabilities.
Feel free to contribute, raise issues, or provide suggestions in this repository. Together, we can make a significant impact on wildlife conservation!