TCNAttention-RAG: Stock Prediction and Fraud Detection Framework Based on Financial Report Analysis
Abstract
Due to the high volatility of financial markets and the prevalence of financial fraud, real-time stock market forecasting for listed companies remains a challenging task. To address these challenges, this study proposes TCNAttention-RAG, a hybrid deep learning framework integrating Temporal Convolutional Network (TCN), Multi-Layer Perceptron (MLP), Attention Mechanism, and Retrieval-Augmented Generation (RAG) for enhanced stock price forecasting. The model leverages TCN for temporal feature extraction, MLP for nonlinear representation, and Attention for feature weighting, while RAG dynamically retrieves key financial insights from corporate reports to improve predictive accuracy. Using NASDAQ-listed stock price data (2014–2020), combined with corporate financial reports, market transaction data, and macroeconomic indicators, a multi-dimensional dataset is constructed. Experimental results demonstrate that TCNAttention-RAG outperforms traditional models in accuracy and recall, effectively capturing stock price fluctuations. Despite its limitations in handling extreme market events, the model exhibits high reliability and predictive robustness. This study introduces a multi-modal data-driven approach to financial forecasting, offering insights into intelligent financial analysis and enhancing decision-making in volatile markets.
References
- Mintarya, L. N., Halim, J. N., Angie, C., Achmad, S., & Kurniawan, A. (2023). Machine learning approaches in stock market prediction: A systematic literature review. Procedia Computer Science, 216, 96-102.
- Lu, W., Li, J., Wang, J., & Qin, L. (2021). A CNN-BiLSTM-AM method for stock price prediction. Neural Computing and Applications, 33(10), 4741-4753.
- Gao, Y., Wang, R., & Zhou, E. (2021). Stock prediction based on optimized LSTM and GRU models. Scientific Programming, 2021(1), 4055281.
- Wan R, Mei S, Wang J, et al. Multivariate temporal convolutional network: A deep neural networks approach for multivariate time series forecasting[J]. Electronics, 2019, 8(8): 876.
- Dudukcu H V, Taskiran M, Taskiran Z G C, et al. Temporal Convolutional Networks with RNN approach for chaotic time series prediction[J]. Applied soft computing, 2023, 133: 109945.
- Yun, K. K., Yoon, S. W., & Won, D. (2021). Prediction of stock price direction using a hybrid GA-XGBoost algorithm with a three-stage feature engineering process. Expert Systems with Applications, 186, 115716.
- Hu, Z., Zhao, Y., & Khushi, M. (2021). A survey of forex and stock price prediction using deep learning. Applied System Innovation, 4(1), 9.
- Zhang, Q., Zhang, Y., Bao, F., Liu, Y., Zhang, C., & Liu, P. (2024). Incorporating stock prices and text for stock movement prediction based on information fusion. Engineering Applications of Artificial Intelligence, 127, 107377.
- Cuconasu, F., Trappolini, G., Siciliano, F., Filice, S., Campagnano, C., Maarek, Y., ... & Silvestri, F. (2024, July). The power of noise: Redefining retrieval for rag systems. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval (pp. 719-729).