JOURNAL ARTICLE

PENERAPAN DATA MINING UNTUK MEMPREDIKSI HARGA BAHAN PANGAN DI INDONESIA MENGGUNAKAN ALGORITMA K-NEAREST NEIGHBOR

Abstract

Food is one of the important sectors for human life, because the basic human need is food. Over time, food prices in Indonesia are often unstable. This of course has a big impact on the community and farmers. The cause of this food price volatility can be caused by several factors, such as environmental factors, pest and planthopper attacks, and dry land. The application of one of the data mining methods in the process of predicting food prices, especially predicting the price of rice in Indonesia with this prediction, people throughout Indonesia can be more vigilant in the future to prevent hunger. The benefit of predicting food prices for farmers is to prevent large losses caused by the drop in food prices. Meanwhile, the Government's goal is to maintain food security in the territory of the Indonesian Government to prevent hunger. The dataset used comes from the National PIHPS Website. The method used is the K-Nearest Neighbor (KNN) regression algorithm and for testing it uses RMSE and MAE. The results of this study, the K-Nearest Neighbor method with the regression model can predict the price of rice in January 2019 - December 2021 which is recorded every month with the addition of variable data Harvested Area (ha), Production Yield (tons) of the total experiment using range k = (2,10) then the best prediction results are by using k = 2 with MAE and RMSE for training data 52.77 and 96.40 and for testing data 55.55 and 81.64 and K = 2 parameters which have been normalized.

Keywords:
Food security Agriculture Volatility (finance) Agricultural science Econometrics Agricultural economics Mathematics Geography Economics Environmental science

Metrics

5
Cited By
3.09
FWCI (Field Weighted Citation Impact)
15
Refs
0.91
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Data Mining and Machine Learning Applications
Physical Sciences →  Computer Science →  Information Systems
Multimedia Learning Systems
Physical Sciences →  Computer Science →  Information Systems
Information Retrieval and Data Mining
Physical Sciences →  Computer Science →  Information Systems

Related Documents

JOURNAL ARTICLE

Penerapan Data Mining untuk Memprediksi Siswa Berprestasi dengan Menggunakan Algoritma K Nearest Neighbor

Sri Widaningsih

Journal:   JATISI (Jurnal Teknik Informatika dan Sistem Informasi) Year: 2022 Vol: 9 (3)Pages: 2598-2611
JOURNAL ARTICLE

Penerapan Algoritma K-Nearest Neighbor (K-NN) untuk Memprediksi Kelulusan Mahasiswa Menggunakan RapidMiner.

Herlinatus Safira MuasolliZaehol Fatah

Journal:   Jurnal Mahasiswa Teknik Informatika Year: 2025 Vol: 4 (2)Pages: 106-113
JOURNAL ARTICLE

Implementasi Data Mining Untuk Memprediksi Penyakit Diabetes Menggunakan Algoritma Naives Bayes dan K-Nearest Neighbor

Fitrokh Nur IkhromrIpin SugiyartoUmi FaddillahBibit Sudarsono

Journal:   INTECOMS Journal of Information Technology and Computer Science Year: 2023 Vol: 6 (1)Pages: 416-428
© 2026 ScienceGate Book Chapters — All rights reserved.