COMPARISON OF FRUIT FLY OPTIMIZATION ALGORITHM (FOA) AND PARTICLE SWARM OPTIMIZATION (PSO) FOR SUPPORT VECTOR REGRESSION (SVR) IN UNITED TRACTORS STOCK PRICES FORECASTING

Keywords: Fruit Fly Optimization, Particle Swarm Optimization, Stock price prediction, Support Vector Regression

Abstract

Stock price forecasting is one of the analytical approaches used by capital market participants to identify future price movement patterns. This study evaluates the performance of the Support Vector Regression (SVR) model in predicting the stock price of United Tractors (UNTR) by optimizing the model’s parameters using two metaheuristic algorithms. The selection of SVR is based on its ability to handle nonlinear regression problems through the use of the Radial Basis Function (RBF) kernel. The parameter optimization of SVR is carried out using the Fruit Fly Optimization Algorithm (FOA), an algorithm inspired by the olfactory and visual system of fruit flies in locating food sources. The advantage of FOA lies in its computational simplicity and fast convergence speed. This study also implements Particle Swarm Optimization (PSO) for comparison purposes. This algorithm adopts a collaborative mechanism among particles in the search space, inspired by the flocking behavior of birds. The stock price data used in this study, covering the period from January 2020 to December 2023, was obtained from Yahoo Finance (https://finance.yahoo.com). The results show that SVR-FOA yields a parameter combination of C = 1000, gamma = 0.9182, and epsilon = 0.9997, while SVR-PSO produces a different configuration, namely C = 1000, gamma = 0.0001, and epsilon = 1. Accuracy evaluation using Mean Absolute Percentage Error (MAPE) indicates that the SVR-PSO model achieves a MAPE of 2.3164%, suggesting a relatively low prediction error. SVR-FOA yields a MAPE of 5.8727%, which is still within the acceptable tolerance range for financial data. While this study focuses on a single stock and uses only historical closing prices, its results provide a strong baseline for applying SVR with metaheuristic optimization in financial forecasting. This research contributes by presenting a direct comparative analysis of FOA and PSO for SVR parameter tuning in an emerging market context, offering practical insights for investors and researchers seeking robust forecasting models.

 

Downloads

Download data is not yet available.

References

X. Liu, W. L. Megginson, and J. Xia, “INDUSTRIAL POLICY AND ASSET PRICES: EVIDENCE FROM THE MADE IN CHINA 2025 POLICY,” J. Bank. Financ., vol. 142, 2022. doi: https://doi.org/10.1016/j.jbankfin.2022.106554.

E. Sudarmanto et al., PASAR UANG DAN PASAR MODAL, Yayasan Kita Menulis, 2021

H. Wijoyo, D. Sunarsi, Y.Cahyono, and A. Ariyanto, PENGANTAR BISNIS, Insan Cendekia Mandiri, 2021

N. Fitriani, A. Minanurohman, and G. L. Firmansah, “FINANCIAL RATIO ANALYSIS IN STOCK PRICE: EVIDENCE FROM INDONESIA,” J. ASET (Akuntansi Riset), vol. 13, no. 1, pp. 49–64, 2021.

A. Li, Q. Wei, Y. Shi, and Z. Liu, “RESEARCH ON STOCK PRICE PREDICTION FROM A DATA-FUSION PERSPECTIVE,” Data Science in Finance and Economics (DSFE), vol. 3, no. 3, pp. 230–250, Jul. 2023. doi: https://doi.org/10.3934/DSFE.2023014.

H. Yasin, A. Prahutama, and T. W. Utami, “PREDIKSI HARGA SAHAM MENGGUNAKAN SUPPORT VECTOR REGRESSION DENGAN ALGORITMA GRID SEARCH,” Media Stat., vol. 7, no. 1, pp. 29–35, 2014. doi: https://doi.org/10.14710/medstat.7.1.29-35.

Z. Rustam, and P. Kintandani, “APPLICATION OF SUPPORT VECTOR REGRESSION IN INDONESIAN STOCK PRICE PREDICTION WITH FEATURE SELECTION USING PARTICLE SWARM OPTIMIZATION,” Modelling and Simulation in Engineering, vol. 4, pp. 1-5, 2019. doi: https://doi.org/10.1155/2019/8962717.

C. W. Hsu, C.W. Chang, and C.C. Lin, “A PRACTICAL GUIDE TO SUPPORT VECTOR CLASSIFICATION,” Tech. Rep., Department of Computer Science and Information Engineering, National Taiwan University, Taipei, Taiwan, 2003, https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf.

S. Samadianfard, S. Jarhan, E. Salwana, A. Mosavi, S. Shamshirband, and S. Akib, “SUPPORT VECTOR REGRESSION INTEGRATED WITH FRUIT FLY OPTIMIZATION ALGORITHM FOR RIVER FLOW FORECASTING IN LAKE URMIA BASIN,” Water, vol. 11, no. 9, p. 1934, 2019. doi: https://doi.org/10.3390/w11091934.

M. Sharafi, S. Samadianfard, J. Behmanesh, and R. Prasad, “INTEGRATION OF FRUIT FLY AND FIREFLY OPTIMIZATION ALGORITHM WITH SUPPORT VECTOR REGRESSION IN ESTIMATING DAILY PAN EVAPORATION,” International Journal of Biometeorology, vol. 68, pp. 237-251, 2024, doi: https://doi.org/10.1007/s00484-023-02586-1.

G. Cao and L. Wu, “SUPPORT VECTOR REGRESSION WITH FRUIT FLY OPTIMIZATION ALGORITHM FOR SEASONAL ELECTRICITY CONSUMPTION FORECASTING,” Energy, vol. 115, pp. 734–745, 2016. doi: https://doi.org/10.1016/j.energy.2016.09.065.

Y. Guo, S. Han, C. Shen, Y. Li, X. Yin, and Y.Bai, “AN ADAPTIVE SVR FOR HIGH-FREQUENCY STOCK PRICE FORECASTING,” IEE Access, vol. 6, pp. 11397–11404, 2018. doi: https://doi.org/10.1109/ACCESS.2018.2806180.

Y. Wang, J. Wang, W. Du, C. Zhang, Y. Zhang, and C. Zhou, “PARAMETER OPTIMIZATION OF SUPPORT VECTOR REGRESSION BASED ON IMMUNE PARTICLE SWARM OPTIMIZATION ALGORITHM,” Proceedings of the 1st ACM/SIGEVO Summit on Genetic and Evolutionary Computation (GEC ’09), Shanghai, China, 2009, pp. 623–630. doi: https://doi.org/10.1145/1543834.1543992.

R. K. Dash, T. N. Nguyen, K. Cengiz, and A. Sharma “FINE-TUNED SUPPORT VECTOR REGRESSION MODEL FOR STOCK PREDICTIONS,” Neural Comput. Appl., vol. 9, no. 1, 2021. doi: https://doi.org/10.1007/s00521-021-05842-w

R. E. Utama, N. A. Gani, Jaharuddin, and A. Priharta,, BUKU MANAJEMEN OPERASI FULL. 2019.

S. Abe, SUPPORT VECTOR MACHINES FOR PATTERN CLASSIFICATION. London: Springer-Verlag, 2010. doi: https://doi.org/10.1007/978-1-84996-098-4.

S. R. Gunn, “SUPPORT VECTOR MACHINES FOR REGRESSION AND APPLICATIONS,” Southampton, University of Southampton, Tech. Rep., 1998, Available online: https://eprints.soton.ac.uk/256459/.

Elsevier, “SUPPORT VECTOR REGRESSION,” ScienceDirect Topics, 2026, https://www.sciencedirect.com/topics/computer-science/support-vector-regression.

H. H. Liu, L. C. Chang, C. W. Li, and C. H. Yang, “PARTICLE SWARM OPTIMIZATION-BASED SUPPORT VECTOR REGRESSION FOR TOURIST ARRIVALS FORECASTING,” Computational Intelligence and Neuroscience, vol. 2018, pp. 1–13, 2018. doi: https://doi.org/10.1155/2018/6076475.

H. Iftikhar, F. Khan, P. C. Rodrigues, A. A. Alharbi, and J. Allohibi, “FORECASTING OF INFLATION BASED ON UNIVARIATE AND MULTIVARIATE TIME SERIES MODELS: AN EMPIRICAL APPLICATION,” Mathematics, vol. 13, no. 7, p. 1121, 2025. doi: https://doi.org/10.3390/math13071121.

Y. W. A. Nanlohy and S. B. Loklomin, “AUTOREGRESSIVE INTEGRATED MOVING AVERAGE (ARIMA) MODEL FOR FORECASTING INDONESIAN INFLATION,” Varians - J. Stat. dan Apl., vol. 5, no. 2, pp. 201–208, 2023. doi: https://doi.org/10.30598/variancevol5iss2page201-208.

S. M. Robial, “PERBANDINGAN MODEL STATISTIK PADA ANALISIS METOD PERAMALAN TIME SERIES (STUDI KASUS: PT. TELEKOMUNIKASI INDONESIA, TBK KANDATEL SUKABUMI),” J. Ilm. SANTIKA, vol. 8, no. 2, pp. 1–17, 2018. doi: https://doi.org/10.37150/jsa.v8i2.400.

I. Ardiansah, I. F. Adiarsa, S. H. Putri, and T. Pujianto, “APPLICATION OF TIME SERIES ANALYSIS TO ORGANIC PRODUCT SALES FORECASTING USING MOVING AVERAGE AND EXPONENTIAL SMOOTHING METHODS,” J. Tek. Pertan. Lampung (Jurnal Agric. Eng., vol. 10, no. 4, p. 548-559, 2021. doi: https://doi.org/10.23960/jtep-l.v10i4.548-559.

Published
2026-01-26
How to Cite
[1]
B. H. Wibowo, I. T. Utami, and M. Y. Rochayani, “COMPARISON OF FRUIT FLY OPTIMIZATION ALGORITHM (FOA) AND PARTICLE SWARM OPTIMIZATION (PSO) FOR SUPPORT VECTOR REGRESSION (SVR) IN UNITED TRACTORS STOCK PRICES FORECASTING”, BAREKENG: J. Math. & App., vol. 20, no. 2, pp. 1345–1358, Jan. 2026.