The invention discloses a method for predicting the material demand of a
deep learning model based on
swarm intelligence, and aims to solve the problems that a conventional hyper-parameter optimization method is low in efficiency and is liable to fall into
local optimum. The method comprises the following steps: firstly, constructing a
deep learning model containing the number of
layers, the number of hidden nodes, a learning rate and regularization parameters, and defining an optimization interval of each hyper-parameter; secondly, designing an improved
sparrow search algorithm (ISSA), enhancing global search capability through Cauchy variation disturbance, balancing exploration and development of a
refraction reverse learning strategy, and adjusting a self-adaptive early warning value to improve convergence stability so as to optimize a hyper-parameter combination; further taking a
verification set RMSE as a fitness target, combining with parallelization calculation to accelerate model performance evaluation, and screening optimal hyper-parameter configuration; and finally, predicting material demand data by using the optimized model, performing transverse comparison with LSTM, ARIMA, GRU, GCN and other models, and verifying the effectiveness of the model through multiple indexes such as RMSE, MAPE and R. Experiments show that the ISSA optimization method provided by the invention significantly reduces prediction errors, the optimized model has higher accuracy and robustness in a complex material demand scene, and meanwhile, the reliability of
performance improvement is confirmed through
statistical significance test.