PhysioEx
PhysioEx ( Physiological Signal Explainer ) is a versatile python library tailored for building, training, and explaining deep learning models for physiological signal analysis.
The main purpose of the library is to propose a standard and fast methodology to train and evalutate state-of-the-art deep learning architectures for physiological signal analysis, to shift the attention from the architecture building task to the explainability task.
With PhysioEx you can simulate a state-of-the-art experiment just running the train
, test_model
and finetune
commands; evaluating and saving the trained model; and start focusing on the explainability task!
Supported deep learning architectures¶
- Chambon2018 model for sleep stage classification ( raw time series as input).
- TinySleepNet model for sleep stage classification (raw time series as input).
- SeqSleepNet model for sleep stage classification (time-frequency images as input).
Supported datasets¶
- SHHS (Sleep Heart Health Study), is a multi-center cohort study designed to investigate the cardiovascular and other consequences of sleep-disordered breathing. At visit 1, it included 5,793 participants aged 40 years or older. PSG recordings were typically conducted in the subjects' homes by trained and certified technicians. The recording montage included C3/A2 and C4/A1 EEGs sampled at 125 Hz, right and left EOGs sampled at 50 Hz, and a bipolar submental EMG sampled at 125 Hz.
- MASS (Montreal Archive of Sleep Studies), is an open-access collaborative database containing laboratory-based PSG recordings. It includes 200 complete nights recorded from 97 men and 103 women, aged 18 to 76 years. All recordings have a sampling frequency of 256 Hz and feature an EEG montage of 4–20 channels, along with standard EOG and EMG
- MESA (Multi-Ethnic Study of Atherosclerosis), is a multi-center prospective study of 2.237 ethnically diverse men and women aged 45-84 from six communities in the United States. PSGs recordings were obtained using in-home settings including central C4-M1 EEG, bilateral EOG and chin EMG sampled at 256Hz. PSGs were scored by one of 3 MESA certified, registered polysomnologists.
- MrOS (The Osteoporotic Fractures in Men Study), is a multicenter study comprising 2,911 PSG recordings from men aged 65 years or older, enrolled at six clinical centers. PSG recordings were conducted in home settings and included C3/A2 and C4/A1 EEGs, chin EMG, and left-right EOG, all sampled at 256 Hz.
- HMC (Haaglanden Medisch Centrum), is a collection of 151 whole-night PSG recordings from 85 men and 66 women, gathered at the Haaglanden Medisch Centrum sleep center. The PSG data includes 4 EEG channels (F4/M1, C4/M1, O2/M1, and C3/M2), two EOG channels (E1/M2 and E2/M2), and one bipolar chin EMG, with all signals sampled at 256 Hz.
- DCSM (Danish Center for Sleep Medicine), is a collection of 255 randomly selected and fully anonymized overnight lab-based PSG recordings from patients seeking diagnosis for non-specific sleep-related disorders at the DCSM. The PSG setup included EEG, EOG, and EMG channels, all sampled at 256 Hz.
For the public available datasets ( DCSM, HMC ) PhysioEx takes care of automatically download the data thanks to the preprocess
command. The other datasets needs to be acquired first ( mostly on NSSR ) and then fetched by PhysioEx via the preprocess
command.
Installation guidelines¶
Create a Virtual Environment (Optional but Recommended)¶
Install via pip¶
- Install PhysioEx from PyPI:
Install from source¶
-
Clone the Repository:
-
Install Dependencies and Package in Development Mode