Interpreting deep learning models for explainable animal detection using Grad-Cam with RetinaNet, SSD and YOLOv8
Open Access
- 27 July 2026
- journal article
- research article
- Published by Springer Nature in Discover Computing
- Vol. 29 (1) , 471
Abstract
Background: In rural and forest-bordering areas, human-wildlife conflict has escalated, resulting in substantial crop damage, property loss, and human mortality. Conventional mitigating solutions such as fencing, manual surveillance, and local alarms, have limited coverage, time taking and high operating costs. Automated real-time animal detection systems have become a practical for early warning and conflict avoidance due to recent upgrades in edge computing and deep learning particularly in distant locations without dependable internet access. Methods: In this study, embedded hardware and deep learning-based object detection are used to create a real-time wild animal detection and warning system. Roboflow was used to develop and enhance a dataset of 1,554 real-world photographs from seven classes (tiger, bear, elephant, lion, cheetah, leopard, and human) to 5,917 images. Using GPU acceleration, three object detection models YOLOv8(n)(n), SSD, and RetinaNet were trained on Google Colab and assessed using precision, recall, F1-score, and mean Average Precision (mAP). A GSM 900 A module is used to send SMS notification with no requirement of internet connectivity, and the optimized model was installed on a Raspberry Pi 5 with a Pi Camera for real-time inference. Results: According to experimental data, YOLOv8(n) performs better than SSD and RetinaNet, with an mAP@50 84.4% and recall of 81% as opposed to SSD’s 62.3% precision and 58% recall and RetinaNet’s around 77% precision and 80% recall. Additionally, YOLOv8(n) showed improved robustness and quicker inference time across a range of background and lighting circumstances. While SSD and RetinaNet demonstrated weaker or scattered attention in complex situations, explainable AI analysis utilizing Grad-CAM and LIME verified greater and more concentrated activation on pertinent animal traits for YOLOv8(n). Conclusion: For real-time wildlife monitoring and early warning, the suggested system offers a precise, affordable, and scalable option. Through the integration of YOLOv8(n), Raspberry Pi 5 edge computing, and GSM-based connectivity, the system efficiently functions in distant settings and dramatically shortens reaction times during wildlife infiltration incidents. The findings demonstrate that YOLOv8(n) is the best model for integrated animal detection, enhancing wildlife conservation, lowering agricultural loss, and improving human safety.Keywords
Funding Information
- Datta Meghe Institute of Higher Education and Research
This publication has 15 references indexed in Scilit:
- Analyzing the enhancement of CNN-YOLO and transformer based architectures for real-time animal detection in complex ecological environmentsScientific Reports, 2025
- AI-Driven Wildlife Detection and Management System for Agricultural Protection2025
- EfficientDet-Based IoT System for Wildlife Monitoring Using LoRa and Raspberry Pi2025
- Enhancing Animal Intrusion Detection with Raspberry Pi and Fast R-CNN: A Practical Approach for Wildlife Management2024
- AI-enhanced real-time cattle identification system through tracking across various environmentsScientific Reports, 2024
- Early Disease Detection in Wildlife by Analysing Behavior and Weather Conditions Using Image Processing and Deep Learning2024
- Design and Deployment of Wild Animal Intrusion Detection & Repellent System Employing IOT2023
- A Comparison of Different Learning Algorithms for Wildlife Detection and Classification in Animal Conservation Applications2023
- Wild Animal Detection using YOLOv8Procedia Computer Science, 2023
- A General Video Surveillance Framework for Animal Behavior Analysis2016