TSception: A Deep Learning Framework for Emotion Detection Using EEG

Yi Ding, Neethu Robinson, Qiuhao Zeng, Duo Chen, Aung Aung Phyo Wai, Tih Shih Lee, Cuntai Guan

Abstract

Detecting emotional arousal from brain activity is a significant challenge in affective computing. This paper presents TSception, an end-to-end deep learning framework designed for emotion detection from raw Electroencephalography (EEG) signals. TSception utilizes multi-scale temporal convolutions and specialized spatial kernels to model the brain's frontal asymmetry. Experimental results on a custom Virtual Reality (VR) dataset demonstrate that TSception achieves a state-of-the-art accuracy of 86.03% with a highly efficient parameter count, significantly outperforming traditional machine learning and standard deep learning baselines.

Introduction

The ability to objectively measure emotional arousal—ranging from calm to highly stressed—is vital for therapeutic interventions in psychological conditions such as anxiety and autism spectrum disorders. While EEG-based Brain-Computer Interfaces (BCIs) provide a direct window into neural states, classifying emotions remains difficult due to low signal-to-noise ratios and the complex, non-stationary nature of brainwaves.

Traditional approaches often rely on manual feature extraction (e.g., Power Spectral Density) followed by classifiers like Support Vector Machines (SVMs). While deep learning has emerged as a powerful alternative, many existing architectures fail to capture the simultaneous multi-frequency temporal dynamics and the specific spatial relationships (such as hemispheric asymmetry) inherent in emotional processing.

Methods: The TSception Architecture

TSception (Temporal Spatial Inception) is a Convolutional Neural Network (CNN) inspired by the Inception block. It processes raw EEG data through two sequential learning modules designed to extract biologically relevant features.

The TSception architecture consists of a Temporal Learner with multi-scale kernels and a Spatial Learner utilizing global and hemisphere kernels.

Temporal Learner

The Temporal Learner employs multi-scale 1D convolutional kernels. Unlike standard CNNs with uniform kernel sizes, TSception sets kernel lengths as specific ratios of the EEG sampling rate. This design enables the network to learn short-term/high-frequency features (e.g., Gamma and Beta waves) and long-term/low-frequency features (e.g., Alpha waves) in parallel, capturing the multi-scale temporal dynamics of the brain.

Spatial Learner

The Spatial Learner models the relationships between EEG electrodes. It incorporates:

  1. Global Kernels: To capture broad spatial patterns across all channels.
  2. Hemisphere Kernels: These kernels specifically compare signals between the left and right frontal hemispheres. This design choice is grounded in psychophysiological research showing that emotional processing is asymmetric across the frontal cortex.

By applying the temporal learner before the spatial learner, the network achieves significant feature compression, leading to a highly efficient model with only 53,483 trainable parameters.

Experimental Setup

The framework was evaluated using a custom dataset collected from 18 participants using a VR-based BCI system. EEG data was recorded via a 4-channel MUSE headband (TP9, AF7, AF8, TP10) at 256 Hz.

  • Low Arousal Stimulus: A relaxing VR experience of flying over a frozen lake with soft music.
  • High Arousal Stimulus: A stressful, fast-paced VR game requiring users to dodge incoming obstacles.

Results

TSception achieved an average classification accuracy of 86.03% in a leave-one-session-out cross-validation setup.

Comparison of classification accuracy across different models. TSception significantly outperforms standard baselines like EEGNet and SVM.

Key performance insights include:

  • Superiority over Baselines: TSception outperformed SVM with Differential Entropy (82.23%), LSTM (80.81%), and EEGNet (79.96%).
  • Ablation Study: A temporal-only version (Tception) achieved 83.9% accuracy, while a spatial-only version (Sception) achieved 77.39%, suggesting that temporal features are more discriminative for this task.
  • Efficiency: The sequential architecture of TSception is remarkably efficient. While the temporal-only Tception model required over 822,000 parameters, the full TSception model reduced this to approximately 53,000 while improving accuracy.

Discussion and Conclusion

The success of TSception highlights the importance of incorporating neurobiological priors—such as multi-scale temporal dynamics and hemispheric asymmetry—into deep learning architectures. By explicitly modeling these features, the network achieves high performance even with sparse, consumer-grade EEG data.

Future work will explore expanding the spatial learner with "local kernels" for specific functional sub-areas and testing the model on high-density EEG arrays. Given its generalized structure for spatio-temporal data, TSception also holds promise for other BCI tasks, including motor imagery and mental workload assessment.

Summary updated

BibTeX
@inproceedings{ding2020tsception,
  author = {Yi Ding and Neethu Robinson and Qiuhao Zeng and Duo Chen and Aung Aung Phyo Wai and Tih Shih Lee and Cuntai Guan},
  title = {{TSception: A Deep Learning Framework for Emotion Detection Using EEG}},
  booktitle = {IJCNN},
  year = {2020},
  doi = {10.1109/ijcnn48605.2020.9206750},
}
Figure