Steel fatigue life prediction method based on genetic algorithm and physical information neural network

By constructing a physical information neural network based on a genetic algorithm and combining it with the loss function of the critical surface model to optimize the weights of physical information terms, the problems of insufficient accuracy and poor interpretability in multi-axis fatigue life prediction are solved, and high-precision and highly interpretable predictions are achieved on different types of steel.

CN119069051BActive Publication Date: 2026-11-27TIANJIN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411284906.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2026-11-27
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

Existing technologies suffer from insufficient accuracy and poor interpretability in multiaxial fatigue life prediction. In particular, multiaxial fatigue datasets for different steels are relatively scarce, which limits the improvement of prediction accuracy of data-driven methods with small samples.

Method used

A physical information neural network based on a genetic algorithm is constructed. By combining the loss function of the critical surface model, the weights of physical information items are optimized through the genetic algorithm, and a fitness function is constructed to optimize the weights of the physical information neural network in order to improve prediction accuracy and interpretability.

Benefits of technology

It has achieved multiaxial fatigue life prediction on different types of steel, which not only improves the prediction accuracy but also enhances the interpretability of the model. It has good generalization ability and small sample prediction effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119069051B_ABST
    Figure CN119069051B_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of machine learning, and discloses a physical information neural network steel fatigue life prediction method based on a genetic algorithm, a physical information loss function with a physical information item weight is constructed by selecting a critical surface model suitable for a steel to be predicted, and a physical information neural network is constructed. The genetic algorithm is optimized, the physical information item weight is used as a target parameter, a fitness function related to the prediction performance of the physical information neural network is defined, the genetic algorithm is optimized, for a specific steel, the characteristics and prediction performance of different critical surface models on the steel are balanced, an optimal individual is obtained through optimization, which is represented as a set of optimal physical information item weights, so that the fitness function is minimized. Under the weight, the physical information neural network has the best performance in the fatigue life prediction of the specific steel, and the physical information neural network is used for the prediction of the fatigue life of the steel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of machine learning technology, specifically relating to a method for predicting the fatigue life of steel. Background Technology

[0002] Fatigue-induced failure is one of the most common failure types of metallic components under cyclic loading. Compared to the relatively simple uniaxial fatigue life prediction, multiaxial fatigue prediction is more complex due to the influence of non-proportional additional cyclic hardening effects on metallic structural components. To ensure the reliability and safe service of metallic structural components, multiaxial fatigue life prediction of metallic materials has become a major research hotspot. Fatigue testing is a common method for studying the fatigue characteristics of materials, but it often requires a lot of time and cost. Furthermore, due to the diversity of multiaxial paths and loading conditions, relying on fatigue testing to obtain the fatigue life of metallic materials under complex conditions has limitations.

[0003] Over the years, numerous empirical methods have been developed to construct various models based on material damage parameters, incorporating strain, stress, energy, and fracture mechanisms. Among these, the critical surface method, as a representative model within the energy-based approach, demonstrates outstanding predictive performance in empirical models due to its comprehensive consideration of various aspects of metallic materials, including stress, strain, energy, and fracture mechanisms. However, for any specific critical surface model, its applicability to particular metallic materials is often limited; and while its prediction accuracy is higher than other empirical methods, the predicted lifetime distribution is only concentrated within a five-fold error band.

[0004] In recent years, with the advancement of computing power and the maturation of multiaxial fatigue testing techniques, a considerable amount of multiaxial fatigue datasets for specific metallic materials have gradually accumulated. Methods for multiaxial fatigue life prediction, using data-driven algorithms such as machine learning and training models like artificial neural networks on these datasets, have received significant attention and development. However, due to the black-box nature of purely data-driven algorithms like machine learning, these life prediction methods for multiaxial fatigue lack sufficient interpretability and physical context, becoming a major obstacle to their widespread application. Summary of the Invention

[0005] The purpose of this invention is to provide a physical information neural network for predicting the fatigue life of steel based on a genetic algorithm. Based on the critical surface method and its damage parameters, a physical information neural network and a physical information loss function are constructed. This introduces physical meaning and background into the data-driven method, increases interpretability, and also ensures that the prediction ability of the prediction method is further improved.

[0006] To achieve the above-mentioned objectives, the present invention is implemented through the following technical solution:

[0007] According to one aspect of the present invention, a method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm is provided, characterized in that the method includes:

[0008] S1. Collect fatigue test datasets of the steel to be predicted, and divide the fatigue test datasets into training set and validation set;

[0009] S2. After selecting the critical surface model based on the steel to be predicted, calculate the required parameters of the critical surface model based on the fatigue test dataset, and calculate the damage parameters.

[0010] S3. Determine the input and output features of the physical information neural network, and perform data preprocessing on the input and output features; wherein, the input features are the damage parameters obtained in S2, and the output features are the fatigue life prediction results;

[0011] S4. Construct a physical information neural network based on an artificial neural network model, and define a physical information loss function according to the critical surface model selected in S2, while introducing the weight of the physical information term.

[0012] S5. Set the basic parameters and fitness function of the genetic algorithm, take the weight of the physical information item as the target parameter of the genetic algorithm, and initialize the population information and individuals in the first generation of the genetic algorithm.

[0013] S6. Set the corresponding number of training cycles for each physical information neural network to ensure convergence. Each set of physical information item weights is trained once by the physical information neural network, and the fitness function value after training is calculated. The weights of each set of physical information items are derived from an individual in each generation of the genetic algorithm.

[0014] S7. Based on the fitness function value obtained in S6, select the individual with the smallest fitness function value in the current generation;

[0015] S8. Cross the individuals selected in S7 with other individuals to obtain new individuals;

[0016] S9. Cause the new individuals obtained from S8 to mutate, obtain the next generation of individuals, and increment the generation number by 1;

[0017] S10. Repeat S6-S9 until the current generation number exceeds the set generation number;

[0018] S11. Select the individual with the smallest fitness function value among all generations as the best individual, and use the weight of the physical information term obtained from the best individual as the weight of the best physical information term. Obtain the fatigue life prediction result through the physical information neural network.

[0019] Furthermore, in S2, for steel with shear-type fatigue fracture, the critical surface model adopts at least two of the following: FS model, MGS Yu model, MGSE Zhu model, WB model, Liu model, CXH model, Zhu model, or GSE model; for steel with tensile-type fatigue fracture, the critical surface model adopts at least two of the following: SWT model, Liu model, CXH model, Zhu model, or GSE model.

[0020] Furthermore, in S2, for carbon steel, the critical surface model adopts the FS model, SWT model, MGSEZhu model, WB model, and CXH(T) model:

[0021] FS model:

[0022] SWT model:

[0023] MGSEZhu model:

[0024] WB model:

[0025] CXH(T) model:

[0026] Where, σ nmax , τ nmax ,Δε nmax ,Δγ nmax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum shear strain range as the critical plane; σ smax , τ smax ,Δε smax ,Δγ smax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum normal strain range as the critical plane; Δε n For positive strain stroke; σ' f τ' is the fatigue strength coefficient. f ε' is the shear fatigue strength coefficient. f γ' is the fatigue ductility coefficient. f Let b be the shear fatigue ductility coefficient, b be the fatigue strength exponent, c be the fatigue ductility exponent, b0 be the shear fatigue strength exponent, c0 be the shear fatigue ductility exponent, and k be the FS model constant. MGSE S is the constant of the MGSEZhu model, S is the constant of the WB model; E is Young's modulus, G is the shear modulus, and σ is the constant of the MGSEZhu model. y For yield strength, N f For fatigue life; ve For the elastic stage, Poisson's ratio is taken as 0.3; v p The Poisson's ratio for the plastic stage is taken as 0.5;

[0027] The required parameter for the critical surface model is σ'. f ,τ' f ,ε' f , γ' f b, c, b0, c0, k, k MGSE and S;

[0028] The damage parameter is: σ nmax , τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax ,Δγ smax and Δε n .

[0029] Furthermore, in S3, the input feature of the physical information neural network is σ. nmax , τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax ,Δγ smax .

[0030] Furthermore, in S3, data preprocessing of the input and output features includes: normalizing the input features and the logarithmically transformed output features.

[0031]

[0032] Where x refers to each input feature or the logarithmically transformed output feature, x * σ represents the normalized value, μ represents the mean of each input feature or the logarithmized output feature, and σ represents the standard deviation of each input feature or the logarithmized output feature.

[0033] Furthermore, in S4, the physical information loss function is:

[0034] L PINN =MSE+ω1L FS +ω2L SWT +ω3L MGSEZhu +ω4L WB +ω5L CXH(T)

[0035] in:

[0036]

[0037] ω1, ω2, ω3, ω4, and ω5 are the weights of the physical information items, i is the sample index, n is the number of samples, and N is the number of samples. exp,i Let N be the experimental lifetime of the i-th sample. pre,i The predicted lifetime is for the sample with the i-th sample number.

[0038] Where, σ nmax , τ nmax ,Δε nmax ,Δγ nmax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum shear strain range as the critical plane; σ smax , τ smax ,Δε smax ,Δγ smax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum normal strain range as the critical plane; Δε n For positive strain stroke; σ' f τ' is the fatigue strength coefficient. f ε' is the shear fatigue strength coefficient. f γ' is the fatigue ductility coefficient. f Let b be the shear fatigue ductility coefficient, b be the fatigue strength exponent, c be the fatigue ductility exponent, b0 be the shear fatigue strength exponent, c0 be the shear fatigue ductility exponent, and k be the FS model constant. MGSE S is the constant of the MGSEZhu model, S is the constant of the WB model; E is Young's modulus, G is the shear modulus, and σ is the constant of the MGSEZhu model. y For yield strength, N f For fatigue life; v e For the elastic stage, Poisson's ratio is taken as 0.3; v p The Poisson's ratio for the plastic stage is taken as 0.5.

[0039] Furthermore, in S5, the basic parameters of the genetic algorithm are the number of generations and the number of individuals in each generation; the fitness function of the genetic algorithm is:

[0040]

[0041] Where, N exp,i Let N be the experimental lifetime of the i-th sample. pre,i Let n be the predicted lifetime of the i-th sample, and n be the number of samples. Further, in S5, an individual in each generation of the genetic algorithm is represented as:

[0042] I pg =(ω1pg ω 2pg ω 3pg ω 4pg ω 5pg )

[0043] Where p represents the individual index and g represents the generation number;

[0044] If the weights contained in an individual are used as the weights of the physical information items, then:

[0045] ω apg =ω a (a = 1, 2, ... 5)

[0046] Where 'a' is the index of the weight of the physical information item.

[0047] According to another aspect of the present invention, a computer device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm.

[0048] According to another aspect of the present invention, a computer-readable storage medium is provided having a computer program stored thereon, characterized in that the computer program, when executed by a processor, implements the above-described method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm.

[0049] The beneficial effects of this invention are:

[0050] (I) The physical information neural network method for predicting the fatigue life of steel based on genetic algorithm of this invention constructs a physical information loss function with weights for physical information items by selecting a suitable critical surface model for the steel. Through genetic algorithm optimization, using the weights of the physical information items as the target parameter, a fitness function related to the predictive performance of the physical information neural network is defined for optimization. For a specific steel, by balancing the characteristics and predictive performance of different critical surface models on that steel, an optimal individual is obtained, which corresponds to a set of optimal physical information item weights that minimize the fitness function. Under this weight, the physical information neural network exhibits optimal performance in predicting the fatigue life of that specific steel, and this physical information neural network is used to predict the fatigue life of that steel.

[0051] (II) The present invention provides a method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm. The genetic algorithm, as a traditional numerical optimization method, can simulate the evolution of a biological population. By using individuals carrying optimization parameters as a medium, and guided by a fitness function, the algorithm gradually eliminates individuals with poor fitness performance and retains individuals with good performance. This allows for efficient searching in the parameter search space and effectively adjusts the relevant hyperparameters of the physical information neural network to improve its performance.

[0052] (III) The physical information neural network method for predicting the fatigue life of steel based on genetic algorithm of the present invention has good generalization ability for multi-axis fatigue life prediction of different types of steel due to the introduction of the weight of physical information terms in the loss function of the physical information neural network.

[0053] (iv) The physical information neural network for steel fatigue life prediction based on genetic algorithm of the present invention applies the physical information neural network optimized based on genetic algorithm to the field of multi-axis fatigue life prediction of steel, and by introducing the physical information term in the loss function, the empirical model in the field is used as the physical meaning guide for model training, which effectively improves the accuracy of prediction. Attached Figure Description

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

[0055] Figure 1 This is a schematic diagram of the framework of the physical information neural network for predicting the fatigue life of steel based on genetic algorithms provided in this invention.

[0056] Figure 2 This is a schematic diagram of the genetic algorithm optimization process in the method provided by the present invention;

[0057] Figure 3 The experimental performance of genetic algorithm optimization-physical neural network ablation in the method provided by this invention;

[0058] Figure 4 This invention compares the predicted and experimental values ​​of multiaxial fatigue life of steel using the physical information neural network method for predicting fatigue life in three metal materials: 316LN, 316L, and 304. Detailed Implementation

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

[0060] To address the problems in the background art and achieve both accuracy and interpretability in predicting the multiaxial fatigue life of steel, this invention provides the following solution:

[0061] Traditional empirical models possess good physical meaning, but their accuracy in predicting the multiaxial fatigue life of steel is generally limited due to experimental biases and the theoretical nature of these models. Data-driven methods offer good accuracy in predicting the multiaxial fatigue life of steel, but due to the "black box" nature of data-driven models such as machine learning, their physical meaning and interpretability are relatively low. Furthermore, since fatigue data for complex paths is relatively scarce, improving the accuracy of fatigue life prediction with small sample sizes has become a direction for the development of data-driven methods.

[0062] Fatigue life refers to the material properties expressed as the number of stress or strain cycles under uniaxial or multiaxial loads during fatigue testing.

[0063] To propose a method that balances interpretability and accuracy under small sample sizes, this invention constructs a loss function based on the critical surface model from traditional empirical methods as the source of physical information, and builds a physical information neural network on this basis. The weights of each component in the physical information term of the loss function of the physical information neural network can be adjusted according to different materials to adapt to the multiaxial fatigue characteristics of different materials; the weight adjustment is performed through genetic algorithm optimization. In the genetic algorithm optimization, through iterative processes such as initializing the population size, constructing the first generation, calculating the fitness function, selection, crossover, mutation, and the next generation, the optimal individual with the minimum fitness function is obtained as the genetic algorithm optimization result, which is used as the weight of the physical information neural network for that material. Using this physical information network, the task of predicting the multiaxial fatigue life of steel is completed.

[0064] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0065] Example 1

[0066] like Figure 1 As shown, this embodiment provides a method for predicting the multiaxial fatigue life of steel based on a physical neural network optimized by a genetic algorithm, specifically including:

[0067] S1. Collect fatigue test datasets of the steel to be predicted, and divide the fatigue test datasets into training set and validation set.

[0068] The fatigue test dataset for the steel to be predicted can be obtained from published literature or fatigue experiments.

[0069] The fatigue test dataset specifically includes multiaxial loading hysteresis loops, real-time normal stress, normal strain, shear stress, shear strain signal values, and the corresponding lifetime cycles.

[0070] Steel refers to carbon steel and alloy steel, etc.; fatigue test data are obtained by conducting experiments on steel samples of a certain shape, size and properties made by pressure processing in the form of steel ingots, steel billets, etc.

[0071] In this embodiment, 80% of the data is used for the training set and 20% for the validation set.

[0072] S2. Select the critical surface model according to the type of steel to be predicted, and then calculate the required parameters of the critical surface model based on the fatigue test dataset, and calculate the damage parameters.

[0073] Generally, for steel with shear-type fatigue fracture, the selectable critical surface models include the FS model, MGS Yu model, MGSE Zhu model, WB model, Liu model, CXH model, Zhu model, and GSE model; for steel with tensile-type fatigue fracture, the selectable critical surface models include the SWT model, Liu model, CXH model, Zhu model, and GSE model; for each type, the critical surface model can be any combination of two or more of the above models.

[0074] In this embodiment, the critical surface model selected for 316LN, 316L, and 304 steel is as follows:

[0075] FS model:

[0076] SWT model:

[0077] MGSEZhu model:

[0078] WB model:

[0079] CXH(T) model:

[0080] Where, σ nmax , τ nmax ,Δε nmax ,Δγ nmaxThe parameters are, in order, taking the plane containing the maximum shear strain range as the critical plane, and the corresponding maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range, σ. smax , τ smax ,Δε smax ,Δγ smax The parameters are, in order, the plane containing the maximum normal strain range as the critical surface, and the corresponding maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range, Δε. n For positive strain stroke; σ' f τ' is the fatigue strength coefficient. f ε' is the shear fatigue strength coefficient. f γ' is the fatigue ductility coefficient. f Let b be the shear fatigue ductility coefficient, b be the fatigue strength exponent, c be the fatigue ductility exponent, b0 be the shear fatigue strength exponent, c0 be the shear fatigue ductility exponent, and k be the FS model constant. MGSE S is the constant of the MGSEZhu model, S is the constant of the WB model; E is Young's modulus, G is the shear modulus, and σ is the constant of the MGSEZhu model. y For yield strength, N f This refers to fatigue life.

[0081] In addition, the above five critical surface models can also be applied to other carbon steels besides 316LN, 316L, and 304 steel.

[0082] The fatigue parameter τ' on the right-hand side of the above critical surface model equation f ,γ' f b0 and c0 are obtained by fitting torsion data; σ' f ,ε' f b and c were obtained by fitting uniaxial data. For 316L, due to the lack of torsional data, the Mises equivalent stress criterion was used:

[0083]

[0084] b o =b

[0085] c o =c

[0086] E, G, σ y Obtain the data from the corresponding steel data sheet.

[0087] The table lists the parameters required for the above critical surface model for 316LN, 316L, and 304 stainless steel:

[0088] Table 1. Material parameters of 316LN, 316L, and 304 stainless steel

[0089]

[0090] The corresponding damage parameters are calculated according to the following formula:

[0091]

[0092] Where θ is the angle between the calculation plane and the axis of the steel sample, ε θ It is the stress value on the calculation plane, ε x It is the axial normal strain value, γ θ It calculates the plane shear strain value, τ. xy It is the axial shear stress value, σ θ It calculates the plane normal stress value, σ. x It is the axial normal stress value.

[0093] Therefore, the ranges of normal strain and shear strain are obtained:

[0094] Δε θ =ε θmax -ε θmin

[0095] Δγ θ =γ θmax -γ θmin

[0096] and the range of normal stress and shear stress:

[0097] Δσ θ =σ θmax -σ θmin

[0098] Δτ θ =τ θmax -τ θmin

[0099] Therefore, based on the critical surfaces defined by different critical surface methods, the damage function σ was obtained. nmax , τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax ,Δγ smax and Δε n .

[0100] S3. Determine the input features of the physical information neural network and perform data preprocessing on the input and output features of the physical information neural network.

[0101] The input features are the damage parameters obtained from S2, and the output features are the fatigue life prediction results.

[0102] The input feature selected in this embodiment is: σ nmax, τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax ,Δγ smax .

[0103] Data preprocessing for input and output features specifically involves normalizing the input features and the logarithmically transformed output features:

[0104]

[0105] Where x refers to each input feature and the logarithmically transformed output feature, x * σ represents the normalized value, μ represents the mean of each input feature or the logarithmized output feature, and σ represents the standard deviation of each input feature or the logarithmized output feature.

[0106] S4. Construct a physical information neural network based on the artificial neural network model, define the physical information loss function according to the critical surface model selected in S2, and introduce the weight of the physical information item.

[0107] With σ nmax , τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax and Δγ smax An artificial neural network is constructed using eight input features. An artificial neural network is a mathematical model used in machine learning and cognitive science to mimic the structure and function of biological neural networks (the central nervous system of animals, particularly the brain).

[0108] The artificial neural network in this embodiment has a structure of 5 hidden layers, with the number of neurons in each layer being 16, 16, 8, 8, and 4 respectively. The output is the predicted lifetime after log-normalization.

[0109] Based on this, a loss function for physical information is defined, thereby constructing a physical information neural network, the expression of which is:

[0110] L PINN =MSE+ω1L FS +ω2L SWT +ω3L MGSEZhu +ω4L WB +ω5L CXH(T)

[0111] in:

[0112]

[0113] ω1, ω2, ω3, ω4, and ω5 are the physical information weights introduced by the above physical information loss function, where i is the sample index, n is the number of samples, and N is the number of samples. exp,i Let N be the experimental lifetime of the i-th sample. pre,i Let be the predicted lifetime of the i-th sample.

[0114] S5. Set the basic parameters and fitness function for the genetic algorithm optimization, use the weights of the corresponding physical information items in the physical information neural network as the target parameters of the genetic optimization algorithm, and initialize the population information and the individuals of the first generation of the genetic optimization algorithm.

[0115] In this embodiment, the number of generations is set to 50, the number of individuals in each generation is set to 30, and the population information and the individuals of the first generation are randomly initialized.

[0116] The fitness function is defined as follows:

[0117]

[0118] Where, N exp,i N is the experimental lifetime of the i-th sample. pre,i It is the predicted lifetime of the i-th sample, and n is the number of samples.

[0119] The weights ω1, ω2, ω3, ω4, and ω5 of the corresponding physical information items in the physical information neural network are used as variables and optimized in the genetic algorithm according to the fitness function.

[0120] Randomly initialize individuals in the first generation.

[0121] S6. Set the corresponding number of training cycles for each physical information neural network to ensure convergence. A set of physical information item weights comes from an individual in each generation of the genetic algorithm. Each set of physical information item weights is trained once by the physical information neural network, and the fitness function value after training is calculated.

[0122] During training, the training set is used as the training samples, and the prediction set is used to evaluate the model performance.

[0123] Based on the trial calculations, the final number of cycles was determined to be 1500, at which point the training of the neural networks for the physical information of the three materials could converge.

[0124] Each individual in the genetic algorithm consists of a list of five weights:

[0125] I pg =(ω 1pg ω 2pg ω 3pg ω 4pg ω5pg )

[0126] Where p represents the number of individuals, taking values ​​of 1, 2, ..., 30; and g represents the generation number, taking values ​​of 1, 2, ..., 50.

[0127] If the weights contained in an individual are used as the weights of the physical information items, then:

[0128] ω apg =ω a (a = 1, 2, ... 5)

[0129] Where a is the index of the weight of the physical information item, p represents the number of individuals, taking values ​​of 1, 2, ..., 30, and g represents the generation number, taking values ​​of 1, 2, ..., 50.

[0130] The weights corresponding to the individuals mentioned above are used sequentially as weights for the physical information items introduced in S4. The physical information neural network corresponding to each set of weights is trained once, and the fitness function after training is calculated:

[0131]

[0132] Where, N exp,i Let N be the experimental lifetime of the i-th sample. pre,i Let n be the predicted lifetime of the i-th sample, and n be the number of samples.

[0133] S7. Based on the fitness function value obtained in S6, select the individual with the smallest fitness function value in the current generation.

[0134] Selection methods can include tournament selection, roulette selection, ranking selection, conservative selection, elite selection, random selection, and exclusion selection.

[0135] In this embodiment, three individuals are randomly selected using a tournament selection method, and the individual with the smallest fitness function value is chosen from among them. The selection formula is as follows:

[0136]

[0137] Where T is a randomly selected set of individuals, with a size of 3.

[0138] S8. Cross the individuals selected in S7 with other individuals to obtain new individuals.

[0139] This embodiment uses a hybrid crossover method.

[0140] The new individual's range is:

[0141] X p =[(1+α)·P1 gene -α·P2 gene -α·P1 gene+(1+α)·P2 gene ]

[0142] Where X p For new genes in new individuals, P1 gene For the genes of parent individual 1, P2 gene The gene is the parent individual 2, and α is the mixed crossover interval parameter (0-1), set to 0.5.

[0143] S9 causes the new individuals obtained from S8 to mutate, ultimately resulting in the next generation of individuals, and increments the generation number by 1.

[0144] Individual variation was performed using Gaussian variation:

[0145] M p =k p +N(μ,σ)

[0146] Where M p For the mutated new individual, k p Let N(μ,σ) represent a normally distributed random number with mean μ and standard deviation σ, representing the individual before mutation. Let the parameters be μ = 0.5, σ = 0.15, and the mutation probability indpb = 0.2 (20% probability of mutation).

[0147] S10. Repeat S6-S9 until the current generation number exceeds the set generation number;

[0148] S11. Select the individual with the minimum fitness function among all generations as the best individual, and use the weight of the physical information term obtained from the best individual as the weight of the best physical information term. Then, obtain the fatigue life prediction result through the current physical information neural network.

[0149] The optimal individual for 316LN appears at g=5, p=8, with corresponding weights of 0.135, 0.168, 0.355, 0.097, and 0.433; the optimal individual for 316L appears at g=36, p=17, with corresponding weights of 0.488, 0.296, 0.676, 0.549, and 0.613; and the optimal individual for 304 appears at g=1, p=6, with corresponding weights of 0.821, 0.056, 0.526, 0.118, and 0.498. Finally, these weights are used as the weights of the physical information terms in the physical information neural network to predict the fatigue life of the corresponding steels.

[0150] Figure 2 This paper demonstrates the specific process of genetic algorithm optimization in the physical information neural network method for predicting the fatigue life of steel.

[0151] Figure 3The ablation test results of the method proposed in this invention on three metallic materials: 316LN, 316L, and 304. Figure 3 It can be seen that the genetic optimization algorithm-physical information neural network performs better than the artificial neural network and the unoptimized (weight 1) physical information neural network in repeated experiments on the multiaxial fatigue dataset of three metal materials.

[0152] Figure 4 This paper compares the predicted and experimental values ​​of multiaxial fatigue life using the method proposed in this invention on three metallic materials: 316LN, 316L, and 304. Figure 4 It can be seen that the predicted values ​​of the genetic algorithm-optimized physical information neural network on both the test set and the training set are within the 2x error band, and most of them are concentrated within the 1.5x error band.

[0153] Example 2

[0154] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the fatigue life prediction method for steel based on a physical information neural network using a genetic algorithm as described in Embodiment 1.

[0155] Example 3

[0156] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in Example 1.

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

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

Claims

1. A method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, characterized in that, The method includes: S1. Collect the fatigue test dataset of the steel to be predicted, and divide the fatigue test dataset into training set and validation set; S2. After selecting the critical surface model based on the steel to be predicted, calculate the required parameters of the critical surface model based on the fatigue test dataset, and calculate the damage parameters. S3. Determine the input and output features of the physical information neural network, and perform data preprocessing on the input and output features; wherein, the input features are the damage parameters obtained in S2, and the output features are the fatigue life prediction results; S4. Construct a physical information neural network based on an artificial neural network model, and define a physical information loss function according to the critical surface model selected in S2, while introducing the weights of physical information terms. S5. Set the basic parameters and fitness function of the genetic algorithm, take the weight of the physical information item as the target parameter of the genetic algorithm, and initialize the population information and individuals in the first generation of the genetic algorithm. S6. Set the corresponding number of training cycles for each physical information neural network to ensure convergence. Each set of physical information item weights is trained once by the physical information neural network, and the fitness function value after training is calculated. The weights of each set of physical information items are derived from an individual in each generation of the genetic algorithm. S7. Based on the fitness function value obtained in S6, select the individual with the smallest fitness function value in the current generation; S8. Cross the individuals selected in S7 with other individuals to obtain new individuals; S9. Cause the new individuals obtained from S8 to mutate, obtain the next generation of individuals, and increment the generation number by 1; S10. Repeat S6-S9 until the current generation number exceeds the set generation number; S11. Select the individual with the smallest fitness function value among all generations as the best individual, and use the weight of the physical information term obtained from the best individual as the weight of the best physical information term. Obtain the fatigue life prediction result through the physical information neural network.

2. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S2, for steel with shear-type fatigue fracture, the critical surface model adopts at least two of the following: FS model, MGS Yu model, MGSE Zhu model, WB model, Liu model, CXH model, Zhu model, or GSE model; for steel with tensile-type fatigue fracture, the critical surface model adopts at least two of the following: SWT model, Liu model, CXH model, Zhu model, or GSE model.

3. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 2, is characterized in that... In S2, for carbon steel, the critical surface model adopts the FS model, SWT model, MGSEZhu model, WB model, and CXH(T) model: FS model: SWT model: MGSEZhu model: WB model: CXH(T) model: Where, σ nmax , τ nmax ,Δε nmax ,Δγ nmax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum shear strain range as the critical plane; σ smax , τ smax ,Δε smax ,Δγ smax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum normal strain range as the critical plane; Δε n For positive strain stroke; σ' f τ' is the fatigue strength coefficient. f ε' is the shear fatigue strength coefficient. f γ' is the fatigue ductility coefficient. f Let b be the shear fatigue ductility coefficient, b be the fatigue strength exponent, c be the fatigue ductility exponent, b0 be the shear fatigue strength exponent, c0 be the shear fatigue ductility exponent, and k be the FS model constant. MGSE S is the constant of the MGSEZhu model, S is the constant of the WB model; E is Young's modulus, G is the shear modulus, and σ is the constant of the MGSEZhu model. y For yield strength, N f For fatigue life; v e For the elastic stage, Poisson's ratio is taken as 0.3; v p The Poisson's ratio for the plastic stage is taken as 0.5; The required parameter for the critical surface model is σ'. f ,τ' f ,ε' f ,γ' f b, c, b0, c0, k, k MGSE and S; Among them, the damage parameters are: p nmax ,t nmax ,No nmax ,Dg nmax ,s smax ,t smax ,No smax ,Dg smax No n 。 4. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S3, the input feature of the physical information neural network is σ. nmax , τ nmax ,Δε nmax ,Δγ nmax , σ smax , τ smax ,Δε smax ,Δγ smax .

5. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S3, data preprocessing for input and output features includes: normalizing the input features and the logarithmically transformed output features. Where x refers to each input feature or the logarithmically transformed output feature, x * σ represents the normalized value, μ represents the mean of each input feature or the logarithmized output feature, and σ represents the standard deviation of each input feature or the logarithmized output feature.

6. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S4, the physical information loss function is: L PINN =MSE+ω1L FS +ω2L SWT +ω3L MGSEZhu +ω4L WB +ω5L CXH(T) in: ω1, ω2, ω3, ω4, and ω5 are the weights of the physical information items, i is the sample index, n is the number of samples, and N is the number of samples. exp,i Let N be the experimental lifetime of the i-th sample. pre,i The predicted lifetime is for the sample with the i-th sample number. Where, σ nmax , τ nmax ,Δε nmax ,Δγ nmax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum shear strain range as the critical plane; σ smax , τ smax ,Δε smax ,Δγ smax The values ​​are, in order, the maximum normal stress, maximum shear stress, maximum normal strain range, and maximum normal stress range corresponding to the plane containing the maximum normal strain range as the critical plane; Δε n For positive strain stroke; σ' f τ' is the fatigue strength coefficient. f ε' is the shear fatigue strength coefficient. f γ' is the fatigue ductility coefficient. f Let b be the shear fatigue ductility coefficient, b be the fatigue strength exponent, c be the fatigue ductility exponent, b0 be the shear fatigue strength exponent, c0 be the shear fatigue ductility exponent, and k be the FS model constant. MGSE S is the constant of the MGSEZhu model, S is the constant of the WB model; E is Young's modulus, G is the shear modulus, and σ is the constant of the MGSEZhu model. y For yield strength, N f For fatigue life; v e For the elastic stage, Poisson's ratio is taken as 0.3; v p The Poisson's ratio for the plastic stage is taken as 0.

5.

7. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S5, the basic parameters of the genetic algorithm are the number of generations and the number of individuals in each generation; the fitness function of the genetic algorithm is: Where, N exp,i Let N be the experimental lifetime of the i-th sample. pre,i Let n be the predicted lifetime of the i-th sample, and n be the number of samples.

8. The method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in claim 1, is characterized in that... In S5, an individual in each generation of the genetic algorithm is represented as: I pg =(ω 1pg Oh, oh 2pg Oh, oh 3pg Oh, oh 4pg Oh, oh 5pg ) Where p represents the individual index and g represents the generation number; If the weights contained in an individual are used as the weights of the physical information items, then: oh apg =ω a (a=1,2..5) Where 'a' is the index of the weight of the physical information item.

9. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the physical information neural network method for predicting the fatigue life of steel based on a genetic algorithm, as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the method for predicting the fatigue life of steel based on a physical information neural network using a genetic algorithm, as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Alphabetic writing type computer Chinese character input method

    CN102023713A

  • Cadmium telluride semiconductor thin-film heterojunction solar cell based on N-shaped silicon slice

    CN102201480A