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

Automatic Position Detection and Posture Recognition of Grouped Pigs Based on Deep Learning

Author

Listed:
  • Hengyi Ji

    (College of Water Resources & Civil Engineering, China Agricultural University, Beijing 100083, China
    Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China)

  • Jionghua Yu

    (Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China)

  • Fengdan Lao

    (Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China
    Network Center, China Agricultural University, Beijing 100083, China)

  • Yanrong Zhuang

    (College of Water Resources & Civil Engineering, China Agricultural University, Beijing 100083, China
    Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China)

  • Yanbin Wen

    (Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China
    Bureau of Agricultural and Rural Affairs, Datong 037000, China)

  • Guanghui Teng

    (College of Water Resources & Civil Engineering, China Agricultural University, Beijing 100083, China
    Key Laboratory of Agricultural Engineering in Structure and Environment, Ministry of Agriculture and Rural Affairs, Beijing 100083, China)

Abstract

The accurate and rapid detection of objects in videos facilitates the identification of abnormal behaviors in pigs and the introduction of preventive measures to reduce morbidity. In addition, accurate and effective pig detection algorithms provide a basis for pig behavior analysis and management decision-making. Monitoring the posture of pigs can enable the detection of the precursors of pig diseases in a timely manner and identify factors that impact pigs’ health, which helps to evaluate their health status and comfort. Excessive sitting represents abnormal behavior when pigs are frustrated in a restricted environment. The present study focuses on the automatic recognition of standing posture and lying posture in grouped pigs, which shows a lack of recognition of sitting posture. The main contributions of this paper are as follows: A human-annotated dataset of standing, lying, and sitting postures captured by 2D cameras during the day and night in a pig barn was established, and a simplified copy, paste, and label smoothing strategy was applied to solve the problem of class imbalance caused by the lack of sitting postures among pigs in the dataset. The improved YOLOX has an average precision with an intersection over union threshold of 0.5 (AP 0.5 ) of 99.5% and average precision with an intersection over union threshold of 0.5–0.95 (AP 0.5–0.95 ) of 91% in pig position detection; an AP 0.5 of 90.9% and an AP 0.5–0.95 of 82.8% in sitting posture recognition; a mean average precision with intersection over union threshold of 0.5 (mAP 0.5 ) of 95.7% and a mean average precision with intersection over union threshold of 0.5–0.95 (mAP 0.5–0.95 ) of 87.2% in all posture recognition. The method proposed in our study can improve the position detection and posture recognition of grouped pigs effectively, especially for pig sitting posture recognition, and can meet the needs of practical application in pig farms.

Suggested Citation

  • Hengyi Ji & Jionghua Yu & Fengdan Lao & Yanrong Zhuang & Yanbin Wen & Guanghui Teng, 2022. "Automatic Position Detection and Posture Recognition of Grouped Pigs Based on Deep Learning," Agriculture, MDPI, vol. 12(9), pages 1-17, August.
  • Handle: RePEc:gam:jagris:v:12:y:2022:i:9:p:1314-:d:898364
    as

    Download full text from publisher

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

    File URL: https://www.mdpi.com/2077-0472/12/9/1314/
    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:9:p:1314-:d:898364. 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.