We present a new algorithm for the automatic detection of periodic and non-periodic limb movements in polysomnographic (PSG) sleep recordings. A set of 70 PSG recordings obtained in the course of common practice were randomly selected for the validation of the proposed approach. The dataset includes 35 recordings that were acquired in ambulatory conditions and 35 that were carried out under the supervision of clinicians at our sleep centre. The algorithm includes robust mechanisms to handle the presence of artefacts, and has the ability to adjust its detection thresholds to dynamically adapt to changing signal conditions. The validation results in our dataset, which also include the comparison with another two automatic methods available in the literature, support the validity of our approach, and its utility as a valuable tool to help the clinician in the scoring task. 
A new automatic method for the detection of limb movements and the analysis of their periodicity