JOURNAL OF APPLIED INFORMATICS AND COMPUTING
Vol. 9 No. 4 (2025): August 2025

Implementation of the K-Nearest Neighbor Algorithm for Birth Rate Prediction

Alhafiz, Akhyar (Unknown)
Kurniawan R., Rakhmat (Unknown)



Article Info

Publish Date
05 Aug 2025

Abstract

This study aims to predict the monthly birth rate using the K-Nearest Neighbor (KNN) regression algorithm. The dataset consists of historical data from 2010 to 2020, covering six districts and including variables such as total population, number of couples of reproductive age, family planning participation rate, and monthly birth rate as the prediction target. Data preprocessing involved handling missing values and applying Min-Max normalization. To maintain the time-series nature of the data, a chronological split was used, with 576 records from 2010 to 2018 for training and 216 records from 2019 to 2020 for testing. The model was evaluated using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R-squared (R²). The best performance was achieved at K = 7, with MAE = 19.94, RMSE = 30.91, and R² = 0.34. Additionally, the KNN model was compared with Linear Regression and Decision Tree, where KNN outperformed both alternatives. The final model was implemented in a web-based application to facilitate demographic data management and automatic birth rate prediction per district. This system is expected to support policy planning in the fields of population control and public health.

Copyrights © 2025






Journal Info

Abbrev

JAIC

Publisher

Subject

Computer Science & IT

Description

Journal of Applied Informatics and Computing (JAIC) Volume 2, Nomor 1, Juli 2018. Berisi tulisan yang diangkat dari hasil penelitian di bidang Teknologi Informatika dan Komputer Terapan dengan e-ISSN: 2548-9828. Terdapat 3 artikel yang telah ditelaah secara substansial oleh tim editorial dan ...