Evaluating Deep Learning Models for African Wildlife Image Classification: From DenseNet to Vision Transformers

Lukman Jibril Aliyu, Umar Sani Muhammad, Bilqisu Ismail, Nasiru Muhammad, Almustapha A. Wakili, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad, Mustapha Abdullahi · 2025

Read Evaluating Deep Learning Models for African Wildlife Image Classification: From DenseNet to Vision Transformers by Lukman Jibril Aliyu, Umar Sani Muhammad, Bilqisu Ismail, Nasiru Muhammad, Almustapha A. Wakili, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad, Mustapha Abdullahi (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-21364.txt.

Introduction

Lukman Jibril Aliyu and seven co-workers wrote a 2025 paper comparing deep learning models that classify African wildlife in photos. Vertebrate numbers in Africa have plunged over five decades, so automated watching matters. The team tested four pretrained models on four species: buffalo, elephant, rhinoceros and zebra. Only the feature extractors were reused as-is.

A transformer model scored near perfect accuracy but at heavy compute cost. The best convolutional model scored far lower yet runs cheaply. That cheaper model was put into a live web app for field use. The authors weigh accuracy against what conservation teams can actually deploy.

Catalog record

CREATORLukman Jibril Aliyu, Umar Sani Muhammad, Bilqisu Ismail, Nasiru Muhammad, Almustapha A. Wakili, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad, Mustapha Abdullahi
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE23 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-21364

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Evaluating Deep Learning Models for African Wildlife Image Classification: From DenseNet to Vision Transformers Lukman Jibril Aliyu, Umar Sani Muhammad, Bilqisu Ismail, Nasiru Muhammad, Almustapha A. Wakili, Seid Muhie Yimam, Shamsuddeen Hassan Muhammad, Mustapha Abdullahi Abstract Wildlife populations in Africa face severe threats, with vertebrate numbers declining by over 65% in the past five decades. In response, image classification using deep learning has emerged as a promising tool for biodiversity monitoring and conservation. This paper presents a comparative study of deep learning models for automatically classifying African wildlife images, focusing on transfer learning with frozen feature extractors. Using a public dataset of four species: buffalo, elephant, rhinoceros, and zebra; we evaluate the performance of DenseNet-201, ResNet-152, EfficientNet-B4, and Vision Transformer ViT-H/14. DenseNet-201 achieved the best performance among convolutional networks (67% accuracy), while ViT-H/14 achieved the highest overall accuracy (99%), but with significantly higher computational cost, raising deployment concerns. Our experiments highlight the trade-offs between accuracy, resource requirements, and deployability. The best-performing CNN (DenseNet-201) was integrated into a Hugging Face Gradio Space for real-time field use, demonstrating the feasibility of deploying lightweight models in conservation settings. This work contributes to African-grounded AI research by offering practical insights into model selection, dataset preparation, and responsible deployment of deep learning tools for wildlife conservation. I Introduction Africa’s rich wildlife heritage faces severe challenges from habitat loss, poaching, and climate change. It is estimated that an elephant is poached every 15 minutes in South Africa [ 1 ] . Monitoring animal populations traditionally relies on labor-intensive field surveys and camera trap image reviews. Advances in artificial intelligence offer promising tools to automate and ease these efforts. Image classification using deep learning has emerged as a powerful approach to biodiversity monitoring [ 2 ] . By automatically identifying species in photographs taken on camera traps, drones, or smartphones, deep learning systems can greatly accelerate data collection and analysis for conservation biologists. In particular, [ 3 ] demonstrated that CNN could accurately identify wildlife species in millions of camera trap images, sometimes exceeding human accuracy. Similarly, projects such as Snapshot Serengeti and the iWildCam challenge have illustrated the potential of AI to handle large-scale wildlife image datasets while highlighting the issue of domain shift between different environments [ 4 ] . Despite these successes, the implementation of such models in African conservation contexts presents unique challenges. Data on African fauna may be limited or imbalanced towards well-photographed species, and models trained in one context (e.g., certain parks or image conditions) often struggle to generalize to new environments [ 5 ] . This paper explores the application of deep CNN architectures for classifying African wildlife images, with an emphasis on conditions and species relevant to African conservation. Our work is grounded in the African Wildlife [ 6 ] dataset, which consists of images of four key species (buffalo, elephant, rhinoceros, and zebra) that are important indicators of the health of the savannah ecosystem. We build on our preliminary findings that a DenseNet-based classifier can achieve promising accuracy on this dataset. DenseNet [ 7 ] is known for its densely connected layers that promote feature reuse and mitigate the vanishing gradient problem. We hypothesize that it will be advantageous for learning from relatively small wildlife datasets. Using ImageNet transfer learning, we fine-tune DenseNet to recognize the target species. In this expanded study, we introduce a comparative analysis with other modern architectures (namely ResNet [ 8 ] , EfficientNet [ 9 ] and Vision Transformer [ 10 ] ) to validate our choice of model. Furthermore, we significantly extend our review and discussion of the literature to contextualize our contributions within existing efforts in AI for Social Good and African sustainability goals. Our contributions are threefold: • Improved Image Classification Pipeline: We present an improved image classification pipeline for African wildlife conservation, incorporating tailored dataset preprocessing and model fine-tuning strategies specifically adapted to African ecological contexts. • Comparative Evaluation of Architectures: We conduct a comprehensive evaluation of DenseNet’s performance relative to other deep learning architectures, providing insights into the trade-offs between accuracy and computational efficiency. • Ethical and Responsible AI Deployment: We explicitly address the ethical considerations, limitations, and broader societal impacts of deploying AI systems for conservation in Africa. II Related Work Deep Learning for Wildlife Conservation. The intersection of computer vision and wildlife conservation has attracted considerable interest in recent years. Early pioneering work by [ 3 ] applied deep CNNs (e.g., ResNet-152) to the Snapshot Serengeti camera trap dataset [ 11 ] , achieving remarkable accuracy in identifying over 40 species and demonstrating that deep learning can greatly improve ecological data processing. Following this, [ 12 ] emphasized the challenge of generalizing models to new locations (“unseen domains”) in the wildlife context. Their iWildCam 2018 study on the iwildCam dataset [ 13 ] showed that models trained on one set of camera traps suffered performance drops when applied to data from different regions, underlining the importance of diverse training data and domain adaptation techniques. More recently, the WILDS benchmark [ 14 ] formalized such distribution shift challenges, including an animal camera trap classification task that tests robustness of models to changes in geographical location and imaging conditions. Beyond camera trap imagery, deep learning has been used in various conservation scenarios. For instance, [ 15 ] developed an active learning framework to improve species classification, reducing the annotation burden by iteratively selecting the most informative wildlife images for labeling. Their approach, evaluated on a large collection of European and African wildlife images, highlights how human-in-the-loop strategies can address dataset bias and scarcity. In aerial and drone-based wildlife monitoring, CNNs and object detectors have been used to detect animals in overhead imagery [ 5 ] , expanding the toolkit for conservationists to include surveillance from the skies. These efforts collectively illustrate the growing role of AI in biodiversity assessment. CNN Architectures in Image Classification. Convolutional neural networks have seen rapid evolution, with numerous architectures pushing the state of the art on image classification benchmarks. ResNet [ 8 ] , introduced in 2015, demonstrated that very deep networks (with 50+ layers) could be effectively trained using residual skip connections, and it remains a popular backbone for many vision tasks. DenseNet [ 7 ] further innovated by connecting each layer to all subsequent layers, maximizing feature reuse and alleviating vanishing gradients; this compact architecture often achieves comparable accuracy to deeper ResNets with fewer parameters. Another notable family is EfficientNet [ 9 ] , which introduced a principled compound scaling method to balance network depth, width, and resolution, leading to a series of models ( from B0 to B7) that achieved excellent accuracy with high parameter efficiency. In parallel, the vision transformer (ViT) architecture [ 10 ] showed that transformer models (prevalent in NLP) can also excel at image recognition when trained on large datasets, by dividing images into patch embeddings and relying on self-attention mechanisms instead of convolutions. In wildlife image classification tasks, most studies have employed CNN architectures (often ResNet-based) via transfer learning. [ 16 ] proposed a modified attention-based CNN (incorporating feature pyramid networks) and tested it on the same African Wildlife dataset used in this work, as well as an Animal-80 dataset; their method improved detection and

Read the complete text