Xiaopu Feng , Jiaying Zhang , Yongsheng Qi , Liqiang Liu , Yongting Li
{"title":"CATR-Net:具有自适应和增强分割和识别功能的关注牛的变压器","authors":"Xiaopu Feng , Jiaying Zhang , Yongsheng Qi , Liqiang Liu , Yongting Li","doi":"10.1016/j.compag.2025.111038","DOIUrl":null,"url":null,"abstract":"<div><div>In open–range cattle–face analysis, conventional segmentation networks struggle to preserve fine–scale edge cues, and recognition networks weakly model salient regions and local–global context, yielding brittle performance under changing poses and illumination. We propose CATR–Net, an end–to–end framework that unifies segmentation and identification. In its segmentation branch, a Multiscale Edge–enhanced Upsampling Module (MEUM) is grafted onto the DA–TransUNet decoder to restore high–frequency boundaries and suppress up–sampling blur; in the recognition branch, a Dynamic Contextual Attention Module (DCAM) is inserted between the Stem and MaxViT blocks, and Dynamic Adaptive Interaction Normalization (DAIN) replaces the static Layer Normalization in LSRA (Local Region Self-Attention) with DyT (Dynamic tanh), together enabling pose– and scale–aware fusion of local priors with global dependencies. The recognition loss is further equipped with a confidence–gap regularizer that dynamically tunes the Dynamic–Tanh parameters, amplifying ambiguous features while stabilizing high–confidence activations. On a 57645–image multi–pose dataset, the segmentation branch achieves 93.35 % mIoU and 96.45 % mDSC with a 417 MB model, whereas the recognition branch attains 97.03 % accuracy and 95.19 % F1-score with a 457 MB footprint—both surpassing state–of–the–art baselines at comparable complexity.</div></div>","PeriodicalId":50627,"journal":{"name":"Computers and Electronics in Agriculture","volume":"239 ","pages":"Article 111038"},"PeriodicalIF":8.9000,"publicationDate":"2025-10-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"CATR-Net: Cattle–Attentive transformer with adaptive and enhanced segmentation and recognition\",\"authors\":\"Xiaopu Feng , Jiaying Zhang , Yongsheng Qi , Liqiang Liu , Yongting Li\",\"doi\":\"10.1016/j.compag.2025.111038\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>In open–range cattle–face analysis, conventional segmentation networks struggle to preserve fine–scale edge cues, and recognition networks weakly model salient regions and local–global context, yielding brittle performance under changing poses and illumination. We propose CATR–Net, an end–to–end framework that unifies segmentation and identification. In its segmentation branch, a Multiscale Edge–enhanced Upsampling Module (MEUM) is grafted onto the DA–TransUNet decoder to restore high–frequency boundaries and suppress up–sampling blur; in the recognition branch, a Dynamic Contextual Attention Module (DCAM) is inserted between the Stem and MaxViT blocks, and Dynamic Adaptive Interaction Normalization (DAIN) replaces the static Layer Normalization in LSRA (Local Region Self-Attention) with DyT (Dynamic tanh), together enabling pose– and scale–aware fusion of local priors with global dependencies. The recognition loss is further equipped with a confidence–gap regularizer that dynamically tunes the Dynamic–Tanh parameters, amplifying ambiguous features while stabilizing high–confidence activations. On a 57645–image multi–pose dataset, the segmentation branch achieves 93.35 % mIoU and 96.45 % mDSC with a 417 MB model, whereas the recognition branch attains 97.03 % accuracy and 95.19 % F1-score with a 457 MB footprint—both surpassing state–of–the–art baselines at comparable complexity.</div></div>\",\"PeriodicalId\":50627,\"journal\":{\"name\":\"Computers and Electronics in Agriculture\",\"volume\":\"239 \",\"pages\":\"Article 111038\"},\"PeriodicalIF\":8.9000,\"publicationDate\":\"2025-10-02\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Computers and Electronics in Agriculture\",\"FirstCategoryId\":\"97\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0168169925011445\",\"RegionNum\":1,\"RegionCategory\":\"农林科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURE, MULTIDISCIPLINARY\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers and Electronics in Agriculture","FirstCategoryId":"97","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0168169925011445","RegionNum":1,"RegionCategory":"农林科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURE, MULTIDISCIPLINARY","Score":null,"Total":0}
CATR-Net: Cattle–Attentive transformer with adaptive and enhanced segmentation and recognition
In open–range cattle–face analysis, conventional segmentation networks struggle to preserve fine–scale edge cues, and recognition networks weakly model salient regions and local–global context, yielding brittle performance under changing poses and illumination. We propose CATR–Net, an end–to–end framework that unifies segmentation and identification. In its segmentation branch, a Multiscale Edge–enhanced Upsampling Module (MEUM) is grafted onto the DA–TransUNet decoder to restore high–frequency boundaries and suppress up–sampling blur; in the recognition branch, a Dynamic Contextual Attention Module (DCAM) is inserted between the Stem and MaxViT blocks, and Dynamic Adaptive Interaction Normalization (DAIN) replaces the static Layer Normalization in LSRA (Local Region Self-Attention) with DyT (Dynamic tanh), together enabling pose– and scale–aware fusion of local priors with global dependencies. The recognition loss is further equipped with a confidence–gap regularizer that dynamically tunes the Dynamic–Tanh parameters, amplifying ambiguous features while stabilizing high–confidence activations. On a 57645–image multi–pose dataset, the segmentation branch achieves 93.35 % mIoU and 96.45 % mDSC with a 417 MB model, whereas the recognition branch attains 97.03 % accuracy and 95.19 % F1-score with a 457 MB footprint—both surpassing state–of–the–art baselines at comparable complexity.
期刊介绍:
Computers and Electronics in Agriculture provides international coverage of advancements in computer hardware, software, electronic instrumentation, and control systems applied to agricultural challenges. Encompassing agronomy, horticulture, forestry, aquaculture, and animal farming, the journal publishes original papers, reviews, and applications notes. It explores the use of computers and electronics in plant or animal agricultural production, covering topics like agricultural soils, water, pests, controlled environments, and waste. The scope extends to on-farm post-harvest operations and relevant technologies, including artificial intelligence, sensors, machine vision, robotics, networking, and simulation modeling. Its companion journal, Smart Agricultural Technology, continues the focus on smart applications in production agriculture.