DiffEEG: A Self-Supervised Denoising Diffusion Model for Learning EEG Generic Representations

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Emerging Technologies & Innovation, Biomedical Signal Processing · Depth: Expert, quick

Summary

DiffEEG is a 9.6M-parameter self-supervised foundation model designed to address critical challenges in EEG-based seizure detection: severe annotation scarcity and extreme class imbalance, where ictal events comprise less than 10% of clinical recordings. The model employs denoising diffusion pre-training on 1.3M unlabeled segments from the Temple University Hospital Seizure Corpus (TUHSZ) to learn generic neural representations using a 1D U-Net with multi-head self-attention. For downstream adaptation, a reinforced decision layer utilizes policy gradient optimization to directly maximize F1-score, prioritizing sensitivity to rare seizure events. Under strict patient-wise evaluation across 279 patients, DiffEEG achieved 61% accuracy and 59% F1 for 4-class seizure subtyping, and 81% accuracy with 85% weighted F1 for binary detection, maintaining 59% seizure recall despite 6.7% prevalence.

Key takeaway

For Machine Learning Engineers developing diagnostic models for rare medical events, DiffEEG demonstrates a robust strategy to overcome data scarcity and class imbalance. You should consider integrating self-supervised denoising diffusion pre-training with reinforcement learning-based fine-tuning, specifically optimizing for F1-score rather than overall accuracy. This approach can yield clinically viable performance, as shown by DiffEEG's 85% weighted F1 for binary seizure detection, even with minimal labeled data.

Key insights

Diffusion pre-training and RL fine-tuning enable robust EEG seizure detection despite data scarcity and extreme class imbalance.

Principles

Method

Pre-train a 1D U-Net with multi-head self-attention via denoising diffusion on unlabeled EEG segments, then fine-tune with a reinforced decision layer using policy gradient to maximize F1-score.

In practice

Topics

Best for: AI Scientist, Machine Learning Engineer, Research Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.