Instance Segmentation of Pigs in Infrared Images Based on INPC Model

Ge Wang,Yong Ma,Jun Huang,Fan,Hao Li,Zipeng Li
DOI: https://doi.org/10.1016/j.infrared.2024.105491
IF: 2.997
2024-01-01
Infrared Physics & Technology
Abstract:Conventional segmentation methods based on visible images in intensive pig farming face various challenges. Examples include color differences between pig breeds, background interference and lighting conditions. To overcome these issues, we designed the infrared pig cascade segmentation (INPC) model for the first time on infrared images. The model uses a cascade structure. Each stage utilizes higher resolution feature maps to better preserve fine details. It also solves the problem of poor segmentation of small objects due to low resolution of infrared images. At the same time, the model’s cross-guidance strategy enhances the interaction between bounding box regression and mask prediction. This reduces errors caused by interference like feces and urine. Additionally, a progressive mask branch refines mask prediction, improving segmentation in scenarios like imaging haze or pig adhesion. To facilitate model training and evaluation, we built the first large-scale standardized infrared pig dataset. Experimental results demonstrate that INPC outperforms mainstream segmentation models in terms of average precision (AP), except for AP0.5. Specifically, INPC achieves AP0.5, AP0.75, AP0.5:0.95, AP0.5:0.95s, and AP0.5:0.95l of 97.9%, 97.1%, 88.2%, 71.5%, and 90.1% respectively. Inference for a single image on a GPU takes only 0.197 s. Some datasets are available at https://github.com/HUBUwg96/INPC.
What problem does this paper attempt to address?