A deep learning-based ingot shrinkage hole and shrinkage porosity intelligent prediction and process recommendation method

By employing a dual-network iterative optimization mechanism of CNN-AE and FCN, efficient prediction of shrinkage cavities and porosity defects in ingots and automatic recommendation of process parameters are achieved. This solves the problems of low process optimization efficiency and insufficient accuracy in existing technologies, thereby improving the quality and stability of ingot production.

CN123139750APending Publication Date: 2026-11-20TIANJIN HEAVY EQUIP ENG RES +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611318649.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies cannot quickly and accurately predict shrinkage cavities and porosity defects in ingots and reverse-engineer process parameters, resulting in low efficiency and high cost of process optimization, and failing to meet the rapid process design needs of multiple batches and different chemical conditions in industrial settings.

Method used

A closed-loop iterative optimization mechanism based on deep learning, CNN-AE+FCN dual network, is adopted. By converting the defect cloud map of the casting into a low-dimensional latent vector, the process parameters are recommended using the FCN-inverse model. Automatic inverse recommendation of process parameters is achieved through forward verification and iterative correction.

Benefits of technology

It achieves efficient and accurate prediction of shrinkage cavities and porosity defects in ingots and automatic recommendation of process parameters, improving ingot yield and production stability, solving the problems of multiple solutions and low accuracy of single inverse models, and adapting to the needs of multi-condition production scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139750A_ABST
    Figure CN123139750A_ABST
Patent Text Reader

Abstract

The present application relates to a kind of based on deep learning's ingot shrinkage porosity intelligent prediction and process recommendation method, belong to metal ingot solidification numerical simulation and intelligent quality control technical field, solve the problem that existing process optimization is difficult to realize efficient reverse recommendation.A kind of ingot shrinkage porosity intelligent prediction and process recommendation method, including the following steps: the casting standard defect cloud chart is converted into target low-dimensional hidden vector;Recommended process parameters are obtained by inputting target low-dimensional hidden vector into FCN-inverse model;Predicted low-dimensional hidden vector is obtained by inputting recommended process parameters into FCN model;Whether recommended process parameters meet the standard based on the error between target low-dimensional hidden vector and predicted low-dimensional hidden vector is judged: if not up to standard, recommended process parameters and predicted low-dimensional hidden vector are input into FCN-inverse model and model iteration correction is carried out;If up to standard, iteration is terminated and recommended process parameters are output as production process parameters.Precise, fast, intelligent ingot shrinkage porosity prediction and process parameter recommendation are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of numerical simulation and intelligent quality control technology for solidification of metal ingots, and particularly to a method for intelligent prediction and process recommendation of shrinkage cavities and porosity in ingots based on deep learning. Background Technology

[0002] Ingot solidification is a complex process involving strong coupling of multiple physical fields. Shrinkage cavities and porosity are the main defects affecting quality. The rational matching of process parameters such as pouring temperature, pouring speed, and cooling water flow rate directly determines the ingot melt feeding efficiency, solidification rate, and solute diffusion uniformity, and is a key link in suppressing shrinkage cavities and porosity defects.

[0003] Currently, in the field of ingot shrinkage cavity and porosity defect control and process optimization, the existing technical system includes the following two core solutions: Firstly, traditional numerical simulation-based process optimization is the mainstream technical solution for current ingot casting process design. This method combines the Niyama criterion, volume shrinkage method, and porosity model to predict shrinkage cavities and porosity defects. Engineers then manually compare the differences in defect distribution under different process parameters based on the simulation results to complete the selection and optimization of process parameters. The general process design implementation process of this type of technology is as follows: determining initial process parameters, 3D modeling and simulation configuration, multiphysics coupling solution, defect result post-processing, manual comparison of multiple sets of defect data under different working conditions, manual selection of optimal process parameters, and trial production of the process parameters. Overall, it is a passive process optimization mode of "simulation verification - manual selection".

[0004] Secondly, the parameter-defect mapping prediction method based on machine learning does not require full-process simulation calculations. It uses process parameters such as pouring temperature, cooling water flow rate, and ingot size as inputs, and scalar indicators such as shrinkage rate and defect area as outputs. It relies on algorithms such as BP neural networks, random forests, and support vector machines to construct surrogate prediction models, achieving rapid defect prediction and assisting in the initial screening of process parameters. The process design and implementation process of this technology is as follows: designing orthogonal process experiments, obtaining sample data through ProCAST simulation, manually extracting process parameters and defect scalar labels, training the machine learning prediction model, inputting candidate process parameters to predict defects, and manually selecting the optimal process scheme. Although this method improves defect prediction efficiency, the process optimization stage still relies entirely on manual decision-making. Furthermore, the defect scalar labels lose core information such as defect spatial distribution, three-dimensional morphology, and gradient features, failing to fully characterize the deep coupling relationship between process parameters and local defects and solidification field evolution. This results in the model being unable to guide refined process parameter optimization, and the defect control effect of the optimized process scheme is unstable, making it impossible to achieve rapid iterative reverse process design based on defect control objectives.

[0005] In summary, existing technologies cannot meet the needs of rapid prediction of shrinkage cavities and porosity in ingots and reverse design of process parameters. The main problem is that existing process optimization is difficult to achieve efficient reverse recommendation.

[0006] In addition, traditional numerical simulation process optimization methods have extremely low optimization efficiency, rely heavily on human experience, and are costly. The single process parameter optimization dimension cannot meet the rapid process design needs of multiple batches and different working conditions in industrial sites. The parameter-defect mapping prediction method based on machine learning has no process iterative design capability and weak model generalization ability, and cannot achieve cross-working conditions and large-scale general process design.

[0007] Therefore, existing technologies cannot directly output optimal process parameters based on actual production quality control requirements. Summary of the Invention

[0008] Based on the above analysis, the embodiments of the present invention aim to provide a deep learning-based intelligent prediction and process recommendation method for ingot shrinkage cavity and porosity, in order to solve the problems of existing process optimization relying on manual trial and error, long iteration time, and difficulty in achieving automatic reverse process recommendation.

[0009] On one hand, embodiments of the present invention provide a method for intelligent prediction and process recommendation of shrinkage cavities and porosity in ingots, comprising the following steps: The standard defect cloud map of the casting is converted into a target low-dimensional hidden vector; the standard defect cloud map represents a casting defect image that meets the production quality control requirements. The target low-dimensional latent vector is input into the FCN-inverse model to obtain the recommended process parameters; The recommended process parameters are input into the FCN model to obtain the predicted low-dimensional latent vector; Based on the error between the target low-dimensional latent vector and the predicted low-dimensional latent vector, it is determined whether the recommended process parameters meet the standard: if they do not meet the standard, the recommended process parameters and the predicted low-dimensional latent vector are input into the FCN-inverse model for model iterative correction; if they meet the standard, the iteration is terminated and the recommended process parameters are output as production process parameters.

[0010] Furthermore, the encoding module based on the CNN-AE network converts the standard defect cloud map of the casting into the target low-dimensional latent vector; The CNN-AE network includes an encoding module and a decoding module. The encoding module is used to map the defect cloud map into a low-dimensional latent vector, and the decoding module is used to reconstruct the defect cloud map based on the low-dimensional latent vector.

[0011] Furthermore, the CNN-AE network is trained based on a first dataset, which consists of operating parameters and a defect cloud. Figure 1 One-to-one corresponding dataset; The operating parameters include ingot size parameters and casting process parameters. The ingot size parameters include ingot diameter and ingot height. The casting process parameters include pouring temperature, pouring speed and cooling water flow rate. The defect cloud map is a defect cloud map of the casting obtained by the casting process based on the aforementioned working condition parameters.

[0012] Furthermore, the method further includes constructing an original dataset, and obtaining the first dataset based on preprocessing the original dataset; the construction of the original dataset includes: Set simulation conditions, including simulation model, simulation environment, and criteria for identifying shrinkage cavities and porosity defects; The initial values ​​of the operating parameters are determined based on a preset range and step size; Multiple sets of differentiated simulation test operating parameters were obtained by performing orthogonal experimental full combination design on the initial values ​​of the operating parameters; Based on the simulation conditions, standardized 3D modeling, mesh generation, and simulation solution are performed on the working conditions corresponding to the simulation test parameters of each group, and the working condition parameters and defect cloud map under the working condition are output to construct the original dataset.

[0013] Further, the original dataset is preprocessed, including: The original dataset is cleaned and filtered to retain valid samples that match the operating parameters with the defect cloud map. The ingot size parameters and process parameters in the operating condition parameters are normalized; Remove mesh ghosting and pixel noise from the defect cloud map, and perform standardization processing. Then, uniformly crop and scale all the defect cloud maps to a preset fixed size. The preprocessed output operating parameters are compared with the defect cloud. Figure 1 The first dataset is formed by a one-to-one correspondence.

[0014] Further, training the CNN-AE network based on the first dataset includes: The total loss function used when training the CNN-AE network is calculated as follows: ; In the formula, To reconstruct the mean squared error loss; The Niyama criterion constraint loss is used to constrain the reconstruction results to meet the cast steel shrinkage porosity criterion. This is the volume shrinkage conservation loss, used to constrain the deviation between the total pore volume of the reconstructed image and the actual simulated pore volume; λ 1. λ 2 represents the balancing weight.

[0015] Furthermore, the training process of the FCN model and the FCN-inverse model includes: The FCN model and the FCN-inverse model are trained based on the second dataset; The FCN model is used to construct the nonlinear mapping relationship between the operating parameters and the low-dimensional latent vector; The FCN-inverse model is used to construct the inverse nonlinear mapping relationship between the low-dimensional hidden vector and the casting process parameters; The FCN model and the FCN-inverse model both include an input layer, multiple hidden layers, and an output layer, and the dimensions of the input layer of the FCN model and the output layer of the FCN-inverse model match the number of working condition parameters.

[0016] The second dataset is obtained based on the first dataset and the encoding module, specifically including: inputting all defect cloud maps in the first dataset into the encoding module, performing batch latent vector extraction, outputting a low-dimensional latent vector corresponding to each defect cloud map, wherein the low-dimensional latent vector is a unique quantitative representation of the defect features, and mapping the operating parameters in the first dataset to the low-dimensional latent vectors one by one to obtain the second dataset.

[0017] Furthermore, the second dataset is obtained based on the first dataset and the encoding module, and includes: All defect cloud maps in the first dataset are input into the encoding module for batch latent vector extraction, and a low-dimensional latent vector corresponding to each defect cloud map is output. The low-dimensional latent vector is a unique quantitative representation of the defect features. The operating parameters in the first dataset are mapped one-to-one with the low-dimensional latent vectors to obtain the second dataset.

[0018] Furthermore, the method for determining whether the recommended process parameters meet the standards is as follows: If the mean square error of the defect features If the predicted low-dimensional latent vector corresponding to the current process parameters matches the target low-dimensional latent vector, the shrinkage cavity and porosity defects of the ingot meet the production quality control threshold requirements, and the current iterative process parameter combination is deemed to meet the standard; otherwise, it does not meet the standard. in, To meet the actual quality control requirements of cast steel production, a preset allowable threshold for defect characteristic errors is established.

[0019] Furthermore, it also includes predicting shrinkage cavities and porosity in ingots based on ingot size parameters and current process parameters; the prediction steps include: The ingot size parameters and current process parameters are preprocessed to output standardized operating parameters. The working condition parameters are input into the FCN model, and the low-dimensional hidden vector of the shrinkage cavity and porosity defects corresponding to the working condition parameters is predicted and output. The low-dimensional latent vector is input into the decoding module, and through multi-layer upsampling and deconvolution operations, a cloud map of shrinkage and porosity defects is predicted.

[0020] Compared with the prior art, the present invention can achieve at least one of the following beneficial effects: 1. This invention adopts a CNN-AE+FCN dual-network closed-loop iterative optimization mechanism, which can efficiently output compliant production process parameter combinations based on preset production quality control requirements, without the need for manual trial and error debugging, and accurately match the production quality requirements of different grades of ingots. It solves the problems of multiple solutions and low accuracy of single reverse models, thereby effectively improving the ingot yield and production stability, and realizing automatic reverse process recommendation.

[0021] 2. This invention relies on the CNN-AE encoding mechanism to compress massive pixel data into low-dimensional latent vectors containing all core defect features. These low-dimensional latent vectors represent all spatial features of the defects, abandoning manual scalar statistical methods and fully preserving the location, morphology, and density gradient distribution details of shrinkage cavities and porosity defects in ingots. This solves the curse of dimensionality problem associated with direct fitting of high-dimensional images. By integrating the Niyama criterion and multiple composite loss functions based on volume shrinkage conservation, the invention addresses issues such as feature distortion, false defects, and defect feature loss by simultaneously constraining feature restoration performance through data accuracy and physical mechanisms, thus achieving refined defect representation.

[0022] 3. This invention focuses on image feature extraction based on CNN-AE network and on nonlinear mapping of working conditions based on FCN network. The split architecture reduces the difficulty of model fitting and effectively avoids the problems of mixed features and insufficient fitting of single network. Thus, it can maintain prediction accuracy when facing new sizes and working conditions. The two networks work together to greatly improve the prediction accuracy and generalization of ingot shrinkage and porosity.

[0023] In this invention, the above-described technical solutions can be combined with each other to achieve more preferred combinations. Other features and advantages of this invention will be set forth in the following description, and some advantages may become apparent from the description or be learned by practicing the invention. The objects and other advantages of this invention can be realized and obtained from what is particularly pointed out in the description and drawings. Attached Figure Description

[0024] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. Figure 1 A flowchart illustrating the intelligent prediction and process recommendation method for shrinkage cavity and porosity in ingots provided by this invention. Figure 2 This is a schematic diagram of the encoding and decoding of the CNN-AE convolutional neural network provided by the present invention; Figure 3 A schematic diagram illustrating the training and selection of the FCN-inverse model and the FCN model provided by this invention; Figure 4 This is a schematic diagram of the closed-loop iterative correction and process parameter design of the FCN-inverse model and the FCN model provided by the present invention. Detailed Implementation

[0025] Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not intended to limit the scope of the present invention.

[0026] In existing ingot casting processes, traditional numerical simulation relies on iterative solutions to multiphysics control equations, which can accurately reconstruct the physical mechanisms of defect evolution. However, the computational load for iterative solutions to high-dimensional equations is extremely large, making it impossible to respond in real time to fluctuations in operating conditions. Traditional machine learning methods abandon physical mechanisms and rely solely on manually extracted defect scalar labels to construct shallow mapping relationships, losing spatial features of defects and failing to guarantee the accuracy of process parameter optimization. This invention is based on an innovative paradigm that combines data-driven approaches with physical mechanism constraints. It adopts a layered technical principle of "reverse parameter extrapolation - forward verification - error feedback - iterative correction" to achieve a balance between the accuracy and efficiency of process parameters. This invention relies on ProCAST simulation to obtain a defect cloud map dataset that conforms to the physical mechanism, ensuring the physical authenticity of the original samples; it uses CNN-AE convolutional coding to reduce the dimensionality and refine the features of high-dimensional, highly redundant defect pixel images; and through a dual-model closed-loop iterative mechanism, it continuously corrects the error of the reverse process inference model FCN-inverse model with the forward high-precision FCN model as the verification benchmark, and efficiently outputs compliant production process parameter combinations; in addition, it realizes rapid inference from operating parameters to defect features based on the FCN model, and combines it with a decoding module to quickly predict and reconstruct the defect cloud map.

[0027] A specific embodiment of the present invention discloses a method for intelligent prediction and process recommendation of shrinkage cavities and porosity in ingots, such as... Figure 1 As shown.

[0028] Step S1: Convert the standard defect cloud map of the casting into a target low-dimensional latent vector; the standard defect cloud map represents the image of the casting defect that meets the production quality control requirements.

[0029] According to the quality control requirements for ingot production, the expected standard defect cloud map of the casting is determined. The standard defect cloud map is input into the CNN-AE network encoding module that has been trained, and the unique corresponding target low-dimensional latent vector is encoded as the input benchmark for reverse process reasoning. The low-dimensional latent vector is the feature vector of the low-dimensional latent space of the defect.

[0030] Step S2: Input the target low-dimensional latent vector into the FCN-inverse model to obtain the recommended process parameters.

[0031] The standardized low-dimensional latent vector of the objective is input into the FCN-inverse model, and end-to-end inference outputs a set of recommended process parameters. Based on the quality control requirements for ingot production, a reasonable range for the process parameters is preset. The recommended process parameters are then threshold-screened, eliminating invalid parameters that exceed the limits and retaining only compliant process parameters within the range. The resulting recommended process parameters are used as the initial recommended process parameters. These process parameters are a combination of pouring temperature, pouring speed, and cooling water flow rate.

[0032] Step S3: Input the recommended process parameters into the FCN model to obtain the predicted low-dimensional latent vector.

[0033] The forward FCN model, which boasts high accuracy, serves as the benchmark for evaluating recommended process parameters. The input is the initial recommended process parameters output by the inverse FCN model, and the output is the predicted low-dimensional latent vector. Based on this predicted low-dimensional latent vector and the target low-dimensional latent vector of the FCN-inverse model, the FCN-inverse model is iteratively trained to correct the accuracy of the process parameter predictions output by the FCN-inverse model.

[0034] Step S4: Determine whether the recommended process parameters meet the standard based on the error between the target low-dimensional latent vector and the predicted low-dimensional latent vector. If they do not meet the standard, input the recommended process parameters and the predicted low-dimensional latent vector into the FCN-inverse model for model iteration correction. If they meet the standard, terminate the iteration and output the recommended process parameters as production process parameters.

[0035] Using the high-precision forward FCN model as the evaluation benchmark for recommended process parameters and the FCN-inverse model as the kernel for process iteration updates, a closed-loop optimization mechanism of "inverse parameter estimation - forward verification - error feedback - iterative correction" is constructed to continuously reduce the defect error corresponding to the process parameters until the optimal process parameters that meet the quality control requirements of ingot production are output.

[0036] In a specific embodiment of the present invention, step S1 is to convert the standard defect cloud map of the casting into a target low-dimensional latent vector; the standard defect cloud map represents a casting defect image that meets the production quality control requirements.

[0037] During implementation, ProCAST simulation software is used to adjust the input operating parameters and output a standard defect cloud map of the casting that meets the quality control requirements of ingot production.

[0038] The encoding module based on the CNN-AE network converts the standard defect cloud map of the casting into the target low-dimensional latent vector.

[0039] Specifically, the standard defect cloud map of the casting is input into the trained CNN-AE network encoding module to obtain a unique corresponding low-dimensional latent vector of the target, which serves as the input benchmark for reverse process reasoning.

[0040] The CNN-AE network includes an encoding module and a decoding module. The encoding module is used to map the defect cloud map into a low-dimensional latent vector, and the decoding module is used to reconstruct the defect cloud map based on the low-dimensional latent vector.

[0041] The CNN-AE network was trained based on a first dataset, which consisted of operating parameters and a defect cloud. Figure 1 A corresponding dataset.

[0042] The operating parameters include ingot size parameters and casting process parameters. The ingot size parameters include ingot diameter and ingot height. The casting process parameters include pouring temperature, pouring speed and cooling water flow rate. The defect cloud map is a defect cloud map of the casting obtained by the casting process based on the aforementioned working condition parameters.

[0043] Constructing the original dataset, and obtaining the first dataset based on preprocessing the original dataset; the construction of the original dataset includes: (1) Set simulation conditions, including simulation model, simulation environment and shrinkage cavity and porosity defect discrimination criteria: For the solidification and feeding characteristics of ingots, the ProCAST solidification volume shrinkage solution model and Niyama shrinkage cavity and porosity defect discrimination criteria are adopted. Based on the coupling effect of melt flow, solute segregation and volume shrinkage during solidification, the ambient temperature is uniformly set to 25℃ to ensure the rationality of the defect simulation mechanism.

[0044] (2) Determine the initial values ​​of the working condition parameters based on the preset range and step size, and set the two types of core variable parameters, namely ingot size parameters and process parameters, to cover the entire working condition scenario. Set the parameter gradient according to the value range and step size of all parameters. The initial values ​​of the working condition parameters are specifically set as follows: the ingot diameter range is 0.5m-1.5m, and the value step size is 0.5m; the ingot height range is 2m-4m, and the value step size is 1m; the pouring temperature range is 1500℃-1650℃, and the value step size is 30℃; the pouring speed range is 0.5m / s-2.0m / s, and the value step size is 0.5m / s; the cooling water flow rate range is 2m³ / h-6m³ / h, and the value step size is 2m³ / h.

[0045] (3) Based on the above parameters with step size, the initial values ​​of the working condition parameters are designed by orthogonal experiment to obtain multiple sets of differentiated simulation test working condition parameters. The generated multiple sets of differentiated simulation test working condition parameters meet the diverse requirements of sample collection.

[0046] (4) Based on the simulation conditions, perform standardized three-dimensional modeling, mesh generation and simulation solution for the working conditions corresponding to the simulation test working conditions parameters of each group, output the working condition parameters and defect cloud map under the working conditions, and construct the original dataset.

[0047] Based on SolidWorks 3D modeling software and ProCAST simulation software, standardized 3D modeling, mesh generation, and simulation solving operations were performed for the working conditions corresponding to the parameters of each group of simulation tests. Specifically, this included: a) Standardized 3D modeling: Based on SolidWorks 3D modeling software, match the ingot diameter and height parameters corresponding to each working condition, establish an integrated 3D model of the ingot entity, and simultaneously build auxiliary models for the gating system, cooling water circulation system, and casting cavity. Unify the modeling reference coordinate system and model scale to ensure that the 3D model structure of all working conditions is standardized and the format is uniform, and export a general model format that is compatible with ProCAST simulation.

[0048] b) Mesh generation: The mesh generation targets areas such as the ingot entity, gating channels, and cooling cavities that have completed standardized modeling. The tetrahedral unstructured mesh provided by ProCAST is used for mesh generation. Mesh refinement is performed on key areas of ingot forming (solidification area and areas prone to defects), while conventional mesh sizes are used for non-critical areas.

[0049] c) Simulation-based sample data: Simulations were performed on the operating conditions corresponding to each set of simulation test parameters to obtain two types of one-to-one corresponding sample data, which were then collected and saved: the first type of sample data consisted of all numerical operating condition parameters under the current operating condition; the second type of sample data consisted of two-dimensional distribution cloud maps of shrinkage cavities and porosity defects corresponding to the current operating condition. All defect cloud maps were uniformly calibrated to a resolution of 128×96 and stored separately in lossless compressed PNG format. A complete original dataset with paired operating condition parameters and defect cloud maps was constructed to provide standardized data support for subsequent data analysis and model training.

[0050] The raw dataset acquired during simulation undergoes standardized preprocessing to reduce data noise and dimensional interference, providing a high-quality data foundation for dual-network training. This includes: (1) Clean and filter the original dataset to retain valid samples that match the working condition parameters with the defect cloud map.

[0051] Specifically, invalid samples that do not converge in simulation or have blurred or distorted defect cloud maps are removed, while valid samples that match the operating parameters with the defect cloud maps are retained; mesh ghosting and pixel noise are removed from all defect cloud maps.

[0052] (2) Normalize each ingot size parameter and process parameter in the working condition parameters to obtain the working condition parameters that constitute the first dataset.

[0053] Specifically, to eliminate dimensional and process parameter differences, all numerical input parameters are normalized within the [0,1] interval to unify data distribution standards. The normalization calculation formula is as follows: ; In the formula, These are the normalized operating condition parameter values; These are the original operating condition parameter values; This represents the minimum value of the corresponding parameter data in the original dataset; This represents the maximum value of the corresponding parameter data in the original dataset.

[0054] (3) Remove mesh afterimages and pixel noise from the defect cloud map and perform standardization processing. Crop and scale all the defect cloud maps to a preset fixed size to obtain the defect cloud map constituting the first dataset.

[0055] Specifically, all defect cloud images are uniformly cropped and scaled to a fixed size (128×96) to eliminate the interference of image size and brightness differences on feature extraction. The processed defect cloud images are adapted to the input requirements of the CNN-AE network.

[0056] The preprocessed output operating parameters are compared with the defect cloud. Figure 1 The first dataset is formed by a one-to-one correspondence.

[0057] The CNN-AE network was trained based on the first dataset.

[0058] Specifically, a dedicated CNN-AE network is built to achieve the conversion between defective high-dimensional images and low-dimensional latent vectors. The network is symmetrically composed of an encoding module and a decoding module, both of which participate in end-to-end joint training, rather than independent parameter update training. The network weight parameters are optimized through iterative training to minimize image reconstruction error. The specific structure is as follows: Figure 2 As shown, the hierarchical structure and training parameters are as follows: (1) CNN-AE network hierarchical structure design: The encoder module employs a 5-layer convolutional + pooling stacked structure to extract features and compress dimensions of the defect image layer by layer. The convolutional kernel size is uniformly set to 3×3, the activation function is ReLU, and the pooling method is max pooling. Through multi-layer downsampling operations, the pixel features of the 128×96 high-dimensional defect image are compressed and purified layer by layer, and finally mapped to a fixed-dimensional low-dimensional latent vector. This latent vector contains the core spatial features of the defect and has no redundant pixel information. The specific formula is as follows: ; Single-layer coding unit operation (3×3 convolution kernel): ; In the formula, The input defect contour map has H=128, W=96, and C is the number of image channels; The encoder outputs low-dimensional latent space features; For encoder training parameters; , The encoders are respectively 3×3 convolution kernels and biases; It is the ReLU activation function; This is a max pooling operation; This is a two-dimensional convolution operation.

[0059] The decoding module (Decoder) employs a multi-layer upsampling + deconvolution stacked structure, symmetrical to the encoding module. It uses the low-dimensional latent vector output from the encoding module as input, performing feature restoration and dimensionality augmentation layer by layer to ultimately reconstruct a defect cloud map with the same size as the original input. The specific formula is as follows: ; Single-layer decoding unit operations: ; In the formula, The decoder outputs a reconstructed defect cloud map; These are the training parameters for the decoder; This is an upsampling operation; , The encoders are respectively Layer deconvolution kernel and bias; This is the deconvolution (transposed convolution) operation.

[0060] (2) CNN-AE training parameter settings: The number of iterations (epochs) is set to 300, the batch size (batch_size) is 32, the initial learning rate is 0.001, and the Adam optimizer is used.

[0061] (3) The total loss function used when training the CNN-AE network is used to ensure the accuracy and physical meaning of image reconstruction. The calculation formula is as follows: ; in, ; ; ; In the formula: To reconstruct the mean squared error loss, the original defect contour map is used. With reconstructing cloud maps The pixel mean square error; The loss is constrained by the Niyama criterion. Representative of the reconstruction of cloud map Calculate the Niyama criterion region by region; This is the loss due to volume contraction conservation; Operator for calculating the total pore volume of the defect cloud map; λ 1. λ 2 represents the balancing weight, with a value ranging from 0.1 to 0.5.

[0062] Niyama criterion-constrained loss is used to ensure the overall fidelity of the reconstructed image. To constrain the reconstruction results to meet the shrinkage porosity criterion of cast steel and suppress physical spurious defects, a loss mapping function with interval constraints is applied to eliminate spurious defects that violate the solidification mechanism; volume shrinkage conservation loss. Used to constrain the deviation between the total pore volume of the reconstructed image and the actual simulated pore volume.

[0063] (4) Convergence determination and model saving: When the total loss function continues to stabilize and no longer decreases, the CNN is determined to be converged. AE encoding The decoding network converges as a whole, and the CNN with optimal weights is preserved. AE model. At this point, the encoding module has the ability to extract low-dimensional latent features of defects, and the decoding module has the ability to reconstruct the image.

[0064] The second dataset is obtained based on the first dataset and the encoding module. Specifically, this includes: inputting all defect cloud maps from the first dataset into the encoding module, performing batch latent vector extraction, and outputting a low-dimensional latent vector corresponding to each defect cloud map. The low-dimensional latent vector is a unique quantitative representation of the defect features. The operating parameters in the first dataset are mapped one-to-one with the low-dimensional latent vectors to obtain the second dataset. The second dataset is used to train the FCN model and FCN-inverse model used in subsequent steps.

[0065] Specifically, using the trained CNN-AE network encoding module, batch feature transformation is performed on the defect cloud maps in the first dataset. A standardized dataset adapted for FCN network training is then constructed to obtain the second dataset. The construction process is as follows: (1) Batch latent vector extraction: Input all the defect cloud maps in the first dataset into the encoding module, and output the low-dimensional latent vector of each defect cloud map in batches. Use the low-dimensional latent vector to replace the traditional manual scalar label as the unique quantitative representation of the defect feature.

[0066] (2) Precise binding of dual-modal data: Each set of working parameters in the first dataset corresponds to a defect cloud map. Each defect cloud map is extracted by latent vector extraction and outputs a low-dimensional latent vector. A set of working parameters is bound to the corresponding low-dimensional latent vector to form a standardized sample pair of "working parameters-low-dimensional latent vector" to obtain the second dataset.

[0067] (3) Data set division: The dataset is randomly divided according to the ratio of 8:1:1, with 80% as training set, 10% as validation set, and 10% as independent test set. The validation set is used for hyperparameter tuning during the training process, and the test set is used for testing the generalization ability of the final model to prevent overfitting.

[0068] Step S2: Input the target low-dimensional latent vector into the FCN-inverse model to obtain the recommended process parameters.

[0069] The target low-dimensional latent vector output by the CNN-AE network encoding module is used as the input to the FCN-inverse model to generate recommended process parameters. These parameters are then combined with industrial production boundary constraints to complete compliance screening, resulting in effective candidate process parameter combinations as the initial recommended process parameters. The specific implementation is as follows: (1) Recommended process parameter reverse reasoning: Input the target low-dimensional latent vector into the FCN-inverse model, and output a set of normalized recommended process parameters through end-to-end reasoning. After inverse normalization, the true recommended process parameter values ​​are obtained. The inverse normalization calculation formula is: ; In the formula, The actual recommended process parameter values ​​after denormalization; These are the normalized operating condition parameter values; This represents the minimum value of the corresponding parameter data in the original dataset; This represents the maximum value of the corresponding parameter data in the original dataset.

[0070] (2) Industrial parameter boundary constraint screening: a legal industrial range of process parameters is preset, and the actual recommended process parameters are screened by threshold, and invalid parameters that exceed the limit are removed. Only the compliant and valid candidate process parameter combinations within the range are retained as the initial recommended process parameters for output.

[0071] The FCN-inverse model is trained based on the second dataset. This model is used to construct the inverse nonlinear mapping relationship between the low-dimensional latent vector and the casting process parameters.

[0072] The FCN-inverse model, a defect feature-driven process inference model, is trained based on a second dataset. This second dataset is a standardized sample set of "operating condition parameters - low-dimensional latent vectors" constructed in two stages. Closed-loop iterative correction is performed using a high-precision forward model, addressing the issues of low inference accuracy and substandard process parameters in a single inverse model. This enables intelligent and replicable recommendation of compliant process parameters. A diagram illustrating the training and selection process of the FCN-inverse model is shown below. Figure 3 As shown.

[0073] When training the FCN-inverse model, the ingot size parameters are fixed, and only the process parameters are used as the optimization output to realize the mapping relationship between the defect features of the low-dimensional latent vector and the process parameters. The specific training process is as follows: (1) FCN-inverse model network structure configuration: The network consists of an input layer, a hidden layer, and an output layer; the input layer is a low-dimensional latent vector that represents the overall distribution characteristics of shrinkage cavities and porosity defects in ingots; the hidden layer is set with a 4-layer fully connected structure, each layer is equipped with a ReLU activation function and a Dropout regularization layer to prevent the model from overfitting; the output layer dimension matches the number of a set of process parameters to construct the inverse mapping relationship between the low-dimensional latent vector of defects and the process parameters.

[0074] (2) FCN hyperparameter constraints: The model iteration number epoch, batch size batch_size, and initial learning rate all use the default values.

[0075] (3) Loss function design: The parametric mean square error loss function is used to constrain the accuracy of the inverse mapping.

[0076] (4) Model convergence and characteristics: Real-time monitoring of the loss value of the inverse model. When the loss value continues to decrease and tends to stabilize and no longer fluctuates significantly, the FCN-inverse model is determined to have converged. After training, the optimal weight FCN-inverse model is saved.

[0077] This model can quickly infer process parameters based on the characteristics of the target defect. It has high inference efficiency and fast response speed. However, due to the limitation of the reverse multi-solution mapping characteristics, the accuracy of a single inference is limited. The initial recommended process parameters output are only initial candidate process schemes and cannot directly meet the accuracy requirements of defect control. It is necessary to rely on the subsequent forward model to complete iterative correction. The specific iterative correction process is steps S3 and S4.

[0078] Step S3: Input the recommended process parameters into the FCN model to obtain the predicted low-dimensional latent vector.

[0079] During implementation, the initial recommended process parameters output by the FCN-inverse model are input into the more accurate forward FCN model to infer the predicted low-dimensional latent vectors corresponding to the initial recommended process parameters. The specific steps are as follows: (1) Input and preprocessing of process parameters: The initial recommended process parameters are normalized and preprocessed to generate standardized process parameters.

[0080] (2) FCN model latent vector inference: The standardized process parameters are input into the forward FCN fully connected prediction model, and the low-dimensional latent vector of shrinkage and porosity defects corresponding to the standardized process parameters is inferred and output as the low-dimensional latent vector of the prediction.

[0081] The FCN model is trained based on the second dataset. This model is used to construct the nonlinear mapping relationship between the operating parameters and the low-dimensional latent vector. A schematic diagram of the FCN model training and selection is shown below. Figure 3 As shown.

[0082] Specifically, the fully connected FCN neural network is used as the main prediction model to learn the deep nonlinear coupling relationship between the numerical parameters in the second dataset and the low-dimensional latent vector of the defect. The specific training process is as follows: (1) FCN model network structure configuration: The network consists of an input layer, multiple hidden layers, and an output layer; the dimension of the input layer matches the number of a set of working condition parameters; the hidden layer is set with a 4-layer fully connected structure, each layer is equipped with a ReLU activation function and a Dropout regularization layer to prevent the model from overfitting; the output layer outputs low-dimensional hidden vectors to build a positive mapping relationship between working condition parameters and defect low-dimensional hidden vectors.

[0083] (2) Training hyperparameter constraints: the number of iterations (epoch) is set to 250, the batch size (batch_size) is 16, the initial learning rate is set to 0.0008, and the Adam adaptive optimizer is used to dynamically update the network weights.

[0084] (3) Loss function design: The mean squared error loss function (MSE) is adopted to quantify the error between the FCN-predicted low-dimensional latent vector and the encoder's true low-dimensional latent vector, constraining the mapping accuracy between parameters and defect features. The loss formula is as follows: ; In the formula: The feature values ​​of the true defect latent vector extracted by the encoder; The feature values ​​of the latent vector of defects predicted by the FCN model; The dimension is the implicit vector dimension.

[0085] (4) Model convergence determination: Monitor the loss value in real time. When it tends to stabilize, the FCN model is determined to be converged. After training, save the optimal weight FCN model.

[0086] Step S4: Determine whether the recommended process parameters meet the standard based on the error between the target low-dimensional latent vector and the predicted low-dimensional latent vector. If they do not meet the standard, input the recommended process parameters and the predicted low-dimensional latent vector into the FCN-inverse model for model iteration correction. If they meet the standard, terminate the iteration and output the recommended process parameters as production process parameters.

[0087] During implementation, the high-precision forward FCN model is used as the defect evaluation benchmark, and the FCN-inverse model is used as the process iteration update kernel to build a closed-loop optimization mechanism of "reverse parameter extrapolation - forward verification - error feedback - iterative correction".

[0088] Specifically, the schematic diagram of the closed-loop iterative correction and process parameter design of the FCN-inverse model and the FCN model dual model is as follows: Figure 4 As shown, the specific process of iterative correction of the FCN-inverse model and determination of production process parameters is as follows: (1) Forward accuracy verification: The error between the target low-dimensional latent vector input to the FCN-inverse model and the predicted low-dimensional latent vector output by the FCN model is quantified. This error is the mean square error of the defect features, and the calculation formula is: ; In the formula, The target low-dimensional latent vector feature value is transformed from the standard defect cloud map of the casting, and it is the input of the FCN-inverse model; These are the predicted low-dimensional latent vector feature values ​​output by the FCN model; The dimension is the implicit vector dimension.

[0089] (2) Judgment of process parameters compliance: Based on the actual production quality control requirements of cast steel, a preset allowable threshold for defect characteristic error is set. This serves as the criterion for determining the compliance of process parameters, enabling standardized and quantitative control of the optimization process. The compliance determination rules are as follows: If the mean square error of the defect characteristics obtained from the positive verification... If the predicted low-dimensional latent vector corresponding to the current process parameters matches the target low-dimensional latent vector, the shrinkage cavity and porosity defects in the ingot meet the production quality control requirements, the current combination of process parameters is deemed to meet the standards, the iteration process is terminated, and the set of parameters is output as the production process parameters; if the defect error exceeds the preset threshold, the process parameters are deemed to be substandard, and the error feedback and reverse model iteration correction stage needs to be entered.

[0090] (3) Error backpropagation and inverse model iterative correction: For cases where the error of the forward verification exceeds the limit or the process parameters do not meet the production standards, the error backpropagation and model update mechanism is initiated. The input process parameters of the FCN model in this iteration are combined with the low-dimensional latent vector predicted by the output of the FCN model to construct a new error constraint training sample pair. This sample pair is backpropagated to the training set of the FCN-inverse model. The inverse mapping relationship between the low-dimensional latent vector of the defect and the process parameters is corrected through iterative training of the FCN-inverse model. A new combination of process parameters is re-inferred and generated, and the process parameter compliance judgment process continues to run iteratively.

[0091] (4) Iterative optimization: Repeat the above closed-loop process of "reverse parameter reasoning - forward defect verification - error feedback correction" to reduce the defect prediction error round by round until the mean square error of the defect features in the forward model verification is stably lower than the allowable error threshold. If the preset standards for actual production quality control are met, the iteration terminates, and the recommended process parameters are used as the combination of process parameters for ingot casting production.

[0092] In another embodiment of the present invention, a fast prediction of shrinkage defects in unknown working conditions is achieved based on a trained CNN-AE+FCN dual-network linkage model.

[0093] Specifically, shrinkage cavities and porosity in ingots are predicted using ingot size parameters and current process parameters. The prediction steps include: (1) Input and preprocessing of working condition parameters: Normalize the ingot size parameters to be predicted and the current process parameters to output standardized working condition parameters.

[0094] (2) Implicit vector reasoning of FCN model: Input the standardized working condition parameters into the forward FCN fully connected prediction model to quickly predict the low-dimensional implicit vector of shrinkage and porosity defects corresponding to the output working condition parameters.

[0095] (3) CNN-AE decoder image reconstruction: The low-dimensional latent vector of the defect predicted by the FCN model is input into the CNN-AE decoding module. Through multi-layer upsampling and deconvolution operation, the two-dimensional visualization cloud map is restored in reverse, and the cloud map of shrinkage and loosening defects is predicted, realizing millisecond-level positive prediction of working condition parameters to defect cloud map.

[0096] Compared with existing technologies, the intelligent prediction and process recommendation method for shrinkage cavity and porosity in ingots provided in this embodiment has the following advantages: 1. This invention adopts a CNN-AE+FCN dual-network closed-loop iterative optimization mechanism, which can efficiently output compliant production process parameter combinations based on preset production quality control requirements, without the need for manual trial and error debugging, and accurately match the production quality requirements of different grades of ingots. It solves the problems of multiple solutions and low accuracy of single reverse models, thereby effectively improving the ingot yield and production stability, and realizing automatic reverse process recommendation.

[0097] 2. This invention relies on the CNN-AE encoding mechanism to represent all spatial features of defects using low-dimensional latent vectors, abandoning the manual scalar statistical model and fully preserving the details of the location, morphology, and density gradient distribution of shrinkage cavities and porosity defects in ingots. During model training, the Niyama criterion and the conservation of volume shrinkage are incorporated, making model training no longer a pure data fitting process but an intelligent learning process that closely aligns with the physical mechanism of ingot solidification. This avoids false defect predictions without physical basis, eliminating reliance on real-time simulation solutions and achieving rapid prediction while ensuring the physical accuracy and engineering applicability of the prediction results. Furthermore, the ingot shrinkage cavity and porosity prediction model based on low-dimensional latent vector regression has extremely low hardware computing power requirements; it can run stably on ordinary computers without the need for high-performance workstations, significantly reducing production quality control and process optimization costs, and possessing extremely high industrial application value.

[0098] 3. This invention focuses on image feature extraction based on CNN-AE network and on nonlinear mapping of working conditions based on FCN network. The split architecture reduces the difficulty of model fitting and effectively avoids the problems of mixed features and insufficient fitting of single network. Thus, it can maintain prediction accuracy when facing new sizes and working conditions. The two networks work together to greatly improve the prediction accuracy and generalization of ingot shrinkage and porosity.

[0099] 4. In the prediction stage, this invention does not require solving the solidification control equation. Instead of high-dimensional image calculation, it uses low-dimensional vector reasoning to replace the high-dimensional image calculation. The prediction time for a single working condition is reduced to less than 100ms. Therefore, it is tens of thousands of times more efficient than traditional simulation, and is more suitable for industrial real-time scenarios, meeting the core needs of industrial multi-parameter iterative optimization and online real-time control.

[0100] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.

[0101] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for intelligent prediction and process recommendation of shrinkage cavities and porosity in ingot casting, characterized in that, Includes the following steps: The standard defect cloud map of the casting is converted into a target low-dimensional hidden vector; the standard defect cloud map represents a casting defect image that meets the production quality control requirements. The target low-dimensional latent vector is input into the FCN-inverse model to obtain the recommended process parameters; The recommended process parameters are input into the FCN model to obtain the predicted low-dimensional latent vector; Based on the error between the target low-dimensional latent vector and the predicted low-dimensional latent vector, it is determined whether the recommended process parameters meet the standard: if they do not meet the standard, the recommended process parameters and the predicted low-dimensional latent vector are input into the FCN-inverse model for model iterative correction; if they meet the standard, the iteration is terminated and the recommended process parameters are output as production process parameters.

2. The method according to claim 1, characterized in that, The encoding module based on the CNN-AE network converts the standard defect cloud map of the casting into the target low-dimensional hidden vector; The CNN-AE network includes an encoding module and a decoding module. The encoding module is used to map the defect cloud map into a low-dimensional latent vector, and the decoding module is used to reconstruct the defect cloud map based on the low-dimensional latent vector.

3. The method according to claim 2, characterized in that, The CNN-AE network is trained based on the first dataset, which is a dataset in which working condition parameters and defect cloud maps correspond one-to-one. The operating parameters include ingot size parameters and casting process parameters. The ingot size parameters include ingot diameter and ingot height. The casting process parameters include pouring temperature, pouring speed and cooling water flow rate. The defect cloud map is a defect cloud map of the casting obtained by the casting process based on the aforementioned working condition parameters.

4. The method according to claim 3, characterized in that, The method further includes constructing an original dataset and obtaining the first dataset based on preprocessing the original dataset; The construction of the original dataset includes: Set simulation conditions, including simulation model, simulation environment, and criteria for identifying shrinkage cavities and porosity defects; The initial values ​​of the operating parameters are determined based on a preset range and step size; Multiple sets of differentiated simulation test operating parameters were obtained by performing orthogonal experimental full combination design on the initial values ​​of the operating parameters; Based on the simulation conditions, standardized 3D modeling, mesh generation, and simulation solution are performed on the working conditions corresponding to the simulation test parameters of each group, and the working condition parameters and defect cloud map under the working condition are output to construct the original dataset.

5. The method according to claim 4, characterized in that, Preprocessing of the original dataset includes: The original dataset is cleaned and filtered to retain valid samples that match the operating parameters with the defect cloud map. The ingot size parameters and process parameters in the operating condition parameters are normalized; Remove mesh ghosting and pixel noise from the defect cloud map, and perform standardization processing. Then, uniformly crop and scale all the defect cloud maps to a preset fixed size. The preprocessed output operating condition parameters are matched one-to-one with the defect cloud map to form the first dataset.

6. The method according to claim 3, characterized in that, Training the CNN-AE network based on the first dataset includes: The total loss function used when training the CNN-AE network is calculated as follows: ; In the formula, To reconstruct the mean squared error loss; The Niyama criterion constraint loss is used to constrain the reconstruction results to meet the cast steel shrinkage porosity criterion. This is the volume shrinkage conservation loss, used to constrain the deviation between the total pore volume of the reconstructed image and the actual simulated pore volume; λ 1. λ 2 represents the balancing weight.

7. The method according to claim 3, characterized in that, The training process of the FCN model and the FCN-inverse model includes: The FCN model and the FCN-inverse model are trained based on the second dataset; The FCN model is used to construct the nonlinear mapping relationship between the operating parameters and the low-dimensional latent vector; The FCN-inverse model is used to construct the inverse nonlinear mapping relationship between the low-dimensional hidden vector and the casting process parameters; The FCN model and the FCN-inverse model both include an input layer, multiple hidden layers, and an output layer, and the dimensions of the input layer of the FCN model and the output layer of the FCN-inverse model match the number of working condition parameters.

8. The method according to claim 7, characterized in that, The second dataset is obtained based on the first dataset and the encoding module, and includes: All defect cloud maps in the first dataset are input into the encoding module for batch latent vector extraction, and a low-dimensional latent vector corresponding to each defect cloud map is output. The low-dimensional latent vector is a unique quantitative representation of the defect features. The operating parameters in the first dataset are mapped one-to-one with the low-dimensional latent vectors to obtain the second dataset.

9. The method according to claim 1, characterized in that, The method for determining whether the recommended process parameters meet the standards is as follows: If the mean square error of the defect features If the predicted low-dimensional latent vector corresponding to the current process parameters matches the target low-dimensional latent vector, the shrinkage cavity and porosity defects of the ingot meet the production quality control threshold requirements, and the current iterative process parameter combination is deemed to meet the standard; otherwise, it does not meet the standard. in, To meet the actual quality control requirements of cast steel production, a preset allowable threshold for defect characteristic errors is established.

10. The method according to claim 2, characterized in that, It also includes predicting shrinkage cavities and porosity in ingots based on ingot size parameters and current process parameters; the prediction steps include: The ingot size parameters and current process parameters are preprocessed to output standardized operating parameters. The working condition parameters are input into the FCN model, and the low-dimensional hidden vector of the shrinkage cavity and porosity defects corresponding to the working condition parameters is predicted and output. The low-dimensional latent vector is input into the decoding module, and through multi-layer upsampling and deconvolution operations, a cloud map of shrinkage and porosity defects is predicted.