Deep learning-based classification of wakefulness, sleep, and rumination states in dairy cows from polysomnography and RumiWatch data.
Chuanyi Guo, Emma Ternman, Xinjie Zhao, Kai Liu, Mutian Niu
Animal Nutrition, Institute of Agricultural Sciences, Department of Environmental Systems Science, ETH Zürich, 8092 Zürich, Switzerland; Department of Infectious Diseases and Public Health, Jockey Club College of Veterinary Medicine and Life Sciences, City University of Hong Kong, Hong Kong SAR, China. · Faculty of Biosciences and Aquaculture, Nord University, Steinkjer, Norway.
Key points
From the paper's conclusion- This study proposed DairySleepNet, a deep learning framework based on a selective state space model, for automated classification of wakefulness, sleep, and rumination states using PSG and RWS data, with the aim of supporting scalable annotations and on-farm deployment.
Abstract
Sleep is essential for the health and welfare of dairy cattle, yet accurate monitoring remains challenging. While Polysomnography (PSG) serves as the gold standard for sleep assessment, its reliance on labor-intensive manual scoring of physiological signals constrains on-farm application, underscoring the need for accessible sensor systems such as the RumiWatch System (RWS). This study proposed DairySleepNet, a deep learning framework based on a selective state space model, for automated classification of wakefulness, sleep, and rumination states using PSG and RWS data, with the aim of supporting scalable annotations and on-farm deployment. The proposed framework adopted a 2-stage encoding architecture that effectively processed time-frequency representations converted from raw multichannel signals through the short-time Fourier transform, capturing both within-channel temporal features and cross-channel interactions. The method was evaluated using 77.13 h of usable PSG and RWS recordings from 7 cows, with approximately one 12-h segment retained for each cow. Animal-level cross-validation and a soft weighted sampling strategy were implemented to ensure robust evaluation. Experimental results demonstrated that DairySleepNet achieved a macro F1 of 86.37% and an accuracy of 90.80% when using PSG data, markedly outperforming both Transformer-based and machine learning baselines. These results supported the feasibility of automated sleep annotation from PSG recordings. Although combining PSG and RWS data reduced cross-fold variability, it did not improve the overall system performance. By contrast, classification based solely on RWS data remained unsatisfactory, underscoring the need for further methodological development before reliable on-farm sleep monitoring can be achieved. Future work should prioritize fine-grained sleep staging, currently limited by scarce stage-specific labeled data, and broader data collection across diverse farm environments to enable robust and practical on-farm application.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Cross-Species Transfer Learning Enables Automated Vigilance-State Classification and Detection of Trazodone Effects on Polysomnography in DogsSensors · 2026
- Sleep and Drowsiness in Cattle: A Narrative Review of Physiology, Measurement, and Methodological Challenges.Animals : an open access journal from MDPI · 2026
- Lightweight on-animal behavior classification and estrus detection in grazing cattle via ear-tag accelerometersSmart Agricultural Technology · 2026
- Integrating multi-modal data fusion approaches for analysis of dairy cattle vocalizationsFrontiers in Veterinary Science · 2025
- A Unified Flexible Large Polysomnography Model for Sleep Staging and Downstream Clinical ScreeningmedRxiv · 2026
- Multichannel Polysomnographic Sensor Fusion for Automatic Sleep Stage Classification.Sensors (Basel, Switzerland) · 2026