Abstract
This paper aims to present a model called SPINDILOMETER, which we propose to be integrated into polysomnography (PSG) devices for researchers focused on electrophysiological signals in PSG, physicians, and technicians practicing sleep in clinics, by examining the methods of the sleep electroencephalogram (EEG) signal analysis in recent years. For this purpose, an assist diagnostic model for PSG has been developed that measures the number and density of sleep spindles by analyzing EEG signals in PSG. EEG signals of 72 volunteers, 51 males and 21 females (age; 51.7 ± 3.42 years and body mass index; 37.6 ± 4.21) diagnosed with sleep-disordered breathing by PSG were analyzed by machine learning methods. The number and density of sleep spindles were compared between the classical method (EEG monitoring with the naked eye in PSG) (‘method with naked eye’) and the model (SPINDILOMETER). A strong positive correlation was found between ‘method with naked eye’ and SPINDILOMETER results (correlation coefficient: 0.987), and this correlation was statistically significant (p = 0.000). Confusion matrix (accuracy (94.61%), sensitivity (94.61%), specificity (96.60%)), and ROC analysis (AUC: 0.95) were performed to prove the adequacy of SPINDILOMETER (p = 0.000). In conclusion SPINDILOMETER can be included in PSG analysis performed in sleep laboratories. At the same time, this model provides diagnostic convenience to the physician in understanding the neurological events associated with sleep spindles and sheds light on research for thalamocortical regions in the fields of neurophysiology and electrophysiology.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Avoid common mistakes on your manuscript.
Introductıon
The synaptic electrical activity and voltage changes [non rapid eye movement (NREM) sleep, characterized by high amplitude, low-frequency brain waves, and rapid eye movement (REM) sleep, defined by low amplitude, higher frequency EEG activity, with mixtures of these occurring during transitional phases] that occur in the brain during sleep each night enable the reintegration of sensory and motor networks throughout the body [1,2,3,4,5,6]. Sleep is a physiological process organized in stages (NREM1, NREM2, REM, NREM3). The K-complex and sleep spindle are the cornerstones of the sleep-EEG microstructural architecture. These electrophysiological microelements play an important role in understanding sleep’s neurophysiological and functional aspects [2, 7]. Sleep spindles are EEG rhythms especially prominent during NREM 2 [6]. They are oscillatory EEG activities in the sigma frequency band (∼11–16 Hz) of fusiform morphology that last around 0.5–3 s [8,9,10]. Two types of sleep spindles have been recognized; fast spindles at 14–15 Hz maximal in centroparietal regions and slow spindles at 12–13 Hz predominant in frontal areas [7, 11, 12]. Sleep spindles are thalamocortical oscillations [13, 14] with the physiological potential to facilitate neuroplasticity [15,16,17]. Sleep spindle characteristics such as spindle density, frequency or amplitude are trait-like individual characteristics with genetic and anatomical underpinnings [18,19,20,21]. Sleep spindles are electrophysiological characteristics with a function very closely related to cognition [22] and intelligence [23], with normal aging processes [24, 25]. Changes in the number and intensity of sleep spindles observed in EEG may indicate a malfunction in the thalamocortical circuit (e.g., schizophrenia, epileptic seizures, Parkinson’s, Alzheimer, mental retardation, abnormal maturation but also with recovery processes as in post brain stroke) [8, 26,27,28,29]. In recent years, the pace of sleep EEG studies that associate electrophysiological activity to cognition and disease has increased [30]. Computers detect sleep spindles automatically, but the results must be evaluated by visual-scoring experts and sleep physicians. Accurate recognition of microelements in EEG, understanding their electrophysiological properties, and interpreting their number and intensity provide important information for brain health. Although a limited number of automatic sleep spindle counters have been designed in the literature [31,32,33,34,35], they have not yet taken their place as a basic analysis tool in interpreting PSG reports. In sleep analysis laboratories, PSG is the gold standard diagnostic method for recognizing sleep physiology and disorders. This article aims to present a model called SPINDILOMETER, which we propose to be integrated into PSG devices for researchers focusing on electrophysiological signals in PSG as well as, physicians, and technicians practicing sleep in clinics, by examining the methods of the sleep EEG signal analysis in recent years.
Materials and methods
This study was carried out in the Sleep Disorders Center, Electrophysiology Laboratory in Erzurum Regional Training and Research Hospital. Local ethics committee of the Atatürk University Medical School approved this study with an Approval Number of 06-29/28.05.2020. National Utility Model and Patent Project Number: 2023/12365. Date: 23.03.2023. The laboratory rooms were designed in accordance with the American Academy of Sleep Medicine (AASM) guidelines.
Study participants
The study was planned according to Helsinki Declaration. EEG signals of 72 volunteers, 51 males and 21 females (age; 51.7 ± 3.42 years and body mass index; 37.6 ± 4.21) diagnosed with sleep-disordered breathing by PSG were analyzed. The mean total sleep time of the volunteers during one night’s sleep was 6 ± 2.37 h.
Experimental recordings
All patients underwent a full‐night laboratory PSG using the Grass Technologies PSG system (TWin 4.5.3, USA). During sleep, polysomnography consists of recording different physiological and pathophysiological parameters for period of 6 h or longer throughout the night: these are reported after evaluations by a clinical physiologist whose field of study is sleep medicine and neurophysiology (M.D.). Electrophysiological signals recorded during sleep and wakefulness throughout the night are “Electroencephalogram (EEG), electromyogram (EMG; jaw, arm and leg), electrooculogram (EOG), electrocardiogram (ECG), snoring, oro-nasal airflow (lt/s), chest and abdominal movements (respiratory effort recordings), oxygen saturation, body position and real time-video-image recordings”. F4-M1, C4-M1, and O2-M1 and F3-M2, C3-M2, and O1-M2 sleep EEG channels allow for recordings from six different locations on the head with standard PSG [1, 3, 9, 36].
Experimental protocol
While sleep breathing disorders diagnoses of the volunteers were established according to AASM together with the physiology specialist (M.D.) responsible from the laboratory, the electrophysiological properties, number and density of sleep spindles in the EEG were examined and counted at least 3 times for each of the 6 channels with the naked eye (EEG monitoring with naked eye in PSG), (‘method with naked eye’). EEG signal waves (sleep spindles) with fusiform morphology in each of six different EEG channels (F4-M1, C4-M1 and O2-M1, F3-M2, C3-M2, and O1-M2) lasting approximately 0.5–3 s at 11–16 Hz were analyzed by machine learning methods (SPINDILOMETER) (Fig. 1). The number and density of sleep spindles were compared between the classical method (‘method with naked eye’) and the model (SPINDILOMETER).
Experimental setting
The idea of using machine learning methods to analyze sleep spindles and reveal clues about basic and clinical events related to thalamocortical activity in the brain is the main inspiration for the development of SPINDILOMETER. SPINDILOMETER contains units that analyze the frequency and amplitude values of EEG signals in PSG. SPINDILOMETER stores these values, uses them, and decides whether a sleep spindle exists [sigma frequency band (~ 11–16 Hz)] (Fig. 1). Care was given to use the latest machine learning methods in developing this model. Table 1 describes the algorithm for the model: first, the missing data were normalized by replacing it with the mean value. Next, four different feature extraction algorithms were applied to this data: “Power Spectral Density, Continuous Wavelet Transform, Non-gaussianity Score and Bispectrum Score Features (Xd).” Then, appropriate features were determined by the feature selection process. In the final stage, the number and characteristics of sleep spindles were revealed by using classification algorithms.
Data editing and analysis
A general technical approach to sleep spindle extraction methods in EEG signals
On each of the channel signals were analyzed by using computer-based electrophysiological signal analysis methods. The process consisted of “Pre-processing, Feature extraction, Feature selection, and Classification”. We applied highly reliable signal analysis methods used in computer science to sleep medicine. For this reason, we used a wide spectrum of multiple (9 specifics) signal analysis methods for the analysis of EEG signal waves in PSG. The EEG wave signals of a sample PSG recording from the study (Fig. 2) and the relationship between the methods applied to these signals and the EEG signals are explained below.
EEG recording in polysomnogram “Grass Technologies PSG system, TWin 4.5.3, USA”. Sleep spindles are seen in red boxes at stage N2. EEG, electroencephalography; 6 EEG channels: Frontal, F3 M2, F4 M1; Centro-parietal, C3 M2, C4 M1; Occipital, O3 M2, O4 M1; PSG, polysomnography; N2, NREM2, Non-Rapid Eye Movement stage 2
Pre-processing of EEG signals for SPINDILOMETER
Six-channel EEG wave signals were obtained from the electrophysiological signal recordings obtained from PSG, and were accepted as a data set. EEG wave signals were analyzed for each PSG epoch (30 s periods) during at least 6 h of sleep for each volunteer. We tried to see the details by dividing each age into 10-s segments to better understand the EEG waves. Seventy percent of the data set was split into two as training and 30% as test phase. Sleep spindles detected by the researcher (M.D.) who reported the PSG were estimated in the testing phase. The technical procedure in the data preprocessing phase was as follows: (1) Missing data were identified and filled with mean values. (2) Outlier data were identified and subjected to normalization. Minimum–Maximum Normalization: one of the most common methods used to reduce the differences between the data and to normalize the data. (a) the minimum value of the amplitude and frequency values of the EEG waves was set as ‘0’ and the maximum value as ‘1’, (b) all values between the minimum and maximum values were converted to ‘decimal numbers.’
Feature methods used for SPINDILOMETER and their correlation with EEG wave signals
Power spectral density (PSD)
Frequency is a characteristic of EEG signals. PSD measures the power content of a signal versus frequency or the energy density of a signal at different frequencies. In the time domain, it is difficult to find distinctive features of EEG signals, but in the frequency domain, PSD finds similarities and differences as the maximum values are known [37]. Since PSD is the energy of the signal per frequency, it is defined as the Fourier transform of an EEG signal’s autocorrelation function (A(ξ)). Its formula is as follows (ξ is the spatial shift, Ω is the number of waves) [38]:
Continuous wavelet transform (CWT)
EEG waves are chaotic bio-signals. CWT allows provisioning an over-complete signal representation by allowing the translation of wavelets and scale parameters to change continuously. Thus, it generates a large number of wavelet coefficients. These coefficients can be used as features. The scaling of a wavelet is expressed as its compression or expansion. Unlike the Fourier transforms, the time–frequency window of the CWT is adjustable. Its formula is as follows (b is the shift factor, α is the scale factor, t is the time, and f(t) is the signal vector of interest) [39]:
Non-Gaussianity score (NGS)
This score was used to understand the distribution of EEG signal characteristics (amplitude, frequency). NGS indicates the non-Gaussianity of a given data segment. This method made it easy to measure the deviation of the EEG signals in each epoch of the PSG from the Gaussian model. The formula is as follows (p and q are the normal probability plots of the reference and analyzed data, respectively) [40]:
Bispectrum score (BGS)
The BGS, the 3rd order spectrum of the signal, is known as the bispectrum. Unlike the autocorrelation-based power spectrum (2nd order statistics), the bispectrum preserves Fourier phase information. It allows in-depth analysis of the EEG wave signals at each epoch in PSG. Its formula is as follows (ω1 = ω2 = ω; through the defined diagonal slice P(ω), the information available in the bispectrum is captured) [41]:
Feature selection for SPINDILOMETER
This process aims to simplify the number of attributes. Attribute selection focuses on finding an optimal subset of attributes (defining which attribute is more important). In our study, filtering methods were used in the attribute selection phase. The filtering method examines each attribute’s susceptibility in the dataset to each classification [42,43,44].
Classifiers used for SPINDILOMETER and their relation with EEG wave signals
Classification
Classification is the process of determining to which class an unknown pattern belongs with the help of a classifier that uses the features of that pattern as input. This study classified EEG signals using the most appropriate machine learning methods to identify sleep spindles among the EEG signals during PSG [45, 46].
K-nearest neighborhood (KNN)
KNN is a learning algorithm and its goal is to perform a classification on the existing training data when a new sample is received [47]. KNN was preferred in this study due to the simplicity of the method and its high accuracy when used on EEG data. KNN method is a simple and effective method.
Support vector machine (SVM)
Support vector machines are a highly effective, simple machine-learning method for classification problems in data sets where the patterns between variables are unknown. It minimizes the classification error by selecting the line with the highest margin (necessary for discriminating sleep spindle wave signals). Therefore, SVM has facilitated the rapid and reliable extraction of the characteristic wave signals of the sleep spindle for the SPINDILOMETER model [48, 49].
Decision trees (DT)
Decision trees are one of the supervised machine learning algorithms [50]. The purpose of using the decision tree algorithm in this study is to learn decision rules extracted from the features of EEG wave signals and then develop a model that can predict the value of the target variable (sleep spindles).
Naive Bayes
The Naive Bayes algorithm helped us to classify the features of EEG wave signals as it is easy to apply and understand in large data sets: this method works by assuming that the presence of an attribute in a given class is not related to the presence of any other attribute [51]. This method provided us with important data on the probability of discovering specific sleep spindle wave signals that we tried to find among the EEG wave signals from 6 channels, which is the dataset of our study.
Extra tree classifier (ETC)
The ETC differs from other tree-based ensemble methods for two main reasons: (1) it separates nodes by choosing breakpoints completely randomly, and (2) it uses all learning samples to grow the trees [52]. With the ETC ensemble implementation, the entire sample of EEG wave signals was used and classified.
Confusion matrix tables comparing sleep spindles numbers calculated by both methods
In the model developed in this study, the EEG waves of PSG recordings collected from all volunteers were divided into 10-s time slices to prove that each sleep spindle accurately identifies the electrophysiological wave signal. The confusion matrix was used to measure the success of the model. In order to see the effectiveness of a classifier, the prediction accuracy of the classifier should be measured after the training phase is completed. In this study, after the confusion matrix was created, the performance of the prediction models were compared using the criteria of accuracy, sensitivity, precision and F1 score. The confusion matrix is a table used to show how much of the predicted value of the classification model created as a result of machine learning algorithms matches the actual class value. It summarizes and visualizes the performance of the classification algorithm. We tried to understand the success of the SPINDILOMETER algorithm in identifying sleep spindles by means of performance measures for results obtained from each volunteer. Performance measures applied to SPINDILOMETER are the following: (a) Accuracy is calculated as the number of all correct predictions divided by the total number of the dataset. (b) Sensitivity and Recall are calculated as the number of true positive predictions divided by the total number of true positive classes. (c) Precision is the number of true positive predictions divided by the total number of positive predictions. (d) F1-score is the harmonic mean of Precision and Recall.
Comparison of ‘method with naked eye’ and SPINDILOMETER methods with ROC analysis
One of the statistical techniques commonly used to evaluate the performance of a classifier is the receiver operating characteristics (ROC) curve. ROC curves provide a visual approach to judge the efficiency of a classifier. In this study, in addition to the performance measures obtained from the confusion matrix, the area under the ROC curve (ROC–AUC) value was also calculated and evaluated. The ROC-AUC score was chosen as an evaluation criterion to determine the degree of separability. It measures the classification performance of the model at all possible thresholds. With this metric, we evaluate how well the model works when discriminating between sleep spindle and non-sleep spindle electrophysiological wave signals. If the ROC-AUC value is high, we can say that the model is successful.
Statistical analysis
The number and density of sleep spindles were determined from the EEG recordings of the physician who examined the real-time PSG during sleep with the naked eye (classical method, ‘method with naked eye’) and SPINDILOMETER and compared using the ‘SPSS 22 for Windows program. The Intra-class Correlation Coefficient test was used to analyze the results. In this comparison, p < 0.001 was considered statistically significant. The accuracy of our algorithm was analyzed with confusion matrix tables. Finally, two methods (‘method with naked eye’ and SPINDILOMETER) were compared by ROC analysis to prove that our algorithm can successfully identify each sleep spindle count in the shortest time interval (10 s).
Results
Results of the classifiers used for the development of the SPINDILOMETER
The highest values belong to the KNN algorithm. The KNN algorithm achieved 94.61% accuracy, 92.47% sensitivity, and 96.60% specificity (Table 2).
Comparison of ‘method with naked eye’ and our model in terms of sleep spindle detection
The number of sleep spindles for each volunteer was determined separately for both models. A strong positive correlation (correlation coefficient: 0.987) was found between ‘method with naked eye’ and SPINDILOMETER results, and this correlation was statistically significant (Intra-class Correlation Coefficient Test: p = 0.000) (Tables 3, 4, Figs. 3, 4).
Findings of confusion matrix tables comparing sleep spindle numbers calculated by both methods
Numerical values pertaining to the methods were accepted as actual for ‘method with naked eye’ and predicted for SPINDILOMETER. If sleep spindles are identified in a 10 s time frame it is marked as 1; not as 0 (Fig. 5: demonstrates the confusion matrix for all of the volunteers).
Actual (calculated by ‘method with naked eye’) and predicted (calculated by SPINDILOMETER) numerical values of sleep spindles for all volunteers. As concerns the values calculated for volunteers, when 10 s time frames are taken into consideration, sleep spindles are not defined 13,972 times by both methods (TN); defined by SPINDILOMETER 1014 but not with ‘method with naked eye’ for 1014 times (FP); were defined by either of the methods for 12,541 times (TP); defined 492 times by ‘method with naked eye’ despite not being defined by SPINDILOMETER (FN) [According to this matrix, Sensitivity: 0.9247 Specificity: 0.9660 Precision: 0.9660, Accuracy: 0.9461, F1-Score: 0.9430 and Matthews Correlation Coefficient: 0.8925 were obtained for the model SPINDILOMETER]. EEG electroencephalography, PSG polysomnography, TN true negative, FP false positive (FP), TP true positive, FN false negative
Table 5 demonstrates that the performance score for each volunteer is statistically significantly high.
Findings of both methods compared with ROC analysis
In our study, ROC curves were drawn to make a statistical comparison of the performances of the two methods and to delineate the relationship between the sensitivity and specificity of the two methods in detail. Furthermore, by showing the size of AUC, high discriminative performance of sleep spindle definitions pertaining to our method was demonstrated (Fig. 6).
ROC curve—demonstrates the relationship between the sensitivity and specificity of ‘method with naked eye’ and SPINDILOMETER test results. Red dashed line represents a test that does not have correct discriminative features; the area under the curve is 0.5. For the best test performance, this needs to be 1. As we go upwards from the red dashed line, the increasing slopes of the appearing curves show us that the discriminative capacity of the diagnostic test under consideration has increased. Therefore, in order to talk about a high sensitivity and high specificity for a diagnostic test we anticipate that the area under the ROC curve should be 0.5–1.0
The blue curve is a ROC curve with which we compare SPINDILOMETER and ‘method with naked eye’ for sensitivity and specificity; having a high slope and having an area under the curve (AUC) of 0.5–1 proves us that our method that is the subject matter of our study has a high sensitivity, high specificity and high precision (Fig. 6).
Discussions
This study calculates the number and density of sleep spindles in PSG, an important diagnostic tool in medicine used in the fields of sleep neurophysiology and neuroscience, using optimal machine-learning methods with high success rates, and proposes a model called SPINDILOMETER to be integrated into PSG (PSG+). During the study, electrophysiological signals of the sleep spindle, one of the cornerstones of the sleep-EEG microstructural architecture, were analyzed to understand the connections between sleep spindles and the neurophysiological and functional aspects of sleep. In addition, this study provides a perspective on the recent scientific studies on sleep spindle and EEG signal analysis.
Sleep spindles analysis for physiological studies and brain pathophysiology
Sleep spindle waveforms are named “spindles” and are inspired by wool spinning tools. They are 10–15 Hz sinusoidal cycles that appear as burst-like sequences in NREM 2 in EEG [53]. Their generation takes place between the thalamoreticular nucleus (TRN) and thalamocortical (ThCx) generator-neuronal circuits, which are closely interconnected. As deep sleep progresses, inhibitory neurons in the TRN begin to fire in bursts, causing massive generation of inhibitory postsynaptic electrical potentials in ThCx neurons. The precise physiological mechanisms in these regions (TRN-ThCx), referred to as neuronal generator circuits, are considered to be a critical line between deep sleep and wakefulness modes of the brain (under the control of the reticular activating system in the brainstem) [8, 25,26,27,28]. The model SPINDILOMETER, which we intend to make more and more functional, is a physiological detector of this critical region. In recent studies, the sleep spindles that appear in the EEG, which seem to originate from these sensitive generator circuits (TRN-ThCx), has been found to cause the following physiological mechanisms: (1) They facilitate neuroplasticity [13, 14]. (2) Since TRN-ThCx oscillations significantly change the activity in the gray matter of the cortex (a large number of neuronal circuits in the white matter that process incoming information and release new information), they play a decisive role in the control of movement, memory, and emotion [15,16,17]. (3) Sleep spindles show a characteristic profile throughout life (from the early postnatal period to adolescence and aging) in parallel with the cortical maturation of the individual, and therefore, like genes, they have an important role in the fate of the individual (normal aging process) [24, 25]. (4) Spindle density, frequency, or amplitude in EEG is closely related to cognition [22] and intelligence [23]. Considering the relationship of sleep spindles with critical concepts in human neurophysiology, such as understanding neuroplasticity, movement, memory and emotion control, cortical maturation, aging, cognition, and intelligence [26,27,28], the importance of SPINDILOMETER and the idea of developing new algorithms on it becomes more important. Recent studies have emphasized the importance of NREM 2 sleep and the deepening of sleep. Higher sleep spindle densities correlate with longer N2 sleep duration and greater resilience to external perturbation. Sleep spindles cluster on an infraslow time scale of ~ 50 s, thought to be correlated with periods of NREMS fragility. In some sleep-related movement disorders, involuntary limb movements occur periodically on this time scale [8, 36, 53]. Changes in the number and intensity of sleep spikes in the EEG may indicate a malfunction in the TRN-ThCx circuit. “Mood disorders, sleep movement disorders, cognitive deficits, attention and hyperactivity disorders, schizophrenia, epileptic seizures, Parkinson’s, Alzheimer’s, mental retardation, abnormal cortical maturation and recovery processes after brain stroke (neuroplasticity)” are the examples of TRN-ThCx circuit failures [8, 26,27,28,29]. SPINDILOMETER and its upgraded versions, which we are developing, may be pathognomonic in the diagnosis of these complex diseases in pediatric and adult patients and may become a good marker for following the treatment and progression of these patients.
The relationship between EEG signal analysis and sleep spindle “a brief overview of recent literature”
German neurologist Hans Berger (1873–1941), considered as the father of human EEG recordings by distinguishing wake and sleep waves, Nobel Prize-winning British electrophysiologist Edgar Douglas Adrian (1889–1977) who noted that spindle rhythms could be recorded from the cut end of thalamocortical fibers in the cat, and Alfred Lee Loomis (1887–1975) were the turning points in sleep electrophysiology [53,54,55]. From the nineteenth century to the twenty-first century, this knowledge has translated into discoveries and technological advances in EEG for both the sleeping and the awake brain. Nowadays, the pace of sleep EEG studies has accelerated in an attempt to associate electrophysiologic activity to cognition and cognitive disorders. However, signal processing methods (appropriate calculation and interpretation of metrics) used in contemporary sleep EEG has gained importance. The ‘spindle,’ first described by electrophysiologist Edgar Douglas Adrian [53], has evolved thanks to computer and machine learning models. Sleep spindles can be detected automatically by computers, but the results need to be evaluated by visual-scoring experts and sleep physicians. Hours of scoring with the naked eye are laborious. Lacourse et al. analyzed sleep spindles using four important parameters—“the absolute sigma power, relative sigma power, sigma correlation, and sigma covariance”—on single-channel EEG [35]. Lacourse et al. achieved 68% sensitivity and 74% specificity in their study, while SPINDILOMETER achieved 92.4% sensitivity and 96.6% specificity. During our study on six different EEG channels, we applied four different feature extraction algorithms, namely (a) “pre-processing of EEG signals for SPINDILOMETER,” (b) “Power Spectral Density, Continuous Wavelet Transform, Non-Gaussianity Score, and Bispectrum Score Features (Xd),” which made us think that SPINDILOMETRE achieved higher diagnostic accuracy values. Adamczyk et al. used “Automatic Sleep Spindle Detection” in their study investigating sleep spindle differences in monozygotic and dizygotic twins. In the preprocessing stage of this model, the algorithm signal was resampled to 100 Hz to reduce the computational load [33]. Since SPINDILOMETER uses normalization in the preprocessing stage, the specificity and sensitivity values are thought to be higher than in this study. When we continue to examine recent machine-learning methods on EEG, Li et al. used a complex demodulation method to detect sleep spindle forms and calculate features after preprocessing [32]. Ahmed et al. detected sleep spindles with 93.7% accuracy by applying wavelet packet transform and Teager energy operator [56]. Mei et al. developed an automatic pipeline for sleep spindle classification using an optimized filter-based thresholding model [57]. Kinoshita et al. performed sleep spindle prediction using wavelet transform and random under-sampling boosting [58]. Kulkarni et al. proposed a deep-learning strategy (SpindleNet) to detect sleep spindles based on a single EEG channel [59]. The model SPINDILOMETER, which we created by analyzing six channels of EEG data in PSG, is more prominent than other models with its preprocessing, feature extraction, feature selection methods, and classification algorithms. SPIDILOMETRE is a fast scorer with high sensitivity (92.47%), specificity (96.60%), and accuracy (94.61%) using the latest signal processing methods (Table 6).
Reasons for developing the SPINDILOMETER
SPINDILOMETER was developed for two reasons: (1) for sleep and neurophysiology research and (2) for monitoring the diagnosis and treatment of neuropsychiatric disorders.
As demonstrated in this paper, sleep spindles provide us with very important clues about the physiological mechanisms in the TRN-ThCx neuronal circuits in the brain and the disorders that occur when these circuits malfunction. SPINDILOMETER is an algorithm compatible with this important EEG waveform. For us, the reason for creating and further developing a SPINDILOMETER is that (a) physicians dealing with neurological sciences tend towards accurate diagnoses, and (b) brain researchers like using an algorithm that has reached high diagnostic accuracy values in their articles.
Why PSG+ SPINDILOMETER?
PSG systems in the hospital sleep laboratories provide physicians and researchers important information regarding sleep physiology and diseases. Sleep spindles, as the building blocks of the microstructural architecture of EEG, are routinely monitored for PSG systems. However, when we look at the content of PSG reports created for physicians, no data are available on sleep spindles. We would like to see our algorithm included in PSG systems, and we believe that PSG+ SPINDILOMETER is necessary for both patients and physicians and scientific research. In our opinion, while PSG applications and the resulting reports, through the criteria determined by the AASM, provide us information about the brain and bodily functions after a night’s sleep (at least 6 h), they leave the interpretation of very important information incomplete. This information is, of course, related to the physiology and diseases of the TRN-ThCx region. This lack of information in PSG reports can be eliminated by means of SPINDILOMETER by AASM criteria. Moreover, this information can be improved over time, and its scope can be expanded because, based on their number and density SPINDILOMETER algorithms are expected to predict the physiological mechanisms that are disrupted while detecting sleep spindles and making comments about sleep physiology and disorders, as well as cognitive, emotional, and movement disorders.
Limitations of the study and future work for improving SPINDILOMETER
Our main goal in this study was not solely to develop an algorithm that successfully calculates the number and density of sleep spindles. We also took into account the microstructures (sleep spindles, K-complexes) that form the architecture of sleep EEG and the arousals that occur during sleep; we wanted to create sleep maps of individuals that allow us to interpret their interactions with one another. From this point of view, the current study is incomplete; we can even in our opinion that we are in the preliminary stages of our studies to reach the sleep maps we want. The strength of our study is having more subjects compared to the literature. However, our limitation is that these subjects were individuals diagnosed with sleep-disordered breathing. Computer analysis of the micro-elementary electrophysiological signals of sleep EEG in undiagnosed children, young individuals, and healthy adults will provide us with more information about normal functioning. Finally, we know and wish that the idea of combining signal processing methods with new neuroimaging techniques to monitor the effects of sleep spindles on TRN-ThCx and cortex will lead us to algorithmic versions of “SPINDILOMETER+ Neuroimaging” in the future.
Conclusion
SPINDILOMETER can be incorporated into PSG analysis conducted in sleep laboratories. Thus, this model provides diagnostic convenience to the physician in understanding the neurological events associated with sleep spindles and sheds light on thalamocortical region research in the fields of neurophysiology and electrophysiology.
Data availability
The datasets analyzed during the current study are not publicly available due to the policy of the project agreement but are available from the corresponding author upon reasonable request.
References
Kayabekir M (2019) Updates in sleep neurology and obstructive sleep apnea. In: Fabian HR (ed) Sleep physiology and polysomnogram, physiopathology and symptomatology in sleep medicine, 1st edn. Intechopen, London, pp 5–12
Nicholas CL, Trinder J, Colrain IM (2002) Increased production of evoked and spontaneous K-complexes following a night of fragmented sleep. Sleep 25:882–887
Kayabekir M, Yağanoğlu M (2022) The relationship between snoring sounds and EEG signals on polysomnography. Sleep Breath 26:1219–1226. https://doi.org/10.1007/s11325-021-02516-8
Kayabekir M (2022) Sleep medicine and the evolution of contemporary sleep pharmacotherapy. In: Larrivie D (ed) Neurophysiology of basic molecules affecting sleep and wakefulness mechanisms, fundamentals of sleep pharmacology, 1st edn. Intechopen, London, pp 17–40
Larrivie D (2022) Sleep medicine and the evolution of contemporary sleep pharmacotherapy. In: Larrivie D (ed) Introductory chapter: the promise of sleep pharmacotherapy-healing systems level dysfunction, 1st edn. Intechopen, London, pp 3–16
Scammell TE, Arrigoni E, Lipton JO (2017) Neural circuitry of wakefulness and sleep. Neuron 93:747–765
Sakellariou D, Koupparis AM, Kokkinos V, Koutroumanidis M, Kostopoulos GK (2016) Connectivity measures in EEG microstructural sleep elements. Front Neuroinform 10:5. https://doi.org/10.3389/fninf.2016.00005
De Gennaro L, Ferrara M (2003) Sleep spindles: an overview. Sleep Med Rev 7(5):423–440. https://doi.org/10.1053/smrv.2002.0252
Iber C, Ancoli-Israel S, Chesson A, Quan SF (2007) The AASM manual for the scoring of sleep and associated events: Rules, terminology and technical specifications. American Academy of Sleep Medicine, Westchester
Lüthi A (2014) Sleep spindles: where they come from, what they do. Neuroscientist 20(3):243–256. https://doi.org/10.1177/1073858413500854
Gibbs F, Gibbs E (1952) Atlas of electroencephalography. In: Gibbs F, Gibbs E (eds) Epilepsy, vol 2. Addison-Wesley, Reading
Zeitlhofer J, Gruber G, Anderer P, Asenbaum S, Schimicek P, Saletu B (1997) Topographic distribution of sleep spindles in young healthy subjects. J Sleep Res 6(3):149–155. https://doi.org/10.1046/j.1365-2869.1997.00046
Steriade M (2003) The corticothalamic system in sleep. Front Biosci 8:878–899. https://doi.org/10.2741/1043
Steriade M, Deschenes M (1984) The thalamus as a neuronal oscillator. Brain Res 320(1):1–63. https://doi.org/10.1016/0165-0173(84)90017-1
Buzsáki G (1989) Two-stage model of memory trace formation: a role for “noisy” brain states. J Neurosci 31(3):551–570. https://doi.org/10.1016/0306-4522(89)90423-5
Rosanova M, Ulrich D (2005) Pattern-specific associative long-term potentiation induced by a sleep spindle-related spike train. J Neurosci 25(41):9398–9405. https://doi.org/10.1523/JNEUROSCI.2149-05.2005
Genzel L, Kroes MC, Dresler M, Battaglia FP (2014) Light sleep versus slow wave sleep in memory consolidation: a question of global versus local processes? Trends Neurosci 37(1):10–19. https://doi.org/10.1016/j.tins.2013.10.002
De Gennaro L, Ferrara M, Vecchio F, Curcio G, Bertini M (2005) An electroencephalographic fingerprint of human sleep. Neuroimage 26(1):114–122. https://doi.org/10.1016/j.neuroimage.2005.01.020
De Gennaro L, Marzano C, Fratello F, Moroni F, Pellicciari MC, Ferlazzo F, Costa S, Couyoumdjian A, Curcio G, Sforza E, Malafosse A, Finelli LA, Pasqualetti P, Ferrara M, Bertini M, Rossini PM (2008) The electroencephalographic fingerprint of sleep is genetically determined: a twin study. Ann Neurol 64(4):455–460. https://doi.org/10.1002/ana.21434
Landolt HP (2011) Genetic determination of sleep EEG profiles in healthy humans. Prog Brain Res 193:51–61. https://doi.org/10.1016/B978-0-444-53839-0.00004-1
Ujma PP, Bódizs R, Gombos F, Stintzing J, Konrad BN, Genzel L, Steiger A, Dresler M (2015) Nap sleep spindle correlates of intelligence. Sci Rep 5:17159. https://doi.org/10.1038/srep17159
Fogel SM, Smith CT (2011) The function of the sleep spindle: a physiological index of intelligence and a mechanism for sleep-dependent memory consolidation. Neurosci Biobehav Rev 35(5):1154–1165. https://doi.org/10.1016/j.neubiorev.2010.12.003
Knoblauch V, Martens WL, Wirz-Justice A, Cajochen C (2003) Human sleep spindle characteristics after sleep deprivation. Clin Neurophysiol 114(12):2258–2267. https://doi.org/10.1016/s1388-2457(03)00238-4
Crowley K, Trinder J, Kim Y, Carrington M, Colrain IM (2002) The effects of normal aging on sleep spindle and K-complex production. Clin Neurophysiol 113(10):1615–1622. https://doi.org/10.1016/s1388-2457(02)00237-7
Brockmann PE, Bruni O, Kheirandish-Gozal L, Gozal D (2020) Reduced sleep spindle activity in children with primary snoring. Sleep Med 65:142–146. https://doi.org/10.1016/j.sleep.2019.10.001
Ferrarelli F, Peterson MJ, Sarasso S, Riedner BA, Murphy MJ, Benca RM, Bria P, Kalin NH, Tononi G (2010) Thalamic dysfunction in schizophrenia suggested by whole-night deficits in slow and fast spindles. Am J Psychiatry 167(11):1339–1348. https://doi.org/10.1176/appi.ajp.2010.09121731
Urakami Y, Ioannides AA, Kostopoulos GK (2012) Advances in clinical neurophysiology. In: Abud Ajeena M (ed) Sleep spindles as a biomarker of brain function and plasticity, 1st edn. Intechopen, London, pp 73–108
Piantoni G, Halgren E, Cash SS (2016) The contribution of thalamocortical core and matrix pathways to sleep spindles. Neural Plast 2016:3024342. https://doi.org/10.1155/2016/3024342
Ferrarelli F, Tononi G (2017) Reduced sleep spindle activity point to a TRN-MD thalamus-PFC circuit dysfunction in schizophrenia. Schizophr Res 180:36–43. https://doi.org/10.1016/j.schres.2016.05.023
Cox R, Fell J (2020) Analyzing human sleep EEG: a methodological primer with code implementation. Sleep Med Rev 54:101353. https://doi.org/10.1016/j.smrv.2020.101353
O’Reilly C, Nielsen T (2015) Automatic sleep spindle detection: benchmarking with fine temporal resolution using open science tools. Front Hum Neurosci 9:353. https://doi.org/10.3389/fnhum.2015.00353
Li J, Wang B, Sugi T, Zhang Y, Nakamura M (2017) Automatic sleep spindle detection with EEG based on complex demodulation method and decision tree model. J Biomed Sci Eng 10:10–17. https://doi.org/10.4236/jbise.2017.105B002
Adamczyk M, Genzel L, Dresler M, Steiger A, Friess E (2015) Automatic sleep spindle detection and genetic influence estimation using continuous wavelet transform. Front Hum Neurosci 9:624. https://doi.org/10.3389/fnhum.2015.00624
Cox R, Schapiro AC, Manoach DS, Stickgold R (2017) Individual differences in frequency and topography of slow and fast sleep spindles. Front Hum Neurosci 11:433. https://doi.org/10.3389/fnhum.2017.00433
Lacourse K, Delfrate J, Beaudry J, Peppard P, Warby SC (2019) A sleep spindle detection algorithm that emulates human expert spindle scoring. J Neurosci Methods 316:3–11. https://doi.org/10.1016/j.jneumeth.2018.08.014
Kayabekir M (2020) Updates in sleep neurology and obstructive sleep apnea. In: Fabian HR (ed) Diagnosis, 1st edn. Intechopen, London, pp 1–13
Tanaka H, Okui K, Oku Y, Takezawa H, Shibutani Y (2021) Corrected power spectral density of the surface roughness of tire rubber sliding on abrasive material. Tribol Int 153:106632
Reina G, Leanza A, Milella A, Messina A (2020) Mind the ground: a power spectral density-based estimator for all-terrain rovers. Measure 151:107136
Dong J, Peng J, Liu Y, Qiu S, Han Y (2020) Integrating spatial continuous wavelet transform and kernel density estimation to identify ecological corridors in megacities. Landsc Urban Plan 199:103815
Amrulloh Y, Abeyratne U, Swarnkar V, Triasih R (2015) Cough sound analysis for pneumonia and asthma classification in pediatric population. In: 6th International conference on intelligent systems, modelling and simulation, pp 127–131
Abeyratne UR, Swarnkar V, Setyati A, Triasih R (2013) Cough sound analysis can rapidly diagnose childhood pneumonia. Ann Biomed Eng 41:2448–2462
Cherrington M, Thabtah F, Lu L, Xu Q (2019) Feature selection: filter methods performance challenges. In: International conference on computer and information science (ICCIS), Sakaka, Saudi Arabia, pp 1–4. https://doi.org/10.1109/ICCISci.2019.8716478
Chandrashekar G, Sahin F (2014) A survey on feature selection methods. Comput Electr Eng 40(1):16–28
Jović A, Brkić K, Bogunović N (2015) A review of feature selection methods with applications. In: 38th international convention on information and communication technology, electronics and microelectronics MIPRO, pp 1200–1205
Wang X, Gong G, Li N, Qiu S (2019) Detection analysis of epileptic EEG using a novel random forest model combined with grid search optimization. Front Hum Neurosci 13:52
Murugavel AM, Ramakrishnan S (2016) Hierarchical multi-class SVM with ELM kernel for epileptic EEG signal classification. Med Biol Eng Comput 54(1):149–161
Guo G, Wang H, Bell D, Bi Y, Greer K (2003) KNN model-based approach in classification. In: On the move to meaningful internet systems: CoopIS, DOA and ODBASE, Catania, Sicily, Italy, Proceedings. Springer, Berlin, pp 986–996
Cortes C, Vapnik V (1995) Support-vector networks. Mach Learn 20(3):273–297
Chang CC, Lin CJ (2011) LIBSVM: a library for support vector machines. ACM Trans Intell Syst Technol (TIST) 2(3):1–27
Devi RDH, Devi MI (2016) Outlier detection algorithm combined with decision tree classifier for early diagnosis of breast cancer. Int J Eng Adv Technol 7(2):93–98
Osisanwo FY, Akinsola JET, Awodele O, Hinmikaiye JO, Olakanmi O, Akinjobi J (2017) Supervised machine learning algorithms: classification and comparison. IJCTT 48(3):128–138
Geurts P, Ernst D, Wehenkel L (2006) Extremely randomized trees. Mach Lang 63(1):3–42
Fernandez LMJ, Lüthi A (2020) Sleep spindles: mechanisms and functions. Physiol Rev 100(2):805–868. https://doi.org/10.1152/physrev.00042.2018
Berger H (1933) Über das Elektroenkephalogram des Menschen. Sechste Mitteilung Arch Psychiatr Nervenkr 99:555–574. https://doi.org/10.1007/BF01814320
Loomis AL, Harvey EN, Hobart G (1935) Potential rhythms of the cerebral cortex during sleep. Science 81:597–598. https://doi.org/10.1126/science.81.2111.597
Ahmed B, Redissi A, Tafreshi R (2009) An automatic sleep spindle detector based on wavelets and the Teager energy operator. In: Annual international conference of the IEEE engineering in medicine and biology society, pp 2596–2599
Mei N, Grossberg MD, Ng K, Navarro KT, Ellmore TM (2017) Identifying sleep spindles with multichannel EEG and classification optimization. Comput Biol Med 89:441–453
Kinoshita T, Fujiwara K, Kano M, Ogawa K, Sumi Y, Matsuo M, Kadotani H (2020) Sleep spindle detection using RUSBoost and synchrosqueezed wavelet transform. Trans Neural Syst Rehabil Eng IEEET 28(2):390–398
Kulkarni PM, Xiao Z, Robinson EJ, Jami AS, Zhang J, Zhou H, Chen Z (2019) A deep learning approach for real-time detection of sleep spindles. J Neural Eng 16(3):036004
Funding
Open access funding provided by the Scientific and Technological Research Council of Türkiye (TÜBİTAK). This study was supported by Atatürk University Scientific Research Unit, Grant/Award Number: 12365. Conference ACTA PHYSIOLOGICA Publication date 2022/2/1, Vol. 234, Pages 83–83, Publisher WILEY. Spindilometer: A Novel Diagnostic Approach to Assist Physicians in Determining Sleep Spindle Number and Density in Polysomnography. National Utility Model and Patent Project Number: 2023/12365 Date: 23.03.2023. This paper is a preprint (https://doi.org/10.21203/rs.3.rs-3031512/v1) by collaboration with Springer Nature and Research Square (https://www.researchsquare.com/article/rs-3031512/v1). The authors assure that it has not been peer reviewed by a journal.
Author information
Authors and Affiliations
Contributions
MK and MY all made substantial contributions to the conception and design of the study. MK and MY were responsible and involved in data collection. MK and MY were all involved in data interpretation, statistical analyses, drafting, and critically revising the manuscript. All authors have given final approval for the version to be published.
Corresponding author
Ethics declarations
Conflict of interest
The authors declare no conflict of interest.
Ethical approval
The study was approved by the Local Ethics Committee of Atatürk University Faculty of Medicine (06-29/28.05.2020) and was conducted in accordance with the latest version of the Helsinki Declaration. Ethical Committee Permission Number: 7-64/07.11.2019.
Informed consent
Informed consent was obtained from all the participants included in the study.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Kayabekir, M., Yağanoğlu, M. SPINDILOMETER: a model describing sleep spindles on EEG signals for polysomnography. Phys Eng Sci Med (2024). https://doi.org/10.1007/s13246-024-01428-7
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s13246-024-01428-7