| Literature DB >> 35808177 |
Nicolas P Avdelidis1, Antonios Tsourdos1, Pasquale Lafiosca1, Richard Plaster2, Anna Plaster2, Mark Droznika3.
Abstract
Aircraft maintenance plays a key role in the safety of air transport. One of its most significant procedures is the visual inspection of the aircraft skin for defects. This is mainly carried out manually and involves a high skilled human walking around the aircraft. It is very time consuming, costly, stressful and the outcome heavily depends on the skills of the inspector. In this paper, we propose a two-step process for automating the defect recognition and classification from visual images. The visual inspection can be carried out with the use of an unmanned aerial vehicle (UAV) carrying an image sensor to fully automate the procedure and eliminate any human error. With our proposed method in the first step, we perform the crucial part of recognizing the defect. If a defect is found, the image is fed to an ensemble of classifiers for identifying the type. The classifiers are a combination of different pretrained convolution neural network (CNN) models, which we retrained to fit our problem. For achieving our goal, we created our own dataset with defect images captured from aircrafts during inspection in TUI's maintenance hangar. The images were preprocessed and used to train different pretrained CNNs with the use of transfer learning. We performed an initial training of 40 different CNN architectures to choose the ones that best fitted our dataset. Then, we chose the best four for fine tuning and further testing. For the first step of defect recognition, the DenseNet201 CNN architecture performed better, with an overall accuracy of 81.82%. For the second step for the defect classification, an ensemble of different CNN models was used. The results show that even with a very small dataset, we can reach an accuracy of around 82% in the defect recognition and even 100% for the classification of the categories of missing or damaged exterior paint and primer and dents.Entities:
Keywords: AI; CNN; UAV; aircraft inspection; deep learning; defect classification; defect recognition
Mesh:
Year: 2022 PMID: 35808177 PMCID: PMC9269053 DOI: 10.3390/s22134682
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1Images of different types of defects in aircraft structures. (a) Missing paint, (b) dents, (c) lighting strike damage, (d) lighting strike fastener repair, (e) blend/rework repair (material removed and then re-protected with exterior paint); (f) double patch repair.
Figure 2Sample images from the two datasets created for training the classifiers. (a) An image of a dent, (b) a lighting strike fastener repair; (c,d) are images with objects that are not defects.
Dataset split for training, validating and testing the defect/non defect classifier.
| Dataset Split | Non-Defect | Defect |
|---|---|---|
| Training | 426 | 576 |
| Validation | 46 | 63 |
| Testing | 11 | 22 |
Dataset split for training, validating and testing the defect classifier.
| Dataset Categories | Training | Validation | Testing |
|---|---|---|---|
| Missing or Damaged Exterior Paint and Primer | 77 | 8 | 3 |
| Dents | 151 | 25 | 6 |
| Reinforcing Patch Repairs | 109 | 10 | 4 |
| Nicks, Scratches and Gouges | 57 | 6 | 3 |
| Blend/Rework Repairs | 82 | 10 | 3 |
| Lighting Strike Damage | 4 | 1 | 1 |
| Lighting Strike Fastener Repairs | 11 | 3 | 2 |
Figure 3Block diagram of the two-step process for defect recognition and classification.
Performance of the 4 best out of 40 pretrained networks for the binary classifier after 5 epochs.
| Model | Validation Accuracy | Testing Accuracy |
|---|---|---|
| Mobilenet | 0.80 | 0.63 |
| DenseNet201 | 0.84 | 0.81 |
| ResNet152V2 | 0.74 | 0.88 |
| InceptionResNetV2 | 0.79 | 0.85 |
Performance of the 4 best out of 40 pretrained networks for the defect classifier after 5 epochs.
| Model | Validation Accuracy | Testing Accuracy |
|---|---|---|
| EfficientNetB1 | 0.60 | 0.68 |
| EfficientNetB5 | 0.63 | 0.68 |
| EfficientNetB4 | 0.71 | 0.63 |
| DenseNet169 | 0.70 | 0.60 |
Performance of the 4 best pretrained networks for binary classifier after fine tuning for a total of 15 epochs.
| Model | Validation Loss | Validation Accuracy | Testing Accuracy |
|---|---|---|---|
| MobileNet | 0.39 | 0.79 | 0.63 |
| DenseNet201 | 0.46 | 0.84 | 0.82 |
| InceptionResNetV2 | 0.43 | 0.77 | 0.69 |
| ResNet152V2 | 0.61 | 0.78 | 0.66 |
Performance of the 4 best pretrained networks for defect classifier after fine tuning for a total of 15 epochs.
| Model | Validation Loss | Validation Accuracy | Testing Accuracy |
|---|---|---|---|
| EfficientNetB1 | 0.76 | 0.66 | 0.72 |
| EfficientNetB5 | 0.52 | 0.85 | 0.82 |
| EfficientNetB4 | 0.54 | 0.79 | 0.72 |
| DenseNet169 | 0.82 | 0.71 | 0.82 |
Combined classification reports for defect recognition classifiers.
| MobileNet | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Defect | 0.83 | 0.68 | 0.75 | 22 |
| No Defect | 0.53 | 0.72 | 0.61 | 11 |
| Accuracy |
| |||
|
| ||||
|
|
|
|
| |
| Defect | 0.88 | 0.68 | 0.76 | 22 |
| No Defect | 0.56 | 0.81 | 0.66 | 11 |
| Accuracy |
| |||
|
| ||||
|
|
|
|
| |
| Defect | 0.93 | 0.68 | 0.78 | 22 |
| No Defect | 0.58 | 0.90 | 0.71 | 11 |
| Accuracy |
| |||
|
| ||||
|
|
|
|
| |
| Defect | 0.9 | 0.82 | 0.85 | 22 |
| No Defect | 0.69 | 0.82 | 0.75 | 11 |
| Accuracy |
| |||
Combined confusion matrices for defect recognition classifiers.
| MobileNet | ||
|---|---|---|
| Actual | Predicted Class | Predicted Class |
| Defect | No Defect | |
| Defect | 15 | 7 |
| No Defect | 3 | 8 |
|
| ||
|
|
|
|
| Defect | No Defect | |
| Defect | 15 | 7 |
| No Defect | 2 | 9 |
|
| ||
|
|
|
|
| Defect | No Defect | |
| Defect | 15 | 7 |
| No Defect | 1 | 10 |
|
|
|
|
| Defect | No Defect | |
| Defect | 18 | 4 |
| No Defect | 2 | 9 |
Classification report of Dense169 for defect recognition.
| Dense169 | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Missing or Damaged Exterior Paint and Primer | 0.22 | 0.66 | 0.33 | 3 |
| Dents | 0.67 | 0.33 | 0.44 | 6 |
| Reinforcing Patch Repairs | 1 | 0.5 | 0.66 | 4 |
| Nicks, Scratches and Gouges | 1 | 0.33 | 0.5 | 3 |
| Blend/Rework Repairs | 0.5 | 0.66 | 0.57 | 3 |
| Lighting Strike Damage | 1 | 1 | 1 | 1 |
| Lighting Strike Fast Repairs | 1 | 1 | 1 | 2 |
| Accuracy |
| |||
Confusion natrix for Dense 169.
| Actual | Predicted Class | ||||||
|---|---|---|---|---|---|---|---|
| Missing/Damaged Exterior Paint and Primer | Dents | Reinforcing Patch Repairs | Nicks, Scratches and Gouges | Blend/Rework Repairs | Lighting Strike | Lighting Strike Fast Repairs | |
| Missing/Damaged Paint and Primer | 2 | 1 | 0 | 0 | 0 | 0 | 0 |
| Dents | 3 | 2 | 0 | 0 | 1 | 0 | 0 |
| Reinforcing Patch Repairs | 2 | 0 | 2 | 0 | 0 | 0 | 0 |
| Nicks, Scratches and Gouges | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| Blend/Rework Repairs | 1 | 0 | 0 | 0 | 2 | 0 | 0 |
| Lighting Strike | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Lighting Strike Fast Repairs | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Classification report of EfficientNetB1 for defect classification.
| EfficientNetB1 | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Missing or Damaged Exterior Paint and Primer | 0.6 | 1 | 0.75 | 3 |
| Dents | 1 | 1 | 1 | 6 |
| Reinforcing Patch Repairs | 0.5 | 0.5 | 0.5 | 4 |
| Nicks, Scratches and Gouges | 0 | 0 | 0 | 3 |
| Blend/Rework Repairs | 0.66 | 0.66 | 0.66 | 3 |
| Lighting Strike Damage | 1 | 1 | 1 | 1 |
| Lighting Strike Fast Repairs | 1 | 1 | 1 | 2 |
| Accuracy |
| |||
Confusion matrix of EfficientNetB1.
| Actual | Predicted Class | ||||||
|---|---|---|---|---|---|---|---|
| Missing/Damaged Exterior Paint and Primer | Dents | Reinforcing Patch Repairs | Nicks, Scratches and Gouges | Blend/Rework Repairs | Lighting Strike | Lighting Strike Fast Repairs | |
| Missing or Damaged Exterior Paint and Primer | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
| Dents | 0 | 6 | 0 | 0 | 0 | 0 | 0 |
| Reinforcing Patch Repairs | 1 | 0 | 2 | 1 | 0 | 0 | 0 |
| Nicks, Scratches and Gouges | 1 | 0 | 1 | 0 | 1 | 0 | 0 |
| Blend/Rework Repairs | 0 | 0 | 1 | 0 | 2 | 0 | 0 |
| Lighting Strike Damage | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Lighting Strike Fast Repairs | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Classification report of EfficientNetB4 for defect classification.
| EfficientNetB4 | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Missing or Damaged Exterior Paint and Primer | 0.5 | 1 | 0.66 | 3 |
| Dents | 0.83 | 0.83 | 0.83 | 6 |
| Reinforcing Patch Repairs | 0.5 | 0.5 | 0.5 | 4 |
| Nicks, Scratches and Gouges | 1 | 0.33 | 0.5 | 3 |
| Blend/Rework Repairs | 0 | 0 | 0 | 3 |
| Lighting Strike Damage | 1 | 1 | 1 | 1 |
| Lighting Strike Fast Repairs | 1 | 1 | 1 | 2 |
| Accuracy |
| |||
Confusion matrix of EfficientNetB4.
| Actual | Predicted Class | ||||||
|---|---|---|---|---|---|---|---|
| Missing/Damaged Exterior Paint and Primer | Dents | Reinforcing Patch Repairs | Nicks, Scratches and Gouges | Blend/Rework Repairs | Lighting Strike | Lighting Strike Fast Repairs | |
| Missing or Damaged Exterior Paint and Primer | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
| Dents | 1 | 5 | 0 | 0 | 0 | 0 | 0 |
| Reinforcing Patch Repairs | 0 | 1 | 2 | 0 | 1 | 0 | 0 |
| Nicks, Scratches and Gouges | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| Blend/Rework Repairs | 1 | 0 | 2 | 0 | 0 | 0 | 0 |
| Lighting Strike Damage | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Lighting Strike Fast Repairs | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Classification report of EfficientNetB5 for defect classification.
| EfficientNetB5 | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Missing or Damaged Exterior Paint and Primer | 1 | 1 | 1 | 3 |
| Dents | 1 | 0.83 | 0.90 | 6 |
| Reinforcing Patch Repairs | 0.16 | 0.25 | 0.2 | 4 |
| Nicks, Scratches and Gouges | 1 | 0.66 | 0.8 | 3 |
| Blend/Rework Repairs | 0 | 0 | 0 | 3 |
| Lighting Strike Damage | 1 | 1 | 1 | 1 |
| Lighting Strike Fast Repairs | 1 | 1 | 1 | 2 |
| Accuracy |
| |||
Confusion matrix of EfficientNetB5.
| Actual | Predicted Class | ||||||
|---|---|---|---|---|---|---|---|
| Missing/Damaged Exterior Paint and Primer | Dents | Reinforcing Patch Repairs | Nicks, Scratches and Gouges | Blend/Rework Repairs | Lighting Strike | Lighting Strike Fast Repairs | |
| Missing or Damaged Exterior Paint and Primer | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
| Dents | 0 | 5 | 1 | 0 | 0 | 0 | 0 |
| Reinforcing Patch Repairs | 0 | 0 | 1 | 0 | 3 | 0 | 0 |
| Nicks, Scratches and Gouges | 0 | 0 | 1 | 2 | 0 | 0 | 0 |
| Blend/Rework Repairs | 0 | 0 | 3 | 0 | 0 | 0 | 0 |
| Lighting Strike Damage | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Lighting Strike Fast Repairs | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Classification report of the ensemble model for defect classification.
| Ensemble | ||||
|---|---|---|---|---|
| Precision | Recall | F1 Score | Sum of Images | |
| Missing or Damaged Exterior Paint and Primer | 0.6 | 1 | 0.75 | 3 |
| Dents | 1 | 0.83 | 0.90 | 6 |
| Reinforcing Patch Repairs | 0.5 | 0.5 | 0.5 | 4 |
| Nicks, Scratches and Gouges | 0.5 | 0.33 | 0.4 | 3 |
| Blend/Rework Repairs | 0.33 | 0.33 | 0.33 | 3 |
| Lighting Strike Damage | 1 | 1 | 1 | 1 |
| Lighting Strike Fast Repairs | 1 | 1 | 1 | 2 |
| Accuracy |
| |||
Confusion matrix of the Ensemble.
| Actual | Predicted Class | ||||||
|---|---|---|---|---|---|---|---|
| Missing/Damaged Exterior Paint and Primer | Dents | Reinforcing Patch Repairs | Nicks, Scratches and Gouges | Blend/Rework Repairs | Lighting Strike | Lighting Strike Fast Repairs | |
| Missing or Damaged Exterior Paint and Primer | 3 | 0 | 0 | 0 | 0 | 0 | 0 |
| Dents | 1 | 5 | 0 | 0 | 0 | 0 | 0 |
| Reinforcing Patch Repairs | 0 | 0 | 2 | 1 | 1 | 0 | 0 |
| Nicks, Scratches and Gouges | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| Blend/Rework Repairs | 0 | 0 | 2 | 0 | 1 | 0 | 0 |
| Lighting Strike Damage | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| Lighting Strike Fast Repairs | 0 | 0 | 0 | 0 | 0 | 0 | 2 |