Algorithm loading and integrating method and system based on oil and gas geology

Through modular architecture and intelligent technology system, the problem of closed and scattered algorithm libraries in commercial software has been solved, and seamless integration of self-developed and third-party algorithms has been achieved, which has improved the application efficiency and decision support capabilities of oil and gas exploration algorithms and simplified the operation process.

CN120950149APending Publication Date: 2025-11-14CHINA NATIONAL OFFSHORE OIL (CHINA) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511144757.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Existing commercial software's oil and gas exploration algorithm libraries are closed and fragmented, making it difficult to meet the needs of research teams for developing their own algorithms. This results in low efficiency and high system coupling, making it impossible to effectively apply customized and intelligent new technologies.

Method used

Through a modular architecture and intelligent technology system, it provides algorithm loading and integration methods, including algorithm package access and registration, interface protocol configuration, runtime environment settings and visual interface monitoring, supporting seamless integration of self-developed and third-party algorithms, and realizing automated processing and resource optimization of multi-source geological data.

Benefits of technology

This forms a highly scalable, loosely coupled, and highly reusable intelligent service framework, improving the application efficiency and decision support capabilities of oil and gas exploration algorithms, simplifying the operation process of complex models, reducing system coupling, and ensuring compatibility with multi-source data formats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120950149A_ABST
    Figure CN120950149A_ABST
Patent Text Reader

Abstract

The invention relates to an algorithm loading and integrating method based on oil and gas geology. The algorithm loading and integrating method comprises the following steps: S1, acquiring an algorithm package developed by a user according to a customized algorithm demand; s2, determining an input parameter and an output result structure corresponding to the algorithm packet according to input and / or output parameter requirements of the algorithm packet; s3, realizing access registration of the algorithm packet, determining an interface protocol of the algorithm packet and configuring a running environment of the algorithm packet; s4, packaging the algorithm packet completing access registration into a service conforming to a set specification; and S5, calling a service corresponding to the algorithm packet through a service calling interface, executing algorithm operation and monitoring, and providing a visual interface of a monitoring and execution result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oil and gas geology research technology, specifically to an algorithm loading and integration method and system based on oil and gas geology. Background Technology

[0002] In the field of oil and gas geology research, with the increasing complexity of exploration targets and the deepening of research, the demand for advanced technologies such as 3D spatial modeling, multi-source heterogeneous data processing, and oil and gas dynamic analysis continues to grow. At the same time, researchers' demand for the variety and quantity of specialized and customized algorithms is showing an exponential upward trend.

[0003] Existing commercial software algorithm libraries are mostly fixed and closed systems, which have significant limitations. Oil and gas exploration algorithms in commercial software are often used independently and in a decentralized manner, making algorithm reuse difficult, inefficient, and even less able to meet the needs of research teams to develop their own algorithms.

[0004] Therefore, the existing technology system severely restricts the effective application and promotion of customized and intelligent new technologies and algorithms in oil and gas geological research. Summary of the Invention

[0005] This invention provides a method and system for loading and integrating algorithms based on oil and gas geology, overcoming the shortcomings of existing technologies such as poor algorithm scalability, high system coupling, and low service reuse rate.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: Firstly, this application provides a method for loading and integrating algorithms based on oil and gas geology, including: S1, Obtain the algorithm package developed by the user for their customized algorithm needs; S2, based on the input and / or output parameter requirements of the algorithm package, determine the input parameters and output result structure corresponding to the algorithm package; S3, implements the access registration of algorithm packages, determines the interface protocol of algorithm packages and configures their runtime environment; S4 encapsulates the completed access registration algorithm package into a service that conforms to the set specifications; S5, through the service call interface, calls the service corresponding to the algorithm package to execute and monitor the algorithm, and provides a visual interface for monitoring and execution results.

[0007] In one implementation, S2 includes: Establish a mapping table between the algorithm parameters in the algorithm package and the data fields of the input parameters; Determine the format and encapsulation of input parameters and / or output results; The parameter template for the input parameters is determined based on the algorithm type of the algorithm package.

[0008] In one implementation, in S3, the interface protocol includes HTTP RESTful and gRPC; Configure the runtime environment for the algorithm package and resolve the dependency libraries corresponding to the algorithm package.

[0009] In one implementation, in step S4, the algorithm package is encapsulated as a general API service.

[0010] In one implementation, S5 provides the display output of 3D rendering, parameter configuration panel, and multi-dimensional icons.

[0011] Secondly, an algorithm loading and integration system based on oil and gas geology is provided, including: The algorithm input module is used to obtain the algorithm package developed by the user for customized algorithm requirements; The parameter integration module is used to determine the input parameters and output result structure corresponding to the algorithm package based on the input and / or output parameter requirements of the algorithm package; The algorithm registration module enables the access and registration of algorithm packages, determines the interface protocol of the algorithm packages, and configures their runtime environment. The interface encapsulation module encapsulates the algorithm package that has completed the access registration into a service that conforms to the set specifications; The algorithm service and visualization integration module calls the corresponding service of the algorithm package through the service call interface, executes the algorithm and monitors it, and provides a visualization interface for monitoring and execution results.

[0012] The present invention has the following advantages: The core advantage of this invention lies in its modular architecture and intelligent technology system, which forms an integrated service platform combining self-developed algorithms and existing algorithms. This platform meets the professional algorithm needs of business personnel and improves their work efficiency. Intelligent parameter integration technology enables automated processing and structured encapsulation of multi-source geological data (seismic / well logging / core data), combined with asynchronous computation mechanisms to optimize resource scheduling efficiency. An open algorithm registration mechanism supports seamless integration of multiple algorithms (self-developed / third-party). Standardized interfaces and data adaptation layers decouple algorithm functions from commercial system dependencies, ensuring compatibility with multi-source data formats and eliminating conversion losses, thus reducing system coupling. A visualization engine integrates dynamic rendering and interactive parameter adjustment functions, simplifying complex model operation processes. This technology system covers the entire lifecycle of algorithm development, integration, deployment, and operation and maintenance, forming a highly scalable, loosely coupled, and highly reusable intelligent service framework, effectively improving the application efficiency and decision support capabilities of oil and gas exploration algorithms. Attached Figure Description

[0013] Figure 1 This is a schematic diagram of the method flow of the present invention.

[0014] Figure 2 This is a schematic diagram of the system structure of the present invention. Detailed Implementation

[0015] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the described embodiments of the present invention are within the scope of protection of the present invention.

[0016] To address the shortcomings and problems of existing technologies, this application provides an algorithm loading and integration method based on oil and gas geology, including: S1, Obtain the algorithm package developed by the user for their customized algorithm needs; S2, based on the input and / or output parameter requirements of the algorithm package, determine the input parameters and output result structure corresponding to the algorithm package; S3, implements the access registration of algorithm packages, determines the interface protocol of algorithm packages and configures their runtime environment; S4 encapsulates the completed access registration algorithm package into a service that conforms to the set specifications; S5, through the service call interface, calls the service corresponding to the algorithm package to execute and monitor the algorithm, and provides a visual interface for monitoring and execution results.

[0017] Correspondingly, a system is provided, consisting of an algorithm input module, a parameter integration module, an algorithm registration module, an interface encapsulation module, an algorithm service and a visualization integration module, to implement the response method.

[0018] The above system will now be described in a more detailed embodiment with reference to more accompanying drawings.

[0019] The parameter integration module encapsulates standardized data into structured parameters based on the input requirements of the target algorithm. This includes... (1) Parameter mapping: Establish a mapping table between data fields and algorithm parameters (e.g., map "earthquake amplitude" to the "Amplitude" parameter); (2) Format conversion: Supports multiple formats such as JSON, XML, and XLS, for example, converting 3D mesh data into a nested JSON structure; (3) Dynamic adaptation: Automatically select parameter templates according to the algorithm type (such as fault identification, reservoir inversion).

[0020] The algorithm registration module enables the registration and integration of self-developed algorithms, third-party APIs and packages (such as Python and DLL libraries), including... (1) Protocol adaptation: Supports HTTP RESTful, gRPC and other interface protocols. External algorithms submit metadata (algorithm name, input and output format, dependent libraries) through the registration interface. (2) Dependency management: Automatically resolve algorithm dependencies (such as NumPy and TensorFlow libraries) and configure the runtime environment.

[0021] The interface encapsulation module packages the registered algorithms into a unified API service for external systems to call. Specific implementation includes... (1) Standardized interface: Define a common API specification (such as POST / api / algorithm / {id} / execute); (2) Asynchronous call: Supports asynchronous processing of long-running tasks and returns task ID for querying progress; Error handling: Built-in exception handling mechanism, returns structured error codes (such as {"code": 500, "message": "Invalid inputformat"}).

[0022] The algorithm service and visualization integration module provides an interactive visualization interface, supporting services such as algorithm configuration, execution monitoring, and result display. (Includes...) (1) 3D rendering: Integrating WebGL technology to display 3D geological models and algorithm processing results (such as fault planes and reservoir distribution) in real time. (2) Parameter configuration panel: Dynamically generates algorithm parameter input forms (such as sliders and drop-down menus); (3) Results visualization: Generate multi-dimensional charts.

[0023] exist Figure 1 The scenario illustrates the service-oriented development process of the algorithm.

[0024] Specifically, researchers (users) propose a customized algorithm requirement, which needs to receive input data in a specific format, execute internal computational logic, and output computational results.

[0025] Based on the requirements, the self-developed algorithm is completed (this step can be done by the user or entrusted to the platform / third party). The developed algorithm is an independent, executable code package (such as a .whl file packaged as a Python script, a Java JAR file, or a specific executable program). Researchers submit the completed self-developed algorithm package to the algorithm access module of this invention.

[0026] Algorithm service encapsulation The parameter integration module defines and maps standardized input parameters (such as data file paths and configuration parameter key-value pairs) and output result structures according to the input / output requirements of the algorithm package.

[0027] The interface encapsulation module encapsulates the algorithm package into a service, automatically generating a unified service description file that clearly defines the service's unique identifier, input parameter definitions, output result definitions, required computing resources, etc.

[0028] Create standard RESTful API endpoints, ensuring protocol and data format compatibility: This guarantees that the encapsulated service can be invoked via standard protocols (such as HTTP) and handle agreed-upon data formats (such as receiving parameters in a JSON request body and returning JSON results). Shield the underlying details; the encapsulation layer is responsible for calling the underlying algorithm package, handling the loading of its input data, computation, and result collection, while exposing a concise and consistent API interface.

[0029] exist Figure 2 The scenario illustrates the algorithm integration management service.

[0030] Algorithm Access Business personnel upload the pre-packaged .dll (or .so) algorithm package to the platform's "Algorithm Management" interface and fill in the algorithm metadata (algorithm name, algorithm type, version number, supported data formats, etc.). The platform calls the GetVarsInfo interface to automatically read the parameter list within the algorithm package, including the ID, index, type (configuration / input / output / custom), and name of each parameter, and packages it into a first-stage BaseParam object to prepare for subsequent conversion.

[0031] Parameter information conversion Call the GetList interface to obtain the list of original parameter information after BaseParam is wrapped. The platform converts all parameters into the ParamInfo standard format according to the second algorithm conversion rules (the rules for converting BaseParam into ParamInfo objects), including explicit parameter names, data types (such as floating point, integer, string), Chinese / English descriptions, etc.

[0032] Function block library configuration The generated ParamInfo objects are pushed to the function block library configuration tool. Through dynamic reflection, the matching relationship between each ParamInfo and the predefined function block interface (IAPCWRAPPER) is read, and a "reservoir parameter inversion" function block is automatically generated and named according to the second naming rule, such as ReservoirInversion_v1.0.

[0033] Graphical configuration and deployment In the visualization configuration platform, business personnel can see the "Reservoir Parameter Inversion" function block displayed in the form of graphical elements. The graphical elements are clearly labeled with the algorithm name, algorithm type (such as "inversion"), input pins (input wellbore xyz coordinates, logging curve xls table, formation attribute json), and output pins (inversion result point cloud xyz). The process configuration is completed by dragging and dropping, connecting lines, etc. The running values ​​of each input parameter are filled in (for example, uploading a .json format formation attribute file). Clicking "Publish" exposes the function block as a RESTful service to the outside world.

[0034] The corresponding illustrative code is: POST / api / alg / invoke / ReservoirInversion_v1.0 Content-Type: application / json { "xyzPath": " / data / well123.xyz", "logTable": " / data / logs.xlsx", "formationProps": { …} / / JSON structure } Once the service is complete, a standardized point cloud result (result.xyz) is returned, which can be downloaded synchronously or previewed online in 3D on the platform.

[0035] In summary, the method and system of the embodiments of the present invention achieve the following two points: 1. Design a self-developed algorithm integration scheme. Based on the customized algorithm needs of researchers, this invention implements the design and development of corresponding algorithms, and encapsulates the implemented self-developed algorithms into standardized service interfaces to form a unified algorithm service interface that supports the HTTP protocol, providing unified algorithm services for researchers. 2. Design an existing algorithm integration service solution. Business personnel provide professional algorithm libraries or APIs. This invention will integrate, adapt, and standardize these existing algorithms, support synchronous calls to algorithm APIs via HTTP protocol, support data formats such as xyz, xls, and json, and uniformly encapsulate the integrated algorithms into services, providing integrated professional algorithm services to the outside world through the platform.

[0036] In the several embodiments provided by this invention, it should be understood that the disclosed methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0037] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for loading and integrating algorithms based on oil and gas geology, characterized in that, include: S1, Obtain the algorithm package developed by the user for their customized algorithm needs; S2, based on the input and / or output parameter requirements of the algorithm package, determine the input parameters and output result structure corresponding to the algorithm package; S3, implements the access registration of algorithm packages, determines the interface protocol of algorithm packages and configures their runtime environment; S4 encapsulates the completed access registration algorithm package into a service that conforms to the set specifications; S5, through the service call interface, calls the service corresponding to the algorithm package to execute and monitor the algorithm, and provides a visual interface for monitoring and execution results.

2. The algorithm loading and integration method based on oil and gas geology according to claim 1, characterized in that, The S2 includes: Establish a mapping table between the algorithm parameters in the algorithm package and the data fields of the input parameters; Determine the format and encapsulation of input parameters and / or output results; The parameter template for the input parameters is determined based on the algorithm type of the algorithm package.

3. The algorithm loading and integration method based on oil and gas geology according to claim 2, characterized in that, In S3, the interface protocols include HTTP RESTful and gRPC; Configure the runtime environment for the algorithm package and resolve the dependency libraries corresponding to the algorithm package.

4. The algorithm loading and integration method based on oil and gas geology according to claim 1, characterized in that, In step S4, the algorithm package is encapsulated as a general API service.

5. The algorithm loading and integration method based on oil and gas geology according to claim 1, characterized in that, The S5 provides 3D rendering, parameter configuration panel, and multi-dimensional icon display output.

6. An algorithm loading and integration system based on oil and gas geology, characterized in that, include: The algorithm input module is used to obtain the algorithm package developed by the user for customized algorithm requirements; The parameter integration module is used to determine the input parameters and output result structure corresponding to the algorithm package based on the input and / or output parameter requirements of the algorithm package; The algorithm registration module enables the access and registration of algorithm packages, determines the interface protocol of the algorithm packages, and configures their runtime environment. The interface encapsulation module encapsulates the algorithm package that has completed the access registration into a service that conforms to the set specifications; The algorithm service and visualization integration module calls the corresponding service of the algorithm package through the service call interface, executes the algorithm and monitors it, and provides a visualization interface for monitoring and execution results.