Skip to main content
Log in

Competitive feedback particle swarm optimization enabled deep recurrent neural network with technical indicators for forecasting stock trends

  • Regular Paper
  • Published:
International Journal of Intelligent Robotics and Applications Aims and scope Submit manuscript

Abstract

The stock market prices are dynamic, thus remaining a major challenge in forecasting future stock trends. The Competitive Feedback Particle Swarm Optimization-based Deep Recurrent Neural Network (CFPSO-based Deep RNN) is created to ensure an efficient forecast of the stock market. The forecasting is done concerning the precedent and up to date status of the market. First, the input is submitted to the features extraction phase to extract technical indicators, and then the extracted practical indicators are used to forecast stock market movements. In addition, feature fusion and the data augmentation process effectively enhance the prediction quality. Finally, the Deep RNN classifier is accomplished in the forecast module, where the preparation method of the Deep RNN is performed using a developed optimization algorithm named CFPSO. The developed CFPSO is planned by hybridizing the Competitive Swarm Feedback Algorithm (CSFA) and Particle Swarm Optimization (PSO). The implementation of the proposed work is done in PYTHON. The developed CFPSO-based Deep RNN exhibits superior performance based on MAE, MSE, RMSE, accuracy, sensitivity and specificity with values of 0.136, 0.107, 0.246, 0.963, 0.957 and 0.980, respectively.

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
Fig. 9
Fig. 10

Similar content being viewed by others

Availability of data and materials

The datasets analyzed during the current study are available in the Stock Market Data repository, https://www.moneycontrol.com/stocks/histstock.php?ex=N&sc_id=AMF&mycomp=Apple%20Mutual%20Fund.

References

  • Al Hajri, E., Hafeez, F., Ameer Azhar, N.V.: Fully automated classroom attendance system. Int. J. Interact. Mob. Technol. 13(8), 95–106 (2019)

    Article  Google Scholar 

  • Anandkumar, R.: Hybrid fuzzy logic and artificial Flora optimisation algorithm-based two tier cluster head selection for improving energy efficiency in WSNs. Peer-to-Peer Netw. Appl. 14, 2072–2083 (2021)

    Article  Google Scholar 

  • Binu, D., Kariyappa, B.S.: RideNN: a new rider optimisation algorithm-based neural network for fault diagnosis in analog circuits. IEEE Trans. Instrum. Meas. 68(1), 2–26 (2018)

    Article  Google Scholar 

  • Bootstrapping technique taken from https://machinelearningmastery.com/a-gentle-introduction-to-the-bootstrap-method/

  • Buettner, R.: Predicting user behavior in electronic markets based on personality-mining in large online social networks: a personality-based product recommender framework. Int. J. Netw. Bus. 27(3), 247–265 (2016)

    Google Scholar 

  • Carta, S., Ferreira, A., Podda, A.S., Recupero, D.R., Sanna, A.: Multi-DQN: an ensemble of deep Q-learning agents for stock market forecasting. Expert Syst. Appl. 164, 113820 (2021)

    Article  Google Scholar 

  • Cervelló-Royo, R., Guijarro, F.: Forecasting stock market trend: a comparison of machine learning algorithms. Finan. Markets Valuation 6(1), 37–49 (2020)

    Article  Google Scholar 

  • Chen, W., Jiang, M., Zhang, W.G., Chen, Z.: A novel graph convolutional feature based convolutional neural network for stock trend prediction. Inf. Sci. 556, 67–94 (2021)

    Article  MathSciNet  Google Scholar 

  • Cheng, Q.Q., Jin, Y.: A competitive swarm optimiser for large scale optimisation. IEEE Trans. Cybern. 45(2), 191–204 (2014)

    Article  Google Scholar 

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

    Article  Google Scholar 

  • Dey, P.P., Nahar, N., Hossain, B.M.: Forecasting stock market trend using machine learning algorithms with technical indicators. Int. J. Inf. Technol. Comp. Sci. 12(3), 32–38 (2020)

    Google Scholar 

  • Duan, G., Lin, M., Wang, H., Xu, Z.: Deep neural networks for stock price prediction. In: 2022 14th International Conference on Computer Research and Development (ICCRD), (2022)

  • Garcia, F., Guijarro, F., Oliver, J., Tamosiuniene, R.: Hybrid fuzzy neural network to predict price direction in the German dax-30 index. Technol. Econ. Dev. Econ. 24(6), 2161–2178 (2018)

    Article  Google Scholar 

  • Hafeez, F., Sheikh, U.U., Alkhaldi, N., Al Garni, H.Z., Arfeen, Z.A., Khalid, S.A.: Insights and strategies for an autonomous vehicle with a sensor fusion innovation: a fictional outlook. IEEE Access 8, 135162–135175 (2020)

    Article  Google Scholar 

  • Hafeez, F., Ullah Sheikh, U., Mas’ ud, A.A., Al-Shammari, S., Hamid, M., Azhar, A.: Application of the theory of planned behavior in autonomous vehicle–pedestrian interaction. Appl. Sci. 12(5), 2574 (2022)

    Article  Google Scholar 

  • Haq, A.U., Zeb, A., Lei, Z., Zhang, D.: Forecasting daily stock trend using multi-filter feature selection and deep learning. Expert Syst. Appl. 168, 114444 (2021)

    Article  Google Scholar 

  • Inoue, M., Inoue, S., Nishida, T.: Deep recurrent neural network for mobile human activity recognition with high throughput. Artif. Life Robot. 23(2), 173–185 (2018)

    Article  Google Scholar 

  • Kelotra, A., Pandey, P.: Stock market prediction using optimised deep-convlstm model. Big Data 8(1), 5–24 (2020)

    Article  Google Scholar 

  • Krauss, C., Do, X.A., Huck, N.: Deep neural networks, gradient-boosted trees, random forests: statistical arbitrage on the S&P 500. Eur. J. Oper. Res. 259(2), 689–702 (2017)

    Article  MATH  Google Scholar 

  • Kumar Chandar, S.: Fusion model of wavelet transform and adaptive neuro fuzzy inference system for stock market prediction. J. Ambient Intell. Human. Comput. (2019). https://doi.org/10.1007/s12652-019-01224-2

    Article  Google Scholar 

  • Kunimoto, R., Vogt, M., Bajorath, J.: Maximum common substructure-based Tversky index: an asymmetric hybrid similarity measure. J. Comput. Aided Mol. Des. 30(7), 523–531 (2016)

    Article  Google Scholar 

  • Lee, S.J., Ahn, J.J., Oh, K.J., Kim, T.Y.: Using rough set to support investment strategies of real-time trading in futures market. Appl. Intell. 32(3), 364–377 (2010)

    Article  Google Scholar 

  • Lee, J., Kim, R., Koh, Y., Kang, J.: Global stock market prediction based on stock chart images using deep Q-network. IEEE Access 7, 167260–167277 (2019)

    Article  Google Scholar 

  • Li, Q.Q., He, Z.C., Li, E.: The feedback artificial tree (FAT) algorithm. Soft Comput. 24, 13413–13440 (2020)

    Article  Google Scholar 

  • Lu, R., Lu, M., Lu, M.: Stock trend prediction algorithm based on deep recurrent neural network. Wireless Commun. Mobile Comput. 2021, 1–10 (2021)

    Google Scholar 

  • Malkiel, B.G., Fama, E.F.: Efficient capital markets: a review of theory and empirical work. J. Financ. 25(2), 383–417 (1970)

    Article  Google Scholar 

  • Menaka, A., Raghu, V., Dhanush, B.J., Devaraju, M., Kumar, M.A.: Stock market trend prediction using hybrid machine learning algorithms. Int. J. Recent Adv. Multidiscip. Top. 2(4), 82–84 (2021)

    Google Scholar 

  • Mosavi, A., Vaezipour, A.: Developing Effective Tools for Predictive Analytics and Informed Decisions. Technical Report. University of Tallinn, Tallinn (2013)

    Google Scholar 

  • Pang, X., Zhou, Y., Wang, P., Lin, W., Chang, V.: An innovative neural network approach for stock market prediction. J. Supercomput. 76(3), 2098–2118 (2020)

    Article  Google Scholar 

  • Sharkawy, A.-N., Koustoumpardis, P.N., Aspragathos, N.: A recurrent neural network for variable admittance control in human–robot cooperation: simultaneously and online adjustment of the virtual damping and Inertia parameters. Int. J. Intell. Robot. Appl. 4, 441–464 (2020)

    Article  Google Scholar 

  • Shynkevich, Y., McGinnity, T.M., Coleman, S.A., Belatreche, A., Li, Y.: Forecasting price movements using technical indicators: investigating the impact of varying input window length. Neurocomputing 264, 71–88 (2017)

    Article  Google Scholar 

  • Stock Market Data, https://www.moneycontrol.com/stocks/histstock.php?ex=N&sc_id=AMF&mycomp=Apple%20Mutual%20Fund. Accessed April 2021

  • Trelea, I.C.: The particle swarm optimisation algorithm: convergence analysis and parameter selection. Inf. Process. Lett. 85(6), 317–325 (2003)

    Article  MathSciNet  MATH  Google Scholar 

  • Weng, B., Ahmed, M.A., Megahed, F.M.: Stock market one-day ahead movement prediction using disparate data sources. Expert Syst. Appl. 79, 153–163 (2017)

    Article  Google Scholar 

  • Xu W, Liu W, Xu C, Bian J, Yin J, Liu TY (2019) REST: relational event-driven stock trend forecasting. In: Proceedings of the Web Conference, pp. 1–10

  • Zhong, X., Enke, D.: Forecasting daily stock market return using dimensionality reduction. Expert Syst. Appl. 67, 126–139 (2017)

    Article  Google Scholar 

Download references

Funding

Not applicable.

Author information

Authors and Affiliations

Authors

Contributions

NYV conceived the presented idea and designed the analysis. Also, he carried out the experiment and wrote the manuscript with support from SP and TAK. All authors discussed the results and contributed to the final manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Nagarjun Yadav Vanguri.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Ethical approval

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

Consent to participate

Not applicable.

Consent to publish

Not applicable.

Additional information

Publisher's Note

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

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Vanguri, N.Y., Pazhanirajan, S. & Kumar, T.A. Competitive feedback particle swarm optimization enabled deep recurrent neural network with technical indicators for forecasting stock trends. Int J Intell Robot Appl 7, 385–405 (2023). https://doi.org/10.1007/s41315-022-00250-2

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s41315-022-00250-2

Keywords

Navigation