From watching films to making them
The published science we build on, and what a headband cannot do.
What the Gallant Lab showed
UC BerkeleyJack Gallant's lab at UC Berkeley builds encoding models: for each small piece of brain (a voxel in fMRI), a model learns which features of a natural stimulus, such as a movie or a story, predict its activity. Each model is judged only on data it has never seen, so a high score means the model really captures what that region responds to.
In 2011, Nishimoto and colleagues recorded fMRI while people watched movie trailers. They built a motion-energy model of visual cortex, with separate parts for fast visual information and the slow blood-flow response, and used it to reconstruct blurry versions of the clips from brain activity alone (Current Biology, 2011).
In 2016, Huth and colleagues used the same voxelwise approach while people listened to hours of stories and mapped where different kinds of meaning are represented across the cortex (Nature, 2016).
What we take from it is the method, not the claim. The Lab's encoding lens does what these papers do, on a far smaller scale: describe the frames with simple features, add time delays, fit a ridge regression, and report the correlation on held-out time next to a shuffled control. Our motion-energy lens follows the same idea, measuring how much the picture changes at more than one scale, with code we wrote ourselves.
Neurocinematics and EEG
EvidenceHasson and colleagues coined "neurocinematics" in 2008 after finding that some films drive viewers' brains in strikingly similar ways. That similarity, called inter-subject correlation, became a measure of how tightly a film holds an audience.
EEG can measure it too, and quickly. Dmochowski and colleagues recorded EEG from small groups watching TV episodes and Super Bowl ads. How reliably the viewers' brains responded predicted the preferences of much larger audiences, measured through social media activity and ratings (Nature Communications, 2014).
That is the root of our original white paper: inexpensive EEG at test screenings to see where a film lands. BrainStream applies the same instruments to the maker rather than the audience, and the Lab's "mind × image" lenses ask how the maker's state tracked what they put on screen.
An audience lens is the natural next step: with several people's sessions of the same piece, inter-subject correlation can be computed directly. It needs consented multi-viewer data, so we have not built it yet.
What a headband can and cannot do
Honest limitsThe research frontier for EEG-to-image is moving fast. In 2025, the Alljoined-1.6M dataset was recorded on a 32-channel consumer headset costing about $2,200, roughly 27 times cheaper than research systems, and was still useful for decoding broad image categories (arXiv 2508.18571). Newer models such as ENIGMA (2026) report state-of-the-art EEG-to-image results on that data and on THINGS-EEG2.
Those results come from controlled studies with many channels, thousands of repeated images per person and heavy model training. A BrainBit headband has four dry electrodes. It reliably sees broad states (calm versus focused, alpha rhythm, drowsiness, muscle tension) and how they change over time. It does not read thoughts and cannot reconstruct what someone imagines.
So in BrainStream the image generator draws, and the artist's brain state steers it. The Lab describes a session; it does not decode one. Everything here is for creative and general-wellness use, not medical use.
The Lab's twelve lenses
Open the Lab →| Lens | What it measures | Where the method comes from |
|---|---|---|
| States over time | Engagement index β/(α+θ) and relative band power, scored against the person's own baseline | Pope, Bogart & Bartolome 1995 (NASA engagement index) |
| Spectrum per channel | Welch-averaged power spectrum; individual alpha peak frequency | Standard EEG spectral analysis |
| Spectrogram | Power by frequency, second by second | Short-time Fourier analysis |
| Left vs right | Alpha asymmetry, ln(R) − ln(L) | Davidson's asymmetry convention |
| Moments | Surges, drops, peaks and dips in the person's own engagement | Within-person z-scores |
| Signal quality | Flat, overloaded, mains-contaminated or muscle-heavy channels | Standard artifact screening |
| Shots & frames | Shot boundaries from colour-histogram distance | Classic shot-boundary detection |
| Motion energy | Frame change at a fine and a coarse scale; pooled motion direction | Adelson & Bergen 1985; Lucas & Kanade 1981; the idea behind the Gallant Lab's motion-energy model |
| Palette | Dominant colours by k-means | Colour quantisation |
| Mind × image lag | Cross-correlation of engagement and on-screen motion, ±8 s | Time-lagged correlation |
| Encoding model | Predict engagement from frame features with 0–4 s delays, ridge regression, held-out correlation and a shuffled control | Gallant Lab voxelwise encoding models (Nishimoto et al. 2011; Huth et al. 2016), adapted to EEG |
| Hand to the agents | Numbers-only summary in the agents' tool format | — |
Every lens is original Mindstream code written from published definitions. No third-party analysis code is bundled. Methods and formulas are not copyrightable; code and data are.
Open-source code around this work
Licences| Project | From | What it does | Licence | For us |
|---|---|---|---|---|
| pycortex | Gallant Lab | Cortical surface visualisation of fMRI | BSD 2-Clause | Usable, with notice |
| himalaya | Gallant Lab | Fast ridge / kernel-ridge regression for encoding models | BSD 3-Clause | Usable, with notice |
| pymoten | Gallant Lab | Motion-energy features from video (Python) | BSD 2-Clause | Usable, with notice |
| voxelwise_tutorials | Gallant Lab | Teaching notebooks for voxelwise modelling | BSD 3-Clause | Usable, with notice |
| BrainFlow | BrainFlow project | Headset SDK; supports BrainBit | MIT | Usable, with notice |
| MNE-Python | MNE developers | EEG/MEG analysis | BSD 3-Clause | Usable, with notice |
| PsychoPy | Open Science Tools | Experiment presentation | GPL-3.0 | Avoid in shipped code: copyleft |
"Usable, with notice": permissive licences allow commercial use if the copyright notice and licence text ship with the code. None of these are in the site today; if one is added (for example himalaya for larger encoding models), its notice goes in LICENSE_AUDIT.md and the NOTICE file.
Research datasets
Data licences| Dataset | What it is | Licence | For us |
|---|---|---|---|
| Alljoined-1.6M | 1.6M EEG trials, 20 people, 32-channel consumer headset | CC BY-NC-ND 4.0 | Research and benchmarking only. Non-commercial, no derivatives: do not train a commercial model on it. |
| THINGS-EEG2 | Research-grade 64-channel EEG to images | Check the dataset's own terms | Treat as research-only until counsel confirms. |
| CRCNS vim-2 (Gallant movie fMRI) | fMRI recorded while people watched natural movies | CRCNS terms of use (registration) | Treat as research-only until counsel confirms. |
The Lab uses none of these: it analyses only the data the artist brings. Any model trained for a commercial product should be trained on consented Mindstream sessions, with the consent covering that use.
References
Reading- 2011Nishimoto, Vu, Naselaris, Benjamini, Yu & Gallant. Reconstructing visual experiences from brain activity evoked by natural movies. Current Biology 21, 1641–1646. doi.org/10.1016/j.cub.2011.08.031
- 2016Huth, de Heer, Griffiths, Theunissen & Gallant. Natural speech reveals the semantic maps that tile human cerebral cortex. Nature 532, 453–458. doi.org/10.1038/nature17637
- 2014Dmochowski, Bezdek, Abelson, Johnson, Schumacher & Parra. Audience preferences are predicted by temporal reliability of neural processing. Nature Communications 5, 4567. doi.org/10.1038/ncomms5567
- 2008Hasson, Landesman, Knappmeyer, Vallines, Rubin & Heeger. Neurocinematics: the neuroscience of film. Projections 2(1), 1–26.
- 2025Xu et al. Alljoined-1.6M: a million-trial EEG-image dataset for evaluating affordable brain-computer interfaces. arxiv.org/abs/2508.18571
- 1995Pope, Bogart & Bartolome. Biocybernetic system evaluates indices of operator engagement in automated task. Biological Psychology 40, 187–195.
- 1985Adelson & Bergen. Spatiotemporal energy models for the perception of motion. JOSA A 2(2), 284–299.