Method for constructing large model of dynamic analysis scene of oil reservoir

By expanding the qualifier and fine-tuning the model, a large model of the reservoir dynamic analysis scenario is constructed, which solves the problem of insufficient application of large models in the reservoir dynamic analysis scenario and realizes sub-task identification and intelligent query functions in the reservoir dynamic analysis.

CN118780284AActive Publication Date: 2024-10-15CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410918203.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-10-15
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The existing technology fails to apply large models to specific scenarios of reservoir dynamic analysis, and lacks solutions to actual business needs.

Method used

By expanding the qualifier, pre-training and merging Low-RankAdaptation patches, we fine-tune named entity recognition, Text-to-SQL and tool calling models based on classification tasks, and combine it with Python tools for data cleaning and format standardization to build reservoir dynamic analysis scenarios. Large model.

Benefits of technology

It realizes sub-task identification, intelligent query and calculation in reservoir dynamic analysis, meets the specific task requirements in the field of reservoir dynamic analysis, and applies artificial intelligence large models to reservoir dynamic analysis for the first time, providing a reliable technical solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780284A_ABST
    Figure CN118780284A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of oil reservoir dynamic analysis, and particularly discloses an oil reservoir dynamic analysis scene large model construction method, which comprises the following steps: adding professional vocabularies of petroleum engineering into a Chinese-Alpaca-2. 0-13B basic model, pre-training and combining Low-RankAdaptation patches to obtain a new model, performing incremental training on a word segmentation device after a word list is expanded, and constructing a large model of an oil reservoir dynamic analysis scene. The method comprises the following steps of: firstly, carrying out modeling on an oil reservoir dynamic analysis scene, updating weight parameters in the models by adopting a Low-RankAdaptation method, obtaining three fine adjustment models on the basis of specific actual requirements of an oil field, and carrying out further instruction fine adjustment and subsystem coupling on Chinese-Alpaca-2. 0-13B, so as to finally obtain a large model of the oil reservoir dynamic analysis scene. Based on an industry large model, oil reservoir static data, dynamic data query and calculation result information are fused, an analysis suggestion function is achieved, an artificial intelligence large model is preliminarily applied to the field of oil reservoir dynamic analysis for the first time, and a reliable technical scheme is provided for application of the large model in oil reservoir dynamic analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of reservoir dynamic analysis, and in particular to a method for constructing a large model of a reservoir dynamic analysis scenario. Background Art

[0002] At present, the big model is mainly based on the Transformer architecture, integrating large parameters, big data and large computing power. The emergence of a series of big models such as ChatGPT has demonstrated its strong potential and quickly attracted widespread attention from various industries. The big model can not only conduct daily conversations, but also complete complex tasks. The big models in the oil and gas industry are developing rapidly. Various research institutions and enterprises have successively launched big models with industry characteristics. For example, the PetroAI big model developed by the China National Petroleum Exploration and Development Research Institute and the large language model with 70B (billion) parameters have learned more than 260,000 petroleum science and technology documents and more than 100,000 exploration and development knowledge graph triples.

[0003] However, the existing technology has not been able to use its large model in specific application scenarios of reservoir dynamic analysis, and lacks application to actual business needs. Summary of the invention

[0004] The purpose of the present invention is to provide a method for constructing a large model for reservoir dynamic analysis scenarios, aiming to solve the technical problems in the prior art that the large model cannot be used in specific application scenarios of reservoir dynamic analysis and lacks application to actual business needs.

[0005] To achieve the above object, the present invention adopts a method for constructing a large model of a reservoir dynamic analysis scenario, comprising the following steps:

[0006] Step 1: Collect data in the field of petroleum engineering and use the toolkit to process the data accurately and effectively;

[0007] Step 2: Expand the professional vocabulary of the tokenizer in the field of petroleum engineering, expand the tokenizer of petroleum engineering on the Chinese-Alpaca-2.0-13B basic model, load the existing Chinese-Alpaca-2.0-13B basic tokenizer model, and add the petroleum engineering professional vocabulary to the Chinese-Alpaca-2.0-13B basic model;

[0008] Step 3: Pre-train and merge the Low-RankAdaptation patch to obtain a new model. Perform incremental training based on the standardized data in step 1 and the word segmenter after the vocabulary is expanded in step 2. Use the Low-RankAdaptation method to update the weight parameters in the model.

[0009] Step 4: For the models obtained in the above steps, three fine-tuning models are obtained based on the specific actual needs of the oil field: a fine-tuning named entity recognition model, a fine-tuning Text-to-SQL model, and a fine-tuning tool call model based on classification tasks;

[0010] Step 5: Further fine-tune the instructions and couple the subsystems of Chinese-Alpaca-2.0-13B to finally obtain a large model of the reservoir dynamic analysis scenario.

[0011] Wherein, in said step 1:

[0012] PDFminer and PyPDF2 are used to effectively extract and separate text and image information, and the Grobid tool is used to distinguish fonts and identify formulas to ensure that professional knowledge information can be effectively screened and retained;

[0013] Use OCR technology to extract useful text data from images;

[0014] Combine Jieba, NumPy and Pandas tools in Python to further clean the data and make formatting agreements;

[0015] Sentence cutting by Jieba;

[0016] NumPy and Pandas are used for data cleaning and formatting to obtain an unlabeled plain text dataset for incremental pre-training.

[0017] Among them, in the fine-tuning named entity recognition model, the named entity recognition model is fine-tuned to achieve accurate recognition of the task. During the test, the effectiveness and accuracy of the model's named entity recognition are comprehensively evaluated from three aspects: entity recognizable rate, numerical variable entity recognition accuracy, and semantic recognition accuracy.

[0018] Among them, the fine-tuning Text-to-SQL model involves 30 common natural language problems in the field of reservoir dynamic analysis. 256 unique complex SQL query statements constructed on 7 dimensions and their corresponding natural language descriptions are used as the instruction fine-tuning label data set for Text-to-SQL in the field of reservoir dynamic analysis, which is used to enhance the model's conversion capability for SQL statements in the field of oilfield dynamic analysis.

[0019] Among them, in the fine-tuning tool calling model based on classification tasks, the tool calling function is introduced in the large model, and a tool usage fine-tuning data set is constructed for 26 key technical indicators in reservoir dynamic analysis. The fine-tuned model can accurately call tools to complete the corresponding indicator calculations, and can score the called tools based on the classifier classification task, and return the tool label with the highest score, and calculate the tool corresponding to the label based on the Callback function call, and finally return the results of the relevant indicators.

[0020] The beneficial effects of the method for constructing a large model for a reservoir dynamic analysis scenario of the present invention are as follows: using named entity recognition technology to realize subtask identification in reservoir dynamic analysis, based on Text-to-SQL and tool calling technology to meet the specific task requirements of intelligent query, calling, and calculation, relying on the industry large model to integrate reservoir static data, dynamic data query and calculation results information, to realize the analysis suggestion function, for the first time, the artificial intelligence large model is preliminarily applied to the field of reservoir dynamic analysis, and a reliable technical solution is provided for the application of the large model in reservoir dynamic analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 It is a flow chart of the steps of a method for constructing a large model of a reservoir dynamic analysis scenario according to the present invention. DETAILED DESCRIPTION

[0023] See also Figure 1 The present invention provides a method for constructing a large model of a reservoir dynamic analysis scenario, comprising the following steps:

[0024] Step 1: Collect data in the field of petroleum engineering and use the toolkit to process the data accurately and effectively;

[0025] Step 2: Expand the professional vocabulary of the tokenizer in the field of petroleum engineering, expand the tokenizer of petroleum engineering on the Chinese-Alpaca-2.0-13B basic model, load the existing Chinese-Alpaca-2.0-13B basic tokenizer model, and add the petroleum engineering professional vocabulary to the Chinese-Alpaca-2.0-13B basic model;

[0026] Step 3: Pre-train and merge the Low-RankAdaptation patch to obtain a new model. Perform incremental training based on the standardized data in step 1 and the word segmenter after the vocabulary is expanded in step 2. Use the Low-RankAdaptation method to update the weight parameters in the model.

[0027] Step 4: For the models obtained in the above steps, three fine-tuning models are obtained based on the specific actual needs of the oil field: a fine-tuning named entity recognition model, a fine-tuning Text-to-SQL model, and a fine-tuning tool call model based on classification tasks;

[0028] Step 5: Further fine-tune the instructions and couple the subsystems of Chinese-Alpaca-2.0-13B to finally obtain a large model of the reservoir dynamic analysis scenario.

[0029] Furthermore, in step one:

[0030] PDFminer and PyPDF2 are used to effectively extract and separate text and image information, and the Grobid tool is used to distinguish fonts and identify formulas to ensure that professional knowledge information can be effectively screened and retained;

[0031] Use OCR technology to extract useful text data from images;

[0032] Combine Jieba, NumPy and Pandas tools in Python to further clean the data and make formatting agreements;

[0033] Sentence cutting by Jieba;

[0034] NumPy and Pandas are used for data cleaning and formatting to obtain an unlabeled plain text dataset for incremental pre-training.

[0035] In this embodiment,

[0036] The selection of the general basic model compared the performance of the existing mainstream general large models in terms of the number of model parameters, accuracy, scalability, and open source. The comparison results are shown in Table 1. Finally, Chinese-Alpaca-2.0-13B was selected as the general basic model.

[0037] Table 1 Performance comparison of common general basic models

[0038]

[0039]

[0040] Expand the professional vocabulary of the tokenizer in the field of petroleum engineering, expand the tokenizer of petroleum engineering on the Chinese-Alpaca-2.0-13B model, load the existing Chinese-Alpaca-2.0-13B basic tokenizer model, and add the professional vocabulary of petroleum engineering to the Chinese-Alpaca-2.0-13B model. The comparison of the results before and after the expansion can be seen in Table 2;

[0041] Table 2 Comparison of word segmentation results after expanding the petroleum engineering vocabulary

[0042]

[0043] Pre-train and merge the Low-RankAdaptation patch to get a new model, and perform incremental training on the word segmenter after expanding the vocabulary. The specific training process can be found in Table 3.

[0044] Table 3. Construction process of professional large model in petroleum engineering field

[0045]

[0046] Furthermore, in the fine-tuned named entity recognition model, the named entity recognition model is fine-tuned to achieve accurate recognition of the task, and during testing, the effectiveness and accuracy of the model's named entity recognition are comprehensively evaluated from three aspects: entity recognizability rate, numerical variable entity recognition accuracy, and semantic recognition accuracy.

[0047] The named entity recognition technology based on the prompt word engineering can significantly improve the accuracy and efficiency of the named entity recognition system. The named entity results can be found in Table 4. The fine-tuned model was tested, and the test results can be found in Table 5.

[0048] Table 4 Named entity recognition fine-tuning dataset

[0049]

[0050] Table 5 Named entity recognition performance test based on 1300 comprehensive problem datasets in the field of reservoir dynamic analysis

[0051]

[0052] Furthermore, in the fine-tuning Text-to-SQL model, 30 common natural language problems in the field of reservoir dynamic analysis are involved. 256 unique complex SQL query statements constructed on 7 dimensions and their corresponding natural language descriptions are used as the instruction fine-tuning label data set for Text-to-SQL in the field of reservoir dynamic analysis, which is used to enhance the model's conversion capability for SQL statements in the field of oilfield dynamic analysis. See Table 6. The fine-tuned model is tested, and the test results can be seen in Table 7.

[0053] Table 6 Text-to-SQL fine-tuning dataset input and output examples

[0054]

[0055] Table 7 Text-to-SQL performance test based on 1300 common data query problem sets in the field of reservoir dynamic analysis

[0056]

[0057] Furthermore, in the fine-tuning tool calling model based on classification tasks, a tool calling function is introduced in the large model, and a tool usage fine-tuning data set is constructed for 26 key technical indicators in reservoir dynamic analysis. The fine-tuned model can accurately call tools to complete the calculation of corresponding indicators, score the called tools based on the classifier classification task, and return the tool label with the highest score, and calculate the tool corresponding to the label based on the Callback function call, and finally return the results of the relevant indicators.

[0058] The 26 key technical indicators can be found in Table 8. The fine-tuned model was tested and the test structure can be found in Table 9.

[0059] Table 8 Calling tools to fine-tune the dataset

[0060]

[0061] Table 9 Methods for associating sample descriptions with tool call numbers and their accuracy evaluation

[0062]

[0063] Further fine-tuning of instructions and subsystem coupling were performed on Chinese-Alpaca-2.0-13B, and finally a large model of reservoir dynamic analysis scenario was obtained. The model's various answering capabilities were comprehensively tested, and the generated results were in Markdown lightweight text markup format. For details, please refer to Table 10.

[0064] Table 10 Test results of the large model of reservoir dynamic analysis scenario for specific tasks of reservoir dynamic analysis

[0065]

[0066]

[0067]

[0068] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A method for constructing a large model for reservoir dynamic analysis scenarios, characterized in that: The steps include: Step 1: Collect data in the field of petroleum engineering and use the toolkit to process the data accurately and effectively; Step 2: Expand the professional vocabulary of the tokenizer in the field of petroleum engineering, expand the tokenizer of petroleum engineering on the Chinese-Alpaca-2.0-13B basic model, load the existing Chinese-Alpaca-2.0-13B tokenizer model, and add the petroleum engineering professional vocabulary to the basic tokenizer model of Chinese-Alpaca-2.0-13B; Step 3: Pre-train and merge Low-RankAdaptation patches to obtain a new model. Perform incremental training based on the standardized data in step 1 and the word segmenter after the vocabulary is expanded in step 2. Use the Low-RankAdaptation method to update the weight parameters in the model and merge the updated model with the basic model Chinese-Alpaca-2.0-13B. Step 4: For the models obtained in the above steps, three fine-tuning models are obtained based on the specific actual needs of the oil field: a fine-tuning named entity recognition model, a fine-tuning Text-to-SQL model, and a fine-tuning tool call model based on classification tasks; Step 5: Further fine-tune the instructions and couple the subsystems of Chinese-Alpaca-2.0-13B to finally obtain a large model of the reservoir dynamic analysis scenario.

2. The method for constructing a large model for reservoir dynamic analysis scenarios according to claim 1, characterized in that: In step one: PDFminer and PyPDF2 are used to effectively extract and separate text and image information, and the Grobid tool is used to distinguish fonts and identify formulas to ensure that professional knowledge information can be effectively screened and retained; Use OCR technology to extract useful text data from images; Combine Jieba, NumPy and Pandas tools in Python to further clean the data and make formatting agreements; Sentence cutting by Jieba; NumPy and Pandas are used for data cleaning and formatting to obtain an unlabeled plain text dataset for incremental pre-training.

3. The method for constructing a large model for reservoir dynamic analysis scenarios according to claim 1, characterized in that: In the fine-tuned named entity recognition model, the named entity recognition model is fine-tuned to achieve accurate recognition of the task. During the test, the effectiveness and accuracy of the model's named entity recognition are comprehensively evaluated from three aspects: entity recognizability rate, numerical variable entity recognition accuracy, and semantic recognition accuracy.

4. The method for constructing a large model for reservoir dynamic analysis scenarios according to claim 1, characterized in that: In the fine-tuning Text-to-SQL model, 30 common natural language problems in the field of reservoir dynamic analysis are involved. 256 unique complex SQL query statements constructed on 7 dimensions and their corresponding natural language descriptions are used as the instruction fine-tuning label data set for Text-to-SQL in the field of reservoir dynamic analysis, which is used to enhance the model's conversion capability for SQL statements in the field of oilfield dynamic analysis.

5. The method for constructing a large model for reservoir dynamic analysis scenarios according to claim 1, characterized in that: In the fine-tuning tool calling model based on classification tasks, the tool calling function is introduced in the large model, and a tool usage fine-tuning data set is constructed for 26 key technical indicators in reservoir dynamic analysis. The fine-tuned model can accurately call tools to complete the calculation of corresponding indicators, and can score the called tools based on the classifier classification task, and return the tool label with the highest score, and calculate the tool corresponding to the label based on the Callback function call, and finally return the results of relevant indicators.

Citation Information

Patent Citations

  • Method and device for realizing data asset construction based on large model

    CN117150043A

  • Oil and gas enterprise large model construction method based on oil business model

    CN117744770A

  • Excavating and extracting method and system for unstructured oil and gas data

    CN118070801A

  • Automated field development planning

    GB0922596D0

  • Method and system for recognizing knowledge graph entity labeling error on literature data set

    WO2024016516A1