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

Automated Behavior Recognition and Tracking of Group-Housed Pigs with an Improved DeepSORT Method

Author

Listed:
  • Shuqin Tu

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China
    Guangzhou Key Laboratory of Intelligent Agriculture, South China Agricultural University, Guangzhou 510642, China)

  • Qiantao Zeng

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China)

  • Yun Liang

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China
    Guangzhou Key Laboratory of Intelligent Agriculture, South China Agricultural University, Guangzhou 510642, China)

  • Xiaolong Liu

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China)

  • Lei Huang

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China)

  • Shitong Weng

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China)

  • Qiong Huang

    (College of Mathematics and Informatics, South China Agricultural University, Guangzhou 510642, China
    Guangzhou Key Laboratory of Intelligent Agriculture, South China Agricultural University, Guangzhou 510642, China)

Abstract

Pig behavior recognition and tracking in group-housed livestock are effective aids for health and welfare monitoring in commercial settings. However, due to demanding farm conditions, the targets in the pig videos are heavily occluded and overlapped, and there are illumination changes, which cause error switches of pig identify (ID) in the tracking process and decrease the tracking quality. To solve these problems, this study proposed an improved DeepSORT algorithm for object tracking, which contained three processes. Firstly, two detectors, YOLOX-S and YOLO v5s, were developed to detect pig targets and classify four types of pig behaviors including lying, eating, standing, and other. Then, the improved DeepSORT was developed for pig behavior tracking and reducing error changes of pig ID by improving trajectory processing and data association. Finally, we established the public dataset annotation of group-housed pigs, with 3600 images in a total from 12 videos, which were suitable for pig tracking applications. The advantage of our method includes two aspects. One is that the trajectory processing and data association are improved by aiming at pig-specific scenarios, which are indoor scenes, and the number of pig target objects is stable. This improvement reduces the error switches of pig ID and enhances the stability of the tracking. The other is that the behavior classification information from the detectors is introduced into the tracking algorithm for behavior tracking. In the experiments of pig detection and behavior recognition, the YOLO v5s and YOLOX-S detectors achieved a high precision rate of 99.4% and 98.43%, a recall rate of 99% and 99.23, and a mean average precision (mAP) rate of 99.50% and 99.23%, respectively, with an AP.5:.95 of 89.3% and 87%. In the experiments of pig behavior tracking, the improved DeepSORT algorithm based on YOLOX-S obtained multi-object tracking accuracy (MOTA), ID switches (IDs), and IDF1 of 98.6%,15, and 95.7%, respectively. Compared with DeepSORT, it improved by 1.8% and 6.8% in MOTA and IDF1, respectively, and IDs had a significant decrease, with a decline of 80%. These experiments demonstrate that the improved DeepSORT can achieve pig behavior tracking with stable ID values under commercial conditions and provide scalable technical support for contactless automated pig monitoring.

Suggested Citation

  • Shuqin Tu & Qiantao Zeng & Yun Liang & Xiaolong Liu & Lei Huang & Shitong Weng & Qiong Huang, 2022. "Automated Behavior Recognition and Tracking of Group-Housed Pigs with an Improved DeepSORT Method," Agriculture, MDPI, vol. 12(11), pages 1-20, November.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:11:p:1907-:d:970945
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/12/11/1907/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/12/11/1907/
    Download Restriction: no
    ---><---

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Fang Wang & Xueliang Fu & Weijun Duan & Buyu Wang & Honghui Li, 2023. "Visual Detection of Lost Ear Tags in Breeding Pigs in a Production Environment Using the Enhanced Cascade Mask R-CNN," Agriculture, MDPI, vol. 13(10), pages 1-15, October.

    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:11:p:1907-:d:970945. 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.