Machine Learning-Based Detection of Pig Coughs and Their Association with Respiratory Diseases in Fattening Pigs
Preprint
- 24 June 2025
- preprint
- Published by MDPI AG in Preprints.org
Abstract
Respiratory infections are a major concern in pig farming as they negatively impact animal health and productivity. Coughing is a key symptom of respiratory disease and can be classified as productive or non-productive, but human assessment often leads to inconsistencies. This study aimed to use a machine learning model to classify pig coughs and investigate their association with respiratory infections. Cough sounds from 49 fat-tening pigs were recorded and analyzed using a Python-based machine learning system. The model’s accuracy in detecting coughs was 0.72, compared to 0.69 for farmers. For classification of non-productive coughs, the machine learning results showed strong agreement with infection status by Mycoplasma hyopneumoniae, with Spearman’s corre-lation of 0.80 and Cohen’s Kappa of 0.79. However, the association with Porcine Circovirus type 2 was weak, with correlation and Kappa values of 0.05 and 0.037, respectively. These findings indicate that machine learning can classify pig coughs more accurately than human evaluators and that non-productive coughs are strongly linked to Mycoplasma infection but not to PCV2. This suggests the potential use of machine learning for more reliable disease monitoring and early detection in swine production.Keywords
All Related Versions
- Version 1, 2025-06-24, Preprints
- Published version: Veterinary Sciences, 12 (9), 818.
This publication has 24 references indexed in Scilit:
- Fusion of acoustic and deep features for pig cough sound recognitionComputers and Electronics in Agriculture, 2022
- An overview of the current trends in precision pig farming technologiesLivestock Science, 2021
- Meta-learning baselines and database for few-shot classification in agricultureComputers and Electronics in Agriculture, 2021
- Genetic diversity of porcine reproductive and respiratory syndrome virus in Thailand and Southeast Asia from 2008 to 2013Veterinary Microbiology, 2015
- Porcine Circovirus Type 2 and Porcine Circovirus-Associated DiseaseJournal of Veterinary Internal Medicine, 2009
- Current perspectives on the diagnosis and epidemiology of Mycoplasma hyopneumoniae infectionThe Veterinary Journal, 2009
- Cough sound analysis to identify respiratory infection in pigsComputers and Electronics in Agriculture, 2008
- Using timed automata and model-checking to simulate material flow in agricultural production systems—Application to animal waste managementComputers and Electronics in Agriculture, 2008
- Control of Mycoplasma hyopneumoniae infections in pigsVeterinary Microbiology, 2008
- Pathogenesis of porcine reproductive and respiratory syndrome virus (PRRSV) in gestating sowsVeterinary Research, 2000