Skip to Content
BuildingsBuildings
  • Article
  • Open Access

1 August 2025

18 Pages

Uncertainty-Aware Earthquake Forecasting Using a Bayesian Neural Network with Elastic Weight Consolidation

,
,
,
and
School of Mathematics and Statistics, Henan University of Science and Technology, Luoyang 471000, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section A. Building Structures

Abstract

Effective earthquake early warning (EEW) is essential for disaster prevention in the built environment, enabling a rapid structural response, system shutdown, and occupant evacuation to mitigate damage and casualties. However, most current EEW systems lack rigorous reliability analyses of their predictive outcomes, limiting their effectiveness in real-world scenarios—especially for on-site warnings, where data are limited and time is critical. To address these challenges, we propose a Bayesian neural network (BNN) framework based on Stein variational gradient descent (SVGD). By performing Bayesian inference, we estimate the posterior distribution of the parameters, thus outputting a reliability analysis of the prediction results. In addition, we incorporate a continual learning mechanism based on elastic weight consolidation, allowing the system to adapt quickly without full retraining. Our experiments demonstrate that our SVGD-BNN model significantly outperforms traditional peak displacement (Pd)-based approaches. In a 3 s time window, the Pearson correlation coefficient R increases by 9.2% and the residual standard deviation S D decreases by 24.4% compared to a variational inference (VI)-based BNN. Furthermore, the prediction variance generated by the model can effectively reflect the uncertainty of the prediction results. The continual learning strategy reduces the training time by 133–194 s, enhancing the system’s responsiveness. These features make the proposed framework a promising tool for real-time, reliable, and adaptive EEW—supporting disaster-resilient building design and operation.

1. Introduction

Destructive seismic events present significant threats to human safety and critical infrastructure. Earthquake early warning systems leverage real-time monitoring technologies to deliver crucial alerts that can range from a few seconds to several tens of seconds before the arrival of damaging seismic waves. This capability enables timely and effective responses from both individuals and organizations during emergencies. Currently, these systems are deployed in seismically active regions, including Japan [1,2], the United States [3], China [4], Italy [5], and Mexico [6]. They have successfully issued warnings during numerous major earthquakes, significantly mitigating potential losses associated with seismic disasters. Representative ones include Japan’s JMA EEW, which uses dense seismic stations to quickly detect initial seismic waves for rapid earthquake parameter estimation and public alerts [1]. The U.S. MyShake, leveraging advanced seismic sensing and machine learning, detects earthquake signals via mobile devices to improve warning dissemination, coverage, and timeliness [7]. Taiwan’s P-Alert provides localized rapid warnings, using on-site seismic monitoring to assess the ground motion intensity and issue region-tailored alerts [8]. These systems reflect global efforts in enhancing earthquake early warning capabilities, each with technical features and advantages adapted to the local seismic environment.
Recent studies have increasingly leveraged multi-source data (e.g., thermal anomalies, surface deformation) and machine learning to identify seismic precursors. For instance, remote sensing-derived data, such as thermal anomalies and surface deformation, have been increasingly utilized to identify precursory signals, with machine learning algorithms enhancing the extraction of subtle patterns from large-scale geospatial datasets [9]. Concurrently, studies combining seismic activity patterns with geological structure data have emphasized that multi-source data fusion—integrating seismological, geodetic, and geological indicators—can significantly improve the robustness of precursor-based forecasting models [10]. Additionally, emerging research has explored unconventional precursors, including electromagnetic signal variations and subsurface fluid dynamics, highlighting the potential of real-time monitoring systems in capturing transient pre-earthquake anomalies [11]. These efforts collectively underscore the shift toward interdisciplinary and data-driven approaches in leveraging precursors for earthquake prediction. A critical factor in assessing the ground motion intensity [12,13] and determining structural damage is the accuracy in predicting the peak ground acceleration (PGA), which directly impacts the effectiveness of these warnings.
The primary objective of EEW systems is to estimate PGA values prior to obtaining actual ground truth measurements. The current EEW system is primarily characterized by two methodologies: regional EEW [14] and on-site EEW [15]. The regional EEW approach estimates both the magnitude and epicenter of an earthquake by analyzing the initial seismic waves detected by multiple monitoring stations located in proximity to the earthquake source. Subsequently, it evaluates the potential impact area and seismic intensity within the target region based on established attenuation relationships of ground motion. This method also generates an early warning signal [16]. However, a significant limitation of the regional EEW method lies in its reliance on signals from multiple stations, which can compromise the timeliness of estimates. Furthermore, this analysis is subject to uncertainties associated with estimating source parameters and attenuation relationships [17,18,19]. In contrast, the on-site EEW method estimates the earthquake intensity at a specific location by using the initial seismic waves detected at a single station. This approach does not require information regarding the magnitude or epicenter, thereby enhancing its timeliness compared to the regional EEW method [20]. Nonetheless, it faces challenges such as limited available data and difficulties in ensuring the reliability of predictive outcomes [21,22].
Current deep learning-based feature extraction methods for initial seismic P-waves are widely employed in studies aimed at predicting PGA [23,24,25]. However, the initial seismic waveforms are often disturbed by environmental noise and instrument noise [26]. During the automated feature learning process utilized by deep neural networks, this noise can be amplified in a non-linear manner, leading to systematic biases in the generated predictions. The present methodologies typically rely on time–frequency feature parameters associated with seismic intensity. These parameters are derived from the initial P-waves and serve as inputs for models designed to predict PGA [27,28,29]. In terms of model architecture, the prevailing approaches predominantly employ deterministic deep learning frameworks that yield fixed predictions through the point estimation of network parameters. Nevertheless, traditional deep learning techniques are susceptible to parametric overfitting—especially when confronted with limited sample sizes [30]—which undermines the reliability of their predictions. To address this challenge, we propose a Bayesian deep learning framework that incorporates the quantification of parameter uncertainty. This framework aims to estimate the posterior distribution of parameters through Bayesian inference, thereby improving the robustness of the model and the interpretability of its prediction results. Ultimately, this framework seeks to achieve PGA prediction accompanied by a predictive distribution.
In traditional neural networks, model parameters are typically treated as fixed point estimates. In contrast, Bayesian neural networks (BNNs) conceptualize the network parameters θ as random variables within a probabilistic modeling framework [31,32]. Formally, given an observed dataset D = { X , y } , the primary objective of a BNN is to ascertain the posterior distribution of these parameters by applying Bayes’ theorem:
p ( θ | D ) = p ( D | θ ) p ( θ ) p ( D ) ,
where p ( θ ) refers to the prior distribution of the parameters, p ( D | θ ) indicates the likelihood function, and p ( D ) = ∫ p ( D | θ ) p ( θ ) d θ represents the marginal likelihood (or evidence). The posterior distribution p ( θ | D ) provides a complete description of the uncertainty surrounding the parameters given the observed data.
Analyzing the analytical solution of the posterior distribution in a high-dimensional parameter space is usually impractical, and approximate inference methods are often used for solving. Although traditional Markov Chain Monte Carlo (MCMC) methods can provide asymptotically unbiased samples from the posterior, their computational requirements grow exponentially as the number of parameters increases. On the other hand, variational inference (VI) has recently become a popular approach for approximation. VI optimizes a surrogate objective function to gradually approximate the true posterior distribution. This is achieved by minimizing the Kullback–Leibler (KL) divergence, which quantifies the difference between a parametric distribution family q ϕ ( θ ) (like a diagonal Gaussian) and the target posterior distribution:
ϕ * = arg min ϕ KL q ϕ ( θ ) ∥ p ( θ ∣ D ) ,
where ϕ represents the parameters of the hypothetical distribution. This optimization process is equivalent to maximizing the evidence lower bound (ELBO):
ELBO ( ϕ ) = E q ϕ log p ( D ∣ θ ) − KL q ϕ ( θ ) ∥ p ( θ ) .
Traditional variational inference methods often rely on strict mean field assumptions, which overlook the relationships between parameters. In addition, simple parametric distributions are insufficient to approximate complex posterior distributions [33,34]. In contrast, Stein variational gradient descent (SVGD) provides a non-parametric approach to variational inference. It estimates the posterior distributions of parameters by iterating a set of particles { θ i } i = 1 n . In comparison to conventional variational inference techniques, the SVGD method presents two significant advantages. Firstly, it employs particle layer optimization to directly approximate the posterior distributions of complex parameters, thereby mitigating the modeling bias that often results from the oversimplified assumptions regarding parameter distributions that are characteristic of traditional approaches. Secondly, SVGD explicitly maintains the correlations among parameters, thus addressing the constraints imposed by the mean field assumption [35].
This research introduces a method for posterior inference in Bayesian neural networks using SVGD. The main objective is to establish a reliable earthquake prediction model through probabilistic methods and obtain the posterior probability estimates of the network parameters. The proposed method establishes an uncertainty quantification framework, which can perform Bayesian inference on model parameters and output reliability indicators of the prediction results. When the output variance surpasses predefined safety limits, the system is programmed to trigger an early warning mechanism, even if the predicted seismic intensity is low. This improvement, which takes uncertainty into account, greatly enhances the reliability of decision making and reduce the misjudgment of risks caused by deterministic models. In addition, we introduce a continuous learning mechanism based on the established model framework. This allows the model to update parameters based solely on newly generated data, avoiding training with the full dataset, thus effectively reducing the time cost of model parameter updates.
Section 2.1 introduces how to construct a BNN model using the SVGD method; Section 2.2 presents the introduced continual learning approach; Section 2.3 describes the calculation of features and targets; Section 2.4 elaborates on the data sources, the processing methods, and the setting of some model parameters; Section 3 provides the results obtained through experiments; and Section 4 and Section 5 provide a discussion and conclusions of the research, respectively.

2. Materials and Methods

2.1. Bayesian Neural Networks Based on SVGD

SVGD iteratively approximates the posterior distribution p ( θ ∣ D ) using a set of particles { θ i } i = 1 n , where each particle represents a sampled parameter configuration. The spatial distribution of these particles evolves iteratively through a data-driven deterministic gradient flow. Eventually, the empirical distribution of the particles converges to the true posterior distribution p ( θ ∣ D ) . The update rule of SVGD is defined as follows:
θ i ← θ i + ϵ ϕ * ( θ i ) ,
where ϵ represents the learning rate. Additionally, ϕ * is defined as the optimal perturbation function, whose purpose is to maximize the direction of decrease in the Kullback–Leibler divergence. The explicit definition of this function is as follows:
ϕ * ( · ) = 1 n ∑ j = 1 n ∇ θ j log p ( θ j ∣ D ) k ( θ j , · ) + ∇ θ j k ( θ j , · ) ,
where ∇ θ j log p ( θ j ∣ D ) signifies the posterior gradient component, which directs particles towards areas of elevated probability. Conversely, ∇ θ j k ( θ j , · ) indicates the kernel gradient component. The important role of this item is to maintain particle diversity and reduce the risk of mode collapse by promoting the repulsive interaction between particles. The present study employs the radial basis function (RBF) kernel as the interaction kernel among particles, which is defined as follows:
k ( θ i , θ j ) = exp − ∥ θ i − θ j ∥ 2 2 h 2 ,
where the bandwidth parameter h is established through an adaptive heuristic approach. Initially, the squared Euclidean distance matrix ∥ θ i − θ j ∥ 2 is computed for all combinations of particles. Subsequently, the median h ˜ of the non-zero distances is calculated. The bandwidth is then defined as
h = 0.5 · h ˜ ln ( n + 1 ) ,
where n denotes the quantity of particles. This data-driven approach effectively manages the dynamics between the forces of attraction and repulsion among the particles (Figure 1).
Figure 1. Bayesian neural network framework based on SVGD and continuous learning strategy.
For the computation of posterior gradients, this research develops a Bayesian model grounded in the probabilistic deep learning framework proposed by José Miguel Hernández-Lobato and Ryan P. Adams [36]. The dataset under consideration is represented as D = { ( x n , y n ) } n = 1 N . The data generation process is articulated as y n = f ( x n ; W ) + ϵ n . Here, f ( · ; W ) represents the mapping function for multi-layer neural networks with parameters W . ϵ n ∼ N ( 0 , γ − 1 ) , which represents independently and identically distributed Gaussian observation noise, where γ denotes the precision parameter. The corresponding likelihood function is defined as
p ( y | W , X , γ ) = ∏ n = 1 N N y n | f ( x n ; W ) , γ − 1 ,
and we apply zero-mean Gaussian priors with a precision parameter λ to the weights of the network,
p ( W | λ ) = ∏ w i ∈ W N ( w i | 0 , λ − 1 ) ,
where w i denotes the i-th trainable weight within the neural network framework. Gamma hyper-priors are additionally introduced for the precision parameters γ and λ ,
p ( γ ) = Gam ( γ | α 0 , β 0 ) , p ( λ ) = Gam ( λ | α 0 , β 0 ) .
Let α 0 represent the shape parameter and β 0 denote the rate parameter. Consequently, the joint posterior distribution can be expressed as follows:
p ( W , γ , λ | D ) = p ( y | W , X , γ ) p ( W | λ ) p ( λ ) p ( γ ) p ( y | X ) .
The normalization constant p ( y | X ) is removed via logarithmic differentiation in the process of calculating the gradient,
∇ θ log p ( θ ∣ D ) = ∇ W , γ , λ log p ( W , γ , λ | D ) = ∇ W , γ log p ( y | W , X , γ ) + ∇ W , λ log p ( W | λ ) + ∇ γ log p ( γ ) + ∇ λ log p ( λ ) .

2.2. Continuous Learning Method

Elastic weight consolidation is an effective method to address the problem of catastrophic forgetting in neural networks. Catastrophic forgetting refers to the phenomenon in which, when a neural network learns multiple tasks sequentially, learning a new task can cause the significant overwriting or loss of the knowledge learned on previous tasks. The core idea of EWC stems from the Bayesian continuous learning framework. After the network is trained on task A, it obtains the posterior distribution of the parameters p ( θ | D A ) . When learning a new task B, the goal is to find parameters that can adapt to the new data D B without significantly deviating from the knowledge learned on the old task A. According to Bayes’ rule, the posterior of task B can be expressed as
log p ( θ | D B ) = log p ( D B | θ ) + log p ( θ | D A ) − log p ( D B ) ,
where p ( θ | D A ) serves as the prior when learning task B, and it contains the information of task A. Maximizing this posterior is equivalent to minimizing the following loss function:
L B ( θ ) = L B ( θ ) + λ ∗ L EWC ,
where L B ( θ ) is the standard loss function of the new task B; L EWC is the regularization term introduced by EWC, aiming to constrain important parameters from deviating too much from their optimal values θ A * learned on task A. λ is a hyperparameter that controls the regularization strength and balances the learning of the new task and the retention of knowledge from the old task.
We introduce a method for updating the parameters of a Bayesian neural network based on the principle of elastic weight consolidation. To mitigate catastrophic forgetting during incremental learning, we integrate a Fisher information-based regularization term into SVGD, constraining updates to critical parameters from prior tasks. For the historical task D A , this approach preserves the mean value θ A * of all particle parameters, in conjunction with the associated Fisher information matrix F A . The formulation of the EWC regularization term is expressed as follows:
L EWC = λ 2 ∑ i F A ( θ i − θ A * ) 2 ,
where θ ( i ) represents the parameters associated with the i-th particle, while λ signifies the regularization coefficient. The computation of the Fisher information matrix is conducted utilizing a diagonal approximation,
F A = E x ∼ D A ∂ log p ( y | x , θ ) ∂ θ 2 θ = θ A * .
In practice, we estimate this expectation by employing subsampling techniques and conducting element-wise averaging,
F A ≈ 1 N ∑ x ∈ D A ∂ log p ( y | x , θ ) ∂ θ 2 θ = θ A * ,
where N is the subsample size. The log-likelihood log p ( y | x , θ ) is calculated using the formula in Equation (8). The improved SVGD update operator is
ϕ * ( · ) = 1 n ∑ j = 1 n ∇ θ j log p ( θ j ∣ D ) − λ 2 F A ( θ j − θ A * ) 2 k ( θ j , · ) + ∇ θ j k ( θ j , · ) = 1 n ∑ j = 1 n ∇ θ j log p ( θ j ∣ D ) − λ F A ( θ j − θ A * ) k ( θ j , · ) + ∇ θ j k ( θ j , · ) ,
where n is the number of parameter particles.

2.3. Input Features and Targets

Employing the feature engineering approach developed by Wang, Ao et al. [37], we systematically extract seven dynamic characteristic parameters from the initial P-wave seismic waveform signal. These parameters include the cumulative absolute velocity ( CAV ), average absolute acceleration ( A 0.3 ), predominant period of seismic waves ( T p d ), peak absolute acceleration ( P a ), peak absolute velocity ( P v ), peak absolute displacement ( P d ), and Arias intensity ( I a ). The detailed calculation procedures for these parameters are outlined as follows.
The cumulative absolute velocity ( CAV ) serves as a measure of the intensity of energy radiation from a source, which is determined by integrating the absolute values of ground acceleration [38]. For a given acceleration time series denoted as { a t } t = 1 n , the CAV at a specific time instant T j (associated with the j-th sample a j ) is computed as
CAV j = ∑ k = 1 j | a k | · Δ t .
where Δ t denotes the sampling interval.
The mean absolute acceleration ( A 0.3 ) is defined as the first derivative of CAV over a 0.3 s window, which reflects the energy growth rate and characteristics of the source rupture:
A 0.3 j = CAV j − CAV j − 0.3 / Δ t 0.3 .
The predominant period of seismic waves, denoted as T p d , has been the subject of considerable research. A multitude of studies have established that the predominant periods of primary (P) waves ( T p d ) produced by earthquakes of higher magnitudes are generally longer [39,40]. In our analysis, we compute the T p d associated with vertical acceleration and employ it as a feature input,
T j p d = 2 π X j D j + D s ,
with recursive parameters
X i = α X i − 1 + v i 2 , D i = α D i − 1 + ∂ v ∂ t i 2 , α = e ln ( 0.1 ) / ( τ w / Δ t ) , D s = 4 π 2 ⟨ x i 2 ⟩ τ w / Δ t τ m x 2 ,
where v i represents the vertical velocity, whereas x i denotes the vertical displacement. The parameters are specified as τ m x = 0.019 s and τ w = 4.5 s . For the calculations, the vertical ground acceleration is considered as the time derivative of the vertical ground velocity data. The vertical ground acceleration is obtained by taking the derivative of the vertical ground velocity.
The peak parameters ( P a , P v , P d ) characterize extremal vertical motions within the time window:
P a j = max 0 < t ≤ T j | a ( t ) | , P v j = max 0 < t ≤ T j | v ( t ) | , P d j = max 0 < t ≤ T j | d ( t ) | .
The Arias intensity ( I a ) integrates amplitude, frequency, and duration effects [41],
I a = π 2 g ∫ t c t c + Δ t c a 2 ( t ) d t ,
where g = 980 cm / s 2 , t c is the P-wave arrival time, and Δ t c is the analysis window.
PGA is the primary metric employed in earthquake early warning systems to assess the real-time seismic intensity and the potential for structural damage. This study identifies PGA as the central element for predictive analysis. The mathematical representation of PGA is expressed as follows:
PGA = max 0 < t ≤ T all a EW 2 ( t ) + a NS 2 ( t ) + a UD 2 ( t ) ,
where T all denotes the total duration of seismic records; a EW ( t ) , a NS ( t ) , and a UD ( t ) represent the east–west, north–south, and vertical ground motion acceleration components, respectively.

2.4. Data Processing and Model Building

The seismic waveform data employed in this research were obtained from the publicly accessible database maintained by the Incorporated Research Institutions for Seismology (IRIS), which can be found at https://www.iris.edu/hq/, accessed on 23 June 2025. This dataset includes recordings from seismic stations that monitor seismic activity across various seismotectonic regions in China—specifically, the Tibetan Plateau Tectonic Belt, the North–South Seismic Belt, and the North China Seismic Zone. The time range of the seismic waveform data selected in this study is from 2010 to 2020. Three-component velocity waveforms were extracted and downloaded within a 5 min window following the arrival of the P-wave, utilizing the online tools provided by IRIS. The extracted three-component velocity waveform data contain key characteristics such as the amplitude, period, and phase during the propagation of seismic waves.
The original speed record undergoes processing via a fourth-order Butterworth filter—specifically, employing a band-pass filter with a frequency range of 0.05 to 0.5 Hz. This operation aims to reduce high-frequency noise and ultra-low-frequency interference. Simultaneously, a high-pass filter with a cutoff frequency of 0.4 Hz is implemented to eliminate baseline offsets, thereby maintaining the stability of the zero line within the time-history data. After excluding records that exhibit significant data gaps, low signal-to-noise ratios, and instrument anomalies, a total of 8433 valid sample data are obtained. We calculate the first-order difference of the velocity time series in the time domain to obtain the three-component acceleration sequence. At the same time, we numerically integrate the velocity sequence to obtain the corresponding displacement sequence.
The feature extraction method traces back 3 to 8 s based on the P-wave arrival time and slides the time window with an increment of one second. At the end point of each time window, we extract seven kinetic characteristic parameters and use them as the input of the model. Among them, the calculation of the parameter A 0.3 requires the complete cumulative absolute velocity time series as input. Therefore, it is essential to analyze all sampling points within each time window to generate a continuous CAV sequence during the feature computation process. After extracting features, we apply logarithmic transformation to normalize the scales. All calculations, including feature derivation and integration, are implemented in the R software.
To verify the universality and generalization performance of the model, we obtained strong motion data recorded by strong motion seismometer networks such as K-NET and KiK-net from the website of the National Research Institute for Earth Science and Disaster Resilience (NIED) in Japan (available at https://www.kyoshin.bosai.go.jp/, accessed on 23 June 2025). These data include the three-component acceleration seismic records required for this study. The data processing method was the same as above, and a dataset with a sample size of 5889 was finally obtained after screening.
Bayesian neural networks are constructed using a three-layer fully connected architecture, comprising hidden layers with 32 and 64 neurons, respectively. The parametric sampling process is conducted via the SVGD framework, which utilizes 1000 particles to approximate the posterior distribution. Non-linear mapping is facilitated through the application of the rectified linear unit (ReLU) activation function. A quantile hierarchical sampling strategy is employed to partition the dataset, allocating 20% of the total samples to the test set and extracting 16% from the remaining 80% for the validation set. This methodology ensures the consistent statistical distribution of ground motion intensity measures across the training dataset, validation set, and test set. The training configuration is defined by a batch size of 200 and an initial learning rate of 0.001. A dynamic learning rate decay mechanism is integrated, which reduces the learning rate by half when the validation mean squared error remains unchanged. Furthermore, an early stopping strategy is implemented, terminating training when the validation set loss does not exhibit a decrease over five consecutive iterations. The model is developed and trained using Python 3.11, with the relevant code provided in the Supplementary Materials.

3. Results

3.1. Model Accuracy Comparison

We trained the model using two processed datasets. To evaluate the model’s performance, the model fitted by the Pd method and the VI-BNN model were used as benchmark models. The trained models were tested on the same test set. Scatter plots were drawn to show the relationship between the predicted values of log ( PGA ) and the true values of log ( PGA ) on the test set (see Figure 2 and Figure 3). In addition, the residual standard deviation ( S D ) and Pearson correlation coefficient (R) between the true values and predicted values were marked on the scatter plots. To further evaluate the performance of the models, we calculated five metrics for the three methods on the test set: the mean squared error (MSE), the root mean squared error (RMSE), the correlation coefficient (R), the proportion of overestimated predictions (OE), and the proportion of underestimated predictions (UE) (see Table 1). Among these, OE (UE) is calculated as the proportion of data in the total test set where the predicted values are overestimated (underestimated) and deviate by more than one RMSE from the true values. For the Japanese dataset, the corresponding scatter plots and metric tables are provided in Figures S1 and S2 and Table S1 of the Supplementary Materials.
Figure 2. We applied the trained SVGD-BNN model and Pd model to the test set and plotted a scatter plot comparing the predicted and observed values of the logarithm of peak ground acceleration ( log ( PGA ) ). The solid gray line in the plot represents the theoretical optimal fit line, expressed by the equation y = x . The gray dashed lines indicate the ± 1 σ interval, which is calculated based on the residual standard deviation (SD). T refers to the duration of the time window in seconds, R denotes the Pearson correlation coefficient, and S D signifies the standard deviation of the predicted residuals.
Figure 3. We used the Bayesian neural network model trained by traditional variational inference methods to test the data in the test set. Subsequently, we drew a scatter plot comparing the predicted values of the logarithm of peak ground acceleration ( log ( PGA ) ) and the observed values.
Table 1. Comparison of experimental results for different models.
An examination of the scatter plot (see Figure 2) reveals that the prediction accuracy of the SVGD-BNN model improves significantly as the time window slides from 3 s to 8 s. Specifically, the Pearson correlation coefficient R increases from 0.876 to 0.896, representing a relative improvement of 2.28%. Meanwhile, the residual standard deviation S D decreases from 0.987 to 0.908, with a reduction of 8.00%. In contrast, the correlation coefficient R obtained by the Pd model ranges from 0.578 to 0.601, and the residual standard deviation S D ranges from 1.672 to 1.637. Although the prediction performance of the Pd method improves to a certain extent over time, its prediction accuracy remains significantly lower than that of the SVGD-BNN model. Within the 3 s time window, compared with the VI-BNN model, the Pearson correlation coefficient R between the true values and predicted values of the SVGD-BNN model increases by 9.2%, while the standard deviation S D of the residuals decreases by 24.4% (see Figure 3). The analysis of the VI-BNN, SVGD-BNN, and Pd methods shows that, although the R value of the VI-BNN method is significantly higher and the S D value is significantly lower than that of the Pd method, its overall performance is still inferior to that of the SVGD-BNN method. By examining the scatter plots corresponding to the Japanese earthquake dataset (see Figures S1 and S2), it is found that the prediction performance of the SVGD-BNN model is better than that of the Pd model and the VI-BNN model.
As can be seen from the model index table (see Table 1), the MSE, RMSE, and R of both the SVGD-BNN model and the VI-BNN model are significantly better than those of the Pd model. However, the prediction effect of the IV-BNN model is still inferior to that of the VI-BNN model. Moreover, the VI-BNN model has serious overestimation and underestimation issues. For example, the proportion of overestimated predicted values in the time window corresponding to 3 s is 19.27%, and the proportion of underestimated predicted values in the time window corresponding to 5 s is 19.87%, both of which are significantly higher than the proportions of overestimated and underestimated predicted values in all time windows for the SVGD-BNN model and the Pd model. For the Japanese earthquake dataset (see Figure S3), an analysis of the model’s MSE, RMSE, and R shows that the SVGD-BNN model still has certain advantages, with lower proportions of overestimated and underestimated predictions, indicating that our model has certain generalization performance.

3.2. Uncertainty of Predicted Values

When there is large uncertainty in the prediction results, it indicates that there is a large deviation in them. To illustrate this relationship, we plot the corresponding box plot to show the relationship between the variance in the predicted values and the prediction error (see Figure 4). Specifically, the prediction errors of all sample points are divided into several intervals, and box plots of the prediction variances of all sample points in the corresponding intervals are drawn. Subsequently, we connect the median points of the box plots across the intervals. The image reveals that, as the prediction error increases, the variance in the predicted values also increases accordingly, thus reflecting an increase in prediction uncertainty. Correspondingly, higher prediction variance indicates that there is a large deviation in the predicted values. Therefore, it is necessary to remain vigilant and take appropriate measures.
Figure 4. The six graphs represent various temporal intervals spanning from 3 to 8 s. The horizontal axis denotes the error interval, whereas the vertical axis reflects the variance in all predicted particle values. The box plot serves to depict the distribution of the variance in the predicted particle values within a designated error interval.
The methodology that we have proposed generates a probability distribution of the predicted values in conjunction. To illustrate the dynamic alterations in the shape of the distribution throughout the prediction process, we select a data point from the test set for further examination. By employing the kernel density estimation technique, we plot the probability density function curves of all particle predicted values within the 3–8 s time interval. As depicted in Figure 5, the distribution curves across six consecutive time intervals reveal that the predicted distribution progressively converges towards the true value, as indicated by the position marked by the vertical dashed line, over the specified time window. To numerically illustrate this, we calculate the Wasserstein distance between the prediction distribution corresponding to each time window and the true value (see Table 2). By analyzing the Wasserstein distances corresponding to different time windows, it is found that, as time progresses, the difference between the prediction distribution and the true value gradually decreases, indicating that the prediction distribution gradually converges to the true value.
Figure 5. Six probability density functions illustrate the anticipated distributions of time intervals varying from 3 s to 8 s. The vertical black dashed line denotes the location of the actual value.
Table 2. Wasserstein distance between each time window and the true value.

3.3. Continuous Learning Data Experiment

In order to replicate a scenario involving the generation of emerging data, the training dataset corresponding to the time interval of 3–8 s is randomly partitioned into two equal segments. The first segment is utilized as the baseline data, while the second segment is employed to simulate newly generated data. An incremental learning methodology is applied for the purpose of model training. This methodology is juxtaposed with a full data retraining experiment, with the findings delineated in Table 3. Within this framework, F denotes the full data retraining experiment, whereas C – T 1 and C – T 2 represent the training experiments based on the baseline data and newly generated data, respectively, under the continuous learning paradigm. The terms M S E t r a i n and M S E t e s t signify the mean square errors calculated on the training dataset and the test set, respectively. The MSE here refers to the mean squared error after the data standard deviation. The continuous learning method used in this study can reduce the training time by 133 to 194 s. Moreover, the model trained in the C – T 2 experiment has the lowest MSE on the test set, indicating that the model parameters can be effectively updated through this continuous learning method.
Table 3. Comparison of experimental results under different time windows.

4. Discussion

An analysis of the experimental results shows that, whether for the Chinese earthquake dataset or the Japanese earthquake dataset, the performance of the SVGD-BNN model is superior to that of the Pd model and the VI-BNN model. Moreover, compared with the other two models, the SVGD-BNN model has less overestimation and underestimation, while such phenomena are more serious in the VI-BNN model. This indicates that the SVGD-BNN method has certain advantages in terms of prediction performance.
Additionally, by investigating the relationship between the variance in the predicted values and the prediction errors (see Figure 4), we can conduct an uncertainty analysis of the prediction results. This analysis can provide individuals and organizations with more comprehensive early warning information. The probability density plots generated for the six time windows and the calculated Wasserstein distances between the predicted distributions and the true distribution demonstrate that the predicted distributions output by our model can converge to the true value (see Figure 5 and Table 2).
In the experimental analysis of the continuous learning method that we adopted, we compared and evaluated its effectiveness with regard to the full-data training method (see Table 3). The results demonstrated that, when incorporating new data into the training process, the mean squared error of the model trained using our continuous learning method on the test set was lower than that of the model trained on the complete dataset. Additionally, the duration required for training with the new data was markedly reduced compared to that necessary for training with the full dataset, thereby significantly improving the responsiveness of the earthquake early warning system.
This study uses a simple fully connected network as the benchmark, lacking direct comparison with advanced models like CNNs, LSTM, and Transformers in earthquake early warning. This is due to integrating the SVGD method, which has a high computational overhead due to maintaining particles to approximate posterior distributions. Combining SVGD with complex models (with their own complexities, like the CNN’s feature extraction, LSTM’s sequential modeling, and the Transformer’s self-attention) would further increase the computational burden, possibly harming earthquake early warning timeliness. This study prioritizes balancing accuracy, efficiency, and uncertainty quantification, choosing the fully connected network to show that SVGD provides reliable uncertainty estimates while keeping the inference speed acceptable for real-time use. However, given complex models’ accuracy advantages, we suggest combining our SVGD-enhanced model outputs with complex model predictions in practice to form a decision framework. This hybrid approach would use the complex models’ accuracy and our model’s uncertainty estimates to assess the reliability, ensuring both accuracy and timeliness in critical scenarios.

5. Conclusions

The effectiveness of the SVGD-BNN model was verified by analyzing seismic waveform records from seismically active regions in China and Japan. This method leverages the unique characteristics of the initial P-wave to model the uncertainty of model parameters and derive the probabilistic prediction distribution of the peak ground acceleration (PGA). The prediction accuracy of this model is superior to that of the traditional Pd method. For the Chinese earthquake dataset, within the 3-second time window, compared with the variational inference–Bayesian neural network (VI-BNN) method, the SVGD-BNN method shows a relative improvement of 9.2% in the R value and a reduction of 24.4% in the standard deviation (SD) value. Similar conclusions can be drawn by analyzing other indicators of the model. In addition, the prediction variance generated by our model can serve as a valuable indicator of prediction instability. In our experiment, the introduced continuous learning strategy shortened the parameter update time by 133–194 s, enhancing the timeliness of the earthquake early warning system.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/buildings15152718/s1.

Author Contributions

Methodology, C.L.; software, C.L. and Y.L.; writing—original draft preparation, C.L.; data curation, Y.L. and L.F.; writing—review and editing, X.W., Y.L., L.F. and H.G.; visualization, L.F.; formal analysis, H.G.; funding acquisition, X.W.; validation, H.G.; project administration, X.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported the Henan University of Science and Technology College Students’ Innovation and Entrepreneurship Training Program Project under Grant 2024231.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The seismic waveform data in this study were obtained from the publicly accessible database (https://www.iris.edu/hq/, accessed on 23 June 2025) maintained by the Incorporated Research Institutions for Seismology (IRIS) and the website of the National Research Institute for Earth Science and Disaster Resilience (NIED) in Japan (available at https://www.kyoshin.bosai.go.jp/, accessed on 23 June 2025).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Kamigaichi, O.; Saito, M.; Doi, K.; Matsumori, T.; Tsukada, S.; Takeda, K.; Shimoyama, T.; Nakamura, K.; Kiyomoto, M.; Watanabe, Y. Earthquake early warning in Japan: Warning the general public and future prospects. Seismol. Res. Lett. 2009, 80, 717–726. [Google Scholar] [CrossRef] [Scilit]
  2. Hoshiba, M.; Kamigaichi, O.; Saito, M.; Tsukada, S.; Hamada, N. Earthquake Early Warning Starts Nationwide in Japan. EOS Trans. Am. Geophys. Union 2008, 89, 73–74. [Google Scholar] [CrossRef] [Scilit]
  3. Allen, R.; Brown, H.; Hellweg, M.; Khainovski, O.; Lombard, P.; Neuhauser, D. Real-time earthquake detection and hazard assessment by ElarmS across California. Geophys. Res. Lett. 2009, 36, L00B08. [Google Scholar] [CrossRef] [Scilit]
  4. Hongcai, Z.; Jin, X.; Wei, Y.; Li, J.; Kang, L.; Wang, S.; Huang, L.; Yu, P. An earthquake early warning system in Fujian, China. Bull. Seismol. Soc. Am. 2016, 106, 755–765. [Google Scholar] [CrossRef] [Scilit]
  5. Satriano, C.; Elia, L.; Lancieri, M.; Zollo, A.; Iannaccone, G. PRESTo, the earthquake early warning system for Southern Italy: Concepts, capabilities and future perspectives. Soil Dyn. Earthq. Eng. 2011, 31, 137–153. [Google Scholar] [CrossRef] [Scilit]
  6. Espinosa-Aranda, J.; Cuéllar, A.; Rodríguez, F.; Frontana, B.; Ibarrola, G.; Islas, R.; García, A. The seismic alert system of Mexico (SASMEX): Progress and its current applications. Soil Dyn. Earthq. Eng. 2011, 31, 154–162. [Google Scholar] [CrossRef] [Scilit]
  7. Kong, Q.; Allen, R.M.; Schreier, L.; Kwon, Y.W. MyShake: A smartphone seismic network for earthquake early warning and beyond. Sci. Adv. 2016, 2, e1501055. [Google Scholar] [CrossRef] [Scilit]
  8. Wu, Y.M.; Liang, W.T.; Mittal, H.; Chao, W.A.; Lin, C.H.; Huang, B.S.; Lin, C.M. Performance of a low-cost earthquake early warning system (P-alert) during the 2016 ML 6.4 Meinong (Taiwan) earthquake. Seismol. Res. Lett. 2016, 87, 1050–1059. [Google Scholar] [CrossRef] [Scilit]
  9. Boudriki Semlali, B.E.; Molina, C.; Park, H.; Camps, A. First Results on the Systematic Search of Land Surface Temperature Anomalies as Earthquakes Precursors. Remote Sens. 2023, 15, 1110. [Google Scholar] [CrossRef] [Scilit]
  10. Boudriki Semlali, B.E.; Molina, C.; Park, H.; Camps, A. Association of land surface temperature anomalies from GOES/ABI, MSG/SEVIRI, and Himawari-8/AHI with land earthquakes between 2010 and 2021. Geomat. Nat. Hazards Risk 2024, 15, 2324982. [Google Scholar] [CrossRef] [Scilit]
  11. Semlali, B.E.B.; Molina, C.; Librado, M.C.; Park, H.; Camps, A. Potential Earthquake Proxies from Remote Sensing Data. In Climate Change and Risk Management; Pietro, A.D., Martí, J.R., Kumar, V., Eds.; IntechOpen: Rijeka, Croatia, 2024; Chapter 7. [Google Scholar] [CrossRef] [Scilit]
  12. Worden, C.; Gerstenberger, M.; Rhoades, D.; Wald, D. Probabilistic Relationships between Ground-Motion Parameters and Modified Mercalli Intensity in California. Bull. Seismol. Soc. Am. 2012, 102, 204–221. [Google Scholar] [CrossRef] [Scilit]
  13. Du, K.; Ding, B.; Luo, H.; Sun, J. Relationship between Peak Ground Acceleration, Peak Ground Velocity, and Macroseismic Intensity in Western China. Bull. Seismol. Soc. Am. 2018, 109, 284–297. [Google Scholar] [CrossRef] [Scilit]
  14. Kohler, M.; Cochran, E.; Given, D.; Guiwits, S.; Neuhauser, D.; Henson, I.; Hartog, R.; Bodin, P.; Kress, V.; Thompson, S.; et al. Earthquake Early Warning ShakeAlert System: West Coast Wide Production Prototype. Seismol. Res. Lett. 2017, 89, 99–107. [Google Scholar] [CrossRef] [Scilit]
  15. Spallarossa, D.; Kotha, S.R.; Picozzi, M.; Barani, S.; Bindi, D. On-site Earthquake Early Warning: A partially non-ergodic perspective from the site effects point of view. Geophys. J. Int. 2018, 216, 919–934. [Google Scholar] [CrossRef] [Scilit]
  16. Katakami, S.; Korenaga, M.; Iwata, N.; Araki, E.; Takahashi, N.; Noda, S. Immediate and High-Precision Hypocentral Determination for Earthquake Early Warning Applications Using Distributed Acoustic Sensing. Bull. Seismol. Soc. Am. 2024, 115, 174–190. [Google Scholar] [CrossRef] [Scilit]
  17. Kodera, Y.; Yamada, Y.; Hirano, K.; Tamaribuchi, K.; Adachi, S.; Hayashimoto, N.; Morimoto, M.; Nakamura, M.; Hoshiba, M. The Propagation of Local Undamped Motion (PLUM) Method: A Simple and Robust Seismic Wavefield Estimation Approach for Earthquake Early Warning. Bull. Seismol. Soc. Am. 2018, 108, 983–1003. [Google Scholar] [CrossRef] [Scilit]
  18. Allen, R.; Gasparini, P.; Kamigaichi, O.; Böse, M. The Status of Earthquake Early Warning around the World: An Introductory Overview. Seismol. Res. Lett. 2009, 80, 682–693. [Google Scholar] [CrossRef] [Scilit]
  19. Caruso, A.; Colombelli, S.; Elia, L.; Picozzi, M.; Zollo, A. An on-site alert level early warning system for Italy: An onsite early warning system for Italy. J. Geophys. Res. Solid Earth 2017, 122, 2106–2118. [Google Scholar] [CrossRef] [Scilit]
  20. Cheng, Z.; Peng, C.; Chen, M. Real-Time Seismic Intensity Measurements Prediction for Earthquake Early Warning: A Systematic Literature Review. Sensors 2023, 23, 5052. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Lara, P.; Bletery, Q.; Ampuero, J.P.; Inza, L.; Tavera, H. Earthquake Early Warning Starting From 3 s of Records on a Single Station With Machine Learning. J. Geophys. Res. Solid Earth 2023, 128, e2023JB026575. [Google Scholar] [CrossRef] [Scilit]
  22. Wald, D. Practical limitations of earthquake early warning. Earthq. Spectra 2020, 36, 875529302091138. [Google Scholar] [CrossRef] [Scilit]
  23. Hsu, T.Y.; Kuo, C.H.; Wang, H.H.; Chang, Y.W.; Lin, P.Y.; Wen, K.L. The realization of an earthquake early warning system for schools and its performance during the 2019 ML 6.3 Hualien (Taiwan) earthquake. Seismol. Soc. Am. 2021, 92, 342–351. [Google Scholar] [CrossRef] [Scilit]
  24. Jozinović, D.; Lomax, A.; Štajduhar, I.; Michelini, A. Rapid prediction of earthquake ground shaking intensity using raw waveform data and a convolutional neural network. Geophys. J. Int. 2020, 222, 1379–1389. [Google Scholar] [CrossRef] [Scilit]
  25. Chiang, Y.J.; Chin, T.L.; Chen, D.Y. Neural network-based strong motion prediction for on-site earthquake early warning. Sensors 2022, 22, 704. [Google Scholar] [CrossRef] [Scilit]
  26. Prieto, G.A.; Beroza, G.C. Earthquake ground motion prediction using the ambient seismic field. Geophys. Res. Lett. 2008, 35, L14304. [Google Scholar] [CrossRef] [Scilit]
  27. Hsu, T.Y.; Lin, P.Y.; Wang, H.; Chiang, H.; Chang, Y.; Kuo, C.H.; Lin, C.; Wen, K. Comparing the Performance of the NEEWS Earthquake Early Warning System Against the CWB System During the February 6 2018 Mw 6.2 Hualien Earthquake. Geophys. Res. Lett. 2018, 45, 6001–6007. [Google Scholar] [CrossRef] [Scilit]
  28. Hsu, T.Y.; Wu, R.T.; Liang, C.W.; Kuo, C.H.; Lin, C.M. Peak ground acceleration estimation using P-wave parameters and horizontal-to-vertical spectral ratios. Terr. Atmos. Ocean. Sci. 2020, 31, 1–8. [Google Scholar] [CrossRef] [Scilit]
  29. Cremen, G.; Galasso, C. Earthquake early warning: Recent advances and perspectives. Earth-Sci. Rev. 2020, 205, 103184. [Google Scholar] [CrossRef] [Scilit]
  30. Keshari, R.; Vatsa, M.; Singh, R.; Noore, A. Learning structure and strength of CNN filters for small sample size training. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; pp. 9349–9358. [Google Scholar]
  31. Blundell, C.; Cornebise, J.; Kavukcuoglu, K.; Wierstra, D. Weight uncertainty in neural network. In Proceedings of the International Conference on Machine Learning, Lille, France, 7–9 July 2015; PMLR: New York, NY, USA, 2015; pp. 1613–1622. [Google Scholar]
  32. Kononenko, I. Bayesian neural networks. Biol. Cybern. 1989, 61, 361–370. [Google Scholar] [CrossRef] [Scilit]
  33. Kruschke, J.K. Bayesian data analysis. Wiley Interdiscip. Rev. Cogn. Sci. 2010, 1, 658–676. [Google Scholar] [CrossRef] [Scilit]
  34. Rezende, D.; Mohamed, S. Variational inference with normalizing flows. In Proceedings of the International Conference on Machine Learning, Lille, France, 7–9 July 2015; PMLR: New York, NY, USA, 2015; pp. 1530–1538. [Google Scholar]
  35. Liu, Q.; Wang, D. Stein variational gradient descent: A general purpose bayesian inference algorithm. In Proceedings of the Advances in Neural Information Processing Systems 29, Barcelona, Spain, 5–10 December 2016. [Google Scholar]
  36. Hernández-Lobato, J.M.; Adams, R.P. Probabilistic Backpropagation for Scalable Learning of Bayesian Neural Networks. arXiv 2015, arXiv:1502.05336. [Google Scholar] [CrossRef] [Scilit]
  37. Wang, A.; Li, S.; Jianqi, L.; Zhang, H.; Wang, B.; Xie, Z. Prediction of PGA in earthquake early warning using a long short-term memory neural network. Geophys. J. Int. 2023, 234, 12–24. [Google Scholar] [CrossRef] [Scilit]
  38. Campbell, K.; Bozorgnia, Y. Cumulative absolute velocity (CAV) and seismic intensity based on the PEER-NGA database. Earthq. Spectra 2012, 28, 457–485. [Google Scholar] [CrossRef] [Scilit]
  39. Nakamura, Y. On the Urgent Earthquake Detection and Alarm System (UrEDAS). In Proceedings of the 9th World Conference on Earthquake Engineering, Tokyo–Kyoto, Japan, 2–9 August 1988. [Google Scholar]
  40. Nakamura, Y. A New Concept for the Earthquake Vulnerability Estimation and its Application to the Early Warning System. In Early Warning Systems for Natural Disaster Reduction; Zschau, J., Küppers, A., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; pp. 693–699. [Google Scholar] [CrossRef] [Scilit]
  41. Hildyard, M.; Nippress, S.; Rietbrock, A. Event Detection and Phase Picking Using a Time-Domain Estimate of Predominate Period Tpd. Bull. Seismol. Soc. Am. 2008, 98, 3025–3032. [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.