Indonesian Journal of Electrical Engineering and Computer Science
Vol 44, No 1: October 2026

Data-driven psychological state classification using artificial intelligence

Yudi Ramdhani (Satu University)
Win Ce (Binus University)
Ghanim Kanugrahan (Satu University)
Yulita Anggelia (Satu University)
Febriyanti Panjaitan (Satu University)
Rizki Tri Prasetio (Satu University)



Article Info

Publish Date
01 Oct 2026

Abstract

This study uses data collected from university students through the depression anxiety stress scales-21 (DASS-21) questionnaire to assess how effectively various machine learning algorithms predict degrees of depression, anxiety, and stress. The algorithms studied were K-nearest neighbors (KNN), Naive Bayes, decision tree (DT), random forest (RF), support vector machine (SVM), and neural network (NN). Among them, the NN achieved the highest overall performance, demonstrating superior accuracy and consistency across all categories. The SVM also demonstrated competitive performance, achieving high accuracy and precision, although slightly below that of the NN. RF and DT produced decent results; however, KNN and Naive Bayes were less reliable, particularly in predicting anxiety. Overall, the findings suggest that NN represents a promising approach for predicting mental health conditions using DASS-21 data. Still, more testing with different datasets would be beneficial in determining how well it performs in general. DT or RF may be suitable alternatives in situations requiring minimal processing capacity.

Copyrights © 2026