RF-GoatDet: An Occlusion-Aware Instance Segmentation Framework for Dairy Goats with an Adaptive Receptive Field Encoder

Accurate instance segmentation is essential for precision livestock farming, as it supports individual tracking, posture analysis, body-shape measurement, and other downstream visual monitoring tasks. However, dairy goat segmentation in dense barn scenes remains challenging because frequent mutual occlusion, instance adhesion, partial visibility, and non-rigid posture variation often lead to incomplete masks and ambiguous instance boundaries. To address these challenges, this study develops RF-GoatDet, a real-time instance segmentation framework for dairy goats built upon RT-DETR. The main component of the proposed framework is an Adaptive Receptive Field Encoder (ARFE), which enhances feature encoding by adapting the effective receptive field to irregular goat contours, scale variation, and partially visible body regions. In addition, Coordinate Attention is introduced to strengthen direction-aware spatial representation, while a Query-Conditioned Dynamic Mask Head is used to generate instance-specific masks and improve the separation of adjacent goats. A dairy goat instance segmentation dataset containing 2288 annotated images was constructed, and a two-stage cleaning procedure was applied to reduce redundancy and visual anomalies. Experimental results show that RF-GoatDet achieves 46.5% mask AP and 62 FPS on this dataset, improving the RT-DETR baseline by 4.2 percentage points in mask AP while maintaining real-time inference. These results demonstrate that the proposed ARFE-centered framework effectively improves mask quality and instance discrimination in dense dairy goat scenes, providing a robust and efficient solution for real-time visual monitoring in precision livestock farming.

Authors

Institutions

Publication Details

Journal
Mathematics
Published
2026-05-22
DOI
https://doi.org/10.3390/math14111786
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
OCT
article

RF-GoatDet: An Occlusion-Aware Instance Segmentation Framework for Dairy Goats with an Adaptive Receptive Field Encoder

Yongliang Zhang, R. J. Guo, Nan Geng, Yue Yang
Mathematics
Animal Behavior and Welfare Studies
article

RF-GoatDet: An Occlusion-Aware Instance Segmentation Framework for Dairy Goats with an Adaptive Receptive Field Encoder

Yongliang Zhang, R. J. Guo, Nan Geng, Yue Yang
article en

Abstract

Accurate instance segmentation is essential for precision livestock farming, as it supports individual tracking, posture analysis, body-shape measurement, and other downstream visual monitoring tasks. However, dairy goat segmentation in dense barn scenes remains challenging because frequent mutual occlusion, instance adhesion, partial visibility, and non-rigid posture variation often lead to incomplete masks and ambiguous instance boundaries. To address these challenges, this study develops RF-GoatDet, a real-time instance segmentation framework for dairy goats built upon RT-DETR. The main component of the proposed framework is an Adaptive Receptive Field Encoder (ARFE), which enhances feature encoding by adapting the effective receptive field to irregular goat contours, scale variation, and partially visible body regions. In addition, Coordinate Attention is introduced to strengthen direction-aware spatial representation, while a Query-Conditioned Dynamic Mask Head is used to generate instance-specific masks and improve the separation of adjacent goats. A dairy goat instance segmentation dataset containing 2288 annotated images was constructed, and a two-stage cleaning procedure was applied to reduce redundancy and visual anomalies. Experimental results show that RF-GoatDet achieves 46.5% mask AP and 62 FPS on this dataset, improving the RT-DETR baseline by 4.2 percentage points in mask AP while maintaining real-time inference. These results demonstrate that the proposed ARFE-centered framework effectively improves mask quality and instance discrimination in dense dairy goat scenes, providing a robust and efficient solution for real-time visual monitoring in precision livestock farming.

MathematicsVol. 14(11)
Ministry of Agriculture and Rural Affairs (CN), Northwest A&F University (CN)
Peace, Justice and strong institutions
Openalex Percentile: Top 4%
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.