Skip to main content

Stress Prediction Using Machine Learning and IoT

  • Conference paper
  • First Online:
Proceedings of Data Analytics and Management

Abstract

Stress is a mental condition that affects every aspect of life leading to sleep deprivation and various other diseases. Thus, it's necessary to analyse one's vitals to stay updated about one's mental health. This paper presents an effective method for detecting cognitive stress levels using data from a physical activity tracker device. The main goal of this system is to use sensor technology to detect stress using a machine learning approach. Individually, the impact of each stressor is assessed using ML models, followed by the construction of a NN model and assessment using ordinal logistic regression models such as logit, probit and complementary log-log. The paper uses heartbeat rate as one of the features to recognise stress and the Internet of Things (IoT) and Machine Learning (ML) to alert the situation when the person is in real danger. The patient's condition is predicted using machine learning and the patient's acute stress condition is relayed using IoT. Based on the heartbeat, a prediction of whether a person is under stress or not can be made. The paper presents a model that can predict stress levels based entirely on electrocardiogram (ECG) data, which can be measured with consumer-grade heart monitors The ECG's spectral power components, as well as time and frequency domain features of heart rate variability, are included in the model. The stress detector system takes the real-time data from the IoT device (sensor), then applies a machine learning model on the data to detect stress levels in an individual and eventually informs/alerts the individual about their stress condition. By collecting data, this system is tested and evaluated in a real-time environment with different machine learning models. Finally, a comprehensive comparative analysis has been depicted amongst the applied models with Random Forest Classifier showing the highest accuracy. The novelty of this work lies in the fact that a stress detection framework should be as unobtrusive to the user as possible.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 219.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 279.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 279.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Raichur N, Lonakadi N, Mural P (2017) Detection of stress using image processing and machine learning techniques. Int J Eng Technol 9(3)

    Google Scholar 

  2. Venkataraman D, Parameswaran NS (2018) Extraction of facial features for depression detection among students. Int J Pure Appl Math

    Google Scholar 

  3. Pandey PS (2017) Machine learning and IoT for prediction and detection of stress, IEEE

    Google Scholar 

  4. Kumar T, Kumar RS et al (2019) Health monitoring and stress detection system, IRJET, March 2019

    Google Scholar 

  5. Hesham, Elkhorazaty Y, Aloul F (2016) Emotion recognition using mobile phones, IEEE

    Google Scholar 

  6. Lakudzode SF, Prof. Rajbhoj SM (2016) Review on human stress monitoring system using wearable sensors

    Google Scholar 

  7. Pantelopoulos A, Bourbakis NG (2009) A survey on wearable sensor-based systems for health monitoring and prognosis. In: IEEE transactions on systems, man, and cybernetics, part c (applications and reviews); vol 40, issue 1

    Google Scholar 

  8. Amir Muaremi; Bert Arnrich; Gerhard Troster; Towards Measuring Stress with Smartphones and Wearable Devices During Workday, Sleep. Zurich, Switzer- land. 2013

    Google Scholar 

  9. Minguillon J, Perez E, Lopez-Gordo MA, Pelayo F, Sanchez-Carrion MJ (2018) Portable system for real-time detection of stress level. Sensors 18(8):2504

    Google Scholar 

  10. Healey J (2005) Wearable and automotive systems for affect recognition from physiology

    Google Scholar 

  11. Healey J, Picard W (2000) Wearable and automotive systems for affect recognition from physiology

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Vividha .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Vividha, Agarwal, D., Gupta, P., Taneja, S., Nagrath, P., Gupta, B. (2022). Stress Prediction Using Machine Learning and IoT. In: Gupta, D., Polkowski, Z., Khanna, A., Bhattacharyya, S., Castillo, O. (eds) Proceedings of Data Analytics and Management . Lecture Notes on Data Engineering and Communications Technologies, vol 91. Springer, Singapore. https://doi.org/10.1007/978-981-16-6285-0_49

Download citation

Publish with us

Policies and ethics