# Readers can classify the same sleep interruption differently because they mark different starting or ending times

Researchers studying daytime sleepiness want to know whether it matters how sleep is interrupted. They count how often a patient leaves a stage called N2, spends time awake or in lighter sleep (N1), then returns to N2. For those counts to be useful across clinics, readers of sleep recordings need to recognize the same interruptions. In 42 nights scored twice, only 57% of the readers’ marks had a matching interruption in the other reading. Even when readers marked the same interruption, they could count it differently. In 92 of 172 cases where one reader counted a single stage and the other counted a mixture of wake and N1, the readers agreed on every half-minute that both included in the interruption. They differed only in where they placed its edges. In a second dataset, this accounted for 692 of 1,550 such disagreements.

## Sleep interruptions and daytime sleepiness

Readers assign a stage to each half-minute of a sleep recording, called an epoch. Two patients can spend the same total time in N2, a stage of non-rapid-eye-movement sleep, yet one may repeatedly leave it and return. [Wächter and colleagues](https://doi.org/10.1111/jsr.12895) counted these returns in the European Sleep Apnea Database, using two successive stage changes to identify each return. Among 703 patients with obstructive sleep apnea at one center, those reporting daytime sleepiness averaged 7.0 returns from N2 through N1 per night, compared with 4.7 in the other patients. In 425 patients from ten centers, that difference was no longer statistically significant. Instead, sleepy patients had more returns from N2 through wake. The authors saw the recurring pattern of departures and returns as evidence linking fragmented sleep to sleepiness. They also noted that differences in how centers scored sleep could affect these counts.

To compare readers, we counted each stretch of N1 or wake immediately preceded and followed by N2, however long it lasted. We call the sequence of stages during that interruption its path. A pure path contains only N1 or only wake. A mixed path contains both, in either order. A mixed path requires at least three changes of stage, so neither of the original two markers counts it.

## Agreement on individual interruptions

The [Dreem Open Dataset](https://github.com/Dreem-Organization/dreem-learning-evaluation) contains five readers’ scores for each of 55 nights from people with sleep apnea and 25 nights from healthy sleepers. We examined all 20 simple return paths (five possible starting stages, four possible intermediate stages). Across the 55 apnea nights, one reader counted no N1-only returns from N2 and another counted 995. Including wake-only and mixed returns narrowed the range of reader totals to 937–1,848. Even this total could differ nearly twofold.

The [Institute of Systems and Robotics, University of Coimbra sleep dataset (ISRUC-Sleep, subgroup I)](https://github.com/nemarDatasets/nm000111) provided 42 clinical nights with two usable readings each. The readers marked 1,252 and 1,361 interruptions, respectively. We matched interruptions if they overlapped and started within half a minute of one another. Only 740 pairs matched. The other 43% of all marks had no such counterpart: the readers differed over whether or when the interruption occurred.

Of the 740 matches, 548 received the same path label. In 172 of the 192 disagreements, one reader marked a mixed path and the other a pure one. In 92 of those 172, the extra stage lay entirely outside the stretch both counted as interrupted (Figure 1). Only 20 disagreements were direct exchanges of wake only for N1 only.

![Two readings of four consecutive epochs: both readers score N2, then wake; only the first scores N1 before the return to N2.](results/matched-boundary.png)

*Figure 1. Two minutes of ISRUC recording I004. Each cell shows the stage for the 30 seconds starting at the indicated time. The first reader counts a mixed interruption and the second a wake-only interruption. When all paths count, both readers count one interruption.*

Across ten Dreem reader pairs, 6,941 interruptions matched (53% of marks); 1,607 matches had different path labels. Of those disagreements, 1,550 involved a mixed path, including 692 in which the readers agreed throughout the overlap. Among mixed-versus-pure disagreements, a difference at the edge thus accounted for 45% (95% confidence interval 39% to 50%), compared with 53% (44% to 63%) in ISRUC.

Mixed paths were common and wake-only paths rare, so even chance pairings would often put a pure path opposite a mixed one. Randomly re-pairing the matched labels within each night and reader pair would give mixed-versus-pure shares of 95% of disagreements in Dreem and 88% in ISRUC, close to the observed 96% and 90%. The readers nevertheless agreed more often than chance pairing would predict: in ISRUC there were 192 disagreements against 402 expected.

## Agreement on which nights had frequent interruptions

We ranked nights by interruptions per hour of N2 and measured how similarly readers ordered them (Table 1). In ISRUC, counting all paths rather than N1 alone raised the rank correlation by 0.20 (paired 95% interval 0.01 to 0.40). In Dreem, the corresponding interval included zero (−0.07 to 0.40). Adding mixed paths to the two pure counts gave a clearer gain in Dreem (interval 0.18 to 0.58) than in ISRUC (−0.004 to 0.25). Mixed paths alone ranked nights about as consistently as the total in both datasets.

*Table 1. Agreement on interruptions per hour each reader scored as N2. The Spearman rank correlation measures agreement on the order of nights, irrespective of differences in absolute counts. Dreem medians use all ten reader pairs except for N1 only, where the reader with zero interruptions leaves six pairs for which a correlation can be calculated.*

| Paths counted | Dreem (median over reader pairs) | ISRUC (two readers) |
|---|---:|---:|
| Wake only | 0.08 | 0.28 |
| N1 only | 0.39 | 0.52 |
| Wake only or N1 only | 0.30 | 0.60 |
| Mixed only | 0.76 | 0.71 |
| All three paths | 0.67 | 0.72 |

Rarity could explain some of the low agreement for wake alone. For each ISRUC reader, randomly drawing as many interruptions as that reader had labeled wake only gave a median rank correlation of 0.29, close to the observed 0.28. For N1 alone, the observed correlation of 0.52 fell below the median of 0.66 for random draws of the same size. Selecting by the N1-only label changed which nights ranked highly more than a typical random draw did.

## Breathing events near an interruption

In 994 [Massachusetts General Hospital sleep recordings](https://physionet.org/content/challenge-2018/1.0.0/), readers marked when hypopneas (episodes of reduced airflow) ended. How often an ending fell near an interruption depended on the first stage after N2. Of mixed interruptions, 74% began with wake. For most mixed interruptions, a minute centered on departure from N2 therefore included half a minute of wake, when few hypopnea endings were marked (Table 2). For every N1-only interruption, that minute contained only sleep. The full minute thus gives wake-first interruptions less opportunity to coincide with an event scored during sleep.

*Table 2. Percentage of interruptions with a scored hypopnea ending in each window. Each interruption counts once per column. An ending exactly at departure counts in the first epoch after departure.*

| Interruption | Number | Last 30 s in N2 | First 30 s after departure | Full minute |
|---|---:|---:|---:|---:|
| N1 only | 13,908 | 16.6 | 10.8 | 23.7 |
| Mixed, N1 first | 1,937 | 15.2 | 10.1 | 21.9 |
| Mixed, wake first | 5,572 | 10.0 | 2.5 | 12.0 |
| Wake only | 461 | 12.8 | 4.3 | 15.8 |

The difference was already visible in the last half-minute of N2. Among mixed interruptions of the same length on the same night, a hypopnea ended in that half-minute 5.0 percentage points more often before N1 than before wake (95% interval 0.6 to 9.7; 279 nights). Once the first stage was known, the rest of the path made little discernible difference. Subtracting the percentage for mixed paths from that for pure paths gave −0.5 points for N1-first interruptions (−6.8 to 5.8; 184 nights) and −2.7 for wake-first interruptions (−9.9 to 5.6; 47 nights).

We also compared the minute centered on departure with minutes centered at nearby times when the patient stayed in N2 (local controls). Across 7,234 mixed interruptions with local controls, a hypopnea ended in 13.8% of departure minutes versus 16.9% of control minutes, averaging nights equally (difference −3.1 points, −4.1 to −2.1). An obstructive apnea, a pause in airflow despite breathing effort, ended in 10.4% versus 9.0% (+1.4 points, 0.7 to 2.1).

After subtracting the local control percentage for each path, a hypopnea ending was more common near an N1-only interruption than near a mixed interruption of equal length on the same night (difference +4.8 points, 2.0 to 7.5; 633 nights). Restricting that comparison to interruptions starting in N1 gave a difference of −0.1 points at departure and −2.2 at controls (+2.1 after subtraction, −4.1 to 8.1; 180 nights). Here too, the full path added little discernible information about hypopnea timing once its first stage was known.

## Interpretation

Among [24 Dublin patients](https://physionet.org/content/ucddb/1.0.0/) with at least five breathing events per hour of sleep, the 13 who reported sleepiness averaged 4.9 wake-only returns versus 2.1 in the other 11, in the same direction as the original multicenter result. After adjustment for breathing-event frequency, the sleepy group averaged 5.6 more interruptions of all paths per night (95% interval −1.1 to 12.3). Whether the total count was higher in sleepy patients remains uncertain.

Including mixed paths lets both readers count an interruption even when they disagree about a half-minute at its edge. For comparisons with breathing events, it helps to distinguish the first stage after N2 and to examine event endings while the patient is still in N2.

Pooling paths cannot recover interruptions marked by only one reader, and stage changes miss brief arousals within an epoch. Reader agreement and breathing-event timing do not establish which interruptions matter most for daytime sleepiness. The individual records needed to recalculate the original sleepiness results were unavailable to us.

## Methods

For reader comparisons we kept epochs scored by every reader of that night. A gap or any stage other than wake or N1 ended a stretch; to count as an interruption, the stretch had to have N2 on both sides. Within each night and reader pair, we matched as many interruptions as possible without reuse, requiring a shared epoch and start times no more than one epoch apart. We measured agreement on detection as twice the number of matches divided by the sum of the two readers’ counts. A Dreem interruption could contribute to more than one reader pair.

To calculate how many labels would agree by chance, we used each reader’s label frequencies among matched interruptions to calculate the expected count for each combination of labels within each night and reader pair, then summed those counts. To examine the effect of rarity, we independently sampled each ISRUC reader’s pooled interruptions without replacement across nights 2,000 times. The rank comparisons are descriptive.

For respiratory timing we used the endings identified as apneas or hypopneas in the hospital annotations. The minute centered on departure included the 30 seconds before and the first 30 seconds after onset, excluding the right endpoint. For each onset, we found every boundary within ten minutes with N2 on both sides. The local control percentage was the percentage of minutes centered on those boundaries that contained an ending. We dropped onsets without a local control, averaged the onset-minus-control differences within each night, then averaged nights equally. Table 2 includes all interruptions regardless of control availability.

To compare paths, we grouped interruptions within each night by their duration in 30-second units. We compared paths of equal duration, weighting each duration by the smaller of the two path counts, then averaged nights equally. For the pre-departure comparisons we counted only endings in the last N2 epoch, excluding the departure boundary, and used no local controls.

In Dublin, readers used the older Rechtschaffen–Kales sleep staging system; we mapped its stages 1 and 2 to N1 and N2. We classified patients as sleepy using the original threshold of more than 10 on the Epworth Sleepiness Scale, a questionnaire about the tendency to doze.

We calculated confidence intervals for each estimate separately from percentiles of 4,000 resamples of whole nights, keeping readers and events together. For the Dublin sleepiness comparison we used Welch intervals for differences in mean counts. For the adjusted comparison we fitted a linear model with sleepiness group and the base-two logarithm of breathing events per hour as predictors. We used heteroskedasticity-consistent standard errors (HC3), which allow unequal variance and adjust for the leverage of individual observations, with a t interval based on the residual degrees of freedom.
