[Paper Review] U-Net for MAV-based Penstock Inspection: an Investigation of Focal Loss in Multi-class Segmentation for Corrosion Identification
This paper proposes a lightweight U-Net model trained on fewer than 40 annotated images to enable real-time, automated corrosion detection in penstock inspections using Micro Aerial Vehicle (MAV)-collected imagery. The method leverages focal loss with optimized class weights, achieving 12 fps inference on a single GPU and outperforming standard cross-entropy loss in segmenting corroded regions under low-light and noisy conditions at Center Hill Dam.
Periodical inspection and maintenance of critical infrastructure such as dams, penstocks, and locks are of significant importance to prevent catastrophic failures. Conventional manual inspection methods require inspectors to climb along a penstock to spot corrosion, rust and crack formation which is unsafe, labor-intensive, and requires intensive training. This work presents an alternative approach using a Micro Aerial Vehicle (MAV) that autonomously flies to collect imagery which is then fed into a pretrained deep-learning model to identify corrosion. Our simplified U-Net trained with less than 40 image samples can do inference at 12 fps on a single GPU. We analyze different loss functions to solve the class imbalance problem, followed by a discussion on choosing proper metrics and weights for object classes. Results obtained with the dataset collected from Center Hill Dam, TN show that focal loss function, combined with a proper set of class weights yield better segmentation results than the base loss, Softmax cross entropy. Our method can be used in combination with planning algorithm to offer a complete, safe and cost-efficient solution to autonomous infrastructure inspection.
Motivation & Objective
- To develop a data-efficient deep learning method for automated corrosion detection in penstock infrastructure.
- To address class imbalance in multi-class segmentation of penstock surface defects using loss functions.
- To evaluate the effectiveness of focal loss and class weighting in improving segmentation accuracy under low-light and noisy conditions.
- To enable real-time inference (12 fps) on high-resolution images for on-site deployment.
- To provide a scalable, safe, and cost-effective alternative to manual inspection in hazardous environments.
Proposed method
- A U-Net architecture is trained on less than 40 manually annotated images from MAV-collected imagery at Center Hill Dam.
- The model performs pixel-wise classification into five classes: coating, water, rivet, wet, and corroded surface.
- Focal loss is generalized from binary classification to multi-class segmentation to mitigate class imbalance.
- Class weights are applied to the focal loss function to further improve performance on rare classes like corrosion.
- The network is trained using a combination of cross-entropy and focal loss with hyperparameter γ = 2.0.
- Inference is performed at 12 fps on a single GPU using original 1024×1280 resolution images.
Experimental results
Research questions
- RQ1Can a lightweight U-Net model achieve accurate multi-class segmentation of penstock surface defects with minimal annotated training data?
- RQ2How does focal loss compare to standard cross-entropy loss in handling class imbalance for corrosion detection in low-light, noisy environments?
- RQ3What is the optimal configuration of class weights when using focal loss for multi-class segmentation of penstock defects?
- RQ4How do different evaluation metrics (e.g., DSC, sensitivity, specificity) reflect the performance of segmentation models in imbalanced datasets?
- RQ5Can the proposed method enable real-time, on-device inference suitable for autonomous MAV-based inspection?
Key findings
- The weighted focal loss with γ = 2.0 achieved the best overall performance, outperforming both standard cross-entropy and focal loss alone in segmentation quality.
- With class weight w_c = 4 for the corroded class, the total error was minimized at 1.9%, indicating optimal trade-off between sensitivity and specificity.
- The DSC (Dice Similarity Coefficient) was highest at 52.1% when using weighted focal loss with w_c = 1, showing improved segmentation overlap.
- Sensitivity increased to 83.4% with w_c = 8, but specificity dropped to 95.2%, confirming the trade-off between detecting true positives and minimizing false positives.
- The weighted focal loss model showed cleaner and more complete segmentation of corrosion, wet regions, and rivets compared to other loss functions in qualitative results.
- The model achieved real-time inference at 12 fps on a single GPU, enabling on-site processing of high-resolution MAV imagery.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.