A python package for explainable sleep staging via deep learning
Project description
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): A multi-center cohort study designed to investigate the cardiovascular consequences of sleep-disordered breathing.
- MROS (MrOS Sleep Study): A study focusing on the outcomes of sleep disorders in older men.
- MESA (Multi-Ethnic Study of Atherosclerosis): A study examining the prevalence, correlates, and progression of subclinical cardiovascular disease.
- DCSM (Dreem Challenge Sleep Monitoring): A dataset from the Dreem Challenge for automatic sleep staging.
- MASS (Montreal Archive of Sleep Studies): A comprehensive collection of polysomnographic sleep recordings.
- HMC (Home Monitoring of Cardiorespiratory Health): A dataset for the study of cardiorespiratory health using home monitoring devices.
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)
conda create -n physioex python==3.10
conda activate physioex
conda install pip
pip install --upgrade pip # On Windows, use `venv\Scripts\activate`
Install via pip
- Install PhysioEx from PyPI:
pip install physioex
Install from source
- Clone the Repository:
git clone https://github.com/guidogagl/physioex.git
cd physioex
- Install Dependencies and Package in Development Mode
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physioex-1.0.0.dev3.tar.gz.
File metadata
- Download URL: physioex-1.0.0.dev3.tar.gz
- Upload date:
- Size: 76.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d9e8a6120b61b614a0355bb213352ccc255f77051206c399d374f9a4d61af6c
|
|
| MD5 |
4c313430471e336178de60364487cd89
|
|
| BLAKE2b-256 |
7b44f10502047f9823a497dbc5f26e3116bef9a342a273ec1322e147cc351383
|
File details
Details for the file physioex-1.0.0.dev3-py3-none-any.whl.
File metadata
- Download URL: physioex-1.0.0.dev3-py3-none-any.whl
- Upload date:
- Size: 68.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43842334bf37398497f3020f617afd4741c14132325308a23ea178febe2859c0
|
|
| MD5 |
4228a54271b2dc167bc2fee4d704c797
|
|
| BLAKE2b-256 |
a784bea59bf7622014907b7e36f0e44088ecb56ea17ace3238aee0db04e3ff7f
|