Work

Research on Stock Classification and Prediction Based on LSTM Model

Year: 2025
Type: article
Abstract: 本文以中国A股上市银行为研究对象,构建了一个融合PCA降维、DTW相似度分析与层次聚类技术的金融评价框架,并结合LSTM模型对股票价格走势进行趋势预测。首先,基于5年财务与市场数据,利用主成分分析提取银行关键特征,并应用动态时间规整算法量化银行间时间序列相似度。随后,采用加权DTW距离与层次聚类相结合的方法将银行划分为五类,并为每类构建加权指数。在此基础上,引入长短期记忆网络(LSTM)对各类指数进行预测建模。实证结果显示,该方法在训练集上取得了R2超过0.93的拟合度,测试集多数类别的R2也稳定在0.80以上,部分类别预测精度接近0.89,验证了分类结构与模型构建的有效性。该研究为金融时序建模与行业板块化评价提供了新的思路与实证依据。 Taking Chinese A-share listed banks as the research object, this paper constructs a financial evaluation framework integrating PCA dimensionality reduction, DTW similarity analysis and hierarchical clustering, and combines it with an LSTM model for trend prediction of stock price movements. First, based on 5-year financial and market data, key bank characteristics are extracted using principal component analysis, and the dynamic time regularization algorithm is applied to quantify the time series similarity among banks. Subsequently, a combination of weighted DTW distance and hierarchical clustering is used to classify banks into five categories, and a weighted index is constructed for each category. On this basis, the Long Short-Term Memory (LSTM) network is introduced to predictively model the indices for each category. The empirical results show that the method achieves a goodness of fit of R2 over 0.93 on the training set, and most categories of the test set are also stabilized above 0.80, and the prediction accuracy of some categories is close to 0.89, which verifies the validity of the categorization structure and the model construction. This study provides new ideas and empirical basis for financial time series modeling and industry segmentation evaluation.
Author: 秉基 王
Language: English
Open Access status: bronze
OpenAlex ID: W4413035932
FWCI:
Cites: 9
Cited by:
Related to: 10