Deep Learning for Predicting Microseismic Time Series in Underground Gas Storage
This article explains how to build a deep learning pipeline for forecasting microseismic activity during injection and withdrawal cycles in underground gas storage facilities. It covers the physical drivers behind pressure-induced seismicity, a multi-source feature engineering workflow combining Pearson correlation and mutual information, and a layered model that separates short-term lag response from long-term trends. The article also discusses time-aware data splitting, evaluation metrics, cross-site generalization checks, and the requirements for deploying the model in a streaming production environment.
1. Why Microseismic Risk Under Injection/Withdrawal Disturbance Is Hard to Predict
Underground gas storage facilities provide seasonal peak-shaving services, and the injection/withdrawal process is itself a high-frequency, high-amplitude pressure disturbance. The reservoir and caprock undergo stress redistribution through repeated loading and unloading. When local shear stress exceeds the frictional strength of a fault or natural fracture, energy is released as microseismicity. Consequently, the frequency and energy of microseismic events are fundamentally the combined result of the reservoir’s current stress state and engineering disturbance.
The real engineering challenge is not “can we detect microseismicity” but “can we predict its evolution trend in advance.” The difficulty concentrates in three areas:
- Strong nonlinear coupling: Pore pressure, effective stress, temperature, and fluid saturation are coupled across multiple physical fields. No stable mapping exists between any single parameter and the microseismic response.
- Lag effects: After injection/withdrawal rates change, pressure waves need time to diffuse through the reservoir. The microseismic response often lags by hours or even days, and the lag length varies across well locations and layers.
- Multi-scale evolution: The series contains both short-term fluctuations driven by injection/withdrawal cycles and slow trends from cumulative storage capacity deficit and long-term fault stress loading. The two scales are superimposed in the same sequence.
Traditional approaches rely on empirical thresholds or statistical regression and struggle to capture all three characteristics simultaneously. This is precisely the motivation for introducing deep sequence models.
2. Data Layer Design: Multi-Source Feature Construction and Key Driver Selection
Model performance is capped by the input. Data typically available from the engineering side includes injection/withdrawal rate, wellhead pressure, wellhead temperature, cumulative injection/withdrawal volume, and operating-condition flags for upper/lower reservoir pressure limits. This data must first be aligned to a unified time granularity (e.g., hourly), and missing segments should be explicitly marked rather than silently interpolated, which would create false stationarity.
Feature selection should adopt a dual “linear + nonlinear” perspective:
- Pearson correlation coefficient: Quickly removes redundant fields with almost no linear association to the label, reducing dimensionality.
- Mutual information: Captures non-monotonic dependencies, such as an inverted-U relationship where microseismicity is most active when pressure is in the mid-range and stays quiet at both extremes. Linear coefficients would miss this.
Illustrative implementation (expressing selection logic only, not a specific framework API):
def select_features(X, y, k_linear=20, k_mi=15):# Step 1: coarse screening by linear correlationcorr = {c: abs(np.corrcoef(X[c], y)[0, 1]) for c in X.columns}cand = sorted(corr, key=corr.get, reverse=True)[:k_linear]# Step 2: supplement with nonlinear drivers via mutual informationmi = mutual_info_regression(X[cand], y, random_state=0)picked = sorted(zip(cand, mi), key=lambda t: t[1], reverse=True)[:k_mi]return [c for c, _ in picked]
In addition, time-based splitting is mandatory (partitioning train/validation/test by chronological order). Random splitting causes future information leakage and inflates offline metrics.
3. Model Architecture: Layered Modeling of Short-Term Lag and Long-Term Trend
A single network that tries to handle both “hourly disturbance response” and “monthly-scale trend” often ends up compromising on both. A more robust approach is to layer them:
- Short-term branch: Use a gated recurrent structure in the family of extended LSTMs. Its improved exponential gating and matrix memory design fit abrupt disturbances and lagged responses more flexibly, making it suitable for modeling the rapid response after injection/withdrawal switching.
- Long-term branch: Use a sequence structure with sparse self-attention and hierarchical distillation encoding. It compresses long sequences into a small set of sub-sequence representations, substantially reducing the computational complexity of long-range dependencies from quadratic, making long-window input feasible under typical engineering compute budgets.
- Fused output: Concatenate the hidden representations from both branches and regress frequency and energy. For the energy target, apply a log transform first to alleviate gradient imbalance caused by the large magnitude span.
The loss function can add a trend constraint on top of the base regression error to suppress the common degradation of “over-smoothed prediction curves”:
loss = mse(pred, true) + lam * mse(diff(pred), diff(true))
4. Evaluation and Cross-Site Generalization Validation
Metrics should not rely on a single number: MAE reflects average deviation, MSE penalizes large under-reporting more heavily, and MAPE facilitates cross-well comparison. All three need to be interpreted jointly. Business-perspective checks should also be added, for example whether high-energy events within 24 hours after an injection/withdrawal switch are captured.
Cross-site validation is a critical step: reuse the model at another gas storage facility in the same block under different injection/withdrawal conditions to test whether it has learned physical driving relationships rather than single-site noise. If performance drops noticeably, first investigate feature distribution drift and differences in lag length. These can be corrected by re-estimating the lag window and introducing operating-condition flag features.
5. Engineering Deployment Essentials
The model needs to be integrated in a streaming manner: real-time features enter a message queue buffer, batch inference results are written to a time-series database, anomalous trends trigger monitoring alerts, and a human review step is retained. After going live, continuous data quality monitoring and periodic retraining are needed to avoid silent model failure caused by reservoir state migration. Using the general capabilities of Baidu AI Cloud in container platforms, log services, and monitoring/alerting, this pipeline can be standardized, shortening the cycle from offline experimentation to online operation.
