The invention discloses a five-axis
numerical control finish
machining tool path approximation error calculation method based on an Optuna optimization BiLSTM-TCRA (BiLSTM, Bidirectional
Long Short Term Memory Network, a Bidirectional
Long Short Term Memory Network, a Temporal-Channel Residual Attention, a Time-Channel Residual Attention mechanism) neural network, and relates to a
tool path approximation error calculation method based on an Optuna optimization method of a BiLSTM-TCRA (BiLSTM, Bidirectional
Long Short Term Memory Network, a Bidirectional Long
Short Term Memory Network, a Time-Channel Residual Attention Mechanism) neural network and a
tool path approximation error calculation method based on the BiLSTM-TCRA neural network. The method comprises the following steps: firstly, acquiring core parameters required by calculation of a neural
network model, and mapping the parameters to the same scale by using mean variance normalization to eliminate the influence of dimensional difference between different features on the performance of the model; then, each hyper-parameter of the BiLSTM model is optimized by using an Optuna hyper-parameter optimization framework; a TCRA attention mechanism module is introduced to dynamically distribute different
time step feature weights, so that the model can pay more attention to effective information which greatly influences an approximation error, the learning ability of the model is enhanced, and the training precision is improved; dropout mechanism sparsity is added to optimize a
network structure, and part of neurons are randomly discarded in each
iteration process, so that interference of non-core knife contacts on an approximation error value is reduced, and model
overfitting is avoided; finally, the effectiveness of the method is verified in combination with actual curved surface model data, and efficient and accurate prediction of the five-axis
machining approximation error is achieved.