Stock Price Prediction Using SVR: A Feature Engineering and Hyperparameter Tuning Approach
DOI:
https://doi.org/10.29207/resti.v10i3.7249Keywords:
cross validation, mining sector, stock price prediction, support vector regressionAbstract
Stock price prediction in Indonesia's volatile mining sector poses significant forecasting challenges driven by commodity price dynamics and structural market shifts. This study proposes a systematic prediction framework for PT Indo Tambangraya Megah Tbk (ITMG.JK) integrating technical and market-derived non-technical feature engineering, LightGBM-based feature selection, multilevel TimeSeriesSplit cross-validation, and hyperparameter optimization. Support Vector Regression (SVR) is benchmarked against LightGBM, XGBoost, and Random Forest under 5-fold, 10-fold, and 15-fold schemes. SVR achieves the best performance at 10-fold, with RMSE of 0.0121, MAE of 0.0090, MAPE of 1.1457%, and R² of 0.9249. Generalization experiments across four additional stocks in banking, automotive, and mining sectors confirm SVR's robustness, maintaining R² above 0.89 and MAPE below 2.65% in all cases while tree-based models produce negative R² on certain datasets. Statistical validation via Wilcoxon signed-rank test (p < 0.05) and Cohen's d (|d| > 0.8) confirms the significance of SVR's advantage. These findings indicate that SVR consistently outperforms the evaluated models under the proposed experimental framework.
Downloads
References
A. R. Putra and R. Robiyanto, “The effect of commodity price changes and USD/IDR exchange rate on Indonesian mining companies’ stock return,” Jurnal Keuangan dan Perbankan, vol. 23, no. 1, Jan. 2019, doi: 10.26905/jkdp.v23i1.2084.
G. Putra, S. Mulyantini, and D. Arieftiara, “Business diversification of coal mining companies as a strategy facing coal price volatility: The effect on company performance and share prices,” International Journal of Business Ecosystem & Strategy (2687-2293), vol. 3, pp. 38–50, Feb. 2021, doi: 10.36096/ijbes.v3i4.299.
M. K. G. Deshmukh, M. Sameeroddin, D. Abdul, and M. Abdul Sattar, “Renewable energy in the 21st century: A review,” Mater. Today Proc., vol. 80, pp. 1756–1759, Jan. 2023, doi: 10.1016/j.matpr.2021.05.501.
L. Yin, B. Li, P. Li, and R. Zhang, “Research on stock trend prediction method based on optimized random forest,” CAAI Trans. Intell. Technol., vol. 8, no. 1, pp. 274–284, Mar. 2023, doi: 10.1049/cit2.12067.
A. U. Haq, A. Zeb, Z. Lei, and D. Zhang, “Forecasting daily stock trend using multi-filter feature selection and deep learning,” Expert Syst. Appl., vol. 168, Apr. 2021, doi: 10.1016/j.eswa.2020.114444.
A. D. Hartanto, Y. Nur Kholik, and Y. Pristyanto, “Stock Price Time Series Data Forecasting Using the Light Gradient Boosting Machine (LightGBM) Model,” JOIV : International Journal on Informatics Visualization, vol. 7, no. 4, p. 2270, Dec. 2023, doi: 10.62527/joiv.7.4.1740.
E. H. A. Rady, H. Fawzy, and A. M. A. Fattah, “Time series forecasting using tree based methods,” J. Stat. Appl. Probab., vol. 10, no. 1, pp. 229–244, 2021, doi: 10.18576/JSAP/100121.
X. Zhao and Q. Zhao, “Stock Prediction Using Optimized LightGBM Based on Cost Awareness,” in 2021 5th IEEE International Conference on Cybernetics (CYBCONF), IEEE, Jun. 2021, pp. 107–113. doi: 10.1109/CYBCONF51991.2021.9464148.
J. Zheng, Y. Wang, S. Li, and H. Chen, “The stock index prediction based on svr model with bat optimization algorithm,” Algorithms, vol. 14, no. 10, Oct. 2021, doi: 10.3390/a14100299.
P. Sadorsky, “A Random Forests Approach to Predicting Clean Energy Stock Prices,” Journal of Risk and Financial Management, vol. 14, no. 2, Feb. 2021, doi: 10.3390/jrfm14020048.
M. Y. Urrochman, H. Asy’ari, and F. A. Hizham, “Performance Comparison Of Random Forest Regression, Svr Models In Stock Price Prediction,” Jurnal Pilar Nusa Mandiri, vol. 21, no. 1, pp. 16–23, Mar. 2025, doi: 10.33480/pilar.v21i1.6072.
A. Arfan and L. ETP, “Perbandingan Algoritma Long Short-Term Memory dengan SVR Pada Prediksi Harga Saham di Indonesia,” PETIR, vol. 13, no. 1, pp. 33–43, Mar. 2020, doi: 10.33322/petir.v13i1.858.
M. Chlebus, M. Dyczko, and M. Woźniak, “Nvidia’s Stock Returns Prediction Using Machine Learning Techniques for Time Series Forecasting Problem,” Central European Economic Journal, vol. 8, no. 55, pp. 44–62, Jan. 2021, doi: 10.2478/ceej-2021-0004.
B. T. Khoa and T. T. Huynh, “Forecasting stock price movement direction by machine learning algorithm,” International Journal of Electrical and Computer Engineering, vol. 12, no. 6, pp. 6625–6634, Dec. 2022, doi: 10.11591/ijece.v12i6.pp6625-6634.
I. K. Nti, A. F. Adekoya, and B. A. Weyori, “Efficient Stock-Market Prediction Using Ensemble Support Vector Machine,” Open Computer Science, vol. 10, no. 1, pp. 153–163, Jan. 2020, doi: 10.1515/comp-2020-0199.
D. A. Puspitasari and Z. Rustam, “Application of SVM-KNN using SVR as feature selection on stock analysis for Indonesia stock exchange,” 2018, p. 020207. doi: 10.1063/1.5064204.
Y. Zhang, Y. Song, and G. Wei, “A feature-enhanced long short-term memory network combined with residual-driven ν support vector regression for financial market prediction,” Eng. Appl. Artif. Intell., vol. 118, p. 105663, 2023, doi: 10.1016/j.engappai.2022.105663.
R. K. Dash, T. N. Nguyen, K. Cengiz, and A. Sharma, “Fine-tuned support vector regression model for stock predictions,” Neural Comput. Appl., vol. 35, no. 32, pp. 23295–23309, Nov. 2023, doi: 10.1007/s00521-021-05842-w.
D. H. Yudhawan and T. Purwaningsih, “Developing support vector regression model to forcast stock prices of mining companies in Indonesia,” Jurnal Informatika, vol. 14, no. 2, p. 43, May 2020, doi: 10.26555/jifo.v14i2.a17283.
D. Nuryadin, I. B. P. C. P. Sarayuda, and D. Q. Nada, “Forecasting the Stock Price of Coal and Coal Commodity Companies using the ARIMA and ARCH/GARCH Models for 2011-2022,” Jurnal Samudra Ekonomi dan Bisnis, vol. 16, no. 1, pp. 29–45, Jan. 2025, doi: 10.33059/jseb.v16i1.10797.
A. Ntakaris, J. Kanniainen, M. Gabbouj, and A. Iosifidis, “Mid-price prediction based on machine learning methods with technical and quantitative indicators,” PLoS One, vol. 15, no. 6, p. e0234107, Jun. 2020, doi: 10.1371/journal.pone.0234107.
H. N. Bhandari, B. Rimal, N. R. Pokhrel, R. Rimal, K. R. Dahal, and R. K. C. Khatri, “Predicting stock market index using LSTM,” Machine Learning with Applications, vol. 9, p. 100320, Sep. 2022, doi: 10.1016/j.mlwa.2022.100320.
S. Y. Kuo and Y. H. Chou, “Building Intelligent Moving Average-Based Stock Trading System Using Metaheuristic Algorithms,” IEEE Access, vol. 9, pp. 140383–140396, 2021, doi: 10.1109/access.2021.3119041.
E. S. Gunnarsson, H. R. Isern, A. Kaloudis, M. Risstad, B. Vigdel, and S. Westgaard, “Prediction of realized volatility and implied volatility indices using AI and machine learning: A review,” International Review of Financial Analysis, vol. 93, p. 103221, May 2024, doi: 10.1016/j.irfa.2024.103221.
D. Stosic, D. Stosic, I. Vodenska, H. E. Stanley, and T. Stosic, “A New Look at Calendar Anomalies: Multifractality and Day-of-the-Week Effect,” Entropy, vol. 24, no. 4, p. 562, Apr. 2022, doi: 10.3390/e24040562.
V. Azevedo and C. Hoegner, “Enhancing stock market anomalies with machine learning,” Review of Quantitative Finance and Accounting, vol. 60, no. 1, pp. 195–230, Jan. 2023, doi: 10.1007/s11156-022-01099-z.
K. Aggarwal and M. K. Jha, “Stock returns seasonality in emerging asian markets,” Asia-Pacific Financial Markets, vol. 30, no. 1, pp. 109–130, Mar. 2023, doi: 10.1007/s10690-022-09370-y.
A. Y. Wiiava, C. Fatichah, and A. Saikhu, “Stock Price Prediction with Golden Cross and Death Cross on Technical Analysis Indicators Using Long Short Term Memory,” in 2022 5th International Conference on Information and Communications Technology (ICOIACT), IEEE, Aug. 2022, pp. 278–283. doi: 10.1109/icoiact55506.2022.9971844.
M. Wu, Q. Wan, and Y. Wang, “Academic performance evaluation based on knowledge sharing theory: feature importance analysis of dimensions in LightGBM model,” in Proceedings of 2025 6th International Conference on Education, Knowledge and Information Management, ICEKIM 2025, Association for Computing Machinery, Inc, Sep. 2025, pp. 302–308. doi: 10.1145/3756580.3756629.
D. Wang, Y. Huang, and C. Ren, “Prediction and contribution analysis of CSI 300 Stock Index Futures based on KPCA-LightGBM,” BCP Business & Management, vol. 28, pp. 1–11, Oct. 2022, doi: 10.54691/bcpbm.v28i.2135.
P. K. Illa, B. Parvathala, and A. K. Sharma, “Stock price prediction methodology using random forest algorithm and support vector machine,” Mater. Today Proc., vol. 56, pp. 1776–1782, 2022, doi: 10.1016/j.matpr.2021.10.460.
G. Ke et al., “LightGBM: a highly efficient gradient boosting decision tree,” in Proceedings of the 31st International Conference on Neural Information Processing Systems, in NIPS’17. Red Hook, NY, USA: Curran Associates Inc., 2017, pp. 3149–3157. doi: 10.5555/3294996.3295074
A. Performa et al., “Performance Analysis of XGBoost Algorithm to Determine the Most Optimal Parameters and Features in Predicting Stock Price Movement,” Jurnal Informatika dan Teknologi Informasi, vol. 20, no. 1, pp. 91–102, 2023, doi: 10.31515/telematika.v20i1.9329.
T. Chen and C. Guestrin, “XGBoost,” in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York, NY, USA: ACM, Aug. 2016, pp. 785–794. doi: 10.1145/2939672.2939785.
V. Cerqueira, L. Torgo, and I. Mozetic, “Evaluating time series forecasting models: An empirical study on performance estimation methods,” May 2019, doi: 10.1007/s10994-020-05910-7.
I. R. Parray, S. S. Khurana, M. Kumar, and A. A. Altalbe, “Time series data analysis of stock price movement using machine learning techniques,” Soft comput., vol. 24, no. 21, pp. 16509–16517, Nov. 2020, doi: 10.1007/s00500-020-04957-x.
T. N. Tran, B. M. Lam, A. T. Nguyen, and Q. B. Le, “Load forecasting with support vector regression: influence of data normalization on grid search algorithm,” International Journal of Electrical and Computer Engineering, vol. 12, no. 4, pp. 3410–3420, Aug. 2022, doi: 10.11591/ijece.v12i4.pp3410-3420.
N. P. S. Yuli Artini, I. W. Sumarjaya, and D. P. E. Nilakusmawati, “Penerapan Metode Support Vector Regression (Svr) Dengan Algoritma Grid Search Dalam Peramalan Harga Saham,” E-Jurnal Matematika, vol. 13, no. 2, p. 94, May 2024, doi: 10.24843/mtk.2024.v13.i02.p447.
H. Yao, “Research on Stock Price Prediction Based on Machine Learning Techniques,” in Proceedings of the 2nd International Conference on Data Science and Engineering, SCITEPRESS - Science and Technology Publications, 2025, pp. 654–659. doi: 10.5220/0013703600004670.
H. Lee, J. H. Kim, and H. S. Jung, “Deep-learning-based stock market prediction incorporating ESG sentiment and technical indicators,” Sci. Rep., vol. 14, no. 1, p. 10262, May 2024, doi: 10.1038/s41598-024-61106-2.
Downloads
Published
Issue
Section
License
Copyright in each article belongs to the author
- The author acknowledges that the RESTI Journal (System Engineering and Information Technology) is the first publisher to publish with a license Creative Commons Attribution 4.0 International License.
- Authors can enter writing separately, arrange the non-exclusive distribution of manuscripts that have been published in this journal into other versions (eg sent to the author's institutional repository, publication in a book, etc.), by acknowledging that the manuscript has been published for the first time in the RESTI (Rekayasa Sistem dan Teknologi Informasi) journal ;





