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 cro...