Using Machine Learning and Smartphone and Smartwatch Data to Detect Emotional States and Transitions: Exploratory Study

JMIR mHealth and uHealth - Tập 8 Số 9 - Trang e17818
Madeena Sultana1,2, Majed Al-Jefri1,3, Joon Lee1,4,2
1Data Intelligence for Health Lab, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada
2Department of Community Health Sciences, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada,
3Department of Medicine, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada
4Department of Cardiac Sciences, Cumming School of Medicine, University of Calgary, Calgary, AB, Canada

Tóm tắt

Background Emotional state in everyday life is an essential indicator of health and well-being. However, daily assessment of emotional states largely depends on active self-reports, which are often inconvenient and prone to incomplete information. Automated detection of emotional states and transitions on a daily basis could be an effective solution to this problem. However, the relationship between emotional transitions and everyday context remains to be unexplored. Objective This study aims to explore the relationship between contextual information and emotional transitions and states to evaluate the feasibility of detecting emotional transitions and states from daily contextual information using machine learning (ML) techniques. Methods This study was conducted on the data of 18 individuals from a publicly available data set called ExtraSensory. Contextual and sensor data were collected using smartphone and smartwatch sensors in a free-living condition, where the number of days for each person varied from 3 to 9. Sensors included an accelerometer, a gyroscope, a compass, location services, a microphone, a phone state indicator, light, temperature, and a barometer. The users self-reported approximately 49 discrete emotions at different intervals via a smartphone app throughout the data collection period. We mapped the 49 reported discrete emotions to the 3 dimensions of the pleasure, arousal, and dominance model and considered 6 emotional states: discordant, pleased, dissuaded, aroused, submissive, and dominant. We built general and personalized models for detecting emotional transitions and states every 5 min. The transition detection problem is a binary classification problem that detects whether a person’s emotional state has changed over time, whereas state detection is a multiclass classification problem. In both cases, a wide range of supervised ML algorithms were leveraged, in addition to data preprocessing, feature selection, and data imbalance handling techniques. Finally, an assessment was conducted to shed light on the association between everyday context and emotional states. Results This study obtained promising results for emotional state and transition detection. The best area under the receiver operating characteristic (AUROC) curve for emotional state detection reached 60.55% in the general models and an average of 96.33% across personalized models. Despite the highly imbalanced data, the best AUROC curve for emotional transition detection reached 90.5% in the general models and an average of 88.73% across personalized models. In general, feature analyses show that spatiotemporal context, phone state, and motion-related information are the most informative factors for emotional state and transition detection. Our assessment showed that lifestyle has an impact on the predictability of emotion. Conclusions Our results demonstrate a strong association of daily context with emotional states and transitions as well as the feasibility of detecting emotional states and transitions using data from smartphone and smartwatch sensors.

Từ khóa


Tài liệu tham khảo

10.4108/icst.pervasivehealth.2015.259034

10.1002/da.22822

10.1145/3038912.3052618

10.1038/s41746-019-0078-0

10.1007/s11920-015-0602-0

10.1109/cbms.2016.54

10.1109/MPRV.2015.54

10.1145/3038912.3052676

10.2196/mhealth.9472

10.1016/j.envres.2017.11.006

10.1016/j.jrp.2016.06.004

10.1109/bsn.2012.3

10.2196/jmir.5505

10.1145/2632048.2632054

10.1109/bsn.2015.7299420

Budner, P, 2017, arXiv

10.1145/3161414

10.1109/embc.2019.8856862

10.1145/3292500.3330730

10.1037/h0077714

10.1007/s12144-014-9219-4

The ExtraSensory DatasetYonatan Vaizman - University of California San Diego2020-08-24http://extrasensory.ucsd.edu/

10.1109/mprv.2017.3971131

Mehrabian, A, 1974, An Approach to Environmental Psychology

10.1016/0092-6566(77)90037-x

BradleyMMLangPJAffective Norms for English Words (ANEW): Instruction Manual and Affective RatingsSemantic Scholar19992020-09-01https://www.uvm.edu/pdodds/teaching/courses/2009-08UVM-300/docs/others/everything/bradley1999a.pdf

10.3758/s13428-012-0314-x

10.1145/3173574.3174128

Geohash2020-08-25http://geohash.org

10.1613/jair.953

mHealth Emotional State-Transition Detection PublicGitHub2020-08-25https://github.com/data-intelligence-for-health-lab/mHealth_Emotional_State-Transition_Detection_Public

Lundberg, SM, 2017, Advances in Neural Information Processing Systems

Jaques, N, 2017, J Mach Learn Res, 66, 17