Tunnel disease identification and detection method and system based on deep learning

By pre -processing the tunnel image, the problem of insufficient image clarity in the existing technology has been solved, the training accuracy and detection accuracy of tunnel disease recognition models are improved, and more efficient and more fine disease testing is achieved.

CN119339063AActive Publication Date: 2025-01-21BEIJING MUNICIPAL ENG RES INST

Patent Information

Application Number
CN202411591685.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-01-21
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

Existing deep learning-based tunnel disease recognition methods cannot maintain image clarity, resulting in low accuracy of recognition models and recognition results.

Method used

By pre -processing the historical disease images of the tunnel and to be detected to be detected, including the analysis of the division of the molecular image, the de -no -no -processing and image feature value, generate high -quality training data sets and the image to be tested, improve the accuracy of model training and identification results Accuracy.

Benefits of technology

The quality of training data has been improved, overfitting is reduced, the training efficiency, accuracy and robustness of the target recognition model have been improved, and the degree of refinement and explanations of the identification results of tunnel disease detection is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119339063A_ABST
    Figure CN119339063A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of tunnel disease detection, and discloses a tunnel disease recognition and detection method and system based on deep learning, and the method comprises the steps: obtaining a tunnel historical disease image, carrying out the preprocessing of the historical disease image, and obtaining a training data set; training a neural network model by adopting the training data set to obtain a target recognition model; obtaining a to-be-detected tunnel image, preprocessing the to-be-detected tunnel image, inputting the preprocessed to-be-detected tunnel image into the target recognition model, and obtaining a target image with a disease; and extracting a disease area from the target image, and marking the disease area. According to the technical scheme, the training precision of the target recognition model and the accuracy of tunnel disease detection can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of tunnel disease detection, and specifically relates to a tunnel disease identification and detection method and system based on deep learning. Background Art

[0002] With the development of society, the construction scale of tunnel projects is increasing day by day. At the same time, the construction and maintenance environment of a large number of projects is harsh, the technical difficulty is high, and the safety risks are many, which puts forward higher requirements for maintenance management. At present, the main methods for detecting hidden dangers in tunnels are: manual observation, digital image processing and recognition, radar detection method, etc. Digital image processing and recognition methods, especially tunnel disease detection methods based on deep learning, have the advantages of high real-time performance, high accuracy, and high robustness. They have become the mainstream method of tunnel crack detection business, which is of great significance to the current highway maintenance management.

[0003] A similar prior art includes a Chinese patent application with publication number CN117994710A, which discloses a method for rapid identification of tunnel cracks based on deep learning, wherein a tunnel image is acquired to obtain a tunnel image data set; the tunnel image data set is preprocessed to convert the image into an image with consistent format, size and clarity to obtain an input data set; the input data set is divided into a training set and a test set according to a certain ratio, the training set is manually annotated and then input into a model for training to obtain a trained model, the test set is input into the trained model, and an image with a label is output to obtain a crack data set; the image in the crack data set is restored to the original image size to extract the crack contour; it is detected whether the crack contour size exceeds a threshold, if so, the actual length and width of the crack is calculated and output, otherwise, no data is output. There is also a Chinese patent application with publication number CN108229461A, which discloses a method for rapid identification of tunnel cracks based on deep learning, creating a deep learning image training set; training a deep convolutional neural network model; using the trained convolutional neural network model to detect the image to be detected and output a predicted label image; outputting the detection result according to the predicted label image, including image category, crack coordinate information, and pixel-level width and length values ​​of the crack.

[0004] The above two methods cannot maintain high image clarity when generating training data or detecting images to be detected, resulting in low accuracy of recognition models and recognition results. Therefore, it is an urgent problem to provide a tunnel disease recognition and detection method and system based on deep learning to improve the accuracy of target recognition model training and improve the accuracy of tunnel disease detection. Summary of the invention

[0005] In response to the above-mentioned technical problems, the present invention provides a tunnel disease identification and detection method and system based on deep learning.

[0006] In a first aspect, the present invention provides a tunnel disease identification and detection method based on deep learning, the method comprising the following steps:

[0007] Obtain historical tunnel disease images, pre-process the historical disease images, and obtain training data sets;

[0008] The training data set is used to train the neural network model to obtain the target recognition model;

[0009] Acquire the tunnel image to be inspected, pre-process the tunnel image to be inspected, and then input the pre-processed tunnel image to be inspected into the target recognition model to obtain the target image with the disease;

[0010] Extract the diseased area from the target image and mark it.

[0011] Specifically, the preprocessing includes a first preprocessing, and the first preprocessing includes:

[0012] Step 111, extracting any first image to be processed, and dividing any first image to be processed into a plurality of sub-images according to a first preset size, wherein the first image to be processed is a historical disease image or a tunnel image to be detected;

[0013] Step 112, extract any sub-image, determine the image feature value of any sub-image, and judge whether the image feature value is greater than or equal to a first preset value. If so, proceed to step 113; if not, proceed to step 114;

[0014] Step 113: input any sub-image into the first network model, obtain an interference information image, and generate a first sub-image based on the any sub-image and the interference information image;

[0015] Step 114: input any sub-image into the second network model to obtain the first sub-image;

[0016] Step 115: after traversing all sub-images, reorganize all first sub-images to generate a first image;

[0017] Step 116: After traversing all first images to be processed, obtain the first preprocessing result.

[0018] Specifically, the image feature value includes a first image feature value and / or a second image feature value, and the method for determining the first image feature value and the second image feature value is:

[0019] Convert any sub-image into a frequency domain analysis image, extract any frequency domain point in the frequency domain analysis image, and define any frequency domain point as a first-class point when the amplitude of any frequency domain point is greater than a second preset value; otherwise, define any frequency domain point as a second-class point; after traversing all points in the frequency domain analysis image, calculate the average amplitude of all first-class points and define it as a first image feature value;

[0020] Extract any pixel point in any sub-image, perform weighted summation on the intensity value of each color channel at any pixel point, and define it as the first point eigenvalue at any pixel point. After traversing all the pixels in any sub-image, calculate the average value of all the first point eigenvalues ​​and define it as the second image eigenvalue.

[0021] Specifically, in step 115, when any two adjacent first sub-images are reassembled, the process includes:

[0022] Determine whether there is an intersection area between the two first sub-images. If not, directly splice the two first sub-images. If yes, cut the two first sub-images into a first spliced ​​image, a second spliced ​​image, a third spliced ​​image, and a fourth spliced ​​image based on the intersection area, wherein the second spliced ​​image and the third spliced ​​image are spliced ​​images corresponding to the intersection area.

[0023] Extracting a first pixel value at any pixel point on the second stitched image and a second pixel value at any pixel point on the third stitched image, taking an average of the first pixel value and the second pixel value as a pixel value at any pixel point on the fifth stitched image, and generating a fifth stitched image after traversing all pixel points on the second stitched image;

[0024] The first stitched image, the fifth stitched image, and the fourth stitched image are stitched together.

[0025] Specifically, the preprocessing further includes a second preprocessing, and the second preprocessing includes:

[0026] Extract any second image to be processed, and scale the physical size of any second image to be processed according to a first preset ratio to generate a second image, wherein the second image to be processed is a historical disease image, a tunnel image to be detected, or the first image;

[0027] Inputting the second image into the third network model to obtain a third image, wherein the third image has the same physical size as the second image, and a clarity index value of the third image is greater than a clarity index value of the second image;

[0028] After traversing all the second images to be processed, the second preprocessing result is obtained.

[0029] Specifically, the generation method of the third network model is:

[0030] Step 121: Divide the shooting area according to a second preset ratio to obtain multiple sub-areas;

[0031] Step 122: using an image acquisition device to acquire a first overall image of the shooting area, and using an image acquisition device to acquire a regional image of each sub-area, and integrating all the regional images to acquire a second overall image;

[0032] Step 123: scale the physical size of the first overall image according to a first preset ratio to generate a third overall image, use the third overall image and the second overall image to train a specific generative adversarial network, and define a generator that changes the third overall image in the direction of the second overall image as a third network model.

[0033] Specifically, extracting the diseased area from the target image and labeling it include:

[0034] Step 41: Divide the target image into a plurality of first partial images according to a second preset size;

[0035] Step 42, extract any first partial image, perform weighted summation on the intensity value of each color channel at any pixel point of any first partial image, and define it as the second point feature value at any pixel point, and after traversing all pixel points in any first partial image, calculate the first statistical value of all second point feature values, and determine whether the first statistical value is within a first preset range. If so, mark any first partial image as a first category area;

[0036] Step 43: after traversing all the first partial images, define the unlabeled first partial images as the second partial images, extract any second partial image, determine the maximum intensity value and the minimum intensity value of all color channels at any pixel point of any second partial image, calculate the ratio of the difference between the maximum intensity value and the minimum intensity value to the maximum intensity value, and define it as the third point eigenvalue at any pixel point, after traversing all the pixels in any second partial image, calculate the second statistical value of all the third point eigenvalues, determine whether the second statistical value is within the second preset range, and if so, label any second partial image as the second category area;

[0037] Step 44: after traversing all the second partial images, define the unlabeled second partial images as third partial images, extract any third partial image, determine whether the second statistical value corresponding to any third partial image is within a third preset range, and if so, label any third partial image as a third category area;

[0038] Step 45, after traversing all the third local images, define the unlabeled third local images as the fourth local images, extract any fourth local image, determine the texture statistical feature value of any fourth local image, and judge whether the texture statistical feature value is within the fourth preset range. If so, label any fourth local image as the fourth category area, if not, label any fourth local image as the fifth category area.

[0039] Specifically, the contours of the fourth category areas that are sequentially connected in the target image are extracted and marked as diseased areas.

[0040] In a second aspect, the present invention further provides a tunnel disease identification and detection system based on deep learning, the system comprising: a first acquisition module, a preprocessing module, a model training module, a second acquisition module, an image detection module and a disease extraction module;

[0041] The first acquisition module is used to acquire the tunnel historical disease image and input the historical disease image into the preprocessing module;

[0042] A preprocessing module is used to preprocess historical disease images to obtain a training data set;

[0043] A model training module is used to train a neural network model using a training data set to obtain a target recognition model;

[0044] A second acquisition module is used to acquire the image of the tunnel to be detected and input the image of the tunnel to be detected into the preprocessing module;

[0045] The preprocessing module is also used to preprocess the tunnel image to be detected and obtain the preprocessed tunnel image to be detected;

[0046] An image detection module is used to input the preprocessed tunnel image to be detected into the target recognition model to obtain the target image with the disease;

[0047] The disease extraction module is used to extract the diseased area from the target image and mark it.

[0048] Compared with the prior art, the beneficial effects of the present invention are at least as follows:

[0049] 1. Before model training, preprocessing the historical disease images used for training can improve the quality of training data, reduce noise and interference in the images, make image features more obvious, reduce overfitting, and improve the training efficiency, accuracy and robustness of the target recognition model. At the same time, preprocessing the tunnel images to be detected can improve the accuracy and efficiency of the recognition results.

[0050] 2. By dividing the target image into multiple local images and classifying and labeling the local images according to the image feature values ​​and preset ranges, the refinement of disease detection is improved and the interpretability and usability of the recognition results are increased. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0052] Figure 1 It is a flow chart of a tunnel disease identification and detection method based on deep learning of the present invention;

[0053] Figure 2 A schematic diagram of the structure of a specific generative adversarial network according to an embodiment of the present invention;

[0054] Figure 3 This is a modular schematic diagram of a tunnel disease identification and detection system based on deep learning of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the specific embodiments described herein are only used to explain the present invention and are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.

[0056] It should be noted that if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0057] Figure 1 FIG. 1 is a flow chart of an embodiment of a method for identifying and detecting tunnel defects based on deep learning provided by the present invention, and the flow chart specifically includes the following steps:

[0058] Step 1: Obtain historical tunnel disease images, preprocess the historical disease images, and obtain a training data set.

[0059] The tunnel historical disease images and the tunnel images to be inspected are images of the interior of the tunnel taken by mobile inspection equipment, images of the interior of the tunnel taken by fixed inspection equipment, or images of the interior of the tunnel taken by drones, etc.

[0060] Before preprocessing the images, the images are also converted into images of consistent format and size.

[0061] Different road sections and different time periods have different lighting conditions and environments. In order to improve the accuracy and efficiency of model training, the images to be trained on the model are preprocessed.

[0062] Specifically, the preprocessing includes a first preprocessing, and the first preprocessing includes:

[0063] Step 111 , extract any first image to be processed, and divide any first image to be processed into a plurality of sub-images according to a first preset size, wherein the first image to be processed is a historical disease image or a tunnel image to be detected.

[0064] Step 112, extract any sub-image, determine the image feature value of any sub-image, and judge whether the image feature value is greater than or equal to a first preset value. If so, proceed to step 113, if not, proceed to step 114.

[0065] Step 113: input any sub-image into the first network model, obtain an interference information image, and generate a first sub-image based on any sub-image and the interference information image.

[0066] Step 114: Input any sub-image into the second network model to obtain the first sub-image.

[0067] Step 115: After traversing all sub-images, all first sub-images are reassembled to generate a first image.

[0068] Step 116: After traversing all first images to be processed, obtain the first preprocessing result.

[0069] The first preset size and the first preset value are set according to the experience of those skilled in the art or according to actual application scenarios, and the embodiments of the present application do not limit this.

[0070] Since the first image to be processed is large in size and the noise interference conditions in various regions thereof are inconsistent, in order to improve the accuracy of the first preprocessing, the first image to be processed is divided into multiple sub-images, and each sub-image is processed separately.

[0071] The first network model is a neural network model for estimating noise components from an image. By inputting a sub-image into the first network model, an interference information image in the sub-image can be extracted. By subtracting the interference information image data from the input sub-image data, the first sub-image data with noise removed can be obtained.

[0072] The second network model is a neural network model that estimates image data after noise removal from the image. By inputting the sub-image into the second network model, the first sub-image data after noise removal can be obtained.

[0073] When the image feature value of any sub-image is greater than or equal to the first preset value, it means that the noise level of any sub-image is high, or the noise has a greater impact on any sub-image, and the first network model is used to pre-process the sub-image; otherwise, it means that the noise level of any sub-image is low, or the noise has a smaller impact on any sub-image, and the second network model is used to pre-process the sub-image. Based on this, the denoising effect can be effectively improved.

[0074] Specifically, the image feature value includes a first image feature value and / or a second image feature value, and the method for determining the first image feature value and the second image feature value is:

[0075] Convert any sub-image into a frequency domain analysis image, extract any frequency domain point in the frequency domain analysis image, and when the amplitude at any frequency domain point is greater than a second preset value, define any frequency domain point as a first-class point; otherwise, define any frequency domain point as a second-class point. After traversing all points in the frequency domain analysis image, calculate the average amplitude of all first-class points and define it as the first image feature value.

[0076] Extract any pixel point in any sub-image, perform weighted summation on the intensity value of each color channel at any pixel point, and define it as the first point eigenvalue at any pixel point. After traversing all the pixels in any sub-image, calculate the average value of all the first point eigenvalues ​​and define it as the second image eigenvalue.

[0077] The second preset value is set according to the experience of those skilled in the art or according to an actual application scenario, and the embodiment of the present application does not limit this.

[0078] When performing weighted summation on the intensity value of each color channel at any pixel point, the weight value of each color channel may be the same or different.

[0079] Different image characteristic values ​​correspond to different first preset values.

[0080] Specifically, in step 115, when any two adjacent first sub-images are reassembled, the process includes:

[0081] Determine whether there is an intersection area between the two first sub-images. If not, directly splice the two first sub-images. If yes, cut the two first sub-images into a first spliced ​​image, a second spliced ​​image, a third spliced ​​image, and a fourth spliced ​​image based on the intersection area, wherein the second spliced ​​image and the third spliced ​​image are spliced ​​images corresponding to the intersection area.

[0082] A first pixel value at any pixel point on the second stitched image and a second pixel value at any pixel point on the third stitched image are extracted, and an average value of the first pixel value and the second pixel value is used as the pixel value at any pixel point on the fifth stitched image. After traversing all the pixel points on the second stitched image, a fifth stitched image is generated.

[0083] The first stitched image, the fifth stitched image, and the fourth stitched image are stitched together.

[0084] When dividing the first image to be processed, there may or may not be intersection areas between adjacent sub-images. If there are intersection areas, since the first preprocessing is performed on the two adjacent sub-images separately, the processing results of the intersection area may be different. Directly overlapping the two sub-images may cause interference such as artifacts in the intersection area, causing image distortion. Therefore, it is necessary to first perform special processing on the image in the intersection area to ensure that the stitched image is smooth.

[0085] Specifically, the preprocessing further includes a second preprocessing, and the second preprocessing includes:

[0086] Extract any second image to be processed, and scale the physical size of any second image to be processed according to a first preset ratio to generate a second image, wherein the second image to be processed is a historical disease image, a tunnel image to be detected, or the first image.

[0087] The second image is input into the third network model to obtain a third image, wherein the third image has the same physical size as the second image and a clarity index value of the third image is greater than a clarity index value of the second image.

[0088] After traversing all the second images to be processed, the second preprocessing result is obtained.

[0089] The first preset ratio is set according to the experience of those skilled in the art or according to the actual application scenario, and the embodiment of the present application does not limit this. For example, the first preset ratio is 10, and the length and width of the second image to be processed are respectively enlarged by 10 times.

[0090] Clarity refers to the dot density of pixels. The greater the dot density of pixels, the finer the image and the higher the degree of realism.

[0091] Specifically, the generation method of the third network model is:

[0092] Step 121: Divide the shooting area according to a second preset ratio to obtain multiple sub-areas.

[0093] Step 122: Use an image acquisition device to acquire a first overall image of the shooting area, and use an image acquisition device to acquire a regional image of each sub-area, and integrate all the regional images to acquire a second overall image.

[0094] Step 123: scale the physical size of the first overall image according to a first preset ratio to generate a third overall image, use the third overall image and the second overall image to train a specific generative adversarial network, and define a generator that changes the third overall image in the direction of the second overall image as a third network model.

[0095] The second preset ratio is set according to the experience of those skilled in the art or according to actual application scenarios, and the embodiments of the present application are not limited to this.

[0096] Preferably, the second preset ratio is the inverse of the first preset ratio. If the first preset ratio is 10, the second preset ratio is 1 / 10. If the area of ​​the shooting area is 100×100, the area of ​​each sub-area is 10×10.

[0097] The second image to be processed, the first overall image and the regional image are acquired by the same image acquisition device. The first overall image and any regional image are identical in digital size (i.e., number of pixels). The shooting area of ​​the second overall image acquired by integrating the regional images is identical to that of the first overall image, but the number of pixels is 100 times that of the first overall image. The first overall image is enlarged according to a first preset ratio to acquire the third overall image, so that the number of pixels is consistent with that of the second overall image. However, the information contained in each pixel of the third overall image becomes less. Although the size of the image (number of pixels) is increased, its clarity index value is lower than that of the second overall image.

[0098] By training a specific generative adversarial network using the third overall image and the second overall image, a network model that improves the image clarity index value can be obtained.

[0099] by Figure 2The technical solution of the present invention is described by taking as an example, wherein G and F are generators, and D1 and D2 are discriminators. The first step is to use the third overall image P11 and the second overall image P21 to learn the parameters of the discriminator D1 and the discriminator D2 respectively, and use the third overall image P11 and the second overall image P21 to learn the parameters of the generator G and the generator F respectively, and obtain the output images P12 and P22 respectively; the second step is to use the image P21 and the image P12 to learn the parameters of the discriminator D2 so that the value of the first adversarial loss function between the generator G and the discriminator D2 is maximized, and then use the image P11 to learn the parameters of the generator G so that the value of the first adversarial loss function between the generator G and the discriminator D2 is minimized. At the same time, use the image P11 and the image P22 to learn the parameters of the discriminator D1 so that the value of the second adversarial loss function between the generator F and the discriminator D1 is maximized, and then use the image P21 to learn the parameters of the generator F so that the value of the second adversarial loss function between the generator F and the discriminator D1 is minimized. The third step is to calculate the cycle consistency loss of images P11 and P13, and learn generators G and F to minimize the above cycle consistency loss. Then, the cycle consistency loss of images P21 and P23 is calculated, and generators G and F are learned to minimize the above cycle consistency loss. The fourth step is to construct a loss objective function based on the first adversarial loss function, the second adversarial loss function and the cycle consistency loss, and repeat the second step to the third step until the above loss objective function converges, and the trained generator G is used as the above third network model.

[0100] According to the technical solution of the present invention, the third network model can be generated using less training data, thereby reducing the cost and difficulty of obtaining training data.

[0101] The first pretreatment may be performed first and then the second pretreatment, or the second pretreatment may be performed first and then the first pretreatment, or only one of the first pretreatment and the second pretreatment may be performed, and the technical solution of the present invention is not limited to this.

[0102] Step 2: Use the training data set to train the neural network model to obtain the target recognition model.

[0103] The training data set is manually annotated and then input into the neural network model for training. The above target recognition model is used to identify whether there is a disease in the tunnel image and / or identify the diseased area in the tunnel image.

[0104] Step 3: Obtain the image of the tunnel to be detected, preprocess the image of the tunnel to be detected, and then input the preprocessed image of the tunnel to be detected into the target recognition model to obtain the target image with the disease.

[0105] Preprocessing the tunnel images to be inspected can identify defects in images under different tunnel environments and conditions, thereby improving the accuracy and efficiency of the identification results.

[0106] Step 4: Extract the diseased area from the target image and mark it.

[0107] There may be a variety of different image features in the target image. The target image is identified and annotated, and the diseased area is accurately extracted, which further verifies the existence and scope of the disease, reduces the possibility of false alarms and missed alarms, and ensures the accuracy of the recognition results.

[0108] Specifically, extracting the diseased area from the target image and labeling it include:

[0109] Step 41: Divide the target image into a plurality of first partial images according to a second preset size.

[0110] Step 42, extract any first local image, perform weighted summation on the intensity value of each color channel at any pixel point of any first local image, and define it as the second point eigenvalue at any pixel point. After traversing all pixel points in any first local image, calculate the first statistical value of all second point eigenvalues, and determine whether the first statistical value is within a first preset range. If so, mark any first local image as a first category area.

[0111] Step 43, after traversing all the first local images, define the unlabeled first local images as second local images, extract any second local image, determine the maximum intensity value and the minimum intensity value of all color channels at any pixel point of any second local image, calculate the ratio of the difference between the maximum intensity value and the minimum intensity value to the maximum intensity value, and define it as the third point eigenvalue at any pixel point, after traversing all the pixels in any second local image, calculate the second statistical value of all the third point eigenvalues, determine whether the second statistical value is within the second preset range, and if so, label any second local image as the second category area.

[0112] Step 44: After traversing all the second partial images, define the unlabeled second partial images as third partial images, extract any third partial image, and determine whether the second statistical value corresponding to any third partial image is within a third preset range. If so, label any third partial image as a third category area.

[0113] Step 45, after traversing all the third local images, define the unlabeled third local images as the fourth local images, extract any fourth local image, determine the texture statistical feature value of any fourth local image, and judge whether the texture statistical feature value is within the fourth preset range. If so, label any fourth local image as the fourth category area, if not, label any fourth local image as the fifth category area.

[0114] The second preset size, the first preset range, the second preset range, the third preset range, and the fourth preset range are set according to the experience of those skilled in the art or according to the actual application scenario, and the embodiment of the present application does not limit this. For example, the second preset size is 25×25 pixels, the first preset range is [160, ∞), the second preset range is [15, ∞), the third preset range is [6, 11], and the fourth preset range is [0.35, ∞).

[0115] When weighted summing is performed on the intensity value of each color channel at any pixel point, the weight value of each color channel may be the same or different. The first statistical value is the average value of all second point feature values, the first category area is the lighting area, the second statistical value is the discrete degree value of all third point feature values, the second category area is the cable area, the third category area is free calcium oxide, the texture statistical feature value is a statistical value reflecting the uniformity of the grayscale distribution of the local image and the coarseness of the texture, the fourth category area is the crack area, and the fifth category area is the normal area or the area that does not need to be identified.

[0116] According to the technical solution of the present invention, by dividing the target image into multiple local images and identifying, excluding and marking each local image in turn, the refinement of disease detection can be improved, and the diseased area can be extracted and marked more accurately.

[0117] The image feature statistics corresponding to the various categories of regions and the preset ranges of the image feature statistics are obtained by statistically analyzing the color features and texture features of the various categories of regions in a preset number of tunnel images.

[0118] Specifically, the contours of the fourth category areas that are sequentially connected in the target image are extracted and marked as diseased areas.

[0119] Tunnel diseases include cracks, water seepage and spalling, etc. The present invention extracts and marks crack diseases. Based on this technical solution, the image feature statistical value category and the preset range corresponding to the image feature statistical value can be adjusted to adapt to different types of disease detection needs.

[0120] Figure 3 FIG. 1 is a schematic diagram of a structure of an embodiment of a tunnel disease identification and detection system based on deep learning provided by the present invention. Figure 3 As shown, the system includes: a first acquisition module 10, a preprocessing module 20, a model training module 30, a second acquisition module 40, an image detection module 50 and a disease extraction module 60.

[0121] The first acquisition module 10 is used to acquire the historical disease images of the tunnel and input the historical disease images into the pre-processing module 20 .

[0122] The preprocessing module 20 is used to preprocess the historical disease images to obtain a training data set.

[0123] The model training module 30 is used to train the neural network model using the training data set to obtain a target recognition model.

[0124] The second acquisition module 40 is used to acquire the image of the tunnel to be detected and input the image of the tunnel to be detected into the pre-processing module.

[0125] The preprocessing module 20 is further used to preprocess the tunnel image to be detected and obtain the preprocessed tunnel image to be detected.

[0126] The image detection module 50 is used to input the pre-processed tunnel image to be detected into the target recognition model to obtain the target image with defects.

[0127] The disease extraction module 60 is used to extract the diseased area from the target image and mark it.

[0128] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0130] The above embodiments only express the preferred implementation mode of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A tunnel disease identification and detection method based on deep learning, characterized in that: The steps include: Acquire historical tunnel disease images, preprocess the historical disease images, and acquire a training data set; Using the training data set to train a neural network model to obtain a target recognition model; Acquire a tunnel image to be detected, perform the preprocessing on the tunnel image to be detected, and then input the preprocessed tunnel image to be detected into the target recognition model to acquire a target image with a disease; The diseased area is extracted from the target image and marked.

2. The method according to claim 1, characterized in that The preprocessing includes a first preprocessing, wherein the first preprocessing includes: Step 111, extracting any first image to be processed, and dividing any first image to be processed into a plurality of sub-images according to a first preset size, wherein the first image to be processed is the historical disease image or the tunnel image to be detected; Step 112, extract any sub-image, determine the image feature value of any sub-image, and judge whether the image feature value is greater than or equal to a first preset value. If so, proceed to step 113; if not, proceed to step 114; Step 113: input any of the sub-images into a first network model to obtain an interference information image, and generate a first sub-image based on any of the sub-images and the interference information image; Step 114: input any of the sub-images into the second network model to obtain the first sub-image; Step 115: after traversing all sub-images, reorganize all first sub-images to generate a first image; Step 116: After traversing all first images to be processed, obtain the first preprocessing result.

3. The method according to claim 2, characterized in that The image feature value includes a first image feature value and / or a second image feature value, and the first image feature value and the second image feature value are determined by: Convert any of the sub-images into a frequency domain analysis image, extract any frequency domain point in the frequency domain analysis image, and when the amplitude of any of the frequency domain points is greater than a second preset value, define any of the frequency domain points as a first type of point; otherwise, define any of the frequency domain points as a second type of point; after traversing all points in the frequency domain analysis image, calculate the average value of the amplitudes of all the first type of points and define it as the first image feature value; Extract any pixel point in any of the sub-images, perform weighted summation on the intensity values ​​of each color channel at any of the pixel points, and define it as the first point eigenvalue at any of the pixel points; after traversing all the pixel points in any of the sub-images, calculate the average value of all the first point eigenvalues, and define it as the second image eigenvalue.

4. The method according to claim 2, characterized in that: In step 115, when any two adjacent first sub-images are reassembled, it includes: Determine whether there is an intersection area between the two first sub-images, if not, directly stitch the two first sub-images, if yes, cut the two first sub-images into a first stitched image, a second stitched image, a third stitched image and a fourth stitched image based on the intersection area, wherein the second stitched image and the third stitched image are stitched images corresponding to the intersection area; Extracting a first pixel value at any pixel point on the second stitched image and a second pixel value at any pixel point on the third stitched image, taking an average value of the first pixel value and the second pixel value as a pixel value at any pixel point on the fifth stitched image, and generating the fifth stitched image after traversing all pixel points on the second stitched image; The first stitched image, the fifth stitched image, and the fourth stitched image are stitched together.

5. The method according to claim 2, characterized in that: The preprocessing further includes a second preprocessing, wherein the second preprocessing includes: Extract any second image to be processed, and scale the physical size of any second image to be processed according to a first preset ratio to generate a second image, wherein the second image to be processed is the historical disease image, the tunnel image to be detected, or the first image; Inputting the second image into a third network model to obtain a third image, wherein the third image has the same physical size as the second image, and a clarity index value of the third image is greater than a clarity index value of the second image; After traversing all the second images to be processed, the result of the second preprocessing is obtained.

6. The method according to claim 5, characterized in that The method for generating the third network model is: Step 121: Divide the shooting area according to a second preset ratio to obtain multiple sub-areas; Step 122: using an image acquisition device to acquire a first overall image of the shooting area, and using the image acquisition device to acquire a regional image of each of the sub-areas, integrating all the regional images to acquire a second overall image; Step 123: scale the physical size of the first overall image according to the first preset ratio to generate a third overall image, use the third overall image and the second overall image to train a specific generative adversarial network, and define a generator that changes the third overall image in the direction of the second overall image as the third network model.

7. The method according to claim 1, characterized in that Extracting the diseased area from the target image and marking it include: Step 41, dividing the target image into a plurality of first partial images according to a second preset size; Step 42: extract any first partial image, perform weighted summation on the intensity value of each color channel at any pixel point of any first partial image, and define it as the second point feature value at any pixel point, and after traversing all the pixels in any first partial image, calculate the first statistical value of all the second point feature values, and determine whether the first statistical value is within a first preset range. If so, mark any first partial image as a first category area; Step 43: after traversing all the first partial images, define the first partial images that are not marked as the second partial images, extract any second partial image, determine the maximum intensity value and the minimum intensity value of all color channels at any pixel point of any second partial image, calculate the ratio of the difference between the maximum intensity value and the minimum intensity value to the maximum intensity value, and define it as the third point feature value at any pixel point, after traversing all the pixels in any second partial image, calculate the second statistical value of all the third point feature values, determine whether the second statistical value is within the second preset range, and if so, mark any second partial image as the second category area; Step 44: after traversing all the second partial images, define the unlabeled second partial images as third partial images, extract any third partial image, and determine whether the second statistical value corresponding to any third partial image is within a third preset range; if so, label any third partial image as a third category area; Step 45: After traversing all the third local images, define the unlabeled third local images as fourth local images, extract any fourth local image, determine the texture statistical feature value of any fourth local image, and judge whether the texture statistical feature value is within a fourth preset range. If so, label any fourth local image as a fourth category area; if not, label any fourth local image as a fifth category area.

8. The method according to claim 7, characterized in that The contours of the fourth category areas that are sequentially connected in the target image are extracted and marked as the diseased areas.

9. A tunnel disease identification and detection system based on deep learning, used to implement the method according to any one of claims 1 to 8, characterized in that: include: A first acquisition module, a preprocessing module, a model training module, a second acquisition module, an image detection module and a disease extraction module; The first acquisition module is used to acquire a historical disease image of the tunnel and input the historical disease image into the preprocessing module; The preprocessing module is used to preprocess the historical disease images to obtain a training data set; The model training module is used to train the neural network model using the training data set to obtain a target recognition model; The second acquisition module is used to acquire the image of the tunnel to be detected and input the image of the tunnel to be detected into the preprocessing module; The preprocessing module is further used to preprocess the tunnel image to be detected to obtain the preprocessed tunnel image to be detected; The image detection module is used to input the preprocessed tunnel image to be detected into the target recognition model to obtain the target image with the disease; The disease extraction module is used to extract the diseased area from the target image and mark it.

Citation Information

Patent Citations

  • Deep learning-based rapid tunnel crack identification method

    CN108229461A

  • Image processing method and terminal

    CN111724312A

  • Tunnel lining crack detection method and equipment based on YOLOv5

    CN115830432A

  • Self-adaptive denoising method for file OCR (Optical Character Recognition) image

    CN117423113A

  • Bridge apparent disease intelligent detection method

    CN117875949A

Cited By

  • Tunnel disease target intelligent identification and extraction method based on machine vision

    CN120374607A

  • Tunnel disease detection method and system based on unmanned aerial vehicle

    CN120782765A

  • Channel concrete lining disease identification method based on deep learning

    CN122135197A