Machine Learning for Chili Pepper Price Forecasting Using Exogenous Public-Attention Signals and Bayesian Hyperparameter Optimization
DOI:
https://doi.org/10.31937/ti.v18i1.4439Abstract
Chili prices in Indonesia are highly volatile due to seasonal production, fragile supply chains, and shocks in public perception. This study improves short-run forecast accuracy by adding public-attention signals (Google Trends and news volume) as exogenous features summarized in a Shock Index. Evaluation metrics are sMAPE (primary), RMSE, and MASE; hyperparameters are tuned via Bayesian HPO. Empirically, the attention-augmented configuration (S4: +Trends +News +Shock) is best. Post-HPO (average across horizons), S4 attains sMAPE 12.47%, RMSE 3,433 IDR/kg, and MASE 0.87. By horizon, S4’s sMAPE is 9.8% (H=1), 12.0% (H=2), 15.6% (H=4); RMSE 2,550/3,350/4,400 IDR/kg; MASE 0.78/0.86/0.96. Compared with the price-only (S1) baseline, S4 is already better pre-tuning and becomes even stronger after HPO (average sMAPE reduction ≈ −6.2% relative). These findings show that incorporating the intensity of public issues enhances predictive value—especially at longer horizons when uncertainty rises—and that the approach is ready for operational use in nowcasting and early-warning.
Downloads
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Wresti Andriani, Gunawan Gunawan, Naella Nabila Putri Wahyuning Naja

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlike International License (CC-BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
Copyright without Restrictions
The journal allows the author(s) to hold the copyright without restrictions and will retain publishing rights without restrictions.
The submitted papers are assumed to contain no proprietary material unprotected by patent or patent application; responsibility for technical content and for protection of proprietary material rests solely with the author(s) and their organizations and is not the responsibility of the ULTIMATICS or its Editorial Staff. The main (first/corresponding) author is responsible for ensuring that the article has been seen and approved by all the other authors. It is the responsibility of the author to obtain all necessary copyright release permissions for the use of any copyrighted materials in the manuscript prior to the submission.












