Forecast the Infectious Diseases Based on CNN-LSTM Neural Network of Particle Swarm Optimization
Aiming at the prediction accuracy of the development trend of new infectious diseases,an improved particle swarm optimization(PSO)algorithm is proposed to optimize the prediction model combining convolutional neural network(CNN)and short-term memory neural network(LSTM).First,the adjustment method of the optimal inertia weight in the original Particle Swarm Optimization algorithm is transformed from a linear to a nonlinear relationship by the number of iterations,and the learning factors are linearly updated to find the optimal parameters which can more accurately simulate the social learning ability of the particle swarm,thus it can balance the global optimization ability of the algorithm and improve the convergence rate.Second,a CNN-LSTM neural network prediction model is established with a novel coronary pneumonia with a long fermentation time as the research object,and the CNN layer is used to extract its feature information and then downscaled as the input of the LSTM layer,and the prediction module is used to realize the index training and prediction of the research object,so as to improve the model prediction accuracy.Finally,the predictions obtained from the original LSTM model,and were compared with the following three indices:root mean square error(RMSE),mean absolute error(MAE),and mean square error(MSE).Our results show that the improved PSO algorithm optimized CNN-LSTM combined neural network model reduces the three indicators by 73.0%,62.3%,and 92.7%compared to the original LSTM model on the training set;On the test set,the three indicators decreased by 23.0%,29.8%,40.7%,respectively,it shows that the model has smaller error as well as better prediction effect,which provides ideas and methods to achieve accurate prediction of infectious disease transmission trend.