Efficient Stock-Market Prediction Using Ensemble Support Vector Machine

  • 1 Department of Computer Science and Informatics, University of Energy and Natural Resources, Department of Computer Science, Sunyani Technical University, Sunyani, Ghana
  • 2 Department of Computer Science and Informatics, University of Energy and Natural Resources, Sunyani, Ghana
  • 3 Department of Computer Science and Informatics, University of Energy and Natural Resources, Sunyani, Ghana


Predicting stock-price remains an important subject of discussion among financial analysts and researchers. However, the advancement in technologies such as artificial intelligence and machine learning techniques has paved the way for better and accurate prediction of stock-price in recent years. Of late, Support Vector Machines (SVM) have earned popularity among Machine Learning (ML) algorithms used for predicting stock price. However, a high percentage of studies in algorithmic investments based on SVM overlooked the overfitting nature of SVM when the input dataset is of high-noise and high-dimension. Therefore, this study proposes a novel homogeneous ensemble classifier called GASVM based on support vector machine enhanced with Genetic Algorithm (GA) for feature-selection and SVM kernel parameter optimisation for predicting the stock market. The GA was introduced in this study to achieve a simultaneous optimal of the diverse design factors of the SVM. Experiments carried out with over eleven (11) years’ stock data from the Ghana Stock Exchange (GSE) yielded compelling results. The outcome shows that the proposed model (named GASVM) outperformed other classical ML algorithms (Decision Tree (DT), Random Forest (RF) and Neural Network (NN)) in predicting a 10-day-ahead stock price movement. The proposed (GASVM) showed a better prediction accuracy of 93.7% compared with 82.3% (RF), 75.3% (DT), and 80.1% (NN). It can, therefore, be deduced from the fallouts that the proposed (GASVM) technique puts-up a practical approach feature-selection and parameter optimisation of the different design features of the SVM and thus remove the need for the labour-intensive parameter optimisation.

If the inline PDF is not rendering correctly, you can download the PDF file here.

  • [1] Oussous, A. et al., Big Data Technologies: A Survey, Journal of King Saud University - Computer and Information Sciences, 2017

  • [2] Dosdoğru, A. T. et al., Assessment of Hybrid Artificial Neural Networks and Metaheuristics for Stock Market Forecasting, Ç.Ü. Sosyal Bilimler Enstitüsü Dergisi, 2018, (24) 63–78

  • [3] Nti, I. K., Adekoya, A. F., Weyori, B. A., A systematic review of fundamental and technical analysis of stock market predictions, Artificial Intelligence Review, 2019

  • [4] Zhou, X. et al., Stock Market Prediction on High-Frequency Data Using Generative Adversarial Nets, Mathematical Problems in Engineering, 2018

  • [5] Thanh, D. V., Minh H. N., Hieu, D. D., Building unconditional forecast model of Stock Market Indexes using combined leading indicators and principal components: application to Vietnamese Stock Market, Indian Journal of Science and Technology, 2018, (11)

  • [6] Lin Z., Modelling and forecasting the stock market volatility of SSE Composite Index using GARCH models, Future Generation Computer Systems, 2018, (79) 960–972

  • [7] Bousono-Calzon, C. et al., On the Economic Significance of Stock Market Prediction and the No Free Lunch Theorem, IEEE Access, 2019, (7) 75177–75188

  • [8] Pawar, K., Jalem, R. S., Tiwari, V., Stock Market Price Prediction Using LSTM RNN, Rathore V., Worring M., Mishra D., Joshi A., Maheshwari S. (eds) Emerging Trends in Expert Applications and Security. Advances in Intelligent Systems and Computing, 2019, (841), 493-503, Springer, Singapore

  • [9] Ślepaczuk, R, Zenkova M., Robustness of Support Vector Machines in Algorithmic Trading on Cryptocurrency Market, Central European Economic Journal, 2019, (5), 186–205

  • [10] Usmani, M. et al., Predicting Market Performance with Hybrid Model, 2018 3rd International Conference on Emerging Trends in Engineering, Sciences and Technology (ICEEST), IEEE, 2018

  • [11] Usmani, M. et al., Stock market prediction using machine learning techniques, 2016 3rd International Conference on Computer and Information Sciences (ICCOINS), IEEE, 2016, 322–327

  • [12] Chen Y., Hao Y., A feature weighted support vector machine and K-nearest neighbor algorithm for stock market indices prediction, Expert Systems with Applications, 2017, (80) 340–355

  • [13] Kumar I. et al., A Comparative Study of Supervised Machine Learning Algorithms for Stock Market Trend Prediction, 2018 Second International Conference on Inventive Communication and Computational Technologies (ICICCT), IEEE, 2018, 1003–1007.

  • [14] Devi, K. N., Bhaskaran, V. M., Kumar, G. P., Cuckoo optimized SVM for stock market prediction, 2015 International Conference on Innovations in Information, Embedded and Communication Systems (ICIIECS), IEEE, 2015

  • [15] Nayak, R. K., Mishra, D., Rath, A. K., A Naïve SVM-KNN based stock market trend reversal analysis for Indian benchmark indices, Applied Soft Computing Journal, 2015 (35), 670–680

  • [16] Pimprikar, R., Ramachadran, S., Senthilkumar, K., Use of machine learning algorithms and twitter sentiment analysis for stock market prediction, International Journal of Pure and Applied Mathematics, 2017, (115), 521–526

  • [17] Stanković, J., Marković, I., Stojanović, M., Investment Strategy Optimization Using Technical Analysis and Predictive Modeling in Emerging Markets, Procedia Economics and Finance, 2015, (19), 51–62

  • [18] Kim, K. J., Lee, K., Ahn, H., Predicting corporate financial sustainability using Novel Business Analytics, Sustainability (Switzerland), 2018, (11)

  • [19] Lin, Y., Guo, H., Hu, J., An SVM-based approach for stock market trend prediction, Proceedings of the International Joint Conference on Neural Networks, 2013

  • [20] Gonzalez, T. R., Padilha, A. C., Couto, A. D., Ensemble system based on genetic algorithm for stock market forecasting, 2015 IEEE Congress on Evolutionary Computation (CEC), 2015, 3102–3108

  • [21] Gurav, U., Sidnal, N., Predict Stock Market Behavior: Role of Machine Learning Algorithms, Advances in Intelligent Systems and Computing, 2018, (673), 383–394.

  • [22] Zhang, X. et al., A causal feature selection algorithm for stock prediction modeling, Neurocomputing, 2014, (142), 48–59

  • [23] Göçken, M. et al., Integrating metaheuristics and Artificial Neural Networks for improved stock price prediction, Expert Systems with Applications, 2016, (44), 320–331

  • [24] Inthachot, M., Boonjing, V. and Intakosum, S., Artificial Neural Network and Genetic Algorithm Hybrid Intelligence for Predicting Thai Stock Price Index Trend, Computational Intelligence and Neuroscience, 2016

  • [25] Ballings, M. et al., Evaluating multiple classifiers for stock price direction prediction, Expert Systems with Applications, 2015, (42) 7046–7056

  • [26] Zhao, Y., Li, J., Yu, L, A deep learning ensemble approach for crude oil price forecasting, Energy Economics, 2017, (66), 9–16

  • [27] Priya, P., Muthaiah, U., Balamurugan, M., Predicting Yield of the Crop Using Machine Learning Algorithm, International Journal of Engineering Sciences & Research Technology, 2018, (7)

  • [28] Bergquist, S. L. et al., Classifying Lung Cancer Severity with Ensemble Machine Learning in Health Care Claims Data, The 2nd Machine Learning for Healthcare Conference, 2017, 25–38

  • [29] Khairalla, M. A. et al., Short-Term Forecasting for Energy Consumption through Stacking Heterogeneous Ensemble Learning Model, Energies, 2018, (11)

  • [30] Nti, I. K., Adekoya, A. F., Weyori, B. A., Random Forest Based Feature Selection of Macroeconomic Variables for Stock Market Prediction, American Journal of Applied Sciences, 2019, (16), 200–212

  • [31] Vaghela, C., Bhatt, N., Patel, P. U, A Survey on Various Classification Techniques for Clinical Decision Support System, International Journal of Computer Applications, 2015, (116), 975–8887

  • [32] Nuwan, I. S, Genetic Algorithms: The Crossover-Mutation Debate, University of Colombo, 2005

  • [33] Rodriguez-Galiano, V. et al., Machine learning predictive models for mineral prospectivity: An evaluation of neural networks, random forest, regression trees and support vector machines, Ore Geology Reviews, 2015, (71), 804–818

  • [34] Pedregosa, F. et al., Scikit-learn, Journal of Machine Learning Research, 2011, (12), 2825–2830

  • [35] Bank of Ghana, Update on Banking Sector Reforms, 2019, 3–19. https://www.bog.gov.gh/privatecontent/Public_Notices/UPDATEONBANKINGSECTORREFORMS.pdf.

  • [36] Creamer G., Freund Y., Predicting performance and quantifying corporate governance risk for Latin American ADRs and banks, Financial Engineering and Applications. Cambridge: MIT, 2004

  • [37] Raza K., Prediction of Stock Market performance by using machine learning techniques, 2017 International Conference on Innovations in Electrical Engineering and Computational Technologies (ICIEECT), IEEE, 2017

  • [38] Patel, J. et al., Predicting stock and stock price index movement using Trend Deterministic Data Preparation and machine learning techniques, Expert Systems with Applications, 2015, (42), 259–268


Journal + Issues

Open Computer Science is an open access, peer-reviewed journal. The journal publishes research results in the following fields: algorithms and complexity theory, artificial intelligence, bioinformatics, networking and security systems,
programming languages, system and software engineering, and theoretical foundations of computer science.