Method for predicting temperature of forge piece on line based on machine learning

Through the online prediction method of forging temperature based on machine learning, using finite element simulation and neural network, the problem of inaccurate control of final forging temperature during the forging process is solved, real-time optimization of forging temperature is realized, and forging intelligence and production efficiency are improved. Reduced energy consumption.

CN118798044APending Publication Date: 2024-10-18YANSHAN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410929492.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Inaccurate control of the final forging temperature during the forging process will cause the internal grains of the forging to grow, precipitate the second phase, reduce the mechanical properties or generate residual stress, leading to cracking. If the final forging temperature is too low, the furnace will need to be returned to increase energy consumption and reduce production. efficiency.

Method used

An online forging temperature prediction method based on machine learning is used to establish a forging temperature prediction model through finite element simulation and neural network, and real-time feedback of forging parameter data to optimize the forging process, including the establishment of a finite element model, data normalization processing and neural network training. Real-time prediction and feedback of forging temperature.

Benefits of technology

It improves the intelligence of the forging process, reduces energy consumption, improves production efficiency, ensures that the forging temperature is within an appropriate range, and avoids coarse grain and residual stress problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798044A_ABST
    Figure CN118798044A_ABST
Patent Text Reader

Abstract

The invention discloses a method for predicting the temperature of a forge piece on line based on machine learning, which belongs to the technical field of forging and comprises the following steps of: a, establishing a forge piece temperature prediction model based on machine learning; and b, the forging parameter data serve as input parameters to be input into the forge piece temperature prediction model, and the real-time prediction temperature of the forge piece in the forging process is obtained. According to the method, a finite element model is established based on elastic-plastic mechanics and heat transfer theory principles, the model is optimized by comparing with measured data, and a simulation temperature value, forging time, forging speed, a contact heat transfer coefficient and an environment temperature parameter obtained by the finite element simulation model are used as training data; through machine learning (including but not limited to a neural network), fitting is performed to establish a prediction model, and the temperature change of the forge piece in the forging process can be predicted online, so that the temperature value is fed back to a forge piece operator in real time, the intelligent degree of the forging process is improved, the energy consumption is reduced, and the production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of forging, and in particular relates to a method for online prediction of forging temperature based on machine learning. Background Art

[0002] Forging is an important process in metal plastic processing, and the forging temperature has a great influence on the forging process. If the final forging temperature is too high, the grains inside the forging will continue to grow, coarse grains will appear or the second phase will precipitate, reducing the mechanical properties of the forging. If the final forging temperature is lower than the recrystallization temperature, work hardening will occur inside the forging, reducing the plasticity, and large residual stress may be generated inside the forging, causing cracking during the reforging process or during the cooling process and subsequent processes. If the final forging temperature is too low, it can only be solved by returning to the furnace, which will increase the number of fires, increase energy consumption, and reduce production efficiency.

[0003] Therefore, it is necessary to study a method to predict forging temperature. Summary of the invention

[0004] The problem to be solved by the present invention is to provide a method for online prediction of forging temperature based on machine learning. Through finite element simulation, neural network and other technologies, online prediction of the temperature of forgings during the forging process is realized, so as to provide real-time feedback of forging information to the forging operator, thereby improving the intelligence of the forging process, reducing energy consumption and improving production efficiency.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for online prediction of forging temperature based on machine learning, comprising the following steps: Step a, establishing a forging temperature prediction model based on machine learning; Step b, inputting the forging parameter data as input parameters into the forging temperature prediction model to obtain the real-time predicted temperature of the forging during the forging process; The forging parameter data includes forging process parameters and environmental parameters.

[0006] Furthermore, the forging process parameters include forging time, forging speed and reduction, and the environmental parameters include contact heat transfer coefficient and environmental temperature parameters.

[0007] Furthermore, the establishment of the forging temperature prediction model in step a includes the following steps: Step 11, establishing a finite element model of the forging during the forging process, and obtaining the simulated temperature value of the forging during the forging process under different process parameters by inputting forging speed, reduction, contact heat transfer coefficient and ambient temperature parameters into the finite element model; Step 12: The forging time, forging speed, contact heat transfer coefficient, ambient temperature parameters and simulation temperature values ​​are combined into a training data set and input into a neural network or a BP neural network to obtain a forging temperature prediction model.

[0008] Furthermore, in step 11, the forging speed is simulated from 5 mm / s to 100 mm / s with a gradient of 10 mm / s, and the contact heat transfer coefficient is simulated according to three working conditions: smooth surface contact, oxide scale included contact, and insulation cotton added contact.

[0009] Furthermore, in step 11, the measured temperatures at five positions on the contact surface and non-contact surface of the forging process are collected and compared with the temperature values ​​of the corresponding positions in the finite element model, and then the finite element model is optimized until the difference between the simulated temperature value and the measured temperature value is less than 2%.

[0010] Furthermore, in step 12, the data set is normalized, 85% of the data set is used as a training set and 15% as a test set. The number of nodes in the neural network input layer is dynamically adjusted according to the number of input parameters in the training set, and the number of nodes in the neural network output layer is dynamically adjusted according to the number of output parameters in the training set. There are three hidden layers, each of which includes 10 neurons. The transfer function is the sigmoid function, and the loss function is the mean square error loss function (MSE): in: Predict values ​​for the neural network; To input the target value, that is, the input parameter temperature ; n is the number of output data in the data set; The gradient descent algorithm is the stochastic gradient descent algorithm (SGD), in which the weight update formula is: in: is the weight of the current iteration step; is the learning rate; is the loss function, i.e. the above MSE; The initial learning rate is 0.2, the learning rate adopts a decay strategy, and the number of training epochs is 100,000 times.

[0011] Furthermore, in step b, the time series calculation method of forging time in the forging process parameters is: ; ; ; in: is the pressure head speed collected by the sensor, for , step is the sampling time interval, is the forging speed sequence, is the amount of pressure, for , for , An array of time.

[0012] Furthermore, in step b, the time required for forging is calculated in real time through the press head speed data collected by the sensor and the current time array is obtained. The current time array is then spliced ​​with the time array in the historical data and then spliced ​​with other parameters as input data to update the temperature prediction curve.

[0013] The present invention establishes a finite element model based on the principles of elastic-plastic mechanics and heat transfer and optimizes the model by comparing it with measured data. The simulated temperature value obtained by the finite element simulation model as well as the forging time, forging speed, contact heat transfer coefficient and ambient temperature parameters are used as training data. A prediction model is established through fitting through machine learning (including but not limited to neural networks). The temperature changes of forgings during the forging process can be predicted online, so that the temperature values ​​can be fed back to the forging operator in real time, thereby improving the intelligence of the forging process, reducing energy consumption and improving production efficiency.

[0014] The present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a flow chart of the present invention; Figure 2 It is a schematic diagram of the structure of the neural network in the present invention; Figure 3 This is a diagram of data acquisition and processing in the present invention; Figure 4 It is a temperature prediction value and true value curve diagram in the present invention; Figure 5 This is a continuous online temperature prediction diagram in the present invention. DETAILED DESCRIPTION

[0016] The present invention provides a method for online prediction of forging temperature based on machine learning, which comprises the following steps.

[0017] Step a: Establish a forging temperature prediction model based on machine learning.

[0018] This step specifically includes: Step 11, see attached Figure 1 , a finite element model of the forging in the forging process is established, and the simulated temperature values ​​of the forging in the forging process under different process parameters are obtained by inputting the forging speed, reduction, contact heat transfer coefficient and ambient temperature parameters into the finite element model. Among them, the forging speed and contact heat transfer coefficient have the greatest influence on the finite element simulation results.

[0019] The finite element model needs to establish a three-dimensional model of the forging and the upper and lower dies, and then draw the mesh. Since the forging process is a large deformation plastic forming process, the mesh needs to be redrawn in the finite element simulation of the forging process, so the tetrahedral mesh that is easy to draw is selected. Since the plastic deformation of the forging process is much greater than the elastic deformation, the forging adopts a plastic body model to ignore its elastic deformation. The elastic-plastic deformation of the die during the forging process is very small, so its elastic-plastic deformation is ignored and a rigid body model is used. The constitutive relationship of the forging material is fitted by hot compression data, using the Arrhenius formula. The friction type is shear friction, and the friction coefficient is 0.7. The solution method for the linear equation group is the conjugate echelon method, and the iteration method is the direct iteration method. The simulation step size is selected as 0.1 second. The movement mode and simulation time are determined by the upper die. Other simulation data are obtained based on process parameters. The forging speed was simulated from 5mm / s to 100mm / s with a gradient of 10mm / s, and the contact heat transfer coefficient was simulated according to three working conditions: smooth surface contact, mixed oxide scale contact, and added insulation cotton contact. Among them, smooth surface contact means direct contact between the die and the forging; mixed oxide scale contact means oxide scale is mixed between the die and the forging; added insulation cotton contact means insulation cotton is mixed between the die and the forging. The insulation capacity of the forgings of these three contact modes is from large to small: added insulation cotton contact > mixed oxide scale contact > smooth surface contact.

[0020] The measured temperatures at five locations on the contact and non-contact surfaces of the forging process were collected and compared with the temperature values ​​at the corresponding locations in the finite element simulation, and the finite element model was optimized until the difference between the simulated temperature value and the measured temperature value was less than 2%.

[0021] Step 12, see attached Figure 2 The forging time, forging speed, contact heat transfer coefficient, ambient temperature parameters and the simulation temperature value obtained in step 11 are used to form a training data set and input into a neural network or a BP neural network to obtain a forging temperature prediction model.

[0022] The input parameters of the forging temperature prediction model include forging time, forging speed, contact heat transfer coefficient, and ambient temperature parameters; the output parameters are an array of forging temperature values ​​under different forging process parameters.

[0023] Before the data is input into the model, the data set is normalized. 85% of the data set is used as the training set and 15% as the test set. The number of nodes in the input layer of the neural network is dynamically adjusted according to the number of input parameters in the training set. The number of nodes in the output layer of the neural network is dynamically adjusted according to the number of output parameters in the training set. There are three hidden layers, each hidden layer includes 10 basis points, the transfer function is the sigmoid function, the gradient descent algorithm is the stochastic gradient descent algorithm, the loss function is the mean square error loss function, the initial learning rate is 0.2, the learning rate adopts the attenuation strategy, and the number of training epochs is 100,000.

[0024] The transfer function is the sigmoid function and the loss function is the mean square error loss function (MSE): in: Predict values ​​for the neural network; is the input target value, i.e. the input parameter temperature; n is the number of output data in the data set; The gradient descent algorithm is the stochastic gradient descent algorithm (SGD), in which the weight update formula is: .in: is the weight of the current iteration step; is the learning rate; is the loss function, which is the MSE mentioned above.

[0025] Step b: inputting the forging parameter data as input parameters into the forging temperature prediction model to obtain the real-time predicted temperature of the forging during the forging process.

[0026] The forging parameter data includes forging process parameters and environmental parameters, wherein the forging process parameters include forging time, forging speed and reduction, and the environmental parameters include contact heat transfer coefficient and environmental temperature parameters.

[0027] In this step, the forging temperature prediction model generates a temperature prediction curve based on the forging parameter data.

[0028] Before forging, the forging process parameters and heat preservation measures are acquired in advance. The press head speed data can be obtained through the upper die speed sensor of the press, and the forging time can be calculated in real time. Thus, the generated temperature prediction curve can be updated.

[0029] The time series calculation method of the above forging time is: ; ; ; in: is the pressure head speed collected by the sensor, for , step is the sampling time interval, which is 0.1s in this embodiment, but can also be other values, is the forging speed sequence, is the amount of pressure, for , for , is the time array. The size of the δ,f matrix is ​​forging time / step, that is, forging time / 0.1, and changes with the forging time.

[0030] See attached Figure 3 ,The press head speed data collected by the sensor is used to calculate the time required forging in real time and obtain the current time array, which is then spliced ​​with other parameters as input data to update the temperature prediction curve.

[0031] Specifically, the sensor collects the press forging speed parameter at the current time step. The collected parameter is a scalar value. This scalar value is stacked on the array of forging data of the historical time step to form a new forging speed array. This array can be used to calculate the forging time array at the current time step, and then the time array is spliced ​​with the time array in the historical data. After splicing, it is combined with other parameters to form the input data array at the current time step to update the temperature prediction curve.

[0032] The invention is described in detail below with reference to specific embodiments.

[0033] See attached Figure 4 and 5 The present invention is described in detail below by taking the forging of S355NL steel as an example. In the finite element model, the initial forging temperature is 1473.15K, the friction coefficient is 0.7, and the ambient temperature is 293.15K.

[0034] (1) According to the upper die speed range, 11 upper die speeds of 10, 20, 30, 40, 50, 60, 70, 80, 90, and 100 mm / s were selected for finite element simulation.

[0035] (2) For the die speed and time and other parameters such as heat transfer coefficient that can affect the temperature of the forging during the forging process, it is necessary to ensure that these data are of equal length and the spliced ​​data are used as input parameters. 85% of these data are used as training sets and 15% as validation sets. The data in the training set and validation set come from random sampling of the input data. All input data are normalized using the maximum-minimum normalization method formula: .

[0036] in: For data that needs to be normalized, is the minimum value in this type of data. is the maximum value in this type of data. The data are normalized.

[0037] The structure of the neural network consists of 5 layers in total. The number of input layers and input nodes is dynamically adjusted according to the number of input parameters and the number of parameters required to be output. There are 3 hidden layers, each with 10 nodes, and these nodes are fully connected. The transfer function is sigmoid, the gradient descent algorithm is the stochastic gradient descent algorithm (SGD), the loss function is the mean square error loss function, the initial learning rate is 0.2, the learning rate adopts a decay strategy, and the number of training epochs is 100,000.

[0038] By adjusting the training parameters, the maximum error between the validation set and the predicted value is less than 1%. An additional set of simulations with a die speed of 25 mm / s is performed to obtain simulation data, and predictions are made using the trained model. The maximum error between the predicted value and the simulation value is also within 1%.

[0039] (3) The data collected by the sensor is processed and then input into the model to realize online temperature prediction. The forging process parameters and insulation measures and other parameters are obtained in advance before the forging process. The press head speed data can be obtained through the upper die speed sensor of the press, and the time of this forging process can be calculated. For example: a forging stroke is 2000 mm, and data is collected once every 1 second. The data collected in the first 5 seconds are 50, 60, 70, 80, and 90 mm / s. Then the time arrays corresponding to these five seconds are ; ; ; ; .

[0040] Then, the time array, forging speed, heat transfer coefficient and other parameters are spliced, and other data are expanded to the length of the time array in the time direction. It is input as an input parameter into the prediction model to obtain the temperature curve of the forging process. Each time the sensor collects data, it will be stacked on the historical data of this forging process to form queue data. Each time the data is collected, the time array is calculated using the current data and historical data, and the temperature prediction curve is refreshed. The above operations are repeated until the process is completed to achieve online prediction of forging temperature, such as Figure 4 As shown ( Figure 4 The figure shows the result of updating the temperature prediction curve after the first four data collections. The horizontal axis represents time and the vertical axis represents temperature).

[0041] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.

Claims

1. A method for online prediction of forging temperature based on machine learning, characterized in that: The following steps are involved: Step a, establishing a forging temperature prediction model based on machine learning; Step b, inputting the forging parameter data as input parameters into the forging temperature prediction model to obtain the real-time predicted temperature of the forging during the forging process; The forging parameter data includes forging process parameters and environmental parameters.

2. The method for online prediction of forging temperature based on machine learning according to claim 1, characterized in that: The forging process parameters include forging time, forging speed and reduction, and the environmental parameters include contact heat transfer coefficient and environmental temperature parameters.

3. The method for online prediction of forging temperature based on machine learning according to claim 1, characterized in that: The establishment of the forging temperature prediction model in step a includes the following steps: Step 11, establishing a finite element model of the forging during the forging process, and obtaining the simulated temperature value of the forging during the forging process under different process parameters by inputting forging speed, reduction, contact heat transfer coefficient and ambient temperature parameters into the finite element model; Step 12: The forging time, forging speed, contact heat transfer coefficient, ambient temperature parameters and simulation temperature values ​​are combined into a training data set and input into a neural network or a BP neural network to obtain a forging temperature prediction model.

4. The method for online prediction of forging temperature based on machine learning according to claim 3 is characterized in that: In step 11, the forging speed is simulated from 5 mm / s to 100 mm / s with a gradient of 10 mm / s, and the contact heat transfer coefficient is simulated according to three working conditions: smooth surface contact, oxide scale included contact, and insulation cotton added contact.

5. The method for online prediction of forging temperature based on machine learning according to claim 3 is characterized in that: In step 11, the measured temperatures at five locations on the contact surface and the non-contact surface of the forging process are collected and compared with the temperature values ​​of the corresponding locations in the finite element model, and then the finite element model is optimized until the difference between the simulated temperature value and the measured temperature value is less than 2%.

6. The method for online prediction of forging temperature based on machine learning according to claim 2, characterized in that: In step 12, the data set is normalized, 85% of the data set is used as the training set and 15% as the test set. The number of nodes in the neural network input layer is dynamically adjusted according to the number of input parameters in the training set, and the number of nodes in the neural network output layer is dynamically adjusted according to the number of output parameters in the training set. There are three hidden layers, each hidden layer includes 10 neurons, the transfer function is the sigmoid function, and the loss function is the mean square error loss function MSE: in: Predict values ​​for the neural network; To input the target value, that is, the input parameter temperature ; n is the number of output data in the data set; The gradient descent algorithm is the stochastic gradient descent algorithm SGD, in which the weight update formula is: in: is the weight of the current iteration step; is the learning rate; is the loss function, i.e. the above MSE; The initial learning rate is 0.2, the learning rate adopts a decay strategy, and the number of training epochs is 100,000 times.

7. The method for online prediction of forging temperature based on machine learning according to any one of claims 1 to 6, characterized in that: The forging temperature prediction model obtains the temperature prediction curve according to the forging parameter data.

8. The method for online prediction of forging temperature based on machine learning according to claim 7, characterized in that: In step b, the time series calculation method of forging time in the forging process parameters is: ; ; ; in: is the pressure head speed collected by the sensor, for , step is the sampling time interval, is the forging speed sequence, is the amount of pressure, for , for , An array of time.

9. The method for online prediction of forging temperature based on machine learning according to claim 8, characterized in that: In step b, the time required for forging is calculated in real time through the press head speed data collected by the sensor and the current time array is obtained. The current time array is then spliced ​​with the time array in the historical data and then spliced ​​with other parameters as input data to update the temperature prediction curve.

Citation Information

Cited By

  • Intelligent control method, system and device for vacuum isothermal forging press

    CN119681184A

  • Self-adaptive control system for hot-press forming temperature of paper cup based on deep learning model

    CN121209281A