DGF–YOLOv12n–LiteP2: Dynamic Gated Local–Context Fusion with a High-Resolution Detection Head for Cattle Body-Part Detection in Complex Barns

Reliable cattle body-part localization provides visual inputs for downstream posture, locomotion, and behavior analysis in precision livestock farming. However, complex barn environments introduce scale variation, occlusion, illumination changes, and rail-like background interference. DGF–YOLOv12n–LiteP2 is presented as a YOLOv12n-based detector that combines dynamic fusion of local and contextual features with a lightweight stride-4 prediction branch. The dynamic gated fusion module integrates multi-kernel local feature extraction, progressive receptive-field aggregation, and input-conditioned channel selection. LiteP2 preserves high-resolution spatial information by reusing the backbone P2 feature without constructing a complete high-resolution feature pyramid. Experiments were conducted on a single-site dataset containing 6991 valid images and 132,302 body-part annotations. On the held-out in-domain test set, DGF–YOLOv12n–LiteP2 achieved 93.92% mAP50, 79.27% mAP75, and 69.88% mAP50:95. Compared with YOLOv12n, mAP50:95 increased by 9.61 percentage points. Across three training runs with different random seeds, the mean mAP50:95 reached 70.03±0.30%. The model contained 11.68 M parameters and required 22.89 GFLOPs, indicating a trade-off between detection accuracy and computational cost. These results support the complementary roles of dynamic feature fusion and high-resolution prediction under the evaluated barn conditions. Further validation on additional farms, longer acquisition periods, and agricultural edge devices remains necessary.

Authors

Institutions

Publication Details

Journal
Sensors
Published
2026-09-28
DOI
https://doi.org/10.3390/s26196156
Primary Topic
Animal Behavior and Welfare Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

DGF–YOLOv12n–LiteP2: Dynamic Gated Local–Context Fusion with a High-Resolution Detection Head for Cattle Body-Part Detection in Complex Barns

Meng Han, 韩稼梓, Le Yang, Hua Yang et al.
Sensors
Animal Behavior and Welfare Studies
article

DGF–YOLOv12n–LiteP2: Dynamic Gated Local–Context Fusion with a High-Resolution Detection Head for Cattle Body-Part Detection in Complex Barns

Meng Han, 韩稼梓, Le Yang, Hua Yang, Yanhong Liu, Qingqing Li, Jingrong Wang
article en

Abstract

Reliable cattle body-part localization provides visual inputs for downstream posture, locomotion, and behavior analysis in precision livestock farming. However, complex barn environments introduce scale variation, occlusion, illumination changes, and rail-like background interference. DGF–YOLOv12n–LiteP2 is presented as a YOLOv12n-based detector that combines dynamic fusion of local and contextual features with a lightweight stride-4 prediction branch. The dynamic gated fusion module integrates multi-kernel local feature extraction, progressive receptive-field aggregation, and input-conditioned channel selection. LiteP2 preserves high-resolution spatial information by reusing the backbone P2 feature without constructing a complete high-resolution feature pyramid. Experiments were conducted on a single-site dataset containing 6991 valid images and 132,302 body-part annotations. On the held-out in-domain test set, DGF–YOLOv12n–LiteP2 achieved 93.92% mAP50, 79.27% mAP75, and 69.88% mAP50:95. Compared with YOLOv12n, mAP50:95 increased by 9.61 percentage points. Across three training runs with different random seeds, the mean mAP50:95 reached 70.03±0.30%. The model contained 11.68 M parameters and required 22.89 GFLOPs, indicating a trade-off between detection accuracy and computational cost. These results support the complementary roles of dynamic feature fusion and high-resolution prediction under the evaluated barn conditions. Further validation on additional farms, longer acquisition periods, and agricultural edge devices remains necessary.

SensorsVol. 26(19)
Shanxi Agricultural University (CN)
Zero hunger
Openalex Percentile: Top 9%
Animal Behavior and Welfare Studies
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.

DGF–YOLOv12n–LiteP2: Dynamic Gated Local–Context Fusion with a High-Resolution Detection Head for Cattle Body-Part Detection in Complex Barns — Meng Han, 韩稼梓, et al. · Sensors (2026) | TGRS Research Map | TGRS