Volume 18, Issue 4 (3-2022)                   JSDP 2022, 18(4): 125-152 | Back to browse issues page


XML Persian Abstract Print


Download citation:
BibTeX | RIS | EndNote | Medlars | ProCite | Reference Manager | RefWorks
Send citation to:

Abdolrazzagh-Nezhad M, Kherad M. Predicting stock prices on the Tehran Stock Exchange by a new hybridization of Fuzzy Inference System and Fuzzy Imperialist Competitive Algorithm. JSDP 2022; 18 (4) : 8
URL: http://jsdp.rcisp.ac.ir/article-1-1024-en.html
Bozorgmehr University of Qaenat
Abstract:   (2132 Views)

Investing on the stock exchange, as one of the financial resources, has always been a favorite among many investors. Today, one of the areas, where the prediction is its particular importance issue, is financial area, especially stock exchanges. The main objective of the markets is the future trend prices prediction in order to adopt a suitable strategy for buying or selling. In general, an investor should be predicted the future status of the time, the amount and location of his assets in a way that increases the return on his assets. Stock price prediction is one of the most challenging topics in the field of forecasting, which has attracted many attentions from researchers. The various factors of the markets have caused the situation that they always have a dynamic and complex process. Therefore, researchers have been determined to look for new prediction methods of stock price, which will reduce the instability and complexity of the markets. In fact, the most of recent studies have shown that the stock market is a nonlinear, dynamic, and non-parametric system that is affected by various economic factors. The applications of artificial intelligence and machine learning techniques to identify the relationship between the factors and stock price exchanges can be organized in seven major groups such as neural networks and deep learning, support vector machine, decision tree and random forest, k nearest neighbor, regression, Bayesian networks and fuzzy inference-base methods. Due to the mentioned prediction methods have their own challenges, hydridizations of the meta-heuristic algorithms and the methods were applied to stock price prediction.
In this paper, a new hybridization of Fuzzy Inference System and a novel modified Fuzzy Imperialist Competitive Algorithm (FICA+FIS) are proposed to stock price prediction. To achieve this aim, two Fuzzy Inference Systems are designed to tuing the ICA’s parameters based on three effective factors in search strategy and to predict stock price based on 10 effective economic factors. The candidate fuzzy rules set of the inference engine is obtained by the FICA for the second FIS and six fuzzy rules of the first FIS are designed based on the ICA’s behaviour. The FICA+FIS has 10 inputs of the stock price variables including the lowest stock price, the highest stock price, the initial stock price, the trading volume, the trading value, the first market index of the trading floor, the total market price index, the dollar exchange rate, the global price per ounce of gold, the global oil price, and its output is also the stock price. The inputs and output variables consist of three linguistic vairables such as Low, Medium, and High with triangular membership functions. Each country (search agent) of the FICA contains information on all the fuzzy rules of the inference engine attributed to the country and has r×12 elements, where r is the number of fuzzy rules. The FICA’s objective function is the mean square error (MSE) to evaluate the power of each country.
A challenge of the ICA is the proper tuning paprameters such as the Revolution Probability (Prevolve), Assimilation Coefficient (Beta) and the Colonies Mean Cost Coefficient (zeta), which has a great impact on the efficiency of the algorithm (precision and time of access to solution). These parameters are usually constant and according to different problems, they have different values and are given experimentally. In this paper, the parameters are tuned based on the number of iterations that the best objective function value has not improved (UN), the number of imperialist (Ni) and the current number iteration (Iter). To this aim, a FIS is designed based on six fuzzy rules that UN, Ni and Iter are its input variables and Prevolve, Beta and zeta are its output variables.
To analyze the efficiency of the FICA+FIS as a case study, six datasets are collocted from six companies which were active between 1389 to 1394 in Tehran Stock Exchange such as Pars Oil, Iran Khodro, Motogen, Ghadir, Tidewater and Mobarakeh. The information of around 2000 days are collected for each company and the data are divided to train and test data based on cross validation 10-fold. To compare the performance of the FICA+FIS, two groups of stock price prediction methods were implemented. In the first group, the fuzzy rules of the FIS’s engine to stock price prediction are obtained by the classic draft of the Imperialist Competitive Algorithm (ICA+FIS), the Genetic Algorithm (GA+FIS) and the Whale Optimization Algorithm (WOA+FIS), which are used to compare with the FICA. The second group includes classic stock price prediction methods such as multi-layered neural network (NN), support vector machine (SVM), CART decision tree (DT-CART), random forest (RF) and Gaussian process regression (GPR), which are used to compare with the FICA+FIS. The experimental results show that first, the improved fuzzy draft of the ICA performed better than its classic draft, the GA and the WOA, and second, the performance of the FICA FIS is better than other investigated algorithms in both training and testing phases, although the DT is a competitor in the training phase and the RF is a competitor in the test phase on some datasets.

Article number: 8
Full-Text [PDF 1986 kb]   (766 Downloads)    
Type of Study: Applicable | Subject: Paper
Received: 2019/06/26 | Accepted: 2021/02/2 | Published: 2022/03/21 | ePublished: 2022/03/21

References
1. [1] E. Stringham, Private governance: Creating order in economic and social life. Oxford University Press, USA, 2015. [DOI:10.1093/acprof:oso/9780199365166.001.0001]
2. [2] H. Vachhani et al., "Machine learning based stock market analysis: A short survey," in International Conference on Innovative Data Communication Technologies and Application, 2019: Springer, pp. 12-26. [DOI:10.1007/978-3-030-38040-3_2]
3. [3] V. R. Jain, M. Gupta, and R. M. Singh, "Analysis and Prediction of Individual Stock Prices of Financial Sector Companies in NIFTY50," International Journal of Information Engineering and Electronic Business, vol. 11, no. 2, p. 33, 2018. [DOI:10.5815/ijieeb.2018.02.05]
4. [4] T. Kim and H. Y. Kim, "Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data," PloS one, vol. 14, no. 2, 2019. [DOI:10.1371/journal.pone.0212320] [PMID] [PMCID]
5. [5] F. Jahantegh, d. P. Telegraph, and Safoura, "Optimal time intervals in oil price forecasting by a dynamic neural network modified by genetic algorithm," Quarterly Journal of Energy Economics Studies, vol. 14, no. 56, pp. 115-143, 1397.
6. [6] Y. Rabbani, M. and N. Chashmi, "Stock Trading Signal Prediction Using Color Petroleum Networks and Genetic Algorithm (Case Study: Tehran Stock Exchange)," Journal of Executive Management, vol. 11, no. 21, pp. 205-227, 2019.
7. [7] monajemi, abzari, and rayati, "Stock price prediction in stock exchange stock exchange using fuzzy neural network and genetic algorithm and comparing it with artificial neural network," Quarterly Journal of Economics, vol. 3, no. 6, pp. 1-26, 2010.
8. [8] P. Hájek, V. Olej, and R. Myskova, "Forecasting stock prices using sentiment information in annual reports: A neural network and support vector regression approach," WSEAS Transactions on Business and Economics, vol. 10, no. 4, pp. 293-305, 2013.
9. [9] E. Hadavandi, H. Shavandi, and A. Ghanbari, "Integration of genetic fuzzy systems and artificial neural networks for stock price forecasting," Knowledge-Based Systems, vol. 23, no. 8, pp. 800-808, 2010. [DOI:10.1016/j.knosys.2010.05.004]
10. [10] Y. Chen, A. Abraham, J. Yang, and B. Yang, "Hybrid methods for stock index modeling," Fuzzy Systems and Knowledge Discovery, pp. 490-490, 2005. [DOI:10.1007/11540007_137]
11. [11] S. Wang, L. Wang, S. Gao, and Z. Bai, "Stock price prediction based on chaotic hybrid particle swarm optimisation-RBF neural network," International Journal of Applied Decision Sciences, vol. 10, no. 2, pp. 89-100, 2017. [DOI:10.1504/IJADS.2017.084307]
12. [12] T. T. Khuat and M. H. Le, "An Application of Artificial Neural Networks and Fuzzy Logic on the Stock Price Prediction Problem," International Journal on Informatics Visualization, vol. 1, no. 2, pp. 40-49, 2017. [DOI:10.30630/joiv.1.2.20]
13. [13] R. Ghasemiyeh, R. Moghdani, and S. S. Sana, "A Hybrid Artificial Neural Network with Metaheuristic Algorithms for Predicting Stock Price," Cybernetics and Systems, vol. 48, no. 4, pp. 365-392, 2017. [DOI:10.1080/01969722.2017.1285162]
14. [14] Y. Rajihy, K. Nermend, and A. Alsakaa, "Back-propagation artificial neural networks in stock market forecasting. An application to the Warsaw Stock Exchange WIG20," Aestimatio, no. 15, p. 88, 2017.
15. [15] S. A. Mousavi, and Gholami, "Using Hybrid Firefly Neural Algorithm and Bayesian Regulation Method to Predict Stock Prices," Financial Engineering and Securities Management, vol. 9, no. 36, pp. 295-321, 1397.
16. [16] T. Fischer and C. Krauss, "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, vol. 270, no. 2, pp. 654-669, 2018. [DOI:10.1016/j.ejor.2017.11.054]
17. [17] W. Long, Z. Lu, and L. Cui, "Deep learning-based feature engineering for stock price movement prediction," Knowledge-Based Systems, vol. 164, pp. 163-173, 2019. [DOI:10.1016/j.knosys.2018.10.034]
18. [18] A. Kelotra and P. Pandey, "Stock market prediction using optimized deep-convlstm model," Big Data, vol. 8, no. 1, pp. 5-24, 2020. [DOI:10.1089/big.2018.0143] [PMID]
19. [19] C. Xiao, W. Xia, and J. Jiang, "Stock price forecast based on combined model of ARI-MA-LS-SVM," Neural Computing and Applications, pp. 1-10, 2020. [DOI:10.1007/s00521-019-04698-5]
20. [20] M.-C. Lee, "Using support vector machine with a hybrid feature selection method to the stock trend prediction," Expert Systems with Applications, vol. 36, no. 8, pp. 10896-10904, 2009. [DOI:10.1016/j.eswa.2009.02.038]
21. [21] Y. Chen and Y. Hao, "A feature weighted support vector machine and K-nearest neighbor algorithm for stock market indices prediction," Expert Systems with Applications, vol. 80, pp. 340-355, 2017. [DOI:10.1016/j.eswa.2017.02.044]
22. [22] B. B. Nair, V. Mohandas, and N. Sakthivel, "A decision tree-rough set hybrid system for stock market trend prediction," International Journal of Computer Applications, vol. 6, no. 9, pp. 1-6, 2010. [DOI:10.5120/1106-1449]
23. [23] W. Qiu, X. Liu, and L. Wang, "Forecasting shanghai composite index based on fuzzy time series and improved C-fuzzy decision trees," Expert Systems with Applications, vol. 39, no. 9, pp. 7680-7689, 2012. [DOI:10.1016/j.eswa.2012.01.051]
24. [24] S. Basak, S. Kar, S. Saha, L. Khaidem, and S. R. Dey, "Predicting the direction of stock market prices using tree-based classifiers," The North American Journal of Economics and Finance, vol. 47, pp. 552-567, 2019. [DOI:10.1016/j.najef.2018.06.013]
25. [25] L. Khaidem, S. Saha, and S. R. Dey, "Predicting the direction of stock market prices using random forest," arXiv preprint arXiv:1605.00003, 2016.
26. [26] N. Sharma and A. Juneja, "Combining of random forest estimates using LSboost for stock market index prediction," in 2017 2nd International Conference for Convergence in Technology (I2CT), 2017: IEEE, pp. 1199-1202. [DOI:10.1109/I2CT.2017.8226316]
27. [27] Gh. Elham and d. Seyed Mohammad Reza, "Predicting price trends in the stock market using a random forest algorithm," Quarterly Journal of Financial Engineering and Securities Management, vol. 9, no. 35, pp. 301-322, 1397.
28. [28] K. Alkhatib, H. Najadat, I. Hmeidi, and M. K. A. Shatnawi, "Stock price prediction using k-nearest neighbor (kNN) algorithm," International Journal of Business, Humanities and Technology, vol. 3, no. 3, pp. 32-44, 2013.
29. [29] M. Zadeh, H. Gholipoor, and Gh. Vahid, "Stock Price Forecasting Using Distributed Intermediate Regression (ARDL) Method," Financial Research, vol. 9, no. 23, pp. 49-60, 1386.
30. [30] M. Zadeh, H. Gholipoor, and Gh. Vahid, "Stock price forecasting by fuzzy regression method," Journal of Macroeconomics, vol. 6, no. 12, pp. 107-128, 1390.
31. [31] E. Kita, M. Harada, and T. Mizuno, "Application of Bayesian Network to stock price prediction," Artif. Intell. Research, vol. 1, no. 2, pp. 171-184, 2012. [DOI:10.5430/air.v1n2p171]
32. [32] Q. Sun, W.-G. Che, and H.-L. Wang, "Bayesian regularization BP neural network model for the stock price prediction," in Foundations and applications of intelligent systems: Springer, 2014, pp. 521-531. [DOI:10.1007/978-3-642-37829-4_45]
33. [33] L. Wang, Z. Wang, S. Zhao, and S. Tan, "Stock market trend prediction using dynamical Bayesian factor graph," Expert Systems with Applications, vol. 42, no. 15-16, pp. 6267-6275, 2015. [DOI:10.1016/j.eswa.2015.01.035]
34. [34] M. R. Hassan, K. Ramamohanarao, J. Kamruzzaman, M. Rahman, and M. M. Hossain, "A HMM-based adaptive fuzzy inference system for stock market forecasting," Neurocomputing, vol. 104, pp. 10-25, 2013. [DOI:10.1016/j.neucom.2012.09.017]
35. [35] P.-C. Chang and C.-H. Liu, "A TSK type fuzzy rule based system for stock price prediction," Expert Systems with applications, vol. 34, no. 1, pp. 135-144, 2008. [DOI:10.1016/j.eswa.2006.08.020]
36. [36] G. R. M. Lincy and C. J. John, "A multiple fuzzy inference systems framework for daily stock trading with application to NASDAQ stock exchange," Expert Systems with Applications: An International Journal, vol. 44, no. C, pp. 13-21, 2016. [DOI:10.1016/j.eswa.2015.08.045]
37. [37] S. K. Chandar, "Fusion model of wavelet transform and adaptive neuro fuzzy inference system for stock market prediction," Journal of Ambient Intelligence and Humanized Computing, pp. 1-9, 2019.
38. [38] M. R. Feylizadeh, M. H. Keshavarz, and A. Hendalianpour, "Presenting a model for predicting the Tehran Stock Exchange Index using ANFIS and fuzzy regression," Journal of New Researches in Mathematics, 2019.
39. [39] Ramezani and Ameli, "Stock Price Prediction Using Fuzzy Neural Network Based on Genetic Algorithm and Comparison with Fuzzy Neural Network," Economic Modeling Research, vol. 6, no. 22, pp. 61-91, 2016. [DOI:10.18869/acadpub.jemr.6.22.61]
40. [40] J. Babajani, T. Bolo, Gh. Abdollahi, "Predicting stock prices on the Tehran Stock Exchange using a recursive neural network optimized by the artificial bee colony algorithm," Financial Management Strategy, vol. 7, no. 2, pp. 195-228, 2019.
41. [41] E. Giovanis, "Application of ARCH-GARCH models and feed-forward neural networks with Bayesian regularization in Capital Asset Pricing Model: The case of two stocks in Athens exchange stock market," 2009. [DOI:10.2139/ssrn.1325842]
42. [42] S. moshiri and H. morevat, "Forecasts Tehran Stock Exchange general index returns using linear and nonlinear models," Quarterly Journal of Business Research, vol. 41, no. 84.
43. [43] O. Cordón, E. Herrera, E. Gomide, E. Hoffman, and L. Magdalena, "Ten years of genetic fuzzy systems: current framework and new trends," in IFSA World Congress and 20th NAFIPS International Conference, 2001. Joint 9th, 2001, vol. 3: IEEE, pp. 1241-1246.
44. [44] H. N. Nhu, S. Nitsuwat, and M. Sodanil, "Prediction of stock price using an adaptive Neuro-Fuzzy Inference System trained by Firefly Algorithm," in 2013 International Computer Science and Engineering Conference (ICSEC) , 2013 ,IEEE, pp. 302-307. [DOI:10.1109/ICSEC.2013.6694798]
45. [45] R. Dash and P. Dash, "Efficient stock price prediction using a self evolving recurrent neuro-fuzzy inference system optimized through a modified differential harmony search technique," Expert Systems with Applications, vol. 52, pp. 75-90, 2016. [DOI:10.1016/j.eswa.2016.01.016]
46. [46] L.-Y. Wei, "A hybrid model based on ANFIS and adaptive expectation genetic algorithm to forecast TAIEX," Economic Modelling, vol. 33, pp. 893-899, 2013. [DOI:10.1016/j.econmod.2013.06.009]
47. [47] A. Bagheri, H. M. Peyhani, and M. Akbari, "Financial forecasting using ANFIS networks with quantum-behaved particle swarm optimization," Expert Systems with Applications, vol. 41, no. 14, pp. 6235-6250, 2014. [DOI:10.1016/j.eswa.2014.04.003]
48. [48] J. Han, J. Pei, and M. Kamber, Data mining: concepts and techniques. Elsevier, 2011.
49. [49] S. Hosseini and A. Al Khaled, "A survey on the imperialist competitive algorithm metaheuristic: implementation in engineering domain and directions for future research," Applied Soft Computing, vol. 24, pp. 1078-1094, 2014. [DOI:10.1016/j.asoc.2014.08.024]
50. [50] A. P. Engelbrecht, Computational intelligence: an introduction., 2 ed. England: John Wiley & Sons, 2007, p. 597.
51. [51] P. J. Werbos, "Beyond Regression: New Tools for Prediction and Analysis in the Behavioural Sciences," PhD thesis, Harvard University, Boston, USA, 1974.
52. [52] Z. Pashaei, R. Dehkharghani, "Stock Market Modeling Using Artificial Neural Network and Comparison with Classical Linear Models", JSDP, 2021, vol.17, no. 4, pp. 89-102. [DOI:10.29252/jsdp.17.4.89]

Add your comments about this article : Your username or Email:
CAPTCHA

Send email to the article author


Rights and permissions
Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

© 2015 All Rights Reserved | Signal and Data Processing