Stock Price Prediction of Apple Inc. Based on LSTM Model: An Application of Artificial Intelligence in Individual Stock Analysis
DOI:
https://doi.org/10.71222/5hq2rh34Keywords:
artificial intelligence, LSTM, stock price prediction, Apple Inc., individual stock analysis, deep learningAbstract
This paper explores the potential of artificial intelligence in financial forecasting by applying a Long Short-Term Memory (LSTM) neural network to the task of predicting Apple Inc. (AAPL) stock prices. Using historical daily closing prices from August 2020 to August 2023, the model was trained and tested under a structured framework of data preprocessing, normalization, and sequential input construction. The forecasting performance was evaluated with widely used error measures, including Mean Squared Error (MSE), Mean Absolute Error (MAE), and Root Mean Squared Error (RMSE). Experimental results indicate that the LSTM model effectively captures sequential dependencies and nonlinear dynamics within the time series, generating predictions that closely align with observed prices. While the model demonstrates high accuracy in relatively stable market conditions, its reliance on univariate input limits adaptability to abrupt market fluctuations and external influences such as macroeconomic shifts. These findings suggest that LSTM-based models can serve as valuable tools for supporting individual stock analysis, but their effectiveness depends on stock-specific data availability and market characteristics. Future work may extend this framework by incorporating multi-source financial indicators and enhancing model interpretability to achieve broader practical relevance.
References
1. M. Mehdi, M. F. Nasim, and M. Q. Munir, "Comparative Risk Analysis and Price Prediction of Corporate Shares Using Deep Learning Models like LSTM and Machine Learning Models," J. Comput. Biomed. Informatics, vol. 7, no. 2, 2024.
2. H. M. Tan et al., "Comparing LSTM models for stock market prediction: a case study with apple’s historical prices," in Int. Conf. Nature Comput. Commun., Cham: Springer Nature Switzerland, 2023, pp. 12-20, doi: 10.1007/978-3-031-59462-5_12.
3. I. Singh et al., "LSTM Networks for Improved Stock Price Prediction: A Comparison of Apple, Microsoft, and Amazon Stocks," in Proc. 2024 Int. Conf. Comput. Intell. Comput. Appl., vol. 1, IEEE, 2024, doi: 10.1109/ICCICA60014.2024.10585135.
4. R. Qi, "Research on the Application of Robo-Advisory Systems in Personal Wealth Management: A Case Study of Middle-Class Households in the United States," Econ. Manag. Innov., vol. 2, no. 4, pp. 46–55, 2025.
5. Y. He, X. Zeng, H. Li, and W. Wei, “Application of LSTM model optimized by individual-ordering-based adaptive genetic algorithm in stock forecasting,” Int. J. Intell. Comput. Cybern., vol. 16, no. 2, pp. 277–294, 2023, doi: 10.1108/IJICC-04-2022-0104.
6. R. Qi, "An Empirical Study on Credit Risk Assessment Using Machine Learning: Evidence from the Kaggle Credit Card Fraud Detection Dataset," J. Comput. Signal Syst. Res., vol. 2, no. 5, pp. 48–64, 2025.
7. V. Chang, Q. A. Xu, A. Chidozie, and H. Wang, "Predicting economic trends and stock market prices with deep learning and advanced machine learning techniques," Electronics, vol. 13, no. 17, p. 3396, 2024, doi: 10.3390/electronics13173396.
8. R. Qi, “Loan Default Prediction and Feature Importance Analysis Based on the XGBoost Model”, Eur. J. Bus. Econ. Manag., vol. 1, no. 2, pp. 141–149, Jul. 2025.
9. M. I. K. Jabed, "Stock market price prediction using machine learning techniques," Am. Int. J. Sci. Eng. Res., vol. 7, no. 1, pp. 1–6, 2024, doi: 10.46545/aijser.v7i1.308.
10. H. Smith, "The utilization of Artificial Intelligence to predict Apple Inc. stock price," J. High School Sci., vol. 8, no. 3, pp. 16–29, 2024.
11. Z. Li et al., "Stock market analysis and prediction using LSTM: A case study on technology stocks," Innov. Appl. Eng. Technol., 2023, pp. 1-6, doi: 10.62836/iaet.v2i1.162.
12. S. A. Panchal, L. Ferdouse, and A. Sultana, "Comparative analysis of arima and lstm models for stock price prediction," in Proc. 2024 IEEE/ACIS 27th Int. Conf. Softw. Eng., Artif. Intell., Netw. Parallel/Distrib. Comput. (SNPD), IEEE, 2024, doi: 10.1109/SNPD61259.2024.10673919.
13. T. H. Aldhyani and A. Alzahrani, "Framework for predicting and modeling stock market prices based on deep learning algo-rithms," Electronics, vol. 11, no. 19, p. 3149, 2022, doi: 10.3390/electronics11193149.
14. S. Yang, "The Impact of Continuous Integration and Continuous Delivery on Software Development Efficiency," J. Comput. Signal Syst. Res., vol. 2, no. 3, pp. 59–68, Apr. 2025, doi: 10.71222/pzvfqm21.
15. K. Pawar, R. S. Jalem, and V. Tiwari, "Stock market price prediction using LSTM RNN," in Emerg. Trends Expert Appl. Sec.: Proc. ICETEAS 2018, Singapore: Springer Singapore, 2018, pp. 493–503, doi: 10.1007/978-981-13-2285-3_58.
16. H. Wang, "Stock price prediction based on machine learning approaches," in Proc. 3rd Int. Conf. Data Sci. Inf. Technol., 2020, doi: 10.1145/3414274.3414275.
17. A. Chaudhary et al., "Stock Price Prediction of Tesla & Apple using LSTM," ITM Web Conf., vol. 56, EDP Sciences, 2023.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Ruoyu Qi, Liao Hu (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.