Rod pumping systems are widely used in oil wells. Accurate fault prediction could reduce equipment fault rate and has practical significance in improving oilfield production efficiency. This paper analyzed the production journal of rod pumping wells in block X of Xinjiang Oilfield. According to the production journal, oil well maintenance operations are primarily caused by five types of faults: scale, wax, corrosion, fatigue, and wear. These faults make up approximately 90% of all faults. 1354 oil wells in the block that experienced workover operations as a result of the aforementioned factors were chosen as the research objects for this paper. To lower the percentage of data noise, wavelet threshold denoising and variational mode decomposition were used. Based on the bidirectional long short-term memory network, an intelligent model for fault prediction was built. It was trained and verified with the help of the sparrow search algorithm. Its efficacy was demonstrated by testing various deep learning models in the same setting and with identical parameters. The results show that the prediction accuracy of the model is the highest compared with other 11 models, reaching 98.61%. It is suggested that the model using artificial intelligence can provide an accurate fault warning for the oilfield and offer guidance for the maintenance of the rod pumping system, which is meant to reduce the occurrence of production stagnation and resource waste.