Mahesa Darma Satria
Institut Informatika dan Bisnis Darmajaya

Published : 1 Documents Claim Missing Document
Claim Missing Document
Check
Articles

Found 1 Documents
Search

Comparative Analysis of KNN and Naive Bayes for Adolescent Mental Health Detection Mahesa Darma Satria; Yogi Saputra
Journal of Electrical Engineering and Informatics (JEEI) Vol. 1 No. 2 (2026): JUNE (II)
Publisher : LPPM Sekolah Tinggi Teknologi Nusantara Lampung

Show Abstract | Download Original | Original Source | Check in Google Scholar

Abstract

This study is motivated by the rapid rise of social media use among adolescents, which may adversely affect mental health by increasing the risk of stress, anxiety, and depression; thus, early detection is essential to prevent more severe outcomes. It aims to compare the performance of K-Nearest Neighbor (KNN) and Naive Bayes in detecting adolescent mental health risks and to evaluate the impact of data balancing using the Synthetic Minority Over-sampling Technique (SMOTE). A quantitative experimental design was applied, including data preprocessing, model implementation, and evaluation using 10-fold cross-validation with accuracy, precision, recall, F1-score, and AUC as performance metrics. The results show that Naive Bayes provides more stable performance with higher accuracy and precision, while KNN combined with SMOTE significantly improves recall, particularly for minority classes, indicating a trade-off between precision and recall in model selection. This study contributes a comprehensive analysis of the role of data balancing in classification performance within mental health contexts. Future work should explore ensemble and deep learning approaches and utilize larger, more diverse datasets to enhance generalizability.