IDEAS home Printed from https://ideas.repec.org/a/gam/jagris/v15y2025i18p1952-d1750090.html
   My bibliography  Save this article

RFR-YOLO-Based Recognition Method for Dairy Cow Behavior in Farming Environments

Author

Listed:
  • Congcong Li

    (College of Information Science and Technology, Hebei Agricultural University, Baoding 071001, China
    Hebei Key Laboratory of Agricultural Big Data, Hebei Agricultural University, Baoding 071001, China)

  • Jialong Ma

    (College of Information Science and Technology, Hebei Agricultural University, Baoding 071001, China)

  • Shifeng Cao

    (College of Information Science and Technology, Hebei Agricultural University, Baoding 071001, China)

  • Leifeng Guo

    (Agricultural Information Institute, Chinese Academy of Agricultural Sciences, Beijing 100081, China)

Abstract

Cow behavior recognition constitutes a fundamental element of effective cow health monitoring and intelligent farming systems. Within large-scale cow farming environments, several critical challenges persist, including the difficulty in accurately capturing behavioral feature information, substantial variations in multi-scale features, and high inter-class similarity among different cow behaviors. To address these limitations, this study introduces an enhanced target detection algorithm for cow behavior recognition, termed RFR-YOLO, which is developed upon the YOLOv11n framework. A well-structured dataset encompassing nine distinct cow behaviors—namely, lying, standing, walking, eating, drinking, licking, grooming, estrus, and limping—is constructed, comprising a total of 13,224 labeled samples. The proposed algorithm incorporates three major technical improvements: First, an Inverted Dilated Convolution module (Region Semantic Inverted Convolution, RsiConv) is designed and seamlessly integrated with the C3K2 module to form the C3K2_Rsi module, which effectively reduces computational overhead while enhancing feature representation. Second, a Four-branch Multi-scale Dilated Attention mechanism (Four Multi-Scale Dilated Attention, FMSDA) is incorporated into the network architecture, enabling the scale-specific features to align with the corresponding receptive fields, thereby improving the model’s capacity to capture multi-scale characteristics. Third, a Reparameterized Generalized Residual Feature Pyramid Network (Reparameterized Generalized Residual-FPN, RepGRFPN) is introduced as the Neck component, allowing for the features to propagate through differentiated pathways and enabling flexible control over multi-scale feature expression, thereby facilitating efficient feature fusion and mitigating the impact of behavioral similarity. The experimental results demonstrate that RFR-YOLO achieves precision, recall, mAP50, and mAP50:95 values of 95.9%, 91.2%, 94.9%, and 85.2%, respectively, representing performance gains of 5.5%, 5%, 5.6%, and 3.5% over the baseline model. Despite a marginal increase in computational complexity of 1.4G, the algorithm retains a high detection speed of 147.6 frames per second. The proposed RFR-YOLO algorithm significantly improves the accuracy and robustness of target detection in group cow farming scenarios.

Suggested Citation

  • Congcong Li & Jialong Ma & Shifeng Cao & Leifeng Guo, 2025. "RFR-YOLO-Based Recognition Method for Dairy Cow Behavior in Farming Environments," Agriculture, MDPI, vol. 15(18), pages 1-22, September.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:18:p:1952-:d:1750090
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/15/18/1952/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/15/18/1952/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jagris:v:15:y:2025:i:18:p:1952-:d:1750090. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.