ERP-like EEG Data Simulation & Enhancements
This release introduces enhancement to the data simulation for a more realistic ERP-like EEG signals. It also includes improvements to noise handling and refactoring of the data simulation pipeline by @orabe (see PR #7).
Key Enhancements:
- ERP-like EEG Data Simulation (Closes #6):
- Source-Level ERP Generation: Implemented a pipeline to generate plausible ERP signals at selected sources. This involves:
- Generating band-limited, temporally windowed white noise.
- Applying Butterworth bandpass filtering.
- Windowing with a Hanning window (now supporting random length and duration) for smooth onsets/offsets.
- Normalization and amplitude scaling.
- Sensor-Level Projection: Projecting simulated source activity to the sensor level using the leadfield matrix.
- Noise Modeling: Added Gaussian noise to achieve specified Signal-to-Noise Ratios (SNR).
- Multi-Trial Simulation: Refactored
DataSimulator
to support multi-trial simulations.
- Source-Level ERP Generation: Implemented a pipeline to generate plausible ERP signals at selected sources. This involves:
- Improved Noise Handling: Enhanced noise handling in both data simulation and source estimation processes.
- Refactoring:
- Refactored the ERP signal generation within
DataSimulator
. - Refactored the data parameter grid for more flexible experiment configuration.
- Refactored the ERP signal generation within
Affected Files:
calibrain/data_simulation.py
calibrain/benchmark.py
examples/run_experiments.py
Full Changelog: v0.1.0...v0.1.1