Post-fire concrete structure damage segmentation and quantification method
Using deep learning technology to build a post-fire concrete structure damage segmentation network, combined with 3D cube reference objects, it solves the problem of low accuracy in detecting damage to concrete structures after fire, and achieves automated, fast, and safe damage quantification and assessment.
Patent Information
- Application Number
- CN202410746545.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-27
AI Technical Summary
Existing non-destructive testing methods for concrete structures after fires have low detection accuracy, long detection cycles, and great threats to on-site safety, especially when complex cracks and bursts exist on the concrete surface.
Using image semantic segmentation technology in deep learning, the post-fire superimposed beam damage segmentation network UpperNet_ConvNeXt was constructed. The same data set was trained and tested through multiple models to verify the accuracy of the network, and a 3D cube was introduced as a reference to fix the range calculation. , enabling detailed quantification of linear cracks, network cracks and bursts.
It realizes automatic damage segmentation and quantification of RC components after fire, improves detection efficiency, reduces operation difficulty, provides accurate damage assessment data, and supports subsequent reinforcement and repair work.
Smart Images

Figure CN118710896A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of damage assessment of concrete structures after fire, and in particular to a method for segmenting and quantifying damage of concrete structures after fire. Background Art
[0002] The damage detection methods of RC components can be divided into two categories: non-destructive testing and destructive testing. In the first category, the hammer-rebound method is one of the representative methods. This method uses a hammer to knock on the surface of the concrete component, and the depth of the rebound is used to evaluate the degree of damage to the concrete. However, this method requires that the surface of the component is relatively flat, and it cannot be applied to the situation where there is concrete bursting on the surface of the component. In addition, the detection efficiency of this method is low, and it is time-consuming and laborious. In another type of destructive testing method, the core sampling method is a relatively typical representative. This method uses a drill to sample the damaged component at the disaster site, and then sends the sample to the laboratory, where professionals use equipment to analyze the sample to determine the degree of damage. However, the disadvantage of this method is that the detection cycle is long, usually taking 2 to 3 weeks, and it is easy to cause secondary damage to the component during the sampling process, thereby endangering the life safety of the on-site inspection personnel. Therefore, it is necessary to propose an automatic, fast and non-destructive RC component damage detection method after fire to improve the detection efficiency.
[0003] However, in the existing non-destructive testing methods for RC components after fire, the detection accuracy of deep learning algorithms is not high. For example, although the semantic segmentation algorithm has achieved good results in concrete structure health monitoring, the algorithm requires a large amount of labeled data for training, and it is very difficult to obtain large-scale real scene images of concrete structures after fire; and the complex shapes of structural cracks and bursts under fire affect the generalization ability of the model; the fire environment is changeable, and the concrete surface is easily affected by stains, dust, lighting changes, etc., which have a negative effect on the performance of the segmentation network. Summary of the invention
[0004] The present invention proposes a method for segmenting and quantifying damage of concrete structures after fire, the purpose of which is to use the image semantic segmentation technology in deep learning to realize the automatic damage segmentation and quantification function of RC (Reinforced Concrete) components damaged after fire, so as to solve the problem of low accuracy of the existing non-destructive detection method of RC components after fire in the prior art.
[0005] To achieve the above object, the technical solution of the present invention is:
[0006] A method for segmenting and quantifying damage of concrete structures after fire, comprising the following steps:
[0007] Step 1: Identify the types and characteristics of two types of damage, cracks and bursts on the surface of RC structural components after fire, and build corresponding data sets for network training and verification;
[0008] Step 2: Based on image segmentation technology, the post-fire composite beam damage segmentation network UperNet_ConvNeXt was constructed. The Deeplabv3+_ResNet50, Deeplabv3+_TransNeXt and UperNet_ResNet models were used to train and test the same data set to verify the network accuracy of UperNet_ConvNeXt.
[0009] Step 3: In order to verify the generalization ability of the model, four public crack datasets are used to verify the trained UperNet_ConvNeXt model;
[0010] Step 4: Use image segmentation technology to quantify the damage based on the UperNet_ConvNeXt model. In order to solve the problem of cumbersome range calculation caused by image size and shooting distance, a 2cm×2cm×2cm three-dimensional cube is introduced as a reference to fix the range of each photo and eliminate the influence of external factors on the quantitative analysis of damage. The damage is divided into three types: linear cracks, mesh cracks and bursts, and detailed quantification is performed. The accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes.
[0011] Step 5: Design a GUI interface to realize the automatic segmentation and quantification of composite beam damage after fire, and propose a criterion for assessing composite beam damage after fire based on the quantification results.
[0012] Preferably, in step 1, the data set is composed of several pictures taken on site, and the pictures are composed of several pictures of working condition 1 and several pictures of working condition 2. Working condition 1 is to obtain the crack and burst sizes by calculating the range of the actual image and the processed image when the beam width in the original image is known; working condition 2 is to place a three-dimensional cube as a reference in each original image, and obtain the crack and burst sizes by calculating the pixel ratio of the actual cube and the cube in the network; all pictures are taken in square shape, and image augmentation technology is used to improve the data to avoid overfitting during model training. The dataset was expanded; after expansion, the number of images was 6 times that of the original dataset, and the training set and the validation set were divided into a ratio of 8:2 to evaluate the model performance in an all-round way; the cracks and bursts were annotated using Labelme software, and the boundaries of the two types of damage were drawn with closed curves to generate mask files. The original image, the labeled image, and the generated mask image were compared. During the training process, in order to enhance the diversity of the data and improve the generalization ability of the model, the input image was resized to generate image samples with different aspect ratios, and the ratios were set to 0.5, 0.75, 1.0, 1.25, 1.5, and 1.75.
[0013] Preferably, the step 1 further includes a step of graying the image. The image captured by the smart phone is formed by superimposing pixel values of the three RGB channels. The RGB value of each pixel is in the range of 0 to 255. In order to obtain a grayscale image, the RGB value of each pixel is weighted averaged, as shown in formula (2.1):
[0014] F(x,y)=0.3R(x,y)+0.59G(x,y)+0.114B(x,y) (1)
[0015] In formula (1), F is the value of each pixel in the grayscale image; R: red, G: green, B: blue;
[0016] Preferably, in the step 2, UPerNet_ConvNeXt is based on a feature pyramid network and integrates a pyramid pooling module in a Pyramid Scene Parsing Network; the processing flow of UPerNet_ConvNeXt starts with an input image, and the image is first feature extracted through a ConvNeXt network to generate four feature maps of different sizes: C2, C3, C4, and C5; next, the C5 feature map is fused with four different sizes of global average pooling layer information through PPM to generate a new feature map P5; to improve resolution and feature fusion, P5 is upsampled three times, and each time after sampling, it is fused with a feature map of a corresponding size of the ConvNeXt network to finally obtain P4, P3, and P2; thereafter, P4, P3, and P2 are enlarged to their original size through bilinear interpolation and fused; finally, through a semantic segmentation head composed of a convolutional layer and an upsampling operation, the fused features are mapped to pixel-level semantic label predictions, thereby generating a semantic segmentation prediction map that is completely consistent with the input image size.
[0017] Preferably, in step 2, the UPerNet_ConvNeXt backbone framework adopts ConvNeXt-Tiny, which is based on ResNet50 and is improved by imitating the structure of Swin Transformer. ConvNeXt-Tiny consists of 4 basic stages, each of which is a convolution block + a post-processing block;
[0018] In order to improve the performance and stability of the model, improvement measures are taken as follows:
[0019] (1) Macro-structure adjustment: The number of stacking times in ResNet50 is optimized from (3, 4, 6, 3) to (3, 3, 9, 3). At the same time, a convolutional layer with a kernel size of 4 × 4 and a stride of 4 is introduced as the stem, which is called Patchify convolution.
[0020] (2) Channel number optimization: In order to balance the amount of computation and accuracy, the initial number of channels was increased from 64 to 96, and a group convolution strategy was adopted;
[0021] (3) Inverted bottleneck structure: Inverted bottleneck structure is introduced to enhance feature extraction capability and avoid information loss, so that the block can adapt to larger convolution kernels;
[0022] (4) Larger convolution kernel: Replace the 3×3 convolution kernel in the Inverted Bottleneck structure with a 7×7 convolution kernel;
[0023] (5) Activation function upgrade: To overcome the gradient vanishing problem that may be caused by the ReLU activation function, the activation function is changed from ReLU to GELU;
[0024] (6) Normalization layer adjustment: The GELU activation function is used only after the first fully connected layer, and the remaining layers still use ReLU. The normalization layer is applied after the first 7×7 convolution layer. In addition, batch normalization is replaced by layer normalization to adapt to small batch or single sample training scenarios and reduce memory consumption;
[0025] (7) Downsampling layer design: An independent downsampling layer is introduced, which consists of an LN and a 2×2 convolutional layer with a stride of 2 to reduce the spatial dimension of the feature map.
[0026] Preferably, in the step 2, the specific operation of ConvNeXt-Tiny is as follows: first, ConvNeXt-Tiny implements downsampling by performing a 4×4 convolution operation with a step size of 4, and then uses LN to normalize the data; on this basis, ConvNeXt-Tiny constructs 4 Conv Blocks, and their stacking ratio is set to 1:1:3:1; except for the first Conv Block, the Downsample downsampling layer is integrated in front of each other Conv Block to further improve the feature extraction capability of the network; the internal structure of Conv Block combines Inverted Bottleneck and residual design; in the Inverted Bottleneck structure, a 7×7 depth-separable convolution with a step size of 1 is first used, and then the data is standardized through the LN layer; then, a 1×1 convolution kernel with a step size of 1 is applied, and the GELU activation function is used to achieve a 4-fold expansion of the number of channels; then, a 1×1 convolution operation with a step size of 1 is performed to restore the dimension to the initial number of channels of the Conv Block; finally, Layer The Scale layer is used to scale the data of each channel and regularize it through the Drop Path mechanism to ensure the stability and generalization ability of the network.
[0027] Preferably, in the step 2, the backbone network layer parameters of UPerNet_ConvNeXt are initialized with weights pre-trained on the ImageNet dataset, a checkpoint is saved every 5000 iterations to save the UPerNet_ConvNeXt weights, and log information is recorded and output every 50 iterations to track the training status of UPerNet_ConvNeXt in real time; in terms of optimization, the Adam optimizer is selected to adjust the model parameters to minimize the loss function, and the gradient is processed by the dynamic loss scaling technique To solve the overflow problem, the momentum parameter of the Adam optimizer was set to (0.9, 0.999), and the learning rate was initialized to 0.001. In order to prevent the model from overfitting and reduce its complexity, a weight decay strategy was adopted, and the decay coefficient was set to 0.05. The learning rate was adjusted dynamically from the beginning of training according to the number of iterations and stopped after 160,000 iterations. The initial learning rate was set to 10-6, and weight decay was performed only on the first 6 layers of the model. A total of 160,000 iterations were performed during the entire training process, and verification was performed every 2,000 iterations.
[0028] Preferably, in step 4, the quantification method includes:
[0029] (1) Crack type identification
[0030] When the number of connected domains in the crack image is less than 3, it is judged as a linear crack; when the number of connected domains exceeds 3, it is classified as a network crack;
[0031] (2) Calculation of linear crack parameters
[0032] The crack area is the number of all pixel points inside the contour. The present invention uses the OpenCV
[32] function to calculate the contour area, which calculates the contour area by processing the vertex coordinates of the contour, as shown in formula (2).
[0033]
[0034] Where N represents the number of vertices of the polygon, (x i ,y i ) represents the coordinates of the i-th vertex of the polygon.
[0035] The crack width is calculated using the minimum circumscribed rotated rectangle. First, the crack contour is fitted into a minimum area rectangle, and then the center point coordinates, width, height and rotation angle of the rectangle are calculated. The crack width is the width of the minimum circumscribed rectangle. The width of the circumscribed rectangle is determined by comparing its width and height. If the width is greater than or equal to the height, the width of the outer rectangle is the width. If the width is less than the height, the width of the circumscribed rectangle is the height. OpenCV is used to draw the minimum circumscribed rectangle [33–35].
[0036] (3) Calculation of network crack parameters
[0037] In order to calculate the area of reticular cracks more accurately, the polygon fitting method is introduced. Polygon fitting is a technique commonly used to solve the area of irregular images, especially suitable for calculating the area of complex shapes such as reticular cracks. Fig.15 As shown. Through polygon fitting, we can more accurately depict the outline of the crack and calculate the actual area of the crack. The steps of polygon fitting usually include the following steps:
[0038] 1) Set the fitting step threshold T as the benchmark for subsequent operations;
[0039] 2) Randomly select a starting point A in the target image and start the fitting process from this point;
[0040] 3) Starting from point A, move along the edge of the image with a fixed step length of 4T and record this new point B;
[0041] 4) Find the pixel point C with the largest distance from the line A within the threshold range of T from point A, and find another pixel point D with the largest distance from the line AB within the range of 3T to 4T from point A. Since both points C and D meet the condition of threshold T, it can be determined that the remaining search range is limited to the pixel points between T and 3T from point A;
[0042] 5) Find the point E with the largest distance from the line AB in the range of T to 3T from point A, and record the distance as H. If H is greater than T, find the point with the largest distance from the line AB between CE and ED again, and increase the number of polygon vertices accordingly;
[0043] 6) If H is less than T, take B as the new starting point and repeat the above steps until the entire target image is traversed.
[0044] (4) Calculation of burst area
[0045] In burst image analysis, we first need to draw its outer contour to accurately capture the shape; then, we use OpenCV functions to calculate the contour area based on the vertex coordinates (extracted from the original image through edge detection or threshold segmentation); this calculation usually uses the polygon area formula (such as formula (2)), considering all vertex positions, to obtain the area of the area enclosed by the contour;
[0046] When assessing the damage of mesh cracks, it is not accurate to rely solely on the length and width. In order to measure the damage more accurately, the area surrounded by mesh cracks is used as an assessment indicator. Currently, there are two main methods for calculating this area: the expansion method and the rectangular enclosing method. Both methods calculate the area by converting mesh cracks into pits. However, this method often leads to an overestimation because the calculated area may include the non-damaged area around the cracks.
[0047] Preferably, in step 4, the accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes, including:
[0048] A. Quantitative analysis of working condition 1:
[0049] Since the algorithm calculates the area and width on the Pycharm image, in order to compare with the actual measurement results, the actual distance represented by the unit pixel, that is, the range R, is first obtained. Before calculating the damage area and width, the image is calibrated first. Two calibration points A and B are selected in the shooting area. It is known that the actual distance between the two points is 300 mm, the width of the composite beam. By calculating the pixel values of points A and B, A(x0, x1) and B(x0, x2), the range R is obtained. The R value calculation is shown in formula (3).
[0050]
[0051] Then, the contour corresponding to the set pixel value in the segmentation mask is drawn on the given image. The crack pixel value is set to 38 and the burst pixel value is set to 75. The two types of damage are drawn separately. The contour area and the minimum circumscribed rectangle width are calculated for each contour, and the relevant information is marked on the contour. Then, the calculation result is converted to mm. The conversion formula is shown in formula (4);
[0052]
[0053] B. Quantitative analysis of working condition 2
[0054] First, damage pictures of composite beams after fire were collected, and the cracks, bursts, and reference objects in each picture were accurately labeled in Labelme to ensure the accuracy and consistency of the data. Then, the fully trained UperNet_ConvNeXt network model in step 2 was used to segment these pictures to obtain clear segmented images of cracks and bursts. Finally, quantitative analysis was performed based on the segmented images.
[0055] The beneficial effects of the post-fire concrete structure damage segmentation and quantification method of the present invention are:
[0056] 1. The present invention constructs an image dataset of damaged RC structural components after fire for network training and verification; based on the FPN framework, the ConvNeXt and PPM modules are integrated to establish the damage segmentation network UperNet_ConvNeXt of the composite beam structure after fire, and further quantify the structural damage. The damage is divided into three types: linear cracks, mesh cracks and bursts. The area and width of linear cracks are calculated by the minimum circumscribed rotating rectangle method, and the area of mesh cracks and bursts is calculated. Due to the complexity of mesh cracks, polygon fitting method is used for solution. Since the steps of calculating the range of each picture separately are complicated and inefficient, a three-dimensional cube is used as a reference in the original picture to achieve the unification of the range and improve the calculation efficiency. A GUI interface is constructed to reduce the difficulty of operation and improve work efficiency.
[0057] 2. In actual use, images can be collected through mobile phones, high-definition cameras, drones and other devices, and input into the GUI interface developed by the present invention for automatic damage segmentation and quantification. The length, width and area of the cracks can be obtained, and the area of the burst can also be obtained, providing data support for subsequent staff to carry out reinforcement and repair.
[0058] Instruction Manual
[0059] Figure 1 Image annotation interface for Labelme.
[0060] Figure 2 Image mask generation (the left one is the original image, the middle one is the generated mask image, and the right one is the Labelme annotated image).
[0061] Figure 3 Schematic diagram of data augmentation ((a) original image; (b) horizontal flip; (c) vertical flip; (d) rotated 30°; (e) darkened; (f) cropped).
[0062] Figure 4 Image grayscale processing ((a) original image; (b) grayscale image; (c) original image; (d) grayscale image; ).
[0063] Figure 5 It is the UPR_CNX semantic segmentation network architecture.
[0064] Figure 6 This is the overall architecture of Conv-T. The English explanation in the figure: Input: input; Output: output; Stem: trunk; Stage: step; Zero-Padding: zero padding; Avg-Pool: average pooling; Flattening: flattening; FC: Fully Connected Network (FC);
[0065] Figure 7 This is the Inverted Bottleneck structure diagram in ConvNeXt.
[0066] Figure 8 is the RELU function image.
[0067] Fig. 9 This is the Conv-T network structure diagram.
[0068] Fig.10 Records of the training and verification process of the UperNet_ResNet and UperNet_ConvNeXt network models (MIoU (part a in the figure) and Loss (part b in the figure)); English explanation in the figure: Iters: number of iterations.
[0069] Fig.11 This is a schematic diagram of the minimum enclosing rectangle.
[0070] Fig.12 Schematic diagram of connected domain partitioning.
[0071] Fig.13 The results of the working condition segmentation and quantization are shown in Figure 2. ((a) original image; (b) grayscale image; (c) segmentation image; (d) quantization image;)
[0072] Fig.14 This is the GUI interface diagram.
[0073] Fig.15 Schematic diagram of polygon fitting principle. DETAILED DESCRIPTION
[0074] The following description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
[0075] The following embodiments may be understood as individually expressing a part of a local structure or method of the present invention, or may be understood as a combination of the embodiments to explain the connotation of a larger structure or method of the present invention.
[0076] Example 1
[0077] A method for segmenting and quantifying damage of concrete structures after fire, comprising the following steps:
[0078] Step 1: Identify the types and characteristics of two types of damage, cracks and bursts on the surface of RC structural components after fire, and build corresponding data sets for network training and verification;
[0079] Step 2: Based on image segmentation technology, the post-fire composite beam damage segmentation network UperNet_ConvNeXt was constructed. The Deeplabv3+_ResNet50, Deeplabv3+_TransNeXt and UperNet_ResNet models were used to train and test the same data set to verify the network accuracy of UperNet_ConvNeXt. The results showed that the network accuracy of UperNet_ConvNeXt reached 0.85.
[0080] Step 3: In order to verify the generalization ability of the model, four public crack data sets were used to verify the trained UperNet_ConvNeXt model; the results showed that the segmentation accuracy of the UperNet_ConvNeXt network on the CFD data set was 0.65-0.7, and the segmentation performance on the other data sets was stable between 0.75 and 0.85, providing technical support for subsequent damage quantification;
[0081] Step 4: Use image segmentation technology to conduct in-depth quantitative analysis of damage based on the UperNet_ConvNeXt model. In order to solve the problem of cumbersome range calculation caused by image size and shooting distance, a 2cm×2cm×2cm three-dimensional cube is introduced as a reference to fix the range of each photo and eliminate the influence of external factors on the quantitative analysis of damage. The damage is divided into three types: linear cracks, mesh cracks and bursts, and detailed quantification is performed. The accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes.
[0082] Step 5: Design a GUI interface to realize the automatic segmentation and quantification of composite beam damage after fire, and propose a criterion for assessing composite beam damage after fire based on the quantification results.
[0083] Example 2
[0084] In step 1, the data set is obtained by field photography, and a total of 1010 pictures are collected, including 530 pictures of working condition 1 and 480 pictures of working condition 2 (working condition 1 is to know the width of the beam in the original image, and obtain the crack and burst size by calculating the range of the actual image and the processed image. Working condition 2 is to place a three-dimensional cube as a reference in each original image, and obtain the crack and burst size by calculating the pixel ratio of the actual cube and the cube in the network). All pictures are taken as squares. In order to avoid overfitting during model training, the data set is expanded using image augmentation technology. After expansion, the number of images is 6 times that of the original data set, and the training set and validation set are divided into a ratio of 8:2 to comprehensively evaluate the model performance. The cracks and bursts are annotated using Lableme software, such as Figure 1 As shown in Figure 2, the boundaries of the two types of damage are drawn with closed curves to generate mask files. The original image, the marked image, and the generated mask image are compared, as shown in Figure 2. Figure 2 During the training process, in order to enhance the diversity of data and improve the generalization ability of the model, the input image is resized to generate image samples with different aspect ratios, and the ratios are set to (0.5, 0.75, 1.0, 1.25, 1.5, and 1.75).
[0085] Data augmentation refers to the process of generating new training samples by making various changes and expansions to the original data to expand the data set, thereby increasing the number of training samples, which helps reduce the overfitting of the model and improve the generalization ability of the model. And by introducing various changes and disturbances, the model can be made more robust, so that it can better handle data changes and noise in various practical situations.
[0086] The commonly used data augmentation methods are as follows, and the transformation diagrams of each method are as follows Figure 2 , Figure 3 shown.
[0087] (1) Rotation: The image is transformed at random angles (30°, 150°, 270°) along the center point to obtain multi-angle sample images.
[0088] (2) Flip: Randomly flip the image horizontally or vertically to increase the diversity of the data.
[0089] (3) Color transformation: Generate images of different styles by adjusting the brightness, contrast, hue and saturation of the image.
[0090] (4) Random cropping: By cropping the image, objects of different sizes and positions are simulated to appear in the image.
[0091] Example 3
[0092] In the above step 1, since the original image taken by the smartphone usually has rich color and texture details, and damage features such as cracks and bursts are more obvious in the grayscale image, the image needs to be grayscaled. This processing can not only simplify the image information and make the damage features more prominent, but also reduce the data dimension and computational complexity. The image taken by the smartphone is composed of the pixel values of the three RGB channels, and the RGB value of each pixel is in the range of 0 to 255. In order to obtain a grayscale image, the RGB value of each pixel is weighted averaged, as shown in formula (2.1). In this way, the value of each pixel in the grayscale image reflects the comprehensive information of the RGB channels of the pixel at the corresponding position in the original image. The comparison before and after processing is as follows: Figure 4 shown.
[0093] Example 4
[0094] In the step 2, although the fully convolutional network (FCN) currently performs well in segmentation tasks, its segmentation accuracy and context understanding ability still need to be improved due to the limited amount of data. In order to overcome these challenges, the present invention proposes a new multi-task framework - UPerNet_ConvNeXt (UPR_CNX), which is designed to achieve high-resolution semantic segmentation; UPerNet_ConvNeXt is based on the Feature Pyramid Network (FPN) and integrates the Pyramid Pooling Module (PPM) in the Pyramid Scene Parsing Network (PSPNet). Figure 5 shown.
[0095] The processing flow of UPerNet_ConvNeXt starts with the input image. The image is first subjected to feature extraction through the ConvNeXt network to generate four feature maps of different sizes: C2, C3, C4, and C5. Next, the C5 feature map is fused with the global average pooling layer information of four different sizes through PPM to generate a new feature map P5. To improve the resolution and feature fusion, P5 is upsampled three times, and each time it is fused with the feature map of the corresponding size of the ConvNeXt network, finally obtaining P4, P3, and P2. After that, P4, P3, and P2 are enlarged to the original size through bilinear interpolation and fused. Finally, the fused features are mapped to pixel-level semantic label predictions through the semantic segmentation head composed of convolutional layers and upsampling operations, thereby generating a semantic segmentation prediction map with the same size as the input image. This process not only improves the segmentation accuracy, but also enhances the model's understanding and utilization of contextual information.
[0096] Example 5
[0097] Preferably, in step 2, the UPerNet_ConvNeXt backbone framework adopts ConvNeXt-Tiny (Conv-T), which is based on ResNet50 and is improved by imitating the structure of Swin Transformer. The overall architecture of Conv-T is as follows: Figure 6 As shown by Figure 6 It can be seen that ConvNeXt-Tiny consists of 4 basic stages, each of which is a convolution block (Conv Block) + a post-processing block (ID Block);
[0098] In order to improve the performance and stability of the model, improvement measures are taken as follows:
[0099] (1) Macro-structure adjustment: The number of stacking times in ResNet50 is optimized from (3, 4, 6, 3) to (3, 3, 9, 3). At the same time, a convolution layer with a kernel size of 4 × 4 and a stride of 4 is introduced as the stem, which is called Patchify convolution.
[0100] (2) Channel number optimization: In order to balance the amount of computation and accuracy, the initial number of channels was increased from 64 to 96, and a group convolution strategy was adopted;
[0101] (3) Inverted Bottleneck: Inverted Bottleneck is introduced to enhance feature extraction capability and avoid information loss, so that the block can adapt to larger convolution kernels, such as Figure 7 shown.
[0102] (4) Larger convolution kernel: Replace the 3×3 convolution kernel in the Inverted Bottleneck structure with a 7×7 convolution kernel;
[0103] (5) Activation function upgrade: In order to overcome the gradient vanishing problem that may be caused by the ReLU activation function, the activation function is changed from ReLU to GELU; the definition of the RELU function is shown in formula (5), and the function graph is shown in Figure 8 As shown in the figure, the ReLU function is linear when the input is positive, and the output is zero when the input is negative. Therefore, it is not differentiable everywhere, and there are regions where the derivative is zero, which may lead to the gradient vanishing problem. The GELU activation function is a nonlinear activation function based on the concept of Gaussian error linear unit. Its definition is shown in formula (6). From formula (6), it can be seen that GELU is a continuously differentiable function and is non-zero in the entire real number range. Therefore, the gradient vanishing problem in the ReLU function can be avoided, which helps to improve the training stability of the model.
[0104]
[0105]
[0106] (6) Normalization layer adjustment: The GELU activation function is used only after the first fully connected layer, and the remaining layers still use ReLU, and the normalization layer is applied after the first 7×7 convolution layer, as shown in Figure 6 In addition, batch normalization (BN) is replaced by layer normalization (LN) to adapt to small batch or single sample training scenarios and reduce memory consumption;
[0107] (7) Downsampling layer design: An independent downsampling layer is introduced, which consists of an LN and a 2×2 convolutional layer with a stride of 2 to reduce the spatial dimension of the feature map.
[0108] Example 6
[0109] The detailed architecture of ConvNeXt-Tiny is as follows Fig. 9 As shown. First, ConvNeXt-Tiny implements downsampling by performing a 4×4 convolution operation with a stride of 4, and then uses LN (layer normalization) technology to normalize the data; on this basis, ConvNeXt-Tiny constructs four Conv Blocks, and their stacking ratio is set to 1:1:3:1; it is worth noting that, except for the first Conv Block, the Downsample layer is cleverly integrated into each of the remaining Conv Blocks to further enhance the feature extraction capability of the network; the internal structure of the Conv Block combines the Inverted Bottleneck and residual design; in the Inverted Bottleneck structure, a 7×7 depth-separable convolution with a stride of 1 is first used, and then the data is normalized through the LN layer; then, a 1×1 convolution kernel with a stride of 1 is applied, and the number of channels is expanded by 4 times with the GELU activation function; then, a 1×1 convolution operation with a stride of 1 is used to restore the dimension to the initial number of channels of the Conv Block; finally, the Layer The Scale layer is used to scale the data of each channel and regularize it through the Drop Path mechanism to ensure the stability and generalization ability of the network.
[0110] Example 7
[0111] In step 2, the backbone network layer parameters of UPerNet_ConvNeXt are initialized using weights pre-trained on the ImageNet dataset, which is crucial for improving model performance and accelerating convergence. A checkpoint is set to be saved every 5000 iterations to save the weights of UPerNet_ConvNeXt, and log information is recorded and output every 50 iterations to track the training status of UPerNet_ConvNeXt in real time. In terms of optimization, the Adam optimizer is selected to adjust the model parameters to minimize the loss function, and the gradient overflow problem is handled by the dynamic loss scaling technique. The momentum parameter of the Adam optimizer is set to (0.9, 0.999), and the learning rate is initialized to 0.001. In order to prevent the model from overfitting and reduce its complexity, a weight decay strategy is adopted, and the decay coefficient is set to 0.05. The adjustment of the learning rate starts from the beginning of training and is dynamically adjusted according to the number of iterations, and stops after reaching 160,000 iterations. The initial learning rate is set to 10-6, and only the weight decay is performed on the first 6 layers of the model. A total of 160,000 iterations are performed during the entire training process, and verification is performed every 2,000 iterations.
[0112] The model training and verification process records MIoU and Loss as follows Fig.10 As shown, after analysis, we can get:
[0113] (1) Fig.10 (a) shows that the MIoU performance of the UPR_R (UperNet_ResNet) network is poor, reaching only 0.62 at most, and there is a significant fluctuation at about 50,000 iterations, which reflects the instability in the training process. In contrast, the MIoU value of the UPR_CNX network has significantly improved to 0.85, an increase of 37.1% over the former. The network quickly improves its performance in the first 40,000 iterations and stabilizes after 80,000 iterations. Throughout the training process, the UPR_CNX network shows a more stable numerical performance.
[0114] (2) Fig.10 (b) shows that the convergence speed of the UPR_R network is slow, and the curve begins to gradually converge after 120,000 iterations, and the Loss curve of the network shows a large fluctuation, which further confirms the instability of model training. The UPR_CNX network shows a gradually decreasing loss trend, which shows that the model can learn effectively and continuously optimize during the training process. When the number of iterations reaches 60,000, the Loss curve of the network has converged to around 0.05, and the curve remains smooth without obvious fluctuations during the entire training process, reflecting the stability and effectiveness of UPerNet_ConvNeXt training.
[0115] Example 8
[0116] In step 4, the quantification method includes:
[0117] (1) Crack type identification
[0118] When the number of connected domains in the crack image is less than 3, it is judged as a linear crack; when the number of connected domains exceeds 3, it is classified as a network crack;
[0119] (2) Calculation of linear crack parameters
[0120] The crack area is the number of all pixel points inside the contour. The present invention uses the OpenCV
[32] function to calculate the contour area, which calculates the contour area by processing the vertex coordinates of the contour, as shown in formula (2).
[0121]
[0122] Where N represents the number of vertices of the polygon, (x i ,y i ) represents the coordinates of the i-th vertex of the polygon.
[0123] The crack width is calculated using the minimum circumscribed rotated rectangle. First, the crack contour is fitted into a minimum area rectangle, and then the center point coordinates, width, height and rotation angle of the rectangle are calculated. The crack width is the width of the minimum circumscribed rectangle. The width of the circumscribed rectangle is determined by comparing its width and height. If the width is greater than or equal to the height, the width of the outer rectangle is the width. If the width is less than the height, the width of the circumscribed rectangle is the height. OpenCV is used to draw the minimum circumscribed rectangle [33–35].
[0124] (3) Calculation of network crack parameters
[0125] In order to calculate the area of reticular cracks more accurately, the polygon fitting method is introduced. Polygon fitting is a technique commonly used to solve the area of irregular images, especially suitable for calculating the area of complex shapes such as reticular cracks. Fig.15 As shown. Through polygon fitting, we can more accurately depict the outline of the crack and calculate the actual area of the crack. The steps of polygon fitting usually include the following steps:
[0126] 1) Set the fitting step threshold T as the benchmark for subsequent operations;
[0127] 2) Randomly select a starting point A in the target image and start the fitting process from this point;
[0128] 3) Starting from point A, move along the edge of the image with a fixed step length of 4T and record this new point B;
[0129] 4) Find the pixel point C with the largest distance from the line A within the threshold range of T from point A, and find another pixel point D with the largest distance from the line AB within the range of 3T to 4T from point A. Since both points C and D meet the condition of threshold T, it can be determined that the remaining search range is limited to the pixel points between T and 3T from point A;
[0130] 5) Find the point E with the largest distance from the line AB in the range of T to 3T from point A, and record the distance as H. If H is greater than T, find the point with the largest distance from the line AB between CE and ED again, and increase the number of polygon vertices accordingly;
[0131] 6) If H is less than T, take B as the new starting point and repeat the above steps until the entire target image is traversed.
[0132] (4) Calculation of burst area
[0133] In burst image analysis, we first need to draw its outer contour to accurately capture the shape; then, we use OpenCV functions to calculate the contour area based on the vertex coordinates (extracted from the original image through edge detection or threshold segmentation); this calculation usually uses the polygon area formula (such as formula (2)), considering all vertex positions, to obtain the area of the area enclosed by the contour;
[0134] When assessing the damage of mesh cracks, it is not accurate to rely solely on the length and width. In order to measure the damage more accurately, the area surrounded by mesh cracks is used as an assessment indicator. Currently, there are two main methods for calculating this area: the expansion method and the rectangular enclosing method. Both methods calculate the area by converting mesh cracks into pits. However, this method often leads to an overestimation because the calculated area may include the non-damaged area around the cracks.
[0135] Example 9
[0136] In step 4, the accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes, including:
[0137] A. Quantitative analysis of working condition 1:
[0138] Since the algorithm calculates the area and width on the Pycharm image, in order to compare with the actual measurement results, the actual distance represented by the unit pixel, that is, the range R, is first obtained. Before calculating the damage area and width, the image is calibrated first. Two calibration points A and B are selected in the shooting area. It is known that the actual distance between the two points is 300 mm, the width of the composite beam. By calculating the pixel values of points A and B, A(x0, x1) and B(x0, x2), the range R can be obtained. The R value calculation is shown in formula (3).
[0139]
[0140] Then, the contour corresponding to the pixel value set in the segmentation mask is drawn on the given image. The present invention sets the crack pixel value to 38 and the burst pixel value to 75. The two types of damage are drawn separately, and the contour area and the minimum circumscribed rectangle width are calculated for each contour, and the relevant information is marked on the contour. Then, the calculation result is converted to mm, and the conversion formula is shown in formula (4); after conversion, the actual damage is compared with the calculation result and listed in Table 1.
[0141]
[0142] Table 1 Comparison between actual and calculated results
[0143]
[0144] From Table 4.1, we can see that:
[0145] (1) After evaluation, the calculation errors of all damages are less than 20%. After considering the errors that may occur in the actual measurement and calibration process, it can be considered that the damage quantification method proposed in the present invention has high reliability.
[0146] (2) In the quantitative analysis of cracks, it was found that the errors of cracks other than cracks 16 and 20 were all within 10%. Specifically, the maximum error of the crack area was 7.28%, and the maximum error of the crack width was 9.80%. However, for cracks 16 and 20, the calculation errors generally exceeded 15%, showing a large volatility. This may be because: the characteristics of cracks 16 and 20 are more complex than those of the other cracks, and multiple cracks are intertwined, so the above calculation method has a large error. Therefore, further in-depth research is needed to quantify more complex cracks.
[0147] (3) In the quantification of the burst area, it was observed that the calculation error was small and controlled within 5%. This may be related to the obviousness of the burst damage contour, which makes the contour identification and segmentation process more accurate, thereby reducing the quantification error.
[0148] (4) By performing quantitative analysis on all images in the data set, the results show that the calculation errors of all damages are less than 20%. Taking into account the errors in the actual measurement and calibration process, it can be considered that the damage quantification method proposed in the present invention has high accuracy and reliability.
[0149] However, the method of working condition 1 requires analyzing each photo one by one, because the range of each photo is different. The present invention uses the width of the composite beam as the quantitative basis, but this method has limitations in the general applicability of damage quantification. When the cracks and bursts in the photographs are dense, resulting in the beam width cannot be fully captured, the range is difficult to determine. In addition, if this method is applied to complex environments such as fires, the cluttered background and uncertain size and angle will increase the difficulty of quantitative analysis.
[0150] To overcome these challenges, a 3D cube with a size of 2cm×2cm×2cm was introduced as a reference during the shooting. This method ensures that the range in each photo is fixed, so that multiple photos can be processed in batches, greatly improving the processing efficiency. This method does not require a fixed shooting angle and distance, further enhancing the accuracy and flexibility of quantitative analysis, making it more suitable for various practical scenarios.
[0151] B. Quantitative analysis of working condition 2
[0152] First, we collected damaged images of composite beams after the fire, and accurately labeled the cracks, cracks, and reference objects in each image in Labelme to ensure the accuracy and consistency of the data. Then, we segmented these images using the fully trained UperNet_ConvNeXt network model in step 2 to obtain clear segmented images of cracks and cracks. Finally, we performed quantitative analysis based on the segmented images. Fig.13 As shown, in order to more intuitively compare the crack quantification situation, the present invention lists the test values and predicted values of the cracks in the figure in Table 2.
[0153] according to Fig.13 As shown in the data in Table 2, it can be seen that the reference object and the cracks are effectively segmented, and the segmentation results are well consistent with the actual situation. As can be seen from Table 2, the maximum error of crack quantization is 9.57%, and for the more complex cracks 3, 13, and 14, the error is much smaller than 20% in working condition 1. In summary, the quantization algorithm proposed in the present invention shows high reliability in the quantization of complex cracks.
[0154] Table 2 Comparison of actual and calculated results
[0155]
[0156]
[0157] Example 10
[0158] In order to simplify the operation process of damage segmentation and quantification, the present invention designs a graphical user interface (GUI), such as Fig.14 As shown. This interface makes full use of the performance of PC devices, allowing users to start and run program codes and easily implement various functions through simple mouse operations. This design not only simplifies the calling and implementation process of the program, but also significantly improves the convenience and fluency of human-computer interaction. The GUI interface chooses PyQt to build the GUI interface. It inherits many advantages of QT and Python languages, has a huge class and function library, and can be easily used across platforms. In the development process, first use QT Designer to design the interface to ensure that the interface is intuitive and easy to use. Then convert the designed ui file into a py file to facilitate calling and reading in the subsequent programming process. Next, write the logic file to ensure that the entire program logic is rigorous and accurate. Finally, use the pyinstaller library to package the py file into an exe file to ensure that users can seamlessly install and run this GUI interface on the windows system.
Claims
1. A method for segmenting and quantifying damage of concrete structures after fire, characterized by: The steps include: Step 1: Identify the types and characteristics of two types of damage, cracks and bursts on the surface of RC structural components after fire, and build corresponding data sets for network training and verification; Step 2: Based on image segmentation technology, the post-fire composite beam damage segmentation network UperNet_ConvNeXt was constructed. The Deeplabv3+_ResNet50, Deeplabv3+_TransNeXt and UperNet_ResNet models were used to train and test the same data set to verify the network accuracy of UperNet_ConvNeXt. Step 3: In order to verify the generalization ability of the model, four public crack datasets are used to verify the trained UperNet_ConvNeXt model; Step 4: Use image segmentation technology to perform quantitative analysis of damage based on the UperNet_ConvNeXt model. In order to solve the problem of cumbersome range calculation caused by image size and shooting distance, a 2cm×2cm×2cm three-dimensional cube is introduced as a reference object to fix the range of each photo and eliminate the influence of external factors on the quantitative analysis of damage. The damage is divided into three types: linear cracks, mesh cracks, and bursts, and detailed quantification is performed; the accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes; Step 5: Design a GUI interface to realize the automatic segmentation and quantification of composite beam damage after fire, and propose a criterion for assessing composite beam damage after fire based on the quantification results.
2. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 1, characterized in that: In step 1, the data set is composed of several pictures taken on site, and the pictures are composed of several pictures of working condition 1 and several pictures of working condition 2. Working condition 1 is to know the width of the beam in the original image, and obtain the crack and burst size by calculating the range of the actual image and the processed image; working condition 2 is to place a three-dimensional cube as a reference in each original image, and obtain the crack and burst size by calculating the pixel ratio of the actual cube and the cube in the network; all pictures are taken in square shape, and the data set is augmented using image augmentation technology to avoid overfitting during model training. The data set was expanded; after expansion, the number of images was 6 times that of the original data set, and the training set and the validation set were divided into a ratio of 8:2 to comprehensively evaluate the model performance; the cracks and bursts were annotated using the Labelme software, and the boundaries of the two types of damage were drawn with closed curves to generate a mask file. The original image, the labeled image, and the generated mask image were compared. During the training process, in order to enhance the diversity of the data and improve the generalization ability of the model, the input image was resized to generate image samples with different aspect ratios, and the ratios were set to 0.5, 0.75, 1.0, 1.25, 1.5, and 1.
75.
3. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 2, characterized in that: The step 1 also includes the step of graying the image. The image captured by the smartphone is composed of the pixel values of the three RGB channels. The RGB value of each pixel is in the range of 0 to 255. In order to obtain a grayscale image, the RGB value of each pixel is weighted averaged, as shown in formula (2.1): F(x,y)=0.3R(x,y)+0.59G(x,y)+0.114B(x,y) (1) In formula (1), F is the value of each pixel in the grayscale image; R: red, G: green, B: blue.
4. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 3, characterized in that: In the step 2, UPerNet_ConvNeXt is based on a feature pyramid network and integrates the pyramid pooling module in the Pyramid Scene Parsing Network; the processing flow of UPerNet_ConvNeXt starts with an input image, and the image is first feature extracted through a ConvNeXt network to generate four feature maps of different sizes: C2, C3, C4, and C5; next, the C5 feature map is fused with four different sizes of global average pooling layer information through PPM to generate a new feature map P5; to improve resolution and feature fusion, P5 is upsampled three times, and each time after sampling, it is fused with the feature map of the corresponding size of the ConvNeXt network to finally obtain P4, P3, and P2; thereafter, P4, P3, and P2 are enlarged to the original size through bilinear interpolation and fused; finally, through a semantic segmentation head composed of a convolutional layer and an upsampling operation, the fused features are mapped to pixel-level semantic label predictions, thereby generating a semantic segmentation prediction map that is completely consistent with the input image size.
5. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 4, characterized in that: In step 2, the UPerNet_ConvNeXt backbone framework uses ConvNeXt-Tiny. ConvNeXt-Tiny is based on ResNet50 and is improved by imitating the structure of Swin Transformer. ConvNeXt-Tiny consists of 4 basic stages, each of which is a convolution block + post-processing block. In order to improve the performance and stability of the model, improvement measures are taken as follows: (1) Macro-structure adjustment: The number of stacking times in ResNet50 is optimized from (3, 4, 6, 3) to (3, 3, 9, 3). At the same time, a convolutional layer with a kernel size of 4 × 4 and a stride of 4 is introduced as the stem, which is called Patchify convolution. (2) Channel number optimization: In order to balance the amount of computation and accuracy, the initial number of channels was increased from 64 to 96, and a group convolution strategy was adopted; (3) Inverted bottleneck structure: Introducing an inverted bottleneck structure to enhance feature extraction capabilities and avoid information loss, allowing the block to adapt to larger convolution kernels; (4) Larger convolution kernel: Replace the 3×3 convolution kernel in the Inverted Bottleneck structure with a 7×7 convolution kernel; (5) Activation function upgrade: To overcome the gradient vanishing problem that may be caused by the ReLU activation function, the activation function is changed from ReLU to GELU; (6) Normalization layer adjustment: The GELU activation function is used only after the first fully connected layer, and the remaining layers still use ReLU. The normalization layer is applied after the first 7×7 convolution layer. In addition, batch normalization is replaced by layer normalization to adapt to small batch or single sample training scenarios and reduce memory consumption; (7) Downsampling layer design: An independent downsampling layer is introduced, which consists of an LN and a 2×2 convolutional layer with a stride of 2 to reduce the spatial dimension of the feature map.
6. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 5, characterized in that: In the step 2, the specific operation of ConvNeXt-Tiny is as follows: first, ConvNeXt-Tiny implements downsampling by performing a 4×4 convolution operation with a stride of 4, and then uses LN to normalize the data; on this basis, ConvNeXt-Tiny constructs 4 Conv Blocks, and their stacking ratio is set to 1:1:3:1; except for the first Conv Block, the Downsample layer is integrated into each Conv Block to further improve the feature extraction ability of the network; the internal structure of Conv Block combines Inverted Bottleneck and residual design; in the InvertedBottleneck structure, a 7×7 depth-separable convolution with a stride of 1 is first used, and then the data is standardized through the LN layer; then, a 1×1 convolution kernel with a stride of 1 is applied, and the number of channels is expanded by 4 times with the GELU activation function; then, a 1×1 convolution operation with a stride of 1 is performed to restore the dimension to the initial number of channels of the Conv Block; finally, Layer The Scale layer is used to scale the data of each channel and regularize it through the Drop Path mechanism to ensure the stability and generalization ability of the network.
7. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 6, characterized in that: In the step 2, the backbone network layer parameters of UPerNet_ConvNeXt are initialized with weights pre-trained on the ImageNet dataset, and a checkpoint is saved every 5000 iterations to save the UPerNet_ConvNeXt weights, and log information is recorded and output every 50 iterations to track the training status of UPerNet_ConvNeXt in real time; In terms of optimization, the Adam optimizer was selected to adjust the model parameters to minimize the loss function, and the gradient overflow problem was handled by the dynamic loss scaling technique. The momentum parameter of the Adam optimizer was set to (0.9, 0.999), and the learning rate was initialized to 0.
001. In order to prevent the model from overfitting and reduce its complexity, a weight decay strategy was adopted, and the decay coefficient was set to 0.
05. The learning rate was adjusted from the beginning of training, dynamically adjusted according to the number of iterations, and stopped after reaching 160,000 iterations. The initial learning rate was set to 10-6, and only the first 6 layers of the model were weighted attenuated. A total of 160,000 iterations were performed during the entire training process, and verification was performed every 2,000 iterations.
8. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 7, characterized in that: In step 4, the quantification method includes: (1) Crack type identification When the number of connected domains in the crack image is less than 3, it is judged as a linear crack; when the number of connected domains exceeds 3, it is classified as a network crack; (2) Calculation of linear crack parameters The crack area is the number of all pixels inside the contour. The contour area is calculated using the OpenCV[32] function by processing the vertex coordinates of the contour, as shown in formula (2). Where N represents the number of vertices of the polygon, (x i ,y i ) represents the coordinates of the i-th vertex of the polygon; The crack width is calculated using the minimum circumscribed rotated rectangle. First, the crack contour is fitted into a minimum area rectangle, and then the center point coordinates, width, height and rotation angle of the rectangle are calculated. The crack width is the width of the minimum circumscribed rectangle. The width of the circumscribed rectangle is determined by comparing its width and height. If the width is greater than or equal to the height, the width of the outer rectangle is the width. If the width is less than the height, the width of the circumscribed rectangle is the height. OpenCV is used to draw the minimum circumscribed rectangle [33–35]. (3) Calculation of network crack parameters The polygon fitting method is introduced to calculate the area of network cracks; (4) Calculation of burst area First, the outer contour of the burst image is drawn. Then, the vertex coordinates are extracted from the original image by edge detection or threshold segmentation using the OpenCV function, and the contour area is calculated based on the vertex coordinates. When calculating, the polygon area formula (2) is used to consider all vertex positions and obtain the area of the area enclosed by the contour. In order to measure the damage more accurately, the area enclosed by the mesh cracks is used as the evaluation indicator.
9. A method for segmenting and quantifying damage of concrete structures after fire as claimed in claim 8, characterized in that: In step 4, the accuracy of the UperNet_ConvNeXt network is verified by comparing with the actual crack and burst sizes, including: A. Quantitative analysis of working condition 1: Since the algorithm calculates the area and width on the Pycharm image, in order to compare with the actual measurement results, the actual distance represented by the unit pixel, that is, the range R, is first obtained. Before calculating the damage area and width, the image is calibrated first. Two calibration points A and B are selected in the shooting area. It is known that the actual distance between the two points is 300 mm, the width of the composite beam. By calculating the pixel values of points A and B, A(x0, x1) and B(x0, x2), the range R is obtained. The R value calculation is shown in formula (3). Then, the contour corresponding to the set pixel value in the segmentation mask is drawn on the given image. The crack pixel value is set to 38 and the burst pixel value is set to 75. The two types of damage are drawn separately. The contour area and the minimum circumscribed rectangle width are calculated for each contour, and the relevant information is marked on the contour. Then, the calculation result is converted to mm. The conversion formula is shown in formula (4); Crack area = Area × R 2 Crack width = Width × R (4) Explosion area = Area × R 2 B. Quantitative analysis of working condition 2 First, damage pictures of composite beams after fire were collected, and the cracks, bursts, and reference objects in each picture were accurately labeled in Labelme to ensure the accuracy and consistency of the data. Then, the fully trained UperNet_ConvNeXt network model in step 2 was used to segment these pictures to obtain clear segmented images of cracks and bursts. Finally, quantitative analysis was performed based on the segmented images.
Citation Information
Cited By
Geological disaster monitoring and early warning system and method
CN119580473A
Rapid lossless prediction method for maximum overfire temperature of cable based on deep learning
CN121010870A
