How lordfiddinck/bci-eeg-pipeline works
This repository is an exploratory EEG brain-computer-interface pipeline: offline session preparation and model training produce command classifiers, while a separate live client sends buffered EEG to an external inference API. The README documents filtering, wavelet denoising, electrode-grid interpolation, and four-class training; the sampled training code confirms band filtering and per-class CNNs. Session-to-training-set assembly and the inference server are outside the repository. The graph includes documented stages, but omits unverified implementation links where sampled source does not show the call.
Main entry points: train_model.py Training pipeline · eeg_stream.py Stream client · preprocessing.py Session preprocessing · config.py Shared configuration
Components 16
Offline preparation
- EEG and key logs
- Session preprocessing
preprocessing.py - Processed session
- Signal features
feature_extraction.py - Electrode grid
matrix_support.py - Shared configuration
config.py
Model training
- Training datasets
- Training pipeline
train_model.py - SingularNet models
train_model.py - Model checkpoints
Live inference
- LSL stream
- Stream client
eeg_stream.py - Predicted command
Other components
- Data operator
- EEG headset
- Inference API
Connections 17
- Data operator → EEG and key logs: provides
README.md - EEG and key logs → Session preprocessing: loads and aligns
preprocessing.py - Session preprocessing → Processed session: saves session
preprocessing.py - Training datasets → Training pipeline: loads samples
train_model.py - Training pipeline → Signal features: calls band filtering
train_model.py - Signal features → Electrode grid: prepares grid input
README.md - Electrode grid → Training pipeline: supplies CNN input
README.md - Training pipeline → SingularNet models: trains per-class
train_model.py - Training pipeline → Model checkpoints: writes weights
README.md - Session preprocessing → Shared configuration: reads paths
preprocessing.py - Training pipeline → Shared configuration: reads settings
train_model.py - Stream client → Shared configuration: reads stream settings
eeg_stream.py - EEG headset → LSL stream: broadcasts EEG
README.md - LSL stream → Stream client: provides samples
eeg_stream.py - Stream client → Inference API: posts windows
eeg_stream.py - Inference API → Stream client: returns predictions
eeg_stream.py - Stream client → Predicted command: interprets output
eeg_stream.py