skip to main content
10.1145/3647444.3652440acmotherconferencesArticle/Chapter ViewAbstractPublication PagesicimmiConference Proceedingsconference-collections
research-article

An Empirical Study on: Time Series Forecasting of Amazon Stock Prices using Neural Networks LSTM and GAN models

Published: 13 May 2024 Publication History

Abstract

The OHLCV (Open, High, Low, Close, Volume) data used in this study is used to forecast time series and anticipate stock price movement. We investigate a wide variety of models, including traditional statistical approaches and cutting-edge deep learning strategies combined with sentiment analysis, feature extraction, and hyperparameter tweaking. Instead of focusing on absolute stock prices, our main goal is to predict swings in stock prices, as this has been shown to produce more accurate outcomes. We start our research by obtaining historical Amazon stock data via the Yahoo API, and then we go on a thorough analytical journey. We generate features on the OHLCV data first, and then we design and test Fourier and Autoregressive Integrated Moving Average (ARIMA) models. We then switch to more sophisticated deep learning methods, using the pre-processed data to apply Long Short-Term Memory (LSTM) models. Interestingly, we add sentiment analysis to the LSTM study, which expands its scope and lets us consider market sentiment as a possible influencing factor. To guarantee the stability of our models, we use a careful train-test split technique and organize the data in a time series manner. The field of financial forecasting and trading methods will ultimately benefit from the insightful information our study's findings provide on the efficacy of different modeling techniques and their capacity to forecast stock price movements.

References

[1]
J. J. Wang, J. Z. Wang, Z. G. Zhang and S. P. Guo, “Stock index forecasting based on a hybrid model,” Omega, vol. 40, no. 6, pp. 758–766, 2012
[2]
M. A. Hossain, R. Karim, R. Thulasiram, N. D. Bruce and Y. Wang, “Hybrid deep learning model for stock price prediction,”in 2018 IEEE Symp. Series on Computational Intelligence (SSCI), Bangalore, India, IEEE, pp. 1837–1844, 2018.
[3]
M. Sedighi, H. Jahangirnia, M. Gharakhani and S. Farahani Fard, “A novel hybrid model for stock price forecasting based on metaheuristics and support vector machine,” Data, vol. 4, no. 2, pp. 75, 2019.
[4]
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.
[5]
M. Karim, M. Foysal and S. Das, “Stock price prediction using Bi-LSTM and GRU-based hybrid deep learning approach,” in Proc. of Third Doctoral Symp. on Computational Intelligence, Singapore, Springer, pp. 701–711, 2023
[6]
Q. M. Ilyas, K. Iqbal, S. Ijaz, A. Mehmood and S. Bhatia, “A hybrid model to predict stock closing price using novel features and a fully modified hodrick–Prescott filter,” Electronics, vol. 11, no. 21, pp. 3588, 2022.
[7]
Y. L. Lin, C. J. Lai and P. F. Pai, “Using deep learning techniques in forecasting stock markets by hybrid data with multilingual sentiment analysis,” Electronics, vol. 11, no. 21, pp. 3513, 2022.
[8]
K. Srijiranon, Y. Lertratanakham and T. Tanantong, “A hybrid framework using PCA, EMD and LSTM methods for stock market price prediction with sentiment analysis,” Applied Sciences, vol. 12, no. 21, pp. 10823, 2022.
[9]
G. R. Patra and M. N. Mohanty, “An LSTM-GRU based hybrid framework for secured stock price prediction,” Journal of Statistics and Management Systems, vol. 25, no. 6, pp. 1491–1499, 2022.
[10]
S. Verma, S. Prakash Sahu and T. Prasad Sahu, “Ensemble approach for stock market forecasting using ARIMA and LSTM model,” in Proc. of Third Int. Conf. on Intelligent Computing, Information and Control Systems, Singapore, Springer, pp. 65–80, 2022.
[11]
M. Durairaj and K. M. BH, “Statistical evaluation and prediction of financial time series using hybrid regression prediction models,” International Journal of Intelligent Systems and Applications in Engineering, vol. 9, no. 4, pp. 245–255, 2021.
[12]
A. Staffini, “Stock price forecasting by a deep convolutional generative adversarial network,” Frontiers in Artificial Intelligence, vol. 5, pp. 1–16, 2022.
[13]
A. Bhardwaj, Y. Narayan and M. Dutta, “Sentiment analysis for Indian stock market prediction using Sensex and nifty,” Procedia Computer Science, vol. 70, pp. 85–91, 2015.
[14]
A. Yadav, C. K. Jha, A. Sharan and V. Vaish, “Sentiment analysis of financial news using unsupervised approach,” Procedia Computer Science, vol. 167, pp. 589–598, 2020.
[15]
X. Jiawei and T. Murata, “Stock market trend prediction with sentiment analysis based on LSTM neural network,” in Int. Multiconf. of Engineers and Computer Scientists, Hong Kong, pp. 475–479, 2019.
[16]
P. Mehta, S. Pandya and K. Kotecha, “Harvesting social media sentiment analysis to enhance stock market prediction using deep learning,” PeerJ Computer Science, vol. 7, pp. e476, 2021. CSSE, 2023, vol.47, no.1 35
[17]
T. B. Shahi, A. Shrestha, A. Neupane and W. Guo, “Stock price forecasting with deep learning: A comparative study,” Mathematics, vol. 8, no. 9, pp. 1441, 2020.
[18]
K. S. Rekha and M. K. Sabu, “A cooperative deep learning model for stock market prediction using deep autoencoder and sentiment analysis,” PeerJ Computer Science, vol. 8, pp. e1158, 2022.
[19]
Singh, U. P., Saxena, V., Kumar, A., Bhari, P., & Saxena, D. (2022, December). Unraveling the Prediction of Fine Particulate Matter over Jaipur, India using Long Short-Term Memory Neural Network. In Proceedings of the 4th International Conference on Information Management & Machine Intelligence (pp. 1-5).
[20]
Kumar, A., Bhari, P. L., Singh, U. P., & Saxena, V. (2022, December). Comparative Study of different Machine Learning Algorithms to Analyze Sentiments with a Case Study of Two Person's Microblogs on Twitter. In Proceedings of the 4th International Conference on Information Management & Machine Intelligence (pp. 1-6).
[21]
Saxena, V., Saxena, D., & Singh, U. P. (2022, December). Security Enhancement using Image verification method to Secure Docker Containers. In Proceedings of the 4th International Conference on Information Management & Machine Intelligence (pp. 1-5).
[22]
Chauhan, M., Malhotra, R., Pathak, M., & Singh, U. P. (2012). Different aspects of cloud security. International Journal of Engineering Research and Applications, 2, 864-869.
[23]
Mittal, A. K., Singh, U. P., Tiwari, A., Dwivedi, S., Joshi, M. K., & Tripathi, K. C. (2015). Short-term predictions by statistical methods in regions of varying dynamical error growth in a chaotic system. Meteorology and Atmospheric Physics, 127, 457-465.
[24]
Singh, U. P., Mittal, A. K., Dwivedi, S., & Tiwari, A. (2015). Predictability study of forced Lorenz model: an artificial neural network approach. History, 40(181), 27-33.
[25]
Singh, U. P., Mittal, A. K., Dwivedi, S., & Tiwari, A. (2020). Evaluating the predictability of central Indian rainfall on short and long timescales using theory of nonlinear dynamics. Journal of water and Climate Change, 11(4), 1134-1149.
[26]
Singh, U., Pathak, M., Malhotra, R., & Chauhan, M. (2012). Secure communication protocol for ATM using TLS handshake. Journal of Engineering Research and Applications (IJERA), 2(2), 838-948.
[27]
Singh, U. P., & Mittal, A. K. (2021). Testing reliability of the spatial Hurst exponent method for detecting a change point. Journal of Water and Climate Change, 12(8), 3661-3674.
[28]
Tiwari, A., Mittal, A. K., Dwivedi, S., & Singh, U. P. (2015). Nonlinear time series analysis of rainfall over central Indian region using CMIP5 based climate model. Climate Change, 1(4), 411-417.

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Other conferences
ICIMMI '23: Proceedings of the 5th International Conference on Information Management & Machine Intelligence
November 2023
1215 pages
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 13 May 2024

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. ARIMA (Autoregressive Integrated Moving Average)
  2. Financial Forecasting
  3. High
  4. LSTM (Long Short-Term Memory)
  5. Low
  6. Neural Networks
  7. OHLV (Open
  8. Time series
  9. Volume)

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

ICIMMI 2023

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 67
    Total Downloads
  • Downloads (Last 12 months)67
  • Downloads (Last 6 weeks)13
Reflects downloads up to 05 Mar 2025

Other Metrics

Citations

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

HTML Format

View this article in HTML Format.

HTML Format

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media