Identification and determination method, system, storage medium and equipment for equiaxed crystals of ingot

Through the combination of the convolutional neural network and the equiaxed crystal segmentation network, the accuracy and efficiency problems of the equiaxed crystal detection in the existing technology are solved, the fine segmentation and automatic grading of the equiaxed crystal in the cast slab are realized, and the efficiency is improved. Efficiency and controllability of the production process.

CN118314081BActive Publication Date: 2024-10-29WUHAN UNIV OF SCI & TECH
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410289011.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-14
Publication Date
2024-10-29
Estimated Expiration
2044-03-14

AI Technical Summary

Technical Problem

The existing method for detecting equiaxed crystals in cast slabs requires manual division of areas, has poor accuracy and identity, and cannot reflect the distribution characteristics of equiaxed crystals along the width direction. The evaluation indicators are not comprehensive enough, resulting in high work intensity and low efficiency.

Method used

The convolutional neural network is used to determine the position of the equiaxed crystal, and the equiaxed crystal segmentation network is used for fine segmentation. The equiaxed crystal is graded using a grading model to improve the accuracy and efficiency of identification and determination.

Benefits of technology

It achieves fine segmentation and accurate determination of the equiaxed crystals of the casting slab, reduces the influence of human factors, improves the accuracy of identification and segmentation and the reliability of the grading results, realizes the automation of the equiaxed crystal grading process, and improves the efficiency of the equiaxed crystal grading process. Efficiency and controllability of the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314081B_ABST
    Figure CN118314081B_ABST
Patent Text Reader

Abstract

The present invention proposes a method, system, storage medium and device for identifying and determining equiaxed crystals of a casting, which belongs to the technical field of equiaxed crystal identification. The method includes: S1, collecting a pattern image of equiaxed crystals of a casting and preprocessing it to obtain a first processed image; S2, extracting image features from the first processed image to obtain a first image feature, and determining the position of the equiaxed crystals of the casting; S3, identifying and segmenting the first image feature according to the position of the equiaxed crystals of the casting, and obtaining the measurement result of the equiaxed crystals of the casting; S4, grading the equiaxed crystals of the casting according to the measurement result of the equiaxed crystals and the casting process parameters, and obtaining the grading result of the equiaxed crystals. The present application determines the position of the equiaxed crystals of the casting, identifies and segments them, establishes equiaxed crystal grading rules and grading models according to the measurement result of the equiaxed crystals and the casting process parameters, and then determines the final grading result of the equiaxed crystals, thereby improving the accuracy of equiaxed crystal identification and segmentation, and then improving the accuracy of the grading result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equiaxed crystal recognition, and in particular to a method, system, storage medium and equipment for recognizing and determining equiaxed crystals of a casting. Background Art

[0002] During the casting process, when the metal liquid solidifies into a solid, if conditions permit, an equiaxed crystal structure will be formed. The shape of the equiaxed crystal is approximately spherical, with relatively uniform size and grain orientation. The formation of equiaxed crystals usually requires certain conditions, such as sufficient undercooling and suitable solidification conditions. Under suitable conditions, the metal liquid will solidify into equiaxed crystals in a spherical or nearly spherical manner, rather than forming columnar or lamellar crystals. The formation of equiaxed crystals is beneficial to improving the plasticity and toughness of metal materials, because the distribution of spherical grains can effectively hinder the propagation of cracks.

[0003] The existing methods for detecting equiaxed crystals in ingots mainly include the thickness method and the area method. The detection process mainly includes preparing ingot equiaxed crystal samples, measuring the size or area of ​​the equiaxed crystal area manually or by software, and calculating the equiaxed crystal ratio. This provides a certain means for optimizing the parameters of continuous casting process production and has achieved certain results. However, the above-mentioned ingot equiaxed crystal detection methods have obvious shortcomings and disadvantages. They require manual division of equiaxed crystal areas, and the accuracy and identity are poor; the manual measurement and division of the equiaxed crystal area size has low accuracy and work efficiency; it can only provide the equiaxed crystal ratio, and cannot reflect the distribution characteristics of equiaxed crystals along the width direction, and the evaluation indicators are not comprehensive enough.

[0004] Therefore, developing a system for automatically identifying and grading low-magnification equiaxed crystals in ingots is of great significance for reducing the workload and difficulty of current staff, and is an urgent need for achieving high-speed and high-quality production. Summary of the invention

[0005] In view of this, the present invention proposes a method, system, storage medium and device for identifying and determining equiaxed crystals in cast billets, which determine the position of equiaxed crystals through a convolutional neural network, and continuously iteratively optimize and update parameters of the equiaxed crystal segmentation network to obtain the measurement results of the equiaxed crystals, thereby achieving fine segmentation of the equiaxed crystals in the cast billet, and then using a grading model to grade the equiaxed crystals, thereby improving the accuracy of performance determination of the equiaxed crystals.

[0006] The technical solution of the present invention is achieved in this way:

[0007] In a first aspect, the present invention provides a method for identifying and determining equiaxed crystals of a casting, comprising the following steps:

[0008] S1, collecting a pattern image of equiaxed crystals of a casting billet, and preprocessing the pattern image to obtain a first processed image;

[0009] S2, inputting the first processed image into a convolutional neural network to extract image features, obtaining first image features, and determining the position of equiaxed crystals of the ingot in the pattern image according to the first image features;

[0010] S3, using an equiaxed crystal segmentation network to identify and segment the first image feature according to the position of the equiaxed crystal of the ingot, to obtain a measurement result of the equiaxed crystal of the ingot;

[0011] S4. According to the results of equiaxed crystal measurement and the process parameters of the ingot, an equiaxed crystal grading rule and a grading model are established. The equiaxed crystal grading model performs a grading evaluation on the comprehensive equiaxed crystal rate of the ingot equiaxed crystal according to the equiaxed crystal grading rule to obtain the equiaxed crystal grading result;

[0012] S5. The measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals are stored and counted, and displayed using a visual interface.

[0013] On the basis of the above technical scheme, preferably, the equiaxed crystal segmentation network uses the TUnet-ASLBF model, and the TUnet-ASLBF model includes a coarse segmentation stage and a fine segmentation stage. The prior information of the coarse segmentation stage is input into the fine segmentation stage for refined segmentation to obtain the measurement results of the equiaxed crystals of the ingot.

[0014] On the basis of the above technical solution, preferably, the prior information of the coarse segmentation stage includes an initial contour map and a probability map of the equiaxed crystal, and the fine segmentation stage adopts an ASLBF model, which specifically includes the following steps:

[0015] The initial contour map of the equiaxed crystal is used as the initial value of the ASLBF model, the probability map is used as the energy modulation parameter of the ASLBF model contour contraction, and the ratio of the internal energy term to the external energy term is adjusted according to the center position of the refined segmentation window;

[0016] The initial contour map is identified using the strengthening function to obtain all equiaxed crystal regions in the initial contour map;

[0017] All equiaxed crystal regions are processed using partial differential equations and the finite difference method to obtain the measurement results of the equiaxed crystals of the ingot.

[0018] On the basis of the above technical solution, preferably, the formula of the partial differential equation is as follows:

[0019]

[0020] in, represents the set of all horizontal points in the pattern image, t represents the time variable, Heaviside function The derivative of and Represents the grayscale mean outside the image processing window and the grayscale mean inside the image processing window. represents the energy of the equiaxed crystal region, div represents the division function, represents the reinforcement function, the reinforcement function The formula is as follows:

[0021] .

[0022] More preferably, the coarse segmentation stage adopts a TU neural network, and the coarse segmentation stage specifically includes the following steps:

[0023] Expanding the first image feature into an n×n image patch array according to the position of the equiaxed crystal;

[0024] The image patch array is processed using a transform encoder to generate feature maps with different receptive fields;

[0025] The features of different receptive fields are adjusted using the Unet encoder to obtain the first feature;

[0026] Inputting the first image feature into a convolutional encoder for encoding to obtain a second feature;

[0027] Inputting the first feature and the second feature together into a decoder to obtain global topological information of the equiaxed crystal;

[0028] The global topological information of the equiaxed crystal is input into a 1×1 convolution to obtain the initial contour map of the equiaxed crystal;

[0029] The initial contour map of the equiaxed crystal is processed through the softmax layer to obtain a probability map.

[0030] On the basis of the above technical scheme, preferably, the grading model includes a training stage and a testing stage, wherein, in the training stage, a training set and a deep learning network ConvNeXt are used to train a data set of equiaxed crystal images of ingots with different levels of equiaxed crystal ratios to obtain a preliminary weight of the first image feature of the trained grading model, and the preliminary weight is weighted using a normalized weight configuration formula according to the classification rules, grading rules and test results, and the comprehensive equiaxed crystal ratio is calculated; in the testing stage, the trained grading model is used to identify equiaxed crystals in the ingot, and the grading result of the equiaxed crystal is determined by the comprehensive equiaxed crystal ratio; wherein the classification rule is to classify the equiaxed crystal area according to the position of the equiaxed crystal, the grading rule is to evaluate according to the parameters of the equiaxed crystal, and the test result is the average absolute error, average absolute percentage and error confidence score calculated according to the grading model.

[0031] On the basis of the above technical solution, preferably, the calculation formula of the comprehensive equiaxed crystal ratio is as follows:

[0032]

[0033] in, represents the comprehensive equiaxed crystal ratio, represents the total number of equiaxed crystals, A represents the number of grains, represents the area of ​​equiaxed crystal region, It represents the number of equiaxed grains in the boundary of the equiaxed crystal region, L represents the length of the edge of the equiaxed crystal region, It represents the total number of all grains in the boundary line, M represents the fineness of equiaxed crystals, K represents the uniformity of equiaxed crystals, AAE represents the average absolute error of all equiaxed crystal coordinates in the pattern image, AAP represents the average absolute percentage of all equiaxed crystal coordinates and all grain coordinates in the pattern image, ECS represents the error confidence score, and represents the ratio of the test set accuracy to the training set accuracy.

[0034] In a second aspect, the present invention provides a system for identifying and determining equiaxed crystals of a casting billet, using the identification and determination method as described above, comprising:

[0035] A preprocessing module, used for collecting a pattern image of equiaxed crystals of the ingot, preprocessing the pattern image to obtain a first processed image;

[0036] A feature extraction module, used for inputting the first processed image into a convolutional neural network to extract image features, obtaining first image features, and determining the position of the equiaxed crystals of the ingot in the pattern image according to the first image features;

[0037] An identification and segmentation module is used to identify and segment the first image feature according to the position of the equiaxed crystal of the ingot using an equiaxed crystal segmentation network to obtain a measurement result of the equiaxed crystal of the ingot;

[0038] The grading module is used to establish equiaxed crystal grading rules and grading models according to the measurement results of equiaxed crystals and the casting process parameters. The equiaxed crystal grading model evaluates the comprehensive equiaxed crystal ratio of the casting equiaxed crystals according to the equiaxed crystal grading rules to obtain the equiaxed crystal grading results;

[0039] The display module is used to store and compile statistics of the measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals, and to display them using a visual interface.

[0040] In a third aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to implement the identification and determination method as described above.

[0041] In a fourth aspect, the present invention provides an electronic device, comprising: at least one processor, at least one memory, a communication interface, and a bus;

[0042] Wherein, the processor, memory, and communication interface communicate with each other via the bus;

[0043] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to implement the identification and determination method as described above.

[0044] The identification and determination method of the present invention has the following beneficial effects compared with the prior art:

[0045] The position of the equiaxed crystal of the ingot is determined by setting a convolutional neural network, the first image feature of the pattern image is identified and segmented by the equiaxed crystal segmentation network, and the equiaxed crystal grading rules and grading model are established according to the measurement results of the equiaxed crystal and the ingot process parameters, thereby determining the final grading result of the equiaxed crystal, thereby improving the accuracy of equiaxed crystal identification and segmentation, reducing the influence of human factors, and thus improving the accuracy of the grading result;

[0046] The equiaxed crystal segmentation network is divided into a coarse segmentation stage and a fine segmentation stage, and the TU neural network is used to perform coarse segmentation on the first image feature to obtain the prior information of the equiaxed crystal of the ingot. The fine segmentation result is used to perform fine segmentation according to the prior information to obtain the measurement result of the equiaxed crystal of the ingot, thereby reducing the inaccuracy of the segmentation result caused by error accumulation, improving the reliability of the segmentation result, and thus improving the efficiency and accuracy of equiaxed crystal segmentation.

[0047] The deep learning network ConvNeXt is used to train the image dataset of equiaxed crystals of ingots with different grades of equiaxed crystal ratios. The trained grading model is used to grade the equiaxed crystals of ingots to obtain the grading results of equiaxed crystals. According to the normalized weight configuration formula, the grading results of equiaxed crystals of different grades are normalized and weighted to obtain the final equiaxed crystal grading results, which improves the accuracy and robustness of the grading model, realizes the automation of the equiaxed crystal grading process, and improves the efficiency and controllability of the production process. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 is a flow chart of the identification and determination method of the present invention;

[0050] Figure 2 A block diagram of an equiaxed crystal segmentation network of the identification and determination method of the present invention;

[0051] Figure 3 The figure is a flow chart of the grading model of the identification and determination method of the present invention. DETAILED DESCRIPTION

[0052] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] like Figure 1 As shown, the present invention provides a method for identifying and determining equiaxed crystals of a casting billet, comprising the following steps:

[0054] S1. Collecting a pattern image of equiaxed crystals of a casting ingot, and preprocessing the pattern image to obtain a first processed image, wherein the preprocessing includes denoising, contrast enhancement, and brightness adjustment.

[0055] It is understandable that image processing techniques such as median filtering, Gaussian filtering or wavelet denoising are used to remove noise in the pattern image; the contrast of the pattern image is enhanced by histogram equalization, contrast stretching and other methods, so that the equiaxed crystals in the pattern image are clearer; the brightness is adjusted according to the brightness of the pattern image to ensure that the overall brightness of the pattern image is appropriate. The present application improves the pattern image quality of the equiaxed crystal of the ingot by preprocessing, so that the image of the equiaxed crystal of the ingot is clearer and more accurate, thereby improving the measurement results and evaluation accuracy and reliability of the equiaxed crystal of the ingot.

[0056] S2. Input the first processed image into a convolutional neural network to extract image features to obtain first image features, and determine the position of the equiaxed crystals of the ingot in the pattern image according to the first image features.

[0057] The present application selects a convolutional neural network model suitable for image feature extraction for adjustment and optimization to extract the first image features in the first image, wherein the first image features include the morphological features and structural features of the equiaxed crystals of the ingot, and uses a target detection algorithm to determine the positions of the equiaxed crystals of the ingot based on the extracted first image features, and finds the position coordinates and bounding box of the equiaxed crystals in the pattern image, thereby providing accurate position information for subsequent measurement and evaluation of the equiaxed crystals of the ingot.

[0058] S3. Use an equiaxed crystal segmentation network to identify and segment the first image features according to the positions of the equiaxed crystals of the ingot, and obtain measurement results of the equiaxed crystals of the ingot; wherein the measurement results are the distribution of the equiaxed crystals of the ingot, including the density and distribution uniformity of the equiaxed crystals.

[0059] like Figure 2 As shown, specifically, the equiaxed crystal segmentation network uses the TUnet-ASLBF model, and the TUnet-ASLBF model includes a coarse segmentation stage and a fine segmentation stage. The prior information of the coarse segmentation stage is input into the fine segmentation stage for refined segmentation to obtain the measurement results of the equiaxed crystals of the ingot.

[0060] In one embodiment of the present application, the prior information of the coarse segmentation stage includes an initial contour map and a probability map of the equiaxed crystal, and the fine segmentation stage adopts an ASLBF model, which specifically includes the following steps:

[0061] The initial contour map of the equiaxed crystal is used as the initial value of the ASLBF model, the probability map is used as the energy modulation parameter of the ASLBF model contour contraction, and the ratio of the internal energy term to the external energy term is adjusted according to the center position of the refined segmentation window;

[0062] The initial contour map is identified using the strengthening function to obtain all equiaxed crystal regions in the initial contour map;

[0063] All equiaxed crystal regions are processed using partial differential equations and the finite difference method to obtain the measurement results of the equiaxed crystals of the ingot.

[0064] In an embodiment of the present application, the ASLBF model is used for fine segmentation, and the initial contour map and contour shrinkage energy modulation parameters are used to perform fine segmentation on the equiaxed crystals to improve the accuracy of equiaxed crystal segmentation, and partial differential equations and finite difference methods are used to iteratively solve all equiaxed crystal regions to obtain measurement results of the equiaxed crystals of the ingot, thereby improving the efficiency of equiaxed crystal measurement.

[0065] Specifically, the pattern image set of the equiaxed crystal of the ingot is represented as D, , N represents the number of pattern images of equiaxed crystals of the ingot, u represents all the information of the pattern images of equiaxed crystals of the ingot, Represents the contour component of the equiaxed crystal boundary, and Bin represents the true value judgment of the equiaxed crystal region and the non-equiaxed crystal region inside and outside the boundary, where , represents the contour component of the equiaxed grain boundary From the integral area of ​​the pattern image plane The mapping to the real number set R is the integral area of ​​each pattern image. Each point in is assigned a real value; , represents the integral area of ​​the segmentation result Bin for the pattern image plane Produces an output of 0 or 1, i.e., the integral area of ​​the pattern image plane The segmentation result is 0 or 1, where 1 represents the equiaxed crystal area and 0 represents the non-equiaxed crystal area. The probability of the equiaxed crystal region is 0.5~1, and the probability of the non-equiaxed crystal region is 0~0.5. When it is 0.5, it is considered to be an equiaxed crystal region.

[0066] It can be understood that the contour components, segmentation results and probability maps of the equiaxed crystal boundaries are used to accurately divide and identify the equiaxed crystal area and the non-equiaxed crystal area, and Bin is used to more quickly determine whether the division results are correct, thereby achieving refined segmentation of the equiaxed crystals of the ingot.

[0067] The energy generalization function formula of the ASLBF model is:

[0068]

[0069]

[0070] in, Represents the level set The total energy function, Represents a data item, , represents the correction factor, represents the smoothed Heaviside function, represents the correction compensation function, represents the energy modulation function, x represents the abscissa of the equiaxed crystal, and y represents the ordinate of the equiaxed crystal.

[0071] Specifically, the formula after energy adjustment is:

[0072]

[0073] in, represents the adjusted energy function, and represents the image intensity of the inner and outer regions fitted to the center pixel of the refined segmentation window, The pattern image showing the equiaxed crystal of the ingot, represents the Gaussian kernel function, is the scale parameter, Represents a probability plot.

[0074] It can be understood that when the refined segmentation window is in the equiaxed crystal region, the internal energy term Parameters The value ranges from 0 to 0.5, the external energy term The value of is 0.5-1. When the proportion of the external energy term increases, the initial contour graph is tightened inward during the iteration process, and the refined segmentation window is finally divided into internal areas. When the refined segmentation window is in the non-equiaxed crystal area, the internal energy term Parameters The value is 0.5-1, the external energy term The value of is 0-0.5. When the proportion of the external energy term decreases, the proportion of the internal energy term increases, so that the contour line reduces the internal area during the iteration, and the refined segmentation window is segmented into the background.

[0075] In one embodiment of the present application, partial differential equations and finite difference methods are used to iteratively solve all equiaxed crystal regions. When the refined segmentation window is in the foreground area of ​​the equiaxed crystal boundary, the external energy term accounts for a higher proportion, so that the refined segmentation window is completely divided into the foreground area; when the refined segmentation window is in the non-equiaxed crystal background area, the proportion of the internal energy term is increased, so that the refined segmentation window is divided into the Beijing area, so that the local equiaxed crystal region boundary information is effectively focused and captured.

[0076] Specifically, the formula of the partial differential equation is as follows:

[0077]

[0078] in, represents the set of all horizontal points in the pattern image, t represents the time variable, Heaviside function The derivative of and Represents the grayscale mean outside the image processing window and the grayscale mean inside the image processing window. represents the energy of the equiaxed crystal region, div represents the division function, represents the reinforcement function, the reinforcement function The formula is as follows:

[0079]

[0080] in, , , represents a kernel function that decreases and approaches 0 as x moves away from y. represents the dominant local intensity fitting energy function, then the partial differential equation is solved by the finite difference method, and the iterative formula is as follows:

[0081]

[0082] in, Represents the set of all horizontal points in the pattern image at time t.

[0083] Understandably, It is a joint function of x, y and the origin. Since the coordinate axes of the image function are fixed, the origin is also fixed, the ranges of x and y are determined, and they are all within the coordinates of the farthest boundary of the image. An x value has only one corresponding y value, so φ can also be regarded as a function containing only the unique variable x.

[0084] In the embodiments of the present application, iterative formulas and the finite difference method are used to solve partial differential equations to ensure the stability of the numerical solution, and reliable numerical solutions can be obtained even in complex equiaxed crystal structures. The finite difference method can obtain more accurate numerical solutions within a smaller error range, thereby improving the accuracy of the measurement results of the equiaxed crystals of the ingot.

[0085] In one embodiment of the present application, the coarse segmentation stage adopts a TU neural network, and the coarse segmentation stage specifically includes the following steps:

[0086] Expanding the first image feature into an n×n image patch array according to the position of the equiaxed crystal;

[0087] The image patch array is processed using a transform encoder to generate feature maps with different receptive fields;

[0088] The features of different receptive fields are adjusted using the Unet encoder to obtain the first feature;

[0089] Inputting the first image feature into a convolutional encoder for encoding to obtain a second feature;

[0090] Inputting the first feature and the second feature together into a decoder to obtain global topological information of the equiaxed crystal;

[0091] The global topological information of the equiaxed crystal is input into a 1×1 convolution to obtain the initial contour map of the equiaxed crystal;

[0092] The initial contour map of the equiaxed crystal is processed through the softmax layer to obtain a probability map.

[0093] In an embodiment of the present application, the position of the equiaxed crystal in the first image feature is expanded by image processing technology to form an n×n image patch array. The transform encoder can use methods such as convolutional neural network (CNN) to extract features from the image patch array and generate feature maps with different receptive fields, thereby improving the efficiency of coarse segmentation of equiaxed crystals. The Unet encoder adjusts the features of different receptive fields, extracts the global topological information of the equiaxed crystals through the processing of the Unet encoder and the convolution encoder, identifies the shape and distribution of the equiaxed crystals, and performs softmax processing on the initial contour map to intuitively represent the distribution probability of the equiaxed crystals.

[0094] S4. According to the measurement results of equiaxed crystals and the ingot casting process parameters, equiaxed crystal grading rules and grading models are established. The equiaxed crystal grading model evaluates the comprehensive equiaxed crystal ratio of the ingot equiaxed crystals according to the equiaxed crystal grading rules to obtain the equiaxed crystal grading results; wherein, the ingot casting process parameters include steel type, ingot width, ingot thickness, drawing speed, etc.

[0095] like Figure 3 As shown, specifically, the grading model includes a training phase and a testing phase, wherein in the training phase, a training set and a deep learning network ConvNeXt are used to train a data set of equiaxed crystal images of ingots with different levels of equiaxed crystal ratios, and a preliminary weight of the first image feature of the trained grading model is obtained, and the preliminary weight is weighted using a normalized weight configuration formula according to the classification rules, grading rules and test results, and the comprehensive equiaxed crystal ratio is calculated; in the testing phase, the trained grading model is used to identify equiaxed crystals in the ingot, and the grading result of the equiaxed crystal is determined by the comprehensive equiaxed crystal ratio; wherein the classification rule is to classify the equiaxed crystal area according to the position of the equiaxed crystal, the grading rule is to evaluate according to the parameters of the equiaxed crystal, and the test result is the average absolute error, average absolute percentage and error confidence score calculated according to the grading model.

[0096] It can be understood that in the training stage, a data set of pattern images of equiaxed crystals of ingots is collected, and the data is preprocessed, such as cropping, resizing, graying, etc., and then the data set of pattern images of equiaxed crystals of ingots is divided into a training set and a test set. The training set and the deep learning network ConvNeXt are used to train the image data set of equiaxed crystals of ingots with different levels of equiaxed crystal rates to obtain a trained grading model, and the weights are allocated according to the normalized weight configuration formula, and the comprehensive equiaxed crystal rate is calculated; the test set verifies the trained grading model, optimizes the parameters of the grading model, and uses the optimized grading model to grade the equiaxed crystals of ingots to obtain the grading results of the equiaxed crystals.

[0097] It can be understood that by training with the data of the training set, the training results of the equiaxed crystals in the pattern image are also obtained, and the average absolute error (Average Absolute Error, AAE), average absolute percentage (Average Absolute Percentage, AAP) and error confidence score (Error Confidence Score, ECS) of the grading model are calculated based on the training results, where the training results include the number of grains A, the area of ​​the equiaxed crystal region , the length of the edge of the equiaxed crystal region L, the number of equiaxed grains in the boundary of the equiaxed crystal region , the total number of all grains in the equiaxed grain boundary , the total number of equiaxed crystals The grading model is verified using the data from the test set, the parameters of the grading model are optimized, and the optimized grading model is used to identify the equiaxed crystal image of the ingot to obtain the equiaxed crystal rating result.

[0098] In the embodiments of the present application, a deep learning network is used for training and testing to realize the automatic rating of equiaxed crystals in the ingot, thereby reducing the subjectivity and time cost of manual judgment. By allocating weights and calculating the comprehensive equiaxed crystal ratio, the importance of equiaxed crystals of different grades is comprehensively considered to obtain a more comprehensive evaluation result, which enables the rating results of equiaxed crystals of different grades to be compared on a unified scale, thereby improving the comparability and interpretability of the rating results.

[0099] The calculation formula for the normalized weight configuration is as follows:

[0100]

[0101]

[0102]

[0103]

[0104] in, is the weight value of the number of equiaxed grains after normalized weight calculation, is the classification probability of the number of equiaxed grains in the first image feature, that is, the initial weight value of the number of first equiaxed grains, is the first quartile of the number of equiaxed grains, indicating the number of equiaxed grain data that account for the first 25% of the equiaxed grain data tested in the test phase. It is the third quartile of the number of equiaxed grains, indicating the number of equiaxed grain data that account for the first 75% of the equiaxed grain data measured in the test phase; is the weight value of the equiaxed crystal area after normalized weight calculation, is the classification probability of the equiaxed crystal area of ​​the ingot in the first image feature, that is, the initial weight value of the first equiaxed crystal area, is the first quartile of equiaxed grain area, indicating the number of equiaxed grain areas that account for the first 25% of the test area data in the test phase. is the third quartile of the equiaxed grain area, indicating the number of equiaxed grain areas that account for the first 75% of the area test data in the test phase; is the weight value of the equiaxed grain boundary length after normalized weight calculation, is the classification probability of the length of the equiaxed grain boundary of the ingot in the first image feature, that is, the initial weight value of the length of the first equiaxed boundary, is the first quartile of the equiaxed grain boundary length, indicating the equiaxed grain boundary lengths that account for the top 25% of the test boundary length data during the test phase. is the third quartile of the equiaxed grain boundary length, indicating the equiaxed grain boundary lengths that account for the top 75% of the boundary length test data during the test period; is the weight value of the number of equiaxed grain boundaries after normalized weight calculation, is the classification probability of the number of grains at the equiaxed grain boundary of the ingot in the first image feature, that is, the initial weight value of the number of grains at the first equiaxed grain boundary, It is the first quartile of the number of equiaxed grain boundary grains, indicating the number of equiaxed grain boundary grains that account for the first 25% of the test boundary grain number data in the test phase. It is the third quartile of the number of equiaxed grain boundary grains, indicating the number of equiaxed grain boundary grains that account for the first 75% of the test data of the number of boundary grains in the test stage.

[0105] In one embodiment of the present application, The calculated results are between 0.67 and 0.73. Between 0.26 and 0.35, The calculated results are between 0.33 and 0.37. The calculated result is between 0.65 and 0.66. Finally, it is determined is 0.7, is 0.3, is 0.35, is 0.65.

[0106] This application introduces quartiles in the calculation of normalized weights so that the grading results can show strong robustness to abnormal values ​​of equiaxed crystals in the ingot, and uses log (logarithm with base 10) for calculation. The normalized weights compress the larger values ​​in the original weight values ​​and maintain the differences between the smaller values ​​in the original weight values, so that the normalized weight configuration can calculate more equiaxed crystal data of the ingot, thereby improving the recognition efficiency of equiaxed crystals in the ingot.

[0107] Furthermore, the calculation formula of the comprehensive equiaxed crystal ratio is as follows:

[0108]

[0109] in, represents the comprehensive equiaxed crystal ratio, represents the total number of equiaxed crystals, A represents the number of grains, represents the area of ​​equiaxed crystal region, It represents the number of equiaxed grains in the boundary of the equiaxed crystal region, L represents the length of the edge of the equiaxed crystal region, It represents the total number of all grains in the boundary line, M represents the fineness of equiaxed crystals, K represents the uniformity of equiaxed crystals, AAE represents the average absolute error of all equiaxed crystal coordinates in the pattern image, AAP represents the average absolute percentage of all equiaxed crystal coordinates and all grain coordinates in the pattern image, ECS represents the error confidence score, and represents the ratio of the test set accuracy to the training set accuracy.

[0110] In one embodiment of the present application, the equiaxed crystal region is classified according to the equiaxed crystal position, including surface features, line features and position features, wherein different equiaxed crystal region features correspond to different indicators, as shown in Table 1:

[0111] Table 1:

[0112]

[0113] As can be seen from Table 1, the corresponding equiaxed crystal region characteristics can be obtained by detecting different indicators of the equiaxed crystal region. The equiaxed crystal grading rules are formulated according to the above classification rules of the equiaxed crystal region, and the grading rule optimization is completed through rule verification.

[0114] Among them, the grading rules include determining whether the shape of the equiaxed crystals meets the specified standards, measuring and evaluating the size of the equiaxed crystals, evaluating the distribution density of the equiaxed crystals in the ingot, evaluating according to the grain structure and clarity of the equiaxed crystals, etc. Users can set the grading rules according to actual conditions, and this application does not make specific limitations on this.

[0115] Furthermore, the equiaxed crystal grading model evaluates the comprehensive equiaxed crystal ratio of the ingot equiaxed crystal according to the equiaxed crystal grading rules, and obtains the equiaxed crystal grading results, wherein the grading standards are shown in Table 2:

[0116] Table 2

[0117]

[0118] As can be seen from Table 2, by classifying the comprehensive equiaxed crystal rate of the ingot equiaxed crystal according to the grade assessment standard, the grading result of the equiaxed crystal in the pattern image can be determined, and then whether the equiaxed crystal is qualified can be judged, which helps the foundry to achieve quality control of the ingot equiaxed crystal, timely discover and deal with the quality problems of the equiaxed crystal, ensure the quality and stability of the product, and through automated rating and quality control, it can reduce the time and cost of manual judgment and improve production efficiency and production capacity.

[0119] S5. The measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals are stored and counted, and displayed using a visual interface.

[0120] It can be understood that the present application stores and performs data statistical analysis on the measurement results of the equiaxed crystals of the ingot, the grading results of the equiaxed crystals, and the corresponding ingot process parameters through a data storage system. The user can timely control the quality of the equiaxed crystals of the ingot based on the results of the data statistical analysis, optimize the quality of the equiaxed crystals and improve the process by modifying the ingot process parameters, thereby improving the quality of the equiaxed crystals of the ingot.

[0121] Furthermore, the visualization interface includes a system operation interface, a parameter configuration interface and a result visualization interface. The system operation interface is used to control the position detection of equiaxed crystals of the ingot, sensor reset and limit, data scanning and saving, and the system operation interface has corresponding operation buttons for controllable operation, making the operation more convenient and intuitive; the parameter configuration interface can flexibly adjust the network configuration, equiaxed crystal segmentation network parameters, grading rules, etc. to adapt to detection in different environments; the result visualization interface can display the segmentation results of the equiaxed crystals of the ingot and the final grading results. Users can adjust and optimize the ingot process parameters according to the final grading results, thereby improving the quality and production efficiency of the equiaxed crystals of the ingot, reducing the influence of human factors, and improving the scientificity and controllability of production management.

[0122] The present invention provides a system for identifying and determining equiaxed crystals of a casting billet, which adopts the identification and determination method as described above, and comprises:

[0123] A preprocessing module, used for collecting a pattern image of equiaxed crystals of the ingot, preprocessing the pattern image to obtain a first processed image;

[0124] A feature extraction module, used for inputting the first processed image into a convolutional neural network to extract image features, obtaining first image features, and determining the position of the equiaxed crystals of the ingot in the pattern image according to the first image features;

[0125] An identification and segmentation module is used to identify and segment the first image feature according to the position of the equiaxed crystal of the ingot using an equiaxed crystal segmentation network to obtain a measurement result of the equiaxed crystal of the ingot;

[0126] The grading module is used to establish equiaxed crystal grading rules and grading models according to the measurement results of equiaxed crystals and the casting process parameters. The equiaxed crystal grading model evaluates the comprehensive equiaxed crystal ratio of the casting equiaxed crystals according to the equiaxed crystal grading rules to obtain the equiaxed crystal grading results;

[0127] The display module is used to store and compile statistics of the measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals, and to display them using a visual interface.

[0128] In an embodiment of the present application, the recognition and determination system automatically collects the pattern image of the equiaxed crystal of the ingot and preprocesses the pattern image through the preprocessing module. The feature extraction module uses a convolutional neural network to extract the first image feature, which can better represent the characteristics of the equiaxed crystal of the ingot. The recognition and segmentation module determines the position of the equiaxed crystal of the ingot according to the first image feature, and then uses the equiaxed crystal segmentation network to identify and segment the equiaxed crystal, accurately measures the morphology and size of the equiaxed crystal, and improves the accuracy of the equiaxed crystal measurement. The grading module establishes equiaxed crystal grading rules and grading models based on the equiaxed crystal measurement results and the ingot process parameters, and uses the equiaxed crystal grading model to grade the evaluation results of the equiaxed crystal of the ingot according to the equiaxed crystal grading rules to obtain the grading results of the equiaxed crystal, so that the recognition and determination system can more objectively evaluate the quality of the equiaxed crystal and improve the accuracy of the equiaxed crystal grading. The display module stores and counts the measurement results and grading results of the equiaxed crystal of the ingot, and displays them using a visual interface to facilitate users to perform data analysis and decision-making. At the same time, the recognition and determination system can automatically generate reports and statistical charts, improving the efficiency and accuracy of data processing.

[0129] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to implement the identification and determination method as described above.

[0130] The present invention provides an electronic device, comprising: at least one processor, at least one memory, a communication interface and a bus; wherein the processor, memory and communication interface communicate with each other via the bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to implement the identification and determination method as described above.

[0131] 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 principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for identifying and determining equiaxed crystals in a casting billet, characterized in that: The following steps are involved: S1, collecting a pattern image of equiaxed crystals of a casting billet, and preprocessing the pattern image to obtain a first processed image; S2, inputting the first processed image into a convolutional neural network to extract image features, obtaining first image features, and determining the position of the equiaxed crystals of the ingot in the pattern image according to the first image features; S3, using an equiaxed crystal segmentation network to identify and segment the first image feature according to the position of the equiaxed crystal of the ingot, to obtain a measurement result of the equiaxed crystal of the ingot; S4. According to the results of equiaxed crystal measurement and the process parameters of the ingot, an equiaxed crystal grading rule and a grading model are established. The equiaxed crystal grading model performs a grading evaluation on the comprehensive equiaxed crystal rate of the ingot equiaxed crystal according to the equiaxed crystal grading rule to obtain the equiaxed crystal grading result; S5, storing and counting the measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals, and displaying them using a visual interface; The equiaxed crystal segmentation network uses the TUnet-ASLBF model, which includes a coarse segmentation stage and a fine segmentation stage. The prior information of the coarse segmentation stage is input into the fine segmentation stage for fine segmentation to obtain the measurement results of the equiaxed crystal of the ingot; The prior information of the rough segmentation stage includes the initial contour map and probability map of the equiaxed crystal. The fine segmentation stage adopts the ASLBF model, which specifically includes the following steps: The initial contour map of the equiaxed crystal is used as the initial value of the ASLBF model, the probability map is used as the energy modulation parameter of the ASLBF model contour contraction, and the ratio of the internal energy term to the external energy term is adjusted according to the center position of the refined segmentation window; The initial contour map is identified using the strengthening function to obtain all equiaxed crystal regions in the initial contour map; All equiaxed crystal regions are processed using partial differential equations and finite difference methods to obtain the measurement results of equiaxed crystals of the ingot. The partial differential equation is formulated as follows: ; in, represents the set of all horizontal points in the pattern image, t represents the time variable, Heaviside function The derivative of and Represents the grayscale mean outside the image processing window and the grayscale mean inside the image processing window. represents the energy of the equiaxed crystal region, div represents the division function, represents the reinforcement function, Represents the correction coefficient, strengthening function The formula is as follows: ; in, represents the abscissa of the equiaxed crystal; The coarse segmentation stage adopts the TU neural network, and the coarse segmentation stage specifically includes the following steps: Expanding the first image feature into an n×n image patch array according to the position of the equiaxed crystal; The image patch array is processed using a transform encoder to generate feature maps with different receptive fields; The features of different receptive fields are adjusted using the Unet encoder to obtain the first feature; Inputting the first image feature into a convolutional encoder for encoding to obtain a second feature; Inputting the first feature and the second feature together into a decoder to obtain global topological information of the equiaxed crystal; The global topological information of the equiaxed crystal is input into a 1×1 convolution to obtain the initial contour map of the equiaxed crystal; The initial contour map of the equiaxed crystal is processed through the softmax layer to obtain a probability map.

2. A method for identifying and determining equiaxed crystals of a casting billet as claimed in claim 1, characterized in that: The grading model includes a training phase and a testing phase, wherein in the training phase, a training set and a deep learning network ConvNeXt are used to train a data set of equiaxed crystal images of ingots with different levels of equiaxed crystal ratios, and a preliminary weight of the first image feature of the trained grading model is obtained. The preliminary weight is weighted using a normalized weight configuration formula according to the classification rule, the grading rule and the test result, and the comprehensive equiaxed crystal ratio is calculated; in the testing phase, the trained grading model is used to identify the equiaxed crystals of the ingot, and the grading result of the equiaxed crystal is determined by the comprehensive equiaxed crystal ratio; wherein the classification rule is to classify the equiaxed crystal area according to the position of the equiaxed crystal, the grading rule is to evaluate according to the parameters of the equiaxed crystal, and the test result is the average absolute error, average absolute percentage and error confidence score calculated according to the grading model.

3. A method for identifying and determining equiaxed crystals of a casting according to claim 2, characterized in that: The calculation formula of the comprehensive equiaxed crystal ratio is as follows: ; in, represents the comprehensive equiaxed crystal ratio, represents the total number of equiaxed crystals, A represents the number of grains, represents the area of ​​equiaxed crystal region, It represents the number of equiaxed grains in the boundary of the equiaxed crystal region, L represents the length of the edge of the equiaxed crystal region, represents the total number of all grains in the boundary line, M represents the fineness of the equiaxed crystal, K represents the uniformity of the equiaxed crystal, AAE represents the average absolute error of all equiaxed crystal coordinates in the pattern image, AAP represents the average absolute percentage of all equiaxed crystal coordinates in the pattern image to all grain coordinates, and ECS represents the error confidence score.

4. A system for identifying and determining equiaxed crystals in a casting, characterized in that: The identification and determination method according to any one of claims 1 to 3 is adopted, comprising: A preprocessing module, used for collecting a pattern image of equiaxed crystals of the ingot, preprocessing the pattern image to obtain a first processed image; A feature extraction module, used for inputting the first processed image into a convolutional neural network to extract image features, obtaining first image features, and determining the position of the equiaxed crystals of the ingot in the pattern image according to the first image features; An identification and segmentation module is used to identify and segment the first image feature according to the position of the equiaxed crystal of the ingot using an equiaxed crystal segmentation network to obtain a measurement result of the equiaxed crystal of the ingot; The grading module is used to establish equiaxed crystal grading rules and grading models according to the measurement results of equiaxed crystals and the casting process parameters. The equiaxed crystal grading model evaluates the comprehensive equiaxed crystal ratio of the casting equiaxed crystals according to the equiaxed crystal grading rules to obtain the equiaxed crystal grading results; The display module is used to store and compile statistics of the measurement results of the equiaxed crystals of the ingot and the grading results of the equiaxed crystals, and to display them using a visual interface.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to implement the identification and determination method according to any one of claims 1 to 3.

6. An electronic device, characterized in that: include: at least one processor, at least one memory, a communication interface, and a bus; Wherein, the processor, memory, and communication interface communicate with each other via the bus; The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to implement the identification and determination method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Level set image segmentation method based on local entropy

    CN110378924A

  • Ultrasonic image focus description method and device, computer equipment and storage medium

    CN113034426A

  • Method and apparatus for grain size rating of polycrystalline material

    CN114140370A

  • Casting blank equiaxed crystal intelligent identification and performance determination method and system and storage medium

    CN114943728A

  • Method and system for automatically rating center segregation of continuous casting billet

    CN114998254A