A quality detection method and system for steel-concrete composite beams based on image data analysis

Through image data analysis, HOG features and gradient features are extracted, combined with SVM and K-means clustering, to identify cracks and corrosion defects in steel-concrete composite beams, solving the problem of detection accuracy under the influence of environmental factors, and improving detection accuracy and robustness. sex.

CN118552548BActive Publication Date: 2024-10-25JIANGXI PROVINCIAL TRANSPORTATION ENG GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411029375.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-25
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

In the quality inspection of steel-concrete composite beams, environmental factors cause more interference information in the image, affecting the accuracy of defect detection.

Method used

A method based on image data analysis is used to obtain and preprocess images, extract HOG feature vectors and gradient features, combine with SVM model for binary classification, calculate abnormal factors to screen out crack areas, and use color, texture, morphological features and K- means clustering to identify corrosion areas and inputting the pre-trained model for further analysis.

Benefits of technology

It improves the accuracy and robustness of defect detection of steel-concrete composite beams, reduces misclassification, and enhances the reliability and practicality of cracks and corrosion defects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552548B_ABST
    Figure CN118552548B_ABST
Patent Text Reader

Abstract

The present invention provides a quality detection method and system for steel-concrete composite beams based on image data analysis, and relates to the field of image processing technology. The method comprises: obtaining an image to be detected collected from a steel-concrete composite beam and performing preprocessing to obtain a target grayscale image, and determining multiple first target areas in the target grayscale image; respectively calculating the HOG feature vector of each first target area and performing binary classification based on an SVM model to obtain a regional classification result; extracting the gradient features of the target grayscale image, generating a gradient direction matrix of the target grayscale image and calculating the gradient direction standard deviation of each first target area; calculating the first abnormal factor of each first target area, screening out a second target area from multiple first target areas and inputting it into a crack detection model, and generating a first defect detection result of a steel-concrete composite beam. The present invention achieves the improvement of the detection accuracy of defects in steel-concrete composite beams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a steel-concrete composite beam quality detection method and system based on image data analysis. Background Art

[0002] Steel-concrete composite beams are a type of structure that combines steel and concrete. This combination of structures can give full play to the advantages of steel and concrete, improve the bearing capacity and durability of the structure, and is widely used in large-scale construction projects. In the natural environment, steel-concrete composite beams will inevitably have some defects during actual use, such as cracks and corrosion. Timely discovery and treatment of related defects can minimize the impact on the structural performance and service life of steel-concrete composite beams.

[0003] Image recognition technology is one of the important technical means to detect defects in steel-concrete composite beams. Images of steel-concrete composite beams can be collected by drones and other equipment to perform quality inspections on them. However, the influence of environmental factors can easily lead to more interference information in the collected images, which affects the accuracy of defect detection. Summary of the invention

[0004] The purpose of the present invention is to provide a steel-concrete composite beam quality detection method and system based on image data analysis, so as to improve the detection accuracy of defects in the steel-concrete composite beam.

[0005] To achieve the above object, the present invention provides a first aspect of a steel-concrete composite beam quality detection method based on image data analysis, comprising:

[0006] Acquire the image to be detected collected from the steel-concrete composite beam and perform preprocessing to obtain a target grayscale image, perform edge detection on the target grayscale image, and determine multiple first target areas in the target grayscale image;

[0007] Calculate the HOG feature vector of each first target area respectively, and input multiple HOG feature vectors into the SVM model for binary classification to obtain the regional classification result;

[0008] Extracting the gradient features of the target grayscale image based on the Sobel operator, generating the gradient direction matrix of the target grayscale image according to the gradient features, and calculating the gradient direction standard deviation of each first target region through the gradient direction matrix;

[0009] Calculating a first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region, and selecting a second target region from the plurality of first target regions according to the first abnormality factor, including recording a first target region whose first abnormality factor is greater than a first preset abnormality threshold as a second target region;

[0010] The plurality of second target areas are input into the crack detection model to generate a first defect detection result of the steel-concrete composite beam.

[0011] Preferably, calculating the first abnormality factor of each first target region according to the region classification result and the gradient direction standard deviation of each first target region includes:

[0012] The category score of each first target area is determined according to the regional classification result, the gradient direction standard deviation of each first target area is standardized to obtain the gradient score of each first target area, and the first abnormal factor of each first target area is calculated using the following formula:

[0013] ;

[0014] In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter;

[0015] The regional classification result includes a first category and a second category. The category scores corresponding to the first category and the second category are respectively a first preset score and a second preset score, so as to determine the category score of each first target area according to the regional classification result.

[0016] Preferably, it also includes:

[0017] Performing color space conversion on the image to be detected to generate a target HSV image, performing edge detection on the target grayscale image, and determining a plurality of third target areas in the target grayscale image;

[0018] Extracting a color feature vector of each third target region based on the target HSV image, and extracting a texture feature vector and a morphological feature vector of each third target region based on the target grayscale image;

[0019] Constructing a feature fusion vector of each third target region according to the color feature vector and the texture feature vector, clustering multiple third target regions based on a K-means clustering algorithm and multiple feature fusion vectors to obtain a regional clustering result;

[0020] Determine the first cluster center and the second cluster center according to the regional clustering result, and calculate the color feature deviation, texture feature deviation and morphological feature deviation of each third target area from the first cluster center and the second cluster center respectively;

[0021] A second abnormality factor of each third target area is determined according to the color feature deviation, the texture feature deviation and the morphological feature deviation, and a fourth target area is screened out from the multiple third target areas according to the second abnormality factor, including recording the third target area whose second abnormality factor is greater than the second preset abnormality threshold as the fourth target area, and inputting the multiple fourth target areas into the corrosion detection model to generate a second defect detection result of the steel-concrete composite beam.

[0022] Preferably, determining the second abnormal factor of each third target area according to the color feature deviation, the texture feature deviation and the morphological feature deviation comprises:

[0023] The deviation parameters of each third target area corresponding to the first cluster center and the second cluster center are calculated according to the color feature deviation, the texture feature deviation and the morphological feature deviation, wherein the deviation parameters are calculated as follows:

[0024] ;

[0025] In the formula, is the deviation parameter, is the color feature deviation, is the texture feature deviation, is the morphological feature deviation, , , are the weighting parameters of color feature deviation, texture feature deviation and morphological feature deviation respectively;

[0026] After using the above formula to calculate the deviation parameters of each third target area corresponding to the first cluster center and the second cluster center, for any third target area, the difference between the deviation parameters of the first cluster center and the second cluster center is selected as the second abnormal factor of the third target area.

[0027] Preferably, determining the first cluster center and the second cluster center according to the regional clustering result, and calculating the color feature deviation, texture feature deviation and morphological feature deviation of each third target region from the first cluster center and the second cluster center, respectively, including:

[0028] The global color feature vector and global texture feature vector of each cluster center are extracted, the morphological feature vectors of multiple third target areas belonging to each cluster are averaged to generate the global morphological feature vector of each cluster center, and the color feature distance, texture feature distance and morphological feature distance of each third target area with the center of the first cluster and the center of the second cluster are calculated according to the global color feature vector, global texture feature vector and global morphological feature vector of each cluster center, so as to obtain the color feature deviation, texture feature deviation and morphological feature deviation of each third target area with the center of the first cluster and the center of the second cluster.

[0029] Preferably, the crack detection model and the corrosion detection model are convolutional neural network models.

[0030] A second aspect of the present invention provides a steel-concrete composite beam quality detection system based on image data analysis, which is used to implement the above-mentioned steel-concrete composite beam quality detection method based on image data analysis, comprising:

[0031] An image preprocessing module is used to obtain the image to be detected collected from the steel-concrete composite beam and perform preprocessing to obtain a target grayscale image, perform edge detection on the target grayscale image, and determine multiple first target areas in the target grayscale image;

[0032] A region classification module is used to calculate the HOG feature vector of each first target region respectively, and input multiple HOG feature vectors into the SVM model for binary classification to obtain a region classification result;

[0033] A gradient analysis module is used to extract the gradient features of the target grayscale image based on the Sobel operator, generate a gradient direction matrix of the target grayscale image according to the gradient features, and calculate the gradient direction standard deviation of each first target area through the gradient direction matrix;

[0034] An abnormality factor calculation module, used for calculating a first abnormality factor of each first target area according to the area classification result and the standard deviation of the gradient direction of each first target area;

[0035] The crack defect detection module is used to screen out a second target area from multiple first target areas according to the first abnormal factor, input the multiple second target areas into the crack detection model, and generate a first defect detection result of the steel-concrete composite beam.

[0036] Preferably, the abnormal factor calculation module further includes:

[0037] Calculating the first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region includes:

[0038] The category score of each first target area is determined according to the regional classification result, the gradient direction standard deviation of each first target area is standardized to obtain the gradient score of each first target area, and the first abnormal factor of each first target area is calculated using the following formula:

[0039] ;

[0040] In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter;

[0041] The regional classification result includes a first category and a second category. The category scores corresponding to the first category and the second category are respectively a first preset score and a second preset score, so as to determine the category score of each first target area according to the regional classification result.

[0042] The present invention has the following beneficial effects:

[0043] 1. The present invention acquires and preprocesses the image to be detected, converts it into a target grayscale image and performs edge detection, so as to efficiently determine the area suspected of having crack defects; by calculating the HOG feature vector of each area and using the SVM model for binary classification, it effectively distinguishes between natural lines and crack defects, thereby improving the accuracy of preliminary classification. Based on the Sobel operator, the gradient features are extracted, the gradient direction matrix is ​​generated, and the gradient direction standard deviation is calculated to optimize the classification results. Combining the regional classification results and the gradient direction standard deviation, the first abnormal factor of each area is calculated to screen out areas with a high probability of crack defects. The method integrates multiple feature information, reduces misclassification, and improves the classification accuracy and robustness under complex backgrounds; the high-probability crack area is input into the pre-trained crack detection model for further analysis and confirmation, and the final defect detection result is generated, which simplifies the amount of data processed by the crack detection model, improves the detection efficiency, and further improves the accuracy and robustness of crack defect detection of steel-concrete composite beams.

[0044] 2. The present invention generates a target HSV image by performing color space conversion on the image to be detected, and performs edge detection on the target grayscale image to efficiently identify the area suspected of corrosion defects; by extracting the color, texture and morphological features of each target area, and clustering these features using the K-means clustering algorithm, the interference area and the corrosion area are effectively distinguished; the deviation of the color feature, texture feature and morphological feature of each target area from the cluster center is further calculated, and the second abnormal factor is determined by combining these deviations, and the high-probability corrosion defect area is screened out, and these areas are input into the pre-trained corrosion detection model for further analysis to generate the final corrosion defect detection result. By using multi-feature fusion and cluster analysis, the real situation of each target area can be more comprehensively and accurately reflected, and corrosion defects and stain interference can be effectively distinguished, false detection and missed detection can be reduced, and detection accuracy and robustness can be improved. The detection results are optimized by secondary analysis, the amount of data processed is simplified, and the detection efficiency and accuracy are improved. The characteristics of the corrosion defect area and the stain interference area are comprehensively analyzed, which significantly enhances the reliability and practicality of corrosion defect detection of steel-concrete composite beams. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic flow chart of a steel-concrete composite beam quality detection method based on image data analysis provided in an embodiment of the present invention.

[0046] Figure 2 A structural schematic diagram of a steel-concrete composite beam quality detection system based on image data analysis provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make those skilled in the art better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0048] The present invention implements a method for quality detection of steel-concrete composite beams based on image data analysis, such as Figure 1 As shown, the method comprises the following steps:

[0049] S10, acquiring the image to be detected collected from the steel-concrete composite beam and performing preprocessing to obtain a target grayscale image, performing edge detection on the target grayscale image, and determining a plurality of first target areas in the target grayscale image;

[0050] In this embodiment, the first target area is mainly an area suspected of having crack defects. The edge features in the image are extracted by edge detection algorithm, and the edge features are further analyzed, such as morphological operations, etc. Considering the texture features of crack defects, one or more areas in the image suspected of having cracks can be extracted and recorded as the first target area. Under the influence of excessive load, fatigue or environmental factors (such as temperature changes, humidity), crack defects are prone to occur on steel-concrete composite beams. Among them, the influence of the external environment, such as rain erosion, may cause interference patterns to be misdetected as crack defects.

[0051] S11, respectively calculating the HOG feature vectors of each first target region, and inputting the multiple HOG feature vectors into the SVM model for binary classification to obtain a region classification result;

[0052] In this embodiment, in order to avoid partial interference lines affecting the subsequent crack defect detection process, the HOG feature vector of each first target area is calculated, and the HOG feature vectors of multiple first target areas are subjected to binary classification processing through the SVM model. Specifically, HOG can effectively capture the edge and shape information in the image by statistically analyzing the gradient direction distribution of the local area. In the HOG histogram, a high-value bin indicates that the gradient in the corresponding direction is strong, which means that there is an obvious edge or texture in the direction. If the bin values ​​of the histogram are evenly distributed, it means that the texture in the image is relatively uniform and has no obvious directionality. If the values ​​of the histogram are concentrated on certain bins, it means that there is an obvious directional texture in the image, such as cracks or edges. The lines formed by natural traces are relatively regular, while crack defects are relatively messy and the crack extension direction is relatively chaotic. In this case, since the SVM model has a strong classification ability in high-dimensional space, it can process the HOG features well, which is suitable for distinguishing nonlinear classification problems such as messy crack defects and regular natural traces, thereby obtaining preliminary classification results for natural traces and crack defects.

[0053] S12, extracting the gradient features of the target grayscale image based on the Sobel operator, generating a gradient direction matrix of the target grayscale image according to the gradient features, and calculating the gradient direction standard deviation of each first target region through the gradient direction matrix;

[0054] In this embodiment, in order to further improve the classification accuracy of natural traces and crack defects, the gradient features of the target grayscale image are extracted, and the gradient direction matrix of the target grayscale image is constructed based on the gradient features. The gradient direction standard deviation of the natural trace area is small, while the gradient direction standard deviation of the crack area is large. By calculating the gradient direction standard deviation of each first target area, data support can be further provided for regional classification.

[0055] It is worth noting that in the process of extracting HOG features, it is necessary to first calculate the gradient of the image to calculate information such as the gradient amplitude and gradient direction. Therefore, the gradient features of the target grayscale image can be directly extracted based on the Sobel operator. The calculation of the HOG feature vector of each first target area mentioned in step S2 can be directly determined by extracting the gradient features of the target grayscale image based on the Sobel operator. In this embodiment, it is only used to indicate the specific technical means that can be used, and does not mean that the gradient feature extraction operation needs to be repeated.

[0056] S13, calculating a first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region, and screening out a second target region from the plurality of first target regions according to the first abnormality factor;

[0057] In this embodiment, the regional classification results obtained by the preliminary analysis are further optimized by combining the calculated standard deviation of the gradient direction of each first target region, and the first abnormality factor of each first target region is calculated.

[0058] In this embodiment, the calculation of the first abnormal factor specifically includes:

[0059] The category score of each first target area is determined according to the regional classification result, and the standard deviation of the gradient direction of each first target area is normalized to obtain the gradient score of each first target area. Specifically, the regional classification result includes a first category and a second category, and the first category and the second category are respectively preset with corresponding category scores, wherein the category score corresponding to the first category is a first preset score, and the score corresponding to the second category is a second preset score, for example, the first category corresponds to a natural grain area, and the category score, i.e., the first preset score, is 0.4, and the second category corresponds to a crack defect area, and the category score, i.e., the second preset score, is 0.6.

[0060] After determining the category score and gradient score of each first target area, the first anomaly factor of each first target area is calculated using the following formula:

[0061] ;

[0062] In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter;

[0063] By combining the classification results based on HOG feature vectors and multiple features such as the standard deviation of the gradient direction in the above manner, the preliminary classification results are further optimized, which can reduce the occurrence of misclassification, further improve the ability to distinguish between natural traces and crack defects in the face of complex backgrounds and interference, and effectively improve the accuracy and robustness of crack defect detection in steel-concrete composite beams. For the calculated first abnormal factor, the larger the first abnormal factor, the greater the possibility that the first target area is a crack defect area, and multiple second target areas with a high probability of being crack defect areas are screened out based on the first preset abnormal threshold, specifically, the first target area whose first abnormal factor is greater than the first preset abnormal threshold is recorded as the second target area.

[0064] S14, inputting the plurality of second target areas into the crack detection model to generate a first defect detection result of the steel-concrete composite beam;

[0065] In this embodiment, for multiple second target areas that are likely to be crack defect areas, in order to improve the accuracy of defect detection, the multiple second target areas can be further analyzed through the pre-trained crack detection model to obtain the final first defect detection result that characterizes the crack defect detection of the steel-concrete composite beam.

[0066] It is worth noting that after the classification of the SVM model, the calculation of the standard deviation in the gradient direction, and the fusion of multiple features, the screening of suspected crack areas has been completed, and the high-probability crack defect areas have been obtained. In order to further improve the accuracy and robustness of crack defect detection and the needs of actual detection accuracy, technical personnel in this field can further optimize and confirm the detection results through the pre-trained crack detection model. The above steps can be used to screen out the second target area with a high probability of crack defects, and the amount of data that the crack detection model needs to process can also be further simplified to improve the defect detection efficiency of the crack detection model.

[0067] The embodiment of the present invention provides a steel-concrete composite beam quality detection method based on image data analysis. By acquiring and preprocessing the image to be detected, converting it into a target grayscale image and performing edge detection, the area suspected of having crack defects is efficiently determined; by calculating the HOG feature vector of each area and using the SVM model for binary classification, the natural texture and crack defects are effectively distinguished, and the accuracy of the preliminary classification is improved. Gradient features are extracted based on the Sobel operator, a gradient direction matrix is ​​generated, and the gradient direction standard deviation is calculated to optimize the classification results. Combining the regional classification results and the gradient direction standard deviation, the first abnormal factor of each area is calculated to screen out areas with a high probability of crack defects. The method integrates multiple feature information, reduces misclassification, and improves the classification accuracy and robustness under complex backgrounds; the high-probability crack area is input into the pre-trained crack detection model for further analysis and confirmation, and the final defect detection result is generated, which simplifies the amount of data processed by the crack detection model, improves the detection efficiency, and further improves the accuracy and robustness of crack defect detection of steel-concrete composite beams.

[0068] In a more preferred embodiment, a steel-concrete composite beam quality detection method based on image data analysis also includes:

[0069] S20, performing color space conversion on the image to be detected to generate a target HSV image, performing edge detection on the target grayscale image, and determining a plurality of third target areas in the target grayscale image;

[0070] In this embodiment, the third target area is mainly an area suspected of having corrosion defects. After the edge features in the image are extracted by the edge detection algorithm, multiple areas suspected of having corrosion defects can be further extracted based on morphological operations and other technologies in combination with the texture features of the corrosion area, such as regional connectivity characteristics, and recorded as the third target area. Considering the influence of the natural environment, some interference areas such as stains and stagnant water are likely to interfere with the detection of areas with corrosion defects. Considering that corrosion usually causes color changes and that water stain areas are usually darker, the color space conversion of the image to be detected is performed to generate a target HSV image, which is convenient for extracting the color features of the image.

[0071] S21, extracting a color feature vector of each third target region based on the target HSV image, and extracting a texture feature vector and a morphological feature vector of each third target region based on the target grayscale image;

[0072] In this embodiment, the color feature vector may include feature data such as statistical characteristics (mean, variance) of hue, saturation and brightness (value) in the target area; the texture feature vector may be feature data such as contrast, entropy, uniformity, correlation, etc. extracted based on the gray-level co-occurrence matrix of the target area; the morphological feature vector may include morphological features such as shape descriptors (such as Hu moments and Fourier descriptors) of the target area; the color, texture and morphological features extracted from the target area are standardized to construct the color feature vector, texture feature vector and morphological feature vector of each third target area.

[0073] S22, constructing a feature fusion vector of each third target region according to the color feature vector and the texture feature vector, and clustering the multiple third target regions based on the K-means clustering algorithm and the multiple feature fusion vectors to obtain a regional clustering result;

[0074] In this embodiment, the feature fusion vector is specifically a feature vector obtained by feature splicing of the color feature vector and the texture feature vector, which includes the color features and texture features of the third target area. Taking into account that the differences in color and texture between corrosion and stains are obvious, and that, for example, in images collected by drone equipment under relatively stable lighting conditions, the combination of color features and texture features can provide good distinguishing capabilities, color features and texture features are used as significant features, and the constructed feature fusion vector is used as the clustering basis. Based on the K-means clustering algorithm, multiple third target areas are clustered, wherein the number of clustering categories can preferably be 2 categories, and the obtained regional clustering results are used to distinguish interference areas and corrosion areas existing in multiple third target areas.

[0075] S23, determining the first cluster center and the second cluster center according to the regional clustering result, and calculating the color feature deviation, texture feature deviation and morphological feature deviation of each third target region respectively from the first cluster center and the second cluster center;

[0076] In this embodiment, the clustering results include the cluster centers corresponding to the existing interference areas and corrosion areas, respectively. The color feature vector and the texture feature vector are specifically combined in the clustering process. The color feature and the texture feature corresponding to each cluster center are recorded as the global color feature vector and the global texture feature vector of the cluster center. For the morphological feature vectors of multiple third target areas belonging to each cluster, the mean of the morphological feature vectors of the multiple third target areas is calculated to construct a global morphological feature vector of each cluster center. The global color feature vector, the global texture feature vector and the global morphological feature vector of each cluster center are used as references. According to each third target area, The color feature vector, texture feature vector and morphological feature vector are used to analyze the feature deviation. The color feature distance, texture feature distance and morphological feature distance between each third target area and the center of the first cluster and the center of the second cluster are calculated according to the global color feature vector, global texture feature vector and global morphological feature vector of each cluster center. For example, the distance between the two feature vectors is calculated based on the Euclidean distance calculation formula, so as to obtain the color feature deviation, texture feature deviation and morphological feature deviation between each third target area and the center of the first cluster and the center of the second cluster. The smaller the feature deviation value, the smaller the deviation degree of the feature, and the more it fits the corresponding cluster center.

[0077] S24, determining a second abnormality factor of each third target area according to the color feature deviation, the texture feature deviation, and the morphological feature deviation, screening out a fourth target area from the plurality of third target areas according to the second abnormality factor, inputting the plurality of fourth target areas into the corrosion detection model, and generating a second defect detection result of the steel-concrete composite beam;

[0078] In this embodiment, the calculation of the second abnormal factor specifically includes:

[0079] The deviation parameters of each third target area corresponding to the first cluster center and the second cluster center are calculated according to the color feature deviation, the texture feature deviation and the morphological feature deviation, wherein the deviation parameters are calculated as follows:

[0080] ;

[0081] In the formula, is the deviation parameter, is the color feature deviation, is the texture feature deviation, is the morphological feature deviation, , , are the weighting parameters of color feature deviation, texture feature deviation and morphological feature deviation respectively;

[0082] After using the above formula to calculate the deviation parameters of each third target area corresponding to the first cluster center and the second cluster center, for any third target area, the difference between the deviation parameters of the first cluster center and the second cluster center is selected as the second abnormal factor of the third target area.

[0083] In this embodiment, the deviation parameter integrates color features, texture features and morphological features. This comprehensive feature fusion method can more comprehensively reflect the actual situation of each third target area, and can more accurately distinguish corrosion defects and stain interference under complex backgrounds and with more interference, reduce false detections and missed detections, and effectively improve detection accuracy. It has significant advantages in distinguishing corrosion defects from stain interference. By selecting the difference between the deviation parameters of the first cluster center and the second cluster center as the second abnormal factor of the third target area to characterize the division of corrosion defect areas and stain interference areas, the fourth target area with a high probability of being a corrosion defect area can be screened out through a pre-set second preset abnormal threshold.

[0084] In this embodiment, the cluster corresponding to the center of the first cluster is recorded as the stain interference area, and the cluster corresponding to the center of the second cluster is recorded as the corrosion defect area. For any third target area, the larger the deviation parameter between it and the center of the first cluster and the smaller the deviation parameter between it and the center of the second cluster, the larger the difference between its deviation parameter with the center of the first cluster and the center of the second cluster, indicating that the probability that the third target area belongs to the corrosion defect area is greater. In this case, the larger the second abnormal factor of the third target area is, and the fourth target area with a high probability of being a corrosion defect area is screened out by the pre-set second preset abnormal threshold. Specifically, the third target area whose second abnormal factor is greater than the second preset abnormal threshold is recorded as the fourth target area.

[0085] In this embodiment, the color features, texture features and morphological features between the corrosion defect area and the stain interference area are comprehensively analyzed, so that the areas with a high probability of corrosion defects can be screened out more accurately. In order to further improve the detection accuracy of corrosion defects, technical personnel in this field can further analyze and detect multiple fourth target areas through the pre-trained corrosion detection model to generate the final second defect detection result characterizing the corrosion defect detection of the steel-concrete composite beam.

[0086] It is worth noting that the crack detection model and the corrosion detection model are pre-trained neural network models. In this embodiment, the crack detection model and the corrosion detection model are constructed based on a convolutional neural network. The crack detection model can be obtained by training a training data set containing multiple images with labeled information of crack defect areas, and the corrosion detection model can be obtained by training a training data set containing multiple images with labeled information of corrosion defect areas. The construction and training of convolutional neural networks are technical means well known to those skilled in the art and are not specifically limited here.

[0087] The embodiment of the present invention provides a steel-concrete composite beam quality detection method based on image data analysis. The method generates a target HSV image by color space conversion of the image to be detected, and performs edge detection on the target grayscale image to efficiently identify the area suspected of corrosion defects; extracts the color, texture and morphological features of each target area, and clusters these features using the K-means clustering algorithm to effectively distinguish the interference area and the corrosion area; further calculates the deviation of the color feature, texture feature and morphological feature of each target area from the cluster center, determines the second abnormal factor by combining these deviations, screens out the high probability corrosion defect area, and inputs these areas into the pre-trained corrosion detection model for further analysis to generate the final corrosion defect detection result. By using multi-feature fusion and cluster analysis, the real situation of each target area can be more comprehensively and accurately reflected, and the corrosion defect and stain interference can be effectively distinguished, false detection and missed detection can be reduced, and the detection accuracy and robustness can be improved. The detection results are optimized by secondary analysis, the amount of data processed is simplified, and the detection efficiency and accuracy are improved. The characteristics of the corrosion defect area and the stain interference area are comprehensively analyzed, which significantly enhances the reliability and practicality of the corrosion defect detection of the steel-concrete composite beam.

[0088] The embodiment of the present invention also provides a steel-concrete composite beam quality detection system based on image data analysis, such as Figure 2 As shown, the system includes:

[0089] An image preprocessing module is used to obtain the image to be detected collected from the steel-concrete composite beam and perform preprocessing to obtain a target grayscale image, perform edge detection on the target grayscale image, and determine multiple first target areas in the target grayscale image;

[0090] A region classification module is used to calculate the HOG feature vector of each first target region respectively, and input multiple HOG feature vectors into the SVM model for binary classification to obtain a region classification result;

[0091] A gradient analysis module is used to extract the gradient features of the target grayscale image based on the Sobel operator, generate a gradient direction matrix of the target grayscale image according to the gradient features, and calculate the gradient direction standard deviation of each first target area through the gradient direction matrix;

[0092] An abnormality factor calculation module, used for calculating a first abnormality factor of each first target area according to the area classification result and the standard deviation of the gradient direction of each first target area;

[0093] The first abnormality factor of each first target region is calculated according to the region classification result and the standard deviation of the gradient direction of each first target region, including:

[0094] The category score of each first target area is determined according to the regional classification result, the gradient direction standard deviation of each first target area is standardized to obtain the gradient score of each first target area, and the first abnormal factor of each first target area is calculated using the following formula:

[0095] ;

[0096] In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter;

[0097] The regional classification result includes a first category and a second category. The category scores corresponding to the first category and the second category are respectively a first preset score and a second preset score, so as to determine the category score of each first target area according to the regional classification result.

[0098] The crack defect detection module is used to screen out a second target area from multiple first target areas according to the first abnormal factor, input the multiple second target areas into the crack detection model, and generate a first defect detection result of the steel-concrete composite beam.

[0099] The above is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be obvious to those skilled in the art. Parts not described in detail in this specification belong to the prior art known to those skilled in the art.

Claims

1. A steel-concrete composite beam quality detection method based on image data analysis, characterized in that: include: Acquire the image to be detected collected from the steel-concrete composite beam and perform preprocessing to obtain a target grayscale image, perform edge detection on the target grayscale image, and determine multiple first target areas in the target grayscale image; Calculate the HOG feature vector of each first target area respectively, and input multiple HOG feature vectors into the SVM model for binary classification to obtain the regional classification result; Extracting the gradient features of the target grayscale image based on the Sobel operator, generating the gradient direction matrix of the target grayscale image according to the gradient features, and calculating the gradient direction standard deviation of each first target region through the gradient direction matrix; Calculating a first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region, and selecting a second target region from the plurality of first target regions according to the first abnormality factor, including recording a first target region whose first abnormality factor is greater than a first preset abnormality threshold as a second target region; inputting the plurality of second target areas into the crack detection model to generate a first defect detection result of the steel-concrete composite beam; Calculating the first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region includes: The category score of each first target area is determined according to the regional classification result, the gradient direction standard deviation of each first target area is standardized to obtain the gradient score of each first target area, and the first abnormal factor of each first target area is calculated using the following formula: ; In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter; The regional classification result includes a first category and a second category, and the category scores corresponding to the first category and the second category are respectively a first preset score and a second preset score, so as to determine the category score of each first target area according to the regional classification result; Also includes: Performing color space conversion on the image to be detected to generate a target HSV image, performing edge detection on the target grayscale image, and determining a plurality of third target areas in the target grayscale image; Extracting a color feature vector of each third target region based on the target HSV image, and extracting a texture feature vector and a morphological feature vector of each third target region based on the target grayscale image; Constructing a feature fusion vector of each third target region according to the color feature vector and the texture feature vector, clustering multiple third target regions based on a K-means clustering algorithm and multiple feature fusion vectors to obtain a regional clustering result; Determine the first cluster center and the second cluster center according to the regional clustering result, and calculate the color feature deviation, texture feature deviation and morphological feature deviation of each third target area from the first cluster center and the second cluster center respectively; A second abnormality factor of each third target area is determined according to the color feature deviation, the texture feature deviation and the morphological feature deviation, and a fourth target area is screened out from the multiple third target areas according to the second abnormality factor, including recording the third target area whose second abnormality factor is greater than the second preset abnormality threshold as the fourth target area, and inputting the multiple fourth target areas into the corrosion detection model to generate a second defect detection result of the steel-concrete composite beam.

2. The method for quality inspection of steel-concrete composite beams based on image data analysis according to claim 1 is characterized in that: The second abnormal factor of each third target area is determined according to the color feature deviation, the texture feature deviation and the morphological feature deviation, including: The deviation parameters of each third target area corresponding to the first cluster center and the second cluster center are calculated according to the color feature deviation, the texture feature deviation and the morphological feature deviation, wherein the deviation parameters are calculated as follows: ; In the formula, is the deviation parameter, is the color feature deviation, is the texture feature deviation, is the morphological feature deviation, , , are the weighting parameters of color feature deviation, texture feature deviation and morphological feature deviation respectively; After using the above formula to calculate the deviation parameters of each third target area corresponding to the first cluster center and the second cluster center, for any third target area, the difference between the deviation parameters of the first cluster center and the second cluster center is selected as the second abnormal factor of the third target area.

3. The method for quality inspection of steel-concrete composite beams based on image data analysis according to claim 1 is characterized in that: Determine the first cluster center and the second cluster center according to the regional clustering results, and calculate the color feature deviation, texture feature deviation and morphological feature deviation of each third target area from the first cluster center and the second cluster center, including: The global color feature vector and global texture feature vector of each cluster center are extracted, the morphological feature vectors of multiple third target areas belonging to each cluster are averaged to generate the global morphological feature vector of each cluster center, and the color feature distance, texture feature distance and morphological feature distance of each third target area with the center of the first cluster and the center of the second cluster are calculated according to the global color feature vector, global texture feature vector and global morphological feature vector of each cluster center, so as to obtain the color feature deviation, texture feature deviation and morphological feature deviation of each third target area with the center of the first cluster and the center of the second cluster.

4. The method for quality inspection of steel-concrete composite beams based on image data analysis according to claim 3 is characterized in that: The crack detection model and corrosion detection model are convolutional neural network models.

5. A steel-concrete composite beam quality detection system based on image data analysis, the system is used to implement the steel-concrete composite beam quality detection method based on image data analysis as described in any one of claims 1 to 4, characterized in that: include: An image preprocessing module is used to obtain the image to be detected collected from the steel-concrete composite beam and perform preprocessing to obtain a target grayscale image, perform edge detection on the target grayscale image, and determine multiple first target areas in the target grayscale image; A region classification module is used to calculate the HOG feature vector of each first target region respectively, and input multiple HOG feature vectors into the SVM model for binary classification to obtain a region classification result; A gradient analysis module is used to extract the gradient features of the target grayscale image based on the Sobel operator, generate a gradient direction matrix of the target grayscale image according to the gradient features, and calculate the gradient direction standard deviation of each first target area through the gradient direction matrix; An abnormality factor calculation module, used for calculating a first abnormality factor of each first target area according to the area classification result and the standard deviation of the gradient direction of each first target area; The crack defect detection module is used to screen out a second target area from multiple first target areas according to the first abnormal factor, input the multiple second target areas into the crack detection model, and generate a first defect detection result of the steel-concrete composite beam.

6. The steel-concrete composite beam quality detection system based on image data analysis according to claim 5 is characterized in that: For the abnormal factor calculation module, it also includes: Calculating the first abnormality factor of each first target region according to the region classification result and the standard deviation of the gradient direction of each first target region includes: The category score of each first target area is determined according to the regional classification result, the gradient direction standard deviation of each first target area is standardized to obtain the gradient score of each first target area, and the first abnormal factor of each first target area is calculated using the following formula: ; In the formula, For the The first abnormal factor of the first target area, For the The category score of the first target area, For the The gradient score of the first target region, is the category weight parameter, is the gradient weight parameter; The regional classification result includes a first category and a second category. The category scores corresponding to the first category and the second category are respectively a first preset score and a second preset score, so as to determine the category score of each first target area according to the regional classification result.