Abstract
Predicting high-fidelity ground motions for future earthquakes is crucial for seismic hazard assessment and infrastructure resilience. Conventional empirical simulations suffer from sparse sensor distribution and geographically localized earthquake locations, while physics-based methods are computationally intensive and require accurate representations of Earth structures and earthquake sources. We propose an artificial intelligence (AI) spectrogram generator, Conditional Generative Modeling for Ground Motion (CGM-GM). CGM-GM leverages earthquake magnitudes and geographic coordinates of earthquakes and sensors as inputs, when postprocessed with phase information, capturing spatially continuous Fourier amplitude spectra (FAS) as well as properties such as P and S arrivals, and waveform durations, without explicit physics constraints. This is achieved through a probabilistic autoencoder that extracts latent distributions in the time-frequency domain and variational sequential models for prior and posterior distributions. We evaluate the performance of CGM-GM using small-magnitude earthquake records from the San Francisco Bay Area, a region with high seismic risks. Here, we report that CGM-GM demonstrates potential for complementing physics-based simulations and non-ergodic empirical ground motion models, as well as shows promise in seismology and beyond.
Subject terms: Seismology, Geophysics
Modelling accurate ground motion is key for seismic hazard analysis. In this study a conditional generative model simulates shaking across the San Francisco Bay Area, matching observed spectra and waveforms and capturing spatial variations with limited stations.
Introduction
The accurate prediction of ground motion waveforms and their characteristics for future earthquakes is crucial for assessing seismic hazards and ensuring the safety and resilience of critical infrastructure. However, it is challenging and resource-intensive to obtain comprehensive ground motion observation across a wide geographic area. Furthermore, predictions of earthquake rupture processes and estimates of the Earth’s elastic model remain to exhibit significant uncertainties. The development of precise and robust ground motion prediction methodologies has long been of great interest in seismology and earthquake engineering to complement the limited recorded data.
Existing ground motion simulation studies branch into two streams: stochastic and physics-based approaches. The first stream, stochastic methods, is rooted in the modulation of Gaussian white noise to reproduce the desired ground motion characteristics1–4. They provide a computationally efficient framework to synthesize ground motion data by calibrating stochastic process-based models to match the historical recordings. However, potential limitations exist in representing spatial continuity and physical phenomena. The second stream, physics-based methods, is based on the numerical solution of wave equations5–9 while considering comprehensive physical characteristics, including fault ruptures10–13, heterogeneous earth media, and site-specific effects. Although recent advancements in high-performance computing enable simulating high-frequency waveforms of large-magnitude earthquakes (e.g., up to 10 Hz)14, physics-based methods are computationally demanding. For example, ground motion simulations of the San Francisco Area over a domain of 120 × 90 × 35 km3 require 128 NVIDIA A100 GPU nodes and take 6 h to compute up to a frequency of 5 Hz. Simulations at higher frequencies tend to be computationally prohibitive and these data are typically complemented by stochastic simulations15,16. Furthermore, physics-based simulations face challenges from significant uncertainties in wave theory, subsurface elastic models, and source characteristics.
More recently, machine learning (ML) and artificial intelligence (AI) have shed new light on this classic task, primarily through their capability of accelerating earthquake modeling processes. One representative line of work involves the use of neural operators for modeling seismic wave propagation17,18 and extending their application to complex 3D elastic wave phenomena19,20. Although these data-driven ML methods show efficiency by avoiding the stringent time-step constraints in traditional time-domain physics-based numerical approaches, they require a large amount of high-fidelity data. Researchers have also resorted to incorporating physical constraints into ML models, such as physics-informed neural networks (PINNs)21. In particular, by leveraging physical principles as a prior, PINNs have been used for predicting ground motions with a limited amount of training data22–24. However, PINNs are known to exhibit fundamental failure modes in network optimization25–27. Moreover, due to their specific design of objective functions, PINNs encounter significant limitations in generalizing to different initial conditions and subsurface elastic models. PINNs can be regarded as physics-based and still suffer from uncertainties in the problem setup. In addition, the spectral bias of fully-connected neural networks used by both neural operators and PINNs typically constrains the resolution to low frequencies23, making broadband synthesis of waveforms challenging. Furthermore, graph neural networks (GNNs) have also been employed to earthquake ground motion synthesis28–30, leveraging their ability to capture spatial correlations. These models are capable of predicting ground motion intensities at more distant stations within the seismic network.
Generative modeling has emerged as an alternative approach for scientific modeling to capture the complexities of natural phenomena, as demonstrated for fluid dynamics31,32 and molecular science33,34. It is an inherently stochastic method that incorporates random noise as inputs and uses probabilistic processes to generate diverse and realistic data. A detailed discussion of commonly used generative models can be found in Supplementary Section 1.2. In the context of earthquake ground motions, generative modeling can produce various waveforms while capturing model uncertainties. This capability is critical due to the significant variability and unpredictability of real-world earthquake ground motions, influenced by factors such as seismic sources, propagation paths, and site conditions. Generative models, which are not governed by specific wave equations or subsurface models, need to learn meaningful wave physics (i.e., governing equations) and site/source conditions from sparse and irregular sensor and earthquake distributions. Generative Adversarial Networks (GANs) and their variants35–39 have demonstrated success in simulating ground motions, which paves the way for generative modeling of ground motions. Their ability to produce broadband waveforms makes them a valuable tool in generative modeling. However, their training process can be sensitive to design choices, often requiring careful tuning to mitigate challenges such as mode collapse and instability40. These prior works focus on using distances, magnitudes, and near-surface velocity structures (Vs30) as inputs, allowing for capturing ergodic stochastic characteristics. Nevertheless, to date, generative AI models have not been demonstrated to capture spatially variable wave propagation effects.
In this paper, we demonstrate that generative modeling can be more robust and powerful by introducing Variational Autoencoder (VAE) and incorporating geospatial coordinate information. This approach presents spatial continuity in median spectral components of the generated ground motions. To achieve this goal, we introduce a Conditional Generative modeling framework for Ground Motion (CGM-GM). Recent work41 indicates that dynamic VAE models are a flexible, user-friendly, and robust alternative to GAN models for time series generation, mitigating common issues such as mode collapse and training instability. More broadly, this feature enhances the accessibility of this framework for seismologists who may not have extensive experience with generative modeling methods. The primary advantage of dynamic VAE models is their use of variational sequential architectures (e.g., recurrent neural networks) in both prior and posterior distributions, which facilitates the capture of the temporal evolution (dynamics) of time series. Our main methodological contribution lies in the design of dynamic VAE models for learning time-frequency information and the conditional embedding of physical parameters, including earthquake magnitudes, depths, and geospatial coordinates. This strategy enables the CGM-GM framework to implicitly learn the underlying physics and spatial heterogeneity from observation data, even without explicitly incorporating physical principles. As a result, our generative models can produce realistic simulations that are aware of as a combination of source, path, and site effects.
We demonstrate the effectiveness of our method by focusing on the San Francisco Bay Area (SFBA). Despite the relative infrequency of large-magnitude earthquakes, the densely populated SFBA remains a region of significant public interest due to its history of such events. This is different from previous studies35,36,38 that have leveraged a much larger number of large-magnitude earthquakes recorded in Japan. Instead, our work uses small-magnitude earthquakes that are crucial for characterizing earthquake ground motion, especially for the linear effects of the path and site. Studying small-magnitude earthquakes allows us to estimate the region-specific variations of the ground motion, which can help reduce seismic hazard in areas where no large earthquake records are available42,43. This task presents a significant challenge since our model needs to generalize well with lower signal-to-noise ratio (S/N) data. Moreover, the seismic data are recorded at a limited number of stations per event due to the released seismic energy and attenuation, which leads to a relatively sparse seismic network compared to wavelengths.
Here, we show the performance of our proposed model in producing Fourier Amplitude Spectra (FAS) maps and their spatial heterogeneity as well as reproducing properties such as P and S arrivals, and waveform durations. These features distinguish our framework from existing generative models in the context of ground motion generation. Additionally, CGM-GM results exhibit good agreement between generated samples and ground truth data across the entire frequency range ([2, 15] Hz), including waveform shapes, peak ground velocity (PGV) distributions, FAS, and arrival time of earthquake ground motions in the SFBA. We recognize that specifying only magnitude and source location does not uniquely define an earthquake event, and limits the capability to generate a set of waveforms from a single event. Nevertheless, we demonstrate that the model is capable of capturing spatial continuity in the median-generated FAS.
Results
Datasets
The dataset for the study of small-magnitude earthquakes in 1990–2022 in the San Francisco region is downloaded from the Northern California Earthquake Data Center (NCEDC) database. The stations of interest are chosen within a 50 km radius from the Hayward fault, and the events with magnitude M < 4 recorded within a rupture distance Rrup < 100 km from the selected stations are included. We focus on two horizontal components H1 and H2 of particle velocity, considering their direct importance for earthquake hazard analysis. The H1 and H2 components correspond to the East-West (E-W) and North-South (N-S) directions, respectively. After the data selection process illustrated in the Methods section, we retain 5, 108 and 5, 301 recordings available for H1 and H2 components, all within the frequency range of [2,15] Hz.
Conditional generative model
We present our CGM-GM framework based on a conditional dynamic VAE framework, as shown in Fig. 1a–d for generating realistic ground-motion time-series data. The objective is to develop a generative model for predicting ground motions at unobserved sources and site locations, with varying earthquake magnitudes, based on actual sparse seismic recordings . Firstly, in our model, we use Short-Time Fourier Transform (STFT)44,45 to decompose the time sequence data x1:T into amplitude and phase information in each time window, where T is the length of the ground motion time series. STFT is an effective technique to extract the time and frequency information, which is also considered in the previous implementation of the GAN model for ground motion generation36. Our dynamic VAE model is trained on amplitude information A1:τ, which is in the time-frequency domain with a new time sample τ used in STFT (τ ≤ T). The key methodological contribution lies in the specific design of the prior and posterior distributions in VAE models, where we incorporate temporal dynamics using recurrent neural networks (RNNs) for learning time-frequency information41,46. Next, we employ two strategies to obtain phase information and apply inverse STFT for waveform reconstruction. Specifically, during training, we use the true phase to recover ground motion data and construct a waveform loss to better capture waveform shapes. In the generation stage, phase information is estimated using phase retrieval methods. Furthermore, to generate the earthquakes in which we are interested, we integrate physical parameters (i.e., earthquake magnitudes and depths, geospatial coordinates of sensors and earthquakes) as conditional variables into the CGM-GM framework using Multilayer Perceptron (MLP) layers. These conditional parameters are fundamental for understanding earthquake applications since ground motions vary spatially due to structural heterogeneity and the magnitudes reflect the energy released by rupturing. Fig. 2c illustrates that we can obtain spatial variations of ground motions at a given scenario of earthquake locations and magnitudes. Another motivation for using geospatial coordinates is to enable neural networks to implicitly learn the physical interactions, such as path, source, and site effects. The rupture distance Rrup and incident angles Aepi can be computed based on the coordinate information (i.e., latitude, longitude, and depth) of earthquake hypocenters and stations of interest. In this study, we have not incorporated variations in focal mechanisms due to our focus on the Hayward fault, where the majority of seismic events exhibit similar focal mechanisms. A more detailed discussion of this aspect is presented in the “Discussion” section.
Fig. 1. Overview of our proposed CGM-GM for ground motion synthesis.
a Illustrates the entire pipeline of the CGM-GM framework, where Short-Time Fourier Transform (STFT) is applied to extract time-frequency features and the dynamic Variational Autoencoder (VAE) model is designed for learning amplitude information. We leverage the true phase information for waveform reconstruction during training and consider phase retrieval methods in the stage of generation. Inverse STFT (iSTFT) is used for waveform reconstruction. Note that the ground motion sequence x(t) is in the time domain (with T time step) and the amplitude spectrogram A(t, ω) is in the time-frequency domain (with a time resolution of τ). b Presents the network architecture of the dynamic VAE. v denotes the concatenation of multiple conditional variables, which are embedded into the VAE model. We use Multilayer Perceptron (MLP) layers to obtain the posterior mean μ1:τ and variance σ1:τ. c Shows the details of designing a sequential prior distribution, where recurrent neural networks (RNNs) are used to incorporate dynamics into the model prior. d Displays the embedding module of conditional variables, where MLP layers (green blocks) and Rectified Linear Unit (ReLU) activation functions (red blocks) are used. ev denotes the latent feature of conditional variables. e Shows the illustrative waveform comparison between the generations (blue) and the corresponding ground truth (red). It shows ground motion sequences of the H1 component with different pairs of earthquake magnitudes M, rupture distances Rrup, earthquake depths Dhyp, and epicenter-station azimuths Aepi. For each scenario, two waveforms are randomly generated given the same conditional variables. More examples of generated waveforms can be found in Supplementary Sections 2.1 and 2.2, including those showing moderate performance and the generations for the H2 component. Note that the waveforms are displayed based on their individual motion durations.
Fig. 2. Illustrative examples of generated Fourier Amplitude Spectra (FAS) maps.
a–c The FAS maps of non-ergodic ground motion model (GMM), CGM-baseline, and our CGM-GM at a frequency of 10 Hz. The red star and blue triangle denote the earthquake source and observation station, respectively. The seismic event is characterized by a magnitude of 3.84 and a depth of 7.94 km. The epicenter, denoted by a red star, is located at a geographic position with a latitude of and a longitude of . A specific spatial region in the San Francisco Bay Area is selected for evaluation. Note that the generated FAS maps from CGM-GM and CGM-baseline represent the median across 30 independent realizations. We provide more generations of FAS maps under various earthquake scenarios in Supplementary Section 2.6. d, e The FAS difference (Residual) between ground truth and the simulated samples from our generative model and the baseline models (non-ergodic GMM and CGM-baseline) for all earthquake recordings across the entire range of frequencies between 2 and 15 Hz. The discrepancy is calculated by the logarithmic residual of FAS values. The solid line and the shaded area denote the mean curves and the region of mean ± std.
Waveforms and spatial continuity
Based on earthquake magnitudes and geospatial coordinates of earthquake sources and stations, the generator part of our CGM-GM framework produces physically consistent ground motion data. Figure 1e shows three representative comparisons between the generated ground motion waveforms and the true recordings. The selected cases involve seismic waveforms of similar magnitudes but with varying rupture distances, epicenter-station azimuths, and earthquake depths. Furthermore, we produce two random generations (blue) with the defined conditional variables to compare them with the corresponding observed data (red) in the time domain. The generated ground motion sequences effectively capture waveform shapes, frequency contents, peak values (e.g., waveform amplitude), and the arrival time, even for events with different rupture distances, depths, and magnitudes. For instance, in the first earthquake (M = 2.51), the model successfully captures the moderate amplitude P-wave packet around 14 s, followed by the large amplitude S-wave and surface wave packets starting at 22 s. Noticeably, the peak amplitudes of wavefields are well generated. More detailed investigations of these peak amplitudes and their spectra are presented in subsequent sections. Another advantage of generative modeling for ground motion waveforms is to perform uncertainty analysis, as discussed in Supplementary Section 2.3. For various earthquake scenarios, the mean curves of generated waveforms can capture dynamic characteristics of ground motion data, and the uncertainty regions show a good coverage of the ground truth. This indicates that our CGM-GM framework is effective and robust for generating earthquake ground motions.
A key aspect of our proposed generative model lies in its ability to approximate ground motions for arbitrary (future) earthquakes and sensor locations. To demonstrate it, we compute FAS maps across a specific region in the SFBA. FAS provides valuable insights into the spatial variability of frequency-dependent ground motion and informs seismic hazard assessments, structural design, and risk mitigation strategies. Specifically, using our CGM-GM framework, we generate the ground motions within a selected sub-region of the SFBA, which spans longitudinally from −122.50∘ to −121.35∘ and latitudinally from 37.27∘ to 38.07∘. A uniform 100 × 100 spatial grid is sampled on a geographic map, yielding 10,000 station coordinates. We use the source parameters of an existing earthquake event that occurred at 3:16 a.m. on October 21, 2011. Our model is not intended to reproduce ground motions of this specific event; rather, the source parameter information is used as a representative case of an earthquake along the Hayward fault. Utilizing these conditions, 10,000 ground motion instances are generated and the FAS values are computed at each spatial location. The FAS map produced by our generative model at 10 Hz is shown in Fig. 2c. It corresponds to the median across 30 realizations, providing a stable and representative depiction of the model output. The generated median FAS map presents spatial continuity even between station pairs separated by large distances (e.g., in the southeast of the map). Moreover, we observe the FAS decay with respect to distances and its variation with azimuths, which validates the effectiveness of capturing spatial heterogeneity in ground motions by embedding geospatial coordinates of sources and stations into the CGM-GM framework. These characteristics are consistently seen across frequencies ranging from 2 to 15 Hz and under various earthquake scenarios, as detailed in Supplementary Section 2.6.
We conduct a comparative study between the generated results and baseline models specifically tailored for the SFBA47–49, to assess the performance of our CGM-GM. The selected baseline models integrate methodologies from both ML and seismology. The first method is the empirical ground motion model (GMM), which is built from the observations and widely employed to predict ground motion intensities for seismic hazard analysis47. We use a state-of-the-art non-ergodic GMM49 that incorporates location-specific effects to accurately represent the ground motion intensities. It is specifically built for the SFBA from the same dataset used in this study. The second one, termed CGM-baseline, uses the same CGM-GM architecture but only includes three conditional variables: earthquake magnitudes, source depths, and epicentral distances. Figure 2a, b illustrates the FAS results of the non-ergodic empirical GMM and CGM-baseline. The median FAS map generated by the CGM-baseline reveals a radial pattern, attributed to the constrained conditional embedding and the implicit assumption of a radially homogeneous Earth subsurface across the spatial domain. Hence, the contours of this FAS map are circular, showing geometrical spreading and average attenuation effects. In contrast, the CGM-GM and non-ergodic GMM capture more local features by incorporating location-specific factors, which provide a more nuanced representation of the spatial variability in ground motions. For instance, both models predict larger motions in the southern region near San Jose compared to the CGM-baseline predictions. This is reasonable considering that the soft bay mud in the area amplifies the ground motions. However, certain discrepancies are observed in the spatial distributions of FAS maps derived from our generative model and the non-ergodic GMM. The CGM-GM predicts slightly larger motions in the northwest region near San Francisco than the non-ergodic GMM, which is also plausible due to the presence of Bay Mud in the area. The CGM-GM predictions exhibit significant variations across the San Andreas and Hayward faults. The sharp lithological changes lead to substantial differences in ground motions on either side of the faults50,51. The first-order agreement between the CGM-GM and non-ergodic GMM demonstrates the validity of our framework in learning hidden ground motions. In Supplementary Section 2.11, we further provide a detailed analysis of the spatial correlation in the FAS values generated by the CGM-GM model.
To further evaluate the accuracy of all models, we investigate their performance against true ground motion recordings for all earthquake events. Figure 2d, e illustrates the averaged FAS differences (Residuals) in the form of a natural logarithm between the true recordings and simulated samples from the non-ergodic GMM, the CGM-baseline, and the CGM-GM model across the entire frequency band of [2,15] Hz. This comparison includes the mean values and their associated uncertainties, represented by one standard deviation (std). Note that our model does not explicitly differentiate between epistemic uncertainty (due to data scarcity) and aleatory variability (arising from randomness of earthquakes)52. Overall, our generative model and the non-ergodic GMM show similar residuals. At frequencies between 3 and 11 Hz, the CGM-GM slightly outperforms the non-ergodic GMM, though its performance declines at frequencies above 11 Hz. The uncertainty ranges for both models overlap significantly. These findings indicate that the CGM-GM performs comparably to the state-of-the-art non-ergodic GMM. In comparison to the CGM baseline, our CGM-GM demonstrates reduced misfits and uncertainty over the entire frequency, confirming the importance of incorporating spatial heterogeneities into generative models.
Amplitude spectra
We further assess the performance of our CGM-GM in the frequency domain, specifically analyzing FAS values and their frequency distributions versus rupture distances. To present a comprehensive evaluation, we select diverse ranges of earthquake magnitudes and geospatial coordinates, generating 100 random samples for each set of conditional variables. For instance, as shown in the top-left part of Fig. 3a, we select the range of earthquake magnitudes in [1.75, 2.25], the rupture distances in [10, 20] km, and the earthquake depths in [5, 10] km, where 63 ground motion sequences in our field dataset. We obtain the statistical values (e.g., 15th percentile, mean, and 85th percentile) for ground truth and generation results using 63 and 6300 samples, respectively.
Fig. 3. The comparative analysis of amplitude spectra information between the ground truth and the generated samples.
a The comparison of Fourier Amplitude Spectra (FAS) results from true seismic recordings and the generated waveforms across diverse conditional variables. Nobs denotes the number of observations. The earthquake depths are within a fixed range in all plots. We show FAS results at the 15th percentile, mean, and 85th percentile. “Gen.” denotes the results from generations. b Compares amplitude spectra heatmaps from ground truth and generated data. The error heatmap is based on the logarithmic division of the ground truth f * and the generations .
Figure 3a shows the variations of FAS values across diverse earthquake magnitudes and rupture distances. Generally, the FAS results simulated by our CGM-GM model align well with the true FAS curves, especially for mean curves. However, we also observe that the CGM-GM model tends to slightly under-predict at the low-frequency part ([2,3] Hz) and over-estimate at the high-frequency region ([13,15] Hz). This is due to the inductive bias of VAE models, where the learned amplitude information is over-smoothing in the logarithmic space. Similarly, this phenomenon is also seen in Fig. 3b, which illustrates a heatmap of frequency distributions versus rupture distances. The error is computed with the division of the natural logarithm of generated FAS and ground truth f*, which is given by . The heatmap of the generation results exhibits a generally good alignment with that of the ground truth data. The discrepancies primarily manifest in low-frequency and high-frequency parts. However, the magnitude of logarithmic division errors remains within an acceptable range (approximately [−1.1, 1.2]). Additionally, we provide the comparisons between the generated and true FAS values across different earthquake depths in Supplementary Section 2.4, and discuss the model performance for the H2 component in Supplementary Section 2.5.
P and S arrival times and durations
To further evaluate the quality of synthesized waveforms, we analyze the statistical properties of amplitudes and arrival times of the generated ground motions in the time domain. Statistical analysis of ground motion data is essential for developing predictive models. In this study, we focus on investigating the relationship between rupture distances and three evaluation metrics: the PGV distribution, the peak arrival time (i.e., arrival times of the wavelet of the PGV), and the arrival times of P- and S- waves. Specifically, we implement 100 realizations of ground motion generation with consistent conditional variables from the SFBA dataset. All the statistical analyses are based on these multiple-run generations. Firstly, the PGV distribution across the rupture distances is visualized in Fig. 4a. The solid lines and dashed lines denote the mean curves and the boundaries of mean ± standard deviation (std), and the dark points present the corresponding PGV values of data samples. We observe that the generated samples effectively capture the distribution of PGV values, including magnitudes and associated uncertainty regions, across diverse rupture distances. It implies that the generations can match the ground truth data well. Moreover, we analyze the arrival of seismic waves. As shown in Fig. 4b, the generated results present a high correlation with the ground truth data in terms of the arrival time versus rupture distances. To gain a deeper insight into the performance of our generative model, we further investigate the performance of capturing the arrival time of P and S waves in the EW direction. Specifically, we use the PhaseNet53 to pick the arrival time of two types of waves with a probability larger than 50%. Figure 4c, d show the cross-validations between the generated and true arrivals, including 3138 and 909 samples for P and S waves, respectively. The result demonstrates a good agreement and validates the effectiveness of our proposed generative modeling method. Additionally, we investigate the durations of the simulated ground motion waveforms. We compute a significant duration D5 − D95 based on area intensities54, which is another important ground motion intensity metric in engineering and seismic hazard analysis. Figure 4e presents the cross-validations of the durations in the EW direction, which exhibits greater scatter than arrival time results illustrated in Fig. 4c, d. It indicates the difficulties of accurately generating and measuring seismic durations. Moreover, we observe a bias primarily for durations within the [0, 3] second range, corresponding to smaller-magnitude earthquakes. Due to lower S/N ratios in such cases, it is challenging to precisely measure the durations from actual seismic data since the relatively high noise level can artificially reduce the measured duration compared to the actual signal duration. Note that the generative model does not explicitly simulate noise, resulting in inherently higher S/N ratios. This potentially amplifies the discrepancy. Nonetheless, despite these limitations, the overall duration trends between observed and generated data demonstrate a good general correlation.
Fig. 4. The statistical evaluation of the generated waveforms.
a Presents the peak ground velocity (PGV) distribution versus rupture distances. The solid lines denote the mean curves and the dashed lines show the boundaries of mean ± std. b Is the scatter plot of the arrival time versus distances for generated and truth waveforms. c, d Show the cross-validations of the arrival time of P and S waves in the East-West (EW) direction, respectively, including scatter plots colored by density and reference fit lines. e represents the cross-validation of the shaking durations in the EW direction. The density is normalized between 0 and 1.
Generalization to larger-magnitude scenarios
Large-magnitude earthquakes produce intense ground shaking across wide areas, posing significant hazards to infrastructure and communities. In this part, we show the magnitude scaling performance of our CGM-GM model compared to empirical GMMs, including a non-ergodic GMM for small-magnitude earthquakes in Section Empirical GMMs and the LA21 model55 for large-magnitude earthquakes in California. Since our model is only trained on small-magnitude earthquakes (M < 4), directly generalizing to large-magnitude scenarios will be challenging. Therefore, we fine-tune our pre-trained model on two larger-magnitude earthquake data: (i) the 2014 Napa earthquake with a magnitude of 6.02 and depth of 11.0 km, and (ii) the 2018 Berkeley earthquake with a magnitude of 4.38 and depth of 12.3 km. In Fig. 5a, we present the scaling performance up to a magnitude of 8, occurring at a hypocenter depth of 7.94 km, with geographic coordinates of latitude and longitude (the same location as shown in Fig. 2). The magnitude is varied from 1 to 8, and waveforms are generated at 73 real-world stations.
Fig. 5. Comparison of the magnitude scaling performance of our CGM-GM model against empirical ground motion models (GMMs) using Fourier Amplitude Spectra (FAS) (10 Hz).

For small-magnitude earthquakes (M < 4), we benchmark the CGM-GM model against the non-ergodic GMM developed for the San Francisco Bay Area49. For large-magnitude earthquakes (M > 4), we compare it with the non-ergodic LA21 model55. The solid line and the shaded area denote the mean curves and the region of mean ± std.
The CGM-GM predictions exhibit a reasonable increase in FAS with increasing magnitude, but deviations from the LA21 model remain challenging. First, the CGM-GM predictions remain lower than those predicted by the LA21 model for magnitudes between 4 and 7. This discrepancy may arise because our model is trained mostly on small-magnitude events, where the earthquake source rupture processes can be approximated as point sources. In contrast, large-magnitude events require consideration of finite rupture planes, which introduces deviations in the predictions. Furthermore, the CGM-GM does not account for nonlinear effects, which are typically weak in small-magnitude events but become significant at higher shaking intensities. As a result, the model produces a near-linear increase in FAS with magnitude, unlike the LA21 model, which captures the saturation behavior observed in large-magnitude events. As shown in Supplementary Section 2.10, the fine-tuning strategy improves the model performance by enhancing FAS values, which further supports this observation. To enhance model performance, we plan to explore fine-tuning using larger datasets and incorporate out-of-distribution generalization methods56. More details can be found in Supplementary Section 2.10.
DISCUSSION
In this section, we discuss the inherent sparsity in real-world earthquake datasets and the selection of conditional variables due to their significant effects on the performance of generative modeling. Due to practical constraints, the spatial distribution of seismic stations is often sparse and non-uniform across the geospatial domain. This sparsity leads to uneven data coverage and gaps in the observation data, which poses challenges for generative models in accurately capturing the underlying spatial heterogeneity. This task is intrinsically complicated since it requires the GMMs to infer spatial variability and site-specific effects without direct observation data. Therefore, the generative models might exhibit artifacts in producing FAS maps for areas lacking measurement data.
In our generative model, focal mechanisms are not included as conditional variables for three reasons. Firstly, our earthquake data are mostly concentrated around the Hayward and San Andreas Faults, where these earthquakes predominantly exhibit similar focal mechanisms (i.e., the right lateral faulting). Importantly, our primary interest is also in generating waveforms along the Hayward Fault with consistent focal mechanisms, which indicates no domain shift for the earthquake rupturing processes. The second reason is the data limitation. As mentioned, there is insufficient variation in the focal mechanisms of the recorded earthquakes to effectively train the network for arbitrary focal mechanism parameters (e.g., fault strike). Typically, generative models work well when the generated data interpolates within the range of the training data, as we have demonstrated for source and receiver locations. Incorporating focal mechanisms as a variable would only yield reliable generations within very limited focal mechanisms. Lastly, the use of geographical coordinates as conditional variables allows us to handle various focal mechanisms, while implicitly assuming that focal mechanisms remain consistent (although magnitudes may vary) for earthquakes occurring at the same geospatial location. In one of our follow-up studies, we use seismic records from the Geysers geothermal field57,58. Earthquakes in this region exhibit a range of mechanisms, including normal, reverse, and strike-slip faulting59. With appropriate parameter settings, the CGM-GM model is capable of capturing focal mechanism variations.
Our model learns to capture the properties, such as spatially continuous FAS, through a combined representation of source, site, and path effects. Nevertheless, these effects are not explicitly separated in the current conditional generative framework. Developing methods for their explicit characterization will be an important direction for future research. Another potential limitation lies in the lack of constraints of path effects. The current generative modeling framework only incorporates spatial information as conditional variables without explicitly considering the correlation between different pairs of stations and sources. The implicit learning of paths can be achievable since the training waveform data naturally contains the path effect. When numerous waveforms are available for training, the generative model should be able to learn the path effects. For instance, Gatti et al.60 has demonstrated the benefits of integrating physics-based simulation data with real-world observations to improve model performance in earthquake ground motion prediction, especially learning the path effect. However, in reality, the data is often limited and we may need an explicit way to include the path effects. To address this issue, we would like to investigate the incorporation of the spatial correlation, such as Matérn covariance function61,62, into generative modeling. Another consideration is the phase spectra, which play a critical role in capturing the complexity of waveform time series. Nevertheless, maintaining phase continuity poses a greater challenge than ensuring spatial continuity of amplitudes due to the rapid variability of phase characteristics. In addition, using phase retrieval methods for waveform reconstruction may lead to inaccurate phase information in the generated samples due to the intrinsic difficulty in such ill-posed inverse problems. VAE models are known to generate relatively smooth amplitude information, which might introduce numerical artifacts during phase retrieval. This may partially explain the occurrence of high-frequency spikes, as shown in Supplementary Section 2.1. Hence, we will consider building a generative model directly in the time domain instead of the time-frequency domain to avoid using phase retrieval methods. Another direction is exploring specific techniques, such as generalized variance parameterization63 and heavy-tailed distributions64, to mitigate the over-smoothing issue in VAE models.
Our proposed generative modeling framework is user-friendly and stable to train. It presents effectiveness and efficiency in producing synthetic ground motions for various earthquake scenarios with different magnitudes and geographical regions in the SFBA. The central part is that our CGM-GM can capture the spatial heterogeneity of FAS without explicit physics constraints. We conduct a comparative assessment of our CGM-GM against baseline models, including the CGM-baseline and state-of-the-art non-ergodic GMMs. The results demonstrate that our method performs comparably to the advanced non-ergodic GMMs. Moreover, we comprehensively evaluate the performance of the model on generative modeling for ground motion synthesis in both time and frequency domains. For the assessment in the time domain, the ground motion samples generated by CGM-GM show excellent capability of capturing waveform shapes, PGVs, and arrival times. For the evaluation in the frequency domain, the FAS values exhibit good agreement between the observed and generated data. Overall, we anticipate that the promising results of scientific generative AI modeling for ground motion synthesis will encourage researchers to explore this area, and the potential issues we have identified will enable the development of more effective methods for enhancing generation quality.
Methods
In this section, we present the technical details of our generative model in the context of ground motion simulation. The entire framework is shown in Fig. 1a–d, including the forward and inverse STFT, the network design of dynamic VAE, the sequential model prior, and the embedding of conditional variables. Here, we use the dataset from the H1 component as an illustrative example, and the results on the H2 component are provided in Supplementary Sections 2.2 and 2.5.
Forward and inverse STFT
STFT has been widely applied in audio processing65,66 and seismic data analysis67–69. It defines a valuable category of time-frequency distributions70 that describe the amplitude and phase relationships with respect to time and frequency for any signal. This is achieved by repeatedly applying the Fourier transform within specific time windows. Typically, we use sliding time windows with overlaps to capture signals throughout the entire time domain. Therefore, leveraging STFT in generative modeling71,72 facilitates the extraction of time and frequency information A from the ground motion sample x. Although the time-frequency resolution of STFT is fixed in the entire time and frequency domains with the chosen time window length, the inverse STFT is relatively stable compared to other 2D spectral decomposition methods, such as the continuous wavelet transform.
The inverse STFT is employed to reconstruct waveforms from amplitude spectrograms . During the generation of artificial ground motions, phase retrieval methods are used to estimate the phase information. To be more concrete, these approaches estimate the missing phase information from available amplitude measurements and then recover the timing and shape of seismic waveforms in earthquake ground motion analysis. Various mathematical techniques are leveraged for phase retrievals, such as iterative algorithms and optimization frameworks. For instance, the Griffin-Lim algorithm73 is widely used thanks to its simplicity and effectiveness. It iteratively refines estimates of seismic wave phases to minimize the discrepancy between the original and reconstructed signals. On the other hand, the Alternating Direction Method of Multipliers (ADMM)74 is a versatile optimization technique that has gained traction in various scientific domains, including ground motion synthesis36. ADMM leverages a convex relaxation framework to decompose complex optimization problems into simpler subproblems and solve the augmented Lagrangian function iteratively. In this paper, we leverage the dynamic VAE model to learn amplitude information and employ the Griffin-Lim algorithm for phase retrieval due to its simplicity. This strategy is chosen over generating phase information with the VAE model, as phase signals are complex and amplitude evolution is relatively smooth over time.
Dynamic VAEs
We consider a dynamic VAE architecture since it is specifically designed to model sequential data with temporal correlations by extending from standard VAEs41,46,75. Although VAE models have achieved great success in image processing tasks, the absence of explicit temporal modeling in standard VAEs hinders their effectiveness in tackling time series and audio data76.
The dynamic VAE models focus on a sequence-to-sequence mode for encoding and decoding. Namely, the latent variable is constructed in the form of a temporal sequence instead of a static vector. Let us consider a time sequence , where T is the sequence length. Dynamic VAE models typically yield a sequence of latent variables . Therefore, the joint distribution of latent and observed sequences can be reformulated as
| 1 |
Eq. (1) is a generalized version that describes the generative process in dynamic VAEs. Researchers usually resort to state-space models (SSMs) to simplify the dependencies in conditional distributions of Eq. (1)76. One of the most commonly used SSM families is RNNs, which are specifically designed network architectures for handling sequential data and capturing temporal dependencies among data points. However, a significant challenge in training vanilla RNNs is the vanishing and exploding gradient problem. The reason behind this phenomenon is that the gradients can either shrink exponentially (vanishing gradients) or grow exponentially (exploding gradients) when RNNs propagate information through time. This instability hinders effective training and prevents the network from learning long-term dependencies. To alleviate such issues, gating-based RNNs, such as LSTM77 and GRU78, are proposed to control the flow of information through the network.
By incorporating the auto-regressive recurrence into dynamic VAE models, the generative process can be simplified as
| 2 |
Moreover, the approximate posterior can be reformulated as
| 3 |
where qϕ(z1:T∣x1:T) works as an inference model for the latent sequence z1:T from the observed sequential data.
The training of a dynamic VAE model involves optimizing the evidence lower bound (ELBO) on the marginal likelihood of the observed data x1:T. For a given data sample x1:T, the marginal likelihood is defined as
| 4 |
where DKL( ⋅ ) denotes the Kullback-Leibler (KL) divergence between the approximate and true posterior distributions. DKL( ⋅ ) is a non-negative term. Therefore, represents the ELBO, which is given by
| 5 |
The first and second terms on the right-hand side (RHS) are reconstruction loss and a KL-divergence term, respectively. The KL-divergence works as a regularizer for ϕ that promotes the approximate posterior qϕ(z1:T∣x1:T) to closely resemble the prior pθ(z1:T).
Network design
As shown in Fig. 1b, our dynamic VAE model is trained on amplitude information A1:τ (τ < T) to facilitate the learning of time-frequency features of ground motion data. In the CGM-GM framework, we incorporate a GRU layer78 into the Encoder to learn the dynamics. Subsequently, two MLP layers yield the posterior mean μt and variance σt at each time stamp t. Hence, the reparameterization trick to produce the posterior sequence z1:τ can be written as
| 6 |
The sampled latent sequence is fed into the Decoder part to obtain the reconstructed amplitude information . In the training stage, we directly leverage the true phase information to reconstruct the time series . In the generation stage, we conduct the inverse STFT procedure to generate the artificial ground motion sequence by utilizing the phase retrieval method, i.e., the Griffin-Lim algorithm73. Furthermore, we design a sequence of Gaussian distributions to serve as a dynamic model prior79, as shown in Fig. 1c. The mathematical formulation is given by
| 7 |
The model prior distribution (i.e., mean and variance) is learned through a sub-network architecture θ*, where another GRU layer and two MLP layers are employed for capturing the underlying dynamics. Moreover, to better capture the waveform shapes, we incorporate another waveform loss to the total loss function apart from the reconstruction loss of amplitude information and the KL-divergence in Eq. (5). The waveform loss is constructed by calculating the difference between the true waveforms and the recovered counterparts using the true phase information in the training. The final loss function is defined as
| 8 |
Here, α and β are two weighting coefficients for waveform loss in the time domain and the KL-divergence term. The incorporation of waveform loss facilitates the capturing of peak values and the generation of realistic earthquake ground motion shapes.
Generally, we clarify the training (reconstruction) and inference (generation) processes of our CGM-GM as follows. In the training stage, the dynamic VAE model is optimized to reconstruct input waveforms from their encoded latent representations z1:τ. This process enables the latent space to learn a meaningful representation of the underlying seismic data. The prior distribution acts as a regularization term through the KL-divergence, enforcing the latent space distribution to remain close to the prior. The reconstruction loss and the KL divergence regularization guide the model in learning a smooth and structured latent space and facilitate effective sampling during the generative process. Unlike the training stage for reconstruction, the inference process (generation) does not rely on existing input waveforms to synthesize ground motion data. During inference, ground motion waveforms are generated by directly sampling from the prior distribution and passing it through the decoder to produce new waveforms. By incorporating conditional variables (e.g., geospatial coordinates, earthquake magnitudes, and depths) into the model prior and the decoder, the entire framework ensures the generation of consistent and realistic ground motion waveforms for arbitrary earthquake scenarios.
Embedding conditional variables
We design an embedding module, consisting of a stack of MLP layers, to integrate the conditional variables into the framework. The illustration of embedding conditional variables is presented in Fig. 1d. To fully encode physical knowledge into the generative process, we apply this shareable embedding module to the encoder, the decoder, and the model prior. For the embedded physical variables, we use earthquake magnitudes and the geospatial coordinates of earthquake sources and stations. The primary rationale for incorporating geospatial coordinates is that many physical properties, such as source and site effects, are inherently coordinate-based and crucial for ground motion simulation. Neural networks can implicitly learn representations of the underlying physics and kinematics with the coordinates as inputs21,80. Note that, in previous papers35,36, the researchers also use the information Vs30. Given that Vs30 is an empirical parameter based on geological coordinates, the embedding network should be capable of implicitly capturing these velocity properties with coordinate information as inputs. Vs30 is a proxy correlated with site-specific ground-motion properties, and it is often used in the development of ground-motion models. However, estimations of Vs30 are not always available at all sites and can present significant uncertainties. Thus, we choose not to integrate Vs30 into our model as a parameter and instead estimate local site conditions directly from ground motion data with conditional generative modeling.
For comparison, the CGM-baseline employs earthquake magnitudes, source depths, and epicentral distances as conditional variables. The details of conditional variables for CGM-GM and CGM-baseline are listed in Table 1.
Table 1.
Conditional variables used in CGM models
| Model | Conditional variables |
|---|---|
| CGM-baseline | Earthquake magnitudes, source depths, and epicentral distances |
| CGM-GM | Earthquake magnitudes, geospatial coordinates of earthquake sources and stations |
Data selection
A total of 626,423 recordings are collected that spans from 10 s prior to the event time to 60 s after the event time, leading to each recording of 70 s with 7000 time steps per component. We perform a selection procedure to ensure only recordings with an acceptable S/N ratio are used. Specifically, the first 10 s of each recording are considered as noise, while the subsequent 60 s are analyzed as earthquake signals. The Fourier transforms of both the noise and the signal are calculated up to the Nyquist frequency of 50 Hz, and the Fourier amplitudes are smoothed using the Konno-Ohmachi window procedure81 with a smoothing parameter bexp = 2081. The S/N ratio is computed for each recording by comparing the amplitude spectra of the signal and noise. We keep those recordings with an S/N ratio exceeding 3 across the frequency range of 2–15 Hz. Hence, approximately 15,000 recordings per component are retained. Additionally, we conduct a rigorous visual inspection for each time series to exclude those with equivalent noise levels in the first 10 seconds and the last 60 s. This process results in 5, 108 and 5, 301 recordings available for horizontal components H1 and H2, respectively. After selecting the final recordings, a bandpass filter is applied over the frequency range of interest in [2,15] Hz.
Figure 6a, b presents the distribution of earthquake depth and the scatter plot of the corresponding magnitudes and rupture distances, respectively. The locations of selected stations and events for the H1 component are shown in Fig. 6c, d. Note that our methods are applicable to diverse earthquake ground motion datasets (i.e., different magnitude ranges) and geographical regions. More complete information about the dataset can be found in ref. 82.
Fig. 6. An overview of the earthquake dataset of the H1 component in the San Francisco Bay Area.
a Shows the distribution of earthquake depths. b Presents the magnitude-distance distribution of this dataset. Each dot indicates the magnitude-distance of each source-receiver pair. c, d The spatial distributions of observation stations and earthquake sources, respectively.
Implementations
This part includes the data preprocessing and the training implementations. The last 60 seconds of the SFBA dataset are selected for ground motion generation. The dataset is then split into {80%, 20%} for training and testing, respectively. Namely, the number of training samples is 4086 for the experiments. Firstly, we use STFT to obtain the time-frequency information from the ground motion data since the CGM-GM model focuses on learning the amplitude spectrograms. The window length and hop length are set as 160 and 46, respectively. Therefore, the amplitude spectrogram has a size of 81 × 131, where 81 is the frequency range and 131 denotes the sequence length. The window length of 160 is equivalent to 1.6 s. We use signals between [2,15] Hz for our analysis, and this window length contains three wavelets for the lowest frequency to resolve signals at this frequency. The hop length is more arbitrary, and Welch83 recommends using a length shorter than half of the window length. Due to the computational cost, we use 46 in this study. We add a minimum threshold of 10−10 for amplitude spectrograms and then convert them into the logarithmic space. Furthermore, the logarithmic time-frequency coefficients are normalized between 0 and 1. For conditional variables, we consider the earthquake magnitudes and geospatial coordinates of sources and stations. Each variable is scaled within [0, 1] separately.
For the model parameters in CGM-GM, we consider a 3-layer MLP with feature sizes of [32, 32, 16] for embedding conditional variables. The label embedding module, as shown in Fig. 1d, is kept fixed for different parts of the network. For the Encoder component, we use one GRU layer with a hidden dimension of 144 and two independent 2-layer MLPs with dimensions of [64, 32] to obtain the sequential latent variables. Note that the outputs from the encoder part, μ1:τ and σ1:τ, have the same sequence length τ as the input amplitude spectrogram A1:τ. For the decoder, a stack of MLP layers with feature sizes of [128, 128, 81] is employed for reconstructing the amplitude information. For the sequential prior model, we use one GRU layer with a hidden dimension of 32 and two independent linear layers to get the sequential prior variables. This model architecture contains 0.17 million parameters.
We use the Adam84 optimizer to train the proposed method for 5000 epochs. The learning rate is set as 8 × 10−4 initially and decays every 100 steps with a ratio of 0.99. The weight decay parameter is set as 5 × 10−5 and the batch size is 128. Furthermore, we leverage the grid search to select the hyperparameters in the loss function. The optimal parameters are defined as α = 0.5 and β = 0.003.
Empirical GMMs
Empirical ergodic and non-ergodic GMMs for velocity FAS values are developed to evaluate the ground motions generated by our CGM-GM. Specifically, ergodic GMMs focus on the average scaling of ground motions, and non-ergodic GMMs account for the spatial distribution of ground motions due to path effects related to the 3-D velocity structure. For the ergodic GMM, the functional formulation of the natural log of FAS values, i.e., , is given by
| 9 |
where denote magnitude scaling, geometrical spreading, and depth scaling terms, respectively. δBe, δS2Ss, δPe represent the source, site, and path effects with zero-mean normal distributions. δWSes is the within-site residual, which is also assumed to be normally distributed. The coefficients are derived through linear regression, ensuring a smooth spectrum and imposing physical constraints on the coefficients85. Moreover, the total standard deviation of ergodic GMMs is defined as,
| 10 |
where τ, ϕS2S, ϕSS denote the standard deviation of the mixed-effects coefficients δBe, δS2Ss, δWSes, respectively. The parameters of the ergodic GMM in the SFBA at different frequency bands (2, 5, 10, and 15 Hz) are detailed in Table 2.
Table 2.
Summary of coefficients in the ergodic ground motion model at different frequencies
| Frequency | α0 | α1 | α2 | α3 | σfas |
|---|---|---|---|---|---|
| 2 | −16.2739 | 3.0407 | −1.4842 | 0.0060 | 0.72 |
| 5 | −13.5466 | 2.6166 | −1.7052 | 0.0178 | 0.77 |
| 10 | −13.4538 | 2.2958 | −1.9021 | 0.0339 | 0.81 |
| 15 | −14.4238 | 2.1082 | −2.0292 | 0.0461 | 0.87 |
For the non-ergodic GMMs, the source, site, and path terms are considered spatially dependent, which are functions of the coordinates of sources and sites. Therefore, the non-ergodic GMM is re-written as49,
| 11 |
where LANNP26Adj−erg is the median from the ergodic model as shown in Eq. (9), , δS2S, δP2P are the median shifts of the source, site, and path terms. and represent the earthquake and site locations. Additionally, the term δB0 + δWSPes denotes the aleatory variability apart from the systematic source, site, and path effects. The Gaussian Process (GP) regression is leveraged to fit the available ground motion data within the SFBA dataset by providing the medians and epistemic uncertainty49. The non-ergodic GMMs simulate FAS maps thanks to the capability of spatial interpolation of GP. Furthermore, let the τ0 and ϕSP represent the standard deviations of and δWSPes, respectively. The total aleatory variance of non-ergodic GMMs is formulated as,
| 12 |
We use the same earthquake scenario and 100 × 100 spatial coordinates of stations to synthesize the non-ergodic FAS maps.
Supplementary information
Acknowledgements
This work was supported by the Laboratory Directed Research and Development Program of Lawrence Berkeley National Laboratory under U.S. Department of Energy Contract No. DE-AC02-05CH11231. M.W.M. and R.N. acknowledge the support by the Statewide California Earthquake Center (Awards Nos. 24123 and 25303). SCEC is funded by NSF Cooperative Agreement EAR-2225216 and USGS Cooperative Agreement G24AC00072-00. Additional support was provided by DOE Grant DE-SC0016520. M.W.M. would also like to acknowledge the DOE Competitive Portfolios grant and the DOE SciGPT grant. P.R. would like to thank Dr. Rasmus Malik Hoeegh Lindrup for his valuable discussions on generative modeling.
Author contributions
P.R. developed the algorithm and performed the tests and analysis. P.R., R.N., and M.W.M. co-designed the study. P.R., I.N., and J.S. conducted the experiments. M.L. built the SFBA dataset and developed the ergodic and non-ergodic ground motion models. M.L., Z.B., and N.N. performed the geophysical evaluations. O.A.M., D.M., O.A., and N.B.E. contributed to the algorithm design and provided support for model development. R.N. and M.W.M. advised the research. All authors contributed to the research discussions, writing, and editing of the paper.
Peer review
Peer review information
Nature Communications thanks Filippo Gatti and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Data availability
Waveform data, metadata, or data products for this study were accessed through the Northern California Earthquake Data Center (NCEDC) under DOI: 10.7932/NCEDC (10.7932/NCEDC). The downloaded datasets were preprocessed and provided from82 under 10.17603/ds2-necm-5q32.
Code availability
All source code to reproduce the results in this study is available on GitHub at https://github.com/paulpuren/cgm-gmand is archived on Zenodo at 10.5281/zenodo.1848027086. We provide the training, generation, evaluation, and visualization details.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-026-70719-2.
References
- 1.Naeim, F. & Lew, M. On the use of design spectrum compatible time histories. Earthq. Spectra11, 111–127 (1995). [Google Scholar]
- 2.Rezaeian, S. & Der Kiureghian, A. Simulation of synthetic ground motions for specified earthquake and site characteristics. Earthq. Eng. Struct. Dyn.39, 1155–1180 (2010). [Google Scholar]
- 3.Konakli, K. & Der Kiureghian, A. Simulation of spatially varying ground motions including incoherence, wave-passage and differential site-response effects. Earthq. Eng. Struct. Dyn.41, 495–513 (2012). [Google Scholar]
- 4.Sabetta, F., Pugliese, A., Fiorentino, G., Lanzano, G. & Luzi, L. Simulation of non-stationary stochastic ground motions based on recent Italian earthquakes. Bull. Earthq. Eng.19, 3287–3315 (2021). [Google Scholar]
- 5.Kelly, K. R., Ward, R. W., Treitel, S. & Alford, R. M. Synthetic seismograms: a finite-difference approach. Geophysics41, 2–27 (1976). [Google Scholar]
- 6.Virieux, J. P-sv wave propagation in heterogeneous media: velocity-stress finite-difference method. Geophysics51, 889–901 (1986). [Google Scholar]
- 7.Bao, H. et al. Large-scale simulation of elastic wave propagation in heterogeneous media on parallel computers. Comput. Methods Appl. Mech. Eng.152, 85–102 (1998). [Google Scholar]
- 8.Komatitsch, D. & Vilotte, J.-P. The spectral element method: an efficient tool to simulate the seismic response of 2d and 3d geological structures. Bull. Seismol. Soc. Am.88, 368–392 (1998). [Google Scholar]
- 9.Komatitsch, D. & Tromp, J. Introduction to the spectral element method for three-dimensional seismic wave propagation. Geophys. J. Int.139, 806–822 (1999). [Google Scholar]
- 10.Irikura, K. Semi-empirical estimation of strong ground motions during large earthquakes. Bull. Disaster Prev. Res. Inst.33, 63–104 (1983). [Google Scholar]
- 11.Motazedian, D. & Atkinson, G. M. Stochastic finite-fault modeling based on a dynamic corner frequency. Bull. Seismol. Soc. Am.95, 995–1010 (2005). [Google Scholar]
- 12.Zeng, Y., Anderson, J. G. & Yu, G. A composite source model for computing realistic synthetic strong ground motions. Geophys. Res. Lett.21, 725–728 (1994). [Google Scholar]
- 13.Kozdon, J. E. & Dunham, E. M. Rupture to the trench: dynamic rupture simulations of the 11 March 2011 Tohoku earthquake. Bull. Seismol. Soc. Am.103, 1275–1289 (2013). [Google Scholar]
- 14.McCallen, D. et al. Eqsim-a multidisciplinary framework for fault-to-structure earthquake simulations on exascale computers part I: computational models and workflow. Earthq. Spectra37, 707–735 (2021). [Google Scholar]
- 15.Graves, R. W. & Pitarka, A. Broadband ground-motion simulation using a hybrid approach. Bull. Seismol. Soc. Am.100, 2095–2123 (2010). [Google Scholar]
- 16.Mai, P. M., Imperatori, W. & Olsen, K. B. Hybrid broadband ground-motion simulations: combining long-period deterministic synthetics with high-frequency multiple s-to-s backscattering. Bull. Seismol. Soc. Am.100, 2124–2142 (2010). [Google Scholar]
- 17.Yang, Y., Gao, A. F., Azizzadenesheli, K., Clayton, R. W. & Ross, Z. E. Rapid seismic waveform modeling and inversion with neural operators. IEEE Trans. Geosci. Remote Sens.61, 1–12 (2023). [Google Scholar]
- 18.Zhu, M., Feng, S., Lin, Y. & Lu, L. Fourier-deeponet: Fourier-enhanced deep operator networks for full waveform inversion with improved accuracy, generalizability, and robustness. Comput. Methods Appl. Mech. Eng.416, 116300 (2023). [Google Scholar]
- 19.Zou, C., Azizzadenesheli, K., Ross, Z. E. & Clayton, R. W. Deep neural helmholtz operators for 3-d elastic wave propagation and inversion. Geophys. J. Int.239, 1469–1484 (2024). [Google Scholar]
- 20.Lehmann, F., Gatti, F., Bertin, M. & Clouteau, D. 3d elastic wave propagation with a factorized fourier neural operator (f-fno). Comput. Methods Appl. Mech. Eng.420, 116718 (2024). [Google Scholar]
- 21.Raissi, M., Perdikaris, P. & Karniadakis, G. E. Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys.378, 686–707 (2019). [Google Scholar]
- 22.Song, C., Alkhalifah, T. & Waheed, U. B. Solving the frequency-domain acoustic vti wave equation using physics-informed neural networks. Geophys. J. Int.225, 846–859 (2021). [Google Scholar]
- 23.Rasht-Behesht, M., Huber, C., Shukla, K. & Karniadakis, G. E. Physics-informed neural networks (pinns) for wave propagation and full waveform inversions. J. Geophys. Res. Solid Earth127, e2021JB023120 (2022). [Google Scholar]
- 24.Ren, P. et al. SeismicNet: physics-informed neural networks for seismic wave modeling in semi-infinite domain. Comput. Phys. Commun.295, 109010 (2024). [Google Scholar]
- 25.Krishnapriyan, A., Gholami, A., Zhe, S., Kirby, R. & Mahoney, M. W. Characterizing possible failure modes in physics-informed neural networks. In Proc.Conference on Neural Information Processing Systems Vol. 34, 26548–26560 (ACM, 2021).
- 26.Négiar, G., Mahoney, M. W. & Krishnapriyan, A. S. Learning differentiable solvers for systems with hard constraints. In Proc.International Conference on Learning Representations (OpenReview.net, 2023).
- 27.Hansen, D., Maddix, D. C., Alizadeh, S., Gupta, G. & Mahoney, M. W. Learning physical models that can respect conservation laws. In Proc.International Conference on Machine Learning Vol. 202, 12469–12510 (Proceedings of Machine Learning Research, 2023).
- 28.Clements, T., Cochran, E. S., Baltay, A., Minson, S. E. & Yoon, C. Grapes: earthquake early warning by passing seismic vectors through the grapevine. Geophys. Res. Lett.51, e2023GL107389 (2024). [Google Scholar]
- 29.Bloemheuvel, S., van den Hoogen, J., Jozinović, D., Michelini, A. & Atzmueller, M. Graph neural networks for multivariate time series regression with application to seismic data. Int. J. Data Sci. Anal.16, 317–332 (2023). [Google Scholar]
- 30.Murshed, R. U. et al. Real-time seismic intensity prediction using self-supervised contrastive gnn for earthquake early warning. IEEE Trans. Geosci. Remote Sens.62, 1–19 (2024). [Google Scholar]
- 31.Sun, L., Han, X., Gao, H., Wang, J.-X. & Liu, L. Unifying predictions of deterministic and stochastic physics in mesh-reduced space with sequential flow generative model. In Proc.Conference on Neural Information Processing Systems Vol. 36 (ACM, 2024).
- 32.Gao, H. et al. Bayesian conditional diffusion models for versatile spatiotemporal turbulence generation. Comput. Methods Appl. Mech. Eng.427, 117023 (2024). [Google Scholar]
- 33.Eckmann, P. et al. LIMO: latent inceptionism for targeted molecule generation. In Proc.International Conference on Machine Learning, Vol. 162, 5777–5792 (Proceedings of Machine Learning Research, 2022). [PMC free article] [PubMed]
- 34.Xu, M., Powers, A. S., Dror, R. O., Ermon, S. & Leskovec, J. Geometric latent diffusion models for 3D molecule generation. In Proc. International Conference on Machine Learning, 38592–38610 (Proceedings of Machine Learning Research, 2023).
- 35.Florez, M. A. et al. Data-driven synthesis of broadband earthquake ground motions using artificial intelligence. Bull. Seismol. Soc. Am.112, 1979–1996 (2022). [Google Scholar]
- 36.Esfahani, R. D., Cotton, F., Ohrnberger, M. & Scherbaum, F. Tfcgan: nonstationary ground-motion simulation in the time–frequency domain using conditional generative adversarial network (cgan) and phase retrieval methods. Bull. Seismol. Soc. Am.113, 453–467 (2023). [Google Scholar]
- 37.Matinfar, M., Khaji, N. & Ahmadi, G. Deep convolutional generative adversarial networks for the generation of numerous artificial spectrum-compatible earthquake accelerograms using a limited number of ground motion records. Comput. Aided Civ. Infrastruct. Eng.38, 225–240 (2023). [Google Scholar]
- 38.Shi, Y., Lavrentiadis, G., Asimaki, D., Ross, Z. E. & Azizzadenesheli, K. Broadband ground-motion synthesis via generative adversarial neural operators: development and validation. Bull. Seismol. Soc. Am.114, 2151–2171 (2024). [Google Scholar]
- 39.Aquib, T. A. & Mai, P. M. Broadband ground-motion simulations with machine-learning-based high-frequency waves from Fourier neural operators. Bull. Seismol. Soc. Am.114, 2846–2868 (2024). [Google Scholar]
- 40.Arjovsky, M., Chintala, S. & Bottou, L. Wasserstein generative adversarial networks. In Proc.International Conference on Machine Learning, 214–223 (Proceedings of Machine Learning Research, 2017).
- 41.Naiman, I., Erichson, N. B., Ren, P., Mahoney, M. W. & Azencot, O. Generative modeling of regular and irregular time series data via Koopman Vaes. In Proc.International Conference on Learning Representations (OpenReview.net, 2024).
- 42.Lavrentiadis, G. & Abrahamson, N. A non-ergodic spectral acceleration ground motion model for California developed with random vibration theory. Bull. Earthq. Eng.21, 5265–5291 (2023). [Google Scholar]
- 43.Chiou, B., Youngs, R., Abrahamson, N. & Addo, K. Ground-motion attenuation model for small-to-moderate shallow crustal earthquakes in California and its implications on regionalization of ground-motion prediction models. Earthq. Spectra26, 907–926 (2010). [Google Scholar]
- 44.Allen, J. B. & Rabiner, L. R. A unified approach to short-time fourier analysis and synthesis. Proc. IEEE65, 1558–1564 (1977). [Google Scholar]
- 45.Boashash, B.Time-frequency Signal Analysis and Processing: A Comprehensive Reference (Academic Press, 2015).
- 46.Goyal, A., Sordoni, A., Côté, M., Ke, N. R. & Bengio, Y. Z-forcing: training stochastic recurrent networks. In Proc.Conference on Neural Information Processing Systems 6713–6723 (ACM, 2017).
- 47.Lavrentiadis, G. et al. Overview and introduction to development of non-ergodic earthquake ground-motion models. Bull. Earthq. Eng.21, 5121–5150 (2023). [Google Scholar]
- 48.Lacour, M. Efficient non-ergodic ground-motion prediction for large datasets. Bull. Earthq. Eng.21, 5209–5232 (2023). [Google Scholar]
- 49.Lacour, M., Abrahamson, N., Nakata, R., Nakata, N. & Pinilla-Ramos, C. I. A nonergodic ground-motion model for the San Francisco Bay Area for small-magnitude earthquakes. Bull. Seismol. Soc. Am. 10.1785/0120250094 (2026).
- 50.Paolucci, R. et al. Broadband ground motions from 3d physics-based numerical simulations using artificial neural networks. Bull. Seismol. Soc. Am.108, 1272–1286 (2018). [Google Scholar]
- 51.Rodgers, A. J. et al. Broadband (0–5 hz) fully deterministic 3d ground-motion simulations of a magnitude 7.0 hayward fault earthquake: comparison with empirical ground-motion models and 3d path and site effects from source normalized intensities. Seismol. Res. Lett.90, 1268–1284 (2019). [Google Scholar]
- 52.Liou, I. & Abrahamson, N. Framework for aleatory variability and epistemic uncertainty for the ground-motion characterization based on the level of simplification. Bull. Seismol. Soc. Am.115, 296–314 (2024). [Google Scholar]
- 53.Zhu, W. & Beroza, G. C. Phasenet: a deep-neural-network-based seismic arrival-time picking method. Geophys. J. Int.216, 261–273 (2019). [Google Scholar]
- 54.Trifunac, M. D. & Brady, A. G. A study on the duration of strong earthquake ground motion. Bull. Seismol. Soc. Am.65, 581–626 (1975). [Google Scholar]
- 55.Lavrentiadis, G., Abrahamson, N. A. & Kuehn, N. M. A non-ergodic effective amplitude ground-motion model for California. Bull. Earthq. Eng.21, 5233–5264 (2023).
- 56.Sun, Y. et al. Test-time training with self-supervision for generalization under distribution shifts. In Proc.International Conference on Machine Learning 9229–9248 (ACM, 2020).
- 57.Nakata, R. et al. Simulating seismic wavefields using generative artificial intelligence. LeadEdge44, 123–132 (2025). [Google Scholar]
- 58.Bi, Z. et al. Advancing data-driven broadband seismic wavefield simulation with multiconditional diffusion model. IEEE Trans. Geosci. Remote Sens.63, 1–9 (2025). [Google Scholar]
- 59.Lin, G. & Wu, B. Seismic velocity structure and characteristics of induced seismicity at the Geysers Geothermal Field, eastern California. Geothermics71, 225–233 (2018).
- 60.Gatti, F. & Clouteau, D. Towards blending physics-based numerical simulations and seismic databases using generative adversarial network. Comput. Methods Appl. Mech. Eng.372, 113421 (2020). [Google Scholar]
- 61.Genton, M. G. Classes of kernels for machine learning: a statistics perspective. J. Mach. Learn. Res.2, 299–312 (2001). [Google Scholar]
- 62.Minasny, B. & McBratney, A. B. The matérn function as a general model for soil variograms. Geoderma128, 192–207 (2005). [Google Scholar]
- 63.Takida, Y. et al. Preventing oversmoothing in vae via generalized variance parameterization. Neurocomputing509, 137–156 (2022). [Google Scholar]
- 64.Liang, F. T., Hodgkinson, L. & Mahoney, M. W. A heavy-tailed algebra for probabilistic programming. In Proc. Conference on Neural Information Processing Systems Vol. 36 (ACM, 2024).
- 65.Allen, J. Short term spectral analysis, synthesis, and modification by discrete Fourier transform. IEEE Trans. Acoust., Speech, Signal Process.25, 235–238 (1977). [Google Scholar]
- 66.Allen, J. Applications of the short time fourier transform to speech processing and spectral analysis. In Proc.ICASSP’82. IEEE International Conference on Acoustics, Speech, and Signal Processing Vol. 7, 1012–1015 (IEEE, 1982).
- 67.Castagna, J. P., Sun, S. & Siegfried, R. W. Instantaneous spectral analysis: detection of low-frequency shadows associated with hydrocarbons. Lead. Edge22, 120–127 (2003). [Google Scholar]
- 68.Huang, Z. -l, Zhang, J., Zhao, T. -h & Sun, Y. Synchrosqueezing s-transform and its application in seismic spectral decomposition. IEEE Trans. Geosci. Remote Sens.54, 817–825 (2015). [Google Scholar]
- 69.Wu, G. & Zhou, Y. Seismic data analysis using synchrosqueezing short time fourier transform. J. Geophys. Eng.15, 1663–1672 (2018). [Google Scholar]
- 70.Cohen, L. Time-frequency Analysis Vol. 778 (Prentice hall New Jersey, 1995).
- 71.Kumar, K. et al. Melgan: generative adversarial networks for conditional waveform synthesis. In Proc.Conference on Neural Information Processing Systems Vol. 32 (ACM, 2019).
- 72.Kong, J., Kim, J. & Bae, J. Hifi-gan: generative adversarial networks for efficient and high fidelity speech synthesis. In Proc.Conference on Neural Information Processing Systems Vol. 33, 17022–17033 (ACM, 2020).
- 73.Griffin, D. & Lim, J. Signal estimation from modified short-time fourier transform. IEEE Trans. Acoust. Speech, Signal Process.32, 236–243 (1984). [Google Scholar]
- 74.Vial, P.-H., Magron, P., Oberlin, T. & Févotte, C. Phase retrieval with Bregman divergences and application to audio signal recovery. IEEE J. Sel. Top. Signal Process.15, 51–64 (2021). [Google Scholar]
- 75.Hsu, W.-N., Zhang, Y. & Glass, J. Unsupervised learning of disentangled and interpretable representations from sequential data. In Proc. Conference on Neural Information Processing Systems Vol. 30 (2017).
- 76.Girin, L. et al. Dynamical variational autoencoders: a comprehensive review. Found. Trends Mach. Learn.15, 1–175 (2022). [Google Scholar]
- 77.Hochreiter, S. & Schmidhuber, J. Long short-term memory. Neural Comput.9, 1735–1780 (1997). [DOI] [PubMed] [Google Scholar]
- 78.Cho, K. et al. Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Empirical Methods in Natural Language Processing, 1724–1734 (ACL, 2014).
- 79.Chung, J. et al. A recurrent latent variable model for sequential data. In Proc. Conference on Neural Information Processing Systems, Vol. 28 (2015).
- 80.Mildenhall, B. et al. Nerf: representing scenes as neural radiance fields for view synthesis. Commun. ACM65, 99–106 (2021). [Google Scholar]
- 81.Konno, K. & Ohmachi, T. Ground-motion characteristics estimated from spectral ratio between horizontal and vertical components of microtremor. Bull. Seismol. Soc. Am.88, 228–241 (1998). [Google Scholar]
- 82.Lacour, M., Nakata, R., Nakata, N. & Abrahamson, N. Earthquake dataset for the study of small magnitude earthquakes in the san francisco region. https://www.designsafe-ci.org/data/browser/public/designsafe.storage.published/PRJ-4573. DesignSafe-CI, 10.17603/ds2-necm-5q32 (2024).
- 83.Welch, P. The use of fast fourier transform for the estimation of power spectra: a method based on time averaging over short, modified periodograms. IEEE Trans. Audio Electroacoust.15, 70–73 (1967). [Google Scholar]
- 84.Kingma, D. P. & Ba, J. Adam: a method for stochastic optimization. In Proc. International Conference on Learning Representations (Scientific Research, 2015).
- 85.Bayless, J. & Abrahamson, N. A. Summary of the ba18 ground-motion model for fourier amplitude spectra for crustal earthquakes in California. Bull. Seismol. Soc. Am.109, 2088–2105 (2019). [Google Scholar]
- 86.Ren, P. & Song, J. Learning earthquake ground motions via conditional generative modeling. Zenodo, 10.5281/zenodo.18480271 (2026). [DOI] [PMC free article] [PubMed]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Waveform data, metadata, or data products for this study were accessed through the Northern California Earthquake Data Center (NCEDC) under DOI: 10.7932/NCEDC (10.7932/NCEDC). The downloaded datasets were preprocessed and provided from82 under 10.17603/ds2-necm-5q32.
All source code to reproduce the results in this study is available on GitHub at https://github.com/paulpuren/cgm-gmand is archived on Zenodo at 10.5281/zenodo.1848027086. We provide the training, generation, evaluation, and visualization details.





