Abstract:In the multi-energy complementary pumping unit system, predicting the motor power of the pumping unit is an important basis for realizing energy optimization scheduling. The reciprocating movement of the pumping unit causes the motor power to show obvious periodic characteristics, but due to random disturbances such as changes in well conditions, its power also shows significant nonlinearity and volatility. It is difficult for traditional mathematical modeling methods to effectively capture such complex time-varying characteristics. Therefore, a power prediction model for pumping unit motors based on GWO-CNN-Attention-LSTM is proposed. The convolutional neural network (CNN) module is responsible for extracting local nonlinear characteristics of the power signal of the pumping unit, the long short-term memory (LSTM) network captures the periodic pattern and long-term time dependence of the power sequence, the attention mechanism dynamically identifies the key factors affecting the random fluctuation of power, and the grey wolf optimization (GWO) algorithm automatically optimizes network hyperparameters. The study uses data from a Changqing Oilfield well and compares the proposed hybrid model with five other models, such as LSTM, CNN-LSTM, and CNN-Attention-LSTM, in terms of performance. The results show that the prediction accuracy of the GWO-CNN-Attention-LSTM model is the highest (R2=0.9628, MAE=0.0282, MSE=0.0014). Compared with GA-CNN-Attention-LSTM and PSO-CNN-Attention-LSTM, the prediction accuracy of GWO-CNN-Attention-LSTM has been improved by 6.89% and 5%, respectively, which verifies that the GWO algorithm improves the effectiveness of the CNN-Attention-LSTM model prediction performance. Comprehensive evaluation across different critical time scales demonstrates the model’s good stability and applicability.