SOMAS reliably quantifies muscle tone and movements during sleep from EDF+ files using open-source algorithms, with the potential of enhancing reproducibility and collaboration in research on sleep-related movement disorders.
Key Findings
Results
SOMAS-derived atonia index and leg movement indices strongly correlated with those from Hypnolab, a non-open access software.
Spearman correlation coefficients were greater than 0.97 between SOMAS and Hypnolab results
Minimal bias was observed between the two software systems
Comparison was performed across recordings from 25 total participants: 8 iRBD patients, 5 RLS patients, 7 sleep breathing disorder patients, and 5 controls
Results
The Distribution of Normalized EMG values (DNE) and atonia index in REM sleep effectively differentiated patients with isolated REM sleep behavior disorder (iRBD) from other patients and controls.
Area under the curve (AUC) ranged from 0.89 to 1.00 for distinguishing iRBD patients
Both the DNE and atonia index metrics were used as discriminating features
iRBD patients (n=8) were compared against sleep breathing disorder patients, RLS patients, and controls
Results
Periodic leg movement and periodicity indices differentiated patients with restless legs syndrome (RLS) from controls.
AUC values ranged from 0.71 to 0.75 for distinguishing RLS patients from controls
Indices were calculated based on 2016 World Association of Sleep Medicine criteria
RLS patients (n=5) were compared against controls (n=5)
Methods
SOMAS quantifies muscle tone using two complementary metrics: the atonia index and the distribution of normalized electromyography values (DNE).
The atonia index is an established measure of muscle tone during sleep
The DNE provides information on the distribution of normalized EMG values
SOMAS processes European Data Format+ (EDF+) files with wake-sleep state and candidate leg movement annotations
The software operates without online data sharing, addressing data privacy concerns
Background
SOMAS is an open-source software system that fills a gap in existing sleep analysis tools by providing information on both muscle tone and movements.
Prior to SOMAS, no existing algorithm provided information on both muscle tone and movements as open-source software
SOMAS calculates leg movement indices based on the 2016 World Association of Sleep Medicine criteria
The software is designed to enhance reproducibility and collaboration in research on sleep-related movement disorders
SOMAS was validated on a sample of 25 participants with various sleep conditions including iRBD, RLS, sleep breathing disorders, and controls
What This Means
This research describes the development and validation of SOMAS (Sleep Open-source Muscle Activity Analysis System), a freely available software tool for analyzing muscle activity during sleep. The software can measure both muscle tone — how relaxed or tense muscles are during different sleep stages — and leg movements during sleep, two important aspects of diagnosing sleep-related movement disorders. Unlike existing tools that are proprietary or closed-source, SOMAS works with standard sleep recording files and does not require sharing patient data online, making it more accessible and privacy-friendly.
The researchers tested SOMAS on recordings from 25 individuals, including patients with isolated REM sleep behavior disorder (iRBD, a condition where people physically act out dreams), restless legs syndrome (RLS), sleep breathing disorders, and healthy controls. They found that SOMAS produced results nearly identical to those from an established but non-open-source software called Hypnolab, with correlation coefficients above 0.97. SOMAS was also able to distinguish iRBD patients from other groups with very high accuracy (AUC 0.89–1.00) and could differentiate RLS patients from controls with moderate accuracy (AUC 0.71–0.75).
This research suggests that SOMAS could be a valuable tool for sleep researchers worldwide, particularly because its open-source nature means that the algorithms are transparent and reproducible. This is important for scientific research, where independent verification of results is a cornerstone of reliability. By making such a tool freely available, the authors aim to improve consistency across different research groups studying sleep disorders involving abnormal muscle activity.
Cesari M, Ferri R, Högl B, Stefani A, Silvani A. (2026). SOMAS - an open-source software for the analysis of muscle activity during sleep.. Sleep medicine. https://doi.org/10.1016/j.sleep.2026.108791