Uncovering Latent Patterns in Social Media Usage and Mental Health: A Clustering-Based Approach Using Unsupervised Machine Learning
Md All Shahria a , Sanjeda Dewan Mithila a , Touhid Alam a , Mohammad Sakib Mahmood b and Mahfuza Khatun c · 2026
Read Uncovering Latent Patterns in Social Media Usage and Mental Health: A Clustering-Based Approach Using Unsupervised Machine Learning by Md All Shahria a , Sanjeda Dewan Mithila a , Touhid Alam a , Mohammad Sakib Mahmood b and Mahfuza Khatun c (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2604-24611.txt.
Introduction
Shahria and four colleagues use unsupervised clustering to sort social media users by behavior and mental-health indicators such as sleep quality, anxiety, depression and loneliness. From survey data on 551 people, they clean and encode the responses, then apply K-means clustering. The method settles on six groups, revealing distinct risk profiles that link heavier social media use to worse anxiety and related symptoms.
Catalog record
| CREATOR | Md All Shahria a , Sanjeda Dewan Mithila a , Touhid Alam a , Mohammad Sakib Mahmood b and Mahfuza Khatun c |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 34238 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.24611
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Uncovering Latent Patterns in Social Media Usage and Mental Health: A Clustering-Based Approach Using Unsupervised Machine Learning Md All Shahria a , Sanjeda Dewan Mithila a , Touhid Alam a , Mohammad Sakib Mahmood b and Mahfuza Khatun c Abstract The widespread adoption of social media has heightened interest in its psychological effects, particularly on mental health indicators such as anxiety, depression, loneliness, and sleep quality, as these platforms increasingly influence social interactions and well-being. Although previous research has examined correlations between social media use and mental health, few studies have utilized unsupervised machine learning to segment users based on behavioral and psychological patterns, leaving a gap in identifying distinct risk profiles across diverse groups. This study seeks to address this by segmenting individuals according to their social media usage and psychological well-being, employing clustering to reveal hidden patterns and evaluate their mental health implications. Data from 551 participants, collected via an online survey, were preprocessed using KNN imputation for missing values, one-hot encoding for categorical variables like Gender with 5 unique values, and outlier detection via IQR and Z-score methods. K-Means clustering, optimized at 6 clusters using the Elbow Method and a Silhouette Score of 0.32, was applied, with PCA reducing 22 dimensions for visualization and a correlation heatmap highlighting relationships, such as a 0.28 correlation between social media hours and anxiety. Results identified six clusters: Cluster 5, marked by younger users with high personal use and 68% taking breaks, stood out as most distinct, while Clusters 0-4 showed overlap, including Cluster 0 with employed females and 61% breaks. Excessive use correlated with 43% reporting anxiety ”Sometimes/Mostly,” 39% feeling ”Unhappy,” and 41% experiencing ”Sleeping Less,” though breaks, as seen with 66% in Cluster 2, mitigated these effects. These insights demonstrate machine learning’s potential to pinpoint vulnerable groups, supporting tailored digital wellness strategies, though sample diversity limitations call for broader validation. keywords Social Media Usage; Anxiety; Unsupervised Learning; Clustering Analysis; PCA (Principal Component Analysis); KNN Imputation † † articletype: ARTICLE † † affiliation: a Dept. of Computer Science, American International University-Bangladesh, Dhaka, Bangladesh; b Dept. of Computer Science, Missouri State University, Springfield, Missouri, USA; c Dept. of Mathematics, American International University-Bangladesh, Dhaka, Bangladesh 1 Introduction Social media has become a cornerstone of contemporary society, fundamentally altering how individuals interact, share experiences, and perceive themselves and others. By 2022, daily usage reached 69% of adults globally, with average engagement exceeding three hours, according to Pew Research Center data ( Pew Research Center 2022 ) . This pervasive integration into daily life has fueled growing concerns about its impact on mental health, particularly as platforms like Instagram, TikTok, and YouTube dominate youth culture. Recent evidence underscores these worries: a 2023 Springer study reports that problematic social media use among adolescents rose from 7% in 2018 to 11% in 2022, correlating with heightened anxiety and depression ( WHO 2024 ) . What specific usage patterns drive these effects? How do they differ across demographics and contexts? These questions propel this study’s investigation into the nexus of social media behavior and mental health outcomes. Research from 2022 by Braghieri, Levy, & Makarin 2022 , published in the American Economic Review, leverages the staggered rollout of Facebook to demonstrate a causal link between its adoption and increased anxiety among college students, with a 7% rise in severe depression symptoms. Similarly, a 2024 Springer paper by Su et al. 2024 finds that excessive TikTok use amplifies loneliness and stress, with 27% of U.S. users reporting negative psychological effects. These findings build on earlier work, such as Naslund et al. 2020 ’s 2020 Springer analysis, which highlights both the risks and peer-support benefits of social media for mental health. Here, ”social media usage” refers to time spent on platforms like Facebook, Instagram, and TikTok, while ”mental health indicators” include self-reported anxiety, depression, loneliness, and sleep quality, measured via scales like GAD-7 and PHQ-9 ( Su et al. 2024 ; Shannon et al. 2022 ) . Despite this advancing knowledge, significant gaps remain in understanding how social media differentially affects diverse populations. Our survey data indicate that 41% of users experience sleep disruption, 43% report anxiety, and 39% feel ”unhappy” linked to heavy usage—yet these effects are not uniform across groups ( Shannon et al. 2022 ) . A 2022 IEEE conference paper by Wang et al. 2022 notes that while adolescents show a 15% higher risk of depression with over four hours of daily use, the role of moderating factors like gender or intentional breaks remains underexplored. Similarly, a 2023 systematic review in JMIR Mental Health reveals moderate correlations (r=0.273–0.348) between problematic social media use and psychological distress, but lacks segmentation by behavioral patterns ( Shannon et al. 2022 ) . Traditional studies often aggregate data, overlooking nuances such as the 13% vs. 9% gender disparity in problematic use among girls and boys, as reported by the WHO 2024 . This gap is critical: without identifying distinct user profiles, interventions remain broad and less effective. Recent Springer research advocates clustering techniques to address this, as seen in Kim et al. 2024a ’s 2024 analysis of digital stress. Our study builds on these advancements, using machine learning to dissect the interplay of usage habits and mental health, aligning with the field’s push toward precision in digital well-being strategies ( Winstone et al. 2022 ) . This research employs K-Means clustering on a 551-participant dataset to segment individuals by social media usage and mental health indicators, offering a granular view of risk profiles. We hypothesize that if excessive social media use without breaks exacerbates psychological distress, then high-engagement, low-break clusters will show elevated anxiety, depression, and sleep issues compared to moderated users ( Kim et al. 2024a ) . This approach, inspired by 2022 Springer work on adolescent digital behavior ( Winstone et al. 2022 ) , aims to pinpoint vulnerable groups and inform targeted interventions—like promoting breaks, which reduced stress by 20% in a 2023 trial ( Plackett et al. 2023 ) . By mapping these relationships, the study seeks to enhance our understanding of social media’s complex impact, providing a data-driven foundation for policies and practices that mitigate its risks while preserving its connective potential in an increasingly digital world. 2 Literature Review The omnipresence of social media has reshaped human interaction, thrusting its mental health implications into the spotlight, with a flurry of research from 2022 to 2024 in elite journals like IEEE, Springer, Elsevier, and JMIR Mental Health unveiling intricate trends, persistent themes, fierce debates, groundbreaking studies, and stubborn gaps that define this evolving domain. A prevailing trend is the escalating psychological toll of prolonged usage: Braghieri, Levy, & Makarin 2022 in the American Economic Review tapped a longitudinal dataset of 175,000 U.S. college students from 2004–2016, using difference-in-differences regression to show Facebook’s rollout sparked a 7% rise in severe depression and 8% in anxiety, blaming social comparison, though its dated focus misses TikTok’s rise. Su et al. 2024 in Springer Discov Ment Health bridged this with a 2023 survey of 1,200 U.S. TikTok users, applying structural equation modeling (SEM) to find 27% reporting loneliness and stress with over two hours daily, marred by self-report bias and a cross-sectional lens. The WHO 2024 HBSC study