Research Article

Research on Stock Price Prediction Using Target Object Images Based on LSTM

Fangruo Wang*
Hebei GEO University, Shijiszhuang, China, 052161

* Corresponding author: [email protected]

Abstract

In recent years, the integration of computer vision and deep learning in the financial sector has become a research hotspot. Traditional stock price prediction primarily relies on time-series data, while individual investors in the market often make decisions by analyzing visual charts such as candlestick charts. Consequently, research utilizing stock price-related images as input has gradually emerged. This paper proposes an architecture based on the Long Short-Term Memory (LSTM) network to predict future trends using stock price images. By converting stock price information—including opening price, high price, low price, closing price into standardized images.Then employs the enhanced LSTM structure proposed in Sequencer (bidirectional LSTM, Bi-LSTM) for feature extraction and modeling, using machine learning to simulate human investment decisions. Experimental results demonstrate that this model not only outperforms traditional momentum strategies and short-term reversal strategies in stock price prediction accuracy but also maintains robust performance across varying market conditions and transaction delays. This research offers novel insights for stock price forecasting and validates the effectiveness of LSTM in processing image-based financial data.

Keywords: LSTM; Bi-LSTM; image prediction; stock price prediction; computer vision; deep learning
Published: November 5, 2025
DOI: 10.54254/2755-2721/2025.LD28972
Volume: ACE Vol.202
pp. 114-121
Download PDF

References

  1. Tatsunami Y, Taki M. Sequencer: Deep LSTM for Image Classification [J]. arXiv preprint arXiv: 2205.01972v4, 2023.
  2. Yufeng Shi, Yunchuan Sun. Quantitative Investment: Theory and Practice [M]. Shandong University Institute of Finance, 2024: 302-304.
  3. Lo, Andrew W, Harry Mamaysky, and Jiang Wang, 2000, Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation, The journal of finance 55, 1705–1765.
  4. Jiang J, Kelly B, Xiu D. Xiu-Re-Imagining Price Trends [J]. SSRN Electronic Journal, 2021.
  5. Hochreiter S, Schmidhuber J. Long short-term memory [J]. Neural computation, 1997, 9(8): 1735-1780.
  6. Schuster M, Paliwal K K. Bidirectional recurrent neural networks [J]. IEEE transactions on Signal Processing, 1997, 45(11): 2673-2681.
  7. Deep dive into bidirectional lstm, 2019. [Online] .Available: https: //www.i2tutorials.com/deep-dive-into-bidirectional -lstm/
  8. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, ukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, volume 30, 2017.
  9. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. In NeurIPS, volume 33, pages 1877–1901, 2020.
  10. Lucas Beyer, Olivier J Hé naff, Alexander Kolesnikov, Xiaohua Zhai, and Aä ron van den Oord. Are we done with imagenet? arXiv preprint arXiv: 2006.07159, 2020.
  11. Wonmin Byeon, Thomas M Breuel, Federico Raue, and Marcus Liwicki. Scene labeling with lstm recurrent neural networks. In CVPR, pages 3547‒ 3555, 2015.
  12. Qibin Hou, Zihang Jiang, Li Yuan, Ming-Ming Cheng, Shuicheng Yan, and Jiashi Feng. Vision permutator: A permutable mlp-like architecture for visual recognition. IEEE TPAMI, 2022.
  13. Sullivan R, Timmermann A, White H. Data-snooping, technical trading rule performance, and the bootstrap [J]. The Journal of Finance, 1999, 54(5): 1647-1691.
  14. Maas, Andrew L, Awni Y Hannun, and Andrew Y Ng, 2013, Rectifier nonlinearities improve neural network acoustic models, in Proc. icml, volume 30, 3.