The invention discloses a synchronous phase modifier fault diagnosis method based on a
knowledge graph and a large
language model, and the method comprises the steps: obtaining the operation data of a synchronous phase modifier, and carrying out the preprocessing of the operation data, so as to form a unified corpus and a standardized
data set; based on the unified corpus, using a BERT model to
encode the corpus to obtain context
perception vector representation, and based on the context
perception vector representation, performing
sequence labeling and relation extraction, and outputting structured knowledge data; based on the structured knowledge data, constructing a synchronous phase modifier fault diagnosis
knowledge graph; based on a pre-trained large
language model, performing model training and optimization by using the standardized
data set, understanding and analyzing a fault phenomenon described by a
natural language, and outputting a semantic analysis result; and in combination with the output of the
knowledge graph and the semantic analysis result, performing
hybrid reasoning to obtain a fault diagnosis result. The method has the advantages of high diagnosis precision, high diagnosis efficiency and the like.