2.1. G-Function Post-Fracture Diagnosis and Determination of Branch Fracture Count
The G-function analysis proposed by Nolte in 1979 is a classical method for post-fracture fracture diagnosis. Subsequently improved and refined by Castillo [
15], Barree [
7], and other scholars, it has become an important tool for identifying fracture closure characteristics and communication with natural fractures. The G-function is established based on fracturing fluid leakoff theory. By constructing a dimensionless time function, it standardizes pressure decline curves, thereby eliminating the effects of pumping time and leakoff characteristics and rendering pressure decline data from different well sections and operational scales comparable.
The classical G-function expression describes the relationship among leakoff area, leakoff coefficient, and dimensionless time. Let the dimensionless time
θ =
t/
tp, where
tp is the pumping time; the G-function can then be expressed as
where α
s is the parameter characterizing the time-dependent variation of leakoff area, and α
c is the parameter characterizing the time-dependent variation of leakoff coefficient.
Through the G-function expression, the pressure decline equation can be established to transform measured pressure decline data into standardized diagnostic curves. The pressure decline definition is expressed as
where ISIP denotes the instantaneous shut-in pressure. Based on the first derivative dP/dG and the superposition derivative G·dP/dG of the G-function, criteria for fracture-type discrimination can be established. The derivative expressions are given by
where
ηs denotes the fracturing fluid efficiency at the end of pumping, exclusive of initial leakoff; ΔP
f(
tp) is the net fracture pressure at shut-in, in MPa; and
φ is the fracturing fluid leakoff coefficient during fracture propagation.
By plotting the relationship curves of the G-function with its first derivative and superposition derivative, fracture type and branch fracture count can be discriminated according to curve characteristics. The specific discrimination logic is as follows: if the first derivative exhibits a constant value and the superposition derivative curve substantially coincides with the pressure decline curve, it is determined that only a primary hydraulic fracture has formed, i.e., no branch fractures exist; if the first derivative shows fluctuations of small amplitude while the superposition derivative curve deviates from the pressure decline curve and presents a single upward convex morphology, it is determined that one natural fracture has been connected; if the first derivative exhibits significant fluctuations and the superposition derivative curve obviously deviates from the pressure decline curve prior to closure with multiple peaks, it is determined that multiple natural fractures have been connected, and the number of peaks is correlated with the branch fracture count.
The discrimination strategy outlined above, which infers the number of hydraulically connected natural fractures activated during fracturing from G-function derivative signatures, aligns with the method reported by Zhao et al. [
16] for evaluating post-fracture complexity of hydraulically fractured wells in the Fuling gas field, lending independent support to the diagnostic criterion adopted in this work.
To render the above discrimination quantitative and reproducible, explicit peak-identification criteria are applied to the superposition derivative curve G·dP/dG prior to closure: a local maximum is identified as a valid peak only when its amplitude exceeds the adjacent trough values by more than 20% of the mean curve amplitude over the diagnostic window.
Consistent with conventional diagnostic approaches, heavy noise, sparse sampling, or incomplete shut-in records can smear derivative peaks and induce counting errors in the branch fracture count. To minimize this risk, all pressure decline data in this study were smoothed and screened for outliers prior to derivative computation, and fracturing stages with abnormally degraded data quality were excluded from the analysis. In addition, peaks emerging near the fracture closure point still cannot be resolved with complete unambiguity, such that the diagnosed branch fracture count bears an uncertainty of approximately ±1. Within the inversion workflow, this uncertainty merely causes expansion or narrowing of the candidate subspace and does not propagate into the quantitative estimates of the remaining fracture parameters.
Table 1 and
Table 2 present the basic physical properties and operational parameters of three wells in the study block. All subsequent sample database construction and case validation are based on data from this block.
Following the quantitative discrimination criteria described above, G-function analyses were conducted on six representative fracturing stages in the study block, and the results are presented in
Figure 2. Specifically, for Stage 6 of Well A and Stage 7 of Well C, the first derivative curves of the G-function exhibit pronounced fluctuations prior to closure, while the superposition derivative curves deviate from the pressure decline curves and display three distinct peaks. Accordingly, these stages are determined to have connected three natural fractures, a branch fracture count
Nb = 3. Similarly, Stage 10 of Well A and Stage 5 of Well C are identified to have connected four natural fractures,
Nb = 4; Stage 3 of Well B shows no connection with natural fractures,
Nb = 0; and Stage 7 of Well B is determined to have connected two natural fractures,
Nb = 2. The diagnosed branch fracture count serves as a hard constraint in the subsequent fracture morphology inversion, effectively narrowing the parameter optimization space and preventing inversion results from deviating from geological and engineering reality.
2.2. Mathematical Model for Fracture Morphology Inversion and CNN-LSTM Hybrid Neural Network Architecture
Based on the G-function diagnosis that determines the branch fracture count, the complete geometric morphology and flow parameters of the fractures need to be further inverted. In this study, fracture morphology is simplified into five key parameters: fracture length
Lf (m), fracture width
Wf (mm), fracture height
Hf (m), fracture conductivity
FcD (μm
2·cm), and branch fracture count
Nb (dimensionless). These parameters encompass two core dimensions of fracture spatial distribution and flow capacity, reflecting both the geometric characteristics of fractures and their conductivity to hydrocarbon flow [
17]. Among them, the branch fracture count Nb is directly prescribed by the G-function diagnosis, while the remaining four-dimensional parameters are determined through production matching inversion using the CNN-LSTM model.
Figure 3 illustrates the CNN-LSTM hybrid neural network architecture. The input layer receives the standardized five-dimensional fracture morphology parameter vector [
Lf,
Wf,
Hf,
FcD,
Nb]
T. After progressive layer-wise abstraction by the CNN spatial feature extraction module, the resulting features are broadcast to every time step and concatenated with the normalized production time coordinate to form the input sequence of the LSTM temporal modeling module, which models the temporal evolution of the production dynamics over the production period. The predicted cumulative production over the period is then output through the fully connected layer. The mathematical formulations for each module are presented as follows.
- (1)
CNN Spatial Feature Extraction Module
Let the input fracture morphology parameter vector be X = [
Lf,
Wf,
Hf,
FcD,
Nb]
T. The output feature map H(l) of the l-th convolutional layer can be expressed as
where
W(l) denotes the convolutional kernel weight matrix;
b(l) is the bias term; and
f(·) represents the ReLU activation function, i.e.,
f(x) = max (0, x). The first convolutional layer employs 32 convolutional kernels of size 1 × 3 to extract local correlation features between adjacent parameters. The second and third layers each adopt 64 convolutional kernels; through progressive layer-wise abstraction, high-order coupling relationships among fracture parameters are extracted [
18]. After three convolutional layers, the feature maps are converted into a one-dimensional feature vector via a flattening operation, serving as the spatial input to the LSTM module.
Mathematically, the parameter vector is arranged as a one-dimensional feature channel, and each kernel of size 1 × 3 slides along this channel with unit stride, computing at each position a learnable weighted combination of three adjacent parameters. It should be emphasized that the parameter vector is not treated as a time series: the one-dimensional convolution is employed solely as a local feature interaction operator, which is mathematically equivalent to a locally connected layer with weight sharing, that is, a structured multilayer perceptron with local receptive fields, and no temporal meaning is attached to the parameter order; the temporal modeling of the production data is delegated entirely to the LSTM module, whose input is the actual production time series. Physically, the arrangement of the parameter vector is not arbitrary, because the three window positions of the 1 × 3 kernel correspond exactly to three physically meaningful parameter groups: the first window [
Lf,
Wf,
Hf] jointly defines the fracture geometry and thus the stimulated reservoir volume; the second window [
Wf,
Hf,
FcD] combines the flow cross-section with the fracture conductivity and thus governs the deliverability of the main fracture; and the third window [
Hf,
FcD,
Nb] characterizes the fracture complexity, in which the branch fracture count Nb defines the topological complexity of the network, while the main-fracture height and conductivity determine how effectively this complexity is converted into production. From the learning perspective, restricting feature interaction to physically coupled neighbors amounts to imposing a physical prior on the model: a fully connected layer would allow arbitrary parameter pairs to interact freely, whereas the 1 × 3 convolution permits preferential interaction only among parameters with direct physical coupling; the associated reduction in trainable parameters further alleviates overfitting given the limited size of the training database (600 samples). The favorable generalization performance on the independent test set (
Section 3.2.2) corroborates the appropriateness of this architectural choice.
- (2)
LSTM Temporal Modeling Module
LSTM controls the flow and forgetting of information through three gating mechanisms: the forget gate
ft, the input gate
it, and the output gate
ot. Let
xt denote the input at time
t denote the network input at time step
t as
xt = [
z;
τt], where
z is the flattened spatial feature vector produced by the CNN module and is shared by all time steps, and
τt is the normalized production time coordinate; the production period is thereby unrolled into a sequence of
T time steps, along which the LSTM models the temporal evolution of the production dynamics. The hidden state
ht−1 and cell state
Ct−1 from the previous time step are used in the following gate computations. The computation formulas for each gate are then expressed as
where σ(·) denotes the Sigmoid activation function; tanh(·) denotes the hyperbolic tangent function; ⊙ represents the Hadamard product (element-wise multiplication); and
W and
b are the weight matrices and bias terms for each gate, respectively. The forget gate determines the retention ratio of the cell state from the previous time step, the input gate controls the update magnitude of the current candidate state, and the output gate regulates the output intensity of the hidden state. Through this gating mechanism, LSTM effectively avoids the vanishing gradient problem faced by conventional RNNs when processing long sequences.
- (3)
Fully Connected Layer and Production Output
The hidden state at the final time step, which aggregates the temporal production dynamics over the entire production period, is mapped to the predicted cumulative production via the fully connected layer:
where
hT is the hidden state at the final time step, which aggregates the production dynamics over the entire production period;
Wfc and
bfc are the weight matrix and bias term of the fully connected layer, respectively; and
ŷ is the predicted cumulative gas production over the production period, which serves as the target variable of the subsequent inversion.
- (4)
Loss Function and Adam Optimizer
Model training employs mean squared error (MSE) as the loss function to measure the deviation between predicted and actual production values:
where
N denotes the number of samples;
yi is the actual production; and
ŷi is the model-predicted production.
The Adam (Adaptive Moment Estimation) optimizer is employed for parameter updating. Adam combines the advantages of the momentum method and RMSProp, adaptively adjusting the learning rate for each parameter by computing the first moment estimate (mean) and second moment estimate (uncentered variance) of the gradients. The parameter update rules are expressed as
where
gt is the gradient at time
t; mt and
vt are the first and second moment estimates of the gradient, respectively;
β1 = 0.9 and
β2 = 0.999 are the decay coefficients;
η = 0.001 is the initial learning rate; and ε = 10
−8 is a small constant to prevent division by zero.