Related Experiment Video
Updated: Aug 29, 2025

Quantifying Infra-slow Dynamics of Spectral Power and Heart Rate in Sleeping Mice
Published on: August 2, 2017
Optimization of real-time analysis of sleep-wake cycle in mice
Stephen Thankachan1, Andrei Gerashchenko2, Ksenia V Kastanenka3
1Harvard Medical School / Veterans Affairs Boston Healthcare System, West Roxbury, MA 02132, USA.
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.

