Skip to main content

Comparative Study of CNN and LSTM on Short-Term Future Stock Price Prediction

  • Conference paper
  • First Online:
Proceedings of Data Analytics and Management (ICDAM 2023)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 786))

Included in the following conference series:

  • 165 Accesses

Abstract

Stock market prediction is a practice of forecasting the company’s future stock values. A few years back, it was very challenging even for the expert analysts to project stock prices for various companies, but in the recent years, it has become easier to predict future stock values as people have started assigning more time to stock price prediction using various algorithms like SVM, LSTM, CNN, and RNN. So, in this context, an idea of comparative study of two frequently used ML algorithms like convolutional neural networks and long short-term memory is being suggested for stock price forecasting. To conduct this research, the network is trained by using the input data of previous years to predict the prospect value of the company’s stock and provide a graphical outcome that compares the actual prices and prices predicted using the model. The comparison of the two methods will be based on specific criteria that are required for obtaining a model. The major factors needed for implementation are open and closed pricing. Moreover, the RMSE, R2 score, and accuracy values for both models are compared for both open and closed prices in this study. The use of parameters will give us an overview on these two models which will define future global trade and economic growth of a country. Based on the results of the experiment, it has been observed that it is more reliable to use LSTM which gives an accuracy of 99.68% for open price and 99.89% for close price prediction than using CNN which gives 99.07% for open price and 97.89% for close price prediction.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Kranthi VSR (2018) Stock market prediction using machine learning. Int Res J Eng Technol 5(10)

    Google Scholar 

  2. Pramod, B. S., Mallikarjuna, S. P. M (2020) Stock price prediction using LSTM. Test Eng Manag 5246–5251

    Google Scholar 

  3. Jiabao L (2022) The comparison of LSTM, LGBM, and CNN in stock volatility prediction. International conference on financial innovation and economic development 2022, vol 648

    Google Scholar 

  4. Achyut G, Soumik B, Giridhar M, Narayan CD, Soumya S (2020) Stock price prediction using LSTM on Indian share market. International conference on computer applications in industry and engineering 2020, vol 63, pp 101–110

    Google Scholar 

  5. Shen J, Shafiq MO (2020) Short-term stock market price trend prediction using a comprehensive deep learning system. J Big Data

    Google Scholar 

  6. Payal S, Yogya T, Prof. Deepa K (2021) Machine learning approaches in stock price prediction: a systematic review. International conference on artificial intelligence, computational electronics and communication system 2021

    Google Scholar 

  7. Shreya P (2022) Stock price prediction using machine learning algorithms. Int J Res Appl Sci Eng Technol 10(01)

    Google Scholar 

  8. Sidra M, Jaydip S (2020) Stock price prediction using CNN and LSTM-based deep learning models. International conference on decision aid sciences and applications 2020

    Google Scholar 

  9. Nusrat R, Majid BM, Tasleem A, Sparsh S, Saurabh S, Satyabrata A, Hee CK (2021) Stock market prediction using machine learning techniques: a decade survey on methodologies, recent developments, and future directions. Mult Digital Publishing Inst 10(21)

    Google Scholar 

  10. Troy JS, John JR, Thomas HR, Huang Y-H (2020) Machine learning stock market prediction studies: review and research directions. J Int Technol Inf Manage 28(4)

    Google Scholar 

  11. Ajinkya R, Aayush K, Aniket R, Nilima K (2021) Stock market price prediction and analysis. Int J Eng Res Technol 10(06)

    Google Scholar 

  12. Jiake L (2021) Research on market stock index prediction based on network security and deep learning. Hindawi security and communication networks 2021

    Google Scholar 

  13. Raj GT, Ambuj KA, Nishant G, Aman A, Nikita V (2022) Conceptualization of effective algorithm for minimizing power consumption in cloud servers. 2022 11th international conference on system modeling & advancement in research trends (SMART). Moradabad, India, pp 445–449

    Google Scholar 

  14. Abhineet A, Naresh KT, Abdul Wassay M, Yousef AS, Shikha M (2021) Application and uses of big data analytics in different domain. Machine intelligence and data science applications. Proceedings of MIDAS 2021, vol 132, pp 481–500

    Google Scholar 

  15. Rao PS, Srinivas K, Mohan AK (2020) A survey on stock market prediction using machine learning techniques. In: ICDSMLA 2019: proceedings of the 1st international conference on data science, machine learning and applications. Springer Singapore, pp 923–931

    Google Scholar 

  16. Malti B, Apoorva G, Apoorva C (2022) Stock market prediction with high accuracy using machine learning techniques. International conference on innovative data communication technology and application 2022, pp 247–265

    Google Scholar 

  17. Siddhesh K, Anvit K, Shubham K, Deepali P (2022) Study and analysis of stock market prediction techniques. ITM web of conferences 2022

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Pradeepta Kumar Sarangi .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Madaan, D., Gupta, T., Rani, L., Sahoo, A.K., Sarangi, P.K. (2024). Comparative Study of CNN and LSTM on Short-Term Future Stock Price Prediction. In: Swaroop, A., Polkowski, Z., Correia, S.D., Virdee, B. (eds) Proceedings of Data Analytics and Management. ICDAM 2023. Lecture Notes in Networks and Systems, vol 786. Springer, Singapore. https://doi.org/10.1007/978-981-99-6547-2_12

Download citation

Publish with us

Policies and ethics