基于双通道输入的CNN-BiLSTM模型的股价预测
Stock Price Prediction Using a Dual-Channel Input CNN-BiLSTM Model
摘要: 针对现有混合神经网络模型在处理多源时序数据时输入结构单一、难以有效融合不同频率特征的问题,提出一种基于双通道输入的CNN-BiLSTM股价预测模型。该模型设计双通道输入结构,分别处理5分钟级高频数据(开盘价、最高价、最低价、收盘价、成交量)和日级低频数据(日均价、日成交量、调整后收盘价):高频通道通过两层卷积神经网络(CNN)提取日内局部波动特征,低频通道直接输入双向长短期记忆网络(BiLSTM)捕捉长期趋势依赖,最后将双通道特征进行门控融合以完成股价预测。以贵州茅台(600519.SH) 2020年1月至2025年12月的交易数据为实证对象,采用50日滑动窗口预测未来5日收盘价。实验结果表明,所提模型在测试集上取得预测准确率为98.07%,显著优于仅使用日级数据的RNN、GRU、LSTM,仅使用分钟级数据的CNN-LSTM、单通道CNN-BiLSTM以及LSTM-Transformer等基准模型,验证了双通道输入结构在捕捉多尺度时序特征方面的有效性。研究为高频金融时序预测提供了新的模型输入端架构思路,对投资者的量化决策具有积极的参考价值。
Abstract: To address the problem that existing hybrid neural network models have a single input structure and cannot effectively fuse features of different frequencies when processing multi-source time series data, this paper proposes a CNN-BiLSTM stock price prediction model based on dual-channel input. The model designs a dual-channel input structure to separately process 5-minute high-frequency data (open price, high price, low price, close price, volume) and daily low-frequency data (daily average price, daily volume, adjusted close price). The high-frequency channel uses a two-layer convolutional neural network (CNN) to extract intraday local fluctuation features, while the low-frequency channel directly inputs data into a bidirectional long short-term memory network (BiLSTM) to capture long-term trend dependencies. Finally, the dual-channel features are fused via a gating mechanism to complete stock price prediction. Taking the trading data of Kweichow Moutai (600519.SH) from January 2020 to December 2025 as the empirical object, a 50-day sliding window is used to predict the closing price of the next five days. Experimental results show that the proposed model achieves a prediction accuracy of 98.07% on the test set, significantly outperforming baseline models such as RNN, GRU, LSTM using only daily data, CNN-LSTM using only minute-level data, single-channel CNN-BiLSTM, and LSTM-Transformer, verifying the effectiveness of the dual-channel input structure in capturing multi-scale temporal features. This study provides a novel model input architecture for high-frequency financial time series prediction and has positive reference value for investors’ quantitative decision-making.
文章引用:卢钟行, 张琴. 基于双通道输入的CNN-BiLSTM模型的股价预测[J]. 应用数学进展, 2026, 15(4): 246-257. https://doi.org/10.12677/aam.2026.154154

参考文献

[1] 赵迪, 蔡晓铭. 股市风云三十年[M]. 北京: 首都经济贸易大学出版社, 2021.
[2] Baruník, J. and Křehlík, T. (2016) Combining High Frequency Data with Non-Linear Models for Forecasting Energy Market Volatility. Expert Systems with Applications, 55, 222-242. [Google Scholar] [CrossRef
[3] Zeng, Z., Kaur, R., Siddagangappa, S., et al. (2023) Financial Time Series Forecasting Using CNN and Transformer. arXiv: 2304.04912.
[4] Althelaya, K.A., El-Alfy, E.M. and Mohammed, S. (2018) Evaluation of Bidirectional LSTM for Short-and Long-Term Stock Market Prediction. 2018 9th International Conference on Information and Communication Systems (ICICS), Irbid, 3-5 April 2018, 151-156. [Google Scholar] [CrossRef
[5] Ghosh, A., Bose, S., Maji, G., et al. (2019) Stock Price Prediction Using LSTM on Indian Share Market. EPiC Series in Computing, 63, 101-110.
[6] 黄星源. 基于改进LSTM算法的股票价格趋势预测研究[D]: [硕士学位论文]. 西安: 西安工业大学, 2024.
[7] Wang, C., Chen, Y., Zhang, S. and Zhang, Q. (2022) Stock Market Index Prediction Using Deep Transformer Model. Expert Systems with Applications, 208, Article ID: 118128. [Google Scholar] [CrossRef
[8] Muhammad, T., Aftab, A.B., Ibrahim, M., Ahsan, M.M., Muhu, M.M., Khan, S.I., et al. (2023) Transformer-Based Deep Learning Model for Stock Price Prediction: A Case Study on Bangladesh Stock Market. International Journal of Computational Intelligence and Applications, 22, Article ID: 2350013. [Google Scholar] [CrossRef
[9] Lu, W., Li, J., Li, Y., Sun, A. and Wang, J. (2020) A CNN-LSTM-Based Model to Forecast Stock Prices. Complexity, 2020, Article ID: 6622927. [Google Scholar] [CrossRef
[10] Nayyeri, N. and Mosavi, J. (2020) Deep Learning for Stock Market Prediction. Entropy, 22, Article 840.
[11] Kamijo, K. and Tanigawa, T. (1990). Stock Price Pattern Recognition—A Recurrent Neural Network Approach. 1990 IJCNN International Joint Conference on Neural Networks, San Diego, 17-21 June 1990, 215-221.[CrossRef
[12] Moghar, A. and Hamiche, M. (2020) Stock Market Prediction Using LSTM Recurrent Neural Network. Procedia Computer Science, 170, 1168-1173. [Google Scholar] [CrossRef
[13] Di Persio, L. and Honchar, O. (2017) Recurrent Neural Networks Approach to the Financial Forecast of Google Assets. International Journal of Mathematics and Computers in Simulation, 11, 7-13.
[14] Kraus, M. and Feuerriegel, S. (2017) Decision Support from Financial Disclosures with Deep Neural Networks and Transfer Learning. Decision Support Systems, 104, 38-48. [Google Scholar] [CrossRef
[15] Peng, Z. and Guo, P. (2022) A Data Organization Method for LSTM and Transformer When Predicting Chinese Banking Stock Prices. Discrete Dynamics in Nature and Society, 2022, Article ID: 7119678. [Google Scholar] [CrossRef
[16] 高欣. 基于Attention机制的CNN-LSTM概率预测模型的股指预测[J]. 现代信息科技, 2024, 8(12): 155-159, 163.
[17] Lu, W., Li, J., Wang, J. and Qin, L. (2021) A CNN-BiLSTM-AM Method for Stock Price Prediction. Neural Computing and Applications, 33, 4741-4753. [Google Scholar] [CrossRef
[18] Livieris, I.E., Pintelas, E. and Pintelas, P. (2020) A CNN-LSTM Model for Gold Price Time-Series Forecasting. Neural Computing and Applications, 32, 17351-17360. [Google Scholar] [CrossRef
[19] Liu, S., Zhang, C. and Ma, J. (2017) CNN-LSTM Neural Network Model for Quantitative Strategy Analysis in Stock Markets. In: Liu, D., Xie, S., Li, Y., Zhao, D. and El-Alfy, E.S., Eds., Neural Information Processing, Springer, 198-206. [Google Scholar] [CrossRef
[20] Li, H., Shen, Y. and Zhu, Y. (2018) Stock Price Prediction Using Attention-Based Multi-Input LSTM. Proceedings of Machine Learning Research, 95, 454-469.