Abstract
Tight gas reservoirs are characterized by strong heterogeneity and complex nonlinear temporal behavior in gas production. This study focuses on a tight gas reservoir in the X Gas Field of the Ordos Basin and utilizes a dataset of 3858 daily gas-production records collected from six wells. Flow units were identified by applying the K-means clustering algorithm to porosity, permeability, and the Flow Zone Indicator (FZI). After outlier detection and data standardization, a prediction dataset was constructed that integrates lagged production features, dynamic production parameters, and petrophysical properties. Four models—multiple linear regression (MLR), XGBoost, exponential smoothing (ETS), and ETS-XGBoost—were developed and evaluated using a well-wise one-day-ahead rolling-prediction scheme with strict temporal lagging to avoid target leakage. The results show that ETS achieved the highest overall coefficient of determination (R2) of 0.893, followed by MLR (R2 = 0.876, RMSE = 0.425 × 104 m3), while XGBoost and ETS-XGBoost yielded R2 values of 0.802 and 0.808, respectively. An ablation study further indicated that, when sufficient lagged production features are available, the incremental contribution of petrophysical and flow-unit features is limited. SHAP analysis showed that previous-day gas production, production days, permeability, and porosity are the dominant factors associated with production trends. These findings suggest that conventional linear models and time-series models can achieve high predictive accuracy under the current feature setting, while machine-learning approaches provide complementary capability for capturing nonlinear relationships. The proposed framework offers an efficient and interpretable approach for one-day-ahead production forecasting in the studied tight-gas wells; further validation is needed to assess its generalization to other reservoirs.
1. Introduction
Tight gas reservoirs are an important natural gas resource in China with great development potential. However, the reservoirs have strong heterogeneity and are characterized by low porosity, low permeability, low abundance and poor producibility, resulting in low recovery factors and internal rates of return [1]. Therefore, remaining-gas prediction and quantitative evaluation of development potential for tight gas reservoirs can help improve the degree of reserve utilization, increase recovery and enable more efficient development [2]. At present, the main methods for describing remaining-gas distribution include reservoir-engineering methods, numerical simulation and field monitoring. Reservoir-engineering methods include decline-curve analysis [3], material-balance methods, pressure-depletion methods and cumulative-production methods, which can be used for evaluation according to reservoir type and dynamic data [4]. Field-monitoring methods determine the types of remaining gas and formulate development modes based on static and dynamic data [5]. Numerical simulation can reveal the distribution patterns of remaining gas and comprehensively reflect the dynamic characteristics during reservoir development; it is a commonly used evaluation method. However, evaluations based on numerical-simulation results mainly rely on parameters such as formation pressure, reserves abundance and gas saturation for classification, and lack quantitative means [6,7]. For production forecasting in tight gas reservoirs, traditional studies mainly rely on empirical correlations, flow-theory models and numerical simulation. Although these methods can describe fluid migration in reservoirs, they usually require idealized assumptions. Their ability to characterize the coupled effects of multiple factors in complex heterogeneous reservoirs is limited, making it difficult to fully reflect productivity differences among different reservoir types and leading to uncertainty in the prediction results [8,9].
With the development of digital technology in oil and gas fields, machine-learning methods have been gradually applied to production forecasting and reservoir evaluation. Compared with traditional models, machine-learning algorithms can mine the nonlinear mapping relationships among multiple variables in a data-driven manner. They show strong adaptability in dealing with complex engineering problems, achieve higher prediction accuracy, and can greatly reduce workload and computing time [10,11]. However, most existing studies directly use production parameters and reservoir petrophysical parameters to build prediction models. They usually treat the reservoir as a homogeneous system as a whole and ignore the geological differences among zones with different flow capacities. As a result, although the models may have high predictive ability, they lack an effective representation of reservoir heterogeneity [12]. Introducing flow-unit classification results into machine-learning models can incorporate geological prior information into the data-driven prediction process, reduce the impact of homogeneous treatment of the reservoir in traditional models, and improve the geological rationality of the prediction results. At the same time, combining interpretable machine-learning methods can further reveal the contribution of different reservoir factors to production changes and provide a clear geological interpretation for the prediction results.
This study takes the tight gas reservoir in Block X of the Ordos Basin as the research object. Flow-unit classification is carried out based on porosity, permeability and the Flow Zone Indicator (FZI) [13] to characterize reservoir heterogeneity and provide geological context for subsequent modeling. On this basis, a daily gas production prediction dataset integrating flow-unit information is constructed. Multiple linear regression (MLR), XGBoost and ETS-XGBoost prediction models are established and compared using a one-day-ahead rolling prediction approach [14]. The primary contribution of this study is a reproducible comparison demonstrating that, when multi-order lagged production features are incorporated, a conventional linear model can achieve competitive or superior performance relative to more complex alternatives for one-day-ahead production forecasting. Data normalization, outlier processing and other preprocessing methods are introduced to optimize the model training process. Finally, the SHAP method is used for interpretable analysis to discuss the relative influence of various factors on gas production.
2. Methods and Model Development
2.1. Classification of Flow Units
Tight sandstone gas reservoirs are characterized by significant heterogeneity. Their pore structure, permeability and fluid migration characteristics show obvious spatial differences. Differences in flow capacity among different reservoir zones further affect the productivity response of gas wells. Flow-unit classification based on porosity, permeability and the Flow Zone Indicator (FZI) is therefore adopted to characterize these differences in flow capacity. Reservoirs with similar FZI values generally exhibit comparable petrophysical properties and flow behavior [15]. Traditional homogeneous treatment methods are difficult to fully characterize the differences in internal flow capacity of the reservoir, which limits the applicability of production forecasting models under complex reservoir conditions.
As an important geological characterization method for describing differences in internal flow capacity of reservoirs [16], flow units can comprehensively reflect the intrinsic relationship between pore-structure characteristics and fluid flow capacity. To achieve quantitative characterization of reservoir heterogeneity, this study comprehensively considers parameters such as porosity, permeability and the Flow Zone Indicator (FZI), and establishes a multi-parameter integrated flow-unit classification method. The method classifies and characterizes the flow characteristics of different reservoir types, providing a basis for introducing geological constraint information into subsequent gas-production prediction models.
The Flow Zone Indicator (FZI) is a parameter that can characterize the pore-structure characteristics of reservoirs. Reservoirs with the same FZI have similar petrophysical properties and the same flow characteristics, and belong to the same type of flow unit [17]. The calculation formula of FZI derived from the modified Carmen-Kozeny equation is as follows [16].
The FZI is derived from the Rock Quality Index (RQI) and the standardized porosity ϕz, and is expressed as follows:
In particular, the rock quality index is used to characterize the permeability of a reservoir and can be expressed as:
The standardized porosity is defined as:
In the equation, K represents the permeability, in mD; ϕ represents the effective porosity.
Because porosity, permeability, and FZI differ significantly in terms of units and order of magnitude (for example, permeability often spans several orders of magnitude), direct clustering tends to cause the model to favor features with larger absolute values. Therefore, this study applies a logarithmic transformation to permeability and FZI to eliminate the stretching effect of extreme values, and then uses the Z-score standardization method to make the three parameters dimensionless. The standardization formula is as follows:
In the formula: Zij represents the standardized value of the variable; xij represents the raw value of the variable; μj represents the sample mean of the variable; and σj represents the sample standard deviation of the variable.
After standardization, the K-means unsupervised clustering method was used to classify 116 core samples in the study area. The K-means algorithm iteratively calculates the Euclidean distance from sample points to cluster centers to minimize the within-cluster sum of squared errors. In this study, the number of clusters was set to k = 3. Since the clustering results only reflect statistical differences among samples and cannot directly represent reservoir quality grades, geological interpretation was performed by combining the average porosity, permeability and FZI values of each category. The category with the highest porosity, permeability and FZI values was defined as Type I flow unit, representing high-permeability reservoirs; the category with intermediate petrophysical parameters was defined as Type II flow unit; and the category with poorer porosity-permeability conditions and lower FZI was defined as Type III flow unit.
2.2. Data Preprocessing
Because data from different sources differ in parameter types, dimensions and data forms, using them directly for machine-learning model training may affect computational efficiency and prediction stability. Therefore, after the prediction dataset is constructed, the raw data need to be preprocessed to transform multi-source heterogeneous data into a standardized dataset that meets the input requirements of the XGBoost model.
First, data completeness was checked. Because the study used continuous production data from six gas wells and the production durations of different wells varied, the data were organized by well number to ensure that the production data of each well were consistent with the corresponding static reservoir parameters. Data samples with missing key parameters were checked and processed to avoid training bias caused by missing data.
Second, outlier identification was performed on the dynamic production data. During gas-well production, factors such as testing, production-system adjustments and data-recording errors may cause abnormal fluctuations in some daily gas production values. Therefore, the box-plot rule was used for outlier detection and removal. The box plot identifies outliers based on the statistical distribution characteristics of the quartiles. Q1 is the first quartile, representing the position of the lower quarter of the data; Q3 is the third quartile, representing the position of the upper quarter of the data; IQR = Q3 − Q1 is the interquartile range, reflecting the dispersion of the middle 50% of the data. Data points less than Q1 − 1.5 × IQR or greater than Q3 + 1.5 × IQR are regarded as outliers. After the outliers in the dataset were removed, the data were used for prediction modeling. To evaluate the quality of the dataset and identify potential abnormal data points, box-plot visualization analysis was performed on all numerical features in this study.
For categorical variables, numerical encoding was applied to well type and flow unit. Horizontal wells and directional wells were assigned values of 1 and 0, respectively; Type I, Type II and Type III flow units were assigned values of 1, 2 and 3, respectively, so that they could meet the input format requirements of machine-learning models.
Because the input parameters involved in the study have different dimensions—for example, there are order-of-magnitude differences among parameters such as porosity, permeability, dynamic reserves and casing pressure—the Z-score standardization method was used to process continuous variables in order to reduce the influence of parameters at different scales on the model calculation process.
Considering that gas-well production data have obvious temporal continuity, randomly splitting the training set and test set may cause data from adjacent production stages to enter both the training and testing processes, thereby leading to information leakage. Therefore, the dataset was split according to production time order. The first 80% of the continuous production data were used as the training set for model parameter learning, and the remaining 20% were used as the test set to evaluate the predictive ability of the model.
2.3. Theory and Methodology
2.3.1. Principles of XGBoost
XGBoost (Extreme Gradient Boosting) is an efficient machine learning algorithm based on gradient boosting, which is widely used in the field of oil and gas exploration [18]. The core idea is to use a CART decision tree as the base classifier and gradually optimise the model’s predictive capability through additive training. By employing additive training, multiple decision trees are ensemble to construct the final predictive model. Compared with traditional gradient boosting algorithms (GBDT), XGBoost introduces a regularisation term into the objective function, which helps to control model complexity and prevent overfitting. At the same time, it uses a second-order Taylor expansion to approximate the loss function, thereby improving the model’s convergence speed and accuracy. It is suitable for prediction tasks involving non-linear relationships and complex feature interactions [19]. The objective function for XGBoost is [20]:
n denotes the number of samples in the training set; xi denotes the i-th sample; yi denotes the true value corresponding to the i-th sample; denotes the predicted value for the i-th sample; l() denotes the loss function; ft denotes the t-th weak learner; Ω(ft) denotes the regularisation term; and C denotes the constant term.
The core of the XGBoost algorithm lies in minimising the loss function whilst continuously increasing the regularisation term through successive iterations. The objective function used to determine the optimal solution is as follows:
In this study, the XGBoost model was configured with the following hyperparameters: n_estimators = 100, max_depth = 4, learning_rate = 0.06, subsample = 0.85, colsample_bytree = 0.85, min_child_weight = 3, and reg_lambda = 1.0. These settings were kept consistent across all wells.
2.3.2. Principles of Linear Regression (MLR)
Linear regression is a fundamental algorithm in machine learning and data mining, capable of analysing the linear relationship between one or more independent variables and a dependent variable. When dealing with large volumes of data and a limited number of features, multiple linear regression is the most commonly used model for identifying linear relationships between output and input parameters [21]. For n independent variables, the multiple linear regression model is shown in Equation (3); when n = 1, it corresponds to simple linear regression [22]:
In the equation, y is the dependent variable; n is the number of independent variables; wi is the coefficient of the i-th independent variable; xi is the i-th independent variable; and C is the constant term.
2.3.3. Prediction Workflow for the ETS-XGBoost Model
An exponential smoothing state-space model (ETS) [23] was used to analyse the historical daily gas production time series. By incorporating error, trend and seasonal components into a unified state-space representation, the ETS model provides a highly interpretable framework for capturing the smooth trend component of the production series. However, the ETS model primarily focuses on the recursive extrapolation of the level and trend components, and its ability to capture local nonlinear disturbances and the combined effects of multiple geological and engineering factors remains limited. To address this, an ETS-XGBoost hybrid model was developed. In this model, the ETS fitted values (calculated using only historical observations available up to day t-1) are used as an auxiliary input feature. These fitted values are combined with geological parameters (e.g., porosity and permeability), engineering parameters, flow-unit information, and multi-order lagged production features to construct the final feature matrix. XGBoost [24,25] is then trained on this integrated feature matrix to predict daily gas production. The modeling process consists of three main steps:
- (1)
- Data preprocessing and feature engineering. Outliers and missing values are handled, multi-order lagged features are constructed, and ETS fitted values are generated using only preceding observations to avoid information leakage. The resulting multi-dimensional feature matrix integrates geological, engineering, and production-history information.
- (2)
- Model training. The XGBoost model is trained using the constructed feature matrix. Hyperparameter tuning and feature scaling are performed within the training data only.
- (3)
- Model evaluation and interpretation. The trained model is applied to the independent test set under a one-day-ahead rolling-prediction scheme [14]. Finally, the SHAP method is used to quantitatively analyse the contribution of each input feature to the predictions.
This approach allows the model to leverage the trend information extracted by the ETS model while retaining the nonlinear modeling capability of XGBoost. All ETS-related features used as inputs are strictly based on information available prior to the forecast origin.
2.4. SHAP Explainable Analysis
Whilst machine learning models improve predictive accuracy, they generally lack the ability to provide direct explanations of their internal decision-making processes, and their predictions are often regarded as ‘black-box models’. Methods for model interpretability can generally be divided into two categories: a priori interpretability and a posteriori interpretability. Prior interpretability refers to the practice of using models with good interpretability or designing models with interpretable properties during the modelling process, thereby ensuring that the model itself is interpretable. Post-interpretability involves interpreting machine learning models that have already been built; this is independent of the machine learning modelling process and offers greater flexibility. Depending on the scope of the explanation, post-hoc interpretability methods can be further categorised into two types: global interpretation and local interpretation. Global interpretation is used to characterise the model’s overall decision-making patterns and the ranking of variable importance, and provides an explanation of the model’s overall performance [24]; local interpretation is used to understand the prediction process and rationale of a machine learning model for an individual sample, and to explain the prediction results for that sample [11].
The SHAP method provides model interpretation by calculating the contribution of each input variable to the prediction; it is an additive interpretation method. Within this framework, each input variable is assigned a contribution value to represent its marginal impact on the final prediction result. Regarding any input sample x, the predicted value f(x) of a machine learning model can be decomposed into [26]:
In the formula: ϕ0—the average predicted value of the prediction model f(x) on the training data; —the contribution of the j-th input variable to the prediction of sample x*, the SHAP value; M—the number of input variables.
Regarding the prediction problem with three input variables, the workflow for Equation (3) is shown in Figure 1, where red corresponds to positive SHAP values and blue to negative SHAP values. Figure 1 illustrates that SHAP values can quantify the contribution of each input variable to the predicted value within a single sample: ϕ1 and ϕ2 represent positive contributions, which increase the predicted value; ϕ3 represents a negative contribution, which decreases the predicted value.
Figure 1.
SHAP method for input variables [26].
3. Case Study
3.1. Results of the Flow Unit Division
All prediction models (MLR, XGBoost, and ETS-XGBoost) were trained separately for each well using a rolling-origin evaluation scheme. No pooled model across multiple wells was constructed. Consequently, static geological properties remain constant within each well and primarily serve to characterize differences among wells rather than providing within-well predictive signals. Flow-unit classification was performed on 117 core samples with measured porosity and permeability obtained from routine core analysis in the study area. Among the wells, six wells (D1, D2, D3, H1, H2 and H3) that have both core measurements and relatively complete daily gas production and casing-pressure records were selected for the subsequent production forecasting analysis. Only core samples with reliable porosity and permeability measurements were retained for flow-unit classification.
To eliminate the influence of dimensional differences among parameters, the indicators of the raw data were processed by Z-score standardization. Then, the K-means clustering method was used to cluster the normalized samples, and the original samples were clustered into three categories.
Based on the joint distribution characteristics of porosity and permeability, and combined with the Flow Zone Indicator (FZI), the flow capacity of the reservoir was comprehensively characterized, as shown in Table 1.
Table 1.
Flow-unit classification.
Table 2 shows the mean values of the characteristic parameters of each type of flow unit classified by K-means. The flow units are divided into three types—Type I, Type II and Type III—from good to poor. Among them, there are 8 Type I flow units, accounting for 6.9%; 36 Type II flow units, accounting for 31.0%; and 73 Type III flow units, accounting for 62.1%. It can be seen that Type III flow units account for the majority, reflecting the strong heterogeneity of the tight gas reservoir in the X Gas Field, which is extensively tight with locally developed sweet spots.
Table 2.
Statistical mean values of characteristic parameters for each type of flow unit.
The K-means clustering method was used to classify flow units for tight sandstone ± gas reservoir samples in the study area. Based on Figure 2 (a: flow-unit clustering distribution; b: differences in the Flow Zone Indicator FZI) and the sample statistical results, the characteristics of each type of flow unit are as follows:
Figure 2.
Porosity–permeability cross−plot.
Type I flow unit: This type of flow unit is the reservoir with the best petrophysical properties in the study area. It has good grain sorting, relatively well-developed intergranular pores and good connectivity. Its porosity is mainly distributed between 6.77% and 14.19%, generally around 8.98%. The permeability is greater than 1.0 × 10−3 μm2, with an average of 6.878 × 10−3 μm2, indicating good pore connectivity. Although the porosity is lower than that of Type II, the higher permeability makes it overall characterized by high permeability and strong flow conductivity.
Type II flow unit: This type of flow unit is a relatively good reservoir in the study area. It is dominated by lithic quartz sandstone with relatively uniform grain sorting. This type of flow unit has good matrix storage capacity. Its porosity distribution range is relatively wide, generally around 8.00–19.20%. The permeability is generally between 0.4 × 10−3 μm2 and 3.0 × 10−3 μm2, with an average of about 0.834 × 10−3 μm2. The corresponding pore-throat radius and FZI are both smaller than those of Type I flow units. However, its flow capacity is moderate, showing the characteristics of medium pores and medium throats.
Type III flow unit: This type of flow unit is the tight reservoir with the poorest petrophysical properties and the widest distribution in the study area. Grain sorting is uneven, and the contents of clay and interstitial material are relatively high. Porosity is generally low, mainly between 3.97% and 10.00%, with an average of about 7.56%. Permeability is low, less than 0.40 × 10−3 μm2, with an average of 0.293 × 10−3 μm2. The corresponding FZI is generally less than 1.0. It is characterized by small pores and micro-throats with poor pore connectivity.
Although the average porosity of Type I flow units is not the highest, their permeability and FZI are significantly higher than those of the other two types, indicating that this type of reservoir has better pore-throat connectivity and flow capacity, and represents the true high-permeability sweet spot in the study area. Although Type II flow units have higher porosity, their FZI and permeability are lower, indicating that their pores are mainly isolated or dominated by fine throats, with limited flow capacity. Type III flow units are typical tight reservoirs with poor porosity-permeability conditions and constitute the main body of the study area. It is noted that the mean FZI of Type III is slightly higher than that of Type II, which is mainly related to the sample distribution characteristics; nevertheless, when porosity and permeability are considered together, the overall flow capacity ranking remains consistent with the classification. In tight sandstone gas reservoirs, high porosity does not necessarily mean high permeability, and high permeability is mainly controlled by pore-throat structure.
3.2. Dataset Construction and Feature Analysis
After constructing lagged features (lag1–lag3, 7-day moving average, and lagged cumulative production), incomplete records at the beginning of each well series were removed. A chronological 80/20 split was applied within each well. The resulting sample counts are summarized in Table 3.
Table 3.
Sample distribution of each well used for model training and testing.
3.2.1. Data Collection
Production wells in the tight gas reservoir of the X Gas Field were selected as the research objects. Geological parameters, reservoir petrophysical parameters and production dynamic data were collected from 28 horizontal wells and 88 directional wells in the study area.
To ensure that the model training samples can reflect the gas-production dynamic characteristics under different reservoir types and development modes, six typical production wells in the X Gas Field were selected as the research objects, including three horizontal wells and three directional wells. According to the flow-unit classification results in Section 3.1, the wells cover Type I, Type II and Type III flow units, so as to ensure that different reservoir qualities are representative.
Combining logging interpretation results, core analysis data and the production dynamics database, static geological parameters and continuous production data for each well were collated. The static parameters included porosity, permeability, gas saturation, flow zone index (FZI) and flow unit type; the dynamic production parameters included the number of consecutive days of production, daily gas production, wellhead pressure and liquid-to-gas ratio. Given the variations in commissioning dates and production cycles across different gas wells, the duration of continuous production data for each well is not entirely consistent. To ensure the integrity of the sample data, only continuous production data where daily gas production and casing pressure are recorded synchronously are retained as valid samples; production days are used as the time series identifier, and specific production dates are not included(Table 4).
Table 4.
Sample Composition.
Figure 3 shows that there are marked differences in the production dynamics of different gas wells. Some gas wells exhibit a high initial gas production rate, but this tends to decline to varying degrees as production continues. The cumulative gas production of the six wells is shown in Figure 4, which reflects the differences in long-term productivity among the wells.
Figure 3.
Curve showing changes in daily gas production over time.
Figure 4.
Cumulative gas production curves of the six wells in the X Gas Field.
3.2.2. Feature Engineering
The tight gas reservoirs in the X gas field exhibit significant heterogeneity, and the gas production capacity of individual wells is influenced by a combination of factors, including reservoir properties, gas content characteristics and production dynamics. This study selected six gas wells within the study area with continuous production data as the subjects of investigation, comprising three horizontal wells and three directional wells. The research data primarily consist of basic geological parameters for individual wells, reservoir property parameters and continuous daily gas production data.
Reservoir static parameters are primarily derived from geological interpretation and reservoir evaluation results, and include porosity, permeability, the FZI index, gas saturation and dynamic reserves. Of these, porosity and permeability are used to characterise the reservoir’s storage capacity and flow capacity; the FZI index is used to evaluate variations in reservoir flow capacity; gas saturation reflects the extent of gas content in the reservoir; and dynamic reserves describe the scale of gas resources within the controlled area of a single well.
Dynamic production data primarily comprises continuous daily gas production data and casing pressure data for selected wells. As the gas well production process exhibits distinct temporal continuity, daily gas production volumes reflect the dynamic response characteristics resulting from the combined effects of reservoir conditions and production regimes. Consequently, this paper uses continuous daily gas production volumes as the prediction target and constructs dynamic characteristic parameters by integrating historical production data.
The baseline data parameters used are shown in Table 5.
Table 5.
Basic Parameters of the Six Wells.
To analyze the correlation among different parameters and verify the rationality of the selection of prediction variables, the Pearson correlation coefficient was used to analyze the correlation between the input features and daily gas production.
As shown in Figure 5, there are obvious differences in the degree of correlation between each parameter and daily gas production. The correlation coefficient between previous-day gas production and daily gas production is as high as 0.95, indicating that historical production has a very strong indicative effect on current production. Casing pressure, permeability, porosity and gas saturation show moderate positive correlations with daily gas production (correlation coefficients approximately 0.41–0.48). In contrast, the correlation between cumulative gas production and daily gas production is very weak (0.02), and FZI shows a weak negative correlation with daily gas production (−0.19). There are high positive correlations between porosity and permeability, and between porosity and gas saturation (0.94 and 0.84), reflecting the intrinsic relationship among reservoir petrophysical parameters. In the feature-selection process, variables were not simply removed according to the magnitude of correlation coefficients; instead, comprehensive judgment was made by combining the geological and engineering significance of the parameters. Although previous-day gas production is highly correlated with the target variable (Daily gas production), it directly reflects the autocorrelation of production dynamics and was retained. The correlation between cumulative gas production and daily gas production is extremely low, but it represents the cumulative production degree and was still used as one of the input features. Finally, parameters such as production days, porosity, permeability, gas saturation, casing pressure, cumulative gas production and previous-day gas production were selected for the construction of the subsequent production forecasting model.
Figure 5.
Feature correlation heatmap.
3.2.3. Preprocessing Results
According to the aforementioned characteristic system, single-well continuous daily gas production data were matched with the corresponding static parameters to construct a machine learning dataset comprising 3858 training samples. As static reservoir parameters remain constant throughout the production cycle of a single well, the static parameters for each well were replicated at the corresponding production time points and combined with the daily production data to form a training data structure comprising multiple time steps for a single well. See Table 6.
Table 6.
Training Data Table.
Figure 6 shows that there are marked differences in the distribution of daily gas production rates amongst different gas wells. Specifically, Well D3 exhibits a generally high overall gas production rate, whilst the range of data fluctuations is considerable; in contrast, Well D1 has a generally lower daily gas production rate, with relatively stable production dynamics. The differences in gas production distribution between wells reflect the combined influence of reservoir properties, well type and flow unit type on gas well productivity. Box-and-whisker plots were employed to identify outliers in the daily gas production data. The results indicate that there is a certain degree of dispersion in the daily gas production rates of different gas wells, with some high-value data points identified as outliers by statistical methods. However, given that the production process of gas wells is influenced by reservoir heterogeneity, fracturing effectiveness and adjustments to production regimes, such high-value variations may reflect genuine production dynamics. Consequently, this study did not directly remove all outliers; instead, judgements were made in conjunction with production patterns, with obvious data recording errors being excluded whilst the remaining samples were retained.
Figure 6.
Box-and-whisker plot showing the distribution of daily gas production for typical wells in the X gas field.
3.3. Model Prediction Results Analysis and Forecasting
The model input features include production days, porosity, permeability, gas saturation, casing pressure, cumulative gas production, and multi-order lagged terms constructed from historical production (previous 1-day, 2-day and 3-day gas production, and the 7-day moving average). To avoid target leakage, all production-related features, including lagged terms and cumulative gas production, were constructed using only information available up to day t-1. Under this feature setting, the valid prediction samples of each well were combined for overall evaluation.
Figure 7 shows the cross-plots and marginal distribution histograms of actual versus predicted daily gas production for the four models. Under the well-wise one-day-ahead rolling prediction setting (retraining interval of 20 days), the standalone ETS model achieved the highest accuracy, with an R2 of 0.893, an RMSE of 0.397 × 104 m3/d and an MAE of 0.194 × 104 m3/d. MLR obtained an R2 of 0.876, an RMSE of 0.425 × 104 m3/d and an MAE of 0.221 × 104 m3/d. XGBoost and ETS-XGBoost yielded R2 values of 0.802 and 0.808, with RMSE values of 0.538 × 104 m3/d and 0.493 × 104 m3/d, respectively. The results indicate that the classical ETS approach outperforms the other models in the current one-day-ahead forecasting task.
Figure 7.
Cross-plots of different models.
As shown in Table 7 and Figure 7, the standalone ETS model and the lag-only regression achieved the highest predictive accuracy, with R2 values of 0.893 and 0.891, respectively. MLR followed closely (R2 = 0.876), while XGBoost and ETS-XGBoost showed relatively lower performance. The cross-plots indicate that the ETS and lag-only regression predictions are more concentrated around the 1:1 line.
Table 7.
Comparison of the models’ performance in predicting daily gas production.
These results suggest that daily gas production exhibits strong temporal continuity. When multi-order lagged production features are available, both a classical ETS model and a simple linear regression based solely on historical production can already capture most of the predictable variation. The inclusion of additional variables and more complex machine-learning models did not yield clear improvements under the current one-day-ahead rolling prediction setting. This observation is consistent with findings in the time-series forecasting literature that simple models can perform competitively or better than more complex alternatives when informative lagged features are present [27].
The R2 values obtained in this study are comparable to those reported in related data-driven production forecasting studies on unconventional gas reservoirs [28]. Overall, the findings indicate that for short-term production forecasting in the studied tight gas wells, well-established time-series methods and lag-based linear models offer strong practical performance.
Figure 8 presents the performance of the persistence benchmark across the six wells and the overall dataset. The persistence method, which uses the previous day’s gas production as the prediction for the current day, achieves an overall R2 of 0.863, RMSE of 0.451 × 104 m3/d and MAE of 0.210 × 104 m3/d.
Figure 8.
Persistence model performance by well.
Notable differences exist among wells. Wells D3 and H2 exhibit relatively high R2 values (0.873 and 0.816, respectively), indicating stable production behavior and strong day-to-day continuity. In contrast, wells D1 and H3 show substantially lower R2 (0.042 and 0.408), reflecting larger production fluctuations. Wells D2 and H1 have limited evaluation samples, resulting in less representative metrics.
The overall high accuracy of the persistence benchmark confirms the strong temporal autocorrelation in daily gas production. This provides a competitive simple baseline against which the more complex models can be compared.
To further examine the contribution of geological information, an ablation study was conducted using three feature configurations. The results are presented in Table 7.
An ablation study was conducted to evaluate the incremental contribution of geological information to one-day-ahead production forecasting. Three feature configurations were compared: lagged production features only, lagged production features combined with petrophysical properties (porosity and permeability), and the full set further including FZI.
As shown in Table 8, the performance of MLR remained identical across all three configurations (R2 = 0.876). This result is expected under the per-well rolling prediction scheme, because petrophysical properties and FZI are essentially constant within each well and therefore provide little additional information to a linear model once strong lagged production signals are available.
Table 8.
Prediction performance of different models under various feature configurations.
For XGBoost and ETS-XGBoost, the inclusion of petrophysical properties and FZI led to only marginal changes in R2 and RMSE (differences generally within 0.005). In some cases, adding these variables even slightly increased the error. These findings indicate that static geological variables have limited incremental predictive value for short-term forecasting when multi-order lagged production features are already incorporated.
To further examine the predictive ability of the models at the single-well scale, wells D3 and H2, which have relatively sufficient sample sizes and representative production dynamics, were selected for detailed display. Per-well performance metrics for wells with adequate evaluation samples are summarized in Table 9. Cross-plots of predicted versus actual values for these two representative wells are shown in Figure 9, Figure 10, Figure 11 and Figure 12. The figures visually confirm that the standalone ETS model and MLR produce tighter agreement with the 1:1 reference line compared with XGBoost and ETS-XGBoost.
Table 9.
Per-well prediction performance of different models.
Figure 9.
MLR scatter plot.
Figure 10.
XGBoost scatter plot.
Figure 11.
ETS-XGBoost scatter plot.
Figure 12.
ETS scatter plot.
The D3 well has 1289 test samples total records with a large production range; the H2 well has 558 test samples total records with relatively stable production changes. The two wells can reflect, to a certain extent, the adaptability of the models to different production characteristics. Figure 9, Figure 10, Figure 11 and Figure 12 show the cross-plot results of predicted versus actual values for MLR, XGBoost ETS-XGBoost and ETS on these two wells, respectively.
On well D3, the R2 values are 0.886 for ETS, 0.863 for MLR, 0.736 for XGBoost and 0.729 for ETS-XGBoost. On well H2, the corresponding R2 values are 0.855 for ETS, 0.851 for MLR, 0.723 for XGBoost and 0.625 for ETS-XGBoost. The scatter points of the standalone ETS model and MLR are overall closer to the 1:1 reference line. The results show that, under the current setting that includes multi-order lagged features, the single-well prediction accuracy of ETS and MLR on these two typical wells is higher than that of XGBoost and ETS-XGBoost.
3.4. Leave-One-Well-Out Cross-Validation
To further evaluate the cross-well generalization ability of the models, leave-one-well-out cross-validation was carried out in this study. Specifically, one well was left out as the test set each time, and the remaining five wells were used for training. This process was repeated six times, and the test samples from each iteration were combined to calculate the overall performance. This protocol corresponds to prediction without any target-well history. The pooled results are summarized in Table 10.
Table 10.
Pooled performance of the models under leave-one-well-out evaluation.
Figure 13 shows the pooled prediction results of MLR, XGBoost and ETS-XGBoost under the leave-one-well-out evaluation. MLR achieves the highest overall accuracy, with an R2 of 0.917, an RMSE of 0.4329 × 104 m3/d and an MAE of 0.2228 × 104 m3/d. XGBoost and ETS-XGBoost yield R2 values of 0.815 and 0.793, respectively, with larger scatter around the 1:1 line.
Figure 13.
Cross-validation plots of different models.
The pooled R2 of MLR under leave-one-well-out evaluation is higher than that obtained in the well-wise rolling prediction. This difference arises because the two protocols are not directly equivalent: the leave-one-well-out model is trained on data from multiple wells, whereas the rolling prediction uses only the historical observations of a single well. Consequently, the metrics reflect distinct evaluation scenarios and should be interpreted within their respective contexts rather than compared as evidence of overall improvement or deterioration.
The superior performance of MLR in this cross-well setting suggests that a linear model based on lagged production features generalizes more stably across wells than the tree-based models. Although ETS-XGBoost incorporates additional smoothed information, it does not outperform MLR when predicting completely unseen wells. The results indicate that model transferability is influenced by inter-well heterogeneity in production behavior.
Overall, the leave-one-well-out assessment demonstrates that MLR maintains relatively robust predictive ability even without using any historical data from the target well, whereas the performance of the machine-learning models is more sensitive to differences among wells.
3.5. Analysis of Factors Influencing SHAP
SHAP analysis was conducted on the MLR model to examine feature contributions [29]. Although the ETS model achieved higher predictive accuracy in the rolling-prediction setting, the MLR model provides a more transparent linear representation and was therefore used for interpretability analysis.
Figure 14 shows the SHAP summary plot based on the features used in the final models. The previous-day gas production exhibits the widest range of SHAP values, with high-value samples predominantly located in the positive region, indicating that the production status of the previous day has a strong positive effect on the current daily gas production. This result is consistent with the temporal continuity typically observed in gas-well production data.
Figure 14.
SHAP feature importance ranking diagram.
The 7-day moving average ranks second in importance, further reflecting the short-term continuity of production behavior. The lag-3 gas production also shows a moderate contribution, whereas the lag-2 feature has a relatively limited effect.
In contrast, the SHAP values of casing pressure, lagged cumulative gas production, permeability, porosity and production days are mostly concentrated near zero, suggesting that these features contribute relatively little to the one-day-ahead predictions.
Overall, the SHAP analysis indicates that the models primarily rely on recent production history for forecasting, while static reservoir properties play a secondary role. SHAP values attribute the model’s predictions to input features but do not establish causal relationships between reservoir parameters and gas production.
Figure 15 shows the SHAP dependence plots for the nine features used in the final model. Previous-day gas production (t-1) and the 7-day moving average exhibit clear positive relationships with their SHAP values, indicating that higher recent production levels contribute positively to the predicted daily gas production. This reflects the strong temporal continuity captured by the model.
Figure 15.
SHAP-based analysis of local feature importance.
Daily gas production at t-2 and t-3 also shows positive associations, although their effects are weaker than that of the most recent lag. Production days display a negative trend: as the number of production days increases, the SHAP values gradually decrease, consistent with the natural decline of gas-well production over time.
Permeability and porosity show relatively small and scattered contributions. Their SHAP values are concentrated near zero for most samples, suggesting that static reservoir properties provide limited additional predictive information once lagged production features are included. Casing pressure and lagged cumulative gas production similarly exhibit weak influence, with most SHAP values close to zero.
Overall, the dependence plots indicate that the model primarily relies on recent production history and the production-time trend for one-day-ahead forecasting, while static geological features play a secondary role.
Figure 16 presents the standardized regression coefficients of the final MLR model. Previous-day gas production shows the largest positive coefficient (0.735), followed by the 7-day moving average (0.506) and daily gas production at t-3 (0.194), indicating that recent production history dominates the linear prediction. Permeability has a small positive coefficient (0.050), while porosity and casing pressure contribute only marginally.
Figure 16.
MLR Coefficients.
The coefficient of lagged cumulative gas production is slightly negative (−0.038). This is consistent with a depletion effect: after accounting for recent production rates, wells with higher historical cumulative production tend to exhibit slightly lower subsequent daily rates due to progressive reservoir energy depletion. The coefficients of daily gas production at t-2 and production days are close to zero.
These results are consistent with the SHAP analysis and suggest that, under the current feature setting, the MLR model primarily relies on lagged production information, with limited independent contribution from static reservoir properties.
4. Conclusions
(1) In response to the high heterogeneity of tight gas reservoirs and the complex non-linear dynamics of gas well production, reservoir parameters such as porosity, permeability and FZI were integrated to classify the flow capacity of reservoirs in the study area. Building on this, production parameters—including flow-unit categories, reservoir properties, production dynamics and wellbore pressure—were combined to construct a dataset for predicting daily gas production. An ablation study was conducted to evaluate the incremental contribution of geological features. The results indicate that, once sufficient lagged production features are available, the addition of porosity, permeability and flow-unit information provides only limited improvement in predictive accuracy under the one-day-ahead forecasting setting.
(2) A daily gas production forecasting framework for tight gas reservoirs based on one-step-ahead rolling prediction was constructed, and four models—MLR, XGBoost, ETS and ETS-XGBoost—were compared. Under the setting of well-wise rolling prediction (retraining interval of 20 days) with input features including multi-order lagged terms, the overall coefficient of determination (R2) of MLR reached 0.876 and the RMSE was 0.4254 × 104 m3/d; the R2 of XGBoost and ETS-XGBoost was 0.802 and 0.808, respectively. The standalone ETS model also achieved reasonable accuracy by capturing the smooth production trend. The results show that when temporal lag features are sufficient, traditional multiple linear regression can achieve relatively high prediction accuracy for one-day-ahead forecasting in the studied wells. The ETS-XGBoost hybrid model exhibited comparable performance to XGBoost, with limited additional improvement under the current residual-correction setting. These findings are restricted to one-day-ahead prediction on the six sampled wells; longer-term forecasting and performance on unobserved reservoirs require further validation. In the leave-one-well-out evaluation, MLR obtained a higher R2 (0.917) than XGBoost (0.815) and ETS-XGBoost (0.793), suggesting more stable cross-well performance when no historical data from the target well are available.
(3) The interpretable analysis based on the SHAP framework and the standardized regression coefficients of the MLR model show that previous-day gas production and the 7-day moving average are the dominant factors associated with daily gas production, while the contributions of permeability, porosity and other static reservoir properties are relatively small. Since FZI is a mathematically derived variable from porosity and permeability parameters, its independent contribution in the model is limited, reflecting information overlap among features. Given the small number of wells and the presence of correlated geological variables, the SHAP results should be interpreted as associations within the fitted models rather than causal reservoir controls. The proposed framework offers an efficient and interpretable approach for one-day-ahead production forecasting in the studied tight-gas wells.
Author Contributions
Conceptualisation, X.N. and Y.M.; methodology, X.N. and Y.M.; validation, Y.M. and C.S.; formal analysis, Y.M.; investigation, Z.W., Y.G., Z.L. and X.G.; writing—original draft preparation, X.N.; writing—review and editing, X.N.; supervision, X.N.; funding acquisition, X.N. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the Scientific Research Program Funded by the Shaanxi Provincial Education Department (Program No. 22JS030).
Data Availability Statement
The datasets generated and analyzed during this study are not publicly available due to restrictions on data sharing. Requests to access these datasets should be directed to the corresponding author and are subject to approval by the research team.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Xie, W.; Wang, Z.; Luo, B.; Zheng, M.; Ma, S.; Chen, Y.; Xin, Y.; Yang, R. Hydrocarbon accumulation characteristics and exploration orientation of intra-source tight gas in Sichuan Basin. China Pet. 2025, 30, 65–77. [Google Scholar]
- Liu, L.; Duan, Y.; Zou, C. A New Evaluation Method for Potential of Development Benefit of Xinchang Penglaizhen Formation Low Pcrmcability Tight Sandstone Gas Rescrvoir. J. Southwest Pet. Univ. (Scicnce Technol. Ed.) 2022, 44, 102–109. [Google Scholar]
- Chen, M.; Qu, Z.; Liu, W.; Tang, S.; Shang, Z.; Ren, Y.; Han, J. Production Prediction Model of Tight Gas Well Based on Neural Network Driven by Decline Curve and Data. Processes 2024, 12, 932. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Zhang, Y.; Li, H.; Meng, Y.; Yang, X. Mechanism Analysis and Prospect of Efficient Production of Gas Drilling in Tight Sandstone Gas Reservoirs. J. Southwest Pet. Univ. (Sci. Technol. Ed.) 2025, 47, 87–95. [Google Scholar]
- Zou, C.; Yu, R.; Dong, D. Geologic characteristics, development technologies and prospects of unconventional natural gas in China. Pet. Explor. Dev. 2026, 53, 659–673. [Google Scholar] [CrossRef] [Scilit]
- Ning, B.; Li, J.; Zhong, T.; Guo, J.; Liu, Y.; Fu, N.; Bie, K.; Meng, F. Enhanced gas recovery for tight gas reservoirs with multiple-fractured horizontal wells in the late stages of exploitation: A case study in Changling Gas Field. Energies 2023, 16, 7918. [Google Scholar] [CrossRef] [Scilit]
- Fang, M.; Shi, H.; Li, H.; Liu, T. Application of Machine Learning for Productivity Prediction in Tight Gas Reservoirs. Energies 2024, 17, 1916. [Google Scholar] [CrossRef] [Scilit]
- Yao, F.; Hui, G.; Meng, D.; Ge, C.; Zhang, K.; Ren, Y.; Li, Y.; Zhang, Y.; Yang, X.; Zhang, Y.; et al. Integrated Data-Driven Framework for Forecasting Tight Gas Production Based on Machine Learning Algorithms, Feature Selection and Fracturing Optimization. Processes 2025, 13, 1162. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Ren, Z.; He, S.; Tang, S.; Tian, W.; Wang, X.; Zhao, H.; Fan, W.; Yang, Y. A Production Prediction Model of Tight Gas Well Optimized with a Back Propagation (BP) Neural Network Based on the Sparrow Search Algorithm. Processes 2024, 12, 632. [Google Scholar] [CrossRef] [Scilit]
- Wu, S.; Shang, X.; Li, M.; Zhao, H.; Lian, P.; Duan, T. Prediction of residual gas distribution and suggestion of development optimization for fracture-de-veloped tight sandstone gas reservoir: A case study of the 2nd member of Xujiahe Formation in Xinchang area, western Sichuan Depression. Sci. Technol. Eng. 2023, 23, 12484–12493. [Google Scholar]
- Ma, X.; Hou, M.; Zhan, J.; Liu, Z. Interpretable Predictive Modeling of Tight Gas Well Productivity with SHAP and LIME Techniques. Energies 2023, 16, 3653. [Google Scholar] [CrossRef] [Scilit]
- Liu, X.; Yu, Z.; Zhou, C.; Wang, Y.; Bai, Y. Research on Capacity Prediction and Interpretability of Dense Gas Pressure Based on Ensemble Learning. Processes 2025, 13, 3132. [Google Scholar] [CrossRef] [Scilit]
- Bai, Y.; Ren, D.; Shi, S.; Sun, W.; Liu, D. Study on Flow Unit Division and Production Dynamics of Tight Sandstone Reservoir in Huaqing Oilfield. Indian J. Geo-Mar. Sci. 2019, 48, 758–764. [Google Scholar]
- Hewamalage, H.; Ackermann, K.; Bergmeir, C. Forecast evaluation for data scientists: Common pitfalls and best practices. Data Min. Knowl. Discov. 2023, 37, 788–832. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Astsauri, T.; Habiburrahman, M.; Ibrahim, A.F.; Wang, Y. Utilizing machine learning for flow zone indicators prediction and hydraulic flow unit classification. Sci. Rep. 2024, 14, 4223. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Haifa, T.; Shimi, P.; Yanchao, Z. The classification and stochastic modeling of flow units in tight gas reservoir. J. Jilin Univ. Earth Sci. Ed. 2007, 37, 469–474. [Google Scholar]
- Amaefule, J.O.; Altunbay, M.; Tiab, D.; Kersey, D.G.; Keelan, D.K. Enhanced reservoir description: Using core and log data to identify hydraulic (flow) units and predict permeability in uncored intervals/wells. In Proceedings of the SPE Annual Technical Conference and Exhibition, Houston, TX, USA, 3–6 October 1993; p. SE-26436-MS. [Google Scholar]
- Tian, Y.; Wang, G.; Li, H.; Shao, L.; Lai, J. XCBoost-based lithology identification and high-quality reservoir logging evaluation in deep tight sandstones; a case study of the Jurassic Sangonghe Formation in the Taibei Sag, Turpan-Hami Basin. Prog. Geophys. 2026, 41, 1162–1178. (In Chinese) [Google Scholar]
- Tamoto, H.; dos Santos Gioria, R.; de Carvalho Carneiro, C. Prediction of nuclear magnetic resonance porosity well-logs in a carbonate reservoir using supervised machine learning models. J. Pet. Sci. Eng. 2023, 220, 111169. [Google Scholar] [CrossRef] [Scilit]
- Amaechi, C.U.; Ikpeka, M.P.; Ma, X.; Ugwu, J.O. Application of Machine Learning Models in Predicting Initial Gas Production Rate from Tight Gas Reservoirs. Rud.-Geološko-Naft. Zb. 2019, 34, 29–40. [Google Scholar] [CrossRef] [Scilit]
- Liu, S.; Harpalani, S. Permeability prediction of coalbed methane reservoirs during primary depletion. Int. J. Coal Geol. 2013, 113, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Chen, L.; Li, P.; Zhang, S. Prediction Method of Core Permeability and Fracture Aperture Based on Machine Learning. J. Southwest Pet. Univ. (Sci. Technol. Ed.) 2023, 45, 155–163. [Google Scholar]
- Hyndman, R.J.; Koehler, A.B.; Snyder, R.D.; Grose, S. A state space framework for automatic forecasting usingexponential smoothing methods. Int. J. Forecast. 2002, 18, 439–454. [Google Scholar] [CrossRef] [Scilit]
- Baehrens, D.; Schroeter, T.; Harmeling, S.; Kawanabe, M.; Hansen, K.; Mueller, K.R. How to explain individual classification decisions. J. Mach. Learn. Res. 2010, 11, 1803–1831. [Google Scholar]
- Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd Acm Sigkdd International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar]
- Ma, X.; Zhou, D.; Cai, W.; Li, X.; He, M. An Intérpretable Machine Learning Approach to Prediction Horizontal Well Productivity. J. Southwest Pet. Univ. (Sci. Technol. Ed.) 2022, 44, 81–90. [Google Scholar]
- Zeng, A.; Chen, M.; Zhang, L.; Xu, Q. Are transformers effective for time series forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI Press: Washington, DC, USA, 2023; Volume 37, pp. 11121–11128. [Google Scholar]
- Ye, F.; Li, X.; Zhang, N.; Xu, F. Prediction of single-well production rate after hydraulic fracturing in unconventional gas reservoirs based on ensemble learning model. Processes 2024, 12, 1194. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 30, 4768–4777. [Google Scholar]
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















