Abstract:To address the problem of low prediction accuracy of existing network security posture prediction models, a prediction method based on Stacking model fusion is proposed. In this method, the TCN network, WaveNet, GRU, and LSTM are integrated with the Stacking algorithm to explore the correlation among the situational data; after that, logistic regression is used to further predict the final situational values; the particle swarm optimization algorithm is used to optimize the parameters and improve the model performance. Based on two data sets for validation, the experiments show that the proposed prediction method has small mean square error and mean absolute error, fast convergence speed, and the fit degree can reach 0.999, which can well solve the problem of low prediction accuracy.