METHOD FOR PREDICTING COAXIALITY OF PARTS OF ROTARY EQUIPMENT BASED ON GA-PSO-BP NEURAL NETWORK
This application is based upon and claims priority to Chinese Patent Application No. 202210690303.5, filed on Jun. 17, 2022, the entire contents of which are incorporated herein by reference. The invention relates to a method for predicting the coaxiality of parts of rotary equipment, and belongs to the field of measurement of a coaxiality error of parts of rotary equipment. Parts of large high-speed rotary equipment are high-end products in the field of equipment manufacturing, and play an important role in the field of modern industry. Parts of large high-speed rotary equipment are mainly formed by stacking assembly of multi-stage parts with the assembly quality directly affecting the performance of an engine and the coaxiality as a key indicator to measure the assembly quality of the large high-speed rotary equipment. Parts can be divided into single inclined surface parts and saddle surface parts according to features of surface morphology. The single inclined surface parts have fitting surfaces in surface contact during assembly, which are less affected by pre-tightening force during bolt tightening, hardly deformed and regular in topography. A coaxiality error of multi-stage parts after assembly can be derived by building a mathematical model. The saddle surface parts have fitting surfaces in point contact during assembly, which are greatly affected by pre-tightening force during bolt tightening, and are severely deformed. Due to an interference fit, the fitting surfaces are completely covered after assembly, specific parameters cannot be measured, and thus it is difficult to solve the coaxiality error by building the mathematical model. At present, the assembly is performed according to the criteria of high and low points mainly depending on manual experience. However, such assembly is time-consuming and labor-intensive, and has high trial-and-error cost. Therefore, an intelligent method is urgently needed to predict the coaxiality error of the multi-stage saddle surface parts after assembly, so as to guide the assembly and improve the qualification rate of assembly. In order to solve the problem that a coaxiality error of saddle surface parts is difficultly calculated by building a traditional mathematical model based on three-dimensional coordinate system transformation due to serious deformation of fitting surfaces of spigots, the present invention provides a method for predicting the coaxiality of parts of rotary equipment based on a genetic algorithm-particle swarm optimization-back propagation (GA-PSO-BP) neural network. In order to solve the above problem, the present invention adopts the following technical solution: the present invention includes the following specific steps:
Further, in the step 4, the crossover operation involves randomly selecting two individuals from parents of the population, and genes on chromosomes are exchanged and recombined to generate new individuals better than the parents, where crossover of the i-th and j-th chromosomes aiand ajat a locus m is expressed as: Further, in the step 6, an iterative formula of speed and position of particle swarm optimization is as follows: Further, in the step 8 The present invention has the following beneficial effects: the present invention learns an influence mechanism of the coaxiality error by analyzing an influence source of the coaxiality error of the multi-stage parts after assembly, thereby having high prediction accuracy and spending short time. The initial weight and threshold of the BP neural network are optimized by using the genetic algorithm, and optimal solutions of the hyperparameters are found by the particle swarm optimization. An R2value, a mean square error (MSE) value, and a root-mean-square error (RMSE) value of a model for comprehensively predicting the coaxiality by the GA-PSO-BP neural network are respectively 0.96, 0.0257 nm, and 0.5072 um, and the prediction accuracy is 98.3%. Thus, it can be seen that the method provided by the present invention has relatively high accuracy of predicting the coaxiality error of the parts of the large high-speed rotary equipment, solves the problem of difficulty in measuring the coaxiality error due to an unclear transfer mechanism of saddle surface parts, and can be used to guide the assembly of the multi-stage parts of the large high-speed rotary equipment. First specific embodiment: this embodiment is described with reference to Second specific embodiment: this embodiment is described with reference to Third specific embodiment: this embodiment is described with reference to in the formulas (5) and (6), ω denotes an inertia factor, z1and z2denote an acceleration constant, and an acceleration weight for pushing microparticles to pbest and gbest, z1=z2=2, k1and k2are respectively a random number within [0,1], videnotes the flying speed of the i-th particle, xidenotes the position of the i-th particle, and t denotes time. Fourth specific embodiment: this embodiment is described with reference to The assembly of four-stage parts of real large high-speed rotary equipment is taken as an example. It can be analyzed from The crossover operation involves randomly selecting two individuals from parents of the population, and genes on chromosomes are exchanged and recombined to generate new individuals better than the parents, where crossover of the i-th and j-th chromosomes a; and atat a locus m is expressed as: A mutation formula of the n-th gene ainof the i-th individual is as follows: An iterative formula of speed and position of particle swarm optimization is as follows: Specifically, 300 groups of acquired data samples are divided into a training set, a test set and a validation set according to a ratio of 8:1:1. There are 14 input nodes and 1 output node for the coaxiality error, and there are 8 neurons in a hidden layer, so the BP neural network has a topological structure of 14-8-1. The initial weight and threshold of the BP neural network are optimized by using the genetic algorithm, and the optimal solutions of the hyperparameters are found by the particle swarm optimization. An R2value, a mean square error (MSE) value, and a root-mean-square error (RMSE) value of a model for comprehensively predicting the coaxiality by the GA-PSO-BP neural network are respectively 0.96, 0.0257 nm, and 0.5072 um, and the prediction accuracy is 98.3%. Thus, it can be seen that the method provided by the present invention has relatively high accuracy of predicting the coaxiality error of the parts of the large high-speed rotary equipment, and can be used to guide the assembly of the multi-stage parts of the large high-speed rotary equipment. The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as above with the preferred embodiments, it is not intended to limit the present invention. Within the scope of the technical solution of the present invention, when some changes or modifications can be made to the technical content disclosed above as equivalent embodiments of equivalent changes, any simple modification, equivalent substitution and improvement, etc. made by any person skilled in the art to the above embodiments within the spirit and principle of the present invention according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of protection of the technical solution of the present invention. A GA-PSO-BP neural network is provided for performing a measurement of a coaxiality error of parts of a rotary equipment and predicting a coaxiality of parts of the rotary equipment in order to solve a problem that a coaxiality error of saddle surface parts is difficult to calculate by building a traditional mathematical model based on a three-dimensional coordinate system transformation due to serious deformation of fitting surfaces of spigots. The GA-PSO-BP neural network method includes the steps of analyzing an influence source of the coaxiality error of multi-stage parts after assembly; then taking an error source as an input and the coaxiality error of the multi-stage parts after assembly as an output; and introducing a genetic algorithm to optimize an initial weight and threshold of a BP neural network, and introducing a particle swarm optimization to find optimal solutions of hyperparameters. 1. A method for predicting a coaxiality of parts of rotary equipment based on a genetic algorithm-particle swarm optimization-back propagation (GA-PSO-BP) neural network, the method for predicting the coaxiality of the parts of the rotary equipment based on the GA-PSO-BP neural network comprises:
step 1: performing data preprocessing with a coaxiality error source as an input; step 2: generating an initial population of genetic algorithm solutions, wherein the genetic algorithm solutions correspond to a connection weight and threshold of a BP neural network based on real number coding of individuals, and setting a corresponding evolution algebra, a population size, and crossover and mutation probabilities; step 3: taking an error between a predicted value and an actual value of the BP neural network as a fitness function, and selecting the individuals from low to high according to the fitness function, wherein a probability of selecting an i-th individual is expressed as: wherein in the formula (1), lidenotes a fitness function value of the i-th individual; step 4: performing crossover and mutation operations to generate a new population; step 5: performing decoding by using optimal offspring individuals to obtain an optimal initial weight and threshold; step 6: initializing a particle swarm, comprising a swarm size, and a position and speed of each particle; step 7: determining solution ranges of three hyperparameters, comprising a maximum number of times of training, a learning rate, and a regularization coefficient; step 8: introducing a genetic algorithm to optimize the BP neural network, and performing solving with MSE as an objective function to find an optimal hyperparameter combination; step 9: introducing the optimal initial weight and threshold and the optimal hyperparameter combination into the BP neural network for training; and step 10: outputting a result of a coaxiality error comprehensively predicted by the GA-PSO-BP neural network. 2. The method for predicting the coaxiality of parts of the rotary equipment based on the GA-PSO-BP neural network according to wherein in the formula (2), s is a random number within [0,1]; and a mutation formula of an n-th gene ainof the i-th individual is as follows: wherein in the formulas (3) and (4), amaxdenotes a maximum value of ain, amindenotes a minimum value of ain, r is a random number within [0,1], r2is an arbitrary number, y denotes a number of iterations, and Ymaxdenotes a maximum number of evolutions. 3. The method for predicting the coaxiality of parts of the rotary equipment based on the GA-PSO-BP neural network according to wherein in the formulas (5) and (6), ω denotes an inertia factor, z1and z2denote an acceleration constant, and an acceleration weight for pushing microparticles to pbest and gbest, z1=z2=2, k1and k2are respectively a random number within [0,1], videnotes a flying speed of an i-th particle, xidenotes the position of the i-th particle, and t denotes time. 4. The method for predicting the coaxiality of parts of the rotary equipment based on the GA-PSO-BP neural network according to wherein in the formula (7), T denotes an actually measured value of a coaxiality error of multi-stage parts after assembly, Tidenotes an estimated value of the coaxiality error of the multi-stage parts after assembly, and f denotes a number of samples.CROSS REFERENCE TO THE RELATED APPLICATION
TECHNICAL FIELD
BACKGROUND
SUMMARY
BRIEF DESCRIPTION OF THE DRAWINGS
DETAILED DESCRIPTION OF THE EMBODIMENTS
EMBODIMENTS