Neural Signal Decoder
An end-to-end neural signal decoding pipeline using simulated EEG data. Evaluate multiple architectures (LSTM, Transformer, Spectral Models) with focus on engineering rigor and inductive bias alignment.
Project Overview
Mission
Decode multichannel EEG-like signals into discrete control classes using engineered neural architectures. This project emphasizes rigorous evaluation of modeling paradigms under controlled conditions.
By systematically evaluating different architectural approaches, we identify the inductive biases that matter most for neural signal decoding, providing insights applicable to real BCI systems.
Multichannel EEG with class-specific frequency bands (Alpha, Beta, Theta, Gamma) and controlled noise
LSTM, Transformer, and Spectral MLP models for comprehensive architectural comparison
Bandpower-based feature extraction reflecting established neuroscience priors
Modular design with comprehensive documentation for full reproducibility
Key Metrics
Pipeline Architecture
End-to-End Neural Signal Decoding Pipeline
Simulated EEG with class-specific frequency bands
Z-score normalization per channel
Sliding window segmentation
Bandpower or time-domain features
LSTM, Transformer, or MLP
Discrete class prediction
Model Architectures
LSTM Decoder
Sequential LSTM architecture for time-domain signal processing. Captures temporal dependencies but struggles with frequency-aligned features due to inductive bias mismatch.
Transformer Decoder
Attention-based sequence model with better generalization. Time-domain Transformer shows improvement over LSTM but benefits significantly from frequency-domain features.
Spectral MLP
Bandpower-based MLP operating on frequency-aligned features. Achieves highest accuracy by leveraging established neuroscience priors about EEG representation.
Technology Stack
Core language and runtime
Deep learning framework
Numerical computing
Signal processing & DSP
ML utilities & metrics
Visualization & plotting
Progress tracking
Interactive notebooks
Key Results & Findings
Bandpower-Based Transformer
Achieves 85% test accuracy by combining Transformer architecture with frequency-aligned bandpower features. This represents the best architectural-feature alignment.
Inductive Bias Mismatch
Time-domain LSTM and Transformer show systematic performance degradation due to inductive bias mismatch with the frequency-dominant class separability in EEG signals.
Feature Engineering Matters
Frequency-aligned features (bandpower) dramatically outperform raw time-domain features, validating neuroscience priors and emphasizing domain knowledge in neural signal processing.
Reproducibility
Complete modular pipeline with seed control and documentation enables full reproducibility. All experimental conditions and hyperparameters are clearly specified.