The invention provides a
petrochemical production process anomaly diagnosis and optimization method and
system integrated with a
knowledge graph, and relates to the technical field of
petrochemical production, and the method comprises the steps: collecting technological parameters and
equipment state data, carrying out the preprocessing and
feature extraction through
adaptive wavelet threshold denoising and depth
variational mode decomposition, and carrying out the
feature extraction; a heterogeneous graph neural network is constructed, a causal relationship graph is constructed in combination with a neural causal discovery network, the causal relationship graph is optimized through knowledge
distillation, missing relationships are complemented to obtain a
knowledge graph, real-time features are compared with normal feature distribution of a pre-trained contrast
diffusion model, and after
anomaly detection is triggered, the real-time features are extracted. A
causal inference engine is combined with a
knowledge graph to analyze an anomaly propagation path, an anomaly root and a prediction trend are determined based on multi-agent
reinforcement learning, a multi-objective
optimization problem is constructed according to the knowledge graph, an optimization strategy is generated and dynamically adjusted, and an optimization result is evaluated by combining a knowledge
distillation hybrid model. And finally, progressive optimization is realized and the knowledge graph is updated.