Abstract
NeuroDyGait is a novel two-stage framework designed to decode lower-limb gait patterns from EEG signals with high accuracy and temporal consistency. By combining phase-aware contrastive learning with a dynamic mixture-of-experts decoding strategy, the model overcomes significant inter-subject variability and maintains the rhythmic continuity essential for natural movement. Evaluated on large-scale datasets, NeuroDyGait achieves state-of-the-art performance and demonstrates rapid adaptation to new users, making it a promising solution for real-time brain-computer interface (BCI) applications.
Introduction
Brain-Computer Interfaces (BCIs) for walking face two major hurdles: inter-subject variability and temporal continuity. Individual "walking signatures" vary significantly due to physiological differences, sensor placement, and personal styles. Furthermore, walking is a rhythmic cycle, yet many existing models treat it as a series of isolated snapshots, leading to "jittery" predictions that ignore biomechanical constraints. NeuroDyGait addresses these challenges by learning structured relationships between neural signals and gait dynamics.
Methods
The NeuroDyGait framework splits the learning process into two specialized stages to handle the complexity of neural gait decoding.
Stage I: Phase-Aware Pretraining
Instead of simple regression, the model aligns EEG signals ($x$) with motion embeddings ($z_m$) using a novel Relative Contrastive Learning (RelCon) objective ($\mathcal{L}_{rcl}$). Unlike standard binary contrastive learning, RelCon uses a learnable cross-attention metric to rank similarities across an entire batch. Crucially, the model is tasked with reconstructing the entire multi-cycle gait trajectory, forcing the EEG encoder to capture the underlying physics and timing of the gait cycle.
Stage II: Relation-Aware Decoding
To manage the variability between different subjects, the authors utilize a Domain Head Mixture. Each training session is assigned a dedicated prediction head ($h_s$). During inference, a lightweight scoring network analyzes the incoming EEG and predicts a domain weighting vector ($\alpha$). This dynamically weights the heads, essentially blending the expertise of the most relevant previously seen subjects to decode the gait of a new user.
Key Insights and Results
- Emergent Phase Structure: t-SNE visualizations reveal that EEG embeddings naturally cluster into four distinct spatial regions corresponding to the four phases of the gait cycle (e.g., left-toe-off to mid-swing), indicating the model learns the rhythm of walking without explicit phase labels.
- Neurophysiological Grounding: Saliency mapping shows the model focuses heavily on the central sensorimotor cortex (electrodes Cz and CPz), aligning with known human neurophysiology for lower-limb control.
- State-of-the-Art Performance: NeuroDyGait achieved a Pearson correlation ($r$) of 0.6980 on the Gait-EEG Dataset (GED), outperforming recent baselines like EEG2GAIT.
- Real-Time Readiness: With a forward-pass latency of under 5ms, the model is suitable for closed-loop BCI applications, such as exoskeleton control.
Conclusion and Future Work
NeuroDyGait provides a robust framework for zero-shot gait decoding. While highly effective on healthy individuals, future research will focus on clinical populations with neurological impairments, multimodal integration with EMG or wearable sensors, and continual learning to adapt to changing gait patterns during rehabilitation.
Summary updated