bioRxivBioengineeringPreprint
Beyond Ground Truth in K-Complex Detection: A Waveform-Based SVM Classifier and the Limits of Expert Agreement
Aylin A. Vazquez ChenloiD, María Cecilia GonzáleziD, María Laura GorositoiD, Cecilia ForcatoiD, Rodrigo RameleiD
- Citations
- 0
Abstract
ObjectiveK-complexes (KCs) are large-amplitude EEG events that represent N2 sleep stage and have been linked to sensory gating, sleep protection, and memory consolidation. Their detection remains limited by inter-rater variability in visual scoring and by the reliance of detectors on features that discard temporal information. We propose a two-stage detector that combines a rule-based candidate localization algorithm with a Support Vector Machine (SVM) classifier operating directly on the raw 2-seconds waveform, and we evaluate it against an adjudicated expert consensus of two different datasets. MethodsPolysomnographic recordings from 10 healthy adults (Dataset 1) were independently annotated by two human scorers; discordant events were adjudicated by a senior expert, yielding 240 consensus KCs. The automatic classifier was evaluated using subject-level 10-fold Group K-Fold cross-validation and compared directly against the two human scorers under identical conditions. Cross-dataset generalization was further assessed on the public DREAMS database (Dataset 2) under both external and internal training criteria. ResultsThe SVM classifier achieved the highest F1-score (79.4%) and accuracy (78.8%) among all scorers, with balanced recall (81.7%) and specificity (75.8%). Of the 58 false positives, 42 originated from events both experts had rejected yet displayed canonical KC morphology and received high classifier confidence (P(KC)>0.7 in 45.2% of cases). This pattern was replicated on Dataset 2. ConclusionA waveform-based classifier matches expert performance and systematically flags morphologically valid KCs that fall outside conventional visual-scoring criteria. SignificanceThese findings question the existence of an unambiguous ground truth for KC detection and support a data-driven redefinition of the event boundary, with implications for sleep staging and memory-consolidation research.
- organism: human
- assay: electrophysiology
- research focus: cell type annotation
- approach: machine learning (classical)
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Aperiodic dynamics track cortical state shifts during sleep K-complexes
Elizabeth S Kaplan, Jonathan Schindler, Bradley Voytek·bioRxiv·Sep 29, 2026
- An accessible and versatile deep learning-based sleep stage classifier
Jevri Hanna, Agnes Flöel·Frontiers in NeuroinformaticsPeer-reviewed·Mar 1, 2023
- Automatic Wake-Sleep Stages Classification using Electroencephalogram Instantaneous Frequency and Envelope Tracking
M. Rahbar Alam, R. Sameni·bioRxiv·May 13, 2020
- A Novel, Fast and Efficient Single-Sensor Automatic Sleep-Stage Classification Based on Complementary Cross-Frequency Coupling Estimates
Stavros I. Dimitriadis, Christos I. Salis, David E.J. Linden·Clinical NeurophysiologyPeer-reviewed·Jan 31, 2018
- The brain tunes to unfamiliar voices during sleeping
Mohamed S. Ameen, Dominik Philip Johannes Heib, … Manuel Schabus·Journal of NeurosciencePeer-reviewed·Jan 17, 2022
- An algorithm for automated, noninvasive detection of cortical spreading depolarizations based on EEG simulations
A. Chamanzar, S. George, … P. Grover·bioRxiv·Aug 16, 2018