Rice is a primary staple food in Indonesia, particularly in South Sumatra Province. In February 2024, BBC News Indonesia reported that the price of premium rice surged to Rp18,000 per kilogram, marking the highest price in the country’s history. To anticipate and predict similar spikes in the future, this study applies a Knowledge Discovery approach and compares three machine learning models: LSTM, Random Forest, and SVR. The approach follows the stages of data selection, cleaning, transformation, modeling, and evaluation to uncover hidden patterns in historical data. The dataset, obtained from the official PIHPS Nasional website, consists of 1,412 daily rice price records from January 2020 to May 2025. Model performance was evaluated using MAPE, MAE, and RMSE metrics. The findings indicate that the SVR model outperformed LSTM and Random Forest, delivering the most accurate results. For the Super Quality II rice category, SVR achieved a MAPE of 0.00 percent, MAE of 40.93, and RMSE of 52.54. SVR also consistently produced the lowest prediction errors in other categories, such as Low Quality I (MAE 59.39) and Medium Quality I (MAE 38.92). This research is expected to serve as a foundation for developing machine learning–based food price monitoring systems to support more responsive policies and maintain rice price stability in the future.
Copyrights © 2025