Task management and resource scheduling method and system for artificial intelligence geological map modeling
Through the task management and resource scheduling method of artificial intelligence geological map modeling, it solves the problems of low multi-data processing efficiency and inflexible resource scheduling in traditional technology, achieves efficient geological map prediction and resource utilization under different business scenarios, and improves the efficiency of geological map modeling. Application efficiency of artificial intelligence geological map generation.
Patent Information
- Application Number
- CN202410277990.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-03-12
AI Technical Summary
Traditional geological mapping technology is difficult to effectively store and process multiple types of geological data, and existing artificial intelligence geological map generation technology has low model construction and resource scheduling efficiency in different business scenarios, making it difficult to meet the needs of different application scenarios.
The task management and resource scheduling method of artificial intelligence geological map modeling is used to create different sample sets and model construction plans based on business needs, monitor job queues and GPU resources in real time, use container technology to allocate computing resources, and optimize task execution and resource utilization.
It achieves efficient geological map prediction under different business scenarios, improves computing resource utilization, provides flexible task management and control, supports the construction of multiple models and resource allocation, and improves the application efficiency of artificial intelligence geological map generation.
Smart Images

Figure CN118210606B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence geological map prediction technology, and more specifically to a task management and resource scheduling method and system for artificial intelligence geological map modeling. Background Art
[0002] Geological mapping is a basic task in regional geological surveys. It is also an important method for studying regional geological and mineral conditions, geophysical and geochemical anomaly inspections, geological structure research, etc. Therefore, doing a good job in geological mapping is of great significance.
[0003] 1. From traditional paper geological mapping to digital geological mapping
[0004] Geological mapping is the geological work process of mapping various geological bodies and geological phenomena on a geographic base map at a certain scale to form a geological map based on field observation and research.
[0005] Digital geological mapping technology is a technology that uses geographic information systems, global satellite positioning systems, remote sensing technology, etc. to digitally collect, store, organize, analyze, map and build databases of various geological information obtained from field geological surveys. Over the years, digital geological mapping technology has been widely used in the geological mapping process.
[0006] The geological map is the most important output of geological mapping work. It refers to the geological information such as the age, occurrence and distribution of strata and various types of rocks in a certain area, which is represented by a certain legend on a topographic map of a certain scale. The traditional or digital geological map drawing process relies on the mapping methods, experience and knowledge of geologists, combined with the geological phenomenon observation data of field investigations and the terrain and geomorphology survey data through manual compilation.
[0007] In the process of mapping, usually only one or a few types of data are considered, and few comprehensive technical means can fully exploit the value of multi-dimensional and multi-type data. Traditional data storage technology is also unable to effectively store and efficiently process multi-dimensional and multi-type geological data.
[0008] 2. From digital geological mapping to intelligent geological mapping
[0009] In recent years, industry professionals have focused on how to deeply integrate geological mapping with technologies such as big data, artificial intelligence, and cloud computing, and apply them to more business scenarios and workflows such as pre-research, field surveys, comprehensive research, and results compilation in regional geological surveys. "Intelligent geological mapping" is reflected in: in the entire process of pre-research, field data collection, and results analysis and collation, by acquiring and gathering geological data and using geological knowledge, an artificial intelligence working mode is formed to solve geological problems in a computational mode.
[0010] Among them, artificial intelligence geological map generation technology is an important part of the intelligent geological mapping technology system. It converts various types of original data and results data that reflect the geological characteristics of the surface and a certain depth, and the methods, experience and knowledge of geologists in the past century into a computer-understandable and computable knowledge base; using deep learning methods, it finds the correlation between its geological characteristics and mapping units and lithology (the most basic geological objects reflected in geological maps), and then predicts mapping units and lithology, accurately reflecting and expressing the spatial distribution form, distribution direction and mutual relationship of geological bodies.
[0011] In practical applications, different business application scenarios require different models to be constructed, such as unsupervised models in the preliminary research phase and supervised models in the field survey phase. Different models rely on different frameworks and computing resources during the training process. Therefore, it is important to manage modeling tasks and resources in various business application scenarios in order to efficiently realize geological map prediction based on artificial intelligence methods. Summary of the invention
[0012] In view of this, the present invention provides a task management and resource scheduling method and system for artificial intelligence geological map modeling, which is used to call different models to realize geological map prediction in different scenarios.
[0013] In order to achieve the above object, the present invention adopts the following technical solution:
[0014] In a first aspect, an embodiment of the present invention provides a task management and resource scheduling method for artificial intelligence geological map modeling, comprising:
[0015] S1. Use different sample sets and model building solutions according to business needs, create a modeling task, and submit the task to the job queue;
[0016] S2: monitor in real time whether there is a modeling task in the job queue, and when a modeling task is detected, obtain all currently idle GPU resources;
[0017] S3, creates a container based on the task information and calculates the required GPU resources;
[0018] S4, allocate GPU resources to the task and execute the modeling task;
[0019] Furthermore, in step S1, the use of different sample sets and model building schemes according to business needs refers to determining the model building scheme according to the different business stages of the field geological survey work, that is, from the preliminary research stage to the field investigation stage; wherein the preliminary research stage is the initial stage of conducting a field investigation, and the sample set of this stage is composed only of materialized remote raster data; the field investigation stage is the various work stages in which the field route deployment is gradually increased as the field investigation work deepens, and the sample set of this stage is composed of two parts: materialized remote raster data and label data obtained from the route.
[0020] Furthermore, due to different business stages, different models are used when constructing modeling solutions. When in the preliminary research stage, an unsupervised model is used to create an unsupervised modeling task; when in the field investigation stage, a supervised model is used to create a supervised modeling task.
[0021] Furthermore, when the modeling task is successfully created, the task is submitted to the job queue; when the modeling task is not successfully created due to problems such as naming or parameter selection, it is not submitted to the job queue.
[0022] Optionally, the modeling task can be set with a priority, where the priority is divided into three levels: high, medium and low. In the job queue, tasks with high priority are processed first, followed by tasks with medium priority, and finally tasks with low priority. When there are multiple tasks with the same priority in the job queue, they proceed to the next stage based on the first-in, first-out principle.
[0023] Furthermore, tasks in the job queue are automatically removed from the job queue after execution, otherwise they are not removed.
[0024] Furthermore, the number of tasks in the job queue is limited. When the number exceeds the set maximum threshold, the user cannot create tasks. When the number is less than the threshold, tasks can be created.
[0025] Furthermore, the successfully created tasks are managed in a unified manner, including the tasks in the job queue that are to be assigned, being executed, and completed. It supports the termination of tasks in the job queue that are to be assigned at any time, supports real-time monitoring of tasks being executed in the job queue, and supports the viewing of completed task information.
[0026] Furthermore, it supports counting the number of various tasks by execution status, where the tasks to be assigned in the job queue are in the queued state, the tasks being executed in the job queue are in the executing state, and the status of completed tasks is divided into three categories according to different conditions: one is successful execution, one is exception handling, and the other is termination.
[0027] Furthermore, in step S2, the GPU resources have different GPU models due to different purchase batches, and different GPU models have different computing capabilities. To ensure computing efficiency, a computing resource cluster is constructed using pooling technology, and the cluster is divided into multiple GPU resource groups according to the GPU model, and the working status of each resource group in the cluster is monitored in real time.
[0028] Furthermore, the working status of each resource group in the cluster includes real-time collection of the working status of each GPU computing node in each resource group and the usage of computing power and video memory.
[0029] Furthermore, the step S3 includes:
[0030] Create a container based on the task information, configure the task modeling environment in the container and obtain process information, and calculate the GPU resources required for the task based on the process information.
[0031] Furthermore, the step S4 includes:
[0032] The required GPU resources obtained by S3 are used to determine whether the idle GPU resources meet the requirements. When the idle GPU resources meet the requirements, resources are allocated to the task to perform calculations. After the task is completed, the resources are released and the idle GPU resources are updated.
[0033] Optionally, when there are idle resources in multiple resource groups that meet the requirement, the task is allocated to a resource group that is closest to the required resources.
[0034] Optionally, when there are no corresponding idle GPU resources that meet the computing requirements, the task is executed after waiting for the GPU resources to be released.
[0035] In a second aspect, the embodiment of the present invention also provides a task management and resource scheduling system for artificial intelligence geological map modeling, including:
[0036] Task management module, used to manage modeling tasks, including creation, priority setting, work status monitoring, statistics and query of modeling tasks;
[0037] The GPU resource module is used to monitor the working status and idle computing resources of each computing node in each resource group divided according to the GPU model in the GPU cluster;
[0038] The container module is used to uniformly manage the modeling environment of the corresponding devices in the computing cluster, and to create containers to calculate the GPU resources required for modeling tasks, and to isolate the dedicated operating environment of each execution task in the resource group through containers;
[0039] The resource scheduling module is used to uniformly control the execution of modeling tasks based on the modeling task status, GPU resource status required by the task, and GPU idle status fed back by the task management module, container module, and GPU resource module;
[0040] Through the above technical solution, it can be known that compared with the prior art, the present invention discloses a task management and resource scheduling method for artificial intelligence geological map modeling. According to different business needs, different sample sets and model building schemes are used to create modeling tasks and submit the tasks to the job queue; real-time monitoring of whether there are modeling tasks in the job queue, when the modeling task is monitored, all currently idle GPU resources are obtained; a container is created according to the task information, and the required GPU resources are calculated; GPU resources are allocated according to the process information to execute the modeling task. This method provides more comprehensive and flexible support for later management and control by subdividing the modeling tasks, effectively improves the utilization rate of computing resources by building a GPU cluster, and provides an effective solution for the application of artificial intelligence geological map prediction technology by introducing container technology to achieve unified management of the modeling environment of each device in the computing cluster and mutual isolation of computing resources between processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0042] Figure 1 A flow chart of the task management and resource scheduling method for artificial intelligence geological map modeling provided by the present invention.
[0043] Figure 2 A schematic diagram of the task management and resource scheduling method for artificial intelligence geological map modeling provided by the present invention.
[0044] Figure 3 A framework diagram of the task management and resource scheduling system for artificial intelligence geological map modeling provided by the present invention. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Embodiment 1:
[0047] The embodiment of the present invention discloses a task management and resource scheduling method for artificial intelligence geological map modeling, referring to Figure 1 and Figure 2 As shown, the following steps are included:
[0048] S1. Use different sample sets and model building solutions according to business needs, create a modeling task, and submit the task to the job queue;
[0049] According to the different business stages of field geological survey work, that is, pre-study to field survey work stage. The pre-study stage is the starting stage of field survey. The sample set in this stage is composed only of materialized remote raster data. At this time, the unsupervised model is selected, and the modeling scheme is constructed by setting the modeling parameters to create an unsupervised modeling task. The modeling parameters include: training rounds, number of classification categories, learning rate, and pseudo-label ratio. The unsupervised modeling task uses the pytorch training environment.
[0050] When in the field investigation stage, that is, as the field investigation work deepens, the various work stages of field route deployment are gradually added. The sample set in this stage consists of two parts: materialized remote grid data and label data obtained from the route. At this time, the supervised model is selected, and the modeling scheme is constructed by setting the modeling parameters to create a supervised modeling task. The modeling parameters include: training rounds, learning rate, and modeling times. The supervised modeling task uses the tensorflow training environment.
[0051] In this process, the rationality of the constructed modeling scheme is verified according to the preset rules. If the scheme is reasonable, a modeling task is created and submitted to the job queue. If the scheme is unreasonable, the reason is prompted and the modeling task is not created.
[0052] During the creation process, you can set the priority of the modeling task. The priority is divided into three levels: high, medium and low. In the job queue, tasks with high priority are processed first, followed by tasks with medium priority, and finally tasks with low priority. When there are multiple tasks with the same priority in the job queue, they will proceed to the next stage according to the first-in, first-out principle.
[0053] The tasks submitted to the job queue are automatically removed from the job queue after execution, otherwise they are not removed. In addition, the number of tasks in the job queue is limited. When the maximum threshold is exceeded, users cannot create tasks. When the threshold is less than the threshold, the limit can be lifted to support task creation.
[0054] Unified management of successfully created tasks, including tasks to be assigned, being executed, and completed in the job queue. Support for terminating tasks to be assigned in the job queue at any time. Support for real-time monitoring of tasks being executed in the job queue. When a task is being executed, operations such as termination or deletion cannot be performed. Task information can be deleted after the task is completed. Support for viewing completed task information.
[0055] It supports counting the number of various tasks by execution status. The task status includes five states: queuing, executing, successful execution, handling exceptions and aborted. Among them, the tasks waiting to be assigned in the job queue are in the queuing state, the tasks being executed in the job queue are in the executing state, and the status of completed tasks is divided into three categories according to different conditions: one is successful execution, one is handling exceptions, and the other is aborted.
[0056] S2: monitor in real time whether there is a modeling task in the job queue, and when a modeling task is detected, obtain all currently idle GPU resources;
[0057] Due to different purchase batches, different GPU models have different computing capabilities. To ensure computing efficiency, we use pooling technology to build a computing resource cluster, and divide the cluster into multiple GPU resource groups according to the GPU model. We also monitor the working status of each resource group in the cluster in real time, including the video memory and GPU model of the GPU node in each resource group, whether it can be used normally, the current usage, and the remaining available resources. It should be noted that when scheduling resources across devices or nodes, only computing resources of different devices or nodes in the same resource group can be called.
[0058] In addition, a minimum threshold is set for each resource group. When the idle resources are less than a certain threshold, it is automatically determined that the idle resources are insufficient.
[0059] When at least one resource group is greater than the minimum threshold, the next stage is executed. When there are no idle resources, the next stage is executed after the idle resources are updated after monitoring.
[0060] S3, creates a container based on the task information and calculates the required GPU resources;
[0061] Create a container based on the task information, configure the task modeling environment in the container and obtain the process information, and calculate the GPU resources required for the task through the process information. When it is an unsupervised modeling task, configure the pytorch training environment, and when it is a supervised modeling task, configure the tensorflow training environment.
[0062] S4. Allocate GPU resources to the task and execute the modeling task.
[0063] Determine whether the monitored idle GPU resources meet the requirements based on the required GPU resources. When the idle GPU resources meet the modeling requirements, allocate resources to the task and isolate the task's dedicated operating environment in the resource group through the container corresponding to the task, perform calculations to synchronously update idle GPU resources, task status and other information, and execute the next task.
[0064] After the task is executed, the container is automatically destroyed, GPU resources are released, and information such as idle GPU resources and task status are updated. In particular, when a task is processed abnormally, in addition to updating the idle GPU resources and task status information, the cause of the exception must be returned.
[0065] When there are multiple resource groups with free resources that meet the requirements, the task is assigned to the resource group that is closest to the required resources.
[0066] When there are no corresponding idle GPU resources to meet the computing requirements, wait for the GPU resources to be released before executing the task.
[0067] Embodiment 2:
[0068] Based on the same inventive concept, an embodiment of the present invention also provides a task management and resource scheduling system for artificial intelligence geological map modeling. Since the principle of the problem solved by the system is similar to the task management and resource scheduling method for artificial intelligence geological map modeling, the implementation of the system can refer to the implementation of the aforementioned method, and the repeated parts will not be repeated.
[0069] Reference Figure 3 As shown, the system includes:
[0070] Task management module, used to manage modeling tasks, including creation, priority setting, work status monitoring, statistics and query of modeling tasks;
[0071] The GPU resource module is used to monitor the working status and idle computing resources of each computing node in each resource group divided according to the GPU model in the GPU cluster;
[0072] The container module is used to uniformly manage the modeling environment of the corresponding devices in the computing cluster, and to create containers to calculate the GPU resources required for modeling tasks, and to isolate the dedicated operating environment of each execution task in the resource group through containers;
[0073] The resource scheduling module is used to uniformly control the execution of modeling tasks based on the modeling task status, GPU resources required for the task, and GPU idle status fed back by the task management module, container module, and GPU resource module.
[0074] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0075] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A task management and resource scheduling method for artificial intelligence geological map modeling, characterized in that: The following steps are involved: S1. Use different sample sets and model building solutions according to business needs, create a modeling task, and submit the task to the job queue; S2: monitor in real time whether there is a modeling task in the job queue, and when a modeling task is detected, obtain all currently idle GPU resources; S3, creates a container based on the task information and calculates the required GPU resources; S4, allocate GPU resources to the task and execute the modeling task; Wherein, in step S1, the creation of a modeling task by using different sample sets and model building schemes according to business needs refers to determining the model building scheme according to the different business stages of the field geological survey work, i.e., from the pre-study stage to the field survey stage; The pre-research stage is the initial stage of field investigation. The sample set in this stage is composed of materialized remote grid data only, and an unsupervised modeling task is created. The field investigation stage is the stage where field route deployment is gradually added as the field investigation work deepens. The sample set in this stage is composed of materialized remote grid data and label data obtained from the route. A supervised model is used to create a supervised modeling task. Unified management of successfully created tasks, including tasks to be assigned, being executed, and completed in the job queue. Supports termination of tasks to be assigned in the job queue at any time, real-time monitoring of tasks being executed in the job queue, and viewing of completed task information. In step S2, the GPU resources have different GPU models due to different purchase batches, and different GPU models have different computing capabilities. To ensure computing efficiency, a computing resource cluster is constructed using pooling technology, and the cluster is divided into multiple GPU resource groups according to the GPU model, and the working status of each resource group in the cluster is monitored in real time; the working status of each resource group in the cluster includes real-time collection of the working status of each GPU computing node in each resource group and the usage of computing power and video memory; The step S3 comprises: creating a container according to the task information, configuring the task modeling environment in the container and obtaining the process information, and calculating the GPU resources required for the task through the process information; wherein the pytorch training environment is configured when it is an unsupervised modeling task, and the tensorflow training environment is configured when it is a supervised modeling task; The step S4 includes: judging whether the idle GPU resources meet the requirements according to the required GPU resources obtained in S3; when the idle GPU resources meet the requirements, allocating resources to the task to perform calculations; releasing the resources after the task is completed, and updating the idle GPU resources; when there are idle resources in multiple resource groups that meet the requirements, allocating the task to the resource group closest to the required resources; when there are no corresponding idle GPU resources that meet the calculation requirements, waiting for the GPU resources to be released before executing the task.
2. The task management and resource scheduling method for artificial intelligence geological map modeling according to claim 1 is characterized in that: When the modeling task is successfully created, the task is submitted to the job queue; when the modeling task is not successfully created due to problems such as naming or parameter selection, it is not submitted to the job queue.
3. The task management and resource scheduling method for artificial intelligence geological map modeling according to claim 2 is characterized in that: Modeling tasks can set priorities, where priorities are divided into three levels: high, medium and low. In the job queue, tasks with high priority are processed first, followed by tasks with medium priority, and finally tasks with low priority. When there are multiple tasks with the same priority in the job queue, they enter the next stage based on the first-in, first-out principle.
4. The task management and resource scheduling method for artificial intelligence geological map modeling according to claim 3 is characterized in that: Limit the number of tasks in the job queue. When the number exceeds the set maximum threshold, the user cannot create any more tasks. When the number is less than the threshold, tasks can be created.
5. The task management and resource scheduling system for artificial intelligence geological map modeling is characterized by: include: The task management module is used to manage modeling tasks, including the creation, priority setting, work status monitoring, statistics and query of modeling tasks; Different sample sets and model building schemes are used according to business needs to create modeling tasks, which means that the model building scheme is determined according to the different business stages of field geological survey work, that is, from pre-study to field investigation stage; The pre-research stage is the initial stage of field investigation. The sample set of this stage is composed of materialized remote grid data only, and unsupervised modeling tasks are created. The field investigation stage is the stage of gradually increasing the field route deployment as the field investigation work deepens. The sample set of this stage is composed of materialized remote grid data and label data obtained from the route. A supervised model is used to create supervised modeling tasks. Successfully created tasks are managed uniformly, including tasks to be assigned, being executed, and completed in the job queue. It supports the termination of tasks to be assigned in the job queue at any time, supports real-time monitoring of tasks being executed in the job queue, and supports viewing of completed task information. The GPU resource module is used to monitor the working status and idle computing resources of each computing node in each resource group divided according to the GPU model in the GPU cluster. Due to different purchase batches, different GPU models have different computing capabilities. To ensure computing efficiency, the computing resource cluster is constructed using pooling technology, and the cluster is divided into multiple GPU resource groups according to the GPU model. The working status of each resource group in the cluster is monitored in real time. The working status of each resource group in the cluster includes real-time collection of the working status of each GPU computing node in each resource group and the usage of computing power and video memory; The container module is used to uniformly manage the modeling environment of the corresponding devices in the computing cluster, and to create containers to calculate the GPU resources required for the modeling tasks. The container is used to isolate the dedicated operating environment of each execution task in the resource group. The container is created according to the task information, and the task modeling environment is configured in the container and the process information is obtained. The GPU resources required for the task are calculated through the process information. The pytorch training environment is configured for unsupervised modeling tasks, and the tensorflow training environment is configured for supervised modeling tasks. The resource scheduling module is used to uniformly control the execution of the modeling task according to the modeling task status, the GPU resources required for the task and the GPU idle status fed back by the task management module, the container module and the GPU resource module; specifically, it includes: judging whether the idle GPU resources meet the requirements according to the required GPU resources obtained; when the idle GPU resources meet the requirements, allocating resources to the task to perform calculations; releasing the resources after the task is completed, and updating the idle GPU resources; when there are idle resources in multiple resource groups that meet the requirements, allocating the task to the resource group closest to the required resources; when there are no corresponding idle GPU resources that meet the calculation requirements, waiting for the GPU resources to be released before executing the task.
