改进LSTM框架的股票预测系统研究OA
Research on Stock Prediction System Based on Improved LSTM Algorithm
针对长短期记忆模型在股票预测中存在的单向建模偏差、噪声敏感及梯度消失问题,本文提出一种融合双向长短期记忆模型、多头注意力机制与残差连接的改进模型.该模型利用双向长短期记忆模型提取历史与未来信息,通过注意力机制强化关键时间步,残差连接则确保深层网络训练稳定性.基于2018-2025年A股30 只股票数据的实验表明,改进模型的均方误差为0.00016,较传统长短期记忆模型(0.00185)降低91%;实盘回测年化收益率达32%,显著优于基准策略.本研究为金融时间序列预测提供了有效的解决方案.
Addressing the issues of unidirectional modeling bias,noise sensitivity,and vanishing gradients in LSTM for stock prediction,this paper proposes an improved model that integrates bidirectional LSTM,multi-head attention mechanism,and residual connections.This model utilizes bidirectional LSTM to extract historical and future information,enhances key time steps through the attention mechanism,and ensures the stability of deep network training through residual connections.Experiments based on data from 30 A-shares from 2018 to 2025 show that the mean squared error of the improved model is 0.00016,a reduction of 91%compared to the traditional LSTM(0.00185);the annualized return rate of real-time backtesting reaches 32%,significantly outperforming the benchmark strategy.This study provides an effective solution for financial time series prediction.
吴悠
福建理工大学计算机科学与数学学院 福州 350118
信息技术与安全科学
长短期记忆模型注意力机制残差连接股票预测
Long Short-Term MemoryAttention MechanismResidual ConnectionStock Prediction
《福建电脑》 2026 (1)
1-6,6
评论