DECODE: Dual-Enhanced Conditioned Diffusion for EEG Forecasting

Mehran Shabanpour, Sadaf Khademi, Konstantinos N Plataniotis, Arash MohammadiarXiv 2026 · arXiv

TL;DR

DECODE introduces a novel dual-conditioned diffusion framework for EEG forecasting that unifies historical brain signals with natural language descriptions of upcoming cognitive events. By bridging high-level text semantics and low-level neural dynamics, it achieves sub-microvolt prediction accuracy and unlocks zero-shot generalization capabilities for brain-computer interfaces.

What Problem Does This Paper Address?

Forecasting Electroencephalography (EEG) signals is notoriously difficult because brain activity is highly non-stationary, multi-scale, and varies wildly between individuals. While predicting future brain patterns is vital for safety-critical applications—like real-time driving assistance or seizure prevention—traditional methods (such as RNNs or autoregressive models) fail to capture the stochastic, multi-modal nature of future neural states.

Recent time-series diffusion models have shown promise, but they typically rely solely on past data or rigid, discrete category labels (e.g., "Class 1"). They lack the flexibility to incorporate rich, contextual semantic information about what cognitive event is about to happen, which is crucial for complex, real-world tasks.

Methods

The authors present DECODE (Dual-Enhanced COnditioned Diffusion), which builds upon the Diffusion-TS architecture to decompose signals into trend, seasonal, and residual components. Its core innovation lies in a dual-conditioning strategy during the reverse (denoising) process:

  1. Text-Guided Semantic Conditioning: Natural language descriptions (e.g., "Driver suddenly slows for danger") are encoded using a frozen BERT-large model. A "Semantic-Neural Bridge" aligns these text embeddings with EEG features using a contrastive InfoNCE loss, creating a continuous, meaningful latent space.
  2. History-Based Langevin Dynamics: During inference, the model applies Langevin sampling to ensure the generated future signal remains temporally coherent and physically consistent with the observed historical EEG data.

The overall architecture integrates these two pathways to guide the transformer-based encoder-decoder network, as illustrated below:

Fig. 1. Architecture of the proposed dual-conditioned diffusion model for event-specific EEG forecasting. The DECODE framework integrates semantic guidance from natural language event descriptions (top path) with history-based temporal conditioning (bottom path) through a hierarchical diffusion process. Text descriptions are encoded via frozen BERT-large and projected to a shared embedding space, while historical EEG signals undergo forward diffusion before processing through encoder-decoder transformers with interpretable decomposition.

Datasets

The framework was evaluated using the Multimodal Physiological Dataset for Driving Behaviour (MPDB).

  • Contains 59-channel EEG data recorded at 1000 Hz from 35 participants in a high-fidelity driving simulator.
  • Captures five distinct real-world driving behaviors: braking, turning, lane changing, acceleration, and stable driving.
  • The authors applied sliding window augmentation to expand the dataset 15-fold while preserving temporal structures.

Key Insights and Ideas

  • Language as a Continuous Bridge: Moving from discrete class labels to natural language descriptions prevents "latent space collapse." Because text embeddings are continuous, the model can theoretically interpolate between cognitive states or generalize to entirely novel behaviors in a zero-shot manner.
  • The Power of Dual Guidance: History conditioning ensures local physical plausibility, while text guidance provides the "semantic drift" needed to steer the generation toward the correct behavioral manifold.
  • Unexpected Neural Signatures: In analyzing the driving data, the authors observed Event-Related Synchronization (ERS) in the beta and gamma bands during complex tasks like braking. This contrasts with the desynchronization typically seen in simpler motor tasks, highlighting the intense attentional and sensorimotor demands of real-world driving.

Key Results

  • Sub-Microvolt Accuracy: DECODE achieved a Mean Absolute Error (MAE) of 0.626 µV over a 75-timestep horizon, outperforming state-of-the-art time-series models like TimeGrad (0.759 µV) and PatchTST (0.733 µV) by roughly 24%.
  • Calibrated Uncertainty: The model maintained well-calibrated uncertainty estimates with a Continuous Ranked Probability Score (CRPS) under 0.72.
  • Ablation Validation: An ablation study showed that relying on history conditioning alone yielded an MAE of 0.704 µV, proving that semantic text guidance significantly boosts forecasting accuracy.

A visual representation of the probabilistic forecasts against the ground truth can be seen in Figure 2:

Fig. 2. Representative EEG forecasting results for electrodes P7 and Pz, with historical signal (blue) providing temporal context up to timestep 1000 and the model generating probabilistic forecasts (orange) compared to ground truth (purple). The topographic map shows grand-average voltage distribu- tion (0-500 ms post-stimulus) with red indicating positive and blue indicating negative potentials.

Limitations and Future Work

  • Horizon Degradation: As with most forecasting models, accuracy exhibits characteristic degradation as the prediction horizon extends further into the future (as shown in Figure 3).
  • Inference Latency: Diffusion models require iterative denoising steps, which can introduce latency challenges for real-time systems.

However, the authors note a unique advantage for future work: early termination of the reverse diffusion process could yield partially denoised but highly task-relevant signals. Future research will investigate these optimal noise-fidelity trade-offs to make the system highly viable for time-critical neural interfaces.

Summary updated

Abstract

Forecasting Electroncephalography (EEG) signals during cognitive events remains a fundamental challenge in neuroscience and Brain-Computer Interfaces (BCIs), as existing methods struggle to capture both the stochastic nature of neural dynamics and the semantic context of behavioral tasks. We present the Dual-Enhanced COnditioned Diffusion (DECODE) for EEG, a novel framework that unifies semantic guidance from natural language descriptions with temporal dynamics from historical signals to generate event-specific neural responses. DECODE leverages pre-trained language models to condition the diffusion process on rich textual descriptions of cognitive events, while maintaining temporal coherence through history-based Langevin dynamics. Evaluated on a real-world driving task dataset with five distinct behaviors, DECODE achieves sub-microvolt prediction accuracy (MAE = 0.626 microvolt) over 75 timestep horizons while maintaining well-calibrated uncertainty estimates. Our framework demonstrates that natural language can effectively bridge high-level cognitive descriptions and low-level neural dynamics, opening new possibilities for zero-shot generalization to novel behaviors and interpretable BCIs. By generating physiologically plausible, event-specific EEG trajectories conditioned on semantic descriptions, DECODE establishes a new paradigm for understanding and predicting context-dependent neural activity.
BibTeX
@misc{shabanpour2026decode,
  author = {Mehran Shabanpour and Sadaf Khademi and Konstantinos N Plataniotis and Arash Mohammadi},
  title = {{DECODE: Dual-Enhanced Conditioned Diffusion for EEG Forecasting}},
  year = {2026},
  eprint = {2603.16885},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.16885},
}
Figure