Mechanical seal life prediction method based on adaptive disturbance coding neural network
Through the adaptive perturbation coding neural network and data augmentation model, the problem of insufficient data and vanishing gradient in mechanical seal life prediction is solved, the prediction accuracy and robustness are improved, and a more efficient mechanical seal life prediction is achieved.
Patent Information
- Application Number
- CN202410622275.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-23
AI Technical Summary
Existing mechanical seal life prediction methods are difficult to predict accurately in insufficient data and complex environments, and neural network training is prone to gradient disappearance or explosion problems and lacks robustness, resulting in low prediction accuracy and reliability.
Adopt a method based on adaptive perturbation coding neural network, including feature extraction sub-model, feature dimension reduction sub-model and regression sub-model, optimize the neural network parameters through the principle of fusion phenomenon, use the data expansion model to improve the quality of training data, and in the coding process Adaptive perturbations are introduced to enhance robustness.
It improves the accuracy and real-time performance of mechanical seal life prediction, avoids gradient disappearance or explosion problems, enhances the model's generalization ability to unknown data, and improves the feature dimensionality reduction effect.
Smart Images

Figure CN118536079A
Abstract
Description
Technical Field
[0001] The invention relates to the field of data processing, and in particular to a mechanical seal life prediction method based on an adaptive perturbation coding neural network. Background Art
[0002] Mechanical seals are vital components in industrial equipment, used to prevent fluid leakage and ensure the normal operation of mechanical parts. These sealing components operate in harsh environments such as high pressure, high temperature, and chemical corrosion. As they are used for a long time, they will gradually wear and age. Therefore, accurately predicting the remaining life of mechanical seals is of great significance to ensure equipment reliability, reduce unexpected downtime, and reduce maintenance costs.
[0003] Existing remaining life prediction methods mostly rely on physical models or simple statistical methods, which often require a large amount of accurate operating data and strict model assumptions. However, in practical applications, the available data is often limited and the cost of collecting data is high, which limits the effectiveness and scope of application of these methods. In addition, due to the complexity of the working environment of mechanical seals, traditional models are difficult to accurately capture all factors that affect the degradation of seal performance, which further reduces the accuracy and reliability of the prediction. The existing remaining life prediction methods have the following shortcomings: 1. It is difficult to train effectively when there is insufficient data, resulting in limited model generalization ability and prediction accuracy. 2. Existing neural network training methods often encounter gradient vanishing or explosion problems, which affects the stability of training and model performance. 3. Existing autoencoders and regression models are prone to overfitting when dealing with unknown or rare data, and lack the necessary robustness.
[0004] Therefore, it is necessary to provide a mechanical seal life prediction method based on an adaptive perturbation coding neural network to improve the accuracy of mechanical seal remaining life prediction. Summary of the invention
[0005] The present invention provides a mechanical seal life prediction method based on an adaptive perturbation coding neural network, comprising: establishing a mechanical seal life prediction model; training the mechanical seal life prediction model; acquiring real-time performance parameters of the mechanical seal to be detected; and predicting the remaining life of the mechanical seal to be detected based on the real-time performance parameters of the mechanical seal to be detected by the trained mechanical seal life prediction model.
[0006] Furthermore, a data expansion model is trained based on the labeled initial sample data set, including: S11, initializing the parameters of the generator and the parameters of the discriminator, and executing S12; S12, extracting initial sample data from multiple initial sample data, and executing S13; S13, the generator uses a random noise vector to generate false data of the extracted initial sample data, and executes S14; S15, fixing the parameters of the discriminator, adjusting the parameters of the generator through feedback from the discriminator, and executing S16; S16, determining whether the preset first stop iteration condition is met, and if so, completing the training, and if not, executing S12.
[0007] Furthermore, the training of the mechanical seal life prediction model includes: obtaining an initial sample data set; labeling the initial sample data set; training a data expansion model based on the labeled initial sample data set; performing data expansion on the labeled initial sample data set through the trained data expansion model to generate a sample data set; and training the mechanical seal life prediction model based on the sample data set.
[0008] Furthermore, the mechanical seal life prediction model includes at least a feature extraction sub-model, a feature dimensionality reduction sub-model and a regression sub-model, wherein the feature extraction sub-model is used to extract features of the real-time performance parameters of the mechanical seal to be tested, the feature dimensionality reduction sub-model is used to reduce the dimensions of the features of the real-time performance parameters of the mechanical seal to be tested extracted by the feature extraction sub-model, and the regression sub-model is used to predict the remaining life of the mechanical seal to be tested based on the features after dimensionality reduction.
[0009] Further, training the feature extraction sub-model includes: S21, defining the neural network structure of the feature extraction sub-model, initializing multiple pairs of neural network parameters of the feature extraction sub-model, wherein the neural network parameters include weights and biases, and executing S22; S22, performing fusion candidate checks on each pair of neural network parameters, determining target neural network parameters, fusing the target neural network parameters, updating the target neural network parameters, and executing S23; S23, performing energy evaluation on the updated target neural network parameters, updating parameter status, and executing S24; S24, adjusting the nuclear reaction temperature and fusion temperature according to the current network performance and stability, and executing S25; S25, detecting whether the energy of the neural network parameters of the feature extraction sub-model reaches a dynamic equilibrium state, if so, executing S26, if not, executing S22; S26, updating the neural network parameters of the feature extraction sub-model according to the energy optimization principle, and executing S27; S27, judging whether convergence is achieved by the amplitude of parameter energy changes after multiple consecutive iterations, if so, completing training, and if not, executing S22.
[0010] Further, for each pair of neural network parameters, a fusion candidate check is performed to determine the target neural network parameters, including: for each pair of neural network parameters, determining the neural network parameters after the neural network parameters are fused and updated, calculating the energy difference between the energy state corresponding to the neural network parameters and the energy state corresponding to the neural network parameters after the fusion and update, and judging whether the neural network parameters are target neural network parameters based on the energy difference and the energy difference threshold, wherein the neural network parameters after the neural network parameters are fused and updated are determined based on the following formula:
[0011] w' j =w j +δ tr
[0012] b' k =b k +∈ tr
[0013]
[0014]
[0015] Among them, w j is the weight in the neural network parameter, b k is the bias in the neural network parameters, w' j is the weight of the neural network parameters after fusion update, b' k is the bias in the neural network parameters after fusion update, δ tr is the weight adjustment amount, ∈ tr is the bias adjustment, σ to The sensitivity of the fusion adjustment, η to Scaling factor adjusted for fusion, for, , tanh() is the hyperbolic tangent function;
[0016] The energy difference between the energy state corresponding to the neural network parameters and the energy state corresponding to the neural network parameters after the fusion update is calculated based on the following formula:
[0017] ΔE=E(w' j ,b' k )-E(w j ,b k )
[0018]
[0019] Where ΔE is the energy difference, E(w' j ,b' k) is the energy state corresponding to the neural network parameters after the fusion update, E(w j ,b k ) is the energy state corresponding to the neural network parameters, E(w,b) is the energy state function, x i is the input data, y i is the target output corresponding to the input data, α k (t) is the adaptive weight of the kth scale at training time t, and K is the total number of feature scales;
[0020] Update α based on the following formula k (t):
[0021]
[0022] Among them, α k (t+1) is the adaptive weight of the kth scale at training time t+1, E k (t) is the loss value of the k-th scale at training time t, β k is the importance adjustment coefficient of the kth scale, exp() is the natural exponential function;
[0023] The energy difference threshold is updated based on the following formula:
[0024]
[0025] Among them, Θ(t+1) is the energy difference threshold at training time t+1, Θ(t) is the energy difference threshold at training time t, and v eo is, E(t) is the average energy of the current time step, E target is the target energy, σ E is the standard deviation of the energy variation.
[0026] Further, updating the neural network parameters of the feature extraction sub-model according to the energy optimization principle includes updating the neural network parameters of the feature extraction sub-model based on the following formula:
[0027]
[0028] b new =b' k +β rate Δb·T
[0029]
[0030]
[0031]
[0032] Where T is the fusion temperature of the current iteration, w new w j The corresponding updated weight, β rate is the updated learning rate, Δw is the weight update amount of the current iteration, is the fusion adjustment factor of the lth layer of the feature extraction sub-model, b new for b k The corresponding updated bias, Δb is the bias update amount of the current iteration, Δw prev is the weight update amount of the previous iteration, Δb prev is the bias update amount of the previous iteration, μ ea is the momentum coefficient, ρ yt is the adjustment factor, is the difference between the current weight of the lth layer of the feature extraction sub-model and the weight of the previous iteration, is the standard deviation of the weight change of the lth layer of the feature extraction submodel, λ yt is the adjustment factor, E l is the error rate of the lth layer of the feature extraction sub-model, is the gradient of the energy function Es with respect to the weight, is the gradient of the energy function Es with respect to the bias.
[0033] Furthermore, the feature dimensionality reduction sub-model includes an encoder and a decoder; training the feature dimensionality reduction sub-model includes: S31, randomly initializing the parameters of the encoder and the decoder, and executing S32; S32, converting the data sample into a latent space representation through the encoder, and using adaptive perturbation in the latent space, and executing S33; S33, inputting the perturbed latent representation into the decoder, reconstructing the data, and executing S34; S34, calculating the data difference between the reconstructed data sample and the input data sample, determining the reconstruction error, and executing S35; S35, performing back propagation according to the loss function, updating the parameters of the encoder and the decoder, and executing S36; S36, adjusting the intensity of the perturbation according to the reconstruction error, and executing S37; S37, whether the preset second stop iteration condition is met, if so, completing the training, if not, executing S32.
[0034] Furthermore, the loss function is:
[0035]
[0036] Among them, L(θ pe ,θ pd ) is the total loss, |||| 2 is the square of the Euclidean norm, λ is the regularization coefficient, n is the total number of data samples, x i is the i-th data sample, is the reconstructed data sample corresponding to the i-th data sample, θ pe is the encoder parameter, θ pd Decoder parameters.
[0037] Furthermore, training the regression sub-model includes: S41, initializing the regression parameters of the regression sub-model, and executing S42; S42, inputting the sample feature vector set into the regression sub-model, and the regression sub-model outputs the predicted remaining life, and executing S43; S43, calculating the gradient of the regression parameters of the regression sub-model, and executing S44; S44, using the quasi-Newton method to optimize the regression parameters of the regression sub-model based on the gradient of the regression parameters of the regression sub-model, and executing S45; S45, judging whether the preset third stop iteration condition is met, and if so, completing the training, and if not, executing S42.
[0038] Compared with the prior art, the mechanical seal life prediction method based on the adaptive perturbation coding neural network provided by the present invention has at least the following beneficial effects:
[0039] 1. By establishing and training a mechanical seal life prediction model, the trained mechanical seal life prediction model can realize real-time prediction of the remaining life of the mechanical seal to be tested based on the real-time performance parameters of the mechanical seal to be tested, thereby improving the real-time and accuracy of the prediction of the remaining life of the mechanical seal.
[0040] 2. The collection, acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor model generalization ability and affect the accuracy of the model. By establishing a data expansion model, the training data can be automatically expanded to ensure the accuracy of the mechanical seal life prediction model after training.
[0041] 3. In the neural network structure, you may encounter problems such as gradient vanishing, gradient exploding, or falling into a local optimal solution, which will affect the stability of training and the performance of the model. A neural network parameter optimization algorithm based on the principle of fusion phenomenon is adopted. Inspired by the fusion phenomenon in nature, lighter atomic nuclei merge under high temperature and high pressure to form more stable heavy atomic nuclei, while releasing huge amounts of energy. The neural network parameter optimization algorithm based on the principle of fusion phenomenon optimizes the weights and biases of the network by simulating the fusion process. The weights and biases are regarded as atomic nuclei, and their merging and transformation processes are designed to achieve the optimal state of the loss function. Unlike traditional optimization algorithms based on gradient descent, the neural network parameter optimization algorithm based on the principle of fusion phenomenon does not rely on gradient information, thus avoiding the problem of gradient vanishing or exploding;
[0042] 4. In order to address the problems of overfitting and insufficient generalization ability that may occur in existing autoencoders, an adaptive perturbation mechanism is adopted. By using controlled noise in the encoding process, the model's robustness to small changes in the input data is enhanced, thereby improving the effect of feature dimensionality reduction and improving the model's generalization ability for unknown data. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0044] Figure 1 It is a flow chart of a method for predicting the life of a mechanical seal based on an adaptive perturbation coding neural network according to some embodiments of this specification;
[0045] Figure 2 is a schematic diagram of a process for training a mechanical seal life prediction model according to some embodiments of this specification;
[0046] Figure 3 is a flow chart of a training data expansion model according to some embodiments of this specification;
[0047] Figure 4 is a schematic diagram of a process of training a feature extraction sub-model according to some embodiments of this specification;
[0048] Figure 5 is a schematic diagram of a process of training a feature dimensionality reduction sub-model according to some embodiments of this specification;
[0049] Figure 6 It is a flowchart of training a regression sub-model according to some embodiments of this specification. DETAILED DESCRIPTION
[0050] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0051] Figure 1 is a flow chart of a method for predicting the life of a mechanical seal based on an adaptive perturbation coding neural network according to some embodiments of this specification, such as Figure 1As shown, the mechanical seal life prediction method based on adaptive perturbation coding neural network can include the following steps.
[0052] Step 110, establishing a mechanical seal life prediction model.
[0053] In some embodiments, the mechanical seal life prediction model includes at least a feature extraction sub-model, a feature dimensionality reduction sub-model and a regression sub-model, wherein the feature extraction sub-model is used to extract the features of the real-time performance parameters of the mechanical seal to be tested, the feature dimensionality reduction sub-model is used to reduce the dimensionality of the features of the real-time performance parameters of the mechanical seal to be tested extracted by the feature extraction sub-model, and the regression sub-model is used to predict the remaining life of the mechanical seal to be tested based on the features after dimensionality reduction.
[0054] In some embodiments, the feature extraction submodel is a 3-layer fully connected neural network, including an input layer and 2 hidden layers, and a preset 1 output layer for supervised training of categories. Assuming the dimension of the input vector is d, the input layer has d neurons, corresponding to the d elements in the vector. Both hidden layers have 128 neurons, and ReLU is used as the activation function. The output layer uses the softmax function as the activation function. The output layer is only used for energy state during supervised training, and the actual output of the feature extraction submodel is the output of the second hidden layer, that is, the feature vector after feature extraction.
[0055] In some embodiments, the feature dimensionality reduction sub-model includes an encoder and a decoder. The encoder aims to convert high-dimensional input data into a lower-dimensional representation (latent space), and the decoder attempts to reconstruct the original input data from this low-dimensional representation.
[0056] In some embodiments, the regression sub-model may be an exponential regression model based on a branch-and-bound method, which uses a low-dimensional feature vector as input and outputs a predicted remaining life value.
[0057] The acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor generalization ability of the model and affect the accuracy of the model. Therefore, step 110 can also include establishing a data expansion model, wherein the data expansion model can be a generative adversarial network model, including a generator (G) and a discriminator (D). The generator is responsible for generating seemingly real data, and the discriminator attempts to distinguish between generated data and real data.
[0058] Step 120, training a mechanical seal life prediction model.
[0059] Figure 2 is a flow chart of training a mechanical seal life prediction model according to some embodiments of this specification, such as Figure 2 As shown, the mechanical seal life prediction model is trained, including:
[0060] Get the initial sample data set;
[0061] Label the initial sample data set;
[0062] Training the data augmentation model based on the annotated initial sample dataset;
[0063] The trained data expansion model is used to expand the labeled initial sample data set to generate a sample data set;
[0064] The mechanical seal life prediction model is trained based on the sample data set.
[0065] The initial sample data set may include multiple initial sample data, and the multiple initial sample data may include performance parameters of the mechanical seal under various operating conditions, and the initial sample data set is stored in a structured format. As an example only, the performance parameters may include at least bearing temperature, bearing vibration frequency, seal gap pressure, seal liquid temperature, seal liquid flow rate, spindle speed, inlet pressure, outlet pressure, seal material wear rate and chemical corrosion rate. It should be emphasized that this example is only to illustrate a data format and type of the present invention. In actual applications, the attributes of the performance parameters are usually more than 10 attributes, and the number of attributes of the data may reach dozens or even hundreds.
[0066] The initial sample data set can be annotated manually. The labels of the initial sample data can characterize the remaining life prediction of the mechanical seal.
[0067] Figure 3 is a flow chart of a training data expansion model according to some embodiments of this specification, such as Figure 3 As shown, in some embodiments, training the data augmentation model may include:
[0068] S11. Initialize the parameters of the generator and the discriminator, and execute S12.
[0069] For example, the parameters of the generator and the parameters of the discriminator can be initialized to small random numbers:
[0070]
[0071]
[0072] Among them, θ g is the parameter of the generator, θ d are the parameters of the discriminator.
[0073] S12. Extract a batch of initial sample data from a plurality of initial sample data, and execute S13.
[0074] Specifically, a batch of initial sample data extracted can be expressed as:
[0075]
[0076] Among them, X real represents a batch of initial sample data drawn, represents the i-th initial sample data extracted, m represents the total number of initial sample data extracted, and preferably, m is set to 128.
[0077] S13. The generator uses a random noise vector to generate false data of the extracted initial sample data, and executes S14.
[0078] Specifically, it can be expressed as:
[0079] X fake =G(Z;θ g )
[0080] Z={z (1) ,z (2) ,...,z (m)}
[0081] Among them, X fake represents the generated pseudo data of the extracted initial sample data; G() represents the generator function, Z represents the random noise vector set, z (i) represents the i-th noise vector.
[0082] S14. Input the extracted initial sample data and the false data of the extracted initial sample data into the discriminator at the same time, and execute S15.
[0083] Specifically, the discriminator updates its parameters to better distinguish true and false data by comparing the extracted initial sample data with the extracted false data of the initial sample data.
[0084] The loss function L of the discriminator D And the parameter update method can be expressed as:
[0085]
[0086]
[0087] Among them, L D represents the loss function of the discriminator; Indicates the expected operation; p data and p z Represent the distribution of real data and noise data respectively; α d represents the learning rate of the discriminator, Denotes the loss function of the discriminator on the parameter θ d The gradient of D(xreal ) represents the discrimination of the discriminator on the extracted initial sample data, and D(G(z)) represents the discrimination of the discriminator on the false data of the extracted initial sample data. Preferably, α d Can be set to 0.0002.
[0088] The calculation method of using sample approximation to calculate the expectation can be expressed as:
[0089]
[0090]
[0091] S15. Fix the parameters of the discriminator, adjust the parameters of the generator through the feedback of the discriminator, and execute S16.
[0092] Specifically, the parameters of the generator are adjusted through the feedback of the discriminator so that the data generated by the generator can better "cheat" the discriminator, that is, the discriminator has difficulty distinguishing between true and false. The loss function L of the generator G And the parameter update method can be expressed as:
[0093]
[0094]
[0095] Where, L G represents the loss function of the generator; α g represents the learning rate of the generator, represents the gradient of the generator's loss function with respect to . Preferably, α g Can be set to 0.0002.
[0096] Using the calculation method of sample approximate expected value, it can be expressed as:
[0097]
[0098] S16, determine whether the preset first stop iteration condition is met, if so, complete the training, if not, execute S12.
[0099] As an example only, the preset first stopping iteration condition is reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.
[0100] The method of training the data augmentation model, combined with Wasserstein distance and gradient penalty to improve the loss function, not only helps the data augmentation model to train more stably, but also generates higher quality data.
[0101] In the neural network structure, you may encounter problems such as gradient vanishing, gradient exploding, or falling into the local optimal solution, which will affect the stability of training and the performance of the model. The neural network parameter optimization algorithm based on the principle of fusion phenomenon is adopted. Inspired by the fusion phenomenon in nature, lighter atomic nuclei merge under high temperature and high pressure to form more stable heavy atomic nuclei, while releasing huge energy. The neural network parameter optimization algorithm based on the principle of fusion phenomenon optimizes the weights and biases of the network by simulating the fusion process. The weights and biases are regarded as atomic nuclei, and their merging and transformation processes are designed to achieve the optimal state of the loss function. Unlike the traditional optimization algorithm based on gradient descent, the neural network parameter optimization algorithm based on the principle of fusion phenomenon does not rely on gradient information, thus avoiding the problem of gradient vanishing or exploding.
[0102] Figure 4 is a flow chart of a training data expansion model according to some embodiments of this specification, such as Figure 4 As shown, in some embodiments, training a feature extraction sub-model includes:
[0103] S21. Define the neural network structure of the feature extraction sub-model, initialize multiple pairs of neural network parameters of the feature extraction sub-model, where the neural network parameters include weights and biases, and execute S22.
[0104] Specifically, the energy state E(w,b) is defined to describe the potential optimization ability of the parameters, which can be expressed as:
[0105]
[0106] Where E(w,b) is the energy state function, x i is the input data, y i is the target output corresponding to the input data, α k (t) is the adaptive weight of the kth scale at training time t, and K is the total number of feature scales. The number of feature scales is the number of attributes, for example, if 3 attributes are selected as a group, the scale is 3. k (t) depends on the training time t and the current performance state of the network, ensuring that the focus of the loss function is adjusted at different stages of training.
[0107] In some embodiments, α k (t) can be dynamically updated at each iteration, which allows the feature extraction sub-model to focus on different feature levels at different training stages, thereby more effectively learning the multi-level structure of complex data. For example, α can be updated based on the following formula k (t):
[0108]
[0109] Among them, αk (t+1) is the adaptive weight of the kth scale at training time t+1, E k (t) is the loss value of the k-th scale at training time t, β k is the importance adjustment coefficient of the kth scale, and exp() is the natural exponential function. k (t) can be calculated based on the cross entropy loss function. k It can be preset artificially based on the characteristics of the scale.
[0110] S22. For each pair of neural network parameters, perform fusion candidate check, determine the target neural network parameters, fuse the target neural network parameters, update the target neural network parameters, and execute S23.
[0111] Specifically, for each pair of neural network parameters, the neural network parameters after the neural network parameter fusion update are determined, the energy difference between the energy state corresponding to the neural network parameter and the energy state corresponding to the neural network parameter after the fusion update is calculated, and based on the energy difference and the energy difference threshold, it is determined whether the neural network parameter is the target neural network parameter, that is, whether the total energy of the system can be reduced by fusion, wherein the neural network parameter after the neural network parameter fusion update is determined based on the following formula:
[0112] w' j =w j +δ tr
[0113] b' k =b k +∈ tr
[0114]
[0115]
[0116] Among them, w j is the weight in the neural network parameter, b k is the bias in the neural network parameters, w' j is the weight of the neural network parameters after fusion update, b' k is the bias in the neural network parameters after fusion update, δ tr is the weight adjustment amount, ∈ tr is the bias adjustment, σ to The sensitivity of the fusion adjustment, η to Scaling factor adjusted for fusion, for, is, tanh() is the hyperbolic tangent function. Preferably, σ to and η toSet them to 0.1 and 0.3 respectively.
[0117] The energy difference between the energy state corresponding to the neural network parameters and the energy state corresponding to the neural network parameters after fusion update is calculated based on the following formula:
[0118] ΔE=E(w' j ,b' k )-E(w j ,b k )
[0119] Where ΔE is the energy difference, E(w' j ,b' k ) is the energy state corresponding to the neural network parameters after fusion update, E(w j ,b k ) is the energy state corresponding to the neural network parameters.
[0120] If ΔE<Θ(t), then accept the new parameter w' j and b' k , otherwise keep the original parameters unchanged, where Θ(t) is the energy difference threshold of the current iteration.
[0121] In some embodiments, the energy difference threshold is updated at each iteration, and the sensitivity and frequency of parameter updates are controlled by monitoring energy changes during the training process in real time and dynamically adjusting the energy difference threshold accordingly.
[0122] For example, the energy difference threshold may be updated based on the following formula:
[0123]
[0124] Among them, Θ(t+1) is the energy difference threshold at training time t+1, Θ(t) is the energy difference threshold at training time t, and v eo is the preset parameter, E(t) is the average energy of the current time step, that is, the mean of the energy state of all parameter pairs at the current time step, and E target is the target energy, σ E is the standard deviation of energy change, that is, the standard deviation of the energy state of all parameters at the current time step. Preferably, v eo It can be set to 0.01, E target Can be set to 0.1.
[0125] S23, perform energy evaluation on the updated target neural network parameters, update the parameter status, and execute S24.
[0126] Specifically, the parameter state is updated to push the parameter group of the high energy state to the low energy state to stabilize the desired state. The synthesized parameter set is re-evaluated through the energy function Es(w,b) to ensure the energy is minimized, which can be expressed as:
[0127]
[0128]
[0129] Among them, p(y i |x i ; w, b) means that given the input x i With parameters w, b, output y i The probability of std Indicates the standard deviation of the output data.
[0130] S24. Adjust the nuclear reaction temperature and fusion temperature according to the current network performance and stability, and execute S25.
[0131] Specifically, the fusion temperature can be adjusted based on the following formula:
[0132] T new =T old ·exp(-α te ΔEs)
[0133]
[0134] Among them, T new is the adjusted fusion temperature, T old is the current fusion temperature, α te is the temperature adjustment factor, κ te is the preset adjustment coefficient, Es avg is the average value of the energy values of multiple pairs of neural network parameters.
[0135] S25, detecting whether the energy of the neural network parameters of the feature extraction sub-model reaches a dynamic equilibrium state, if so, executing S26, if not, executing S22.
[0136] Specifically, when the energy of the neural network parameters of the feature extraction sub-model meets the following conditions, it is determined that a dynamic equilibrium state is reached:
[0137] Var(Es)<∈ mr
[0138] Where Var(Es) is the variance of the energy values of the current multiple pairs of neural network parameters, ∈ mr is a preset threshold, preferably, ∈ mr Set to 10 -5 .
[0139] S26. According to the energy optimization principle, the neural network parameters of the feature extraction sub-model are updated based on the adjusted fusion temperature, and S27 is executed.
[0140] Specifically, the neural network parameters of the feature extraction sub-model can be updated based on the following formula:
[0141]
[0142] b new =b' k +β rate Δb·T
[0143]
[0144]
[0145]
[0146] Where T is the fusion temperature of the current iteration, w new w j The corresponding updated weight, β rate is the updated learning rate, Δw is the weight update amount of the current iteration, is the fusion adjustment factor of the lth layer of the feature extraction sub-model, b new for b k The corresponding updated bias, Δb is the bias update amount of the current iteration, Δw prev is the weight update amount of the previous iteration, Δb prev is the bias update amount of the previous iteration, μ ea is the momentum coefficient, ρ yt is the adjustment factor, is the difference between the current weight of the lth layer of the feature extraction sub-model and the weight of the previous iteration, is the standard deviation of the weight change of the lth layer of the feature extraction submodel, λ yt is the adjustment factor, E l is the error rate of the lth layer of the feature extraction sub-model, is the gradient of the energy function Es with respect to the weight, is the gradient of the energy function Es with respect to the bias. Preferably, ρ yt and λ yt Set them to 0.3 and 0.5 respectively.
[0147] S27, judging whether the parameter energy variation amplitude has converged after multiple consecutive iterations, if so, completing the training, if not, executing S22.
[0148] Specifically, the algorithm is considered to have converged when the parameter energy variation amplitude satisfies the following conditions after multiple consecutive iterations:
[0149]
[0150] Among them, Es new is the energy value after parameter update, which can be the average of the energy values of multiple parameter pairs after parameter update, Es old is the mean of the energy values of multiple parameter pairs before parameter update, γ ew is the convergence threshold. Preferably, γ ew Set to 10 -6 .
[0151] In order to solve the problems of overfitting and insufficient generalization ability of existing autoencoders, an adaptive perturbation mechanism is adopted. By using controlled noise in the encoding process, the robustness of the model to small changes in the input data is enhanced, thereby improving the effect of feature dimensionality reduction and enhancing the model's generalization ability for unknown data.
[0152] Figure 5 is a flow chart of training feature dimensionality reduction sub-models according to some embodiments of this specification, such as Figure 5 As shown, in some embodiments, training a feature dimensionality reduction sub-model includes:
[0153] S31. Randomly initialize the parameters of the encoder and decoder, and execute S32.
[0154] For example, the parameters of the encoder and decoder can be initialized to small random values, which can be expressed as:
[0155]
[0156]
[0157] Among them, θ pe is the parameter of the encoder; θ pd Decoder parameters.
[0158] S32, converting the data sample into a latent space representation through an encoder, and using adaptive perturbation in the latent space to execute S33.
[0159] The high-dimensional feature data obtained after feature extraction is represented as X, where each data sample x j is a high-dimensional vector and can be expressed as:
[0160] X={x1,x2,...,x n}
[0161] Among them, X represents the feature data set, x irepresents the i-th data sample.
[0162] The data is forward propagated through the encoder, and the input x is passed through the encoder E i Convert to latent space representation z i .
[0163] The size of the disturbance is dynamically adjusted according to the current training stage and the error of the model output, which can be expressed as:
[0164] z i =E(x i θ pe )+δ(z i ; σ)
[0165]
[0166] Where E() is the encoding function, z i is the latent space representation, δ() is the perturbation function, σ is the perturbation intensity, and ∈ is the random noise.
[0167] In some embodiments, the perturbation function is used to apply noise to the output of the encoder to increase the robustness of the model, and the calculation method can be expressed as:
[0168]
[0169] in, is Gaussian noise with unit variance, d is the dimension of the latent space, z ij Yes i The jth element in .
[0170] S33, input the disturbed latent representation into the decoder, reconstruct the data, and execute S34.
[0171] Specifically, the decoder attempts to reconstruct the original high-dimensional data, thereby training the decoder to capture and learn important features. The decoder attempts to represent z from the perturbed latent space i The way to reconstruct the data can be expressed as:
[0172]
[0173] Where D() is the decoding function; is the reconstructed data sample.
[0174] S34, calculating the data difference between the reconstructed data sample and the input data sample, determining the reconstruction error, and executing S35.
[0175] Specifically, the loss function is:
[0176]
[0177] Among them, L(θ pe ,θ pd ) is the total loss, |||| 2 is the square of the Euclidean norm, λ is the regularization coefficient, n is the total number of data samples, x i is the i-th data sample, is the reconstructed data sample corresponding to the i-th data sample, θ pe is the encoder parameter, θ pd Decoder parameters.
[0178] S35. Perform back propagation according to the loss function, update the parameters of the encoder and decoder, and execute S36.
[0179] Specifically, updating the parameters of the encoder and decoder can be expressed as:
[0180]
[0181]
[0182] Among them, α is the learning rate; and are the partial derivatives of the loss function with respect to the encoder and decoder parameters, respectively. Preferably, α is set to 0.005.
[0183] S36. Adjust the intensity of the disturbance according to the reconstruction error, and execute S37.
[0184] Specifically, the intensity of the disturbance is adjusted according to the feedback of the reconstruction error, and the perturbation adoption strategy is optimized so that the model can gradually improve the accuracy and stability of data representation during the training process. The adjustment of the disturbance intensity σ is based on the performance of the model on the validation set, which is a data set composed of small batches of data randomly sampled from the original data set, and is dynamically adjusted using the back propagation algorithm, which can be expressed as:
[0185]
[0186] Where β is the disturbance adjustment rate; is the partial derivative of the loss function with respect to the perturbation intensity. Preferably, β is set to 0.001.
[0187] S37: Whether the preset second stop iteration condition is met, if so, complete the training, if not, execute S32.
[0188] Just as an example, the preset second iteration stopping condition may be reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.
[0189] In order to improve the prediction accuracy and the generalization ability of the model, the quasi-Newton method is adopted as a parameter optimization strategy in the exponential regression model.
[0190] Figure 6 is a flow chart of training a regression sub-model according to some embodiments of this specification, such as Figure 6 As shown, in some embodiments, training the regression sub-model includes:
[0191] S41, initializing the regression parameters of the regression sub-model, and executing S42;
[0192] S42, inputting the sample feature vector set into the regression sub-model, the regression sub-model outputs the predicted remaining life, and executing S43;
[0193] S43, calculating the gradient of the regression parameter of the regression sub-model, and executing S44;
[0194] S44, using the quasi-Newton method to optimize the regression parameters of the regression sub-model based on the gradient of the regression parameters of the regression sub-model, and executing S45;
[0195] Specifically, let the regression parameter of exponential regression be β q , the quasi-Newton method is used to calculate its gradient, the gradient The calculation method is expressed as:
[0196]
[0197] Furthermore, considering β qj The partial derivative of is:
[0198]
[0199] Therefore, the gradient update formula is concretized as:
[0200]
[0201] In the formula, x ij represents the jth feature of the i-th data sample.
[0202] S45, determining whether the preset third stop iteration condition is met, if so, completing the training, if not, executing S42.
[0203] Just as an example, the preset third condition for stopping iteration may be reaching a preset maximum number of iterations. Preferably, the preset maximum number of iterations is set to 1000 times.
[0204] Step 130, obtaining real-time performance parameters of the mechanical seal to be tested.
[0205] Merely as an example, the real-time performance parameters of the mechanical seal to be tested may include the real-time bearing temperature of the mechanical seal to be tested, the real-time bearing vibration frequency, the real-time sealing gap pressure, the real-time sealing liquid temperature, the real-time sealing liquid flow rate, the real-time spindle speed, the real-time inlet pressure, the real-time outlet pressure, the real-time sealing material wear rate and the real-time chemical corrosion rate.
[0206] Step 140 , predicting the remaining life of the mechanical seal to be tested based on the real-time performance parameters of the mechanical seal to be tested by using the trained mechanical seal life prediction model.
[0207] Specifically, for the real-time performance parameters of the mechanical seal to be tested, the trained feature extraction sub-model is used to automatically extract key features from the real-time performance parameters of the mechanical seal to be tested. Furthermore, the extracted high-dimensional key features are converted into low-dimensional representations that are more suitable for analysis through the feature dimensionality reduction sub-model. Furthermore, the regression sub-model is used to predict the remaining life of the mechanical seal based on the key features after dimensionality reduction.
[0208] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A mechanical seal life prediction method based on an adaptive perturbation coding neural network, characterized in that: include: Establish a mechanical seal life prediction model; Training the mechanical seal life prediction model; Obtain real-time performance parameters of the mechanical seal to be tested; The remaining life of the mechanical seal to be detected is predicted based on the real-time performance parameters of the mechanical seal to be detected by using the trained mechanical seal life prediction model.
2. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 1 is characterized in that: The training of the mechanical seal life prediction model comprises: Get the initial sample data set; Annotating the initial sample data set; Training the data augmentation model based on the annotated initial sample dataset; Performing data expansion on the annotated initial sample data set using a trained data expansion model to generate a sample data set; The mechanical seal life prediction model is trained based on the sample data set.
3. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 2 is characterized in that: The data augmentation model is trained based on the annotated initial sample dataset, including: S11, initialize the parameters of the generator and the parameters of the discriminator, and execute S12; S12, extracting initial sample data from a plurality of initial sample data, and executing S13; S13, the generator uses the random noise vector to generate false data of the extracted initial sample data, and executes S14; S15, fix the parameters of the discriminator, adjust the parameters of the generator through the feedback of the discriminator, and execute S16; S16, determine whether the preset first stop iteration condition is met, if so, complete the training, if not, execute S12.
4. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 2 is characterized in that: The mechanical seal life prediction model includes at least a feature extraction sub-model, a feature dimension reduction sub-model and a regression sub-model, wherein the feature extraction sub-model is used to extract the features of the real-time performance parameters of the mechanical seal to be tested, the feature dimension reduction sub-model is used to reduce the dimension of the features of the real-time performance parameters of the mechanical seal to be tested extracted by the feature extraction sub-model, and the regression sub-model is used to predict the remaining life of the mechanical seal to be tested based on the features after dimension reduction.
5. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 4 is characterized in that: Training the feature extraction sub-model includes: S21, defining a neural network structure of the feature extraction sub-model, initializing multiple pairs of neural network parameters of the feature extraction sub-model, wherein the neural network parameters include weights and biases, and executing S22; S22, for each pair of neural network parameters, perform fusion candidate check, determine the target neural network parameters, perform fusion on the target neural network parameters, update the target neural network parameters, and execute S23; S23, perform energy evaluation on the updated target neural network parameters, update the parameter status, and execute S24; S24, adjusting the nuclear reaction temperature and the fusion temperature according to the current network performance and stability, and executing S25; S25, detecting whether the energy of the neural network parameters of the feature extraction sub-model reaches a dynamic equilibrium state, if so, executing S26, if not, executing S22; S26, according to the energy optimization principle, based on the adjusted fusion temperature, updating the neural network parameters of the feature extraction sub-model, and executing S27; S27, judging whether the parameter energy variation amplitude has converged after multiple consecutive iterations, if so, completing the training, if not, executing S22.
6. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 5 is characterized in that: For each pair of neural network parameters, a fusion candidate check is performed to determine the target neural network parameters, including: For each pair of neural network parameters, determine the neural network parameters after the neural network parameters are fused and updated, calculate the energy difference between the energy state corresponding to the neural network parameters and the energy state corresponding to the neural network parameters after the fusion and update, and judge whether the neural network parameters are target neural network parameters based on the energy difference and the energy difference threshold, wherein the neural network parameters after the neural network parameters are fused and updated are determined based on the following formula: w′ j =w j +δ tr b′ k =b k +∈ tr Among them, w j is the weight in the neural network parameter, b k is the bias in the neural network parameters, w' j is the weight of the neural network parameters after fusion update, b' k is the bias in the neural network parameters after fusion update, δ tr is the weight adjustment amount, ∈ tr is the bias adjustment, σ to The sensitivity of the fusion adjustment, η to Scaling factor adjusted for fusion, is the gradient of the loss function of the feature extraction sub-model with respect to the weights, is the gradient of the loss function of the feature extraction sub-model with respect to the weight, and tanh() is the hyperbolic tangent function; The energy difference between the energy state corresponding to the neural network parameters and the energy state corresponding to the neural network parameters after the fusion update is calculated based on the following formula: ΔE=E(w′ j ,b′ k )-E(w j ,b k ) Where ΔE is the energy difference, E(w' j ,b' k ) is the energy state corresponding to the neural network parameters after the fusion update, E(w j ,b k ) is the energy state corresponding to the neural network parameters, E(w,b) is the energy state function, x i is the input data, y i is the target output corresponding to the input data, α k (t) is the adaptive weight of the kth scale at training time t, and K is the total number of feature scales; Update α based on the following formula k (t): Among them, α k (t+1) is the adaptive weight of the kth scale at training time t+1, E k (t) is the loss value of the k-th scale at training time t, β k is the importance adjustment coefficient of the kth scale, exp() is the natural exponential function; The energy difference threshold is updated based on the following formula: Where Θ(t+1) is the energy difference threshold at training time t+1, Θ(t) is the energy difference threshold at training time t, and ν eo is, E(t) is the average energy of the current time step, E target is the target energy, σ E is the standard deviation of the energy variation.
7. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 6 is characterized in that: According to the energy optimization principle, the neural network parameters of the feature extraction sub-model are updated based on the adjusted fusion temperature, including updating the neural network parameters of the feature extraction sub-model based on the following formula: b new =b′ k +β rate Δb·T Where T is the fusion temperature of the current iteration, w new w j The corresponding updated weight, β rate is the updated learning rate, Δw is the weight update amount of the current iteration, is the fusion adjustment factor of the lth layer of the feature extraction sub-model, b new for b k The corresponding updated bias, Δb is the bias update amount of the current iteration, Δw prev is the weight update amount of the previous iteration, Δb prev is the bias update amount of the previous iteration, μ ea is the momentum coefficient, ρ yt is the adjustment factor, is the difference between the current weight of the lth layer of the feature extraction sub-model and the weight of the previous iteration, is the standard deviation of the weight change of the lth layer of the feature extraction submodel, λ yt is the adjustment factor, E l is the error rate of the lth layer of the feature extraction sub-model, is the gradient of the energy function Es with respect to the weight, is the gradient of the energy function Es with respect to the bias.
8. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to any one of claims 5 to 7, characterized in that: The feature dimensionality reduction sub-model includes an encoder and a decoder; Training the feature dimensionality reduction sub-model includes: S31, randomly initializing parameters of the encoder and the decoder, and executing S32; S32, converting the data sample into a latent space representation through an encoder, and using adaptive perturbation in the latent space, and executing S33; S33, input the disturbed potential representation into the decoder, reconstruct the data, and execute S34; S34, calculating the data difference between the reconstructed data sample and the input data sample, determining the reconstruction error, and executing S35; S35, performing back propagation according to the loss function, updating the parameters of the encoder and the decoder, and executing S36; S36, adjusting the intensity of the disturbance according to the reconstruction error, and executing S37; S37: Whether the preset second stop iteration condition is met, if so, complete the training, if not, execute S32.
9. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to claim 8, characterized in that: The loss function is: Among them, L(θ pe ,θ pd ) is the total loss, ∥∥ 2 is the square of the Euclidean norm, λ is the regularization coefficient, n is the total number of data samples, x i is the i-th data sample, is the reconstructed data sample corresponding to the i-th data sample, θ pe is the encoder parameter, θ pd Parameters for the decoder.
10. The method for predicting mechanical seal life based on adaptive perturbation coding neural network according to any one of claims 5 to 7, characterized in that: Training the regression sub-model includes: S41, initializing the regression parameters of the regression sub-model, and executing S42; S42, inputting the sample feature vector set into the regression sub-model, the regression sub-model outputting the predicted remaining life, and executing S43; S43, calculating the gradient of the regression parameter of the regression sub-model, and executing S44; S44, using the quasi-Newton method to optimize the regression parameters of the regression sub-model based on the gradient of the regression parameters of the regression sub-model, and executing S45; S45, determining whether the preset third stop iteration condition is met, if so, completing the training, if not, executing S42.
Citation Information
Cited By
Nuclear main pump mechanical seal life prediction method, device, equipment and program product
CN119358421A
