PhysioEx: a new Python library for explainable sleep staging through deep learning.
Guido Gagliardi1,2,3, Antonio Luca Alfeo1,4, Mario G C A Cimino1,4
1Department of Information Engineering, University of Pisa, Pisa, Italy.
Physiological Measurement
|January 28, 2025
Summary
PhysioEx is a new Python library for sleep stage analysis using deep learning (DL) and Explainable AI (XAI). It standardizes the analysis pipeline and provides insights aligning AI decisions with clinical expertise.
Area of Science:
- Computational neuroscience
- Medical informatics
- Machine learning
Background:
- Sleep staging is vital for diagnosing sleep disorders.
- Current methods for sleep stage analysis can be complex and lack standardization.
- Deep learning (DL) and Explainable AI (XAI) offer potential for improved sleep analysis.
Purpose of the Study:
- Introduce PhysioEx, a Python library for sleep stage analysis.
- Provide a standardized, modular, and automated pipeline for sleep staging.
- Integrate DL and XAI for enhanced interpretability and clinical relevance.
Main Methods:
- Developed an extensible and modular API for sleep staging.
- Included pretrained models for various configurations (single-channel EEG, multi-channel EEG-EOG-EMG).
- Integrated XAI post-hoc methods to explain model decisions and align with clinical rules.
Main Results:
- PhysioEx benchmarks state-of-the-art sleep staging models.
- Enables fair comparison of models across different datasets.
- XAI techniques link DL decisions to human-understandable concepts, like American Academy of Sleep Medicine rules.
Conclusions:
- PhysioEx offers a standardized and accessible platform for sleep staging analysis.
- The library bridges the gap between machine learning models and clinical expertise.
- PhysioEx is a valuable, publicly available tool for sleep medicine researchers and practitioners.
Related Concept Videos
Stages of Sleep
168
Sleep progresses through distinct stages, each characterized by specific brain wave patterns and physiological responses ranging from wakefulness to stages of non-rapid eye movement, known as non-REM, to rapid eye movement, referred to as REM. Understanding these stages helps in recognizing how sleep supports various bodily and cognitive functions.
Before sleep begins, in wakefulness, the brain exhibits primarily beta waves, which are high in frequency and low in amplitude, indicating alertness...
Before sleep begins, in wakefulness, the brain exhibits primarily beta waves, which are high in frequency and low in amplitude, indicating alertness...
168
Sleep-Wake Cycles
1.2K
Sleep is an essential physiological process vital to maintaining overall well-being. The reticular activating system (RAS), a network of neurons in the brainstem, regulates wakefulness and sleep. While it may seem passive, sleep consists of distinct cycles, each with its unique characteristics and functions. Two key sleep phases are non-rapid eye movement (NREM) and rapid eye movement (REM).
NREM Sleep
NREM sleep comprises four progressive stages that seamlessly merge:
NREM Sleep
NREM sleep comprises four progressive stages that seamlessly merge:
1.2K
Understanding Sleep
217
Sleep, an essential biological state, involves significant reductions in physical activity, sensory awareness, and interaction with the environment. This complex physiological process is primarily regulated by specific brain regions, notably the hypothalamus and pons, which govern the sleep-wake cycle or circadian rhythm.
The circadian rhythm, a nearly 24-hour cycle, is deeply influenced by environmental light cues. Light exposure directly affects the hypothalamus, which in turn regulates...
The circadian rhythm, a nearly 24-hour cycle, is deeply influenced by environmental light cues. Light exposure directly affects the hypothalamus, which in turn regulates...
217


