Exploratory Room-Level Acoustic Soundscape Monitoring of Cough-like Events Under Standard and Ventilation-Restricted Pig-Housing Conditions Using Audio Spectrogram Transformer
Year: 2026
Type: article
Abstract: Respiratory sound monitoring is a promising non-invasive tool for precision pig farming, but practical evidence from calibrated room-level deployment under degraded air-quality conditions remains limited. This study reports a 28-day exploratory room-level case study in which 52 growing pigs were housed in two rooms: one standard-ventilation room and one ventilation-restricted room, and monitored with one microphone per room emphasizing mixed room-level soundscape monitoring rather than individual pig cough counts or replicated treatment inference. Because the design lacked independent room-level replication, all room contrasts and p-values were interpreted as exploratory descriptive screening summaries rather than causal treatment effects. Airflow verification, playback calibration at multiple pen positions, and background-noise spectral analysis were performed to address measurement bias. Signal inspection showed that biologically relevant vocal energy was retained after 16 kHz resampling, while class imbalance was handled by inverse-frequency weighting and macro-F1-based model selection. The Audio Spectrogram Transformer (AST) pipeline was subjected to five-fold group-blocked cross-validation, and temporal validation. The model achieved a test macro-F1 of 0.937, five-fold macro-F1 of 0.928 ± 0.019, and three-day deployment validation macro-F1 of 0.914. In this two-room dataset, the ventilation-restricted room displayed higher room-level cough-like detections, aggressive vocalizations, normal vocalizations, lower silence, reduced growth, and poorer air quality. Cough-like detections showed recurring clock-time clustering, with the most sustained elevation during 19:00–22:00 and a smaller peak around 10:00 with the highest occurrences at 20.00 (2.84 room-level cough-like detections standardized to group size). Audio-only early-warning analysis flagged deteriorated air-quality windows with AUROC = 0.91 and AUPRC = 0.88 and provided a median 34 min lead time before environmental threshold exceedance, highlighting practical utility as an early inspection cue for farmers before air-quality deterioration becomes more pronounced. Cough-like events descriptively co-varied positively with NH3, temperature, and CO2. Overall, calibrated AST-based monitoring can summarize group-level acoustic changes associated with degraded room environments, while multi-room and multi-farm replication remains necessary for causal inference and generalization.
Source: Animals
DOI: 10.3390/ani16142275
Language: English
Topic: Smart Agriculture and AI
Subfield: Plant Science
Domain: Life Sciences
Open Access status: gold
Estimated APC paid: $2,896
OpenAlex ID: W7170044701
