The invention relates to a real-time
power grid topology
analysis method based on a graph neural network, and the method comprises the steps: firstly, carrying out the electrical topology analysis at a substation level through constructing an optimized power
system physical
connection model, carrying out the electrical topology analysis in combination with a
label propagation
algorithm (LPA), precisely recognizing a calculation region, optimizing the division of the calculation region through employing the graph neural network (GNN), and enhancing the topology adaptability, mistaken division is reduced; and the robustness of
equipment state change is improved. Besides, according to the method, the real-time performance, the accuracy and the intelligent level of
power grid topology analysis are further improved by predicting the influence of the state change of the
circuit breaker and the disconnecting switch on the
power grid topology and training a GNN model and
reinforcement learning (RL) optimization region division strategy through historical data. And finally,
bus-
branch connection is optimized through depth-first search (DFS), the topology integrity is ensured, and the efficiency of electrical island analysis, power supply area division and fault
recovery is remarkably improved. The real-time performance, the accuracy and the intelligent level of power grid topology analysis are effectively improved.