Skip to main content
BioMedical Engineering OnLine logoLink to BioMedical Engineering OnLine
. 2019 Sep 4;18:92. doi: 10.1186/s12938-019-0712-8

Development of a rule-based automatic five-sleep-stage scoring method for rats

Ting-Ying Wei 1, Chung-Ping Young 1, Yu-Ting Liu 2, Jia-Hao Xu 1, Sheng-Fu Liang 1, Fu-Zen Shaw 3,, Chin-En Kuo 4,
PMCID: PMC6727553  PMID: 31484584

Abstract

Background

Sleep problem or disturbance often exists in pain or neurological/psychiatric diseases. However, sleep scoring is a time-consuming tedious labor. Very few studies discuss the 5-stage (wake/NREM1/NREM2/transition sleep/REM) automatic fine analysis of wake–sleep stages in rodent models. The present study aimed to develop and validate an automatic rule-based classification of 5-stage wake–sleep pattern in acid-induced widespread hyperalgesia model of the rat.

Results

The overall agreement between two experts’ consensus and automatic scoring in the 5-stage and 3-stage analyses were 92.32% (κ = 0.88) and 94.97% (κ = 0.91), respectively. Standard deviation of the accuracy among all rats was only 2.93%. Both frontal–occipital EEG and parietal EEG data showed comparable accuracies. The results demonstrated the performance of the proposed method with high accuracy and reliability. Subtle changes exhibited in the 5-stage wake–sleep analysis but not in the 3-stage analysis during hyperalgesia development of the acid-induced pain model. Compared with existing methods, our method can automatically classify vigilance states into 5-stage or 3-stage wake–sleep pattern with a promising high agreement with sleep experts.

Conclusions

In this study, we have performed and validated a reliable automated sleep scoring system in rats. The classification algorithm is less computation power, a high robustness, and consistency of results. The algorithm can be implanted into a versatile wireless portable monitoring system for real-time analysis in the future.

Keywords: Rat, Automated sleep scoring, Five sleep stages, Rule-based, Decision tree

Background

Mammals display different patterns of sleep–wake stages, which comprise cyclic patterns of wakefulness (wake), non-rapid eye movement (NREM) sleep and rapid eye movement (REM) sleep. These stages have been defined based on electrophysiological measurements that include electroencephalogram (EEG), electromyogram (EMG), and electrooculogram (EOG). Many diseases and cognitive behaviors have a relationship with sleep quality and quantity. For instance, patients with chronic widespread pain syndromes often exhibit sleep disturbance [1]. These patients usually complain unrefreshing sleep, i.e., too much light sleep or irregular sleep pattern [2]. To understand the pathogenesis of pain or comorbidity of sleep disturbance, an ideal animal model may be required. In the field of sleep research, various rat models are often used because they are readily available and display electrical activity during sleep that has similarities with human sleep [38].

Clinically, a patient claims a long suffering muscle pain but found no damage in body tissue after checking, this patient will be diagnosed as fibromyalgia syndrome according to American College of Rheumatology diagnostic criteria: if the pain site throughout the body, especially in the vicinity of the joint hyperalgesia phenomena. Fibromyalgia and sleep disorders also go hand in hand. In fact, it is thought that up to 80% of patients with fibromyalgia experience certain type of disordered sleep. Often, these sleep disorders leave people feeling tired, drained, and physically incapable of dealing with the stresses associated with fibromyalgia [9]. Sluka et al. [10] have proposed an animal model of widespread mechanical hyperalgesia lasting for about 4 weeks by repeated intramuscular injections of pH 4.0 saline. However, sleep recording is not assessed in this model.

One of the major inconveniences encountered in sleep studies is the time-consuming labor involved in equating the visual analysis of physiological recordings (EEG, EMG, and EOG) to an appropriate stage of vigilance. Most previous automatic sleep staging methods for rats have distinguished three main stages (i.e., wake, NREM and REM) [1117]. However, to obtain a more detailed analysis in different sleep stages, numerous previous studies have proposed to utilize a four or five-stage analysis for wake–sleep pattern in rats [1821]. Therefore, developing an automated system that can distinguish five wake–sleep stages will be beneficial to investigate subtle change of wake–sleep pattern in response to different behavioral changes.

Since the standard sleep staging rules for rats are not available currently, we referred the visual scoring criteria from two previous studies [20, 22]. Five stages, including wake, NREM sleep stage 1 (NREM1), NREM sleep stage 2 (NREM2), transition sleep (TS), and REM sleep, were adopted in this study. Figure 1 shows typical polygraphic recordings representing the five stages. In the wake stage, EEG exhibits low-amplitude predominant theta activity (6–9 Hz) and superimposed high-frequency activity accompanied by a large amplitude EMG. In the NREM1 stage, sleep spindles (10.5–15 Hz) and/or median delta wave activity (0.5–5 Hz) less than 50% of an epoch are present, and EMG exhibits a diminished amplitude compared with the wake stage. In the NREM2 stage, high delta wave (0.5–5 Hz) activity occupied more than 50% of an EEG epoch, and EMG amplitude diminishes compared with the NREM1 sleep. In the TS stage, EEG of parietal or occipital lead exhibits a prominent theta rhythm intermixed with short-lasting (1–3 s) high-amplitude spindles, and EMG amplitude was low [16]. In the REM sleep, EEG exhibits a regular theta rhythm, and EMG is absent (often presentation of electrocardiography) or with the exception of occasional short-lasting bursts of activity typically associated with rapid eye movements.

Fig. 1.

Fig. 1

Typical polygraphic recordings during the different five sleep stages. Frontal, electroencephalogram (EEG) of frontal; Occipital, electroencephalogram (EEG) of occipital; NREM, non-rapid eye movement; REM, rapid eye movement

The classification procedures rely on highly refined methods, such as cluster analysis [23], linear discriminant analysis [19], artificial neural networks [24], pattern matching algorithm [25, 26] and support vector machine (SVM) [14]. Previous studies [24, 27] indicate that artificial intelligence is a best approach to accurately score sleep stages allowing to adapt to the various scoring requirements of different researchers. Thus, a customizable rule-based auto-scoring program is well suited for a researcher who would prefer more control over the decision-making process for scoring stages rather than exclusive reliance on the program. Here, we proposed a rule-based automatic five-sleep-stage scoring method that was constructed using a hierarchical decision tree. According to characteristics of biosignals and staging rules, several modifications were used. The present study introduced a two-stage process in the hierarchical decision tree to increase staging accuracy. Ten features, including temporal and spectrum analyses of the EEG and EMG signals, were utilized [16, 27]. Normalization of the EEG index was applied to eliminate individual differences and make the distribution of the features to be centralized. Because the EMG signal only indicated the movement situation and only used as an references for the discrimination of the wake stage. The classification accuracy was tested with a large dataset (20 sets of 24-h recordings) comparing with visual scoring from two experts. In addition, the performances, including overall agreement and kappa coefficient of five and three stages, were compared to the existing methods. The present study further aimed to validate effectiveness of the 5-stage or 3-stage analyses on sleep disturbance of the acid-induced hyperalgesia model.

Results

The performance of 5-stage scoring

The confusion matrix of the 5-stage scoring between the expert consensus and automatic scoring from 168,656 epochs of 20 rats is shown in Table 1. The sensitivities of the wake, NREM1, NREM2, TS, and REM stages were 94.4%, 91.27%, 91.26%, 78.98%, and 90.48%, respectively. The specificities of the wake, NREM1, NREM2, TS, and REM stages were 99.96%, 94.57%, 98.8%, and 99.2%, respectively. Almost all indexes between the automatic scoring method and expert consensus attained 90%. The overall agreement was 92.32%. The kappa coefficient was 0.88, which indicated an excellent agreement.

Table 1.

Confusion matrix of the 5-stage analysis between the automatic staging method and expert consensus

Automatic staging
Wake NREM1 NREM2 TS REM Total
Expert consensus
 Wake 77,822 1747 231 154 486 80,440
 NREM1 3807 41,452 1576 718 591 48,144
 NREM2 499 1207 19,663 5 60 21,434
 TS 152 907 51 4013 206 5329
 REM 156 175 24 191 12,763 13,309
 Total 82,436 45,488 21,545 5081 14,106 168,656
 SE (%) 94.4 91.13 91.26 78.98 90.48
 SP (%) 96.96 94.57 98.8 99.2 99.65
 PPV (%) 96.75 86.1 91.74 75.3 95.9
 NPV (%) 94.77 96.65 98.72 99.35 99.14
Overall agr. (%) 92.32
Kappa 0.88

The performance of 3-stage scoring

The confusion matrix of the 3-stage scoring between the expert consensus and automatic scoring from 168,656 epochs of 20 rats is reported in Table 2. The sensitivities of wake, NREM, and REM were 94.4%, 96.5%, and 90.48%, respectively. The specificities of wake, NREM, and REM were 96.96%, 94.49%, and 99.64%, respectively. All indexes between the automatic scoring method and expert consensus were greater than 90%. The overall agreement was 94.97%. The kappa coefficient was 0.91, which indicated an excellent agreement.

Table 2.

Confusion matrix of the 3-stage analysis between the automatic staging method and expert consensus

Automatic staging
Wake NREM REM Total
Expert consensus
 Wake 77,822 2132 486 80,440
 NREM 4458 69,592 857 74,907
 REM 156 395 12,763 13,309
 Total 82,436 72,114 14,106 168,656
 SE (%) 94.4 96.5 90.48
 SP (%) 96.96 94.49 99.64
 PPV (%) 96.75 92.9 95.86
 NPV (%) 94.77 97.3 99.14
Overall agr. (%) 94.97
Kappa 0.91

Individual performance

Table 3 shows the agreements and kappa coefficients between the expert consensus scoring and automatic scoring in all subjects using the 5-stage and 3-stage analyses. We firstly considered performance of the 5-stage analysis. Agreement fell in the range of 87.42–97.18%. Fourteen subjects (70% of 20 rats) exhibited agreement of > 90%. Averaged agreement was 91.94%. The kappa coefficient was in the range of 0.78–0.96. Nineteen subjects (95% of 20 rats) exhibited an excellent agreement (i.e., κ > 0.80). Averaged kappa coefficient was 0.87 for the 5-stage analysis.

Table 3.

Agreement and Cohen’s kappa coefficient between the expert consensus and automatic scoring in all individuals under the 3-stage and 5-stage analyses

Subject Agr. of 5-stage (%) κ of 5-stage Agr. of 3-stage (%) κ of 3-stage
No. 1 92.17 0.87 93.64 0.88
No. 2 91.79 0.88 94.5 0.91
No. 3 91.07 0.87 95 0.91
No. 4 89.92 0.83 92.3 0.86
No. 5 91.67 0.87 95.09 0.91
No. 6 93.61 0.90 96.6 0.94
No. 7 94 0.91 96.66 0.94
No. 8 90.16 0.85 92.75 0.87
No. 9 92.08 0.88 94.38 0.90
No. 10 90.31 0.85 91.65 0.85
No. 11 97.18 0.96 98.64 0.96
No. 12 96.84 0.95 98.87 0.98
No. 13 96.97 0.95 97.9 0.96
No. 14 94.85 0.92 95.73 0.92
No. 15 89.89 0.84 92.31 0.86
No. 16 87.42 0.81 90.22 0.82
No. 17 88.6 0.84 92 0.86
No. 18 87.95 0.82 91.77 0.85
No. 19 93.09 0.9 97.33 0.95
No. 20 89.32 0.78 90.44 0.8
Mean 91.94 0.87 94.39 0.90

In the 3-stage scoring, agreement between the expert consensus scoring and automatic scoring fell in the range of 90.22–98.87%. All subjects (100%) exhibited agreement of > 9 = 0%. Averaged agreement was 94.39%. The kappa coefficient was in the range of 0.8–0.98. All subjects (100%) exhibited an excellent agreement. Averaged kappa coefficient was 0.90. These results demonstrated that the proposed rule-based method in either the 5-stage or 3-stage analysis achieved stable high performance.

Sleep disturbance on acid-induced hyperalgesic model

Figure 2 shows paw withdrawal thresholds of bilateral hindlimbs at days 2 and 23 in both vehicle group and acid group. Paw withdrawal thresholds of ipsilateral hindlimb exhibited significant difference in the factors of treatment (F1,18 = 22.355, p < 0.001), time (F1,18 = 11.631, p = 0.003), and time × treatment (F1,18 = 14.979, p = 0.001). Paw withdrawal threshold of the acid group at day 23 revealed significantly lower than that of the vehicle group or that before the injection of pH 4.0 saline. Paw withdrawal thresholds of contralateral hindlimb exhibited significant difference in the factors of treatment (F1,18 = 23.869, p < 0.001), time (F1,18 = 5.339, p = 0.033), and time × treatment (F1,18 = 11.678, p = 0.003). Paw withdrawal threshold of the acid group at day 23 revealed significantly lower than that of the vehicle group or that before the injection of pH 4.0 saline. The results indicated that repetitive injections of pH 4.0 saline into unilateral hindlimb caused bilateral hindlimb hyperalgesia.

Fig. 2.

Fig. 2

Changes of paw withdrawal thresholds in bilateral hindlimbs in the groups receiving pH 7.2 saline or pH 4.0 saline at day 2 (D2, baseline) and day 23 (2 weeks after the 2nd injection). *p < 0.05 compared with D2; #p < 0.05 compared with the group of pH 7.2

Figure 3 shows 5-stage wake–sleep changes of the two groups at day 2 and day 23. High portion of the wake stage occurred at dark period, and sleep stage often exhibited at light period. In particular, NREM2 sleep primarily occurred at the early phase of the light period followed by abundant NREM1 sleep at the late phase of the light period. Table 4 summarizes all statistical results of 5-stage wake–sleep changes between the two groups at 2 timepoints. There was significant difference in the factor of time exclusively at day 2. In a sharp contrast to day 2, there was significant difference in the factors of time in all parameters, treatment in wake and NREM1, and time × treatment in NREM2 at day 23. At day 23, the two groups exhibited significant difference in the wake and TS at a particular timepoint of the dark period. The acid group exhibited longer NREM1 and shorter NREM2 in the light period compared with those of the vehicle group. Table 5 shows durations of the NREM1 and NREM2 in the light period of days 2 and 23 in the two groups. There was no significant difference in durations of the NREM1 and NREM2 between the two groups at day 2. In contrast, NREM1 duration of the acid group was significantly longer than that of the vehicle group at day 23. NREM2 duration of the acid group was significantly shorter than that of the vehicle group.

Fig. 3.

Fig. 3

Changes of 5 wake–sleep stages per hour in the light and dark periods at days 2 and 23. Statistical significance between the vehicle group (filled circle) and acid group (open square) is indicated by gray bar. Light and dark periods are indicated with open horizontal bar and filled horizontal bar at the top of each subplot, respectively. Time is modified as zeitgeber time

Table 4.

Summary of statistical results of wake–sleep stages throughout the recording

Stage Factor
Treatment Time Time × treatment
D2
 Wake F = 0.20 (p = 0.657) F = 10.28 (p < 0.001)* F = 0.68 (p = 0.864)
 NREM1 F = 0.13 (p = 0.720) F = 24.23 (p < 0.001)* F = 0.73 (p = 0.816)
 NREM2 F = 0.26 (p = 0.618) F = 12.67 (p < 0.001)* F = 0.70 (p = 0.844)
 TS F = 0.49 (p = 0.492) F = 5.80 (p < 0.001)* F = 0.92 (p = 0.574)
 REM F = 0.02 (p = 0.889) F = 5.78 (p < 0.001)* F = 0.70 (p = 0.846)
 NREM (NREM1 + NREM2 + TS) F = 0.27 (p = 0.612) F = 18.25 (p < 0.001)* F = 0.91 (p = 0.584)
D23
 Wake F = 4.95 (p = 0.039)* F = 10.14 (p < 0.001)* F = 0.78 (p = 0.764)
 NREM1 F = 6.51 (p = 0.020)* F = 22.51 (p < 0.001)* F = 0.64 (p = 0.903)
 NREM2 F = 2.26 (p = 0.150) F = 19.41 (p < 0.001)* F = 1.82 (p = 0.012)*
 TS F = 2.82 (p = 0.111) F = 2.52 (p < 0.001)* F = 1.10 (p = 0.339)
 REM F = 0.20 (p = 0.658) F = 4.19 (p < 0.001)* F = 0.27 (p = 1.00)
 NREM (NREM1 + NREM2 + TS) F = 0.27 (p = 0.612) F = 18.25 (p < 0.001)* F = 0.91 (p = 0.584)

p < 0.05

Table 5.

Durations of NREM1 and NREM2 sleep in the light period

Stage Factor
Day 2 Day 23
Vehicle Acid Vehicle Acid
NREM1 (h) 7.01 ± 0.46 6.80 ± 0.33 6.15 ± 0.50 7.97 ± 0.51*
NREM2 (h) 3.73 ± 0.30 3.87 ± 0.50 2.90 ± 0.26 2.32 ± 0.29*

p < 0.05, vs. vehicle group

When we used 3-stage wake–sleep analysis in the two groups at 2 days, there was significant difference in the time factor exclusively (Table 4). There was no significant difference in the factors of treatment or time × treatment at days 2 and 23. At day 23, there was a significant difference in NREM sleep of the dark period between the two groups (Fig. 4).

Fig. 4.

Fig. 4

Changes of 3 wake–sleep stages per hour in the light and dark periods at days 2 and 23. Statistical significance between the vehicle group (filled circle) and acid group (open square) is indicated by gray bar. Light and dark periods are indicated with open horizontal bar and filled horizontal bar at the top of each subplot, respectively. Time is modified as zeitgeber time

Discussion

The present study introduced 10 features with a simple threshold combined with a two-step hierarchical decision tree to characterize wake–sleep stages in rats. In both 5-stage and 3-stage wake–sleep classification, our method presented a high agreement with two experts. In an acid-induced widespread hyperalgesia model, 5-stage wake–sleep classification exhibited subtle sleep disturbance when hyperalgesia developed exclusively. The current study validated our automatic rule-based algorithm on a good performance for wake–sleep classification and effectiveness in the acid-induced hyperalgesia model.

Table 6 summarizes all parameters and performance of this study and previous studies [11, 13, 14, 16, 22] in terms of signals, subject number, epoch length, total epoch number, and proposed methods under the 3-stage analysis. Overall agreements of these methods ranged from 88 to 96%, including 92–99% for wake, 85–97% for NREM, and 79–94% for REM. Among these data, our results demonstrated a high overall agreement (> 94%), and all stages’ agreements exceeded 90% (94.9% for wake, 96.5% for NREM, and 90.48% for REM). Our 3-stage analytic method had optimal performance in terms of high agreement and κ value. The present study utilized a minimum number of signals and largest number of subjects (N = 20). Amount of epochs used in this study was several to ten folds of previous studies. Thus, the current study strengthens the reliability to validate our automatic scoring method in a simple preparation for sleep recording.

Table 6.

Comparisons of all available methods for wake–sleep classification

References Signal Subjects Method Epoch Agreement (%)
Length (s) Number Wake NREM REM All
[11] 1 EEG, 1 EMG 5 Logic algorithm 20 19,499 98.7 90.7 93.9 94.3
[13] 1 EEG, 1 EMG 14 Logic algorithm 5 6138 91.8 92.5 79.4 87.9
[14] 2 EEG, 1 EMG 6 Custom SVM 20 10,870 96.5 96.9 95.4 96.8
[16] 1 EEG, 1 EMG 9 Logic algorithm 5 5594 99.3 97.4 90.9 95.9
[17] 2 EEG, 2 EMG, 2 EKG 7 Support SVM 10 20,174 83.45 91.74 61.5 84.39
[22] 1 EEG, 1 EMG, 1 Locomotion 10 Logic algorithm 10 75,801 93.4 85.0 82.5 90.9
Our method 1 EEG, 1 EMG 20 Logic algorithm 10 168,656 94.4 96.5 90.48 94.97

In the scoring method using 1 EEG and 1 EMG, most agreements between experts and automatic scoring from this study and previous studies [11, 16] were higher than 90%. These studies extracted crucial features from EEG and EMG (including alpha band power-related spindle activity and delta power of slow-wave activity) according to raters’ experience. The present study selected features of a previous study [16] to calculate 3 valuable indexes for stages W, N, and R at the first part of the decision tree; afterwards, we further calculated relative power from powers of selected bands as indexes to finely tune threshold at the second part of the decision tree. Agreement of our method (94.97%) was slightly lower than 95.9% of the previous study [16], particularly for the wake stage. This study preserved a comparable agreement using tenfold epochs compared with the previous study. Discrepancies may arise from different recording periods (24-h recording with 12-h light-off period in this study vs. 4-h light-on recording) and epoch amounts (168,656 of this study vs. 5594). Because rats are a nocturnal animal, they usually present quite wake state in the light-on period. The quite wake state is relatively easy to be correctly identified rather than active wake stage in the light-off period. On the other hand, the previous study presents 88.8% agreement from 9327 epochs and 95.9% agreement for 5594 epochs with high confidence between two raters [16]. Highly selected epochs of the previous study may be a reason to explain its high agreement.

Human sleep staging uses epoch of 30 s. However, rats are nocturnal animals with a relative short sleep cycle [16, 20]. Thus, previous studies have selected epoch with a relative short duration for sleep staging in rats, such as 5 [13, 16], 10 [17, 22], or 20 s [11, 14]. In general, a long segment contains valuable wideband information with less sensitivity for transient response. By contrast, a short segment emphasizes on a transient variability exclusively. This study selected an epoch of 10 s as a compromise between valuable information and transient variance [17, 22]. To further extract valuable transient response, the present study designed fine analysis of 5.2-s epochs for each 10-s epoch combined with a rule-based decision tree to determine the behavioral stage [28]. Our results (94.97% agreement) exhibited relatively higher than previous studies (84.39% [17] or 90.9% [22]) in Table 6. Our proposed epoch length and alternative analytic method seem to be beneficial for staging analysis in rats.

Valuable features play an important role in classification of different behavioral stages. Numerous studies have suggested useful features for staging in EEG, such as band power [2932], spectral power [2931], higher-order spectra [33], entropy [30, 34, 35], wavelets coefficient [29, 31, 36, 37], etc. The present study selected certain classic band powers of a rat EEG as features [16, 38], which are common and useful in automatic staging previously [1416, 18]. We derived several valuable indexes from 10 features through statistical assessment (Figs. 5, 6). Most importantly, normalization of all selected indexes exhibited the advantage of eliminating individual differences [28]. The normalization of all indexes is also helpful for high consistency of the automatic scoring among subjects. The present study exhibited κ value of > 0.8 occurring in 95% of rats for the 3-stage scoring and 100% of rats for the 5-stage scoring. These results demonstrated subject-independent robustness of our strategies using band power-related features combined with normalization. In addition to band power of EEG, the wavelet analysis is recently emphasized for non-stationary signal [31, 36]. The contribution of wavelet coefficients on our proposed automated scoring method remains to be determined.

Fig. 5.

Fig. 5

The values of IndexW, IndexN, and IndexR in the wake, NREM, and REM stages (1st to 200th epochs are wake, 201st to 400th epochs are NREM, and 401st to 600th epochs are REM). Blue line: the value of IndexW; red line: the value of IndexN; green line: the value of IndexR

Fig. 6.

Fig. 6

a Values of the IndexW, IndexN and IndexR in the wake, NREM, and REM stages from the training dataset. b Values of the Index1 and Index2 in the wake and NREM1 stages from the training dataset. c Values of Index3 and Index4 from the training dataset

Previous studies have introduced various classification algorithms, including artificial neural network [2931, 3537], decision trees [29, 31], liner discriminant analysis [29, 31, 34], extreme learning machine [32], Gaussian mixture models [33], etc. Accuracies of those classifiers for sleep scoring have a large variance (75–95%). Ideally, a simple classifier is used in the case with excellent representative features. According to statistical evaluation of valuable indexes (Fig. 6), a simple threshold was used in several testing points of the decision tree (Fig. 7) and had a great advantage on reduction of computation power. The present study also modified the decision tree into two principal parts according to valuable features of previous studies [16] and prior experience of experts. Thus, our algorithm was easy to determine two kinds of sleep scorings. Agreements for the 3-stage scoring and 5-stage scoring were 94.97% and 92.32%, respectively. In the present study, κ values of almost all subjects were > 0.8 (i.e., excellent agreement) for the two-stage scorings. Based on these results, the present study proposes a new decision tree combined with valuable features for sleep scoring.

Fig. 7.

Fig. 7

Flow chart of the proposed decision tree. BPR: band power ratio; ∑NRA: IndexN + IndexR + IndexA

The 5-stage wake–sleep classification in rats has been proposed in a previous study with a semiautomatic scoring method [20]. Table 7 shows agreements of the previous study [20] and our method. The present study achieved a better performance in wake (94.4% vs 85.14%), NREM1 (91.13% vs 71.51%), NREM2 (91.26% vs 89.94%), and TS (78.98% vs 72.55%). The performance of REM in this study (90.48%) was slightly less than the previous study (94.52%). Overall agreement (92.32%) of this study was higher than that of the previous method (82.63%). The κ value of this study indicated an excellent agreement, and the previous study only exhibited substantial agreement. Taken together, the present study advances automatic scoring technique of the 5-stage analysis.

Table 7.

Confusion matrix of the agreement by method of Neckelmann et al. (a) and our method (b)

(a) Automatic staging [20]
Wake NREM1 NREM2 TS REM
Expert consensus
 Wake 85.14 11.80 1.72 0.02 1.32
 NREM1 2.74 71.51 22.90 1.10 1.76
 NREM2 0.32 9.12 89.94 0.03 0.59
 TS 0.00 17.66 5.49 72.55 4.30
 REM 2.94 1.73 0.00 0.81 94.52
Overall agr. (%) 82.63
Kappa 0.78
(b) Automatic staging
Wake NREM1 NREM2 TS REM
Expert consensus
 Wake 94.4 4.62 0.61 0.18 0.19
 NREM1 3.84 91.13 2.65 1.99 0.38
 NREM2 1.07 7.31 91.26 0.24 0.11
 TS 3.03 14.13 0.10 78.98 3.76
 REM 3.45 4.19 0.43 1.46 90.48
Overall agr. (%) 92.32
Kappa 0.88

The 3-stage staging method provided little information of slow-wave activity in NREM sleep. Thus, it is difficult to explore interactive change of delta activity and alpha activity during NREM sleep. In a sharp contrast, the 5-stage scoring is able to observe possible alteration between slow-wave activity (delta power) and spindle (alpha power) [20]. At the baseline (day 2), both groups did not differ from each other in terms of PWT and sleep pattern. Rats exhibited decrease NREM2 sleep (slow-wave sleep) followed by increased NREM1 sleep (light sleep) during light period (Fig. 3), which is similar to nocturnal sleep pattern in humans [1]. This cyclic change of NREM1 and NREM2 during light-on period cannot be seen in the 3-stage analysis (Fig. 4). Repetitive acid injection into an unilateral muscle caused widespread hyperalgesia at day 23 [39]. The present study also characterized acid-induced hyperalgesia comorbid with sleep disturbance, i.e., longer NREM1 sleep and shorter NREM2 sleep (Table 4). This phenomenon exists in most humans with chronic widespread pain syndromes, such as fibromyalgia [2]. Taken together, the present study provides additional face validity of acid-induced hyperalgesia model as human’s fibromyalgia and further support on the 5-stage wake–sleep analysis.

Conclusions

We performed and validated a rule-based automated sleep scoring system in rats. The proposed method exhibits 92.32% agreement in the five-stage scoring and 94.97% agreement in the three-stage scoring with a manually reference from two scorers. Ten features of the EEG and EMG signals were utilized. Normalization of these feature-derived indexes was employed to reduce individual variability. A simple threshold was set to separate different stages. Compared with other classifiers, such as neural networks [12, 24] or linear discriminator analysis [40], the thresholding in this approach is less computationally complex. Our method classified the vast majority of epochs with excellent agreement through high κ value. The performance of our proposed five-stage method is superior to existing methods. Because the classification is less computation power and more robustness and consistency, this algorithm can be implanted into a versatile wireless portable monitoring system for real-time analysis in the near future.

Methods

Animal preparation and experimental procedure

Adult male Sprague–Dawley rats (n = 20, 300–400 g) were used. Rats were raised in a sound-attenuated room with a 12–12 light–dark cycle (06:00–18:00 lights on) and comfortable temperature (25 ± 2 °C). Rats were randomly assigned into a group receiving the vehicle (pH 7.2, n = 11) or acid saline (pH 4.0, n = 11). The Institutional Animal Care and Use Committee of National Cheng Kung University reviewed and approved the experimental procedures.

The recording electrodes were implanted under pentobarbital anesthesia (60 mg/kg, i.p.). Following anesthesia induction, the rat was placed in a standard stereotaxic apparatus. The dorsal surface of the skull was exposed and cleaned. Seven stainless steel screws were driven bilaterally into the skull overlaying the frontal (2.0 mm anterior to and 2.0 mm lateral to the bregma), parietal (2.0 mm posterior to and 2.0 mm lateral to the bregma), and occipital (6.0 mm posterior to and 2.0 mm lateral to the bregma) regions of the cortex [5]. A reference electrode was implanted 2.0 mm caudal to the lambda. Seven-strand stainless steel microwires (#7935, A-M Systems) were bilaterally inserted into the dorsal neck muscles to record EMG. Monopolar EEG recording and bipolar EMG recording were used. There were two groups: the first group (No. 1–10) had EEG recordings from bilateral frontal lobe and right occipital lobe; the second group (No. 11–20) had EEG recordings from bilateral parietal lobe and right occipital lobe. The occipital EEG is good to pick up hippocampal theta activity for characterizing REM sleep [5]. Following the surgery, the rats were administered antibiotics (chlortetracycline) and housed individually in cages for 1 week of recovery. To allow the rats to become habituated to the experimental apparatus, each animal was placed in the recording environment 1 day prior to the experiment.

Induction of chronic hyperalgesia was described in our previous study [39]. In brief, normal saline (pH 7.2) was adjusted with an 2-(N-morpholino)ethanesulfonic acid to pH 4.0 ± 0.1 as acid saline. All rats were briefly anesthetized with vaporized isoflurane (3–5%). The left gastrocnemius muscle was injected with 100-μl neutral saline (vehicle group) or acid saline (acid group) on days 3 and 8.

Hyperalgesia test in terms of paw withdrawal threshold (PWT) has been described in our previous study [39]. Briefly, rats were placed in a Lucite cubicle on an elevated metal grid allowing to stimulate the plantar surface of a paw. Von Frey filaments were applied to the plantar surface of a paw. A “response” to the stimuli was defined as an abrupt lifting of the foot upon application of the von Frey filaments. A trial contained 5 von Frey stimuli. PWT was defined as the lowest force that elicited ≥ 3 withdrawals in 5 consecutive stimuli. PWT of the ipsilateral left hindpaw was measured followed by the contralateral right hindpaw. In the present study, PWTs before the 1st injection (D1) and 14 days after the 2nd injection (D22) were selected to demonstrate effect of repetitive unilateral injection of acid saline eliciting bilateral chronic hyperalgesia. Sleep recording of 26 h (from 5:00 a.m. to 7:00 a.m. of the next day) was performed at day 2 (baseline) and day 23 (severe hyperalgesia) with regard to measures of PWTs [39].

Sleep recording and stage scoring

Rats were briefly anesthetized with vaporized isoflurane (3–5%). Dental cement was used to fix a recording wire, which contained an amplifier headset, with the connector over the rat’s head. The rat was placed in a transparent acrylic box, and the recording wire was connected into a multichannel commutator (Model#SL-36, Dragonfly Inc., West Virginia, USA) for free movement in the recording box.

A head set contained several N-channel field-effect transistors (MMBF5484, Motorola Semiconductor, USA) to act as a transconductance voltage buffer to reduce possible interference of external electromagnetic field coupling from the recording wire [41]. EEGs of frontal, parietal and occipital cortices were amplified (5000×) and filtered (0.1–70 Hz). EMG was amplified (1000×) in the range of 100–500 Hz. The EEG and EMG were synchronously digitized at different sampling rates (200 and 500 Hz, respectively) through a 12-bit analog–digital converter (PCL-818L, Advantech, Taiwan) connected to an IBM PC-compatible computer. The entire software, including data acquisition and analysis, was developed in MATLAB. The acquired data were stored on a hard disk for subsequent off-line verification.

All sleep recordings from 20 rats were scored visually by two sleep specialists with a 10-s segment (termed the epoch). The training data were randomly selected from two rats (one from the first group and the other one from the second group) and the remaining rats in the two groups were used for testing.

Feature extraction

The present study used Fast Fourier Transform (FFT) to characterize powers of specific bandwidths. A variety of frequency- and time-domain features were extracted from 2-s non-overlapping segments of the sleep data. Table 8 lists the 10 features used in this study [16, 27].

Table 8.

Summary of features

Type Feature Formula
Spectral power 0–0.5 Hz (EEG) Mean (power (dB))
0.5–5 Hz (EEG)
6–9 Hz (EEG)
10.5–15 Hz (EEG)
22–30 Hz (EEG)
35–45 HZ (EEG)
Power ratio 0–0.5 Hz (EEG) Power (0–0.5)/power (0–30)
0.5–5 Hz (EEG) Power (0.5–5)/power (0–30)
10.5–15 Hz (EEG) Power (10.5–15)/power (0–30)
EMG energy Amp M (EMG) Mean (abs (amp.))

Spectral power (SP): Following FFT, we calculated the mean spectral power (dB) among each frequency band for the EEG (EEGlo; 0–0.5 Hz, δ; 0.5–5 Hz, θ; 6–9 Hz, α; 10.5–15 Hz, β; 22–30 Hz, γ; 35–45 Hz).

SPi=normSPfi,wherei=1-6 1

Power ratio (PR): Following FFT, we calculated the total spectral power (dB) of 0–30 Hz and the mean power of each frequency band in the EEG. Then, we calculated the ratio of each band power divided by the total power [power (0–30 Hz)] as a feature. Table 8 shows three power ratios as our features (EEGlo; 0–0.5 Hz, δ; 0.5–5 Hz, α; 10.5–15 Hz).

PR=normSPfinormSPfj,wherei=1-3 2
0f1<0.5,0.5f2<5,10.5f3<15,0fj30.

EMG energy: EMG signal was filtered in the range of 10–100 Hz. The mean value of the absolute amplitude of the filtered EMG in an epoch was calculated from as a feature.

Following feature extraction, normalization of the features was employed to prevent extreme values influencing analysis then to reduce possible individual variability [28]. For each feature, the mean of the maximal 10% data was calculated as the maximum value of the feature, and the mean of the minimal 10% data was calculated as the minimum value of the feature. The procedure for normalization was summarized in the following steps:

  • Step 1 The means of the 10% minimal and maximal values for each feature as the min and max values, respectively, were calculated.

  • Step 2 The min and max values were set as 0 and 1; the other values were then normalized from 0 to 1.

  • Step 3 If the value was higher than 1, the value was specified as 1. If the value was lower than 0, the value was specified as 0.

Two steps are required after the elementary construction of a decision tree: (1) selecting appropriate features for each decision node and (2) setting appropriate threshold of the selected features as the splitting predicates. For the first step, the means and the standard deviations of the analyzed feature corresponding to stages A and B were (A¯, B¯) and (σA, σB), respectively. The distribution distance (DD) of the feature with respect to A and B was calculated through the following equation:

DDA,B=1-σA+σB2A¯-B¯0ifσA+σB2A¯-B¯else. 3

A feature with a large DD value indicates a large difference between stages A and B. Afterwards, a large DD value between features was used to select proper features for each node.

For the second step, the present study set an appropriate value for each feature to clarify stage at each node. The threshold for the feature was obtained by following equation:

Threshold=12mean10%max-12Std10%max+mean10%min+12Std10%min.

Structure of the decision tree

Figure 7 shows flow chart of the proposed decision tree. The decision tree contained two parts and seven testing points. The first part of the decision tree characterized all 10-s epochs into three conditions, i.e., stages W, N, and R. Afterwards, the second part further classified these epochs into the wake, NREM1, NREM2, TS, and REM stages.

In the first part of the decision tree, we used indexes defined in a previous study to classify an epoch into a condition [16]. The present study determined different ratios of the variables to discriminate each condition as follows:

IndexW=EMG×γ/δ, 4
IndexN=δ×α/γ2, 5
IndexR=θ3/δ×α×EMG, 6
IndexA=2×EEGlo+β×γ/EEG, 7

where ∑EEG = δ + θ + α + β + γ.

A previous study has proposed a short 2-s segment to increase the sensitivity for sleep staging in humans [28]. The current study divided each 10-s epoch into five 2-s segments and then calculated four indexes by the average of five 2-s feature values. The IndexA was used to detect the artifact stage. The artifacts were characterized by high fluctuation from the signal occasionally accompanied by broadband increases in EEG power [16]. For instance, the artifact was caused by biting or grasping something within a short period in rats. In the first testing point of Fig. 7, the epoch was considered an artifact if the value of the IndexA/∑NRA > 0.9 (where ∑NRA = IndexN + IndexR + IndexA). In general, these artifact epochs were considered as wake epochs [22].

Ideally, a good feature set should present great difference in a distinct condition. The IndexW values would exceed values of the IndexN and IndexR in the stage W. The IndexN values were greater than the values of IndexW and IndexR in the stage N, and the IndexR values should be larger than the values of IndexW and IndexN in the stage R. The present study randomly selected 600 10-s epochs from two rats (48-h recording) with staging by two experts as the 3-stage analysis (1st to 200th epochs were wake, 201st to 400th epochs were NREM, and 401st to 600th epochs were REM). A rat contributed 100 epochs for each condition. Three indexes were calculated from normalized values. Figure 5 illustrates the values of IndexW, IndexN, and IndexR in the wake, NREM, and REM stages, respectively. The index belonging to a particular stage was obviously higher than the other two stages, such as higher IndexW occurred at the wake stage.

Figure 6a shows values of the IndexW, IndexN and IndexR in the wake, NREM, and REM stages from the training dataset. A one-way analysis of variance (ANOVA) [42] was utilized to assess the Index difference under a particular stage, if appropriate, a Bonferroni t test [43] was used as a post hoc test. In the wake stage, the Index exhibited significant difference (F2,25875 = 47807.06, p < 0.001). The IndexW (0.771 ± 0.002) was significantly higher than IndexN (0.194 ± 0.002) and IndexR (0.036 ± 0.001). In the NREM stage, the Index exhibited significant difference (F2,26664 = 78,406.13, p < 0.001). The IndexN (0.744 ± 0.001) was significantly higher than IndexW (0.122 ± 0.001) and IndexR (0.134 ± 0.001). In the REM stage, the Index exhibited significant difference (F2,3600 = 3229.41, p < 0.001). The IndexR (0.689 ± 0.007) was significantly higher than IndexW (0.134 ± 0.004) and IndexN (0.178 ± 0.005).

In the second part of the decision tree, epochs were further divided into the wake, NREM1, NREM2, TS, and REM stages. When a rat exhibited active behavior, extreme movement-induced noise occurred in the EEG signals. In the stage W of the first part, the epoch that low band power ratio (0–0.5 Hz) > 0.5 occurred at ≥ 1.2-s segment was rescored as the wake stage for the 2nd testing point. According to the manual scoring rule, the EEG comprised high frequency, which consisted of predominant theta activity (6–9 Hz) concomitant with a large amplitude EMG in the wake stage; the NREM1 stage presented sleep spindles (α; 10.5–15 Hz) and/or median delta wave activity (0.5–5 Hz) less than 50% of the segment accompanied by diminished EMG compared with the wake stage. Therefore, the present study constructed Index1 and Index2 as follows:

Index1=EMG×γ/δ 8
Index2=α×δ/θ 9

Figure 6b shows values of the Index1 and Index2 in the wake and NREM1 stages from the training dataset. In the wake stage, the Index1 (0.496 ± 0.001) was significantly higher than the Index2 (0.194 ± 0.001; t70458 = 179.557, p < 0.001). In the NREM1 stage, the Index2 (0.292 ± 0.011) was significantly higher than the Index1 (0.216 ± 0.011; t698 = -4.969, p < 0.001). As shown in the 3rd testing point of the second part decision tree, an epoch that the Index1 values of all 2-s segments exceed the Index2 was considered as the wake stage. Otherwise, the epoch was considered as the NREM1 stage.

In the stage N of the first part, the epoch that low band power ratio (0–0.5 Hz) > 0.5 occurred at ≥ 2.2-s segments was rescored as the wake stage for the 4th testing point because an epoch in the stage N probably presented mild delta wave and movement-induced noise simultaneously. Our prior experience expressed ≥ 2 segments with higher low band power ratio as a reasonable index for the wake stage. Subsequently, frontal and parietal EEGs were characterized by a prominent theta rhythm intermittent with short-lasting high-amplitude spindles in the TS. The current study defined Index3 and Index4 as follows:

Index3=θ×γ/δ 10
Index4=δ/θ 11

Figure 6c shows values of Index3 and Index4 from the training dataset. In the TS, the Index3 (0.615 ± 0.007) was significantly higher than the Index4 (0.145 ± 0.000; t3348 = − 59.757, p < 0.001). An epoch that the Index3 values of ≥ 3.2-s segments exceed the Index4 was considered as the TS for the 5th testing point. In the NREM1 + NREM2 of the stage N, the Index4 (0.488 ± 0.001) was significantly higher than the Index3 (0.206 ± 0.001; t75258= 171.850, p < 0.001). According to prior experience, delta band power of the NREM2 stage was higher than that of the NREM1 stage. The present study considered an epoch as the NREM2 stage if delta band power ratio > 0.5 occurred at ≥ 3.2-s segments for the 6th testing point of the second part decision tree. Otherwise, the epoch was considered as the NREM1 stage.

The TS and REM stages often exhibited theta activity. The TS also embedded higher alpha amplitude of high-amplitude spindle exclusively. In the stage R of the first part decision tree, an epoch that alpha band (10.5–15 Hz) power ratio > 0.3 occurred ≥ 1.2-s segment was considered as the TS. Otherwise, it was considered as the REM stage.

According to the two-part decision tree, the 5-stage scoring was finished. Furthermore, the present study took the NREM1, NREM2 and TS together as the NREM stage for the 3-stage analysis.

Statistics

Two experts used the established rules for visual scoring and did not discuss the data each other. The five-stage (wake, NREM1, NREM2, TS, REM) and three-stage (wake, NREM, REM) scorings were compared here. For the 3-stage analysis, experts considered NREM1, NREM2 and TS as NREM. The automatic staging hypnogram and manual staging were performed. Figure 8 displays three hypnograms scored by expert 1, expert 2 and automatic staging, respectively. The present study compared the automatic scoring with expert 1 and expert 2. For a given epoch, four scoring situations existed: (1) both the two manual scores and the automatic score were identical; (2) the two manual scores were the same but differed from the automatic score; (3) difference in the two manual scorers and the automatic score consenting with a manual scorer; (4) difference among all scorings. The expert consensus scoring defined as epochs in the same sleep stage by the two experts. To reduce possible confusion epochs, epochs with consensus scoring by two experts were used throughout the entire validation procedure.

Fig. 8.

Fig. 8

Light phase (8:00 A.M. to 5:00 P.M.) hypnogram of No. 9. Top two panels are manual staging hypnograms from two experts, and bottom panel is a hypnogram from the automatic staging

The performance between the expert consensus and staging method was assessed by numerous indexes, including sensitivity (SE), specificity (SP), number of true positive (PPV), number of true negative (NPV) of each stage, overall agreement, and kappa coefficient (κ). Definitions of all indexes were shown below.

SE=Number of true positivesNumber of true positives+Number of false negatives 12
SP=Number of true negativesNumber of true negatives+Number of false positives 13
PPV=Number of true positivesNumber of true positives+Number of false positives 14
NPV=Number of true negativesNumber of true negatives+Number of false negatives 15
κ=Pra-Pre1-Pre. 16

Pr(a) is the relative observed agreement among scorings, and Pr(e) is the hypothetical probability of chance agreement. The Cohen’s kappa coefficient is a statistical measure of the inter-rater agreement [44]. Cohen’s kappa measures the agreement between two scorings who classify N items into C mutually exclusive categories. The observed data had been used to calculate the probabilities of each scoring. The interpretation of kappa coefficients by Landis and Koch [45] is as follows: poor agreement with κ < 0.00, slight agreement with 0.00 ≤ κ ≤ 0.20, fair agreement with 0.21 ≤ κ ≤ 0.40, moderate agreement with 0.41 ≤ κ ≤ 0.60, substantial agreement with 0.61 ≤ κ ≤ 0.80, and excellent agreement with κ > 0.80.

In the acid-induced widespread hyperalgesia, paw withdrawal thresholds of bilateral hindlimbs were analyzed by Friedman repeated measures ANOVA on rank, if appropriate, followed by Dunnett’s test. Changes of 5 wake–sleep stages per hour or 3 wake–sleep stages per hour between the two groups were analyzed using two-way repeated measures ANOVA with one factor repetition, if appropriate, followed by post hoc Bonferroni t test. All data of this study were expressed as the means and standard error of the mean (SEM). Level of statistical significance was considered to be p < 0.05.

Acknowledgements

The authors thank Ms. Yu-Hsing Huang for her valuable support in the animal care.

Abbreviations

EMG

electrotromyogram

EOG

electrooculogram

EEG

electroencephalogram

Wake

wakefulness

NREM

non-rapid eye movement

REM

rapid eye movement

TS

transition sleep

Authors’ contributions

TYW, SFL and FZS performed experiment and prepared materials of the manuscript. JHX and YTL set up the system hardware and data collected software. CEK created experimental design and analyzed data. CPY and TYW supervised the project and wrote manuscript. All authors read and approved the final manuscript.

Funding

This work was supported by the Ministry of Science and Technology (MOST106-2218-E-035-013-MY2, MOST108-2634-F-006-012, MOST108-2410-H-006-042, MOST106-2218-E-006-019, MOST107-2221-E-006-217-MY2, 108-2221-E-035-064 and MOST106-2221-E-006-245).

Availability of data and materials

The datasets generated during and/or analyzed during the current study are available from the corresponding author for reasonable request.

Ethics approval and consent to participate

The study received ethics approval from the Institute Review Board of National Cheng Kung University Hospital.

Consent for publication

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Footnotes

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Ting-Ying Wei, Email: p78981192@ncku.edu.tw.

Chung-Ping Young, Email: cpyoung@ncku.edu.tw.

Yu-Ting Liu, Email: yuting@mail.cjcu.edu.tw.

Jia-Hao Xu, Email: q5697104@ncku.edu.tw.

Sheng-Fu Liang, Email: sfliang@ncku.edu.tw.

Fu-Zen Shaw, Email: fzshaw@mail.ncku.edu.tw.

Chin-En Kuo, Email: cekuo@fcu.edu.tw.

References

  • 1.Moldofsky H. Sleep and pain. Sleep Med Rev. 2001;5(5):385–396. doi: 10.1053/smrv.2001.0179. [DOI] [PubMed] [Google Scholar]
  • 2.Roizenblatt S, Moldofsky H, Benedito-Silva AA, Tufik S. Alpha sleep characteristics in fibromyalgia. Arthritis Rheumatol. 2001;44(1):222–230. doi: 10.1002/1529-0131(200101)44:1<222::AID-ANR29>3.0.CO;2-K. [DOI] [PubMed] [Google Scholar]
  • 3.Chen HY, Kuo TB, Shaw F-Z, Lai CJ, Yang CC. Sleep-related vagotonic effect of zolpidem in rats. Psychopharmacology. 2005;181(2):270–279. doi: 10.1007/s00213-005-2236-0. [DOI] [PubMed] [Google Scholar]
  • 4.Kuo TB, Shaw F-Z, Lai CJ, Yang CC. Asymmetry in sympathetic and vagal activities during sleep–wake transitions. Sleep. 2008;31(3):311. doi: 10.1093/sleep/31.3.311. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Shaw F-Z, Lee S-Y, Chiu TH. Modulation of somatosensory evoked potentials during wake–sleep states and spike-wave discharges in the rat. Sleep. 2006;29(3):285–293. doi: 10.1093/sleep/29.3.285. [DOI] [PubMed] [Google Scholar]
  • 6.Kuo TB, Shaw F-Z, Lai CJ, Lai C-W, Yang CC. Changes in sleep patterns in spontaneously hypertensive rats. Sleep New York Then Westchester. 2004;27(3):406–416. doi: 10.1093/sleep/27.3.406. [DOI] [PubMed] [Google Scholar]
  • 7.Dragomir A, Akay Y, Curran AK, Akay M. Complexity measures of the central respiratory networks during wakefulness and sleep. J Neural Eng. 2008;5(2):254. doi: 10.1088/1741-2560/5/2/015. [DOI] [PubMed] [Google Scholar]
  • 8.Fang G, Xia Y, Lai Y, You Z, Yao D. Long-range correlations of different EEG derivations in rats: sleep stage-dependent generators may play a key role. Physiol Meas. 2010;31(6):795. doi: 10.1088/0967-3334/31/6/005. [DOI] [PubMed] [Google Scholar]
  • 9.Roizenblatt S, Neto NSR, Tufik S. Sleep disorders and fibromyalgia. Curr Pain Headache Rep. 2011;15(5):347–357. doi: 10.1007/s11916-011-0213-3. [DOI] [PubMed] [Google Scholar]
  • 10.Sluka KA, Kalra A, Moore SA. Unilateral intramuscular injections of acidic saline produce a bilateral, long-lasting hyperalgesia. Muscle Nerve. 2001;24(1):37–46. doi: 10.1002/1097-4598(200101)24:1<37::aid-mus4>3.0.co;2-8. [DOI] [PubMed] [Google Scholar]
  • 11.Costa-Miserachs D, Portell-Cortés I, Torras-Garcia M, Morgado-Bernal I. Automated sleep staging in rat with a standard spreadsheet. J Neurosci Methods. 2003;130(1):93–101. doi: 10.1016/s0165-0270(03)00229-2. [DOI] [PubMed] [Google Scholar]
  • 12.Robert C, Guilpin C, Limoge A. Automated sleep staging systems in rats. J Neurosci Methods. 1999;88(2):111–122. doi: 10.1016/s0165-0270(99)00027-8. [DOI] [PubMed] [Google Scholar]
  • 13.Louis RP, Lee J, Stephenson R. Design and validation of a computer-based sleep-scoring algorithm. J Neurosci Methods. 2004;133(1):71–80. doi: 10.1016/j.jneumeth.2003.09.025. [DOI] [PubMed] [Google Scholar]
  • 14.Crisler S, Morrissey MJ, Anch AM, Barnett DW. Sleep-stage scoring in the rat using a support vector machine. J Neurosci Methods. 2008;168(2):524–534. doi: 10.1016/j.jneumeth.2007.10.027. [DOI] [PubMed] [Google Scholar]
  • 15.Rytkönen K-M, Zitting J, Porkka-Heiskanen T. Automated sleep scoring in rats and mice using the naive Bayes classifier. J Neurosci Methods. 2011;202(1):60–64. doi: 10.1016/j.jneumeth.2011.08.023. [DOI] [PubMed] [Google Scholar]
  • 16.Stephenson R, Caron AM, Cassel DB, Kostela JC. Automated analysis of sleep-wake state in rats. J Neurosci Methods. 2009;184(2):263–274. doi: 10.1016/j.jneumeth.2009.08.014. [DOI] [PubMed] [Google Scholar]
  • 17.Zeng T, Mott C, Mollicone D, Sanford LD. Automated determination of wakefulness and sleep in rats based on non-invasively acquired measures of movement and respiratory activity. J Neurosci Methods. 2012;204(2):276–287. doi: 10.1016/j.jneumeth.2011.12.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Gross BA, Walsh CM, Turakhia AA, Booth V, Mashour GA, Poe GR. Open-source logic-based automated sleep scoring software using electrophysiological recordings in rats. J Neurosci Methods. 2009;184(1):10–18. doi: 10.1016/j.jneumeth.2009.07.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Ruigt G, Van Proosdij J, Van Wezenbeek L. A large scale, high resolution, automated system for rat sleep staging. II. Validation and application. Electroencephalogr Clin Neurophysiol. 1989;73(1):64–71. doi: 10.1016/0013-4694(89)90020-5. [DOI] [PubMed] [Google Scholar]
  • 20.Neckelmann D, Olsen O, Fagerland S, Ursin R. The reliability and functional validity of visual and semiautomatic sleep/wake scoring in the Moll-Wistar rat. Sleep. 1994;17(2):120–131. doi: 10.1093/sleep/17.2.120. [DOI] [PubMed] [Google Scholar]
  • 21.Ishizaki R, Shinba T, Mugishima G, Haraguchi H, Inoue M. Time-series analysis of sleep–wake stage of rat EEG using time-dependent pattern entropy. Physica A. 2008;387(13):3145–3154. [Google Scholar]
  • 22.Kohtoh S, Taguchi Y, Matsumoto N, Wada M, Huang ZL, Urade Y. Algorithm for sleep scoring in experimental animals based on fast Fourier transform power spectrum analysis of the electroencephalogram. Sleep Biol Rhythms. 2008;6(3):163–171. [Google Scholar]
  • 23.Bergmann BM, Winter JB, Rosenberg RS, Rechtschaffen A. NREM sleep with low-voltage EEG in the rat. Sleep. 1987;10:11. doi: 10.1093/sleep/10.1.1. [DOI] [PubMed] [Google Scholar]
  • 24.Robert C, Karasinski P, Natowicz R, Limoge A. Adult rat vigilance states discrimination by artificial neural networks using a single EEG channel. Physiol Behav. 1996;59(6):1051–1060. doi: 10.1016/0031-9384(95)02214-7. [DOI] [PubMed] [Google Scholar]
  • 25.Karasinski P, Stinus L, Robert C, Limoge A. Real-time sleep-wake scoring in the rat using a single EEG channel. Sleep. 1994;17(2):113–119. doi: 10.1093/sleep/17.2.113. [DOI] [PubMed] [Google Scholar]
  • 26.Witting W, Van der Werf D, Mirmiran M. An on-line automated sleep-wake classification system for laboratory animals. J Neurosci Methods. 1996;66(2):109–112. doi: 10.1016/0165-0270(96)00027-1. [DOI] [PubMed] [Google Scholar]
  • 27.Schaltenbrand N, Lengelle R, Toussaint M, Luthringer R, Carelli G, Jacqmin A, Lainey E, Muzet A, Macher J-P. Sleep stage scoring using the neural network model: comparison between visual and automatic analysis in normal subjects and patients. Sleep. 1996;19(1):26–35. doi: 10.1093/sleep/19.1.26. [DOI] [PubMed] [Google Scholar]
  • 28.Liang S-F, Kuo C-E, Hu Y-H, Cheng Y-S. A rule-based automatic sleep staging method. J Neurosci Methods. 2012;205(1):169–176. doi: 10.1016/j.jneumeth.2011.12.022. [DOI] [PubMed] [Google Scholar]
  • 29.Anderer P, Gruber G, Parapatics S, Woertz M, Miazhynskaia T, Klosch G, Saletu B, Zeitlhofer J, Barbanoj MJ, Danker-Hopfe H, et al. An E-health solution for automatic sleep classification according to Rechtschaffen and Kales: validation study of the Somnolyzer 24 × 7 utilizing the Siesta database. Neuropsychobiology. 2005;51(3):115–133. doi: 10.1159/000085205. [DOI] [PubMed] [Google Scholar]
  • 30.Chapotot F, Becq G. Automated sleep–wake staging combining robust feature extraction, artificial neural network classification, and flexible decision rules. IJACS. 2009 [Google Scholar]
  • 31.Anderer P, Moreau A, Woertz M, Ross M, Gruber G, Parapatics S, Loretz E, Heller E, Schmidt A, Boeck M, et al. Computer-assisted sleep classification according to the standard of the American Academy of Sleep Medicine: validation study of the AASM version of the Somnolyzer 24 x 7. Neuropsychobiology. 2010;62(4):250–264. doi: 10.1159/000320864. [DOI] [PubMed] [Google Scholar]
  • 32.Sun H, Jia J, Goparaju B, Huang GB, Sourina O, Bianchi MT, Westover MB. Large-scale automated sleep staging. Sleep. 2017;40:10. doi: 10.1093/sleep/zsx139. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Acharya UR, Chua EC, Chua KC, Min LC, Tamura T. Analysis and automatic identification of sleep stages using higher order spectra. Int J Neural Syst. 2010;20(6):509–521. doi: 10.1142/S0129065710002589. [DOI] [PubMed] [Google Scholar]
  • 34.Liang S, Kuo C, Hu Y, Pan Y, Wang Y. Automatic stage scoring of single-channel sleep EEG by using multiscale entropy and autoregressive models. IEEE Trans Instrum Meas. 2012;61(6):1649–1657. [Google Scholar]
  • 35.Zoubek L, Charbonnier S, Lesecq S, Buguete A, Chapotot F. Feature selection for sleep/wake stages classification using data driven methods. Biomed Signal Proces. 2007;2(3):171–179. [Google Scholar]
  • 36.Sinha RK. Artificial neural network and wavelet based automated detection of sleep spindles, REM sleep and wake states. J Med Syst. 2008;32(4):291–299. doi: 10.1007/s10916-008-9134-z. [DOI] [PubMed] [Google Scholar]
  • 37.Oropesa E, Cycon H. Sleep stage classification using wavelet transform and neural network. ICSI Tech Rep. 1999;5:32. [Google Scholar]
  • 38.Corsi-Cabrera M, Pérez-Garci E, Del Río-Portilla Y, Ugalde E, Guevara MA. EEG bands during wakefulness, slow-wave, and paradoxical sleep as a result of principal component analysis in the rat. Sleep. 2001;24(4):374–380. doi: 10.1093/sleep/24.4.374. [DOI] [PubMed] [Google Scholar]
  • 39.Liu Y-T, Shao Y-W, Yen C-T, Shaw F-Z. Acid-induced hyperalgesia and anxio-depressive comorbidity in rats. Physiol Behav. 2014;131:105–110. doi: 10.1016/j.physbeh.2014.03.030. [DOI] [PubMed] [Google Scholar]
  • 40.Goeller CJ, Sinton CM. A microcomputer-based sleep stage analyzer. Comput Methods Programs Biomed. 1989;29(1):31–36. doi: 10.1016/0169-2607(89)90087-4. [DOI] [PubMed] [Google Scholar]
  • 41.Shaw F-Z, Lai CJ, Chiu TH. A low-noise flexible integrated system for recording and analysis of multiple electrical signals during sleep–wake states in rats. J Neurosci Methods. 2002;118(1):77–87. doi: 10.1016/s0165-0270(02)00146-2. [DOI] [PubMed] [Google Scholar]
  • 42.Tabachnick BG, Fidell LS. Using multivariate statistics. 2001.
  • 43.Cleophas TJ, Zwinderman AH. Bonferroni t-test. Statistical analysis of clinical data on a pocket calculator: statistics on a pocket calculator. New York: Springer; 2011. pp. 41–42. [Google Scholar]
  • 44.Cohen J. A coefficient of agreement for nominal scales. Educ Psychol Measur. 1960;20(1):37–46. [Google Scholar]
  • 45.Landis JR, Koch GG. The measurement of observer agreement for categorical data. Biometrics. 1977;33(1):159–174. [PubMed] [Google Scholar]

Associated Data

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

Data Availability Statement

The datasets generated during and/or analyzed during the current study are available from the corresponding author for reasonable request.


Articles from BioMedical Engineering OnLine are provided here courtesy of BMC

RESOURCES