The invention discloses an encrypted traffic detection method based on
small sample self-
supervised learning, and relates to the field of
network security. The method innovatively constructs a double-
branch self-supervised pre-training architecture, deeply mines the
time sequence dynamic characteristics of encrypted traffic through a comparison predictive coding module, and improves the detection accuracy of the encrypted traffic. Capturing structural features of head bytes by using a sub-graph multi-level
mask auto-
encoder module, so as to learn robust feature representation with strong discrimination from
mass label-free data; on the basis, the method designs a dynamic confidence false
label mechanism, realizes intelligent self-adaptive adjustment of a false
label threshold value through a dual adjustment strategy of fusing a time
decay function and a category balance factor, effectively screens high-quality false labels and remarkably relieves negative effects caused by category imbalance. According to the method, the dependence on the annotated data can be obviously reduced, the method can more quickly adapt to a continuously evolved network
threat environment, and a key
technical support is provided for constructing a next-generation adaptive
network security defense
system.