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

IO-YOLOv5: Improved Pig Detection under Various Illuminations and Heavy Occlusion

Author

Listed:
  • Jiajun Lai

    (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)

  • Yingjie Kuang

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

  • Zhannan Xie

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

  • Hongyuan He

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

  • Yuxin Zhuo

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

  • Zekai Huang

    (College of Engineering, South China Agricultural University, Guangzhou 510642, China)

  • Shijie Zhu

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

  • Zenghang Huang

    (College of Engineering, South China Agricultural University, Guangzhou 510642, China)

Abstract

Accurate detection and counting of live pigs are integral to scientific breeding and production in intelligent agriculture. However, existing pig counting methods are challenged by heavy occlusion and varying illumination conditions. To overcome these challenges, we proposed IO-YOLOv5 (Illumination-Occlusion YOLOv5), an improved network that expands on the YOLOv5 framework with three key contributions. Firstly, we introduced the Simple Attention Receptive Field Block (SARFB) module to expand the receptive field and give greater weight to important features at different levels. The Ghost Spatial Pyramid Pooling Fast Cross Stage Partial Connections (GSPPFC) module was also introduced to enhance model feature reuse and information flow. Secondly, we optimized the loss function by using Varifocal Loss to improve the model’s learning ability on high-quality and challenging samples. Thirdly, we proposed a public dataset consisting of 1270 images and 15,672 pig labels. Experiments demonstrated that IO-YOLOv5 achieved a mean average precision (mAP) of 90.8% and a precision of 86.4%, surpassing the baseline model by 2.2% and 3.7% respectively. By using a model ensemble and test time augmentation, we further improved the mAP to 92.6%, which is a 4% improvement over the baseline model. Extensive experiments showed that IO-YOLOv5 exhibits excellent performance in pig recognition, particularly under heavy occlusion and various illuminations. These results provide a strong foundation for pig recognition in complex breeding environments.

Suggested Citation

  • Jiajun Lai & Yun Liang & Yingjie Kuang & Zhannan Xie & Hongyuan He & Yuxin Zhuo & Zekai Huang & Shijie Zhu & Zenghang Huang, 2023. "IO-YOLOv5: Improved Pig Detection under Various Illuminations and Heavy Occlusion," Agriculture, MDPI, vol. 13(7), pages 1-18, July.
  • Handle: RePEc:gam:jagris:v:13:y:2023:i:7:p:1349-:d:1186502
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2077-0472/13/7/1349/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2077-0472/13/7/1349/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. García-Mateos, G. & Hernández-Hernández, J.L. & Escarabajal-Henarejos, D. & Jaén-Terrones, S. & Molina-Martínez, J.M., 2015. "Study and comparison of color models for automatic image analysis in irrigation management applications," Agricultural Water Management, Elsevier, vol. 151(C), pages 158-166.
    2. Kailin Jiang & Tianyu Xie & Rui Yan & Xi Wen & Danyang Li & Hongbo Jiang & Ning Jiang & Ling Feng & Xuliang Duan & Jianjun Wang, 2022. "An Attention Mechanism-Improved YOLOv7 Object Detection Algorithm for Hemp Duck Count Estimation," Agriculture, MDPI, vol. 12(10), pages 1-18, October.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hongyun Hao & Peng Fang & Wei Jiang & Xianqiu Sun & Liangju Wang & Hongying Wang, 2022. "Research on Laying Hens Feeding Behavior Detection and Model Visualization Based on Convolutional Neural Network," Agriculture, MDPI, vol. 12(12), pages 1-12, December.
    2. Ziya Altas & Mehmet Metin Ozguven & Yusuf Yanar, 2018. "Determination of Sugar Beet Leaf Spot Disease Level (Cercospora Beticola Sacc.) with Image Processing Technique by Using Drone," Current Investigations in Agriculture and Current Research, Lupine Publishers, LLC, vol. 5(3), pages 669-678, November.
    3. Mehrnaz Farokhnejad Afshar & Zahra Shirmohammadi & Seyyed Amir Ali Ghafourian Ghahramani & Azadeh Noorparvar & Ali Mohammad Afshin Hemmatyar, 2023. "An Efficient Approach to Monocular Depth Estimation for Autonomous Vehicle Perception Systems," Sustainability, MDPI, vol. 15(11), pages 1-21, May.
    4. Wael M. Elmessery & Joaquín Gutiérrez & Gomaa G. Abd El-Wahhab & Ibrahim A. Elkhaiat & Ibrahim S. El-Soaly & Sadeq K. Alhag & Laila A. Al-Shuraym & Mohamed A. Akela & Farahat S. Moghanm & Mohamed F. A, 2023. "YOLO-Based Model for Automatic Detection of Broiler Pathological Phenomena through Visual and Thermal Images in Intensive Poultry Houses," Agriculture, MDPI, vol. 13(8), pages 1-21, July.
    5. González-Esquiva, J.M. & García-Mateos, G. & Escarabajal-Henarejos, D. & Hernández-Hernández, J.L. & Ruiz-Canales, A. & Molina-Martínez, J.M., 2017. "A new model for water balance estimation on lettuce crops using effective diameter obtained with image analysis," Agricultural Water Management, Elsevier, vol. 183(C), pages 116-122.
    6. Hernández-Hernández, J.L. & Ruiz-Hernández, J. & García-Mateos, G. & González-Esquiva, J.M. & Ruiz-Canales, A. & Molina-Martínez, J.M., 2017. "A new portable application for automatic segmentation of plants in agriculture," Agricultural Water Management, Elsevier, vol. 183(C), pages 146-157.
    7. Dimitre D. Dimitrov, 2023. "Internet and Computers for Agriculture," Agriculture, MDPI, vol. 13(1), pages 1-7, January.
    8. Jiménez-Carvajal, C. & Ruiz-Peñalver, L. & Vera-Repullo, J.A. & Jiménez-Buendía, M. & Antolino-Merino, A. & Molina-Martínez, J.M., 2017. "Weighing lysimetric system for the determination of the water balance during irrigation in potted plants," Agricultural Water Management, Elsevier, vol. 183(C), pages 78-85.
    9. Yaxin Wang & Xinyuan Liu & Fanzhen Wang & Dongyue Ren & Yang Li & Zhimin Mu & Shide Li & Yongcheng Jiang, 2023. "Self-Attention-Mechanism-Improved YoloX-S for Briquette Biofuels Object Detection," Sustainability, MDPI, vol. 15(19), pages 1-16, October.
    10. Vasilenko, Alexandr & Ulman, Miloš, 2015. "Concept of Horticulture Ambient Intelligence System," AGRIS on-line Papers in Economics and Informatics, Czech University of Life Sciences Prague, Faculty of Economics and Management, vol. 7(4), pages 1-8, December.
    11. Zhongao Lu & Lijun Qi & Hao Zhang & Junjie Wan & Jiarui Zhou, 2022. "Image Segmentation of UAV Fruit Tree Canopy in a Natural Illumination Environment," Agriculture, MDPI, vol. 12(7), pages 1-16, July.
    12. González-Esquiva, J.M. & García-Mateos, G. & Hernández-Hernández, J.L. & Ruiz-Canales, A. & Escarabajal-Henerajos, D. & Molina-Martínez, J.M., 2017. "Web application for analysis of digital photography in the estimation of irrigation requirements for lettuce crops," Agricultural Water Management, Elsevier, vol. 183(C), pages 136-145.

    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:13:y:2023:i:7:p:1349-:d:1186502. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.