Papers
Topics
Authors
Recent
Search
2000 character limit reached

Three-Way Emotion Classification of EEG-based Signals using Machine Learning

Published 31 Jan 2026 in cs.LG and eess.SP | (2602.00670v1)

Abstract: Electroencephalography (EEG) is a widely used technique for measuring brain activity. EEG-based signals can reveal a persons emotional state, as they directly reflect activity in different brain regions. Emotion-aware systems and EEG-based emotion recognition are a growing research area. This paper presents how ML models categorize a limited dataset of EEG signals into three different classes, namely Negative, Neutral, or Positive. It also presents the complete workflow, including data preprocessing and comparison of ML models. To understand which ML classification model works best for this kind of problem, we train and test the following three commonly used models: logistic regression (LR), support vector machine (SVM), and random forest (RF). The performance of each is evaluated with respect to accuracy and F1-score. The results indicate that ML models can be effectively utilized for three-way emotion classification of EEG signals. Among the three ML models trained on the available dataset, the RF model gave the best results. Its higher accuracy and F1-score suggest that it is able to capture the emotional patterns more accurately and effectively than the other two models. The RF model also outperformed the existing state-of-the-art classification models in terms of the accuracy parameter.

Summary

  • The paper compares three classical machine learning models—logistic regression, support vector machine, and random forest—on EEG signal emotion classification, identifying Random Forest as the most accurate model with a 97.5% accuracy rate and a 0.975 F1-score, surpassing other published methods.
  • Power spectral density analysis shows delta and gamma frequencies are most distinguishable in classifying emotional states.
  • Random Forest outperforms deep learning models on accuracy, suggesting that preprocessed classical ML models can be effective with small datasets.

Overview

This paper presents a comparative study of three classical supervised machine learning models—logistic regression (LR), support vector machine (SVM), and random forest (RF)—for three-way emotion classification (Negative, Neutral, Positive) of EEG signals (2602.00670). The work is motivated by the practical constraint that EEG data collection is expensive and time-consuming, making deep learning approaches that require large corpora infeasible in many settings. The authors, from Motilal Nehru National Institute of Technology Allahabad, argue that well-preprocessed classical ML models can serve as effective and interpretable alternatives on limited datasets.

Dataset and preprocessing

The dataset was recorded with a consumer-grade Muse EEG headband using four electrodes (TP9, AF7, AF8, TP10) positioned according to the international 10–20 system. Two volunteers (one male, one female, ages 20–22) viewed curated video clips selected to elicit specific emotions: negative clips from Marley and Me, Up, and My Girl; positive clips from La La Land, a nature timelapse, and funny dog compilations; neutral data were collected during resting state. The raw recordings—324,000 data points resampled to 150 Hz—were segmented with a one-second sliding window at 0.5-second offsets, yielding a balanced three-class dataset of statistical features.

The analysis pipeline includes bandpass filtering, power spectral density (PSD) computation via FFT across delta through gamma bands, correlation analysis among features, t-SNE visualization, and per-class t-tests identifying statistically significant features. The PSD analysis indicates that emotional states are most distinguishable in the beta (13–30 Hz) and gamma (>30 Hz) bands. The t-SNE embedding shows clear separation between Neutral and Negative classes but overlap among the remaining class pairs, foreshadowing the classification difficulty.

Model comparison

All models were implemented in Scikit-learn under an identical preprocessing pipeline, with a fixed random seed for the train-test split to ensure reproducibility. L2 regularization stabilized LR; an RBF-kernel SVM required feature normalization; RF ensembles were tuned via hyperparameter search.

Model Accuracy (%) F1-score
Logistic regression 95.6 0.956
SVM (RBF kernel) 93.9 0.938
Random forest 97.5 0.975

The RF model achieved the best performance on both metrics, which the authors attribute to its capacity to form flexible nonlinear decision boundaries suited to high-dimensional EEG features. LR performed consistently but showed slight signs of training-set overfitting, while SVM trained quickly but lagged in accuracy, plausibly affected by correlated features—a known weakness given that adjacent electrodes record similar activity.

Comparison with prior work

The paper's strongest claim is that the RF model outperforms published state-of-the-art results on comparable data:

Model Accuracy (%)
Deep Belief Network 87.6
Common Spatial Patterns 93.5
InfoGain MLP 94.5
Fisher's Discriminant 94.9
Conformer 95.3
Random forest (this work) 97.5

If taken at face value, this result implies that a carefully tuned ensemble of decision trees can exceed even attention-based architectures such as the Conformer on this task. However, this comparison warrants caution: the baselines were evaluated under potentially different subject pools, electrode counts, preprocessing choices, and evaluation protocols, so the comparison is indicative rather than strictly controlled. The claim also rests on a very small sample—two subjects—which limits any generalization to cross-subject or cross-session settings, the regime where EEG emotion recognition typically degrades most severely.

Limitations and open questions

The paper concedes several constraints implicitly rather than explicitly. The dataset comprises only two participants, so the reported accuracies likely reflect within-subject separability rather than population-level generalization; no cross-validation across subjects is reported. Emotion elicitation relies on a small set of audiovisual stimuli whose effectiveness varies across individuals, and the Neutral class is defined by resting state rather than stimulus-driven conditions. The statistical comparison against literature baselines lacks methodological alignment. Open questions include whether the RF advantage persists under leave-one-subject-out evaluation, how performance scales with more electrodes and subjects, and whether temporal dynamics captured by CNN/LSTM architectures would close or reverse the gap.

Conclusion

The study demonstrates that classical ML models—with disciplined preprocessing, normalization, and hyperparameter tuning—can achieve high accuracy on three-way EEG emotion classification within a single limited dataset, with random forests leading at 97.5% accuracy and F1-score. The contribution is primarily empirical and workflow-oriented; its broader significance depends on validation beyond two subjects and on controlled comparisons with deep learning baselines under identical data conditions.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.