Comparative Predictive Performance of Support Vector Regression and Random Forest in Forecasting CPO Spot Prices
DOI:
https://doi.org/10.64366/ijids.v3i2.615Keywords:
Crude Palm Oil; Support Vector Regression; Random Forest; Spot Price Forecasting; Feature EngineeringAbstract
Accurate short-term forecasting of Crude Palm Oil (CPO) spot prices is critical for managing financial risk and stabilizing supply chains in volatile agricultural commodity markets. However, high non-linearity, temporal volatility, and sensitivity to market shocks present significant modeling challenges for traditional econometric tools. To address these issues, this study aims to develop an optimized machine learning framework that evaluates the comparative predictive performance of kernel-based margin regression against decision-tree ensembles for daily CPO spot price forecasting. Utilizing historical Malaysian CPO spot price data (2015–2024), the proposed solution combines multi-temporal feature engineering (autoregressive lags and simple moving averages) with a leak-free TimeSeriesSplit cross-validation and systematic grid-search hyperparameter tuning. Out-of-sample evaluation demonstrates that the tuned Support Vector Regression (SVR) model achieves superior predictive accuracy, registering an RMSE of 24.2191 USD, an MAE of 15.8937 USD, and a MAPE of 1.6940%. The SVR architecture significantly outperforms the optimized Random Forest (RF) Regressor (RMSE = 35.2395 USD, MAE = 23.8164 USD, MAPE = 2.5151%), yielding a 31.27% error reduction in RMSE. Feature importance analysis establishes that the 1-day lag (lag_1) contributes 66.75% of total split impurity reduction. Furthermore, SVR maintains homoscedastic stability during extreme late-2024 price surges exceeding 1113.00 USD, where Random Forest exhibits extrapolation truncation. This study contributes a validated, operationally sound decision-support blueprint for physical commodity risk management and clarifies algorithm selection under structural market shocks.
Downloads
References
G. A. Tardini and Suharjito, “Selection of Modelling for Forecasting Crude Palm Oil Prices Using Deep Learning (GRU & LSTM),” Emerging Science Journal, vol. 8, no. 3, pp. 875–898, 2024, doi: 10.28991/ESJ-2024-08-03-05.
A. Ampountolas, “Enhancing Forecasting Accuracy in Commodity and Financial Markets: Insights from GARCH and SVR Models,” International Journal of Financial Studies, vol. 12, no. 3, pp. 1–20, 2024, doi: 10.3390/ijfs12030059.
C. D. Omorog, “Simulation of Autoregressive Integrated Moving Average-Generalized Autoregressive Conditional Heteroscedasticity (ARIMA-GARCH) to Forecast Traffic Flow,” Int. J. Adv. Sci. Eng. Inf. Technol., vol. 11, no. 5, pp. 1825–1831, 2021, doi: 10.18517/ijaseit.11.5.14456.
R. Supriya and R. Mamilla, “Exploring the Dynamics of CPO Spot and Futures Prices in Relation to Global Crude Oil Price: Evidence from India using ARDL Model Approach and Granger Causality Tests,” Qubahan Academic Journal, vol. 4, no. 1, pp. 53–66, 2024, doi: 10.58429/qaj.v4n1a238.
A. Musaev and D. Grigoriev, “Ensemble Multi-Expert Forecasting: Robust Decision-Making in Chaotic Financial Markets,” Journal of Risk and Financial Management, vol. 18, no. 6, pp. 1–22, 2025, doi: 10.3390/jrfm18060296.
A. Theofilou, S. A. Nastis, A. Michailidis, T. Bournaris, and K. Mattas, “Predicting Prices of Staple Crops Using Machine Learning: A Systematic Review of Studies on Wheat, Corn, and Rice,” Sustainability (Switzerland), vol. 17, no. 12, pp. 1–34, 2025, doi: 10.3390/su17125456.
M. Darwish, E. E. Hassanien, and A. H. B. Eissa, “Stock Market Forecasting: From Traditional Predictive Models to Large Language Models,” Comput. Econ., vol. 67, no. 6, pp. 4553–4597, 2026, doi: 10.1007/s10614-025-11024-w.
M. Ahmadi, D. Biswas, M. Lin, F. D. Vrionis, J. Hashemi, and Y. Tang, “Physics-informed machine learning for advancing computational medical imaging: integrating data-driven approaches with fundamental physical principles,” Artif. Intell. Rev., vol. 58, no. 10, pp. 1–49, 2025, doi: 10.1007/s10462-025-11303-w.
H. Ahaggach, L. Abrouk, and E. Lebon, “Systematic Mapping Study of Sales Forecasting: Methods, Trends, and Future Directions,” Forecasting, vol. 6, no. 3, pp. 502–532, 2024, doi: 10.3390/forecast6030028.
R. Najem, A. Bahnasse, M. Fakhouri Amr, and M. Talea, Advanced AI and big data techniques in E-finance: a comprehensive survey, vol. 5, no. 1. Springer International Publishing, 2025. doi: 10.1007/s44163-025-00365-y.
T. Kyriazos and M. Poga, “Application of Machine Learning Models in Social Sciences: Managing Nonlinear Relationships,” Encyclopedia, vol. 4, no. 4, pp. 1790–1805, 2024, doi: 10.3390/encyclopedia4040118.
P. Gajewski, B. ?ule, and N. Rankovic, “Unveiling the Power of ARIMA, Support Vector and Random Forest Regressors for the Future of the Dutch Employment Market,” Journal of Theoretical and Applied Electronic Commerce Research, vol. 18, no. 3, pp. 1365–1403, 2023, doi: 10.3390/jtaer18030069.
J. Tian, Z. Chen, L. Yuan, and H. Zhou, “Optimizing Outdoor Micro-Space Design for Prolonged Activity Duration: A Study Integrating Rough Set Theory and the PSO-SVR Algorithm,” Buildings, vol. 14, no. 12, pp. 1–30, 2024, doi: 10.3390/buildings14123950.
R. K. Paul et al., “Machine learning techniques for forecasting agricultural prices: A case of brinjal in Odisha, India,” PLoS One, vol. 17, no. July, pp. 1–17, 2022, doi: 10.1371/journal.pone.0270553.
W. J. Sari et al., “Performance Comparison of Random Forest, Support Vector Machine and Neural Network in Health Classification of Stroke Patients,” Public Research Journal of Engineering, Data Technology and Computer Science, vol. 2, no. 1, pp. 34–43, 2024, doi: 10.57152/predatecs.v2i1.1119.
F. Hosseini, C. Prieto, and C. Álvarez, “Hyperparameter optimization of regional hydrological LSTMs by random search: A case study from Basque Country, Spain,” J. Hydrol. (Amst)., vol. 643, no. August, pp. 1–14, 2024, doi: 10.1016/j.jhydrol.2024.132003.
D. S. Metwally, M. Ali, S. M. Alghamdi, and D. M. Khan, “A novel hybrid model to forecast the stock price based on CEEMDAN and support vector regression,” J. Radiat. Res. Appl. Sci., vol. 18, no. 2, pp. 1–10, 2025, doi: 10.1016/j.jrras.2025.101385.
G. Saranya and A. Pravin, “Grid Search based Optimum Feature Selection by Tuning hyperparameters for Heart Disease Diagnosis in Machine learning,” Open Biomed. Eng. J., vol. 17, no. 1, pp. 1–13, 2024, doi: 10.2174/18741207-v17-e230510-2022-ht28-4371-8.
H. Hosamo and S. Mazzetto, “Performance Evaluation of Machine Learning Models for Predicting Energy Consumption and Occupant Dissatisfaction in Buildings,” Buildings, vol. 15, no. 1, pp. 1–33, 2025, doi: 10.3390/buildings15010039.
Y. Ensafi, S. H. Amin, G. Zhang, and B. Shah, “Time-series forecasting of seasonal items sales using machine learning – A comparative analysis,” International Journal of Information Management Data Insights, vol. 2, no. 1, pp. 1–16, 2022, doi: 10.1016/j.jjimei.2022.100058.
C. Verma, “A real-time AI tool for hybrid learning recommendation in education: Preliminary results,” Computers and Education: Artificial Intelligence, vol. 8, no. May, pp. 1–13, 2025, doi: 10.1016/j.caeai.2025.100432.
W. Badar, S. Ramzan, A. Raza, N. L. Fitriyani, M. Syafrudin, and S. W. Lee, “Enhanced Interpretable Forecasting of Cryptocurrency Prices Using Autoencoder Features and a Hybrid CNN-LSTM Model,” Mathematics, vol. 13, no. 12, pp. 1–22, 2025, doi: 10.3390/math13121908.
W. Nugraha and A. Sasongko, “Hyperparameter Tuning on Classification Algorithm with Grid Search,” Sistemasi, vol. 11, no. 2, pp. 391–401, 2022, doi: 10.32520/stmsi.v11i2.1750.
M. Usmani, Z. A. Memon, A. Zulfiqar, and R. Qureshi, “Preptimize: Automation of Time Series Data Preprocessing and Forecasting,” Algorithms, vol. 17, no. 8, pp. 1–25, 2024, doi: 10.3390/a17080332.
T. Hall and K. Rasheed, “A Survey of Machine Learning Methods for Time Series Prediction,” Applied Sciences (Switzerland), vol. 15, no. 11, pp. 1–33, 2025, doi: 10.3390/app15115957.
W. Kristjanpoller, “A hybrid econometrics and machine learning based modeling of realized volatility of natural gas,” Financial Innovation, vol. 10, no. 1, pp. 1–32, 2024, doi: 10.1186/s40854-023-00577-0.
A. M. S. M. Hamdoon, A. P. M. A. A. Mohammed, and A. P. K. A. Elraies, “Rolling window for detecting multiple Chan signatures to diagnose excessive water production,” J. Pet. Explor. Prod. Technol., vol. 15, no. 5, pp. 1–21, 2025, doi: 10.1007/s13202-024-01908-2.
S. Demir and E. K. Sahin, “The effectiveness of data pre-processing methods on the performance of machine learning techniques using RF, SVR, Cubist and SGB: a study on undrained shear strength prediction,” Stochastic Environmental Research and Risk Assessment, vol. 38, no. 8, pp. 3273–3290, 2024, doi: 10.1007/s00477-024-02745-9.
A. Basem et al., “Integrating artificial Intelligence-Based metaheuristic optimization with Machine learning to enhance Nanomaterial-Containing latent heat thermal energy storage systems,” Energy Conversion and Management: X, vol. 25, no. September, pp. 1–21, 2025, doi: 10.1016/j.ecmx.2024.100835.
R. F. Ramadhan and W. M. Ashari, “Performance Comparison of Random Forest and Decision Tree Algorithms for Anomaly Detection in Networks,” Journal of Applied Informatics and Computing, vol. 8, no. 2, pp. 367–375, 2024, doi: 10.30871/jaic.v8i2.8492.
H. Allam, L. Makubvure, B. Gyamfi, K. N. Graham, and K. Akinwolere, “Text Classification: How Machine Learning Is Revolutionizing Text Categorization,” Information (Switzerland), vol. 16, no. 2, pp. 1–47, 2025, doi: 10.3390/info16020130.
A. Elajjani, Y. Feng, W. Ni, S. Xu, C. Sun, and S. Feng, “Investigation of Thermal Deformation Behavior in Boron Nitride-Reinforced Magnesium Alloy Using Constitutive and Machine Learning Models,” Nanomaterials, vol. 15, no. 3, pp. 1–21, 2025, doi: 10.3390/nano15030195.
J. Kong, X. Zhao, W. He, X. Yang, and X. Jin, “EL-MTSA: Stock Prediction Model Based on Ensemble Learning and Multimodal Time Series Analysis,” Applied Sciences (Switzerland), vol. 15, no. 9, pp. 1–27, 2025, doi: 10.3390/app15094669.
H. A. Zeini, D. Al-Jeznawi, H. Imran, L. F. A. Bernardo, Z. Al-Khafaji, and K. A. Ostrowski, “Random Forest Algorithm for the Strength Prediction of Geopolymer Stabilized Clayey Soil,” Sustainability (Switzerland), vol. 15, no. 2, pp. 1–15, 2023, doi: 10.3390/su15021408.
S. J. Shern, M. T. Sarker, M. H. S. M. Haram, G. Ramasamy, S. P. Thiagarajah, and F. Al Farid, “Artificial Intelligence Optimization for User Prediction and Efficient Energy Distribution in Electric Vehicle Smart Charging Systems,” Energies (Basel)., vol. 17, no. 22, pp. 1–25, 2024, doi: 10.3390/en17225772.
J. Terven, D. M. Cordova-Esparza, J. A. Romero-González, A. Ramírez-Pedraza, and E. A. Chávez-Urbiola, “A comprehensive survey of loss functions and metrics in deep learning,” Artif. Intell. Rev., vol. 58, no. 7, pp. 1–172, 2025, doi: 10.1007/s10462-025-11198-7.
S. Pandit and X. Luo, “A novel prediction model to evaluate the dynamic interrelationship between gold and crude oil,” Int. J. Data Sci. Anal., vol. 20, no. 2, pp. 1161–1182, 2025, doi: 10.1007/s41060-024-00519-8.
F. H. Mustapa, “Malaysian Palm Oil Price Prediction Using Arima – Arch Model,” Oil Palm Industry Economic Journal, vol. 25, no. 1, pp. 21–30, 2025, doi: 10.21894/opiej.2025.01.
F. F. Fatah, R. Andarsyah, and C. Prianto, “FCPO Malaysia Stock Exchange Price Prediction Using Particle Swarm Optimization-Based Support Vector Regression Prediksi harga,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 6, no. July, pp. 1229–1239, 2026, doi: 10.57152/malcom.v6i3.2257.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Comparative Predictive Performance of Support Vector Regression and Random Forest in Forecasting CPO Spot Prices
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Imam Saputra, Sobihatun Nur Abdul Salam

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment 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 acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).






