Differentiating Mental Stress Levels: Analysing Machine Learning Algorithms Comparatively For EEG-Based Mental Stress Classification Using MNE-Python

Main Article Content

Soumya Samarpita
Rabinarayan Satpathy
Bibhu Kalyan Mishra
Rudra Prasanna Mishra

Abstract

Mental stress is a prevalent and consequential condition that impacts individuals' well-being and productivity. Accurate classification of mental stress levels using electroencephalogram (EEG) signals is a promising avenue for early detection and intervention. In this study, we present a comprehensive investigation into mental stress classification using EEG data processed with the MNE-Python library. Our research leverages a diverse set of machines learning algorithms, including Random Forest (RF), Decision Tree, K-Nearest Neighbors (KNN), Multilayer Perceptron (MLP), Support Vector Machine (SVM), Adaboost, and Extreme Gradient Boosting (XGBoost), to discern
differences in classification performance. We employed a single dataset to ensure consistency in our experiments, facilitating a direct comparison of these algorithms. The EEG data were pre-processed using MNE-Python, which included tasks such as signal cleaning, and feature selection. Subsequently, we applied the selected machine learning models to the processed data and assessed their classification performance in terms of accuracy, precision, recall, and F1-score. Our results demonstrate notable variations in the classification accuracy of mental stress levels across the different algorithms. These findings suggest that the choice of machine learning technique plays a pivotal role in theeffectiveness of EEG-based mental stress classification. Our study not only highlights the potential of MNE-Python for EEG signal processing but also provides valuable insights into the selection of appropriate machine learning algorithms for accurate and reliable mental stress assessment. These outcomes hold promise for the development of robust and practical systems for real-time mental stress monitoring, contributing to enhanced well-being and performance in various domains such as healthcare, education, and workplace environments

Downloads

Download data is not yet available.

Article Details

How to Cite
Soumya Samarpita, Rabinarayan Satpathy, Bibhu Kalyan Mishra, & Rudra Prasanna Mishra. (2023). Differentiating Mental Stress Levels: Analysing Machine Learning Algorithms Comparatively For EEG-Based Mental Stress Classification Using MNE-Python. Journal of Advanced Zoology, 44(S5), 2605–2618. https://doi.org/10.53555/jaz.v44iS5.3045
Section
Articles
Author Biographies

Soumya Samarpita

Faculty of Science, Sri Sri University, Cuttack, Odisha

Rabinarayan Satpathy

Faculty of Science, Sri Sri University, Cuttack, Odisha

Bibhu Kalyan Mishra

Faculty of Science, Sri Sri University, Cuttack, Odisha

Rudra Prasanna Mishra

Faculty of Emerging Technology, Sri Sri University, Cuttack, Odisha

References

Kamińska, D., Smółka, K., & Zwoliński, G. (2021). Detection of mental stress through EEG signal in virtual reality

environment. Electronics, 10(22), 2840.

Rahman, M. A., Brown, D. J., Mahmud, M., Harris, M., Shopland, N., Heym, N., & Lewis, J. (2023). Enhancing

biofeedback-driven self-guided virtual reality exposure therapy through arousal detection from multimodal

data using machine learning. Brain Informatics, 10(1), 1-18.

Samarpita, S., & Satpathy, R. (2023, May). Impact of EEG Signals on Human Brain Before and After Meditation.

In Proceedings of the International Health Informatics Conference: IHIC 2022 (pp. 331-343). Singapore:

Springer Nature Singapore.

Islam, A., Sarkar, A. K., & Ghosh, T. (2021, July). EEG Signal Classification for Mental Stress During Arithmetic

Task Using Wavelet Transformation and Statistical Features. In 2021 International Conference on Automation,

Control and Mechatronics for Industry 4.0 (ACMI) (pp. 1-6). IEEE.

Dave, S., Ambudkar, B., & Dave, N (2022). Stress Analysis of Brainwave Using EEG Click.

Arya, V., & Mishra, A. K. (2021). Machine learning approaches to mental stress detection: a review. Annals of

Optimization Theory and Practice, 4(2), 55-67.

Hou, X., Liu, Y., Sourina, O., Tan, Y. R. E., Wang, L., & Mueller-Wittig, W. (2015, October). EEG based stress

monitoring. In 2015 IEEE International Conference on Systems, Man, and Cybernetics (pp. 3110-3115). IEEE.

Garg, P., Santhosh, J., Dengel, A., & Ishimaru, S. (2021, April). Stress detection by machine learning and wearable

sensors. In 26th International Conference on Intelligent User Interfaces-Companion (pp. 43-45).

Kongwudhikunakorn, S., Kiatthaveephong, S., Thanontip, K., Leelaarporn, P., Piriyajitakonkij, M.,

Charoenpattarawut, T., & Wilaiprasitporn, T. (2021). A pilot study on visually stimulated cognitive tasks for

EEG-based dementia recognition. IEEE Transactions on Instrumentation and Measurement, 70, 1-10.

Cherep, M., Kegler, M., Thiran, J. P., & Mainar, P. (2022, July). Mental Flow Estimation through Wearable EEG.

In 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society

(EMBC) (pp. 4672-4678). IEEE.

Nguyen, K. H., Ebbatson, M., Tran, Y., Craig, A., Nguyen, H., & Chai, R. (2023). Source-Space Brain Functional

Connectivity Features in Electroencephalogram-Based Driver Fatigue Classification. Sensors, 23(5), 2383.

Alreshidi, I., Moulitsas, I., & Jenkins, K. W. (2023). Multimodal Approach for Pilot Mental State Detection Based on

EEG. Sensors, 23(17), 7350.

Hussain, I., Jany, R., Boyer, R., Azad, A. K. M., Alyami, S. A., Park, S. J., ... & Hossain, M. A. (2023). An Explainable

EEG-Based Human Activity Recognition Model Using Machine-Learning Approach and

LIME. Sensors, 23(17), 7452.

Vaidya, V. P., & Asole, S. S. (2023). Mental Stress Detection Using Ensemble Machine Learning Method. Harbin

Gongcheng Daxue Xuebao/Journal of Harbin Engineering University, 44(7), 1196-1205.

Mustafa, M. U., Buzdar, S. A., Javid, A., Majid, M., Arsalan, A., Ikhlaq, A., & Saeed, S. (2023). Perceived Stress

Detection through EEG Data Segmentation and Classification.

Shakya, N., Dubey, R., & Shrivastava, L. (2023). Voting Classifier based Model for Mental Stress Detection and

Classification Using EEG Signal.

Masrur Ahmed, S. M., & Tanzim Sabur, E. (2023). Emotion Analysis on EEG Signal Using Machine Learning and

Neural Network. arXiv e-prints, arXiv-2307.

Sharma, L.D., Bohat, V.K., Habib, M., Ala’M, A.-Z., Faris, H., Aljarah, I.: Evolutionary inspired approach for mental

stress detection using EEG signal. Expert Syst. Appl. 197, 116634 (2022).

Differentiating Mental Stress Levels: Analysing Machine Learning Algorithms Comparatively For EEG-Based Mental Stress

Classification Using MNE-Python

Available online at: https://jazindia.com - 2618 -

Khadidos, A. O., Alyoubi, K. H., Mahato, S., Khadidos, A. O., & Mohanty, S. N. (2023). Machine Learning based

EEG Constructed Depression Detection. Neuroscience Letters, 137313.

Asif, A., Majid, M., & Anwar, S. M. (2019). Human stress classification using EEG signals in response to music

tracks. Computers in biology and medicine, 107, 182-196.

Bird, J. J., Manso, L. J., Ribeiro, E. P., Ekart, A., & Faria, D. R. (2018, September). A study on mental state

classification using eeg-based brain-machine interface. In 2018 international conference on intelligent systems

(IS) (pp. 795-800). IEEE.

Das, R. K., Martin, A., Zurales, T., Dowling, D., & Khan, A. (2023). A Survey on EEG Data Analysis Software. Sci,

(2), 23.

Delimayanti, M. K., Purnama, B., Nguyen, N. G., Faisal, M. R., Mahmudah, K. R., Indriani, F., & Satou, K. (2020).

Classification of brainwaves for sleep stages by high-dimensional FFT features from EEG signals. Applied

Sciences, 10(5), 1797.

Das, R. K., Imtiaz, N. Z., & Khan, A. (2022). Toward Affirmation of Recovery of Deeply Embedded Autobiographical

Memory with Background Music and Identification of an EEG Biomarker in Combination with EDA Signal

Using Wearable Sensors. Clinical and Translational Neuroscience, 6(4), 26.

Kora, P., Meenakshi, K., Swaraja, K., Rajani, A., & Raju, M. S. (2021). EEG based interpretation of human brain

activity during yoga and meditation using machine learning: A systematic review. Complementary therapies

in clinical practice, 43, 101329.

Tiwari, A., & Tiwari, R. (2017, July). Monitoring and detection of EEG signals before and after yoga during

depression in human brain using MATLAB. In 2017 International Conference on Computing Methodologies

and Communication (ICCMC) (pp. 329-334). IEEE.

Arsalan, A., Majid, M., Butt, A. R., & Anwar, S. M. (2019). Classification of perceived mental stress using a

commercially available EEG headband. IEEE journal of biomedical and health informatics, 23(6), 2257-2264.

Samarpita, S., & Satpathy, R. (2022, December). EEG-Based Stress Detection Using K-Means Clustering Method. In

International Conference on Intelligent Systems and Machine Learning (pp. 35-43). Cham: Springer Nature

Switzerland.

Alessio, S. M. (2015). Digital signal processing and spectral analysis for scientists: concepts and applications.

Ng, W. B., Saidatul, A., Chong, Y. F., & Ibrahim, Z. (2019, June). PSD-based features extraction for EEG signal

during typing task. In IOP Conference Series: Materials Science and Engineering (Vol. 557, No. 1, p. 012032).

IOP Publishing.

Alreshidi, I. M., Moulitsas, I., & Jenkins, K. W. (2022, October). Miscellaneous EEG Preprocessing and Machine

Learning for Pilots' Mental States Classification: Implications. In Proceedings of the 6th International

Conference on Advances in Artificial Intelligence (pp. 29-39).

Suganyadevi, S., Priya, S. S., Kiruba, B., Gomathi, M., & Kalshetty, J. N. (2022, October). Classification of EEG

signals using Machine learning algorithms. In 2022 IEEE 2nd Mysore Sub Section International Conference

(MysuruCon) (pp. 1-6). IEEE.

Vijayalakshmi, K., & Vinayakamurthy, M. (2020, October). A hybrid recommender system using multiclassifier

regression model for autism detection. In 2020 international conference on smart technologies in computing,

electrical and electronics (ICSTCEE) (pp. 139-144). IEEE.

Veeramallu, G. K. P., Anupalli, Y., kumar Jilumudi, S., & Bhattacharyya, A. (2019, July). EEG based automatic

emotion recognition using EMD and random forest classifier. In 2019 10th International Conference on

Computing, Communication and Networking Technologies (ICCCNT) (pp. 1-6). IEEE.

Bin Heyat, M. B., Akhtar, F., Abbas, S. J., Al-Sarem, M., Alqarafi, A., Stalin, A., & Wu, K. (2022). Wearable flexible

electronics based cardiac electrode for researcher mental stress detection system using machine learning

models on single lead electrocardiogram signal. Biosensors, 12(6), 427.

Thanh Noi, P., & Kappas, M. (2017). Comparison of random forest, k-nearest neighbor, and support vector machine

classifiers for land cover classification using Sentinel-2 imagery. Sensors, 18(1), 18.

Saeed, S. M. U., Anwar, S. M., Khalid, H., Majid, M., & Bagci, U. (2019). Electroencephalography based

classification of long-term stress using psychological labeling. arXiv preprint arXiv:1907.07671.

Shon, D., Im, K., Park, J. H., Lim, D. S., Jang, B., & Kim, J. M. (2018). Emotional stress state detection using genetic

algorithm-based feature selection on EEG signals. International Journal of environmental research and public

health, 15(11), 2461.

Chen, C., Yu, X., Belkacem, A. N., Lu, L., Li, P., Zhang, Z., & Ming, D. (2021). EEG-based anxious states

classification using affective BCI-based closed neurofeedback system. Journal of medical and biological

engineering, 41, 155-164.

SundaraPandiyan, A. (2023). Diagnosis and Classification of Mental Disorders using Machine Learning

Techniques (Doctoral dissertation, Dublin, National College of Ireland).

Du, W. (2022). Application of Improved SMOTE and XGBoost Algorithm in the Analysis of Psychological Stress

Test for College Students. Journal of Electrical and Computer Engineering, 2022.