{'fraction_non_alphanumeric': 0.020348837209302327, 'fraction_numerical': 0.0011627906976744186, 'mean_word_length': 4.975694444444445, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Trend Forecast of Shanghai Crude Oil Futures

The dominant position in crude oil pricing affects a country’s energy and economic security. We construct different time-series forecasting models to analyze the long-term trends of Shanghai crude oil futures and guide current price trading. First, we built a classic ARIMA model as the benchmark. It is a good choice for short-term investors but does not apply to long-term trend prediction. We propose an improved HW-Prophet model that can maximize its advantages in selecting and reconstructing mutation points and reduce the forecast error by approximately 22%. The Prophet model is then introduced into the prediction of futures price series, and the Haar wavelet and KS (HWKS) algorithm and sliding window are used to optimize the change-point selection of the Prophet model. Finally, we created different combinations of long short-term memory (LSTM) and HW-Prophet models based on residual correction and optimal weighting. The results showed that the combined residual correction method was unsuitable for the two single models in this study. Because the residual sequence predicted by the HW-Prophet model is similar to white noise, it is difficult for LSTM to learn the effective dynamic laws from it. By minimizing the error sum of squares to solve the optimal weight coefficients and combining the two models linearly, the prediction advantages of a single model in different intervals can be effectively transmitted, and the prediction accuracy is greatly improved. The HW-Prophet-LSTM combination model constructed in this study based on the optimal weight is currently one of the best models for predicting the long-term trends of Shanghai crude oil futures.