To improve the identification rate of bad data in power grid state estimation,this paper proposes a novel method based on an improved Transformer model.First,the traditional Transformer encoder structure is enhanced by incorporating a Gaussian kernel function into the self-attention mechanism,enhancing the model's capability to detect neighboring points of bad data.Sec-ond,a loss function is introduced based on a JS divergence maximization-minimization training strategy.This approach achieves a dynamic balance between Gaussian distribution weights and attention weights through mutual optimization in two stages.Utili-zing an unsupervised learning framework,the model is trained with normal measurement data to reconstruct the input,allowing the calculation of reconstruction errors and scores for effective bad data identification.Finally,simulation results demonstrate that the proposed method outperforms existing approaches in terms of precision,recall,F1 score,and overall accuracy,thereby validating its effectiveness in bad data detection for power systems.
关键词
不良数据辨识/Transformer网络/无监督学习/高斯核函数/重构分数
Key words
identification of bad data/transformer network/unsupervised learning/gaussian kernel function/reconstruction score