The invention provides a self-adaptive
network security situation awareness method and device combined with
online learning, and the method comprises the steps: collecting real-time network state data and
system load index data of a preset
data source, carrying out the preprocessing of the data to form a multi-
modal time sequence segment, inputting a pre-
training time sequence
data prediction model activated by employing Monte Carlo Dropout through a sliding window, and carrying out the prediction of the real-time network state data and
system load index data. The method comprises the following steps of: calculating a prediction value of a next time period, outputting a prediction value and an uncertainty quantity of the next time period, calculating a
threat probability through historical residual probability distribution fitting, realizing double-index
risk assessment based on a preset threshold interval
system, dividing into three types of states, and finally, respectively triggering
online learning, configuration maintenance or intervention disposal flow for different states. According to the method, by introducing uncertainty quantized double-index evaluation and state-driven
online learning closed loop, crossing of
network security situation awareness from static detection to dynamic self-adaption is achieved, and the two core problems of insufficient real-time performance and
concept drift in an
edge computing scene are effectively solved.