An aircraft skin defect detection method combining drone and deep learning
Through the method of combining drones with deep learning, using the improved network structure and SimAM attention mechanism, the problems of high cost and low accuracy in aircraft skin defect detection are solved, and efficient and low-cost detection results are achieved, which is suitable for Large area aircraft skin inspection.
Patent Information
- Application Number
- CN202410718476.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-04
AI Technical Summary
Existing aircraft skin defect detection methods are high in cost, low in accuracy, and are greatly affected by manual visual inspection. The work efficiency is low and cannot achieve real-time detection, especially in large-area inspection.
Using the method of combining drones and deep learning, the aircraft skin defect image data is collected through drones, preprocessed and annotated, and the improved Encoder-Decoder network and SimAM three-dimensional attention mechanism are used for feature learning and training of target detectors. , and deployed on drones for detection, using the RepVGG structure and Auxiliary head to improve detection accuracy and efficiency.
It achieves lightweight, low-cost, high detection efficiency and good detection results for aircraft skin defect detection, reduces manpower consumption, lowers detection costs, and can detect defects of different scales in real time.
Smart Images

Figure CN118505670B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of nondestructive testing technology, and in particular to an aircraft skin defect detection method combining an unmanned aerial vehicle with deep learning. Background Art
[0002] In the field of nondestructive testing, visual inspection refers to direct observation of the surface of the target to be inspected with the human eye, or indirect observation with the help of optical equipment such as endoscopes and mirrors. Visual inspection has the advantages of low threshold, easy operation and low cost, and is one of the most widely used technologies in structural damage detection. In recent years, with the vigorous development of emerging industries such as information science and artificial intelligence, computer technology has been increasingly used in various links of national economic production such as industry, agriculture and modern service industries. Machine vision technology is based on image perception devices such as cameras, which enables computers to observe, recognize and understand the world. Machine vision has been widely used in some dangerous working environments that are not suitable for manual operations or in scenarios where artificial vision cannot meet the measurement or detection requirements.
[0003] In the field of aircraft skin defect detection, the surface area of the aircraft skin is very large, and the selected detection methods must consider the issue of efficiency. Therefore, visual detection technology, infrared detection technology, array detection methods and other technologies that can achieve large-area measurement are widely used. When using deep learning methods to detect aircraft skin defects, due to the characteristics of deep learning, a large amount of labeled data is required as a basis. The area of the aircraft skin is huge, and the cost of manually taking images and annotating them is high. At the same time, in order to achieve the goal of real-time detection, the algorithm must be lightweight enough to be deployed on some terminal devices. Deep learning target detection algorithms are divided into one-stage target detection algorithms and two-stage target detection algorithms. One-stage target detection algorithms are often lighter than two-stage target detection algorithms, but they cannot be guaranteed to be deployed on terminal devices.
[0004] Therefore, it is urgent to develop a detection method that is lightweight, low-cost, highly efficient and has good detection effects. Summary of the invention
[0005] In view of the shortcomings of the prior art, the present invention provides an aircraft skin defect detection method that combines an unmanned aerial vehicle with deep learning, which solves the problems of high detection cost, low accuracy, and manual visual detection that is greatly affected by human factors, has low work efficiency, and is limited to detecting larger damage.
[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: A method for detecting aircraft skin defects by combining a drone with deep learning, comprising the following steps:
[0007] Step 1: The UAV flies around the aircraft to obtain the original image data of the aircraft skin defects;
[0008] Step 2: Preprocess the collected image data, label them, and create the aircraft skin defect dataset required for training the network;
[0009] Step 3: Input the training data set into the improved Encoder-Decoder network based on the ELAN module for feature learning;
[0010] The ELAN module improves parameter utilization by optimizing the gradient path design, and improves the ordinary convolution in the last two branches of the ELAN module into deep convolution. GhostConv is used in the final integration layer, thereby greatly reducing the amount of calculation. The encoder-decoder network obtains information between pixels, enhances the correlation between features, and enhances the learning of global features.
[0011] Step 4: Input the learned features into the SPPCSPC module, use maximum pooling to obtain different receptive fields, and use the SimAM three-dimensional attention mechanism to enhance the features;
[0012] Step 5: Use the obtained aircraft skin defect features to train the target detection network to obtain a trained target detector;
[0013] The network includes a RepVGG structure, and adds an Auxiliary head in the middle layer of the network, as well as a shallow network weight guided by an Auxiliary loss;
[0014] Step 6: Deploy the trained target detector onto the drone, and use the drone to inspect the aircraft skin to obtain the target detection results and the target's appearance features.
[0015] Preferably, step 3 is specifically configured as follows:
[0016] Input the training dataset images into the Encoder-Decoder network of the ELAN module;
[0017] The CBL module collects feature maps for the input data set. The CBL module includes Conv, BN, and leakyrelu activation functions. Each time the feature map passes through the CBL module, the width and height of the feature map will be reduced by half, while the channel depth of the feature map will be doubled. After passing through four CBL modules, a 160*160*128 feature map F is obtained;
[0018] The feature map F is input into the ELAN module. The feature map F passes through two branches in the ELAN module. The first branch passes through a 1*1 convolution to change the number of channels. The second branch first passes through a 1*1 convolution module to change the number of channels, and then passes through four 3*3 convolution modules to extract features. Finally, the four features are superimposed together to obtain the final feature extraction result.
[0019] The feature extraction results are input into the MP module. The feature extraction results pass through two branches in the MP module. The first branch first passes through a maxpooling, that is, maximum pooling, for downsampling, and then changes the number of channels through a 1*1 convolution. The second branch first passes through a 1*1 convolution to change the number of channels, and then passes through a 3*3 convolution kernel and a convolution block with a step size of 2. Then the results of the first branch and the second branch are added together to generate the downsampled result. After passing through three downsampling modules, a 20*20*1024 feature map is obtained.
[0020] Preferably, step 4 is specifically configured as follows:
[0021] The SPP module includes an SPP module and a CSP module. First, the learned features are input into the SPP module to adapt the algorithm to images of different resolutions. It obtains different receptive fields through maximum pooling. In the first branch of the SPP module, there are four branches that have undergone maxpooling, processing receptive fields of four different scales, superimposing them, and obtaining processed features.
[0022] Then the processed features are input into the CSP module and divided into two parts, one of which is processed conventionally and the other is processed by the SPP structure. Finally, the two parts are merged together, which can reduce the amount of calculation by half, making the speed faster and the accuracy higher, and finally obtaining 20*20*512 features.
[0023] The features are input into the SimAM attention mechanism for processing and superimposed with the original results to obtain more features.
[0024] Preferably, step 5 is specifically configured as follows:
[0025] The obtained aircraft skin defect features are connected in series through three improved ELAN modules and down-sampling MP_1 modules to obtain feature maps of 80*80*128, 40*40*512, and 20*20*1024 respectively;
[0026] The feature maps of the three sizes are input into the REP module respectively, and then go through three branches. The first branch is a convolution with a convolution kernel size of 1 and a normalization layer; the second branch is a convolution with a convolution kernel size of 3 and a normalization layer; the third branch is a direct normalization layer; these three branches are superimposed to obtain three superposition results;
[0027] The three superposition results are input into the CBM module, which consists of a convolution layer, a normalization layer, and a sigmoid activation function layer. After a convolution with a step size of 1, the trained weights are obtained, and finally a trained target detector is obtained.
[0028] Preferably, the feature extraction network in step 3 includes four ELAN modules and three MP-1 modules.
[0029] Beneficial Effects
[0030] The present invention provides an aircraft skin defect detection method combining a drone and deep learning, which has the following beneficial effects:
[0031] The present invention introduces the SimAM three-dimensional attention mechanism into the YOLOv7 network and changes the ElAN module at the same time, taking into account feature information of different scales, which helps the network to better locate and identify targets. During the training process, the ELAN-GDW module is used as one of the structures that initially constitute the backbone network, which enables it to extract accurate performance features, greatly reduce model parameters, reduce training calculations, make the model lightweight, and reduce model training time. The use of the SPPCSPC module can obtain receptive fields of different sizes, and defects of different scales can be detected. The algorithm is deployed on a drone, which can greatly reduce the consumption of manpower and material resources and reduce detection costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the system flow of the present invention.
[0033] Figure 2 This is a schematic diagram of the improved ELAN module of the present invention.
[0034] Figure 3 Schematic diagram of the detection steps of the target detector of the present invention. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] Embodiment: The core idea of the method of the present invention is to use drones to collect data, train target detectors, and use a combination of target detectors and drones to detect aircraft skin defects. First, use a drone to fly around the aircraft, collect aircraft skin defect source data, and use annotation tools to process the collected data to create an aircraft skin defect data set. The data set is input into the backbone network based on the CBL module for feature extraction, and the extracted target features are introduced into the ELAN module and the SimAM three-dimensional attention mechanism to obtain enhanced aircraft skin defect features. The enhanced aircraft skin defect features are then input into the SPPCSPC module to obtain receptive fields of different sizes and detect defects of different scales. Finally, the YOLOv7 network is used for training to obtain a target detector. In the process of training the target detector, the loss function of the network model is adjusted to make the trained network detection more consistent with the data set. Finally, the trained target detector is deployed on the drone, and the drone is used to perform a flyby inspection on the aircraft skin defects to obtain the detection results.
[0037] Specifically, Figure 1 As shown, a lightweight detection method for aircraft skin defects includes the following steps:
[0038] Step 1: The UAV flies around the aircraft to obtain the original image data of the aircraft skin defects;
[0039] In this embodiment, the aircraft skin defects collected by the drone flying around the aircraft are used as part of the data. In order to avoid a single background of aircraft skin defects, imbalanced categories, and prevent model overfitting, a sufficient amount of data must be collected. Therefore, data enhancement is used or another part of the data is obtained from the existing database.
[0040] Step 2: Preprocess the collected image data, label them, and create the aircraft skin defect dataset required for training the network.
[0041] In this embodiment, the data of each category is balanced when annotating the image to avoid unbalanced category data leading to poor training results. The location information of the annotated target, i.e., the bounding box coordinates and the identity number.
[0042] Step 3: Input the training data set into the improved Encoder-Decoder network based on the ELAN module for feature learning.
[0043] In this embodiment, the training data set is input into the Encoder-Decoder network based on the ELAN module for feature extraction. The feature extraction network is mainly composed of four ELAN modules and three MP-1 modules.
[0044] The ELAN module is a module designed for gradient paths. It can adjust the gradient propagation path so that the weights of different computing units can learn various information, thereby achieving higher parameter utilization efficiency. It directly determines and propagates information to update the weights to each computing unit, so the designed architecture can avoid degradation during training. Since the parameters in the ELAN module mainly exist in the convolutional layers of the last two branches of the module and the final integration layer, the ordinary convolution in the last two branches of the ELAN module is improved to deep convolution, and GhostConv is used in the final integration layer, which can greatly reduce the amount of calculation. The modified ELAN module is shown in the attached figure. Figure 2 shown.
[0045] Step 3.1: Input the training dataset images into the Encoder-Decoder network of the ELAN module.
[0046] Step 3.2: The CBL module collects feature maps for the input data set. The CBL module includes Conv, BN, and leakyrelu activation functions. Each time through the CBL module, the width and height of the feature map will be reduced by half, and the channel depth of the feature map will be doubled. After passing through four CBL modules, a 160*160*128 feature map F is obtained.
[0047] Step 3.3: Input the feature map F into the ELAN module. The feature map passes through two branches in the ELAN module. The first branch passes through a 1*1 convolution to change the number of channels. The second branch first passes through a 1*1 convolution module to change the number of channels. Then it passes through four 3*3 convolution modules to extract features. Finally, the four features are superimposed together to obtain the final feature extraction result.
[0048] Step 3.4: Input the feature extraction results into the MP module. The feature extraction results pass through two branches in the MP module. The first branch first passes through a maxpooling, that is, maximum pooling, for downsampling, and then changes the number of channels through a 1*1 convolution. The second branch first passes through a 1*1 convolution to change the number of channels, and then passes through a 3*3 convolution kernel and a convolution block with a step size of 2. Then the results of the first branch and the second branch are added together to generate the downsampled result. After passing through three downsampling modules, a 20*20*1024 feature map is obtained.
[0049] Step 4: Input the learned features into the SPPCSPC module, use maximum pooling to obtain different receptive fields, and use the SimAM 3D attention mechanism for feature enhancement.
[0050] Step 4.1: SPP The SPP module is divided into two parts, one is the SPP module and the other is the CSP module. First, the learned features are input into the SPP module to adapt the algorithm to images of different resolutions. It obtains different receptive fields through maximum pooling. In the first branch of SPP, there are four branches that undergo maxpooling, processing four receptive fields of different scales, superimposing them, and obtaining the processed features.
[0051] Step 4.2: Input the processed features into the CSP module and divide the processed features into two parts. One part is processed conventionally and the other part is processed by the SPP structure. Finally, these two parts are merged together to reduce the amount of calculation by half, making the speed faster and the accuracy higher, and finally obtaining 20*20*512 features.
[0052] Step 4.3: Input the features into the SimAM attention mechanism for processing and superimpose them with the original results to obtain more features.
[0053] Step 5: Use the obtained aircraft skin defect features to train the target detection network to obtain a trained target detector.
[0054] In this embodiment, during the training process, a module is split into multiple identical or different module branches, so that the network can obtain better feature expression. And the RepVGG structure is used during training, specifically including three branches: 3*3, 1*1, and shortcut. When the dimensions of the input and output are inconsistent, the step size is 2, and there are only two branches: 3*3 and 1*1; when the dimensions of the input and output are consistent, in the last three layers of convolution, there is not only a 1*1 identity connection, but also a connection without convolution for direct feature fusion.
[0055] And add additional Auxiliary heads in the middle layer of the network, as well as shallow network weights guided by Auxiliary losses.
[0056] Step 5.1: After the obtained aircraft skin defect features are connected in series through three improved ELAN modules and the downsampling MP_1 module, feature maps of 80*80*128, 40*40*512, and 20*20*1024 are obtained respectively.
[0057] Step 5.2: Input the feature maps of the three sizes into the REP module respectively, and pass through three branches. The first branch is convolution with a convolution kernel size of 1 and normalization; the second branch is convolution with a convolution kernel size of 3 and normalization; the third branch is a direct normalization layer; these three branches are superimposed to obtain three superposition results.
[0058] Step 5.3: Input the three superposition results into the CBM module, which consists of a convolution layer, a normalization layer, and a sigmoid activation function layer. After a convolution with a step size of 1, the trained weights are obtained, and finally a trained target detector is obtained. The detection steps are shown in the attached figure. Figure 3 shown.
[0059] Step 6: Deploy the trained target detector onto the drone, and use the drone to inspect the aircraft skin to obtain the target detection results and the target's appearance features.
[0060] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions. The sentence "includes an element defined by ... does not exclude the existence of other identical elements in the process, method, article or device including the element".
[0061] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for detecting aircraft skin defects by combining UAV and deep learning, characterized in that: The following steps are involved: Step 1: The UAV flies around the aircraft to obtain the original image data of the aircraft skin defects; Step 2: Preprocess the collected image data, label them, and create the aircraft skin defect dataset required for training the network; Step 3: Input the training data set into the improved Encoder-Decoder network based on the ELAN module for feature learning; The ELAN module improves parameter utilization by optimizing the gradient path design, and improves the ordinary convolution in the last two branches of the ELAN module into deep convolution. GhostConv is used in the final integration layer, thereby greatly reducing the amount of calculation. The Encoder-Decoder network obtains information between pixels, enhances the correlation between features, and enhances the learning of global features. Step 4: Input the learned features into the SPPCSPC module, use maximum pooling to obtain different receptive fields, and use the SimAM three-dimensional attention mechanism to enhance the features; Step 5: Use the obtained aircraft skin defect features to train the target detection network to obtain a trained target detector; The network includes a RepVGG structure, and adds an Auxiliary head in the middle layer of the network, as well as a shallow network weight guided by an Auxiliary loss; Step 6: Deploy the trained target detector to the drone, use the drone to inspect the aircraft skin, and obtain the target detection results and the target's appearance features; The specific settings for step 3 are: Input the training dataset images into the Encoder-Decoder network of the ELAN module; The CBL module collects feature maps for the input data set. The CBL module includes Conv, BN, and leakyrelu activation functions. Each time the feature map passes through the CBL module, the width and height of the feature map will be reduced by half, while the channel depth of the feature map will be doubled. After passing through four CBL modules, a 160*160*128 feature map F is obtained; The feature map F is input into the ELAN module. The feature map F passes through two branches in the ELAN module. The first branch passes through a 1*1 convolution to change the number of channels. The second branch first passes through a 1*1 convolution module to change the number of channels, and then passes through four 3*3 convolution modules to extract features. Finally, the four features are superimposed together to obtain the final feature extraction result. The feature extraction result is input into the MP module. The feature extraction result passes through two branches in the MP module. The first branch first passes through a maxpooling, that is, maximum pooling, for downsampling, and then changes the number of channels through a 1*1 convolution. The second branch first passes through a 1*1 convolution to change the number of channels, and then passes through a convolution block with a 3*3 convolution kernel and a step size of 2. Then, the results of the first branch and the second branch are added together to generate the downsampled result. After passing through three downsampling modules, a 20*20*1024 feature map is obtained; The specific settings for step 4 are: The SPP module includes an SPP module and a CSP module. First, the learned features are input into the SPP module to adapt the algorithm to images of different resolutions. It obtains different receptive fields through maximum pooling. In the first branch of the SPP module, there are four branches that have undergone maxpooling, processing receptive fields of four different scales, superimposing them, and obtaining processed features. Then the processed features are input into the CSP module, and the processed features are divided into two parts, one of which is processed conventionally, and the other is processed by the SPP structure. Finally, the two parts are merged together to obtain a 20*20*512 feature. The features are input into the SimAM attention mechanism for processing and superimposed with the original results to obtain more features.
2. The aircraft skin defect detection method combining drone and deep learning according to claim 1 is characterized in that: The specific settings for step 5 are: The obtained aircraft skin defect features are connected in series through three improved ELAN modules and down-sampling MP_1 modules to obtain feature maps of 80*80*128, 40*40*512, and 20*20*1024 respectively; The feature maps of the three sizes are input into the REP module respectively, and then go through three branches. The first branch is a convolution with a convolution kernel size of 1 and a normalization layer; the second branch is a convolution with a convolution kernel size of 3 and a normalization layer; the third branch is a direct normalization layer; these three branches are superimposed to obtain three superposition results; The three superposition results are input into the CBM module, which consists of a convolution layer, a normalization layer, and a sigmoid activation function layer. After a convolution with a step size of 1, the trained weights are obtained, and finally a trained target detector is obtained.
3. The aircraft skin defect detection method combining drone and deep learning according to claim 2 is characterized in that: The feature extraction network in step 3 includes four ELAN modules and three MP-1 modules.
