This project uses BrainFlow to capture and analyze EEG data, focusing on alpha and beta wave bands. It processes the data with filters and triggers audio feedback based on the measured brain wave activity. The application initializes a connection to an EEG board, captures brain wave data for 10 seconds, applies detrending, calculates power spectral density using Welch's method, applies bandstop and bandpass filters, calculates power in the alpha and beta bands, and provides audio feedback based on the measured values.
- Real-time EEG data collection: Uses BrainFlow to capture EEG data from a connected device.
- Signal Processing: Applies bandpass and bandstop filters to clean and isolate relevant frequency bands.
- Power Spectrum Density Analysis: Calculates power spectrum density using Welch's method.
- Alpha and Beta Wave Analysis: Calculates power in the alpha (7-13 Hz) and beta (14-30 Hz) bands.
- Audio Feedback: Provides audio feedback using pyttsx3 based on alpha and beta power levels.
- Python
- BrainFlow
- NumPy
- pyttsx3
To get started with this project, you need to install the required libraries and connect a compatible EEG device.
- Python
- BrainFlow:
pip install brainflow
- NumPy:
pip install numpy
- pyttsx3:
pip install pyttsx3
- Clone the repository:
git clone https://github.com/surjahead/brain-assistant.git
- Navigate to the project directory:
cd brain-assistant - Connect your EEG device (configured for COM5 by default, can be changed in
main.py). - Run the script:
python main.py
- This project was created using the OpenBCI Ganglion Board and the BrainFlow documentation.