Multiphase material image segmentation method and system

Through improved deep learning methods based on semantic segmentation, bilateral filtering, and morphological technologies, combined with the region growing method, the problem of large amount of deep learning training and blurred edge information in image segmentation of poured asphalt concrete multi-phase materials has been solved, achieving efficient, Accurate image segmentation for practical engineering applications of multiphase materials.

CN118735951AInactive Publication Date: 2024-10-01WUHAN INST OF TECH +1

Patent Information

Application Number
CN202410837827.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has problems in the image segmentation of poured asphalt concrete multi-phase materials, such as the large amount of deep learning training, inaccurate segmentation of material information by traditional methods, and blurred edge information of semantic segmentation methods, making it difficult to promote on a large scale in actual engineering.

Method used

An improved deep learning method based on semantic segmentation is used, combined with bilateral filtering, morphology and region growing technology, to establish a prediction model, enhance material feature extraction through the global information embedding network, and use closed area pixel information as a mask to guide the prediction model for image processing segmentation.

Benefits of technology

It improves the accuracy and performance of image segmentation, reduces the amount of deep learning training, avoids false detections, and achieves efficient multi-phase material image segmentation, with high universality and economic and environmental benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735951A_ABST
    Figure CN118735951A_ABST
Patent Text Reader

Abstract

The invention relates to a multiphase material image segmentation method and system. The method comprises the following steps: establishing a prediction model by using an improved deep learning method based on semantic segmentation; carrying out convolution filtering on the multiphase material original image by adopting a bilateral filtering method to obtain a filtered image; performing corrosion and expansion operation on the filtered image by using a morphological method to obtain an edge information image; performing closed region pixel information search on the edge information image by using an improved region growing method to obtain a closed region pixel information image; and taking the closed region pixel information image as a mask to guide the prediction model to predict the original image of the multiphase material to obtain an image segmentation result. According to the method, the problem of large training amount of existing deep learning can be effectively solved, and the problems of inaccurate material information segmentation by a traditional image segmentation method and fuzzy edge information in a semantic segmentation deep learning method when facing a multiphase material original image with complex section features are effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing, and in particular to a method and system for multi-phase material image segmentation. Background Art

[0002] At present, the multiphase materials of poured asphalt concrete are under continuous research and development, and the analysis between their material composition and the strength of their microstructure is imperative. Image segmentation of poured asphalt concrete multiphase materials is a difficult point, which is of great significance for further research. The traditional binary image segmentation method is only applicable to digital images with fewer phases and large differences in material color features. When facing digital images of poured asphalt concrete multiphase materials with complex texture features and multiple complex components, it is necessary to manually select a suitable threshold to segment the image. Dividing the image into black and white will cause the loss of grayscale information in the original digital image, making it difficult to achieve good results. The deep learning method based on semantic segmentation has good performance in identifying multiphase materials, but the training of deep learning models requires the use of a large number of data sets and high-performance computers for a large number of iterative calculations, which requires high manpower and material costs. In addition, it is difficult to achieve good results when extracting edge information in digital images of poured asphalt concrete multiphase materials with small color differences and weak gradient changes, and often misdetection occurs. The above methods are not conducive to large-scale promotion and use in engineering practice. Summary of the invention

[0003] The present invention provides a method and system for multiphase material image segmentation, which can effectively solve the problem of large amount of existing deep learning training, as well as effectively solve the problem of inaccurate material information segmentation of traditional image segmentation methods and blurred edge information in deep learning methods of semantic segmentation when facing original images of multiphase materials with complex cross-sectional features.

[0004] The technical solution of the present invention to solve the above technical problem is as follows: a multi-phase material image segmentation method, comprising the following steps:

[0005] S1, using an improved semantic segmentation-based deep learning method to build a prediction model;

[0006] S2, obtaining an original image of the multiphase material to be segmented, and performing convolution filtering on the original image of the multiphase material using a bilateral filtering method to obtain a filtered image;

[0007] S3, using a morphological method to perform corrosion and expansion operations on the filtered image to obtain an edge information image;

[0008] S4, searching the edge information image for closed area pixel information using an improved region growing method to obtain a closed area pixel information image;

[0009] S5, inputting the original image of the multi-phase material and the closed area pixel information image into the prediction model, and using the closed area pixel information image as a mask to guide the prediction model to predict the original image of the multi-phase material to obtain an image segmentation result.

[0010] Based on the above technical solution, the present invention can also be improved as follows.

[0011] Further, the S1 is specifically:

[0012] S11, acquiring a plurality of original images of multi-phase material samples and making them into a data set, and dividing the data set into a training set and a test set according to a preset ratio;

[0013] S12, using a deep learning neural network based on semantic segmentation to extract underlying features from the labeled segmented images in the training set to obtain an underlying feature map;

[0014] S13, using a global information embedding network to capture the global information of the underlying feature map from multiple levels and scales; at each level and scale, dynamically adjust the weight of each channel according to the global information, calculate the feature information of each channel according to the weight of each channel, and splice the feature information of all channels to obtain a global information splicing map; splice the global information splicing maps at all levels and scales to obtain a splicing feature map;

[0015] S14, using a decoding network to restore the resolution of the spliced ​​feature map, and fusing the spliced ​​feature map with the restored resolution with the underlying feature map to obtain an initial prediction model;

[0016] S15, using the test set to evaluate the performance of the initial prediction model to optimize the model parameters and hyperparameters of the initial prediction model to obtain the prediction model.

[0017] Furthermore, in S11, the multiple original images of multi-phase material samples are made into a data set specifically as follows:

[0018] By manually marking corresponding material labels on each pixel of each original image of the multi-phase material sample, each original image of the multi-phase material sample is segmented into multiple regions composed of different materials, thereby obtaining an annotated segmented image corresponding to each original image of the multi-phase material sample; all the annotated segmented images constitute the data set.

[0019] Further, in S13, the global information embedding network includes:

[0020] The first convolutional layer has an input end connected to the output end of the deep learning neural network;

[0021] A second convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0022] A third convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0023] A fourth convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0024] An average pooling layer, the input end of which is connected to the output end of the deep learning neural network;

[0025] A first global information embedding layer, an input end of which is connected to an output end of the first convolutional layer;

[0026] A second global information embedding layer, an input end of which is connected to an output end of the second convolutional layer;

[0027] A third global information embedding layer, an input end of which is connected to an output end of the third convolutional layer;

[0028] a fourth global information embedding layer, whose input end is connected to the output end of the fourth convolutional layer;

[0029] a fifth global information embedding layer, an input end of which is connected to the output end of the average pooling layer;

[0030] A first splicing layer, whose input end is respectively connected to the output ends of the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer;

[0031] The fifth convolutional layer has an input end connected to the output end of the first concatenated layer.

[0032] Furthermore, the first convolution layer and the fifth convolution layer are both specifically 1×1 convolution layers, the second convolution layer is specifically a 3×3 convolution layer with a dilation factor of 6, the third convolution layer is specifically a 3×3 convolution layer with a dilation factor of 12, and the fourth convolution layer is specifically a 3×3 convolution layer with a dilation factor of 18.

[0033] Further, the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer have the same structure and all include:

[0034] A global average pooling layer, which is used to compress the global information of the underlying feature map to obtain a global information compression map;

[0035] A first fully connected layer, connected to the global average pooling layer, is used to compress all channels in the global information compression map to obtain a channel compression map;

[0036] A nonlinear activation layer connected to the first fully connected layer, used to dynamically adjust the importance of each channel by learning the relationship between channels, so as to characterize the weight of each channel in the channel compression map; and multiply the weight of each channel in the channel compression map by the channel compression map to obtain the feature information of each channel in the channel compression map; and splice the feature information of all channels in the channel compression map to obtain a channel compression global information splicing map;

[0037] The second fully connected layer is connected to the nonlinear activation layer and is used to restore the number of channels of the channel-compressed global information splicing map to obtain the global information splicing map.

[0038] Further, in S14, the decoding network includes:

[0039] A first downsampling layer, an input end of which is connected to an output end of the fifth convolutional layer;

[0040] A sixth convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0041] A second concatenation layer, whose input ends are respectively connected to the output ends of the first downsampling layer and the sixth convolutional layer;

[0042] A seventh convolutional layer, whose input end is connected to the output end of the second concatenated layer;

[0043] A second downsampling layer, an input end of which is connected to the seventh convolutional layer;

[0044] Among them, the sixth convolution layer is specifically a 1×1 convolution layer, the seventh convolution layer is specifically a 3×3 convolution layer, and the first downsampling layer and the second downsampling layer are specifically 4-fold downsampling layers.

[0045] Further, the S3 is specifically:

[0046] S31, using a morphological method to perform corrosion processing on the filtered image to obtain a corrosion image;

[0047] S32, using a morphological method to dilate the filtered image to obtain a dilated image;

[0048] S33, performing difference set processing on the eroded image and the dilated image to obtain the edge information image.

[0049] Further, the S4 is specifically:

[0050] S41, randomly placing a seed pixel in a non-edge and unmarked area in the edge information image;

[0051] S42, starting from the placed seed pixel, searching for non-edge pixels adjacent to it, and taking the non-edge pixels adjacent to it as new seed pixels to continue growing in all directions until it stops growing after encountering edge pixels, forming a closed area and marking it;

[0052] S43, looping through S41 and S42 until all closed areas in the edge information image are marked, and then terminating the loop to obtain the closed area pixel information image.

[0053] Based on the above-mentioned multi-phase material image segmentation method, the present invention also provides a multi-phase material image segmentation system.

[0054] A multi-phase material image segmentation system, applied to the multi-phase material image segmentation method as described above, comprising an image processing device and a prediction model installed in the image processing device; the prediction model is built by an improved deep learning method based on semantic segmentation;

[0055] The image processing device is used to perform convolution filtering on the acquired original image of the multi-phase material to be segmented by using a bilateral filtering method to obtain a filtered image; and to perform corrosion and expansion operations on the filtered image by using a morphological method to obtain an edge information image; and to perform closed area pixel information search on the edge information image by using an improved region growing method to obtain a closed area pixel information image;

[0056] The prediction model is used to predict the original image of the multi-phase material under the guidance of the closed area pixel information image as a mask to obtain an image segmentation result.

[0057] The beneficial effects of the present invention are as follows: a multiphase material image segmentation method and system of the present invention uses an improved deep learning method based on semantic segmentation to build a prediction model. The improved deep learning method based on semantic segmentation introduces a global information embedding network into a deep learning neural network based on semantic segmentation, enhances the algorithm's attention to material feature information, thereby improving the accuracy and performance of the semantic segmentation task, and can achieve a higher accuracy rate using a data set with a smaller sample size, thereby reducing the amount of deep learning training; at the same time, the present invention uses an improved region growing method to search for pixel information in a closed region, and can efficiently and accurately segment a closed region composed of different edges in an image; in addition, the present invention divides the closed region into The pixel information image is used as a mask to guide the prediction model to predict the original image of the multi-phase material. The prediction model can use this information to better understand the semantic content of each closed area in the original image of the multi-phase material, focus on each closed area, and mark the pixels in the same closed area as the same material type to obtain accurate image segmentation results. In summary, the present invention not only reduces the amount of training based on semantic segmentation deep learning, but also avoids erroneous information caused by false detection, further improves the accuracy of image segmentation, has high universality, and provides reliable data support for further establishing a microscopic model of the real aggregate shape and studying the properties of multi-phase materials, and has significant economic and environmental benefits. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A flow chart of a multiphase material image segmentation method of the present invention;

[0059] Figure 2 A schematic diagram of a multi-phase material image segmentation method of the present invention;

[0060] Figure 3 Architecture diagram for utilizing improved deep learning based semantic segmentation approach;

[0061] Figure 4 is a curve diagram showing the relationship between the average intersection-to-union ratio and the number of iterations in this embodiment;

[0062] Figure 5 is a curve diagram showing the relationship between the loss function and the number of iterations in this embodiment;

[0063] Figure 6 Flowchart for performing erosion and dilation operations on a filtered image;

[0064] Figure 7 A flowchart for searching pixel information in closed areas of edge information images using an improved region growing method. DETAILED DESCRIPTION

[0065] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0066] like Figure 1 and Figure 2 As shown, a multi-phase material image segmentation method comprises the following steps:

[0067] S1, using an improved semantic segmentation-based deep learning method to build a prediction model;

[0068] S2, obtaining an original image of the multiphase material to be segmented, and performing convolution filtering on the original image of the multiphase material using a bilateral filtering method to obtain a filtered image;

[0069] S3, using a morphological method to perform corrosion and expansion operations on the filtered image to obtain an edge information image;

[0070] S4, searching the edge information image for closed area pixel information using an improved region growing method to obtain a closed area pixel information image;

[0071] S5, inputting the original image of the multi-phase material and the closed area pixel information image into the prediction model, and using the closed area pixel information image as a mask to guide the prediction model to predict the original image of the multi-phase material to obtain an image segmentation result.

[0072] This embodiment uses cast-in-place asphalt concrete as the multi-phase material to specifically illustrate each step.

[0073] The S1 specifically includes the following S11 to S15:

[0074] S11, acquiring a plurality of original images of multi-phase material samples and making them into a data set, and dividing the data set into a training set and a test set according to a preset ratio;

[0075] Specifically, the corresponding material labels are manually marked on each pixel of each original image of the multi-phase material sample to segment each original image of the multi-phase material sample into multiple regions composed of different materials, thereby obtaining annotated segmented images corresponding to each original image of the multi-phase material sample; all the annotated segmented images constitute the data set.

[0076] For example, a batch of representative poured asphalt concrete multiphase material samples are prepared in the laboratory. After the samples are cut, they are placed under a stable light source with D65 illumination at a color temperature of about 6500K, and the samples are photographed using a camera device to obtain multiple representative original images of poured asphalt concrete multiphase material samples for making a data set. Labelme, an open source tool for image annotation and segmentation, is used to mark the different phase materials in the original images of each poured asphalt concrete multiphase material sample with corresponding labels to obtain labeled and segmented images. All labeled and segmented images constitute the data set.

[0077] The dataset is randomly divided into training set and validation set with a ratio of 9 to 1.

[0078] S12, using a deep learning neural network based on semantic segmentation to extract underlying features from the labeled segmented images in the training set to obtain an underlying feature map;

[0079] Specifically, in this embodiment, the deep learning neural network based on semantic segmentation uses deep separable convolution for feature extraction. During the feature extraction process, hollow convolution is used to expand the receptive field so as to capture a wider range of contextual information while maintaining the resolution and extract high-level semantic features from the input test set image.

[0080] S13, using a global information embedding network to capture the global information of the underlying feature map from multiple levels and scales; at each level and scale, dynamically adjust the weight of each channel according to the global information, calculate the feature information of each channel according to the weight of each channel, and splice the feature information of all channels to obtain a global information splicing map; splice the global information splicing maps at all levels and scales to obtain a splicing feature map;

[0081] After extracting the underlying features of a deep learning network based on semantic segmentation, the present invention embeds the designed global information into the network integration so that the network can capture global information from multiple levels and scales and dynamically adjust channel weights, and then splices the feature information of each channel.

[0082] The present invention introduces a global information embedding network (Squeeze-and-Excitation Module) in the deep learning neural network based on semantic segmentation, which can dynamically adjust the weights between channels according to the global information of the feature map, thereby enhancing the focus on important features. By adding global information embedding modules at different levels and scales, the network can better distinguish different types of materials and improve the accuracy of segmentation.

[0083] Specifically, Figure 3 As shown, the global information embedding network includes:

[0084] The first convolutional layer has an input end connected to the output end of the deep learning neural network;

[0085] A second convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0086] A third convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0087] A fourth convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0088] An average pooling layer, the input end of which is connected to the output end of the deep learning neural network;

[0089] A first global information embedding layer, an input end of which is connected to an output end of the first convolutional layer;

[0090] A second global information embedding layer, an input end of which is connected to an output end of the second convolutional layer;

[0091] A third global information embedding layer, an input end of which is connected to an output end of the third convolutional layer;

[0092] a fourth global information embedding layer, whose input end is connected to the output end of the fourth convolutional layer;

[0093] a fifth global information embedding layer, an input end of which is connected to the output end of the average pooling layer;

[0094] A first splicing layer, whose input end is respectively connected to the output ends of the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer;

[0095] The fifth convolutional layer has an input end connected to the output end of the first concatenated layer.

[0096] Among them, the first convolution layer and the fifth convolution layer are both specifically 1×1 convolution layers, the second convolution layer is specifically a 3×3 convolution layer with a dilation factor of 6, the third convolution layer is specifically a 3×3 convolution layer with a dilation factor of 12, and the fourth convolution layer is specifically a 3×3 convolution layer with a dilation factor of 18.

[0097] The first convolution layer, the second convolution layer, the third convolution layer, the fourth convolution layer and the average pooling layer are located at different levels and scales, and are used to capture the global information of the underlying feature map at the corresponding levels and scales; the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer dynamically adjust the weights of each channel according to the global information at the corresponding levels and scales, and calculate the feature information of each channel according to the weight of each channel, and splice the feature information of all channels to obtain a global information splicing map; the first splicing layer and the fifth convolution layer are used to splice the global information splicing maps at all levels and scales to obtain a spliced ​​feature map.

[0098] In addition, the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer have the same structure, which is called a global information embedding layer, and includes:

[0099] A global average pooling layer, which is used to compress the global information of the underlying feature map to obtain a global information compression map;

[0100] A first fully connected layer, connected to the global average pooling layer, is used to compress all channels in the global information compression map to obtain a channel compression map;

[0101] A nonlinear activation layer connected to the first fully connected layer, used to dynamically adjust the importance of each channel by learning the relationship between channels, so as to characterize the weight of each channel in the channel compression map; and multiply the weight of each channel in the channel compression map by the channel compression map to obtain the feature information of each channel in the channel compression map; and splice the feature information of all channels in the channel compression map to obtain a channel compression global information splicing map;

[0102] The second fully connected layer is connected to the nonlinear activation layer and is used to restore the number of channels of the channel-compressed global information splicing map to obtain the global information splicing map.

[0103] The global information embedding layer involves two stages in the data processing process: compression and excitation. In the compression stage, a global average pooling layer is used to directly compress the feature map of size W×H×C containing global information into a feature vector of size 1×1×C. The channel features are compressed into a single value, so that the generated channel-level statistics contain context information. The multi-scale features are obtained by adding and averaging all pixel values ​​of the feature map. In the excitation stage, the first fully connected layer is used to compress C channels into C / r channels, with a dimensionality reduction ratio of r, so as to reduce the amount of calculation and learn the importance weight of each channel. A nonlinear activation layer is used, and then the number of channels is restored to C through the second fully connected layer; specifically, the weights used to characterize the feature map are obtained through the nonlinear activation layer, and the learned weights are multiplied back to the feature map to enhance the feature representation of important channels. This fusion strategy can help the model better combine the semantic information of the bottom and top layers, thereby improving the segmentation performance.

[0104] S14, using a decoding network to restore the resolution of the spliced ​​feature map, and fusing the spliced ​​feature map with the restored resolution with the underlying feature map to obtain an initial prediction model;

[0105] Among them, Figure 3 As shown, the decoding network includes:

[0106] A first downsampling layer, an input end of which is connected to an output end of the fifth convolutional layer;

[0107] A sixth convolutional layer, the input end of which is connected to the output end of the deep learning neural network;

[0108] A second concatenation layer, whose input ends are respectively connected to the output ends of the first downsampling layer and the sixth convolutional layer;

[0109] A seventh convolutional layer, whose input end is connected to the output end of the second concatenated layer;

[0110] A second downsampling layer, an input end of which is connected to the seventh convolutional layer;

[0111] Among them, the sixth convolution layer is specifically a 1×1 convolution layer, the seventh convolution layer is specifically a 3×3 convolution layer, and the first downsampling layer and the second downsampling layer are specifically 4-fold downsampling layers.

[0112] After the global information embedding network, the feature map is sent to the decoding network for further processing of the features and generating the final semantic segmentation results. The decoding network usually uses a downsampling operation (the first downsampling layer) to restore the resolution of the feature map to the size of the original input image, and fuses it with the underlying features through a skip connection (the second splicing layer) to obtain more accurate semantic segmentation capabilities.

[0113] S15, using the test set to evaluate the performance of the initial prediction model to optimize the model parameters and hyperparameters of the initial prediction model, and obtaining the prediction model through continuous iteration.

[0114] In the process of training with the training set, the present invention updates the prediction model parameters through back propagation and optimization algorithms, so that the prediction model can gradually converge and learn effective semantic segmentation capabilities.

[0115] In this embodiment, the prediction model established by using the improved deep learning method based on semantic segmentation is run in the conda environment with version 23.1.0.

[0116] The open source dataset creation tool Labelme version used in this embodiment is 3.16.7.

[0117] The digital images of representative samples of multiphase materials of poured asphalt concrete collected by digital camera equipment were imported into Labelme, manually annotated, divided into areas of different material types, and exported into JSON data format files. The JSON parsing library of the programming language Python was used to read the JSON file and parse the JSON file into a data set.

[0118] This embodiment uses the Deeplab V3+ semantic segmentation deep learning neural network framework developed by Google, and uses a high-performance computer in the training process. The specific configuration is as follows:

[0119] CPU: Intel(R) Core(TM) i9-14900KF (32CPUs), GPU: NVIDIA GeForce RTX 4080, Memory: 64GB RAM, Operating System: Windows 11 64-bit.

[0120] The deep neural network of this embodiment adopts the MobileNetV2 backbone feature extraction network and uses deep separable convolution for feature extraction. During the feature extraction process, hole convolution is used to expand the receptive field so as to capture a wider range of contextual information while maintaining the resolution and extract high-level semantic features from the input image.

[0121] After feature extraction, a global information embedding network is introduced. The network dynamically adjusts the importance of each channel by learning the relationship between channels to enhance the expressiveness of features. The global information embedding network includes two stages: squeeze and excitation, so that the weight of each channel is learned and applied to the corresponding feature map.

[0122] After passing through the global information embedding network, the feature map is sent to the decoding network for further processing of the features and generating the final semantic segmentation results. The decoding network usually uses upsampling operations to restore the resolution of the feature map to the size of the original input image, and fuses it with the underlying features through skip connections to obtain more accurate semantic segmentation capabilities.

[0123] When training the deep learning model based on semantic segmentation, this embodiment sets the number of training iterations of the deep learning algorithm to 500, the maximum learning rate to 0.007, the minimum learning rate to 1% of the maximum learning rate, and freezes the backbone training first and then unfreezes the training.

[0124] The model training is carried out by the method implemented in this paper, and the training results are as follows:

[0125] The average intersection-over-union ratio is one of the commonly used performance evaluation indicators in semantic segmentation tasks. It measures the accuracy of prediction by calculating the ratio between the intersection and the union of the predicted area and the true area. In semantic segmentation tasks, the intersection represents the number of pixels correctly predicted by the model, while the union represents the sum of the total number of pixels predicted by the model and the total number of pixels of the true label. The relationship between the average intersection-over-union ratio and the number of iterations in this embodiment is as follows: Figure 4 shown.

[0126] In deep learning, the loss function is a function used to measure the difference between the model's prediction and the true label. Generally, the goal of a deep learning model is to minimize the loss function so that the model's prediction is as close to the true label as possible. The relationship between the loss function and the number of iterations in this embodiment is as follows: Figure 5 shown.

[0127] In said S2:

[0128] The method for obtaining the original image of the multiphase material to be segmented is to place the cross-section sample of the poured asphalt concrete to be segmented into a light source box device, turn on the D65 light with a color temperature of about 6500K, and provide a white balance light source. Then use a digital camera device, set the focal length to 35mm, the aperture to f1.88, the sensitivity to 250, and the exposure time to 1 / 100s to collect the image, and obtain the original image of the poured asphalt concrete multiphase material.

[0129] The bilateral filtering method comprehensively considers the characteristics of the Gaussian filter and the α-truncated mean filter, and at the same time considers the difference between the spatial domain and the value domain, which can effectively smooth the image and retain the edge information. Its principle is as follows:

[0130] Let q(i,j) be the coordinates of the other coefficients of the template window, p(k,l) be the center coordinate point of the template window, σ d is the standard deviation of the Gaussian kernel function in the spatial domain;

[0131] The spatial domain kernel is calculated by the Euclidean distance of the pixel position:

[0132]

[0133] Let q(i,j) be the coordinates of the other coefficients of the template window, f(i,j) be the pixel value of the image at point q(i,j), p(k,l) be the center coordinate point of the template window, and the corresponding pixel value is f(k,l), σ r is the standard deviation of the Gaussian kernel function over the pixel value domain;

[0134] The range kernel is calculated by the difference of pixel values:

[0135]

[0136] Finally, multiplying the above two weight formulas gives the weight of the bilateral filter:

[0137]

[0138] In the bilateral filtering algorithm, each pixel is weighted averaged, and the weight is determined by the spatial distance and color similarity between pixels. If the spatial distance between two pixels is close and the colors are similar, the weight between them will be large, thereby retaining the edge information. On the contrary, if the spatial distance between two pixels is far or the colors are not similar, the weight between them will be small, which plays a role in smoothing the image.

[0139] The bilateral filtering algorithm uses a window to slide on the image, calculates each pixel to smooth the image, and obtains edge information. In this embodiment, in the parameters of the bilateral filtering process, the window diameter is 50, the standard deviation of the color space is 100, and the standard deviation of the coordinate space is 200.

[0140] like Figure 6 As shown, the S3 is specifically:

[0141] S31, using a morphological method to perform corrosion processing on the filtered image to obtain a corrosion image;

[0142] S32, using a morphological method to dilate the filtered image to obtain a dilated image;

[0143] S33, performing difference set processing on the eroded image and the dilated image to obtain the edge information image.

[0144] Specifically, erosion is a process of eliminating boundary points and shrinking the boundary inward:

[0145]

[0146] Dilation is the process of merging all background points that are in contact with an object into the object, causing the boundary to expand outward:

[0147]

[0148] The difference set operation is performed on the image after the expansion and erosion operations, that is, the difference between the absolute values ​​of the corresponding pixel values ​​of the two images is taken to obtain the edge information image.

[0149] This embodiment uses a square structure element of size 7×7 to gradually perform erosion and dilation operations on the image after bilateral filtering.

[0150] like Figure 7 As shown, the S4 is specifically:

[0151] S41, randomly placing a seed pixel in a non-edge and unmarked area in the edge information image;

[0152] S42, starting from the placed seed pixel, searching for non-edge pixels adjacent to it, and taking the non-edge pixels adjacent to it as new seed pixels to continue growing in all directions until it stops growing after encountering edge pixels, forming a closed area and marking it;

[0153] S43, looping through S41 and S42 until all closed areas in the edge information image are marked, and then terminating the loop to obtain the closed area pixel information image.

[0154] In the process of seed growth, the present invention encounters edge pixels on all sides, indicating that the closed area is completely determined, and then the closed area is marked; the regional growth algorithm is executed cyclically, and when the next seed pixel is placed, the marked closed area is excluded until all closed areas are completely searched out, and the cycle is ended to obtain a closed area pixel information map.

[0155] In said S5:

[0156] When using the prediction model for image segmentation prediction, the closed area pixel information map is provided as mask information to the prediction model as an additional input. The prediction model will use this information to better understand the semantic content of the closed area in the image, and use the Predict function in the deep learning framework to focus on each closed area during the prediction process, predict the pixel information in the same closed area as the same material, and then visualize the prediction results, mark the material types corresponding to different closed areas, and obtain the final image segmentation results.

[0157] Based on the above-mentioned multi-phase material image segmentation method, the present invention also provides a multi-phase material image segmentation system.

[0158] A multi-phase material image segmentation system, applied to the multi-phase material image segmentation method as described above, comprising an image processing device and a prediction model installed in the image processing device; the prediction model is built by an improved deep learning method based on semantic segmentation;

[0159] The image processing device is used to perform convolution filtering on the acquired original image of the multi-phase material to be segmented by using a bilateral filtering method to obtain a filtered image; and to perform corrosion and expansion operations on the filtered image by using a morphological method to obtain an edge information image; and to perform closed area pixel information search on the edge information image by using an improved region growing method to obtain a closed area pixel information image;

[0160] The prediction model is used to predict the original image of the multi-phase material under the guidance of the closed area pixel information image as a mask to obtain an image segmentation result.

[0161] A multiphase material image segmentation method and system of the present invention uses an improved deep learning method based on semantic segmentation to build a prediction model. The improved deep learning method based on semantic segmentation introduces a global information embedding network into a deep learning neural network based on semantic segmentation, enhances the algorithm's attention to material feature information, thereby improving the accuracy and performance of the semantic segmentation task, and can achieve a higher accuracy rate using a data set with a smaller sample size, reducing the amount of deep learning training; at the same time, the present invention uses an improved region growing method to search for closed region pixel information, which can efficiently and accurately segment closed regions composed of different edges in an image; in addition, the present invention maps closed region pixel information to The image is used as a mask to guide the prediction model to predict the original image of the multiphase material. The prediction model can use this information to better understand the semantic content of each closed area in the original image of the multiphase material, focus on each closed area, and mark the pixels in the same closed area as the same material type to obtain accurate image segmentation results. In summary, the present invention not only reduces the amount of training based on semantic segmentation, but also avoids erroneous information caused by false detection, further improves the accuracy of image segmentation, has high universality, and provides reliable data support for further establishing a microscopic model of the real aggregate shape and studying the properties of multiphase materials, and has significant economic and environmental benefits.

[0162] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A multiphase material image segmentation method, characterized in that: The following steps are involved: S1, using an improved semantic segmentation-based deep learning method to build a prediction model; S2, obtaining an original image of the multiphase material to be segmented, and performing convolution filtering on the original image of the multiphase material using a bilateral filtering method to obtain a filtered image; S3, using a morphological method to perform corrosion and expansion operations on the filtered image to obtain an edge information image; S4, searching the edge information image for closed area pixel information using an improved region growing method to obtain a closed area pixel information image; S5, inputting the original image of the multi-phase material and the closed area pixel information image into the prediction model, and using the closed area pixel information image as a mask to guide the prediction model to predict the original image of the multi-phase material to obtain an image segmentation result.

2. The multiphase material image segmentation method according to claim 1, characterized in that: The S1 is specifically: S11, acquiring a plurality of original images of multi-phase material samples and making them into a data set, and dividing the data set into a training set and a test set according to a preset ratio; S12, using a deep learning neural network based on semantic segmentation to extract underlying features from the labeled segmented images in the training set to obtain an underlying feature map; S13, using a global information embedding network to capture the global information of the underlying feature map from multiple levels and scales; at each level and scale, dynamically adjust the weight of each channel according to the global information, calculate the feature information of each channel according to the weight of each channel, and splice the feature information of all channels to obtain a global information splicing map; splice the global information splicing maps at all levels and scales to obtain a splicing feature map; S14, using a decoding network to restore the resolution of the spliced ​​feature map, and fusing the spliced ​​feature map with the restored resolution with the underlying feature map to obtain an initial prediction model; S15, using the test set to evaluate the performance of the initial prediction model to optimize the model parameters and hyperparameters of the initial prediction model to obtain the prediction model.

3. The multiphase material image segmentation method according to claim 2, characterized in that: In S11, the multiple original images of multi-phase material samples are prepared into a data set as follows: By manually marking corresponding material labels on each pixel of each original image of the multi-phase material sample, each original image of the multi-phase material sample is segmented into multiple regions composed of different materials, thereby obtaining an annotated segmented image corresponding to each original image of the multi-phase material sample; all the annotated segmented images constitute the data set.

4. The multiphase material image segmentation method according to claim 2, characterized in that: In the S13, the global information embedding network includes: The first convolutional layer has an input end connected to the output end of the deep learning neural network; A second convolutional layer, the input end of which is connected to the output end of the deep learning neural network; A third convolutional layer, the input end of which is connected to the output end of the deep learning neural network; A fourth convolutional layer, the input end of which is connected to the output end of the deep learning neural network; An average pooling layer, the input end of which is connected to the output end of the deep learning neural network; A first global information embedding layer, an input end of which is connected to an output end of the first convolutional layer; A second global information embedding layer, an input end of which is connected to an output end of the second convolutional layer; A third global information embedding layer, an input end of which is connected to an output end of the third convolutional layer; a fourth global information embedding layer, whose input end is connected to the output end of the fourth convolutional layer; a fifth global information embedding layer, an input end of which is connected to the output end of the average pooling layer; A first splicing layer, whose input end is respectively connected to the output ends of the first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer; The fifth convolutional layer has an input end connected to the output end of the first concatenated layer.

5. The multiphase material image segmentation method according to claim 4, characterized in that: The first convolution layer and the fifth convolution layer are both specifically 1×1 convolution layers, the second convolution layer is specifically a 3×3 convolution layer with a dilation factor of 6, the third convolution layer is specifically a 3×3 convolution layer with a dilation factor of 12, and the fourth convolution layer is specifically a 3×3 convolution layer with a dilation factor of 18.

6. The multiphase material image segmentation method according to claim 4, characterized in that: The first global information embedding layer, the second global information embedding layer, the third global information embedding layer, the fourth global information embedding layer and the fifth global information embedding layer have the same structure and all include: A global average pooling layer, which is used to compress the global information of the underlying feature map to obtain a global information compression map; A first fully connected layer, connected to the global average pooling layer, is used to compress all channels in the global information compression map to obtain a channel compression map; A nonlinear activation layer connected to the first fully connected layer, used to dynamically adjust the importance of each channel by learning the relationship between channels, so as to characterize the weight of each channel in the channel compression map; and multiply the weight of each channel in the channel compression map by the channel compression map to obtain the feature information of each channel in the channel compression map; and splice the feature information of all channels in the channel compression map to obtain a channel compression global information splicing map; The second fully connected layer is connected to the nonlinear activation layer and is used to restore the number of channels of the channel-compressed global information splicing map to obtain the global information splicing map.

7. The multiphase material image segmentation method according to claim 2, characterized in that: In the S14, the decoding network includes: A first downsampling layer, an input end of which is connected to an output end of the fifth convolutional layer; A sixth convolutional layer, the input end of which is connected to the output end of the deep learning neural network; A second concatenation layer, whose input ends are respectively connected to the output ends of the first downsampling layer and the sixth convolutional layer; A seventh convolutional layer, whose input end is connected to the output end of the second concatenated layer; A second downsampling layer, an input end of which is connected to the seventh convolutional layer; Among them, the sixth convolution layer is specifically a 1×1 convolution layer, the seventh convolution layer is specifically a 3×3 convolution layer, and the first downsampling layer and the second downsampling layer are specifically 4-fold downsampling layers.

8. The multiphase material image segmentation method according to claim 1, characterized in that: The S3 is specifically: S31, using a morphological method to perform corrosion processing on the filtered image to obtain a corrosion image; S32, using a morphological method to dilate the filtered image to obtain a dilated image; S33, performing difference set processing on the eroded image and the dilated image to obtain the edge information image.

9. The multiphase material image segmentation method according to claim 1, characterized in that: The S4 is specifically: S41, randomly placing a seed pixel in a non-edge and unmarked area in the edge information image; S42, starting from the placed seed pixel, searching for non-edge pixels adjacent to it, and taking the non-edge pixels adjacent to it as new seed pixels to continue growing in all directions until it stops growing after encountering edge pixels, forming a closed area and marking it; S43, looping through S41 and S42 until all closed areas in the edge information image are marked, and then terminating the loop to obtain the closed area pixel information image.

10. A multi-phase material image segmentation system, characterized in that: A method for multiphase material image segmentation as claimed in any one of claims 1 to 9, comprising an image processing device and a prediction model installed in the image processing device; the prediction model is built by an improved deep learning method based on semantic segmentation; The image processing device is used to perform convolution filtering on the acquired original image of the multi-phase material to be segmented by using a bilateral filtering method to obtain a filtered image; and to perform corrosion and expansion operations on the filtered image by using a morphological method to obtain an edge information image; and to perform closed area pixel information search on the edge information image by using an improved region growing method to obtain a closed area pixel information image; The prediction model is used to predict the original image of the multi-phase material under the guidance of the closed area pixel information image as a mask to obtain an image segmentation result.

Citation Information

Patent Citations

  • Character image segmentation method based on feature contour

    CN115272378A

  • Pulmonary nodule segmentation method and system based on improved 3D-UNet network

    CN115984553A

  • Traffic scene real-time semantic segmentation method based on deep learning

    CN117079277A

  • Image segmentation method and apparatus, terminal device, and storage medium

    WO2023179095A1

Cited By

  • A material microstructure segmentation method and device based on orientation frequency domain gating

    CN123094102A