Skip to Content
ForecastingForecasting
  • Article
  • Open Access

10 September 2026

28 Pages

A Generalized Bayesian Structural Time Series Framework for Forecasting Seasonal Data with Sparse Observations

Department of Statistics, School of Science, King Mongkut’s Institute of Technology Ladkrabang, Bangkok 10520, Thailand

Highlights

What are the main findings?
  • GBSTS–LLTS provided strong forecasting performance for seasonal and changing-seasonal-amplitude time series under different levels of data sparsity, while Holt–Winters remained competitive in some trend and seasonal settings.
  • The empirical results for temperature and relative humidity showed that GBSTS–LLTS consistently achieved the lowest forecasting errors across missing-data rates of 10%, 30%, and 50%, while the leading imputation methods generally performed comparably.
What are the implications of the main findings?
  • Integrating flexible trend and seasonal representations with missing-data reconstruction provides an interpretable Bayesian framework for forecasting seasonal time series with sparse observations.
  • Forecasting performance depends on the underlying temporal structure, sample size, and degree of missingness; therefore, structural specification and missing-data treatment should be considered jointly rather than independently.

Abstract

This study proposes a Generalized Bayesian Structural Time Series (GBSTS) framework for forecasting seasonal time series with sparse observations. Rather than introducing new state-space components, the proposed framework systematically integrates alternative trend and seasonal specifications with multiple missing-data reconstruction strategies within a unified Bayesian state-space formulation. This integration enables the joint assessment of structural model specification and missing-data treatment under varying sample sizes, seasonal structures, and levels of data sparsity. Forecasting performance is evaluated through a Monte Carlo simulation study considering different seasonal mechanisms, missing-data rates of 10%, 30%, and 50%, and a fixed 12-month forecasting horizon. An empirical analysis of monthly temperature and relative humidity series is additionally conducted to assess the practical applicability of the proposed framework. The results show that the GBSTS with a local linear trend and trigonometric seasonal component achieved the best overall forecasting performance among the models considered, demonstrating robust predictive accuracy across varying data conditions and levels of sparsity. Among the imputation methods examined, Kalman smoothing and seasonal split generally yielded comparable forecasting performance across different data conditions and levels of sparsity. Overall, the findings indicate that integrating flexible structural specifications and missing-data reconstruction within the GBSTS framework provides an effective and interpretable Bayesian approach for forecasting seasonal time series with sparse observations.

1. Introduction

Bayesian Structural Time Series (BSTS) models provide a flexible state-space framework for representing complex temporal dynamics through interpretable latent components, including level, trend, seasonality, and regression effects. Within the Bayesian paradigm, uncertainty associated with latent states and model parameters can be quantified through posterior distributions, while the state-space representation facilitates recursive estimation and forecasting. These features make BSTS particularly useful for modeling nonstationary and structurally complex time series while retaining interpretability [1,2,3]. The theoretical foundations of Bayesian structural and dynamic time-series models have been well established in the literature [4,5,6].
The flexibility of BSTS has led to its application across a broad range of time-series problems. Scott and Varian [7] introduced a BSTS framework for predicting the present by integrating multiple time-series components and explanatory variables within a Bayesian state-space formulation. Brodersen et al. [8] subsequently developed a BSTS-based approach for estimating causal effects from observational time-series data, while Jun [9] applied BSTS to technological trend and innovation analysis. More recent studies have evaluated BSTS for forecasting applications and compared its predictive performance with classical approaches such as ARIMA and seasonal ARIMA [10,11,12]. Collectively, these studies demonstrate the flexibility of BSTS in representing trend, seasonal variation, structural dynamics, and forecasting uncertainty. However, comparatively less attention has been devoted to its forecasting performance when seasonal time series contain substantial proportions of missing observations.
Despite its flexibility, the performance of a BSTS model depends on the specification of its latent structural components and the information available in the observed series. This becomes particularly important when seasonal time series contain substantial missing observations, because reduced information can increase uncertainty in latent-state estimation and adversely affect forecasting accuracy. Moreover, seasonal behavior may differ in form and strength across datasets or evolve over time, making a single seasonal specification potentially inadequate under all data conditions. These considerations motivate a systematic framework in which alternative trend and seasonal specifications are evaluated jointly with appropriate missing-data reconstruction strategies for forecasting seasonal time series with sparse observations.
Seasonality is a fundamental feature of many time series, and its appropriate representation can substantially influence forecasting performance [13,14,15,16,17]. Conventional seasonal state components provide a direct representation of recurring seasonal effects, whereas trigonometric formulations use harmonic terms to represent smooth periodic variation more parsimoniously [18,19]. Such alternative representations are particularly useful when seasonal patterns differ in shape or when their amplitudes evolve over time. However, the interaction between alternative seasonal specifications and missing-data treatment has received comparatively limited attention within Bayesian structural time-series forecasting. This motivates the systematic evaluation of conventional and trigonometric seasonal representations under varying seasonal structures and levels of data sparsity.
Sparse observations may arise from missing measurements, irregular data collection, short observation windows, or structural disruptions [20]. In state-space models, substantial information loss can make estimating latent states and variance components more difficult, particularly when the proportion of missing observations is high [21,22]. Bayesian methods offer a natural framework for incorporating prior information and propagating uncertainty through posterior distributions; nevertheless, their forecasting performance remains dependent on model specification, prior assumptions, and the amount of information contained in the observed data [23]. Consequently, the treatment of missing observations and the specification of the underlying structural model should be considered jointly rather than as entirely independent modeling decisions.
Recent developments in time-series analysis have increasingly employed deep-learning architectures to address incomplete observations and complex temporal or spatiotemporal dependencies. Du et al. [24] proposed SAITS, a self-attention-based framework for multivariate time-series imputation, demonstrating the potential of attention mechanisms for reconstructing incomplete temporal observations. Jin and Blanco-Encomienda [25] developed a seasonal decomposition-enhanced deep learning framework for probabilistic forecasting that integrates trend and seasonal decomposition into an end-to-end architecture. Lu et al. [26] reviewed recent deep learning and Transformer-based forecasting approaches, highlighting their ability to capture nonlinear and long-range dependencies while noting challenges associated with irregular observations, computational complexity, and interpretability. Related developments include interpretable nonlinear state-space identification [27] and adaptive sparse graph-attention architectures for modeling dynamically evolving dependencies [28]. These advances demonstrate the increasing capability of data-driven approaches to model complex and incomplete time series.
Despite these advances, deep-learning and Bayesian state-space approaches offer complementary strengths. Deep learning models are particularly effective at capturing nonlinear, high-dimensional, and complex temporal dependencies, whereas Bayesian state-space models provide an interpretable probabilistic framework by explicitly decomposing time-series dynamics into latent components such as level, trend, and seasonality. Accordingly, the proposed GBSTS framework complements modern deep learning approaches by emphasizing structural interpretability, flexible seasonal representation, Bayesian uncertainty quantification, and forecasting with incomplete observations.
In this study, the conventional BSTS formulation is extended into a Generalized Bayesian Structural Time Series (GBSTS) framework by systematically combining alternative structural specifications, including local level, local linear trend, local linear trend with a conventional seasonal component, and local linear trend with a trigonometric seasonal component. The term “generalized” does not imply the introduction of new state-space components; rather, it refers to their systematic integration into a unified Bayesian forecasting framework, along with alternative strategies for missing-data reconstruction. This formulation enables the joint evaluation of structural model specification and missing-data treatment under different sample sizes, seasonal mechanisms, and levels of data sparsity.
To address sparse observations, three complementary reconstruction strategies are considered: Kalman smoothing based on a structural time-series model, Seasonal Split interpolation, and Stineman interpolation. These methods represent probabilistic state-space reconstruction, seasonality-aware interpolation, and smooth deterministic interpolation, respectively [29,30,31,32]. Their inclusion enables a systematic assessment of how different missing-data treatments interact with alternative GBSTS structural specifications. In particular, the comparison provides insight into whether preserving latent-state dynamics or explicit seasonal information improves subsequent forecasting performance as data sparsity increases.
Although local-level, local-linear-trend, conventional seasonal, and trigonometric seasonal components are well established in the structural time-series literature, they are commonly applied through a particular predefined model specification, while missing-data reconstruction is often treated as a separate preprocessing step. Consequently, the interaction between structural specification and missing-data treatment has received comparatively limited attention in seasonal forecasting with sparse observations. The principal contribution of this study is therefore not the introduction of new state-space components, but the systematic integration and comparative evaluation of alternative structural specifications and missing-data reconstruction strategies within a unified Bayesian forecasting framework. The proposed GBSTS framework enables joint assessment across varying sample sizes, seasonal mechanisms, and missing-data rates, thereby providing a structured approach to identifying robust forecasting configurations under sparse-data conditions.
The performance of the proposed framework is evaluated through a Monte Carlo simulation study covering different sample sizes, seasonal structures, and missing-data rates of 10%, 30%, and 50%, using a common 12-month forecasting horizon. The GBSTS specifications are compared with established forecasting approaches, including Holt–Winters exponential smoothing, ARIMA, and BATS. Forecasting accuracy is assessed using multiple error measures to provide a comprehensive evaluation of predictive performance. An empirical application to monthly temperature and relative humidity series is also conducted to examine the framework’s practical applicability.
The remainder of this paper is organized as follows. Section 2 presents the proposed GBSTS framework, including its alternative structural specifications, Bayesian estimation procedure, prior specification, MCMC implementation, and benchmark forecasting models. Section 3 describes the missing-data reconstruction methods. Section 4 presents the Monte Carlo simulation design and evaluates forecasting performance under different seasonal structures and levels of data sparsity. Section 5 reports the empirical application to meteorological time series. Section 6 discusses the main findings and interprets the comparative forecasting performance of the proposed framework. Finally, Section 7 presents the conclusions, summarizes the main contributions and limitations of the study, and outlines directions for future research.

2. Materials and Methods

The methodological framework consists of three main stages: structural model specification, Bayesian estimation, and forecasting evaluation. First, alternative state-space specifications are constructed to represent different combinations of level, trend, and seasonal dynamics. Second, model parameters and latent states are estimated within a Bayesian framework using Markov Chain Monte Carlo (MCMC) methods, with posterior inference used to quantify parameter and forecasting uncertainty. For time series containing missing observations, the reconstructed series obtained from the alternative imputation methods are incorporated into the same modeling procedure to ensure consistent comparison across structural specifications. Finally, forecasts from the GBSTS specifications are evaluated against established benchmark models under a common forecasting horizon and accuracy criteria.
This section describes the alternative specifications of the GBSTS model designed to capture seasonal structures and trend dynamics. Section 2.1, Section 2.2, Section 2.3 and Section 2.4 present the theoretical formulations and computational implementation of the proposed structural specifications. Section 2.5 describes the Bayesian estimation procedure, including prior specification and MCMC diagnostics. For comparison with the proposed GBSTS framework, Section 2.6, Section 2.7 and Section 2.8 introduce three established forecasting approaches: the Holt–Winters Exponential Smoothing model, the Autoregressive Integrated Moving Average (ARIMA) model, and the BATS model, respectively.

2.1. GBSTS with Local Level Component (GBSTS-LL)

The GBSTS with Local Level component (GBSTS–LL) represents the underlying time series using a stochastic level that evolves over time. Let y t denote the observed time series at time t , t = 1 , 2 , … , T . The model is expressed in state-space form as follows.
The observation equation is
y t = μ t + ε t ,               ε t   ~   N ( 0 , σ ε 2 ) ,
and the state equation is
μ t = μ t − 1 + η t ,               η t   ~   N ( 0 , σ η 2 ) .
Here μ   t denotes the unobserved latent level, ε t is the observation error, η   t is the state innovation term, and σ ε 2 , and σ η 2 are the corresponding variance parameters.
This formulation corresponds to a random-walk state process with Gaussian innovations, allowing the latent level to evolve flexibly over time. It is therefore suitable for nonstationary time series in which the underlying level changes gradually over the observation period.
Under the Bayesian estimation procedure, the unknown variance parameters are σ ε 2 ~ Inverse − Gamma   ( a ε , b ε ) and σ η 2 ~ Inverse − Gamma   ( a η , b η ) .
The posterior distribution is proportional to
p ( μ 1 : T ,     σ ε 2 ,   σ η 2 | y 1 : T )         ∝         p ( y 1 : T | μ 1 : T , σ ε 2 )     p ( μ 1 : T | σ η 2 )   p ( σ ε 2 )   p ( σ η 2 ) .
Because the joint posterior has no closed-form solution, inference is conducted using Markov Chain Monte Carlo (MCMC) sampling [33]. The latent states are sampled using the state-space procedure described in Section 2.5, while the variance parameters are updated from their corresponding posterior distributions.
For posterior draw m , the h -step-ahead predictive observation is generated as
y T + h ( m )         = μ T + h ( m ) + ε T + h ( m ) .
The point forecast is obtained from the posterior predictive mean,
y ^ T + h =   Ε   ( y T + h | y 1 : T ) ,
and forecast uncertainty is summarized using Bayesian credible intervals.

2.2. GBSTS with Local Linear Trend Component (GBSTS-LLT)

The GBSTS with Local Linear Trend component (GBSTS–LLT) extends the local-level specification by allowing both the latent level and its slope to evolve stochastically over time. Let y t denote the observed time series at time t = 1 , 2 , … , T .
The observation equation is
y t = μ t + ε t ,               ε t   ~   N ( 0 , σ ε 2 ) ,
and the state equations are
μ t = μ t − 1 + β t − 1 + η t ,       η t   ~   N ( 0 , σ η 2 ) , β t = β t − 1 + ς t ,                       ς t   ~   N ( 0 , σ ς 2 ) .
Here, μ t denotes the latent level component, β t denotes the time-varying slope, ε t is the observation error, η t and ς t are mutually independent state innovation terms, and σ ε 2 , σ η 2 and σ ς 2 are variance parameters.
This specification allows both the level and slope to evolve over time and therefore provides greater flexibility than the local-level specification for representing gradually changing trends.
Prior distributions are assigned to the variance parameters as
σ ε 2   ~   Inverse − Gamma   ( a ε , b ε ) ,
σ η 2   ~   Inverse − Gamma ( a η , b η ) ,
σ ς 2   ~   Inverse − Gamma ( a ς , b ς ) .
Let Θ = { σ ε 2 , σ μ 2 , σ ς 2 } , the joint posterior distribution is
p   ( μ 1 : T ,   β 1 : T , Θ | y 1 : T )   ∝   p   ( y 1 : T | μ 1 : T , σ ε 2 )   p     ( μ 1 : T , β 1 : T | σ η 2 ,   σ ς 2 ) p ( Θ ) .
Posterior inference follows the MCMC state-space procedure described in Section 2.5.
For posterior draw m , the states and observations are propagated forward according to
μ T + h ( m )     = μ T + h − 1 ( m ) + β T + h − 1 ( m ) + η T + h ( m ) , β T + h ( m )     = β T + h − 1 ( m ) + ς T + h ( m ) , y T + h ( m )     = μ T + h ( m ) + ε T + h ( m ) .
Point forecasts are obtained from the posterior predictive mean defined in Equation (5).

2.3. GBSTS with Local Linear Trend and Seasonal Component (GBSTS-LLS)

To capture both stochastic trend dynamics and recurring seasonal patterns, the GBSTS with Local Linear Trend and Seasonal component (GBSTS–LLS) combines a local linear trend with a stochastic seasonal component. This specification is particularly appropriate for monthly time series exhibiting evolving trends and recurring intra-year seasonal behavior.
Let y t denote the observed time series at time t = 1 , 2 , … , T , with the seasonal period S = 12 as monthly seasonality.
The observation equation is
y t = μ t + τ t + ε t ,               ε t   ~   N ( 0 , σ ε 2 ) .
The local linear trend component is specified as
μ t = μ t − 1 + β t − 1 + η t ,         η t   ~   N ( 0 , σ η 2 ) , β t = β t − 1 + ς t ,                             ς t   ~   N ( 0 , σ ς 2 ) .
The stochastic seasonal component is defined by
τ t     =   − ∑ j = 1 S − 1 τ t − j   +   ω t ,         ω t   ∼ N ( 0 , σ ω 2 ) .
where the seasonal effects satisfy the sum-to-zero constraint
∑ s = 1 S τ t − s     =   0
in expectation. This constraint ensures identifiability of the seasonal component, while the innovation term ω t allows the seasonal pattern to evolve gradually over time.
The variance parameters are assigned inverse-gamma priors, as
σ j 2     ~   Inverse − Gamma   ( a , b ) ,   j ∈ ε , η , ζ , ω .
Let α t = ( μ t ,   β t ,   τ t ) Τ denote the state vector and let Θ = { σ ε 2 ,   σ η 2 ,   σ ζ 2 ,   σ ω 2 } .
The joint posterior distribution is proportional to
p   ( Θ , α 1 : T | y 1 : T )     ∝   p   ( y 1 : T | α 1 : T , Θ )   p   ( α 1 : T | Θ ) p   ( Θ ) .
For posterior draw m , the h -step-ahead states and observations are generated recursively as
μ T + h ( m )     = μ T + h − 1 ( m ) + β T + h − 1 ( m ) + η T + h ( m ) , β T + h ( m )   =   β T + h − 1 ( m ) + ζ T + ( m ) τ T + h ( m )   = − ∑ j = 1 S − 1 τ T + h − j ( m ) +     ω T + h ( m ) , y T + h ( m )   = μ T + h ( m ) + τ T + h ( m ) + ε T + h ( m ) .

2.4. GBSTS with Local Linear Trend and Trigonometric Seasonal Component (GBSTS-LLTS)

The GBSTS with Local Linear Trend and Trigonometric Seasonal component (GBSTS–LLTS) combines a stochastic local linear trend with a trigonometric representation of seasonality. The trigonometric formulation provides a parsimonious representation of smooth periodic variation through a set of harmonic components.
Let y t denote the observed time series at time t = 1 , 2 , … , T , with the seasonal period S = 12 .
The observation equation is
y t = μ t + τ t + ε t ,               ε t   ~   N ( 0 , σ ε 2 ) .
The local linear trend component is specified as
μ t = μ t − 1 + β t − 1 + η t ,         η t   ~   N ( 0 , σ η 2 ) , β t = β t − 1 + ς t ,                       ς t   ~   N ( 0 , σ ς 2 ) .
The trigonometric seasonal component is represented by
γ t   =   ∑ k = 1 K a k , t   cos 2 π k   t S + b k , t   sin 2 π k   t S ,
where S = 12 denotes the seasonal period and K = 3 is the number of harmonic components included in the model.
For each harmonic k , the coefficient vector evolves according to
a k , t b k , t   =   R k   a k , t − 1 b k , t − 1     +     ω k , t ω k , t   ~   N ( 0 , σ ω k 2 I ) ,
where
R k   =   cos 2   <   k S sin 2   <   k S − sin 2   <   k S cos 2   <   k S , λ k = 2     π     k S .
This representation allows the seasonal component to evolve smoothly over time through multiple harmonic frequencies.
For Bayesian estimation, inverse-gamma priors are assigned to the variance parameters. In compact form,
σ j 2     ~   Inverse − Gamma   ( a , b ) ,
for the corresponding observation, trend, slope, and seasonal innovation variances.
Let α t   =   ( μ t ,   β t ,   a 1 , t , b 1 , t , … , a K , t , b K , t ) Τ denote the complete state vector. The joint posterior distribution is
p   ( α 1 : T ,   Θ | y 1 : T )   ∝ p   ( y 1 : T | α 1 : T , Θ )   p   ( α 1 : T | Θ )   p   ( Θ ) .
For posterior draw m , the h -step-ahead predictive observation is obtained from
μ T + h ( m )   = μ T + h − 1 ( m ) + β T + h − 1 ( m ) + η T + h ( m ) , τ T + h ( m )   =   ∑ k = 1 K a k , T + h ( m )   cos 2 π k   ( T + h ) S + b k ,   T + h ( m )   sin 2 π k   ( T + h ) S , y T + h ( m )   = μ T + h ( m ) + τ T + h ( m ) + ε T + h ( m ) .
Point forecasts and Bayesian credible intervals are obtained from the resulting posterior predictive distribution.

2.5. Bayesian Estimation, Prior Specification, and MCMC Diagnostics

For each GBSTS model, 5000 MCMC [33] iterations were generated for each chain. The first 1000 iterations were discarded as burn-in to minimize the influence of the initial values. To reduce serial dependence among successive posterior draws, every second iteration was retained, corresponding to a thinning interval of 2. Consequently, 2000 posterior draws per chain were retained for posterior inference and forecasting. To facilitate convergence assessment, four independent MCMC chains were initialized with dispersed starting values, yielding a total of 8000 retained posterior draws across the four chains after burn-in and thinning. Posterior point estimates were calculated using the posterior means of the retained samples, while posterior uncertainty was summarized using posterior standard deviations and 95% Bayesian credible intervals. Since the posterior distribution has no closed-form solution, inference is conducted using MCMC sampling, combined with forward-filtering backward-sampling (FFBS) [34] based on the Kalman filter to draw latent states, and Gibbs sampling [35] for variance parameters.
We adopted weakly informative prior distributions for the variance parameters to provide numerical regularization while allowing the observed data to dominate posterior inference. For the observation-error variance, the prior distribution was specified as
σ ε 2   ~   Inverse − Gamma   ( 0.01 , 0.01 ) .
Similarly, the state innovation variance associated with the latent level component was assigned σ η 2   ~   Inverse − Gamma ( 0.01 , 0.01 ) , whereas the innovation variance associated with the stochastic slope component was specified as σ ς 2   ~   Inverse − Gamma ( 0.01 , 0.01 ) .
For models containing seasonal or trigonometric seasonal components, the corresponding seasonal innovation variance was assigned the prior σ ϖ 2   ~   Inverse − Gamma ( 0.01 , 0.01 ) .
The same weakly informative hyperparameter specification was used across the GBSTS models to maintain comparability among alternative structural specifications and to prevent differences in forecasting performance from being driven by different prior assumptions.
The candidate was accepted according to the Metropolis–Hastings [36] probability:
α   =   min 1   ,   p ( ϕ ∗ |   y ,   Θ ) p ( ϕ ( m − 1 ) |   y ,   Θ ) .
The proposal standard deviation of 0.10 was selected to balance exploration of the parameter space and the acceptance probability. During implementation, the acceptance behavior was monitored to ensure satisfactory chain mixing.
MCMC convergence was evaluated using both graphical and numerical diagnostics. Trace plots for all monitored parameters were visually inspected to verify stable mixing, the absence of persistent trends, and adequate exploration of the posterior distribution after the burn-in period. Numerical convergence was assessed using the potential scale reduction factor, R ^ calculated from the four independent chains. Convergence was considered satisfactory when R ^ < 0.01 .

2.6. Holt–Winters Exponential Smoothing Models

To provide a classical benchmark for comparison with the proposed GBSTS framework, this study employs the Holt–Winters exponential smoothing model. This method belongs to the exponential smoothing family [37,38,39] and is widely used for forecasting time series exhibiting trend and seasonal patterns.
When the time series exhibits both trend and seasonality, the Holt–Winters method [40] incorporates an additional seasonal component. Two formulations are commonly used: additive and multiplicative, depending on whether seasonal fluctuations are constant or proportional to the level.
(a)
Additive Seasonality
Suitable when the seasonal amplitude is approximately constant.
The level equation is
l t   =   α   ( y t − s t − S )   +   ( 1 − α ) ( l t − 1   +   b t − 1 ) ,
the trend equation is
b t   =   β   ( l t   − l t − 1   )   +   ( 1 − β )   b t − 1   ,
and the seasonal equation is
s t   =   γ   ( y t   −   l t − 1   )   +   ( 1 − γ )     s t − S   ,
where l t is the smoothed level, b t is the smoothed trend, α ∈ ( 0 , 1 ) is the level smoothing parameter, β ∈ ( 0 , 1 ) is the trend smoothing parameter, s t is the seasonal component and γ ∈ ( 0 , 1 ) is the seasonal smoothing parameter.
(b)
The h -step-ahead forecast is y ^ T + h   =   l t   +   h   b T   +   s T + h + S k , where S is the seasonal period and k = ( h − 1 ) / S .
(c)
Multiplicative Seasonality
Suitable when seasonal variation increases with the level.
The level equation is
l t   =   α   y t s t − S     +     ( 1 − α ) ( l t − 1   + b t − 1 ) ,
the trend equation is
b t   =   β   ( l t   − l t − 1   )     + ( 1 − β )     b t − 1   ,
and the seasonal equation is
s t   =   γ   y t l t   + ( 1 − γ )     s t − S   .
The h -step-ahead forecast is y ^ T + h   =   ( l t   +   h   b T )   s T + h + S k .

2.7. Autoregressive Integrated Moving Average (ARIMA) Model

The Autoregressive Integrated Moving Average (ARIMA) model is a classical statistical approach for modeling and forecasting univariate time series [41]. It provides a flexible representation of temporal dependence by combining autoregressive (AR), differencing (I), and moving average (MA) components. In this study, ARIMA is included as a conventional benchmark to assess whether the proposed GBSTS framework provides forecasting improvements beyond those obtained from a widely established linear time-series model.
Let y t denote the observed time series at time ( t ). An ARIMA model of order p , d , q , denoted by ARIMA p , d , q , can be expressed as
ϕ ( B ) ( 1 − B ) d y t = c + θ ( B ) ε t
where B is the backward-shift operator defined by B k y t = y t − k , d is the order of differencing required to obtain a stationary series, c is a constant term, and ε t denotes a white-noise error process with ε t   ~   N ( 0 , σ ε 2 ) .
The autoregressive polynomial is defined as
ϕ ( B ) = 1 − ϕ 1 B − ϕ 2 B 2 − ⋯ − ϕ p B p
where ϕ 1 , … , ϕ p are the autoregressive parameters. Similarly, the moving-average polynomial is given by
θ ( B ) = 1 + θ 1 B + θ 2 B 2 + ⋯ + θ q B q
where θ 1 , … , θ q are the moving-average parameters. The autoregressive component represents dependence between the current observation and its previous values, whereas the moving-average component captures dependence on current and past random innovations. Differencing is used to remove stochastic trends and achieve stationarity when necessary.
For seasonal time series, the ARIMA formulation can be extended to a seasonal ARIMA model, denoted by ARIMA p , d , q P , D , Q s , as
Φ ( B s ) ϕ p ( B ) ( 1 − B ) d ( 1 − B s ) D y t = Θ Q ( B s ) θ q ( B ) ε t ,
where P , D , and Q represent the seasonal autoregressive, seasonal differencing, and seasonal moving-average orders, respectively, and s denotes the seasonal period. The seasonal AR and MA polynomials are denoted by Φ ( B s ) and Θ Q ( B s ) , respectively.
In the empirical analysis, the ARIMA model is fitted to the training data, and its orders are selected using an information-criterion-based procedure [42]. Forecasts obtained from the fitted ARIMA model are subsequently evaluated using the same forecasting horizons and accuracy measures as those applied to the GBSTS specifications. The inclusion of ARIMA provides a classical linear benchmark for evaluating the relative forecasting performance of the proposed framework under different seasonal structures and missing-data conditions.

2.8. BATS Model

The BATS model is a flexible exponential-smoothing-based forecasting framework designed to accommodate complex temporal structures through Box–Cox transformation, ARMA errors, trend, and seasonal components [43]. The acronym BATS represents Box–Cox transformation, ARMA errors, Trend, and Seasonal components. In this study, BATS is employed as an additional benchmark because it provides a flexible alternative to conventional ARIMA and exponential smoothing methods, particularly when the observed series exhibits trend and seasonal behavior.
Let y t denote the observed time series. The Box–Cox transformed observation is defined as
y t ( ω ) = y t ω − 1 ω ,   ω ≠ 0 log   ( y t ) ,       ω = 0
where ω is the Box–Cox transformation parameter. This transformation allows the model to stabilize the variance and accommodate possible nonlinear changes in the scale of the time series.
The BATS model can be represented by an observation equation of the form
y t ( ω ) = l t − 1 + φ b t − 1 + ∑ i = 1 T s t − m i ( i ) + d t ,
where l t represents the local level, b t is the trend component, φ is the damping parameter, s t ( i ) denotes the i th seasonal component with seasonal period m i , T is the number of seasonal components, and d t represents the ARMA error component.
The level and trend components evolve according to
l t = l t − 1 + φ b t − 1 + α d t   and   b t = φ     b t − 1 + β     d t ,
where α and β are smoothing parameters controlling the updating of the level and trend components, respectively. Each seasonal component is updated as
s t ( i ) =         s t − m i ( i ) + γ i   d t ,       i = 1 , … , T ,
where γ i denotes the smoothing parameter associated with the i th seasonal component. To account for serial dependence that remains after modeling the level, trend, and seasonal components, BATS incorporates an ARMA ( p , d ) error structure. The error component can be expressed as
d t         =         ∑ j = 1 p ϕ j d t − j + ∑ k = 1 q θ k ε t − k + ε t ,
where ϕ j and θ k are the autoregressive and moving-average parameters, respectively, and ε t is a white-noise innovation with zero mean and constant variance.
The BATS formulation therefore integrates variance stabilization, dynamic level and trend, seasonal variation, and serially correlated errors within a unified forecasting framework [44]. This flexibility makes BATS particularly useful as a benchmark for assessing whether improvements achieved by the proposed GBSTS framework stem from its Bayesian structural formulation rather than simply from its ability to capture trend and seasonal patterns.

3. Imputation Methods for Sparse Observations

In this study, three imputation methods are systematically examined to address sparse observations in several seasonal time series. The following subsections describe each imputation strategy, including its theoretical foundation and computational implementation.

3.1. Kalman–StructTS (KS) Method

To handle sparse observations in time series data, the Kalman smoothing approach based on the Structural Time Series framework [45,46] fits a structural state space model and then applies Kalman filtering and smoothing to obtain optimal estimates of unobserved components given the sparse observations.
Let y t denote a univariate time series with missing observations. In the Structural Time Series framework, the observed series is decomposed into interpretable components:
y t = μ t + γ t + ε t ,               ε t   ~   N ( 0 , σ ε 2 ) ,
where μ t is the trend or level–slope components, γ t is the seasonal component, and ε t is the observation error.
The trend component commonly used specification is the local level model:
μ t + 1       =       μ t + η t ,           η t ∼ N ( 0 , σ η 2 )
or the local linear trend model:
μ t = μ t − 1 + β t − 1 + η t ,       η t ~ N ( 0 , σ η 2 ) , β t = β t − 1 + ς t ,                         ς t   ~   N ( 0 , σ ς 2 ) .
where β t represents the time-varying slope.
The structural model can be written in standard state–space form:
The observation equation is defined as
y t     =     Z t     α t + ε t
and the state equation is denoted as
α t + 1   =   T t     α t + R t     η t
where α t is the state vector, Z t ,   T t and R t are system matrices that typically include level, slope, and possibly seasonal components; the corresponding observation and transition matrices are determined by the model’s structural formulation.
Unknown variance components σ ε 2 ,   σ η 2 ,   σ ς 2 are estimated by maximizing the Gaussian log-likelihood via numerical optimization. The likelihood is evaluated recursively using the Kalman filter. The Kalman filter produces the predicted state estimates α ^ t   |   t − 1 and updated state estimates α ^ t   |   t . When an observation y t is missing, the update step is omitted, and prediction proceeds solely via the state equation. After forward filtering, backward smoothing is applied to obtain α ^ t   |   T which represents the optimal estimate of the state at time t conditional on the entire sample. Missing observations are then reconstructed as y ^ t       =       Z t     α ^ t   |   T .

3.2. Seasonal Split (SS) Method

To explicitly preserve the periodic structure under sparse observations, apply a seasonal split-imputation approach [47]. This method imputes missing values by separating the time series into seasonal subseries and interpolating independently within each seasonal position.
Let y t be a seasonal time series with known periodicity s = 12 . The seasonal split approach partitions the series into s seasonal subseries:
{ y k , y k + s , y k + 2 s , … }           k = 1 , 2 , … , s .
Each subseries corresponds to a fixed seasonal position
Instead of interpolating along the original time index, imputation is performed within each seasonal subseries, thereby preserving periodic consistency. For a missing value y ^ k + m s       =       Interpolation ( y k , y k + s , … ) .
This method assumes that seasonal effects are relatively stable over time and that observations sharing the same seasonal index exhibit similar behavior.

3.3. Stineman Interpolation (ST) Method

To obtain a smooth yet shape-preserving reconstruction of missing values, this method provides a compromise between linear and cubic spline interpolation by preserving local monotonicity and reducing overshooting artifacts [48,49].
Let y t denote a univariate time series with missing observations observed at ordered time points t 1 < t 2 < … < t n . Stineman interpolation constructs a smooth interpolant that passes exactly through all observed points, preserves local monotonicity when present, and avoids excessive oscillation between data points. Suppose ( t i , y i ) and ( t i + 1 , y i + 1 ) are two consecutive observed points. Let m   =   y i + 1 − y i t i + 1 − t i denote the secant slope. The interpolated value at a missing time, τ   ∈   ( t i , t i + 1 ) is obtained using a modified cubic formulation in which local derivatives are adjusted to prevent overshooting beyond neighboring values.
Thus, the interpolated estimate is y ^   ( t )   =   S   ( τ ) , where S   ( τ ) is a smooth function constructed using locally adjusted slopes rather than globally constrained second derivatives.

4. Simulation Study and Results

This section presents a comprehensive Monte Carlo simulation study to evaluate the performance of GBSTS and alternative imputation methods for seasonal time series with sparse observations. The simulated data are generated to reflect hierarchical seasonal dynamics with and without trend components and seasonal amplitude. For all sample sizes, a fixed forecasting horizon of 12 observations was used, representing one complete annual seasonal cycle. Specifically, the final 12 observations of each simulated series were reserved as the test set, while the remaining 108 and 228 observations were used for model estimation n = 120 and 240.
To construct the data-generating process, three structural scenarios are considered: a no-trend seasonal model, a trend-seasonal model, and a seasonal model with changing amplitude. The trend component is defined as a deterministic linear function:
T t   =   1 + 0.02     t ,   t = 1 , 2 , … , n ,
representing a gradually increasing trajectory over time. The seasonal component is generated using a multiplicative sinusoidal structure with periodicity S = 12 :
S t   =   1 + 0.2 × sin   2   π   t 12 ,
capturing smooth cyclical behavior. The random error term is assumed to follow a Gaussian distribution with a mean and standard deviation as
ε t   ∼   Normal (   1 , 0.05 ) .
Under the no-trend structure, the observed time series is generated as y t   =   S t   ε t , which reflects purely seasonal dynamics without systematic growth.
To evaluate forecasting performance under non-constant seasonal behavior, an additional simulation scenario with a time-varying seasonal amplitude was considered. Let t     =     1 , 2 , … , n denote the time index. The deterministic trend component was specified as T t     =     1   +   0.02     t , representing a gradually increasing linear trend over time.
The seasonal amplitude was allowed to increase linearly from 0.10 to 0.40 over the entire observation period. Specifically,
A t   =   0.1   +   0.3     ( t − 1 ) n − 1 ,     t = 1 , 2 , … , n .
Using a seasonal period of 12, the time-varying seasonal component was constructed as
S t   =   1     +     A t         sin   2     π     t 12 .
Thus, the strength of the seasonal fluctuations gradually increases as time progresses, while the seasonal period remains fixed. This design differs from a conventional fixed-amplitude seasonal process because the magnitude of seasonal variation is explicitly allowed to evolve over time.
The random component was generated independently from ε t     ∼     Normal   ( 1 , 0.05 ) . Accordingly, the simulation consists of an increasing linear trend, a periodic seasonal component with gradually increasing amplitude, and normally distributed random variation. This data-generating mechanism provides a more challenging scenario for evaluating the ability of the forecasting methods to accommodate dynamic seasonal behavior rather than only fixed seasonal patterns.
Under the trend structure and seasonal amplitude, the observed time series incorporates all components as y t   =   T t     S t     ε t , representing a multiplicative interaction between trend, seasonality, and stochastic noise.
The simulated time series under the no-trend structure are illustrated in Figure 1, the trend-seasonal structure is presented in Figure 2, and the seasonal amplitude structure is shown in Figure 3. In each figure, the blue and red lines correspond to sample sizes of n = 120 and n = 240 , respectively.
Figure 1. Simulated time series with sample sizes n   = 120 and 240, exhibiting seasonal behavior with a no-trend structure.
Figure 2. Simulated time series with sample sizes n   = 120 and 240, exhibiting seasonal behavior with a trend structure.
Figure 3. Simulated time series with sample sizes n   = 120 and 240, exhibiting seasonal behavior with seasonal amplitude.
To provide a more rigorous evaluation under sparse-data conditions, the missing-data rates were revised to 10%, 30%, and 50%, representing low, moderate, and severe levels of sparsity, respectively. In addition to the conventional seasonal setting, a changing-seasonal-amplitude scenario was introduced to examine forecasting performance when the strength of seasonality evolves over time.
Three imputation methods are implemented prior to model estimation, and seven forecasting accuracy metrics are evaluated using the Mean Absolute Percentage Error (MAPE) and Root Mean Square Error (RMSE).
The MAPE and RMSE are computed as
MAPE   =   100 h ∑ t = 1 h y t − y ^ t y t ,   and   RMSE   =     ∑ t = 1 h ( y t − y ^ t ) 2 h .
where y t denotes the actual observed value, y ^ t represents the corresponding forecasted value, and h denotes the forecast horizon, which is fixed at 12 observations in this study. The MAPE provides a scale-independent measure of prediction accuracy, expressed as a percentage, allowing consistent comparison across different simulation scenarios and sample sizes. The RMSE measures the magnitude of prediction errors in the original scale of the data and assigns greater weight to larger errors through the squared-error formulation.
In this study, the simulation experiment is repeated 1000 times for each configuration to ensure statistical stability and reliability of the results. Consequently, the Average Mean Absolute Percentage Error (AMAPE) and Average Root Mean Squared Error (ARMSE) are computed across all replications and used as the primary performance criterion for identifying the most effective forecasting method. The AMAPE and ARMSE are defined as
AMAPE   =   1 R ∑ r = 1 R MAPE r ,
and
ARMSE   =   1 R ∑ r = 1 R RMSE r .
where R = 1000 denotes the number of simulation replications, and MAPE r and RMSE r denote the MAPE and RMSE, respectively, obtained in the R th replication. The forecasting approach with the lowest AMAPE is considered the most accurate under the given experimental setting. Similarly, the lowest ARMSE indicates the approach with the smallest overall forecasting error, where lower values represent better predictive performance.
Three imputation methods are implemented prior to model estimation, namely Kalman smoothing (KS) under the Structural Time Series model, seasonal split (SS), and Stineman interpolation (ST).
Following the imputation stage, forecasting analysis is conducted using four specifications of the Generalized Bayesian Structural Time Series framework: GBSTS with Local Level component (GBSTS–LL), GBSTS with Local Linear Trend component (GBSTS–LLT), GBSTS with Local Linear Trend and Seasonal component (GBSTS–LLS), and GBSTS with Local Linear Trend and Trigonometric Seasonal component (GBSTS–LLTS). For comparative benchmarking, four established forecasting methods are also included: the Holt–Winters Seasonal method (HW), the Autoregressive Integrated Moving Average (ARIMA) model, and the Box–Cox transformation, ARMA errors, Trend, and Seasonal components (BATS) model.
Forecasting accuracy is evaluated using the AMAPE and ARMSE to assess both relative percentage errors and the magnitude of forecasting errors across simulation replications. The comparative results are summarized in Table 1, Table 2 and Table 3, providing a detailed assessment of how sample size, sparsity level, seasonal structure, and model specification influence imputation effectiveness and forecasting performance.
Table 1. Simulation results under Kalman smoothing based on the Structural Time Series model, reporting AMAPE and ARMSE for different sample sizes, missing rates, and structural scenarios.
Table 2. Simulation results under seasonal split interpolation, reporting AMAPE and ARME for different sample sizes, missing rates, and structural scenarios.
Table 3. Simulation results under Stine interpolation, reporting AMAPE and ARMSE for different sample sizes, missing rates, and structural scenarios.
Table 1 presents the forecasting performance under Kalman smoothing across different sample sizes, missing rates, and structural scenarios. Overall, GBSTS–LLTS achieved the lowest AMAPE values in the Seasonal and Seasonal Amplitude scenarios, demonstrating its ability to capture seasonal dynamics. In contrast, Holt–Winters (HW) generally produced the lowest AMAPE in the Trend and Seasonal scenarios. Forecasting errors tended to increase as the missing rate increased, particularly under the more complex Seasonal Amplitude structure. The ARMSE results generally supported the AMAPE patterns, although some differences among methods were observed.
Table 2 presents the forecasting performance under seasonal split interpolation for different sample sizes, missing rates, and structural scenarios. The GBSTS–LLTS consistently achieved the lowest AMAPE values in the Seasonal and Seasonal Amplitude scenarios, indicating strong performance in modeling seasonal structures. For the Trend and Seasonal scenarios, HW generally yielded the lowest AMAPE, particularly for n = 120, while GBSTS–LLTS became competitive for n = 240 at higher missing rates. Forecasting errors generally increased with increasing missing rates, with a more pronounced effect under the Seasonal Amplitude scenario. The ARMSE results broadly complemented the AMAPE findings, although the best-performing method differed in some configurations.
Table 3 presents the forecasting performance under Stine interpolation across different sample sizes, missing rates, and structural scenarios. The GBSTS–LLTS achieved the lowest AMAPE values in the Seasonal and Seasonal Amplitude scenarios, indicating its effectiveness in capturing seasonal patterns. In contrast, Holt–Winters (HW) provided the lowest AMAPE in the Trend and Seasonal scenarios. Forecasting errors generally increased as the missing rate increased, reflecting the adverse effect of data sparsity. The ARMSE results broadly supported the AMAPE findings, although some differences among methods were observed. These results suggest that forecasting performance depends strongly on the underlying structural characteristics of the time series.
To complement the forecasting accuracy measures reported in Table 1, Table 2 and Table 3, the Diebold–Mariano (DM) [50] test was employed to formally assess whether the predictive performance of the proposed GBSTS–LLTS model differed significantly from that of the benchmark forecasting methods. The test was conducted by comparing the forecast loss of GBSTS–LLTS with those of Holt–Winters (HW), ARIMA, and BATS under each structural scenario, sample size, missing rate, and imputation strategy.
The loss differential between GBSTS–LLTS and a competing method was defined as
d t   =   L ( e G , t ) − L ( e B , t )
where e G , t and e B , t denote the forecast errors from GBSTS–LLTS and the benchmark method, respectively, and L(⋅) denotes the loss function. The null and alternative hypotheses of the DM test are
H 0     =   E ( d t ) = 0 ,                         H 1   =   E ( d t ) < 0 ,
indicating equal predictive accuracy between the two forecasting methods. A heteroskedasticity- and autocorrelation-consistent (HAC) variance estimator was used to account for possible serial dependence in the loss differential. A statistically significant negative DM statistic indicates that GBSTS–LLTS yields a significantly lower forecast loss than the corresponding benchmark method. The significance level was set at 5% throughout the analysis.
The DM test results therefore provide formal statistical evidence complementing the AMAPE and ARMSE comparisons reported in Table 1, Table 2 and Table 3 and help determine whether the observed differences in forecasting performance are statistically significant rather than merely numerical. Pairwise DM tests were subsequently conducted between the proposed GBSTS–LLTS model and each benchmark forecasting method under the different imputation strategies and structural scenarios. The results of these pairwise comparisons are summarized in Table 4.
Table 4. Summary of pairwise Diebold–Mariano test results comparing GBSTS–LLTS with benchmark forecasting methods across structural scenarios.
Table 4 summarizes the pairwise Diebold–Mariano test results comparing GBSTS–LLTS with HW, ARIMA, and BATS across the three structural scenarios. Under the Seasonal scenario, GBSTS–LLTS showed statistically significant improvements over all benchmark methods, confirming its strong ability to capture seasonal patterns. For the Trend and Seasonal scenario, GBSTS–LLTS generally did not significantly outperform HW, and HW was superior in several configurations, whereas significant improvements were observed in some comparisons with ARIMA and in most comparisons with BATS. For the Seasonal Amplitude scenario, the comparison with HW produced mixed results, while GBSTS–LLTS significantly outperformed ARIMA and BATS in most configurations.
These statistical findings are consistent with the forecasting performance summarized in Table 5, further demonstrating that the relative advantage of each forecasting method depends on the underlying structural characteristics of the time series.
Table 5. Summary of the best-performing forecasting methods and the corresponding lowest AMAPE values under each imputation strategy, sample size, missing rate, and structural scenario.
Table 5 summarizes the results obtained from Table 1, Table 2 and Table 3 by identifying the best-performing forecasting method and the corresponding lowest AMAPE value for each imputation strategy, sample size, missing rate, and structural scenario. Overall, GBSTS–LLTS was the dominant method in the Seasonal scenario across all imputation strategies (KS, SS, and ST), while HW performed better in several Trend and Seasonal configurations. For the Seasonal Amplitude scenario, HW was preferable at a low missing rate for n = 120, whereas GBSTS–LLTS generally provided the lowest AMAPE as the missing rate increased and for n = 240. Across the three imputation strategies, seasonal split interpolation (SS) frequently produced the lowest AMAPE, although Kalman smoothing (KS) was superior in several configurations. These results demonstrate that the optimal forecasting–imputation combination depends on the structural scenario, sample size, and degree of missingness.
In general, Kalman smoothing (KS) and Seasonal Split (SS) interpolation slightly outperform the other imputation methods in several model–dataset combinations. However, the differences in AMAPE are generally small, indicating that the leading imputation methods perform comparably under specific conditions rather than demonstrating a substantial advantage of one method over the others.

5. Application in Real Data Set

To demonstrate the practical applicability of the proposed approach, a real-world dataset consisting of monthly average temperature and relative humidity observations is analyzed. The data were collected from the Khlong Toei meteorological station in Bangkok, Thailand, covering the period from January 2005 to December 2025, from the Thai Meteorological Department (TMD) (https://www.tmd.go.th/, accessed on 9 March 2026). These variables are widely used as indicators of local climate variability and exhibit clear seasonal patterns. The time series plots of the monthly average temperature and relative humidity are shown in Figure 4, where the blue and red lines represent the monthly average temperature and relative humidity, respectively, and the corresponding descriptive statistics are summarized in Table 6.
Figure 4. Time series plots of monthly average temperature (°C) and relative humidity (%) recorded at the Khlong Toei meteorological station in Bangkok, Thailand, from January 2005 to December 2025.
Table 6. Descriptive statistics for monthly average temperature (°C) and relative humidity (%) at the Khlong Toei meteorological station in Bangkok, Thailand, from January 2005 to December 2025.
Figure 4 illustrates the monthly time series of temperature and relative humidity at the Khlong Toei station, where both variables exhibit clear seasonal fluctuations throughout the observation period. This visual pattern is consistent with the descriptive statistics reported in Table 6. Specifically, the seasonal indices are relatively high for both variables (0.714 for temperature and 0.678 for relative humidity), indicating strong seasonality. The trend values (0.332 and 0.126) indicate moderate long-term variation. In addition, the summary statistics show that the mean temperature is approximately 30.28 °C with relatively low variability (SD = 1.181), while relative humidity has a mean of 67.35% and slightly higher variability (SD = 3.023). These statistical characteristics align with the seasonal patterns observed in Figure 4, supporting the dataset’s suitability for evaluating forecasting models under seasonal time-series conditions.
To evaluate the forecasting performance under sparse observations, three imputation methods are applied prior to model estimation. The original dataset contains no missing values; therefore, missing observations are artificially generated by randomly removing 10%, 30%, and 50% of the data points to simulate sparsity, and this process is repeated 1000 times. The forecasting results for the temperature series are summarized in Table 7, while the corresponding results for the relative humidity series are presented in Table 8. The values reported in both tables represent the Average Mean Absolute Percentage Error (AMAPE) and Average Root Mean Squared Error (ARMSE), calculated based on a fixed forecast horizon of 12 observations.
Table 7. Average Mean Absolute Percentage Error (AMAPE) and Average Root Mean Squared Error (ARMSE) in forecasting models for the temperature series under different imputation methods and missing rates.
Table 8. Average Mean Absolute Percentage Error (AMAPE) and Average Root Mean Squared Error (RMSE) in forecasting models for the relative humidity series under different imputation methods and missing rates.
Table 7 and Table 8 present the forecasting performance for the temperature and relative humidity series, respectively, under different imputation methods and missing rates. Overall, GBSTS–LLTS consistently achieved the lowest AMAPE and RMSE values across all imputation methods and missing rates for both meteorological variables, demonstrating its robust forecasting performance. For the temperature series, the differences among KS, SS, and ST were relatively small, with GBSTS–LLTS maintaining its superior performance as the missing rate increased. A similar pattern was observed for relative humidity, although forecasting errors were generally larger than those for temperature. Among the benchmark methods, HW and BATS generally performed better than ARIMA, but they were consistently outperformed by GBSTS–LLTS. These findings indicate that GBSTS–LLTS provides stable and accurate forecasts across different levels of missingness and imputation strategies in both temperature and relative humidity series.
The original meteorological datasets contained no missing observations. To provide a controlled evaluation of forecasting performance under varying levels of sparsity, missing observations were artificially introduced at 10%, 30%, and 50% rates via a random deletion mechanism. Therefore, the resulting incomplete datasets represent controlled experimental missingness rather than naturally occurring missing-data processes. This design facilitates consistent comparisons across forecasting and imputation methods, but it does not capture all mechanisms through which missing observations may arise in real-world applications.

6. Discussion

The results obtained from both the simulation study and the empirical analysis provide important insights into forecasting seasonal time series with sparse observations. The findings indicate that forecasting performance depends strongly on the underlying temporal structure, sample size, and degree of missingness. Overall, GBSTS–LLTS demonstrated strong performance for seasonal and changing-seasonal-amplitude processes, suggesting that combining a local linear trend with trigonometric seasonal components provides sufficient flexibility to capture smooth and evolving periodic patterns. This result is consistent with the structural time-series literature, which emphasizes the benefits of explicitly modeling latent trend and seasonal components [4,5,6,29], as well as previous studies highlighting the importance of flexible representations for complex seasonal patterns [13,14,16].
However, the proposed model did not uniformly dominate the competing methods. Holt–Winters was particularly competitive for the Trend and Seasonal scenario with smaller samples, whereas GBSTS–LLTS became more favorable as the sample size increased. A similar pattern occurred under changing seasonal amplitude, where Holt–Winters performed well under low missingness with smaller samples, while GBSTS–LLTS generally showed greater advantages under more complex conditions. These findings emphasize that increased model flexibility does not necessarily guarantee superior forecasting accuracy and that model performance depends on the compatibility between the model structure and the underlying data-generating process. This observation is consistent with established findings on exponential smoothing and structural time-series forecasting [5,30,37,38,39,40].
The results also demonstrate the importance of the interaction between missing-data imputation and forecasting. No imputation strategy uniformly dominated across all experimental settings, although approaches that preserved temporal and seasonal information generally produced competitive forecasts. Kalman-based methods provide a theoretically coherent state-space mechanism for reconstructing missing observations [5,6,45,46,47], whereas interpolation methods can effectively preserve smooth local and seasonal structures [31,32,48,49]. Therefore, the choice of imputation method should be considered jointly with the subsequent forecasting model rather than as an entirely independent preprocessing step.
The empirical analysis of temperature and relative humidity further supports the practical applicability of the proposed framework. GBSTS–LLTS consistently provided strong forecasting accuracy for both meteorological variables across different missing rates and imputation strategies. These results suggest that its stochastic trend and trigonometric seasonal representation are well suited to meteorological series characterized by pronounced periodic behavior. Similar applications have demonstrated the usefulness of structural time-series and flexible seasonal models for environmental and meteorological data [2,44].
Finally, comparisons with ARIMA, BATS, and Holt–Winters show that established forecasting approaches remain competitive under particular temporal structures [14,30,37,40,41,42,43,44]. Thus, the contribution of GBSTS–LLTS should not be interpreted as universal superiority over existing methods. Rather, the results demonstrate its value as a flexible Bayesian structural forecasting framework, particularly when seasonal dynamics are prominent or evolve over time. This balanced interpretation is consistent with the broader forecasting literature, which recognizes that forecasting performance is inherently dependent on the characteristics of the data and model specification [14,30].
The findings of this study should be interpreted within the scope of the experimental design. Although the proposed framework was evaluated using both simulated and empirical meteorological time series, the empirical datasets were originally complete, and missing observations were artificially introduced via a controlled random mechanism. Consequently, the results demonstrate the performance of the proposed framework under controlled sparse-data conditions but do not establish equivalent performance for naturally incomplete datasets. In particular, economic and business time series may exhibit non-random missingness, structural breaks, intermittent demand, irregular observation intervals, and abrupt changes in trend or seasonality that are not fully represented in the present experiments. Therefore, the generalizability of the current findings to such settings requires further empirical investigation.
Future research should therefore evaluate the proposed GBSTS framework under more complex data-generating processes, including structural breaks and abrupt changes in temporal dynamics, as well as a broader range of additive and multiplicative seasonal patterns. Such extensions would provide a more comprehensive assessment of the framework’s robustness under complex and dynamically evolving seasonal structures.

7. Conclusions

This study proposes a generalized Bayesian structural time series (GBSTS) framework for forecasting seasonal time series with sparse observations. The proposed approach extends the conventional BSTS formulation by integrating alternative structural components, including local level, local linear trend, and different seasonal representations, within a unified Bayesian state-space framework. We evaluated its forecasting performance using Monte Carlo simulations across different sample sizes, missing rates, and temporal structures, along with an empirical analysis of temperature and relative humidity data. The comparison was further extended to established forecasting methods, including Holt, Holt–Winters, ARIMA, and BATS.
The simulation results show that the Generalized Bayesian Structural Time Series with Local Linear Trend and Trigonometric Seasonal Component (GBSTS–LLTS) generally performed best under seasonal and changing-seasonal-amplitude scenarios, whereas Holt–Winters remained competitive and performed better in several trend and seasonal settings, particularly for smaller samples. No single imputation method consistently dominated across all conditions. The empirical analysis further showed that GBSTS–LLTS provided the lowest forecasting errors for both temperature and relative humidity across the examined missing rates and imputation strategies. The Diebold–Mariano tests with HAC variance estimation also provided statistical support for the forecasting improvements observed in several configurations. In addition, while the present study employs pairwise Diebold–Mariano tests to assess predictive accuracy, future research could consider multiple-model forecast comparison procedures, such as the Superior Predictive Ability (SPA) test [51], particularly when several competing forecasting methods are evaluated simultaneously.
A limitation of the present study is that missing observations were generated randomly at predetermined rates, whereas consecutive or blockwise missing-data patterns were not explicitly considered. In practical time-series applications, observations may be unavailable for consecutive periods due to sensor failures, data transmission interruptions, or other systematic disruptions. The performance of imputation and forecasting methods under such conditions may depend on the length, location, and frequency of the missing blocks. Future research should therefore extend the proposed GBSTS framework to investigate blockwise missingness of varying lengths and compare its robustness with that observed under randomly distributed missing-data mechanisms. Further investigation should also consider more complex time-series structures, including structural breaks and a broader range of additive and multiplicative seasonal patterns.

Funding

This work was financially supported by King Mongkut’s Institute of Technology Ladkrabang [2569-02-05-004].

Data Availability Statement

Data are available at https://www.tmd.go.th/ (accessed on 9 March 2026).

Acknowledgments

This research was supported by King Mongkut’s Institute of Technology Ladkrabang.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
GBSTSGeneralized Bayesian Structural Time Series
GBSTS–LLGBSTS with Local Level
GBSTS–LLTGBSTS with Local Linear Trend
GBSTS–LLSGBSTS with Local Linear Trend and Seasonal
GBSTS–LLTSGBSTS with Local Linear Trend and Trigonometric Seasonal
HWHolt–Winters Seasonal method
ARIMAAutoregressive Integrated Moving Average Model
BATSBox–Cox transformation, ARMA errors, Trend, and Seasonal components
KSKalman smoothing
SSSeasonal Split
STStineman Interpolation

References

  1. Gianacas, C.; Liu, B.; Kirk, M.; Di Tanna, G.L.; Belcher, J.; Blogg, S.; Muscatello, D.J. Bayesian Structural Time Series, an Alternative to Interrupted Time Series in the Right Circumstances. J. Clin. Epidemiol. 2023, 163, 102–110. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Liang, W.; Li, Y.; Liu, X.; Dai, Q.; Feng, Y. AI-based Bayesian structural time series modeling for assessing PM2.5 air quality improvements during the Beijing 2022 Winter Olympics. Atmos. Environ. 2025, 358, 121328. [Google Scholar] [CrossRef] [Scilit]
  3. Xie, L. The analysis and forecasting COVID-19 cases in the United States using Bayesian structural time series models. Biostat. Epidemiol. 2022, 6, 1–15. [Google Scholar] [CrossRef] [Scilit]
  4. West, M.; Harrison, J. Bayesian Forecasting and Dynamic Models, 2nd ed.; Springer: New York, NY, USA, 1997. [Google Scholar]
  5. Harvey, A.C. Forecasting, Structural Time Series Models and the Kalman Filter; Cambridge University Press: Cambridge, UK, 1989. [Google Scholar]
  6. Durbin, J.; Koopman, S.J. Time Series Analysis by State Space Methods, 2nd ed.; Oxford University Press: Oxford, UK, 2012. [Google Scholar]
  7. Scott, S.L.; Varian, H.R. Predicting the Present with Bayesian Structural Time Series. Int. J. Math. Model. Numer. Optim. 2014, 5, 4–23. [Google Scholar] [CrossRef] [Scilit]
  8. Brodersen, K.H.; Gallusser, F.; Koehler, J.; Remy, N.; Scott, S.L. Inferring Causal Impact Using Bayesian Structural Time-Series Models. Ann. Appl. Stat. 2015, 9, 247–274. [Google Scholar] [CrossRef] [Scilit]
  9. Jun, S. Bayesian Structural Time Series and Regression Modeling for Sustainable Technology Management. Sustainability 2019, 11, 4945. [Google Scholar] [CrossRef] [Scilit]
  10. Almarashi, A.M.; Khan, K. Bayesian Structural Time Series. Nanosci. Nanotechnol. Lett. 2020, 12, 54–61. [Google Scholar] [CrossRef] [Scilit]
  11. Hamza, M.; Mohammad, A. A Comparison of the Bayesian Structural Time Series Technique with the ARIMA Model for Forecasting. Migr. Lett. 2024, 21, 528–538. [Google Scholar]
  12. Rizal, R.; Zuliana, S. Forecasting Using SARIMA and Bayesian Structural Time Series Method for Seasonal Data. Proc. Int. Conf. Data Sci. Off. Stat. 2023, 2023, 382–391. [Google Scholar] [CrossRef] [Scilit]
  13. Taylor, J.W. Triple Seasonal Methods for Short-Term Electricity Demand Forecasting. Eur. J. Oper. Res. 2010, 204, 139–152. [Google Scholar] [CrossRef] [Scilit]
  14. De Livera, A.M.; Hyndman, R.J.; Snyder, R.D. Forecasting Time Series with Complex Seasonal Patterns Using Exponential Smoothing. J. Am. Stat. Assoc. 2011, 106, 1513–1527. [Google Scholar] [CrossRef] [Scilit]
  15. Bandara, K.; Bergmeir, C.; Smyl, S. Forecasting Across Time Series Databases Using Recurrent Neural Networks on Groups of Similar Series: A Clustering Approach. Expert Syst. Appl. 2020, 140, 112896. [Google Scholar] [CrossRef] [Scilit]
  16. Gould, P.G.; Koehler, A.B.; Snyder, R.D.; Ord, J.K.; Vahid-Araghi, F. Forecasting Time-Series with Multiple Seasonal Patterns. Eur. J. Oper. Res. 2008, 191, 207–222. [Google Scholar] [CrossRef] [Scilit]
  17. Taieb, S.B.; Hyndman, R.J. A Gradient Boosting Approach to the Kaggle Load Forecasting Competition. Int. J. Forecast. 2014, 30, 382–394. [Google Scholar] [CrossRef] [Scilit]
  18. Bergmeir, C.; Hyndman, R.J.; Benítez, J.M. Bagging Exponential Smoothing Methods Using STL Decomposition and Box–Cox Transformation. Int. J. Forecast. 2016, 32, 303–312. [Google Scholar] [CrossRef] [Scilit]
  19. Andrews, A.; Kimpton, S. Econometric Forecasting of Tourist Arrivals Using Bayesian Structural Time-Series. Econ. Pap. 2023, 42, 200–211. [Google Scholar] [CrossRef] [Scilit]
  20. Petris, G.; Petrone, S.; Campagnoli, P. Dynamic Linear Models with R; Springer: New York, NY, USA, 2009. [Google Scholar]
  21. Carlin, B.P.; Polson, N.G.; Stoffer, D.S. A Monte Carlo Approach to Nonlinear and Non-Gaussian State-Space Models. J. Am. Stat. Assoc. 1992, 87, 493–500. [Google Scholar] [CrossRef]
  22. Frühwirth-Schnatter, S. Finite Mixture and Markov Switching Models; Springer: New York, NY, USA, 2006. [Google Scholar]
  23. Gelman, A.; Carlin, J.B.; Stern, H.S.; Dunson, D.B.; Vehtari, A.; Rubin, D.B. Bayesian Data Analysis, 3rd ed.; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
  24. Du, W.; Côté, D.; Liu, Y. SAITS: Self-attention-based imputation for time series. Expert Syst. Appl. 2023, 219, 119619. [Google Scholar] [CrossRef] [Scilit]
  25. Jin, K.; Blanco-Encomienda, F.J. Seasonal Decomposition-Enhanced Deep Learning Architecture for Probabilistic Forecasting. J. Forecast. 2025, 45, 880–891. [Google Scholar] [CrossRef] [Scilit]
  26. Lu, G.; Ou, Y.; Wang, Z.; Qu, Y.; Xia, Y.; Tang, D.; Kotenko, I.; Li, W. A Survey of Deep Learning for Time Series Forecasting: Theories, Datasets, and State-of-the-Art Techniques. Comput. Mater. Contin. 2025, 85, 2403–2441. [Google Scholar] [CrossRef] [Scilit]
  27. Meda-Campaña, J.A.; Velázquez-Sánchez, R.D.; García-Hernández, J.C.; Torres-Cedillo, S.; Tapia-Herrera, R. Online Sparse Identification of Nonlinear State-Space Equations via RLS. Int. J. Control Autom. Syst. 2025, 23, 2232–2246. [Google Scholar] [CrossRef] [Scilit]
  28. Qu, K.; Xue, S.; Zheng, X.; Yan, D.; Cao, H. Learning dynamic inter-farm dependencies for wind power forecasting via adaptive sparse graph attention network. Renew. Energy 2026, 258, 124969. [Google Scholar] [CrossRef] [Scilit]
  29. Prado, R.; West, M. Time Series: Modeling, Computation, and Inference; Chapman & Hall/CRC: Boca Raton, FL, USA, 2010. [Google Scholar]
  30. Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles and Practice, 3rd ed.; OTexts: Melbourne, Australia, 2021. [Google Scholar]
  31. Soper, D.S. High-Speed Scientific Computing Using Adaptive Spline Interpolation. Big Data Cogn. Comput. 2025, 9, 308. [Google Scholar] [CrossRef] [Scilit]
  32. Stineman, R.W. A Consistently Well-Behaved Method of Interpolation. Creat. Comput. 1980, 6, 54–57. [Google Scholar]
  33. Andrieu, C.; De Freitas, N.; Doucet, A.; Jordan, M.I. An Introduction to MCMC for Machine Learning. Mach. Learn. 2003, 50, 5–43. [Google Scholar] [CrossRef] [Scilit]
  34. Shephard, N.; Pitt, M.K. Likelihood Analysis of Non-Gaussian Measurement Time Series. Biometrika 1997, 84, 653–667. [Google Scholar] [CrossRef] [Scilit]
  35. Carter, C.K.; Kohn, R. On Gibbs Sampling for State Space Models. Biometrika 1994, 81, 541–553. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Chib, S.; Greenberg, E. Understanding the Metropolis–Hastings Algorithm. Am. Stat. 1995, 49, 327–335. [Google Scholar] [CrossRef] [Scilit]
  37. Holt, C.C. Forecasting Seasonals and Trends by Exponentially Weighted Moving Averages. Int. J. Forecast. 2004, 20, 5–10. [Google Scholar] [CrossRef] [Scilit]
  38. Gardner, E.S. Exponential Smoothing: The State of the Art. J. Forecast. 1985, 4, 1–28. [Google Scholar] [CrossRef] [Scilit]
  39. Gardner, E.S. Exponential Smoothing: The State of the Art—Part II. Int. J. Forecast. 2006, 22, 637–666. [Google Scholar] [CrossRef] [Scilit]
  40. Winters, P.R. Forecasting Sales by Exponentially Weighted Moving Averages. Manag. Sci. 1960, 6, 324–342. [Google Scholar] [CrossRef] [Scilit]
  41. Welagedara, W.A.D.M.; Haile, M.G.; Olive, D.J. ARIMA Model Selection and Prediction Intervals. Axioms 2026, 15, 228. [Google Scholar] [CrossRef] [Scilit]
  42. da Veiga, C.P.; da Veiga, C.R.P.; Girotto, F.M.; Marconatto, D.A.B.; Su, Z. Implementa-tion of the ARIMA model for prediction of economic variables: Evidence from the health sector in Brazil. Humanit. Soc. Sci. Commun. 2024, 11, 1068. [Google Scholar] [CrossRef] [Scilit]
  43. Chudo, S.B.; Terdik, G. Modeling and Forecasting Time-Series Data with Multiple Seasonal Periods Using Periodograms. Econometrics 2025, 13, 14. [Google Scholar] [CrossRef] [Scilit]
  44. Ray, M.; Sahoo, K.C.; Abotaleb, M.; Ray, S.; Sahu, P.K.; Mishra, P.; Al Khatib, A.M.G.; Das, S.S.; Jain, V.; Balloo, R. Modeling and forecasting metrological factors using BATS and TBATS models for Keonjhar district of Orissa. MAUSAM 2022, 73, 555–564. [Google Scholar] [CrossRef] [Scilit]
  45. Koopman, S.J.; Harvey, A.C. Computing Observation Weights for Signal Extraction and Filtering. J. Econ. 2003, 112, 67–88. [Google Scholar]
  46. Durbin, J.; Koopman, S.J. A Simple and Efficient Simulation Smoother for State Space Time Series Analysis. Biometrika 2002, 89, 603–616. [Google Scholar] [CrossRef] [Scilit]
  47. Moritz, S.; Bartz-Beielstein, T. imputeTS: Time Series Missing Value Imputation in R. R J. 2017, 9, 207–218. [Google Scholar] [CrossRef] [Scilit]
  48. Fritsch, F.N.; Carlson, R.E. Monotone Piecewise Cubic Interpolation. SIAM J. Numer. Anal. 1980, 17, 238–246. [Google Scholar] [CrossRef] [Scilit]
  49. Fritsch, F.N.; Butland, J. A Method for Constructing Local Monotone Piecewise Cubic Interpolants. SIAM J. Sci. Stat. Comput. 1984, 5, 300–304. [Google Scholar] [CrossRef] [Scilit]
  50. Cuaresma, J.C.; Hlouskova, J.; Kossmeier, S.; Obersteiner, M. Forecasting electricity spot-prices using linear univariate time-series models. Appl. Energy 2004, 77, 87–106. [Google Scholar] [CrossRef] [Scilit]
  51. Hansen, P.R. A Test for Superior Predictive Ability. J. Bus. Econ. Stat. 2005, 23, 365–380. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.