BFFPN-YOLO: Detection of Cow Estrus Behavior Under Fisheye Imaging via Boundary Enhancement and Frequency-Domain Compensation
Xiaohan Yang, Rong Wang, Qifeng Li, Weiwei Huang, Yujiao Rong, Xuwen Li, Tonghui Wu, Ronghua GaoIn modern farm management, accurate detection of estrus behavior in dairy cows is essential for improving reproductive efficiency and enabling intelligent decision-making. Although fisheye lenses offer a wider field of view, they often introduce image distortion. This leads to geometric and scale deformation of cow mounting behavior features, which reduces detection accuracy. To address this issue, a lightweight model called Boundary-Enhanced Frequency-Domain Feature Pyramid Network YOLO (BFFPN-YOLO) was developed. It is designed for detecting dairy cow mounting behavior under fisheye imaging, incorporating boundary enhancement and frequency-domain compensation. Initially, the backbone network was equipped with the multi-scale dilated fusion structure SPPELAN. This structure expands the receptive field and preserves detailed information, thereby enhancing boundary modeling for targets with scale variations. Subsequently, a boundary-enhanced frequency-domain feature pyramid network (BFFPN) module was designed for reconstructing the top-down transmission path in the Neck. The module is composed of the frequency-domain detail compensation FreqFusion and the spatial attention enhancement SEAM. By strengthening boundary responses, compensating for high-frequency details, and replacing the traditional upsampling and concatenation operations, it effectively mitigates blurred target boundaries in images of dairy cow mounting behavior. The improved algorithm demonstrates strong detection performance, achieving a Precision of 88%, a Recall of 84.5%, and an mAP@0.5 of 92.7%. Compared with the original YOLOv11, these metrics were increased by 3.8, 2.3, and 4.6 percentage points, respectively. The model parameter count was reduced by 1.10 × 106. In complex scenarios, edge features and high-frequency details of dairy cow mounting behavior are more accurately captured by the improved model. These improvements provide a reliable technical basis for the intelligent detection of estrus behavior.