Skip to main content
Log in

An efficient equilibrium optimizer with support vector regression for stock market prediction

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

A hybridized method that relies on using the support vector regression (SVR) method with equilibrium optimizer (EO) is proposed to foresee the closing prices of Egyptian Exchange (EGX). Three indices are modeled and employed: EGX 30, EGX 30 capped, and EGX 50 EWI. The efficiency of using the technical indicators and statistical measures in the forecasting process is evaluated. The proposed EO-SVR-based forecasting model is adopted and evaluated using mean absolute percentage error, average, standard deviation, best fit, worst fit, and CPU time. Also, it is compared with recently developed metaheuristic optimization algorithms published in the literature such as whale optimization algorithm, salp swarm algorithm, Harris Hawks optimization, gray wolf optimizer, Henry gas solubility optimization, Barnacles mating optimizer, Manta ray foraging optimization, and slime mold algorithm. The proposed EO-SVR model got better results than other the counterparts, and EO-SVR is considered the optimal model according to its superior outcomes. Moreover, there is no need to use technical indicators and statistical measures as their effect is not noticeable.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

Similar content being viewed by others

Notes

  1. www.egidegypt.com.

  2. www.egx.com.eg.

  3. www.iti.gov.eg.

References

  1. Mirjalili S, Mirjalili SM, Lewis A (2014) Grey wolf optimizer. Adv Eng Soft 69:46–61

    Article  Google Scholar 

  2. Mirjalili S, Gandomi AH, Mirjalili SZ, Saremi S, Faris H, Mirjalili SM (2017) Salp swarm algorithm: a bio-inspired optimizer for engineering design problems. Adv Eng Softw 114:163–191

    Article  Google Scholar 

  3. Faramarzi A, Heidarinejad M, Stephens B, Mirjalili S (2020) Equilibrium optimizer: a novel optimization algorithm. Knowl Based Syst 191:105190

    Article  Google Scholar 

  4. Mirjalili S, Lewis A (2016) The whale optimization algorithm. Adv Eng Softw 95:51–67

    Article  Google Scholar 

  5. Heidari AA, Mirjalili S, Faris H, Aljarah I, Mafarja M, Chen H (2019) Harris hawks optimization: algorithm and applications. Future Gener Comput Syst 97:849–872

    Article  Google Scholar 

  6. Hashim FA, Houssein EH, Mabrouk MS, Al-Atabany W, Mirjalili S (2019) Henry gas solubility optimization: a novel physics-based algorithm. Future Gener Comput Syst 101:646–667

    Article  Google Scholar 

  7. Sulaiman MH, Mustaffa Z, Saari MM, Daniyal H, Daud MR, Razali S, Mohamed AI (2018) Barnacles mating optimizer: a bio-inspired algorithm for solving optimization problems. In: 2018 19th IEEE/ACIS international conference on software engineering, artificial intelligence, networking and parallel/distributed computing (SNPD). IEEE, pp 265–270

  8. Zhao W, Zhang Z, Wang L (2020) Manta ray foraging optimization: an effective bio-inspired optimizer for engineering applications. Eng Appl Artif Intell 87:103300

    Article  Google Scholar 

  9. Li S, Chen H, Wang M, Heidari AA, Mirjalili S (2020) Slime mould algorithm: a new method for stochastic optimization. Future Gener Comput Syst 111:300–323

    Article  Google Scholar 

  10. Hashim FA, Houssein EH, Hussain K, Mabrouk MS, Al-Atabany W (2021) Honey badger algorithm: new metaheuristic algorithm for solving optimization problems. Math Comput Simul 192:84–110

    Article  MathSciNet  MATH  Google Scholar 

  11. Abualigah L, Diabat A (2020) A comprehensive survey of the grasshopper optimization algorithm: results, variants, and applications. Neural Comput Appl 22:1–24

    Google Scholar 

  12. Abualigah L (2020) Group search optimizer: a nature-inspired meta-heuristic optimization algorithm with its results, variants, and applications. Neural Comput Appl 33:1–24

    Google Scholar 

  13. De Falco I, Della Cioppa A, Maisto D, Scafuri U, Tarantino E (2012) Biological invasion-inspired migration in distributed evolutionary algorithms. Inf Sci 207:50–65

    Article  Google Scholar 

  14. Holland JH et al (1992) Adaptation in natural and artificial systems: an introductory analysis with applications to biology, control, and artificial intelligence. MIT Press, Cambridge

    Book  Google Scholar 

  15. Rocca P, Oliveri G, Massa A (2011) Differential evolution as applied to electromagnetics. IEEE Antennas Propag Mag 53(1):38–49

    Article  Google Scholar 

  16. Yao X, Liu Y, Lin G (1999) Evolutionary programming made faster. IEEE Trans Evol Comput 3(2):82–102

    Article  Google Scholar 

  17. Juste KA, Kita H, Tanaka E, Hasegawa J (1999) An evolutionary programming solution to the unit commitment problem. IEEE Trans Power Syst 14(4):1452–1459

    Article  Google Scholar 

  18. Uymaz SA, Tezel G, Yel E (2015) Artificial algae algorithm (AAA) for nonlinear global optimization. Appl Soft Comput 31:153–171

    Article  Google Scholar 

  19. Kirkpatrick S, Gelatt CD, Vecchi MP (1983) Optimization by simulated annealing. Science 220(4598):671–680

    Article  MathSciNet  MATH  Google Scholar 

  20. Rashedi E, Nezamabadi-Pour H, Saryazdi S (2009) GSA: a gravitational search algorithm. Inf Sci 179(13):2232–2248

    Article  MATH  Google Scholar 

  21. Houssein EH, Saad MR, Hashim FA, Shaban H, Hassaballah M (2020) Lévy flight distribution: a new metaheuristic algorithm for solving engineering optimization problems. Eng Appl Artif Intell 94:103731

    Article  Google Scholar 

  22. Hashim FA, Hussain K, Houssein EH, Mabrouk MS, Al-Atabany W (2020) Archimedes optimization algorithm: a new metaheuristic algorithm for solving optimization problems. Appl Intell 25(3):263–282

    MATH  Google Scholar 

  23. Abualigah L, Diabat A, Mirjalili S, Abd Elaziz M, Gandomi AH (2021) The arithmetic optimization algorithm. Comput Methods Appl Mech Eng 376:113609

    Article  MathSciNet  MATH  Google Scholar 

  24. Ab Wahab MN, Nefti-Meziani S, Atyabi A (2015) A comprehensive review of swarm optimization algorithms. PLoS ONE 10(5):e0122827

    Article  Google Scholar 

  25. Kennedy J, Eberhart R (1995) Particle swarm optimization. In: Proceedings of ICNN’95-international conference on neural networks, vol 4. IEEE, pp 1942–1948

  26. Dorigo M, Maniezzo V, Colorni A (1996) Ant system: optimization by a colony of cooperating agents. IEEE Trans Syst Man Cybern Part B (Cybern) 26(1):29–41

    Article  Google Scholar 

  27. Krishnanand KN, Ghose D (2009) Glowworm swarm optimization for simultaneous capture of multiple local optima of multimodal functions. Swarm Intell 3(2):87–124

    Article  Google Scholar 

  28. Houssein EH, Hosney ME, Elhoseny M, Oliva D, Mohamed WM, Hassaballah M (2020) Hybrid Harris Hawks optimization with cuckoo search for drug design and discovery in chemoinformatics. Sci Rep 10(1):1–22

    Article  Google Scholar 

  29. Weiguo Z, Liying W, Zhenxing Z (2019) Artificial ecosystem-based optimization: a novel nature-inspired meta-heuristic algorithm. Neural Comput Appl 13:1–43

    Google Scholar 

  30. Wolpert DH, Macready WG (1997) No free lunch theorems for optimization. IEEE Trans Evol Comput 1(1):67–82

    Article  Google Scholar 

  31. Laith A (2020) Multi-verse optimizer algorithm: a comprehensive survey of its results, variants, and applications. Neural Comput Appl 32:1–21

    Google Scholar 

  32. Abdoh TH, Jouhare H (1996) The investigation of efficiency of stock price index of TSE. J Financ Res 13(11–12):1–22

    Google Scholar 

  33. Chakravarty S, Dash PK (2012) A PSO based integrated functional link net and interval type-2 fuzzy logic system for predicting stock market indices. Appl Soft Comput 12(2):931–941

    Article  Google Scholar 

  34. Houssein EH, Dirar M, Hussain K, Mohamed WM (2021) Artificial neural networks for stock market prediction: a comprehensive review. In: Metaheuristics in machine learning: theory and applications. pp 409–444

  35. Kodogiannis V, Lolis A (2002) Forecasting financial time series using neural network and fuzzy system-based techniques. Neural Comput Appl 11(2):90–102

    Article  Google Scholar 

  36. Houssein EH, Emam MM, Ali AA, Suganthan PN (2020) Deep and machine learning techniques for medical imaging-based breast cancer: a comprehensive review. Expert Syst Appl 167:114161

    Article  Google Scholar 

  37. Hussain K, Salleh MNM, Cheng S, Shi Y (2019) Metaheuristic research: a comprehensive survey. Artif Intell Rev 52(4):2191–2233

    Article  Google Scholar 

  38. Das SR, Mishra D, Rout M (2019) Stock market prediction using firefly algorithm with evolutionary framework optimized feature reduction for Oselm method. Expert Syst Appl X 4:100016

    Google Scholar 

  39. Stoean C, Paja W, Stoean R, Sandita A (2019) Deep architectures for long-term stock price prediction with a heuristic-based strategy for trading simulations. PLoS ONE 14(10):e0223593

    Article  Google Scholar 

  40. Sedighi M, Jahangirnia H, Gharakhani M, Farahani Fard S (2019) A novel hybrid model for stock price forecasting based on metaheuristics and support vector machine. Data 4(2):75

    Article  Google Scholar 

  41. Göçken Mustafa, Özçalıcı M, Boru A, Dosdoğru AT (2016) Integrating metaheuristics and artificial neural networks for improved stock price prediction. Expert Syst Appl 44:320–331

    Article  Google Scholar 

  42. Nayak SC, Misra BB (2019) A chemical-reaction-optimization-based neuro-fuzzy hybrid network for stock closing price prediction. Financ Innov 5(1):38

    Article  Google Scholar 

  43. Zhou J, Chen D (2021) Carbon price forecasting based on improved CEEMDAN and extreme learning machine optimized by sparrow search algorithm. Sustainability 13(9):4896

    Article  Google Scholar 

  44. Ji Y, Liew AW-C, Yang L (2021) A novel improved particle swarm optimization with long-short term memory hybrid model for stock indices forecast. IEEE Access 9:23660–23671

    Article  Google Scholar 

  45. Huang Y, He Z (2020) Carbon price forecasting with optimization prediction method based on unstructured combination. Sci Total Environ 725:138350

    Article  Google Scholar 

  46. Chandar SK (2021) Hybrid models for intraday stock price forecasting based on artificial neural networks and metaheuristic algorithms. Pattern Recognit Lett 147:124–133

    Article  Google Scholar 

  47. Houssein EH, Dirar M, Hussain K, Mohamed WM (2020) Assess deep learning models for Egyptian exchange prediction using nonlinear artificial neural networks. Neural Comput Appl 33:1–23

    Google Scholar 

  48. Montenegro C, Molina M (2019) Using deep neural networks for stock market data forecasting: an effectiveness comparative study. In: The international conference on advances in emerging trends and technologies. Springer, pp 399–408

    Google Scholar 

  49. Sahoo S, Mohanty MN (2020) Stock market price prediction employing artificial neural network optimized by gray wolf optimization. In: New paradigm in decision science and management. Springer, pp 77–87.

    Chapter  Google Scholar 

  50. Naik N, Mohan BR (2019) Study of stock return predictions using recurrent neural networks with LSTM. In: International conference on engineering applications of neural networks. Springer, pp 453–459

    Chapter  Google Scholar 

  51. Yu P, Yan X (2019) Stock price prediction based on deep neural networks. Neural Comput Appl 32:1–20

    Google Scholar 

  52. Pawar K, Jalem RS, Tiwari V (2019) Stock market price prediction using LSTM RNN. In: Emerging trends in expert applications and security. Springer, pp 493–503

    Chapter  Google Scholar 

  53. Bhowmick A, Rahman A, Rahman RM (2019) Performance analysis of different recurrent neural network architectures and classical statistical model for financial forecasting: a case study on DHAKA stock exchange. In: Computer science on-line conference. Springer, pp 277–286

    Google Scholar 

  54. Selvamuthu D, Kumar V, Mishra A (2019) Indian stock market prediction using artificial neural networks on tick data. Financ Innov 5(1):16

    Article  Google Scholar 

  55. Chung H, Shin K (2020) Genetic algorithm-optimized multi-channel convolutional neural network for stock market prediction. Neural Comput Appl 32(12):7897–7914

    Article  Google Scholar 

  56. Kim Taewook, Kim Ha Young (2019) Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data. PLoS ONE 14(2):e0212320

    Article  Google Scholar 

  57. Wang Q, Wei X, Huang X, Yang K (2019) Enhancing intraday stock price manipulation detection by leveraging recurrent neural networks with ensemble learning. Neurocomputing 347:46–58

    Article  Google Scholar 

  58. Orimoloye LO, Sung M-C, Ma T, Johnson JEV (2020) Comparing the effectiveness of deep feedforward neural networks and shallow architectures for predicting stock price indices. Expert Syst Appl 139:112828

    Article  Google Scholar 

  59. Ramezanian R, Peymanfar A, Ebrahimi SB (2019) An integrated framework of genetic network programming and multi-layer perceptron neural network for prediction of daily stock return: an application in Tehran stock exchange market. Appl Soft Comput 82:105551

    Article  Google Scholar 

  60. Cimino MG, Dalla Bona F, Foglia P, Monaco M, Prete CA, Vaglini G (2018) Stock price forecasting over adaptive timescale using supervised learning and receptive fields. In: International conference on mining intelligence and knowledge exploration. Springer, pp 279–288

    Chapter  Google Scholar 

  61. Xu B, Zhang D, Zhang S, Li H, Lin H (2018) Stock market trend prediction using recurrent convolutional neural networks. In: CCF international conference on natural language processing and Chinese computing. Springer, pp 166–177

    Google Scholar 

  62. Jadhav S, Dange B, Shikalgar S (2018) Prediction of stock market indices by artificial neural networks using forecasting algorithms. In: International conference on intelligent computing and applications. Springer, pp 455–464

    Chapter  Google Scholar 

  63. Hu H, Tang L, Zhang S, Wang H (2018) Predicting the direction of stock markets using optimized neural networks with google trends. Neurocomputing 285:188–195

    Article  Google Scholar 

  64. Hiransha M, Gopalakrishnan EA, Menon VK, Soman KP (2018) NSE stock market prediction using deep-learning models. Procedia Comput Sci 132:1351–1362

    Article  Google Scholar 

  65. Baek Y, Kim HY (2018) ModAugNet: a new forecasting framework for stock market index value with an overfitting prevention LSTM module and a prediction LSTM module. Expert Syst Appl 113:457–480

    Article  Google Scholar 

  66. Berradi Z, Lazaar M (2019) Integration of principal component analysis and recurrent neural network to forecast the stock price of casablanca stock exchange. Procedia Comput Sci 148:55–61

    Article  Google Scholar 

  67. Yu SL, Li Z (2018) Forecasting stock price index volatility with LSTM deep neural network. In: Recent developments in data science and business analytics. Springer, pp 265–272

    Chapter  Google Scholar 

  68. Malagrino LS, Roman NT, Monteiro AM (2018) Forecasting stock market index daily direction: a Bayesian network approach. Expert Syst Appl 105:11–22

    Article  Google Scholar 

  69. Zhang X, Tan Y (2018) Deep stock ranker: a LSTM neural network model for stock selection. In: International conference on data mining and big data. Springer, pp 614–623

    Chapter  Google Scholar 

  70. Shen G, Tan Q, Zhang H, Zeng P, Xu J (2018) Deep learning with gated recurrent unit networks for financial sequence predictions. Procedia Comput Sci 131:895–903

    Article  Google Scholar 

  71. Matkovskyy R, Bouraoui T (2019) Application of neural networks to short time series composite indexes: evidence from the nonlinear autoregressive with exogenous inputs (narx) model. J Quant Econ 17(2):433–446

    Article  Google Scholar 

  72. Balaji AJ, Ram DSH, Nair BB (2018) Applicability of deep learning models for stock price forecasting an empirical study on BANKEX data. Procedia Comput Sci 143:947–953

    Article  Google Scholar 

  73. Pang X, Zhou Y, Wang P, Lin W, Chang V (2018) An innovative neural network approach for stock market prediction. J Supercomput 76:1–21

    Google Scholar 

  74. Senapati MR, Das S, Mishra S (2018) A novel model for stock price prediction using hybrid neural network. J Inst Eng India Ser B 99(6):555–563

    Article  Google Scholar 

  75. Lachiheb O, Gouider MS (2018) A hierarchical deep neural network design for stock returns prediction. Procedia Comput Sci 126:264–272

    Article  Google Scholar 

  76. Dash R (2017) Performance analysis of an evolutionary recurrent legendre polynomial neural network in application to FOREX prediction. J King Saud Univ Comput Inf Sci 32:1000–1011

    Google Scholar 

  77. Chong E, Han C, Park FC (2017) Deep learning networks for stock market analysis and prediction: methodology, data representations, and case studies. Expert Syst Appl 83:187–205

    Article  Google Scholar 

  78. Das SR, Mishra D, Rout M (2017) A hybridized ELM-Jaya forecasting model for currency exchange prediction. J King Saud Univ Comput Inf Sci 32:345–366

    Google Scholar 

  79. Ho KY, Wang WW (2016) Predicting stock price movements with news sentiment: an artificial neural network approach. In: Artificial neural network modelling. Springer, pp 395–403

    Chapter  Google Scholar 

  80. Panapakidis IP, Dagoumas AS (2016) Day-ahead electricity price forecasting via the application of artificial neural network based models. Appl Energy 172:132–151

    Article  Google Scholar 

  81. Qiu M, Song Y, Akagi F (2016) Application of artificial neural network for the prediction of stock market returns: the case of the Japanese stock market. Chaos Solitons Fract 85:1–7

    Article  MathSciNet  Google Scholar 

  82. Jamous RA, El Seidy E, Bayoum BI (2016) A novel efficient forecasting of stock market using particle swarm optimization with center of mass based technique. Int J Adv Comput Sci Appl 7(4):342–347

    Google Scholar 

  83. Majumder M, Hussian MDA (2007) Forecasting of Indian stock market index using artificial neural network. Inf Sci 98–105

  84. Bharambe MM, Dharmadhikari SC (2017) Stock market analysis based on artificial neural network with big data. In: Proceedings of 8th post graduate conference for information technology

  85. Fayyad U, Piatetsky-Shapiro G, Smyth P (1996) The KDD process for extracting useful knowledge from volumes of data. Commun ACM 39(11):27–34

    Article  Google Scholar 

  86. Kumar A. Artificial neural networks for data mining. IASRI, New Delhi

  87. Enke D, Thawornwong S (2005) The use of data mining and neural networks for forecasting stock market returns. Expert Syst Appl 29(4):927–940

    Article  Google Scholar 

  88. Fayyad UM, Haussler D, Stolorz PE (1996) KDD for science data analysis: issues and examples. In: KDD. pp 50–56

  89. Ou P, Wang H (2009) Prediction of stock market index movement by ten data mining techniques. Mod Appl Sci 3(12):28–42

    Article  MATH  Google Scholar 

  90. Sharma A, Bhuriya D, Singh U (2017) Survey of stock market prediction using machine learning approach. In: 2017 International conference of electronics, communication and aerospace technology (ICECA), vol 2. IEEE, pp 506–509

  91. Woolridge JR, Snow CC (1990) Stock market reaction to strategic investment decisions. Strateg Manag J 11(5):353–363

    Article  Google Scholar 

  92. Babulo SAJ, Janaki B, Jeeva C (2014) Stock market indices prediction with various neural network models. Int J Comput Sci Mob Appl 2(3):42–46

    Google Scholar 

  93. Gandhmal DP, Kumar K (2019) Systematic analysis and review of stock market prediction techniques. Comput Sci Rev 34:100190

    Article  MathSciNet  Google Scholar 

  94. Vapnik VN (1997) The nature of statistical learning theory 2000

  95. Mercer J (1909) Xvi. functions of positive and negative type, and their connection the theory of integral equations. Philos Trans R Soc Lond Ser A 209(441–458):415–446

    MATH  Google Scholar 

  96. Mohammadi K, Shamshirband S, Anisi MH, Alam KA, Petković D (2015) Support vector regression based prediction of global solar radiation on a horizontal surface. Energy Convers Manag 91:433–441

    Article  Google Scholar 

  97. Shamshirband S, Petković D, Amini A, Anuar NB, Nikolić V, Ćojbašić Ž, Kiah MLM, Gani A (2014) Support vector regression methodology for wind turbine reaction torque prediction with power-split hydrostatic continuous variable transmission. Energy 67:623–630

    Article  Google Scholar 

  98. Schölkopf B, Smola AJ, Bach F et al (2002) Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT Press, Cambridge

    Google Scholar 

  99. Nazaroff WW, Cohen LA (2001) Environmental engineering science. Willey, Hoboken

    Google Scholar 

  100. Guo Z (2002) Review of indoor emission source models. Part 1. Overview. Environ Pollut 120(3):533–549

    Article  Google Scholar 

  101. Parouha RP, Das KN (2016) A memory based differential evolution algorithm for unconstrained optimization. Appl Soft Comput 38:501–517

    Article  Google Scholar 

  102. Beielstein T, Parsopoulos KE, Vrahatis MN (2002) Tuning PSO parameters through sensitivity analysis. Universitätsbibliothek Dortmund, Dortmund

    Google Scholar 

  103. Houssein EH, Hosney ME, Oliva D, Mohamed WM, Hassaballah M (2020) A novel hybrid Harris hawks optimization and support vector machines for drug design and discovery. Comput Chem Eng 133:106656

    Article  Google Scholar 

  104. Rout M, Majhi B, Majhi R, Panda G (2014) Forecasting of currency exchange rates using an adaptive ARMA model with differential evolution based training. J King Saud Univ Comput Inf Sci 26(1):7–18

    Google Scholar 

  105. Liu G, Wang X (2019) A new metric for individual stock trend prediction. Eng Appl Artif Intell 82:1–12

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to thank Information Technology Institute (ITI)\(^{3}\) for supporting this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Essam H. Houssein.

Ethics declarations

Conflict of interest

The authors declare that there is no conflict of interest.

Compliance with ethical standards

This article does not contain any studies with human participants or animals performed by any of the authors.

CRediT author statement

Essam H. Houssein was involved in supervision, methodology, conceptualization, software, data curation, formal analysis, writing, reviewing, and editing. Mahmoud Dirar took part in methodology, software, resources, data curation, writing the original draft, writing, reviewing, and editing. Laith Abualigah participated in conceptualization, formal analysis, writing reviewing, and editing. Waleed M. Mohamed had contributed to conceptualization, formal analysis, writing, reviewing, and editing. All authors read and approved the final paper.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Houssein, E.H., Dirar, M., Abualigah, L. et al. An efficient equilibrium optimizer with support vector regression for stock market prediction. Neural Comput & Applic 34, 3165–3200 (2022). https://doi.org/10.1007/s00521-021-06580-9

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-021-06580-9

Keywords

Navigation