Independent project
EEG Signal Processing & RC Filter Optimization
I designed and optimized a two-stage passive RC low-pass filter to study how electrical circuits affect neural signals in brain-computer interface (BCI) applications.
I modeled the circuit's transfer function, used SciPy to find resistor and capacitor values that meet set frequency-response targets, and checked the design in LTspice. I then applied its frequency response to real human EEG from the PhysioNet EEG Motor Movement/Imagery Dataset.
What I built
- Circuit design. A two-stage RC low-pass filter in LTspice, with its transfer function derived by hand.
- Numerical optimization. SciPy's Nelder–Mead algorithm tuned four components to keep at least 90% of amplitude at 10 Hz and pass at most 10% at 100 Hz in the mathematical model.
- EEG processing. MNE-Python and NumPy for FFT-based filtering and inverse-FFT reconstruction of real recordings.
- Signal analysis. Original and circuit-filtered EEG compared in the time and frequency domains.
- Motor imagery (in progress). Finding left-hand and right-hand imagery segments to look at changes in mu (8–13 Hz) and beta (13–30 Hz) activity.
Optimized design
| Component | Optimized value |
|---|---|
| R1 | 2.884 kΩ |
| R2 | 19.582 kΩ |
| C1 | 1.715 µF |
| C2 | 0.229 µF |
H(s) = 1 / (R1·R2·C1·C2·s² + (R1·C1 + R1·C2 + R2·C2)·s + 1)
With these values the model's amplitude response is 0.900 at 10 Hz and 0.0998 at 100 Hz, so it meets both targets.
Next
Quantify motor-related EEG activity at the C3 and C4 electrodes, measure how well it survives the circuit filtering, and test whether extracted features can tell left-hand from right-hand imagery.
How does analog filter design change the neural information a brain-computer interface can use?