Research on Commodity Futures Price Fluctuation Prediction Based on CNN-BiLSTM-Attention
Abstract
To meet the high-precision demand for short-term forecasting in the commodity futures market and address the challenges of sharp price fluctuations and nonlinear characteristics, this study takes seven representative commodity futures varieties in China (including rebar, iron ore, etc.) as research objects and constructs a prediction system for price fluctuations in the next 30 minutes based on 1-minute high-frequency main contract data. In the data preprocessing stage, multiple rounds of cleaning, outlier removal, sliding window sampling, and construction of multidimensional temporal features are conducted to ensure the information content and stability of the input sequence. The model is constructed with a progressive design: LSTM is used to establish a baseline, CNN-LSTM-Attention is adopted to enhance the ability of extracting key patterns, and finally the Reversible Instance Normalization (RevIN) mechanism is integrated to form the RevIN-CNN-LSTM-Attention main model. Experimental results show that the model performs excellently on the test set, with an average R² increase of more than 10% compared with the basic model and a significant decrease in RMSE, and the trend fitting effect is outstanding in varieties such as ferrosilicon and rebar. This paper also analyzes the advantages and limitations of the model, clarifies its applicable boundaries, and proposes subsequent optimization directions. The research indicates that the proposed model has good stability, adaptability, and generalization ability, providing an effective solution for high-frequency commodity futures prediction and reference value for relevant financial engineering modeling.
References
- Kim, T., Kim, J., Tae, Y., Park, C., Choi, J.-H., & Choo, J. (2022). Reversible instance normalization for accurate time-series forecasting against distribution shift. In International Conference on Learning Representations (ICLR). Virtual.
- Tan, Y. (2021). Research on CNN-BiLSTM stock price prediction model and quantitative trading strategy based on attention mechanism [Doctoral dissertation]. Harbin Institute of Technology.
- Financial time series analysis. (2012). In Turing Mathematics & Statistics Series. Beijing: Posts & Telecom Press.
- Sun, R. (n.d.). Research on US stock index price trend prediction model based on LSTM neural network [Doctoral dissertation]. Capital University of Economics and Business.
- Chen, H. Y., & Ren, B. M. (n.d.). A multivariate time series prediction model based on time-frequency feature fusion. Journal of Huazhong University of Science and Technology (Natural Science Edition).
- Liu, Z. (2024). Research on financial performance evaluation of Company B based on factor analysis method [Doctoral dissertation]. Hebei University of Geosciences.
- Yang, Q., & Wang, C. (2019). Research on global stock index prediction based on deep learning LSTM neural network. Statistical Research, 36(3), 13.
- Nonlinear analysis and prediction of Chinese stock market. (2005). [Doctoral dissertation]. Systems Engineering.
- Zhou, Q. (2022). Research on the application of CNN and LSTM in short-term price rise and fall prediction of cyclical stocks [Master’s thesis]. Zhejiang University.
- Cai, L. (2022). Research on lightweight of self-attention neural network model [Master’s thesis]. South China University of Technology.