Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Mar 28;24(7):2185.
doi: 10.3390/s24072185.

Pattern Mining-Based Pig Behavior Analysis for Health and Welfare Monitoring

Affiliations

Pattern Mining-Based Pig Behavior Analysis for Health and Welfare Monitoring

Hassan Seif Mluba et al. Sensors (Basel). .

Abstract

The increasing popularity of pigs has prompted farmers to increase pig production to meet the growing demand. However, while the number of pigs is increasing, that of farm workers has been declining, making it challenging to perform various farm tasks, the most important among them being managing the pigs' health and welfare. This study proposes a pattern mining-based pig behavior analysis system to provide visualized information and behavioral patterns, assisting farmers in effectively monitoring and assessing pigs' health and welfare. The system consists of four modules: (1) data acquisition module for collecting pigs video; (2) detection and tracking module for localizing and uniquely identifying pigs, using tracking information to crop pig images; (3) pig behavior recognition module for recognizing pig behaviors from sequences of cropped images; and (4) pig behavior analysis module for providing visualized information and behavioral patterns to effectively help farmers understand and manage pigs. In the second module, we utilize ByteTrack, which comprises YOLOx as the detector and the BYTE algorithm as the tracker, while MnasNet and LSTM serve as appearance features and temporal information extractors in the third module. The experimental results show that the system achieved a multi-object tracking accuracy of 0.971 for tracking and an F1 score of 0.931 for behavior recognition, while also highlighting the effectiveness of visualization and pattern mining in helping farmers comprehend and manage pigs' health and welfare.

Keywords: association rule mining; data visualization; pig behavior analysis; pig behavior recognition; pig health and welfare; sequential pattern mining.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflicts of interest.

Figures

Figure 1
Figure 1
Overall structure of the pattern mining-based pig behavior analysis system.
Figure 2
Figure 2
Chord diagram which enables visualization and identification of the interrelationships among aggressive pigs.
Figure 3
Figure 3
Hexbin plot which enables visualization of the locations where aggressive behaviors occurred in the pigpen.
Figure 4
Figure 4
Pixel distance–time plot which enables visualization of the pigs’ movement patterns: (a) combined pixel distance–time plot for Pig1 and Pig3, (b) pixel distance–time plot for Pig1, and (c) pixel distance–time plot for Pig3.
Figure 5
Figure 5
Box plot illustrating the variations of the pigs’ aggressive behaviors.
Figure 6
Figure 6
Descriptive statistical analysis interface: proposed system screenshot.
Figure 7
Figure 7
Data mining interface: proposed system screenshot.

References

    1. Choe J.-H., Yang H.-S., Lee S.-H., Go G.-W. Characteristics of pork belly consumption in South Korea and their health implication. J. Anim. Sci. Technol. 2015;57:22. doi: 10.1186/s40781-015-0057-1. - DOI - PMC - PubMed
    1. Korea Meat Trade Association (KMTA) [(accessed on 3 March 2023)]. Available online: http://www.kmta.or.kr/kr/data/stats_price_year.php.
    1. OECD Meat Consumption (Indicator) 2021. [(accessed on 6 February 2023)]. Available online: https://www.oecd-ilibrary.org/content/data/fa290fd0-en.
    1. Oh S.H., Whitley N.C. Pork production in China, Japan and South Korea. Asian-Australas. J. Anim. Sci. 2011;24:1629–1636. doi: 10.5713/ajas.2011.11155. - DOI
    1. Statistics Korea. [(accessed on 21 February 2023)]. Available online: https://kostat.go.kr/anse/

LinkOut - more resources