Predicting Smartphone Addiction Levels with K-Nearest Neighbors Using User Behavior Patterns
DOI:
https://doi.org/10.52436/1.jutif.2025.6.5.4905Keywords:
K-Nearest Neighbor, Machine learning, Prediction, Smartphone addiction, User behavior patternsAbstract
Smartphones have become an integral part of everyday life, but their ever-increasing popularity has raised growing global concerns about excessive use (nomophobia), which impacts quality of life, mental health, and academic performance. Existing research often relies on subjective questionnaires, limiting scalability and objectivity. This study addresses this gap by developing a machine learning model to predict smartphone addiction levels through an objective analysis of user behavior patterns. This research evaluates the effectiveness of the K-Nearest Neighbor (KNN) algorithm, identifies the most influential behavioral features, and assesses the model's classification performance. Using a dataset of 3,300 user behavior entries with 11 features, a waterfall-based framework was employed for data preprocessing, model design, and evaluation. The KNN model achieved 95% accuracy in classifying addiction levels. Permutation Feature Importance analysis confirmed ‘App Usage Time’ and ‘Battery Drain’ as the two most influential predictive features. This study demonstrates that KNN is a powerful and viable method for objectively classifying smartphone addiction. The findings provide a strong foundation for developing scalable, AI-driven early detection and intervention systems, offering significant contributions to the fields of computer science and digital well-being.
Downloads
References
C. Osorio-Molina, M. B. Martos-Cabrera, M. J. Membrive-Jiménez, K. Vargas-Roman, N. Suleiman-Martos, E. Ortega-Campos, and J. L. Gómez-Urquiza, "Smartphone addiction, risk factors and its adverse effects in nursing students: A systematic review and meta-analysis," Nurse Education Today, vol. 98, p. 104741, Mar. 2021. https://doi.org/10.1016/j.nedt.2020.104741
Z. A. Ratan, A. M. Parrish, S. B. Zaman, M. S. Alotaibi, and H. Hosseinzadeh, "Smartphone addiction and associated health outcomes in adult populations: a systematic review," International Journal of Environmental Research and Public Health, vol. 18, no. 22, p. 12257, Nov. 2021. https://doi.org/10.3390/ijerph182212257
O. J. Sunday, O. O. Adesope, and P. L. Maarhuis, "The effects of smartphone addiction on learning: A meta-analysis," Computers in Human Behavior Reports, vol. 4, p. 100114, Aug. 2021. https://doi.org/10.1016/j.chbr.2021.100114
A. Sela, N. Rozenboim, and H. C. Ben-Gal, "Smartphone use behavior and quality of life: What is the role of awareness?," PloS One, vol. 17, no. 3, p. e0260637, Mar. 2022. https://doi.org/10.1371/journal.pone.0260637
A. L. Sarhan, "The relationship of smartphone addiction with depression, anxiety, and stress among medical students," SAGE Open Medicine, vol. 12, p. 20503121241227367, Feb. 2024. https://doi.org/10.1177/20503121241227367
A. Nikolic, B. Bukurov, I. Kocic, M. Vukovic, N. Ladjevic, M. Vrhovac, Z. Pavlović, J. Grujicic, D. Kisic, and S. Sipetic, "Smartphone addiction, sleep quality, depression, anxiety, and stress among medical students," Frontiers in Public Health, vol. 11, p. 1252371, Sep. 2023. https://doi.org/10.3389/fpubh.2023.1252371
K. Opoku Asare, Y. Terhorst, J. Vega, E. Peltonen, E. Lagerspetz, and D. Ferreira, "Predicting depression from smartphone behavioral markers using machine learning methods, hyperparameter optimization, and feature importance analysis: exploratory study," JMIR mHealth and uHealth, vol. 9, no. 7, p. e26540, Jul. 2021. https://doi.org/10.2196/26540
G. A. Abbasi, M. Jagaveeran, Y. N. Goh, and B. Tariq, "The impact of type of content use on smartphone addiction and academic performance: Physical activity as moderator," Technology in Society, vol. 64, p. 101521, Feb. 2021. https://doi.org/10.1016/j.techsoc.2020.101521
B. Rathakrishnan, S. S. Bikar Singh, M. R. Kamaluddin, A. Yahaya, M. A. Mohd Nasir, F. Ibrahim, and Z. Ab Rahman, "Smartphone addiction and sleep quality on academic performance of university students: An exploratory research," International Journal of Environmental Research and Public Health, vol. 18, no. 16, p. 8291, Aug. 2021. https://doi.org/10.3390/ijerph18168291
S. Y. Sohn, L. Krasnoff, P. Rees, N. J. Kalk, and B. Carter, "The association between smartphone addiction and sleep: a UK cross-sectional study of young adults," Frontiers in Psychiatry, vol. 12, p. 629407, Mar. 2021. https://doi.org/10.3389/fpsyt.2021.629407
F. G. Karaoglan Yilmaz, U. Avci, and R. Yilmaz, "The role of loneliness and aggression on smartphone addiction among university students," Current Psychology, vol. 42, no. 21, pp. 17909-17917, Jul. 2023. https://doi.org/10.1007/s12144-022-03018-w
R. J. James, G. Dixon, M. G. Dragomir, E. Thirlwell, and L. Hitcham, "Understanding the construction of ‘behavior’in smartphone addiction: A scoping review," Addictive Behaviors, vol. 137, p. 107503, Feb. 2023. https://doi.org/10.1016/j.addbeh.2022.107503
T. Li, T. Xia, H. Wang, Z. Tu, S. Tarkoma, Z. Han, and P. Hui, "Smartphone app usage analysis: datasets, methods, and applications," IEEE Communications Surveys & Tutorials, vol. 24, no. 2, pp. 937-966, Mar. 2022. https://doi.org/10.1109/COMST.2022.3163176
M. R. Wayahdi, F. Ruziq, and S. H. N. Ginting, "AI approach to predict student performance (Case study: Battuta University)," Journal of Science and Social Research, vol. 7, no. 4, pp. 1800-1807, Nov. 2024. https://doi.org/10.54314/jssr.v7i4.2332
V. Galaz, M. A. Centeno, P. W. Callahan, A. Causevic, T. Patterson, I. Brass et al., "Artificial intelligence, systemic risks, and sustainability," Technology in Society, vol. 67, p. 101741, Nov. 2021. https://doi.org/10.1016/j.techsoc.2021.101741
M. R. Wayahdi and M. Zaki, "The Role of AI in Diagnosing Student Learning Needs: Solutions for More Inclusive Education," International Journal of Educational Insights and Innovations, vol. 2, no. 1, pp. 1-7, Mar. 2025. https://ijedins.technolabs.co.id/index.php/ijedins/article/view/6
R. K. Halder, M. N. Uddin, M. A. Uddin, S. Aryal, and A. Khraisat, "Enhancing K-nearest neighbor algorithm: a comprehensive review and performance analysis of modifications," Journal of Big Data, vol. 11, no. 1, p. 113, Aug. 2024. https://doi.org/10.1186/s40537-024-00973-y
M. M. Taye, "Understanding of machine learning with deep learning: architectures, workflow, applications and future directions," Computers, vol. 12, no. 5, p. 91, Apr. 2023. https://doi.org/10.3390/computers12050091
K. Sharifani and M. Amini, "Machine learning and deep learning: A review of methods and applications," World Information Technology and Engineering Journal, vol. 10, no. 07, pp. 3897-3904, 2023. Available at SSRN: https://ssrn.com/abstract=4458723
S. Ramadhani and M. R. Wayahdi, "K-Nearest Neighbor and Random Forest Algorithms in Loan Approval Prediction," Jurnal Minfo Polgan, vol. 13, no. 1, pp. 1307-1313, Dec. 2024. https://doi.org/10.33395/jmp.v13i1.14345
M. A. Araaf, K. Nugroho, and D. R. Setiadi, "Comprehensive analysis and classification of skin diseases based on image texture features using K-nearest neighbors algorithm," Journal of Computing Theories and Applications, vol. 1, no. 1, pp. 31-40, Sep. 2023. https://doi.org/10.33633/jcta.v1i1.9185
M. R. Wayahdi and F. Ruziq, "KNN and XGBoost Algorithms for Lung Cancer Prediction," Journal of Science Technology (JoSTec), vol. 4, no. 1, Jan. 2022. https://doi.org/10.55299/jostec.v4i1.251
M. A. Khan, T. Mazhar, M. M. Yaqoob, M. B. Khan, A. K. J. Saudagar, Y. Y. Ghadi et al., "Optimal feature selection for heart disease prediction using modified Artificial Bee colony (M-ABC) and K-nearest neighbors (KNN)," Scientific Reports, vol. 14, no. 1, p. 26241, Oct. 2024. https://doi.org/10.1038/s41598-024-78021-1
A. D. R. Wibisono, S. Hidayat, H. M. T. Ramadhan, and E. Y. Puspaningrum, "Comparison of K-nearest neighbor and decision tree methods using principal component analysis technique in heart disease classification," Indonesian Journal of Data and Science, vol. 4, no. 2, pp. 87-96, Jul. 2023. https://doi.org/10.56705/ijodas.v4i2.70
A. Sumayli, "Development of advanced machine learning models for optimization of methyl ester biofuel production from papaya oil: Gaussian process regression (GPR), multilayer perceptron (MLP), and K-nearest neighbor (KNN) regression models," Arabian Journal of Chemistry, vol. 16, no. 7, p. 104833, Jul. 2023. https://doi.org/10.1016/j.arabjc.2023.104833
M. I. Hutapea and A. P. Silalahi, "Moderna's Vaccine Using the K-Nearest Neighbor (KNN) Method: An Analysis of Community Sentiment on Twitter," Jurnal Penelitian Pendidikan IPA, vol. 9, no. 5, pp. 3808-3814, May 2023. https://doi.org/10.29303/jppipa.v9i5.3203
S. Masturoh, R. L. Pratiwi, M. R. Saelan, and U. Radiyah, "Application of the k-nearest neighbor (KNN) algorithm in sentiment analysis of the Ovo e-wallet application," JITK (Jurnal Ilmu Pengetahuan dan Teknologi Komputer), vol. 8, no. 2, pp. 84-89, Jan. 2023. https://doi.org/10.33480/jitk.v8i2.3997
D. M. Cao, M. A. Sayed, M. T. Islam, M. T. Mia, E. H. Ayon, B. P. Ghosh et al., "Advanced cybercrime detection: A comprehensive study on supervised and unsupervised machine learning approaches using real-world datasets," Journal of Computer Science and Technology Studies, vol. 6, no. 1, pp. 40-48, Jan. 2024. https://doi.org/10.32996/jcsts.2024.6.1.5
M. R. Wayahdi, D. Syahputra, and S. H. N. Ginting, "Evaluation of the K-Nearest Neighbor Model With K-Fold Cross Validation on Image Classification," Infokum, vol. 9, no. 1, pp. 1-6, Dec. 2020. http://seaninstitute.org/infor/index.php/infokum/article/view/72
M. Jagdish, A. M. Guzman, G. F. Sancho, and A. Guerrero-Luzuriaga, "Detection and classification of caterpillar using image processing with K-nearest neighbor classification technique," Turkish Journal of Computer and Mathematics Education, vol. 12, no. 5, pp. 719-728, 2021. https://turcomat.org/index.php/turkbilmat/article/view/1475
S. Anraeni, D. Indra, D. Adirahmadi, S. Pomalingo, and S. H. Mansyur, "Strawberry ripeness identification using feature extraction of RGB and K-nearest neighbor," in 2021 3rd East Indonesia Conference on Computer and Information Technology (EIConCIT), 2021, pp. 395-398. https://doi.org/10.1109/EIConCIT50028.2021.9431854
M. R. Wayahdi and F. Ruziq, "Designing an Used Goods Donation System to Reduce Waste Accumulation Using the WASPAS Method," Sinkron: Jurnal dan Penelitian Teknik Informatika, vol. 8, no. 4, pp. 2325-2334, Oct. 2024. https://doi.org/10.33395/sinkron.v8i4.14115
M. R. Wayahdi and S. Guntur, "Website-Based Village Information System Design (Case Study: Ujung Batu III Village)," Jurnal Minfo Polgan, vol. 14, no. 1, pp. 38-44, Mar. 2025. https://doi.org/10.33395/jmp.v14i1.14621
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 M. Rhifky Wayahdi, Fahmi Ruziq

This work is licensed under a Creative Commons Attribution 4.0 International License.