The application relates to the technical field of long-
time sequence prediction, and discloses a
superconducting magnet multi-step temperature prediction method based on an improved
whale optimization
algorithm, which comprises the following steps: pre-
processing original data sets related to the temperature of a
superconducting magnet; constructing a
whale optimization
algorithm according to the logic of three kinds of hunting behaviors of a
whale group hunting, and initializing a whale
population; improving the whale optimization
algorithm by combining Cauchy
mutation and double adaptive weights; inputting a training
data set into a long-short term
sequence model, combining the improved whale optimization algorithm to optimize and adjust the long-short term
sequence model super parameters, and updating the best long-short term
sequence model super parameters; using the updated best super parameters to directly-recursively perform multi-step temperature prediction on a
verification set, comparing the temperature prediction result with actual temperature data to check the prediction accuracy; and using the updated best super parameters to directly-recursively perform multi-step temperature prediction on a
test set, comparing the temperature prediction result with actual training data to evaluate the prediction accuracy.