Skip to main content

Advertisement

Log in

A novel technique for stress detection from EEG signal using hybrid deep learning model

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

Stress is burgeoning in today’s fast-paced lifestyle, and its detection is imperative. An electroencephalography (EEG) technique is used to identify the brain’s activities from the brain’s electrical bio-signals. However, only a highly trained physician can elucidate EEG signals due to their complexity. This study proposes a DWT-based hybrid deep learning model based on Convolution Neural Network and Bidirectional Long Short-Term Memory (CNN–BLSTM), which detects stress levels in humans. Further supports neurologists, mental health counselors, and physicians in making decisions on stress levels. The Physionet EEG dataset is used to detect the stress level for mental arithmetic tasks. Noise from multi-channel (19 channels) EEG signals has been removed and decomposed into four levels using Discrete Wavelet Transform (DWT). After decomposition, an automatic feature selection method, namely Convolution Neural Network (CNN), is used on the decomposed signals. Finally, BLSTM is used to classify stress levels. The accuracy of the proposed model is compared with CNN-based Long Short-Term Memory (LSTM) and previous work. The results show that the proposed hybrid model achieved higher classification accuracy (99.20%) compared to others. Further, the stratified tenfold cross-validation technique is applied to validate the proposed model with a classification accuracy of 98.10%.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Availability of data

https://physionet.org/content/eegmat/1.0.0/.

References

  1. García-Martínez B, Fernández-Caballero A, Alcaraz R, Martínez-Rodrigo A (2021) Assessment of dispersion patterns for negative stress detection from electroencephalographic signals. Pattern Recogn 119:108094

    Article  Google Scholar 

  2. Malviya L, Mal S, Lalwani P (2021) Eeg data analysis for stress detection. In: 2021 10th IEEE international conference on communication systems and network technologies (CSNT), pp 148–152. IEEE

  3. Dimsdale JE (2008) Psychological stress and cardiovascular disease. J Am Coll Cardiol 51(13):1237–1246

    Article  Google Scholar 

  4. Priya A, Garg S, Tigga NP (2020) Predicting anxiety, depression and stress in modern life using machine learning algorithms. Proced Comput Sci 167:1258–1267

    Article  Google Scholar 

  5. Lehrer P, Feldman J, Giardino N, Song H-S, Schmaling K (2002) Psychological aspects of asthma. J Consult Clin Psychol 70(3):691

    Article  Google Scholar 

  6. Rivera MJ, Teruel MA, Maté A, Trujillo J (2022) Diagnosis and prognosis of mental disorders by means of EEG and deep learning: a systematic mapping study. Artif Intell Rev 55:1209–1251

    Article  Google Scholar 

  7. García-Martínez B, Martinez-Rodrigo A, Alcaraz R, Fernández-Caballero A (2019) A review on nonlinear methods using electroencephalographic recordings for emotion recognition. IEEE Trans Affect Comput 12:801

    Article  Google Scholar 

  8. Sharma R, Chopra K (2020) Eeg signal analysis and detection of stress using classification techniques. J Inf Optim Sci 41(1):229–238

    Google Scholar 

  9. Chakladar DD, Dey S, Roy PP, Dogra DP (2020) Eeg-based mental workload estimation using deep blstm-lstm network and evolutionary algorithm. Biomed Signal Process Control 60:101989

    Article  Google Scholar 

  10. Xing X, Li Z, Xu T, Shu L, Hu B, Xu X (2019) Sae+ lstm: a new framework for emotion recognition from multi-channel EEG. Front Neurorobot 13:37

    Article  Google Scholar 

  11. Asif A, Majid M, Anwar SM (2019) Human stress classification using eeg signals in response to music tracks. Comput Biol Med 107:182–196

    Article  Google Scholar 

  12. Gaurav AR, Kumar V (2018) Eeg-metric based mental stress detection. Netw Biol 8(1):25–34

    MathSciNet  Google Scholar 

  13. Jebelli H, Khalili MM, Hwang S, Lee S (2018) A supervised learning-based construction workers’ stress recognition using a wearable electroencephalography (eeg) device. Const Res Congress 2018:43–53

    Google Scholar 

  14. Luján MÁ, Jimeno MV, Mateo Sotos J, Ricarte JJ, Borja AL (2021) A survey on eeg signal processing techniques and machine learning: applications to the neurofeedback of autobiographical memory deficits in schizophrenia. Electronics 10(23):3037

    Article  Google Scholar 

  15. Hag A, Handayani D, Pillai T, Mantoro T, Kit MH, Al-Shargie F (2021) Eeg mental stress assessment using hybrid multi-domain feature sets of functional connectivity network and time-frequency features. Sensors 21(18):6300

    Article  Google Scholar 

  16. Can YS, Chalabianloo N, Ekiz D, Ersoy C (2019) Continuous stress detection using wearable sensors in real life: algorithmic programming contest case study. Sensors 19(8):1849

    Article  Google Scholar 

  17. Hosseini SA, Khalilzadeh MA, Changiz S (2010) Emotional stress recognition system for affective computing based on bio-signals. J Biol Syst 18(spec01):101–114

    Article  Google Scholar 

  18. Saeed SMU, Anwar SM, Khalid H, Majid M, Bagci U (2020) Eeg based classification of long-term stress using psychological labeling. Sensors 20(7):1886

    Article  Google Scholar 

  19. Vanitha V, Krishnan P (2016) Real time stress detection system based on EEG signals. Biomed Res-Tokyo, 271-275

  20. Nath D, Singh M, Sethia D, Kalra D, Indu S, et al. (2020) An efficient approach to eeg-based emotion recognition using lstm network. In: 2020 16th IEEE international colloquium on signal processing & its applications (CSPA), pp 88–92. IEEE

  21. Bird JJ, Ekart A, Buckingham CD, Faria DR (2019) Mental emotional sentiment classification with an eeg-based brain-machine interface. In: Proceedings of the international conference on digital image and signal processing (DISP’19)

  22. Zhang S, Zhang Z, Chen Z, Lin S, Xie Z (2021) A novel method of mental fatigue detection based on cnn and lstm. Int J Comput Sci Eng 24(3):290–300

    Google Scholar 

  23. Mou L, Zhou C, Zhao P, Nakisa B, Rastgoo MN, Jain R, Gao W (2021) Driver stress detection via multimodal fusion using attention-based cnn-lstm. Expert Syst Appl 173:114693

    Article  Google Scholar 

  24. Masood S, Khan R, Abd El-Latif AA et al (2022) An FCN-LSTM model for neurological status detection from non-invasive multivariate sensor data. Neural Comput Appl. https://doi.org/10.1007/s00521-022-07117-4

    Article  Google Scholar 

  25. Chen C, Hua Z, Zhang R, Liu G, Wen W (2020) Automated arrhythmia classification based on a combination network of cnn and lstm. Biomed Signal Process Control 57:101819

    Article  Google Scholar 

  26. Zyma I, Tukaev S, Seleznov I, Kiyono K, Popov A, Chernykh M, Shpenkov O (2019) Electroencephalograms during mental arithmetic task performance. Data 4(1):14

    Article  Google Scholar 

  27. Temko A, Boylan G, Marnane W, Lightbody G (2013) Robust neonatal eeg seizure detection through adaptive background modeling. Int J Neural Syst 23(04):1350018

    Article  Google Scholar 

  28. Lee CY, Aliyu I, Lim CG (2018) Optimal eeg locations for eeg feature extraction with application to user’s intension using a robust neuro-fuzzy system in bci. J Chosun Nat Sci 11(4):167–183

    Google Scholar 

  29. Kumar R, Singh MP, Roy B, Shahid AH (2021) A comparative assessment of metaheuristic optimized extreme learning machine and deep neural network in multi-step-ahead long-term rainfall prediction for all-indian regions. Water Resour Manage 35(6):1927–1960

    Article  Google Scholar 

  30. Kumar Y, Dewal M, Anand R (2014) Epileptic seizures detection in eeg using dwt-based apen and artificial neural network. SIViP 8(7):1323–1334

    Article  Google Scholar 

  31. Mallat SG (1989) A theory for multiresolution signal decomposition: the wavelet representation. IEEE Trans Pattern Anal Mach Intell 11(7):674–693

    Article  Google Scholar 

  32. Faust O, Acharya UR, Adeli H, Adeli A (2015) Wavelet-based eeg processing for computer-aided seizure detection and epilepsy diagnosis. Seizure 26:56–64

    Article  Google Scholar 

  33. Zhou M, Tian C, Cao R, Wang B, Niu Y, Hu T, Guo H, Xiang J (2018) Epileptic seizure detection based on eeg signals and cnn. Front Neuroinform 12:95

    Article  Google Scholar 

  34. Jespersen SL, Thygesen ME (2020) Fact extraction and verification in danish. PhD thesis, Master’s thesis, IT University of Copenhagen

  35. Ullah W, Ullah A, Haq IU, Muhammad K, Sajjad M, Baik SW (2021) Cnn features with bi-directional lstm for real-time anomaly detection in surveillance networks. Multimed Tools Appl 80(11):16979–16995

    Article  Google Scholar 

  36. Black WC, Armstrong P (1986) Communicating the significance of radiologic test results: the likelihood ratio. Am J Roentgenol 147(6):1313–1318

    Article  Google Scholar 

  37. Ganguly B, Chatterjee A, Mehdi W, Sharma S, Garai S (2020) Eeg based mental arithmetic task classification using a stacked long short term memory network for brain-computer interfacing. In: 2020 IEEE VLSI device circuit and system (VLSI DCS), pp 89–94 . IEEE

  38. Priya TH, Mahalakshmi P, Naidu V, Srinivas M (2020) Stress detection from eeg using power ratio. In: 2020 International conference on emerging trends in information technology and engineering (ic-ETITE), pp 1–6. IEEE

  39. Subhani AR, Mumtaz W, Saad MNBM, Kamel N, Malik AS (2017) Machine learning framework for the detection of mental stress at multiple levels. IEEE Access 5:13545–13556

    Article  Google Scholar 

  40. Kang M, Shin S, Jung J, Kim YT (2021) Classification of mental stress using CNN-LSTM algorithms with electrocardiogram signals. J Healthc Eng 2021:11. https://doi.org/10.1155/2021/9951905

    Article  Google Scholar 

  41. Purushotham S, Tripathy B (2011) Evaluation of classifier models using stratified tenfold cross validation techniques. In: International conference on computing and communication systems, pp 680–690. Springer

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Sandip Mal.

Ethics declarations

Conflict of interest

Author Lokesh Malviya declares that he has no conflict of interest. Author Sandip Mal declares that he has no conflict of interest.

Ethical approval

All procedures performed in studies involving human participants were in accordance with the ethical standards of the institutional and/or national research committee and with the 1964 Helsinki Declaration and its later amendments or comparable ethical standards.

Informed consent

Informed consent was obtained from all individual participants included in the study.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Malviya, L., Mal, S. A novel technique for stress detection from EEG signal using hybrid deep learning model. Neural Comput & Applic 34, 19819–19830 (2022). https://doi.org/10.1007/s00521-022-07540-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-022-07540-7

Keywords

Navigation