Real-Time UAV-Based Oil Pipeline and Visual Anomaly Detection Using YOLOv26n: A Dataset and Edge-Deployment Study
Highlights
- A lightweight YOLOv26n model enables simultaneous detection of above-ground pipelines and visual anomaly/leak indicators from UAV imagery with 92.4% mAP@0.5.
- The optimized model sustains real-time onboard inference (18 FPS) on an NVIDIA Jetson Xavier NX, demonstrating embedded edge feasibility.
- The proposed framework supports low-latency, cloud-independent UAV inspection of critical infrastructure in heterogeneous environments.
- Edge-deployable deep learning enables scalable, autonomous corridor monitoring and timely maintenance prioritization for pipeline safety management.
Abstract
1. Introduction
2. Materials and Methods
2.1. UAV Data Acquisition
2.2. Dataset Annotation and Splits
2.3. Model Architecture
2.4. Training Configuration
2.5. Edge Deployment in Jetson
2.6. Evaluation Metrics
3. Results
3.1. Baselines and Experimental Protocol
3.2. Quantitative Results
3.3. Qualitative Results and Error Analysis
4. Discussion
4.1. Accuracy and Efficiency for Onboard Inspection
4.2. Robustness Across Environments and Dominant Failure Modes
4.3. Deployment Considerations and Reproducibility
4.4. Practical Applications for UAV Pipeline Monitoring
4.5. Limitations and Future Research Directions
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Osco, L.P.; Marcato Junior, J.; Ramos, A.P.M.; Jorge, L.A.C.; Fatholahi, S.N.; Silva, J.A.; Matsubara, E.T.; Pistori, H.; Gonçalves, W.N.; Li, J. A review on deep learning in UAV remote sensing. Int. J. Appl. Earth Obs. Geoinf. 2021, 102, 102456. [Google Scholar] [CrossRef]
- Tang, G.; Ni, J.; Zhao, Y.; Gu, Y.; Cao, W. A Survey of Object Detection for UAVs Based on Deep Learning. Remote Sens. 2024, 16, 149. [Google Scholar] [CrossRef]
- Wu, X.; Li, W.; Hong, D.; Tao, R.; Du, Q. Deep Learning for Unmanned Aerial Vehicle-Based Object Detection and Tracking: A Survey. IEEE Geosci. Remote Sens. Mag. 2022, 10, 91–124. [Google Scholar] [CrossRef]
- Dasenbrock, J.; Pluta, A.; Zech, M.; Medjroubi, W. Detecting Pipeline Pathways in Landsat 5 Satellite Images with Deep Learning. Energies 2021, 14, 5642. [Google Scholar] [CrossRef]
- Ye, M.; Ward, P.J.; De Plaen, J.J.-F.G.; Koks, E.E. A deep learning pipeline to power infrastructure detection in high-resolution satellite images. Big Earth Data 2025, 9, 525–546. [Google Scholar] [CrossRef]
- Yan, Y.; Liang, Y.; Zhang, H.; Zhang, W.; Feng, H.; Wang, B.; Liao, Q. A two-stage optimization method for unmanned aerial vehicle inspection of an oil and gas pipeline network. Pet. Sci. 2019, 16, 458–468. [Google Scholar] [CrossRef]
- Meng, L.; Peng, Z.; Zhou, J.; Zhang, J.; Lu, Z.; Baumann, A.; Du, Y. Real-Time Detection of Ground Objects Based on Unmanned Aerial Vehicle Remote Sensing with Deep Learning: Application in Excavator Detection for Pipeline Safety. Remote Sens. 2020, 12, 182. [Google Scholar] [CrossRef]
- Bretschneider, L.; Bollmann, S.; Houssin-Agbomson, D.; Shaw, J.; Howes, N.; Nguyen, L.; Robinson, R.; Helmore, J.; Lichtenstern, M.; Nwaboh, J.; et al. Concepts for drone based pipeline leak detection. Front. Robot. AI 2024, 11, 1426206. [Google Scholar] [CrossRef] [PubMed]
- Iwaszenko, S.; Kalisz, P.; Slota, M.; Rudzki, A. Detection of Natural Gas Leakages Using a Laser-Based Methane Sensor and UAV. Remote Sens. 2021, 13, 510. [Google Scholar] [CrossRef]
- Redmon, J.; Farhadi, A. YOLOv3: An Incremental Improvement. arXiv 2018, arXiv:1804.02767. [Google Scholar] [CrossRef]
- Chen, J.; Xu, H.; Wang, Z. Cascaded Deep Learning for Pipeline Defects Detection and Classification Based on YOLOv5 and Vision Transformer in MFL Data. Mech. Syst. Signal Process. 2024, 206, 110919. [Google Scholar] [CrossRef]
- NVIDIA. Jetson Xavier NX 16GB Datasheet. Available online: https://connecttech.com/pdf/jetson_xavier_nx_16gb_datasheet.pdf (accessed on 16 February 2026).
- Aromoye, O.A.; Sama, M.; Chisala, M.; Jani, S.; Tello, A. Autonomous Aerial Pipeline Detection and Tracking Using YOLOv8 and Control Algorithms. Alex. Eng. J. 2026, 137, 424–442. [Google Scholar] [CrossRef]
- Ultralytics. YOLOv5 Documentation. Available online: https://docs.ultralytics.com/models/yolov5/ (accessed on 23 March 2026).
- Wang, C.-Y.; Yeh, I.-H.; Liao, H.-Y.M. YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information. In Computer Vision—ECCV 2024; Springer: Cham, Switzerland, 2024; pp. 1–21. [Google Scholar]
- Wang, A.; Chen, H.; Liu, L.; Chen, K.; Lin, Z.; Han, J.; Ding, G. YOLOv10: Real-Time End-to-End Object Detection. In Advances in Neural Information Processing Systems 37 (NeurIPS 2024); Curran Associates: Red Hook, NY, USA, 2024. [Google Scholar]
- Ultralytics. YOLO11 Documentation. Available online: https://docs.ultralytics.com/models/yolo11/ (accessed on 23 March 2026).
- Zhao, Y.; Lv, W.; Xu, S.; Wei, J.; Wang, G.; Dang, Q.; Liu, Y.; Chen, J. DETRs Beat YOLOs on Real-Time Object Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 17–21 June 2024; IEEE: New York, NY, USA; pp. 16965–16974.
- He, Y.; Liu, Z.; Guo, Y.; Zhu, Q.; Yu, F.; Yin, Y.; Wang, Y.; Zhang, B.; Liu, Z. UAV-Based Sensing and Imaging Technologies for Power System Detection, Monitoring, and Inspection: A Review. Nondestruct. Test. Eval. 2025, 40, 5681–5748. [Google Scholar] [CrossRef]
- Toriumi, F.Y.; Bittencourt, T.N.; Futai, M.M. UAV-Based Inspection of Bridge and Tunnel Structures: An Application Review. Rev. IBRACON Estrut. Mater. 2023, 16, e16103. [Google Scholar] [CrossRef]
- NVIDIA. NVIDIA TensorRT Documentation. Available online: https://docs.nvidia.com/deeplearning/tensorrt/latest/index.html (accessed on 16 February 2026).
- Roboflow. Roboflow Documentation. Available online: https://docs.roboflow.com (accessed on 16 February 2026).
- Roboflow. Preprocess Images—Roboflow Documentation. Available online: https://docs.roboflow.com/datasets/dataset-versions/image-preprocessing (accessed on 16 February 2026).
- Roboflow. Image Augmentation—Roboflow Documentation. Available online: https://docs.roboflow.com/datasets/dataset-versions/image-augmentation (accessed on 16 February 2026).
- Ultralytics. Roboflow Integration. Available online: https://docs.ultralytics.com/integrations/roboflow/ (accessed on 16 February 2026).
- Jocher, G.; Qiu, J. Ultralytics YOLOv26. Available online: https://github.com/ultralytics/ultralytics (accessed on 16 February 2026).
- Ultralytics. Explore Ultralytics YOLOv26. Available online: https://docs.ultralytics.com/models/yolo26/ (accessed on 16 February 2026).
- Lin, T.-Y.; Maire, M.; Belongie, S.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Lawrence Zitnick, C. Microsoft COCO: Common Objects in Context. In Computer Vision—ECCV 2014; Springer: Cham, Switzerland, 2014; pp. 740–755. [Google Scholar] [CrossRef]
- Ultralytics. Model Export with Ultralytics YOLO. Available online: https://docs.ultralytics.com/modes/export/ (accessed on 16 February 2026).
- Jocher, G. YOLOv8 by Ultralytics. Available online: https://github.com/topics/yolov8 (accessed on 16 February 2026).





| Item | Value | Notes |
|---|---|---|
| Total images | 6127 | Count after cleaning and deduplication |
| Train/Val/Test split | 5361/511/255 | 87.5%/8.3%/4.2% of the 6127 images |
| Image resolution | Varied (stretched to 600 × 600 for training/inference) | Training input size; raw images stored at native resolution |
| Classes | Pipeline; Anomaly/Leak (2 classes) | Two-class detection: Pipeline and Anomaly/Leak |
| Annotation tool | Roboflow | Used for labeling, dataset versioning, and export in YOLO format |
| Quality control | Manual review of labels and removal of low-quality frames | Obvious outliers (blurred frames, severe artifacts) were excluded |
| Scene types | Desert; semi-urban; industrial | Representative backgrounds preserved across subsets during manual split construction |
| Split strategy | Manual scene-diversity preserving split | Formal split-divergence analysis was not performed in the original study |
| Stage | Parameter | Value |
|---|---|---|
| Training | Pretrained weights | COCO |
| Input resolution | 600 × 600 | |
| Epochs | 300 | |
| Optimizer | AdamW (LR 0.001, weight decay 0.01) | |
| Batch size | 16 | |
| LR schedule | Cosine decay, 3 warmup epochs | |
| Hardware | NVIDIA RTX 4090 (24 GB VRAM) | |
| Edge deployment | Device and mode | Jetson Xavier NX 16 GB, 15W max performance |
| Precision and batch | TensorRT FP16, batch size 1 | |
| Input resolution | 600 × 600 | |
| Measured throughput | 18 FPS (end-to-end, includes preprocessing and NMS) |
| Method | mAP@0.5 (%) | mAP@0.5:0.95 (%) | Precision (%) | Recall (%) | FPS (Jetson Xavier NX) | F1 (%) |
|---|---|---|---|---|---|---|
| YOLOv26n | 92.4 | 75.0 | 89.7 | 90.2 | 18 | 89.9 |
| YOLOv10 | 87.3 | 74.5 | 81.2 | 70.1 | 18 | 75.2 |
| YOLOv8 | 86.5 | 73.8 | 80.7 | 69.4 | 18 | 74.6 |
| YOLOv5 | 84.5 | 72.3 | 78.6 | 68.2 | 18 | 73.0 |
| Class | AP@0.5 (%) | AP@0.5:0.95 (%) |
|---|---|---|
| Pipeline | 94 | 77 |
| Anomaly/Leak | 86 | 70 |
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. |
© 2026 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.
Share and Cite
Keshk, H.; Abdallah, A. Real-Time UAV-Based Oil Pipeline and Visual Anomaly Detection Using YOLOv26n: A Dataset and Edge-Deployment Study. Drones 2026, 10, 255. https://doi.org/10.3390/drones10040255
Keshk H, Abdallah A. Real-Time UAV-Based Oil Pipeline and Visual Anomaly Detection Using YOLOv26n: A Dataset and Edge-Deployment Study. Drones. 2026; 10(4):255. https://doi.org/10.3390/drones10040255
Chicago/Turabian StyleKeshk, Hatem, and Ayman Abdallah. 2026. "Real-Time UAV-Based Oil Pipeline and Visual Anomaly Detection Using YOLOv26n: A Dataset and Edge-Deployment Study" Drones 10, no. 4: 255. https://doi.org/10.3390/drones10040255
APA StyleKeshk, H., & Abdallah, A. (2026). Real-Time UAV-Based Oil Pipeline and Visual Anomaly Detection Using YOLOv26n: A Dataset and Edge-Deployment Study. Drones, 10(4), 255. https://doi.org/10.3390/drones10040255

