CN114861879A - Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm - Google Patents
Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm Download PDFInfo
- Publication number
- CN114861879A CN114861879A CN202210480474.5A CN202210480474A CN114861879A CN 114861879 A CN114861879 A CN 114861879A CN 202210480474 A CN202210480474 A CN 202210480474A CN 114861879 A CN114861879 A CN 114861879A
- Authority
- CN
- China
- Prior art keywords
- neural network
- longicorn
- elman neural
- thermal error
- algorithm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
- G06F18/232—Non-hierarchical techniques
- G06F18/2321—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
- G06F18/23213—Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with fixed number of clusters, e.g. K-means clustering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/17—Mechanical parametric or variational design
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/082—Learning methods modifying the architecture, e.g. adding, deleting or silencing nodes or connections
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2119/00—Details relating to the type or aim of the analysis or the optimisation
- G06F2119/08—Thermal analysis or thermal optimisation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Geometry (AREA)
- Life Sciences & Earth Sciences (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Hardware Design (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Probability & Statistics with Applications (AREA)
- Medical Informatics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention belongs to the field of high-speed electric spindle thermal error analysis, and relates to an electric spindle thermal error modeling method for optimizing an Elman neural network based on a longicorn algorithm, which comprises the following steps of: collecting data, and dividing a training set and a prediction set; optimizing the temperature measuring points by utilizing K-means clustering and combining the grey correlation degree, and determining the input and the output of the model; initializing an Elman neural network model parameter and a longicorn whisker algorithm parameter; optimizing the connection weight and the threshold of each network layer of the Elman neural network by using a longicorn algorithm; and predicting and verifying the thermal error of the high-speed motorized spindle by using the BAS-Elman neural network prediction model obtained by optimization. The method optimizes the weight and the threshold of the Elman neural network by using the longicorn algorithm, improves the generalization capability and the prediction precision of the Elman neural network, and has the advantages of simple structure, high prediction precision, short running time and the like.
Description
Technical Field
The invention relates to an electric spindle thermal error modeling method for optimizing an Elman neural network based on a longicorn whisker algorithm, and belongs to the field of high-speed electric spindle thermal error analysis.
Background
The electric spindle is used as a key part of a high-speed numerical control machine tool, a large amount of heat is generated in the operation process, so that the thermal expansion of spindle parts or the deformation of a cutter is caused, the precision of the electric spindle and even the pretightening force of a bearing are influenced, and further the machining precision and the service life of the machine tool are influenced. Therefore, reducing the thermal error of the high-speed motorized spindle is the key for the development of high-speed precision machining technology. The thermal error compensation method does not need to change the mechanical properties (structure, material and the like) of the electric spindle, and is the most economical and effective method for predicting the thermal error in advance and avoiding the error by a compensation means on the basis of establishing a thermal error prediction model.
The Elman neural network is a dynamic recurrent neural network with a local memory unit added on the basis of the structure of a BP network, and has the function of mapping dynamic characteristics by storing internal states, so that the system has the capability of adapting to time-varying characteristics and better learning capability, can be used for solving the problems of quick optimization, fitting, regression prediction and the like, and is suitable for modeling of the thermal error of the motorized spindle.
The Elman neural network also has the inevitable defects of easy falling into local extremum, low convergence speed, low efficiency and the like. In the prior art, a population evolution algorithm is combined with a neural network to optimize the weight and the threshold of the Elman neural network, but the population evolution algorithm has the defects of low convergence rate, large calculated amount and the like, and the longicorn algorithm is a single body searching algorithm and has the advantages of simple principle, few parameters, small calculated amount and the like. Therefore, the weight and the threshold of the Elman neural network are optimized by using the longicorn algorithm, and the electric spindle thermal error model for optimizing the Elman neural network based on the longicorn algorithm is established.
Disclosure of Invention
Aiming at the defects of the existing electric spindle thermal error prediction method, the invention provides an electric spindle thermal error modeling method for optimizing an Elman neural network based on a longicorn algorithm, which is characterized in that the weight and the threshold of the Elman neural network are optimized by using the longicorn algorithm, the longicorn algorithm has the advantages of simplicity in implementation, high optimization speed, strong global search capability and the like, and the randomness defect existing in the problems of selection of the self-connection weight and the threshold of the Elman neural network is overcome, so that the Elman neural network has strong convergence, the learning capability and the generalization capability of the Elman neural network are improved, and compared with a single neural network model, the electric spindle thermal error modeling method has higher prediction accuracy.
The technical scheme adopted by the invention for solving the technical problems is as follows:
the invention provides a method for optimizing Elman neural network electric spindle thermal error modeling based on a longicorn whisker algorithm, which comprises the following steps:
the method comprises the following steps: collecting temperature and thermal error data of the high-speed motorized spindle at different rotating speeds, and dividing the collected data into a training set and a test set;
step two: optimizing the temperature measuring points by utilizing K-means cluster analysis and grey correlation degree analysis, and constructing the input and the output of a model;
step three: initializing an Elman neural network model parameter and a longicorn whisker algorithm parameter;
step four: and establishing a BAS-Elman neural network electric spindle thermal error prediction model by iteratively updating and optimizing the connection weight and the threshold of each network layer of the Elman neural network by using a longitussimus algorithm.
Further, the first step specifically comprises: collecting temperature and thermal error data of a plurality of temperature measuring points of the high-speed electric spindle at different rotating speeds, and dividing the collected data into a training set and a testing set according to the rotating speed; .
Further, the second step is specifically:
(1) dividing a plurality of temperature measuring points into required category numbers by utilizing K-means cluster analysis;
(2) screening out temperature measuring points with the maximum thermal error correlation degree from each group as temperature sensitive points by utilizing grey correlation degree analysis;
(3) and using the screened temperature sensitive points as the input of the model and the thermal error as the output.
Further, the third step is specifically: determining the number of input layers, hidden layers, carrying layers and output layers of the Elman neural network; determining the position X of the left and right whiskers of a longicorn l And X r Initial step size delta of longicorn 0 And the number of iterations T.
Before the positions Xl and Xr of the left and right whiskers of the longicorn are determined, the spatial position of the longicorn needs to be initialized.
Furthermore, the number of the input layers and the number of the output layers are determined according to input and output parameters, and the number of the hidden layers and the number of the receiving layers are determined by an empirical formula h ═ m + n) 1/2 + a, and trial and error determination;
wherein m is the number of input nodes, n is the number of output nodes, and a is a constant between 1 and 10.
Further, the fourth step is specifically:
a. creating a k-dimensional random vector of the orientation of the longicorn stigma and carrying out normalization treatment, wherein the formula is as follows:
in the formula: rands () is a random function, k represents the spatial dimension;
b. creating a space coordinate of the left and right longicorn whiskers, wherein the formula is as follows:
in the formula: x is the number of rt And x lt Respectively representing the position coordinates of the right and left whiskers of the longicorn at the t iteration; x is the number of t Representing the barycentric coordinates of the longicorn at the t-th iteration; d 0 Representing the distance between two whiskers;
c. determining a fitness function, taking the root mean square error of the training data set as the fitness function, and taking the formula as follows:
in the formula: n is the number of samples in the training set;representing the predicted output value, y i Representing an actual value;
d. judging the left and right aftertaste odor intensity according to the fitness function, and determining the moving position of the longicorn at the next moment, wherein the formula is as follows:
in the formula: delta t Denotes the step-size factor at the t-th iteration, sign () being the sign function, f (x) rt ) Is the fitness value of the right beard of the longicorn, f (x) lt ) The fitness value of the longicorn left palpus;
the step length updating formula of the longicorn is as follows:
δ t+1 =δ t* eta t=(0,1,2,…,n)
in the formula: eta is a number close to 1 between [0,1 ];
calculate the current x t+1 The function value of the applicability degree corresponding to the position is better than Y best Update X best And Y best I.e. x t+1 Substitution of x t Stored in X best In, x t+1 Substituting x with position-corresponding fitness function value t The function value of the applicability degree corresponding to the position is stored in Y best The preparation method comprises the following steps of (1) performing;
e. judging whether a termination condition is met: if the current iteration times reach the maximum iteration times or the training error of the network reaches the precision requirement, stopping iteration and outputting an optimization result, otherwise, continuing iteration optimization;
f. and outputting the optimized connection weight and threshold of the Elman network, and establishing a BAS-Elman neural network electric spindle thermal error prediction model.
Wherein, Y best Representing the best fitness value, X best Initial weight values and threshold values representing the neural network optimization.
Further, the method also comprises the following step five: and predicting and verifying the thermal error of the high-speed motorized spindle by using a BAS-Elman neural network motorized spindle thermal error prediction model.
Further, the fifth step is specifically: inputting the training set and the test set into a BAS-Elman neural network electric spindle thermal error prediction model to accurately predict the high-speed electric spindle thermal error; using a coefficient of determination (R) 2 ) Root Mean Square Error (RMSE) and Mean Absolute Error (MAE):
specifically, the verification section decides the coefficient (R) 2 ) The calculation formula is as follows:
the Root Mean Square Error (RMSE) is calculated as:
the Mean Absolute Error (MAE) is calculated as:
in the formula: n is the number of samples in the training set;representing the predicted output value, y i Representing the actual value.
The invention has the beneficial effects that: the invention relates to a modeling method for optimizing Elman neural network electric spindle thermal error based on a longicorn whisker algorithm, wherein K-means algorithm analysis is combined with grey correlation analysis to perform decoupling dimension reduction on a pre-input variable, and the longicorn whisker algorithm and the Elman neural network are combined to obtain a BAS-Elman thermal error prediction model which has the advantages of simple structure, high prediction precision and the like.
Compared with the current thermal error prediction method, the method has the advantages that:
1. the model has simple structure. The invention reduces the model input by combining the K-means algorithm with the grey correlation degree, and well solves the defects of overlong Elman neural network training time, overlarge network information redundancy and the like caused by huge training data;
2. the prediction precision is high. According to the method, the connection weight and the threshold of the Elman neural network are optimized by using a Beauveria root algorithm (BAS), so that the learning capability and the generalization capability of the Elman neural network are improved, and the accuracy of a thermal error prediction model is obviously improved;
3. the running time is short. The longicorn algorithm is used as an efficient intelligent optimization algorithm, only one search individual is needed, and compared with other swarm intelligent algorithms, the longicorn algorithm has the outstanding advantages of simple parameter setting, small operand and the like. The BAS-Elman energy consumption prediction method provided by the invention has the advantage of short operation time while ensuring the prediction precision.
Drawings
FIG. 1 is a diagram of the Elman neural network architecture.
Fig. 2 is a training flow chart for optimizing the Elman neural network based on the longicorn whisker search algorithm.
FIG. 3 is a BAS-Elman neural network fitness curve of the present embodiment
FIG. 4 is a BAS-Elman and Elman prediction curve at 4000 r/min;
FIG. 5 is a BAS-Elman and Elman prediction curve at 8000 r/min.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the embodiments of the present invention and the accompanying drawings of the specification, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The invention relates to a method for optimizing Elman neural network electric spindle thermal error modeling based on a longicorn whisker algorithm, which specifically comprises the following steps:
collecting temperature and thermal error data of a high-speed electric spindle at different rotating speeds, and dividing the data into a training set and a test set;
temperature and thermal error data of ten temperature measuring points of the high-speed electric spindle at 4000r/min, 6000r/min and 8000r/min are obtained through experiments, firstly, the temperature measuring points are optimized, appropriate temperature sensitive points are screened out to be used as input vectors of a model, and axial thermal errors are used as output vectors; taking a 6000r/min data set as a training set, and taking 4000r/min and 8000r/min data sets as a test set;
optimizing the temperature measuring points by utilizing K-means cluster analysis and combining grey correlation analysis, and constructing input and output of a model;
dividing ten temperature measuring points into required categories by adopting K-means cluster analysis; screening out the temperature measurement with the maximum correlation degree with the thermal error from each group as a temperature sensitive point by utilizing grey correlation degree analysis; the screened temperature sensitive points are input of the model, and the thermal errors are output.
Initializing Elman neural network model parameters and longicorn whisker algorithm parameters;
FIG. 1 is a structural diagram of an Elman neural network, which is a typical recurrent neural network, and has a feed-forward and feedback structure inside, so that the Elman neural network has stronger learning ability than a common neural network, and is very suitable for constructing a thermal error prediction model;
the input of the model is temperature sensitive points, four temperature sensitive points are selected through temperature measuring point optimization, namely 4 neurons are arranged on an input layer; the output is thermal error, namely the output layer has 1 neuron; determining the number of the hidden layers to be 9 through an empirical formula and a trial and error method, namely, 9 neurons are respectively arranged in the hidden layers and the carrying layers; in this embodiment, a transfer function between an input layer and a hidden layer of a neural network is set to tan sig, and a transfer function between the hidden layer and an output layer is purelin; in this embodiment, the initial step length of the longicorn whisker algorithm is set to be 50, the initial distance between the left and right whiskers is 5, and the iteration frequency of the longicorn whisker algorithm is 200;
the learning algorithm of the Elman neural network is as follows:
y(k)=g(ω 3 x(k))
x(k)=f(ω 1 x c (k)+ω 2 (u(k-1)))
x c (k)=x(k-1)
the learning index function of the Elman neural network adopts a sum of squared errors function, namely:
wherein: y is an m-dimensional output node vector; x is an n-dimensional intermediate layer node unit vector; u is an r-dimensional input vector; x c Is an n-dimensional feedback state vector; omega 1 The weight value of the connection from the bearer layer to the hidden layer; omega 2 Connecting the input layer to the hidden layer by a weight value; omega 3 Connecting the weight from the hidden layer to the output layer; g () is the transfer function of the output neuron and f () is the transfer function of the middle layer neuron.
Step four, the longicorn whisker algorithm establishes a BAS-Elman neural network thermal error prediction model by iteratively updating and optimizing the connection weight and the threshold of each network layer of the Elman neural network; fig. 2 is a training flow chart for optimizing the Elman neural network based on the longicorn whisker search algorithm. The method comprises the following specific steps:
a. creating a k-dimensional random vector of the orientation of the longicorn stigma and carrying out normalization treatment, wherein the formula is as follows:
in the formula: rands () is a random function, k represents a space dimension and is also the number of parameters to be optimized, k is a search space dimension k, M is N + N is 1+1+ N, M is the number of neurons in an input layer, N is the number of neurons in a hidden layer, and the number of neurons in an output layer is 1;
b. creating a space coordinate of the left and right longicorn whiskers, wherein the formula is as follows:
in the formula: x is the number of rt And x lt Respectively representing the position coordinates of the right and left whiskers of the longicorn at the t iteration; x is the number of t Representing the barycentric coordinates of the longicorn at the t-th iteration; d 0 Representing the distance between two whiskers;
c. determining a fitness function, taking the root mean square error of the training data set as the fitness function, and taking the formula as follows:
in the formula: n is the number of samples in the training set;representing the predicted output value, y i Representing an actual value;
d. judging the left and right aftertaste odor intensity according to the fitness function, and determining the moving position of the longicorn at the next moment, wherein the formula is as follows:
in the formula: delta t Denotes the step-size factor at the t-th iteration, sign () being the sign function, f (x) rt ) Is the fitness value of the right beard of the longicorn, f (x) lt ) The fitness value of the longicorn left palpus;
the step length updating formula of the longicorn is as follows:
δ t+1 =δ t* eta t=(0,1,2,…,n)
in the formula: eta is a number close to 1 between [0,1 ]; in this embodiment, eta is set to 0.995.
Calculate the current x t+1 Position pairThe function value of the applicable degree is better than Y best Update X best And Y best I.e. x t+1 Substitution of x t Stored in X best In, x t+1 Substituting x with position-corresponding fitness function value t The function value of the applicability degree corresponding to the position is stored in Y best Performing the following steps;
e. judging whether a termination condition is met: if the current iteration times reach the maximum iteration times or the training error of the network reaches the precision requirement, stopping iteration and outputting an optimization result, otherwise, continuing iteration optimization;
f. and outputting an optimization result, namely the optimized connection weight and threshold of the Elman network.
And fifthly, predicting and verifying the thermal error of the high-speed motorized spindle by using the BAS-Elman neural network prediction model obtained through optimization. Inputting the training set and the testing set into the BAS-Elman model by utilizing the BAS-Elman neural network model obtained by optimization, and accurately predicting the thermal error of the high-speed motorized spindle; evaluation was performed using a coefficient of determination (R2), Root Mean Square Error (RMSE), and Mean Absolute Error (MAE).
R 2 Is an indicator of how well the model fits to the sample. R 2 A larger value of (d) indicates a higher degree of fit of the model to the sample; r 2 The calculation formula is as follows:
RMSE represents the root mean square error of the regression model. The RMSE calculation formula is as follows:
MAE represents the mean absolute error of the regression model. The MAE is calculated as follows:
in the formula: n is the number of samples in the training set;representing the predicted output value, y i Representing the actual value.
FIG. 3 is a BAS-Elman neural network fitness curve of the present embodiment.
From fig. 3, the BAS algorithm finds the optimal solution through 14 iterations, and the algorithm converges quickly. The BAS algorithm iterates 200 generations of optimized Elman neural network models, only about 39 seconds are needed for predicting the thermal error, and the running time is short. The longicorn algorithm is used as an efficient intelligent optimization algorithm, only one search individual is needed, and compared with other swarm intelligent algorithms, the longicorn algorithm has the outstanding advantages of simple parameter setting, small operand and the like.
FIGS. 4 and 5 are graphs of Elman and BAS-Elman predictions provided herein at 4000r/min and 6000r/min, respectively.
Table 1 provides predicted performance parameters for Elman and BAS-Elman at different speeds as provided herein:
by comparing the prediction graphs of the BAS-Elman model and the Elman model at different rotating speeds, analysis table 1 shows that the BAS-Elman model has higher fitting degree with the Elman model, the root mean square error and the average absolute error are smaller, so that the BAS-Elman model can improve the prediction accuracy of the Elman model, and has higher generalization capability.
In conclusion, the invention optimizes the initial connection weight and the threshold of the Elman neural network through the BAS algorithm, and solves the defects that the Elman neural network has low convergence speed and is easy to fall into local extremum. The method has the advantages of strong practicability and accurate prediction result, and provides a simple method for the conventional thermal error prediction.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (6)
1. A modeling method for optimizing Elman neural network electric spindle thermal error based on a longicorn whisker algorithm is characterized by comprising the following steps:
the method comprises the following steps: collecting temperature and thermal error data of the high-speed motorized spindle at different rotating speeds, and dividing the collected data into a training set and a test set;
step two: optimizing the temperature measuring points by utilizing K-means cluster analysis and grey correlation degree analysis, and constructing the input and the output of a model;
step three: initializing an Elman neural network model parameter and a longicorn whisker algorithm parameter;
step four: and establishing a BAS-Elman neural network electric spindle thermal error prediction model by iteratively updating and optimizing the connection weight and the threshold of each network layer of the Elman neural network by using a longitussimus algorithm.
2. The method for optimizing Elman neural network motorized spindle thermal error modeling based on longitussimus algorithm according to claim 1, wherein the first step is specifically as follows: the method comprises the steps of collecting temperature and thermal error data of a plurality of temperature measuring points of the high-speed electric spindle at different rotating speeds, and dividing the collected data into a training set and a testing set according to the rotating speeds.
3. The method for optimizing the Elman neural network motorized spindle thermal error modeling based on the longicorn whisker algorithm as claimed in claim 2, wherein the second step is specifically as follows:
(1) dividing a plurality of temperature measuring points into required category numbers by utilizing K-means cluster analysis;
(2) screening out temperature measuring points with the maximum thermal error correlation degree from each group as temperature sensitive points by utilizing grey correlation degree analysis;
(3) and using the screened temperature sensitive points as the input of the model and the thermal error as the output.
4. The method for optimizing Elman neural network motorized spindle thermal error modeling based on longitussimus algorithm according to claim 1, wherein the third step is specifically as follows: determining the number of input layers, hidden layers, carrying layers and output layers of the Elman neural network; determining the position X of the left and right whiskers of a longicorn l And X r Initial step size delta of longicorn 0 And the number of iterations T.
5. The method for optimizing Elman neural network motorized spindle thermal error modeling based on longitudian whiskers according to claim 4, wherein the number of the input layers and the number of the output layers are determined according to input and output parameters, and the number of the hidden layers and the number of the receiving layers are determined according to an empirical formula h ═ m + n 1/2 + a, and trial and error determination;
wherein m is the number of input nodes, n is the number of output nodes, and a is a constant between 1 and 10.
6. The method for optimizing Elman neural network motorized spindle thermal error modeling based on longitussimus algorithm according to claim 1, wherein the fourth step is specifically as follows:
a. creating a k-dimensional random vector of the orientation of the longicorn stigma and carrying out normalization treatment, wherein the formula is as follows:
in the formula: rands () is a random function, k represents the space dimension;
b. creating a space coordinate of the left and right longicorn whiskers, wherein the formula is as follows:
in the formula: x is the number of rt And x lt Respectively representing the position coordinates of the right and left whiskers of the longicorn at the t iteration; x is the number of t Showing the dayThe barycentric coordinates of the cattle at the t-th iteration; d 0 Representing the distance between two whiskers;
c. determining a fitness function, taking the root mean square error of the training data set as the fitness function, and taking the formula as follows:
in the formula: n is the number of samples in the training set;representing the predicted output value, y i Representing an actual value;
d. judging the left and right aftertaste odor intensity according to the fitness function, and determining the moving position of the longicorn at the next moment, wherein the formula is as follows:
in the formula: delta t Denotes the step-size factor at the t-th iteration, sign () being the sign function, f (x) rt ) Is the fitness value of the right fibrous root of a longicorn, f (x) lt ) The fitness value of the longicorn left palpus;
the step length updating formula of the longicorn is as follows:
δ t+1 =δ t *eta t=(0,1,2,…,n)
in the formula: eta is a number close to 1 between [0,1 ];
calculate the current x t+1 The function value of the applicability degree corresponding to the position is better than Y best Update X best And Y best I.e. x t+1 Substitution of x t Stored in X best In, x t+1 Substituting x with position-corresponding fitness function value t The function value of the applicability degree corresponding to the position is stored in Y best Performing the following steps;
e. judging whether a termination condition is met: if the current iteration times reach the maximum iteration times or the training error of the network reaches the precision requirement, stopping iteration and outputting an optimization result, otherwise, continuing iteration optimization;
f. and outputting the optimized connection weight and threshold of the Elman network, and establishing a BAS-Elman neural network electric spindle thermal error prediction model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210480474.5A CN114861879A (en) | 2022-05-05 | 2022-05-05 | Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210480474.5A CN114861879A (en) | 2022-05-05 | 2022-05-05 | Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114861879A true CN114861879A (en) | 2022-08-05 |
Family
ID=82635051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210480474.5A Pending CN114861879A (en) | 2022-05-05 | 2022-05-05 | Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114861879A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116174497A (en) * | 2023-01-06 | 2023-05-30 | 北京科技大学 | Cold continuous rolling bending roll force online prediction method based on data driving |
CN116506307A (en) * | 2023-06-21 | 2023-07-28 | 大有期货有限公司 | Network delay condition analysis system of full link |
CN117077509A (en) * | 2023-07-14 | 2023-11-17 | 哈尔滨理工大学 | Modeling method for optimizing KELM neural network electric spindle thermal error by northern eagle algorithm |
CN117113845A (en) * | 2023-08-31 | 2023-11-24 | 哈尔滨理工大学 | AVOA (automatic Voltage difference) optimized LSTM (least squares) neural network principal axis thermal error modeling method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110579714A (en) * | 2019-07-26 | 2019-12-17 | 西安科技大学 | Battery SOC (state of charge) two-state switching estimation method based on BAS (base-based optimization) ElmanNN-AH method |
CN110889091A (en) * | 2019-11-18 | 2020-03-17 | 重庆理工大学 | Machine tool thermal error prediction method and system based on temperature sensitive interval segmentation |
CN112767692A (en) * | 2020-12-30 | 2021-05-07 | 兰州理工大学 | Short-term traffic flow prediction system based on SARIMA-GA-Elman combined model |
CN114296396A (en) * | 2021-12-29 | 2022-04-08 | 西安交通大学 | Numerical control lathe spindle thermal error measuring device and modeling method |
-
2022
- 2022-05-05 CN CN202210480474.5A patent/CN114861879A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110579714A (en) * | 2019-07-26 | 2019-12-17 | 西安科技大学 | Battery SOC (state of charge) two-state switching estimation method based on BAS (base-based optimization) ElmanNN-AH method |
CN110889091A (en) * | 2019-11-18 | 2020-03-17 | 重庆理工大学 | Machine tool thermal error prediction method and system based on temperature sensitive interval segmentation |
CN112767692A (en) * | 2020-12-30 | 2021-05-07 | 兰州理工大学 | Short-term traffic flow prediction system based on SARIMA-GA-Elman combined model |
CN114296396A (en) * | 2021-12-29 | 2022-04-08 | 西安交通大学 | Numerical control lathe spindle thermal error measuring device and modeling method |
Non-Patent Citations (2)
Title |
---|
丁兆云等: "《数控机床热误差及其抑制与补偿》", 重庆大学出版社, pages: 112 - 115 * |
戴野等: "基于ANFIS 的高速电主轴热误差建模研究", 《仪器仪表学报》, pages 112 - 115 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116174497A (en) * | 2023-01-06 | 2023-05-30 | 北京科技大学 | Cold continuous rolling bending roll force online prediction method based on data driving |
CN116506307A (en) * | 2023-06-21 | 2023-07-28 | 大有期货有限公司 | Network delay condition analysis system of full link |
CN116506307B (en) * | 2023-06-21 | 2023-09-12 | 大有期货有限公司 | Network delay condition analysis system of full link |
CN117077509A (en) * | 2023-07-14 | 2023-11-17 | 哈尔滨理工大学 | Modeling method for optimizing KELM neural network electric spindle thermal error by northern eagle algorithm |
CN117077509B (en) * | 2023-07-14 | 2024-04-05 | 哈尔滨理工大学 | Modeling method for optimizing KELM neural network electric spindle thermal error by northern eagle algorithm |
CN117113845A (en) * | 2023-08-31 | 2023-11-24 | 哈尔滨理工大学 | AVOA (automatic Voltage difference) optimized LSTM (least squares) neural network principal axis thermal error modeling method |
CN117113845B (en) * | 2023-08-31 | 2024-03-19 | 哈尔滨理工大学 | AVOA (automatic Voltage difference) optimized LSTM (least squares) neural network principal axis thermal error modeling method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114861879A (en) | Modeling method for optimizing thermal error of electric spindle of Elman neural network based on longicorn whisker algorithm | |
Li et al. | Thermal error modeling of machine tool spindle based on the improved algorithm optimized BP neural network | |
CN110153802B (en) | Tool wear state identification method based on convolution neural network and long-term and short-term memory neural network combined model | |
Liao et al. | Uncertainty prediction of remaining useful life using long short-term memory network based on bootstrap method | |
CN106022954B (en) | Multiple BP neural network load prediction method based on grey correlation degree | |
Lin | A GA-based neural fuzzy system for temperature control | |
CN110571792A (en) | Analysis and evaluation method and system for operation state of power grid regulation and control system | |
Aoun et al. | Hidden markov model classifier for the adaptive particle swarm optimization | |
Li et al. | Thermal error modeling of motorized spindle based on Elman neural network optimized by sparrow search algorithm | |
CN113269365A (en) | Short-term air conditioner load prediction method and system based on sparrow optimization algorithm | |
CN114905335A (en) | Cutter wear prediction method combining domain confrontation and convolution neural network | |
CN116804706A (en) | Temperature prediction method and device for lithium battery of electric automobile | |
Li et al. | An optimal stacking ensemble for remaining useful life estimation of systems under multi-operating conditions | |
CN117277279A (en) | Deep learning short-term load prediction method based on particle swarm optimization | |
CN116204774A (en) | Cutter abrasion stability prediction method based on hierarchical element learning | |
CN116794547A (en) | Lithium ion battery residual service life prediction method based on AFSA-GRU | |
CN117949832B (en) | Battery SOH analysis method based on optimized neural network | |
CN113486926B (en) | Automatic change pier equipment anomaly detection system | |
Gharehchopogh et al. | A hybrid African vulture optimization algorithm and harmony search: Algorithm and application in clustering | |
CN112990601B (en) | Worm wheel machining precision self-healing system and method based on data mining | |
CN112613227B (en) | Model for predicting remaining service life of aero-engine based on hybrid machine learning | |
Mao et al. | An XGBoost-assisted evolutionary algorithm for expensive multiobjective optimization problems | |
CN116865343B (en) | Model-free self-adaptive control method, device and medium for distributed photovoltaic power distribution network | |
Wu et al. | A training-free neural architecture search algorithm based on search economics | |
CN115394381B (en) | High-entropy alloy hardness prediction method and device based on machine learning and two-step data expansion |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |