Automatic identification method and system for dam leakage detection based on shipborne ground penetrating radar
Through the combination of shipborne ground penetrating radar and lightweight YOLOX target detection network, efficient and intelligent detection of hidden dangers in underwater dams is achieved, solving the problems of low underwater dam detection efficiency and low accuracy in the existing technology. , providing a safer and more efficient detection solution.
Patent Information
- Application Number
- CN202410826045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing underwater dam hazard detection methods rely on manual inspections, which are inefficient and inaccurate. In addition, underwater equipment is prone to failure in complex structures, making it difficult to achieve efficient and intelligent detection.
An automatic identification method for dam leakage detection based on shipborne ground penetrating radar is adopted. Through radar data preprocessing, data enhancement and annotation, a lightweight YOLOX target detection network is trained and deployed to embedded devices to achieve real-time detection.
It achieves efficient and intelligent identification of hidden dangers in underwater dams, reduces manpower and material consumption, improves detection efficiency and accuracy, is suitable for various waters, and has strong environmental adaptability and anti-interference capabilities.
Smart Images

Figure CN118376995B
Abstract
Description
Technical Field
[0001] The present invention relates to a field of ground penetrating radar applications, in particular to an automatic identification method for dam leakage detection based on a ship-borne ground penetrating radar, and further to an automatic identification system for dam leakage detection using the automatic identification method for dam leakage detection based on a ship-borne ground penetrating radar. Background Art
[0002] The rapid economic growth has led to the booming development of the water conservancy engineering industry. However, with the increase in the number of water conservancy engineering infrastructure, the long-standing safety supervision problem has undoubtedly become a major problem. Due to the lack of maintenance and management of these dams for many years, there are many potential hidden dangers such as cracks, leakage and looseness inside, which will greatly increase the risk of dam disasters. Due to the difficulties such as the hidden dangers in the dam body are highly concealed and difficult to detect, the existing detection methods are very limited.
[0003] At present, the detection of hidden dangers in dam bodies mainly relies on regular inspections by technical personnel. It not only consumes a lot of manpower and material resources, but also has extremely low work efficiency and low accuracy. Among them, the detection of underwater areas of dams with the highest risk factors has problems such as limited diving depth, short operation time and high risk. It is difficult for manual inspections to carry out normal detection work in relevant areas. Although there are improved underwater equipment to replace part of the diving work, the complex structure of the underwater area of the dam can easily lead to failure of underwater detection equipment. At the same time, since long-term detection work will generate massive amounts of data, relying solely on manual identification of hidden dangers is not only time-consuming, but also susceptible to human interference factors. Therefore, while seeking to improve the existing underwater detection technology, it is also necessary to improve the level of intelligence in the interpretation of underwater dam body detection data.
[0004] In the past few years, due to the rapid development of the detection industry, ground penetrating radar technology has become more and more well-known. Ground penetrating radar technology is based on the principle of electromagnetic wave propagation and is a common geophysical detection method. Due to its multiple advantages such as strong penetration, high resolution and easy operation, ground penetrating radar has been widely used in various detection scenarios, such as underground cavity detection, bridge detection and road surface detection. However, since ground penetrating radar will produce signal differences between different media, if it is used for underwater dam body hidden danger detection, it is also necessary to carry out supporting design and solution improvement for this special application scenario. Summary of the invention
[0005] The technical problem to be solved by the present invention is the need to provide an automatic identification method and system for dam leakage detection based on a ship-borne ground penetrating radar, aiming to provide an efficient and non-destructive intelligent detection technical solution for hidden dangers in the special application scenario of underwater dams, improve the intelligence level of ground penetrating radar image recognition, so as to greatly save the manpower and material resources required for underwater detection work, and provide a better foundation for large-scale underwater dam safety detection.
[0006] In this regard, the present invention provides an automatic identification method for dam leakage detection based on a ship-borne ground penetrating radar, comprising the following steps:
[0007] Step S1, using a ship-borne ground penetrating radar to collect radar data of the underwater dam body, pre-processing the collected radar data, and obtaining a collection of radar images of the underwater dam body;
[0008] Step S2, firstly perform data enhancement and annotation on the radar image collection, mark the potential hidden danger position with a rectangular frame on the radar image containing the potential hidden danger, and mark the potential hidden danger with a corresponding category label; then randomly shuffle the annotated image collection, and divide the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio;
[0009] Step S3, using the training set and the validation set to train and validate the lightweight YOLOX object detection network to obtain an optimized object detection model;
[0010] Step S4, lightweight setting is performed on the obtained target detection model, and deployed to the embedded device;
[0011] Step S5, using the ship-borne ground penetrating radar to acquire radar data of the underwater dam in real time, and performing real-time detection on the collected radar data through the target detection model.
[0012] A further improvement of the present invention is that step S1 includes the following sub-steps:
[0013] Step S101, using the shipborne ground penetrating radar to obtain original underwater dam body radar data;
[0014] Step S102, preprocessing the raw radar data to obtain a collection of preprocessed radar images; the preprocessing includes: zero point position adjustment processing, automatic gain processing, filtering processing, global background elimination processing and predictive deconvolution processing;
[0015] Step S103, screening out radar images containing potential hidden dangers from the acquired radar image collection, wherein the types of the potential hidden dangers include voids, leakages and looseness.
[0016] A further improvement of the present invention is that in step S102, the process of performing predictive deconvolution processing on the original radar data includes the following sub-steps:
[0017] Step S1021, extracting the reflected wave event axis of the collected underwater interface and selecting an appropriate prediction step length and the prediction operator length ; Among them, the prediction step length is the period of the multiple waves; at the same time, in order to effectively remove the multiple waves, a larger prediction operator length is generally selected ;
[0018] Step S1022, predicting the step length For a reflection period, the radar signal is time-shifted to obtain a multiple wave model including multiple waves and primary waves;
[0019] Step S1023: according to the predicted operator length And the white noise factor 𝜆, according to the least square theorem, the prediction filter factor is obtained ; The purpose is to calculate the error between the predicted result based on the filter factor and the actual output result is the smallest;
[0020] Step S1024, using the obtained prediction filter factor , perform convolution operation on the multiple wave model described in step S1022 to obtain predicted multiple wave interference; the calculation formula of multiple wave interference is as follows: ,in, is the current value, To use the current value and past values …, The future values to be predicted are multiple wave interferences; is the prediction filter factor, is the prediction number, ; is the sequence number of the multiple waves, is the historical sequence number of the multiple waves;
[0021] Step S1025, the predicted multiple wave interference is removed from the original radar data, and an effective primary wave without multiple wave effects can be obtained, that is, the final processed radar data, so as to achieve the purpose of suppressing multiple waves; the calculation formula is as follows: ,in, for The raw radar data at the time, It is multiple wave interference; )for The prediction error at the moment is the effective primary wave obtained after subtracting the multiple wave components.
[0022] A further improvement of the present invention is that step S2 includes the following sub-steps:
[0023] Step S201, performing data enhancement on the radar image collection, wherein the data enhancement adopts any one or more of random flipping, random cropping and splicing, random scaling and random Gaussian noise to achieve data amplification of the original hidden danger data set;
[0024] Step S202, using the target detection data set annotation tool labelimg to identify and annotate the radar images one by one, annotate the potential hazards with rectangular boxes on the radar images containing potential hazards, and add corresponding category labels to the potential hazards. After the annotation is completed, the annotation file in xml format is exported;
[0025] In step S203, the labeled image collection is randomly shuffled, and the image collection is divided into a training set, a validation set, and a test set in a ratio of 6:2:2.
[0026] A further improvement of the present invention is that step S3 includes the following sub-steps:
[0027] Step S301, input the training data in the training set into the lightweight YOLOX target detection network for training. During the training process, extract the features of different scales and sizes in the input radar image, and send the obtained features to the neck module for feature fusion, and then output the results through the corresponding head detection module to obtain the prediction results of multiple targets;
[0028] Step S302, verifying the trained lightweight YOLOX object detection network using the data in the verification set;
[0029] Step S303, the performance of the verified lightweight YOLOX object detection network is evaluated through the test set, and the performance evaluation includes evaluating the object detection accuracy, recall rate, model parameter quantity and FPS rate detection index of each category.
[0030] A further improvement of the present invention is that in step S301, a lightweight network MobileNetV2 is used to replace the traditional CSPDarknet as a feature extraction network to extract features of different scales and sizes in the input radar image; specifically, a depth-separable convolution block is used as its convolution layer, and the CBAM attention mechanism module is integrated into the feature extraction layer of the lightweight YOLOX target detection network. Among them, the CBAM attention mechanism module includes a channel attention module and a spatial attention module. The goal of the channel attention module is to emphasize the features of each channel, while the goal of the spatial attention module is to emphasize the importance of different positions in the picture. The addition of the CBAM attention mechanism module can greatly improve the detection performance of the model while increasing a small amount of calculation and parameters.
[0031] A further improvement of the present invention is that the implementation process of integrating the CBAM attention mechanism into the feature extraction layer of the lightweight YOLOX object detection network includes the following sub-steps:
[0032] Step S3011, input the original feature map to the channel attention module, perform spatial dimension pooling operation on each channel in the input feature map, including global average pooling and maximum pooling, to obtain two compressed 1×1×n one-dimensional vectors; wherein n is the number of channels in the input feature map;
[0033] Step S3012, input the two channel feature vectors into a shared fully connected layer composed of a multi-layer perceptron (MLP) and a hidden layer to learn the attention weight of each channel; perform product-addition operation and Sigmoid activation on the elements of the output two channel features to obtain an n×1×1 attention weight;
[0034] Step S3013, multiplying the obtained attention weight by each channel in the original input feature map to obtain a weighted channel feature map, thereby strengthening the attention to the channels that are beneficial to the current task and suppressing irrelevant channels;
[0035] Step S3014, input the attention-weighted channel feature map to the spatial attention module; use average pooling and maximum pooling operations on each input channel to obtain two channel features of size h×w×1; where h and w are the two dimensions of the input feature map respectively;
[0036] Step S3015, concatenate the two channel features obtained along the channel dimension, and then process the 2-channel feature map through a convolution layer to obtain a spatial attention weight; use a Sigmoid activation function on the generated spatial attention weight to obtain a spatial attention map;
[0037] Step S3016, apply the obtained spatial attention weights to the original input feature map, weight the features of each spatial position, and obtain the final output feature map.
[0038] A further improvement of the present invention is that step S4 includes the following sub-steps:
[0039] Step S401, performing sparse training on the obtained target detection model, performing structured pruning on channels with smaller weights through the sparse factors, and reconstructing the network model using the retained channel weights;
[0040] Step S402: deploy the reconstructed target detection model to the embedded device.
[0041] A further improvement of the present invention is that step S401 includes the following sub-steps:
[0042] Step S4011, adding a sparse factor 𝛾 to the data normalization BN layer (i.e., Batch Normalization layer) to perform sparse training on the data normalization BN layer;
[0043] Step S4012, traverse the data normalized BN layer weights after sparse training, and statistically sort all data normalized BN layer weights; according to the sorted data normalized BN weights, confirm the total number of channels to be retained, and use this to set the weight threshold threshold;
[0044] Step S4013, record the position of the elements that are less than the set weight threshold threshold, and perform pruning operation on the network model; that is, retain the channels whose weights of the data normalization BN layer are greater than the weight threshold threshold, and remove them otherwise; use the retained channel weights to assign values to each layer of the new model to obtain a pruned new model;
[0045] Step S4014, load the pruned new model and fine-tune the new model. The new model refers to a new target detection model, that is, a reconstructed target detection model.
[0046] The present invention also provides a dam leakage detection automatic identification system based on a ship-borne ground penetrating radar, which adopts the above-mentioned dam leakage detection automatic identification method based on a ship-borne ground penetrating radar and includes:
[0047] The data collection module collects radar data of the underwater dam using the ship-borne ground-penetrating radar, pre-processes the collected radar data, and obtains a collection of radar images of the underwater dam;
[0048] The data processing module first performs data enhancement and annotation on the radar image collection, marks the potential hidden danger location with a rectangular frame on the radar image containing the potential hidden danger, and marks the potential hidden danger with a corresponding category label; then randomly shuffles the annotated image collection, and divides the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio;
[0049] The model optimization module uses the training set and validation set to train and validate the lightweight YOLOX object detection network to obtain the optimized object detection model;
[0050] The model setup and deployment module performs lightweight setup on the obtained object detection model and deploys it to embedded devices;
[0051] The real-time detection module uses the ship-borne ground-penetrating radar to obtain radar data of the underwater dam in real time, and performs real-time detection on the collected radar data through the target detection model.
[0052] Compared with the prior art, the beneficial effects of the present invention are: using ship-borne ground-penetrating radar to collect radar data of underwater dam bodies, the collection process is safer and more convenient, and can effectively avoid direct contact between the ground and the water body or the dam body, and there will be no problems such as equipment damage caused by the device touching the bottom. At the same time, the scope of application for various different waters is also wider; on this basis, supporting designs and scheme improvements are also made for the special application scenario of underwater dam bodies, and the ship-borne ground-penetrating radar can be used to collect hidden dangers of the underwater dam body in real time, which is simpler and more efficient to operate, with a fast response speed, and stronger environmental adaptability and anti-interference ability. The present invention can realize efficient and intelligent discrimination of hidden dangers inside the underwater dam body, improve the intelligent level of hidden danger detection for the underwater dam body, greatly save the manpower and material resources required for underwater detection work, and provide a better foundation for large-scale underwater dam body safety detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a schematic diagram of the working process of an embodiment of the present invention;
[0054] Figure 2 It is a schematic diagram of the working principle of an embodiment of the present invention;
[0055] Figure 3 This is a network structure diagram of a lightweight YOLOX target detection model according to an embodiment of the present invention;
[0056] Figure 4 : is a network structure diagram of a CBAM attention mechanism module according to an embodiment of the present invention;
[0057] Figure 5 This is a radar image of a hidden danger of underwater dam body collapse identified by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] The preferred embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0059] like Figures 1 to 5 As shown, this embodiment provides a method for automatic identification of dam leakage detection based on ship-borne ground penetrating radar, comprising the following steps:
[0060] Step S1, using a ship-borne ground penetrating radar to collect radar data of the underwater dam body, pre-processing the collected radar data, and obtaining a collection of radar images of the underwater dam body;
[0061] Step S2, firstly perform data enhancement and annotation on the radar image collection, mark the potential hidden danger position with a rectangular frame on the radar image containing the potential hidden danger, and mark the potential hidden danger with a corresponding category label; then randomly shuffle the annotated image collection, and divide the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio; the preset ratio can be adjusted according to actual conditions and needs, and the default ratio is 6:2:2;
[0062] Step S3, using the training set and the validation set to train and validate the lightweight YOLOX object detection network to obtain an optimized object detection model;
[0063] Step S4, lightweight setting is performed on the obtained target detection model, and deployed to the embedded device;
[0064] Step S5, using the ship-borne ground penetrating radar to acquire radar data of the underwater dam in real time, and performing real-time detection on the collected radar data through the target detection model.
[0065] In step S1 of this embodiment, radar data of the underwater area of the dam body is first collected using a ship-borne ground penetrating radar. More specifically, step S1 of this embodiment includes the following sub-steps:
[0066] Step S101, using the shipborne ground penetrating radar to obtain original underwater dam body radar data;
[0067] Step S102, preprocessing the raw radar data to obtain a collection of preprocessed radar images; the preprocessing includes: zero point position adjustment processing, automatic gain processing, filtering processing, global background elimination processing, and predictive deconvolution processing; wherein the zero point position adjustment processing, automatic gain processing, filtering processing and global background elimination processing can all be implemented by existing data preprocessing methods; the zero point position adjustment processing refers to the process of removing the DC bias of the received raw channel data to ensure that the average value of each channel of data is close to zero; the automatic gain processing refers to the process of amplifying the amplitude of the attenuated part of the signal by gain to present a clearer radar waveform; the filtering processing refers to the process of effectively suppressing the noise in the data; the global background elimination processing refers to the process of averaging multiple channel data at the same depth point in the distance direction and subtracting the average value to remove horizontal interference at the same sampling point;
[0068] Step S103, screening out radar images containing potential hidden dangers from the acquired radar image collection, wherein the types of the potential hidden dangers include voids, leakages and looseness.
[0069] It is worth noting that for the special application scenario of underwater dams, it is also necessary to suppress the multiple waves with strong interference in the above-water radar data to ensure the effectiveness of data preprocessing. Therefore, in step S102 of this embodiment, the original radar data is subjected to predictive deconvolution processing, and the implementation process of predictive deconvolution processing includes the following sub-steps:
[0070] Step S1021, extracting the reflected wave event axis of the collected underwater interface and selecting an appropriate prediction step length and the prediction operator length ; Among them, the prediction step length is the period of the multiple waves; at the same time, in order to effectively remove the multiple waves, a larger prediction operator length is generally selected , the default value is 400ms;
[0071] Step S1022, predicting the step length For one reflection period, the radar signal is time-shifted to obtain a multiple wave model including multiple waves and primary waves;
[0072] Step S1023: based on the predicted operator length And white noise factor 𝜆, according to the least square theorem, solve the following matrix equation to get the prediction filter factor ; The purpose is to calculate the error between the predicted result based on the filter factor and the actual output result is the minimum; among them, is the prediction filter factor, is the prediction number, ; is the sequence number of the multiple waves, is the historical sequence number of multiple waves; on the left is the autocorrelation of earthquake records; on the right is the autocorrelation between a seismic record with a time shift and the original record; i∈0~ ;
[0073] =
[0074] Step S1024, using the obtained prediction filter factor , perform convolution operation on the multiple wave model described in step S1022 to obtain predicted multiple wave interference; the calculation formula of multiple wave interference is as follows: ,in, is the current value, To use the current value and past values …, The future values to be predicted are multiple wave interferences;
[0075] Step S1025, the predicted multiple wave interference is removed from the original radar data, and an effective primary wave without multiple wave effects can be obtained, that is, the final processed radar data, so as to achieve the purpose of suppressing multiple waves; the calculation formula is as follows: ,in, for The raw radar data at the time, It is multiple wave interference; )for The prediction error at the moment is the effective primary wave obtained after subtracting the multiple wave components.
[0076] In this embodiment, step S2 is used to obtain a training set, a test set, and a validation set of the target detection model. More specifically, step S2 preferably includes the following sub-steps:
[0077] Step S201, data enhancement is performed on the radar image collection to avoid overfitting due to insufficient training samples; the data enhancement adopts any one or more of random flipping, random cropping and splicing, random scaling and random Gaussian noise, so as to achieve data amplification of the original hidden danger data set; random flipping refers to flipping the image horizontally / vertically to improve the robustness of the model to mirror transformation; random cropping and splicing refers to randomly cropping a part of the image as a training sample to improve the adaptability of the model to changes in different cropping positions; random scaling refers to randomly scaling the image to a random size to improve the adaptability of the model to scale changes; random Gaussian noise refers to randomly adding Gaussian noise simulating real scenes to pixels in the image to improve the robustness of the model to noise;
[0078] Step S202, using the target detection data set annotation tool labelimg to identify and annotate the radar images one by one, annotate the potential hazards with rectangular boxes on the radar images containing potential hazards, and add corresponding category labels to the potential hazards, including void, seepage, and loosening. After the annotation is completed, an annotation file in XML format is exported;
[0079] In step S203, the labeled image collection is randomly shuffled, and the image collection is divided into a training set, a validation set, and a test set in a ratio of 6:2:2.
[0080] like Figure 3 As shown, step S3 in this embodiment is used to train the target detection model. More specifically, step S3 preferably includes the following sub-steps:
[0081] Step S301, input the training data in the training set into the lightweight YOLOX target detection network for training. During the training process, extract features of different proportions and sizes in the input radar image, such as using a main backbone network for extracting features of different proportions and sizes in the input image; and send the obtained features to the neck module for feature fusion, and then output the results through the corresponding head detection module to obtain the prediction results of multiple targets;
[0082] Step S302, verifying the trained lightweight YOLOX object detection network using the data in the verification set;
[0083] Step S303, the performance of the verified lightweight YOLOX object detection network is evaluated through the test set, and the performance evaluation includes evaluating the object detection accuracy, recall rate, model parameter quantity and FPS rate detection index of each category.
[0084] More preferably, in step S301 described in this embodiment, in order to enhance the effectiveness of the lightweight target detection network in S301, this embodiment preferably uses a lightweight network MobileNetV2 to replace the traditional CSPDarknet as a feature extraction network to extract features of different scales and sizes in the input radar image. Specifically, a depth-separable convolution block is used as its convolution layer, and the CBAM attention mechanism module is integrated into the feature extraction layer of the lightweight YOLOX target detection network. Among them, the CBAM attention mechanism module includes a channel attention module and a spatial attention module. The goal of the channel attention module is to emphasize the features of each channel, while the goal of the spatial attention module is to emphasize the importance of different positions of the picture. The addition of the CBAM attention mechanism module can greatly improve the detection performance of the model while increasing a small amount of computation and parameters.
[0085] Unlike the original main backbone network of CSPDarknet, this embodiment uses the lightweight network MobileNetV2 to implement feature extraction. By replacing the ordinary convolution layer in PANet with a deep separable convolution block, the computational cost and the number of model parameters can be greatly reduced. The implementation process is as follows: 1) First, the input feature map is divided into different groups according to the channel, and each convolution kernel corresponds to a different group; 2) Deep convolution operation is performed in the corresponding group, and a feature map is generated. Finally, the feature map generated by each group is spliced in the order of channels; 3) 1x1 convolution is used to increase the number of channels of the result of deep convolution. Since deep convolution only processes spatial information in the length and width directions, and point-by-point convolution only processes information in the cross-channel direction, the improved deep separable convolution greatly reduces the number of model parameters compared to the ordinary convolution used in the traditional structure.
[0086] It is worth noting that this embodiment integrates the CBAM attention mechanism into the feature extraction layer of the lightweight YOLOX target detection network to enhance the target detection network's attention to important features in the radar image, which is also called a radar map. Figure 4 As shown, the implementation process includes the following sub-steps:
[0087] Step S3011, input the original feature map to the channel attention module, perform spatial dimension pooling operation on each channel in the input feature map, including global average pooling and maximum pooling, to obtain two compressed 1×1×n one-dimensional vectors; wherein n is the number of channels in the input feature map;
[0088] Step S3012, input the two channel feature vectors into a shared fully connected layer composed of a multi-layer perceptron (MLP) and a hidden layer to learn the attention weight of each channel; perform product-addition operation and Sigmoid activation on the elements of the output two channel features to obtain an n×1×1 attention weight;
[0089] Step S3013, multiplying the obtained attention weight by each channel in the original input feature map to obtain a weighted channel feature map, thereby strengthening the attention to the channels that are beneficial to the current task and suppressing irrelevant channels;
[0090] Step S3014, input the attention-weighted channel feature map to the spatial attention module; use average pooling and maximum pooling operations on each input channel to obtain two channel features of size h×w×1; where h and w are the two dimensions of the input feature map respectively;
[0091] Step S3015, concatenate the two channel features obtained along the channel dimension, and then process the 2-channel feature map through a convolution layer to obtain a spatial attention weight; use a Sigmoid activation function on the generated spatial attention weight to obtain a spatial attention map;
[0092] Step S3016, apply the obtained spatial attention weights to the original feature map, weight the features of each spatial position, and obtain the final output feature map.
[0093] The step S4 of this embodiment is used to implement the setting and deployment of the target detection model. The step S4 preferably includes the following sub-steps:
[0094] Step S401, performing sparse training on the obtained target detection model, performing structured pruning on channels with smaller weights through the sparse factors, and reconstructing the network model using the retained channel weights;
[0095] Step S402: deploy the reconstructed target detection model to an embedded device, wherein the embedded device refers to an embedded device corresponding to the shipborne ground penetrating radar.
[0096] More preferably, step S401 in this embodiment includes the following sub-steps:
[0097] Step S4011, adding a sparse factor 𝛾 to the data normalization BN layer (i.e., Batch Normalization layer) to perform sparse training on the data normalization BN layer;
[0098] Step S4012, traverse the data normalization BN layer weights after sparse training, and statistically sort all data normalization BN layer weights in order from large to small; according to the sorted data normalization BN weights, set the lowest weight value in the BN layer to be retained as the weight threshold threshold; that is, in order to retain the first 70% of the BN layers after sorting, set the weight threshold threshold to the lowest BN weight value in the first 70% of the channels; the weight threshold threshold refers to a pre-set custom threshold for judging the data normalization BN layer weight, which can be adjusted according to actual conditions and needs;
[0099] Step S4013, record the position of the elements that are less than the set weight threshold threshold, and perform pruning operation on the network model; that is, retain the channels whose weights of the data normalization BN layer are greater than the weight threshold threshold, and remove them otherwise; use the retained channel weights to assign values to each layer of the new model to obtain a pruned new model;
[0100] Step S4014, load the pruned new model and fine-tune the new model. The new model refers to a new target detection model, that is, a reconstructed target detection model.
[0101] like Figure 5 As shown, step S5 described in this embodiment can use the ship-borne ground-penetrating radar to obtain new underwater radar data of the dam body in real time, and use the trained, set and deployed target detection model to perform real-time detection on the radar data to obtain prediction results of potential hidden danger targets of the underwater dam body.
[0102] This embodiment also provides a dam leakage detection automatic identification system based on a ship-borne ground penetrating radar, which adopts the above-mentioned dam leakage detection automatic identification method based on a ship-borne ground penetrating radar and includes:
[0103] The data collection module collects radar data of the underwater dam using the ship-borne ground-penetrating radar, pre-processes the collected radar data, and obtains a collection of radar images of the underwater dam;
[0104] The data processing module first performs data enhancement and annotation on the radar image collection, marks the potential hidden danger location with a rectangular frame on the radar image containing the potential hidden danger, and marks the potential hidden danger with a corresponding category label; then randomly shuffles the annotated image collection, and divides the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio;
[0105] The model optimization module uses the training set and validation set to train and validate the lightweight YOLOX object detection network to obtain the optimized object detection model;
[0106] The model setup and deployment module performs lightweight setup on the obtained object detection model and deploys it to embedded devices;
[0107] The real-time detection module uses the ship-borne ground-penetrating radar to obtain radar data of the underwater dam in real time, and performs real-time detection on the collected radar data through the target detection model.
[0108] In summary, this embodiment uses a ship-borne ground-penetrating radar to collect radar data of an underwater dam body. The collection process is safer and more convenient, and can effectively avoid direct contact between the ground and the water body or the dam body. There will be no problems such as equipment damage caused by the device touching the bottom. At the same time, the scope of application for various different waters is also wider; on this basis, supporting designs and scheme improvements are also made for the special application scenario of the underwater dam body, and the ship-borne ground-penetrating radar can be used to collect hidden dangers of the underwater dam body in real time. The operation is simpler and more efficient, the response speed is fast, and it has stronger environmental adaptability and anti-interference ability. The present invention can realize efficient and intelligent discrimination of hidden dangers inside the underwater dam body, improve the intelligent level of hidden danger detection for the underwater dam body, greatly save the manpower and material resources required for underwater detection work, and provide a better foundation for large-scale underwater dam body safety detection.
[0109] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the scope of protection of the present invention.
Claims
1. A method for automatic identification of dam leakage detection based on ship-borne ground penetrating radar, characterized in that: The following steps are involved: Step S1, using a ship-borne ground penetrating radar to collect radar data of the underwater dam body, pre-processing the collected radar data, and obtaining a collection of radar images of the underwater dam body; Step S2, firstly perform data enhancement and annotation on the radar image collection, mark the potential hidden danger position with a rectangular frame on the radar image containing the potential hidden danger, and mark the potential hidden danger with a corresponding category label; then randomly shuffle the annotated image collection, and divide the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio; Step S3, using the training set and the validation set to train and validate the lightweight YOLOX object detection network to obtain an optimized object detection model; Step S4, lightweight setting is performed on the obtained target detection model, and deployed to the embedded device; Step S5, using the ship-borne ground penetrating radar to obtain radar data of the underwater dam in real time, and performing real-time detection on the collected radar data through the target detection model; The step S3 comprises the following sub-steps: Step S301, input the training data in the training set into the lightweight YOLOX target detection network for training. During the training process, extract the features of different scales and sizes in the input radar image, and send the obtained features to the neck module for feature fusion, and then output the results through the corresponding head detection module to obtain the prediction results of multiple targets; Step S302, verifying the trained lightweight YOLOX object detection network using the data in the verification set; Step S303, performing a performance evaluation on the verified lightweight YOLOX object detection network through a test set, wherein the performance evaluation includes evaluating the object detection accuracy, recall rate, model parameter quantity, and FPS rate detection index of each category; In step S301, a lightweight network MobileNetV2 is used to extract features of different scales and sizes in the input radar image; a depth-separable convolution block is used as its convolution layer; The CBAM attention mechanism module is integrated into the feature extraction layer of the lightweight YOLOX target detection network, where the CBAM attention mechanism module includes a channel attention module and a spatial attention module. The lightweight network MobileNetV2 uses a deep separable convolution block as its convolution layer. The implementation process is as follows: first, the input feature map is divided into different groups according to the channel, and each convolution kernel corresponds to a different group; deep convolution operations are performed in the corresponding groups, and a feature map is generated, and the feature maps generated by each group are spliced in channel order; finally, 1x1 convolution is used to increase the channel number dimension of the result of the deep convolution; The step S4 comprises the following sub-steps: Step S401, performing sparse training on the obtained target detection model, performing structured pruning on channels with smaller weights through the sparse factors, and reconstructing the network model using the retained channel weights; Step S402, deploying the reconstructed target detection model to an embedded device; The step S401 includes the following sub-steps: Step S4011, adding a sparse factor 𝛾 to the data normalization BN layer, and performing sparse training on the data normalization BN layer; Step S4012, traverse the data normalized BN layer weights after sparse training, and statistically sort all data normalized BN layer weights; according to the sorted data normalized BN weights, confirm the total number of channels to be retained, and use this to set the weight threshold threshold; Step S4013, record the position of the element that is less than the set weight threshold, and perform pruning operation on the network model; assign values to each layer of the new model according to the retained channel weights to obtain a pruned new model; Step S4014, load the pruned new model and fine-tune the new model; the new model refers to the reconstructed target detection model.
2. The automatic identification method for dam leakage detection based on ship-borne ground penetrating radar according to claim 1 is characterized in that: The step S1 comprises the following sub-steps: Step S101, using the shipborne ground penetrating radar to obtain original underwater dam body radar data as original radar data; Step S102, preprocessing the original radar data to obtain a collection of preprocessed radar images; The preprocessing includes: zero point position adjustment processing, automatic gain processing, filtering processing, global background elimination processing and predictive deconvolution processing; Step S103, screening out radar images containing potential hidden dangers from the acquired radar image collection, wherein the types of the potential hidden dangers include voids, leakages and looseness.
3. The automatic identification method for dam leakage detection based on ship-borne ground penetrating radar according to claim 2 is characterized in that: In step S102, the process of performing predictive deconvolution processing on the original radar data includes the following sub-steps: Step S1021, extracting the reflected wave event axis of the collected underwater interface and selecting an appropriate prediction step length and the prediction operator length ; Among them, the prediction step length is the period of the multiple waves; Step S1022, predicting the step length For one reflection period, the radar signal is time-shifted to obtain a multiple wave model including multiple waves and primary waves; Step S1023: based on the predicted operator length And the white noise factor 𝜆, according to the least square theorem, the prediction filter factor is obtained ; Step S1024: according to the obtained prediction filter factor , through the formula Performing a convolution operation on the multiple wave model described in step S1022 to obtain predicted multiple wave interference; wherein, is the current value, To use the current value and past values …, The future values to be predicted are multiple wave interferences; is the prediction filter factor, is the prediction number, ; is the sequence number of the multiple waves, is the historical sequence number of the multiple waves; Step S1025, by formula The predicted multiple wave interference is removed from the original radar data to obtain the effective primary wave without the multiple wave effect. ;in, for The raw radar data at the time, It is multiple wave interference.
4. The automatic identification method for dam leakage detection based on shipborne ground penetrating radar according to any one of claims 1 to 3, characterized in that: The step S2 comprises the following sub-steps: Step S201, performing data enhancement on the radar image collection, wherein the data enhancement adopts any one or more of random flipping, random cropping and splicing, random scaling and random Gaussian noise to achieve data amplification of the original hidden danger data set; Step S202, using the target detection data set annotation tool labelimg to identify and annotate the radar images one by one, annotate the potential hazards with rectangular boxes on the radar images containing potential hazards, and add corresponding category labels to the potential hazards. After the annotation is completed, the annotation file in xml format is exported; In step S203, the labeled image collection is randomly shuffled, and the image collection is divided into a training set, a validation set, and a test set in a ratio of 6:2:
2.
5. The automatic identification method for dam leakage detection based on shipborne ground penetrating radar according to any one of claims 1 to 3, characterized in that: The implementation process of integrating the CBAM attention mechanism into the feature extraction layer of the lightweight YOLOX object detection network includes the following sub-steps: Step S3011, input the original feature map to the channel attention module, perform spatial dimension pooling operation on each channel in the input feature map, including global average pooling and maximum pooling, to obtain two compressed 1×1×n one-dimensional vectors; wherein n is the number of channels in the input feature map; Step S3012, input the two channel feature vectors into a shared fully connected layer composed of a multilayer perceptron and a hidden layer to learn the attention weight of each channel; perform product addition operation and Sigmoid activation on the elements of the output two channel features to obtain an n×1×1 attention weight; Step S3013, multiplying the obtained attention weight by each channel in the original input feature map to obtain a weighted channel feature map; Step S3014, input the attention-weighted channel feature map to the spatial attention module; use average pooling and maximum pooling operations on each input channel to obtain two channel features of size h×w×1; where h and w are the two dimensions of the input feature map respectively; Step S3015, concatenate the two channel features obtained along the channel dimension, and then process the 2-channel feature map through a convolution layer to obtain a spatial attention weight; use a Sigmoid activation function on the generated spatial attention weight to obtain a spatial attention map; Step S3016, apply the obtained spatial attention weights to the original input feature map, weight the features of each spatial position, and obtain the final output feature map.
6. An automatic identification system for dam leakage detection based on ship-borne ground penetrating radar, characterized in that: The automatic identification method for dam leakage detection based on shipborne ground penetrating radar as claimed in any one of claims 1 to 5 is adopted, and comprises: The data collection module collects radar data of the underwater dam using the ship-borne ground-penetrating radar, pre-processes the collected radar data, and obtains a collection of radar images of the underwater dam; The data processing module first performs data enhancement and annotation on the radar image collection, marks the potential hidden danger location with a rectangular frame on the radar image containing the potential hidden danger, and marks the potential hidden danger with a corresponding category label; then randomly shuffles the annotated image collection, and divides the randomly shuffled images into a training set, a test set, and a validation set according to a preset ratio; The model optimization module uses the training set and validation set to train and validate the lightweight YOLOX object detection network to obtain the optimized object detection model; The model setup and deployment module performs lightweight setup on the obtained object detection model and deploys it to embedded devices; The real-time detection module uses the ship-borne ground-penetrating radar to obtain radar data of the underwater dam in real time, and performs real-time detection on the collected radar data through the target detection model.
