The invention relates to the technical field of semantic
cognition modeling and
natural language interaction, in particular to an
electric power digital twin question-answer interaction generation method based on semantic
cognition modeling, which comprises the following steps of: accessing a
power grid topological data flow in real time, analyzing equipment hierarchy, power supply attribution and physical connection relationship, and constructing a dynamic topological
knowledge graph; the method comprises the following steps of: establishing a topological change monitoring channel, mapping the topological change monitoring channel to a semantic
cognition model, embedding a topological hierarchy field and an association constraint rule, generating an enhanced semantic cognition model with topological association constraints, and establishing a topological change monitoring channel to update an association relationship in real time; receiving user
natural language query, identifying keywords, extracting power supply attribution constraint rules, filtering invalid entities, and converting implicit topological
semantics into combined query statements; and executing query to obtain topological associated data, verifying the power supply attribution consistency of a
result set, filtering homonymy matching errors, triggering model updating and secondary
verification during topology adjustment, and outputting question and answer responses conforming to topology constraints, so that the interaction accuracy and timeliness are improved.