Author
Listed:
- Rong Wang
(College of Information Engineering, Northwest A&F University, Yangling, Xianyang 712100, China
Research Center of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China)
- Zongzhi Gao
(College of Mechanical Engineering, Beijing Institute of Petrochemical Technology, Beijing 102617, China)
- Qifeng Li
(Research Center of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China)
- Chunjiang Zhao
(College of Information Engineering, Northwest A&F University, Yangling, Xianyang 712100, China
Research Center of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China)
- Ronghua Gao
(Research Center of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China)
- Hongming Zhang
(College of Information Engineering, Northwest A&F University, Yangling, Xianyang 712100, China)
- Shuqin Li
(College of Information Engineering, Northwest A&F University, Yangling, Xianyang 712100, China)
- Lu Feng
(Research Center of Information Technology, Beijing Academy of Agriculture and Forestry Sciences, Beijing 100097, China
National Engineering Research Center for Information Technology in Agriculture, Beijing 100097, China)
Abstract
Natural breeding scenes have the characteristics of a large number of cows, complex lighting, and a complex background environment, which presents great difficulties for the detection of dairy cow estrus behavior. However, the existing research on cow estrus behavior detection works well in ideal environments with a small number of cows and has a low inference speed and accuracy in natural scenes. To improve the inference speed and accuracy of cow estrus behavior in natural scenes, this paper proposes a cow estrus behavior detection method based on the improved YOLOv5. By improving the YOLOv5 model, it has stronger detection ability for complex environments and multi-scale objects. First, the atrous spatial pyramid pooling (ASPP) module is employed to optimize the YOLOv5l network at multiple scales, which improves the model’s receptive field and ability to perceive global contextual multiscale information. Second, a cow estrus behavior detection model is constructed by combining the channel-attention mechanism and a deep-asymmetric-bottleneck module. Last, K-means clustering is performed to obtain new anchors and complete intersection over union (CIoU) is used to introduce the relative ratio between the predicted box of the cow mounting and the true box of the cow mounting to the regression box prediction function to improve the scale invariance of the model. Multiple cameras were installed in a natural breeding scene containing 200 cows to capture videos of cows mounting. A total of 2668 images were obtained from 115 videos of cow mounting events from the training set, and 675 images were obtained from 29 videos of cow mounting events from the test set. The training set is augmented by the mosaic method to increase the diversity of the dataset. The experimental results show that the average accuracy of the improved model was 94.3%, that the precision was 97.0%, and that the recall was 89.5%, which were higher than those of mainstream models such as YOLOv5, YOLOv3, and Faster R-CNN. The results of the ablation experiments show that ASPP, new anchors, C3SAB, and C3DAB designed in this study can improve the accuracy of the model by 5.9%. Furthermore, when the ASPP dilated convolution was set to (1,5,9,13) and the loss function was set to CIoU, the model had the highest accuracy. The class activation map function was utilized to visualize the model’s feature extraction results and to explain the model’s region of interest for cow images in natural scenes, which demonstrates the effectiveness of the model. Therefore, the model proposed in this study can improve the accuracy of the model for detecting cow estrus events. Additionally, the model’s inference speed was 71 frames per second (fps), which meets the requirements of fast and accurate detection of cow estrus events in natural scenes and all-weather conditions.
Suggested Citation
Rong Wang & Zongzhi Gao & Qifeng Li & Chunjiang Zhao & Ronghua Gao & Hongming Zhang & Shuqin Li & Lu Feng, 2022.
"Detection Method of Cow Estrus Behavior in Natural Scenes Based on Improved YOLOv5,"
Agriculture, MDPI, vol. 12(9), pages 1-19, August.
Handle:
RePEc:gam:jagris:v:12:y:2022:i:9:p:1339-:d:901486
Download full text from publisher
Citations
Citations are extracted by the
CitEc Project, subscribe to its
RSS feed for this item.
Cited by:
- Gang Liu & Hao Guo & Alexey Ruchay & Andrea Pezzuolo, 2023.
"Recent Advancements in Precision Livestock Farming,"
Agriculture, MDPI, vol. 13(9), pages 1-3, August.
- Dangguo Shao & Zihan He & Hongbo Fan & Kun Sun, 2023.
"Detection of Cattle Key Parts Based on the Improved Yolov5 Algorithm,"
Agriculture, MDPI, vol. 13(6), pages 1-16, May.
- Na Liu & Jingwei Qi & Xiaoping An & Yuan Wang, 2023.
"A Review on Information Technologies Applicable to Precision Dairy Farming: Focus on Behavior, Health Monitoring, and the Precise Feeding of Dairy Cows,"
Agriculture, MDPI, vol. 13(10), pages 1-21, September.
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:12:y:2022:i:9:p:1339-:d:901486. 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.