Dynamic Anomaly Detection Method for Pumping Units Based on Multi-Scale Feature Enhancement and Low-Light Optimization
Abstract
1. Introduction
2. Analysis of the Low-Light Enhancement Algorithm Framework
2.1. Overall Algorithm Framework
- Complete independence from manual annotations or external datasets;
- Implementation of an unsupervised learning framework where only low-light images are input, with enhancement quality optimized indirectly through loss functions, eliminating reliance on paired/unpaired data.
2.2. Light-Enhancement Curve Function
2.3. Optimization of Deep Curve Estimation Network
- Depthwise convolution applies 3 × 3 kernels (stride = 1) independently to each channel of the input feature map H × W × C, generating an intermediate feature map H × W × C with 3 × 3 × C parameters;
- Pointwise convolution linearly combines channels via 1 × 1 kernels (stride = 1), producing the output feature map H × W × C′ with C × C′ parameters [21].
2.4. Experimental Analyzsis
3. DAFE-Net: An Integrated Framework for Object Detection and Motion Analysis
- D (Deep): Constructing a four-layer feature pyramid network (P3–P6) to deepen multi-scale semantic fusion and enhance the deep network’s semantic modeling capability for small targets;
- A (Attention-based): Embedding the CBAM module in the backbone to strengthen target edge feature representation through parallel interaction of channel and spatial attention;
- F (Feature Enhancement): Combining anchor box distribution optimization with Focal-EIoU loss function reconstruction to precisely constrain predicted box width-height discrepancies and improve boundary regression accuracy;
- E (Enhancement): Introducing an inter-frame difference algorithm to achieve motion state perception through coordinate recording and dynamic threshold analysis, assisting “pump stop” judgment.
- Constructing a multi-level feature pyramid to strengthen multi-scale semantic extraction;
- Embedding the CBAM module to collaboratively optimize channel and spatial features;
- Employing the Focal-EIoU loss function and inter-frame difference algorithm to realize size constraints and dynamic motion state perception.
3.1. Backbone Network Integration with CBAM
3.2. Multi-Scale Feature Pyramid Enhancement
3.3. EIoU Loss Function Reconstruction
3.4. Inter-Frame Difference Dynamic Perception Integration
3.5. Experimental Analysis
- Data Acquisition: Firstly, video stream data was collected from oilfield operation sites, including pumping units under both shutdown and normal operating conditions. The video content should contain pumping units at varying image scales to cover targets at different distances.
- Data Preprocessing: The collected video streams underwent frame extraction to convert videos into individual frames. Subsequently, redundant frames with high similarity were removed through manual screening.
- Image Annotation: The LabelImg tool was employed to annotate pumping unit components in the filtered images, with labels defined as “pumping unit,” “horse head,” “walking beam,” and “pumping unit base.” The “pumping unit base” category includes components such as counterweights and pulley wheels. Label names and quantities are summarized in Table 4.
- Dataset division: The complete dataset was randomly partitioned into a 9:1 training-to-test split to ensure robust model validation.
3.5.1. Experimental Environment
3.5.2. Comparative Experiments
3.5.3. Visualization Analysis
4. Application Results
5. Discussion
6. Conclusions
- A lightweight low-light enhancement framework (Zero-DSOpt) was developed by modifying the Zero-DCE algorithm. Through Depthwise separable convolution optimization, the model achieves improved parameter efficiency and inference speed, significantly enhancing image quality in terms of PSNR and SSIM metrics. This effectively resolves information loss issues caused by sudden illumination changes and shadow occlusion in oilfield environments.
- The DAFE-Net model was designed by integrating frame difference algorithms with multi-scale feature fusion strategies, incorporating a four-level feature pyramid, CBAM attention mechanism, and Focal-EIoU loss function for precise detection of small targets and occluded scenarios. Testing on a 5000-image oilfield dataset achieved 93.9% mAP@50%, 96.5% recall, and 35 ms inference time, outperforming mainstream algorithms including YOLOv11 and Faster R-CNN.
- Field validation through the “Tianxuan” intelligent video platform in seven Changqing Oilfield operation zones confirms that the proposed method maintains high detection accuracy under extreme conditions such as intense illumination fluctuations and dust occlusion, providing reliable technical support for oilfield safety management and promoting large-scale implementation of the “Anyan Project”.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
Zero-DCE | Zero-Reference Deep Curve Estimation |
DCE-Net | Deep Curve Estimation Network |
LE-curve | Light-Enhancement Curve |
Zero-DSOpt | Zero-DCE with Depthwise Separable Convolution Optimization |
LOL | LOw-Light dataset |
HE | Histogram Equalization |
SSR | single-scale Retinex |
KinD | Kindling the Darkness |
PSNR | Peak Signal-to-Noise Ratio |
SSIM | Structural Similarity Index Metrics |
DAFE-Net | Dynamic Attention-based Feature Enhancement with Dynamic Feature Perception |
CSP | Cross Stage Partial |
CBAM | Convolutional Block Attention Module |
RGB | RGB color mode |
FPN | Feature Pyramid Network |
PAN | Path Aggregation Network |
CSPNet | Cross Stage Partial Network |
IoU | Intersection over Union |
EIoU | Expected Intersection over Union |
Faster-RCNN | Region-based Convolutional Neural Networks |
SSD | Single Shot MultiBox Detector |
Detr | DEtection TRansformer |
YOLOv11 | You Only Look Once v11 |
mAP | Mean Average Precision |
AIGAN | Attention-encoding Integrated Generative Adversarial Network |
LRFT | Local Reference Feature Transfer |
NSCO | National Supply Company |
APS | American Petroleum Solutions |
GFLOPs | Giga Floating Point Operations Per Second |
ReLU | Rectified Linear Unit |
MRMR | Max-Relevance and Min-Redundancy |
References
- Cobb, C.C.; Schultz, P.K. A Real-Time Fiber Optic Downhole Video System. In Proceedings of the Offshore Technology Conference IV: Field Drilling and Development System, Richardson, TX, USA, 4–7 May 1992; pp. 575–582. [Google Scholar] [CrossRef]
- Girshick, R.; Donahue, J.; Darrell, T. Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation. In Proceedings of the 2014 IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 23–28 June 2014; pp. 580–587. [Google Scholar] [CrossRef]
- Redmon, J.; Divvala, S.; Girshick, R. You Only Look Once: Unified, Real-Time Object Detection. In Proceedings of the 29th IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; Institute of Electrical and Electronics Engineers: New York, NY, USA, 2016; pp. 779–788. [Google Scholar] [CrossRef]
- Liu, S.; Xiao, H.; Guan, F. Coiled tubing failure analysis and ultimate bearing capacity under multi-group load. Eng. Fail. Anal. 2017, 10, 7981. [Google Scholar] [CrossRef]
- Qi, G.; Zhu, Z.; Erqinhu, K.; Chen, Y.; Chai, Y.; Sun, J. Fault-Diagnosis for Reciprocating Compressors Using Big Data and Machine Learning. Simul. Model. Pract. Theory 2018, 80, 104–127. [Google Scholar] [CrossRef]
- Carpenter, C. Deep-Learning Techniques Classify Cuttings Volume of Shale Shakers. J. Pet. Technol. 2020, 72, 61–62. [Google Scholar] [CrossRef]
- Wang, Y.; Li, K.; Han, Y.; Ge, F.; Xu, W.; Liu, L. Tracking a Dynamic Invading Target by UAV in Oilfield Inspection via an Improved Bat Algorithm. Appl. Soft Comput. 2020, 90, 106150. [Google Scholar] [CrossRef]
- Wang, Y.; Liu, H.; Guo, M.; Shen, X.; Han, B.; Zhou, Y. Image Recognition Model Based on Deep Learning for Remaining Oil Recognition from Visualization Experiment. Fuel 2021, 291, 120216. [Google Scholar] [CrossRef]
- Shumakov, Y.A.; Zhandin, A.; Comley, R.; Theuveny, B. Dynamic Flare Monitoring Platform for Continuous Emission Monitoring and Reduction During Well Test and Well Cleanup Operations. In Proceedings of the Abu Dhabi International Petroleum Exhibition and Conference (ADIPEC 2022), Abu Dhabi, United Arab Emirates, 31 October–3 November 2022. [Google Scholar] [CrossRef]
- Wang, Q.; Zhang, K.; Zhao, H.; Zhang, H.; Zhang, L.; Yan, X.; Liu, P.; Fan, L.; Yang, Y.; Yao, J. A Novel Method for Trajectory Recognition and Working Condition Diagnosis of Sucker Rod Pumping Systems Based on High-Resolution Representation Learning. J. Pet. Sci. Eng. 2022, 218, 110931. [Google Scholar] [CrossRef]
- Huang, Z.; Li, K.; Ke, C. An intelligent diagnosis method for oil-well pump leakage fault in oilfield production Internet of Things system based on convolutional attention residual learning. Eng. Appl. Artif. Intell. 2023, 126, 106829. [Google Scholar] [CrossRef]
- Ban, Z.; Pfeiffer, C. Dynamic parameter estimation and uncertainty analysis of electrical submersible pumps-lifted oil field using Markov chain Monte Carlo approaches. Geoenergy Sci. Eng. 2024, 240, 212954. [Google Scholar] [CrossRef]
- Yu, H.; Pan, B.; Guo, Y. Automatic fracture identification from logging images using the TSCODE-SIMAM-YOLOv5 algorithm. Geoenergy Sci. Eng. 2024, 243, 213319. [Google Scholar] [CrossRef]
- Zhou, L.; Zhang, W.; Zheng, Y. Local Reference Feature Transfer (LRFT): A simple pre-processing step for image enhancement. Pattern Recognit. Lett. 2024, 186, 330–336. [Google Scholar] [CrossRef]
- Wu, X.; Li, Q.; Gao, X. Drill tool recognition and detection with SERep-CCNet: A lightweight model approach. Geoenergy Sci. Eng. 2025, 250, 213844. [Google Scholar] [CrossRef]
- Ma, L.; Yang, Q.; Llanes-Santiago, O. A multi-source heterogeneous data fusion framework for fault diagnosis in industrial processes with missing image data. Measurement 2025, 256, 118278. [Google Scholar] [CrossRef]
- Zhao, H.; Xu, S.; Peng, L.; Hu, H.; Jiang, S. Efficient Gamma-Based Zero-Reference Deep Curve Estimation for Low-Light Image Enhancement. Appl. Sci. 2025, 15, 7382. [Google Scholar] [CrossRef]
- Guo, C.; Li, C.; Guo, J.; Loy, C.C.; Hou, J.; Kwong, S. Zero-Reference Deep Curve Estimation for Low-Light Image Enhancement. In Proceedings of the 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 14–19 June 2020; pp. 1777–1786. [Google Scholar] [CrossRef]
- Deng, J.; Yao, Y.; Rao, M.; Yang, Y.; Luo, C.; Li, Z.; Hua, X.; Chen, B. Automated Detection Method for Bolt Detachment of Wind Turbines in Low-Light Scenarios. Energies 2025, 18, 2197. [Google Scholar] [CrossRef]
- Zhang, Q.; Bai, E.; Shao, M.; Liang, H.; Yang, J. Real-Time Enhancement Algorithm of Low-Light Image Based on Zero-DCE. In Proceedings of the International Conference on Frontiers Technology of Information and Computer (ICFTIC), Qingdao, China, 2–4 December 2022; pp. 58–67. [Google Scholar] [CrossRef]
- Jiang, H.; Hu, F.; Fu, X.; Chen, C.; Wang, C.; Tian, L.; Shi, Y. YOLOv8-Peas: A Lightweight Drought Tolerance Method for Peas Based on Seed Germination Vigor. Front. Plant Sci. 2023, 14, 1257947. [Google Scholar] [CrossRef]
- Yang, Q.; Yue, Z. Spatial Display Model of Oil Painting Art Based on Digital Vision Design. Int. J. Adv. Comput. Sci. Appl. 2024, 15, 78. [Google Scholar] [CrossRef]
- Xie, T.; Han, W.; Xu, S. YOLO-RS: A More Accurate and Faster Object Detection Method for Remote Sensing Images. Remote Sens. 2023, 15, 3863. [Google Scholar] [CrossRef]
- Feng, G.; Yang, Q.; Tang, C.; Liu, Y.; Wu, X.; Wu, W. Mask-Wearing Detection in Complex Environments Based on Improved YOLOv7. Appl. Sci. 2024, 14, 3606. [Google Scholar] [CrossRef]
- Liu, Z.; Zhong, X.; Wang, C.; Wu, G.; He, F.; Wang, J.; Yang, D. Rapid and accurate detection of peanut pod appearance quality based on lightweight and improved YOLOv5_SSE model. Front. Plant Sci. 2025, 16, 1494688. [Google Scholar] [CrossRef]
- Zhu, Q.; Ma, K.; Wang, Z.; Shi, P. YOLOv7-CSAW for maritime target detection. Front. Neurorobot. 2023, 17, 1210470. [Google Scholar] [CrossRef]
- Sun, F.; Lv, Q.; Bian, Y.; He, R.; Lv, D.; Gao, L.; Wu, H.; Li, X. Grape Target Detection Method in Orchard Environment Based on Improved YOLOv7. Agronomy 2025, 15, 42. [Google Scholar] [CrossRef]
- Song, Q.; Zhou, Z.; Ji, S.; Cui, T.; Yao, B.; Liu, Z. A Multiscale Parallel Pedestrian Recognition Algorithm Based on YOLOv5. Electronics 2024, 13, 1989. [Google Scholar] [CrossRef]
- Sun, Y.; Huang, L.; Zhao, J.; Li, X.; Qiu, M. DSMFFNet: Depthwise separable multiscale feature fusion network for bridge detection in very high resolution satellite images. Geocarto Int. 2022, 38, 1–26. [Google Scholar] [CrossRef]
- Yong, P.; Li, S.; Wang, K.; Zhu, Y. A Real-Time Detection Algorithm Based on Nanodet for Pavement Cracks by Incorporating Attention Mechanism. In Proceedings of the 2022 8th International Conference on Hydraulic and Civil Engineering: Deep Space Intelligent Development and Utilization Forum (ICHCE), Xi’an, China, 25–27 November 2022; pp. 1245–1250. [Google Scholar] [CrossRef]
DSconv | PSNR(dB) | Number of Parameters | Speed (s) | |
---|---|---|---|---|
Zero-DCE | × | 31.57 | 79,416 | 0.012 s |
Zero-DSOpt | √ | 31.61 | 11,926 | 0.006 s |
Method | PSNR | SSIM | Speed (s) |
---|---|---|---|
Gamma | 14.12 | 0.55 | 0.0084 |
HE | 13.84 | 0.47 | 0.0053 |
SSR | 13.45 | 0.66 | 0.186 |
RetinexNet | 13.95 | 0.64 | 0.069 |
KinD | 16.65 | 0.82 | 0.052 |
Zero-DSOpt | 14.87 | 0.69 | 0.0011 |
Method | PSNR | SSIM | Speed (s) |
---|---|---|---|
KinD | 16.65 | 0.82 | 0.052 |
Zero-DSOpt | 14.87 | 0.69 | 0.0011 |
Zero-DSOpt* | 15.76 | 0.75 | 0.0013 |
Label Names | chouyouji | chouyouji_head | chouyouji_arm | chouyouji_bottom |
---|---|---|---|---|
Quantity | 4494 | 5267 | 4461 | 4494 |
Parameter Name | Parameter Value |
---|---|
Momentum | 0.937 |
Weight_decay | 0.0005 |
Batch_size | 16 |
Learning_rate | 0.01 |
Epochs | 300 |
Image_size | 640 × 640 |
Models | mAP(%) | Recall (%) | Inference Time (ms) |
---|---|---|---|
Faster-RCNN | 91.9 | 92.5 | 191 |
SSD | 75.2 | 77.0 | 98 |
Detr | 93.4 | 95.9 | 28 |
YOLOv11 | 93.0 | 95.7 | 32 |
DAFE-Net | 93.9 | 96.5 | 35 |
Dataset | Recognize Objects | mAP (%) | Recall (%) |
---|---|---|---|
Training set | chouyouji | 94.90% | 96.50% |
chouyouji_head | 94.13% | 95.91% | |
chouyouji_arm | 92.13% | 93.91% | |
chouyouji_bottom | 91.13% | 89.91% | |
Test set | chouyouji | 94.12% | 95.50% |
chouyouji_head | 93.13% | 95.10% | |
chouyouji_arm | 91.53% | 93.01% | |
chouyouji_bottom | 90.53% | 89.01% | |
Field Testing | chouyouji | 93.9% | 95.5% |
chouyouji_head | 92.13% | 94.91% | |
chouyouji_arm | 91.13% | 92.91% | |
chouyouji_bottom | 90.13% | 88.91% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Tan, K.; Wang, S.; Mao, Y.; Wang, S.; Han, G. Dynamic Anomaly Detection Method for Pumping Units Based on Multi-Scale Feature Enhancement and Low-Light Optimization. Processes 2025, 13, 3038. https://doi.org/10.3390/pr13103038
Tan K, Wang S, Mao Y, Wang S, Han G. Dynamic Anomaly Detection Method for Pumping Units Based on Multi-Scale Feature Enhancement and Low-Light Optimization. Processes. 2025; 13(10):3038. https://doi.org/10.3390/pr13103038
Chicago/Turabian StyleTan, Kun, Shuting Wang, Yaming Mao, Shunyi Wang, and Guoqing Han. 2025. "Dynamic Anomaly Detection Method for Pumping Units Based on Multi-Scale Feature Enhancement and Low-Light Optimization" Processes 13, no. 10: 3038. https://doi.org/10.3390/pr13103038
APA StyleTan, K., Wang, S., Mao, Y., Wang, S., & Han, G. (2025). Dynamic Anomaly Detection Method for Pumping Units Based on Multi-Scale Feature Enhancement and Low-Light Optimization. Processes, 13(10), 3038. https://doi.org/10.3390/pr13103038