Exploring Long Short-Term Memory and Gated Recurrent Unit Networks for Emotion Classification from Electroencephalography Signals

Dian Palupi Rini(1), Winda Kurnia Sari(2), Novi Yusliani(3), Deris Stiawan(4), Aspirani Utari(5),


(1) Department of Informatics Engineering, Universitas Sriwijaya, Indonesia
(2) Department of Information System, Universitas Sriwijaya, Indonesia
(3) Department of Informatics Engineering, Universitas Sriwijaya, Indonesia
(4) Department of Computer System, Universitas Sriwijaya, Indonesia
(5) Department of Information System, Universitas Sriwijaya, Indonesia

Abstract

This study delves into comparing LSTM and GRU, two recurrent neural network (RNN) models, for classifying emotion data through electroencephalography (EEG) signals. Both models adeptly handle sequential data challenges, showcasing their unique strengths. In EEG emotion dataset experiments, LSTM demonstrated superior performance in emotion classification compared to GRU, despite GRU’s quicker training processes. Evaluation metrics encompassing accuracy, recall, F1-score, and area under the curve (AUC) underscored LSTM’s dominance, which was particularly evident in the ROC curve analysis. This research sheds light on the nuanced capabilities of these RNN models, offering valuable insights into their efficacy in emotion classification tasks based on EEG data. The study explores parameters, such as the number of layers, neurons, and the utilization of dropout, providing a detailed analysis of their impact on emotion recognition accuracy.

Purpose: The proposed model in this study is the result of optimizing LSTM and GRU networks through careful parameter tuning to find the best model for classifying EEG emotion data. The experimental results indicate that the LSTM model can achieve an accuracy level of up to 100%.

Methods: To improve the accuracy of the LSTM and GRU methods in this research, hyperparameter tuning techniques were applied, such as adding layers, dense layers, flattening layers, selecting the number of neurons, and introducing dropout to mitigate the risk of overfitting. The goal was to find the best model for both methods.

Results: The proposed model in this study is capable of classifying EEG emotion data very effectively. The experimental results demonstrate that the LSTM model achieves a maximum accuracy of 100%, while the GRU model achieves a highest accuracy of approximately 98%.

Novelty: The novelty of this research lies in the optimization of hyperparameters for both LSTM and GRU methods, leading to the development of novel architectures capable of effectively classifying EEG emotion data.

Keywords

Long Short-Term Memory; Gated Recurrent Unit; Emotion Classification; EEG Signals

Full Text:

PDF

References

A. Kallipolitis, M. Galliakis, A. Menychtas, and I. Maglogiannis, “Affective analysis of patients in homecare video-assisted telemedicine using computational intelligence.” Neural Computing and Applications, 2020.

Z. Halim and M. Rehan, “On identification of driving-induced stress using electroencephalogram signals: A framework based on wearable safety-critical scheme and machine learning.” Information Fusion 53, 2020.

H. Huang et al., “An EEG-Based Brain Computer Interface for Emotion Recognition and Its Application in Patients with Disorder of Consciousness.” IEEE Transactions on Affective Computing, 2019.

S. Ma, J. Cui, C.-L. Chen, W. Xiao, and L. Liu, “An Improved Bi-LSTM EEG Emotion Recognition Algorithm.” Journal of Network Intelligence, 2022.

M.-E. Wu, J.-H. Syu, and C.-M. Chen, “Kelly-Based Options Trading Strategies on Settlement Date via Supervised Learning Algorithms,” Comput. Econ., vol. 59, no. 4, pp. 1627–1644, 2022.

S. Xu et al., “Using a deep recurrent neural network with EEG signal to detect Parkinson’s disease.” Annals of translational medicine, 8(14), 874, 2020.

J. Zhou, X. Zhang, and Z. Jiang, “Recognition of Imbalanced Epileptic EEG Signals by a GraphBased Extreme Learning Machine,” Wirel. Commun. Mob. Comput., vol. 2021, p. 5871684, 2021.

Y. Yin, X. Zheng, B. Hu, Y. Zhang, and X. Cui, “EEG Emotion Recognition using Fusion Model of Graph Convolutional Neural Network and LSTM.” Applied Soft Computing Journal, 2020.

H. Yang, J. Han, and K. Min, “A Multi-Column CNN Model for Emotion Recognition from EEG Signals,” Sensors, vol. 19, no. 21. 2019.

P. Sandheep, S. Vineeth, M. Poulose, and D. P. Subha, “Performance analysis of deep learning CNN in classification of depression EEG signals,” in TENCON 2019 - 2019 IEEE Region 10 Conference (TENCON), 2019, pp. 1339–1344.

M. K. Chowdary, J. Anitha, and D. J. Hemanth, “Emotion Recognition from EEG Signals Using Recurrent Neural Networks.” Electronics 11, 2022.

W. Lu, Y. Wei, J. Yuan, Y. Deng, and A. Song, “Tractor Assistant Driving Control Method Based on EEG Combined With RNN-TL Deep Learning Algorithm,” IEEE Access, vol. 8, pp. 163269–163279, 2020.

X. Du et al., “An Efficient LSTM Network for Emotion Recognition from Multichannel EEG Signals.” IEEE, 2020.

P. Nagabushanam, S. Thomas George, and S. Radha, “EEG signal classification using LSTM and improved neural network algorithms,” Soft Comput., vol. 24, no. 13, pp. 9981–10003, 2020.

J. X. Chen, D. M. Jiang, and Y. N. Zhang, “A Hierarchical Bidirectional GRU Model With Attention for EEG-Based Emotion Classification,” IEEE Access, vol. 7, pp. 118530–118540, 2019.

G. Xu, W. Guo, and Y. Wang, “Subject-independent EEG emotion recognition with hybrid spatiotemporal GRU-Conv architecture,” Med. Biol. Eng. Comput., vol. 61, no. 1, pp. 61–73, 2023.

Y. Zhang et al., “An Investigation of Deep Learning Models for EEG-based Emotion Recognition.” Front. Neurosci. 14:1344., 2020.

A. Romney and V. Manian, “Comparison of Frontal-Temporal Channels in Epilepsy Seizure Prediction Based on EEMD-ReliefF and DNN,” Computers, vol. 9, no. 4. 2020.

H. A. Glory, C. Vigneswaran, S. S. Jagtap, R. Shruthi, G. Hariharan, and V. S. S. Sriram, “AHWBGOA-DNN: a novel deep learning model for epileptic seizure detection,” Neural Comput. Appl., vol. 33, no. 11, pp. 6065–6093, 2021.

J. J. Bird, L. J. Manso, E. P. Ribiero, A. Ekart, and D. R. Faria, “A study on mental state classification using eeg-based brain-machine interface.” 9th International Conference on Intelligent Systems, IEEE, 2018.

J. J. Bird, A. Ekart, C. D. Buckingham, and D. R. Faria, “Mental emotional sentiment classification with an eeg-based brain-machine interface.” The International Conference on Digital Image and Signal Processing (DISP’19), Springer, 2019.

J. T. Hancock and T. M. Khoshgoftaar, “Survey on categorical data for neural networks,” J. Big Data, vol. 7, no. 1, p. 28, 2020.

W. K. Sari, D. P. Rini, R. F. Malik, and I. S. B. Azhar, “Multilabel Text Classification in News Articles Using Long-Term Memory with Word2Vec.” Jurnal Resti, pp. 276–285, 2020.

V. Borisov, T. Leemann, K. Seßler, J. Haug, M. Pawelczyk, and G. Kasneci, “Deep Neural Networks and Tabular Data: A Survey,” IEEE Trans. Neural Networks Learn. Syst., pp. 1–21, 2022.

A. Kumar and R. Rastogi (nee Khemchandani), “Attentional Recurrent Neural Networks for Sentence Classification BT - Innovations in Infrastructure,” 2019, pp. 549–559.

C. S. Alfredo and D. Adytia, “Time Series Forecasting of Significant Wave Height using GRU, CNN-GRU, and LSTM.” Jurnal Resti, pp. 776–781, 2022.

S. Gao et al., “Short-term runoff prediction with GRU and LSTM networks without requiring time step optimization during sample generation,” J. Hydrol., vol. 589, p. 125188, 2020.

R. Shashidhar, S. S. Tippannavar, K. B. Bhat, N. Sharma, M. Rashid, and A. Rana, “EEG-based Brain Wave Recognition using GRU and LSTM,” in 2022 5th International Conference on Contemporary Computing and Informatics (IC3I), 2022, pp. 1083–1087.

G. Weiss, Y. Goldberg, and E. Yahav, “On the Practical Computational Power of Finite Precision RNNs for Language Recognition.” arXiv preprint arXiv:1805.04908, 2018.

M. Grandini, E. Bagli, and G. Visani, “Metrics For Multi-Class Classification: An Overview.” ArXiv. /abs/2008.05756, 2020.

D. Krstinić, M. Braović, L. Šerić, and D. Božić-Štulić, “Multi-Label Classifier Performance Evaluation with Confusion Matrix.” Computer Science & Information Technology, 1, 2020.

Q. H. Nguyen et al., “Influence of Data Splitting on Performance of Machine Learning Models in Prediction of Shear Strength of Soil,” Math. Probl. Eng., vol. 2021, p. 4832864, 2021.

V. R. Joseph, “Optimal Ratio for Data Splitting.” The ASA Data Science Journal, 15, pp. 531–538, 2022.

H. Ullah, M. Uzair, A. Mahmood, M. Ullah, S. D. Khan, and F. A. Cheikh, “Internal Emotion Classification Using EEG Signal With Sparse Discriminative Ensemble,” IEEE Access, vol. 7, pp.40144–40153, 2019.

T. Chen, S. Ju, F. Ren, M. Fan, and Y. Gu, “EEG emotion recognition model based on the LIBSVM classifier,” Measurement, vol. 164, p. 108047, 2020.

Z. Li, X. Tian, L. Shu, X. Xu, and B. Hu, “Emotion Recognition from EEG Using RASM and LSTM BT - Internet Multimedia Computing and Service,” 2018, pp. 310–318.

Y. Liu and G. Fu, “Emotion recognition by deeply learned multi-channel textual and EEG features,” Futur. Gener. Comput. Syst., vol. 119, pp. 1–6, 2021.

M. Asif, M. T. Vinodbhai, S. Mishra, A. Gupta, and U. S. Tiwary, “Emotion Recognition in VAD Space During Emotional Events Using CNN-GRU Hybrid Model on EEG Signals BT - Intelligent Human Computer Interaction,” 2023, pp. 75–84.

M. Z. I. Ahmed, N. Sinha, S. Phadikar, and E. Ghaderpour, “Automated Feature Extraction on AsMap for Emotion Classification Using EEG.” Sensors, 2022.

M. Zhong, Q. Yang, Y. Liu, B. Zhen, F. Zhao, and B. Xie, “EEG emotion recognition based on TQWT-features and hybrid convolutional recurrent neural network,” Biomed. Signal Process. Control, vol. 79, p. 104211, 2023.

Refbacks

  • There are currently no refbacks.




Scientific Journal of Informatics (SJI)
p-ISSN 2407-7658 | e-ISSN 2460-0040
Published By Department of Computer Science Universitas Negeri Semarang
Website: https://journal.unnes.ac.id/nju/index.php/sji
Email: [email protected]

Creative Commons License

This work is licensed under a Creative Commons Attribution 4.0 International License.