Abstract:With the continuous expansion of UHV AC/DC interconnection scale, on?line high?precision and fast transient stability assessment (TSA) is very important for the safe operation of power grid. To this end, a TSA method based on gating spatial temporal graph neural network (GSTGNN) is proposed and the time adaptive method is used to improve the accuracy and speed of TSA at the same time. Firstly, in order to reduce the impact of dynamic topology on TSA after fault removal, GSTGNN is used to extract and fuse the key features of topology and attribute information of adjacent nodes to learn the spatial data correlation and improve the evaluation accuracy. Then, the extracted features are input into the gated recurrent unit (GRU) to learn the correlation of data at each time, and adjust the stability threshold to quickly output accurate evaluation results. Meanwhile, in order to avoid the influence of the quality of training samples, the improved weighted cross entropy loss function with K nearest neighbor (KNN) idea is used to deal with the unbalanced training samples. Through the analysis of an calculation example, it is verified from the data visualization that TSA method can effectively improve assessment accuracy and shorten assessment time.