An approach for diagnosis of diarrhea in neonatal piglets based on the core gut microbiota and machine learning
Open Access
- 5 June 2026
- journal article
- research article
- Published by Frontiers Media SA in Frontiers in Microbiology
- Vol. 17, 1852304
Abstract
Diarrheal diseases, such as yellow dysentery and white dysentery caused by pathogens or viruses, in newborn piglets lead to substantial economic losses in the swine industry worldwide. Gut microbiota dysbiosis is frequently observed in diarrheic piglets and is thought to play a role in disease pathogenesis, although causal relationships remain to be established. However, developing reliable microbiome-based diagnostic tools still poses a significant challenge. This study aimed to develop a diagnostic model for piglet diarrhea by integrating core microbiota analysis with machine learning. Fecal samples from diarrheic and healthy piglets were subjected to metagenomic sequencing to characterize archaeal, bacterial, and fungal communities. We identified diarrhea-associated bacterial biomarkers via LEfSe, DESeq2, and microbial cooccurrence network analysis. These microbial features were used to construct and compare multiple machine learning classifiers. Our results revealed significant disparities in the structure and diversity of the gut microbiota between diarrheic and healthy piglets, with the bacterial community showing the most notable changes. Among the models developed, the decision tree classifier based on bacterial genus-level features achieved the highest prediction accuracy of 91.18%. Furthermore, a simplified model utilizing a panel of 18 core bacterial genera also demonstrated high efficacy, with a support vector machine model achieving 88.24% accuracy. In independent validation using our internal dataset, the random forest model exhibited the best generalizability and stability. This study establishes a robust, microbiota-based diagnostic model for diarrhea in neonatal piglets, highlighting the potential of machine learning in leveraging microbiome data for disease classification and health management in livestock production.Keywords
Funding Information
- National Natural Science Foundation of China
This publication has 25 references indexed in Scilit:
- Bacterial infection in weaned piglets promotes diarrhea by inducing the NLRP3 inflammasome-pyroptosis pathwayScience China Life Sciences, 2025
- Best practices for developing microbiome-based disease diagnostic classifiers through machine learningGut Microbes, 2025
- Aging‐induced Alternation in the Gut Microbiota Impairs Host Antibacterial DefenseAdvanced Science, 2025
- Comparative analysis of fecal microbiota between diarrhea and non-diarrhea piglets reveals biomarkers of gut microbiota associated with diarrheaAnimal Nutrition, 2024
- Milk-derived Lactobacillus with high production of short-chain fatty acids relieves antibiotic-induced diarrhea in miceFood & Function, 2024
- Hominibacterium faecale gen. nov., sp. nov., an anaerobic l-arginine-degrading bacterium isolated from human fecesArchives of Microbiology, 2022
- Bacteroides utilization for dietary polysaccharides and their beneficial effects on gut healthFood Science and Human Wellness, 2022
- Fusobacterium nucleatum, a key pathogenic factor and microbial biomarker for colorectal cancerTrends in Microbiology, 2022
- The gut microbiota is associated with immune cell dynamics in humansNature, 2020
- Porcine circovirus type 2 (PCV2) and Campylobacter infection induce diarrhea in piglets: Microbial dysbiosis and intestinal disorderAnimal Nutrition, 2020