Brain electrodes let models track how pleasant a feeling is
In short
- A team at Zhejiang University in Hangzhou, China, published a paper in Nature Computational Science on 22 July 2026 showing that deep-learning models can read out how pleasant and how intense a person's emotional state is, moment by moment, from electrodes implanted in the brain.
- They recorded 18 people with epilepsy who already had electrodes in place for clinical monitoring. Models built separately for each person tracked self-rated valence and arousal while the people watched pictures and videos.
- Using signals from both grey matter and white matter beat either alone, models worked across the two tasks, and in four new people the system ran in real time.
- In the authors' preprint the average delay from signal to decoded output was 376 milliseconds. The people had no feedback and no treatment was delivered: this is decoding only.
18 people with epilepsy in the offline study; 4 new people in the real-time test; 0.70 video-task valence correlation (preprint); 376 ms average decoding delay (preprint)
What the paper reports
The paper, by Yuxiao Yang, Wenjun Chen and colleagues, asks whether brain activity can be turned into a continuous reading of emotion, not a coarse label. The abstract says the team recorded intracranial electroencephalogram (iEEG) together with many self-rated valence and arousal scores across two emotion-eliciting tasks in 18 individuals. Valence runs from unpleasant to pleasant. Arousal runs from calm to excited. Together they are a standard two-number description of an emotional state.
The abstract makes four claims:
- Performance. Personalised deep-learning models decoded continuous valence and arousal with high performance, improving on the performance of prior EEG and iEEG decoding.
- Grey plus white matter. The models "substantially improved performance" by combining signals from grey matter (where nerve-cell bodies sit) and white matter (the cables between regions).
- Generalisation and explanation. The models generalised across the two tasks, and revealed shared and preferred mesolimbic–thalamo–cortical subnetworks for valence and arousal.
- Real time. The models "realized robust real-time decoding in four new individuals".
How the study was run
The details in this section come from the authors' bioRxiv preprint of November 2025, which is not peer reviewed. We could not read the journal's full text, so exact values may differ in the published paper.
All 18 people had epilepsy and were undergoing iEEG monitoring, in which electrodes are placed inside the head for several days so doctors can find where seizures start. The study did not choose where the electrodes went; the preprint says each person's implantation was set by clinical need. Across the group the contacts covered 41 grey-matter regions and 26 white-matter tracts, with 1,408 grey-matter contacts and 1,406 white-matter contacts.
Each person took part in rounds of two tasks: viewing still images (12–18 seconds per trial) and watching video clips (1–4 minutes per trial). After each trial they rated valence and arousal on a 0–100 slider. The model learned, for each person separately, to predict those ratings from the brain signals. Fourteen people were included in the image task and all 18 in the video task, after some people were removed for not engaging with the tasks.
The score used is the cross-validated correlation coefficient (cvCC): how closely predicted ratings track the real ones, where 1 would be perfect and 0 is chance. It was tested by holding out trials, not by testing on data the model had trained on.
The numbers
For single people in the video task, valence cvCC ranged from 0.55 to 0.88 and arousal from 0.34 to 0.76. White-matter signals were smaller in amplitude than grey-matter ones but still decoded emotion better than chance in every person, and the combination beat each on its own (P < 0.0005 in all cases, the preprint says).
Across tasks. A model trained on image data and tested on video data reached a valence cvCC of 0.34, against 0.03 for a model trained on shuffled labels and 0.70 for a model trained on video itself. Fine-tuning the image-trained model with 30% of the video trials lifted it to 0.63, and with 50% to 0.68, close to the 0.70 of full training. In plain terms (ours): some of what the models pick up is shared between pictures and films, so a model does not have to start from nothing in each new setting.
Which regions. In each person, accuracy rose as regions were added and levelled off at around four. With four regions the valence cvCC was 0.55, against 0.60 using every implanted region. The preprint reports that white-matter contacts helped most where the implants missed key grey-matter regions that those tracts connect to.
Can the system read emotion in real time?
For the online test, four new people with epilepsy had personal models trained a day before. The models were then fixed and run while the people did the tasks. The people were not told their signals were being decoded and got no feedback.
In the video task the final online correlation ranged from 0.32 to 0.62 for valence and 0.25 to 0.45 for arousal across the four people, and pooled values were 0.51 and 0.37. The preprint says that was comparable with the offline results it quotes for the same comparison (0.53 and 0.31). The preprint adds that the offline performance in these online experiments was lower than in the main offline study, because the online recording device had fewer channels and more noise. The average latency from streaming iEEG to a decoded emotion state was 376 ± 11.87 milliseconds.
What this does not show
- Epilepsy patients only. The authors list this as a limitation: pathological brain networks and electrode placement that varied from person to person may affect the results. They say they ran controls to exclude the influence of epileptic activity.
- Two tasks, two dimensions. Pictures and videos are not everyday life, and valence and arousal do not cover every emotional dimension.
- Four people online. Real-time results come from four people, and the authors say future work should include more.
- Self-ratings are the ground truth. The model predicts what people say they feel, not an independent measure of mood.
- No therapy. Nothing was stimulated and nobody's mood was changed. The abstract says only that the results "have implications for" deployable affective brain–computer interfaces and closed-loop therapeutic systems.
Where things stand
The 10 September 2026 Research Briefing in the same journal places the work among earlier intracranial mood studies, including a 2021 closed-loop case in treatment-resistant depression and a 2023 study tracking recovery under deep brain stimulation. The preprint names recruiting people with primary affective disorders, using consistent electrode layouts, broader tasks and more online participants as next steps, and says closed-loop approaches such as adaptive deep brain stimulation need further optimisation of model stability and latency before use.
Terms in plain English
- Intracranial EEG (iEEG): electrical activity recorded from electrodes placed inside the skull, on or in the brain. (Ours.)
- Valence: how pleasant or unpleasant a state feels. (Ours.)
- Arousal: how calm or excited a state is. (Ours.)
- Grey matter / white matter: the tissue with nerve-cell bodies / the bundles of fibres that connect regions. (Ours.)
- Closed-loop therapy: a device that reads a brain state and adjusts stimulation in response. (Ours.)
Sources
- Cross-task, explainable and real-time decoding of human emotion states by integrating gray and white matter intracranial neural activity, Nature Computational Science 6, 1067–1085, 22 July 2026 (abstract and legends read)
- Deep learning models enable high-performance, real-time emotion decoding from intracranial brain activity, Research Briefing, Nature Computational Science, 10 September 2026
- Cross-task, explainable, and real-time decoding of human emotion states by integrating grey and white matter intracranial neural activity, bioRxiv preprint, 13 November 2025 (source of the numbers; not peer reviewed)
Sources
- Cross-task, explainable and real-time decoding of human emotion states by integrating gray and white matter intracranial neural activity
- Deep learning models enable high-performance, real-time emotion decoding from intracranial brain activity
- Cross-task, explainable, and real-time decoding of human emotion states by integrating grey and white matter intracranial neural activity (preprint)
Related stories
- Neural network designs 3D-printed parts in seconds, authors say
- AI on ovarian tumour slides sorts niraparib outcomes, authors say
- A deep-learning model predicts typhoon intensity, authors say
- Colon tumour shape is tied to stem-cell states, a study finds
- Neural network starts a laser in one try from its faint glow
- Lakes explain 11% of lake-ending glaciers' ice loss, authors say