| Literature DB >> 36065218 |
Stephen Thankachan1, Andrei Gerashchenko2, Ksenia V Kastanenka3, Brian J Bacskai3, Dmitry Gerashchenko1.
Abstract
Studying the biology of sleep requires accurate and efficient assessment of the sleep stages. However, analysis of sleep-wake cycles in mice and other laboratory animals remains a time-consuming and laborious process. In this study, we developed a Python script and a process for the streamlined analysis of sleep data that includes real-time processing of electroencephalogram (EEG) and electromyogram (EMG) signals that is compatible with commercial sleep-recording software that supports user datagram protocol (UDP) communication. The process consists of EEG/EMG data acquisition, automated threshold calculation for real-time determination of sleep stages, sleep staging and EEG power spectrum analysis. It also allows data storage in the format that facilitates further analysis of the sleep pattern in mice. The described method is aimed at increasing efficiency of sleep stage scoring and analysis in mice thus facilitating sleep research. • A process of EEG/EMG recording and streamline analysis of sleep-wake cycle in real time in mice. • The compatibility with commercial sleep-recording software that can generate a UDP stream. • The capability of further analysis of recorded data by an open-source software.Entities:
Keywords: EEG; EMG; Real-time analysis; Sleep scoring; Vigilance states
Year: 2022 PMID: 36065218 PMCID: PMC9440422 DOI: 10.1016/j.mex.2022.101811
Source DB: PubMed Journal: MethodsX ISSN: 2215-0161
Fig. 1Graphic interface of EEG and EMG recordings. EEG and EMG signals are sampled at 512 Hz by Sirenia Acquisition software (Pinnacle Technology) and transmitted using user datagram protocol (UDP). Five-second intervals of the EEG and EMG data are processed by the Python script and drawn in a separate window. Selected thresholds are shown in the upper left corner of the window. The EEG, Delta and Theta values recorded during the 5-second interval are displayed in the upper right corner and also visualized as bars on the right side of the window. The scored epoch (WAKE, NREM or REM) is shown at the top of the window.
Fig. 2Automated selection of thresholds. An hour of recorded EEG and EMG data (EEG_0.mat and EEG_0.mat) and a file containing epochs scored in AccuSleep (labels_0.mat) are processed by the Python script to select the thresholds allowing the highest correspondence between the manual and automated scoring. The accuracy value and corresponding EMG, Delta and Theta thresholds are displayed on the screen.
Fig. 3Interaction with external devices via Transistor-Transistor Logic (TTL). TTL interface allows turning on and off a remote control during chosen behavioral states.
Fig. 4Effect of the choice of the time interval used to determine thresholds on the accuracy of sleep staging. The accuracy was about 90% or more for all tested intervals.
Fig. 5A representative example of automated sleep scoring by the threshold-based Python script and AccuSleep script. One hour of the EEG/EMG data recorded during the ZT3-4 time interval was used to automatically determine the thresholds for the Python script and produce a calibration file for the AccuSleep script. One hour of EEG/EMG data recorded five hours later (ZT8-9) in the same mouse was then automatically scored by both scripts. A high correspondence between the manual scoring and automated scoring by both scripts was observed. The figure was produced using the AccuSleep script in MATLAB.
Performance evaluation of wakefulness, NREM sleep, and REM sleep staging. The thresholds calculated during ZT3-4 in 8 mice were used to automatically stage sleep for 24 hours in the same mice. The 24-h data were scored manually and compared to the result of automated scoring. The highest sensitivity, specificity and F1 score were observed for wakefulness.
| Sensitivity | Specificity | F1 score | |
|---|---|---|---|
| Wake | 93.5 ± 1.1 | 92.4 ± 2.2 | 93.6 ± 1.0 |
| NREM sleep | 91.0 ± 2.4 | 92.7 ± 1.1 | 89.6 ± 1.1 |
| REM sleep | 68.3 ± 2.3 | 99.1 ± 0.2 | 73.3 ± 2.8 |
| Subject Area: | |
| More specific subject area: | |
| Method name: | |
| Name and reference of original method: | |
| Resource availability: |