A simplified Brain-Computer Interface (BCI) simulation built using Python.
This project demonstrates how brain signals can be simulated, analyzed using signal processing techniques, and classified into mental states based on frequency ranges.
- Brain wave simulation using sine waves
- Realistic noise addition (to mimic EEG interference)
- Fast Fourier Transform (FFT) for frequency analysis
- Dominant frequency detection
- Rule-based mental state classification
| Brain Wave | Frequency Range | Mental State |
|---|---|---|
| Alpha | 8–13 Hz | Relaxed |
| Beta | 13–30 Hz | Focused |
- Generate a simulated brain signal
- Add noise to represent real-world EEG conditions
- Convert the signal from time-domain to frequency-domain using FFT
- Detect the dominant frequency
- Classify the mental state
Clone the repository:
git clone https://github.com/devzzafk/bci-simulation.git
cd bci-simulationInstall dependencies:
pip install -r requirements.txtpython bci_demo.pyInside bci_demo.py, modify:
frequency = 10Change it to:
frequency = 20- 10 Hz → Alpha (Relaxed)
- 20 Hz → Beta (Focused)
This is a simplified educational simulation and does not use real EEG hardware.
- Signal Processing
- Fast Fourier Transform (FFT)
- EEG Signals
- Brain-Computer Interfaces
- Feature Extraction
This project is open-source and intended for educational purposes.