Claim Missing Document
Check
Articles

Found 2 Documents
Search
Journal : journal of applied informatics and computing

Comparison of KNN and Naïve Bayes Classification Algorithms for Predicting Stunting in Toddlers in Banjaran District Fauzan Mu'taz, Rivaldy; Rosita, Ai
Journal of Applied Informatics and Computing Vol. 9 No. 5 (2025): October 2025
Publisher : Politeknik Negeri Batam

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.30871/jaic.v9i5.9703

Abstract

Stunting is a chronic nutritional problem that seriously impacts child growth and development. This study aims to compare the performance of the Naïve Bayes and K-Nearest Neighbors (KNN) algorithms in predicting stunting in toddlers in Banjaran District. The dataset consists of 12,000 toddler data points with three main features: age, gender, and height. The research employed a quantitative approach by applying machine learning algorithms. The SMOTE oversampling technique was applied only to the training data to avoid data leakage, and 5-fold cross-validation was used. A K-value of 3 was selected for the final KNN model based on validation curve analysis to prevent overfitting. The results show that KNN significantly outperformed Naïve Bayes across all evaluation metrics. The Naïve Bayes model yielded an accuracy of 67.50%, precision of 50.87%, recall of 61.38%, F1-score of 55.63%, specificity of 70.54%, and an AUC score of 75.71%. Meanwhile, the KNN (K=3) model achieved an accuracy of 99.11%, precision of 98.08%, recall of 99.25%, F1-score of 98.66%, specificity of 99.03%, and an AUC score of 99.65%. The performance difference between the two models was confirmed by McNemar's Test with a p-value < 0.05, indicating a statistically significant difference. The low performance of Naïve Bayes was attributed to the violation of the feature independence assumption, particularly the high correlation between age and height (r ≈ 0.87). In conclusion, KNN is the more appropriate algorithm for stunting prediction on this dataset. However, the limitation of features suggests the need for further research with additional variables and external validation before wider-scale implementation.
Family Data Clustering Based on Welfare Levels Using Self-Organizing Maps Arridlo, Zulfan Amal; Rosita, Ai; Ningrum, Dedah
Journal of Applied Informatics and Computing Vol. 10 No. 5 (2026): October 2026
Publisher : Politeknik Negeri Batam

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.30871/jaic.v10i5.13311

Abstract

Sub-district socio-economic data on family welfare from BKKBN is high-dimensional and multivariate. The data pattern is highly complex with a positive asymmetric (right-skewed) distribution. This study aims to implement the Self-Organizing Maps (SOM) algorithm to cluster these welfare characteristics, mathematically evaluate model performance to eliminate bias, and visualize the tabular results into a spatial digital map. A 2×2 SOM model optimized using Optuna was used to group family welfare characteristics in West Java for the 2022–2025 period. Optimization results identified the best hyperparameter combinations (learning rate 0.7074–0.9574, sigma 0.1167–0.2668, and 7,000–20,000 iterations). The evaluation demonstrated reliable performance with Quantization Error ranging from 2.4659–3.4776, Topographic Error between 0.0000–0.0647, and Silhouette Score consistently above 0.50. GeoJSON integration successfully mapped 4 welfare hierarchies, confirming the dominance of prosperous regions in the eastern, southern, and western areas.