Intelligent segmentation and statistical analysis method of metal microscopic image and related device

By employing a segmentation network that combines multi-scale depthwise separable convolution and edge-guided global query feature fusion with category frequency prior channel calibration, the shortcomings of existing technologies in the automated analysis of δ-phase precipitates in GH4169/Inconel 718 nickel-based superalloys are addressed, achieving high-precision and stable segmentation and statistical analysis.

CN123160591APending Publication Date: 2026-11-24ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611367343.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies have low levels of automation when analyzing δ-phase precipitates in GH4169/Inconel 718 nickel-based superalloys. In complex backgrounds, the segmentation model is prone to bias towards predicting the background, resulting in the missed detection of a few types of δ-phase. Furthermore, it is difficult to reliably identify needle-like, lath-like, and small-sized precipitates.

Method used

A segmentation network employing multi-scale depth-separable convolution and edge-guided global query feature fusion, combined with category frequency prior channel calibration, is used to improve the segmentation accuracy and stability of precipitates in complex backgrounds. Encoding and decoding are performed by an encoder and decoder to output the segmented regions corresponding to the precipitate categories, and small connected component removal and boundary smoothing are also performed.

Benefits of technology

It significantly improves the segmentation accuracy and detection stability of precipitates under complex backgrounds, reduces the workload of manual statistical analysis, and realizes automated quantitative analysis of microstructure images of metallic materials.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160591A_ABST
    Figure CN123160591A_ABST
Patent Text Reader

Abstract

This application discloses an intelligent segmentation and statistical analysis method and related apparatus for metal microscopic images, relating to the field of image processing technology. The method includes: inputting a microscopic image of the target metal material into a segmentation network; extracting multi-scale local context through multi-scale depthwise separable convolution in the segmentation network to obtain enhanced query features; fusing edge features of the microscopic image with the enhanced query features to obtain edge-guided global query features; encoding and decoding the edge-guided global query features to obtain decoded features; calibrating the decoded features based on class frequency priors to obtain calibration features; outputting segmentation results based on the calibration features; performing post-processing on the segmentation results; and statistically analyzing the quantitative indicators of the target metal material's microstructure based on the post-processed segmentation results. This application can improve the segmentation accuracy and recognition stability of precipitates in complex backgrounds and achieve automated quantitative statistics of microstructure parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular to an intelligent segmentation and statistical analysis method and related apparatus for metal microscopic images. Background Technology

[0002] High-temperature alloys such as GH4169 / Inconel 718 nickel-based alloys are widely used in aero-engines, gas turbines, nuclear power, and high-temperature structural components due to their excellent high-temperature strength, oxidation resistance, and creep resistance. In these alloys, the δ phase (Ni3Nb precipitate) is an important precipitate, which can be located at grain boundaries, within grains, subgrain boundaries, and near dislocations, exhibiting various morphologies including granular, acicular, lath-like, Widmanstätten, and cluster structures. The area fraction, size, aspect ratio, orientation, grain boundary distribution ratio, and spatial aggregation characteristics of the δ phase significantly affect grain size stability, hot workability, creep life, creep resistance, and fatigue performance; therefore, accurate, stable, and high-throughput quantitative microstructure analysis is necessary.

[0003] Current delta phase analysis still heavily relies on manual observation and statistical analysis by researchers based on scanning electron microscope (SEM) images, resulting in a low level of automation. Existing automated image processing solutions mostly employ thresholding, edge detection, region growing, or ordinary convolutional neural network methods, which are insufficiently adaptable to tissue images with complex backgrounds, low contrast, and elongated targets with large scale variations. While existing Transformer-based segmentation networks have strong global modeling capabilities, they still suffer from insufficient boundary awareness, simplistic query generation, and overly strong background-dominant features in complex metallographic images. This leads to segmentation models tending to predict the background under high background conditions, resulting in missed detections of a few delta phase types, and difficulty in consistently identifying needle-like, lamellar, and small-sized precipitates. Summary of the Invention

[0004] The purpose of this application is to provide an intelligent segmentation and statistical analysis method and related apparatus for metal microscopic images, which can improve the segmentation accuracy and stability of precipitates in metal materials under complex backgrounds, reduce missed detections and false detections, and realize automated quantitative statistics of microstructure parameters.

[0005] To achieve the above objectives, this application provides the following solution: In a first aspect, this application provides an intelligent segmentation and statistical analysis method for metal micrographs, comprising the following steps: A microscopic image of the target metallic material is input into a segmentation network to obtain a segmentation result of the microscopic image. The segmentation network includes an encoder and a decoder. In the segmentation network, multi-scale local context extraction is performed on the features of the microscopic image using multi-scale depthwise separable convolution to obtain enhanced query features. The edge features of the microscopic image are fused with the enhanced query features to obtain edge-guided global query features. Based on the edge-guided global query features, the microscopic image is encoded and decoded by the encoder and decoder to obtain decoded features. Channel calibration is performed on the decoded features based on class frequency priors to obtain calibration features. The segmentation result of the microscopic image is output based on the calibration features. The segmentation result includes segmented regions corresponding to the precipitate phase categories.

[0006] The segmentation results are subjected to small connected component removal and / or boundary smoothing.

[0007] Based on the processed segmentation results, the quantitative indicators of the microstructure of the target metallic material are statistically analyzed; the quantitative indicators of the microstructure include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and degree of spatial aggregation.

[0008] Optionally, multi-scale local context extraction is performed on the features of the microscopic tissue image through multi-scale depthwise separable convolution to obtain enhanced query features, including the following steps: The input features are expanded by performing a 1×1 convolution to obtain the expanded features.

[0009] Multiple depthwise separable convolutions with different kernel sizes are applied to the extended features to obtain local context features at multiple scales; the multiple different kernel sizes include 1×1, 3×3 and 5×5.

[0010] The local context features at multiple scales are fused element-wise to obtain fused features.

[0011] The fused features are shuffled through channels and subjected to 1×1 convolutional projection to obtain the projected features.

[0012] The projected features are residually concatenated with the input features to obtain the enhanced query features.

[0013] Optionally, the edge features of the microscopic tissue image are obtained in the following manner: The Sobel operator is used to extract the gradient information of the microscopic tissue image in the horizontal and vertical directions, and an edge map is generated based on the gradient magnitude.

[0014] The edge map is input into the edge embedding branch to obtain the edge features.

[0015] Optionally, the edge features of the microscopic tissue image are fused with the enhanced query features to obtain edge-guided global query features, including the following steps: The enhanced query features are linearly mapped to obtain the main query features.

[0016] The edge features are linearly mapped to obtain the edge query features.

[0017] The main query feature and the edge query feature are concatenated, a gating weight is output through a gating unit, and the main query feature and the edge query feature are fused through a fusion unit to obtain a fused query feature.

[0018] The edge-guided global query feature is obtained by weighting and combining the fused query feature and the main query feature according to the gating weight.

[0019] Optionally, channel calibration is performed on the decoding features based on the category frequency prior to obtain calibration features, including the following steps: The presence degree of each category in the decoded features is estimated by the category prediction head to obtain the category prediction probability.

[0020] Obtain the category frequency vector and generate inverse frequency weights based on the category frequency vector; the category frequency vector is obtained statistically based on the training set; the inverse frequency weights are inversely proportional to each component of the category frequency vector.

[0021] The predicted class probability is recalibrated based on the inverse frequency weight to obtain the calibrated class probability.

[0022] The calibrated category probabilities are mapped to channel attention weights, and the decoded features are subjected to residual channel calibration based on the channel attention weights to obtain the calibrated features.

[0023] Optionally, the segmentation result may be subjected to small connected component removal and / or boundary smoothing, including the following steps: Remove discrete connected components with an area smaller than a preset threshold from the segmentation results.

[0024] And / or, perform morphological smoothing on the boundaries of the precipitated phase regions in the segmentation result.

[0025] Optionally, based on the processed segmentation results, the quantitative indicators of the microstructure of the target metallic material are statistically analyzed, including the following steps: Connectivity is marked for the precipitated phase regions in the processed segmentation results, and each connected region is used as the statistical object.

[0026] Calculate the area fraction, the area of ​​the individual exudate, and the equivalent size.

[0027] The aspect ratio is calculated by the ratio of the major axis to the minor axis of the circumscribed rectangle of each connected region.

[0028] The degree of spatial clustering is obtained by using nearest neighbor distance, local density, or heatmap statistics between connected domains.

[0029] Secondly, this application provides an intelligent segmentation and statistical analysis system for metal micrographs, including the following functional modules: The image segmentation module is used to input a microscopic image of the target metallic material into a segmentation network to obtain the segmentation result of the microscopic image. The segmentation network includes an encoder and a decoder.

[0030] The segmentation post-processing module is used to perform small connected component removal and / or boundary smoothing on the segmentation results.

[0031] The statistical analysis module is used to statistically analyze the quantitative indicators of the target metallic material based on the processed segmentation results; the quantitative indicators of the material include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and spatial aggregation degree.

[0032] The image segmentation module specifically includes: The multi-scale query enhancement submodule is used to extract multi-scale local context from the features of the microscopic tissue image through multi-scale depthwise separable convolution to obtain enhanced query features.

[0033] The edge-guided fusion submodule is used to fuse the edge features of the microscopic tissue image with the enhanced query features to obtain edge-guided global query features.

[0034] The encoding / decoding processing submodule is used to encode and decode the microscopic tissue image based on the edge-guided global query features, and obtain the decoded features through the encoder and the decoder.

[0035] The channel calibration submodule is used to perform channel calibration on the decoding features based on the category frequency prior to obtain calibration features.

[0036] The segmentation output submodule is used to output the segmentation result of the microscopic tissue image based on the calibration features; the segmentation result includes the segmentation region corresponding to the precipitate category.

[0037] Thirdly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the intelligent segmentation and statistical analysis method for metal micrographs described above.

[0038] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the intelligent segmentation and statistical analysis method for metal micrographs described above.

[0039] According to the specific embodiments provided in this application, the following technical effects are disclosed: This application provides an intelligent segmentation and statistical analysis method and related apparatus for metal microscopic images. In this method, a microscopic image of the target metal material is input into a segmentation network. Multi-scale local context extraction of the microscopic image features is performed within the segmentation network using multi-scale depthwise separable convolution to obtain enhanced query features. This expands the single-scale local receptive field to a multi-scale local receptive field while maintaining low computational complexity, improving adaptability to precipitates of different sizes and complex morphologies. Subsequently, the edge features of the microscopic image are fused with the enhanced query features to obtain edge-guided global query features, incorporating explicit boundary information. The global query generation process improves the ability to identify low-contrast, elongated, needle-like, lamellar, and weakly boundary precipitates. Based on edge-guided global query features, the microscopic tissue image is encoded and decoded by an encoder and decoder to obtain decoded features. Then, the decoded features are calibrated according to the class frequency prior to obtain calibrated features. The class frequency prior can be used to rebalance the channel response to suppress the background-dominant channel and enhance the response of minority class-related channels, reducing the missed detection of minority class precipitates due to excessive background pixel ratio. Finally, the segmentation results of the microscopic tissue image are output according to the calibrated features, including the segmented regions corresponding to the precipitate categories. After segmenting the microstructure image, small connected component removal and / or boundary smoothing are performed on the segmentation results to reduce the interference of noise spots on the statistical results. Finally, based on the processed segmentation results, quantitative indicators of the target metallic material's microstructure are statistically analyzed. These quantitative indicators include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and spatial aggregation degree. This transforms the image segmentation results into material microstructure parameters that can be used for heat treatment microstructure evolution analysis and performance correlation analysis. Through the above methods, this application can automatically complete the identification and quantitative statistics of precipitates in the microstructure images of metallic materials, significantly improving analysis efficiency and reducing manual statistical workload, while also improving the segmentation accuracy and detection stability of multi-scale, weakly boundary precipitates in complex backgrounds. Attached Figure Description

[0040] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a flowchart illustrating an intelligent segmentation and statistical analysis method for metal micrographs provided in an embodiment of this application.

[0042] Figure 2 This is a flowchart illustrating image segmentation in a segmentation network within an intelligent segmentation and statistical analysis method for metal micrographs provided in an embodiment of this application.

[0043] Figure 3 This is a detailed flowchart of step B1 in an intelligent segmentation and statistical analysis method for metal micrographs provided in an embodiment of this application.

[0044] Figure 4 This is a detailed flowchart of step B2 in an intelligent segmentation and statistical analysis method for metal micrographs provided in an embodiment of this application.

[0045] Figure 5 This is a detailed flowchart of step B4 in a method for intelligent segmentation and statistical analysis of metal micrographs provided in an embodiment of this application.

[0046] Figure 6 This is a schematic diagram of the functional modules of an intelligent segmentation and statistical analysis system for metal micrographs provided in an embodiment of this application.

[0047] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0049] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0050] The intelligent segmentation and statistical analysis method for metal microscopic images provided in the following embodiments of this application is applied to the intelligent segmentation of the δ phase and the statistical analysis of the microstructure of scanning electron microscope (SEM) images of GH4169 / Inconel 718 nickel-based superalloy. However, it should be noted that the method of this application is not limited to GH4169 / Inconel 718 alloy, and can also be applied to the microstructure image analysis of other metallic materials.

[0051] In one exemplary embodiment, such as Figure 1 As shown, an intelligent segmentation and statistical analysis method for metal micrographs is provided, including the following steps: A1. Input the microstructure image of the target metallic material into the segmentation network to obtain the segmentation result of the microstructure image. The segmentation network includes an encoder and a decoder.

[0052] Specifically, microstructure images of the target metallic material under different heat treatment states are acquired. In one example of this application, the target metallic material is GH4169 / Inconel 718 nickel-based superalloy, and the microstructure image is a scanning electron microscope (SEM) image, which includes the matrix background, δ-phase precipitates, and optional other phases or boundary structures. The images are uniformly adjusted to a preset input size and subjected to grayscale normalization or three-channel duplication processing to adapt to the input format of the segmentation network.

[0053] Specifically, in this embodiment, the segmentation network uses GCtx-UNet as the basic backbone network, retaining its U-shaped encoder-decoder structure and skip connection structure. In the backbone network, the original global query extraction structure is replaced with multi-scale depth-separable query blocks, and edge-guided global query feature fusion is introduced into the global query generation path. Between the encoder and decoder, or in one or more stages of the decoder, a class frequency-guided channel calibration module is introduced to suppress background-dominant channels and enhance the responses of minority-class-related channels.

[0054] like Figure 2 As shown, the segmentation network performs segmentation processing on the precipitate region of the input microscopic tissue image, including the following steps: B1. Multi-scale local context extraction is performed on the features of the microscopic tissue image through multi-scale depthwise separable convolution to obtain enhanced query features.

[0055] First, patch embedding is performed on the input image, which involves convolutional downsampling and feature mapping to convert the original image into a shallow feature map. The resulting shallow feature map serves as the input feature for the subsequent encoding stage.

[0056] In the original GCTx-UNet, global query generation uses ordinary feature extraction blocks; in this embodiment, multi-scale depthwise separable query blocks are used to replace the original structure. For example... Figure 3 As shown, the processing flow of the multi-scale depth-separable query block includes the following steps B11 to B15: B11. Perform a 1×1 convolution on the input features to obtain the expanded features.

[0057] B12. Applying multiple depthwise separable convolutions with different kernel sizes to the extended features yields local context features at multiple scales. In one example of this application, the multiple different kernel sizes include 1×1, 3×3, and 5×5 to extract local context information at different scales.

[0058] B13. The multiple scale-based local context features are fused to obtain a fused feature. In one example of this application, multiple scale-based local context features are fused by element-wise addition.

[0059] B14. Perform channel shuffling and 1×1 convolution projection on the fused features to obtain the projected features.

[0060] B15. The projected features are added to the input features through residual connections to obtain enhanced query features.

[0061] The purpose of steps B11 to B15 above is to expand the single-scale local receptive field into a multi-scale local receptive field while maintaining low computational complexity, so that the global query generation retains the sensitivity to local structure and improves the adaptability to precipitates of different sizes.

[0062] B2. The edge features of the microscopic tissue image are fused with the enhanced query features to obtain the edge-guided global query features.

[0063] In one example of this application, the edge features of a microscopic tissue image are obtained by: using the Sobel operator to extract the gradient information of the microscopic tissue image in the horizontal and vertical directions, and generating an edge map based on the gradient magnitude; inputting the edge map into an edge embedding branch to obtain the edge features.

[0064] like Figure 4 As shown, step B2 specifically includes steps B21 to B25: B21. Perform a linear mapping on the enhanced query features to obtain the main query features.

[0065] B22. Perform a linear mapping on the edge features to obtain the edge query features.

[0066] B23. The main query feature and the edge query feature are concatenated, and the gating weight is output through the gating unit.

[0067] B24. The main query feature and the edge query feature are fused by the fusion unit to obtain the fused query feature.

[0068] B25. The fusion query feature and the main query feature are weighted and combined according to the gating weight to obtain the edge-guided global query feature.

[0069] The purpose of step B2 is to introduce explicit boundary information into the global query generation process, thereby improving the ability to identify low-contrast, elongated, needle-like, lamellar, and weakly boundary precipitates.

[0070] B3. Based on the edge-guided global query features, the microscopic tissue image is encoded and decoded by the encoder and the decoder to obtain the decoded features.

[0071] Local window attention and global query attention are performed alternately in the encoder and decoder. The query vector in the global query attention is the edge-guided global query feature generated in step B2. The encoder extracts multi-scale features step by step, and the decoder gradually restores the spatial resolution by combining skip connections. In one or more decoding stages, the category frequency-guided channel calibration module from step B4 below is introduced to further suppress backgrounds and enhance foregrounds on the features from the recovery stage.

[0072] B4. Perform channel calibration on the decoding features based on the category frequency prior to obtain the calibration features.

[0073] like Figure 5 As shown, the category frequency-guided channel calibration module includes: a category presence estimation unit, an inverse frequency modulation unit, a category-to-channel mapping unit, and a residual calibration unit. Specifically, step B4 includes steps B41 to B45: B41. Estimate the presence degree of each category in the decoded features using the category prediction head to obtain the category prediction probability. The category prediction probability is shown in the following formula: in, Indicates the first Original class probability, The first category prediction head output represents the first category prediction head output. Class logits.

[0074] B42. Obtain the category frequency vector, and generate inverse frequency weights based on the category frequency vector; the category frequency vector is obtained statistically based on the training set; the inverse frequency weights are inversely proportional to each component of the category frequency vector. For a given category frequency vector... ,in Indicates the number of categories. Indicates the first The class frequency. The inverse frequency weight is shown in the following formula: in, Indicates the first Inverse frequency weights of the class To prevent division by zero of extremely small constants.

[0075] The normalized weights are shown in the following formula: in, Represents the normalized i-th Inverse frequency weights Indicates the number of categories.

[0076] B43. Recalibrate the predicted category probability according to the inverse frequency weight to obtain the calibrated category probability. The frequency-calibrated category probability is shown in the following formula: in, Indicates the first Class probabilities after class calibration.

[0077] B44. Map the calibrated class probabilities to channel attention weights. The channel attention is shown in the following formula: in, Indicates channel attention weights. This represents the sigmoid activation function. and For learnable mapping parameters, This represents a vector consisting of the probabilities of each of the calibrated categories.

[0078] B45. Perform residual channel calibration on the decoding features based on the channel attention weights to obtain the calibrated features. The output features of this step, i.e., the calibrated features, are shown in the following formula: in, This indicates the calibration feature. This indicates the decoding feature. For learnable scaling parameters, This indicates element-wise multiplication.

[0079] The purpose of step B4 above is to address the problem of excessive background pixel ratio and submerged minority class eliminated phase response by rebalancing the channel response through class frequency prior, suppressing the background-dominant channel and enhancing the features of the minority class channel.

[0080] B5. Output the segmentation result of the microscopic tissue image based on the calibration features; the segmentation result includes the segmentation region corresponding to the precipitate type.

[0081] The decoded high-resolution feature map is input into the output layer to obtain pixel-level class prediction results. The output results include at least the background class and the precipitated phase class (e.g., the delta phase class). The output may also include other tissue classes to support joint segmentation of multiple tissue classes.

[0082] A2. Perform small connected component removal and / or boundary smoothing on the segmentation results.

[0083] In step A2, one or more of the following processes are performed on the segmentation results output through B1 to B5: small connected component removal, boundary smoothing, or morphological correction. Specifically, discrete connected components with an area smaller than a preset threshold in the segmentation results are removed to reduce noise speckles; and / or, morphological smoothing is performed on the boundaries of precipitate regions in the segmentation results. This step aims to improve the stability of statistical results and reduce the interference of false positive regions on tissue parameters.

[0084] A3. Based on the processed segmentation results, statistically analyze the quantitative indicators of the microstructure of the target metallic material; the quantitative indicators of microstructure include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and degree of spatial aggregation.

[0085] Based on the precipitate segmentation regions, one or more of the following quantitative indicators of tissue structure are calculated: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and spatial aggregation degree. In one example of this application, the segmented precipitate regions are labeled with connected components, and the area fraction, area of ​​a single precipitate, and equivalent size are calculated using each connected component as a statistical object; the aspect ratio is calculated using the ratio of the major axis to the minor axis of the circumscribed rectangle of each connected component; and the spatial aggregation degree is obtained through nearest neighbor distance, local density, or heatmap statistics between each connected component. The purpose of this step is to convert the image segmentation results into material structure parameters that can be used for heat treatment tissue evolution analysis and performance correlation analysis.

[0086] By implementing the statistical analysis process in steps A1 to A3 and the image segmentation process in steps B1 to B5 of the above embodiments, the identification and quantitative statistics of precipitates in the microstructure images of metallic materials can be automatically completed, significantly improving analysis efficiency and reducing the workload of manual statistics. Compared with ordinary segmentation networks without edge guidance, this method has better boundary preservation ability and detection stability for low-contrast boundaries, needle-like and lath-like precipitates. Compared with the scheme in the original GCTx-UNet that uses a common query extraction structure, this method enhances the multi-scale local structure expression through multi-scale depth-separable query blocks, improving the adaptability to complex morphologies and precipitates of different sizes. Compared with schemes that do not consider class frequency imbalance, this method weakens the background dominance effect through a class frequency-guided channel calibration module, improving the response intensity and recognition stability of minority class precipitates.

[0087] In another exemplary embodiment of this application, in order to accurately identify the location information of precipitates in a microscopic tissue image, a feature map corresponding to the input image can be obtained based on image features, the pixel corresponding to the largest category probability value can be obtained from the feature map, and the position of the pixel in the input image can be determined as the target location information.

[0088] In another exemplary embodiment of this application, in order to ensure the consistency of the input image, the input image may be preliminarily processed, including resizing, grayscale normalization, or three-channel copying.

[0089] Based on the same inventive concept, this application also provides an apparatus for implementing the intelligent segmentation and statistical analysis method for metal micrographs described above. The solution provided by this apparatus is similar to the solution described in the above method. In an exemplary embodiment, such as... Figure 6 As shown, an intelligent segmentation and statistical analysis system for metal micrographs is provided, including the following functional modules: The image segmentation module is used to input a microscopic image of the target metallic material into a segmentation network to obtain the segmentation result of the microscopic image. The segmentation network includes an encoder and a decoder.

[0090] The segmentation post-processing module is used to perform small connected component removal and / or boundary smoothing on the segmentation results.

[0091] The statistical analysis module is used to statistically analyze the quantitative indicators of the target metallic material based on the processed segmentation results; the quantitative indicators of the material include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and spatial aggregation degree.

[0092] The image segmentation module specifically includes: The multi-scale query enhancement submodule is used to extract multi-scale local context from the features of the microscopic tissue image through multi-scale depthwise separable convolution to obtain enhanced query features.

[0093] The edge-guided fusion submodule is used to fuse the edge features of the microscopic tissue image with the enhanced query features to obtain edge-guided global query features.

[0094] The encoding / decoding processing submodule is used to encode and decode the microscopic tissue image based on the edge-guided global query features, and obtain the decoded features through the encoder and the decoder.

[0095] The channel calibration submodule is used to perform channel calibration on the decoding features based on the category frequency prior to obtain calibration features.

[0096] The segmentation output submodule is used to output the segmentation result of the microscopic tissue image based on the calibration features; the segmentation result includes the segmentation region corresponding to the precipitate category.

[0097] certainly, Figure 6 The architecture shown is merely exemplary; it can be omitted as needed when implementing different functionalities. Figure 6 One or at least two components of the system shown.

[0098] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 7 As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The database stores microscopic tissue image data and segmentation results. The I / O interfaces are used for information exchange between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it can implement the intelligent segmentation and statistical analysis method for metal microscopic images provided in the previous embodiment.

[0099] Figure 7The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0100] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0101] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0102] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0103] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant regulations and be authorized by the owner of the corresponding device.

[0104] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

[0105] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0106] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0107] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A method for intelligent segmentation and statistical analysis of metal micrographs, characterized in that, include: A microscopic image of the target metallic material is input into a segmentation network to obtain the segmentation result of the microscopic image. The segmentation network includes an encoder and a decoder. In the segmentation network, multi-scale local context extraction is performed on the features of the microscopic image through multi-scale depthwise separable convolution to obtain enhanced query features. The edge features of the microscopic image are fused with the enhanced query features to obtain edge-guided global query features. Based on the edge-guided global query features, the microscopic tissue image is encoded and decoded by the encoder and the decoder to obtain the decoded features; The decoding features are calibrated by channel calibration based on the category frequency prior to obtain the calibration features; The segmentation result of the microscopic tissue image is output based on the calibration features; the segmentation result includes the segmented region corresponding to the precipitate category; The segmentation results are subjected to small connected component removal and / or boundary smoothing. Based on the processed segmentation results, the quantitative indicators of the microstructure of the target metallic material are statistically analyzed; the quantitative indicators of the microstructure include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and degree of spatial aggregation.

2. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 1, characterized in that, Multi-scale local context extraction is performed on the features of the microscopic tissue image using multi-scale depthwise separable convolution to obtain enhanced query features, including: The input features are expanded by performing a 1×1 convolution to obtain the expanded features; Multiple depthwise separable convolutions with different kernel sizes are applied to the extended features to obtain local context features at multiple scales; the multiple different kernel sizes include 1×1, 3×3 and 5×5; The local context features at multiple scales are fused element-wise by addition to obtain the fused features; The fused features are shuffled into channels and subjected to 1×1 convolutional projection to obtain the projected features; The projected features are residually concatenated with the input features to obtain the enhanced query features.

3. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 1, characterized in that, The edge features of the microscopic tissue image were obtained in the following manner: The Sobel operator is used to extract gradient information in the horizontal and vertical directions of the microscopic tissue image, and an edge map is generated based on the gradient magnitude. The edge map is input into the edge embedding branch to obtain the edge features.

4. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 3, characterized in that, The edge-guided global query features are obtained by fusing the edge features of the microscopic tissue image with the enhanced query features, including: The enhanced query features are linearly mapped to obtain the main query features; Linear mapping is performed on the edge features to obtain edge query features; The main query feature and the edge query feature are concatenated, a gating weight is output through a gating unit, and the main query feature and the edge query feature are fused through a fusion unit to obtain the fused query feature; The edge-guided global query feature is obtained by weighting and combining the fused query feature and the main query feature according to the gating weight.

5. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 1, characterized in that, Based on the category frequency prior, the decoding features are channel-calibrated to obtain calibration features, including: The presence degree of each category in the decoded features is estimated by the category prediction head to obtain the category prediction probability; Obtain the category frequency vector and generate inverse frequency weights based on the category frequency vector; the category frequency vector is obtained statistically based on the training set; the inverse frequency weights are inversely proportional to each component of the category frequency vector. The predicted class probability is recalibrated based on the inverse frequency weight to obtain the calibrated class probability. The calibrated category probabilities are mapped to channel attention weights, and the decoded features are subjected to residual channel calibration based on the channel attention weights to obtain the calibrated features.

6. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 1, characterized in that, Perform small connected component removal and / or boundary smoothing on the segmentation results, including: Remove discrete connected components with an area smaller than a preset threshold from the segmentation results; And / or, perform morphological smoothing on the boundaries of the precipitated phase regions in the segmentation result.

7. The intelligent segmentation and statistical analysis method for metal micrographs according to claim 1, characterized in that, Based on the processed segmentation results, the quantitative indicators of the microstructure of the target metallic material were statistically analyzed, including: Connectivity labels are applied to the precipitated phase regions in the processed segmentation results, and each connected region is used as the statistical object. Calculate the area fraction, the area of ​​the individual exudate, and the equivalent size; The aspect ratio is calculated by the ratio of the major axis to the minor axis of the circumscribed rectangle of each connected component; The degree of spatial clustering is obtained by using nearest neighbor distance, local density, or heatmap statistics between connected domains.

8. A smart segmentation and statistical analysis system for metal microscopic images, characterized in that, include: An image segmentation module is used to input a microstructure image of a target metallic material into a segmentation network to obtain a segmentation result of the microstructure image; the segmentation network includes an encoder and a decoder; The post-segmentation processing module is used to perform small connected component removal and / or boundary smoothing on the segmentation results; The statistical analysis module is used to statistically analyze the quantitative indicators of the microstructure of the target metallic material based on the processed segmentation results; the quantitative indicators of the microstructure include one or more of the following: area fraction, area of ​​a single precipitate, equivalent size, aspect ratio, and spatial aggregation degree. The image segmentation module specifically includes: The multi-scale query enhancement submodule is used to extract multi-scale local context from the features of the microscopic tissue image through multi-scale depthwise separable convolution to obtain enhanced query features. The edge-guided fusion submodule is used to fuse the edge features of the microscopic tissue image with the enhanced query features to obtain edge-guided global query features; The encoding / decoding processing submodule is used to encode and decode the microscopic tissue image based on the edge-guided global query features, and obtain the decoded features through the encoder and the decoder. The channel calibration submodule is used to perform channel calibration on the decoding features based on the category frequency prior to obtain calibration features; The segmentation output submodule is used to output the segmentation result of the microscopic tissue image based on the calibration features; the segmentation result includes the segmentation region corresponding to the precipitate category.

9. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the intelligent segmentation and statistical analysis method for metal micrographs according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the intelligent segmentation and statistical analysis method for metal micrographs as described in any one of claims 1-7.