Simulation of Paving Block Sales Volume Using K-Nearest Neighbor Regression at CV Surya Perkasa

Authors

  • Rima Anjani Fakultas Sains dan Teknologi, Universitas Cipasung, Kabupaten Tasikmalaya, Jawa Barat, Indonesia
  • Nuk Ghurroh Setyoningrum Fakultas Sains dan Teknologi, Universitas Cipasung, Kabupaten Tasikmalaya, Jawa Barat, Indonesia https://orcid.org/0000-0002-7204-1544

DOI:

https://doi.org/10.51903/18143727

Keywords:

Data Mining, K-Nearest Neighbor Regression, Paving block, Sales Volume, Prediction Simulation

Abstract

The advancement of information technology encourages businesses to utilize historical data for decision-making. CV Surya Perkasa, a paving block manufacturer, faces challenges in analyzing sales fluctuations due to the limited utilization of historical transaction data. This study aims to implement K-Nearest Neighbor (KNN) Regression as an initial simulation for estimating paving block sales volumes. The research employed a quantitative data mining approach using Python on Google Colab. The dataset comprised 500 sales transactions from 2022 to 2025, aggregated into monthly sales data by product type. Data preprocessing included cleaning, temporal aggregation, feature transformation, One-Hot Encoding, normalization, and historical feature construction using LAG_1 and LAG_12. Model performance was evaluated using Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), and R². The optimized model achieved an MAE of 331.36, MSE of 160,281.61, RMSE of 400.35, MAPE of 36.33%, and R² of 0.56. These results indicate that KNN Regression partially captures historical sales patterns but remains limited by demand fluctuations and historical features. Therefore, further improvements are required before operational forecasting implementation.

References

[1] A. Munthe and B. Ulya, “Penerapan Data Mining Untuk Prediksi Penjualan Roti Terlaris Menggunakan Metode K-Nearest Neighbor,” Bulletin of Information Technology (BIT), vol. 6, no. 2, pp. 71–78, 2025, doi: 10.47065/bit.v5i2.1783.

[2] Indra Nasution, Rezkinah Rambe, Khairil Putra, Muhammad Dafa, and Muhammad Syahputra Novelan, “Application of the K-Nearest Neighbor Algorithm in the Data Mining Process to Predict Drug Sales at Pratama Haji Medan-Pancing Clinic,” Jurnal Publikasi Ilmu Komputer dan Multimedia, vol. 4, no. 2, pp. 136–147, May 2025, doi: 10.55606/jupikom.v4i2.4081.

[3] E. Putra, R. Krisna, R. F. Wijaya, and R. R. Putra, “Website-Based Savings and Loans Data Processing Information System at the Office of Cooperatives and Umkm Medan Helvetia District,” vol. 20, no. 2, pp. 533–541, 2023.

[4] A. S. Miha Djami, N. W. Utami, and A. A. I. I. Paramitha, “The Prediction Of Product Sales Level Using K-Nearest Neighbor and Naive Bayes Algorithms (Case Study : PT Kotamas Bali),” Jurnal Pilar Nusa Mandiri, vol. 19, no. 2, pp. 77–84, Sep. 2023, doi: 10.33480/pilar.v19i2.4420.

[5] F. Wijaya, R. Rahmansyah, and N. A. Hasibuan, “Prediksi Penjualan Barang Menggunakan Algoritma K-Nearest Neighbor,” 2025.

[6] A. Putri N.A, W. Hadikristanto, and Edora, “Predicting Consumer Demand Based on Retail Stock Using the K-Nearest Neighbors Algorithm,” International Journal Software Engineering and Computer Science (IJSECS), vol. 4, no. 2, pp. 523–534, Aug. 2024, doi: 10.35870/ijsecs.v4i2.2865.

[7] “Sektor Konstruksi Punya Peran Besar ke Ekonomi, Serap 8,7 Juta Tenaga Kerja.” Accessed: May 30, 2026. [Online]. Available: https://finance.detik.com/infrastruktur/d-8068264/sektor-konstruksi-punya-peran-besar-ke-ekonomi-serap-8-7-juta-tenaga-kerja

[8] M. Bakriansyah, A. Subair, and W. Setiawan, “Penerapan Data Mining Untuk Memprediksi Penjualan Produk Terlaris UD Timbul Jaya Menggunakan Metode K-Nearest Neighbor,” Jurnal Cendekia Ilmiah, vol. 4, no. 2, 2025.

[9] K. Gautama and R. Arijanto, “PENERAPAN DATA MINING UNTUK PREDIKSI PENJUALAN PRODUK TERLARIS MENGGUNAKAN METODE K-NEAREST NEIGHBOR PADA CV. NUANSA KARUNA LESTARI,” 2024.

[10] A. Kurniawan, D. Mustikasari, and A. T. P. Raharjo, “Implementasi Metode Regresi Linear Berganda untuk Prediksi Harga Penjualan Material Paving Block pada CV. Difa Jaya Abadi,” Sains Data Jurnal Studi Matematika dan Teknologi, vol. 3, no. 2, pp. 89–96, Nov. 2025, doi: 10.52620/sainsdata.v3i2.281.

[11] T. Sujana, R. Astuti, W. Prihartono, and R. Hamonangan, “Journal of Artificial Intelligence and Engineering Applications Implementation of Data Mining Using the K-Means Algorithm to Group Students Based on Academic Performance,” 2025. [Online]. Available: https://ioinformatic.org/

[12] S. P. Dewi, N. Nurwati, and E. Rahayu, “Penerapan Data Mining Untuk Prediksi Penjualan Produk Terlaris Menggunakan Metode K-Nearest Neighbor,” Building of Informatics, Technology and Science (BITS), vol. 3, no. 4, pp. 639–648, Mar. 2022, doi: 10.47065/bits.v3i4.1408.

[13] Z. Hadiansyah, Z. Rozikin, and M. Fatchan, “Implementasi Algoritma K-Nearest Neighbor dalam Klasifikasi Penyakit Kanker Paru Paru,” Journal of Computer System and Informatics (JoSYC), vol. 6, no. 1, pp. 96–106, Nov. 2024, doi: 10.47065/josyc.v6i1.6195.

[14] A. Nur Marda Sofwa, D. Mulyadi, S. Pertiwi Hari Sandi, P. Studi Manajemen, and F. Ekonomi dan Bisnis Universitas Buana Perjuangan Karawang, “Analisis Peramalan Penjualan untuk Perencanaan Produksi pada Lavanda Brownies Karawang,” vol. 5, p. 4603, 2024.

[15] A. A. Baihaqi and M. Fakhriza, “Sistemasi: Jurnal Sistem Informasi K-Nearest Neighbors (KNN) untuk menentukan Harga Saham BBRI K-Nearest Neighbors (KNN) to Determine BBRI Stock Price.” [Online]. Available: http://sistemasi.ftik.unisi.ac.id

[16] S. Octarina, F. M. Puspita, E. Yuliza, and I. Indrawati, “PENDAMPINGAN PENGGUNAAN GOOGLE COLAB PADA PEMBELAJARAN PYTHON DAN MACHINE LEARNING BAGI DOSEN MATEMATIKA DI PALEMBANG,” Jurnal Pepadu, vol. 6, no. 1, pp. 56–66, Mar. 2025, doi: 10.29303/pepadu.v6i1.6457.

[17] R. Andarsyah and A. Yanuar, “SENTIMEN ANALISIS APLIKASI POSAJA PADA GOOGLE PLAYSTORE UNTUK PENINGKATAN POSPAY SUPERAPP MENGGUNAKAN SUPPORT VECTOR MEACHINE,” 2024.

[18] V. Umarani, “Investigation of KNN and Decision Tree Induction Modelin Predicting Customer Buying Pattern,” European Alliance for Innovation n.o., Jan. 2022. doi: 10.4108/eai.7-12-2021.2314593.

[19] S. Handayani, F. Fajrizal, and T. Taslim, “AI and Python Literacy Training via Google Colab for Pekanbaru High School Teachers,” Dinamisia : Jurnal Pengabdian Kepada Masyarakat, vol. 9, no. 6, pp. 2015–2024, Dec. 2025, doi: 10.31849/dinamisia.v9i6.28440.

[20] D. Kurniati, T. Saputro, E. F. Nurhidayatullah, C. D. Saputro, and A. Asyifa, “KEKUATAN TEKAN PAVING BLOCK DENGAN MEMANFAATKAN LIMBAH LAS ASETELIN,” 2021.

[21] “Inilah 6 Model Paving Block Yang Menjadi Primadona Di Indonesia !” Accessed: May 30, 2026. [Online]. Available: https://indonusa-conblock.com/model-paving-block-di-indonesia/

[22] S. Intan et al., “ANALISIS PENGARUH GAIN RATIO UNTUK ALGORITMA K-NEAREST NEIGHBOR PADA KLASIFIKASI DATA BANJIR DI KOTA SAMARINDA Analysis Of The Effect Of Gain Ratio For Algorithms K-Nearest Neighbor On Classsification Flood Data In Samarinda City,” 2023.

[23] A. W. Alfani P R et al., “PREDIKSI PENJUALAN PRODUK UNILEVER MENGGUNAKAN METODE K-NEAREST NEIGHBOR.”

[24] A. Wibowo, V. I. Ivanoti, and M. H. P. Sari, “Employee Education and Training Recommendations using the Apriori Algorithm,” Jurnal RESTI, vol. 7, no. 5, pp. 1118–1131, Oct. 2023, doi: 10.29207/resti.v7i5.4973.

[25] R. Setyo, N. Katon, and W. Abstrak, “PROGRAM BANTU PREDIKSI PENJUALAN BARANG MENGGUNAKAN METODE KNN Studi Kasus: U.D. ANANG.”

Downloads

Published

2026-10-28

Issue

Section

Data Mining, Data Science, Database Systems, and Data Warehousing