The Classification of Students' Stress Levels Based on Learning Patterns Using Naïve Bayes Algorithm

Authors

DOI:

https://doi.org/10.30996/elsains.v8i1.133498

Abstract

Student stress levels are one of the factors that can affect academic and psychological conditions. Learning patterns, daily activities, and academic achievements such as GPA are thought to have a relationship with the level of stress experienced by students. This study aims to classify students' stress levels based on lifestyle factors and academic performance using a Naïve Bayes algorithm. The approach used is quantitative with the CRISP-DM framework, which includes business understanding, data understanding, data preparation, modeling, evaluation, and deployment. The research data were obtained from a Kaggle dataset and a private student dataset. The analysis process was carried out through preprocessing, data balancing using SMOTE, and splitting the data into training and testing sets. The main model used was Gaussian Naïve Bayes, with K-Nearest Neighbors (KNN) as a comparison model. The results showed that Naïve Bayes achieved the best performance on the private student dataset with an accuracy of  92.59%, while KNN performed better on the Kaggle dataset. These findings indicate that model performance is strongly influenced by data characteristics. Therefore, Naïve Bayes is considered effective for stress level classification on datasets with a limited size and relatively homogeneous distribution.

Downloads

Download data is not yet available.

Downloads

Published

2026-06-30

Issue

Section

Articles