Next Article in Journal
Reinforcement Learning-Driven Control Strategies for DC Flexible Microgrids: Challenges and Future
Next Article in Special Issue
A Deep Multi-Task Warning Network for Grid Harmonics: Multi-Step Regression and Multi-Dimensional Tracing
Previous Article in Journal
Experimental Validation of a Modified Halbach Array for Improved Electrodynamic Suspension Efficiency
Previous Article in Special Issue
The Evaluation of the Effect of Power Circuit Configuration Changes on the Level of Harmonics Generated by the Hoisting Machine Drive System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Unified Transformer-Based Harmonic Detection Network for Distorted Power Systems

1
Electric Power Institute, Yunnan Power Grid Company Ltd., Kunming 650217, China
2
State Key Laboratory of Power Transmission Equipment Technology, Chongqing University, Chongqing 400044, China
*
Author to whom correspondence should be addressed.
Energies 2026, 19(3), 650; https://doi.org/10.3390/en19030650
Submission received: 5 January 2026 / Revised: 18 January 2026 / Accepted: 21 January 2026 / Published: 27 January 2026
(This article belongs to the Special Issue Technology for Analysis and Control of Power Quality)

Abstract

With the large-scale integration of power electronic converters, non-linear loads, and renewable energy generation, voltage and current waveform distortion in modern power systems has become increasingly severe, making harmonic resonance amplification and non-stationary distortion more prominent. Accurate and robust harmonic-level prediction and detection have become essential foundations for power quality monitoring and operational protection. However, traditional harmonic analysis methods remain highly dependent on pre-designed time–frequency transformations and manual feature extraction. They are sensitive to noise interference and operational variations, often exhibiting performance degradation under complex operating conditions. To address these challenges, a Unified Physics-Transformer-based harmonic detection scheme is proposed to accurately forecast harmonic levels in offshore wind farms (OWFs). This framework utilizes real-world wind speed data from Bozcaada, Turkey, to drive a high-fidelity electromagnetic transient simulation, constructing a benchmark dataset without reliance on generative data expansion. The proposed model features a Feature Tokenizer to project continuous physical quantities (e.g., wind speed, active power) into high-dimensional latent spaces and employs a Multi-Head Self-Attention mechanism to explicitly capture the complex, non-linear couplings between meteorological inputs and electrical states. Crucially, a Multi-Task Learning (MTL) strategy is implemented to simultaneously regress the Total Harmonic Distortion (THD) and the characteristic 5th Harmonic (H5), effectively leveraging shared representations to improve generalization. Comparative experiments with Random Forest, LSTM, and GRU systematically evaluate the predictive performance using metrics such as root mean square error (RMSE) and mean absolute percentage error (MAPE). Results demonstrate that the Physics-Transformer significantly outperforms baseline methods in prediction accuracy, robustness to operational variations, and the ability to capture transient resonance events. This study provides a data-efficient, high-precision approach for harmonic forecasting, offering valuable insights for future renewable grid integration and stability analysis.
Keywords: offshore wind farms (OWFs); transformer-based harmonic prediction; total harmonic distortion voltage (THDV) offshore wind farms (OWFs); transformer-based harmonic prediction; total harmonic distortion voltage (THDV)

Share and Cite

MDPI and ACS Style

Zhou, X.; Chen, Q.; Zhang, L.; Wang, Q.; Zhou, N.; Peng, J.; Zhao, Y. A Unified Transformer-Based Harmonic Detection Network for Distorted Power Systems. Energies 2026, 19, 650. https://doi.org/10.3390/en19030650

AMA Style

Zhou X, Chen Q, Zhang L, Wang Q, Zhou N, Peng J, Zhao Y. A Unified Transformer-Based Harmonic Detection Network for Distorted Power Systems. Energies. 2026; 19(3):650. https://doi.org/10.3390/en19030650

Chicago/Turabian Style

Zhou, Xin, Qiaoling Chen, Li Zhang, Qianggang Wang, Niancheng Zhou, Junzhen Peng, and Yongshuai Zhao. 2026. "A Unified Transformer-Based Harmonic Detection Network for Distorted Power Systems" Energies 19, no. 3: 650. https://doi.org/10.3390/en19030650

APA Style

Zhou, X., Chen, Q., Zhang, L., Wang, Q., Zhou, N., Peng, J., & Zhao, Y. (2026). A Unified Transformer-Based Harmonic Detection Network for Distorted Power Systems. Energies, 19(3), 650. https://doi.org/10.3390/en19030650

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop