Identifying Behavioral Phenotypes of Loneliness and Social Isolation with Passive Sensing: Statistical Analysis, Data Mining and Machine Learning of Smartphone and Fitbit Data
- PMID: 31342903
- PMCID: PMC6685126
- DOI: 10.2196/13209
Identifying Behavioral Phenotypes of Loneliness and Social Isolation with Passive Sensing: Statistical Analysis, Data Mining and Machine Learning of Smartphone and Fitbit Data
Abstract
Background: Feelings of loneliness are associated with poor physical and mental health. Detection of loneliness through passive sensing on personal devices can lead to the development of interventions aimed at decreasing rates of loneliness.
Objective: The aim of this study was to explore the potential of using passive sensing to infer levels of loneliness and to identify the corresponding behavioral patterns.
Methods: Data were collected from smartphones and Fitbits (Flex 2) of 160 college students over a semester. The participants completed the University of California, Los Angeles (UCLA) loneliness questionnaire at the beginning and end of the semester. For a classification purpose, the scores were categorized into high (questionnaire score>40) and low (≤40) levels of loneliness. Daily features were extracted from both devices to capture activity and mobility, communication and phone usage, and sleep behaviors. The features were then averaged to generate semester-level features. We used 3 analytic methods: (1) statistical analysis to provide an overview of loneliness in college students, (2) data mining using the Apriori algorithm to extract behavior patterns associated with loneliness, and (3) machine learning classification to infer the level of loneliness and the change in levels of loneliness using an ensemble of gradient boosting and logistic regression algorithms with feature selection in a leave-one-student-out cross-validation manner.
Results: The average loneliness score from the presurveys and postsurveys was above 43 (presurvey SD 9.4 and postsurvey SD 10.4), and the majority of participants fell into the high loneliness category (scores above 40) with 63.8% (102/160) in the presurvey and 58.8% (94/160) in the postsurvey. Scores greater than 1 standard deviation above the mean were observed in 12.5% (20/160) of the participants in both pre- and postsurvey scores. The majority of scores, however, fell between 1 standard deviation below and above the mean (pre=66.9% [107/160] and post=73.1% [117/160]). Our machine learning pipeline achieved an accuracy of 80.2% in detecting the binary level of loneliness and an 88.4% accuracy in detecting change in the loneliness level. The mining of associations between classifier-selected behavioral features and loneliness indicated that compared with students with low loneliness, students with high levels of loneliness were spending less time outside of campus during evening hours on weekends and spending less time in places for social events in the evening on weekdays (support=17% and confidence=92%). The analysis also indicated that more activity and less sedentary behavior, especially in the evening, was associated with a decrease in levels of loneliness from the beginning of the semester to the end of it (support=31% and confidence=92%).
Conclusions: Passive sensing has the potential for detecting loneliness in college students and identifying the associated behavioral patterns. These findings highlight intervention opportunities through mobile technology to reduce the impact of loneliness on individuals' health and well-being.
Keywords: data mining; digital phenotyping; loneliness; machine learning; mobile health; statistical data analysis.
©Afsaneh Doryab, Daniella K Villalba, Prerna Chikersal, Janine M Dutcher, Michael Tumminia, Xinwen Liu, Sheldon Cohen, Kasey Creswell, Jennifer Mankoff, John D Creswell, Anind K Dey. Originally published in JMIR Mhealth and Uhealth (http://mhealth.jmir.org), 24.07.2019.
Conflict of interest statement
Conflicts of Interest: None declared.
Figures







Similar articles
-
Unmasking Nuances Affecting Loneliness: Using Digital Behavioural Markers to Understand Social and Emotional Loneliness in College Students.Sensors (Basel). 2025 Mar 19;25(6):1903. doi: 10.3390/s25061903. Sensors (Basel). 2025. PMID: 40293076 Free PMC article.
-
Using Passive Smartphone Sensing for Improved Risk Stratification of Patients With Depression and Diabetes: Cross-Sectional Observational Study.JMIR Mhealth Uhealth. 2019 Jan 29;7(1):e11041. doi: 10.2196/11041. JMIR Mhealth Uhealth. 2019. PMID: 30694197 Free PMC article.
-
Objective monitoring of loneliness levels using smart devices: A multi-device approach for mental health applications.PLoS One. 2024 Jun 20;19(6):e0298949. doi: 10.1371/journal.pone.0298949. eCollection 2024. PLoS One. 2024. PMID: 38900745 Free PMC article.
-
Loneliness and Social Isolation Detection Using Passive Sensing Techniques: Scoping Review.JMIR Mhealth Uhealth. 2022 Apr 12;10(4):e34638. doi: 10.2196/34638. JMIR Mhealth Uhealth. 2022. PMID: 35412465 Free PMC article.
-
Systematic review of smartphone-based passive sensing for health and wellbeing.J Biomed Inform. 2018 Jan;77:120-132. doi: 10.1016/j.jbi.2017.12.008. Epub 2017 Dec 14. J Biomed Inform. 2018. PMID: 29248628 Free PMC article.
Cited by
-
Identifying Mobile Sensing Indicators of Stress-Resilience.Proc ACM Interact Mob Wearable Ubiquitous Technol. 2021 Jun;5(2):51. doi: 10.1145/3463528. Epub 2021 Jun 24. Proc ACM Interact Mob Wearable Ubiquitous Technol. 2021. PMID: 35445162 Free PMC article.
-
Framework for Ranking Machine Learning Predictions of Limited, Multimodal, and Longitudinal Behavioral Passive Sensing Data: Combining User-Agnostic and Personalized Modeling.JMIR AI. 2024 May 20;3:e47805. doi: 10.2196/47805. JMIR AI. 2024. PMID: 38875667 Free PMC article.
-
Design Guidelines for Improving Mobile Sensing Data Collection: Prospective Mixed Methods Study.J Med Internet Res. 2024 Nov 18;26:e55694. doi: 10.2196/55694. J Med Internet Res. 2024. PMID: 39556828 Free PMC article.
-
Older Adults' Perceptions and Attitudes Toward Passive Sensors to Measure Loneliness: A Qualitative Study.Sage Open Aging. 2025 Apr 29;11:30495334251325607. doi: 10.1177/30495334251325607. eCollection 2025 Jan-Dec. Sage Open Aging. 2025. PMID: 40611868 Free PMC article.
-
Predicting the Risk of Loneliness in Children and Adolescents: A Machine Learning Study.Behav Sci (Basel). 2024 Oct 15;14(10):947. doi: 10.3390/bs14100947. Behav Sci (Basel). 2024. PMID: 39457819 Free PMC article.
References
-
- Cacioppo JT, Patrick W. Loneliness – Human Nature and the Need for Social Connection. New York City: WW Norton & Company; 2008.
-
- MultiVu: Multimedia Production & Strategic Distribution. 2018. Most Americans are Considered Lonely https://tinyurl.com/yxguwkk3.
-
- Perlman D, Peplau LA. Toward a social psychology of loneliness. Pers Relatsh. 1981;3:31–56. doi: 10.4236/psych.2017.8101051. - DOI
-
- Cacioppo JT, Cacioppo S, Boomsma DI. Evolutionary mechanisms for loneliness. Cogn Emot. 2014;28(1):3–21. doi: 10.1080/02699931.2013.837379. http://europepmc.org/abstract/MED/24067110 - DOI - PMC - PubMed
-
- Masi CM, Chen HY, Hawkley LC, Cacioppo JT. A meta-analysis of interventions to reduce loneliness. Pers Soc Psychol Rev. 2011 Aug;15(3):219–66. doi: 10.1177/1088868310377394. http://europepmc.org/abstract/MED/20716644 - DOI - PMC - PubMed
Publication types
MeSH terms
LinkOut - more resources
Full Text Sources
Other Literature Sources