Abstract
With the large-scale integration of offshore wind farms (OWFs), harmonic issues caused by the interaction between high-frequency switching of converters and complex network impedances pose severe challenges to power quality. Traditional harmonic monitoring heavily relies on post-event fixed-threshold alarm mechanisms, which struggle to achieve early warning during the low-distortion sub-health operation stage and lack the capability for multi-dimensional tracing of harmonic degradation sources. To address these limitations, this paper proposes a deep warning network for grid harmonics combining multi-step regression and multi-dimensional tracing within a unified multi-task learning (MTL) architecture. First, a deep shared feature encoder, integrating a bi-directional long short-term memory (Bi-LSTM) network with a multi-head self-attention (MHSA) mechanism, is utilized to extract high-order temporal coupling features between meteorological evolution and multi-node electrical states. Subsequently, the main task branch executes a k-step-ahead multivariate time-series regression to accurately predict the evolution trend of total harmonic distortion (THD) at both the point of common coupling (PCC) and the turbine terminal. Simultaneously, the auxiliary task branch performs multi-label micro-state classification based on relative degradation thresholds, achieving fine-grained multi-dimensional tracing covering spatial nodes, electrical attributes, and their joint micro-states. Experimental results on real-world OWF operational data demonstrate that through the joint optimization of regression and tracing tasks, the proposed MultiDimKStepMTL model significantly improves time-series prediction accuracy, achieving a relative improvement over single-task baselines, while substantially reducing computational overhead. This research successfully advances grid harmonic monitoring from passive response to proactive micro-state early warning, providing a solid, highly interpretable data-driven foundation for active filter control of offshore wind clusters.
1. Introduction
The global transition toward a carbon-neutral energy paradigm has accelerated the evolution of modern power systems into networks increasingly dominated by inverter-based resources (IBRs) [1,2]. Within this critical transformation, offshore wind farms (OWFs) have emerged as the backbone of the future renewable generation mix, driven by their scalable capacity and access to highly consistent marine wind profiles [3]. Unlike onshore facilities, OWFs offer substantial generation potential with minimal residential disruption, positioning them to occupy a dominant share of the forthcoming grid infrastructure [4]. However, operating a grid approaching 100% IBR penetration introduces significant electromechanical and power quality (PQ) challenges. As the system transitions from inertia-heavy synchronous generation to low-inertia IBRs, the dominant dynamics shift from traditional fundamental-frequency transients to highly complex, broadband electromagnetic interactions.
To integrate these remote marine energy hubs with onshore load centers, OWFs rely on extensive networks of high-voltage submarine cables and converter-interfaced wind turbine generators (WTGs), predominantly utilizing the Type-3 doubly fed induction generator (DFIG) [5]. While power-electronic converters provide essential flexibility in decoupled active and reactive power control, their inherent high-frequency switching characteristics fundamentally alter the system’s harmonic emission profile [6]. In the unique physical context of offshore environments, the marine collection grid exhibits distinct frequency-dependent impedance. The massive distributed capacitance of long submarine cables interacts with the inductive elements of grid transformers, forming complex L-C networks with multiple resonance peaks. Furthermore, the harmonic emission signature of a DFIG is highly non-stationary; it is tightly coupled with the stochastic nature of wind speeds and the continuous shifts in the aerodynamic operating point. When these non-sinusoidal, time-varying harmonic currents injected by the converters align with the natural resonant frequencies of the marine grid, severe harmonic resonance phenomena are triggered [7,8].
This resonance can lead to rapid and extreme amplification of voltage and current distortions. The presence of high-frequency components exacerbates skin and proximity effects in conductors, inducing severe localized heating, accelerating equipment aging, and risking catastrophic dielectric insulation failure [9]. Consequently, strict adherence to international grid codes, such as IEEE 519 and IEC 61000, has become a baseline operational requirement [10,11]. Nevertheless, traditional supervisory control and data acquisition (SCADA) monitoring frameworks are predominantly reactive, triggering alarms only after absolute thresholds are breached. Continuous operation under low-distortion sub-health conditions, even if the absolute total harmonic distortion (THD) remains marginally below the regulatory limit, still imposes cumulative thermal stress on the grid infrastructure. Traditional threshold-based logic fundamentally discards the rich, subtle degradation signatures embedded within this sub-health data, failing to capture the micro-state evolution that precedes severe resonance events in highly dynamic IBR networks.
1.1. Prior Works and Motivations
In the complex landscape of IBR-dominated grid management, harmonic analysis has fundamentally evolved from a passive, supplementary compliance check into a proactive operational necessity [12]. High-fidelity early warning systems are now highly critical for coordinating active filters and dynamically adjusting converter parameters to preempt power quality (PQ) violations before they escalate [13].
Conventionally, harmonic assessment in the power industry relies on rigorous analytical methods such as impedance analysis, frequency scans, and harmonic power flow calculations. While these “white-box” engineering approaches are indispensable for initial grid planning and filter design, their real-time operational deployment is often hindered by the proprietary (black-box) nature of converter control parameters and the highly non-stationary stochastic dynamics of offshore wind environments. To bridge this gap, early probabilistic and deterministic forecasting methods laid the initial groundwork by correlating meteorological variables with electrical distortions [14,15,16]. However, as the coupling between aerodynamic volatility and high-frequency switching becomes more intricate, there is a compelling need for robust, data-driven deep learning architectures that can extract high-order spatiotemporal features without requiring precise physical grid models.
Recently, data-driven frameworks leveraging machine learning (ML) and deep learning (DL) have demonstrated strong capabilities in decoding the non-linear dynamics of power electronics [17]. Architectures integrating long short-term memory (LSTM) networks and adaptive neuro-fuzzy inference systems (ANFIS) have been widely deployed to predict THD across diverse renewable configurations [18,19,20]. Moving beyond basic temporal modeling, the latest research in top-tier literature has increasingly focused on the spatial–temporal propagation of harmonics. For instance, recent studies have proposed spatial–temporal graph convolutional networks (STGCNs) and Transformer-based variants to capture the grid topology and latent spatial correlations of harmonic power flows across multiple monitoring nodes [21,22]. Concurrently, physics-informed neural networks (PINNs) have been introduced to embed Kirchhoff laws and network impedance matrices into the loss functions, attempting to constrain the neural network outputs within physically feasible boundaries [23]. While these sophisticated sequence and graph models excel in standard continuous forecasting tasks [24,25,26], they confront severe bottlenecks when applied to physical offshore networks operating under real-world constraints.
Specifically, standard deep learning models, even advanced spatial–temporal architectures, highly rely on massive, balanced datasets containing diverse and extreme fault scenarios. In actual OWF SCADA systems, the vast majority of operational snapshots reflect a low-distortion sub-health state. The extreme sparsity of critical boundary data (i.e., data near the regulatory limits) renders traditional models highly susceptible to overfitting and predictive failure. To mitigate data scarcity, recent studies have explored generative adversarial networks (GANs) and emerging denoising diffusion probabilistic models (DDPMs) for synthetic data augmentation [27,28,29]. However, seamlessly integrating these unconstrained generative priors with the highly transient and coupled physical states of an offshore wind farm remains a significant challenge, often introducing artificial frequencies that distort the training manifold [30,31].
Moreover, from a functional perspective, existing forecasting architectures fundamentally formulate harmonic monitoring as a monolithic, single-target regression task [32,33,34]. They are designed to answer the “when” and “how much” (e.g., predicting the future THD value) but inherently fail to address the “where” and “what”. Even state-of-the-art GNNs output node-level continuous variables without providing actionable micro-state attribution. They lack the capacity to explicitly trace whether the underlying degradation driver stems from the turbine terminal converter switching or the Point of Common Coupling (PCC) resonance, and whether it predominantly manifests in the voltage or current dimensions.
To systematically bridge these theoretical and practical gaps, the fundamental novelty of this study lies in explicitly shifting the paradigm from pure regression to a joint continuous-evolution and discrete-attribution framework. Instead of relying on unconstrained generative data expansion to handle data sparsity, we propose a Deep Multi-Task Warning Network (MultiDimKStepMTL). By leveraging auxiliary multi-dimensional diagnostic tasks to regularize a deep spatiotemporal shared encoder, our framework mathematically embeds physical boundary conditions into the latent representation, thereby enabling highly robust k-step-ahead prediction and fine-grained spatial attribution directly from non-stationary physical feature spaces.
1.2. Contributions
OWFs based on DFIGs and long submarine cables are highly susceptible to resonance-driven harmonic amplification. However, existing data-driven approaches often suffer from two critical practical limitations: the inability to provide early warnings during low-distortion sub-health states, and the lack of multi-dimensional spatial attribution capabilities to trace the root causes of harmonic degradation. To overcome these issues, we develop a deep multi-task warning framework tailored for proactive sub-health harmonic monitoring and high-confidence fault source localization.
The main contributions of this paper are shown in Figure 1 and summarized as follows:
Figure 1.
Overall scenario of offshore wind farm harmonic monitoring and data-driven prediction framework.
- Theoretical Formulation of Joint Sub-Health Monitoring: We redefine the harmonic warning paradigm by shifting from reactive, threshold-based alarms to proactive, relative sub-health state tracking. By mathematically formulating grid harmonic analysis as a joint continuous regression and discrete classification optimization problem, we introduce a unified Multi-Task Learning framework that simultaneously resolves temporal evolution prediction and spatial attribution within a single end-to-end network.
- Structurally Regularized Spatiotemporal Representation: We design a deep shared feature encoder integrating Bi-directional LSTM and Multi-Head Self-Attention. Unlike traditional single-task predictors that are prone to overfitting to extreme operational boundaries, our shared architecture leverages the backpropagated gradients from discrete auxiliary classification tasks (spatial, electrical, and micro-state) as an implicit structural regularizer. This explicitly enables the extraction of physics-aware, long-range temporal dependencies from stochastic meteorological inputs.
- Multi-Dimensional Tracing with High Confidence: We pioneer the integration of a multi-label micro-state classification branch operating concurrently with a k-step-ahead regression head. This allows the network to not only provide crucial lead-time warnings for impending THD limit violations but also pinpoint the physical root causes across spatial nodes (PCC vs. turbine terminal) and electrical dimensions (voltage vs. current), transforming opaque deep learning outputs into interpretable condition-based maintenance directives.
- Demonstrated Superiority for Edge-Constrained Deployment: Extensive benchmarking on 18-month real-world OWF operational data validates that the proposed MultiDimKStepMTL mitigates the traditional accuracy–efficiency trade-off. It achieves a state-of-the-art predictive performance (, a 10.3% relative improvement over single-task baselines) while demanding fewer parameters and delivering a training acceleration, validating its exceptional feasibility for real-time edge computing and active filter control in offshore grids.
The remainder of this paper is organized as follows. Section 2 details the system modeling, including the Bozcaada offshore wind farm topology, DFIG configuration, and generative data augmentation process. Section 3 presents the proposed Deep Warning Network, explaining the shared feature encoder, the k-step-ahead regression branch, and the multi-dimensional tracing strategy. Section 4 provides a comprehensive analysis of the experimental results, evaluating the model’s predictive accuracy and spatial attribution capabilities. Finally, Section 5 concludes the paper and outlines directions for future research.
2. Physics-Aware Mechanism and Data State Definition
To develop a robust and highly interpretable deep warning network, it is imperative to first establish the physical principles underlying harmonic generation and propagation in offshore environments. This section delineates the physics-aware resonance mechanisms, the meteorological-driven data dynamics, and the precise mathematical definition of the heterogeneous feature space, which collectively provide the theoretical foundation for the subsequent multi-step regression and multi-dimensional tracing tasks.
2.1. System Physics and Resonance Amplification Mechanism
Modern OWFs are predominantly driven by converter-interfaced WTGs, such as the Type-3 DFIG. To facilitate bulk power transmission to onshore load centers, these remote marine energy hubs rely on extensive networks of high-voltage alternating current (HVAC) submarine cables.
From an electromagnetic transient perspective, this specific topological configuration introduces severe power quality vulnerabilities. Specifically, the high-frequency switching operations (e.g., Pulse Width Modulation) of the DFIG back-to-back converters act as persistent, non-sinusoidal harmonic current sources. Furthermore, recent studies demonstrate that such connected nonlinear loads, especially those equipped with DC link capacitors, can significantly dynamically alter the power system’s equivalent impedance at harmonic frequencies [35]. When this distributed capacitance interacts with the inherent equivalent inductance of the grid, such as transformer leakage inductances () and grid-side LCL filters (), it forms a highly complex L-C parallel and series resonance circuit. While the inherent resistance of the submarine cables and transformers provides essential physical damping to limit the maximum resonance peak, it is conventionally neglected in simplified analytical models to explicitly highlight the worst-case frequency alignment.
Under this lossless approximation, the equivalent harmonic impedance looking from the converter terminal into the offshore collection grid at the h-th harmonic order can be analytically derived as:
where j is the imaginary unit, h denotes the harmonic order, is the fundamental angular frequency, and represents the aggregated system equivalent inductance. The intrinsic natural resonant frequency of this marine grid occurs when the denominator approaches zero:
To further quantify the spatial–electrical coupling, the harmonic voltage amplification factor between the turbine terminal and the PCC can be derived as a transfer function:
The critical grid hazard emerges when the frequencies of the harmonic currents injected by the DFIG converters () align with the natural resonant frequency (). As this alignment occurs, the amplification factor . According to Ohm’s law, the harmonic voltage distortion at the h-th order, , is determined by the injected harmonic current and the network impedance:
This alignment triggers severe harmonic resonance amplification. Consequently, minor harmonic injections at the turbine terminal can be radically amplified as they propagate toward the PCC. Understanding this spatial–electrical coupling mechanism is the physical prerequisite for the proposed multi-dimensional tracing strategy, enabling the network to localize whether the degradation originates from active converter switching or passive resonance amplification.
2.2. Meteorological-Driven Data Dynamics
Unlike static industrial loads, the harmonic emission profile of an OWF is fundamentally non-stationary, driven continuously by stochastic meteorological evolution. Wind speed fluctuations dictate the aerodynamic operating point of the WTGs. The extracted mechanical power as a function of the instantaneous wind speed is governed by the aerodynamic equation:
where is the air density, R is the rotor radius, and is the power coefficient depending on the pitch angle and the tip-speed ratio (with being the rotor speed).
To maintain optimal power extraction and grid synchronization, the modulation index and the fundamental current references of the DFIG converters must dynamically adapt to the electrical power output . Based on the double Fourier series analysis for PWM converters, the output terminal voltage containing switching harmonics can be analytically expressed as:
where is the DC-link voltage, is the switching angular frequency, and represents the harmonic amplitude dependent on the time-varying .
This continuous operational drift implies that the magnitude and phase of the injected high-frequency harmonics are highly time-variant and non-linearly coupled with meteorological excitation:
Consequently, harmonic analysis in OWFs cannot rely on static snapshots; it requires capturing the high-order, long-range temporal dependencies between meteorological excitation and electrical responses. To faithfully reproduce this highly coupled data dynamic for algorithm training, this study utilizes a detailed electromagnetic-transient (EMT) simulation model driven by authentic, high-resolution meteorological wind-speed series.
2.3. Heterogeneous Feature Space and Degradation State Definition
To empower the deep warning network to capture the aforementioned physical interactions, we construct a heterogeneous, multi-node feature space. Let denote the feature vector at time step t, encompassing the essential drivers and state variables:
where V and I are the voltage and current waveforms synchronously sampled at multiple critical spatial nodes (PCC and turbine terminal). For a given sliding time window W, the input multivariate sequence fed into the deep learning model is defined as the matrix :
Beyond input features, shifting the monitoring paradigm from reactive alarms to proactive early warning necessitates a fine-grained mathematical definition of harmonic degradation states. Based on international standards (e.g., IEEE 519), the core metric is the THD:
where and represent the RMS values of the h-th harmonic and the fundamental component of the voltage or current (), respectively. The time index explicitly denotes that these RMS values are not static constants, but time-varying features dynamically calculated over the observation window at the discrete time step t, reflecting the continuous non-stationary operational drift of the system. H is the highest harmonic order considered.
To support the multi-dimensional tracing branch in the MTL architecture, we must transform the continuous harmonic evolution into discrete, multi-label diagnostic indicators. Rather than relying on rigid absolute limits, we utilize dynamically defined relative sub-health thresholds (, e.g., the 75th percentile of the historical nominal distribution) to capture incipient anomalies. Specifically, a binary anomaly state indicator is defined for each spatial node and electrical property :
Based on these atomic indicators, the explicit ground truth labels for the auxiliary tracing tasks at time t are mathematically formulated as:
- Spatial Label : Encodes the occurrence of anomalies at the turbine and PCC sides, respectively.
- Electrical Label : Encodes the occurrence of voltage and current harmonic anomalies.
- Joint Micro-State Label : Represents the flattened, fine-grained joint condition vector .
By rigorously defining these physical conditions, the proposed framework explicitly transforms harmonic monitoring into a joint continuous forecasting and discrete diagnostic mathematical problem, formulated as:
where and denote the learnable parameters for the multi-step regression and multi-dimensional classification tasks, respectively. This explicit formulation establishes a rigorous mapping from continuous physical variables to discrete diagnostic targets, providing the necessary ground truth for the binary cross-entropy (BCE) loss optimized in the MTL framework.
4. Simulations and Discussion
In this section, the superior performance of the proposed Multi-Task Learning framework for k-step ahead THD prediction in offshore wind farms is experimentally verified. The proposed MultiDimKStepMTL model demonstrates outstanding capabilities in both regression accuracy and multi-dimensional harmonic source tracing after comparative analysis with traditional machine learning and deep learning predictors.
4.1. Experimental Settings
To validate the proposed framework under realistic offshore wind farm operating conditions, this study utilizes a comprehensive dataset collected from an actual offshore wind farm over an 18-month period (June 2024 to December 2025). Unlike simulation-based studies that rely on steady-state snapshots, the dataset comprises 11,724 continuous hourly samples, capturing the full dynamic evolution of meteorological and electrical variables under stochastic wind conditions.
As visually outlined in the physical system module of Figure 1, the data acquisition infrastructure monitors the grid at two critical spatial nodes: the turbine terminals (575 V side) and the Point of Common Coupling (PCC, 60 kV side). The electrical variables, bus voltage magnitude (V) and current (I), were synchronously captured using high-precision Voltage Transformers (PTs) and Current Transformers (CTs) connected to IEC 61000-4-30 [37] Class A compliant Power Quality Analyzers (PQAs). These instruments sample the high-frequency analog signals to accurately extract harmonic distortions up to the 50th order. Concurrently, the meteorological variables, including wind speed (WS) and wind direction (WD), were recorded by the nacelle anemometers. All multidimensional measurements were temporally aligned and aggregated into the continuous hourly SCADA dataset.
These variables form the input feature vector , while the harmonic distortion indicators constitute the multi-dimensional prediction targets. Specifically, the input–output pair for each time step is defined as follows:
- Inputs (): Meteorological and electrical state variables, including Wind Speed (), Wind Direction (), Voltage at 60 V side (), Current at 60 V side (), Voltage at 575 V side (), and Current at 575 V side ().
- Target 1—K-step THD Regression (): Total Harmonic Distortion of voltage and current at both voltage levels, predicted for future time steps. The output dimension is , representing [THDV60, THDI60, THDV575, THDI575] at , , and .
- Target 2—Spatial Node Tracing (): Binary classification indicating harmonic anomaly occurrence at the WT side (575 V) versus the PCC side (60 V), with output dimension .
- Target 3—Electrical Property Tracing (): Binary classification distinguishing between voltage harmonics and current harmonics, with output dimension .
- Target 4—Joint Microstate Classification (): Fine-grained 4-dimensional classification identifying specific anomalous combinations of [WT-Voltage, WT-Current, PCC-Voltage, PCC-Current], with output dimension .
The dataset was partitioned into training (80%, first 14 months) and testing (20%, final 4 months) sets using a chronological split strategy to prevent data leakage. A sliding window approach with h of historical data was employed to construct input sequences. All inputs were standardized using Z-score normalization based on training set statistics.
4.2. Baseline Methods and Implementation Details
To comprehensively validate the effectiveness of the proposed MultiDimKStepMTL framework, six representative baseline methods spanning linear models, ensemble learning, and deep learning are implemented and evaluated. All experiments were conducted on the same hardware platform (NVIDIA GeForce RTX 3070 Ti GPU) with identical data preprocessing and train/test splits to ensure fair comparison.
4.2.1. Traditional Machine Learning Baselines
- Ridge Regression: A linear regression model with L2 regularization (), serving as the fundamental baseline to establish the lower bound of predictive performance. The sliding window features (24 time steps × 6 variables) were flattened into 144-dimensional vectors for input.
- Random Forest (RF): An ensemble method with 100 decision trees, max depth of 10, and minimum samples split of 5. RF was selected for its robustness against noise and ability to capture non-linear feature interactions without requiring temporal structure.
- XGBoost: A scalable tree boosting system with 100 estimators, max depth of 6, learning rate of 0.1, and subsample ratio of 0.8. XGBoost represents state-of-the-art traditional machine learning for structured tabular data.
For the traditional ML methods, the sequential data was flattened (24 h × 6 features = 144 input dimensions), and four separate models were trained for the four THD targets (Single-Task Learning approach). Classification tasks (spatial, electrical, microstate) used the same flattened features with binary/categorical targets.
4.2.2. Deep Learning Baselines
- Multi-Layer Perceptron (MLP): A feed-forward neural network with architecture: Input(6) → Hidden1(128) → Hidden2(64) → Output(4). ReLU activation and 20% dropout were applied between layers. The MLP processed flattened window features and was trained separately for each of the four THD targets (STL approach), requiring 4 independent models.
- Single-Task LSTM (LSTM-STL): To isolate the specific contribution of multi-task learning, we implemented a single-task variant using the identical BiLSTM+Attention architecture as the proposed model, but trained four independent models, one for each THD target and one for each auxiliary task. Each LSTM-STL model has 900,776 parameters, totaling 3,603,104 parameters across all tasks. This baseline directly compares MTL (shared encoder) versus STL (independent encoders) while controlling for architectural differences.
- Proposed MultiDimKStepMTL: The complete multi-task framework with shared BiLSTM encoder and four task-specific heads. Total parameters: 900,776 (shared) versus 3,603,104 (LSTM-STL total).
4.2.3. Training Configuration
All neural network methods were implemented using PyTorch 1.13.1 with CUDA 11.7 support. Detailed hyperparameters are summarized in Table 1. The MTL model employs uncertainty-based task weighting to balance the contribution of regression (MSE loss) and classification (BCE loss) objectives. All models were trained with the same random seed (42) for reproducibility. Training was performed on an NVIDIA GeForce RTX 3070 Ti GPU with 8GB memory.
Table 1.
Hyperparameter Configuration for Neural Network Methods.
4.3. Performance Analysis of k-Step THD Prediction
4.3.1. Overall Regression Accuracy
Table 2 presents the comprehensive comparison of all baseline methods on the k-step THD prediction task. The proposed MultiDimKStepMTL achieves the highest Coefficient of Determination () of 0.6089, significantly outperforming all competitive baselines in terms of predictive accuracy.
Table 2.
Performance Comparison of k-Step THD Prediction.
The proposed MTL model demonstrates a 10.3% relative improvement over the strongest baseline (LSTM-STL, ). This significant performance gain validates the effectiveness of the multi-task learning strategy. By jointly optimizing the main regression objective alongside auxiliary classification tasks, the MTL framework effectively regularizes the shared latent representation space. This joint optimization acts as a beneficial inductive bias, mitigating overfitting and allowing the model to better capture the underlying distribution shifts of harmonic distortions. Figure 2 illustrates the performance hierarchy across all evaluated methods.
Figure 2.
Comparison of scores for k-step THD prediction across six methods. The proposed MultiDimKStepMTL achieves the highest score of 0.6089, with a 10.3% improvement over LSTM-STL.
Furthermore, the results highlight the critical importance of non-linear and temporal modeling for harmonic prediction in offshore wind farms. Deep learning models (MultiDimKStepMTL, LSTM-STL, and MLP) consistently outperform traditional machine learning methods (XGBoost, RandomForest, and Ridge). The linear Ridge regression yields the lowest score (0.5111), indicating that THD sequences possess strong non-linear characteristics. While tree-based ensemble methods (XGBoost and RandomForest) show marginal improvements over Ridge, they still struggle to explicitly capture sequential dependencies. In contrast, models equipped with temporal or deep architectures effectively capture the temporal inertia of wind patterns and the complex, high-frequency control dynamics of wind turbine converters.
Beyond predictive accuracy, Table 2 demonstrates the computational efficiency of the proposed framework. While traditional machine learning methods exhibit short training times (ranging from 1.1 s to 9.3 s) at the expense of accuracy, deep learning approaches generally require higher computational overhead. However, the proposed MultiDimKStepMTL achieves an optimal trade-off between predictive performance and computational efficiency. Its training time of 44.6 s is substantially lower, reducing the training overhead by approximately compared to the single-task LSTM-STL (). This significant acceleration suggests that the multi-task learning paradigm not only enhances accuracy but also facilitates faster model convergence by leveraging complementary gradient signals from auxiliary tasks, making it highly practical for real-time monitoring and dynamic control in operational power systems.
4.3.2. Multi-Horizon Prediction Analysis
Table 3 presents the step-wise breakdown of prediction performance across the three forecast horizons. As expected, prediction accuracy degrades gracefully with increasing forecast horizon: the scores for the proposed model decrease from () to () and (). This monotonic degradation reflects the inherent error accumulation characteristic of auto-regressive multi-step forecasting, compounded by the increasing uncertainty of longer-term forecasts due to the highly stochastic nature of wind evolution and aerodynamic wake effects.
Table 3.
Step-wise Performance Breakdown.
Importantly, the MTL model maintains consistent and expanding advantages across all three horizons. Compared to the strongest baseline (LSTM-STL), the proposed approach achieves relative improvements of , , and at , , and , respectively. The widening performance gap at longer horizons provides crucial insight into the model’s inner mechanics: as the primary prediction task becomes increasingly difficult due to temporal distance, the auxiliary tasks provide increasingly valuable structural regularization. By anchoring the shared latent space to stable, operationally relevant classifications, the MTL framework effectively inhibits the severe error propagation typically observed in standard recurrent architectures. Figure 3 visualizes this step-wise performance degradation pattern.
Figure 3.
k-step prediction performance breakdown by forecast horizon (, , ). MTL achieves the highest at all horizons, demonstrating superior robustness against error accumulation as prediction distance increases.
Furthermore, the step-wise breakdown exposes the severe limitations of traditional machine learning algorithms in long-term sequence generation. For instance, while XGBoost achieves a respectable of at , its performance sharply collapses to at . This indicates that although tree-based models can adequately map immediate prior states to the very next consecutive step, they lack the sequential memory mechanisms required to infer long-term trajectory dynamics. Conversely, deep models with temporal architectures (MultiDimKStepMTL, LSTM-STL) exhibit a more resilient degradation curve, thereby proving their necessity for robust long-term harmonic distortion monitoring.
4.3.3. Computational Efficiency
Beyond predictive accuracy, the proposed MTL framework demonstrates significant computational advantages and resource efficiency. As shown in Table 2, the MTL model completes the training process in only 44.6 son a single GPU. In contrast, training four independent LSTM-STL models requires 193.4 s. This represents a substantial 4.3× speedup in total training time.
This remarkable efficiency gain primarily stems from the shared encoder architecture. By leveraging a unified feature extractor that serves all forecasting and classification tasks simultaneously, the MTL framework eliminates the redundant computations inherent in processing the identical input sequence through multiple isolated networks. Consequently, the total parameter count is substantially reduced to 900,776 for the MTL model, as opposed to the 3,603,104 parameters required to maintain four separate LSTM-STL models, amounting to a 4× reduction in model complexity.
From an optimization perspective, this architectural compactness not only accelerates the forward and backward passes by minimizing floating-point operations (FLOPs), but also acts as an implicit structural regularizer. The reduced parameter space forces the network to learn generalized, robust representations, thereby mitigating the risk of overfitting typically associated with over-parameterized individual models. Furthermore, the minimized memory footprint and accelerated inference speed make the proposed framework highly suitable for real-time edge deployment in operational power systems, where computational resources and power budgets are often strictly constrained.
4.4. Performance Analysis of Multi-Task Learning Strategy
To validate the effectiveness of our design, we analyze the performance of all four task heads in the proposed framework. Table 4 summarizes the quantitative results.
Table 4.
Comprehensive Multi-Task Performance Comparison: All Methods on Four Tasks.
4.4.1. Main Task: THD Regression
The primary regression task results in Table 4 demonstrate clear performance hierarchies across different algorithmic paradigms. The proposed MultiDimKStepMTL achieves an optimal coefficient of determination ( = 0.6089), significantly outperforming the standard LSTM-STL () by a relative margin of . This substantial improvement validates the core hypothesis of our architecture: a shared encoder guided by multi-task gradient signals extracts fundamentally more robust and generalized latent features than independent single-task models. By implicitly regularizing the representation space, the MTL framework prevents the recurrent network from overfitting to the highly stochastic fluctuations of harmonic sequences.
Notably, deep learning methods (MTL, LSTM-STL, MLP) consistently outperform ensemble methods (XGBoost, RandomForest) and the linear baseline (Ridge). The inferior performance of linear and tree-based models confirms the necessity of non-linear temporal modeling, as harmonic distortion in offshore wind farms exhibits complex, non-stationary dynamics driven by continuous converter switching events and aerodynamic power variations.
4.4.2. Auxiliary Task Performance
Crucially, the structural advantages of the MTL framework extend beyond the main regression task to all three auxiliary classification objectives, demonstrating that shared representation learning yields superior categorical discrimination across varied harmonic dimensions. As illustrated in Figure 4, the MTL model effectively captures spatial propagation characteristics in the Spatial Node Tracing task, achieving an F1 score of ( higher than the LSTM-STL baseline) and thus more accurately discriminating between harmonic sources originating at the individual wind turbine (WT-side) versus those compounded at the point of common coupling (PCC-side). Meanwhile, in the Electrical Property Tracing task, MTL achieves the highest absolute performance with an F1 score of . This high overall baseline accuracy indicates that distinguishing between voltage (THDv) and current (THDi) distortions is inherently more tractable due to their distinct waveform signatures and underlying physical constraints. Most notably, the framework records its largest relative improvement of in the Joint Microstate Classification task, reaching an F1 score of compared to the baseline . This specific gain highlights a critical algorithmic advantage: fine-grained joint classifications involving complex decision boundaries benefit the most from the complementary inductive biases introduced by shared feature learning, which effectively mitigates the mode collapse often observed in highly granular multi-class problems.
Figure 4.
Multi-task performance comparison: F1 scores for three auxiliary tasks across all methods. MTL achieves the highest F1 in all tasks, demonstrating the effectiveness of shared representation learning in capturing diverse harmonic signatures.
4.4.3. MTL vs. STL: Comprehensive Analysis and Optimization Dynamics
The controlled comparison between the proposed MTL framework and the baseline LSTM-STL, both utilizing identical BiLSTM encoder backbones, rigorously isolates the specific optimization benefits of the multi-task learning paradigm. Rather than presenting a conventional engineering trade-off, the MTL approach consistent improvements across all evaluated metrics. In terms of predictive accuracy and generalization, the shared architecture not only improves the primary regression score by , but simultaneously enhances the categorical F1 scores by margins ranging from to across all auxiliary domains. Beyond these performance gains, the framework exhibits profound computational efficiency, i.e., it trains faster (44.6 s versus 193.4 s) while demanding fewer parameters compared to the cumbersome deployment of independent, task-specific models. This consistent, state-of-the-art dominance across diverse objectives, seamlessly combining continuous sequence forecasting with discrete classification, reveals a strong optimization synergy. Specifically, the aggregated auxiliary loss functions inject regularizing gradient signals that successfully guide the shared encoder out of narrow local optima during backpropagation. Consequently, rather than overfitting to the idiosyncratic noise of a single domain, the neural network learns a universal, robust harmonic representation that is inherently beneficial for multiple operational objectives, as comprehensively visualized in Figure 5.
Figure 5.
Comprehensive comparison between MTL and LSTM-STL. (Left): Performance alignment across all four distinct tasks (MTL exhibits strict dominance on all metrics). (Right): Efficiency paradigm showing MTL’s 4.3× training speedup and 4× parameter reduction relative to isolated STL frameworks.
4.4.4. Interpretability for Condition-Based Maintenance
Beyond theoretical quantitative metrics, the auxiliary task outputs transform the inherently opaque neural network into an interpretable diagnostic instrument, yielding actionable intelligence for condition-based maintenance in offshore wind farms. For instance, when the primary regression task forecasts an imminent escalation in THD severity, the auxiliary classification heads simultaneously generate high-confidence categorical outputs. If the network synthesizes a concurrent diagnostic vector such as [WT-side, Voltage, WT-Voltage] across the spatial, electrical, and microstate dimensions, this precise multi-dimensional signature directly localizes the anomaly. Consequently, instead of initiating a resource-intensive, farm-wide grid sweep, maintenance crews can immediately prioritize targeted inspections of turbine-side LC/LCL filters or local voltage control loops. By concurrently isolating the physical root cause and quantifying the distortion severity, this MTL framework substantially curtails troubleshooting downtime and operational expenditure in harsh offshore environments, effectively bridging the gap between abstract deep learning predictions and practical power system engineering.
5. Conclusions
To address the limitations of traditional reactive harmonic monitoring and the lack of fault-tracing capabilities in existing data-driven models, this paper proposes a DHEWN tailored for offshore wind farms. By constructing a deep shared feature encoder that integrates Bi-directional LSTM with Multi-Head Self-Attention, the framework effectively captures the high-order temporal couplings between stochastic meteorological evolutions and multi-node electrical states. Breaking away from conventional single-task paradigms, the network employs a MTL architecture to jointly optimize continuous k-step-ahead THD regression and discrete multi-dimensional micro-state classification. Experimental results on real-world offshore wind farm data demonstrate that the proposed MultiDimKStepMTL model significantly outperforms state-of-the-art baselines. It achieves the highest predictive accuracy (, a relative improvement over the LSTM-STL baseline) while demonstrating superior robustness against error accumulation across extended forecasting horizons. Furthermore, the shared representation design yields profound computational efficiency, delivering a training speedup and a reduction in parameter complexity compared to isolated models. Most importantly, the multi-dimensional tracing branch translates continuous predictions into actionable diagnostic signatures, explicitly pinpointing spatial nodes and electrical attributes. While the proposed DHEWN demonstrates strong predictive capabilities under current operational conditions, it is imperative to acknowledge the broader complexities of modern power grids. As newly designed wind turbines are increasingly integrated alongside other powerful nonlinear loads in the broader power system, the global amplitude–frequency response becomes highly uncertain. The complex L-C networks, formed by the distributed capacitance of long submarine cables and grid inductive elements, become significantly more unpredictable under the influence of these external nonlinear dynamics. This specific macro-level uncertainty remains insufficiently studied to date; thus, integrating these broader nonlinear grid interactions into the deep learning framework will be the primary subject of our future research.
Author Contributions
Methodology, X.Z. and L.Z.; validation, Q.C.; Formal analysis, Q.W. and N.Z.; Investigation, X.Z., L.Z. and Q.C.; Writing—original draft, X.Z., L.Z. and Q.C.; Writing—review & editing, X.Z., L.Z., J.P. and Y.Z.; Supervision, Q.W. and N.Z. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by China Southern Power Grid Co., Ltd. Science and Technology Project under Grant No. YNKJXM20240262.
Data Availability Statement
To ensure the scientific transparency and reproducibility of this research, the proposed structural verification has been made publicly available at: https://github.com/forlexa/electric_simulink. The original real-world Turkish wind meteorological dataset used to drive the electrical simulations can be accessed via its respective public repository.
Conflicts of Interest
Authors Xin Zhou, Li Zhang, Junzhen Peng and Yongshuai Zhao were employed by Electric Power Institute, Yunnan Power Grid Company Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest. The authors declare that this study received funding from Electric Power Institute, Yunnan Power Grid Company Ltd. The funder had the following involvement with the study: Methodology, validation, Investigation, Writing—original draft, Writing—review & editing.
References
- GWEC. Global Wind Report 2024; Global Wind Energy Council: Brussels, Belgium, 2024. [Google Scholar]
- IRENA. World Energy Transitions Outlook 2024; International Renewable Energy Agency: Abu Dhabi, United Arab Emirates, 2024. [Google Scholar]
- Lakshmanan, P.; Sun, R.; Liang, J. Electrical collection systems for offshore wind farms: A review. CSEE J. Power Energy Syst. 2021, 7, 1078–1092. [Google Scholar] [CrossRef] [Scilit]
- Hou, P.; Zhu, J.; Ma, K.; Yang, G.; Hu, W.; Chen, Z. A review of offshore wind farm layout optimization and electrical system design methods. J. Mod. Power Syst. Clean Energy 2019, 7, 975–986. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Klabunde, C.; Wolter, M. Frequency-Coupled Impedance Modeling and Resonance Analysis of DFIG-Based Offshore Wind Farm with HVDC Connection. IEEE Access 2020, 8, 147880–147894. [Google Scholar] [CrossRef] [Scilit]
- Tang, Z.; Yang, Y.; Blaabjerg, F. Power electronics: The enabling technology for renewable energy integration. CSEE J. Power Energy Syst. 2022, 8, 39–52. [Google Scholar]
- Ji, X.; Xu, H.; Liu, H.; Kong, X. Modeling and Stability Analysis of DFIG-Based Wind Farm Using Harmonic State Space Theory. In 2025 Zhejiang Power Electronics Conference (ZPEC); IEEE: New York, NY, USA, 2025; pp. 232–237. [Google Scholar]
- Huang, H.; Lin, L.; Xu, Q.; He, B.; Zhang, Z.; Ye, Q. Offshore Wind Power System Resonance Stability: Modelling, Analysis, and Methods Comparison. In 2025 10th Asia Conference on Power and Electrical Engineering (ACPEE); IEEE: New York, NY, USA, 2025; pp. 1464–1472. [Google Scholar]
- Huang, X.; Huang, H.; Pan, X.; Xu, Q.; He, B.; Zhang, Z.; Xu, Z. Harmonic Resonance Mode Analysis for Offshore Wind Power System Based on Impedance Gathering. In 2024 IEEE PES 16th Asia-Pacific Power and Energy Engineering Conference (APPEEC); IEEE: New York, NY, USA, 2024; pp. 1–5. [Google Scholar]
- IEEE 519-2022; IEEE Standard for Harmonic Control in Electric Power Systems. IEEE Power and Energy Society: Piscataway, NJ, USA, 2022; pp. 1–31.
- IEC 61000-3-6; Electromagnetic Compatibility (EMC)—Part 3-6: Limits—Assessment of Emission Limits for the Connection of Distorting Installations to MV, HV and EHV Power Systems. IEC: Geneva, Switzerland, 2008.
- Siqueira-de Carvalho, R.; Morales-Paredes, H.K.; Bates, C.; Ausmus, J.; Simões, M.G.; Sen, P.K. Overview of Big Data Analytics in Power Quality Analysis and Assessment. In Proceedings of the 9th Brazilian Technology Symposium (BTSym’23); Springer: Berlin/Heidelberg, Germany, 2024; pp. 3–16. [Google Scholar]
- Ullah, M.; Guan, Y.; Yu, Y.; Chaudhary, S.K.; Vasquez, J.C.; Guerrero, J.M. Dynamic Performance and Power Quality of Large-Scale Wind Power Plants: A Review on Challenges, Evolving Grid Code, and Proposed Solutions. IEEE Open J. Power Electron. 2025, 6, 1148–1173. [Google Scholar] [CrossRef] [Scilit]
- Bracale, A.; Caramia, P.; De Falco, P.; Domagk, M.; Meyer, J. Probabilistic Forecasting of Current Harmonic Distortions in Distribution Systems. In 2023 IEEE PES Innovative Smart Grid Technologies Europe (ISGT EUROPE); IEEE: New York, NY, USA, 2023; pp. 1–5. [Google Scholar]
- Hadi, F.M.A.; Aly, H.H. Harmonics Forecasting of Renewable Energy System Using Hybrid Model Based on LSTM and ANFIS. IEEE Access 2024, 12, 50966–50985. [Google Scholar] [CrossRef] [Scilit]
- Li, G.Y.; Yen, H.J.; Wu, J.W.; Huang, W.Y.; Chang, G.W. A Comparative Study of Harmonic Distortion Assessment for an Offshore Wind Farm System. In 2024 21st International Conference on Harmonics and Quality of Power (ICHQP); IEEE: New York, NY, USA, 2024; pp. 451–456. [Google Scholar]
- Ravi, T.; Srividya, S.; A, P.; Anil, V.; K, S.K.; Jayaprakash, S. Review of Detection and Classification of Power Quality Disturbances Using Machine Learning and Deep Learning Methods. In 2023 Innovations in Power and Advanced Computing Technologies (i-PACT); IEEE: New York, NY, USA, 2023; pp. 1–8. [Google Scholar]
- Elymany, M.M.; Enany, M.A.; Elsonbaty, N.A. Hybrid optimized-ANFIS based MPPT for hybrid microgrid using zebra optimization algorithm and artificial gorilla troops optimizer. Energy Convers. Manag. 2024, 299, 117809. [Google Scholar] [CrossRef] [Scilit]
- Hadi, F.M.A.; Aly, H.H.; Little, T. Harmonics Forecasting of Wind and Solar Hybrid Model Based on Deep Machine Learning. IEEE Access 2023, 11, 100438–100457. [Google Scholar] [CrossRef] [Scilit]
- Hadi, F.M.A.; Aly, H.H.; Little, T. Harmonics Forecasting of Wind and Solar Hybrid Model Driven by DFIG and PMSG Using ANN and ANFIS. IEEE Access 2023, 11, 55413–55424. [Google Scholar] [CrossRef] [Scilit]
- Lin, J.; Tu, M.; Hong, H.; Lu, C.; Song, W. Spatiotemporal Graph Convolutional Neural Network-Based Forecasting-Aided State Estimation Using Synchrophasors. IEEE Internet Things J. 2024, 11, 16171–16183. [Google Scholar] [CrossRef] [Scilit]
- Iqbal, M.A.; Ahn, J.; Kim, S.K. Spatio-Temporal Hybrid Graph-Transformer Model for High-Fidelity Renewable Energy Forecasting. J. Mod. Power Syst. Clean Energy 2026, 1–12. [Google Scholar]
- Hyde, D.; Kadapa, C.; Albustami, A.A.; Taha, A.F. Progress and Perils of PINNs: Perspectives on Applying Physics-Informed Neural Networks to Science and Engineering Problems. Comput. Sci. Eng. 2026, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Coya, Z.; Khoodaruth, A.; Ramenah, H.; Oree, V.; Murdan, A.P.; Bessafi, M. Deep Learning Models in Photovoltaic Power Forecasting: A Review. In 2024 1st International Conference on Smart Energy Systems and Artificial Intelligence; IEEE: New York, NY, USA, 2024; pp. 1–9. [Google Scholar]
- Sezgin, E.; Salor, o. Enhanced Frequency and Harmonic Estimation for Electric Arc Furnace Measurements: A Least Squares Approach to Mitigate Spectral Leakage. IEEE Trans. Ind. Appl. 2025, 62, 2468–2477. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Ma, H.; Xiao, X.; Wang, Y.; Zhang, Y.; Wang, H. Harmonic State Estimation for Distribution Networks Based on Multi-Measurement Data. IEEE Trans. Power Deliv. 2023, 38, 2311–2325. [Google Scholar] [CrossRef] [Scilit]
- Karadeniz, A. Advancing harmonic prediction for offshore wind farms using synthetic data and machine learning. Comput. Electr. Eng. 2025, 127, 110613. [Google Scholar] [CrossRef] [Scilit]
- Yang, S.; Xiao, W.; Zhang, M.; Guo, S.; Zhao, J.; Shen, F. Image Data Augmentation for Deep Learning: A Survey. arXiv 2023, arXiv:2204.08610. [Google Scholar] [CrossRef] [Scilit]
- An, H.; Ma, J. Fast diffusion-driven data augmentation for imbalanced power-system stability classification. Int. J. Electr. Power Energy Syst. 2026, 175, 111559. [Google Scholar] [CrossRef] [Scilit]
- Bengio, Y.; Simard, P.; Frasconi, P. Learning long-term dependencies with gradient descent is difficult. IEEE Trans. Neural Netw. 1994, 5, 157–166. [Google Scholar] [CrossRef] [Scilit]
- Lim, B.; Zohren, S. Time-series forecasting with deep learning: A survey. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci. 2021, 379, 20200209. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Luo, X.; Zhang, D.; Zhu, X. Deep learning based forecasting of photovoltaic power generation by incorporating domain knowledge. Energy 2021, 225, 120240. [Google Scholar] [CrossRef] [Scilit]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. In Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; pp. 6000–6010. [Google Scholar]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting. In Advances in Neural Information Processing Systems; Beygelzimer, A., Dauphin, Y., Liang, P., Vaughan, J.W., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2021. [Google Scholar]
- Skamyin, A.N.; Dobush, V.S.; Shklyarskiy, Y.E.; Vasilkov, O.S. Power system parameters in electric facilities with nonlinear loads. MIAB. Min. Inf. Anal. Bull. 2024, 88–104. [Google Scholar] [CrossRef] [Scilit]
- Hochreiter, S.; Schmidhuber, J. Long Short-Term Memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- IEC 61000-4-30:2025; Electromagnetic Compatibility (EMC)—Part 4-30: Testing and Measurement Techniques—Power Quality Measurement Methods. International Electrotechnical Commission (IEC): Geneva, Switzerland, 2025.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




