AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
PDF (2.1 MB)
Collect
Submit Manuscript AI Chat Paper
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Publishing Language: Chinese

A forecasting method for gas well production based on large language model (LLM)

Mengze CONG1,2Liang XUE1,3 ( )Jiangxia HAN1,3Deyu MIAO1,3Yuetian LIU1,3
State Key Laboratory of Petroleum Resources and Engineering, China University of Petroleum, Beijing 102249, China
College of Artificial Intelligence, China University of Petroleum, Beijing 102249, China
College of Petroleum Engineering, China University of Petroleum, Beijing 102249, China
Show Author Information

Abstract

Accurate and reliable production forecasting is a critical component for the efficient development of oil and gas fields and supports informed scientific decision-making. Although machine learning methods have achieved significant progress in this domain, existing models are typically trained from scratch using limited historical production data, making it difficult to effectively capture the complex nonlinear dynamics, long-term temporal dependencies, and high-dimensional interactions among variables inherent in production time series. This often leads to insufficient generalization capacity and limited predictive robustness. To address these challenges, this study proposes a novel gas well production forecasting method based on large language models (LLMs). The approach builds upon a pre-trained GPT-2 architecture and incorporates several key adaptations to enable effective time-series prediction. First, the input data—including daily gas production rate, tubing pressure, casing pressure, and production time—are subjected to instance normalization to facilitate knowledge transfer. Second, a trainable embedding layer is designed to map numerical time-series data into the semantic embedding space of the LLM, thereby achieving cross-modal alignment between continuous signals and the discrete representation format required by the model. Third, a parameter-efficient transfer learning strategy combining freezing and fine-tuning is implemented: the core self-attention and feed-forward network layers of the LLM are frozen to preserve general-purpose knowledge acquired during pre-training, while the positional encoding and layer normalization modules are selectively fine-tuned to enhance the model’s ability to characterize temporal patterns specific to production dynamics. The resulting model, termed GPT4TS, is systematically evaluated on real-world production data from a marine carbonate gas reservoir in the Sichuan Basin. Experimental results show that for wells with long production histories, GPT4TS significantly outperforms the conventional LSTM model. Under univariate input, the mean absolute percentage error (MAPE) is reduced by 18.573% on average; under multivariate input, the MAPE reduction reaches 35.610%, demonstrating its superior capability in modeling complex trends and leveraging multi-variable synergies. However, for newly commissioned wells with short production histories, insufficient data hinders effective fine-tuning, leading to lower prediction accuracy compared to LSTM. This study not only validates the potential of large language models in petroleum production forecasting but also highlights their strong dependence on historical data length, providing both theoretical insights and practical guidance for model selection in real-world engineering applications.

CLC number: TE332; TP18

References

【1】
【1】
 
 
Petroleum Science Bulletin
Pages 1056-1068

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
CONG M, XUE L, HAN J, et al. A forecasting method for gas well production based on large language model (LLM). Petroleum Science Bulletin, 2025, 10(5): 1056-1068. https://doi.org/10.3969/j.issn.2096-1693.2025.02.027

4

Views

0

Downloads

0

Crossref

0

Scopus

Received: 25 March 2025
Revised: 23 May 2025
Published: 01 October 2025
© 2025 Petroleum Science Bulletin