Skip to main content
PLOS ONE logoLink to PLOS ONE
. 2017 May 11;12(5):e0177437. doi: 10.1371/journal.pone.0177437

Sleep spindle detection based on non-experts: A validation study

Rui Zhao 1, Jinbo Sun 1, Xinxin Zhang 1, Huanju Wu 1, Peng Liu 1, Xuejuan Yang 1, Wei Qin 1,*
Editor: Christos Papadelis2
PMCID: PMC5426701  PMID: 28493938

Abstract

Accurate and efficient detection of sleep spindles is a methodological challenge. The present study describes a method of using non-experts for manual detection of sleep spindles. We recruited five experts and 168 non-experts to manually identify spindles in stage N2 and stage N3 sleep data using a MATLAB interface. Scorers classified each spindle into definite and indefinite spindle (with weights of 1 and 0.5, respectively). First, a method of optimizing the thresholds of the expert/non-expert group consensus according to the results of experts and non-experts themselves is described. Using this method, we established expert and non-expert group standards from expert and non-expert scorers, respectively, and evaluated the performance of the non-expert group standards by compared with the expert group standard (termed EGS). The results indicated that the highest performance was the non-expert group standard when definite spindles were only considered (termed nEGS-1; F1 score = 0.78 for N2; 0.68 for N3). Second, four automatic spindle detection methods were compared with the EGS. We found that the performance of nEGS-1 versus EGS was higher than that of the four automated methods. Our results also showed positive correlation between the mean F1 score of individual expert in EGS and the F1 score of nEGS-1 versus EGS across 30 segments of stage N2 data (r = 0.61, P < 0.001). Further, we found that six and nine non-experts were needed to manually identify spindles in stages N2 and N3, respectively, while maintaining acceptable performance of nEGS-1 versus EGS (F1 score = 0.79 for N2; 0.64 for N3). In conclusion, this study establishes a detailed process for detection of sleep spindles by non-experts in a crowdsourcing scheme.

Introduction

Sleep spindles are characterized by a waxing and waning shape, within the sigma frequency range (11~16 Hz) with a minimum duration of 0.5s, and they are a key hallmark of stage 2 (N2) non-rapid eye movement (NREM) sleep [1]. The roles of sleep spindles in basic and clinical sleep research are well documented recently. Much evidence indicates that the functional significance of sleep spindles has been implicated in intelligence [2, 3] and sleep-dependent memory consolidation [4, 5], which suggests that sleep spindles may be considered both as a physiological index of intellectual abilities and a marker of the capacity for learning [6, 7]. Clinically, alterations of sleep spindle characteristics are obtained in many diseases, such as Parkinson’s [8, 9], schizophrenia [10, 11], autism [12], insomnia [13, 14] and Alzheimer’s disease [15], which may represent a biomarker of illness and have important supplementary diagnostic value. Therefore, it is imperative to accurately detect spindles.

Although visual inspection by experts is the gold standard of sleep spindle detection, with the rapid increase in research on sleep spindles, various automated methods of spindle detection have been proposed to reduce subjective biases and increase reliability and objectivity. The major advantages of automated methods are faster, more reproducible and systematic scoring. They extract features from EEG data and apply specific thresholds to identify features corresponding to sleep spindles. A standardized band-pass filter or custom frequency range filter and amplitude-threshold approach has been commonly used in research literature and reported approximately 90% sensitivity [1622]. Time-frequency analysis method also has been applied in spindle detection with wavelet transformation and matching pursuit [11, 23, 24]. More recently, sophisticated automatic sleep spindle detection methods using artificial neural networks have been developed and reported high agreement with experts (ranging from 85% to 96%) [8, 2527]. Although there is ample evidence that many automated methods have an acceptable agreement with experts, they have the limitations that they are known for occasional problems with differentiating ambiguous oscillation signals (e.g., alpha versus spindles). They can also be highly influenced by the algorithm settings chosen by researchers (e.g., spindle duration, frequency, and amplitude characteristics) [2831].

To make up for the time-consumingness of manually detection spindles by experts and the limitations of automated methods, crowdsourcing by non-experts may be another potential technique. It divides a large, complex task into smaller parts which are allocated to a group of untrained individuals in the general public [32]. Crowdsourcing has been used successfully to decipher complex protein folding structures with an online game (http://foldit.wikia.com/wiki/Foldit_Wiki) and solve complex medical cases (https://www.crowdmed.com/). In addition, it has been used in video-based assessment of surgical technique with inexperienced users who perform as well as experts [33]. Early studies have also shown that this technique has the potential to significantly advance medical image analysis delivery which can provide a combination of accuracy and cost effectiveness [34, 35]. These studies suggest that crowdsourcing may be a significant potential technique in many fields. Remarkably, Warby et al. [36] in Nature Methods investigated the agreement in spindle detection between expert scorers, non-experts based on crowdsourcing spindle identification, and automatic detection algorithms. They found that concordance was the strongest among experts, followed by non-experts, and weakest among automated methods. This work opens an attractive avenue for detecting sleep spindles in a crowdsourcing scheme.

Expert visual identification of sleep spindles is based on years of experience. Non-experts can copy or imitate experts’ manual spindle inspection and flexibly distinguish spindles among varying EEG background activity, suggesting that crowdsourcing by non-experts may be a promising method of spindle detection. If we apply this method practically, sleep spindle detection should be only based on the judgment of non-experts (i.e., independent of that of experts). However, the study by Warby et al. didn’t satisfy this condition. The goal of the present study is to evaluate spindle identification performance by a group of non-experts which is independent of the judgment of experts, in a crowdsourcing scheme.

In the present study, we crowdsourced spindle identification of stage N2 and stage N3 sleep EEG data to 168 non-expert scorers using a MATLAB interface. To generate the non-expert group standard, we optimized the thresholds of the non-expert group consensus with reference to non-experts themselves rather than the constant threshold of Warby’s study. To evaluate performance, we compared the non-expert group standard with the expert group standard (EGS) which was generated from five experts. These experts manually scored sleep spindles in all EEG data sets using the same interface. To compare with the non-expert group standard, we also implemented four automated spindle methods commonly used in research literature. If the non-expert group standard met the accuracy requirement, we then investigated its efficiency by determining the smallest number of non-experts required to identify spindles. Overall, we found that when definite spindles were only considered, the non-expert group standard (termed nEGS-1) showed acceptable agreement with the EGS. The agreement of nEGS-1 with EGS was better than that of the automatic detection methods we tested. We also found that for stage N2 and N3 sleep data at least six and nine non-experts are needed to maintain the acceptable performance of nEGS-1 versus EGS, respectively.

Materials and methods

EEG data set

We anonymously chose the EEG data set from 30 healthy, young subjects (mean age, 22.74 ± 1.24 years; 11 females, 19 males), and randomly selected 10 minutes of artifact-free N2 sleep data and 10 minutes of artifact-free N3 sleep data from each subject. Each data segment was chosen in one continuous chunk which was randomly selected from the first half of a night. In total, 60 segments of sleep data constituted the EEG data set (30 segments of N2 sleep data and 30 segments of N3 sleep data) with a sampling rate of 500 Hz. All subjects displayed regular sleeping patterns, had no sleep disorders, and were free of any drugs that would disrupt sleep architecture. All procedures performed in this study involving human participants were approved by the institutional research ethics committee of the Xijing Hospital of the Fourth Military Medical University. All subjects gave written informed consent for their participation, data collection and usage.

Spindle identification interface

To visually identify sleep spindles, we developed a spindle identification interface based on MATLAB. The interface displayed 10 seconds of band-pass-filtered (0.3 ~ 35 Hz) EEG data from the C3-M2 channel at a time. The presented voltages of vertical coordinates ranged from -75 to 75μV, and the vertical dashed lines marked 1s intervals. Scorers drew a line around a sleep spindle, and pressed a Sure button (definite spindle) or a Not Sure button (indefinite spindle). The start and end of the line represented the start and end of the spindle exactly, and the length was the duration of the spindle. We weighted definite spindles, indefinite spindles and the non-spindle parts with values of 1, 0.5 and 0, respectively. In addition, scorers could delete marked spindles, and change a score from definite spindle to indefinite spindle and vice versa. For each data segment, a vector consisting of 1, 0.5 and 0 was generated which was to be used for further analysis.

Experimental protocol

A manual on how to identify spindles was written by a technologist who had scored sleep stages for many years. The manual discussed the methods of spindle identification based on the spindle’s shape, frequency, duration and amplitude, and gave various spindle examples to teach scorers (experts and non-experts) how to correctly and accurately identify spindles. Sleep spindles stood out as being distinct from the surrounding EEG signal with a waxing and waning shape. They oscillated at 11–16 cycles per second which could be determined by counting the number of wave peaks per second. Spindles were at least 0.5 seconds in duration according to the American Academy of Sleep Medicine [1]. For the spindle amplitude, there is no strict criterion, but it is a little larger than the waves around it. All scorers were instructed to read this manual and performed a training session before the actual spindle identification task.

We recruited another five technologists who had scored sleep stages for at least three years as our experts to identify spindles in all EEG data. These experts were recruited by word of mouth. We sent a package containing the spindle identification interface, the operating instructions for the interface, and all 60 segments of EEG data to the experts by email. Experts were instructed to read the manual on spindle identification and performed a training session before the actual spindle identification task. The manual writer asked every expert if he/she had read the manual and graded the performance of the training session. Not until their performance exceeded 70 did they participate in the final experiment. The average score of experts was 86.76 ± 5.12. The collection of the expert data took approximately 1 month. Finally, we provided some rewards for their work.

Posting on a forum and sending a small advertisement were used to recruit 168 non-experts who were not familiar with sleep spindles. The forum was a university forum and its members were mainly students of Xidian University. The advertisement was self-made by writing the recruitment information. The non-experts were undergraduate and master students of Xidian University, other than students of our team. They specialized in computer science, electronic engineering or communication engineering, and all of them were not familiar with sleep spindles. All non-experts were instructed to study the same manual on how to identify spindles and performed the same training session as experts. Similarly, the manual writer asked every non-expert if he/she had read the manual and graded the performance of training session. Not until their performance exceeded 60 did they participate in the final experiment. The average score of non-experts was 69.84 ± 7.24.

Non-experts performed the actual spindle identification task in a laboratory that collects behavioral data. A maximum of five non-experts identified spindles independently at a time. Everyone identified six segments of EEG data, including three segments of stage N2 and three segments of stage N3 data. These six data segments were randomly extracted from the 60 segments of the EEG data set and were not derived from the same subject. Each data segment was identified by at least 20 non-experts. There was no limit on how many data segments each individual non-expert should score from the dataset, but the same non-expert was permitted to score the same data segment only once. Non-experts were paid according to their finished workload. The average time spent on their work was 108 ± 36 min, and the collection of the non-expert data took approximately 18 days. No experts or non-experts opted out of this study once it began. Here, we declared that all authors have no contact with any spindle scorers or the sleeping participants.

Data analysis

A schematic diagram of the analysis pipeline was illustrated in Fig 1. The pipeline was comprised by four blocks. The procedures of these four blocks were elaborated in the following section.

Fig 1. Schematic diagram of the analysis pipeline.

Fig 1

The pipeline is comprised by four blocks. In the first block (A), the method of generating group standard is elaborated. N vectors are averaged to obtain the group consensus. A group vector and N individual vectors were found by applying a group threshold (T-group = 0:0.05:0.95) to the group consensus and the N vectors. Using the matching procedure, the N individual vectors were compared with the group vector at varying overlap thresholds (T-overlap = 0:0.05:0.95) to obtain the F1 score. The mean F1 scores corresponding to varying T-group and T-overlap values were calculated by averaging the F1 scores of N scores. Finally, the optimal T-group was determined from the 3D surface by maximizing the mean F1 score of all individuals in the group, and the best T-overlap was selected by finding the first point at which the difference between the two adjacent values of the mean F1 score at the best T-group was more than 0.002. The group standard was then established from the group consensus at the optimal T-group. The second block (B) illustrates the establishment of four group standards (EGS, nEGS-all, nEGS-1 and nEGS-05) by performing the first block. The EGS (expert group standard) was generated from five experts. The nEGS-all (non-expert group standard with all spindles) was established from 168 non-experts when both definite spindles and indefinite spindles were considered. The nEGS-1 (non-expert group standard with definite spindles) was obtained from 168 non-experts when definite spindles were only considered. The nEGS-05 (non-expert group standard with indefinite spindles) was obtained from 168 non-experts when indefinite spindles were only considered. Then, the three non-expert group standards (nEGS-all, nEGS-1 and nEGS-05) are compared with EGS using a matching procedure. The third block (C) illustrates the establishment of group standards for each data segment (EGS-each and nEGS-1-each) by performing the first block. For each data segment (n = 30), the EGS-each (expert group standard of each data segment) was obtained from five experts. The nEGS-1-each (non-expert group standard of each data segment only containing the definite spindles) was established from 168 non-experts. Then, Pearson correlation analysis is performed between the performance of EGS-each and nEGS-1-each across 30 data segments. The fourth block (D) determines the minimum number of non-experts required to identify spindles. For each data segment, n (n = 1,2,3,…,20) non-experts identified the data. We generated the nEGS-1 from these n non-experts by performing the first block, and obtained the F1 score of nEGS-1 versus EGS using the matching procedure. This approach was repeated 500 times. The mean F1 score of nEGS-1 versus EGS was calculated across 500 repetitions. Then, we determined the minimum number of non-experts by finding the first point at which the mean F1 score of nEGS-1 versus EGS approached a stable value.

The procedure of group standard generation

The generation of group standard was based on the study of Warby et al. [36] (Fig 1A). We took EGS (see definitions in S4 Table) in stage N2 sleep data as an example to provide a brief outline. The generation of EGS was performed on 150 vectors (30 segments of data multiplied by 5 experts), each of which was the result of one expert’s identification of one data segment. This vector contained 300,000 points (500 Hz × 600 seconds) comprising 10 minutes of data and composed of the values 1, 0.5 and 0 (1 = definite spindle, 0.5 = indefinite spindle, 0 = no spindle part).

This procedure included three stages. The first stage included the following three operations for each data segment. 1) The expert group consensus was obtained by averaging the vectors of the five experts at each sample point. 2) The expert group vector and five binary individual expert vectors were found by applying a group threshold (T-group, which increased from 0 to 0.95 in increments of 0.05) to the expert group consensus and the five individual expert scores, respectively. 3) The five individual expert vectors were compared with the expert group vector at varying overlap thresholds (T-overlap, which increased from 0 to 0.95 in increments of 0.05) using a matching procedure (see the methods in S1 File), and a classic 2 × 2 contingency table of true positive (TP), false positive (FP) and false negative (FN) was obtained.

The matching procedure was used to classify two spindles, which were respectively identified in the individual expert vectors and expert group vector, into the contingency table. Specifically, if the overlap ratio (the intersection/union score, OED) exceeded T-overlap, these two spindles were classified as TP; otherwise, the spindle in the binary individual expert vector was classified as FP, and the spindle in the expert group vector was classified as FN. Detailed descriptions and several special situations of the matching procedure are shown in S1 File.

OED = E  DE  D (1)
={TPOED> T-overlapFPOED T-overlap (2)
={TPOED> T-overlapFNOED T-overlap (3)

Here, E was one spindle in the expert group vector. D was one spindle in the individual expert vector.

Therefore, we obtained the TP, FP and FN values which respectively corresponded to various data segments (n = 30), T-groups (n = 20), T-overlaps (n = 20) and experts (n = 5). In total, 60,000 (30 × 20 × 20 × 5) series of [TP, FP, FN] were generated over all cases.

In the second stage, the TP, FP and FN values of each expert across 30 segments of data were added. The recall, precision and F1 scores (20 × 20 × 5 cases), which all ranged from 0–1, were calculated. Then, the mean F1 score was calculated by averaging the five experts’ F1 scores. Finally, a 20 × 20 matrix of mean F1 scores was obtained for varying T-group and T-overlap values and shown on a three-dimensional (3D) surface (X-axis: T-group, Y-axis: T-overlap, Z-axis: mean F1 score).

recall = TPTP + FN (4)
precision = TPTP + FP (5)
F1 score = 2 × recall × precisionrecall + precision (6)

In the third stage, we determined the best T-group and T-overlap values from the 3D surface. The best T-group was selected by maximizing the mean F1 score, and the expert group consensus at the best T-group was the EGS which was then used as the gold standard. The best T-overlap specified the required overlap rate to classify TP spindles. However, the T-overlap corresponding to the maximal mean F1 score was 0, which was too relaxed for evaluation of group standard performance. Therefore, after determining the optimal T-group, we analyzed the mean F1 scores of the best T-group at varying T-overlap values and found the first point at which the difference between the two adjacent mean F1 scores was greater than 0.002. The overlap threshold corresponding to this point was identified as the best T-overlap value. The mean F1 score at this point was the mean performance of all individual experts in the EGS. Finally, we established the EGS and obtained three parameters: the best T-group, the best T-overlap and the mean F1 score (termed F1 score¯). For further details, see Warby et al. [36].

In this section, we described a method of generating the group standard, taking the EGS for example. Briefly, using the matching procedure, individual experts’ scores were compared with the expert group consensus at varying T-group and T-overlap values, and the classic contingency table of TP, FP and FN was obtained. Then, the mean F1 score of all experts was calculated from the contingency table at varying T-groups and T-overlaps. Finally, the optimal thresholds were determined from the 3D surface. The expert group consensus at the best T-group was nominated as the EGS (Fig 1A).

Four group standards of the whole data

The four group standards were the EGS, the non-expert group standard with all spindles (both definite spindles and indefinite spindles were considered, denoted as nEGS-all), the non-expert group standard with definite spindles (definite spindles were only considered, denoted as nEGS-1) and the non-expert group standard with indefinite spindles (indefinite spindles were only considered, denoted as nEGS-05). The three non-expert group standards (nEGS-all, nEGS-1 and nEGS-05) were established from 168 non-experts using the similar procedure as the EGS (Fig 1B). Detailed descriptions of the generation of the three non-expert group standards are shown in the methods of S1 File. In this procedure, the optimal T-group value was determined by maximizing the mean F1 score of all individuals in the non-expert group (rather than maximizing the F1 score generated by compared the non-expert group consensus with the EGS [36, 37]). Each group standard had its own optimal T-overlap instead of a constant threshold [36]; thus, the non-expert group standard established in our procedure is generated by using data only from non-experts themselves (i.e., independent of experts).

The four group standards of stages N2 and N3 data were obtained. Table 1 shows several parameters that were collected for each group standard, including the number of experts/non-experts in each standard, the best T-group, T-overlap, F1 score¯ (the mean F1 score of the group standard corresponding to the optimal thresholds), and the range of F1 scores across all experts or non-experts in each standard.

Table 1. Parameters of four group standards in stage N2 and N3 sleep data.

Stage Standard Number T-group T-overlap F1 score¯ F1 score range F1 score-leave¯
N2 EGS 5 0.30 0.45 0.84 ± 0.02 0.82 ~ 0.88 0.79 ± 0.03
nEGS-all 168 0.35 0.30 0.72 ± 0.10 0.24 ~ 0.88 0.70 ± 0.10
nEGS-1 168 0.35 0.30 0.68 ± 0.11 0.24 ~ 0.90 0.66 ± 0.11
nEGS-05 168 0.05 0.30 0.27 ± 0.13 0.003 ~ 0.64 0.17 ± 0.08
N3 EGS 5 0.30 0.40 0.74 ± 0.05 0.66 ~ 0.79 0.63 ± 0.06
nEGS-all 168 0.30 0.30 0.59 ± 0.12 0.22 ~ 0.84 0.55 ± 0.12
nEGS-1 168 0.35 0.25 0.53 ± 0.14 0.15 ~ 0.79 0.47 ± 0.13
nEGS-05 168 0.05 0.35 0.26 ± 0.13 0.027 ~ 0.56 0.18 ± 0.09

Data are presented as mean ± standard deviation unless otherwise indicated. The EGS was the expert group standard. The nEGS-all was the non-expert group standard with all spindles when both the weighted value of 1 and 0.5 were considered. The nEGS-1 was the non-expert group standard with definite spindles when the weighted value of 1 was only considered. The nEGS-05 was the non-expert group standard with indefinite spindles when the weighted value of 0.5 was only considered. The Number was the number of experts/non-experts in each standard. The T-group was the best group threshold. The T-overlap was the best overlap threshold. The F1 score¯ was the mean F1 score of individuals in a group related to its own group at the best T-group and T-overlap. The F1 score range was the range of F1 scores of 168 non-experts or five experts. The F1 score-leave¯ was the mean F1 score of all experts or non-experts in the leave-one-out analysis. All standards were established by thresholding the group consensus at the T-group.

To evaluate which non-expert group standard was the best, we compared the three non-expert group standards with the EGS at their respective optimal thresholds using the matching procedure, and obtained the TP, FP, FN, recall, precision and VS-F1-score values (Table 2). The VS-F1-score was the F1 score of one standard compared with the EGS using the matching procedure (see methods in S1 File), representing the similarity between one standard and the gold standard.

Table 2. The performance of the three non-expert group standards and four automated methods compared to the expert group standard in stage N2 and N3 sleep data.

Stage Standard Number TP FP FN Recall Precision VS-F1-score
N2 nEGS-all 168 543 339 12 0.98 0.62 0.76
nEGS-1 168 529 265 26 0.95 0.67 0.78
nEGS-05 168 151(138) 303(84) 404 0.27 0.33 0.30
AS1 N/A 472 508 83 0.85 0.48 0.62
AS2 N/A 386 267 169 0.70 0.59 0.64
AS3 N/A 179 78 376 0.32 0.70 0.44
AS4 N/A 426 2458 129 0.77 0.15 0.25
N3 nEGS-all 168 149 221 3 0.98 0.40 0.57
nEGS-1 168 135 113 17 0.89 0.54 0.68
nEGS-05 168 28(23) 124(29) 144 0.18 0.16 0.17
AS1 N/A 143 775 9 0.94 0.16 0.27
AS2 N/A 127 448 25 0.84 0.22 0.35
AS3 N/A 46 47 106 0.30 0.49 0.38
AS4 N/A 125 2848 27 0.82 0.04 0.08

The nEGS-all was the non-expert group standard with all spindles when both the weighted values of 1 and 0.5 were considered. The nEGS-1 was the non-expert group standard with definite spindles when the weighted value of 1 was only considered. The nEGS-05 was the non-expert group standard with indefinite spindles when the weighted value of 0.5 was only considered. The AS1, AS2, AS3 and AS4 were the automatic standards obtained by the first, second, third and fourth automated method, respectively. The Number was the number of non-experts in each standard. The TP is true positive. The FP is false positive. The FN is false negative. TP divided by the sum of TP and FN equals to the Recall. TP divided by the sum of TP and FP equals to the Precision. The VS-F1-score is the F1 score of each group standard compared with the expert group standard. Brackets denote the number of the same TP or FP spindles of nEGS-05 and nEGS-1.

Furthermore, we implemented four automated spindle detection methods that are commonly used in research literature. For the first automated method [38, 39], each data segment was band-pass filtered from 11 to 16 Hz, using a linear phase finite impulse response filter. The root mean square of the band-pass filtered signal was calculated with a time resolution of 250 milliseconds using a time window of 250 milliseconds. A spindle was detected if the root mean square exceeded its 95th percentile for 0.5 seconds.

The second method was a wavelet-based algorithm [11, 24]. Each data segment was performed the wavelet transformation using a complex Morlet wavelet, and then the moving average of the wavelet scale was calculated (a 100 milliseconds sliding window). Spindles were detected where the wavelet signal exceeded a threshold (4.5 times the moving average of the wavelet scale) for a minimum of 0.5 s.

We also implemented an automated method using spindle envelope to determine the start and the end of a spindle [10, 40]. Each data segment was band-pass filtered between 11 and 16 Hz, and the envelope was calculated by using the local maxima of the rectified signal. Then the lower and upper thresholds for spindle detection were determined as two and eight times the mean amplitude of signal, respectively. Spindles occurred when the mean amplitude of signal exceeded the upper threshold. The start and the end of the spindle were determined when the mean amplitude of signal was below the lower threshold.

Finally, the fourth automated method calculated spindle frequency boundaries and spindle detection amplitude criteria of slow and fast spindles using the average amplitude spectrum during N2 sleep [18, 21]. Then each data segment was band-pass filtered in slow and fast sleep spindle frequency boundaries. Slow spindles or fast spindles were detected when the amplitude criteria were exceeded.

For each automated method, we assigned a weight of 1 to detected spindle or 0 to no spindle part and generated the automatic standards (termed AS1, AS2, AS3 and AS4, respectively). Then, we compared the automatic standards with the EGS at varying overlap thresholds (T-overlap = 0:0.05:0.95) using the matching procedure. The best overlap threshold was determined using the above method (i.e., by selecting the first point at which the difference between the two adjacent F1 scores was more than 0.002). The F1 score of this point was called the VS-F1-score. The TP, FP, FN, recall, precision and VS-F1-score values of each automatic standard versus EGS at the best overlap threshold are listed in Table 2.

Group standards of each data segment

Electric potentials’ amplitudes are affected by the skull thickness: a thicker skull results in a greater electrical resistance, which reduces surface EEG amplitudes according to Ohm’s law [41, 42]. When the EEG amplitudes are reduced, the frequency (determined by counting the number of wave peaks per second) is difficult to calculate, as there are more low-amplitude burrs that are easily confused with wave peaks, and spindle amplitude is not significantly larger than that of the surrounding waves. Scorers might miss or be in doubt about such spindle. Therefore, the reduced EEG amplitudes would enhance the difficulty of spindle identification, suggesting that data’s attributes influence human spindle identification performance. To examine this effect, for each data segment, we independently established the expert group standard (EGS-each) from the expert scorers and the non-expert group standard with definite spindles (nEGS-1-each) from the non-expert scorers who identified this data (Fig 1C). Detailed descriptions of the generation of EGS-each and nEGS-1-each are shown in the methods of S1 File.

For each data segment, we obtained the best T-group, T-overlap, and F1-score-each¯ (the specific definition see below) of EGS-each and nEGS-1-each. The means of these parameters (mean30T-group, mean30T-overlap, and mean30F1-score-each¯) across 30 data segments are listed in S1 Table. We also calculated the TP, FP, FN, recall, precision and VS-F1-score-each values of nEGS-1-each versus EGS-each (see methods in S1 File), and the mean performance (mean30TP, mean30FP, mean30FN, mean30Recall, mean30Precision and mean30VS-F1-score-each) across 30 data segments are shown in S2 Table.

Here, we illustrated that 1) the F1-score-each¯ was the mean F1 score of the group standards (EGS-each and nEGS-1-each) of each data segment at the optimal thresholds; 2) the mean30T-group, mean30T-overlap and mean30F1-score-each¯ were the mean T-group, T-overlap and F1-score-each¯ of EGS-each or nEGS-1-each, respectively, across 30 data segments; 3) the VS-F1-score-each was the F1 score of the nEGS-1-each versus the EGS-each; 4) the mean30TP, mean30FP, mean30FN, mean30Recall, mean30Precision and mean30VS-F1-score-each were the mean TP, FP, FN, recall, precision and VS-F1-score-each of the nEGS-1-each versus the EGS-each across 30 data segments, respectively.

Finally, three Pearson’s correlation coefficients were calculated: 1) between the F1-score-each¯ values of EGS-each and nEGS-1-each; 2) between the F1-score-each¯ and VS-F1-score-each of nEGS-1-each; and 3) between the F1-score-each¯ of EGS-each and the VS-F1-score-each of nEGS-1-each. We also performed partial correlation analyses on these variables to assess the specific contribution of each index.

The minimum number of non-experts identification spindles

The validity of the method of spindle detection by non-experts was, to some extent, dependent on the number of non-experts assigned to each data segment. A small number of non-experts would be more likely to generate a poor performance. A large number of non-experts would require more time and money to collect their data. A specific procedure described as follows was established to determine the minimum number of non-experts, which considered both accuracy and efficiency (Fig 1D). For each data segment, n (n = 1,2,3,…,20) non-experts identified spindles. The n non-experts were randomly selected from N (range: 21–25) non-experts who identified the data segment. We generated nEGS-1 from the n non-experts, obtained the F1 score¯(n) (the mean F1 score of the nEGS-1 generated from n non-experts at the optimal thresholds), and calculated the VS-F1-score(n) by compared nEGS-1 with EGS. The VS-F1-score(n) was the F1 score of nEGS-1, which was generated from the results of n non-experts, compared with the EGS. This approach was repeated 500 times. For the ith (i = 1,2,3,…,500) time, we obtained the F1 score¯(n,i) and VS-F1-score(n,i) of the nEGS-1 which was generated from the n non-experts. The F1 score¯(n,i) was the mean F1 score of the nEGS-1 generated from n non-experts at the optimal thresholds when the approach was repeated for the ith time. At the same time, the VS-F1-score(n,i) was the F1 score of the nEGS-1, which generated from the results of n non-experts, compared with the EGS.

Then, we calculated the following variables:

mean500<VS-F1-score(n)> = 1500 × i=1500VS-F1-score(n,i), n = 1,2,3,,20 (7)
mean500<F1 score¯(n)> = 1500 × =1500F1 score¯(n,i), n = 1,2,3,…,20 (8)

We considered the average of the last three values of mean500<VS-F1-score(n)> as the stable value.

stable value = 13 × =1820mean500<VS-F1-score(n)> (9)

Finally, we calculated the difference between the mean500<VS-F1-score(n)> and the stable value (stable value—mean500<VS-F1-score(n)>). The minimum number n was determined when the difference was below the threshold of 0.05 for the first time. The selected n non-experts were not identical at each repetition; therefore, if CNn was less than 500, we only performed CNn repetitions. For n = 1 and 20, we only performed 21 repetitions with N = 21. Similarly, for n = 2 and 19, we only performed 210 repetitions.

Spindle characterization

After the group standards and automatic standards were established, several spindle characteristics including amplitude, frequency, duration and density were described. After the sleep data was band-pass filtered between 11 and 16 Hz, the frequency (Hz) was calculated by dividing the sampling frequency by the peak-to-peak mean distance within the spindle. The spindle amplitude (μV) was the maximum difference between adjacent local maxima and minima within one spindle. The spindle density was the number of spindles per minute (the total number of spindles divided the length of sleep data).

Results

Performance of four group standards

For stage N2, the EGS was established from expert scorers at the best T-group = 0.30 (Fig 2; Table 1). The F1 score of individual experts ranged from 0.82 to 0.88, and the F1 score¯ was 0.84 ± 0.02 (mean ± standard deviation, throughout) at the optimal thresholds (T-group = 0.30, T-overlap = 0.45). These results indicate good agreement between individual experts and EGS, as well as low variability between experts. The mean performance in the leave-one-out analysis (termed F1 score-leave¯, the mean F1 score of five experts or 168 non-experts in the leave-one-out analysis, see methods in S1 File) was 0.79 ± 0.03. Compared with the F1 score¯, the F1 score-leave¯ showed a slight decrease, which was consistent with the results of Warby et al. [36].

Fig 2. Generation of the expert group standard in stage N2.

Fig 2

Left: Three-dimensional plot of the mean F1 score of individual experts at varying group thresholds (T-group) and overlap thresholds (T-overlap). Top right corner: The mean F1 scores of experts at T-overlap = 0.45 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.45, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis, and the color clearly changes from dark red to orange (see left). This level of the expert group consensus was the expert group standard (EGS). Bottom right corner: A precision-recall plot of individual expert performance. Each square represents one expert. The square and the dot represent the performance with and without the leave-one-out method.

As shown in Fig 3 and Table 1, the nEGS-all from 168 non-expert scorers was obtained at the best T-group = 0.35 in stage N2 sleep data. The F1 score of individual non-experts ranged from 0.24 to 0.88, and the F1 score¯ was 0.72 ± 0.10 at the optimal thresholds (T-group = 0.35, T-overlap = 0.30), which indicate good agreement between individual non-experts and nEGS-all, as well as low variability between non-experts. Compared with the F1 score¯, the F1 score-leave¯ (0.70 ± 0.10) showed a slight decrease.

Fig 3. Generation of the non-expert group standard with all spindles in stage N2.

Fig 3

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when both definite spindles and indefinite spindles are considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.35. The shading indicates the standard deviation. At T-group = 0.35 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with all spindles (nEGS-all).

In addition, the nEGS-1 and nEGS-05 of stage N2 (Table 1; S1 and S2 Figs) were established. These four group standards of stage N3 were also obtained (Table 1; S3S6 Figs). Similar results were found in stages N2 and N3: 1) individual experts’ performance was high; 2) individual experts’ results were consistent with EGS; and 3) F1 score-leave¯ was slightly lower than F1 score¯. For both stage N2 and N3 sleep data, the F1 score¯ of nEGS-all was the highest among those of the three non-expert group standards.

To compare the performance of the three non-expert group standards (nEGS-all, nEGS-1 and nEGS-05), we calculated the TP, FP, FN, recall, precision and VS-F1-score by compared them with EGS (Table 2). The results of stage N2 showed that the TP, recall, precision and VS-F1-score of nEGS-1 were close to those of nEGS-all and much higher than those of nEGS-05. Moreover, 138 of 151 TP spindles identified by nEGS-05 were included in the 529 TP spindles identified by nEGS-1. For stage N3, the precision and VS-F1-score of nEGS-1 were slightly higher than those of nEGS-all and much higher than those of nEGS-05. We also found that 23 of the 28 TP spindles identified by nEGS-05 were included in the 135 TP spindles identified by nEGS-1. These findings suggest that nEGS-05 contributes few TP spindles but more FP spindles and that the VS-F1-score of nEGS-1 was slightly higher than that of nEGS-all.

We also measured the performance of the four automated spindle detection methods. For stage N2, the VS-F1-score of AS1 versus EGS was 0.62 at T-overlap = 0.30. However, for stage N3, the VS-F1-score of AS1 was only 0.27 at T-overlap = 0.40, with higher recall but lower precision (Table 2). At T-overlap = 0.35, the VS-F1-scores of AS2 were 0.64 and 0.35 in stages N2 and N3, respectively, the latter of which showed more FP spindles. At T-overlap = 0.30, the VS-F1-scores of AS3 versus EGS were 0.44 and 0.38 in stages N2 and N3, respectively, the latter of which had fewer TP spindles. At T-overlap = 0.25, the VS-F1-scores of AS4 were 0.25 and only 0.08 in stages N2 and N3, respectively, with a large number of FP spindles present. As shown in Table 2, the VS-F1-score of nEGS-1 was higher than those of all automatic methods tested in both stages N2 and N3. The lower VS-F1-scores of the automatic standards in stage N3 sleep data indicate that these automated methods are not suitable for stage N3 sleep data. In summary, compared with EGS, the performance of nEGS-1 was the highest among the three non-expert group standards and also higher than that of the four automatic methods we tested. These results suggest that the nEGS-1, which only uses the weighted value of 1 for the analysis, is suitable to be the final non-expert group standard.

On the other hand, we explored the spindle characteristics: spindle amplitude (μV), spindle frequency (Hz), spindle duration (s) and spindle density. For stage N2 sleep data, the spindles identified by nEGS-all and nEGS-1 differed from those identified by EGS (Table 3) in terms of spindle amplitude (P < 10−5), duration (P < 0.05) and density (P < 10−8), but not mean frequency (P > 0.10). For stage N3 sleep data, they differed from those identified by EGS in terms of spindle amplitude (P < 10−4) and density (P < 10−5), but not mean frequency (P > 0.05) or duration (P > 0.10). For both stages N2 and N3, spindles identified by nEGS-05 differed from those identified by EGS in terms of spindle amplitude (P < 10−8), and duration (P < 0.05), but not mean frequency (P > 0.05) or density (P > 0.10). Spindles identified by AS1 were smaller than those identified by EGS in terms of spindle amplitude (P < 0.05), frequency (P < 0.05) and duration (P < 10−3), but were larger in terms of spindle density (P < 10−8), as for both stage N2 and N3 sleep data. The duration of spindles identified by AS2 was less than that of those identified by EGS in stage N2 sleep data (P < 10−6), but there was no difference in stage N3 sleep data (P > 0.10). Spindles identified by AS3 and AS4 differed from those identified by EGS in terms of amplitude (P < 10−4), duration (P < 10−10) and density (P < 0.05), but not mean frequency (P > 0.10), as for both stage N2 and N3 sleep data. Despite these differences, the spindle characteristics of EGS and nEGS-1 were similar (Figs 4 and 5), further verifying the conclusion that the nEGS-1, which is independent of expert, is suited as the final non-expert group standard.

Table 3. Spindle characteristics for automatically and manually detected spindles by groups of experts and non-experts.

Stage Standard Amplitude(μV) Frequency(Hz) Duration(s) Density
N2 EGS 48.72 ± 8.81 13.31 ± 0.49 0.83 ± 0.10 1.85 ± 0.10
nEGS-all 45.14 ± 9.59a 13.29 ± 0.49 0.80 ± 0.07a 2.94 ± 0.99a
nEGS-1 46.06 ± 9.75ab 13.29 ± 0.50 0.79 ± 0.07a 2.65 ± 0.99ab
nEGS-05 39.27 ± 9.52abc 13.26 ± 0.52 0.68 ± 0.06abc 1.51 ± 0.66bc
AS1 46.21 ± 11.60ad 13.19 ± 0.44abc 0.66 ± 0.05abc 3.27 ± 0.33acd
AS2 47.68 ± 13.00bcde 13.38 ± 0.29bde 0.74 ± 0.05abcde 2.18 ± 0.33bcde
AS3 58.89 ± 13.42abcdef 13.26 ± 0.41f 1.25 ± 0.19abcdef 0.86 ± 0.49abcdef
AS4 31.03 ± 8.37abcdefg 13.37 ± 0.37bcdeg 1.11 ± 0.06abcdefg 9.61 ± 1.15abcdefg
N3 EGS 47.78 ± 11.04 13.37 ± 0.51 0.69 ± 0.11 0.51 ± 0.45
nEGS-all 41.48 ± 11.08a 13.24 ± 0.47 0.69 ± 0.06 1.23 ± 0.87a
nEGS-1 43.59 ± 11.00ab 13.25 ± 0.46 0.69 ± 0.06 0.83 ± 0.69ab
nEGS-05 37.29 ± 9.64abc 13.20 ± 0.54 0.64 ± 0.06abc 0.57 ± 0.41bc
AS1 38.87 ± 11.36abcd 13.23 ± 0.41a 0.60 ± 0.04abcd 3.06 ± 0.34abcd
AS2 40.11 ± 10.94acde 13.37 ± 0.30be 0.68 ± 0.04de 1.92 ± 0.42abcde
AS3 54.95 ± 16.02abcdef 13.36 ± 0.57e 1.10 ± 0.19abcdef 0.31 ± 0.21abcdef
AS4 27.09 ± 8.11abcdefg 13.29 ± 0.36 1.11 ± 0.07abcdef 9.91 ± 1.37abcdefg

Data are presented as mean ± standard deviation unless otherwise indicated. The EGS was the expert group standard. The nEGS-all was the non-expert group standard with all spindles when both the weighted value of 1 and 0.5 were considered. The nEGS-1 was the non-expert group standard with definite spindles when the weighted value of 1 was only considered. The nEGS-05 was the non-expert group standard with indefinite spindles when the weighted value of 0.5 was only considered. The AS1, AS2, AS3 and AS4 were the automatic standards obtained by the first, second, third and fourth automated method, respectively.

aIndicates significant difference from EGS.

bIndicates significant difference from nEGS-all.

cIndicates significant difference from nEGS-1.

dIndicates significant difference from nEGS-05.

eIndicates significant difference from AS1.

fIndicates significant difference from AS2.

gIndicates significant difference from AS3.

Fig 4. Spindle characteristics for each standard of stage N2.

Fig 4

(A) Spindle amplitude, (B) frequency, (C) duration and (D) density. Each dot is one subject (n = 30). The mean and standard deviation of each standard are indicated by orange horizontal and vertical lines. The EGS was the expert group standard. The nEGS-all was the non-expert group standard with all spindles. The nEGS-1 was the non-expert group standard with definite spindles. The nEGS-05 was the non-expert group standard with indefinite spindles. The AS1, AS2, AS3 and AS4 were the automatic standards obtained by the first, second, third and fourth automated method, respectively.

Fig 5. Spindle characteristics for eight standards of stage N3.

Fig 5

(A) Spindle amplitude, (B) frequency, (C) duration and (D) density. The eight standards are EGS (expert group standard), nEGS-all (non-expert group standard with all spindles), nEGS-1 (non-expert group standard with definite spindles), nEGS-05 (non-expert group standard with indefinite spindles), AS1, AS2, AS3 and AS4 (automatic standards obtained by the first, second, third and fourth automated method, respectively). Each dot is one subject (n = 30). The mean and standard deviation of each standard are indicated by orange horizontal and vertical lines.

Performance of group standards of each data segment

For each data segment, we established the EGS-each and nEGS-1-each, and obtained the best T-group, T-overlap and F1-score-each¯. A comparison of the results in Table 1 with those in S1 Table shows that, for stage N2, the mean30F1-score-each¯ of EGS-each was 0.83. That value was extremely close to the F1 score¯ of EGS. The mean30F1-score-each¯ of nEGS-1-each was also close to the F1 score¯ of nEGS-1. Similar findings were obtained in stage N3. We also found that for stage N2 sleep data, the VS-F1-score of EGS-each compared with EGS was 0.97, and the VS-F1-score-nEGS-1 (the F1 score of nEGS-1-each versus nEGS-1) was 0.96. Likewise, for stage N3, the VS-F1-score of EGS-each was 0.93, and the VS-F1-score-nEGS-1 of nEGS-1-each was 0.90. These results showed that the performance of group standards generated from each data segment was highly consistent with that generated from all data. These findings indicate that the method of generating group standards is not affected by dataset length.

A comparison of the results in stage N2 in Table 2 with those in S2 Table shows that, the mean30VS-F1-score-each of nEGS-1-each was 0.77 ± 0.15 (i.e., close to the VS-F1-score of nEGS-1). For stage N3, similar results were obtained; the mean30VS-F1-score-each of nEGS-1-each was 0.63 ± 0.14, and the VS-F1-score of nEGS-1 was 0.68. These results were expected because of the high consistency between nEGS-1-each and nEGS-1, and they further verified the conclusion that dataset length does not influence the validity of the method for generating group standards.

For stage N2, Pearson’s correlation coefficients showed positive relationships between the F1-score-each¯ values of EGS-each and nEGS-1-each (r = 0.56, P < 0.01), between the F1-score-each¯ of EGS-each and the VS-F1-score-each of nEGS-1-each (r = 0.61, P < 0.001; Fig 6), and between the F1-score-each¯ and VS-F1-score-each of nEGS-1-each (r = 0.53, P < 0.01). However, a partial correlation analysis revealed a statistically significant relationship only between the F1-score-each¯ of EGS-each and the VS-F1-score-each of nEGS-1-each (r = 0.44, P < 0.05; Fig 6). For stage N3, Pearson’s correlation analysis and partial correlation analysis found no correlations among these scores. These results suggest that the data segment with higher performance of experts also shows higher performance of non-experts only in stage N2.

Fig 6. Correlation between F1-score-each¯ of EGS-each and VS-F1-score-each of nEGS-1-each in stage N2 sleep data.

Fig 6

Note that after remove one outlier, the F1-score-each¯ of EGS-each was still significantly correlated with the VS-F1-score-each of nEGS-1-each (r = 0.67, P < 10−4). The EGS-each is the expert group standard of each data segment. The nEGS-1-each is the non-expert group standard with definite spindles of each data segment. The F1-score-each¯ was the mean F1 score of EGS-each of each data segment at optimal thresholds. The VS-F1-score-each was the F1 score of nEGS-1-each versus EGS-each.

The minimum number of non-experts identification spindles

Because the nEGS-1 had been identified as the final non-expert group standard according to the above results, we only considered the performance of nEGS-1 when determining the minimum number of non-experts for reliable spindle identification. Fig 7 illustrates the performance of nEGS-1 with different numbers of non-experts. For stage N2, the mean performance of nEGS-1 versus EGS over 500 repetitions (i.e., mean500<VS-F1-score(n)>, n = 1,2,3,…,20) tended to stabilize with an increased number of non-experts. The stable value was 0.79 by averaging the last three values of mean500<VS-F1-score(n)>. The difference between the stable value and mean500<VS-F1-score(n)> of nEGS-1 was less than 0.05 when the number of non-experts ranged from 6 to 20 (Fig 7A). Thus, for stage N2 sleep data, at least six non-experts seem to be required to identify spindles. For stage N3, the stable value was 0.64, and the difference value was less than 0.05 when the number of non-experts ranged from 9 to 20 (Fig 7B). Thus, we recommend that at least nine non-experts should be employed for spindle identification in each stage N3 sleep data segment.

Fig 7. The performance of nEGS-1 with different numbers of non-experts identifying one sleep data.

Fig 7

(A) stage N2, (B) stage N3. n is the number of non-experts (n = 1,2,3,…,20). The red square indicates the mean performance of nEGS-1 versus EGS over 500 repetitions (mean500<VS-F1-score(n)>). The shading indicates the standard deviation. The purple circle indicates the mean F1 score of non-experts in nEGS-1 at the optimal thresholds over 500 repetitions (mean500<F1 score¯(n)>). The blue diamond (right ordinate) indicates the difference between the mean500<VS-F1-score(n)> of nEGS-1 and the stable value of the mean performance of the last three values in the red square line (stable value -mean500<VS-F1-score(n)>). The nEGS-1 is the non-expert group standard with definite spindles. The EGS is the expert group standard.

To check the robustness of these results, we also determined the minimum number of non-experts using the k-means clustering method. We divided 8462 F1 scores into 2 clusters (S5 Table). For stages N2 and N3, the centroids of Cluster 1 were 0.69 and 0.52, respectively, with low performance. The centroids of Cluster 2 were 0.78 and 0.63 in stages N2 and N3, respectively, with high performance. S5 Table shows that for stage N2, when 6–20 non-experts identified spindles, at least 80% of the F1 scores in each condition were classified into Cluster 2, with high performance. For stage N3, more than 80% of F1 scores in each condition were classified into Cluster 2 when 10–20 non-experts identified spindles. These results are consistent with the minimum numbers of non-experts which were found by statistical methods.

We also determined the minimum number of experts using methods similar to those for non-experts. For each data segment, n (n = 1,2,3,4) experts who were randomly selected from a pool of 5 experts identified spindles. We generated the expert group standard from these n experts, and calculated the VS-F1-score(n) by compared with the EGS. This approach was repeated C5n times. The mean VS-F1-score(n) over C5n repetitions is presented in S6 Table, which shows a maximal rate of increase with 3 experts identifying sleep spindles in both stages N2 and N3. Moreover, the performance of 3 experts was acceptable (0.92 and 0.84 for N2 and N3, respectively). Thus, we recommend that for both stages N2 and N3 at least 3 experts should be employed to identify spindles.

Discussion

The purpose of our study was to explore an approach for accurate and efficient detection of sleep spindles by a group of non-experts in a crowdsourcing scheme. Although Warby et al. [36] indicated that spindle identification by non-experts is viable as a spindle detection method, Warby’s process of establishing a non-expert group consensus was based on EGS, which hindered the application of this spindle detection method. To overcome this limitation, first, we described a method of optimizing the thresholds of the non-expert group consensus which was based on the data from non-experts themselves. Using this method, we established three non-expert group standards (nEGS-all, nEGS-1 and nEGS-05) from non-experts and generated the EGS from experts. Compared with the EGS, the performance of nEGS-1 was the highest among the three non-expert group standards, and also higher than the four automatic methods we tested; therefore, we identified the nEGS-1 as the final non-expert group standard. These findings suggest that this approach to generating non-expert group standard, independent of expert, is suitable. It is also suggested that its performance would be higher when definite spindles are only considered. Second, data segments with better performance by experts also showed better performance by non-experts in stage N2. Better scorer performance may reflect the presence of more obvious, easily identifiable attributes (e.g., larger EEG amplitudes or less background activity). These results suggest that spindle identification is affected by intrinsic data properties that are related to the difficulty level of spindle identification, especially for stage N2 sleep data. Third, the performance of nEGS-1 compared with the EGS was acceptable when there were six and nine non-experts identifying stage N2 and N3 sleep data, respectively.

Non-expert group standards: Independent of EGS

The non-expert group consensus in the study by Warby et al. [36] and Ray et al. [37] was obtained by maximizing the non-expert group’s performance in comparison with EGS. Therefore, for practical application of this method, establishment of a non-expert group standard that is independent of experts is necessary. To our knowledge, few studies that establish the non-expert group standard independent of experts have been reported.

In the present study, we generated the nEGS-all with a modified version of Warby’s method. To generate the non-expert group standard, we determined the optimal T-group and T-overlap. The optimal T-group was determined by maximizing the mean F1 score of all individuals in the non-expert group rather than maximizing the F1 score of the non-expert group consensus versus EGS [36, 37]. Each group standard had its own optimal T-overlap, instead of a constant threshold; thus, the non-expert group standard established by our procedure is generated by using only data from non-experts themselves (i.e., independent of experts).

Furthermore, we distinguished between the confidence values of 1 and 0.5, which was not done in previous studies, and generated nEGS-1 and nEGS-05 using the same modified method. The results showed that for both N2 and N3 sleep data the mean F1 score and the F1 score range of nEGS-1 were close to those of nEGS-all (Table 1). However, the F1 score¯ of nEGS-05 was much lower than that of both nEGS-all and nEGS-1, and the F1 score range showed large differences between nEGS-05 and the other two non-expert group standards. These findings suggest that the consistency of the performance of individual non-experts in nEGS-1 was almost as high as that in nEGS-all, and much higher than that in nEGS-05.

The three non-expert group standards were also compared with the EGS. We found that for both N2 and N3 sleep data the VS-F1-score of nEGS-1 was slightly higher than that of nEGS-all, and much higher than that of nEGS-05 (Table 2). These results suggest that nEGS-1 was the most consistent with EGS. For stage N2, 138 of 151 TP spindles identified by nEGS-05 were among the 529 TP spindles identified by nEGS-1, but only 84 of 303 FP spindles identified by nEGS-05 were among the 265 FP spindles identified by nEGS-1. Similar results were obtained for stage N3: a majority of TP spindles identified by nEGS-05 were also identified by nEGS-1, but only a small proportion of the FP spindles identified by nEGS-05 were also identified by nEGS-1. These findings indicate that nEGS-05 contributes few TP spindles but more FP spindles in both stage N2 and N3.

In summary, 1) individual non-experts’ mean performance in nEGS-1 was almost as good as that in nEGS-all, and was much higher than that in nEGS-05; 2) compared with the EGS, the performance of nEGS-1 was the highest among the three non-expert group standards; 3) the nEGS-05 contributed few TP spindles but more FP spindles. These findings suggest that the weight of 1 should be only considered to obtain the non-expert group standards.

The spindle density in nEGS-1 of stage N2 sleep data ranged from 0.70 to 4.80 n/min, and the mean spindle density was 2.65 ± 0.99 n/min, which are in the normal range [43, 44]. All spindles in nEGS-1 were between 0.5 and 1 s in duration, and the mean duration was 0.79 ± 0.07 s conforming to AASM guidelines [1]. The mean frequency of spindles was 13.29 ± 0.50 Hz, and the mean amplitude of spindles was 46.06 ± 9.75μV, which conform to the extant literature [45, 46]. These results suggest that nEGS-1 has good external validity with respect to the extant literature in terms of spindle characteristics.

Experts’ performance has been previously discussed. Wendt et al. [47] found that four or more experts were needed to generate an ‘almost perfectly’ reliable sleep spindle dataset. In our study, we recruited five experts. Additionally, for stage N2, the F1 score¯ of the five experts was consistently high and showed less variability (Table 1). S3 Table shows that the pair-F1-score (the F1 score of inter-expert) ranged from 0.69 to 0.78 among the experts (see methods in S1 File), and the pair-F1-score¯ (the mean pair-F1-score among the experts) was 0.73 ± 0.03. Three studies using 2–3 experts and healthy subjects (aged 21–59 years) found average inter-expert agreements of 86% [48], 70 ± 8% [23] and 81% [30]. However, it is unclear what measurements of agreement are reported. One study using patients with various sleep pathologies of age 31–54 years found considerably lower inter-expert agreement of 46% in sleep spindle scoring [31]. Moreover, Wendt et al. [47] found that the average inter-expert F1 score agreement was 61 ± 6% (ranging from 46% to 74%). Our estimate of 0.73 ± 0.03 inter-expert agreement falls in the middle of this range and our range of the pair-F1-score of 0.69–0.78 fits well with previously reported numbers of agreement between one expert pair. For stage N3, the pair-F1-score ranged from 0.48 to 0.68, and the pair-F1-score¯ was 0.58 ± 0.07. These findings suggest that our expert group standard may produce reliable sleep spindle detection results, especially for stage N2 sleep data. A non-expert group consensus (also called non-expert group standard dependent of expert) was established in stage N2 and N3 sleep data similar to how one was established by Warby et al. [36] (S1 File). For stage N2, the VS-F1-score of the non-expert group standard dependent of expert versus EGS was higher than those of the four automatic methods and slightly lower than the F1 score¯ of EGS; these findings are consistent with those of Warby et al. [36].

The mean performance of EGS and nEGS-1

The F1 score¯ of EGS and nEGS-1, as well as the VS-F1-scores of nEGS-1 and four automatic methods, were calculated at varying overlap thresholds (S7 Fig). For both stage N2 and N3, the F1 score¯ of EGS was higher than that of nEGS-1, indicating that experts are more likely than non-experts to reach a consensus on spindle scoring. We also found that the F1 score¯ of EGS and nEGS-1 were higher in stage N2 than N3. One possible reason is that stage N3 sleep spindles are usually superimposed on slow waves, which increases the difficulty of human spindle identification. Furthermore, the stage N2 F1 score¯ of EGS in the present study was higher than that in Warby’s study (0.84 ± 0.02 vs 0.75 ± 0.06 in our study and Warby et al., respectively). This discrepancy may be caused by the age difference of the subjects who provided the EEG data set. The present study’s EEG data set was acquired from young subjects, who have relatively large spindle amplitude and stable shape. However, in the study by Warby et al., the spindle amplitude and duration of the middle-and older-aged subjects were on the decline [39, 49], which may have impaired spindle identification performance. Further, the number of recruited experts in our study was much lower than that by Warby et al. (5 vs 24 in our study and Warby et al., respectively). The possibility of achieving high consistency among experts was increased with the reduction in their number. These findings suggest that the performance of experts and non-experts in the present work is affected by intrinsic features of the EEG data. More discussion of this effect is presented below.

The performance of nEGS-1 and automated methods versus EGS

S7 Fig shows that the VS-F1-score of nEGS-1 was higher than those of the four automatic methods in both stage N2 and N3 sleep data. These results indicate that a large group of non-experts may be more useful than several automated spindle algorithms for spindle detection. The VS-F1-scores of the four automatic methods were much lower in stage N3 than N2 sleep data. Additionally, the difference between the VS-F1-score of nEGS-1 and those of the four automatic standards (the VS-F1-score of nEGS-1 minus that of the four automatic standards, except the AS3) was greater in stage N3 than N2. These results suggest that non-experts were superior to these automated spindle algorithms at detecting sleep spindles in stage N3 sleep data. For stage N2, we also found that the VS-F1-scores of the four automatic methods in our study were higher than those in Warby et al. (except the fourth automatic method). This discrepancy may also have resulted from the EEG data set. We collected the EEG data from younger subjects while Warby from older subjects. This finding suggests that age-related decline in spindle amplitude may impair the performance of these amplitude threshold-based algorithms.

Performance of scorers manual spindle scoring: Data dependency

Our results indicate that the performance of spindle identification in stage N2 was superior to that in stage N3, with the latter having a lower mean F1 score and larger variance (Tables 1 and 2). One possible explanation for this observation is that the sleep data of stage N3 are characterized by slow waves, which increases the difficulty of human spindle identification. We also found a wide range among the F1 scores of 168 non-experts in nEGS-1 (Table 1), which may have resulted not only from the skill level of the non-experts but also from the inherent nature of the data. The differences caused by the skill level of the non-experts could be overcome by averaging, whereas the differences arising from intrinsic EEG data features (e.g., thicker skull thickness resulting in lower EEG amplitude) may be more difficult to solve.

Thus, we examined the stability of nEGS-1’s performance across different data segments by compared with that of EGS. To address this question, we established EGS-each and nEGS-1-each. Our results showed that for stage N2, data with greater consistency between individual experts in EGS-each had a higher performance of nEGS-1-each (Fig 6). These findings suggest that for stage N2 sleep, easily identifiable visual data would yield better performance by both experts and non-experts.

However, our results from stage N3 sleep data did not support this correlation between experts and non-experts. This discrepancy may be caused by the number of sleep spindles identified in stage N3 sleep data which was significantly lower than that in stage N2 sleep data [50], and by the greater difficulty of sleep spindle identification in stage N3 sleep data which is characterized by slow waves. For these reasons, the present study is applicable mainly for the N2 stage and we should cautious when applying this spindle detection method to stage N3 sleep data. Further research is expected to verify our findings in stage N3. A high-pass filter would reject slow waves and improve correct spindle detection in stage N3.

The minimum number of non-experts identification spindles

Samples in sleep research generally comprise approximately 20–30 subjects per group. The mean duration of stage N2 for each subject was approximately 3 hours for the entire night, and the mean duration of stage N3 was 90 min [51]. In total, there were 90 and 45 hours of stage N2 and N3 data, respectively, for 30 subjects. In our study, after studying and practicing, one non-expert took an average of approximately 20 min to identify sleep spindles in per 10-min data segment. Each data segment was identified by at least 20 non-experts. Each day, 15 non-experts identified sleep spindles in our special laboratory. If each non-expert finished six segments of data (60 min of data in total) daily, we would need 540 non-experts to spend 120 days to collect sleep spindle data from 90 hours of stage N2 data, and we would need 270 non-experts to spend 60 days identifying 45 hours of stage N3 data from 30 subjects. We determined that at least six and nine non-experts are required to identify one stage N2 and N3 sleep data segment, respectively (Fig 7). Thus, we would only need 162 non-experts to spend 36 days to identify spindles in 90 hours of stage N2 data and 122 non-experts to spend 27 days to finish 45 hours of stage N3 data, greatly reducing the time and economic costs. For the computational resources, the time complexity was O(m*n), where m was the number of non-experts identifying each data segment, and n was the number of data segments. These results suggest that this method is efficient and worthy of being generalized for both stage N2 and stage N3 sleep data.

Although the number of non-experts needed to identify spindles and the amount of time needed to collect the non-expert data were acceptable, we would need more non-experts to spend more time with the overall rapid growth in biological and clinical research on sleep spindles. An internet interface for spindle identification that is not restricted to non-experts in laboratories can be developed. Such an internet interface could remotely collect non-expert data so that countless non-experts could perform their tasks simultaneously. Therefore, an internet interface might collect sleep spindle data sets from non-experts more rapidly.

Limitations

Several limitations of this work should be discussed. First, although we extracted the EEG data set from 30 subjects, only 10 min of data were selected from each subject. The small quantity of data from each subject may have caused some of their characteristics (e.g., spindle density) to be represented less accurately. Second, topographical differences between sleep spindles have been shown [52]. Spindle characteristics and morphology differ between channels, leading to variations in human performance. We only analyzed the C3-M2 channel; the performance of this method in different channels is unclear. Third, the recall of nEGS-1 was relatively high in both stages N2 and N3. However, in both cases, the precision was low. These findings indicate that the non-experts seem to identify spindles easily and erroneously, with a large number of false positive spindles. Indeed, a perfect scorer would fall in the top right corner of a precision-recall plot. Some scorers emphasize high precision at the expense of recall, with few true positives and more false negatives (for example, AS3) and vice versa (for example, AS4, see Table 2). To balance these two measures, we applied the F1 score, which is the harmonic mean of precision and recall. Table 2 shows that the VS-F1-score of nEGS-1 is better than those of automatic methods, with more true positives and fewer false negatives. To summarize, although nEGS-1 present many false positives, their precision was acceptable under these conditions. Fourth, our work was performed among healthy young subjects. It seems to be difficult to prove that our method is useful in clinical data sets or in older subjects. Actually, before the non-experts would start identifying spindles in clinical data sets and in older subjects, they would have to learn how to accurately identify spindles in these unhealthy and older subjects, and have performed a training session. In other words, for different types of data sets, non-experts would be instructed to read the corresponding manual on spindle identification. Thus, we think that our method would be applied to clinical data sets and older subjects. Further studies are expected to test these hypotheses.

Conclusions

This study established an approach to facilitate accurate and efficient detection of sleep spindles by non-experts. First, a certain number of non-experts should be recruited to identify sleep spindles. We recommend that at least six or nine non-experts score stage N2 and N3 sleep data, respectively. Each non-expert studied a manual on spindle identification and was trained by completing some exercises. Second, although the non-experts were required to distinguish between definite sleep spindles and indefinite sleep spindles, only definite sleep spindles were used to obtain the non-expert group standard. The performance of this method was slightly lower than that of the experts but higher than that of several commonly used automated methods. We also found that easily identifiable data showed higher performance by non-experts. Therefore, crowdsourcing with non-experts using the above approach seems to be a viable spindle detection method in terms of both efficiency and accuracy. Our study examined the practical feasibility of applying this method, and it may provide a useful approach for sleep spindle detection.

Supporting information

S1 Fig. Generation of the non-expert group standard with definite spindles in stage N2.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when definite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.35. The shading indicates the standard deviation. At T-group = 0.35 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with definite spindles (nEGS-1).

(TIF)

S2 Fig. Generation of the non-expert group standard with indefinite spindles in stage N2.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when indefinite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.05. The shading indicates the standard deviation. At T-group = 0.05 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with indefinite spindles (nEGS-05). The T-group ranges from 0 to 0.20 because the mean F1 score is not a number when the T-group ranges from 0.25 to 0.95.

(TIF)

S3 Fig. Generation of the expert group standard in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual experts at varying group thresholds (T-group) and overlap thresholds (T-overlap). Top right corner: The mean F1 scores of experts at T-overlap = 0.40 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.40, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis, and the color clearly changes from dark red to orange (see left). This level of the expert group consensus was the expert group standard (EGS). Bottom right corner: A precision-recall plot of individual expert performance. Each square represents one expert. The square and the dot represent the performance with and without the leave-one-out method.

(TIF)

S4 Fig. Generation of the non-expert group standard with all spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when both definite spindles and indefinite spindles are considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with all spindles (nEGS-all).

(TIF)

S5 Fig. Generation of the non-expert group standard with definite spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when definite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.25 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.25, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with definite spindles (nEGS-1).

(TIF)

S6 Fig. Generation of the non-expert group standard with indefinite spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when indefinite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.35 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.05. The shading indicates the standard deviation. At T-group = 0.05 and T-overlap = 0.35, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with indefinite spindles (nEGS-05). The T-group ranges from 0 to 0.15 because the mean F1 score is not a number when the T-group ranges from 0.20 to 0.95.

(TIF)

S7 Fig. The F1 score¯ of EGS and nEGS-1, as well as the VS-F1-score of automatic methods and nEGS-1 versus EGS at different overlap thresholds in stages N2 (A) and N3 (B).

The EGS is the expert group standard. The nEGS-1 is the non-expert group standard when definite spindles are only considered. The AS1, AS2, AS3 and AS4 are the automatic standards obtained by the first, second, third and fourth automated method, respectively. The F1 score¯ is the mean F1 score of EGS and nEGS-1 at optimal thresholds. The VS-F1-score is the F1 score of nEGS-1, AS1, AS2, AS3 and AS4 compared with EGS using the matching procedure at an overlap threshold. The nEGS-1/EGS denotes a comparison of nEGS-1 with EGS.

(TIF)

S8 Fig. Correlation between the F1-score-each¯ of EGS-each and the mean500F1-score-each¯(6) of nEGS-1-6-each (A), and the mean500<VS-F1-score-each(6)> of nEGS-1-6-each compared with EGS-each in stage N2 sleep data (B).

Note that after remove three outliers, the F1-score-each¯ of EGS-each was still significant correlated with the mean500F1-score-each¯(6) of nEGS-1-6-each (r = 0.61, P < 10–3). After remove two outliers, the F1-score-each¯ of EGS-each was still significant correlated with the mean500<VS-F1-score-each(6)> of nEGS-1-6-each (r = 0.58, P < 0.001). The EGS-each is the expert group standard of each data segment. The nEGS-1-6-each is the non-expert group standard with definite spindles of each stage N2 sleep data segment from six non-experts. The F1-score-each¯ was the mean F1 score of EGS-each of each data segment at optimal thresholds. The mean500<F1-score-each¯(6)> is the mean F1 score of nEGS-1-6-each of each stage N2 data segment at the optimal thresholds across 500 repetitions. The mean500<VS-F1-score-each(6)> is the mean F1 score of nEGS-1-6-each compared with EGS-each across 500 repetitions.

(TIF)

S9 Fig. Three-dimensional plots of the mean F1 score of nEGS-1-6 in stage N2 (A) and that of nEGS-1-9 in stage N3 (B) across 500 repetitions at varying group thresholds and overlap thresholds.

The nEGS-1-6 is the non-expert group standard with definite spindles from six non-experts identifying spindles in one data segment of stage N2. The nEGS-1-9 is the non-expert group standard with definite spindles from nine non-experts identifying spindles in one data segment of stage N3.

(TIF)

S1 File. The methods and results in supporting information.

(DOCX)

S2 File. The relevant data within this study.

This MAT-file includes two structs: N2 and N3, representing stage N2 and N3. Each struct contains four structs: EGS, nEGS, nEGS-1 and nEGS-05. The EGS struct is composed of the F1_score (a 20×20×5 matrix, the performance of five experts at varying T-groups and T-overlaps) and the standard (a 300,000×30 matrix, the spindle detection results of 30 data segments by experts group). Similarly, the nEGS, nEGS-1 and nEGS-05 structs consist of the F1_score (a 20×20×168 matrix, the performance of 168 non-experts at varying T-groups and T-overlaps) and the standard (a 300,000×30 matrix, the spindle detection results of 30 data segments by non-experts group). These three structs are generated when both definite and indefinite spindles, only considering definite spindles and indefinite spindles are considered, respectively.

(MAT)

S1 Table. Parameters of four group standards of each data segment in stage N2 and N3 sleep data.

(DOCX)

S2 Table. The performance of non-expert group standards of each data segment compared against the expert group standard of each data segment in stage N2 and N3 sleep data.

(DOCX)

S3 Table. Pairwise comparisons of performance between experts in stage N2 and N3 sleep data.

(DOCX)

S4 Table. Definitions of some terms in this study.

(DOCX)

S5 Table. The results of the classification using the k-means clustering method.

(DOCX)

S6 Table. The performance of experts with different number.

(DOCX)

Acknowledgments

We thank the experts and non-experts whose participation enabled this work.

Data Availability

All relevant data are within the paper and its Supporting Information files.

Funding Statement

This study was financially supported by National Basic Research Program of China under Grant Nos. 2015CB856403, 2014CB543203 and 2012CB518501; the National Natural Science Foundation of China under Grant Nos. 81271644, 81471811, 81471738 and 61401346; and the Fundamental Research Funds for the Central Universities. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Medicine AAoS, Iber C. The AASM manual for the scoring of sleep and associated events: rules, terminology and technical specifications: American Academy of Sleep Medicine; 2007.
  • 2.Fogel S, Nader R, Cote K, Smith C. Sleep spindles and learning potential. Behavioral neuroscience. 2007;121(1):1 10.1037/0735-7044.121.1.1 [DOI] [PubMed] [Google Scholar]
  • 3.Ujma PP, Konrad BN, Genzel L, Bleifuss A, Simor P, Pótári A, et al. Sleep spindles and intelligence: evidence for a sexual dimorphism. The Journal of Neuroscience. 2014;34(49):16358–68. 10.1523/JNEUROSCI.1857-14.2014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Morin A, Doyon J, Dostie V, Barakat M, Tahar AH, Korman M, et al. Motor sequence learning increases sleep spindles and fast frequencies in post-training sleep. Sleep. 2008;31(8):1149 [PMC free article] [PubMed] [Google Scholar]
  • 5.Walker MP. The role of sleep in cognition and emotion. Annals of the New York Academy of Sciences. 2009;1156(1):168–97. [DOI] [PubMed] [Google Scholar]
  • 6.Fogel SM, Smith CT. The function of the sleep spindle: a physiological index of intelligence and a mechanism for sleep-dependent memory consolidation. Neuroscience & Biobehavioral Reviews. 2011;35(5):1154–65. [DOI] [PubMed] [Google Scholar]
  • 7.Diekelmann S, Born J. The memory function of sleep. Nature Reviews Neuroscience. 2010;11(2):114–26. 10.1038/nrn2762 [DOI] [PubMed] [Google Scholar]
  • 8.Christensen JA, Kempfner J, Zoetmulder M, Leonthin HL, Arvastson L, Christensen SR, et al. Decreased sleep spindle density in patients with idiopathic REM sleep behavior disorder and patients with Parkinson’s disease. Clinical Neurophysiology. 2014;125(3):512–9. 10.1016/j.clinph.2013.08.013 [DOI] [PubMed] [Google Scholar]
  • 9.Latreille V, Carrier J, Lafortune M, Postuma RB, Bertrand J-A, Panisset M, et al. Sleep spindles in Parkinson's disease may predict the development of dementia. Neurobiology of aging. 2015;36(2):1083–90. 10.1016/j.neurobiolaging.2014.09.009 [DOI] [PubMed] [Google Scholar]
  • 10.Ferrarelli F, Huber R, Peterson MJ, Massimini M, Murphy M, Riedner BA, et al. Reduced sleep spindle activity in schizophrenia patients. The American journal of psychiatry. 2007;164(3):483–92. 10.1176/ajp.2007.164.3.483 [DOI] [PubMed] [Google Scholar]
  • 11.Wamsley EJ, Tucker MA, Shinn AK, Ono KE, McKinley SK, Ely AV, et al. Reduced sleep spindles and spindle coherence in schizophrenia: mechanisms of impaired memory consolidation? Biological psychiatry. 2012;71(2):154–61. 10.1016/j.biopsych.2011.08.008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Limoges É, Mottron L, Bolduc C, Berthiaume C, Godbout R. Atypical sleep architecture and the autism phenotype. Brain. 2005;128(5):1049–61. [DOI] [PubMed] [Google Scholar]
  • 13.Montagna P. Fatal familial insomnia: a model disease in sleep physiopathology. Sleep medicine reviews. 2005;9(5):339–53. 10.1016/j.smrv.2005.02.001 [DOI] [PubMed] [Google Scholar]
  • 14.Montagna P, Gambetti P, Cortelli P, Lugaresi E. Familial and sporadic fatal insomnia. The Lancet Neurology. 2003;2(3):167–76. [DOI] [PubMed] [Google Scholar]
  • 15.Rauchs G, Schabus M, Parapatics S, Bertran F, Clochon P, Hot P, et al. Is there a link between sleep changes and memory in Alzheimer's disease? Neuroreport. 2008;19(11):1159 10.1097/WNR.0b013e32830867c4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Ray LB, Fogel SM, Smith CT, Peters KR. Validating an automated sleep spindle detection algorithm using an individualized approach. Journal of sleep research. 2010;19(2):374–8. 10.1111/j.1365-2869.2009.00802.x [DOI] [PubMed] [Google Scholar]
  • 17.Schimicek P, Zeitlhofer J, Anderer P, Saletu B. Automatic sleep-spindle detection procedure: aspects of reliability and validity. Clinical EEG and neuroscience. 1994;25(1):26–9. [DOI] [PubMed] [Google Scholar]
  • 18.Bódizs R, Körmendi J, Rigó P, Lázár AS. The individual adjustment method of sleep spindle analysis: methodological improvements and roots in the fingerprint paradigm. Journal of neuroscience methods. 2009;178(1):205–13. 10.1016/j.jneumeth.2008.11.006 [DOI] [PubMed] [Google Scholar]
  • 19.Gais S, Mölle M, Helms K, Born J. Learning-dependent increases in sleep spindle density. The Journal of Neuroscience. 2002;22(15):6830–4. doi: 20026697 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Mölle M, Marshall L, Gais S, Born J. Grouping of spindle activity during slow oscillations in human non-rapid eye movement sleep. The Journal of neuroscience. 2002;22(24):10941–7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Bódizs R, Kis T, Lázár AS, Havrán L, Rigó P, Clemens Z, et al. Prediction of general mental ability based on neural oscillation measures of sleep. Journal of sleep research. 2005;14(3):285–92. 10.1111/j.1365-2869.2005.00472.x [DOI] [PubMed] [Google Scholar]
  • 22.Devuyst S, Dutoit T, Didier JF, Meers F. Automatic Sleep Spindle Detection in Patients with Sleep Disorders. 2006;1:3883–6. [DOI] [PubMed] [Google Scholar]
  • 23.Żygierewicz J, Blinowska KJ, Durka PJ, Szelenberger W, Niemcewicz S, Androsiuk W. High resolution study of sleep spindles. Clinical Neurophysiology. 1999;110(12):2136–47. [DOI] [PubMed] [Google Scholar]
  • 24.Sitnikova E, Hramov AE, Koronovsky AA, van Luijtelaar G. Sleep spindles and spike–wave discharges in EEG: their generic features, similarities and distinctions disclosed with Fourier transform and continuous wavelet analysis. Journal of neuroscience methods. 2009;180(2):304–16. 10.1016/j.jneumeth.2009.04.006 [DOI] [PubMed] [Google Scholar]
  • 25.Acır N, Güzeliş C. Automatic recognition of sleep spindles in EEG by using artificial neural networks. Expert Systems with Applications. 2004;27(3):451–8. [Google Scholar]
  • 26.Ventouras EM, Monoyiou EA, Ktonas PY, Paparrigopoulos T, Dikeos DG, Uzunoglu NK, et al. Sleep spindle detection using artificial neural networks trained with filtered time-domain EEG: a feasibility study. Computer Methods & Programs in Biomedicine. 2005;78(3):191–207. [DOI] [PubMed] [Google Scholar]
  • 27.Görür D. Automated detection of sleep spindles.
  • 28.Werth E, Achermann P, Dijk D-J, Borbély AA. Spindle frequency activity in the sleep EEG: individual differences and topographical distribution. Electroencephalography and clinical neurophysiology. 1997;103(5):535–42. [DOI] [PubMed] [Google Scholar]
  • 29.De Gennaro L, Ferrara M, Vecchio F, Curcio G, Bertini M. An electroencephalographic fingerprint of human sleep. Neuroimage. 2005;26(1):114–22. 10.1016/j.neuroimage.2005.01.020 [DOI] [PubMed] [Google Scholar]
  • 30.Huupponen E, Gómez-Herrero G, Saastamoinen A, Värri A, Hasan J, Himanen S-L. Development and comparison of four sleep spindle detection methods. Artificial intelligence in medicine. 2007;40(3):157–70. 10.1016/j.artmed.2007.04.003 [DOI] [PubMed] [Google Scholar]
  • 31.Devuyst S, Dutoit T, Stenuit P, Kerkhofs M, editors. Automatic sleep spindles detection—overview and development of a standard proposal assessment method. Engineering in Medicine and Biology Society, EMBC, 2011 Annual International Conference of the IEEE; 2011: IEEE. [DOI] [PubMed]
  • 32.Nowak S, Ger S, editors. How reliable are annotations via crowdsourcing: a study about inter-annotator agreement for multi-label image annotation. International Conference on Multimedia Information Retrieval; 2010.
  • 33.Chen C, White L, Kowalewski T, Aggarwal R, Lintott C, Comstock B, et al. Crowd-Sourced Assessment of Technical Skills: a novel method to evaluate surgical performance. Journal of Surgical Research. 2014;187(1):65–71. 10.1016/j.jss.2013.09.024 [DOI] [PubMed] [Google Scholar]
  • 34.Mitry D, Peto T, Hayat S, Blows P, Morgan J, Khaw KT, et al. Crowdsourcing as a screening tool to detect clinical features of glaucomatous optic neuropathy from digital photography. PloS one. 2015;10(2). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Mattioni TA, Welch S, Kanaan N, Miller W, Lin D. Distributed human intelligence for colonic Polyp classification in computer-aided detection for CT colonography. Radiology. 2012;262(3):824–33. 10.1148/radiol.11110938 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Warby SC, Wendt SL, Welinder P, Munk EG, Carrillo O, Sorensen HB, et al. Sleep-spindle detection: crowdsourcing and evaluating performance of experts, non-experts and automated methods. Nature methods. 2014;11(4):385–92. 10.1038/nmeth.2855 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Ray LB, Sockeel S, Soon M, Bore A, Myhr A, Stojanoski B, et al. Expert and crowd-sourced validation of an individualized sleep spindle detection method employing complex demodulation and individualized normalization. Frontiers in human neuroscience. 2015;9:507 10.3389/fnhum.2015.00507 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Schabus M, Dang-Vu TT, Albouy G, Balteau E, Boly M, Carrier J, et al. Hemodynamic cerebral correlates of sleep spindles during human non-rapid eye movement sleep. Proceedings of the National Academy of Sciences. 2007;104(32):13164–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Martin N, Lafortune M, Godbout J, Barakat M, Robillard R, Poirier G, et al. Topography of age-related changes in sleep spindles. Neurobiology of aging. 2013;34(2):468–76. 10.1016/j.neurobiolaging.2012.05.020 [DOI] [PubMed] [Google Scholar]
  • 40.Plante D, Goldstein M, Landsness E, Peterson M, Riedner B, Ferrarelli F, et al. Topographic and sex-related differences in sleep spindles in major depressive disorder: a high-density EEG investigation. Journal of affective disorders. 2013;146(1):120–5. 10.1016/j.jad.2012.06.016 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Hagemann D, Hewig J, Walter C, Naumann E. Skull thickness and magnitude of EEG alpha activity. Clinical Neurophysiology. 2008;119(6):1271–80. 10.1016/j.clinph.2008.02.010 [DOI] [PubMed] [Google Scholar]
  • 42.Rice JK, Rorden C, Little JS, Parra LC. Subject position affects EEG magnitudes. NeuroImage. 2013;64:476–84. 10.1016/j.neuroimage.2012.09.041 [DOI] [PubMed] [Google Scholar]
  • 43.Gaillard J, Blois R. Spindle density in sleep of normal subjects. Sleep. 1981;4(4):385–91. [DOI] [PubMed] [Google Scholar]
  • 44.Zeitlhofer J, Gruber G, Anderer P, Asenbaum S, Schimicek P, Saletu B. Topographic distribution of sleep spindles in young healthy subjects. Journal of sleep research. 1997;6(3):149–55. [DOI] [PubMed] [Google Scholar]
  • 45.McCormick L, Nielsen T, Nicolas A, Ptito M, Montplaisir J. Topographical distribution of spindles and K-complexes in normal subjects. Sleep. 1997;20(11):939–41. [DOI] [PubMed] [Google Scholar]
  • 46.Crowley K, Trinder J, Kim Y, Carrington M, Colrain IM. The effects of normal aging on sleep spindle and K-complex production. Clinical neurophysiology. 2002;113(10):1615–22. [DOI] [PubMed] [Google Scholar]
  • 47.Wendt SL, Welinder P, Sorensen HB, Peppard PE, Jennum P, Perona P, et al. Inter-expert and intra-expert reliability in sleep spindle scoring. Clinical Neurophysiology. 2014. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Campbell K, Kumar A, Hofman W. Human and automatic validation of a phase-locked loop spindle detection system. Electroencephalography and clinical neurophysiology. 1980;48(5):602–5. [DOI] [PubMed] [Google Scholar]
  • 49.Nicolas A, Petit D, Rompre S, Montplaisir J. Sleep spindle characteristics in healthy subjects of different age groups. Clinical Neurophysiology. 2001;112(3):521–7. [DOI] [PubMed] [Google Scholar]
  • 50.De Gennaro L, Ferrara M, Bertini M. Topographical distribution of spindles: variations between and within NREM sleep cycles. Sleep Res Online. 2000;3(4):155–60. [PubMed] [Google Scholar]
  • 51.Carskadon MA, Dement WC. Normal human sleep: an overview. Principles and practice of sleep medicine. 2000;2:16–25. [Google Scholar]
  • 52.McCormick L, Nielsen T, Nicolas A, Ptito M, Montplaisir J. Normal sleep topographical distribution of spindles and K-complexes in normal subjects. Sleep. 1997;20(11):939–41. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

S1 Fig. Generation of the non-expert group standard with definite spindles in stage N2.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when definite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.35. The shading indicates the standard deviation. At T-group = 0.35 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with definite spindles (nEGS-1).

(TIF)

S2 Fig. Generation of the non-expert group standard with indefinite spindles in stage N2.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when indefinite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.05. The shading indicates the standard deviation. At T-group = 0.05 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with indefinite spindles (nEGS-05). The T-group ranges from 0 to 0.20 because the mean F1 score is not a number when the T-group ranges from 0.25 to 0.95.

(TIF)

S3 Fig. Generation of the expert group standard in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual experts at varying group thresholds (T-group) and overlap thresholds (T-overlap). Top right corner: The mean F1 scores of experts at T-overlap = 0.40 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.40, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis, and the color clearly changes from dark red to orange (see left). This level of the expert group consensus was the expert group standard (EGS). Bottom right corner: A precision-recall plot of individual expert performance. Each square represents one expert. The square and the dot represent the performance with and without the leave-one-out method.

(TIF)

S4 Fig. Generation of the non-expert group standard with all spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when both definite spindles and indefinite spindles are considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.30 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.30, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with all spindles (nEGS-all).

(TIF)

S5 Fig. Generation of the non-expert group standard with definite spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when definite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.25 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.30. The shading indicates the standard deviation. At T-group = 0.30 and T-overlap = 0.25, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with definite spindles (nEGS-1).

(TIF)

S6 Fig. Generation of the non-expert group standard with indefinite spindles in stage N3.

Left: Three-dimensional plot of the mean F1 score of individual non-experts at varying group thresholds (T-group) and overlap thresholds (T-overlap) when indefinite spindles are only considered. Top right corner: The mean F1 scores of non-experts at T-overlap = 0.35 with T-groups ranging from 0 to 0.95 at increments of 0.05. The highest average performance was at T-group = 0.05. The shading indicates the standard deviation. At T-group = 0.05 and T-overlap = 0.35, the mean F1 score shows a significant decreasing trend in the direction of the T-overlap axis. This level of the non-expert group consensus was the non-expert group standard with indefinite spindles (nEGS-05). The T-group ranges from 0 to 0.15 because the mean F1 score is not a number when the T-group ranges from 0.20 to 0.95.

(TIF)

S7 Fig. The F1 score¯ of EGS and nEGS-1, as well as the VS-F1-score of automatic methods and nEGS-1 versus EGS at different overlap thresholds in stages N2 (A) and N3 (B).

The EGS is the expert group standard. The nEGS-1 is the non-expert group standard when definite spindles are only considered. The AS1, AS2, AS3 and AS4 are the automatic standards obtained by the first, second, third and fourth automated method, respectively. The F1 score¯ is the mean F1 score of EGS and nEGS-1 at optimal thresholds. The VS-F1-score is the F1 score of nEGS-1, AS1, AS2, AS3 and AS4 compared with EGS using the matching procedure at an overlap threshold. The nEGS-1/EGS denotes a comparison of nEGS-1 with EGS.

(TIF)

S8 Fig. Correlation between the F1-score-each¯ of EGS-each and the mean500F1-score-each¯(6) of nEGS-1-6-each (A), and the mean500<VS-F1-score-each(6)> of nEGS-1-6-each compared with EGS-each in stage N2 sleep data (B).

Note that after remove three outliers, the F1-score-each¯ of EGS-each was still significant correlated with the mean500F1-score-each¯(6) of nEGS-1-6-each (r = 0.61, P < 10–3). After remove two outliers, the F1-score-each¯ of EGS-each was still significant correlated with the mean500<VS-F1-score-each(6)> of nEGS-1-6-each (r = 0.58, P < 0.001). The EGS-each is the expert group standard of each data segment. The nEGS-1-6-each is the non-expert group standard with definite spindles of each stage N2 sleep data segment from six non-experts. The F1-score-each¯ was the mean F1 score of EGS-each of each data segment at optimal thresholds. The mean500<F1-score-each¯(6)> is the mean F1 score of nEGS-1-6-each of each stage N2 data segment at the optimal thresholds across 500 repetitions. The mean500<VS-F1-score-each(6)> is the mean F1 score of nEGS-1-6-each compared with EGS-each across 500 repetitions.

(TIF)

S9 Fig. Three-dimensional plots of the mean F1 score of nEGS-1-6 in stage N2 (A) and that of nEGS-1-9 in stage N3 (B) across 500 repetitions at varying group thresholds and overlap thresholds.

The nEGS-1-6 is the non-expert group standard with definite spindles from six non-experts identifying spindles in one data segment of stage N2. The nEGS-1-9 is the non-expert group standard with definite spindles from nine non-experts identifying spindles in one data segment of stage N3.

(TIF)

S1 File. The methods and results in supporting information.

(DOCX)

S2 File. The relevant data within this study.

This MAT-file includes two structs: N2 and N3, representing stage N2 and N3. Each struct contains four structs: EGS, nEGS, nEGS-1 and nEGS-05. The EGS struct is composed of the F1_score (a 20×20×5 matrix, the performance of five experts at varying T-groups and T-overlaps) and the standard (a 300,000×30 matrix, the spindle detection results of 30 data segments by experts group). Similarly, the nEGS, nEGS-1 and nEGS-05 structs consist of the F1_score (a 20×20×168 matrix, the performance of 168 non-experts at varying T-groups and T-overlaps) and the standard (a 300,000×30 matrix, the spindle detection results of 30 data segments by non-experts group). These three structs are generated when both definite and indefinite spindles, only considering definite spindles and indefinite spindles are considered, respectively.

(MAT)

S1 Table. Parameters of four group standards of each data segment in stage N2 and N3 sleep data.

(DOCX)

S2 Table. The performance of non-expert group standards of each data segment compared against the expert group standard of each data segment in stage N2 and N3 sleep data.

(DOCX)

S3 Table. Pairwise comparisons of performance between experts in stage N2 and N3 sleep data.

(DOCX)

S4 Table. Definitions of some terms in this study.

(DOCX)

S5 Table. The results of the classification using the k-means clustering method.

(DOCX)

S6 Table. The performance of experts with different number.

(DOCX)

Data Availability Statement

All relevant data are within the paper and its Supporting Information files.


Articles from PLoS ONE are provided here courtesy of PLOS

RESOURCES