Deep coalbed methane reservoirs are characterized by complex geological conditions, strong heterogeneity, and significant variations in in situ stress, posing challenges for accurate three-dimensional in situ stress prediction. To address the issues of strong dependence on rock mechanical parameters in traditional physical models, as well as the lack of physical constraints and poor generalization capability under small-sample conditions in purely data-driven methods, this paper proposes a LightGBM prediction model that integrates physical information and data clustering. A total of 1289 fracturing clusters in the DJ block are selected as the research objects. First, the K-means algorithm is used to divide the reservoir into three categories to reduce the impact of heterogeneity. Then, a LightGBM model is constructed for each category, and physical constraints based on Huang’s model and stress–gravity equilibrium are incorporated into the loss function to ensure that the prediction results conform to mechanical laws. Taking the fracturing clusters in Category I as an example, the proposed model achieves an MAPE of 2.78% and an R2 of 0.89 on the test set. Comparative experiments show that the proposed model outperforms BP neural networks, random forests, and Transformers in prediction accuracy. Ablation experiments verify the independent contributions and synergistic effects of the clustering module and the physical information constraints. Transfer experiments demonstrate that the model has good applicability to blocks with similar geological conditions. This study provides an effective method for predicting in situ stress in deep coalbed methane reservoirs, balancing accuracy and physical interpretability.
Li et al. (2026) studied this question.