The invention discloses an intelligent
system grey box fuzzy testing method based on state awareness. The method comprises the steps that S1, a state-memory
data set is acquired; s2, constructing and training a feature representation network; s3, calculating a feature center and a judgment threshold value of each known state category; s4, collecting the memory when the intelligent
system runs in real time, obtaining a to-be-tested memory snapshot, and extracting a
feature vector of the to-be-tested memory snapshot by using the feature representation network; s5, performing similarity comparison on the
feature vector of the memory snapshot to be detected and all feature centers in the state prototype
library, and if the distance between the
feature vector of the memory snapshot to be detected and any feature center does not exceed a corresponding judgment threshold, judging that the intelligent
system is in the known state category; otherwise, deducing the state as a potential new state; and S6, verifying the potential new state, and if the potential new state is confirmed to be a new state, adding the feature vector of the potential new state into the state-memory
data set, and dynamically updating the state prototype
library. According to the invention, more accurate description and efficient testing of complex
state logic of the intelligent system are realized.