A method for building a large model of oil and gas enterprises based on petroleum business model
The oil and gas enterprise large model construction method based on the petroleum business model solves the problem that general large models cannot meet the needs of the oil and gas industry, achieves more efficient knowledge extraction and graph construction, and improves the semantic understanding and generation capabilities of large oil and gas industry models.
Patent Information
- Application Number
- CN202311789160.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2043-12-25
AI Technical Summary
General-purpose large models cannot meet the industrial application needs of the oil and gas industry, especially in improving safety, efficiency and decision support. As a result, the construction of large models in the oil and gas industry needs targeted solutions.
Adopt a large model construction method for oil and gas enterprises based on the petroleum business model, including steps such as data preparation, data preprocessing, data annotation, model retraining/fine-tuning, model deployment and application operation. By using petroleum business data and knowledge in specific fields to build an applicable Large model for the oil and gas industry.
It improves the accuracy and coverage of knowledge extraction, reduces the cost of knowledge graph construction, enhances the semantic understanding and generation capabilities of large models in the oil and gas industry, assists in the comprehensiveness and coverage of knowledge, and supports better knowledge integration and updating.
Smart Images

Figure CN117744770B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of model building, and in particular to a method for building a large model of an oil and gas enterprise based on a petroleum business model. Background Art
[0002] In a broad sense, a large model refers to a deep learning model with a large number of parameters and complex structure. It has emergence and general capabilities and can handle complex downstream tasks such as natural language processing and image recognition. A large model, also known as a large language model, is a large-scale multimodal model that can process image and text inputs and generate text. It is mainly used in dialogue systems, text summarization, and machine translation.
[0003] Although general-purpose big models (such as GPT-4) have demonstrated strong performance in a variety of tasks, they also have some problems and limitations. This also provides a necessity for the construction of industry-specific big models. At present, general-purpose big models cannot meet the needs of industrial applications. The oil and gas industry big model is just a general term, which can be specifically divided into a variety of oil and gas industry big models, mainly including two types: general big models for the oil and gas industry and big models for oil and gas enterprises. In order to establish big models for oil and gas enterprises to help improve safety, efficiency, monitoring and decision support, a method for building a big model for oil and gas enterprises based on the petroleum business model is proposed. Summary of the invention
[0004] The purpose of the present invention is to solve the problems existing in the prior art and to propose a method for constructing a large model of an oil and gas enterprise based on a petroleum business model.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A method for constructing a large model of an oil and gas enterprise based on a petroleum business model, the method comprising the following steps:
[0007] S1. Data preparation: Prepare a large amount of oil and gas industry business data required for building a large model of the oil and gas industry, including but not limited to basic oil concepts, oil business content, oil workflow standards and specifications, oil reading comprehension, oil engineering algorithms, and graphic standards and specifications;
[0008] S2. Data preprocessing: Data preprocessing consists of structured data preprocessing and unstructured document preprocessing;
[0009] Structured data preprocessing refers to processing the original data into data units with independent business meanings based on business rules using data extraction tools, while supplementing some business annotation information;
[0010] Unstructured document preprocessing is to split document data into multiple smaller parts or paragraphs with independent business meanings according to splitting logic, and then organize and mark the paragraphs by category, topic or other standards;
[0011] S3. Data labeling: For oil and gas industry data labeling, it mainly includes business standards and business relationship labeling, which gives data various business labels, further explains the various business characteristics and extended meanings of the data, and further understands the data;
[0012] Establish a business resource description model based on the business attributes and business relationships of the above data granularity units, and annotate the oil data through the relationships of each dimension of the model;
[0013] S4. Training data generation: Establish a business resource description model based on the business attributes and business relationships of the data granularity unit, annotate the oil data through the relationships of each dimension of the model, prepare the input data according to the requirements of the big model, and generate training data in different formats according to the different fine-tuning requirements of the big model;
[0014] S5, Model retraining / fine-tuning / RLHF: When fine-tuning, use zero-code one-click fine-tuning. By setting parameters, selecting fine-tuning methods and data sets on the interface, fine-tuning can be performed automatically with one click.
[0015] S6. Model deployment: Consider model compression to reduce storage and computing burdens, choose appropriate deployment strategies to meet the needs of specific environments, perform tuning to ensure optimal performance, monitor model performance and health in real time, and perform regular model upgrades based on feedback and new data;
[0016] S7. Application operation: Utilize the processing and data generation capabilities of massive multimodal unstructured data, the support for large model tuning algorithms in specific fields and distributed parallel computing, the deployment and management capabilities of large model compression and transformation to adapt to edge reasoning, service publishing and orchestration operation capabilities, resource scheduling and plug-in ecology to ensure the steady operation of the entire process of large models from production to on-site application.
[0017] Preferably, the basic concepts of petroleum in S1 are derived from professional books and monographs on petroleum, and are used to explain the definitions, meanings and differences of various basic concepts of oil and gas;
[0018] The oil business content describes the specific working nodes of the oil and gas business, the IPOM of each working node, and the working nodes must be the minimum working nodes;
[0019] The oil work process standard specification describes various work processes and professional work standard specifications in the oil business, and explains what a business work includes and how to implement it;
[0020] The petroleum reading comprehension generates reading comprehension format data from a large number of analyses and conclusions in professional reports, such as the understanding of a trap, the understanding of an exploratory well, and the understanding of a stratum;
[0021] The petroleum engineering algorithm describes the calculation formulas and rules of various petroleum data and parameters, including report generation rules, various graphics generation rules, and various report template structures;
[0022] The graphic standard specification includes professional graphic style specification data and professional graphic content template requirement data;
[0023] Preferably, the splitting logic in S2 includes: splitting each chapter or title by chapter or title, and the split content can be regarded as a separate sub-document; splitting by content type: extracting charts and pictures in the document into independent files; splitting by user rules: based on predefined rules or user-entered standards.
[0024] Preferably, the business standard annotation in S3 refers to annotating the business meaning of each business data to further explain the business meaning and business content of the data;
[0025] Business relationship annotation refers to the annotation of business relationships between data and data, including but not limited to professional relationships, business relationships, various relationships, and data blood relationships.
[0026] Preferably, the business attributes and business relationships in S4 include basic data structure, multi-round dialogue data, NL2SQL (SFT fine-tuning) definition, reading comprehension data and question-answering scenario data;
[0027] Training data generated in different formats include table generation data and graphic image data. Table generation data can define the format content of some fixed business tables and automatically generate tables from data, such as physical property data tables and reserve data tables; graphic image data can prepare graphic elements, layers, and drawing styles in a hierarchical manner and define their business meanings.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1. Large models can use semantic understanding and generation capabilities to extract knowledge, improve the accuracy and coverage of knowledge extraction, and can also extract implicit, complex, and multimodal knowledge to reduce the cost of graph construction.
[0030] 2. The large model can use its semantic understanding and instruction-following capabilities to assist in the semi-automatic construction and design of the knowledge graph, increase the comprehensiveness and coverage of knowledge, and help better complete knowledge integration and updating. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1A flowchart of a method for constructing a large model of an oil and gas enterprise based on a petroleum business model proposed by the present invention;
[0032] Figure 2 This is a schematic diagram of data preprocessing in a method for building a large model of an oil and gas enterprise based on a petroleum business model proposed by the present invention;
[0033] Figure 3 This is an example of LoRA fine-tuning in the oil and gas enterprise large model construction method based on the petroleum business model proposed by the present invention. Figure 1 ;
[0034] Figure 4 This is an example of LoRA fine-tuning in the oil and gas enterprise large model construction method based on the petroleum business model proposed by the present invention. Figure 2 ;
[0035] Figure 5 This is an example of LoRA fine-tuning in the oil and gas enterprise large model construction method based on the petroleum business model proposed by the present invention. Figure 3 ;
[0036] Figure 6 This is an example of LoRA fine-tuning in the oil and gas enterprise large model construction method based on the petroleum business model proposed by the present invention. Figure 4 ;
[0037] Figure 7 This is a schematic diagram of model deployment in a method for building a large model of an oil and gas enterprise based on a petroleum business model proposed in the present invention. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0039] Example, see Figure 1-6 , a method for building a large model for oil and gas enterprises based on the oil business model, including pre-trained models and large-scale pre-trained models. Pre-trained models: first pre-train an initial model on an original task, and then continue to fine-tune the model on downstream tasks, so as to improve the accuracy of downstream tasks. Large-scale pre-trained models: The model parameters develop to trillions, and the generalization ability of the model becomes stronger, which can accumulate industry know-how and obtain information from text / pictures more efficiently and accurately.
[0040] The method for building a large model of an oil and gas enterprise includes the following steps:
[0041] Step 1: Prepare a large amount of oil and gas industry business data required for building a large model of the oil and gas industry, including but not limited to basic oil concepts, oil business content, oil workflow standards and specifications, oil reading comprehension, oil engineering algorithms, and graphic standards and specifications;
[0042] Basic concepts of petroleum are derived from professional books and monographs on petroleum, which are used to explain the definitions, meanings and differences of various basic concepts of oil and gas;
[0043] The content of petroleum business describes the specific work nodes of oil and gas business, the IPOM of each work node, and the work nodes must be the minimum work nodes;
[0044] The oil process standard specification describes various work processes and professional work standard specifications in the oil business, and explains what a business task includes and how to implement it;
[0045] Petroleum reading comprehension converts a large amount of analysis and conclusions in professional reports into reading comprehension format data, such as the understanding of a trap, an exploratory well, and the understanding of strata;
[0046] Petroleum engineering algorithms explain the calculation formulas and rules of various petroleum data and parameters, including report generation rules, various graphics generation rules, and various report template structures;
[0047] Graphic standard specifications include professional graphic style specification data and professional graphic content template requirement data;
[0048] Data preprocessing is to process and extract data of various sizes and types according to the above-mentioned standard granularity units. The specific processing flow includes data unit definition, data extraction according to standard granularity units, data meaning supplement, data normalization description, etc.
[0049] Step 2: Data preprocessing consists of structured data preprocessing and unstructured document preprocessing. The core purpose of data preprocessing is to process non-standard physical data from various sources into "standard data" with business standard granularity. From the perspective of oil and gas business, any data should have a specific business meaning.
[0050] Structured data preprocessing refers to processing the original data into data units with independent business meanings based on business rules using data extraction tools, while supplementing some business annotation information;
[0051] Data slicing: Slice the data set according to the master data to form a business data set. For example, the drilling trajectory design data table is sliced into the exploration well / adjustment well / development well drilling trajectory design data table.
[0052] Data extraction: convert basic data into data with business meaning and can be used directly, such as monthly production data table of well xx, etc.
[0053] Business label extraction: Use the business rules of the data to convert business data into business labels. For example: production level classification (high-yield wells, medium-yield wells, etc.);
[0054] Unstructured document preprocessing is to split document data into multiple smaller parts or paragraphs with independent business meanings according to splitting logic, and then organize and mark the paragraphs by category, topic or other standards;
[0055] The splitting logic includes: splitting each chapter or title by chapter or title, and the split content can be regarded as a separate sub-document; splitting by content type: extracting charts and pictures in the document into independent files; splitting by user rules: based on predefined rules or user-entered standards.
[0056] Step 3: Data labeling for the oil and gas industry mainly includes business standards and business relationship labeling, which labels the data with various business tags, further explains the various business characteristics and extended meanings of the data, and further understands the data;
[0057] Establish a business resource description model based on the business attributes and business relationships of the above data granularity units, and annotate the oil data through the relationships of each dimension of the model;
[0058] Business standard annotation refers to annotating the business meaning of each business data to further explain the business meaning and content of the data;
[0059] Business relationship annotation refers to the annotation of business relationships between data and data, including but not limited to professional relationships, business relationships, various relationships, and data blood relationships.
[0060] Step 4: Establish a business resource description model based on the business attributes and business relationships of the data granularity unit, annotate the oil data through the relationships of each dimension of the model, prepare the input data according to the requirements of the big model, and generate training data in different formats according to the different fine-tuning requirements of the big model;
[0061] Business attributes and business relationships include basic data structure, multi-round dialogue data, NL2SQL (SFT fine-tuning) definition, reading comprehension data, and question-answering scenario data;
[0062] Basic data structure: Context-target (i.e. question-answer);
[0063] Multi-round dialogue data: The precise meaning of the business can be clarified by clarifying some concepts, such as the understanding of unconventional oil and gas. The meaning of unconventional oil and gas can be explained from multiple levels, such as what is the concept of unconventional oil and gas, which reservoirs are not unconventional oil and gas, the characteristics of unconventional oil and gas, typical cases, etc.
[0064] NL2SQL (SFT fine-tuning) definition: Text to SQL (NL2SQL for short) is the process of converting natural language text (Text) into structured query language SQL, "breaking the barriers between people and structured data". Ordinary users can complete complex database query work through natural language descriptions and get the desired results. SQL consists of three parts: database elements (table names, column names), vocabulary in the question, and SQL keywords;
[0065] Reading comprehension data: By analyzing some business phenomena, some business understandings or conclusions can be formed. This is very common in oil business applications, such as the understanding of traps and basin geological conditions.
[0066] Question and answer scenario data: Some classification concepts can be determined by the value range of some parameters, such as the distinction between marine strata and continental strata, the distinction between delta sedimentary facies and river facies, etc.
[0067] Training data generated in different formats include table generation data and graphic image data. Table generation data can define the format content of some fixed business tables and automatically generate tables from data, such as physical property data tables and reserve data tables; graphic image data can prepare graphic elements, layers, and drawing styles in a hierarchical manner and define their business meanings.
[0068] Step 5: Use zero-code one-key fine-tuning when fine-tuning. By setting parameters, selecting fine-tuning methods and data sets on the interface, fine-tuning can be performed automatically with one click.
[0069] Choose a large basic model based on fine-tuning, such as LLaMA-7B, GPT-J-6B, Stabl eLM-7B, etc.;
[0070] Select the dataset file for training in Json format. The format that meets your needs; select the appropriate fine-tuning method, such as LoRA, Adapter, Prefix-tuning, P-tuning, and Prompt-tuning;
[0071] Based on the structure and performance of the model, determine the parameters that need to be adjusted, such as learning rate, batch size, training deployment, regularization strength, weight decay, etc.
[0072] Step 6: Consider model compression to reduce storage and computing burdens, choose the appropriate deployment strategy to meet the needs of specific environments, perform tuning to ensure optimal performance, monitor the performance and health of the model in real time, and perform regular model upgrades based on feedback and new data;
[0073] Step 7: Leverage the processing and data generation capabilities of massive multimodal unstructured data, the support for large model tuning algorithms in specific fields and distributed parallel computing, the deployment and management capabilities of large model compression and transformation to adapt to edge reasoning, service publishing and orchestration operations capabilities, resource scheduling and plug-in ecology to ensure the steady operation of the entire process of large models from production to on-site application.
[0074] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for constructing a large model of an oil and gas enterprise based on a petroleum business model, characterized in that: The method for constructing a large oil and gas enterprise model comprises the following steps: S1. Data preparation: Prepare a large amount of oil and gas industry business data required for building a large model of the oil and gas industry, including basic oil concepts, oil business content, oil workflow standards and specifications, oil reading comprehension, oil engineering algorithms, and graphic standards and specifications; S2. Data preprocessing: Data preprocessing consists of structured data preprocessing and unstructured document preprocessing; Structured data preprocessing refers to processing the original data into data units with independent business meanings based on business rules using data extraction tools, while supplementing some business annotation information; Unstructured document preprocessing is to split document data into multiple smaller parts and paragraphs with independent business meanings according to the splitting logic, and then organize and mark the paragraphs by category and topic; S3. Data labeling: For oil and gas industry data labeling, including business standards and business relationship labeling, multiple business labels are added to the data to further explain the various business characteristics and extended meanings of the data, and further understand the data; Establish a business resource description model based on business attributes and business relationships, and annotate the oil data through the relationships of various dimensions of the model; S4. Training data generation: Establish a business resource description model based on the business attributes and business relationships of the data granularity unit, annotate the oil data through the relationships of each dimension of the model, prepare the input data according to the requirements of the big model, and generate training data in different formats according to the different fine-tuning requirements of the big model; S5, Model retraining / fine-tuning / RLHF: When fine-tuning, use zero-code one-click fine-tuning. By setting parameters, selecting fine-tuning methods and data sets on the interface, fine-tuning can be performed automatically with one click. S6. Model deployment: Consider model compression to reduce storage and computing burdens, choose appropriate deployment strategies to meet the needs of specific environments, perform tuning to ensure optimal performance, monitor model performance and health in real time, and perform regular model upgrades based on feedback and new data; S7. Application operation: Utilize the processing and data generation capabilities of massive multimodal unstructured data, the support for large model tuning algorithms in the field and distributed parallel computing, the deployment and management capabilities of large model compression and transformation to adapt to edge reasoning, service release and orchestration operation capabilities, and resource scheduling to ensure the steady operation of the entire process of large models from production to on-site application.
2. The method for constructing a large oil and gas enterprise model based on a petroleum business model according to claim 1, characterized in that: The basic concepts of petroleum in S1 are derived from professional books and monographs on petroleum, and are used to explain the definitions, meanings and differences of various basic concepts of oil and gas; The oil business content describes the specific working nodes of the oil and gas business, the IPOM of each working node, and the working nodes must be the minimum working nodes; The oil work process standard specification describes various work processes and professional work standard specifications in the oil business, and explains what a business work includes and how to implement it; The petroleum reading comprehension generates reading comprehension format data from a large number of analyses and conclusions in professional reports, including the understanding of a trap, an exploratory well, and the understanding of strata; The petroleum engineering algorithm describes the calculation formulas and rules for various petroleum data and parameters, including report generation rules, various graphics generation rules, and various report template structures; The graphic standard specification includes professional graphic style specification data and professional graphic content template requirement data.
3. The method for constructing a large oil and gas enterprise model based on a petroleum business model according to claim 1, characterized in that: The splitting logic in S2 includes: splitting each chapter or title by chapter or title, and the split content can be regarded as a separate sub-document; splitting by content type: extracting charts and pictures in the document into independent files; splitting by user rules: based on predefined rules or user-entered standards.
4. The method for constructing a large oil and gas enterprise model based on a petroleum business model according to claim 1, characterized in that: The business standard annotation in S3 refers to annotating the business meaning of each business data to further explain the business meaning and business content of the data; Business relationship annotation refers to annotating data and the business relationship between the data, including professional relationships, business relationships, and data blood relationships.
5. The method for constructing a large oil and gas enterprise model based on a petroleum business model according to claim 1, characterized in that: The business attributes and business relationships in S4 include basic data structure, multi-round dialogue data, NL2SQL definition, reading comprehension data and question-answering scenario data; Training data generated in different formats include table generation data and graphic image data. Table generation data can define the format content of some fixed business tables and automatically generate tables from data; graphic image data can prepare graphic elements, layers, and drawing styles in a hierarchical manner and define their business meanings.
Citation Information
Patent Citations
Data model construction method, device and equipment and storage medium
CN109558393A
Petroleum data model modeling method and tool
CN112862302A
Petroleum business resource definition method and system
CN114168571A
Domain knowledge graph construction method and system based on generative large language model
CN116860987A
Oil and gas pipe network distributed joint modeling system and method and storage medium
CN117170871A
