Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR mHealth and uHealth

Date Submitted: Jan 14, 2020
Date Accepted: Aug 3, 2020

The final, peer-reviewed published version of this preprint can be found here:

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

Sultana M, Lee J

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

JMIR Mhealth Uhealth 2020;8(9):e17818

DOI: 10.2196/17818

PMID: 32990638

PMCID: 7584158

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Using Machine Learning and Daily Context from Smartphones and Smartwatches to Detect Emotional States and Transitions: An Exploratory Study

  • Madeena Sultana; 
  • Joon Lee

ABSTRACT

Background:

Emotional state in everyday life is an essential indicator of health and wellbeing. However, daily assessment of emotional states largely depends on active self-reports, which is often inconvenient and prone to incomplete information. Automated detection of emotional states and transitions based on daily context could be an effective solution to this problem. Yet, the relationship between the emotional transitions and everyday contexts remains unexplored.

Objective:

The objective of this study is two-fold: 1) to explore the relationship between contextual information and emotional transitions/states, 2) 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 18 persons’ data from a publicly available dataset called ExtraSensory. Contextual data were collected passively using smartphone and smartwatch sensors in a free-living condition, where the number of days for each person varied from three to nine. Sensors include an accelerometer, gyroscope, compass, location services, microphone, phone state indicator, light, temperature, and barometer. The users self-reported approximately 49 discrete emotions at different intervals via a smartphone application throughout the data collection period. We mapped the 49 reported discrete emotions to the three dimensions of the PAD (Pleasure, Arousal, Dominance) model and considered six states of emotions: discordant, pleased, dissuade, aroused, submissive, and dominant. The prevailing emotional states were passively detected every five minutes from the contextual data. We also studied the feasibility of using daily contextual information to detect transitions in emotional states in five minute intervals. The transition detection problem is a binary classification problem that detects whether the person’s emotional state has changed over time or not. In both cases, a wide range of supervised machine learning algorithms were leveraged, in addition to a variety of data preprocessing, feature selection, and data imbalance handling techniques. Lastly, an assessment has been 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 accuracy of emotional state detection varied from 88% to 100% across different persons. Despite the highly imbalanced data, the obtained best value of balanced accuracy of emotional transition detection varied from 73% to 85% for different persons. Feature analysis shows that spatio-temporal context, phone state, and activity related information are the most informative for emotional state/transition detections. Our assessment showed that there is an impact of lifestyle 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 them using data from smartphone and smartwatch sensors. Clinical Trial: N/A


 Citation

Please cite as:

Sultana M, Lee J

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

JMIR Mhealth Uhealth 2020;8(9):e17818

DOI: 10.2196/17818

PMID: 32990638

PMCID: 7584158

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.