Multi-task index pipe bending forming quality prediction method, system, equipment and medium
Through a multi-task learning model that combines fully connected layers and long short-term memory networks, it solves the shortcomings of bending process parameter acquisition and quality prediction models in the existing technology, achieves high-precision prediction of multiple quality indicators, and improves bending forming. Quality accuracy and efficiency.
Patent Information
- Application Number
- CN202410821435.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
AI Technical Summary
The existing bending process parameter acquisition and bending forming quality prediction models have shortcomings and cannot meet the needs of high accuracy and high efficiency. Especially when dealing with multiple interrelated quality indicators, it is difficult to fully reflect the complex coupling relationship.
The fully connected layer module and long short-term memory network are combined with the feature sharing mechanism to build a multi-task learning model, obtain offline and online data, perform multi-task learning of parameter features, and predict quality indicators such as wrinkles, wall thickness thinning, and springback.
It improves the accuracy of pipe bending and forming quality, enables a more comprehensive understanding of the complex relationships in the pipe bending and forming process, and enhances the accuracy and efficiency of prediction.
Smart Images

Figure CN118734246A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of pipe bending technology, and in particular to a method, system, equipment and medium for predicting the quality of pipe bending forming with multiple task indicators. Background Art
[0002] In the current pipe bending process, the acquisition of process parameters and the prediction of bending quality are two crucial links. However, the existing technology has certain defects in both aspects.
[0003] First of all, the acquisition of pipe bending process parameters is usually divided into offline data and online data. Offline data is mainly static information that has been determined before bending, such as the material, specification, bending angle, etc. of the pipe. Online data is dynamic information collected by sensors in real time during the bending process, such as bending force, bending speed, pipe deformation state, etc. However, in existing technologies, the use of these two types of data is often not comprehensive and accurate, which makes it difficult for subsequent quality prediction models to obtain accurate results.
[0004] Secondly, the construction of a bending quality prediction model is also a difficulty in the existing technology. Although some methods based on machine learning or deep learning have been applied in this field, these models can often only predict a single quality indicator, such as only predicting wrinkling or only predicting wall thickness thinning. However, in the actual pipe bending process, these quality indicators are often interrelated, and the influence of multiple tasks needs to be considered at the same time. Therefore, the existing single-task learning model often has limitations in predicting the bending quality and cannot fully reflect the complex coupling relationship in the pipe bending process.
[0005] In summary, the existing bending process parameter acquisition technology and bending forming quality prediction model have certain defects and cannot meet the requirements of high precision and high efficiency in actual production. Therefore, it is of great practical application value and academic significance to develop a method that can comprehensively acquire the bending process parameters and construct a bending forming quality prediction model based on multi-task learning. Summary of the invention
[0006] The purpose of the present invention is to provide a multi-task index tube bending quality prediction method, system, equipment and medium, which can improve the accuracy of tube bending quality.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A multi-task index tube bending quality prediction method, comprising:
[0009] Obtaining pipe bending process parameters; the pipe bending process parameters include offline data and online data; the offline data is static information that has been determined before bending; the online data is dynamic information collected by sensors in real time during the bending process;
[0010] The bending process parameters are input into the bending forming quality prediction model to determine the prediction results of the bending forming quality indicators; the bending forming quality indicators include wrinkling, wall thickness thinning and springback; the bending forming quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships: the pipe bending forming defects involve outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback.
[0011] Optionally, the offline data includes material parameters, geometric parameters and offline process parameters; the material parameters include elastic modulus E, elongation δ, yield strength σ of the pipe 0.2 , tensile strength σ b and strength coefficient k; the geometric parameters include tube diameter D and wall thickness t; the offline process parameters include bending angle, bending radius R, bending speed ω, boost speed v, mold-tube friction coefficient μ, mold-tube gap c, and core ball number N.
[0012] Optionally, the online data includes dynamically changing temperature, pressure, torque, stress strain and displacement.
[0013] Optionally, the step of inputting the bending process parameters into a bending forming quality prediction model to determine a bending forming quality index prediction result specifically includes:
[0014] Using a fully connected layer module to extract features from the offline data to obtain a first data feature;
[0015] Extracting features from the online data using a long short-term memory network to obtain a second data feature;
[0016] Based on the feature sharing mechanism, the first data feature and the second data feature are integrated to obtain a comprehensive feature;
[0017] Multi-task learning is performed based on the comprehensive features. First, task 1 is performed to classify and predict wrinkles. The model is processed by the Softmax classifier to classify and predict wrinkles. Secondly, task 2 is performed to predict the springback angle. The model is processed by the fully connected layer module to numerically predict the springback angle. Finally, task 3 is performed to predict wall thickness thinning to obtain the prediction results of bending forming quality indicators.
[0018] Optionally, the training process of the bending forming quality prediction model is:
[0019] Acquire training data; the training data is pipe bending process training data and corresponding prediction results;
[0020] Build the initial training model;
[0021] The training data is input into the initial training model, and the model parameters are adjusted using L1 / L2 regularization strategy, random dropout and batch normalization strategy, and Bayesian hyperparameter optimization method, and the trained initial training model is determined as the bending forming quality prediction model.
[0022] The present invention also provides a multi-task index tube bending quality prediction system, comprising:
[0023] A data acquisition module is used to obtain bending process parameters; the bending process parameters include offline data and online data; the offline data is static information that has been determined before bending; the online data is dynamic information collected by sensors in real time during the bending process;
[0024] The model prediction module is used to input the bending process parameters into the bending forming quality prediction model to determine the prediction results of the bending forming quality indicators; the bending forming quality indicators include wrinkling, wall thickness thinning and springback; the bending forming quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships, namely, tube bending forming defects involving outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback.
[0025] The present invention also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the multi-task indicator tube bending quality prediction method.
[0026] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the multi-task index pipe bending forming quality prediction method as described above.
[0027] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0028] The present invention discloses a multi-task index tube bending quality prediction method, system, equipment and medium, the method comprises obtaining tube bending process parameters; inputting the tube bending process parameters into a bending quality prediction model to determine the prediction results of bending quality indicators; the bending quality indicators include wrinkling, wall thickness thinning and springback; the bending quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships, namely, tube bending defects involving outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback. The present invention can improve the accuracy of tube bending quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0030] Figure 1 It is a schematic diagram of the process of the multi-task index tube bending forming quality prediction method of the present invention;
[0031] Figure 2 Schematic diagram of the fully connected layer structure used for feature extraction of offline data in this embodiment;
[0032] Figure 3 Schematic diagram of the LSTM layer structure used for feature extraction of online data in this embodiment;
[0033] Figure 4 A schematic diagram of a process for simultaneously predicting tube wrinkling, springback, and wall thickness reduction using a feature-sharing multi-task learning model in this embodiment;
[0034] Figure 5 This is a schematic diagram of the structure of the multi-data source input-multi-task index tube bending quality prediction model in this embodiment;
[0035] Figure 6 This is a flowchart of the discarding strategy and batch normalization process of the neural network hidden layer in this embodiment;
[0036] Figure 7 : is a graph of loss value-iteration number in this embodiment; wherein, part (a) is a graph of training set experimental results; part (b) is a graph of validation set experimental results;
[0037] Figure 81 is a comparison diagram of the predicted value and the actual value in this embodiment; wherein, part (a) is a schematic diagram for comparing wrinkle classification; part (b) is a schematic diagram for comparing average wall thickness thinning rate; part (c) is a schematic diagram for comparing maximum wall thickness thinning rate; and part (d) is a schematic diagram for comparing springback angles. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The purpose of the present invention is to provide a multi-task index tube bending quality prediction method, system, equipment and medium, which can improve the accuracy of tube bending quality.
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0041] like Figure 1 As shown, the present invention provides a multi-task index tube bending quality prediction method, comprising:
[0042] Step 100: Acquire pipe bending process parameters; the pipe bending process parameters include offline data and online data; the offline data is static information that has been determined before bending; the online data is dynamic information collected by sensors in real time during the bending process.
[0043] Step 200: Input the bending process parameters into the bending forming quality prediction model to determine the prediction results of the bending forming quality indicators; the bending forming quality indicators include wrinkling, wall thickness thinning and springback; the bending forming quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships, namely, tube bending forming defects involving outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback.
[0044] Based on the above technical solution, the following embodiments are provided.
[0045] First, build a prediction model:
[0046] 1. Offline and online data feature extraction and feature sharing
[0047] The parameters involved in the pipe bending process can be divided into two categories: offline data and online data. Offline data are static parameters that have been determined before bending, including material parameters, geometric parameters and offline process parameters. Material parameters include elastic modulus E, elongation δ, yield strength σ of the pipe 0.2 , tensile strength σ b , strength coefficient k, etc.; geometric parameters include tube diameter D, wall thickness t, etc.; and offline process parameters include bending angle, bending radius R, bending speed ω, boost speed v, mold-tube friction coefficient μ, mold-tube gap c, core ball number N, etc. These parameters are fixed before bending and forming, and have a relatively stable effect on the tube bending process. Offline data provides effective information on the initial state of the bending process, laying the foundation for the prediction of tube bending quality; online data is dynamic information collected by sensors in real time during the bending process, including dynamically changing temperature, pressure, torque, stress strain, displacement and other data. These real-time data can provide detailed information about the state of the tube bending process, which is crucial for accurately predicting the quality of tube bending.
[0048] The comprehensive analysis of offline and online data helps to fully understand the complex process of tube bending. Combining the two to train a deep learning model can more accurately capture the key features of bending quality and improve the prediction performance of the model. Therefore, a full understanding and effective integration of offline and online data is a key step in achieving tube bending quality prediction.
[0049] Considering that the quality of tube bending is affected by many factors, including the static characteristics of offline parameters (such as material parameters, geometric parameters and offline process parameters) and the dynamic changes of online parameters (dynamic data collected by sensors). In order to fully capture the associated information of these multi-source data, the strategy of offline and online data extraction and feature sharing is introduced to better adapt to the process characteristics of CNC tube bending. In terms of offline data, the fully connected layer (FCN) is used for feature extraction to effectively capture the static characteristics of material, geometry and process parameters. For online parameters, the long short-term memory network (LSTM) is used for feature extraction to better capture dynamic online information and its temporal relationship.
[0050] After feature extraction, in order to effectively share features from different sources, a multi-data source-multi-task tube bending quality prediction neural network model needs to be constructed. This network model has excellent performance in integrating the features of offline and online data, while making full use of the advantages of multi-task learning to simultaneously predict multiple bending quality indicators such as wrinkling, wall thickness reduction, and springback. By sharing the key features obtained when learning a task, this mechanism enables the model to have a more comprehensive understanding of the influencing factors in the forming process and better adapt to different prediction tasks.
[0051] (1) Offline data feature extraction
[0052] In the prediction of tube bending quality, offline data refers to the parameters that have been set before forming, including material parameters, geometric parameters, and offline process parameters. These parameters usually have a relatively static impact on the quality of tube bending, so it is appropriate to use a fully connected layer for feature extraction. The fully connected layer is a basic structure in a neural network. Each of its neurons is connected to all neurons in the previous layer. By learning weights and bias terms, the input data can be mapped to a higher level of abstract feature representation.
[0053] The feature extraction process of offline data is performed through the fully connected layer. Figure 2 As shown in Figure 1, first, the offline data, including material parameters, geometric parameters, and offline process parameters, are fed into the fully connected layer. Through two fully connected layers, each neuron in each layer continuously adjusts the weights and bias terms during the learning process so that the model can capture the key information in the offline data. Finally, the a contained in the fully connected layer 2 1 、a 2 ……a n This means that the two-layer fully connected network extracts information from offline data. This fully connected structure enables the model to automatically learn nonlinear relationships and important patterns in offline data.
[0054] The fully connected layer can effectively extract the complex relationship between these static parameters and forming quality by learning the weights of offline data. This helps the model better understand the combined impact of material properties, geometry, and offline process parameters on the quality of tube bending. Therefore, by extracting features from offline data through the fully connected layer, the model can capture the tube characteristics that are known before forming, providing the model with an effective understanding of the initial state of the forming process and laying the foundation for subsequent prediction of tube bending quality.
[0055] (2) Online data feature extraction
[0056] In the prediction of tube bending quality, online data covers the real-time information collected by sensors during the forming process, such as the change in torque applied by the mold on the tube collected by the torque sensor. Unlike offline data, online data is updated at all times and covers dynamic changes in the forming process.
[0057] The LSTM network consists of an input gate, a forget gate, and an output gate. First, the input gate determines the input information of the current time step, allowing the network to selectively focus on currently important information. Second, the forget gate determines which past information needs to be forgotten, allowing the network to better adapt to the dynamic changes of data. Finally, the output gate controls the output of the current time step, ensuring that the model better understands the changing trend of online data. Figure 3 As shown in Figure 1, first, in order to adapt to the processing of time series data, the online data is first segmented from Step-1 to Step-n according to the time step to form a continuous time series. The purpose of this step is to retain the temporal relationship of the data and ensure that the model can fully capture the dynamic changes in the forming process. Subsequently, the segmented time series data (S 1 …S n ) is fed into the LSTM network for training. During the training process, the LSTM network gradually learns and extracts key features from the online data. The input gate allows the network to selectively focus on the important information of the current time step, the forget gate determines which past information needs to be forgotten, and the output gate controls the output of the current time step. This series of gating mechanisms enables the network to better adapt to the dynamic changes of online data. Finally, the LSTM layer outputs the high-level feature representation extracted from the online data (a 1 …a n ), these representations contain dynamic patterns and changing trends in the forming process, and then the extracted online data features are further learned through a fully connected layer 1. Extracting features from online data through the LSTM layer helps the model to more comprehensively understand the state changes of the pipe in real-time production, providing more in-depth information for accurate prediction of bending forming quality.
[0058] The defects of pipe bending include thinning and cracking of the outer wall thickness, instability and wrinkling defects of the inner side, and unloading rebound. The generation of these defects is jointly affected by offline and online parameters, and there is an extremely complex coupling relationship between them. By adopting the multi-task learning method, the model can simultaneously predict these three tasks with complex coupling relationships, and the basic features of each task can be shared. This sharing mechanism not only improves the training efficiency, but also enhances the accuracy of the prediction.
[0059] like Figure 4As shown in the figure, LSTM1 and LSTM2 extract features from the online data collected by sensor 1 and sensor 2 to obtain features 1 and 2. At the same time, the offline data is processed by the fully connected layer to obtain feature 3. Next, the three features are integrated through the feature sharing mechanism to obtain a more comprehensive feature representation. This feature sharing mechanism helps the model to understand the relationship between offline and online data more comprehensively and improves the model's understanding of the entire tube bending process. Based on feature sharing, the model performs multi-task learning. First, for the classification prediction of wrinkling (task 1), the model is processed by the Softmax classifier to make accurate classification predictions of wrinkling. Secondly, for the prediction of the springback angle (task 2), the model passes through a fully connected layer (FCN4) to make accurate numerical predictions of the springback angle. Finally, for the prediction of wall thickness reduction (task 3), the model also passes through a fully connected layer (FCN5) to make accurate numerical predictions of wall thickness reduction. The three tasks are carried out simultaneously. In this way, the model can share the key features obtained when learning a task, which improves the overall learning efficiency. Under the framework of multi-task learning, the model can better understand the correlation between tasks and thus more accurately predict the tube bending quality.
[0060] 2. Multi-data source input-multi-task index tube bending quality prediction model
[0061] The fully connected layer and LSTM layer are used to extract features from multiple data sources such as offline data and online data generated during the pipe bending process, and the extracted features are shared. This feature sharing mechanism helps to achieve multi-task learning of key quality indicators such as pipe bending angle, wall thickness reduction, and wrinkling, so that the model can better understand the correlation between these tasks. Next, the construction of the multi-data source input-multi-task indicator pipe bending forming quality prediction model will be introduced in detail.
[0062] As mentioned above, the springback angle of the pipe after the die is unloaded is mainly related to the bending moment M of the pipe section. In addition, the pipe section inertia moment I, the pipe elastic modulus, the pipe diameter and wall thickness, as well as material parameters, geometric parameters and process parameters such as bending angle, bending speed and boost speed are also closely related to the springback angle. Among these factors, except for the cross-sectional bending moment M, the remaining parameters are included in the offline data. Since the bending moment of the pipe section is difficult to measure directly, the moment in the pipe section should be balanced with the die reaction moment when the system is in equilibrium. Therefore, paying attention to the pressure die and clamping die reaction moment information recorded by the torque sensor during the bending process can reflect the bending moment of the section to a certain extent. Therefore, the information provided by the online data of the pressure die-clamping die reaction moment is mainly used, and the information provided by the offline data is used as a supplement to jointly predict the springback angle, which can significantly improve the accuracy of the prediction of the springback angle.
[0063] In the bending deformation area, the inner side is affected by the tangential compressive stress, and the stability of the pipe in the wall thickness direction is relatively poor. Therefore, when the tangential compressive stress in the inner compression deformation area reaches a certain threshold, a slight disturbance will cause the in-plane deformation to branch outward, that is, unstable wrinkling. In addition, the occurrence of wrinkling is also greatly affected by process parameters such as the bending angle, the gap between the mold and the pipe, the extension of the mandrel, the bending speed, and the boost speed, while taking into account the role of material parameters and pipe geometric parameters. Therefore, the online shear stress data on the inner side of the pipe during the bending process recorded by the stress sensor is mainly used, combined with the information provided by the offline data, to jointly classify and predict wrinkling, which can significantly improve the prediction accuracy.
[0064] The outer wall thickness reduction rate is related to the distance from the neutral layer of the pipe and the radius of the neutral layer, and is therefore mainly affected by the geometric parameters of the pipe. The information provided by offline data is used as the main body, and the online information features extracted by other sensors when predicting the springback angle and wrinkling are used as an auxiliary to jointly predict the thinning rate, which has a higher accuracy rate.
[0065] According to the above analysis, a multi-data source input-multi-task index tube bending quality prediction model architecture is proposed, such as Figure 5 As shown. The inner wall shear stress sequence data is first subjected to feature extraction by LSTM1, and then the extracted sequence data features are further learned by the fully connected layer FCN1. FCN1 contains the important features learned by the neural network from the inner wall shear stress sequence data; the offline data is subjected to feature extraction by the fully connected layer FCN2, and then deepened by FCN3, which contains the key features learned by the network from the offline data; the anti-torque sequence data of the pressure die and the clamping die during the processing is first subjected to feature extraction by LSTM2 and LSTM3, and then deepened by the fully connected layers FCN4 and FCN5, respectively. These features are organically communicated in the feature sharing layer 3, which contains the key features learned by the neural network from the anti-torque sequence data of the pressure die and the clamping die.
[0066] Next, the features learned from the inner wall shear stress sequence data (FCN1) and the features learned from the offline data (FCN3) are shared to obtain the feature sharing layer 1, and then these shared features are learned through the fully connected layer FCN6, and finally through the SoftMax classifier layer, they are used to classify and predict whether wrinkles occur or not. This is task 1 in multi-task learning; the features learned from the inner wall shear stress sequence data (FCN1), the features learned from the offline data (FCN3), and the features learned from the pressure die and clamping die sequence data (feature sharing layer 3) are shared to form a feature sharing layer 2. Subsequently, these shared features are learned through the fully connected layer FCN7 to predict the average wall thickness thinning rate and the maximum wall thickness thinning rate of the outer wall. This is task 2 in multi-task learning; finally, the features learned from the pressure die and clamping die sequence data (feature sharing layer 3) and the features learned from the offline data (FCN3) are shared to obtain the feature sharing layer 4. These shared features are then learned through the fully connected layer FCN8 to predict the springback angle. This is task 3 in multi-task learning.
[0067] This multi-data source input, multi-level, multi-task network structure not only enables the model to fully utilize various information of the tube bending process, but also allows the model to fully explore the correlation between different tasks, thereby improving the accuracy of model prediction.
[0068] 3. Model tuning strategy
[0069] (1) L1 / L2 regularization strategy
[0070] For the layers that give features, L2 regularization is used; for the layers that accept features, L1 regularization is used. Specifically, L1 regularization achieves the zeroing effect of low-correlation items by limiting the L1 norm of the characteristic parameters of the network, improving the sparsity of the model and ensuring the simplicity of the model. L1 regularization is applied to feature acceptance layers, such as FCN6, FCN7, and FCN8 in the model, which reduces information redundancy and ensures the efficiency of feature transfer. L2 regularization ensures the sparsity of the model space by limiting the L2 norm of the parameters. Unlike L1 regularization, L2 ensures sparsity by limiting the model space. L2 regularization is applied to shared feature layers, such as FCN1, FCN3, FCN4, and FCN5 in the model, which improves the efficiency of information integration and ensures the sharing of optimal feature information. L2 regularization is performed on layers other than feature sharing layers and feature acceptance layers to ensure global sparsity and prevent overfitting.
[0071] (2) Random Dropout and Batch Normalization Strategy
[0072] In addition, if Figure 6As shown in the figure, for each hidden layer in the model, first, the Dropout method is used in the hidden layer to randomly discard a part of the neuron cells so that their outputs in each training iteration are set to zero. This introduces randomness, which helps reduce the model's excessive dependence on specific neurons, thereby reducing the risk of overfitting and improving the model's performance on unseen data.
[0073] After the Dropout step, the output of the remaining neurons is passed to the Batch Normalization layer (BN layer). Batch Normalization normalizes each feature dimension to ensure that its mean is close to zero and its standard deviation is close to one. This normalization process helps alleviate the gradient vanishing and exploding problems and improves the stability of training. By normalizing each small batch of data, Batch Normalization makes the model more robust to changes in input data, reduces dependence on initial weights, and helps converge the model faster. The output of the BN layer serves as the input to the next hidden layer.
[0074] (3) Bayesian Hyperparameter Optimization
[0075] In order to further improve the performance of the multi-data source input-multi-task tube forming quality prediction model, this paper adopts the Bayesian optimization method to tune the model hyperparameters. In this study, Bayesian optimization will be used to automatically search for the best hyperparameter combination to optimize the performance of the model.
[0076] As shown in Table 1, in this model, the hyperparameters and value spaces that need to be optimized include:
[0077] (1) L1 regularization coefficient. The logarithm is taken in (1e-5, 1e-1) and then uniformly distributed.
[0078] (2) L2 regularization coefficient. The logarithm is taken in (1e-5, 1e-1) and then uniformly distributed.
[0079] (3) Dropout rate. (0, 0.5) Uniform distribution.
[0080] (4) Learning rate. (1e-4, 1e-1) Take the logarithm and distribute it evenly.
[0081] (5) The weight of each task in multi-task learning. This model simultaneously performs four tasks: wrinkle classification prediction (task 1), average wall thickness thinning prediction (task 2-1), maximum wall thickness thinning rate prediction (task 2-2), and springback angle prediction (task 3). Assigning different weights to each task can control the contribution of each task to the total loss and balance the correlation and importance between different tasks. Task 1 weight: (0.1, 1) uniform distribution; Task 2-1 weight: (1, 2) uniform distribution; Task 2-2 weight: (1, 2) uniform distribution; Task 3 weight: (1, 2) uniform distribution.
[0082] (6) Network weight initialization method: [Xavier initialization, He initialization, uniform distribution random initialization, normal distribution random initialization].
[0083] (7) Batch size: the number of training samples used to update model parameters in each iteration. There are 3 options: [16, 32, 64].
[0084] (8) Iteration number, the number of rounds through the entire training set. (50,300) The step size is 20, evenly distributed.
[0085] (9) Cross validation folds. (4,7) Step size is 1, uniform distribution.
[0086] Table 1 Hyperparameter space
[0087]
[0088] The main goal of Bayesian optimization is to find the hyperparameter combination that optimizes the model performance in the hyperparameter space. Usually, this involves minimizing or maximizing a performance metric. In this model, three regression tasks, including springback angle prediction, maximum thinning rate prediction, and average thinning rate prediction, as well as a binary classification task of wrinkle classification prediction, were performed. Therefore, the objective function is set to minimize the sum of the mean absolute error (MAE) of the regression task on the validation set and the binary cross entropy (BCE) of the classification task. This objective function can be formalized as follows:
[0089] Objective=BCE 1 +MAE 2-1 +MAE 2-2 +MAE 3
[0090] Among them, BCE 1 Represents the binary cross entropy of the classification task on the validation set, MAE 2-1 , MAE 2-2 , MAE 3 Represent the mean absolute errors of the three regression tasks on the validation set.
[0091] (4) Early Stopping and Model Checkpoints
[0092] Early stopping is a regularization method used to prevent model overfitting. The core idea is to monitor the performance of the model during the training process and stop the training in time when the performance of the model on the validation set stops improving, so as to avoid overfitting. The specific steps are as follows: divide the training data set into two parts, one for training and the other for evaluation and verification. During the training process, the performance of the model is regularly evaluated on the validation set. If the performance of the model on the validation set does not improve within a certain number of consecutive rounds (called "patience"), the training is terminated early. On the one hand, the early stopping method can prevent the model from overfitting on the training set and improve the generalization ability of the model; on the other hand, it can save computing resources and avoid unnecessary training time, which is especially important when using Bayesian optimization for hyperparameter tuning.
[0093] Model checkpoints are a mechanism for saving the intermediate state of a model during training. It allows the weights or the entire model to be saved during training so that it can be reloaded when needed. Model checkpoints prevent losses caused by unexpected interruptions to training and allow the best model to be selectively loaded instead of the last model during training.
[0094] Then verify the model performance:
[0095] 1. Introduction to the application of the model in 6061-T4 aluminum alloy tube bending
[0096] (1) Network structure: The network structure introduced above uses multi-source online and offline data, such as the information of the counter torque of the pressure die and the clamping die, and the information of the inner wall shear stress. Through the joint action of the fully connected layer (FCN) and the LSTM layer, it comprehensively extracts the static and dynamic information from the offline and online data and constructs a multi-task learning framework. Under this framework, the feature information extracted from the data is shared, and multi-task predictions of wrinkling, average wall thickness reduction rate, maximum wall thickness reduction rate, and springback angle are performed simultaneously.
[0097] (2) Dataset establishment: Through a large number of finite element simulations, 162 6061-T4 aluminum alloy tube bending simulation results were obtained. The online data was extracted and preprocessed. At the same time, the sample size was expanded to 180 by repeating the simulation results of the wrinkling type. Finally, the data set was divided according to the ratio of the test set to 0.1, and the K-fold cross-validation strategy was adopted.
[0098] (3) Model hyperparameter tuning: In the network structure, the L1 regularization strategy is used to optimize the feature acceptance layer, and the L2 regularization strategy is used to tune the feature sharing layer and other hidden layers. In order to improve the generalization ability and training efficiency of the network, the dropout layer and batch normalization layer are introduced. The specific hyperparameter values and other model hyperparameters are tuned using the Bayesian optimization method, and the number of iterations is set to 250. Finally, the optimal hyperparameter combination shown in Table 2 is obtained.
[0099] (4) Model training and saving: In the model training phase, the neural network structure is configured according to the best hyperparameter combination. K-fold cross validation is used to divide the training set into K parts, one of which is selected as the validation set and the rest as the training set. Model checkpoints are introduced to save the model with the best performance on the validation set. In this way, a fully validated model is obtained on each fold. Finally, the model with the best performance among all compromises is evaluated on the test set.
[0100] Table 2 Hyperparameter optimization results in the model
[0101]
[0102] 2. Model performance analysis on training set and validation set
[0103] Figure 7 The figure shows the change curve of the model loss value on the training set and the validation set as the number of iterations (epochs) during the K-fold cross-validation process.
[0104] As can be seen from the figure, the loss values on the training set and validation set in the first fold decreased from a high level to a low level, indicating that the model had a poor fitting effect on the training data in the initial stage of training, but as the training progressed, the model gradually learned the characteristics of the data, resulting in a decrease in the loss value. This phenomenon reflects the model's initial learning process of the training data. In the subsequent training process, the model gradually gained stronger generalization ability and was able to be more effectively extended to the validation set.
[0105] In the second and subsequent folds, the loss value on the training set has remained at a low level, and the loss value on the validation set has also remained at a low level, which indicates that the model has learned common features or patterns in the learning process of different folds. The model can maintain low training set and validation set loss values in subsequent folds, indicating that the model is better adapted to the function characteristics, making the model's prediction of the validation set data relatively accurate.
[0106] In addition, it is observed that the loss curve of the model on the validation set tends to be stable, which indicates that the model can generalize effectively on the validation set and has relatively good prediction performance for new data, rather than just overfitting the training data. The stable validation set loss curve also shows that the model is not affected by overfitting, but generalizes in a stable state.
[0107] Based on the above observations and analysis, it can be concluded that the training process of the model on different folds is effective and convergent as a whole, and shows good generalization ability on the validation set.
[0108] Table 3 presents the overall performance evaluation of the model on the 7-fold cross validation set in detail. During each fold of training, the model is tested on the corresponding validation set to demonstrate the prediction performance of each bending quality indicator.
[0109] Table 3 Model 7-fold cross validation evaluation
[0110]
[0111]
[0112] For regression tasks such as springback angle, average wall thickness reduction rate, and maximum wall thickness reduction rate, the mean absolute error (MAE) is selected as the evaluation metric to quantify the accuracy of the model for these continuous property indicators. For discrete problems such as wrinkle classification, binary cross entropy (BCE) is used as the evaluation criterion to evaluate the performance of the model on classification tasks.
[0113] The performance of the model on different tasks, using the comprehensive indicator BCE 1 +MAE 2-1 +MAE 2-2 +MAE 3 It is worth noting that the smaller the value of this comprehensive index is, the better the comprehensive performance of the model in multiple tasks such as wrinkle classification, average wall thickness reduction rate, maximum wall thickness reduction rate and springback angle prediction.
[0114] It is clear from the table that the model performs best on the seventh fold. By introducing the ModelCheckpoint mechanism, the model with the best performance on the validation set is saved. This training result will be further used for performance verification on the test set in subsequent chapters to confirm the generalization and prediction capabilities of the model on actual data.
[0115] 3. Model performance analysis on the test set
[0116] Finally, the generalization ability of the model is evaluated on 17 test set samples. The test set plays a key role in verifying the generalization performance of the model. Its main function is to evaluate the performance of the model on unseen data, so as to determine whether the model makes accurate predictions in real application scenarios. If the model performs well on the test set, it means that it can be generalized to new data and has strong generalization performance. On the contrary, if the model performs poorly on the test set, it may mean overfitting or that the model fails to capture the true characteristics of the data.
[0117] Figure 8 The comparison of the model's predicted values and actual values on four tasks is presented. It should be noted that in the binary classification problem of wrinkle prediction, 1 indicates wrinkles and 0 indicates no wrinkles.
[0118] It can be observed from the figure that the model's predicted values for each task are quite close to the actual values. There are large prediction errors at very individual points, but overall they are within an acceptable range. In addition, Table 2-3 provides the model's prediction accuracy in the wrinkle classification prediction task, as well as the average relative errors in the three tasks of average wall thickness thinning rate, maximum wall thickness thinning rate, and springback angle. The model's prediction accuracy for the wrinkle classification task on the test set reached 100%, which shows that the model has a high degree of classification accuracy in wrinkling problems; the average relative error for the average wall thickness thinning rate is 5.905%; the average relative error for the maximum wall thickness thinning rate is 5.471%; and the average relative error for the springback angle prediction is 4.832%. These relative error values show that the model's predictions on these key indicators are quite accurate. It provides solid support for the accurate prediction of forming quality.
[0119] Table 4 Prediction results of the model on the test set
[0120]
[0121] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0122] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A multi-task index tube bending quality prediction method, characterized in that: include: Obtaining pipe bending process parameters; the pipe bending process parameters include offline data and online data; the offline data is static information that has been determined before bending; The online data is dynamic information collected in real time by sensors during the bending process; The bending process parameters are input into the bending forming quality prediction model to determine the prediction results of the bending forming quality indicators; the bending forming quality indicators include wrinkling, wall thickness thinning and springback; the bending forming quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships: the pipe bending forming defects involve outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback.
2. The multi-task index tube bending quality prediction method according to claim 1 is characterized in that: The offline data includes material parameters, geometric parameters and offline process parameters; the material parameters include elastic modulus E, elongation δ, yield strength σ of the pipe 0.2 , tensile strength σ b and strength coefficient k; the geometric parameters include tube diameter D and wall thickness t; the offline process parameters include bending angle, bending radius R, bending speed ω, boost speed v, mold-tube friction coefficient μ, mold-tube gap c, and core ball number N.
3. The multi-task index tube bending quality prediction method according to claim 1 is characterized in that: The online data include dynamically changing temperature, pressure, moment, stress strain and displacement.
4. The multi-task index tube bending quality prediction method according to claim 1 is characterized in that: The step of inputting the bending process parameters into the bending forming quality prediction model to determine the bending forming quality index prediction result specifically includes: Using a fully connected layer module to extract features from the offline data to obtain a first data feature; Extracting features from the online data using a long short-term memory network to obtain a second data feature; Based on the feature sharing mechanism, the first data feature and the second data feature are integrated to obtain a comprehensive feature; Multi-task learning is performed based on the comprehensive features. First, task 1 is performed to classify and predict wrinkles. The model is processed by the Softmax classifier to classify and predict wrinkles. Secondly, task 2 is performed to predict the springback angle. The model is processed by the fully connected layer module to numerically predict the springback angle. Finally, task 3 is performed to predict wall thickness thinning to obtain the prediction results of bending forming quality indicators.
5. The multi-task index tube bending quality prediction method according to claim 1 is characterized in that: The training process of the bending forming quality prediction model is as follows: Acquire training data; the training data is pipe bending process training data and corresponding prediction results; Build the initial training model; The training data is input into the initial training model, and the model parameters are adjusted using L1 / L2 regularization strategy, random dropout and batch normalization strategy, and Bayesian hyperparameter optimization method, and the trained initial training model is determined as the bending forming quality prediction model.
6. A multi-task index tube bending quality prediction system, characterized in that: include: A data acquisition module is used to obtain bending process parameters; the bending process parameters include offline data and online data; the offline data is static information that has been determined before bending; The online data is dynamic information collected in real time by sensors during the bending process; The model prediction module is used to input the bending process parameters into the bending forming quality prediction model to determine the prediction results of the bending forming quality indicators; the bending forming quality indicators include wrinkling, wall thickness thinning and springback; the bending forming quality prediction model is constructed based on a fully connected layer module, a long short-term memory network and a feature sharing mechanism, and is used for multi-task learning of parameter features; the multi-task learning includes three tasks with complex coupling relationships, namely, tube bending forming defects involving outer wall thickness thinning and cracking, inner instability wrinkling defects and unloading springback.
7. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the multi-task indicator pipe bending forming quality prediction method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the multi-task indicator pipe bending quality prediction method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Prediction method of numerical control bending forming quality of conduit and device
CN101901283A
Regional traffic demand prediction method based on convolutional long-term and short-term memory network
CN110633871A
Flow playback test method and device based on deep learning, equipment and medium
CN116668198A
Pipe bending method and pipe bending system
CN117415200A
Method for monitoring and predicting state in pipe bending process in real time and digital twin system
CN117753834A
Cited By
Control method and system for stainless steel thin-wall pipe bending forming production line
CN121222881A
