Water tunnel cavity detection method, system, device and medium
By performing feature enhancement and multi-scale feature fusion on ground penetrating radar data, and using the convolution module and channel attention mechanism to extract feature layers, the problem of low detection efficiency and accuracy in the existing technology is solved, and more efficient water delivery is achieved. Tunnel disease detection.
Patent Information
- Application Number
- CN202410547443.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-06
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, ground-penetrating radar is used to detect diseases in water conveyance tunnels with low detection efficiency and low accuracy. It is especially difficult to refine the detection results under complex conditions.
By obtaining the instantaneous amplitude and instantaneous phase of the enhanced local features of ground penetrating radar, multi-scale features are extracted and fused, and the convolution module, channel attention mechanism and FPN feature pyramid are used for feature extraction to generate a target feature layer for water delivery. Tunnel detection.
The detection efficiency and accuracy are improved, and diseases such as holes in water conveyance tunnels can be more accurately detected under complex conditions.
Smart Images

Figure CN118566907A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method, system, device and storage medium for detecting voids in a water conveyance tunnel. Background Art
[0002] A water tunnel is a hydraulic structure excavated underground for the purpose of conveying water. In the related art, due to design, construction, and use factors, different degrees of defects are prone to occur in the tunnel lining. In order to promptly detect defects such as cavities in the tunnel, the ground penetrating radar method is currently commonly used to detect tunnel defects. The interpretation of ground penetrating radar data is to determine the location and scale of the target anomaly based on the waveform characteristics of the reflected electromagnetic waves on the time domain profile. The interpretation relies heavily on the experience of technicians, resulting in low detection efficiency. Moreover, when the detection conditions are relatively complex, it is difficult to obtain refined detection results from waveform feature analysis alone, and the detection accuracy is not high. Therefore, there are still technical problems that need to be solved in the related art. Summary of the invention
[0003] The purpose of this application is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0004] To this end, an object of an embodiment of the present application is to provide a method, system, device and storage medium for detecting voids in a water conveyance tunnel, which can improve detection accuracy.
[0005] In order to achieve the above-mentioned technical objectives, the technical solution adopted by the embodiments of the present application includes: a method for detecting voids in a water transfer tunnel, comprising the following steps: obtaining a first instantaneous amplitude and a first instantaneous phase after local feature enhancement of a ground penetrating radar; extracting a first multi-scale feature of the first instantaneous amplitude and a second multi-scale feature of the first instantaneous phase; fusing the first multi-scale feature and the second multi-scale feature to obtain a fused feature map; performing feature extraction on the fused feature map to obtain a target feature layer; and detecting the water transfer tunnel according to the target feature layer to obtain a detection result.
[0006] In addition, the method for detecting voids in a water conveyance tunnel according to the above embodiment of the present invention may also have the following additional technical features:
[0007] Further, in the embodiment of the present application, the step of extracting the first multi-scale feature of the first instantaneous amplitude and the second multi-scale feature of the first instantaneous phase specifically includes:
[0008] Inputting the first instantaneous amplitude and the first instantaneous phase into a convolution module for multiple extractions to obtain a first data feature and a second data feature;
[0009] A fourth residual feature stacking module and a downsampling module are used to further extract features of the first data feature and the second data feature to obtain a first multi-scale feature and a second multi-scale feature.
[0010] Further, in the embodiment of the present application, the step of fusing the first multi-scale feature and the second multi-scale feature to obtain a fused feature map specifically includes:
[0011] Superimposing the first multi-scale feature and the second multi-scale feature to obtain a superimposed feature;
[0012] Input the superimposed features into a channel attention module to obtain the weight of each channel corresponding to the superimposed features;
[0013] The superimposed feature is multiplied by the weight to obtain a fused feature map.
[0014] Further, in the embodiment of the present application, the step of multiplying the superimposed feature by the weight to obtain a fused feature map specifically includes:
[0015] The superimposed features and the weights are input into a fusion formula to obtain a fusion feature map; wherein the fusion formula is:
[0016] CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F)))
[0017] Among them, MLP stands for fully connected layer, which is used to learn the importance of each channel from the pooled features, F is the input feature layer, AvgPool() is the average pooling layer operation, MaxPool is the maximum pooling layer operation, and σ is the Sigmoid activation function.
[0018] Further, in an embodiment of the present application, the fused feature map includes a first intermediate feature, a second intermediate feature, and a third intermediate feature; the step of extracting features from the fused feature map to obtain a target feature layer specifically includes:
[0019] Performing convolution adjustment on the third intermediate feature and performing upsampling to obtain a first feature layer;
[0020] Convolving the first intermediate feature, the second intermediate feature, and the third intermediate feature respectively to obtain a first convolution feature layer, a second convolution feature layer, and a third convolution feature layer;
[0021] Superimposing the first feature layer and the second convolution feature layer to obtain a first superimposed feature layer;
[0022] Perform convolution adjustment and upsampling on the first superimposed feature layer to obtain a second feature layer;
[0023] The second feature layer and the first convolution feature layer are superimposed and feature extracted to obtain a second superimposed feature layer;
[0024] Perform convolution adjustment and downsampling on the second superimposed feature layer to obtain a third feature layer;
[0025] The third feature layer and the third convolution feature layer are superimposed and feature extracted to obtain a third superimposed feature layer;
[0026] The first superimposed feature layer, the second superimposed feature layer and the third superimposed feature layer are used as the target feature layers.
[0027] Further, in the embodiment of the present application, the step of detecting the water conveyance tunnel according to the target characteristic layer to obtain the detection result specifically includes:
[0028] Decoding the feature layer to obtain a number of prediction boxes with confidence;
[0029] A confidence threshold is configured, and the prediction box is screened by the confidence threshold to obtain a target prediction box; the confidence of the target prediction box is greater than the confidence threshold;
[0030] Non-maximum suppression is applied to the target prediction box to eliminate overlapping prediction boxes in the target prediction box to obtain a detection result.
[0031] Further, in the embodiment of the present application, the first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced can be obtained by the following steps:
[0032] Obtain the original instantaneous amplitude and original instantaneous phase of the ground penetrating radar;
[0033] Configure phase adjustment value and adjustment factor;
[0034] Adding the phase adjustment value and the original instantaneous phase to obtain a first instantaneous phase;
[0035] The first instantaneous amplitude and the adjustment factor are multiplied to obtain the first instantaneous amplitude.
[0036] On the other hand, the embodiment of the present application also provides a water tunnel cavity detection system, including:
[0037] An acquisition unit, used to acquire a first instantaneous amplitude and a first instantaneous phase after the local feature of the ground penetrating radar is enhanced;
[0038] a first processing unit, configured to extract a first multi-scale feature of the first instantaneous amplitude and a second multi-scale feature of the first instantaneous phase;
[0039] A second processing unit, configured to fuse the first multi-scale features and the second multi-scale features to obtain a fused feature map;
[0040] A third processing unit is used to extract features from the fused feature map to obtain a target feature layer;
[0041] The fourth processing unit is used to detect the water diversion tunnel according to the target characteristic layer to obtain a detection result.
[0042] On the other hand, the present application also provides a water conveyance tunnel cavity detection device, comprising:
[0043] at least one processor;
[0044] at least one memory for storing at least one program;
[0045] When the at least one program is executed by the at least one processor, the at least one processor implements the water conveyance tunnel cavity detection method as described above.
[0046] In addition, the present application also provides a computer-readable storage medium, which stores processor-executable instructions. When the processor-executable instructions are executed by the processor, they are used to execute a water transfer tunnel cavity detection method as described above.
[0047] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application:
[0048] The present application can obtain the first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced; extract the first multi-scale feature of the first instantaneous amplitude and the second multi-scale feature of the first instantaneous phase; fuse the first multi-scale feature and the second multi-scale feature to obtain a fused feature map; extract features from the fused feature map to obtain a target feature layer; detect the water tunnel according to the target feature layer to obtain a detection result. The present application detects the water tunnel through an artificial intelligence algorithm, which can improve the detection efficiency and the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the steps of a method for detecting voids in a water conveyance tunnel in a specific embodiment of the present invention;
[0050] Figure 2 It is a schematic diagram of a method for detecting voids in a water conveyance tunnel in another specific embodiment of the present invention;
[0051] Figure 3 A network diagram of a Backbone network in a specific embodiment of the present invention;
[0052] Figure 4 A schematic diagram of a module structure in a network during feature fusion in a specific embodiment of the present invention;
[0053] Figure 5 It is a structural schematic diagram of an FPN feature pyramid in a specific embodiment of the present invention;
[0054] Figure 6 A schematic diagram of a network detection result in a specific embodiment of the present invention;
[0055] Figure 7 It is a structural schematic diagram of a water conveyance tunnel cavity detection system in a specific embodiment of the present invention;
[0056] Figure 8 The figure is a schematic structural diagram of a water conveyance tunnel cavity detection device in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0057] The embodiments of the present invention are described in detail below with reference to the accompanying drawings to explain the principles and processes of the water conveyance tunnel cavity detection method, system, device and storage medium in the embodiments of the present invention.
[0058] In view of the above-mentioned defects of the prior art, Figure 1 , Figure 1 Schematic diagram of the steps of a water tunnel cavity detection method provided in an embodiment of the present application. Figure 1 In the present invention, the water conveyance tunnel cavity detection method may include but is not limited to steps S101 to S105.
[0059] S101, obtaining a first instantaneous amplitude and a first instantaneous phase after local feature enhancement of the ground penetrating radar;
[0060] S102, extracting a first multi-scale feature of a first instantaneous amplitude and a second multi-scale feature of a first instantaneous phase;
[0061] S103, fusing the first multi-scale feature and the second multi-scale feature to obtain a fused feature map;
[0062] S104, extracting features from the fused feature map to obtain a target feature layer;
[0063] S105. Detect the water conveyance tunnel according to the target characteristic layer to obtain a detection result.
[0064] Further, in some feasible embodiments of the present application, the step of extracting the first multi-scale features of the first instantaneous amplitude and the second multi-scale features of the first instantaneous phase may include but is not limited to steps S201 and S202.
[0065] S201, inputting the first instantaneous amplitude and the first instantaneous phase into a convolution module for multiple extractions to obtain a first data feature and a second data feature;
[0066] S202, further extracting features from both the first data feature and the second data feature using a quartic residual feature stacking module and a downsampling module to obtain a first multi-scale feature and a second multi-scale feature.
[0067] Furthermore, in some feasible embodiments of the present application, the step of fusing the first multi-scale features and the second multi-scale features to obtain a fused feature map may include but is not limited to steps S301 to S303.
[0068] S301, superimposing the first multi-scale feature and the second multi-scale feature to obtain a superimposed feature;
[0069] S302, inputting the superimposed features into a channel attention module to obtain the weight of each channel corresponding to the superimposed features;
[0070] S303: Multiply the superimposed features by the weights to obtain a fused feature map.
[0071] Further, in some feasible embodiments of the present application, the step of multiplying the superimposed features by the weights to obtain a fused feature map specifically includes:
[0072] The superimposed features and weights are input into the fusion formula to obtain the fusion feature map; the fusion formula is:
[0073] CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F)))
[0074] Among them, MLP stands for fully connected layer, which is used to learn the importance of each channel from the pooled features, F is the input feature layer, AvgPool() is the average pooling layer operation, MaxPool is the maximum pooling layer operation, and σ is the Sigmoid activation function.
[0075] Furthermore, in some feasible embodiments of the present application, the step of performing feature extraction on the fused feature map to obtain a target feature layer may include but is not limited to steps S501 to S508.
[0076] S501, performing convolution adjustment on the third intermediate feature and upsampling to obtain a first feature layer;
[0077] S502, respectively convolve the first intermediate feature, the second intermediate feature, and the third intermediate feature to obtain a first convolution feature layer, a second convolution feature layer, and a third convolution feature layer;
[0078] S503, superimposing the first feature layer and the second convolution feature layer to obtain a first superimposed feature layer;
[0079] S504, performing convolution adjustment and upsampling on the first superimposed feature layer to obtain a second feature layer;
[0080] S505, superimposing the second feature layer and the first convolution feature layer and performing feature extraction to obtain a second superimposed feature layer;
[0081] S506, performing convolution adjustment and downsampling on the second superimposed feature layer to obtain a third feature layer;
[0082] S507, superimposing the third feature layer and the third convolution feature layer and performing feature extraction to obtain a third superimposed feature layer;
[0083] S508: Use the first superimposed feature layer, the second superimposed feature layer, and the third superimposed feature layer as the target feature layer.
[0084] Further, in some feasible embodiments of the present application, the step of detecting the water conveyance tunnel according to the characteristic layer to obtain the detection result may include but is not limited to steps S601 to S603:
[0085] S601, decoding the feature layer to obtain a number of prediction boxes with confidence;
[0086] S602, configuring a confidence threshold, filtering the prediction box by the confidence threshold, and obtaining a target prediction box; the confidence of the target prediction box is greater than the confidence threshold;
[0087] S603: non-maximum suppression is applied to the target prediction box to eliminate overlapping prediction boxes in the target prediction box to obtain a detection result.
[0088] Further, in some feasible embodiments of the present application, the first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced can be obtained through steps S701-S704:
[0089] S701, obtaining the original instantaneous amplitude and the original instantaneous phase of the ground penetrating radar;
[0090] S702, configuring a phase adjustment value and an adjustment factor;
[0091] S703, summing the phase adjustment value and the original instantaneous phase to obtain a first instantaneous phase;
[0092] S704 , multiply the first instantaneous amplitude and the adjustment factor to obtain the first instantaneous amplitude.
[0093] The specific implementation principle of this application is described below with reference to the accompanying drawings:
[0094] 1. This embodiment provides a method for detecting void targets in water transfer tunnels. The method first performs attribute analysis on ground penetrating radar data, uses local features to enhance instantaneous attribute feature analysis to calculate the instantaneous amplitude and instantaneous phase information of the ground penetrating radar data, and then simultaneously inputs these two pieces of information into the improved YOLO target detection network proposed in this embodiment. The YOLO target detection network proposed in this embodiment has two Backbone networks, and the two types of instantaneous attribute data are respectively passed into the two Backbone networks to extract multi-scale features from the two types of data. The features extracted by the two Backbone networks are fused using the channel attention mechanism and the spatial attention mechanism, and then the fused feature maps are cascaded in sequence and sent to the YOLO layer for cavity disease detection. Figure 2 shown.
[0095] 2. Ground Penetrating Radar Property Analysis
[0096] Ground penetrating radar instantaneous attribute analysis is often used to detect and evaluate features such as structures and layers. The reflected electromagnetic wave signal recorded by the ground penetrating radar receiving antenna is expressed by trigonometric functions as follows:
[0097]
[0098] In the above formula (1), A(t) is the amplitude function, t is time, ω0 is the center frequency, is the phase function. According to the complex signal theory, the Hilbert transform can be used to construct an analytical signal z(t), whose real part is u(t) and whose imaginary part is the Hilbert transform v(t) of u(t), which is expressed as follows:
[0099]
[0100] z(t)=u(t)+jv(t)=A(t)e -jθ(t) (3)
[0101]
[0102] In the above formula, A(t) is the instantaneous amplitude and θ(t) is the instantaneous phase. Based on this, the instantaneous amplitude and instantaneous phase of the radar signal u(t) can be calculated. The expression is as follows:
[0103]
[0104]
[0105] 3. Dynamic local features enhance instantaneous attribute feature analysis
[0106] In order to more accurately capture the signal characteristics of abnormal structures such as tunnel voids, based on the above-mentioned Hilbert transform method, this embodiment proposes a calculation model to analyze the local changes of the signal and dynamically adjust the calculation of instantaneous properties.
[0107] In order to improve the accuracy and sensitivity of instantaneous attribute analysis, an adjustment factor based on local features is introduced. The local feature adjustment factor is dynamically calculated according to the local changes of the signal and is determined by the local energy and local frequency changes of the signal.
[0108] α(t)=f(E local (t), F local (t)) (7)
[0109] Among them, E local (t), F local (t) are the local energy and local frequency of the signal near time t, respectively, and are a function that maps these two local characteristics to the adjustment factor. The local energy is estimated by calculating the sum of the squares of the signal in a small time window, and the local frequency is calculated by analyzing the spectrum in the small window. The calculation method of local energy and local frequency is as follows:
[0110]
[0111]
[0112] in is the instantaneous phase, and its derivative Reflects the instantaneous frequency. The function of the local adjustment factor is designed as:
[0113]
[0114] Then the improved instantaneous amplitude and instantaneous phase are calculated as follows
[0115] A new (t) = α(t)·A(t) (11)
[0116]
[0117] in, is the phase adjustment value calculated based on α(t), which can be calculated by the following formula
[0118]
[0119] In the above formula, β is a constant used to control the sensitivity of phase adjustment.
[0120] By introducing the local feature adjustment factor, not only the original instantaneous characteristics of the signal are retained, but also the local characteristics of the signal are introduced, thereby improving the sensitivity and accuracy of abnormal structural features.
[0121] 4. An improved YOLO target detection network, the main process is as follows:
[0122] (1) Instantaneous attribute data input: Instantaneous attribute analysis is performed through Hilbert transform to obtain instantaneous amplitude and instantaneous phase data. The two types of data are first transformed into data with a size of 640 length, 640 width, and 3 channels, and then input into two backbone networks respectively.
[0123] (2) Convolutional feature extraction: In the Backbone network (such as Figure 3 As shown in the figure, there are four CBS convolution modules (Convolution-BatchNorm-SiLU) for extracting features of the data. Each CBS convolution module combines a convolution layer (Convolution), a batch normalization layer (BatchNorm), and a SiLU activation function. The convolution layer is a layer used to extract features from input data (such as images). It captures spatial and pattern information by sliding the convolution kernel (or filter) over the input data and calculating the dot product between the convolution kernel and the local area of the data. Applying batch normalization after the convolution layer can normalize the data in each small batch to a distribution with zero mean and unit variance, which can accelerate convergence and improve training stability. SiLU is the activation function of the network, which is used to increase the nonlinearity of the network. is the input of the SiLu function, then the SiLU function is as follows:
[0124]
[0125] (3) Residual feature stacking module: In the Backbone network, the data obtained after multiple CBS processes enters the residual feature stacking module (such as Figure 4 As shown in the figure). The residual feature stacking module has four branches, each of which has 1, 1, 3 and 5 standard CBS modules. Each branch extracts features and finally stacks them. After stacking, a standard CBS module extracts features again. Using this residual structure, the gradient vanishing problem caused by the increase of network depth in the neural network is alleviated while improving the network depth and the diversity of extracted features.
[0126] (4) Downsampling module: In the Backbone network, the residual feature stacking module is followed by the downsampling module, which has two branches (such as Figure 4 As shown in the figure, the left branch is a maximum pooling with a stride of 2x2 and a 1x1 convolution, and the right branch is a 1x1 convolution and a convolution with a kernel size of 3x3 and a stride of 2x2. The results of the two branches are superimposed at the output.
[0127] (5) Intermediate feature output: The features extracted by the CBS module are further extracted using a four-fold residual feature stacking module + downsampling module, and three intermediate features feat1, feat2, and feat3 are extracted at the 8th, 10th, and 12th layers of the Backbone network, respectively (e.g. Figure 3 As shown), the sizes of the three intermediate features are (80, 80, 512), (40, 40, 1024) and (20, 20, 1024) respectively.
[0128] (6) Fusion of intermediate features of two types of data: The instantaneous amplitude and instantaneous phase data obtained through instantaneous attribute analysis are input into two backbone networks respectively, and three intermediate features feat1, feat2, and feat3 are output respectively. The intermediate features obtained from the two types of data are first superimposed.
[0129] (7) Channel attention module performs feature fusion: The superimposed features are input into the channel attention module (such as Figure 4 As shown in Figure 1, the channel attention module first performs global average pooling on the input features. The pooled data is input into two fully connected layers. After completing two full connections, the value is fixed between 0 and 1 through the Sigmoid function. At this time, the weight of each channel in the input feature layer is obtained. Finally, the input feature layer is multiplied by the obtained weight. Its mathematical expression is
[0130] CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) (15)
[0131] In the above formula, MLP stands for the fully connected layer, which is used to learn the importance of each channel from the pooled features, F is the input feature layer, σ is the Sigmoid activation function, AvgPool() is the average pooling layer operation, and MaxPool is the maximum pooling layer operation. The channel attention module dynamically adjusts the weights of different channels for the next step of calculation, and fuses the new feat1, feat2 and feat3. The sizes of the three new intermediate feature layers are (80, 80, 1024), (40, 40, 2048) and (20, 20, 2048) respectively.
[0132] (8) FPN feature extraction: The data that is feature fused by the channel attention module is further extracted using the FPN feature pyramid (e.g. Figure 5As shown), the enhanced features are obtained. First, a 1×1 convolution is performed on the three intermediate features feat3, feat2, and the third intermediate feature feat3 in feat1 to adjust the feature channel, and then an upsampling is performed and the feature layer after a convolution with the second intermediate feature feat2 is superimposed. The superimposed features are extracted using the residual feature stacking module to obtain the feature P32. The size of the P32 feature layer is (40, 40, 256); a 1×1 convolution is performed on the P32 feature layer to adjust the feature channel, and then an upsampling is performed and the feature layer after a convolution with the first intermediate feature feat1 is superimposed. The superimposed features are extracted using the residual feature stacking module to obtain feature P21, and the size of the P21 feature layer is (80, 80, 128); the P21 feature layer is downsampled, and then superimposed with P32. The superimposed features are extracted using the residual feature stacking module to obtain feature P12; the P12 feature layer is downsampled, and then superimposed with the feature layer after a 1×1 convolution with feat3. The superimposed features are extracted using the residual feature stacking module to obtain feature P23. The feat1, feat2, and feat3 features extracted by the Backbone network are extracted by the FPN feature extraction module and output three feature layers, which are P21, P12, and P23 from the low layer to the high layer, and the sizes of the three features are (80, 80, 128), (40, 40, 256), and (20, 20, 512), respectively.
[0133] (9) YOLO Head predicts the obtained features: After further feature extraction through the FPN feature pyramid, three feature layers P21, P12 and P23 are obtained, and YOLO Head is used to predict the obtained feature layers. YOLOHead consists of a series of convolutional layers + batch normalization layers + Leaky ReLU activation functions. The depth of the output depends on the complexity of the task. Its depth is, where P is the number of prior boxes, C is the number of categories, and 5 represents five position parameters (including the center position x, y of the predicted box, the size w, h relative to the prior box, and the confidence that the box contains the target). In this method, the sizes of the feature layers finally obtained after YOLOHead processing are (80, 80, 18), (40, 40, 18) and (20, 20, 18).
[0134] (10) Prediction box generation: The feature layer obtained by YOLO Head processing is decoded to obtain a series of prediction boxes. First, a certain threshold is used to filter the prediction boxes with lower confidence, and only the prediction boxes with higher confidence are retained. Then non-maximum suppression is applied to the remaining prediction boxes to eliminate overlapping prediction boxes and retain the best prediction results (such as Figure 6 shown).
[0135] (11) Loss function: The training loss of the network proposed in this method is a combined loss, which consists of several different parts to ensure that the model can accurately predict the position, size, confidence and category of the bounding box: bounding box coordinate loss, the greater the intersection between the predicted box and the actual position, the smaller the bounding box coordinate loss; confidence loss, this part of the loss calculates the error between the predicted confidence and the true confidence. If there is indeed an object in a certain grid cell, this loss will guide the model to improve the confidence. If there is no object, it will penalize the model for high confidence predictions for the grid cell; category loss measures the degree of match between the model's predicted category probability and the true category for cells with objects. The loss function of the network can be expressed as follows, where λ is the weight coefficient of the different loss parts, which are used to balance the relative importance of different parts when training the model:
[0136] Loss = λ coord ·Loss coord +λ conf ·Loss conf +λ class ·Loss class (16)
[0137]
[0138] Loss coord is the bounding box positioning loss, the intersection-over-union ratio between the IOU prediction box and the real box, ρ 2 (b,b gt ) is the Euclidean distance between the center of the detection box and the center of the real box, c is the diagonal distance of the minimum closure area that can contain both the detection box and the real box, and αv is a constant used to balance the position deviation and size deviation.
[0139]
[0140] Loss conf is the confidence loss, which is a cross entropy function. is the confidence prediction probability value obtained by the network model, and p is the true probability value of the target disease confidence.
[0141]
[0142] Loss class is the class loss, p i (c) is the true probability that cell i contains target c, is the predicted class probability.
[0143] In addition, refer to Figure 7 ,and Figure 1 Corresponding to the method, a water tunnel cavity detection system is also provided in an embodiment of the present application. The system may include: an acquisition unit 1001, a first processing unit 1002, a second processing unit 1003, a third processing unit 1004 and a fourth processing unit 1005. The acquisition unit 1001 can be used to obtain the first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced; the first processing unit 1002 can be used to extract the first multi-scale feature of the first instantaneous amplitude and the second multi-scale feature of the first instantaneous phase. The second processing unit 1003 can be used to fuse the first multi-scale feature and the second multi-scale feature to obtain a fused feature map. The third processing unit 1004 can be used to extract features from the fused feature map to obtain a target feature layer. The fourth processing unit 1005 can be used to detect the water tunnel according to the target feature layer to obtain a detection result.
[0144] It should be noted that the acquisition unit can be any integrated circuit unit or microprocessor unit obtained by integrating a chip with processing functions and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also be any integrated circuit module or microprocessor module obtained by integrating a chip with processing functions and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit can also include one or more memories. One or more memories can be used to store the specific algorithm for water tunnel cavity detection in this application.
[0145] It should be noted that the contents of the above-mentioned water tunnel void detection method embodiment are all applicable to the present water tunnel void detection system embodiment. The functions specifically implemented by the present water tunnel void detection system embodiment are the same as those of the above-mentioned water tunnel void detection method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned water tunnel void detection method embodiment.
[0146] and Figure 1 Corresponding to the method, the embodiment of the present application also provides a water conveyance tunnel cavity detection device, the specific structure of which can be referred to Figure 8 ,include:
[0147] at least one processor 1011;
[0148] At least one memory 1012, used to store at least one program;
[0149] When the at least one program is executed by the at least one processor, the at least one processor implements the water transfer tunnel cavity detection method.
[0150] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0151] and Figure 1 Corresponding to the method, an embodiment of the present application further provides a computer-readable storage medium, which stores instructions executable by a processor, and the instructions executable by the processor are used to execute the water transfer tunnel cavity detection method when executed by the processor.
[0152] The contents of the above-mentioned water tunnel void detection method embodiment are all applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those of the above-mentioned water tunnel void detection method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned water tunnel void detection method embodiment.
[0153] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are expected, wherein the order of various operations is changed and the sub-operation described as a part of a larger operation is performed independently.
[0154] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0155] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0156] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.
[0157] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0158] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0159] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0160] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0161] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for detecting voids in a water conveyance tunnel, characterized in that: The following steps are involved: Obtaining the first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced; Extracting a first multi-scale feature of the first instantaneous amplitude and a second multi-scale feature of the first instantaneous phase; fusing the first multi-scale features and the second multi-scale features to obtain a fused feature map; Performing feature extraction on the fused feature map to obtain a target feature layer; The water diversion tunnel is detected according to the target characteristic layer to obtain a detection result.
2. A method for detecting voids in a water conveyance tunnel according to claim 1, characterized in that: The step of extracting the first multi-scale feature of the first instantaneous amplitude and the second multi-scale feature of the first instantaneous phase specifically includes: Inputting the first instantaneous amplitude and the first instantaneous phase into a convolution module for multiple extractions to obtain a first data feature and a second data feature; A fourth residual feature stacking module and a downsampling module are used to further extract features of the first data feature and the second data feature to obtain a first multi-scale feature and a second multi-scale feature.
3. A method for detecting voids in a water conveyance tunnel according to claim 1, characterized in that: The step of fusing the first multi-scale feature and the second multi-scale feature to obtain a fused feature map specifically includes: Superimposing the first multi-scale feature and the second multi-scale feature to obtain a superimposed feature; Input the superimposed features into a channel attention module to obtain the weight of each channel corresponding to the superimposed features; The superimposed feature is multiplied by the weight to obtain a fused feature map.
4. A method for detecting voids in a water conveyance tunnel according to claim 3, characterized in that: The step of multiplying the superimposed feature by the weight to obtain a fused feature map specifically includes: The superimposed features and the weights are input into a fusion formula to obtain a fusion feature map; wherein the fusion formula is: CA(F)=σ(MLP(AvgPool(F))+MLP(MaxPool(F))) Among them, MLP stands for fully connected layer, which is used to learn the importance of each channel from the pooled features, F is the input feature layer, AvgPool() is the average pooling layer operation, MaxPool is the maximum pooling layer operation, and σ is the Sigmoid activation function.
5. A method for detecting voids in a water conveyance tunnel according to claim 1, characterized in that: The fused feature map includes a first intermediate feature, a second intermediate feature, and a third intermediate feature; the step of extracting features from the fused feature map to obtain a target feature layer specifically includes: Performing convolution adjustment on the third intermediate feature and performing upsampling to obtain a first feature layer; Convolving the first intermediate feature, the second intermediate feature, and the third intermediate feature respectively to obtain a first convolution feature layer, a second convolution feature layer, and a third convolution feature layer; Superimposing the first feature layer and the second convolution feature layer to obtain a first superimposed feature layer; Perform convolution adjustment and upsampling on the first superimposed feature layer to obtain a second feature layer; The second feature layer and the first convolution feature layer are superimposed and feature extracted to obtain a second superimposed feature layer; Perform convolution adjustment and downsampling on the second superimposed feature layer to obtain a third feature layer; The third feature layer and the third convolution feature layer are superimposed and feature extracted to obtain a third superimposed feature layer; The first superimposed feature layer, the second superimposed feature layer and the third superimposed feature layer are used as the target feature layers.
6. A method for detecting voids in a water conveyance tunnel according to claim 1, characterized in that: The step of detecting the water conveyance tunnel according to the target characteristic layer to obtain the detection result specifically includes: Decoding the feature layer to obtain a number of prediction boxes with confidence; A confidence threshold is configured, and the prediction box is screened by the confidence threshold to obtain a target prediction box; the confidence of the target prediction box is greater than the confidence threshold; Non-maximum suppression is applied to the target prediction box to eliminate overlapping prediction boxes in the target prediction box to obtain a detection result.
7. A method for detecting voids in a water conveyance tunnel according to claim 1, characterized in that: The first instantaneous amplitude and the first instantaneous phase after the local feature of the ground penetrating radar is enhanced can be obtained by the following steps: Obtain the original instantaneous amplitude and original instantaneous phase of the ground penetrating radar; Configure phase adjustment value and adjustment factor; Adding the phase adjustment value and the original instantaneous phase to obtain a first instantaneous phase; The first instantaneous amplitude and the adjustment factor are multiplied to obtain the first instantaneous amplitude.
8. A water tunnel cavity detection system, characterized in that: include: An acquisition unit, used to acquire a first instantaneous amplitude and a first instantaneous phase after the local feature of the ground penetrating radar is enhanced; a first processing unit, configured to extract a first multi-scale feature of the first instantaneous amplitude and a second multi-scale feature of the first instantaneous phase; A second processing unit, configured to fuse the first multi-scale features and the second multi-scale features to obtain a fused feature map; A third processing unit is used to extract features from the fused feature map to obtain a target feature layer; The fourth processing unit is used to detect the water diversion tunnel according to the target characteristic layer to obtain a detection result.
9. A water tunnel cavity detection device, characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the water conveyance tunnel cavity detection method as described in any one of claims 1-7.
10. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute a water conveyance tunnel cavity detection method as described in any one of claims 1-7 when executed by the processor.
Citation Information
Cited By
Dam termite nest three-dimensional imaging method and system based on ground penetrating radar
CN119439152A
A three-dimensional imaging method and system for termite nests on embankments based on ground penetrating radar
CN119439152B
Underground cavity identification method and system in combination with multi-scale fusion and convolutional neural network
CN119511230A
Underground cavity recognition method and system combining multi-scale fusion and convolutional neural network
CN119511230B
Ground penetrating radar image cavity imaging method suitable for different geological conditions
CN122018025A
