YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm

Accurate identification of individual cow identity is a prerequisite for the construction of digital farms and serves as the basis for optimized feeding, disease prevention and control, breed improvement, and product quality traceability. Currently, cow identification faces challenges such as poor r...

Full description

Saved in:
Bibliographic Details
Main Authors: Hongtao Zhang, Li Zheng, Lian Tan, Jiahui Gao, Yiming Luo
Format: Article
Language:English
Published: MDPI AG 2024-11-01
Series:Agriculture
Subjects:
Online Access:https://www.mdpi.com/2077-0472/14/11/1982
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850267279638396928
author Hongtao Zhang
Li Zheng
Lian Tan
Jiahui Gao
Yiming Luo
author_facet Hongtao Zhang
Li Zheng
Lian Tan
Jiahui Gao
Yiming Luo
author_sort Hongtao Zhang
collection DOAJ
description Accurate identification of individual cow identity is a prerequisite for the construction of digital farms and serves as the basis for optimized feeding, disease prevention and control, breed improvement, and product quality traceability. Currently, cow identification faces challenges such as poor recognition accuracy, large data volumes, weak model generalization ability, and low recognition speed. Therefore, this paper proposes a cow identification method based on YOLOX-S-TKECB. (1) Based on the characteristics of Holstein cows and their breeding practices, we constructed a real-time acquisition and preprocessing platform for two-dimensional Holstein cow images and built a cow identification model based on YOLOX-S-TKECB. (2) Transfer learning was introduced to improve the convergence speed and generalization ability of the cow identification model. (3) The CBAM attention mechanism module was added to enhance the model’s ability to extract features from cow torso patterns. (4) The alignment between the apriori frame and the target size was improved by optimizing the clustering algorithm and the multi-scale feature fusion method, thereby enhancing the performance of object detection at different scales. The experimental results demonstrate that, compared to the traditional YOLOX-S model, the improved model exhibits a 15.31% increase in mean average precision (mAP) and a 32-frame boost in frames per second (FPS). This validates the feasibility and effectiveness of the proposed YOLOX-S-TKECB-based cow identification algorithm, providing valuable technical support for the application of dairy cow identification in farms.
format Article
id doaj-art-ee56746c87cd41eaaa5546678fde184e
institution OA Journals
issn 2077-0472
language English
publishDate 2024-11-01
publisher MDPI AG
record_format Article
series Agriculture
spelling doaj-art-ee56746c87cd41eaaa5546678fde184e2025-08-20T01:53:52ZengMDPI AGAgriculture2077-04722024-11-011411198210.3390/agriculture14111982YOLOX-S-TKECB: A Holstein Cow Identification Detection AlgorithmHongtao Zhang0Li Zheng1Lian Tan2Jiahui Gao3Yiming Luo4College of Electrical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, ChinaCollege of Electrical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, ChinaCollege of Electrical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, ChinaCollege of Electrical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, ChinaCollege of Electrical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, ChinaAccurate identification of individual cow identity is a prerequisite for the construction of digital farms and serves as the basis for optimized feeding, disease prevention and control, breed improvement, and product quality traceability. Currently, cow identification faces challenges such as poor recognition accuracy, large data volumes, weak model generalization ability, and low recognition speed. Therefore, this paper proposes a cow identification method based on YOLOX-S-TKECB. (1) Based on the characteristics of Holstein cows and their breeding practices, we constructed a real-time acquisition and preprocessing platform for two-dimensional Holstein cow images and built a cow identification model based on YOLOX-S-TKECB. (2) Transfer learning was introduced to improve the convergence speed and generalization ability of the cow identification model. (3) The CBAM attention mechanism module was added to enhance the model’s ability to extract features from cow torso patterns. (4) The alignment between the apriori frame and the target size was improved by optimizing the clustering algorithm and the multi-scale feature fusion method, thereby enhancing the performance of object detection at different scales. The experimental results demonstrate that, compared to the traditional YOLOX-S model, the improved model exhibits a 15.31% increase in mean average precision (mAP) and a 32-frame boost in frames per second (FPS). This validates the feasibility and effectiveness of the proposed YOLOX-S-TKECB-based cow identification algorithm, providing valuable technical support for the application of dairy cow identification in farms.https://www.mdpi.com/2077-0472/14/11/1982YOLOX-SHolstein cowsobject detectionidentification algorithm
spellingShingle Hongtao Zhang
Li Zheng
Lian Tan
Jiahui Gao
Yiming Luo
YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
Agriculture
YOLOX-S
Holstein cows
object detection
identification algorithm
title YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
title_full YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
title_fullStr YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
title_full_unstemmed YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
title_short YOLOX-S-TKECB: A Holstein Cow Identification Detection Algorithm
title_sort yolox s tkecb a holstein cow identification detection algorithm
topic YOLOX-S
Holstein cows
object detection
identification algorithm
url https://www.mdpi.com/2077-0472/14/11/1982
work_keys_str_mv AT hongtaozhang yoloxstkecbaholsteincowidentificationdetectionalgorithm
AT lizheng yoloxstkecbaholsteincowidentificationdetectionalgorithm
AT liantan yoloxstkecbaholsteincowidentificationdetectionalgorithm
AT jiahuigao yoloxstkecbaholsteincowidentificationdetectionalgorithm
AT yimingluo yoloxstkecbaholsteincowidentificationdetectionalgorithm