NeuronVision gives someone who needs help a way to ask for it with attention alone. A g.tec headset, a flashing board of real needs, and a P300 decoder. No implant. No keyboard.
Inspiration
Illness, injury, or a hospital bed can take speech away while the needs remain: assistance, comfort, a yes or a no, a person at the bedside.
NeuronVision is built for that moment. The person watches one flashing choice. The attended flash is a known EEG response, the P300, and the board turns that response into a request.
Letter-by-letter spelling is the classic research path, and it is too slow when the request is urgent. We aimed the hackathon at three things:
- A phrase board of real needs
- A decoder that follows the published P300 method
- A public site partners can open
What it does
NeuronVision turns a moment of attention into a clear request for help.
The public site, neuronvision.us, presents the signal path, the hardware, and a way to request a pilot. On the computer beside the person, Start acquisition connects a g.tec headset and streams the EEG through a causal bandpass of \(0.5\text{–}30\,\text{Hz}\). Traces can be watched live and, when configured, stored in MongoDB.
Supported headsets:
- Unicorn Hybrid Black
- BCI Core-4 and BCI Core-8
- g.Nautilus PRO and RESEARCH
The communication board is built around assistance:
- Food and Drink
- Move — sit up, lie down, turn
- Pain — where it hurts
- Help — toilet, hygiene, call a nurse
- Family and Friends
The choices flash. The person attends to the one they need. Without a headset, a labeled simulator shows the same idea with a synthetic P300, names the attended choice, and draws the average waveform. With a headset, the page shows the live signal. That live stream is already filtered, so the offline model stays on its own path.
The evidence is five real Unicorn recordings, S1.mat through S5.mat: 8 channels at 250 Hz, montage Fz, Cz, P3, Pz, P4, PO7, PO8, Oz. Each file holds five characters and 1,200 flashes (150 attended, 1,050 ignored). Shrunk linear discriminant analysis, trained on the other characters, separates the attended flash from the ignored one. Each flash is scored on the epoch \([-0.1,\, 0.7]\,\text{s}\).
| Recording | Attended | Ignored | Leave-one-character AUC |
|---|---|---|---|
S1.mat |
150 | 1,050 | 0.959 |
S2.mat |
150 | 1,050 | 0.934 |
S3.mat |
150 | 1,050 | 0.864 |
S4.mat |
150 | 1,050 | 0.940 |
S5.mat |
150 | 1,050 | 0.959 |
These files do not store the original words. The table is detection of the attended choice, which is the evidence that a request on the board can be found in the signal.
How we built it
- Interface. React and Vite, published with Firebase Hosting at neuronvision.us.
- Headset service. Python on the paired computer: FastAPI, g.Pype, and a local WebSocket. g.Pype opens the Unicorn. Experimental paths cover BCI Core and g.Nautilus through the g.tec device driver.
- Storage. MongoDB Atlas, optional, for recordings the team chooses to keep.
- Decoder. Causal Butterworth bandpass, epoch \([-0.1,\, 0.7]\,\text{s}\), baseline correction, downsampling, and scikit-learn LDA with shrinkage. The same steps train the model and replay a recording.
- Checks. PowerShell scripts score the files, fit a model, start the stream, and run the tests. The filter, the WebSocket, and the decoder all run with no headset attached.
The method follows published work: Farwell and Donchin’s P300 speller, Guger and colleagues’ 2009 spelling study, and the g.tec TVLDA note that matches these Unicorn files. Shrunk LDA is the baseline those papers measure other classifiers against.
Challenges we ran into
- A strong detector still needs a stimulus log. These recordings mark attended versus ignored. They do not say which phrase flashed. We kept that limit visible. A guessed sentence would have sounded better, and it would have been false.
- The live stream and the decoder stay apart. The stream already bandpasses the signal. The decoder expects raw samples and filters them itself. Mixing the two would break the match to the trained model.
- The headset service stays beside the person. Firebase serves the website. Bluetooth and the g.tec driver cannot move to that host. An empty scan usually means the headset is off, unpaired, or already open in another program.
- The first deploy failed closed. An expired Firebase login returned HTTP
401, and the CLI then lost the site name. Signing in again and pinning the site toneuronvisionfixed it. neuronvision.us went live after Porkbun’s parking records were replaced with Firebase’sAandTXTrecords. - Hardware claims were easy to inflate. The Unicorn Hybrid Black is 8 channels at 250 Hz. g.Nautilus reaches 64. This project’s evidence is the 8-channel Unicorn case, and that is enough for a P300 board.
Accomplishments that we're proud of
- [x] Public site at neuronvision.us and neuronvision.web.app
- [x] Acquisition page that can select a g.tec model, scan, check a connection, and preview the filtered signal
- [x] A phrase menu written as needs: movement, pain, hygiene, family, a call for help
- [x] A demo that names its simulated choice, so a judge can see the method
- [x] Offline scores on all five recordings, from inside the repo, with the AUCs in the table above
- [x] Tests that pass without hardware, and a written montage, filter split, and stimulus-label limit beside the code
What we learned
Attention is a usable signal for someone who needs assistance and cannot rely on speech. One selected phrase carries the request. A short clinical order — pain, then where it hurts; help, then who to call — gets a person there faster than the alphabet.
The flash log is part of the product. Once each choice is saved with its EEG sample, the same classifier can score a real request. The website can live anywhere. The device service belongs on the computer next to the headset.
What's next for NeuronVision
- [ ] Flash this assistance board and save every choice with the sample index
- [ ] Train the same shrunk LDA on that session, so a selected phrase is a measured result
- [ ] Keep the first screen small and urgent: Yes, No, Help, Stop, Pain, and a way to reach someone
- [ ] Leave letter entry for names the board does not contain
- [ ] Add authenticated access on the local service, and state clearly that NeuronVision is an assistive research prototype on the way to a tool people can use when they need help
Built With
- amazon-web-services
- angular.js
- base-44
- chatgpt
- claude
- copilot
- elevenlabs
- g.tec
- gemini
- machine-learning
- mongodb
- python
- seqera