Next Article in Journal
A Coordinated Inertia Support Strategy for Wind–PV–Thermal Storage Systems Considering System Inertia Demand
Previous Article in Journal
Techno-Economic Photovoltaic-Battery Energy Storage System Microgrids with Diesel Backup Generator: A Case Study in Industrial Loads in Germany Comparing Load-Following and Cycle-Charging Control
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Line Loss Calculation with Meteorological Dynamic Clustering and Photovoltaic Output Reconstruction

1
State Grid Xingtai Power Supply Company, Xingtai 054001, China
2
State Grid Hebei Electric Power Co., Ltd., Shijiazhuang 050000, China
3
State Grid Shenze Power Supply Company, Shijiazhuang 052560, China
4
State Key Laboratory of Intelligent Power Distribution Equipment and System, Hebei University of Technology, Tianjin 300130, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(24), 6467; https://doi.org/10.3390/en18246467
Submission received: 25 October 2025 / Revised: 30 November 2025 / Accepted: 4 December 2025 / Published: 10 December 2025

Abstract

To solve the problem that traditional line loss calculation methods have errors exceeding 8–12% under complex weather conditions (e.g., typhoons) due to insufficient characterization of meteorological-photovoltaic (PV) coupling effects, this paper proposes a collaborative calculation method integrating dynamic meteorological clustering (based on the entropy weight-sliding window) and PV output reconstruction (via improved limited dynamic time warping, LDTW). First, a multidimensional meteorological weight matrix is constructed to quantify spatiotemporal heterogeneity; then, an improved spectral clustering algorithm is used for weather partitioning; finally, reconstructed PV output curves are incorporated into a voltage-corrected forward-backward sweep method for line loss calculation. Simulation results based on 302-day measured data and the IEEE 33-node system show that the proposed method reduces line loss calculation error to less than 0.15%, which is 6–8 times more accurate than traditional methods, meeting engineering requirements.

1. Introduction

With the in-depth advancement of “dual carbon” goals, the high proportion of photovoltaic (PV) grid integration poses new challenges for the calculation of distribution network line losses [1]. PV power generation has significant intermittent and volatile characteristics, and its output is dynamically affected by meteorological factors, leading to a significant decrease in the calculation accuracy of traditional line loss calculation methods under complex weather conditions [2,3]. Research indicates that under complex weather conditions such as rainfall and high humidity, the error margin in traditional line loss calculations for ultra-high voltage AC transmission lines can reach 8–15%, whereas under clear and dry conditions, it is only 2–3%. For instance, using an UHV line in the Fujian-Zhejiang region, Yang Guangxu et al. [4] validated that traditional methods, failing to adequately account for weather-induced corona losses, exhibited calculation errors rising from 3.5% to 12.8% during rainfall and high humidity periods. This directly resulted in inaccurate line loss assessments and operational decision-making deviations [4]. The essence lies in the fact that the existing line loss calculation models have not effectively characterized the complex dynamic interaction mechanism between meteorological factors, PV output, and power grid operation [5,6].
In meteorological modeling, existing studies predominantly employ clustering analysis to identify weather patterns. Reference [7] developed a PV power forecasting model based on weather clustering, achieving significantly improved accuracy through intelligent optimization decomposition and deep learning-based ensemble prediction. Reference [8] processed operational parameters at the station area and employed a SOM-K-means hybrid clustering approach to identify typical scenarios and time periods for monthly wind power curves, thereby enhancing the accuracy of line loss calculations. Reference [9] utilized SC algorithms to partition distributed power sources into clusters, subsequently applying this framework for PV output forecasting.
Research on distribution network line loss calculation methods primarily focuses on two dimensions: improving traditional power flow calculation methods and introducing data-driven techniques. Reference [10] enhances the accuracy of distribution network line loss calculation by establishing an optimization model that incorporates distributed power source flows. Reference [11] proposed a line loss calculation method based on dynamic three-phase imbalance analysis, combined with the equivalent resistance method to compute line losses, effectively reducing losses in three-phase unbalanced lines. Reference [12] leveraged the parallel computing advantages of GPUs to develop a vector instruction set-based power flow calculation model, significantly accelerating solution efficiency. In the field of probabilistic power flow research, common methods include Monte Carlo simulation [13], point estimation [14], and analytical methods [15]. Reference [16] proposes a data-physical fusion linearized line loss calculation model, resolving convergence and accuracy issues caused by distributed power source grid connection. Reference [17] introduces an improved forward-backward iteration algorithm, converting PV nodes to PQ nodes by injecting compensating currents to achieve efficient power flow calculation in PV distribution grids. Reference [18] further extends the forward-backward iteration algorithm by establishing differentiated processing models for various distributed power source node types.
Against the backdrop of increasingly severe fluctuations in meteorological conditions and PV output, existing methods fail to capture the nonlinear coupling relationship between weather and PV generation, leading to low accuracy under complex weather conditions. Most studies adopt static approaches to characterize uncertainty, lacking a dynamic framework for meteorology-PV-line loss interactions. To address this, this paper proposes a dynamic line loss calculation method driven by synergistic factors: it uses core meteorological factors to construct a dynamic weight matrix, adopts improved spectral clustering for weather classification, and introduces LDTW to reconstruct PV output curves, realizing accurate line loss calculation under dynamic coupling effects. The approach first utilizes core meteorological factors—temperature, humidity, and wind speed—to construct a dynamic weighting matrix by integrating the entropy weight method with a sliding window technique. This quantifies the spatiotemporal variability of meteorological factors. Subsequently, an improved spectral clustering algorithm classifies typical weather patterns, overcoming the limitation of traditional methods in characterizing dynamic meteorological changes. Since PV output curves exhibit obvious temporal sequence characteristics and sudden fluctuations under complex weather conditions (e.g., sudden irradiance changes after rain), the limited dynamic time warping (LDTW) algorithm is particularly suitable for PV output analysis—it can constrain path offset to avoid pathological alignment (a common problem of traditional DTW) and accurately match curves with similar fluctuation patterns, thus it is introduced to reconstruct PV output curves. Second, it employs an improved spectral clustering algorithm based on LDTW to reconstruct PV output curves, precisely capturing sudden changes in PV output under different weather scenarios. Finally, it proposes a voltage-corrected, improved forward-backward load flow algorithm that incorporates the reconstructed PV output curves into line loss calculations. Verification using measured data from photovoltaic power plants and simulations of the IEEE 33-node system demonstrates that this method effectively enhances the accuracy of line loss calculations.

2. Theoretical Foundations

2.1. Clustering Algorithms

Spectral Clustering (SC) is a graph-theoretic clustering method whose core principle involves treating data points as nodes in a graph. It constructs a similarity matrix to characterize data relationships and employs graph partitioning criteria to achieve clustering [19]. Unlike traditional clustering algorithms based on Euclidean distance (such as K-means), spectral clustering can identify clusters of arbitrary shapes, making it particularly suitable for high-dimensional nonlinear data. Its core steps are as follows.
First, the similarity of the dataset is calculated using a Gaussian kernel function (with a scale parameter δ determined adaptively by k-nearest neighbors), and a similarity matrix W is constructed. Next, an angle matrix O is defined, and the normalized Laplacian matrix L* is obtained by combining the unit diagonal matrix A. Then, an eigenvalue decomposition is performed on L*, and the eigenvectors corresponding to the k smallest non-zero eigenvalues are selected and row-normalized to obtain the matrix β. Finally, the row vectors of β are clustered using the K-means algorithm. The calculation formulas are shown in Formulas (1)–(3).
W i j = exp | s i     s j | 2 δ 2 ,   i j 0   , i = j
L * = A 1 / 2 O A 1 / 2
β i j = α i j t = 1 k α i t 2

2.2. Coupling Mechanism Between Meteorological Conditions, PV Power Generation, and Transmission Line Losses

The coupling relationship between PV output and distribution network line losses is dynamically influenced by meteorological factors, with its mechanism decomposed into three physical processes: PV output fluctuations, temperature variations, and power flow distribution adjustments.

2.2.1. Factors Affecting Fluctuations in PV Output

PV power output PPV(t) can be modeled as a function of irradiance G(t), ambient temperature Ta(t), and wind speed V(t):
P PV ( t ) = η A G ( t ) 1 γ T cell ( t ) T ref T cell ( t ) = T a ( t ) + G ( t ) 1000 30 k V ( t )
In Formula (4), Tcell(t) denotes the actual operating temperature of the PV cell, quantifying the heating effect of irradiance and the forced convective cooling effect of wind speed (30 °C serves as the reference temperature difference between the cell and ambient conditions under standard irradiance); PPV(t) represents the PV output power, η denotes the PV conversion efficiency under standard conditions, A is the PV array area, and G(t) is the solar irradiance; γ is the temperature coefficient (range 0.004–0.005 °C−1) and Tref is the reference temperature (taken as 25 °C, the baseline temperature for Standard Test Conditions, STC); Ta(t) is the ambient temperature, V(t) is the wind speed, and k is the wind speed cooling coefficient (range 0.1–0.5 °C·s/m, calibrated from experimental data) [1].

2.2.2. Effect of Temperature Changes on Line Losses

Power line losses primarily consist of conductor resistance losses ΔPloss and transformer iron losses, with conductor resistance being significantly affected by temperature:
R ( T ) = R 20 1 + α ( T 20 ) + β ( T 20 ) 2
Formula (5) applies to copper conductors (the most commonly used conductors in medium-voltage distribution networks). Formula (5) is valid for the temperature range of −40 °C~85 °C, which covers the operating temperature range of medium-voltage distribution network conductors. Conductor temperature Tcond = Ta + ΔT, where ΔT is the temperature rise due to conductor Joule heating (calculated via ΔT = I2r20t/(cm); c is the specific heat capacity of copper and m is conductor mass per unit length). In this study, ΔT is ≤40 °C (based on measured current data), so Tcond is within the valid range of Formula (5). In Formula (5), R20 is the reference resistance at 20 °C, α = 0.00403 °C−1, β = 0.0000006 °C−2. Extreme temperatures (e.g., 40 °C) can increase resistance by 8~10% and line losses by 15~20%.

2.2.3. Power Flow Distribution Adjustment

Fluctuations in PV output cause changes in power flow distribution within distribution networks, necessitating consideration of dynamic power injection in line loss calculations [17]:
Δ P l o s s ( t ) = i = 1 N ( P i ( t ) P P V , i ( t ) ) 2 + Q i 2 ( t ) V i 2 ( t ) R i ( T )
In Formula (6), Pi(t) represents the node injection power, Qi(t) denotes the reactive power, and Vi(t) indicates the node voltage. Key coupling effects include voltage fluctuations and reverse power flow. During sudden drops in PV output, node voltage V(t) may fall by 5~10%, amplifying errors in line loss calculations. At high PV penetration rates, reverse power flows occur on some lines, requiring traditional forward-backward sweep power flow methods to adjust the iteration direction.

3. PV Output-Meteorological Coupled Forward-Backward Line Loss Calculation Model

3.1. Data Preprocessing

3.1.1. Anomaly Data Cleaning

The original dataset was examined, and for instances where data collection gaps were identified, entire batches of date records containing temporal discontinuities were discarded.

3.1.2. Standardized Processing

Normalize valid data to eliminate dimensional differences [20]. Define the output value at time t on day n as Bn,t, with its normalized output formula expressed as:
B * n , t = B n , t μ n σ n
In Formula (7), μn denotes the daily average value; σn denotes the daily standard deviation.
The formula for calculating the daily average value μn is Formula (8):
μ n = 1 T t = 1 T B n , t
The formula for calculating the daily standard deviation σn is Formula (9):
σ n = 1 T t = 1 T ( B n , t μ n ) 2
The matrix B* after data standardization is Formula (10)
B * = B 11 B 12 B 14 B 17 B 21 B 22 B 24 B 27 B n 1 B n 2 B n 1 B n T B n 1 B n 2 B n 1 B n T
The processed data exhibit a mean of 0 and a standard deviation of 1, eliminating differences in magnitude while preserving the curve’s morphological characteristics.

3.2. Meteorological-Photovoltaic Output Clustering Method Based on LDTW

Traditional DTW is prone to pathological alignment, while existing SC methods fail to incorporate meteorological physical characteristics, making it difficult to accurately capture the abrupt changes in PV output under complex weather conditions. To enhance the computational accuracy of meteorological-photovoltaic coupling data, we propose a meteorological-photovoltaic output clustering method based on LDTW: First, a sliding time window constraint mechanism limits path offset ranges, effectively avoiding pathological alignment [21]. Second, a meteorological feature weighting strategy is introduced, comprehensively considering the differential impacts of factors such as temperature, humidity, and wind speed to construct a more physically meaningful similarity metric.
Simultaneously, an improved grey correlation method based on Deng’s approach was employed to optimize the correlation matrix. Leveraging the dynamic evolutionary characteristics of grey systems, this method effectively addressed uncertainties and nonlinear features in PV output data, significantly enhancing SC’s feature extraction capabilities for high-dimensional spatiotemporal data. This grey-constrained distance SC algorithm not only overcomes the high computational complexity of traditional DTW but also more accurately captures the fluctuation patterns of PV output curves under different weather conditions, providing a more reliable foundation for curve reconstruction in subsequent line loss calculations. The distinction between the grey-constrained distance and entropy-weighted similarity is shown in Figure 1.

3.2.1. Dynamic Weight Matrix Construction

(a) Standardized Processing of Meteorological Data
Perform min-max normalization on meteorological parameters such as radiation intensity (I), temperature (T), humidity (H), and wind speed (V):
X n o r m = X X m i n X m a x X m i n ( X { I , T , H , V } )
In Formula (11), Xmin/Xmax represents the daily minimum/maximum values of meteorological parameters (radiance, temperature, humidity, wind speed) [3].
(b) Dynamic Window Partitioning
An adaptive sliding window mechanism is employed, with the window length WL determined by the meteorological abrupt change detection threshold [3]:
W L = T t o t a l 1 + k = 2 n I ( Δ S k > θ )
Δ S k = m = 1 4 ( X k + 1 , m X k , m ) 2
In Formulas (12) and (13), Ttotal denotes the total number of time segments, θ = 0.15 represents the threshold for identifying abrupt weather changes, and ΔSk is the Euclidean distance between adjacent time segments [20].
(c) Entropy Weighting Method Improvement
Dynamic entropy weight calculation with a time decay factor λ = 0.9t:
w j = 1 e j k = 1 m ( 1 e k ) λ
e j = 1 ln n i = 1 n p i j ln p i j
In Formulas (14) and (15), ej denotes the static information entropy of the jth meteorological parameter, and pij represents the proportion of the jth indicator in the ith sample [20].

3.2.2. Improved SC Algorithm

(a) Grey Correlation Matrix Optimization
Building upon traditional spectrum clustering, the Deng method for calculating grey correlation is introduced:
γ i j = 1 T k = 1 T min i , j   Δ i j ( k ) + ρ max i , j   Δ i j ( k ) Δ i j ( k ) + ρ max i , j   Δ i j ( k )
In Formula (16), Δij(k) denotes the absolute difference in the kth feature dimension, and ρ represents the resolution coefficient (set to 0.5) [20].
(b) Dynamic Similarity Matrix Construction
Combining LDTW distance and grey correlation degree, a dual-constraint similarity matrix is constructed:
S i j = e x p ( d L D T W ( P i , P j ) σ 2 ) γ i j
In Formula (17), σ is the adaptive scale parameter, obtained by multiplying the standard deviation of sample similarity by 1.5 using the k-nearest neighbors method [20].

3.2.3. Reconstruction of PV Power Output Curves

Based on the clustering results, an improved LDTW algorithm is proposed to achieve high-precision reconstruction of the output curve [20].
(a) Constrained Path Design
Limit the path offset (r = [T/4]), construct the dynamic programming recurrence relation:
D ( i , j ) = min D ( i 1 , j ) + w d d ( i , j ) D ( i , j 1 ) + w d d ( i , j ) D ( i 1 , j 1 ) + w s d ( i , j )
In Formula (18), wd = 0.6 represents the offset penalty weight, ws = 1.2 represents the matching reward weight.
(b) Dynamic Weighted Reconstruction Method
Perform a spatio-temporal weighted average of output curves under similar weather patterns:
P ^ k ( t ) = i C k w j ( t ) P i ( t ) i C k w j ( t )
(c) Curve Reconstruction
P r e c o n ( t ) = k = 1 K w t k α P k h i s t ( t ) + ( 1 α ) P k c u r r ( t )
In Formula (20), the mixing coefficient α = 0.7, representing the historical-real-time data mixing coefficient, calibrated through experimental studies on output variability under clear/rainy/cloudy weather conditions.

3.3. Voltage-Corrected Improved Feedforward Backward Propagation Method

The core of this paper’s line loss calculation is the voltage-corrected improved forward-backward iteration method, whose calculation process is shown in Figure 2—this flow integrates meteorological clustering, PV output reconstruction, and dynamic resistance correction, ensuring the accuracy of line loss calculation under complex weather conditions. The traditional forward-backward sweep power flow method struggles to adapt to reverse power flow issues in scenarios with high PV penetration due to its fixed iteration direction. Furthermore, it fails to account for the impact of temperature on conductor resistance, leading to significantly amplified errors in line loss calculations under complex weather conditions. We propose a voltage-corrected improved forward-backward sweep power flow method: by incorporating key electrical parameters such as node active power, reactive power, and voltage magnitude, along with operational metrics like active and reactive losses of transmission lines, we construct correlation models between physical quantities. This enables quantitative characterization and feature extraction of the intrinsic patterns in distribution network power flows.
The voltage correction adopts an iterative adjustment strategy: first, calculate the initial node voltage distribution via traditional forward-backward iteration; then, compare the initial voltage with the measured voltage (from the PV station’s SCADA system) to obtain the error; finally, dynamically adjust the iteration coefficient (range: 0.8–1.2) based on the error, and repeat the iteration until the voltage error is less than 0.5% (convergence criterion). This strategy avoids large errors caused by fixed coefficients.
P b D + l L P l , b C = g G P g P
Q b D + l L Q l , b C = g G Q g P
V b 2 2 = V b 1 2 + 2 ( r 12 P l , b 1 C + x 12 Q l , b 1 C ) + ( r 12 2 + x 12 2 ) I 12 2
P l PL = P l , b 1 C 2 + Q l , b 1 C 2 V b 1 2 r 12
Q l PL = P l , b 1 C 2 + Q l , b 1 C 2 V b 2 2 x 12
I 12 2 = P l , b 1 C 2 + Q l , b 1 C 2 V b 1 2
In Formulas (21)–(26), the power balance relationship at node b can be expressed as: PbD and QbD represent the active and reactive power demands of this node, respectively; PlC,b and QlC,b denote the active and reactive power transmitted by transmission line l connected to this node; and PgP and QgP represent the active and reactive power output by generator g connected to this node. For any transmission line in the distribution network, let its two end nodes be numbered b1 and b2. Then, PlC,b1 + QlC,b1 and PlC,b2 + QlC,b2 respectively represent the combined power transmitted through the line between these two nodes. Line power losses include active component PlPL and reactive component QlPL. Node voltage magnitudes are denoted as Vb1 and Vb2. L denotes the set of transmission lines connected to the nodes, and G represents the set of power generation equipment connected to the nodes; r12 + jx12 is the complex impedance of the line; I12 denotes the effective value of the current in the branch b1-b2 [20].
(a) Simplifying the above equation and neglecting (r212 + x212)I212 in Formula (25) yields Formula (27).
V b 2 2 = V b 1 2 + 2 ( r 12 P l , b 1 C + x 12 Q l , b 1 C )
(b) Replace preset parameters with real-time node voltage distribution data to enhance computational efficiency.
(c) Substitute the reconstructed PV output curve into the line loss calculation formula for the solution. The calculation process is illustrated in Figure 2.
For the application of this method in new PV technologies (e.g., perovskite solar cells), relevant simulation references can be referred to [22], which provide a basis for extending the proposed method to perovskite PV systems with different temperature coefficients and output characteristics.

4. Case Study Analysis

4.1. Application of Theoretical Formulas

The core focus of this paper is the short-term dynamic coupling mechanism between “meteorological factors—PV output fluctuations—line loss calculation,” and it does not address long-term equipment degradation factors such as corrosion or insulation failure (such factors require long-term analysis based on equipment lifecycle data and will be explored in future research). To ensure the validity of the data, the measured data have been filtered using station operation and maintenance records, excluding dates with equipment failures (a total of 12 days were removed), ensuring that the PV output fluctuations in the dataset are primarily driven by meteorological factors.

4.1.1. Application Logic of Theoretical Formulas and Key Parameter Mapping

Table 1 clearly illustrates the correspondence between the abstract parameters of the theoretical formula and the specific indicators of the measured data.

4.1.2. Verification of Core Formula Application Effectiveness in Typical Scenarios

Selecting two representative scenarios—13 March (sunny) and 23 July (rainy)—we compared computational outcomes before and after applying the theoretical formula, thereby indirectly demonstrating the theory’s practical utility.
Without applying the dynamic weighting matrix, sunny day clustering accuracy reached only 78%. Rainy day clustering error rate hit 15% due to static humidity weighting. After applying entropy weighting for dynamic weighting, sunny day clustering accuracy improved to 96%, while rainy day error rate decreased to 3%;
Without LDTW reconstruction: Line loss calculation errors at PV output sudden changes during rainy days (e.g., 14:00 post-rain sudden clear skies) reached 0.32%; After LDTW correction, errors decreased to 0.11%.

4.2. Cases Analysis Under Different Weather Conditions

Based on one year of actual operational data from a PV power station in southern China, a high-dimensional dataset encompassing multiple meteorological features—including irradiance, ambient temperature, relative humidity, and wind speed—was constructed using 10 min sampling intervals (Note: The study area is located in a subtropical monsoon climate zone at 22° N latitude, where the annual average number of snowfall days is zero. Consequently, the dataset does not include operational data under snowy conditions.). Analysis of the PV array’s operational characteristics revealed a typical diurnal power output distribution: active generation occurs between 08:00 and 18:00 (average daily effective duration of 10 h), followed by a power dormancy period from 20:00 to 06:00 the next day. Accordingly, a broad-time-window sampling strategy covering 06:00–20:00 was established to encompass potential power fluctuation intervals. To address data collection gaps in the original dataset, a daily-level data packet integrity verification mechanism was implemented. This involved removing entire data packets for days exhibiting temporal discontinuities, ensuring the temporal continuity of input data. Ultimately, a high-dimensional dataset spanning 302 days of PV power plant operations was retained.
Through meteorological-photovoltaic output clustering analysis of the dataset, three typical weather patterns were automatically identified: 151 days of clear weather, 72 days of cloudy weather, and 63 days of rainy weather, 7 sandstorm days, and 9 rainstorm days.
In the interaction between complex meteorological conditions and PV systems, 5 typical weather patterns exhibit distinct mechanisms of action. Under the strong-radiation clear-sky pattern, high solar radiation intensity drives PV output to form a single-peak parabolic curve. The timing characteristics of its power peak and radiation intensity exhibit high synchrony, confirming the decisive influence of light intensity on output. The cloudy disturbance pattern, however, demonstrates significant instability in environmental parameters, corresponding to pronounced intraday power fluctuations in the PV system—markedly increased compared to the clear-sky pattern—revealing the intermittent output nature caused by dynamic cloud shading. Under rainy weather conditions, rapid clearing after summer showers causes solar radiation intensity to surge from near-zero values to peak levels. This abrupt fluctuation induces extreme “sudden shutdown-rapid startup” patterns in PV generation, starkly contrasting with the steady output of sunny days and the sustained fluctuations of cloudy days. This fully demonstrates the unique impact mechanism of short-duration heavy precipitation on PV systems. Under the rainstorm weather pattern, short-term heavy precipitation forms a dense water curtain, the solar radiation intensity drops sharply and maintains a low level, average daily irradiance is only 15~20% of that on sunny days, the photovoltaic output is significantly reduced, the intra-day fluctuation is extremely small, and the curve approximates a gently rising then slowly falling shape. Under the sandstorm weather pattern, the increase in atmospheric aerosol concentration leads to enhanced solar radiation scattering, and the effective irradiance attenuates by about 30~40%. The peak photovoltaic output is between that of sunny days and rainstorm days, the output curve is overall smooth, and the fluctuation amplitude is smaller than that of cloudy days.
Figure 3, Figure 4, Figure 5, Figure 6 and Figure 7 present comparative results of reconstructed PV output curves versus original curves under various typical weather conditions. Sunny: Temperature 15–20 °C, humidity 40–50%, wind speed 2–3 m/s. Cloudy: Radiation fluctuates by 25% during the day, temperature 20–25 °C, humidity 60–70%, wind speed 3–4 m/s. Rainy: Radiation approaches zero, then surges to over 80% post-rain. Temperatures range from 28–32 °C, dropping 3–5 °C after rainfall. Humidity ≥ 90%, falling to 70–80% post-rain. Wind speed 4–5 m/s. Rainstorm: Radiation levels are only 15–20% of those on clear days with fluctuations < 5%. Temperature ranges from 25 to 28 °C, humidity ≥ 95%, and wind speed 6–8 m/s. Sandstorms: Radiation is attenuated by 30–40% due to scattering. Temperature ranges from 18 to 22 °C, humidity 30–40%, and wind speed 5–7 m/s. Compared to the original unmodified curves, the reconstructed curves processed through the meteorological-PV output clustering model demonstrate significantly improved fitting accuracy, fully validating the adaptability and precision of the proposed reconstruction method across diverse meteorological conditions.
Figure 8 compares the output curves of three typical weather conditions after correction. The results demonstrate that the reconstructed sunny-day curve exhibits improved smoothness, the peak error of the cloudy-day curve is significantly reduced, and the fluctuation characteristics under rainy conditions are well preserved. This fully validates the adaptability and accuracy of the proposed reconstruction method under various meteorological conditions.
A verification platform was constructed based on the IEEE 33-node test system, with node 19 designated as the PV access point. Historical operational data for this node includes: single-day generation of 721.542 kWh on 13 March, 626.218 kWh on 23 July, and 343.202 kWh on 11 November.
Quantitative analysis of PV output reconstruction shows that under clear weather, the average RMSE between reconstructed and measured curves is 2.3 kW; under cloudy weather, it is 3.1 kW; and under rainy weather, it is 4.2 kW. This confirms that the reconstruction method can adapt to different weather conditions, and the error increase under rainy weather conditions is due to more severe irradiance fluctuations.
Perform discrete sampling on the reconstructed feature curve. Substitute the obtained data into the improved backward substitution algorithm for computation. Verify the accuracy improvement by comparing results with the standard solution from the baseline algorithm. Key comparison metrics are detailed in Table 2.
The ‘Standard value’ is the line loss calculation result obtained via OpenDSS v9.4.0 (a widely recognized distribution network simulation tool) with full AC power flow simulation, which is used as the ground truth in this study. The OpenDSS model is built based on the actual parameters of the IEEE 33-node system, ensuring the reliability of the standard value.
A comparative analysis between the curve reconstruction method and the average value method reveals that the curve reconstruction method achieves higher computational accuracy. Based on the calculation results from three representative sampling dates—13 March, 23 July, and 11 November—the error margin of the curve reconstruction method consistently remained below 0.15%. In contrast, the average value method exhibited significant fluctuation in error rates (ranging from 0.8% to 6.4%), demonstrating a marked improvement in computational precision.

4.3. Quantitative Error Analysis

To systematically validate the accuracy of the proposed joint methodology—‘meteorological dynamic clustering—PV output reconstruction—voltage correction forward-backward substitution’—for line loss calculation, the 302-day observed dataset from Section 3.2 (comprising 151 clear days, 72 partly cloudy days, 63 rainy days, 7 sandstorm days, and 9 heavy rain days), with OpenDSS full AC power flow simulation results as the reference standard. Quantitative statistical analysis was conducted across three dimensions: overall error, seasonal error, and weather type error.

4.3.1. Fundamental Formula for Error Calculation

The error in line loss calculation centres on the relative deviation between the method-derived value and the standard value. The single-sample error is defined as Formula (28).
δ i = P calc , i P std , i P std , i × 100 %
In Formula (28), δi denotes the line loss calculation error for day i, Pcalc,i represents the line loss value calculated by the proposed method, and Pstd,i denotes the standard line loss value from the OpenDSS simulation.
The 302 single-sample errors δi obtained from Formula (28) were analyzed using the following statistical indicators to aggregate their distribution characteristics: Mean Absolute Error (MAE), Root Mean Square Error (RMSE), Median Error (ME), and 95% Percentile Error (PE). MAE reflects the average level of error across all samples and exhibits low sensitivity to extreme values. RMSE magnifies the impact of extreme errors, thereby better reflecting a method’s robustness to anomalous scenarios such as torrential rainfall or sudden changes in irradiation. ME characterizes the central tendency of errors, thereby mitigating the interference of extreme values. PE represents the upper error limit for the vast majority of operating conditions (95% of samples).
M A E = 1 N i = 1 N δ i R M S E = 1 N i = 1 N δ i M E = δ ( k + 1 ) N = 2 k + 1 δ ( k )   +   δ ( k + 1 ) 2 N = 2 k P E = δ ( 0.95 N )
In Formula (29), N denotes the total sample size, and δ(1)δ(2) ≤ ⋯ ≤ δ(N) represents the sorted error sequence.

4.3.2. Overall Error Statistics

Statistical analysis of line loss calculation errors for the complete 302-day dataset yielded: MAE 0.07%, RMSE 0.12%, ME 0.09% and PE 0.14%.
The overall statistical results demonstrate that the proposed method consistently maintains line loss calculation errors within 0.15%, with MAE of merely 0.07%. This significantly outperforms the conventional averaging method (errors ranging from 0.8% to 6.4%), indicating the method possesses stable, high-precision calculation capabilities in long-term continuous operation scenarios. It effectively mitigates line loss calculation deviations caused by meteorological-photovoltaic coupling effects.

4.4. Experimental Parameter Settings

Line parameters: Conductor type YJV22-10kV-1×300 (Tianjin Fengcable Cable Co., Ltd., Tianjin, China), resistance r = 0.315 Ω/km, reactance x = 0.18 Ω/km (at 20 °C);
Reference Values: Voltage reference Ub = 10 kV, power reference Sb = 10 MVA;
Load Profile: IEEE 33-node standard load curve applied, with peak-time load (10:00–14:00) at 1.2 pu and off-peak load (22:00–06:00) at 0.4 pu, yielding a peak-to-off-peak ratio of 3:1;
PV penetration rate: PV installed capacity 2 MW, feeder maximum load 10 MW, penetration rate 20%;
Standard solution method: OpenDSS V9.0 full AC power flow simulation, convergence criterion set to power error < 0.01 pu.

4.5. Repeatability Verification

Three sets of dates not previously included in the analysis were selected as shown in Table 3, covering different seasons and weather types consistent with the overall sample distribution to ensure comprehensive validation. The results are presented in Table 4.
The results indicate that the computational errors for the three independent date sets were all controlled within the range of 0.09% to 0.14%, fully consistent with the error distribution of the original 302-day sample (MAE = 0.07%, PE = 0.14%). This demonstrates that the proposed method exhibits stable computational accuracy across different independent scenarios, thereby meeting the requirements for research reproducibility.

5. Conclusions

This paper proposes a collaborative computational method integrating dynamic meteorological clustering with PV output curve reconstruction to address calculation errors in line losses caused by meteorological factors and PV output fluctuations. The following conclusions are drawn:
(a) By constructing a dynamic weighting matrix for multidimensional meteorological factors based on the entropy weight method and sliding window mechanism, and employing an improved SC algorithm to classify typical weather types, this approach effectively overcomes the limitations of traditional methods in characterizing spatiotemporal heterogeneity of meteorological data.
(b) By integrating the Local Dynamic Time Warping (LDTW) algorithm for the spatiotemporal reconstruction of PV output curves, a coupled mapping relationship between meteorological weights and PV output fluctuations was established, significantly enhancing the reconstruction accuracy of output curves.
(c) Building upon this foundation, the reconstructed PV output curves were incorporated into an improved forward-backward power flow method based on voltage correction, enabling dynamic calculation of line losses under meteorological-PV coupling effects.
Simulation results demonstrate that this method effectively reduces errors in traditional line loss calculations under extreme weather conditions, with computational accuracy meeting engineering application requirements. However, the diversity of typical load profiles still needs to be expanded to better accommodate the characteristics of different climate zones.
This study still has limitations: (a) it does not consider the impact of PV module aging (e.g., efficiency decay) and equipment failures (e.g., inverter faults) on line loss; (b) the load profile types are limited to the IEEE 33-node standard profile, which needs to be expanded to adapt to different regions. Future work will focus on: (a) integrating equipment lifecycle data to establish a joint line loss calculation model considering both meteorological factors and equipment status; (b) combining machine learning-based irradiance forecasting to realize real-time dynamic line loss calculation for smart distribution networks.

Author Contributions

Conceptualization, T.F.; Methodology, T.F.; Software, H.L.; Validation, D.W.; Formal analysis, D.W.; Investigation, S.Z.; Resources, T.H.; Data curation, H.L.; Writing—original draft, J.H.; Writing—review & editing, J.H.; Visualization, S.Z.; Supervision, T.H.; Project administration, Y.C.; Funding acquisition, Y.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

Authors Tao Feng, Dan Wei, Huibin Li and Tianhua Han were employed by State Grid Xingtai Power Supply Company. Author Jinglin Han was employed by State Grid Hebei Electric Power Co., Ltd. Author Shaobo Zhang was employed by State Grid Shenze Power Supply Company. The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Ge, Y.; Dai, S.; Liang, W.; Li, Y.; Song, D.; Chen, J.; Zhou, X.; Shan, Y. Prediction of Distributed Photovoltaic Output Interval Based on Meteorological Fusion and Deep Learning. Power Syst. Clean Energy 2024, 40, 112–120. [Google Scholar]
  2. He, X.; Chen, Z.; Liu, X.; Zhang, T.; Chen, L. Voltage control strategy for medium-voltage distribution networks with distributed photovoltaic power generation. Electr. Meas. Instrum. 2022, 59, 142–148. [Google Scholar]
  3. Liu, G.; Wang, X.; Li, H.; Zhao, C.; Ling, W.; Ji, X. Interval power flow for power distribution networks considering uncertain wind power injection. Electr. Meas. Instrum. 2022, 59, 126–132. [Google Scholar]
  4. Yang, G.; Lan, S.; Li, Z. Calculation Method for Losses in Ultra-High Voltage AC Transmission Lines Considering Corona Losses Under Different Weather Conditions. Electr. Eng. Technol. 2023, 182–188+191. [Google Scholar] [CrossRef]
  5. Wang, L.; Zhang, J.; Yu, K.; Zhou, Q.; Huang, W.; Wang, Q.; Niu, Y. Calculation Method of Distribution Line Loss Based on Typical Load Curve. Smart Power 2020, 48, 124–130. [Google Scholar]
  6. Wang, Y.; Han, X.; Zhou, X. Calculation of joint extended tidal current for transmission and distribution systems with distributed power sources. Power Syst. Prot. Control 2011, 39, 34–39+44. [Google Scholar]
  7. Wang, R.; Li, Z.; Lu, J. Short-term photovoltaic power prediction based on fusion clustering and BKA-VMD-TCN-BiLSTM. J. Univ. Electron. Sci. Technol. 2025, 54, 592–603. [Google Scholar]
  8. Zhang, S.; Zhang, J.; Li, Z. Short-term photovoltaic power prediction by PKO-KELM based on k-means. J. Eng. Therm. Energy Power 2025, 40, 144–152. [Google Scholar]
  9. Zhao, L.; Yang, B.; Lu, Z.; Yang, Y.; Qi, L.; Liu, S. Ultra-short-term prediction method for distributed photovoltaic clusters based on spectral clustering and AM-LSTM. Electr. Supply 2023, 40, 10–17. [Google Scholar]
  10. Liu, Y.; Liu, J.; Li, X. Research on Data-Driven-Based tine oss Calculation Methofor Distribution Network. Process Autom. Instrum. 2025, 46, 111–115+121. [Google Scholar]
  11. Yang, M.; Liu, Z.; Zhao, L. Transmission Line Loss Control Method Considering Dynamic Three phase Unbalance Degree. Microcomput. Appl. 2024, 40, 174–177. [Google Scholar]
  12. Zhou, C.; Jiang, T. Parallel Calculation Method for Three-phase Power Flow Based on Vector Instruction Set. Power Syst. Technol. 2023, 47, 1151–1158. [Google Scholar]
  13. Cheng, X.; Li, P.; Zhang, G.; Sun, J.; Qiao, J.; Meng, X. Clustering-based theoretical line loss calculation method for low-voltage transformer areas containing a high percentage of wind power distribution networks. Wind Eng. 2025, 49, 235–248. [Google Scholar]
  14. Li, J.; Li, S.; Zhao, W.; Li, J.; Zhang, K.; Jiang, Z. Distribution network line loss analysis method based on improved clustering algorithm and isolated forest algorithm. Sci. Rep. 2024, 14, 19554. [Google Scholar] [CrossRef] [PubMed]
  15. Li, A.; Tian, J.; Zhao, F.; Gao, F. Distribution network current calculation with photovoltaic power. Electr. Meas. Instrum. 2020, 57, 58–63. [Google Scholar]
  16. Meng, Y.; Xu, Y.; Wang, X.; Wang, T.; Li, W. Research on photovoltaic output portfolio prediction model based on similar day selection and PCA-LSTM. J. Sol. Energy 2024, 45, 453–461. [Google Scholar]
  17. Mu, H.; Lian, H.; Liu, J.; Li, Y. Application of Three-Phase Linearized Power Flow and Line Loss Analysis of Distribution Network Driven by Data and Physics Fusion. Electr. Power 2024, 57, 46–56. [Google Scholar]
  18. Chen, H.; Yang, J.; Gao, M.; Zhao, T.; Li, Y. Power Flow Calculation Method for Distribution Network with Distributed Generation Based on Improved Forward and Back Generation. Autom. Instrum. 2021, 36, 6–11. [Google Scholar]
  19. Xie, Y.; Tang, X.; Shen, J.; Ma, S.; Su, Z.; Ren, J. A spatial clustering method for frequency adaptive spectral clustering in power systems. J. Power Syst. Its Autom. 2025, 37, 31–37. [Google Scholar]
  20. Qiao, H.; Han, J.; Li, Z.; Jiang, Y.; Han, T.; Feng, T. An accurate calculation method of line loss based on reconstructing a photovoltaic output curve by daily cumulative power generation. Power Syst. Prot. Control 2024, 52, 161–168. [Google Scholar]
  21. Hou, X.; Wang, S.; Su, Y.; Cheng, Y.; Chen, W.; Chen, F.; Wu, Z.; Huang, H.; He, Y.; Yan, W. Probabilistic analysis of daily theoretical line loss rate in low-voltage distribution networks. J. Chongqing Univ. 2025, 48, 27–37. [Google Scholar]
  22. Spampinato, C.; Valastro, S.; Calogero, G.; Smecca, E.; Mannino, G.; Arena, V.; Balestrini, R.; Sillo, F.; Ciná, L.; La Magna, A.; et al. Improved radicchio seedling growth under CsPbI3 perovskite rooftop in a laboratory-scale greenhouse for Agrivoltaics application. Nat. Commun. 2025, 16, 2190. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The distinction between the grey-constrained distance and entropy-weighted similarity.
Figure 1. The distinction between the grey-constrained distance and entropy-weighted similarity.
Energies 18 06467 g001
Figure 2. Calculation flowchart.
Figure 2. Calculation flowchart.
Energies 18 06467 g002
Figure 3. Comparison curve of PV output on a sunny day.
Figure 3. Comparison curve of PV output on a sunny day.
Energies 18 06467 g003
Figure 4. Comparison curve of PV output on a cloudy day.
Figure 4. Comparison curve of PV output on a cloudy day.
Energies 18 06467 g004
Figure 5. Comparison curve of PV output on rainy days.
Figure 5. Comparison curve of PV output on rainy days.
Energies 18 06467 g005
Figure 6. Comparison curve of PV output on rainstorm days.
Figure 6. Comparison curve of PV output on rainstorm days.
Energies 18 06467 g006
Figure 7. Comparison curve of PV output on sandstorm days.
Figure 7. Comparison curve of PV output on sandstorm days.
Energies 18 06467 g007
Figure 8. Comparison curve of photovoltaic output under different weather conditions.
Figure 8. Comparison curve of photovoltaic output under different weather conditions.
Energies 18 06467 g008
Table 1. Comparison of formula parameters with actual measurement data.
Table 1. Comparison of formula parameters with actual measurement data.
Theoretical
Formula
(Section 2)
Core
Parameters
Data
Source
(Section 3)
Application
Scenarios
Entropy
Weighting
Method
Temperature T
Humidity H
Wind speed V
March 13 (Sunny) 10-minutely meteorological monitoring data (144 points total)Weighting Allocation for Meteorological Clustering
LDTW Curve
Reconstruction
Photovoltaic Power Output Sequence PPV(t)Actual measured active power of the inverter for the day (60 points total)Repair of abrupt changes in the force curve
Improved
Forward-Backward Substitution
Node voltage Vb
Branch resistance R
IEEE 33 Node System Measured Voltage Data (Node 19 is the PV Access Point)Voltage Deviation Correction in Line Loss Calculation
Table 2. Line loss results.
Table 2. Line loss results.
DateAverage Method (kW)Curve Reconstruction Method (kW)Standard Value (kW)
3.1317.05716.02416.024
7.2318.09518.21418.241
11.1115.04715.43215.433
Table 3. Date of repeatability verification.
Table 3. Date of repeatability verification.
DateSeasonWeatherCore Characteristics (Meteorological—Photovoltaic)
2.10WinterSunnyLow temperature (5 °C), low irradiance (daily average 320 W/m2), stable output
6.15SummerCloudyHigh temperature (32 °C), fluctuating irradiance (intraday variation 25%), fluctuating output
10.8AutumnRainyModerate temperature (18 °C), abrupt irradiance fluctuations (80% increase post-rain)
Table 4. Repeatability verification results.
Table 4. Repeatability verification results.
DateCalculated
Line Loss (kW)
OpenDSS Standard Value (kW)Error (%)
2.1014.82614.8400.09
6.1517.93217.9550.13
10.816.51816.5410.14
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.

Share and Cite

MDPI and ACS Style

Feng, T.; Wei, D.; Li, H.; Han, J.; Zhang, S.; Han, T.; Chai, Y. Line Loss Calculation with Meteorological Dynamic Clustering and Photovoltaic Output Reconstruction. Energies 2025, 18, 6467. https://doi.org/10.3390/en18246467

AMA Style

Feng T, Wei D, Li H, Han J, Zhang S, Han T, Chai Y. Line Loss Calculation with Meteorological Dynamic Clustering and Photovoltaic Output Reconstruction. Energies. 2025; 18(24):6467. https://doi.org/10.3390/en18246467

Chicago/Turabian Style

Feng, Tao, Dan Wei, Huibin Li, Jinglin Han, Shaobo Zhang, Tianhua Han, and Yuanyuan Chai. 2025. "Line Loss Calculation with Meteorological Dynamic Clustering and Photovoltaic Output Reconstruction" Energies 18, no. 24: 6467. https://doi.org/10.3390/en18246467

APA Style

Feng, T., Wei, D., Li, H., Han, J., Zhang, S., Han, T., & Chai, Y. (2025). Line Loss Calculation with Meteorological Dynamic Clustering and Photovoltaic Output Reconstruction. Energies, 18(24), 6467. https://doi.org/10.3390/en18246467

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