Skip to content
muhcihan
Completed

AI-Assisted EEG Brain–Computer Interface

A low-cost, 4-channel brain–computer interface I built from scratch, from electrodes to AI model. 98% accuracy on a visual attention task.

A person using a tablet while wearing an EEG headband
Representative image · Mindfield Biosystems / Unsplash

This project started with a conversation with a neuroscientist, and the goal was simple: build a system that reads brain signals and interprets them with AI, entirely from scratch and without buying an off-the-shelf device.

98%
Accuracy on a visual attention task
4
EEG channels
End-to-end
Custom design from electrode to model
Real-time
Live signal and prediction

Why from scratch?

Ready-made EEG systems are either very expensive or too closed to adapt to your own needs, and there is little work on locally built EEG hardware in Turkey. So I decided to design the whole chain myself, from the electrodes that pick up the signal to the AI that interprets it.

How it works

The brain's signal is in the microvolt range, far weaker than the electrical noise around it. The system cleans it step by step and turns it into something meaningful:

  1. 1ElectrodesPicking up the signal from the scalp
  2. 2Analog front endAmplification and filtering
  3. 3DigitizationHigh-resolution sampling
  4. 4Embedded processorReal-time noise removal
  5. 5Desktop appVisualization and recording
  6. 6AILive classification

I tried several approaches at every hardware layer, choosing each part, from electrode material to power supply, by measuring and testing.

Software

The Python desktop app runs the experiments and the live model:

  • It reads data from the microcontroller continuously and plots each channel's spectrum live.
  • It labels data automatically based on the stimuli shown during the experiment.
  • It loads the trained model and produces real-time predictions.
Live frequency spectrum in the desktop app
Live frequency spectrum of one channel in the desktop app.

Results

Early tests were around 35% accurate. Filtering, data balancing and, most importantly, changing the data collection protocol raised the result step by step. With the same hardware and model, simply changing how the participant focused their attention took accuracy from 67% to 98%.

Limitations and next steps

The 98% result comes from a person-specific model trained on a single participant in a single session, so it shows the upper bound the system can reach for one user. Next up: lower-noise hardware, more channels, validation with multiple participants and real-world tests with people with limited mobility.

Have a similar project?

Embedded, PCB, IoT or software: let's talk about your idea.

You might also like