Cross-Species Transfer Learning Enables Automated Vigilance-State Classification and Detection of Trazodone Effects on Polysomnography in Dogs
Vigilance and sedation in dogs are assessed with polysomnography with laborious expert scoring; no established automated multi-stage scorer exists for canine electroencephalography (EEG). We developed a deep learning scorer that transfers knowledge from human polysomnography. A convolutional transformer network was pretrained on 153 human recordings and fine-tuned under leave-one-dog-out cross-validation on 12 dogs recorded with and without trazodone (53,798 3-s epochs), with seed ensembling, class-prior correction, temporal smoothing, and conformal prediction sets. Cohen’s kappa was 0.53 (95% confidence interval, CI, 0.47–0.59) versus 0.37 for a spectral-feature benchmark (p<0.001); single networks reached 0.53 with and 0.47 without human pretraining. The predicted and manual NREM percentages agreed (concordance 0.916). The predicted REM percentage was lower under trazodone in 9 of 12 dogs (p=0.021; p=0.064 under nested post-processing selection), but REM detection was weak (F1 0.26), with more false positives in control sessions, so REM suppression was not independently confirmed. Exploratory treatment detection from predicted sleep architecture gave an area under the receiver operating characteristic curve of 0.82 (95% CI 0.63–0.97). Conformal sets had 0.90 empirical coverage overall but 0.75–0.98 across dogs and 0.48 for REM. This proof of concept for fast offline scoring requires prospective validation.
Authors
- Jarosław Kurek (ORCID: https://orcid.org/0000-0002-2789-4732)
- Tomasz Sadkowski (ORCID: https://orcid.org/0000-0001-9175-7110)
- Alicja Pasik
Institutions
- Warsaw University of Life Sciences (PL)
Publication Details
- Journal
- Sensors
- Published
- 2026-11-23
- DOI
- https://doi.org/10.3390/s26237400
- Primary Topic
- EEG and Brain-Computer Interfaces
- Type
- article
- Field-Weighted Citation Impact
- 0.00