Introduction

Obstructive sleep apnea (OSA) is a common sleep disorder. With the increase of obesity rate, its prevalence is also increasing1. It is a chronic multisystem disease, which may lead to a variety of acute clinical problems at the same time, including hypertension, cardio cerebral stroke, mechanical infarction, etc.2 OSA causes repeated airflow interruption and/or reduction due to stenosis of the upper airway during sleep, resulting in fragmentation of sleep and hypoxemia3. These affect the neurobehavioral function of OSA patients, for example, the risk of car accident in OSA patients increases by 2–10 times4.

Despite the prevalence of OSA, its underlying neurophysiological process is unclear. Clinical studies have shown that the EEG of OSA patients has changed, such as changes in power spectrum and energy5,6. Zhou et al. found that the sample entropy of sleep apnea syndrome patients was lower than healthy controls in each sleep stage7. Grenèche et al. found that the power of wakefulness EEG in OSA patients after 24 h of sleep deprivation was higher than healthy controls8. D’Rozario et al. found that the wakefulness EEG power spectrum and detrended fluctuation analysis (DFA) of OSA patients were related to simulated driving performance, and the scale index α of DFA can be used as an indicator of simulated driving performance9,10. Kim et al. used DFA to analyze the sleep onset period (SOP) of narcolepsy patients, and found that the SOP of narcolepsy patients was significantly larger compared with healthy controls11.

These studies provide a window for us to understand OSA patients’ EEG. However, such studies are relatively few and focus on the difference of neurobehavioral ability (such as simulated driving) of OSA patients and healthy subjects8,9,10. To the best of our knowledge, there have been no reports of studying the EEG of OSA patients from the perspective of microstate. EEG microstate employs the information of the entire time and space of EEG to characterize the rapid spontaneous change of scalp potential with time12. Such this approach can provide a more informative framework and global interpretability without any type of a priori hypothesis13, in contrast with other EEG analysis techniques, which evaluate the brain’s electrical field in a specific location (for example by a priori choice of electrodes of interest) or at determinate time intervals or in specific frequency bands14. According to the microstate theory, EEG signals are composed of a series of topographic maps with two remarkable properties12,15: (1) EEG signals can be expressed with a small amount of topographic maps; (2) before the transition from one topographic map to another, a single topographic map dominates with duration of about 80–120 ms. These metastable states are microstates, which are described as the basic components or "thought atoms" of human information processing. Therefore, the microstate analysis method is more used to study human's cognition and thinking, as well as psychotic disorders15. However, few researchers use it to study sleep, only the healthy subjects’ and narcolepsy patients’ sleep16,17. Brodbeck et al. found that healthy subjects had 4 microstates during the wakefulness and NREM sleep stages16. Kuhn et al. found that narcoleptic patients in early NREM sleep had an additional microstate E during the N3 phase17. Dose the microstates of EEG in OSA patients change? If the microstates change, is there any correlation between microstate parameters and EEG markers such as power spectrum5,6,8,9, sample entropy7,18, and DFA9,10,11?

Therefore, we hypothesized that there were abnormal microstates in OSA patients during sleep obstructive apnea or obstructive hypopnea, and the microstate parameters were correlated with power spectrum, sample entropy and DFA.

Results

OSA of sleep stages

The stages of sleep include waking, non-rapid eye movement (N1, N2, N3), and rapid eye movement (R) 40. OSA may occur at any time in the sleep cycle, and the number of obstructive hypopnea (OH) occurrences in 4 sleep stages in 100 OSA patients in Subgroup_I was counted. Obstructive hypopnea occurs more frequently in N1, N2 and R stages, less in N3 stage, and least in W stages. Patients with more OH in N1 and N2 stages also have more OH in R stages, such as Sub61 and Sub80. However, patients with more OH in R stages may not have more OH in N1 and N2 stages, such as Sub45, Sub73, Sub87, Sub96, and Sub97.

OSA microstates

We used CARTOOL software19 to estimate the microstates in OSA_OH (OSA with obstructive hypopnea) patients and controls, as shown in Fig. 1. The controls have four similar microstates A, B, C and D in N1, N2, N3 and R stages (ignoring the polarity of microstates19,20, which is similar to the previously reported microstate of sleep EEG16,17. The fifth microstate E of OSA_OH appears in N1_OH and N3_OH stages. Since there was no corresponding microstate E in controls, we made a comparison in two parts :(1) 4 typical microstates A, B, C and D were estimated respectively in OSA_OH patients and controls; (2) 5 microstates A, B, C, D and E found in N1-OH were used as topographic map templates, which were employed to fit all the sleep stages in OSA patients with and without obstructive hypopnea, that is, 5 microstates A,B,C and D and E were estimated in OSA_OH (OSA with obstructive hypopnea) and OSA_withoutOH (OSA without obstructive hypopnea) patients. Four microstates explained 71.7%, 73.4%, 76.4%, and 72.3% of the global variances in four sleep stages in OSA_OH patients, while five microstates explained 76.1%, 74.2%, 76.5%, and 72.1% of the global variances.

Figure 1
figure 1

Microstates in W, N1, N2, N3 and R sleep stages in controls and OSA_OH patients.

The calculated microstate parameters include: Global Explained Variance (Gev (%)), Mean Duration (MD (ms)), Time Coverage (TC (%)), Occurrence (Oc (/s)), and Transition Probability (TP).

The 2 × 4 × 4 (2 groups, 4 microstates, 4 microstate parameters (Gev, MD, TC, Oc)) and 2 × 5 × 4 multivariate ANOVA for each sleep stage was performed for OSA_OH vs. Control and OSA_OH vs. OSA_withoutOH, respectively, and the Bonferroni post-hoc tests were performed. The total correction models of OSA_OH vs. Control (N1: F(31,928) = 19.283, P = 0.000; N2: F(31,944) = 28.405, P = 0.000; N3: F(31,576) = 11.915, P = 0.000; R: F(31,880) = 20.430, P = 0.000) and OSA_OH vs. OSA_withoutOH (N1: F(39,2280) = 38.047, P = 0.000; N2: F(39,2296) = 28.104, P = 0.000; N3: F(39,1938) = 27.316, P = 0.000; R: F(39,2232) = 28.407, P = 0.000) showed significant differences. Then, a two-sided one-sample t test was performed on the microstate parameters within group, with significant differences indicated by stars in Tables 1, 2 and 3.

Table 1 Microstate parameters of 4 microstates in controls in 4 sleep stages.

In Table 1, there were significant differences in parameters of microstate A, B, C and D in the four sleep stages between OSA_OH patients and controls. In Table 2, BOC, CGev, CMD, CTC, DMD, DOC in N1-OH, CGev, CTC, COC, DTC, DOC in N2-OH, ATC, CTC in N3-OH, BOC, CGev, CMD,CTC, DMD, DOC in R-OH were significantly different from those of OSA_withouOH patients. The test results of transition probability were shown in Appendix. This indicated that the microstates C and D in OSA_OH patients changed with the typical four microstate states as the fitting template, and the CTC of OSA_OH was larger than that of OSA_withoueOH (N1: 0.28 ± 0.05 vs. 0.25 ± 0.01; N2: 0.29 ± 0.06 vs. 0.25 ± 0.00; N3: 0.27 ± 0.05 vs. 0.26 ± 0.00; R: 0.28 ± 0.05 vs. 0.26 ± 0.01), and the DOC of OSA_OH was smaller than that of OSA_withoueOH (N1: 3.8 ± 0.01 vs. 4.0 ± 0.00; N2: 3.5 ± 0.01 vs. 3.7 ± 0.00; N3: 3.5 ± 0.01 vs. 3.7 ± 0.00; R: 3.8 ± 0.01 vs. 4.0 ± 0.00). At the same time, transition probability TPA→C, TPB→C, TPA→D, TPB→D and TPD→C had significant differences in the four sleep stages. As shown in Fig. 2, the transition probability of microstates A → C, B → C, A → D, B → D, D → C in all sleep stages were relatively large.

Table 2 Microstate parameters of 4 microstates in OSA-OH patients in 4 sleep stages.
Figure 2
figure 2

Transition probabilities (TP) of 4 microstates in controls, OSA_OH and OSA_withoutOH patients.

In Table 3, although microstate E was only found in OSA _OH patients in N1-OH and N3- OH stages through conventional microstate calculation process, we found that there was a small amount of microstate E in each sleep stage after fitting all the sleep stages with the five microstates. Microstate E accounted for larger global variance (9%) in N1-OH. However, compared with microstates A, B, C and D during all sleep stages, microstates E occurred for shorter period of time and accounted for lower proportion of EEG signals.

Table 3 Microstate parameters of 5 microstates in OSA-OH patients in 4 sleep stages.

In Table 3, the AOC, BMD, CGev, CMD, CTC, DTC, DOC, EGev, ETC, EOC in N1-OH, CGev, CTC, COC, ETC in N2-OH, CGev, CTC, ETC, EOC in N3-OH, AGev, CTC, DGev, DTC, EOC in R-OH were significantly different from those of OSA_withoutOH patients. Among these parameters, it was mainly CTC and ETC that had changed. Compared with the results of the four microstates in Table 2, CTC of the four sleep stages were all smaller, which indicated that part of the EEG segments that were originally labeled as microstate C were labeled as microstate E or other unlabeled microstates. Therefore, CTC and ETC had significant differences. However, the CTC of OSA_OH was still larger than that of OSA_withoutOH, while the ETC and ESD of OSA_OH were smaller than that of OSA_withoutOH, as shown in Table 4. The transition probability from microstates A, B, D to C, E, and from microstate E to C all had significant differences, in which the transition probability from microstates A, B, D, E to C was much greater than that of E (0.31 vs. 0.10), as shown in Table 5 (only part of the transition probabilities with significant differences were given). And the transition probability from microstates A, B, D to C was greater than that of OSA_withoutOH, while the transition probability from microstates A, B, C, D to E was less than that of OSA_withoutOH, as shown in Fig. 3. This indicated that the microstates A, B, C, D and E transferred to microstates C with a high probability, and to E with a low probability after the occurrence of obstructive hypopnea.

Table 4 Significantly different microstate parameters CTC, ETC, Eoc of 5 microstates in OSA_OH (marked 1 in the table) and OSA_withoutOH (marked 0 in the table) patients.
Table 5 Significantly different transition probabilities of 5 microstates in OSA_OH and OSA_withoutOH patients (– indicates no significance in the table).
Figure 3
figure 3

Transition probabilities (TP) of 5 microstates in OSA_OH and OSA_withoutOH patients.

Power, sample entropy and DFA of OSA patients

The power, sample entropy and DFA of OSA_OH vs. Control and OSA_OH vs. OSA_withoutOH were respectively analyzed by 2 × 7 multivariate ANOVA, showing significant differences. Then, a two-sided one-sample t test was conducted within group, as shown in Figs. 4 and 5.

Figure 4
figure 4

The delta, theta, alpha, sigma and beta power in four sleep stages in controls, OSA_OH and OSA_withoutOH patients ( P* < 0.05, P** < 0.05).

Figure 5
figure 5

Sample entropy and FDA in four sleep stages in controls, OSA_OH and OSA_withoutOH patients (P* < 0.05, P** < 0.05).

For OSA_OH vs. control, there was a significant difference in beta power in N1 (P = 0.026), in sigma power in N2 (P = 0.02), in delta, theta and alpha power in N3 stage (P = 0.021; P = 0.027; P = 0.007), in beta power in R (P = 0.021). For OSA_OH vs. OSA_withoutOH, there was a significant difference in beta power in N2 (P = 0.02), in beta power in N3 (P = 0.04), in theta power in R (P = 0.016).

The sample entropy of OSA_OH vs. control showed significant difference only in N1 (P = 0.015), while FDA showed significant difference in N1, N2, N3, R (P = 0.005; P = 0.001; P = 0.005; P = 0.005). The sample entropy of OSA_OH vs. OSA_withoutOH showed significant difference only in N1, N2 (P = 0.043; P = 0.042), and there was no significant difference in FDA.

Correlation between microstate parameters and power, sample entropy and DFA

The correlation between the parameters of 4 and 5 microstates and power, sample entropy and DFA in OSA_OH and OSA_withoutOH patients was respectively compared, as shown in Tables 6 and 7.

Table 6 Correlation between microstate parameters of 4 microstates and power, sample entropy and DFA in OSA_OH and OSA_withoutOH patients (P < 0.05/7, i.e., 7 being the number of microstates and power, sample entropy and DFA).
Table 7 Correlation between microstate parameters of 5 microstates and power, sample entropy and DFA in OSA_OH and OSA_withoutOH patients.

In Table 6, OSA_ withoutOH had no correlation in the four sleep stages, while OSA_OH had correlation only in N1, and only the parameters of microstate D was correlated with delta, alpha and beta power. They were positively correlated with delta power (r = 0.380, P = 0.007), and negatively correlated with alpha and beta power (r = − 0.362, P = 0.001; R = − 0.382, P = 0.006), and the TPB→C was positively correlated with alpha power (r = 0.388, P = 0.005).

In Table 7, only parameters of microstate D in OSA_OH were correlated with delta and alpha power in N1, and the TPB→C and TPE→C was positively correlated with alpha power. The TPA→B and TPA→E were related to FDA in N2; TPA→E were related to FDA in N3; TPC→E were related to FDA in R. The five microstate parameters in OSA_withoutOH patients were all not correlated in four sleep stages, but various transition probabilities (TPX→Y) were correlated with delta and theta power and sample entropy (SE) and FDA in N1; TPX→Y were correlated with delta, theta, alpha power and FDA in N2; TPX→Y were only correlated with sigma power in N3; TPX→Y were correlated with delta, theta, alpha, sigma, beta power and SE and FDA in R.

Discussion

Microstate reflects the instantaneous state of the brain, and can identify discontinuous and nonlinear changes of global functional brain state under very high temporal resolution12,15. It has been found that four canonical microstates A, B, C and D are related to the activities of the posterior cingulate cortex21. Brodbeck et al. investigated wakefulness and NREM sleep of healthy subjects, and found that microstate C was dominant in W, N1 and N3 stages, while microstate B was dominant in N2 stage. With the increase of sleep depth, the parameter GEV of microstate D gradually decreased16. Kuhn et al. investigated early NREM sleep of narcoleptic patients, and found that microstate C and D were dominant in N1 stage, microstate D was still dominant in N2 and N3 stages, and an extra microstate E appeared in N3 stage17.

Through microstate analysis of controls, OSA_OH and OSA_withoutOH patients in 4 sleep stages, we found that the microstate C and D changed during 4 sleep periods in OSA_OH patients compared to controls and OSA_withoutOH patients. The parameter Time Coverage of microstate C increased, while Occurrence of microstate D decreased. Previous studies have shown that microstates C, D were a phenotype of schizophrenia22. da Cruz et al. found that patients with schizophrenia and their siblings showed increased presence of microstate class C and decreased presence of microstate class D compared to controls23. de Bock et al. found that microstate D was significantly decreased in psychosis in ultra-high-risk (UHR) patients with a future psychotic transition, suggesting its potential as a selective biomarker of future transition in UHR patients24. Kuhn et al. found that the duration of all the microstates in the N3 stage of narcoleptic patients was smaller than that of controls, and the authors believed that the microstate D of narcoleptic patients played a more important role than that of controls17. Microstate D was associated with attention networks according to EEG-fMRI studies25, so Kuhn et al. believed that the persistence of activities in the attention network of narcolepsy patients during sleep was higher17. Therefore, we believed that microstates C and D might also be a potential biomarker for OSA patients.

In our study, we also found that the fifth microstate E appeared in N1-OH, but the global variance of microstate E was low, only 9.0%. Although the proportion of microstate E in our study was small, it could not be considered that microstate E was caused by noise. First of all, statistical analysis showed that the parameters of microstate E (Gev (P = 0.000), TC (P = 0.000) and Oc (P = 0.000)) in OSA_OH patients were significantly different. Secondly, CARTOOL software19 was used to perform K-means clustering for the four sleep periods of OSA_OH and OSA_withoutoh patients. Except for the N1-OH stage, the optimal number of clustering calculated at other sleep stages was 8–15. Topographic map templates obtained from K-means clustering included four typical microstates A, B, C and D, as well as microstate E. In contrast, the optimal number of clusters in the four sleep stages in controls was always 4. When we set the number of clusters to 5–15 and checked these topographic map templates, no microstate E was found in them. Therefore, we thought that the microstate E might exist in both OSA_OH and OSA_withoutOH patients.

In the microstate calculation process, K-means clustering is a common practice, but this method has some defects in the microstate modeling26,27, and it may not be able to find the optimal number of clustering. In addition, there are only 6 EEG channels in ISRUC SLEEP database28. Although previous studies have proved that 4 typical microstate topographic maps were not limited by low spatial sampling29, this study only focused on 4 typical microstates, and whether the remaining microstates were affected by the number of electrodes remains to be studied. Therefore, we believed that it was necessary to expand the sample size, increase the number of electrodes, and improve the clustering method to further study the cause of the fifth microstate E in OSA patients in N1-OH.

Through correlation analysis, only parameters of microstate D in OSA_OH were correlated with delta and alpha power in N1, and the TPB→C and TPE→C was positively correlated with alpha power. Previous studies have shown that there was no conclusive result on the correlation between the four types of EEG microstates and specific power spectrum distribution25,30. However, Javed et al. believed that the uncertainty of spectral correlation of microstates involved a variety of factors, which could be eliminated by Hilbert spectral analysis31. The authors used Hilbert transform to transform EEG signals into delta, theta, alpha, beta, gamma bands, and then calculated the microstates in each sub-band, and the results showed that the band-wise topographies extracted using the proposed method had statistically significant similarity with full band microstates and achieved high percentage for each band in explaining EEG data variance compared to the traditional filtering method31. The authors also believed that an average frequency range of 10–15 Hz dominated the formation and the temporal dynamics of microstates31. Milz et al. investigated head-surface localization- or source-dependent power effects on the occurrence of the EEG microstate classes, and found that the EEG microstate topography was predominantly determined by intra-cortical sources in the alpha band32. Croce et al. investigated EEG microstates associated with intra- and inter-subject alpha variability, and observed an increase in the metrics of microstate B, with the level of intra-subject amplitude alpha oscillations, together with lower coverage of microstate D and a higher frequency of microstate C33. Although their study found the relationship between alpha power and microstate metrics, the authors also pointed out that there was no specificity for alpha power. The modulation effect on microstate metrics is not unique to the alpha band. It may be caused by fluctuations in other frequency bands33. Wegner et al. found that resting-state EEG microstates were largely determined by alpha frequencies (8–12 Hz) and microstates occur periodically with twice the alpha frequency34. Therefore, we believed that the intensity and spatial distribution of alpha band activity in the cortex of OSA patients changed in N1-OH, leading to changes in microstates C and D, which might also be the cause of microstates E.

Sample entropy is an improved method for measuring the complexity of time series, and it has applications in evaluating the complexity of physiological time series and diagnosing pathological state18,35,36. Zhou et al. found that the sample entropy of sleep apnea syndrome patients was lower than that of controls in each sleep stage7. We found that the sample entropy of OSA patints was significantly different from that of controls only in N1 (P = 0.015). Murphy et al. employed sample entropy to calculate the complexity of the microstate sequence over the entire template length in subjects with psychotic disorders18. Their results showed that there was no correlation between sequence length of microstates and entropy in psychiatric patients and controls18. Our study also showed that the microstate parameters were not correlated with the sample entropy.

EEG signal has a long-term correlation of dynamic oscillation characteristics37,38. Detrended fluctuation analysis (DFA) quantifies the time-domain fluctuation of time series by power-law method, and describes the scaling behavior or long-range correlation of time series with scale index, which is suitable for studying the correlation of long-range power-law functions of various unstable time series. Our study showed that the scale index of OSA patients and controls was 0.5 < α < 1.0, which indicated that there was a long-range power-law continuous correlation of EEG signal (with self-similarity of fractal dimension). The scale index α of OSA patients was higher than controls in four sleep stages, and the scale index α of OSA patients in N1-OH and N3-OH was higher than that of N2-OH and R-OH. D’Rozario et al. found that the DFA of the OSA patients was higher than controls with eyes opening and closing, and the DFA of the two groups with eyes opening was higher than that with eyes closing9. Previous studies have shown that the microstate of healthy subjects exhibit scale-free and self-similar dynamic characteristics 39. Murphy et al. carried out fractal analysis on the microstate of psychiatric patients, and found that the microstate sequence has a long-term time-dependent18. However, our study showed that the microstate parameters were not related to FDA.

However, when the five microstates were used as the fitting template, all the transition probabilities in OSA_OH patients in N1 were not correlated with sample entropy and FDA, while the transition probabilities of microstates A → B, A → E and C → E in N2, N3 and R were correlated with FDA. In OSA_withoutOH patients, there was no correlation between the five microstate parameters in the four sleep stages, but TPX→Y in N1 and R stages were correlated with sample entropy, and TPX→Y in N1, N2 and R stages were correlated with FDA. Our study seemed to show that there was a difference in the correlation of transition probability between OSA_OH and OSA_withoutOH patients after increasing the microstate E, but at present, there were more studies on microstate parameter (Global Explained Variance, Mean Duration, Time coverage and Occurrence14,16,17,18,23,24,26,29,31,32,33,34, but few studies on transfer probability 17,31.

At present, there is no simple and effective EEG biomarker that can reflect the negative impact of OSA on the brain, although D’Rozario et al. have shown that the DFA scale index has the potential as an EEG biomarker of neurobehavioral damage9. However, their study only compared DFA and power spectrum, and lacked comparative analysis with other EEG biomarkers (such as sample entropy, microstate, etc.). In addition, they only considered the single scene of simulated driving, and lacked the research on sleep EEG and its prognostic value. In our study, the sleep EEG of OSA patients was analyzed by the microstate method and the correlation analysis with power, sample entropy and DFA was carried out. The results showed that the microstate C increased presence and the microstate D decreased presence in OSA_OH patients. The fifth microstate E appeared during N1-OH, but the probability of other microstates transferring to microstate E was small. The microstate D in OSA_OH patients in N1-OH was correlated with delta, beta and alpha power; the transition probability of the microstate B → C and E → C was correlated with alpha power. In other sleep stages, the microstate parameters were not correlated with power, sample entropy and FDA. These showed that the microstate also had the potential as a biomarker of OSA EEG. Zappasodi el al. investigated prognostic value of EEG microstates in acute stroke, and found that a preserved microstate B in acute phase correlated with a better effective recovery14. Therefore, whether there is a correlation between microstate and OSA score and whether it has prognostic value for OSA patients is our next research work.

Methods

Data sources

The polysomnography (PSG) recordings come from an open-access sleep dataset, ISRUC-Sleep (http://sleeptight.isr.uc.pt/ISRUC_Sleep). The data were obtained from healthy subjects, subjects with sleep disorders, and subjects under the effect of sleep medication (i.e., Subgroup_I, Subgroup_II, Subgroup_III), from all-night PSG records, each with duration around 8 h, which were acquired by the Sleep Medicine Centre of the Hospital of Coimbra University (CHUC)28. All EEG, EOG, and EMG (chin) recordings were performed with a sampling rate of 200 Hz and stored into computer files using the standard EDF data format. The PSG recordings were composed by signals from 19 channels, of which EEG signal had 6 channels (F3, C3, O1, F4, C4 and O2). All recordings were segmented into epochs of 30 s and visually labeled by two experts according to the guidelines of AASM40, with the stages: awake (W), NREM (including N1, N2 and N3) and REM (abbreviated as R) sleep. Our dataset came from 30 OSA patients (excluding patients with other complications and taking medications) form Subgroup_I and 10 healthy subjects form Subgroup_III.

EEG data pre-processing

EEG signals were pre-processed with the EEGLAB toolbox for MATLAB, which were re-referenced to the common average reference, high-pass filtered with a 0.1 Hz zero-phase FIR filter, low-pass filtered with a 45 Hz zero-phase FIR filter, and down-sampled to 100 Hz. EEG signals were inspected for artifacts with a procedure based on Independent Components (ICs) using ADJUST plug-in41. IC scalp maps and frequency spectra were inspected, and ICs that displayed features indicative of artifacts were removed42.

For OSA_OH patients, EEG epochs were extracted for each patient when labeled OH (Obstructive Hypopnea) or OA (Obstructive Apnea). For OSA_withoutOH patients, EEG epochs were extracted for each patient when labeled normal. For healthy controls, epochs were extracted from each healthy subject in each sleep stage (W, N1, N2, N3 and R). For all data, an epoch lasted for 30 s.

Microstate analysis

Microstates reflect the instantaneous state of the brain, and can identify global functional brain states at very high temporal resolution. EEG microstates were extracted from each subject with the CARTOOL software19 by using a polarity-insensitive K-means algorithm in each epoch. The optimal number of microstates was determined by means of a combination of cross-validation and the Krzanovski–Lai criteria13. The same number of microstates was retained for each subject. The microstate maps of each subject were then submitted to a second cluster analysis in order to identify the dominant maps across the subjects43. Statistical smoothing was applied to remove temporally isolated topographic maps with low explanatory power. Clusters that correlated above 90% were merged, and segments shorter than 10 ms were rejected. The reference maps were selected as those that highly spatially correlated with the other maps in the same cluster. The microstate maps of each subject were matched with the reference maps showing the higher spatial correlation.

The calculated microstate parameters include: Global Explained Variance (Gev (%)), Mean Duration (MD (ms)), Time Coverage (TC (%)), Occurrence (Oc (/s)), Transition Probability (TP).

Power spectral analysis

Previous research has shown that power spectrum analysis of wakefulness EEG is helpful to detect human's alertness44,45,46. Greneche et al. have compared the power spectrum of wakefulness EEG between OSA patients and healthy controls8, but we focused on the power spectrum of sleep EEG between OSA patients and healthy controls. After artefactual epochs were rejected, power spectrum was obtained using a standard fast Fourier transform (FFT) with a rectangular weighting window47, for each non-overlapping 5 s epoch of EEG, i.e., 500 data points 9,10. Absolute power spectra was calculated in the delta, theta, alpha, sigma and beta bands in each frequency ranges of 0.5–4.5, 4.5–8, 8–12, 12–15 and 15–32 Hz. Power spectrum in each sleep-staged 30 s epoch was calculated by averaging data from 6 5 s epochs. Absolute power spectrum was used to calculate to power density. For example, delta power density is equal to absolute power in the 0.5–4.5 Hz frequency range divided by the sum of absolute powers in 0.5–32 Hz frequency ranges.

Sample entropy analysis

Sample entropy is a method to measure the complexity of time series, which has been successfully applied in the analysis of physiological signals, such as heart rate, blood pressure, EEG, etc. Its calculation results are related to the selection of parameters m, r and n48. (1) The embedding dimension m represents the length of the sequence. Generally, m is set to 1 or 2, because when m > 2, the amount of data n is required to be more than several thousand points48. (2) The physical meaning of threshold r is the radius of super ball with dimension m, which is a parameter to measure the similarity of time series, which can be set according to the needs of specific problems. Pincus believed that when r was set to (0.1–0.25) × SD (SD was the standard deviation), and the effective statistical characteristics could be obtained48. (3) The input data point n is set to 100–5000 in order to get effective statistical characteristics and small pseudo error for the given data. Therefore, in our study, we took m = 2, r = 0.2SD and n = 1000.

Detrended fluctuation analysis

Detrended fluctuation analysis (DFA) is widely used to analyze the long-range correlation of various unsteady signals, such as ECG, EEG, DNA sequence, weather signal, turbulence velocity and temperature field. DFA is an improved root mean square analysis method, which has two advantages over the commonly used fractal analysis methods: (1) it can detect the self-similarity of time series signal that seems to be unstable but is inherently self-similarity; (2) it can avoid the obvious self-similarity trend caused by external factors49.

The function relationship curve of the DFA wave function F(s) and the interval length s is drawn in double logarithmic coordinates, then the slope of the curve by linear fitting is calculated, which is the scale index α. The scale index α provides a quantitative index for the correlation of the long-range power function. If α < 0.5, it means that the segmented time series are independent of each other; if 0.5 < α < 1.0, it means that the segmented time series have continuous correlation in the form of long-range power rate (with self-similarity of fractal dimension); if α = 1, it indicates that the segmented time series fluctuate in the form of 1/f noise; if 1.0 < α < 1.5, it means that the segmented time series do not have long-range correlation; if α = 1.5, it indicates that the segmented time series are Brownian noise, that is, they are random independent. In our study, we took the data length n = 3000, and divided the sequence into 40 non-overlapping segments50.

Statistical analysis

Multivariate ANOVA was performed for the microstate parameters, power, sample entropy and FDA of OSA_OH vs. Control and OSA_OH vs. OSA_withoutOH at each sleep stage, and Bonferroni post-hoc tests were performed. For microstate analysis, 2 × 4 × 4 and 2 × 5 × 4 multivariate ANOVA designs have been performance (2 levels: OSA_OH vs. Control or OSA_OH vs. OSA_ withoutOH), microstate (4 or 5) and Microstate parameters (Gev, MD, TC, Oc)). A two-sided one-sample t test was then performed within groups. Pearson correlation test was used to verify the correlation between microstate parameters and power, sample entropy and FDA. A threshold for significance was assessed at P < 0.00714 (i.e. 0.05/7, 7 being the number of microstates and power, sample entropy and FDA). A percentile-based bootstrap, with 1000 replicate samples, was applied to assess the 95% confidence interval of Pearson’s r values. All statistical analyses were performed using IBM SPSS statistics, version 21 (IBM Corp., Armonk, NY, USA), and P < 0.05 was considered statistically significant. All plots were performed using Matlab R2013b (MathWorks. Inc, USA) and CARTOOL software19.