Support Vector Machine based Stress Detection System to manage COVID-19 pandemic related stress from ECG signal

Main Article Content

Md Fahim Rizwan
Rayed Farhad
Md. Hasan Imam


This study represents a detailed investigation of induced stress detection in humans using Support Vector Machine algorithms. Proper detection of stress can prevent many psychological and physiological problems like the occurrence of major depression disorder (MDD), stress-induced cardiac rhythm abnormalities, or arrhythmia. Stress induced due to COVID -19 pandemic can make the situation worse for the cardiac patients and cause different abnormalities in the normal people due to lockdown condition. Therefore, an ECG based technique is proposed in this paper where the ECG can be recorded for the available handheld/portable devices which are now common to many countries where people can take ECG by their own in their houses and get preliminary information about their cardiac health. From ECG, we can derive RR interval, QT interval, and EDR (ECG derived Respiration) for developing the model for stress detection also. To validate the proposed model, an open-access database named "drivedb” available at Physionet ( was used as the training dataset. After verifying several SVM models by changing the ECG length, features, and SVM Kernel type, the results showed an acceptable level of accuracy for Fine Gaussian SVM (i.e. 98.3% for 1 min ECG and 93.6 % for 5 min long ECG) with Gaussian Kernel while using all available features (RR, QT, and EDR). This finding emphasizes the importance of including ventricular polarization and respiratory information in stress detection and the possibility of stress detection from short length data(i.e. form 1 min ECG data), which will be very useful to detect stress through portable ECG devices in locked down condition to analyze mental health condition without visiting the specialist doctor at hospital. This technique also alarms the cardiac patients form being stressed too  much which might cause severe arrhythmogenesis.

Article Details

How to Cite
M. F. Rizwan, R. Farhad, and M. H. Imam, “Support Vector Machine based Stress Detection System to manage COVID-19 pandemic related stress from ECG signal ”, AJSE, vol. 20, no. 1, pp. 8 - 16, Apr. 2021.
Covid-19 Special Issue


[1] Kalisiewicz, D. "A Small Encyclopedia of PWN." (2000). Scientific Publishers PWN; Warsaw, Poland: 2000. Stress; p. 778.

[2] Das, Sajal, and James H. O’Keefe. "Behavioral cardiology: recognizing and addressing the profound impact of psychosocial stress on cardiovascular health." Current atherosclerosis reports 8, no. 2 (2006): 111-118.
[3] Shusterman, Vladimir, Benhur Aysin, Venkateshwar Gottipaty, Raul Weiss, Susan Brode, David Schwartzman, and Kelley P. Anderson. "Autonomic nervous system activity and the spontaneous initiation of ventricular tachycardia." Journal of the American College of Cardiology 32, no. 7 (1998): 1891-1899.

[4] Brodsky, Michael A., David A. Sato, Lloyd T. Iseri, Larry J. Wolff, and Byron J. Allen. "Ventricular tachyarrhythmia associated with psychological stress: the role of the sympathetic nervous system." JAMA 257, no. 15 (1987): 2064-2067.

[5] Leenhardt, Antoine, Vincent Lucet, Isabelle Denjoy, Francis Grau, Dien Do Ngoc, and Philippe Coumel. "Catecholaminergic polymorphic ventricular tachycardia in children: a 7-year follow-up of 21 patients." Circulation 91, no. 5 (1995): 1512-1519.

[6] Johnson, Beena, and Johnson Francis. "Stress and cardiac arrhythmias." Indian pacing and electrophysiology journal 14, no. 5 (2014): 230.

[7] Brunckhorst, C. B., J. Holzmeister, C. Scharf, C. Binggeli, and F. Duru. "Stress, Depression und kardiale Arrhythmien." Therapeutische Umschau 60, no. 11 (2003): 673-681.

[8] Taggart, Peter, and Pier Lambiase. "Anger, emotion, and arrhythmias: from brain to heart." Frontiers in physiology 2 (2011): 67.

[9] Andreassi George, L. "Psychophysiology: human behavior and physiological response (Psychology of the press)." (2010).

[10] Rugulies, Reiner. "Depression as a predictor for coronary heart disease: a review and meta-analysis." American journal of preventive medicine 23, no. 1 (2002): 51-61.

[11] Kibler, Jeffrey L., and Mindy Ma. "Depressive symptoms and cardiovascular reactivity to laboratory behavioral stress." International Journal of Behavioral Medicine 11, no. 2 (2004): 81-87.

[12] Carroll, Douglas, Anna C. Phillips, Kate Hunt, and Geoff Der. "Symptoms of depression and cardiovascular reactions to acute psychological stress: evidence from a population study." Biological psychology 75, no. 1 (2007): 68-74.

[13] Juon, Hee‐Soon, Jung Ja Nam, and Margaret E. Ensminger. "Epidemiology of suicidal behavior among Korean adolescents." Journal of child psychology and psychiatry 35, no. 4 (1994): 663-676.

[14] Naseem, Sabahat, and Seema Munaf. "Suicidal ideation, depression, anxiety, stress, and life satisfaction of medical, engineering, and social sciences students." Journal of Ayub Medical College Abbottabad 29, no. 3 (2017): 422-427.
[15] Shi, Yu, Natalie Ruiz, Ronnie Taib, Eric Choi, and Fang Chen. "Galvanic skin response (GSR) as an index of cognitive load." In CHI'07 extended abstracts on Human factors in computing systems, pp. 2651-2656. 2007.

[16] Lundberg, Ulf, Roland Kadefors, Bo Melin, Gunnar Palmerud, Peter Hassmén, Margareta Engström, and Ingela Elfsberg Dohns. "Psychophysiological stress and EMG activity of the trapezius muscle." International journal of behavioral medicine 1, no. 4 (1994): 354-370.

[17] Wijsman, Jacqueline, Bernard Grundlehner, Julien Penders, and Hermie Hermens. "Trapezius muscle EMG as predictor of mental stress." In Wireless Health 2010, pp. 155-163. 2010.
[18] [18] Crescentini, Cristiano, Luca Chittaro, Viviana Capurso, Riccardo Sioni, and Franco Fabbro. "Psychological and physiological responses to stressful situations in immersive virtual reality: Differences between users who practice mindfulness meditation and controls." Computers in Human Behavior 59 (2016): 304-316.

[19] Yamakoshi, Takehiro, K. Yamakoshi, S. Tanaka, M. Nogawa, Sang-Bum Park, Mariko Shibata, Y. Sawada, P. Rolfe, and Yasuo Hirose. "Feasibility study on driver's stress detection from differential skin temperature measurement." In 2008 30th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, pp. 1076-1079. IEEE, 2008.

[20] Taelman, Joachim, Steven Vandeput, Arthur Spaepen, and Sabine Van Huffel. "Influence of mental stress on heart rate and heart rate variability." In 4th European conference of the international federation for medical and biological engineering, pp. 1366-1369. Springer, Berlin, Heidelberg, 2009.

[21] Hladký, A. "A questionnaire technique for assessing the stress at work." Journal of hygiene, epidemiology, microbiology, and immunology 28, no. 4 (1984): 383-398.

[22] Boucsein, Wolfram. Electrodermal activity. Springer Science & Business Media, 2012.

[23] Healey, Jennifer A., and Rosalind W. Picard. "Detecting stress during real-world driving tasks using physiological sensors." IEEE Transactions on intelligent transportation systems 6, no. 2 (2005): 156-166.
[24] Hjortskov, Nis, Dag Rissén, Anne Katrine Blangsted, Nils Fallentin, Ulf Lundberg, and Karen Søgaard. "The effect of mental stress on heart rate variability and blood pressure during computer work." European journal of applied physiology 92, no. 1-2 (2004): 84-89.

[25] Imam, Mohammad Hasan, Chandan K. Karmakar, Ahsan H. Khandoker, and Marimuthu Palaniswami. "Effect of ECG-derived respiration (EDR) on modeling ventricular repolarization dynamics in different physiological and psychological conditions." Medical & biological engineering & computing 52, no. 10 (2014): 851-860.

[26] Kohavi, Ron. "A study of cross-validation and bootstrap for accuracy estimation and model selection." In Ijcai, vol. 14, no. 2, pp. 1137-1145. 1995.

[27] Karmakar, Chandan, Mohammad Hasan Imam, Ahsan Khandoker, and Marimuthu Palaniswami. "Influence of psychological stress on QT interval." In Computing in Cardiology 2014, pp. 1009-1012. IEEE, 2014

[28] Paavonen, K. J., Heikki Swan, Kirsi Piippo, Laura Hokkanen, Päivi Laitinen, Matti Viitasalo, Lauri Toivonen, and Kimmo Kontula. "Response of the QT interval to mental and physical stress in types LQT1 and LQT2 of the long QT syndrome." Heart 86, no. 1 (2001): 39-44.

[29] Cacioppo, John T., Louis G. Tassinary, and Gary Berntson, eds. Handbook of psychophysiology. Cambridge university press, 2007.

[30] Kreibig, Sylvia D. "Autonomic nervous system activity in emotion: A review." Biological psychology 84, no. 3 (2010): 394-421.
[31] Munla, Nermine, Mohamad Khalil, Ahmad Shahin, and Azzam Mourad. "Driver stress level detection using HRV analysis." In 2015 international conference on advances in biomedical engineering (ICABME), pp. 61-64. IEEE, 2015.

[32] Yu, Ya Jun, Zhan Yang, Beom-Seok Oh, Yong Kiang Yeo, Qinglai Liu, Guang-Bin Huang, and Zhiping Lin. "Investigation on driver stress utilizing ECG signals with on-board navigation systems in use." In 2016 14th International Conference on Control, Automation, Robotics and Vision (ICARCV), pp. 1-6. IEEE, 2016.

[33] Subhani, Ahmad Rauf, Wajid Mumtaz, Mohamed Naufal Bin Mohamed Saad, Nidal Kamel, and Aamir Saeed Malik. "Machine learning framework for the detection of mental stress at multiple levels." IEEE Access 5 (2017): 13545-13556.

[34] Rizwan, Md Fahim, Rayed Farhad, Farhan Mashuk, Fakhrul Islam, and Mohammad Hasan Imam. "Design of a biosignal based stress detection system using machine learning techniques." In 2019 International Conference on Robotics, Electrical and Signal Processing Techniques (ICREST), pp. 364-368. IEEE, 2019.

[35] Wang, Cuiyan, Riyu Pan, Xiaoyang Wan, Yilin Tan, Linkang Xu, Cyrus S. Ho, and Roger C. Ho. "Immediate psychological responses and associated factors during the initial stage of the 2019 coronavirus disease (COVID-19) epidemic among the general population in China." International journal of environmental research and public health 17, no. 5 (2020): 1729.

[36] Wang, Yenan, Yu Di, Junjie Ye, and Wenbin Wei. "Study on the public psychological states and its related factors during the outbreak of coronavirus disease 2019 (COVID-19) in some regions of China." Psychology, Health & Medicine (2020): 1-10.

[37] S.M. Didar-Ul Islam, Md. Bodrud-Doza, Rafid Mahmud Khan, Md. Abidul Haque, Mohammed A. Mamun, “Exploring COVID-19 stress and its factors in Bangladesh: A perception-based study”, Heliyon,Volume 6, Issue 7,2020, e04399,ISSN 2405-8440,