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

DBCA-Net: A Dual-Branch Context-Aware Algorithm for Cattle Face Segmentation and Recognition

Author

Listed:
  • Xiaopu Feng

    (College of Electric Power, Inner Mongolia University of Technology, Hohhot 010051, China)

  • Jiaying Zhang

    (College of Electric Power, Inner Mongolia University of Technology, Hohhot 010051, China
    Large-Scale Energy Storage Technology Engineering Research Center of Ministry of Education, Hohhot 010080, China)

  • Yongsheng Qi

    (College of Electric Power, Inner Mongolia University of Technology, Hohhot 010051, China
    Large-Scale Energy Storage Technology Engineering Research Center of Ministry of Education, Hohhot 010080, China
    Inner Mongolia Autonomous Region University Smart Energy Technology and Equipment Engineering Research Center, Hohhot 010080, China)

  • Liqiang Liu

    (College of Electric Power, Inner Mongolia University of Technology, Hohhot 010051, China
    Large-Scale Energy Storage Technology Engineering Research Center of Ministry of Education, Hohhot 010080, China
    Inner Mongolia Autonomous Region University Smart Energy Technology and Equipment Engineering Research Center, Hohhot 010080, China)

  • Yongting Li

    (College of Electric Power, Inner Mongolia University of Technology, Hohhot 010051, China
    Large-Scale Energy Storage Technology Engineering Research Center of Ministry of Education, Hohhot 010080, China
    Inner Mongolia Autonomous Region University Smart Energy Technology and Equipment Engineering Research Center, Hohhot 010080, China)

Abstract

Cattle face segmentation and recognition in complex scenarios pose significant challenges due to insufficient fine-grained feature representation in segmentation networks and limited modeling of salient regions and local–global feature interactions in recognition models. To address these issues, DBCA-Net, a dual-branch context-aware algorithm for cattle face segmentation and recognition, is proposed. The method integrates an improved TransUNet-based segmentation network with a novel Fusion-Augmented Channel Attention (FACA) mechanism in the hybrid encoder, enhancing channel attention and fine-grained feature representation to improve segmentation performance in complex environments. The decoder incorporates an Adaptive Multi-Scale Attention Gate (AMAG) module, which mitigates interference from complex backgrounds through adaptive multi-scale feature fusion. Additionally, FACA and AMAG establish a dynamic feedback mechanism that enables iterative optimization of feature representation and parameter updates. For recognition, the GeLU-enhanced Partial Class Activation Attention (G-PCAA) module is introduced after Patch Partition, strengthening salient region modeling and enhancing local–global feature interaction. Experimental results demonstrate that DBCA-Net achieves superior performance, with 95.48% mIoU and 97.61% mDSC in segmentation tasks and 95.34% accuracy and 93.14% F1-score in recognition tasks. These findings underscore the effectiveness of DBCA-Net in addressing segmentation and recognition challenges in complex scenarios, offering significant improvements over existing methods.

Suggested Citation

  • Xiaopu Feng & Jiaying Zhang & Yongsheng Qi & Liqiang Liu & Yongting Li, 2025. "DBCA-Net: A Dual-Branch Context-Aware Algorithm for Cattle Face Segmentation and Recognition," Agriculture, MDPI, vol. 15(5), pages 1-30, February.
  • Handle: RePEc:gam:jagris:v:15:y:2025:i:5:p:516-:d:1601535
    as

    Download full text from publisher

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

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

    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:5:p:516-:d:1601535. 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.