Emotion Recognition from EEG Signals Using Principal Component Analysis and Random Forest Classifier
Received: 22 May 2025 | Revised: 23 June 2025 and 17 July 2025 | Accepted: 2 August 2025 | Online: 6 October 2025
Corresponding author: Ranjana Bangarappa Jadekar
Abstract
Emotion recognition using EEG signals is a critical task with wide-ranging applications in mental health monitoring, disorders of consciousness, and neurofeedback systems. However, EEG signals are inherently noisy and high-dimensional, posing persistent challenges to accurate emotion classification. Most existing approaches rely on limited preprocessing or employ Principal Component Analysis (PCA) solely for dimensionality reduction, often overlooking the residual artifacts that degrade classifier performance. This study introduces a novel PCA-RF framework that repurposes PCA for dual objectives: targeted noise suppression and feature dimensionality reduction. Uniquely, PCA is applied after frequency-specific filtering to more effectively eliminate residual ocular and cardiac artifacts, thus improving the quality of EEG feature representations. These compact and denoised features are then processed by a Random Forest (RF) classifier, which robustly captures the nonlinear dynamics of the EEG data. Evaluated on the DEAP dataset, the proposed PCA-RF approach achieved state-of-the-art performance, with 96.57% accuracy for arousal and 96.03% for valence classification. The key contribution of this work lies in its strategic integration of PCA for both artifact suppression and feature optimization, setting it apart from conventional pipelines and delivering a reliable and accurate solution for EEG-based emotion recognition.
Keywords:
EEG, emotion classification, PCA, RF, noise removal, dimensionality reduction, feature extraction, DEAP datasetDownloads
References
K. Golden, Y. G. Bodien, and J. T. Giacino, "Disorders of Consciousness," Physical Medicine and Rehabilitation Clinics of North America, vol. 35, no. 1, pp. 15–33, Feb. 2024.
J. Chen et al., "Research hotspots and trends in the application of electroencephalography for assessment of disorders of consciousness: a bibliometric analysis," Frontiers in Neurology, vol. 15, Jan. 2025, Art. no. 1501947.
Y. Geng, S. Shi, and X. Hao, "Deep learning-based EEG emotion recognition: a comprehensive review," Neural Computing and Applications, vol. 37, no. 4, pp. 1919–1950, Feb. 2025.
Y. Xu, Y. Gao, Z. Zhang, and S. Du, "Emotional recognition of EEG signals utilizing residual structure fusion in bi-directional LSTM," Complex & Intelligent Systems, vol. 11, no. 1, Jan. 2025, Art. no. 62.
J. Pan et al., "A Hybrid Brain–Computer Interface Combining P300 Potentials and Emotion Patterns for Detecting Awareness in Patients With Disorders of Consciousness," IEEE Transactions on Cognitive and Developmental Systems, vol. 15, no. 3, pp. 1386–1395, Sep. 2023.
J. Pan et al., "ST-SCGNN: A Spatio-Temporal Self-Constructing Graph Neural Network for Cross-Subject EEG-Based Emotion Recognition and Consciousness Detection," IEEE Journal of Biomedical and Health Informatics, vol. 28, no. 2, pp. 777–788, Feb. 2024.
Z. Wang, J. Yu, J. Gao, Y. Bai, and Z. Wan, "MutaPT: A Multi-Task Pre-Trained Transformer for Classifying State of Disorders of Consciousness Using EEG Signal," Brain Sciences, vol. 14, no. 7, Jul. 2024, Art. no. 688.
W. Li, C. Fang, Z. Zhu, C. Chen, and A. Song, "Fractal Spiking Neural Network Scheme for EEG-Based Emotion Recognition," IEEE Journal of Translational Engineering in Health and Medicine, vol. 12, pp. 106–118, 2024.
S. S. Gilakjani and H. A. Osman, "A Graph Neural Network for EEG-Based Emotion Recognition With Contrastive Learning and Generative Adversarial Neural Network Data Augmentation," IEEE Access, vol. 12, pp. 113–130, 2024.
K. Henni, N. Mezghani, A. Mitiche, L. Abou-Abbas, and A. Benazza-Ben Yahia, "An Effective Deep Neural Network Architecture for EEG-Based Recognition of Emotions," IEEE Access, vol. 13, pp. 4487–4498, 2025.
"DEAP: A Dataset for Emotion Analysis using Physiological and Audiovisual Signals." [Online]. Available: https://www.eecs.qmul.ac.uk/mmv/datasets/deap/.
"DEAP: A Dataset for Emotion Analysis using Physiological and Audiovisual Signals." [Online]. Available: https://www.eecs.qmul.ac.uk/mmv/datasets/deap/readme.html.
X. Jiang, G. B. Bian, and Z. Tian, "Removal of Artifacts from EEG Signals: A Review," Sensors, vol. 19, no. 5, Feb. 2019, Art. no. 987.
S. Koelstra et al., "DEAP: A Database for Emotion Analysis ;Using Physiological Signals," IEEE Transactions on Affective Computing, vol. 3, no. 1, pp. 18–31, Jan. 2012.
S. D. Muthukumaraswamy, "High-frequency brain activity and muscle artifacts in MEG/EEG: a review and recommendations," Frontiers in Human Neuroscience, vol. 7, 2013.
V. Ronca et al., "Optimizing EEG Signal Integrity: A Comprehensive Guide to Ocular Artifact Correction," Bioengineering, vol. 11, no. 10, Oct. 2024, Art. no. 1018.
G. Tamburro, P. Croce, F. Zappasodi, and S. Comani, "Automated Detection and Removal of Cardiac and Pulse Interferences from Neonatal EEG Signals," Sensors, vol. 21, no. 19, Sep. 2021, Art. no. 6364.
W. Wang et al., "A Random Forest Weights and 4-Dimensional Convolutional Recurrent Neural Network for EEG Based Emotion Recognition," IEEE Access, vol. 12, pp. 39549–39563, 2024.
Downloads
How to Cite
License
Copyright (c) 2025 Ranjana Bangarappa Jadekar, Poornima Basavaraju, Sunil Kumar B. S., Mohammed Rafi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.