Monthly Rice Production Modeling in West Java, Indonesia: Historical Temporal Features, Nested Validation, and Shap-Based Interpretation

Wahyu Nur Achmadin, Carri Noer Fida Yanik, Agung Herdianto, Indah Noor Dwi Kusuma Dewi

Abstract

Rice production is an important component of food security and requires reliable approaches to identify historical patterns and estimate future production. This study examines monthly rice production at the regency/city level in West Java using historical production, harvested area, and temporal features. We obtained secondary data from the West Java Open Data Portal, comprising 1,944 initial observations covering 2018–2023. The analytical framework involved data preprocessing, temporal feature engineering, and a comparative evaluation of Linear Regression, Support Vector Regression (SVR), Random Forest Regression, and Gradient Boosting Regression. We selected models and assessed performance using nested expanding-window temporal cross-validation, while retaining 2023 data as an independent hold-out test set. The results showed that Linear Regression achieved the highest mean outer-fold R2 (0.693), followed by Random Forest and SVR (0.657) and Gradient Boosting (0.641). On the independent 2023 test set, Linear Regression achieved an R2 of 0.807 and an RMSE of 18,249.41 tons, outperforming the seasonal naïve benchmark in terms of explained variance and RMSE. Feature interpretation showed that historical production and harvested-area variables, particularly those from previous annual periods, provided the strongest predictive contributions. Nevertheless, prediction errors varied across regions and production levels, indicating limited ability to capture unexpected production fluctuations. These findings highlight the importance of temporally consistent validation and historical feature representation in analyzing regional rice production patterns.

References

Apriani, A., N. Carsono, and M. D. Enjat Munajat (2024). Prediction of Rice Production to Support Food Security in Bogor Regency Using Linear Regression and Support Vector Machine (SVM). Jurnal Teknika, 16(1); 13–18

Bergmeir, C., R. J. Hyndman, and B. Koo (2018). A Note on the Validity of Cross-Validation for Evaluating Autoregressive Time Series Prediction. Computational Statistics & Data Analysis, 120; 70–83

BPS-Statistics Indonesia (2026). Paddy Harvested Area in 2025 Was Approximately 11.32 Million Hectares with 60.21 Million Tons of Dry Unhusked Paddy (GKG) Production. Press Release

BPS-Statistics of Jawa Barat Province (2024). West Java Rice Production in 2023 Decreased by 3.11 Percent Compared to 2022. Press Release

BPS-Statistics of Jawa Barat Province (2026). In 2025, the Harvested Area of Paddy in Jawa Barat Province Reached 1.76 Million Hectares with Paddy Production of 10.23 Million Tons of Dry Unhusked Paddy (GKG). Press Release

Cerqueira, V., L. Torgo, and I. Mozeti? (2020). Evaluating Time Series Forecasting Models: An Empirical Study on Performance Estimation Methods. Machine Learning, 109; 1997–2028

Chang, C.-H., J. Lin, J.-W. Chang, Y.-S. Huang, M.-H. Lai, and Y.-J. Chang (2024). Hybrid Deep Neural Networks with Multi-Tasking for Rice Yield Prediction Using Remote Sensing Data. Agriculture, 14(4); 513

De Clercq, D. and A. Mahdi (2024). Feasibility of Machine Learning-Based Rice Yield Prediction in India at the District Level Using Climate Reanalysis and Remote Sensing Data. Agricultural Systems, 220; 104099

Dinas Tanaman Pangan dan Hortikultura Provinsi Jawa Barat (2024a). Luas Panen Padi Kerangka Sampel Area (KSA) Berdasarkan Bulan di Jawa Barat. Dataset, Open Data Jawa Barat

Dinas Tanaman Pangan dan Hortikultura Provinsi Jawa Barat (2024b). Produksi Padi Kerangka Sampel Area (KSA) Berdasarkan Bulan di Jawa Barat. Dataset, Open Data Jawa Barat

Erlin, A. Yunianta, L. A. Wulandhari, Y. Desnelita, N. Nasution, and Junadhi (2024). Enhancing Rice Production Prediction in Indonesia Using Advanced Machine Learning Models. IEEE Access, 12(30); 151161–151177

Filippi, P., S. Y. Han, and T. F. A. Bishop (2025). On Crop Yield Modelling, Predicting, and Forecasting and Addressing the Common Issues in Published Studies. Precision Agriculture, 26(8)

Habibi, L. N., T. Matsui, and T. S. T. Tanaka (2024). Critical Evaluation of the Effects of a Cross-Validation Strategy and Machine Learning Optimization on the Prediction Accuracy and Transferability of a Soybean Yield Prediction Model Using UAV-Based Remote Sensing. Journal of Agriculture and Food Research, 16; 101096

Hidayat, R. P. (2025). Regional Stability and Dynamics of Rice Production in West Java through Spatiotemporal Clustering. JMASIF: Jurnal Masyarakat Informatika, 16(2); 34

Husodo, T., I. Wulandari, O. S. Abdoellah, M. F. Cahyandito, and S. S. Shanida (2021). Impact of Agricultural Land Changes on Farmers’ Income in Cirasea Watershed, Bandung Regency, West Java. Indonesian Journal of Environmental Management and Sustainability, 5(3); 95–104

Hyndman, R. J. and G. Athanasopoulos (2021). Forecasting: Principles and Practice. OTexts, 3 edition

Klompenburg, T. V., A. Kassahun, and C. Catal (2020). Crop Yield Prediction Using Machine Learning: A Systematic Literature Review. Computers and Electronics in Agriculture, 177; 105709

Lundberg, S. M., G. Erion, H. Chen, A. DeGrave, J. M. Prutkin, B. Nair, R. Katz, J. Himmelfarb, N. Bostrom, and S.-I. Lee (2020). From Local Explanations to Global Understanding with Explainable AI for Trees. Nature Machine Intelligence, 2; 56–67

Magubika, A. J., F. K. Fukah, E. K. Nassary, and G. M. Tryphone (2025). Analysing Rice (Oryza sativa L.) Production Trends—Area Harvested, Quantity and Yield Stability in Tanzania. Discover Agriculture, 3; 52

Morales, A. and F. J. Villalobos (2023). Using Machine Learning for Crop Yield Prediction in the Past or the Future. Frontiers in Plant Science, 14; 1128388

Nur, N., F. Wajidi, Sulfayanti, and Wildayani (2023). Implementasi Algoritma Random Forest Regression untuk Memprediksi Hasil Panen Padi di Desa Minanga. Jurnal Komputer Terapan, 9(1); 58–64. (in Indonesia)

Puspitasari, R. Nurmalina, Hariyadi, and A. Agustian (2025). A Deep Dive into Sustainable Garlic Production in Indonesia: A Multidimensional Scaling Approach. AGRARIS: Journal of Agribusiness and Rural Development Research, 11(1)

Ramanathan, K., M. Thenmozhi, S. George, S. Anandan, B. Veeraraghavan, E. N. Naumova, and L. Jeyaseelan (2020). Assessing Seasonality Variation with Harmonic Regression: Accommodations for Sharp Peaks. International Journal of Environmental Research and Public Health, 17(4); 1318

Setiadi, D. R. I. M., A. Susanto, K. Nugroho, A. R. Muslikh, A. A. Ojugo, and H. S. Gan (2024). Rice Yield Forecasting Using Hybrid Quantum Deep Learning Model. Computers, 13(8)

Shawon, S. M., F. B. Ema, A. K. Mahi, F. L. Niha, and H. T. Zubair (2025). Crop Yield Prediction Using Machine Learning: An Extensive and Systematic Literature Review. Smart Agricultural Technology, 10; 100718

Sijabat, E. E., U. Khaira, and M. F. Putri (2025). Support Vector Regression-Based Prediction of Rice Production Across Provinces in Sumatra Island. Brilliance: Research of Artificial Intelligence, 5(2)

Wang, Y., P. Wang, K. Tansey, J. Liu, B. Delaney, and W. Quan (2025). An Interpretable Approach Combining Shapley Additive Explanations and LightGBM Based on Data Augmentation for Improving Wheat Yield Estimates. Computers and Electronics in Agriculture, 229; 109758

Webel, K. and A. Smyk (2024). Seasonal Adjustment of Infra-Monthly Time Series with JDemetra+. Journal of Official Statistics, 40(4); 783–828

Yenkikar, A., V. P. Mishra, M. Bali, and T. Ara (2025). An Explainable AI-Based Hybrid Machine Learning Model for Interpretability and Enhanced Crop Yield Prediction. MethodsX, 15; 103442

Yunis, R., Sudarto, and I. A. Pardosi (2024). Enhancing Rice Production Prediction: A Comparative Machine Learning Analysis of Climate Variables. Jurnal Nasional Pendidikan Teknik Informatika (JANAPATI), 13(1); 91–103

Authors

Wahyu Nur Achmadin
wahyu.achmadin@gmail.com (Primary Contact)
Carri Noer Fida Yanik
Agung Herdianto
Indah Noor Dwi Kusuma Dewi
Achmadin, W. N., Yanik, C. N. F., Herdianto, A., & Dewi, I. N. D. K. (2026). Monthly Rice Production Modeling in West Java, Indonesia: Historical Temporal Features, Nested Validation, and Shap-Based Interpretation. Indonesian Journal of Environmental Management and Sustainability, 11(1), 140-153. https://doi.org/10.26554/ijems.2027.11.1.140-153
Copyright and license info is not available

Article Details