Marine oil spill emergency deduction method and system based on large language model
Through the marine oil spill emergency deduction method based on the large language model, a three-dimensional scene and an agent model are constructed, which solves the problems of relying on manual experience and insufficient three-dimensional scene support in the existing technology, and realizes efficient and objective marine oil spill emergency simulation and Visualization of the disposal process.
Patent Information
- Application Number
- CN202410642936.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology relies on manual experience in marine oil spill emergency simulation, is inefficient and lacks objectivity, and lacks support for three-dimensional geographical scenes, resulting in poor visualization of the emergency simulation process.
A marine oil spill emergency deduction method based on a large language model is used to construct a three-dimensional scene and agent model. Emergency decision-making is made through the large language model, and three-dimensional visual simulation is performed in conjunction with the Unreal Engine to improve decision-making efficiency and visualization effects.
It improves the efficiency and objectivity of the marine oil spill emergency decision-making process, realizes a realistic simulation of the evolution of a marine oil spill and the emergency response process, and improves the efficiency of information transmission and the effect of emergency response.
Smart Images

Figure CN118607182A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of emergency disposal of hazardous chemical leakage, and relates to a method for deducing and simulating the evolution and emergency disposal process of offshore oil spill disasters based on a large language model, and in particular to a method and system for deducing an offshore oil spill emergency based on a large language model. Background Art
[0002] The rapid development of the offshore oil and gas development industry around the world has led to the continuous expansion of the impact of offshore oil and gas safety incidents. As a typical disaster, offshore oil and gas platform oil spills have brought serious harm and losses to human society, the ecological environment, and economic activities. In order to strengthen the disaster emergency response capabilities for offshore oil and gas platform oil spills, relevant organizations and institutions have adopted disaster emergency simulation and other methods to provide support for oil spill disaster emergency work. Therefore, the offshore oil and gas platform oil spill disaster emergency simulation method is of great significance to the emergency disposal of oil spill disasters.
[0003] The inventors of this application found that the prior art methods have at least the following problems during the implementation of the present invention:
[0004] First, existing multi-agent disaster emergency simulations usually rely on artificial experience to establish agent decision-making models, which is inefficient, incomplete and lacks objectivity; second, traditional multi-agent simulation platforms have weak support for three-dimensional geographic scenes, resulting in poor visualization of the emergency simulation process.
[0005] In summary, the methods in the prior art have certain limitations when conducting marine oil spill emergency simulation. Summary of the invention
[0006] The present invention proposes a marine oil spill disaster emergency simulation method based on a large language model, aiming to solve or partially solve the problems existing in the prior art methods, such as the decision-making process relying on manual experience and weak support for three-dimensional geographical environment.
[0007] The technical solution adopted by the present invention is as follows:
[0008] In a first aspect, a method for marine oil spill emergency simulation based on a large language model is disclosed, the method comprising:
[0009] S1: Construct a three-dimensional scenario of oil spill from an offshore oil and gas platform, conduct intelligent agent modeling for the hazard factors, hazard-bearing bodies, disaster-prone environments, and emergency response forces in offshore oil spill incidents, and construct hazard factor agents, hazard-bearing body agents, disaster-prone environment agents, and emergency response agents;
[0010] S2: Building a large oil spill emergency model based on the basic large language model;
[0011] S3: After monitoring the oil spill, the emergency response agent collects and organizes the information on the current status of the oil spill evolution to obtain oil spill related information, and based on this, requests an emergency decision from the oil spill emergency big model, and executes corresponding oil spill emergency measures with the support of the preset algorithm to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency big model based on the oil spill related information sent by the emergency response agent.
[0012] In one embodiment, in step S1, intelligent agent modeling is performed on the disaster-causing factors, disaster-prone environment, and emergency response forces in the offshore oil spill incident, including:
[0013] Define the agent's properties, behaviors, agent interactions, visualization, and communication methods.
[0014] In one embodiment, the emergency response intelligent agent includes an oil and gas platform intelligent agent and an emergency vessel intelligent agent, wherein the oil and gas platform intelligent agent is responsible for collecting and collating information related to the oil spill in the simulation, and making emergency decisions based on this through a disaster emergency model, and commanding and dispatching the emergency vessel intelligent agent according to the emergency decision results. The emergency vessel intelligent agent uses specific emergency treatment measures to deal with the oil spill under the command of the oil and gas platform intelligent agent.
[0015] In one embodiment, step S2 includes:
[0016] For the large model fine-tuning solution, the basic large language model is further trained by constructing a fine-tuning dataset related to oil spills, and its internal parameters are adjusted to adapt it to relevant task processing in the oil spill field;
[0017] For external knowledge bases, we build the knowledge base based on relevant texts, then use vector matching to match the appropriate text according to the question and use prompt words for processing, and finally submit it to the large language model to obtain the processing result.
[0018] In one embodiment, the oil spill emergency measures include deploying oil booms, using oil skimmers, spraying dispersants and burning.
[0019] In one embodiment, the method for deploying oil boom emergency measures includes:
[0020] Pre-calculate the drift of the oil spill film in a certain period of time and the minimum bounding box of the oil film corresponding to each period;
[0021] According to the drift direction of the oil film and the minimum bounding box, the location and total length of the oil boom to be deployed in each period are calculated;
[0022] Calculate the time required for deployment and the time it takes for the vessel to move based on the location and total length of the boom to be deployed. Boat, and calculate the sum of the two t Total , t Total The time corresponding to the bounding box is compared with the difference Δt of the actual simulation time. Total When it is less than Δt, the position of the oil boom is used as the position to block the oil film of the oil spill. Otherwise, the above operation is repeated for the oil film in the next period until the condition is met.
[0023] In one embodiment, for emergency measures of spraying dispersants, the change in emulsification rate after spraying the oil spill is limited:
[0024]
[0025] In the formula, Rate Emulsification is the percentage emulsification rate, and t is the reaction time between the dispersant and the oil spill, expressed in minutes.
[0026] In one embodiment, the method further includes counting and updating the thickness of the oil layer.
[0027] Based on the same inventive concept, the second aspect of the present invention provides a marine oil spill emergency simulation system based on a large language model, the system comprising:
[0028] The scenario and agent modeling module is used to construct a three-dimensional scenario of an offshore oil and gas platform oil spill, and to conduct agent modeling for the disaster-causing factors, disaster-bearing bodies, disaster-pregnant environments, and emergency response forces in offshore oil spill incidents, and to construct disaster-causing factor agents, disaster-bearing body agents, disaster-pregnant environment agents, and emergency response agents;
[0029] Oil spill emergency big model building module, used to build oil spill emergency big model based on basic big language model;
[0030] The emergency simulation module is used for the emergency response agent to collect and organize the current status information of the oil spill evolution to obtain oil spill related information after monitoring the oil spill, and based on this, request emergency decisions from the oil spill emergency model, and execute corresponding oil spill emergency measures with the support of preset algorithms to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency model based on the oil spill related information sent by the emergency response agent.
[0031] Compared with the prior art, the advantages and beneficial technical effects of the present invention are as follows:
[0032] 1) The present invention performs three-dimensional visualization of the evolution and emergency response process of offshore oil spills based on the Unreal Engine, which can realistically simulate the evolution of the oil film during offshore oil spills and the response of emergency vessels and oil and gas platforms to the oil film, such as the deployment of oil booms and the burning of the oil film. This greatly improves the efficiency of conveying relevant information in the evolution of oil spills and emergency response results to users.
[0033] 2) The present invention proposes a method for emergency decision-making based on a large oil spill emergency model. Compared with the traditional emergency decision-making process based on artificial experience, this method can effectively improve the efficiency of establishing the emergency decision-making process and the objectivity of the decision-making model.
[0034] 3) The present invention establishes an intelligent body model for objects in the offshore oil spill emergency response process, and conducts offshore oil spill emergency simulation deduction based on the large model emergency decision-making through intelligent body simulation, verifies the emergency response effects of various oil spill emergency measures under different scenarios, and effectively provides a basis for the emergency response work of offshore oil and gas platform oil spill incidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] 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 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.
[0036] Figure 1 A framework diagram of a method for simulation of marine oil spill disaster emergency response based on a large language model provided by an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a behavior pattern between an oil and gas platform agent and an emergency vessel agent in an emergency response agent in an embodiment of the present invention;
[0038] Figure 3 Schematic diagram of a circular segmentation algorithm for rapid statistics of oil layer thickness in an embodiment of the present invention;
[0039] Figure 4 A schematic diagram of state switching during the emergency response agent performing emergency behavior in an embodiment of the present invention;
[0040] Figure 5 The figure shows the change of the amount of oil spilled with each emergency measure in the embodiment of the present invention over time. DETAILED DESCRIPTION
[0041] The present invention discloses a simulation method for emergency simulation of oil spill disasters on offshore oil and gas platforms based on a large language model, which improves the traditional emergency simulation method for oil spills on offshore oil and gas platforms: on the one hand, a large language model is introduced, and the large language model is adjusted in the field of oil spill emergency so that it can be used for emergency decision-making in the process of oil spill emergency disposal; on the other hand, the oil spill scene of the offshore oil and gas platform is modeled and three-dimensional visualization simulation is performed using the Unreal Engine. Based on this, the present invention improves the shortcomings of the traditional simulation method, such as the dependence of intelligent body decision-making on artificial experience and weak support for three-dimensional scenes, and realizes the evolution of oil spills on offshore oil and gas platforms and the simulation of the emergency disposal process by designing relevant algorithms in the emergency simulation of oil spills, thereby objectively evaluating the emergency measures for oil spills and providing support for the emergency disposal of oil spills.
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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.
[0043] Embodiment 1
[0044] The present invention discloses a method for deducing an emergency response to an offshore oil spill based on a large language model, the method comprising:
[0045] S1: Construct a three-dimensional scenario of oil spill from an offshore oil and gas platform, conduct intelligent agent modeling for the hazard factors, hazard-bearing bodies, disaster-prone environments, and emergency response forces in offshore oil spill incidents, and construct hazard factor agents, hazard-bearing body agents, disaster-prone environment agents, and emergency response agents;
[0046] S2: Building a large oil spill emergency model based on the basic large language model;
[0047] S3: After monitoring the oil spill, the emergency response agent collects and organizes the information on the current status of the oil spill evolution to obtain oil spill related information, and based on this, requests an emergency decision from the oil spill emergency big model, and executes corresponding oil spill emergency measures with the support of the preset algorithm to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency big model based on the oil spill related information sent by the emergency response agent.
[0048] Specifically, the present invention proposes a simulation method for emergency response to offshore oil spill disasters based on a large language model. The basic process is as follows: Figure 1As shown. The invention will use multi-agent technology to conduct intelligent modeling of key disaster elements in marine oil spill incidents, including disaster-prone environments, disaster-bearing bodies, disaster-causing factors and emergency forces, and build a large language model for oil spill emergency response based on relevant data on marine oil spills, including historical emergency cases, description texts on the scope of application and treatment effects of oil spill emergency measures, etc., for emergency decision-making. Combined with relevant algorithms designed for marine oil spill emergency response, the evolution of marine oil spills and the emergency disposal process are simulated and deduced to provide support for marine oil spill emergency disposal. The main contents of the invention include:
[0049] 1) Oil spill evolution simulation: Using Unreal Engine as a development tool, a 3D scene of an offshore oil and gas platform oil spill is constructed based on Cesium for Unreal and a 3D model of an oil and gas platform. Then, intelligent agent modeling is performed for the hazard factors, disaster-prone environment, and disaster-bearing body in the offshore oil spill incident. The hazard factors in the offshore oil spill incident are oil spill particles, the disaster-prone environment includes the ocean and meteorological environment, and the disaster-bearing body includes marine life, ecological protection areas, etc. Intelligent agent modeling is performed for them, and the attributes, behaviors, visualization methods, and communication methods of the intelligent agents are defined. Finally, each intelligent agent is updated when the Unreal Engine ticks to realize the deduction and simulation of the evolution process of the oil spill disaster.
[0050] Specifically, the properties of the oil particle agent generally include the position, radius, initial volume, current volume, evaporation, and the volume of oil spills handled by various emergency disposal measures. The behaviors of the oil particle agent include drift, diffusion, evaporation, emulsification, etc. The oil particle agent can simulate the oil spill disaster under the joint action of these behaviors. The interaction between the oil particle agent and other agents is mainly for the emergency response agent to deal with the oil spill by implementing various emergency disposal measures. Finally, the visualization of oil particles is based on the decal system of Unreal Engine. The characteristics of decals attached to the surface of the model enable them to simulate the effect of oil film floating on the water surface. The main idea of visualization is to simulate the fluctuation of the oil film with the water surface by superimposing and offsetting the water wave texture, and then interpolate the color according to the normal to simulate the interference of light in the oil film, and use the mask to adjust the shape of the oil particle to a nearly circular irregular shape.
[0051] The disaster-pregnant environment agent only maintains the data related to the disaster-pregnant environment and provides data access interfaces to other agents. It does not need to perform complex decision-making operations, so the ocean and meteorological environment can be managed as a whole using the same agent. As for the disaster-bearing agent, since there are few studies on the impact of oil spills on marine life, workers, ships and other disaster-bearing bodies, the impact of oil spills on disaster-bearing bodies is difficult to quantify, and the disaster-bearing body elements are not considered in the evolution of oil spills.
[0052] 2) Oil spill emergency response: After monitoring the oil spill, the emergency response agent will organize information such as the current status of the oil spill evolution, and based on this, request appropriate emergency measures from the oil spill emergency model. After obtaining the emergency decision results, the emergency response agent will execute corresponding emergency treatment measures with the support of algorithms such as boom position calculation, flame diffusion, and agent collaboration to deal with the oil spill at sea. The key links of oil spill emergency response include the construction of the oil spill emergency model, the construction of the oil spill emergency agent, and the definition of emergency treatment measures.
[0053] The present invention mainly involves three parts
[0054] 1. Large model construction
[0055] The present invention provides two types of large model construction schemes for oil spill emergency, namely large model fine-tuning and external knowledge base, according to the hardware and software conditions: the large model fine-tuning method further trains the basic large language model by constructing a fine-tuning data set related to oil spills, and adjusts its internal parameters to adapt it to the relevant task processing in the field of oil spills; while the external knowledge base constructs a knowledge base based on relevant texts, then uses vector matching to match appropriate texts according to questions and uses prompt words for processing, and finally submits it to the large language model to obtain the processing results. Large language model fine-tuning has high hardware requirements, while the external knowledge base method has low hardware requirements. Selecting a suitable emergency large model construction scheme according to actual hardware conditions can effectively support subsequent oil spill emergency disposal.
[0056] When constructing the large model for oil spill emergency response, ChatGLM3-6B was selected as the base large model. The basic data used for fine-tuning or building the knowledge base was selected from relevant texts in the literature related to offshore oil spills. For the model fine-tuning scheme, the basic data will be used to build a fine-tuning data set for model fine-tuning. For the external knowledge base, the Milvus database was selected as the vector database used for knowledge base construction. After using the appropriate text segmentation algorithm to process the text features of the basic data, the embedding model such as Text2vec-base-chinese is used to represent the text as a vector and use the database for storage to realize the knowledge base construction.
[0057] After the oil spill emergency model is built, it will be independently deployed on the server and provide access interfaces to the emergency agent in the form of network services. This structure can effectively reduce the coupling between the large language model module and the system body and improve the reliability of the emergency large model. The agent will establish a connection with the oil spill emergency model through HTTP network requests and transmit decision question and answer data through Json strings.
[0058] 2. Agent Modeling
[0059] The present invention defines the main emergency response agents in offshore oil spill incidents, namely the oil and gas platform agent and the emergency vessel agent. Among them, the oil and gas platform agent is mainly responsible for collecting and organizing information related to the oil spill, making emergency decisions based on this through the disaster emergency model, and commanding and dispatching the emergency vessel agent according to the decision results. The emergency vessel agent uses specific emergency treatment measures to deal with the oil spill under the command of the oil and gas platform agent. The relationship between the two is as follows: Figure 2 shown.
[0060] For the oil and gas platform agent, in addition to making emergency decisions based on the large oil spill emergency model, its key behaviors also include statistics and updates on the thickness of the oil layer. The distribution of oil layer thickness is an important basis for implementing emergency measures for offshore oil spills. Oil spill emergency measures, such as oil recovery by skimmers and combustion treatment, require that the thickness of the oil spilled oil layer meet certain prerequisites. The oil and gas platform agent will regularly count or update the thickness of the oil layer to provide support for the large model emergency decision-making and the emergency vessel agent to execute emergency measures. The algorithm for fast calculation of oil layer thickness is as follows:
[0061] The shape of oil particles in the simulation system is approximated as a circle. Therefore, the essence of fast calculation of oil layer thickness is the problem of fast modification and query of values in the circular area in the two-dimensional array. In the algorithm proposed in this system, the process is divided into two steps: fast modification of the rectangular area in the two-dimensional array and dividing the circular area into several rectangular areas.
[0062] The algorithm for fast modification of rectangular areas is implemented based on a two-dimensional segment tree. A segment tree is a tree data structure used to solve problems related to interval operations. When performing interval operations, the segment tree will compare the relationship between the area to be modified and the range of each node in the segment tree, and then decide whether to continue modifying the child node or modify the delay mark of the node, and synchronize all modifications to the original data in subsequent queries. Through the above means, interval modification operations can be implemented, and expanding the segment tree to two dimensions can further realize fast modification of rectangular areas.
[0063] The algorithm diagram for dividing the circular oil particle range into several rectangular areas is shown in the figure below. Figure 3 The idea of the segmentation algorithm is to continuously segment larger rectangles with similar length and width from the circular range until the remaining range cannot be segmented into new rectangular ranges. The specific steps include:
[0064] First, a largest square is divided out with the center of the circle as the center, as shown in the rectangular area 1 in the figure. The side length of the square is calculated using the following formula:
[0065]
[0066] Where, and are the width and height of the largest square, is the radius of the circle, and is the side length of the grid unit.
[0067] Then, four larger rectangles are cut out from the remaining part, as shown in the rectangular area 2 in the figure. The formula for calculating the side length of the rectangle is as follows:
[0068]
[0069]
[0070] Wherein, and are the width and height of the upper rectangular area 2 respectively.
[0071] Next, take 1 / 2 of the length of the remaining part to calculate the other side length of the rectangle and divide it, as shown in the rectangular area 3 in the figure. The side length calculation formula is:
[0072]
[0073]
[0074] Wherein, and are the width and height of the upper rectangular area 3 respectively.
[0075] Repeat the previous step until no new rectangles can be segmented. Then, submit all the segmented rectangular areas to the two-dimensional segment tree to achieve rapid statistics of oil layer thickness.
[0076] For the emergency vessel agent, its attributes include location, moving speed, current working status, etc. The emergency actions that the emergency vessel agent can perform include deploying oil booms, using oil skimmers, spraying dispersants, and burning oil spills. These emergency actions will be described in detail in the third section. The state switching of the emergency vessel agent during the execution of emergency actions is as follows: Figure 4 As shown, its state will switch between the preparation stage, processing stage, suspended processing stage and processing completion stage. The interaction between the emergency ship agent and other agents mainly includes receiving emergency dispatches from the oil and gas platform agent, communicating with other emergency ship agents to coordinate emergency measures and avoid conflicts, and handling oil particle agents, etc.
[0077] 3. Oil spill emergency measures
[0078] The present invention defines four main types of oil spill emergency measures for the emergency response agent in the marine oil spill incident, namely, deploying oil booms, using oil skimmers, spraying dispersants and burning treatment:
[0079] For the deployment of oil booms, the invention implements the deployment of oil booms based on the "waiting method", that is, the deployment of oil booms in a "U" shape in the moving direction of the oil spill film. The key to this emergency behavior is the calculation of the deployment position of the oil boom. To address this problem, the invention proposes an algorithm for calculating the deployment position of the oil boom based on the waiting method. The main steps of the algorithm are as follows:
[0080] Firstly, when the program starts running, the drift of the oil spill film in a certain period of time and the minimum bounding box of the oil film corresponding to each period are pre-calculated.
[0081] Then, the position and total length of the oil boom to be deployed in each time period are calculated based on the drift direction of the oil film and the minimum bounding box.
[0082] Calculate the time required for deployment based on the location and total length of the oil boom to be deployed. OilBoom and the time t at which the ship moves Boat , and calculate the sum of the two t Total . Total The time corresponding to the bounding box is compared with the difference Δt of the actual simulation time. Total When it is less than Δt, the position of the oil boom is the fastest position to block the oil film. Otherwise, repeat the above operation for the oil film in the next period until the condition is met.
[0083] For the use of oil skimmers to recover spilled oil, this treatment measure has certain requirements for the thickness of the oil film. When the oil film thickness does not meet the recovery requirements, the oil spill recovery process will switch to the suspended treatment stage until the oil boom continuously captures oil particles to make the oil layer thickness meet the requirements, or all oil particles are captured. In addition, to avoid repeated processing of the same target location, the emergency ship intelligent bodies will communicate with each other and synchronize each other's processing targets.
[0084] Spraying dispersants requires that the thickness of the oil film is lower than a certain threshold. When the thickness of the oil layer is too large, the dispersant is not effective in treating oil spills. In addition, it takes a certain amount of time for the dispersant to react with the oil spill. The relevant standards have made clear requirements for the emulsification rate 30 seconds and 10 minutes after spraying the dispersant. Based on these requirements, the present invention simulates the change in the emulsification rate after spraying the oil spill:
[0085]
[0086] In the formula, Rate Emulsification is the percentage emulsification rate, and t is the reaction time in minutes.
[0087] The combustion treatment has a higher requirement for the thickness of the oil film, which is higher than the thickness required for oil recovery by the oil recovery machine. After the emergency response intelligent agent ignites the oil film, the flame will spread to the surrounding area while burning the oil spill. The present invention proposes a flame diffusion algorithm for the diffusion process. The core idea of the algorithm is to calculate the number of diffusions based on the difference between the current frame time and the previous frame time, and then diffuse outward in the order of breadth-first traversal according to the number of diffusions until the number of diffusions is exhausted or the combustion conditions are not met.
[0088] Based on the above, the present invention builds an offshore oil spill emergency simulation system based on Unreal Engine, simulates the surrounding environment of offshore oil and gas platforms and the occurrence and evolution of oil spills, and then defines the oil spill emergency model, emergency response intelligent agent and oil spill emergency measures, and simulates the oil spill emergency disposal process with their support. This method is of great significance to relevant organizations to improve the oil spill emergency mechanism and enhance the oil spill emergency disposal capabilities.
[0089] In order to further illustrate the technical features, purposes and effects of the present invention, the present invention is now described in detail with reference to the sea area near a certain city as an embodiment and the accompanying drawings:
[0090] Step 1: Analyze the oil spill scenario in the sea area near a city and formulate the initial parameters of the marine oil spill emergency simulation.
[0091] A city is located on the southwest coast of China, adjacent to Hainan Province, and in the northeast of the South China Sea. The marine climate in the area is affected by the tropical marine monsoon climate and shows obvious seasonal changes. Specifically, the average wind vector 10 meters above the ground shows differences in different seasons, with relatively low wind speeds in summer of about 14.0 km / h and slightly increased wind speeds in winter. The significant wave height in the study area generally fluctuates between 0.5 and 1.5 meters, but when the monsoon influence is large, the significant wave height may increase significantly to a range of 1.5 to 3 meters.
[0092] According to the climatic conditions of a city's sea area, the proposed oil spill simulation scenario is shown in the following table:
[0093]
[0094] Step 2: Conduct offshore oil spill emergency simulation based on the initial parameters, and record the emergency measures proposed by the oil spill emergency model and the corresponding oil spill disposal situation during the simulation.
[0095] During the simulation of offshore oil spill emergency response, the oil spill emergency response model proposed the oil spill emergency response strategy as shown in the following table. The corresponding changes in the amount of oil spilled by each emergency measure over time are shown in the following table. Figure 5 shown.
[0096]
[0097]
[0098] Step 3: Analyze the experimental results and come up with effective measures for oil spill emergency disposal.
[0099] For Experiment 1, the large model of oil spill emergency response first selected the fast-deployed oil boom, which has a high deployment efficiency but is more sensitive to wind and waves, to quickly contain the oil spill, then used a weir-type oil skimmer to recover the oil spill, and finally used a dispersant to treat the remaining oil. For Experiments 2 and 4, the large model selected the same emergency measures, namely, using a solid float-type oil boom with strong wind and wave adaptability for containment and using a belt oil skimmer for recovery. In Experiment 3, the large model gave priority to fire-resistant oil booms and combustion methods to deal with the oil spill. This strategy has higher requirements for wind and wave conditions and oil film thickness, and the oil spill treatment efficiency is also higher.
[0100] Based on the above phenomena, we can draw some conclusions:
[0101] 1) Under low wind and wave conditions, all types of emergency measures can achieve good emergency treatment results, including oil recovery by skimmer and combustion treatment;
[0102] 2) In the case of high winds and waves, most emergency treatment measures are less effective. Although dispersants are less affected by winds and waves and can handle oil spills to a certain extent, the emergency treatment efficiency of dispersants in high wind and wave environments is still reduced to a certain extent because winds and waves accelerate the drift and diffusion of oil spill film.
[0103] According to the above conclusions, it can be concluded that effective measures for responding to oil spills at sea in this scenario include: on the basis of completing the deployment of oil booms, in low wind and waves, the burning treatment and oil recovery measures are selected according to the amount of oil spilled, and in high wind and waves, the spraying of dispersants is used. The above experiments can effectively provide support for the emergency disposal of oil spills at sea in the example area and improve the efficiency of emergency disposal of oil spills.
[0104] Embodiment 2
[0105] Based on the same inventive concept, this embodiment discloses a marine oil spill emergency simulation system based on a large language model, the system comprising:
[0106] The scenario and agent modeling module is used to construct a three-dimensional scenario of an offshore oil and gas platform oil spill, and to conduct agent modeling for the disaster-causing factors, disaster-bearing bodies, disaster-pregnant environments, and emergency response forces in offshore oil spill incidents, and to construct disaster-causing factor agents, disaster-bearing body agents, disaster-pregnant environment agents, and emergency response agents;
[0107] Oil spill emergency big model building module, used to build oil spill emergency big model based on basic big language model;
[0108] The emergency simulation module is used for the emergency response agent to collect and organize the current status information of the oil spill evolution to obtain oil spill related information after monitoring the oil spill, and based on this, request emergency decisions from the oil spill emergency model, and execute corresponding oil spill emergency measures with the support of preset algorithms to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency model based on the oil spill related information sent by the emergency response agent.
[0109] Since the system introduced in the second embodiment of the present invention is a system used to implement the method for emergency simulation of oil spill at sea based on a large language model in the first embodiment of the present invention, the specific structure and deformation of the system can be understood by those skilled in the art based on the method introduced in the first embodiment of the present invention, so it will not be described in detail here. All systems used in the method in the first embodiment of the present invention belong to the scope of protection of the present invention.
[0110] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0111] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0112] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic creative concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for marine oil spill emergency simulation based on a large language model, characterized in that: The method includes: S1: Construct a three-dimensional scenario of oil spill from an offshore oil and gas platform, conduct intelligent agent modeling for the hazard factors, hazard-bearing bodies, disaster-prone environments, and emergency response forces in offshore oil spill incidents, and construct hazard factor agents, hazard-bearing body agents, disaster-prone environment agents, and emergency response agents; S2: Building a large oil spill emergency model based on the basic large language model; S3: After monitoring the oil spill, the emergency response agent collects and organizes the information on the current status of the oil spill evolution to obtain oil spill related information, and based on this, requests an emergency decision from the oil spill emergency big model, and executes corresponding oil spill emergency measures with the support of the preset algorithm to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency big model based on the oil spill related information sent by the emergency response agent.
2. The method for emergency simulation of offshore oil spill based on large language model as claimed in claim 1, characterized in that: In step S1, the disaster-causing factors, disaster-prone environment and emergency forces in the offshore oil spill incident are modeled by intelligent agents, including: Define the agent's properties, behaviors, agent interactions, visualization, and communication methods.
3. The method for emergency simulation of offshore oil spill based on large language model as claimed in claim 1, characterized in that: The emergency response intelligent agent includes the oil and gas platform intelligent agent and the emergency ship intelligent agent. Among them, the oil and gas platform intelligent agent is responsible for collecting and collating information related to the oil spill in the simulation, and making emergency decisions based on this through the disaster emergency model. The emergency ship intelligent agent is commanded and dispatched according to the emergency decision results. The emergency ship intelligent agent uses specific emergency treatment measures to deal with the oil spill under the command of the oil and gas platform intelligent agent.
4. The method for emergency simulation of offshore oil spill based on large language model according to claim 1, characterized in that: Step S2 includes: For the large model fine-tuning solution, the basic large language model is further trained by constructing a fine-tuning dataset related to oil spills, and its internal parameters are adjusted to adapt it to relevant task processing in the oil spill field; For external knowledge bases, we build the knowledge base based on relevant texts, then use vector matching to match the appropriate text according to the question and use prompt words for processing, and finally submit it to the large language model to obtain the processing result.
5. The method for emergency simulation of offshore oil spill based on large language model as claimed in claim 1, characterized in that: Oil spill emergency measures include deploying oil booms, using oil skimmers, spraying dispersants and burning.
6. The method for emergency simulation of offshore oil spill based on large language model as claimed in claim 5, characterized in that: The emergency measures for deploying oil booms include: Pre-calculate the drift of the oil spill film in a certain period of time and the minimum bounding box of the oil film corresponding to each period; According to the drift direction of the oil film and the minimum bounding box, the location and total length of the oil boom to be deployed in each period are calculated; Calculate the time required for deployment and the time it takes for the vessel to move based on the location and total length of the boom to be deployed. Boat , and calculate the sum of the two t Total , t Total The time corresponding to the bounding box is compared with the difference Δt of the actual simulation time. Total When it is less than Δt, the position of the oil boom is used as the position to block the oil film of the oil spill. Otherwise, the above operation is repeated for the oil film in the next period until the condition is met.
7. The method for emergency simulation of offshore oil spill based on large language model as claimed in claim 5, characterized in that: For emergency treatment measures of spraying dispersants, the change of emulsification rate after spraying oil spills is limited: In the formula, Rate Emulsification is the percentage emulsification rate, and t is the reaction time between the dispersant and the oil spill, expressed in minutes.
8. The method for emergency simulation of offshore oil spill based on large language model according to claim 1, characterized in that: The method also includes statistics and updates on oil layer thickness.
9. A marine oil spill emergency simulation system based on a large language model, characterized in that: The system includes: The scenario and agent modeling module is used to construct a three-dimensional scenario of an offshore oil and gas platform oil spill, and to conduct agent modeling for the disaster-causing factors, disaster-bearing bodies, disaster-pregnant environments, and emergency response forces in offshore oil spill incidents, and to construct disaster-causing factor agents, disaster-bearing body agents, disaster-pregnant environment agents, and emergency response agents; Oil spill emergency big model building module, used to build oil spill emergency big model based on basic big language model; The emergency simulation module is used for the emergency response agent to collect and organize the current status information of the oil spill evolution to obtain oil spill related information after monitoring the oil spill, and based on this, request emergency decisions from the oil spill emergency model, and execute corresponding oil spill emergency measures with the support of preset algorithms to deal with the offshore oil spill. Among them, the emergency decision is the question and answer data output by the oil spill emergency model based on the oil spill related information sent by the emergency response agent.
Citation Information
Cited By
Multi-stage emergency disposal scheduling method for heat supply system containing large model
CN120047118A
