Prediction of Trends in Staple Food Food Price Changes Using Gaussian Naive Bayes Algorithm Based on Pihps Data From Bank Indonesia
Staple food price fluctuations require continuous monitoring because price changes may affect market stability and consumers’ purchasing power. This study applies the Gaussian Naive Bayes algorithm to classify staple food price change trends using Bank Indonesia’s Strategic Food Price Information Center (PIHPS) data for the regional wholesale trader category. The uploaded dataset contains 21 detailed commodities and seven observation dates from 3. A total of 84 samples were constructed through historical price-change feature engineering. The predictors comprise the current-period percentage price change, the previous-period percentage price change, and the cumulative price change relative to the initial observation. The target classes are increasing, stable, and decreasing, defined by the price change in the subsequent observation period. A chronological split produced 63 training samples and 21 testing samples. The model achieved 95.24% accuracy, 33.33% macro-precision, 31.75% macro-recall, and 33.33% macro-F1. Although the accuracy appears high, all actual test observations belong to the stable class; therefore, the result does not demonstrate the model’s ability to identify increasing and decreasing prices. This is an initial experiment, and a longer observation period with more minority-class observations is required before operational use.
Authors
- Muhammad Syahputra Novelan (ORCID: https://orcid.org/0009-0002-3377-5278)
- Ade Mutiara Sari
- Putri Nabila
Institutions
- Universitas Pembangunan Panca Budi Medan (ID)
Publication Details
- Journal
- Journal Of Data Science
- Published
- 2026-12-01
- Primary Topic
- Data Mining and Machine Learning Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00