A municipal bridge quality inspection method based on image analysis
Through image analysis technology, including shooting, preprocessing, calculating crack density and length, and using step functions to segment feature categories, the problem of low efficiency and insufficient accuracy in municipal bridge quality detection is solved, and rapid and accurate detection of bridge quality is achieved. assessment and safety assessment.
Patent Information
- Application Number
- CN202410649506.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-24
AI Technical Summary
Existing municipal bridge quality inspection methods are inefficient and susceptible to interference from human factors. Image analysis technology is costly and the algorithm accuracy and stability are insufficient. It is difficult to cope with complex and changeable bridge structures and environmental conditions.
Using a detection method based on image analysis, preprocessing is performed by taking pictures of bridge cracks, calculating crack density and length, using step functions to segment crack feature categories, judging bridge quality levels, and improving edge detection accuracy and structural integrity assessment.
It achieves rapid, accurate and safe assessment of bridge quality inspection, reduces manual interference, finds minor problems that are difficult to detect with traditional methods, and provides a scientific basis for bridge maintenance.
Smart Images

Figure CN118279291B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bridge quality detection, and in particular to a municipal bridge quality detection method based on image analysis. Background Art
[0002] With the rapid development of image analysis technology, its application in the field of municipal bridge quality inspection has become increasingly prominent. With the rapid development of science and technology, image analysis technology has made continuous breakthroughs, and its application in the field of municipal bridge quality inspection has become more extensive and in-depth. As an important part of urban infrastructure, the quality of municipal bridges is directly related to the safety of people's lives and property and the smooth operation of urban traffic. Therefore, how to accurately and efficiently detect the quality of municipal bridges has become a topic that needs to be solved urgently.
[0003] Traditional municipal bridge quality inspection methods often rely on manual inspections and simple measuring tools, which are not only inefficient but also easily interfered by human factors, leading to problems such as missed inspections and false inspections. The inspection method based on image analysis can overcome these shortcomings and achieve rapid and accurate inspection of bridge quality through automated and intelligent technical means.
[0004] Image analysis technology captures image information on the bridge surface and uses computer vision, deep learning and other algorithms to process and analyze the images, which can identify subtle changes in the bridge structure, crack damage, material aging and other problems. At the same time, by comparing and analyzing image data at different time points, it can also evaluate the deformation and displacement of the bridge, providing strong support for the safety assessment of the bridge.
[0005] The application of image analysis technology in municipal bridge quality inspection has significant advantages. First, it greatly improves the efficiency and accuracy of inspection, reduces the workload of manual inspection and the interference of human factors. Second, image analysis technology can achieve comprehensive and detailed inspection of bridges and discover minor problems that are difficult to detect with traditional methods. In addition, through the long-term accumulation and analysis of image data, it can also achieve continuous monitoring and early warning of bridge quality, providing a scientific basis for bridge maintenance and management.
[0006] However, the municipal bridge quality inspection method based on image analysis also faces some challenges and limitations. For example, the cost and maintenance cost of image acquisition equipment are high, and professional technicians are required to operate and maintain it. In addition, the accuracy and stability of image analysis algorithms still need to be further improved to cope with complex and changeable bridge structures and environmental conditions. Summary of the invention
[0007] In order to solve the above technical problems, the present invention proposes a municipal bridge quality detection method based on image analysis, comprising the following steps:
[0008] S1, taking pictures of cracks of municipal bridges, preprocessing the crack pictures, and obtaining enhanced images after preprocessing;
[0009] S2, calculating the crack density and crack length in the enhanced crack image;
[0010] S3, using a step function to segment the categories of crack features of two enhanced crack images according to crack density and crack length;
[0011] S4. According to the category segmentation results, the crack grade of the enhanced crack images of the same category is judged, and the bridge quality grade is finally output.
[0012] Further, in step S2, the crack density m is:
[0013] m=s / s r ;
[0014] Where s represents the crack area in the enhanced crack image, s r Represents the total area of the enhanced crack image.
[0015] Furthermore, the inter-pixel crack distance d i for;
[0016] ;
[0017] Among them, x i ,y i and x i+1 ,y i+1 Represent the coordinates of the i and i+1th pixel points respectively;
[0018] The crack length is : ;
[0019] Among them, the scaling factor Representing the size ratio of the image to the actual field, the pixel set of the enhanced crack image is Q.
[0020] Furthermore, in step S3, a correlation function is found to make a preliminary judgment on the two enhanced crack images. for:
[0021] ;
[0022] In the formula, m I With m J are the crack densities of the crack features I and J in the two enhanced crack images, L I With L J are the crack lengths of crack characteristics I and J, respectively; and are the positive correlation parameters corresponding to the crack features I and J, and M and N are the number of crack features in each enhanced crack image, respectively.
[0023] Further, a step function is found to separate the crack feature data points of the two enhanced crack images. for:
[0024] ;
[0025] ;
[0026] ;
[0027] Where sgn is a symbolic equation, is the weight vector, B is the intercept, and are the weights corresponding to crack features I and J respectively.
[0028] Furthermore, the step S1 comprises:
[0029] S11, obtaining the light intensity component and the reflection component of the crack image of the municipal bridge;
[0030] S12, performing logarithmic transformation on the crack image according to the light intensity component and the reflection component to obtain a logarithmic image;
[0031] S13, performing Fourier transform on the logarithmic image to generate a transformed image;
[0032] S14: performing frequency domain filtering on the transformed image through a filter to obtain a frequency domain result;
[0033] S15, performing inverse Fourier transform on the frequency domain result, obtaining the absolute value of the inverse transform result, normalizing the data to the range of [0, 1], and generating a crack enhancement image.
[0034] Furthermore, in step S14, the filter The design is as follows:
[0035] ;
[0036] in, is the filter amplitude parameter, u and v are the pixel coordinates in the transformed image, H p (u,v) uses a Gaussian high-pass filter:
[0037] ;
[0038] Where D(u,v) represents the distance from the center frequency of the Gaussian high-pass filter, D0 is the frequency interval, and q is the slope coefficient.
[0039] Compared with the prior art, the present invention has the following beneficial technical effects:
[0040] Crack images of municipal bridges are taken and preprocessed to obtain enhanced images, which improves the accuracy of crack edge detection; the crack density and crack length in the enhanced crack image are calculated; based on the crack density and crack length, the crack features of the two enhanced crack images are segmented using a step function to classify them, which helps to identify the main types and patterns of cracks; the quality grade of the bridge is judged based on the category segmentation results, which helps to evaluate the structural integrity and safety of the bridge and promptly discover potential problems. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0042] Figure 1 It is a schematic diagram of the process of the municipal bridge quality detection method based on image analysis of the present invention;
[0043] Figure 2 This is a schematic diagram of the process of preprocessing crack images according to the present invention;
[0044] Figure 3 A comparison schematic diagram of the enhanced crack image of the present invention;
[0045] Figure 4 It is a schematic diagram for comparing crack images at different crack densities of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] In the drawings of the specific embodiments of the present invention, in order to better and more clearly describe the working principles of the various components in the system, the connection relationship of the various parts in the device is shown, which only clearly distinguishes the relative position relationship between the various components, and cannot constitute a limitation on the signal transmission direction, connection sequence and size, dimensions and shape of the components or structures.
[0048] like Figure 1 FIG. 1 is a flow chart of a municipal bridge quality detection method based on image analysis according to the present invention. The municipal bridge quality detection method comprises the following steps:
[0049] Step 1: Take a crack picture of a municipal bridge, pre-process the crack picture, and obtain an enhanced crack image after pre-processing. Figure 2 As shown, this is a schematic diagram of the preprocessing process for crack images.
[0050] Step S11, obtaining the light intensity component and the reflection component of the crack image of the municipal bridge.
[0051] Use the Retinex algorithm to separate the intensity component and the reflection component of the image. The Retinex algorithm is based on the visual theory of color perception. The Retinex algorithm assumes that the observed color is determined by the reflection properties of the object surface and the illuminating light. By separating these two components, the intrinsic characteristics of the image can be better understood. The intensity component is represented by the brightness of the image, while the reflection component is related to the surface characteristics of the object. For the crack image, the intensity component reflects the lighting conditions around the crack, and the reflection component reveals the details of the crack itself.
[0052] Step S12: performing logarithmic transformation on the crack image according to the light intensity component and the reflection component to obtain a logarithmic image.
[0053] Logarithmic transformations are often used in image processing to expand details in dark areas of an image while compressing high intensity values in bright areas. This transformation is particularly useful for enhancing the contrast of crack images, especially when the available data spans a large area.
[0054] Specifically, the crack image f(x, y) is logarithmically transformed according to the light intensity component and the reflection component, and the resulting logarithmic image z(x, y) is:
[0055] z(x,y)=log[f(x,y)]=log[I(x,y)]+log[R(x,y)]
[0056] Among them, x and y are the coordinates of the pixel points in the crack image, I(x,y) represents the light intensity component, and R(x,y) represents the reflection component.
[0057] Step S13, performing Fourier transform on the logarithmic image z(x,y) to generate a transformed image Z(u,v);
[0058] Z(u,v)=DFT[ln f(x,y)]=DFT[ln I(x,y)]+DFT[ln R(x,y)]
[0059] Among them, u and v are frequency domain coordinates, and DFT is the Fourier transform function.
[0060] Step S14, performing frequency domain filtering on the transformed image Z(u,v) through a preset filter to obtain a frequency domain result;
[0061] Filter according to an embodiment of the present invention The design is as follows:
[0062] ;
[0063] in, is the filter amplitude parameter, u and v are the pixel coordinates in the transformed image, H p (u,v) uses a Gaussian high-pass filter, as follows:
[0064] ;
[0065] Among them, D(u,v) represents the distance from the center frequency of the Gaussian high-pass filter, D0 is the frequency interval, and q is the slope coefficient, which is used to control the filtering degree of the Gaussian high-pass filter.
[0066] In an embodiment of the present invention, the transformed image is subjected to frequency domain filtering by the above filter to obtain a frequency domain result.
[0067] Step S15, perform inverse Fourier transform on the frequency domain result, obtain the absolute value of the inverse transform result, and finally normalize the data to the range of [0,1] by subtracting the minimum value and dividing by the maximum value to generate an enhanced crack image.
[0068] In the frequency domain, the image is modified by applying the inverse Fourier transform and normalization method. Directly processing the result of the inverse Fourier transform may result in a result that is too large. Preferably, the result of the inverse Fourier transform needs to be normalized to the range of [0,1].
[0069] Because the inverse Fourier transform may produce complex results, the abs() function is used to obtain the absolute value of the inverse transform result, and finally the image data is normalized to the [0,1] range by subtracting the minimum value and dividing by the maximum value.
[0070] like Figure 3 As shown, the contrast of the enhanced crack image is higher, which improves the accuracy of crack edge detection.
[0071] Step 2: Calculate the crack density and crack length in the enhanced crack image.
[0072] The density of cracks is used to measure their morphology, such as Figure 4 As shown, it is a comparison diagram of crack images at different crack densities. The greater the crack density, the more complex the crack morphology, the larger the range of damage, and the greater the harm.
[0073] The crack density m is calculated as follows:
[0074] m=s / s r ;
[0075] Where m represents the crack density in the enhanced crack image, s represents the crack area in the enhanced crack image, and s r Represents the total area of the enhanced crack image.
[0076] Calculate the crack distance d between pixels i ;
[0077] ;
[0078] Among them, x i ,y i and x i+1 ,y i+1 Represent the coordinates of the i and i+1th pixel points respectively.
[0079] After calculating the inter-pixel crack distance, the total crack length is obtained by adding up all the inter-pixel crack distances, using the scaling factor Represents the ratio of the image to the actual size, then the crack length for:
[0080] .
[0081] Among them, the pixel point set of the enhanced crack image is Q.
[0082] In the preferred embodiment, in order to describe the distribution and judge the general development trend, the center position of the crack is selected as the judgment parameter of the crack. Assume that in the enhanced crack image detection result, the pixel point set of the crack image is Q, and the coordinates of any pixel i are (x i ,y i ) The coordinates of the crack center are (X, Y), then the method for calculating the crack center is as follows:
[0083] ;
[0084] ;
[0085] Where s represents the actual crack area, that is, the number of crack pixels.
[0086] Step 3: According to the crack density and crack length, a step function is used to segment the categories of the crack features of the two enhanced crack images.
[0087] Find the correlation function to make a preliminary judgment on the two enhanced crack images. To differentiate the positive correlation parameters of the two enhanced crack images, a correlation function needs to be defined, which not only considers the crack density and crack length, but also the difference between the two images. This difference is measured by calculating the correlation function between the two images.
[0088] The corresponding related functions for:
[0089] ;
[0090] In the formula, m I With m J are the crack features I and the crack density in J in the two enhanced crack images, L I With L J are the crack lengths of crack characteristics I and J, respectively. and are the positive correlation parameters corresponding to the crack features I and J, and M and N are the number of crack features in each enhanced crack image, respectively.
[0091] Using only the correlation function is not enough to capture the relationship between nonlinear crack features. Therefore, a step function is then combined to separate the crack feature data points of the two enhanced crack images, preferably by maximally differentiating the boundary between the two enhanced crack images to separate the data points.
[0092] The step function is composed of the optimized positive correlation parameters Sure.
[0093] Step function for:
[0094] ;
[0095] ;
[0096] ;
[0097] Among them, sgn is a symbolic equation, which returns an integer variable to indicate the positive or negative sign of the parameter. When the parameter is greater than or equal to 0, the sgn function returns 1; when the parameter is less than 0, the sgn function returns -1; is the weight vector, B is the intercept, and are the weights corresponding to crack features I and J respectively.
[0098] The step function can map the crack characteristic data into a higher-dimensional space to find the optimal positive correlation parameters. Once the optimized positive correlation parameter Once determined, a step function can be used to predict the category of new data points, separating the crack feature data points of the two enhanced crack images.
[0099] Step 4: According to the category segmentation results, the crack grade of the enhanced crack images of the same category is determined, and finally the bridge quality grade is output.
[0100] Through continuous forward propagation and back propagation, the same category of enhanced crack images are used to determine the crack grade through the prediction model. for:
[0101]
[0102] Where: L loc (·) are K enhanced crack images of the same category Pre-stored crack images of each sample level The smooth loss function between is used to calculate the difference between the enhanced crack image of the same category and the pre-stored crack images of each sample level. To smooth the weights, the goal of the smoothing loss function is to minimize this difference so that the model can learn the mapping relationship from the enhanced crack image to the sample-level crack image.
[0103] Confidence loss function L conf (·) is used to measure the prediction accuracy of the confidence loss function for multi-category confidence labels, c is the multi-category confidence label c, is the confidence weight.
[0104] It is used to comprehensively consider the information from both aspects and control the trade-off between the smooth loss function and the confidence loss function in the prediction model by adjusting the weight term. If the smooth loss function is more important, increase its weight; if the confidence loss function is more important, increase its weight. This weighted sum method allows the prediction model to focus on the similarity and classification accuracy between the enhanced crack image and the pre-stored crack images of each sample level during the training process.
[0105] The performance of the final prediction model is evaluated using the test set to ensure that the prediction model can also show good prediction capabilities on unseen data. Once the prediction model is trained and verified, it can be deployed in actual application scenarios. Finally, all the prediction results of all categories of enhanced crack images are combined to output the bridge quality grade. The clustering results of bridge cracks can provide an important basis for the evaluation of bridge quality grades. Cluster analysis is used to group similar crack images, thereby revealing potential bridge damage patterns or causes.
[0106] In a preferred embodiment, different crack patterns can be identified based on the class segmentation results. For example, some clusters may represent cracks caused by improper construction or material defects, while other clusters may indicate cracks caused by long-term loads, corrosion, or natural factors. Understanding the causes of cracks helps to assess their impact on the structural integrity and safety of the bridge.
[0107] Crack severity assessment: Based on the size, depth and location of the crack, assess its impact on the bridge structure. For example, larger cracks or cracks located in critical stress areas may be more severe. Preferably, industry standards or professional guidelines are used to determine the severity level of the crack.
[0108] Bridge quality grade judgment: The overall quality grade of the bridge is judged by comprehensively considering the crack category segmentation results, crack patterns, and crack severity. If there are a large number of severe cracks or specific types of cracks (such as cracks caused by structural defects), the quality grade of the bridge may be reduced. On the contrary, if the cracks are mainly caused by non-structural factors (such as temperature changes), and the crack size is small and evenly distributed, the quality grade of the bridge may still be high.
[0109] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A municipal bridge quality detection method based on image analysis, characterized in that: The steps include: S1, taking pictures of cracks of municipal bridges, preprocessing the crack pictures, and obtaining enhanced images after preprocessing; S11, obtaining the light intensity component and the reflection component of the crack image of the municipal bridge; S12, performing logarithmic transformation on the crack image according to the light intensity component and the reflection component to obtain a logarithmic image; S13, performing Fourier transform on the logarithmic image to generate a transformed image; S14: performing frequency domain filtering on the transformed image through a filter to obtain a frequency domain result; S15, performing inverse Fourier transform on the frequency domain result, obtaining the absolute value of the inverse transform result, normalizing the data to a range of [0, 1], and generating a crack enhancement image; S2, calculating the crack density and crack length in the enhanced crack image; The crack density m is: m=s / s r ; Where s represents the crack area in the enhanced crack image, s r represents the total area of the enhanced crack image; The distance between the pixels is d i for; , Among them, x i ,y i and x i+1 ,y i+1 Represent the coordinates of the i and i+1th pixel points respectively; The crack length is : , Among them, the scaling factor Representing the size ratio of the image to the actual field, the pixel set of the enhanced crack image is Q; S3, using a step function to segment the categories of crack features of two enhanced crack images according to crack density and crack length; Find the correlation function to make a preliminary judgment on the two enhanced crack images. for: , In the formula, m I With m J are the crack densities of the crack features I and J in the two enhanced crack images, L I With L J are the crack lengths of crack characteristics I and J, respectively; and is the positive correlation parameter corresponding to the crack features I and J, M and N are the number of crack features in each enhanced crack image, respectively; Find the step function that separates the crack feature data points of the two enhanced crack images. for: , , , Where sgn is a symbolic equation, is the weight vector, B is the intercept, and are the weights corresponding to the crack characteristics I and J respectively; S4. According to the category segmentation results, the crack grade of the enhanced crack images of the same category is judged, and the bridge quality grade is finally output.
2. The municipal bridge quality detection method according to claim 1 is characterized in that: In step S14, the filter The design is as follows: , in, is the filter amplitude parameter, u and v are the pixel coordinates in the transformed image, H p (u,v) uses a Gaussian high-pass filter: , Where D(u,v) represents the distance from the center frequency of the Gaussian high-pass filter, D0 is the frequency interval, and q is the slope coefficient.
