Instance segmentation and automated pig posture recognition for smart health management

Changes in posture and movement during the growing period can often indicate abnormal development or health in pigs, making it possible to monitor and detect early morphological symptoms and health risks, potentially helping to limit the spread of infections. Large-scale pig farming requires extensi...

Full description

Saved in:
Bibliographic Details
Main Authors: Md Nasim Reza, Md Sazzadul Kabir, Md Asrakul Haque, Hongbin Jin, Hyunjin Kyoung, Young Kyoung Choi, Gookhwan Kim, Sun-Ok Chung
Format: Article
Language:English
Published: Korean Society of Animal Sciences and Technology 2025-05-01
Series:Journal of Animal Science and Technology
Subjects:
Online Access:http://www.ejast.org/archive/view_article?doi=10.5187/jast.2024.e112
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850158687770902528
author Md Nasim Reza
Md Sazzadul Kabir
Md Asrakul Haque
Hongbin Jin
Hyunjin Kyoung
Young Kyoung Choi
Gookhwan Kim
Sun-Ok Chung
author_facet Md Nasim Reza
Md Sazzadul Kabir
Md Asrakul Haque
Hongbin Jin
Hyunjin Kyoung
Young Kyoung Choi
Gookhwan Kim
Sun-Ok Chung
author_sort Md Nasim Reza
collection DOAJ
description Changes in posture and movement during the growing period can often indicate abnormal development or health in pigs, making it possible to monitor and detect early morphological symptoms and health risks, potentially helping to limit the spread of infections. Large-scale pig farming requires extensive visual monitoring by workers, which is time-consuming and laborious. However, a potential solution is computer vision-based monitoring of posture and movement. The objective of this study was to recognize and detect pig posture using a masked-based instance segmentation for automated pig monitoring in a closed pig farm environment. Two automatic video acquisition systems were installed from the top and side views. RGB images were extracted from the RGB video files and used for annotation work. Manual annotation of 600 images was used to prepare a training dataset, including the four postures: standing, sitting, lying, and eating from the food bin. An instance segmentation framework was employed to recognize and detect pig posture. A region proposal network was used in the Mask R–CNN-generated candidate boxes and the features from these boxes were extracted using RoIPool, followed by classification and bounding-box regression. The model effectively identified standard postures, achieving a mean average precision of 0.937 for piglets and 0.935 for adults. The proposed model showed strong potential for real-time posture monitoring and early welfare issue detection in pigs, aiding in the optimization of farm management practices. Additionally, the study explored body weight estimation using 2D image pixel areas, which showed a high correlation with actual weight, although limitations in capturing 3D volume could affect precision. Future work should integrate 3D imaging or depth sensors and expand the use of the model across diverse farm conditions to enhance real-world applicability.
format Article
id doaj-art-46e4d6995a5a43aea2547db71131b946
institution OA Journals
issn 2672-0191
2055-0391
language English
publishDate 2025-05-01
publisher Korean Society of Animal Sciences and Technology
record_format Article
series Journal of Animal Science and Technology
spelling doaj-art-46e4d6995a5a43aea2547db71131b9462025-08-20T02:23:48ZengKorean Society of Animal Sciences and TechnologyJournal of Animal Science and Technology2672-01912055-03912025-05-0167367770010.5187/jast.2024.e112Instance segmentation and automated pig posture recognition for smart health managementMd Nasim Reza0Md Sazzadul Kabir1Md Asrakul Haque2Hongbin Jin3Hyunjin Kyoung4Young Kyoung Choi5Gookhwan Kim6Sun-Ok Chung7Department of Agricultural Machinery Engineering, Graduate School, Chungnam National University, Daejeon 34134, KoreaDepartment of Smart Agricultural Systems, Graduate School, Chungnam National University, Daejeon 34134, KoreaDepartment of Agricultural Machinery Engineering, Graduate School, Chungnam National University, Daejeon 34134, KoreaDepartment of Smart Agricultural Systems, Graduate School, Chungnam National University, Daejeon 34134, KoreaDivision of Animal and Dairy Science, Chungnam National University, Daejeon 34134, KoreaDAWOON Co., Ltd., Incheon 22847, KoreaNational Institute of Agricultural Sciences, Rural Development Administration, Jeonju 54875, KoreaDepartment of Agricultural Machinery Engineering, Graduate School, Chungnam National University, Daejeon 34134, KoreaChanges in posture and movement during the growing period can often indicate abnormal development or health in pigs, making it possible to monitor and detect early morphological symptoms and health risks, potentially helping to limit the spread of infections. Large-scale pig farming requires extensive visual monitoring by workers, which is time-consuming and laborious. However, a potential solution is computer vision-based monitoring of posture and movement. The objective of this study was to recognize and detect pig posture using a masked-based instance segmentation for automated pig monitoring in a closed pig farm environment. Two automatic video acquisition systems were installed from the top and side views. RGB images were extracted from the RGB video files and used for annotation work. Manual annotation of 600 images was used to prepare a training dataset, including the four postures: standing, sitting, lying, and eating from the food bin. An instance segmentation framework was employed to recognize and detect pig posture. A region proposal network was used in the Mask R–CNN-generated candidate boxes and the features from these boxes were extracted using RoIPool, followed by classification and bounding-box regression. The model effectively identified standard postures, achieving a mean average precision of 0.937 for piglets and 0.935 for adults. The proposed model showed strong potential for real-time posture monitoring and early welfare issue detection in pigs, aiding in the optimization of farm management practices. Additionally, the study explored body weight estimation using 2D image pixel areas, which showed a high correlation with actual weight, although limitations in capturing 3D volume could affect precision. Future work should integrate 3D imaging or depth sensors and expand the use of the model across diverse farm conditions to enhance real-world applicability. http://www.ejast.org/archive/view_article?doi=10.5187/jast.2024.e112Smart agriculturePig identificationPig postureComputer visionPig activitySegmentation
spellingShingle Md Nasim Reza
Md Sazzadul Kabir
Md Asrakul Haque
Hongbin Jin
Hyunjin Kyoung
Young Kyoung Choi
Gookhwan Kim
Sun-Ok Chung
Instance segmentation and automated pig posture recognition for smart health management
Journal of Animal Science and Technology
Smart agriculture
Pig identification
Pig posture
Computer vision
Pig activity
Segmentation
title Instance segmentation and automated pig posture recognition for smart health management
title_full Instance segmentation and automated pig posture recognition for smart health management
title_fullStr Instance segmentation and automated pig posture recognition for smart health management
title_full_unstemmed Instance segmentation and automated pig posture recognition for smart health management
title_short Instance segmentation and automated pig posture recognition for smart health management
title_sort instance segmentation and automated pig posture recognition for smart health management
topic Smart agriculture
Pig identification
Pig posture
Computer vision
Pig activity
Segmentation
url http://www.ejast.org/archive/view_article?doi=10.5187/jast.2024.e112
work_keys_str_mv AT mdnasimreza instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT mdsazzadulkabir instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT mdasrakulhaque instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT hongbinjin instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT hyunjinkyoung instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT youngkyoungchoi instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT gookhwankim instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement
AT sunokchung instancesegmentationandautomatedpigposturerecognitionforsmarthealthmanagement