Small Object Detection Method for Farmed Animals in UAV Images Based on Improved YOLOv7-Tiny

Unmanned Aerial Vehicle (UAV) technology plays a vital role in the animal husbandry industry. Highresolution images can monitor the spatial distribution and behavior patterns of animal populations in real time, thereby significantly improving the efficiency of animal breeding management. In view of the technical difficulties commonly found in animal husbandry, such as small target size, frequent occlusion, and unbalanced category distribution, this study proposes an enhanced animal small target detection algorithm based on the YOLOv7-tiny framework, named SPF-YOLOv7-tiny. The algorithm contains three key innovations: first, the Segment Anything Model (SAM) image segmentation technology is integrated to optimize the Mosaic data enhancement strategy, significantly improving the diversity of training samples; second, the dedicated small target detection head module enhances the feature extraction capability of tiny targets. Third, the Focal_DIoU loss function is used to replace the original SIoU, which effectively alleviates the impact of category imbalance on detection accuracy. In order to verify the performance of the algorithm, a special farmed animal image dataset was constructed and a comparative experiment was conducted. Experimental data show that the improved SPF-YOLOv7-tiny algorithm achieved a recognition accuracy of 92.6% on the self-built data set, and the detection speed reached 103 FPS, which is 2.5% higher than the baseline YOLOv7-tiny model mean Average Precision (mAP). Compared with Faster Region-based Convolutional Neural Network (R-CNN), YOLOX, YOLOv5s, NanoDet and Single Shot multiBox Detector (SSD), the SPF-YOLOv7-tiny algorithm has excellent detection performance. Although the detection speed is slightly lower than NanoDet, it can also meet the needs of real-time detection, providing strong technical support for real-time detection applications in actual farming scenarios.

Authors

Institutions

Publication Details

Journal
Contemporary Mathematics
Published
2025-08-28
DOI
https://doi.org/10.37256/cm.6520257392
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Small Object Detection Method for Farmed Animals in UAV Images Based on Improved YOLOv7-Tiny

Zhe Kang, Jocelyn F. Villaverde, Ji Zhang
Contemporary Mathematics
Advanced Neural Network Applications
article

Small Object Detection Method for Farmed Animals in UAV Images Based on Improved YOLOv7-Tiny

Zhe Kang, Jocelyn F. Villaverde, Ji Zhang
article en

Abstract

Unmanned Aerial Vehicle (UAV) technology plays a vital role in the animal husbandry industry. Highresolution images can monitor the spatial distribution and behavior patterns of animal populations in real time, thereby significantly improving the efficiency of animal breeding management. In view of the technical difficulties commonly found in animal husbandry, such as small target size, frequent occlusion, and unbalanced category distribution, this study proposes an enhanced animal small target detection algorithm based on the YOLOv7-tiny framework, named SPF-YOLOv7-tiny. The algorithm contains three key innovations: first, the Segment Anything Model (SAM) image segmentation technology is integrated to optimize the Mosaic data enhancement strategy, significantly improving the diversity of training samples; second, the dedicated small target detection head module enhances the feature extraction capability of tiny targets. Third, the Focal_DIoU loss function is used to replace the original SIoU, which effectively alleviates the impact of category imbalance on detection accuracy. In order to verify the performance of the algorithm, a special farmed animal image dataset was constructed and a comparative experiment was conducted. Experimental data show that the improved SPF-YOLOv7-tiny algorithm achieved a recognition accuracy of 92.6% on the self-built data set, and the detection speed reached 103 FPS, which is 2.5% higher than the baseline YOLOv7-tiny model mean Average Precision (mAP). Compared with Faster Region-based Convolutional Neural Network (R-CNN), YOLOX, YOLOv5s, NanoDet and Single Shot multiBox Detector (SSD), the SPF-YOLOv7-tiny algorithm has excellent detection performance. Although the detection speed is slightly lower than NanoDet, it can also meet the needs of real-time detection, providing strong technical support for real-time detection applications in actual farming scenarios.

Contemporary Mathematics
Mapúa University (PH), Guangdong Technology College
Openalex Percentile: Top 78%
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.