Next Article in Journal
Comparison of Eddy Current Loss Calculation Techniques for Axial Flux Motors with Printed Circuit Board Windings
Previous Article in Journal
Study on the Influence of Grounding Resistance on Cable Fault Overvoltage
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fast and Interpretable Probabilistic Solar Power Forecasting via a Multi-Observation Non-Homogeneous Hidden Markov Model

1
School of Electrical and Information Engineering, Tianjin University, Tianjin 300072, China
2
Power China Northwest Engineering Corporation Limited, Xi’an 710065, China
*
Author to whom correspondence should be addressed.
Energies 2025, 18(10), 2602; https://doi.org/10.3390/en18102602
Submission received: 16 April 2025 / Revised: 7 May 2025 / Accepted: 15 May 2025 / Published: 17 May 2025
(This article belongs to the Section A2: Solar Energy and Photovoltaic Systems)

Abstract

:
The increasing complexity and uncertainty associated with high renewable energy penetration require forecasting methods that provide more comprehensive information for risk analysis and energy management. This paper proposes a novel probabilistic forecasting model for solar power generation based on a non-homogeneous multi-observation Hidden Markov Model (HMM). The model is purely data-driven, free from restrictive assumptions, and features a lightweight structure that enables fast updates and transparent reasoning—offering a practical alternative to computationally intensive neural network approaches. The proposed framework is first formalized through an extension of the classical HMM and the derivation of its core inference procedures. A method for estimating the probability density distribution of solar power output is introduced, from which point forecasts are extracted. Thirteen model variants with different observation-dependency structures are constructed and evaluated using real PV operational data. Experimental results validate the model’s effectiveness in generating both prediction intervals and point forecasts, while also highlighting the influence of observation correlation on forecasting performance. The proposed approach demonstrates strong potential for real-time solar power forecasting in modern power systems, particularly where speed, adaptability, and interpretability are critical.

1. Introduction

The remarkable advantages of photovoltaic (PV) systems—such as flexible deployment, renewability, high reliability, and ongoing cost reductions—have rendered them increasingly competitive compared to other power generation methods. This trend has led to explosive growth in global PV installed capacity, underscoring the critical role of solar PV in transforming the worldwide energy sector. In 2024, global photovoltaic (PV) power generation surpassed 2000 TWh, marking a 30% increase compared to the previous year and accounting for approximately 7% of the world’s total electricity production. China played a pivotal role in this growth, contributing 41% of the global solar electricity output and achieving a 44% year-over-year increase in its solar generation [1,2]. Despite this rapid expansion, however, the security of the electricity supply and power dispatch face escalating challenges under high PV penetration scenarios.
Effective integration of photovoltaic (PV) generation into the power grid requires advanced scheduling and control strategies to ensure the safety, stability, and reliability of grid operations. In theory, the solar irradiance at any given location and time can be precisely determined based on astronomical models that account for the Earth’s position relative to the Sun. Using established physical and empirical conversion formulas, the corresponding PV power output can then be calculated. However, in real-world applications, the prediction of solar irradiance is subject to significant uncertainty due to the inherently chaotic and non-deterministic behavior of atmospheric conditions. Transient weather phenomena—such as cloud movement, aerosol concentration, and humidity variations—introduce rapid fluctuations that are difficult to capture accurately with deterministic models. Moreover, key meteorological factors such as ambient temperature, wind speed, and humidity also exert considerable influence on PV conversion efficiency and overall system performance [3,4,5]. These uncertainties, coupled with the intrinsic intermittency and variability of solar energy, pose substantial challenges to grid stability and hinder the seamless integration of high-penetration PV systems. To address these issues, the development of reliable and accurate PV forecasting techniques has become a focal point of research. An increasing number of studies by researchers, grid operators, and electricity market participants have sought to improve prediction accuracy across various time horizons, recognizing that precise forecasting is essential for real-time dispatch, reserve allocation, and market bidding strategies [6,7,8].
Depending on the specific requirements of end-users, photovoltaic (PV) power forecasting is typically categorized based on the forecasting time horizon. The most common classifications include day-ahead forecasting (short-term), intra-day forecasting (ultra-short-term), and medium- to long-term forecasting, each serving distinct operational and planning purposes within the power system [9]. For instance, day-ahead forecasts are essential for unit commitment and market bidding, while intra-day forecasts support real-time dispatch and reserve adjustments. Medium- and long-term forecasts are often used for capacity planning and investment decision-making. In response to these diverse needs, the past decade has witnessed a surge in research efforts aimed at developing advanced forecasting techniques tailored for PV systems [10,11]. These methods span a wide spectrum—from physical models based on solar geometry and numerical weather prediction (NWP) data, to statistical and machine learning approaches that exploit historical trends and real-time measurements. Despite this progress, the majority of existing studies have centered on generating deterministic, or point, forecasts that yield a single-valued estimate of future PV output. These point forecasts are typically optimized to minimize the error between predicted and observed values, and are widely used due to their simplicity and ease of interpretation. However, due to the inherent variability and uncertainty of solar resources, point forecasts are inevitably subject to deviations from actual observations. As a result, they provide limited insight into the range and likelihood of possible outcomes. For grid operators, energy traders, and other stakeholders operating in uncertainty-sensitive environments, such limited information is often insufficient for robust decision-making. This shortfall has motivated a growing interest in probabilistic forecasting methods, which offer richer information content by quantifying the uncertainty associated with future PV generation [12].
Probabilistic forecasting is a theoretical method that can quantify uncertainty in a stochastic process, which results can be issued in form of probability distributions, quantiles, or intervals, giving comprehensive information about the object [13,14,15]. In recent years, probabilistic forecasting methods have played an increasingly important role in the optimal design and scheduling of integrated energy systems, where decisions must be made under uncertainty arising from renewable power generation, load fluctuations, and market dynamics [16,17,18,19]. Additionally, it can also be summarized into point forecasts by the expectations, mode, or other analytical methods mentioned in related literature [20,21,22,23]. Some scholars obtain the probabilistic forecasting results by fitting the probability density distribution of forecast errors based on the historical data, while others directly obtain the distribution through statistical analysis methods such as bootstrapping. Although these proposed models proved effective, there are still some limitations. They are either too complex to apply in practice or based on assumptions that are difficult to verify in the application.
This paper proposes a novel probabilistic forecasting model (PFM) for solar power generation, built upon the Hidden Markov Model (HMM) framework, which falls under the category of purely statistical methods. Traditional HMMs rely on a small set of non-restrictive assumptions to describe the transformation relationships between latent states and observations, requiring only historical operational data of the target system. In the construction of the proposed PFM, solar power outputs and their associated meteorological variables are discretized into multiple intensity levels, which are mapped to the state and observation spaces of the HMM. To better capture real-world complexities, including system nonstationary and observation dependencies, the classical HMM is further extended into a family of non-homogeneous, multi-observation models with varying degrees of temporal and observational correlation. The proposed method offers a lightweight, computationally efficient, and easily interpretable framework that enables rapid updates and transparent probabilistic reasoning—making it particularly suitable for real-time applications and deployment in practical energy systems.
The paper is further organized as follows. In the next section, the basic concepts of HMM, derivation of extended HMMs, adopted methodology, and some practical result evaluation criteria are introduced. Section 3 describes the probability estimation procedure. Then, the comparative analysis of proposed extended HMMs is given in Section 4. Finally, the conclusions are presented in Section 5.

2. Theoretical Framework

In this section, the modeling process of the proposed method is introduced. In light of being a relatively new application in the field of solar power forecasting, some basic theories about the hidden Markov process will be described.

2.1. Hidden Markov Model

The Hidden Markov Model (HMM) is a statistical analysis model that describes a double stochastic process, including the hidden state transition process (Markov chain) and the observation process produced by specific states. Figure 1 shows the Hidden Markov process.
Let Q and V denote the state and observation spaces, which can be expressed as follows:
Q = q 1 , q 2 , , q N V = v 1 , v 2 , , v M
where N and M are the numbers of all possible states and observations. The HMM can be described as follows:
λ = A , B , π
where A denotes the state transition probability matrix, which can be described as follows:
A = a i j N × N
where aij represents the probability of transitioning to state qj at time t + 1 when in the state qi at time t, which can be expressed as follows:
a i j = P ( s t + 1 = q j | s t = q i ) , i = j = 1 , 2 , , N
B denotes the observation probability matrix:
B = [ b i ( k ) ] N × M
where bi(k) represents the probability of generating observation vk in state qi at time t, which can be expressed as follows:
b i ( k ) = P ( o t = v k | s t = q i ) , i = 1 , 2 , , N ; k = 1 , 2 , , M
π is the initial state probability vector:
π = [ π i ] N
where πi is the probability of being in the state i, which can be expressed as follows:
π i = P ( s t = q i ) , i = 1 , 2 , , N
HMM provides solutions to the following three basic problems. First, given the observation sequence O and the model λ, how to calculate the probability P(O|λ), namely the evaluation problem. Second, the learning problem is how to estimate the model parameters through the given O to maximize the probability P(O|λ). The last, given the observation sequence O and the model λ, is how to find the most likely hidden state S, namely the decoding problem.
The backward-forward algorithm is used to solve the evaluation problem, which also plays a core role in the approximation algorithm for the decoding problem. The learning problem can be solved by the maximum likelihood estimation (MLE) and the Baum–Welch algorithm. The approximation algorithm and the Viterbi algorithm can be used to solve the decoding problem. More details on applications of these algorithms in HMM can be found in the articles of Rabiner et al.

2.2. Multi-Observation Non-Homogeneous Hidden Markov Model

In this subsection, the traditional HMM is expanded on its two basic assumptions: first is the homogeneous Markov assumption, which means the state at any time is only related to the previous state and has nothing to do with the states and observations at other times. The homogeneous Markov assumption can be expressed as follows:
P s t | s t 1 , o t 1 , s t 2 , o t 2 , s 1 , o 1 = P s t | s t 1
Second is the observation independence assumption, which assumes that the observation at any time only depends on the state of the Markov chain at the same time, and has nothing to do with other observations and states. The observation independence assumption can be expressed as follows:
P o t + 1 | s T , o T , , s t , o t , , s 1 , o 1 = P o t + 1 | s t + 1
By analogy with the definition of Markov chain, traditional Markov chains can be extended to τ-order memory Markov chains, which means the conditional probability distribution of the future state depends on the past τ states, i.e.,
P s t + 1 | s t , o t , s t 1 , o t 1 , s 1 , o 1 = P s t + 1 | s t , s t 1 , , s t τ
Assuming that the observation at any moment depends not only on the hidden state at that moment but also on the previous observations or even the previous state, which can be described as follows:
P o t + 1 | s T , o T , , s t , o t , , s 1 , o 1 = P o t + 1 | s t + 1 , s t , o t , , s t n , o t m
where n and m denote the orders of dependence on states and observations.
In practice, it is possible for each state to produce two or more observations. The introduction of multiple observations has the potential to improve the description accuracy. The multiple observation spaces and sequences can be described as follows:
V ( d ) = v 1 ( d ) , v 2 ( d ) , , v M ( d ) O ( d ) = o 1 ( d ) , o 2 ( d ) , , o T ( d )
where d is the number of the observation type, which is a positive integer.
Figure 2 intuitively illustrates the interaction between the extended state and observation dependencies. The upper part shows the hidden state sequence with τ-order memory, while the lower part highlights the corresponding multi-type observation sequences, each incorporating up to m historical observations. This diagram clearly represents how both past states and observations jointly influence the current output, emphasizing the extended temporal and multimodal structure of the proposed HMM.

2.3. Model Parameter Estimation

Model parameter estimation is essentially an HMM learning problem, which is usually solved by the MLE or Baum–Welch algorithm. Given the natural time scale characteristics of the solar power generation series, the MLE is used to estimate the parameters. For the traditional HMM, the estimation of the transition probability and observation probability can be obtained as follows:
a ^ i j = n i j j = 1 N n i j , i = j = 1 , 2 , , N b ^ i ( k ) = n i k k = 1 M n i k , k = 1 , 2 , , M
where nij refers to the number of transitions from state i to state j in the training data; nik represents the number of times observation symbol k is generated from state i in the training data.
The extended HMMs, denoted by τ × n × m-MOHMM, can be estimated by
a ^ I ( τ ) j = n I ( τ ) j j = 1 N n I ( τ ) j , I ( τ ) = i 1 , i 2 , , i τ , j = 1 , 2 , , N b ^ I ( n ) W ( m ) ( d ) ( k ) = n I ( n ) W ( m ) k ( d ) k = 1 M n I ( n ) W ( m ) k ( d ) , W ( m ) = w 1 , w 2 , , w m ,   k = 1 , 2 , , M
where I and W are the sequences of past state and observation; a ^ I ( τ ) j refers to the estimated transition probability from a τ-length historical hidden state sequence I ( τ ) to the current state j; n I ( τ ) j is the number of times that the sequence I ( τ ) is followed by state j in the training data; b ^ I ( n ) W ( m ) ( d ) ( k ) refers to the estimated emission probability of observing symbol k in observation d, conditioned on: I ( n ) a n-length historical state sequence i 1 , i 2 , , i n ; W ( m ) an m-length historical observation sequence w 1 , w 2 , , w m . n I ( n ) W ( m ) k ( d ) refers to the number of occurrences of symbol k (in observation d) associated with history ( I ( n ) , W ( m ) ); M is the number of discrete observation symbols per modality.

2.4. Decoding Problem

The decoding or forecast problem is that given the observation sequences, calculating the most likely corresponding state sequence. As mentioned in Section 2.1, the approximation algorithm and the Viterbi algorithm are two effective solutions, which are described in detail in the literature by Rabiner et al. [24,25,26]. In this section, the forward-backward algorithm for the decoding process of the τ × n × m-MOHMM is proposed.
Given the model λ and observation sequences O(d), the forward and backward probabilities can be expressed, respectively, as follows:
α t i τ 1 i 1 j = P o 1 ( d ) o t ( d ) , s t ( τ 1 ) = q i τ 1 , , s t 1 = q i 1 , s t = q j   |   λ β t i τ 1 i 1 j = P o t + 1 ( d ) o T ( d ) , s t ( τ 1 ) = q i τ 1 , , s t 1 = q i 1 , s t = q j   |   λ
And it can be calculated iteratively according to the following steps. First of all, the initial values need to be calculated:
α τ i τ 1 i 1 j = π i 1 z = 1 d b i τ 1 ( z ) o 1 ( z ) a i τ 1 i 1 z = 1 d b i n i 1 o τ m ( z ) o τ 2 ( z ) ( z ) o τ 1 ( z ) a i τ 1 i 1 j z = 1 d b i n 1 i 1 j o τ m ( z ) o τ 1 ( z ) ( z ) o τ ( z ) β T i 1 i τ 1 j = 1
Then, the forward-backward probability can be obtained by the following recursion formula:
α t + 1 i τ 2 i 1 j k = i τ 1 = 1 N α t i τ 1 i 1 j a i τ 1 i 1 j k z = 1 d b i n 2 i 1 j k o t ( m 1 ) ( z ) o t ( z ) ( z ) o t + 1 ( z ) , t = τ , τ 1 , , T 1 β t i τ 1 i 1 j = k = 1 N a i τ 1 i 1 j k z = 1 d b i n 2 i 1 j k o t ( m 1 ) ( z ) o t ( z ) ( z ) o t + 1 ( z ) β t + 1 i τ 2 i 1 j k , t = T 1 , , τ 1 , τ
where α t + 1 i τ 2 i 1 j k is the forward probability of the joint probability of observing the first t + 1 observation vectors and ending in the state sequence i τ 2 i 1 j k at time t + 1; β t i τ 1 i 1 j is the backward probability: the probability of future observations (from t + 1 to T) given the current state sequence i τ 1 i 1 j at time t; a i τ 1 i 1 j k denotes the transition probability from the past τ-length state sequence i τ 1 i 1 j to next state k; b i n 2 i 1 j k o t ( m 1 ) ( z ) o t ( z ) ( z ) is the emission (observation) probability function for observation z, conditioned on the history of hidden states and past observations; o t ( z ) is the observed state from the z-th observation at time t.
Then, the probability of being in state qi at time t can be calculated as follows:
γ t j = i τ 1 = 1 N i 2 = 1 N i 1 = 1 N α t i τ 1 i 1 j β t i τ 1 i 1 j P O   |   λ
which gives the probability distribution of the state at time t. The probability of the O(d) can be calculated as follows:
P O | λ = i τ 1 = 1 N i 2 = 1 N i 1 = 1 N j = 1 N α t i τ 1 i 1 j β t i τ 1 i 1 j
And the most likely state at time t can be obtained as follows:
i t * = arg max 1 i N γ t i , t = τ , τ + 1 , , T

2.5. Power Predictor Modeling

During the actual operation, the power generation sequence is composed of power with a continuous and equispaced interval Δt, and so are the meteorological variables in NWP (maybe in a different interval). In this context, the power generation can be regarded as a hidden Markov process, and the meteorological parameters are the multiple observations. Then, the training and prediction functions of the prediction model can be completed by solving the learning and decoding problem of the HMM.
The power generation and meteorology sequences need to be discretized by defining several finite sets of values to formulate the prediction model. The state space is obtained by classifying the power generation level of the photovoltaic power station. For a specific PV station or distributed PV site, the range of corresponding stat space can be defined as [0, Pn], where Pn denotes the nominal power. Then, the set is obtained by θ, which classifies the power generation by the percentage interval of θ × Pn.
Similarly, let Rn refer to the maximum value of the d-th observation; the range of the corresponding observation space is [0, Rn], and the percentage interval is μ × Rn. Note that both θ and μ are defined as fractional values in the range [0, 1], representing the percentage intervals of the total range. The values of θ and μ are determined based on the input data resolution, signal variability, and the available training data volume. Finer discretisation increases the state-observation space dimensionality and requires significantly more data to avoid overfitting. Conversely, overly coarse discretisation can lead to information loss and reduced prediction accuracy. In this study, θ = 0.1 and μ = 0.1 are selected to achieve a practical balance between granularity and statistical robustness. The state and observation spaces can be described as follows:
Q = 0 , q 2 , , q N 1 , P n V = 0 , v 2 , , v M 1 , R n
where the number of discrete state levels N and observation levels M can be computed as N = 1/θ + 1 and M = 1/μ + 1, respectively.

3. Probability Distribution Estimation

The research in this paper is based on a dataset, which is collected from a real-world grid-connected photovoltaic power plant located in a typical mid-latitude region in East Asia. It spans from 1 January 2020 to 31 December 2021, with a temporal resolution of 15 min, including the measured photovoltaic power generation and the corresponding numerical weather forecast (NWP). Preprocessing involved aligning timestamps, linear interpolation for missing values shorter than 1 h, discarding longer gaps, and smoothing outliers detected using a 3σ threshold. Figure 3 shows that the short-wave radiation has the highest correlation with PV power generation, followed by the latent heat flux with a coefficient value of 0.73. In light of this, these two parameters are selected as observations in the proposed extended HMMs.
The proposed probabilistic forecast models allow for the direct obtaining of the probability estimate (i.e., the state transition probability and observation probability) based on the past real solar power data. For example, Figure 3 shows the diagram of the state transition probability and observation probability of the PFM based on the traditional HMM with two observations. The state transition probability diagram describes the probability of s(t) at time t transitioning to s(t + 1) at time t + 1. It can be seen that the probability of transition between adjacent states is relatively large; only a few states with large spans have mutual transitions with a low probability, which is consistent with the practical situation.
Figure 4 illustrates the estimated transition and observation probability distributions derived from the proposed extended HMM. Figure 4a shows the transition probability matrix, which captures the likelihood of moving from s(t) to s(t + 1). Figure 4b,c shows the observation probability matrices for two types of observed variables (e.g., solar irradiance and latent heat flux). It can be observed that the transition probabilities are concentrated along the diagonal of the matrix and gradually decay inward from both sides of the diagonal, indicating that the stepwise variation in output data aligns with a continuous-time physical process approximation. The observation probability diagram describes the probability of the state being s(t) when observation is o(t) at time t. It is worth noting that the observation probability is more dispersed compared to the transition probability. In other words, at a certain moment, a state corresponds to a larger number of observations at a higher probability level.
After obtaining the transition and observation probability matrices, the state probability distribution at each time step can be derived by solving the decoding problem. Utilizing the probability matrices shown in Figure 4 along with the NWP data, the probabilistic distribution of PV power generation is estimated for each time step over the next three days, with a temporal resolution of 15 min. Furthermore, the resulting probability distributions can serve as the basis for constructing both point forecasts and interval predictions, thereby enhancing the robustness and flexibility of the framework. For the point predictor, it can be obtained by the mean:
s ( t ) M e a n = i = 1 N s i γ t ( i )
or mode
s ( t ) M o d e = s j : max i = 1 , 2 , , N γ t ( i ) = γ t ( j )
Given a quantile parameter α, the PIs can be obtained by the following:
s ( t ) α = s j : i = 1 j γ t ( i ) α i = 1 j 1 γ t ( i ) < α , 0 < α < 1
Figure 5 presents a comprehensive illustration of how point forecasts and probabilistic forecasts are derived from the extended Hidden Markov Model (HMM). Figure 5a shows the predicted PV power output over a 3-day period, with point forecasts in black, measured values in red, and shaded prediction intervals (PIs) at multiple confidence levels. The forecasted power output closely follows the actual measurements, and the majority of true values fall within the shaded prediction intervals, especially around peak hours, indicating good calibration of the forecast uncertainty. Figure 5b is the top-right subplot, which depicts the posterior distribution of hidden states over time, illustrating how the model captures uncertainty in the underlying regime. The state posterior distributions are temporally adaptive—the model assigns higher confidence to certain states during stable periods (e.g., early morning and evening), while distributing probability more broadly during midday when solar variability increases. Figure 5c is the zoomed-in panel (left), which magnifies a selected time window, clearly showing the structure and width of the prediction intervals around the forecast curve. Together, these subplots demonstrate how the model quantifies uncertainty at both the output and hidden state levels, thereby supporting both deterministic forecasting and probabilistic decision-making.

4. Model Analysis

In this section, the performance of the models that are based on Markov chains of different orders and the degree of correlation with the observation information (i.e., the parameters τ, n, and m in the extended HMM) are analyzed in detail. Model evaluations are performed using cross-validation over a two-year dataset, covering diverse seasonal and meteorological conditions. This effectively tests the model’s robustness across different operational scenarios. Table 1 summarizes the structural configurations of the proposed models used for performance evaluation in the extended HMM framework. Each column represents a specific model, characterized by four key parameters. The table illustrates how individual models differ in complexity and temporal correlation structure. For example, Model 1 is the simplest configuration, with a single observation type and first-order Markov assumptions, corresponding to a traditional first-order HMM. In contrast, Model 13 is among the most complex, incorporating two observation types and second-order dependencies across all parameters. By systematically varying these parameters across the models, the study enables a comprehensive analysis of how memory depth and observation coupling influence forecasting performance in the extended HMM framework.
The remaining probabilistic forecasting models were constructed by relaxing the two aforementioned assumptions. This section conducts a series of crossover experiments for each model following the steps below. First, three days of data are randomly selected as the test set, while the remaining data are used for model parameter estimation. The trained model is then employed to generate point forecasts and prediction intervals. Subsequently, the evaluation metrics are computed and recorded. This procedure is repeated until a total of 1000 iterations is completed. It is observed that as the number of iterations approaches 1000, the distributions of the evaluation metrics converge and exhibit stability. The statistical results of the PIs and point forecast metrics across all models are presented in Figure 6 and Figure 7, respectively.
For point forecast results, the normalized root mean square error (NRMSE) is used as the metric. NRMSE provides a scale-independent measure of prediction deviation by normalizing RMSE against the data range, making it suitable for comparing models across different magnitudes. As shown in Figure 6, which presents a statistical distribution (via violin plots) of the NRMSE values across 13 MOHMM variants, Model 4 and Model 9 exhibit lower and more stable errors.
For the PIs, prediction interval coverage probability (PICP) and Winkler score, respectively, characterize the performance of the model in terms of reliability and sharpness. PICP (Prediction Interval Coverage Probability) measures the proportion of true values falling within a given prediction interval (e.g., 90%). Winkler Score combines both the width of prediction intervals and penalties for coverage misses, offering a balanced measure of sharpness and reliability. It can be seen in Figure 7 that, similar to point prediction, models 4, 9, and 10 also show good performance in the PIs, while models 6, 7, 12, and 13 have the worst. A slight difference is that models 9 and 10 have better scores than model 4 in both reliability and sharpness of the PIs. This indicates that considering the influence of past observation information and state on the current observation can effectively improve the prediction performance of the model. However, consideration of excess information from past observations can lead to a significant reduction in model performance, as presented by models 6, 7, 12, and 13.
After identifying the best-performing MOHMM configuration (model 9, d = 2, τ = 2, n = 1, m = 11), we further evaluated its performance against several widely used probabilistic forecasting models, namely quantile regression forests (QRF), Bayesian neural networks (BNN), and LightGBM with quantile objective (LightGBM-QR). These models were selected due to their proven effectiveness in time series regression and uncertainty quantification. All baseline models are trained using the same input features and training/testing protocol as the proposed method.
The results are summarized in Table 2. As shown, the proposed MOHMM achieves the best overall performance in probabilistic forecasting. It obtains the lowest Winkler score (0.109), indicating sharper and more calibrated prediction intervals, and achieves the highest PICP (91.2%), suggesting strong reliability in uncertainty quantification. Its RMSE is comparable to the best-performing method (LightGBM-QR), but with significantly higher interpretability.
QRF offers reasonably good interval coverage and low RMSE but lacks a mechanism to model temporal dependencies or latent state transitions, which are critical in sequential energy forecasting tasks. BNN is theoretically powerful but suffers from training instability, high computational cost, and low interpretability, making it less suitable for real-time or embedded applications. LightGBM-QR delivers high accuracy and fast training, but like QRF, it treats each prediction independently and does not offer insight into temporal regime shifts or underlying stochastic patterns. In contrast, MOHMM provides a transparent probabilistic model that not only captures the predictive distribution effectively but also reveals the evolving internal structure of power generation dynamics via its hidden state transitions. These advantages make MOHMM a compelling choice for real-world deployment, especially in resource-constrained or explainability-critical scenarios such as energy scheduling and grid control.

5. Conclusions

Based on the Hidden Markov Model (HMM), this study proposes a probabilistic forecasting model (PFM) for solar power by discretizing PV output and associated meteorological features into intensity levels, which define the state and observation spaces. Transition and observation probability matrices are estimated from real-world PV system operation data, and the decoding process yields time-resolved probability density distributions. To enhance forecasting capability, the classical HMM is further extended to incorporate non-homogeneous structures and observation dependencies, resulting in 13 model variants that are comprehensively evaluated in terms of point forecasts and prediction intervals (PIs). The results demonstrate that, under a 15 min forecasting resolution, incorporating dependencies on both historical states and observations significantly enhances model performance. Specifically, models utilizing second-order observation dependencies outperform their first-order counterparts in terms of PI accuracy. However, introducing second-order state dependencies adversely affects performance, suggesting that excessive reliance on historical state information can introduce redundancy and degrade prediction quality. This finding aligns with practical insights: while recent observation data (e.g., from the past 30 min) show strong correlation with current states and outputs, earlier state information (e.g., PV power history) may contain redundant or less informative content, ultimately increasing model error.
This paper provides a detailed derivation and demonstration of the development and extension of a statistically grounded PFM for solar forecasting. As an initial exploration into practical applications, several aspects merit further investigation. These include the impact of discretization parameters (e.g., μ and θ) on model accuracy, and the trade-off between dataset size and model complexity. Addressing these factors will be critical for tailoring the proposed framework to diverse operational scenarios and ensuring its robustness in broader energy forecasting contexts.
Future research will focus on further enhancing the adaptability and scalability of the proposed method. Potential directions include: (1) incorporating online learning mechanisms to dynamically adjust model parameters in real-time; (2) fusing multimodal data such as weather forecasts, market information, and sensor signals to enrich input representations; and (3) extending the framework to regional multi-energy systems for coordinated probabilistic scheduling and control.

Author Contributions

Methodology, J.Z. and S.S.; Writing—original draft, J.Z.; Writing—review & editing, J.Z. 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

Author Siyuan Shang was employed by the Power China Northwest Engineering Corporation Limited. 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.

References

  1. IEA. World Energy Outlook 2024; IEA: Paris, France, 2021.
  2. IEA; IRENA; UNSD; World Bank; WHO. Tracking SDG 7: The Energy Progress Report 2024; IEA: Paris, France; IRENA: Abu Dhabi, United Arab Emirates; UNSD: La Jolla, CA, USA; World Bank: Washington, DC, USA; WHO: Geneva, Switzerland, 2024.
  3. Chu, Y.; Wang, Y.; Yang, D.; Chen, S.; Li, M. A review of distributed solar forecasting with remote sensing and deep learning, Renew. Sust. Energ. Rev. 2024, 198, 114391. [Google Scholar] [CrossRef]
  4. Markovics, D.; Mayer, M.J. Comparison of machine learning methods for photovoltaic power forecasting based on numerical weather prediction. Renew. Sustain. Energy Rev. 2022, 161, 112364. [Google Scholar] [CrossRef]
  5. Yang, D.; van der Meer, D. Post-processing in solar forecasting: Ten overarching thinking tools. Renew. Sustain. Energy Rev. 2021, 140, 110735. [Google Scholar] [CrossRef]
  6. Hong, T.; Pinson, P.; Wang, Y.; Weron, R.; Yang, D.; Zareipour, H. Energy Forecasting: A Review and Outlook. IEEE Open Access J. Power Energy 2020, 7, 376–388. [Google Scholar] [CrossRef]
  7. Huang, H.-H.; Huang, Y.-H. Probabilistic forecasting of regional solar power incorporating weather pattern diversity. Energy Rep. 2024, 11, 1711–1722. [Google Scholar] [CrossRef]
  8. Ahmad, T.; Zhou, N.; Zhang, Z.; Tang, W. Enhancing Probabilistic Solar PV Forecasting: Integrating the NB-DST Method with Deterministic Models. Energies 2024, 17, 2392. [Google Scholar] [CrossRef]
  9. Tawn, R.; Browell, J. A review of very short-term wind and solar power forecasting. Renew. Sustain. Energy Rev. 2022, 153, 111758. [Google Scholar] [CrossRef]
  10. Hu, Z.J.; Su, R.; Veerasamy, V.; Huang, L.Y.; Ma, R.J. Resilient Frequency Regulation for Microgrids Under Phasor Measurement Unit Faults and Communication Intermittency. IEEE Trans. Ind. Inform. 2025, 21, 1941–1949. [Google Scholar] [CrossRef]
  11. Fliess, M.; Join, C.; Voyant, C. Prediction bands for solar energy: New short-term time series forecasting techniques. Sol. Energy 2018, 166, 519–528. [Google Scholar] [CrossRef]
  12. Liu, F.; Mo, Q.; Yang, Y.; Li, P.; Wang, S.; Xu, Y. A nonlinear model-based dynamic optimal scheduling of a grid-connected integrated energy system. Energy 2022, 243, 123115. [Google Scholar] [CrossRef]
  13. Hong, T.; Pinson, P.; Fan, S.; Zareipour, H.; Troccoli, A.; Hyndman, R.J. Probabilistic energy forecasting: Global Energy Forecasting Competition 2014 and beyond. Int. J. Forecast. 2016, 32, 896–913. [Google Scholar] [CrossRef]
  14. Xiong, B.; Chen, Y.; Chen, D.; Fu, J.; Zhang, D. Deep probabilistic solar power forecasting with Transformer and Gaussian process approximation. Applied Energy 2025, 382, 125294. [Google Scholar] [CrossRef]
  15. Lauret, P.; Alonso-Suarez, R.; Silva, R.A.E.; Boland, J.; David, M.; Herzberg, W.; La Salle, J.L.G.; Lorenz, E.; Visser, L.; van Sark, W.; et al. The added value of combining solar irradiance data and forecasts: A probabilistic benchmarking exercise. Renew. Energy 2024, 237, 121574. [Google Scholar] [CrossRef]
  16. Li, X.C.; Hu, C.B.; Luo, S.N.; Lu, H.; Piao, Z.G.; Jing, L.M. Distributed Hybrid-Triggered Observer-Based Secondary Control of Multi-Bus DC Microgrids Over Directed Networks. IEEE Trans. Circuits Syst. I-Regul. Pap. 2025, 72, 2467–2480. [Google Scholar] [CrossRef]
  17. Qian, T.; Liang, Z.Y.; Chen, S.; Hu, Q.R.; Wu, Z.J. A Tri-Level Demand Response Framework for EVCS Flexibility Enhancement in Coupled Power and Transportation Networks. IEEE Trans. Smart Grid 2025, 16, 598–611. [Google Scholar] [CrossRef]
  18. Gao, X.; Lin, H.; Jing, D.; Zhang, X. A novel framework for optimal design of solar-powered integrated energy system considering long timescale characteristics. Energy 2025, 325, 136137. [Google Scholar] [CrossRef]
  19. Carpinone, A.; Giorgio, M.; Langella, R.; Testa, A. Markov chain modeling for very-short-term wind power forecasting. Electr. Power Syst. Res. 2015, 122, 152–158. [Google Scholar] [CrossRef]
  20. Gneiting, T.; Katzfuss, M.; Forecasting, P.; Fienberg, S.E. Annual Review of Statistics and Its Application; Annual Reviews: Palo Alto, CA, USA, 2014; Volume 1, pp. 125–151. [Google Scholar]
  21. De Giorgi, M.G.; Congedo, P.M.; Malvoni, M. Photovoltaic power forecasting using statistical methods: Impact of weather data. IET Sci. Meas. Technol. 2014, 8, 90–97. [Google Scholar] [CrossRef]
  22. Rafique, S.F.; Jianhua, Z.; Rafique, R.; Guo, J.; Jamil, I. Renewable Generation (Wind/Solar) and Load Modeling through Modified Fuzzy Prediction Interval. Int. J. Photoenergy 2018, 2018, 4178286. [Google Scholar] [CrossRef]
  23. Qian, T.; Fang, M.; Hu, Q.; Shao, C.; Zheng, J. V2Sim: An Open-Source Microscopic V2G Simulation Platform in Urban Power and Transportation Network. IEEE Trans. Smart Grid 2025, 1. [Google Scholar] [CrossRef]
  24. Ephraim, Y.; Merhav, N. Hidden Markov processes. IEEE Trans. Inf. Theory 2002, 48, 1518–1569. [Google Scholar] [CrossRef]
  25. Gao, X.; Lin, H.; Jing, D.; Zhang, X. Multi-Objective energy management of Solar-Powered integrated energy system under forecast uncertainty based on a novel Dual-Layer correction framework. Sol. Energy 2024, 281, 112902. [Google Scholar] [CrossRef]
  26. Rabiner, L.R.; Juang, B.H. An Introduction to Hidden Markov Models. IEEE ASSP Mag. 1986, 3, 4–16. [Google Scholar] [CrossRef]
Figure 1. Hidden Markov process.
Figure 1. Hidden Markov process.
Energies 18 02602 g001
Figure 2. Structure of the τ × n × m-HMM.
Figure 2. Structure of the τ × n × m-HMM.
Energies 18 02602 g002
Figure 3. Correlation coefficients between PV power and meteorological parameters.
Figure 3. Correlation coefficients between PV power and meteorological parameters.
Energies 18 02602 g003
Figure 4. The 3D diagrams of the transition probability and observation probability. (a) state transition probability matrix A; (b) observation probability matrix B(1) corresponding to the first observed variable (e.g., solar irradiance); (c) observation probability matrix B(2) corresponding to the second observed variable (e.g., latent heat flux).
Figure 4. The 3D diagrams of the transition probability and observation probability. (a) state transition probability matrix A; (b) observation probability matrix B(1) corresponding to the first observed variable (e.g., solar irradiance); (c) observation probability matrix B(2) corresponding to the second observed variable (e.g., latent heat flux).
Energies 18 02602 g004
Figure 5. Illustration of point and probabilistic forecasting derived from the proposed MOHMM framework. (a) main prediction output; (b) posterior state probability distribution over time, illustrating the evolution of hidden state uncertainty, demonstrating the construction and interpretation of prediction intervals; (c) magnified view of a short prediction segment.
Figure 5. Illustration of point and probabilistic forecasting derived from the proposed MOHMM framework. (a) main prediction output; (b) posterior state probability distribution over time, illustrating the evolution of hidden state uncertainty, demonstrating the construction and interpretation of prediction intervals; (c) magnified view of a short prediction segment.
Energies 18 02602 g005
Figure 6. The statistical diagram of the point forecast metrics of each model.
Figure 6. The statistical diagram of the point forecast metrics of each model.
Energies 18 02602 g006
Figure 7. The statistical diagram of the PIs metrics of each model.
Figure 7. The statistical diagram of the PIs metrics of each model.
Energies 18 02602 g007
Table 1. The information about the proposed models.
Table 1. The information about the proposed models.
Model Number12345678910111213
d1222222222222
τ1111111222222
n1111222111222
m0012012012012
Table 2. Performance comparison of MOHMM and baseline probabilistic forecasting models.
Table 2. Performance comparison of MOHMM and baseline probabilistic forecasting models.
ModelWinkler ScorePICP RMSEInterpretabilityTraining Time
MOHMM0.10991.2%0.144HighLow
QRF0.11990.5%0.150MediumLow
BNN0.12689.7%0.147LowHigh
LightGBM-QR0.11591.0%0.143MediumLow
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

Zhang, J.; Shang, S. Fast and Interpretable Probabilistic Solar Power Forecasting via a Multi-Observation Non-Homogeneous Hidden Markov Model. Energies 2025, 18, 2602. https://doi.org/10.3390/en18102602

AMA Style

Zhang J, Shang S. Fast and Interpretable Probabilistic Solar Power Forecasting via a Multi-Observation Non-Homogeneous Hidden Markov Model. Energies. 2025; 18(10):2602. https://doi.org/10.3390/en18102602

Chicago/Turabian Style

Zhang, Jiaxin, and Siyuan Shang. 2025. "Fast and Interpretable Probabilistic Solar Power Forecasting via a Multi-Observation Non-Homogeneous Hidden Markov Model" Energies 18, no. 10: 2602. https://doi.org/10.3390/en18102602

APA Style

Zhang, J., & Shang, S. (2025). Fast and Interpretable Probabilistic Solar Power Forecasting via a Multi-Observation Non-Homogeneous Hidden Markov Model. Energies, 18(10), 2602. https://doi.org/10.3390/en18102602

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