Inside eXCube2, a Brain Mapped Engine for Emotion Reading

A person walks into a room and says hello. Before the first syllable fades, you have begun reading them. The tension in their jaw, the pitch of their voice, the way their eyebrows lift or press together. You do not run a calculation. You do not consult a checklist. Your brain takes in the sound and the sight at once, routes them through regions shaped by millions of years of evolution, and hands you back a feeling about what that person is feeling. It happens so quickly that calling it a “process” makes it sound more deliberate than it feels.
Getting a computer to do anything similar has proven far more difficult. Speech recognition systems can transcribe words with impressive fidelity, and face recognition algorithms can pick a person out of a crowd, but recognizing the emotional state behind the words and the face remains an open problem. One system might pick up the words “I’m fine” but miss the flat tone and tight facial muscles that signal the opposite. Most existing systems treat audio and visual streams as separate inputs, process them through networks that bear little structural relationship to biological perception, and produce outputs that are hard to interpret after the fact.
A new paper from a research group led by Nikola Kasabov at Auckland University of Technology, with collaborators Alexander Yang, Zhaoxin Wang, Iman Abouhassan, Assia Nikolova Kassabova, and Teodoros Lappas, proposes a different path. Their system, called eXCube2, uses spiking neural networks arranged in a three dimensional structure aligned with a standard brain atlas. Audio features map to the regions where your auditory cortex sits. Visual features map to the areas where your brain actually processes faces. And the learning rules that wire the network together come from the same timing dependent plasticity that strengthens or weakens synapses in living neurons. Taken together, these choices turn eXCube2 into a practical testbed for studying how a brain template for computation affects emotion recognition performance and interpretability.
What follows walks through what eXCube2 does, how it works, why the brain template matters, and what its results suggest for emotion aware AI.
What the Framework Sets Out to Do
The goal of eXCube2 is to classify emotional states from speech, facial expressions, or both at once. The work is a research prototype intended to study how brain structured computation affects learning, rather than a finished application. The system takes raw audio or video data, extracts meaningful features, converts those features into spike trains, feeds the spikes into a brain structured spiking neural network, and produces a classification output indicating whether the subject is in a state of low emotional arousal (neutral, calm, or sad) or high emotional arousal (happy, angry, fearful, disgusted, or surprised).
The group built and tested three separate models within the system. You can think of these as three different ways of driving the same underlying brain shaped reservoir. One processes only audio. Another processes only visual data. The third combines both modalities into an integrated system. All three share the same underlying architecture, which is why eXCube2 is best viewed as an extensible platform rather than a single fixed model.
Spiking Neural Networks and Why They Matter Here
Conventional artificial neural networks communicate through continuous valued activations. A neuron in a standard deep learning model outputs a number, passes it through a weighted connection, and the next neuron integrates those numbers into its own output. This works well for many tasks, but it discards something fundamental about how biological neurons operate.
Real neurons communicate through spikes, which are brief, all or nothing electrical events. The timing of those spikes carries information. Two neurons that fire in close succession can strengthen the connection between them, a phenomenon called spike timing dependent plasticity, or STDP. In short, connections strengthen when neurons fire in close temporal proximity and weaken when they do not, allowing the network to encode patterns that unfold over time rather than just static spatial arrangements. Emotional cues unfold on exactly these kinds of time scales, in shifts of tone, pauses, and micro movements of the face such as brief twitches around the eyes and mouth.
Spiking neural networks, or SNNs, are computational models that preserve this temporal dimension. In an SNN, information is encoded as discrete events rather than continuous values, and learning follows STDP rules where the relative timing of pre and post synaptic spikes determines whether a connection grows stronger or weaker. Mathematically, the weight change depends on an exponential function of the time difference between input and output spikes, with separate parameters controlling how quickly potentiation and depression decay, a setup that lets the model favor either tighter or looser temporal associations.
eXCube2 builds directly on the earlier NeuCube framework, extending it from brain signal analysis to audiovisual data. NeuCube arranges spiking neurons in a three dimensional cube that can be structured according to a brain atlas and has been applied previously to EEG and other physiological recordings. What eXCube2 contributes is a set of new methods for feeding audio and visual data into this brain shaped reservoir, training it on emotion related patterns, and extracting interpretable results from the learned dynamics, effectively pulling voice and face signals into the same architecture that had been used for brain data.
From Sound Waves to Spikes in the Auditory Cortex
The audio pipeline begins with raw speech data from the RAVDESS dataset, a collection of recordings by 24 professional actors expressing various emotions at different intensity levels. RAVDESS is a standard benchmark in emotion recognition research, which makes results easier to compare across studies. The authors extract mel spectrogram features from each recording using a 25 millisecond analysis window with a 10 millisecond stride, a common configuration in speech analysis. This produces 40 frequency bands per channel, 80 features total for stereo audio. The choice of mel spectrograms was not assumed but empirically tested against three alternatives, including mel FFT, linear FFT, and mel frequency cepstral coefficients. Mel spectrograms consistently outperformed the others for emotion classification in this context.
These features are then encoded into spike trains using a step forward method, where changes in the signal value produce positive or negative spikes. The encoding is reversible, meaning you can reconstruct the original signal from the spike train with quantifiable error, which provides a check that meaningful information survives the conversion.
Here is where the brain template becomes important. In the human auditory cortex, neurons are arranged tonotopically, meaning they are spatially organized by the frequencies they respond to. Low frequency sounds activate neurons in one part of the cortex, high frequency sounds activate neurons in another, and there is a smooth gradient between them.
eXCube2 makes use of that gradient. Using MNI brain template coordinates, the researchers identify the primary auditory cortex regions in both hemispheres of the SNNcube. They apply PCA to estimate the main axis of this region, project neurons along that axis, and map frequency bands from the mel spectrogram to neurons evenly distributed along the tonotopic gradient. Band 1 (around 50 Hz) maps to the center of the auditory cortex, while Band 40 (around 8000 Hz) maps to the periphery, with left and right channel features feeding the corresponding hemispheres.
This setup shapes how the network actually processes information. By placing input neurons in anatomically motivated locations within a recurrently connected 3D network, the system allows spatial relationships between frequency bands to influence how spikes propagate through the reservoir. Nearby neurons in the SNNcube interact more strongly than distant ones, which means the tonotopic organization shapes the temporal dynamics of learning and recall. Patterns that span neighboring frequency bands tend to settle into stable trajectories inside the cube, which the classifier can then separate as distinct signatures of different emotional states.
From Faces to Spikes in the Visual Cortex
The visual pipeline extracts 52 facial blendshape features (standardized coefficients that describe how parts of the face move or deform over time) from video using MediaPipe Face Landmarker. These features capture specific facial movements including brow raises, eye blinks, cheek puffs, jaw opening, mouth smiles and frowns, nose sneers, and tongue protrusion, along with a neutral baseline.
These 52 features map into the right hemisphere of the SNNcube, targeting the fusiform face area (FFA) and superior temporal sulcus (STS) regions. The choice of right hemisphere only is grounded in decades of neuroscience findings showing that face processing is strongly lateralized. Patients with right side damage in these regions can recognize voices and read text yet still fail to identify familiar faces, a classic sign of prosopagnosia, while comparable damage to the left hemisphere does not produce the same deficit.
Within the FFA and STS region of the SNNcube, the mapping follows a topographic logic. Brow and eye features occupy the dorsal (upper) portion of the mapped area, while mouth and jaw features sit in the ventral (lower) portion. That way, the physical layout of the inputs echoes the rough layout of the face itself.
For the multimodal model, audio and visual feature extraction is synchronized at 10 millisecond intervals (on the order of a few audio samples and a single video frame), allowing both streams to feed the SNNcube simultaneously. Synchronizing at this resolution gives the model access to fine grained alignment between syllables and brief facial movements without exploding the input size. The reservoir then integrates information from both modalities through its recurrent connections, much as the brain integrates auditory and visual signals in areas like the superior temporal sulcus.
Training the Reservoir and Classifying States
The SNNcube is initialized as a small world network of approximately 3100 spiking neurons and then trained in an unsupervised manner using STDP. Small world structure, where most connections are local but a few span longer distances, is a common feature of cortical connectivity and helps signals propagate through the cube without either getting stuck locally or dispersing too quickly. During training, spike encoded feature streams flow into the network, and connection weights between neurons adjust based on the temporal correlations in their firing patterns. Neurons that consistently fire in sequence develop stronger connections, effectively embedding the temporal structure of the input data into the network’s connectivity.
After training, the group extracts state vectors from the reservoir. The simplest approach sums the total number of spikes per neuron across all timesteps for each sample. An alternative method uses DeSNN classifier weights that give extra weight to neurons that fire early, on the assumption that early spikes carry more decisive information about the input. In practice, simple spike counting performs comparably to the more complex extraction method, because the reservoir has already transformed temporal patterns into spatial representations through its recurrent dynamics and STDP learning. That result hints that much of the temporal structure has already been converted into a spatial pattern of overall activity inside the cube.
These state vectors then go to a supervised classifier. The researchers tested four approaches, including SVM with RBF kernel, a weighted KNN method that uses signal to noise ratio to weight features, a centroid prototype classifier based on cosine similarity, and a learned prototype classifier optimized through gradient descent. The learned prototype method performed best for this particular dataset and was adopted as the default, reflecting its ability to settle on a small set of representative patterns for each class.
What the Experiments Found
The classification results are consistent across modalities. Audio only models achieved around 80% accuracy. Visual only models reached approximately 81%. The multimodal audio visual model, combining both streams, peaked at 82.7%.
These numbers may seem modest compared to claims seen elsewhere in the literature, but several factors provide important context. Headline numbers from emotion benchmarks often rely on carefully curated subsets or multiway labels, making direct comparisons less straightforward. The classification here is binary, distinguishing low arousal from high arousal states, and the test set maintains its natural class imbalance rather than being artificially balanced. More importantly, the system includes something most emotion classifiers do not offer at all, a “don’t know” output. In other words, the system learns when to remain silent rather than produce a forced guess.
By introducing a confidence threshold, the system can reject samples where its certainty falls below a set level. When this rejection mechanism is applied with thresholds between 55% and 65%, effective accuracy on the remaining samples rises. The multimodal model reaches 87.9% accuracy at 60% confidence threshold while still covering 81% of the test data. The video model hits 87.9% at 65% confidence with 71.3% coverage. The audio model achieves 85.3% at 55% confidence covering 72.3% of samples.
This trade off between coverage and accuracy is exactly what a deployed system needs. A call center monitor, for example, might use a low threshold to screen most calls, while a clinical tool might use a higher threshold and only flag the cases it is most certain about. The “don’t know” output gives system designers a practical knob for balancing reliability against throughput.
Making the Black Box Transparent
One of the strongest practical arguments for the brain template approach is explainability. Because features map to anatomically defined brain regions and the network learns through biologically grounded rules, the resulting models can be interrogated at multiple levels.
At the input level, the spatial mapping itself is interpretable. You can see which frequency bands feed which auditory cortex neurons, which facial features connect to which parts of the visual processing regions, and how both modalities converge in the STS area.
At the dynamics level, the trained reservoir reveals spike time associations between features. The paper visualizes these as arc diagrams where nodes represent input features (labeled by hemisphere) and arc thickness indicates how frequently a spike at one node is followed by a spike at the connected node in the next 10 millisecond time step. Thicker arcs mean stronger temporal coupling and more information exchange. These visualizations expose the internal dynamics of the model in a way that has no equivalent in a standard deep learning classifier, where learned representations are distributed across millions of parameters with no spatial or temporal grounding. The framework exposes internal activity patterns that may support interpretation, though the paper stops short of formally evaluating this through user studies or diagnostic validation. For engineers, these plots could make it easier to debug odd model behavior, inspect which cues dominate a decision, and spot dataset biases.
This kind of transparency could matter for clinical applications down the road. The authors suggest that, if extended to clinical datasets, the framework could be explored for conditions such as Parkinson’s disease, where changes in vocal patterns might produce distinctive spike propagation signatures between certain frequency bands. A clinician could then examine whether those patterns align with known neurological changes. In that scenario the model would become a source of hypotheses rather than just predictions, bringing it closer to how clinicians already think about pathophysiology. That said, the paper does not test any clinical datasets, so this remains a direction for future investigation.
The Broader Vision
The paper situates eXCube2 within a wide landscape of possible applications. Emotion recognition is the test case, but the system generalizes to any problem involving audio, visual, or combined audio visual temporal data.
On the clinical side, the authors suggest the framework could be explored for brain state diagnosis in conditions like Parkinson’s, Alzheimer’s, ADHD, and dementia, where changes in voice and facial expression might serve as early biomarkers. They also raise the possibility of monitoring treatment response over time. These remain open research directions rather than validated use cases.
On the commercial and interactive side, the paper points to evaluating customer satisfaction in online services, human robot interaction, chatbot systems, and interactive gaming. Any deployment of emotion recognition in these domains needs clear consent and careful handling of sensitive data. It also has to respect cultural differences in expression instead of treating one population as a universal template.
Beyond the software implementation, the SNN architecture has a hardware dimension worth noting. The authors discuss compatibility with neuromorphic hardware, though no hardware implementation is reported in this paper. Because SNNs propagate sparse spike events instead of dense continuous activations, platforms like SpiNNaker could in principle run them with much lower energy per inference while meeting tight real time constraints. A small neuromorphic chip running a model like this could conceivably sit inside a wearable, a social robot, or a hearing aid that adapts to the speaker’s emotional tone. Whether these gains materialize in practice remains to be validated, but the architectural compatibility is clear.
What Remains to Be Done
The current results, while encouraging, come with clear boundaries. The RAVDESS dataset contains recordings from 24 North American English speakers performing scripted emotional expressions. Actors tend to exaggerate cues for clarity, which makes classification easier than in routine conversation, where emotions often sit halfway between labels. Real world emotion recognition will need to contend with spontaneous expressions, diverse accents and languages, varying recording conditions, and the subtle gradations of emotional state that resist clean binary classification.
The system’s modular design accommodates these extensions in principle. Different feature extractors can plug into the same reservoir and classification pipeline. More granular emotion labels can replace the two class scheme. Additional brain regions can receive inputs from new data modalities. But each of these expansions requires careful validation, and the current paper provides a foundation rather than a finished product.
The relatively small training set, 160 samples per modality in the primary experiments, raises questions about how the approach will scale in dataset size, diversity, and deployment settings. The authors report a larger split of 1520 training and 1820 testing samples with the full dataset, but per modality performance, confidence thresholds, and rejection behavior are not given at the same level of detail as in the smaller experiments, which leaves open how those aspects scale. Future work will also need to tackle cross cultural generalization, since emotional expression varies across populations. One route is to compare spike based patterns across populations and see whether the model picks up systematic differences in prosody or expression style.
Connecting Brain and Machine
What makes eXCube2 interesting beyond its specific accuracy numbers is the principle it embodies. Rather than treating brain structure as a loose metaphor or a source of marketing language, the system literally uses a brain atlas to organize its computation. Audio signals enter through the auditory cortex. Visual signals enter through the face processing regions. Learning follows the timing rules observed in actual synapses. And the resulting connectivity patterns can be read back in the language of neuroscience.
This does not mean the model is a brain. It does not model cortical layers, realistic cell types, or long range conduction delays. It is a simplification of extraordinary magnitude, reducing billions of neurons and trillions of synapses to roughly 3100 spiking units in a structured cube. But the simplification is principled rather than arbitrary, and it yields two concrete benefits. First, the model is interpretable in ways that dense feedforward networks are not. Second, the spatial and temporal organization constrains learning in ways that may help with generalization, by building in inductive biases that evolution has already tested in the context of real sensory processing.
The brain still sets the standard for fluid, context aware reading of human emotion. eXCube2 shows how even a scaled down, idealized version of that machinery can shape the design of machine systems that care about not just what we say, but how we say it when we walk into a room and say hello.
All experimental results, models, and figures discussed here are from “eXCube2: Explainable Brain-Inspired Spiking Neural Network Framework for Emotion Recognition from Audio-, Visual- and Multimodal Audio-Visual Data” by Nikola Kirilov Kasabov, Alexander Yang, Zhaoxin Wang, Iman Abouhassan, Assia Nikolova Kassabova, and Teodoros Lappas (Preprints.org, doi: 10.20944/preprints202602.1058.v1, posted February 2026). The goal has been to surface the core ideas and connect them to broader themes in brain structured AI and emotion recognition.
