The embodiment of the application provides a kind of detection model training method, comprising: obtaining the sample data corresponding to
sample graph structure, wherein the initial node attribute of each node and the initial edge attribute of each edge are included in sample data.The initial node attribute is input into the encoding unit of detection model, to obtain the first
feature vector output by encoding unit, and the initial edge attribute is input into the encoding unit of detection model, to obtain the second
feature vector output by encoding unit.According to the first
feature vector and the second feature vector, reconstruct the
sample graph structure, and determine the
reconstruction error corresponding to the reconstructed
sample graph structure.According to the first feature vector and the second feature vector, determine the
semantic information corresponding to the sample graph structure, and determine the semantic error corresponding to the sample graph structure according to the
semantic information.According to
reconstruction error and semantic error, update the
model parameter of detection model.The technical scheme of the application can effectively improve the
anomaly detection effect of detection model.