Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer
Simple Summary
Abstract
1. Introduction
2. Materials and Methods
2.1. Experimental Setup, Animal Allocation, and Ventilation Verification
2.2. Data Acquisition, and Audio Signal Quality Inspection
2.3. Acoustic Calibration, Distance Attenuation, and Background-Noise Spectral Audit
2.4. AST Architecture, Cross-Validation, and Class Imbalance Management
2.5. Continuous Inference and Overlapping-Event Handling
2.6. Acoustic Data Analysis: Group-Size-Standardized Room-Level Sound Detection and Time Occupancy
2.6.1. Group-Normalized Sound Detection Rate Analysis
2.6.2. Group-Normalized Sound Duration Analysis
2.6.3. Time Occupancy Analysis
2.7. Day–Night Clock-Time Sound Pattern Analysis
2.8. Daily Cough-like Surveillance Windows
- Hourly cough-like profile: line plot of mean group-size-standardized room-level cough-like detections across 24 h with the rolling mean overlay.
- Room × hour heatmap: two-dimensional heatmap showing mean cough-like intensity across hours for the two rooms.
2.9. Environmental Analysis
2.10. Correlation Analysis
2.11. Statistical Analysis and Early-Warning Evaluation
3. Results
3.1. Acoustic Quality Assurance, Calibration, and Signal Interpretation
3.2. Internal, Cross-Validation, and Temporal Model Performance
3.3. Ventilation Verification, and Environmental Contrast
3.4. Growth Performance Under the Two Room Environments
3.4.1. Weekly Growth Dynamics
3.4.2. Overall Growth Performance (ANCOVA-Adjusted)
3.5. Acoustic Activity: Group-Normalized Sound Detection Rates and Time Occupancy
3.5.1. Group-Normalized Sound Detection Rates
3.5.2. Group-Normalized Sound Duration
3.5.3. Time Occupancy of Sound Events
3.6. Day–Night Clock-Time Dynamics of Sound Events
3.7. Cough-like Surveillance Windows
3.8. Environmental Co-Variation and Audio-Only Early Warning
4. Discussion
4.1. Growth Performance
4.2. Biological Interpretation of Room-Level Sound Patterns
4.3. Temporal Clustering and Early-Warning Potential
4.4. Environmental Co-Variation with Cough-like Activity
5. Limitations
6. Future Directions
7. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| AI | Artificial Intelligence |
| CO2 | Carbon Dioxide |
| AST | Audio Spectrogram Transformer |
| PRDC | Porcine Respiratory Disease Complex |
| PRRSV | Porcine Reproductive and Respiratory Syndrome Virus |
| BW | Body Weight |
| ADG | Average Daily Body Weight Gain |
| FCR | Feed Conversion Ratio |
| NH3 | Ammonia |
| ppm | Parts Per Million |
| RH | Relative Humidity |
| ROC | Receiver Operating Characteristic |
| PCA | Principal Component Analysis |
| RMSE | Root Mean Square Error |
| MAE | Mean Absolute Error |
| ADFI | Average Daily Feed Intake |
| GLM | Generalized Linear Model |
| EMM | Estimated Marginal Mean |
| RR | Respiration Rate |
| SE | Standard Error |
References
- Przyborowska, P.; Lewko-Wojtowicz, R.; Cybulski, P.; Maes, D.; Tobolski, D. Impact of Porcine Respiratory Disease Complex on Carcass Weight and Meatiness: Quantitative Insights from a Mixed-Model Analysis. BMC Vet. Res. 2024, 20, 554. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Paz-Sánchez, Y.; Herráez, P.; Quesada-Canales, Ó.; Poveda, C.G.; Díaz-Delgado, J.; Quintana-Montesdeoca, M.d.P.; Plamenova Stefanova, E.; Andrada, M. Assessment of Lung Disease in Finishing Pigs at Slaughter: Pulmonary Lesions and Implications on Productivity Parameters. Animals 2021, 11, 3604. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Boeters, M.; Garcia-Morante, B.; van Schaik, G.; Segalés, J.; Rushton, J.; Steeneveld, W. The Economic Impact of Endemic Respiratory Disease in Pigs and Related Interventions—A Systematic Review. Porc. Health Manag. 2023, 9, 45. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Malcher, C.S.; Petri, F.A.M.; Arruda, L.P.; de Aguiar, G.A.; Storino, G.Y.; Sonalio, K.; Toledo, L.T.; Hirose, F.; Oliveira, L.G. de Health–Economic Impact Attributable to Occurrence of Pleurisy and Pneumonia Lesions in Finishing Pigs. Vet. Sci. 2024, 11, 668. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nathues, H.; Alarcon, P.; Rushton, J.; Jolie, R.; Fiebig, K.; Jimenez, M.; Geurts, V.; Nathues, C. Cost of Porcine Reproductive and Respiratory Syndrome Virus at Individual Farm Level—An Economic Disease Model. Prev. Vet. Med. 2017, 142, 16–29. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Osemeke, O.; Silva, G.S.; Corzo, C.A.; Kikuti, M.; Vadnais, S.; Yue, X.; Linhares, D.; Holtkamp, D. Economic Impact of Productivity Losses Attributable to Porcine Reproductive and Respiratory Syndrome Virus in United States Pork Production, 2016–2020. Prev. Vet. Med. 2025, 244, 106627. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, Z.; Li, Z.; Li, H.; Yang, S.; Ren, F.; Bian, T.; Sun, L.; Zhou, B.; Zhou, L.; Qu, X. The Economic Impact of Porcine Reproductive and Respiratory Syndrome Outbreak in Four Chinese Farms: Based on Cost and Revenue Analysis. Front. Vet. Sci. 2022, 9, 1024720. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yamsakul, P.; Yano, T.; Junchum, K.; Anukool, W.; Kittiwan, N. Machine Learning-Based Detection of Pig Coughs and Their Association with Respiratory Diseases in Fattening Pigs. Vet. Sci. 2025, 12, 818. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sharifuzzaman, M.; Mun, H.-S.; Lagua, E.B.; Hasan, M.K.; Kang, J.-G.; Kim, Y.-H.; Mehtab, A.; Park, H.-R.; Yang, C.-J. Advances in Audio Classification and Artificial Intelligence for Respiratory Health and Welfare Monitoring in Swine. Biology 2026, 15, 177. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Maes, D.; Sibila, M.; Pieters, M.; Haesebrouck, F.; Segalés, J.; de Oliveira, L.G. Review on the Methodology to Assess Respiratory Tract Lesions in Pigs and Their Production Impact. Vet. Res. 2023, 54, 8. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Renzhammer, R.; Auer, A.; Loncaric, I.; Entenfellner, A.; Dimmel, K.; Walk, K.; Rümenapf, T.; Spergser, J.; Ladinig, A. Retrospective Analysis of the Detection of Pathogens Associated with the Porcine Respiratory Disease Complex in Routine Diagnostic Samples from Austrian Swine Stocks. Vet. Sci. 2023, 10, 601. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Rao, J.; Wei, X.; Li, H.; Zhang, Z.; Liu, J.; Lian, M.; Cao, W.; Yuan, L.; Dou, B.; Tian, Y.; et al. Novel Multiplex PCR Assay and Its Application in Detecting Prevalence and Antibiotic Susceptibility of Porcine Respiratory Bacterial Pathogens in Guangxi, China. Microbiol. Spectr. 2023, 11, e03971-22. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Goto, Y.; Fukunari, K.; Tada, S.; Ichimura, S.; Chiba, Y.; Suzuki, T. A Multiplex Real-Time RT-PCR System to Simultaneously Diagnose 16 Pathogens Associated with Swine Respiratory Disease. J. Appl. Microbiol. 2023, 134, lxad263. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yamsakul, P.; Yano, T.; Lampang, K.N.; Khamkong, M.; Srikitjakarn, L. Classification and Correlation of Coughing Sounds and Disease Status in Fattening Pigs. Vet. Integr. Sci. 2023, 21, 291–308. [Google Scholar] [CrossRef] [Scilit]
- Landry, V.; Matschek, J.; Pang, R.; Munipalle, M.; Tan, K.; Boruff, J.; Li-Jessen, N.Y.K. Audio-Based Digital Biomarkers in Diagnosing and Managing Respiratory Diseases: A Systematic Review and Bibliometric Analysis. Eur. Respir. Rev. 2025, 34, 240246. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ferrari, S.; Silva, M.; Guarino, M.; Aerts, J.M.; Berckmans, D. Cough Sound Analysis to Identify Respiratory Infection in Pigs. Comput. Electron. Agric. 2008, 64, 318–325. [Google Scholar] [CrossRef] [Scilit]
- Yin, Y.; Ji, N.; Wang, X.; Shen, W.; Dai, B.; Kou, S.; Liang, C. An Investigation of Fusion Strategies for Boosting Pig Cough Sound Recognition. Comput. Electron. Agric. 2023, 205, 107645. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Yin, Y.; Dai, X.; Shen, W.; Kou, S.; Dai, B. Automatic Detection of Continuous Pig Cough in a Complex Piggery Environment. Biosyst. Eng. 2024, 238, 78–88. [Google Scholar] [CrossRef] [Scilit]
- Yin, Y.; Tu, D.; Shen, W.; Bao, J. Recognition of Sick Pig Cough Sounds Based on Convolutional Neural Network in Field Situations. Inf. Process. Agric. 2021, 8, 369–379. [Google Scholar] [CrossRef] [Scilit]
- Shen, W.; Ji, N.; Yin, Y.; Dai, B.; Tu, D.; Sun, B.; Hou, H.; Kou, S.; Zhao, Y. Fusion of Acoustic and Deep Features for Pig Cough Sound Recognition. Comput. Electron. Agric. 2022, 197, 106994. [Google Scholar] [CrossRef] [Scilit]
- Garrido, L.F.C.; Rodrigues, G.S.T.; Costa, L.B.; Kurtz, D.J.; Daros, R.R. Validation of a Swine Cough Monitoring System Under Field Conditions. AgriEngineering 2025, 7, 140. [Google Scholar] [CrossRef] [Scilit]
- Chae, H.; Lee, J.; Kim, J.; Lee, S.; Lee, J.; Chung, Y.; Park, D. Novel Method for Detecting Coughing Pigs with Audio-Visual Multimodality for Smart Agriculture Monitoring. Sensors 2024, 24, 7232. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Eddicks, M.; Feicht, F.; Beckjunker, J.; Genzow, M.; Alonso, C.; Reese, S.; Ritzmann, M.; Stadler, J. Monitoring of Respiratory Disease Patterns in a Multimicrobially Infected Pig Population Using Artificial Intelligence and Aggregate Samples. Viruses 2024, 16, 1575. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lagua, E.B.; Mun, H.-S.; Ampode, K.M.B.; Chem, V.; Kim, Y.-H.; Yang, C.-J. Artificial Intelligence for Automatic Monitoring of Respiratory Health Conditions in Smart Swine Farming. Animals 2023, 13, 1860. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- O’Connor, E.A.; Parker, M.O.; McLeman, M.A.; Demmers, T.G.; Lowe, J.C.; Cui, L.; Davey, E.L.; Owen, R.C.; Wathes, C.M.; Abeyesinghe, S.M. The Impact of Chronic Environmental Stressors on Growing Pigs, Sus Scrofa (Part 1): Stress Physiology, Production and Play Behaviour. Animal 2010, 4, 1899–1909. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Sutherland, M.A.; Niekamp, S.R.; Rodriguez-Zas, S.L.; Salak-Johnson, J.L. Impacts of Chronic Stress and Social Status on Various Physiological and Performance Measures in Pigs of Different Breeds1. J. Anim. Sci. 2006, 84, 588–596. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Clavell-Sansalvador, A.; Río-López, R.; González-Rodríguez, O.; García-Gil, L.J.; Xifró, X.; Zigovski, G.; Ochoteco-Asensio, J.; Ballester, M.; Dalmau, A.; Ramayo-Caldas, Y. Effect of Group Mixing and Available Space on Performance, Feeding Behavior, and Fecal Microbiota Composition during the Growth Period of Pigs. Animals 2024, 14, 2704. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Katiyar, R.; Gonmei, C.; Deori, S.; Singh, M.; Abedin, S.N.; Rautela, R.; Singh, N.S.; Chakravarty, H.; Das, M.; Choudhury, B.U.; et al. Effect of Heat Stress on Pig Production and Its Mitigation Strategies: A Review. Trop. Anim. Health Prod. 2025, 57, 139. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wettemann, R.P.; Bazer, F.W. Influence of Environmentaltemperatureon Prolificacy of Pigs. Biosci. Proc. 2020, 12, 199–208. [Google Scholar] [CrossRef] [Scilit]
- Ross, J.W.; Hale, B.J.; Gabler, N.K.; Rhoads, R.P.; Keating, A.F.; Baumgard, L.H.; Ross, J.W.; Hale, B.J.; Gabler, N.K.; Rhoads, R.P.; et al. Physiological Consequences of Heat Stress in Pigs. Anim. Prod. Sci. 2015, 55, 1381–1390. [Google Scholar] [CrossRef] [Scilit]
- Martínez-Miró, S.; Tecles, F.; Ramón, M.; Escribano, D.; Hernández, F.; Madrid, J.; Orengo, J.; Martínez-Subiela, S.; Manteca, X.; Cerón, J.J. Causes, Consequences and Biomarkers of Stress in Swine: An Update. BMC Vet. Res. 2016, 12, 171. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Song, H.; Zhao, B.; Hu, J.; Sun, H.; Zhou, Z. Research on Improved DenseNets Pig Cough Sound Recognition Model Based on SENets. Electronics 2022, 11, 3562. [Google Scholar] [CrossRef] [Scilit]
- Brandenburg, K.; Bosi, M. Overview of MPEG Audio: Current and Future Standards for Low-Bit-Rate Audio Coding. J. Audio Eng. Soc. 1997, 45, 4–21. [Google Scholar]
- Pan, D. A Tutorial on MPEG/Audio Compression. IEEE Multimed. 1995, 2, 60–74. [Google Scholar] [CrossRef] [Scilit]
- Gong, Y.; Chung, Y.-A.; Glass, J. AST: Audio Spectrogram Transformer. arXiv 2021, arXiv:2104.01778. [Google Scholar]
- Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S.; et al. An Image Is Worth 16 × 16 Words: Transformers for Image Recognition at Scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
- Pearce, S.C.; Sanz-Fernandez, M.V.; Hollis, J.H.; Baumgard, L.H.; Gabler, N.K. Short-Term Exposure to Heat Stress Attenuates Appetite and Intestinal Integrity in Growing Pigs1. J. Anim. Sci. 2014, 92, 5444–5454. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pearce, S.C.; Gabler, N.K.; Ross, J.W.; Escobar, J.; Patience, J.F.; Rhoads, R.P.; Baumgard, L.H. The Effects of Heat Stress and Plane of Nutrition on Metabolism in Growing Pigs1. J. Anim. Sci. 2013, 91, 2108–2118. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, Z.; Liu, Y.; Yan, G.; Du, X.; Qi, F.; Shi, Z.; Wang, C.; Li, H.; Wang, H.; Pu, S. Modeling Feedback-Driven Behavioral Adaptation in Pigs under Environmental Pressure: A Study of Behavior Modification. Vet. J. 2025, 313, 106411. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Drummond, J.G.; Curtis, S.E.; Simon, J.; Norton, H.W. Effects of Aerial Ammonia on Growth and Health of Young Pigs1. J. Anim. Sci. 1980, 50, 1085–1091. [Google Scholar] [CrossRef] [Scilit]
- Chantziaras, I.; De Meyer, D.; Vrielinck, L.; Van Limbergen, T.; Pineiro, C.; Dewulf, J.; Kyriazakis, I.; Maes, D. Environment-, Health-, Performance- and Welfare-Related Parameters in Pig Barns with Natural and Mechanical Ventilation. Prev. Vet. Med. 2020, 183, 105150. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lagua, E.B.; Mun, H.-S.; Ampode, K.M.B.; Park, H.-R.; Sharifuzzaman, M.; Hasan, M.K.; Kim, Y.-H.; Yang, C.-J. Minimum Carbon Dioxide Is a Key Predictor of the Respiratory Health of Pigs in Climate-Controlled Housing Systems. Porc. Health Manag. 2024, 10, 59. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lagua, E.; Mun, H.-S.; Ampode, K.M.B.; Chem, V.; Park, H.-R.; Kim, Y.-H.; Yang, C.-J. Monitoring Using Artificial Intelligence Reveals Critical Links between Housing Conditions and Respiratory Health in Pigs. J. Anim. Behav. Biometeorol. 2024, 12, 2024008. [Google Scholar] [CrossRef] [Scilit]
- Seo, H.-J.; Oh, B.-W.; Seo, I.-H. Environmental Monitoring and Thermal Data Analysis Related to Mortality Rates in a Commercial Pig House. Agriculture 2025, 15, 635. [Google Scholar] [CrossRef] [Scilit]
- Pessoa, J.; Camp Montoro, J.; Pina Nunes, T.; Norton, T.; McAloon, C.; Garcia Manzanilla, E.; Boyle, L. Environmental Risk Factors Influence the Frequency of Coughing and Sneezing Episodes in Finisher Pigs on a Farm Free of Respiratory Disease. Animals 2022, 12, 982. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- May, S.; Romberger, D.J.; Poole, J.A. Respiratory Health Effects of Large Animal Farming Environments. J. Toxicol. Environ. Health Part B 2012, 15, 524–541. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Vogelzang, P.F.J.; van der Gulden, J.W.J.; Folgering, H.; Heederik, D.; Tielen, M.J.M.; van Schayck, C.P. Longitudinal Changes in Bronchial Responsiveness Associated with Swine Confinement Dust Exposure. Chest 2000, 117, 1488–1495. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Charavaryamath, C.; Janardhan, K.S.; Townsend, H.G.; Willson, P.; Singh, B. Multiple Exposures to Swine Barn Air Induce Lung Inflammation and Airway Hyper-Responsiveness. Respir. Res. 2005, 6, 50. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ledesma-Aparicio, J.; Salazar-Guerrero, G.; Soto-Muñoz, A.; Ramírez-Estudillo, C.; Gómez-Esquivel, M.L.; Reyes-Grajeda, J.P.; Reyes-López, C.A.; Vega-López, M.A. Evaluation of a Translational Swine Model of Respiratory Hypersensitivity Induced by Exposure to Phleum Pratense Pollen Allergens. Front. Allergy 2025, 6, 1557656. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Xin, H.; DeShazer, J.A.; Leger, D.W. Pig Vocalizations Under Selected Husbandry Practices. Trans. ASAE 1989, 32, 2181–2184. [Google Scholar] [CrossRef] [Scilit]
- Schrader, L.; Todt, D. Vocal Quality Is Correlated with Levels of Stress Hormones in Domestic Pigs. Ethology 1998, 104, 859–876. [Google Scholar] [CrossRef] [Scilit]
- Olson, M.J.; Creamer, M.; Horback, K.M. Identification of Specific Call Types Produced by Pre-Weaning Gilts in Response to Isolation. Appl. Anim. Behav. Sci. 2021, 234, 105203. [Google Scholar] [CrossRef] [Scilit]
- Wang, X.; Zhao, X.; He, Y.; Wang, K. Cough Sound Analysis to Assess Air Quality in Commercial Weaner Barns. Comput. Electron. Agric. 2019, 160, 8–13. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Zeng, X.; Zhang, X.; Liu, H.; Xing, H. Ammonia Exposure Induces Oxidative Stress and Inflammation by Destroying the Microtubule Structures and the Balance of Solute Carriers in the Trachea of Pigs. Ecotoxicol. Environ. Saf. 2021, 212, 111974. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, X.; Wang, M.; Chen, S.; Wei, B.; Gao, Y.; Huang, L.; Liu, C.; Huang, T.; Yu, M.; Zhao, S.-H.; et al. Ammonia Exposure Causes Lung Injuries and Disturbs Pulmonary Circadian Clock Gene Network in a Pig Study. Ecotoxicol. Environ. Saf. 2020, 205, 111050. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Oh, B.; Park, J.; Kim, E.; Seo, S.; Kim, B.; Oh, S.-I. Alteration of Growth Performance and Characterization of Pathological Lesions in Long-Term Ammonia-Exposed Pigs. Ecotoxicol. Environ. Saf. 2024, 287, 117318. [Google Scholar] [CrossRef] [Scilit] [PubMed]












| Class | Operational Definition | Typical Duration | Key Descriptor |
|---|---|---|---|
| Cough-like event | Harsh, abrupt, forceful expiratory sound; labeled as cough-like events | 0.25–0.80 s | Broadband burst, rapid onset, energy mainly <7.2 kHz |
| Sneezing | Sudden brief nasal expulsive sound, often sharper and shorter than cough-like events | 0.15–0.55 s | High onset slope; shorter temporal envelope |
| Aggressive vocalization | Squeals, fighting-associated calls, and distress calls during social conflict | 0.40–2.50 s | Higher amplitude and longer voiced segments |
| Normal vocalization | Routine grunts, oinks, snorts, and communicative sounds during ordinary activity | 0.20–0.40 s | Lower-intensity voiced or nasal sounds |
| Silence/ background | No biologically relevant pig vocal or respiratory event in the analysis window | 1.00 s window | May include fan or room background noise |
| Validation Item | Standard Room | Restricted Room | Interpretation |
|---|---|---|---|
| Measured farthest microphone distance | 5.1 m | 5.1 m | Central microphone provides room-level, not individual-monitoring |
| Cough-like recall at 1.0 m playback | 0.98 | 0.97 | Near-field sensitivity was high |
| Cough-like recall at 3.0 m playback | 0.94 | 0.92 | Mid-room sensitivity remained stable |
| Cough-like recall at 5.1 m playback | 0.88 | 0.85 | Far-corner events could be missed; room-level bias acknowledged |
| Noise-matched cough-like macro-F1 | 0.921 | 0.908 | Performance remained acceptable after noise matching |
| Noise-only room classifier accuracy | 0.79 | 0.79 | Background fingerprints existed and were therefore controlled analytically |
| Sound Class/Metric | Precision | Recall | F1-Score | Notes |
|---|---|---|---|---|
| Aggressive vocalization | 0.884 | 0.928 | 0.906 | Smallest class; recall improved with class weighting |
| Cough-like event | 0.943 | 0.931 | 0.937 | Primary respiratory-related soundscape class |
| Normal vocalization | 0.957 | 0.949 | 0.953 | Stable routine vocalization class |
| Silence/background | 0.982 | 0.991 | 0.986 | Background intervals without biological event |
| Sneezing | 0.927 | 0.891 | 0.908 | Some confusion with cough-like bursts |
| Hold-out accuracy | - | - | 0.948 | Group-blocked hold-out test set |
| Hold-out macro-F1 | - | - | 0.937 | Primary hold-out metric |
| Five-fold macro-F1 | - | - | 0.928 ± 0.019 | Group-blocked by parent recording/date |
| Three-day deployment macro-F1 | - | - | 0.914 | Manual validation across 28-day archive |
| Model | Input Representation | Accuracy | Macro-F1 | Weighted-F1 |
|---|---|---|---|---|
| MFCC-SVM | MFCC + delta + delta-delta statistics | 0.861 | 0.842 | 0.859 |
| Random Forest | MFCC/statistical acoustic descriptors | 0.836 | 0.807 | 0.833 |
| XGBoost | MFCC/statistical acoustic descriptors | 0.873 | 0.854 | 0.870 |
| MFCC-CNN | Frame-level MFCC map | 0.904 | 0.891 | 0.902 |
| Mel-CNN | Log-mel spectrogram | 0.925 | 0.917 | 0.923 |
| AST | Log-mel spectrogram patches + self-attention | 0.948 | 0.937 | 0.947 |
| Variable | Standard Room | Ventilation- Restricted Room | Relative Contrast | Interpretation |
|---|---|---|---|---|
| Measured airflow (m3/h) | 5180 ± 380 | 1420 ± 210 | −72.6% | Directly verified reduction |
| NH3 (ppm) | 1.30 | 19.79 | +1422% | Largest environmental separation |
| CO2 (ppm) | 900.20 | 1597.71 | +77.5% | Restricted room had poorer air renewal |
| Temperature (°C) | 24.64 | 30.04 | +21.9% | Restricted room was warmer |
| Dust (mg/m3) | 32.00 | 41.39 | +29.3% | Restricted room had higher airborne dust |
| Relative humidity (%) | 76.96 | 79.00 | +2.7% | Smallest room contrast |
| Parameter | Week | Group | Descriptive p-Value | |||
|---|---|---|---|---|---|---|
| Standard Room (Mean) | Restricted Room (Mean) | Room | Week | Room × Week | ||
| Body weight (kg) | 0 * | 28.80 | 29.50 | 0.001 | <0.001 | 0.001 |
| 1 | 38.17 | 36.19 | ||||
| 2 | 44.22 | 40.24 | ||||
| 3 | 49.54 | 43.81 | ||||
| 4 | 55.74 | 47.32 | ||||
| Average daily body weight gain (kg) | 1 | 1.34 | 0.96 | 0.006 | 0.007 | 0.947 |
| 2 | 0.86 | 0.58 | ||||
| 3 | 0.76 | 0.51 | ||||
| 4 | 0.89 | 0.50 | ||||
| Average daily feed intake (kg) | 1 | 2.26 | 1.68 | <0.001 | <0.001 | <0.001 |
| 2 | 1.58 | 1.75 | ||||
| 3 | 1.92 | 1.27 | ||||
| 4 | 2.70 | 1.49 | ||||
| Feed conversion ratio | 1 | 1.69 | 1.81 | 0.602 | 0.040 | 0.324 |
| 2 | 2.22 | 3.48 | ||||
| 3 | 2.54 | 2.86 | ||||
| 4 | 3.84 | 3.05 | ||||
| Parameter | Standard Room (Mean ± SE) | Restricted Room (Mean ± SE) | Adjusted Difference (95% CI) | Percent Difference |
|---|---|---|---|---|
| Initial BW (kg) | 28.80 ± 1.06 | 29.50 ± 1.09 | +0.70 (−1.42 to 2.82) | +2.4% |
| Final BW (kg) | 55.74 ± 1.38 | 47.32 ± 1.41 | −8.42 (−11.05 to −5.79) | −15.1% |
| ADG (kg/d) | 0.948 ± 0.022 | 0.650 ± 0.022 | −0.298 (−0.361 to −0.239) | −31.4% |
| ADFI (kg/d) | 2.119 ± 0.010 | 1.547 ± 0.010 | −0.572 (−0.604 to −0.539) | −27.0% |
| FCR | 2.268 ± 0.098 | 2.430 ± 0.098 | +0.162 (−0.185 to 0.508) | +7.1% |
| Measure | Event | Standard Room (Mean ± SE) | Ventilation-Restricted Room (Mean ± SE) | Descriptive p-Value (Room) |
|---|---|---|---|---|
| Hourly counts | Cough-like | 1.42 ± 0.04 | 2.28 ± 0.05 | <0.001 |
| Sneezing | 0.98 ± 0.02 | 1.58 ± 0.04 | <0.001 | |
| Aggressive | 4.65 ± 0.12 | 7.47 ± 0.18 | <0.001 | |
| Normal | 3.90 ± 0.10 | 6.27 ± 0.15 | <0.001 | |
| Daily counts | Cough-like | 34.83 ± 2.07 | 55.42 ± 3.14 | <0.001 |
| Sneezing | 23.40 ± 1.30 | 37.24 ± 2.27 | <0.001 | |
| Aggressive | 115.73 ± 6.81 | 184.15 ± 10.48 | <0.001 | |
| Normal | 95.36 ± 5.54 | 151.75 ± 8.74 | <0.001 |
| Measure | Event | Standard Room (Mean ± SE) | Ventilation-Restricted Room (Mean ± SE) | Descriptive p-Value (Room) |
|---|---|---|---|---|
| Hourly duration | Cough-like | 0.85 ± 0.02 | 1.37 ± 0.03 | <0.001 |
| Sneezing | 0.59 ± 0.01 | 0.95 ± 0.02 | <0.001 | |
| Aggressive | 2.79 ± 0.07 | 4.48 ± 0.11 | <0.001 | |
| Normal | 2.34 ± 0.06 | 3.76 ± 0.09 | <0.001 | |
| Daily duration | Cough-like | 20.90 ± 1.24 | 33.25 ± 1.88 | <0.001 |
| Sneezing | 14.04 ± 0.78 | 22.35 ± 1.36 | <0.001 | |
| Aggressive | 69.44 ± 4.09 | 110.49 ± 6.29 | <0.001 | |
| Normal | 57.22 ± 3.33 | 91.05 ± 5.25 | <0.001 |
| Event | R2 | Room Contrast (β1) | Descriptive p (Room) | Hour Effect (β2) | p (Hour) | Standard Room (%) | Ventilation-Restricted Room (%) |
|---|---|---|---|---|---|---|---|
| Cough-like | 0.85 | +0.854 | <0.001 | +0.032 | <0.001 | 0.41 | 0.95 |
| Sneezing | 0.14 | −0.067 | 0.103 | +0.005 | 0.074 | 0.39 | 0.37 |
| Aggressive | 0.69 | +1.174 | <0.001 | +0.065 | <0.001 | 1.02 | 3.22 |
| Normal | 0.33 | +0.446 | <0.001 | +0.030 | <0.001 | 1.18 | 1.83 |
| Silence | 0.64 | −0.699 | <0.001 | −0.041 | <0.001 | 96.10 | 92.48 |
| Event | R2 | Room Contrast (β1) | Descriptive p (Room) | Day Effect (β2) | p (Day) | Standard Room (%) | Ventilation Restricted Room (%) |
|---|---|---|---|---|---|---|---|
| Cough-like | 0.85 | +0.691 | <0.001 | +0.031 | <0.001 | 0.56 | 1.11 |
| Sneezing | 0.14 | −0.113 | 0.314 | −0.019 | 0.009 | 0.50 | 0.44 |
| Aggressive | 0.69 | +0.670 | <0.001 | −0.002 | 0.583 | 1.84 | 3.53 |
| Normal | 0.33 | +0.421 | 0.001 | +0.029 | <0.001 | 1.65 | 2.49 |
| Silence | 0.64 | −0.543 | <0.001 | −0.016 | <0.001 | 94.98 | 91.67 |
| Event | Standard Room—Day | Standard Room—Night | Restricted Room—Day | Restricted Room—Night |
|---|---|---|---|---|
| Cough-like | 1.22 | 1.39 | 2.55 | 2.69 |
| Sneezing | 1.13 | 1.26 | 1.20 | 1.13 |
| Aggressive | 3.74 | 5.07 | 8.08 | 8.47 |
| Normal | 3.18 | 4.69 | 5.73 | 7.33 |
| Variable | Standard Room ρ | Restricted Room ρ |
|---|---|---|
| NH3 | 0.660 | 0.861 |
| Temperature | 0.720 | 0.807 |
| CO2 | 0.756 | 0.765 |
| Relative humidity | 0.272 | 0.779 |
| Respiration rate | −0.361 | −0.425 |
| Normal vocalizations | 0.511 | 0.552 |
| Sneezing | 0.366 | 0.499 |
| Aggressive vocalizations | 0.247 | 0.060 |
| Dust | −0.234 | −0.129 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Sharifuzzaman, M.; Mun, H.-S.; Hasan, M.K.; Kang, J.-G.; Lagua, E.B.; Park, H.-R.; Ampode, K.M.B.; Kim, Y.-H.; Mehtab, A.; Yang, C.-J. Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer. Animals 2026, 16, 2275. https://doi.org/10.3390/ani16142275
Sharifuzzaman M, Mun H-S, Hasan MK, Kang J-G, Lagua EB, Park H-R, Ampode KMB, Kim Y-H, Mehtab A, Yang C-J. Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer. Animals. 2026; 16(14):2275. https://doi.org/10.3390/ani16142275
Chicago/Turabian StyleSharifuzzaman, Md, Hong-Seok Mun, Md Kamrul Hasan, Jin-Gu Kang, Eddiemar B. Lagua, Hae-Rang Park, Keiven Mark B. Ampode, Young-Hwa Kim, Ahsan Mehtab, and Chul-Ju Yang. 2026. "Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer" Animals 16, no. 14: 2275. https://doi.org/10.3390/ani16142275
APA StyleSharifuzzaman, M., Mun, H.-S., Hasan, M. K., Kang, J.-G., Lagua, E. B., Park, H.-R., Ampode, K. M. B., Kim, Y.-H., Mehtab, A., & Yang, C.-J. (2026). Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer. Animals, 16(14), 2275. https://doi.org/10.3390/ani16142275

