A method and system for determining optimal decision of unmanned aerial vehicle based on scenario simulation
By dividing task nodes and updating the inspection strategy in the scene simulation, the problem of suboptimal decision-making of the UAV system is solved, and more efficient task guidance and risk avoidance are achieved.
Patent Information
- Application Number
- CN202410876310.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing UAV systems have insufficient autonomous decision-making capabilities, cannot quickly judge flight status and navigation data accuracy, and cannot provide optimal mission guidance methods based on different conditions, resulting in suboptimal decision-making.
In the scene simulation, the actions of the UAV system are divided into task nodes, and the inspection strategy is set according to the task nodes, and the inspection strategy is bound to the target UAV. By comparing the flight data and condition parameters, the inspection strategy is updated and optimized to form optimal decisions.
By continuously updating and optimizing the inspection strategy, the drone can be better guided to perform tasks, identify flight status, navigation data, fuel level, etc., avoid risk points, and improve the decision-making quality of the autonomous decision-making system.
Smart Images

Figure CN118426347B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicle simulation, and relates to an autonomous decision-making optimization technology for unmanned aerial vehicle systems, and specifically to a method and system for determining optimal decision of unmanned aerial vehicle based on scene simulation. Background Art
[0002] Autonomous decision-making of UAV systems, or autonomous control of UAV systems, is the core part of UAVs, which determines the adaptability of UAVs in complex environments and their ability to complete tasks autonomously. Autonomous decision-making of UAV systems is mainly reflected in the ability of UAVs to autonomously complete flight missions, including the entire process of take-off, cruising, and landing. UAVs need to have perception and decision-making capabilities to cope with various emergencies.
[0003] At present, how to improve the autonomous decision-making ability of UAV systems is also a hot topic in the field of UAV research. For example, the Chinese patent document with application number CN202311229832.6 discloses a UAV autonomous decision-making method based on Transformer neural network state prediction, including: in a virtual simulation environment, according to the UAV flight strategy, a preset number of control instructions are sent to the UAV model, and sample data of the UAV model performing the flight mission according to the control instructions is collected; the Transformer model is pre-trained using the sample data to obtain a pre-trained Transformer model; the reinforcement learning model constructed by the pre-trained Transformer model and the agent model is trained using the sample data to generate an updated UAV flight strategy; in the virtual simulation environment, new sample data is generated according to the updated UAV flight strategy, and the Transformer model is trained until the reinforcement learning model converges. The patent document discloses a method for realizing autonomous decision-making of UAVs through a Transformer neural network model in a virtual simulation environment. The technical solution disclosed in the patent document is to generate sample data through a simulation process, and train the Transformer model through the sample data, so that the UAV system has autonomous decision-making ability. However, the decisions made by the drone systems in the existing technology are not optimal, and there are technical problems that cannot accurately guide the drones to perform tasks. For example, it is impossible to quickly determine whether the drone's flight status is normal, it is impossible to quickly determine whether the drone's navigation data is accurate, and it is impossible to provide the best guidance method for executing tasks based on the drone's different remaining fuel (electricity), different altitudes, and different environments. Summary of the invention
[0004] As described in the above background technology, the decisions made by the drone system in the prior art are not optimal, and there is a technical problem that the drone cannot be accurately guided to perform tasks. To address this technical problem, the present invention proposes a method and system for determining the optimal decision of a drone based on scene simulation.
[0005] The present invention divides the actions of the drone system into task nodes in the scene simulation, sets the inspection strategy according to the task nodes, binds the inspection strategy to the target drone, and continuously updates and optimizes the inspection strategy of the drone by comparing the flight data of the target drone at the task node with the condition parameters in the inspection strategy, and uses the updated and optimized inspection strategy as the optimal decision of the drone. By continuously updating and optimizing the inspection strategy, the risk points in the process of the drone performing the task can be avoided. The updated and optimized inspection strategy can better guide the drone to perform the task.
[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0007] The present invention provides a method for determining optimal decision of a UAV based on scene simulation, comprising the following steps:
[0008] Scenario configuration: configure simulation scenarios based on simulation scenarios;
[0009] Task division: divide the task nodes according to the actions of the UAV system in the simulation scenario, and set the inspection strategy according to the task nodes, where the inspection strategy includes condition parameters and action instructions;
[0010] Policy binding: Bind the inspection policy to the target drone;
[0011] Inspection strategy judgment: obtain the flight data of the target UAV corresponding to the mission node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the mission node. If they are consistent, send the action instructions in the inspection strategy to the UAV system; otherwise, modify the condition parameters in the inspection strategy that do not match the flight data of the mission node, and re-judge until the condition parameters in the inspection strategy are consistent with the flight data of the mission node, and use the consistent inspection strategy as the optimal decision for the UAV in the simulation scenario.
[0012] It is further defined that the scene configuration specifically includes:
[0013] Determine the number of drones, the initial state of the drones, the flight routes of the drones, and the mission environment of the drones based on simulation scenarios;
[0014] Configure simulation scenarios based on the number of drones, the initial states of the drones, the flight routes of the drones, and the mission environments of the drones.
[0015] It is further defined that the check strategy in the task division step includes t checkpoints, each of which contains m i conditional parameters and n i action instructions, m is the number of conditional parameters, unit: pieces; n is the number of action instructions, unit: pieces; i refers to the sequence number of the checkpoint, unit: pieces, 0<i≤t; where the number of checkpoints corresponds to the number of task nodes.
[0016] It is further defined that the inspection strategy determination step specifically includes:
[0017] First checkpoint judgment: obtain the flight data of the first task node corresponding to the target UAV, and judge whether the m1 condition parameters of the first checkpoint are consistent with the flight data of the first task node;
[0018] If they match, n1 action instructions of the first checkpoint are sent to the UAV system, and the second checkpoint judgment step is executed;
[0019] If not, the first cycle judgment step is executed;
[0020] First loop judgment: modify some or all of the condition parameters of the first checkpoint and some or all of the action instructions of the first checkpoint, use the modified condition parameters of the first checkpoint as the new condition parameters of the first checkpoint, repeat the first checkpoint judgment step until the condition parameters of the first checkpoint match the flight data of the first task node, and send the modified action instructions corresponding to the matching condition parameters of the first checkpoint to the UAV system;
[0021] The i-th checkpoint judgment: obtain the flight data of the i-th task node corresponding to the target UAV, and judge the m of the i-th checkpoint i Whether the conditional parameters are consistent with the flight data of the i-th task node;
[0022] If they match, send the nth checkpoint of i. i An action instruction is given to the UAV system, and the i+1th checkpoint judgment step is executed;
[0023] If not, execute the i-th cycle judgment step;
[0024] The i-th loop judgment: judge the flight data of the i-th task node and the n-th checkpoint judgment step i-1 The action instruction or the modified action instruction in the i-1th cycle judgment step is consistent;
[0025] If they match, modify some or all of the condition parameters of the i-th checkpoint, return to the first checkpoint judgment step, and repeat the execution;
[0026] If they do not match, modify n in the i-1th checkpoint judgment step i-1 The modified action instruction in the i-1th loop judgment step or the action instruction in the i-1th loop judgment step returns to the first checkpoint judgment step and repeats the execution;
[0027] After traversing all the checkpoints, the inspection strategy formed by the conditional parameters and action instructions of the final t checkpoints is used as the optimal decision of the drone in the simulation scenario.
[0028] It is further defined that the condition parameters in the checkpoint include a condition flag, a logical judgment, a condition name and a condition input parameter, wherein the condition input parameter includes a setting parameter and / or a parameter threshold.
[0029] It is further defined that the action instruction in the checkpoint includes: an action, an action flag and an action input parameter.
[0030] The present invention provides an autonomous decision-making system for unmanned aerial vehicles, wherein a neural network model in the autonomous decision-making system for unmanned aerial vehicles is formed by optimal decision training of the unmanned aerial vehicle obtained by using the above-mentioned optimal decision determination method for unmanned aerial vehicles based on scene simulation.
[0031] The present invention provides an optimal decision-making determination system for a UAV based on scene simulation, comprising:
[0032] Scenario configuration module: used to configure simulation scenarios based on simulation scenarios;
[0033] Task division module: used to divide task nodes according to the actions of the UAV system in the simulation scenario, and set inspection strategies according to the task nodes, where the inspection strategies include condition parameters and action instructions;
[0034] Strategy binding module: used to bind inspection strategies to drones;
[0035] And the inspection strategy judgment module: used to obtain the flight data of the target UAV corresponding to the task node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the task node. If they are consistent, the action instructions in the inspection strategy are issued to the UAV system; otherwise, the condition parameters in the inspection strategy that are inconsistent with the flight data of the task node are modified, and re-judgment is made until the condition parameters in the inspection strategy are consistent with the flight data of the task node, and the consistent inspection strategy is used as the optimal decision for the UAV in the simulation scenario.
[0036] The present invention provides a computer-readable storage medium storing a program file, wherein the program file is executed to implement the above-mentioned method for determining the optimal decision of a drone based on scenario simulation.
[0037] The present invention provides an electronic device, comprising a processor and a memory coupled to each other, wherein:
[0038] The memory is used to store the optimal decision-making method for implementing the above-mentioned scenario simulation-based UAV;
[0039] The processor is used to execute program instructions stored in the memory.
[0040] Compared with the prior art, the present invention has the following beneficial effects:
[0041] 1. The present invention provides a method for determining the optimal decision of a drone based on scene simulation, which divides the actions of the drone system into task nodes in the scene simulation, sets an inspection strategy according to the task nodes, binds the inspection strategy to the target drone, and continuously updates and optimizes the inspection strategy by comparing the flight data of the target drone at the task node with the conditional parameters in the inspection strategy, and uses the updated and optimized inspection strategy as the optimal decision of the drone in the simulation scene. By continuously updating and optimizing the inspection strategy, risk points in the process of drone mission execution can be avoided, that is, it can be identified whether the drone's flight status is normal, whether the navigation data is correct, whether the drone's fuel is sufficient, whether the altitude conditions are met, and whether the environmental conditions are met. Using updated and optimized inspection strategies can better guide drones to implement tasks.
[0042] 2. The present invention provides a method for determining the optimal decision of a UAV based on scene simulation. The method sets the number of checkpoints that match the task node according to the task node, obtains the flight data of the task node corresponding to the target UAV of each checkpoint, and compares the flight data of the task node with the condition parameters and / or action instructions of each checkpoint. By modifying the condition parameters and / or action instructions of the checkpoint that do not match the flight data of the task node, the checkpoint condition parameters and / or action instructions are updated and optimized, thereby improving the optimization effect of the inspection strategy.
[0043] 3. The present invention provides a method for determining optimal decision of a UAV based on scene simulation, which can simulate the scenes of different types of UAVs performing different tasks by adjusting condition parameters and action instructions, and has universal adaptability.
[0044] 4. An autonomous decision-making system for unmanned aerial vehicles of the present invention is formed based on the optimal decision-making training of unmanned aerial vehicles. The optimal decision of unmanned aerial vehicles formed by the method of the present invention is used as the data basis for training the autonomous decision-making system for unmanned aerial vehicles, which can improve the ability of the autonomous decision-making system for unmanned aerial vehicles to avoid risks, thereby enabling the autonomous decision-making system for unmanned aerial vehicles to make decisions that better guide unmanned aerial vehicles to implement tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the optimal decision determination method of a UAV based on scenario simulation of the present invention;
[0046] Figure 2 It is a schematic diagram of the optimal decision determination system of a UAV based on scenario simulation of the present invention. DETAILED DESCRIPTION
[0047] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited to the implementation modes described below.
[0048] See also Figure 1 The present invention provides a method for determining optimal decision of a UAV based on scenario simulation, which comprises the following steps:
[0049] Scenario configuration: configure simulation scenarios based on simulation scenarios;
[0050] Task division: divide the task nodes according to the actions of the UAV system in the simulation scenario, and set the inspection strategy according to the task nodes, where the inspection strategy includes condition parameters and action instructions;
[0051] Policy binding: Bind the inspection policy to the target drone;
[0052] Inspection strategy judgment: obtain the flight data of the target UAV corresponding to the mission node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the mission node. If they are consistent, send the action instructions in the inspection strategy to the UAV system; otherwise, modify the condition parameters in the inspection strategy that do not match the flight data of the mission node, and re-judge until the condition parameters in the inspection strategy are consistent with the flight data of the mission node, and use the consistent inspection strategy as the optimal decision for the UAV in the simulation scenario.
[0053] The scene configuration in the present invention specifically includes: determining the number of drones, the initial state of the drones, the flight routes of the drones and the mission environment of the drones based on the simulation scenario; configuring the simulation scene according to the number of drones, the initial state of the drones, the flight routes of the drones and the mission environment of the drones. Among them, the initial state of the drone includes the initial position of the drone, the initial height of the drone, the initial energy storage (fuel or electricity) of the drone, the initial speed of the drone and / or the initial attitude angle of the drone.
[0054] The inspection strategy in the task division step of the present invention includes t inspection points, each of which contains m i conditional parameters and n i action instructions, m is the number of conditional parameters, unit: ; n is the number of action instructions, unit: ; i refers to the sequence number of the checkpoint, unit: , 0<i≤t; where the number of checkpoints corresponds to the number of task nodes. Among them, m1 conditional parameters are the initial conditional parameters of each checkpoint, and n1 action instructions are the initial action instructions of each checkpoint.
[0055] The inspection strategy determination step in the present invention specifically includes:
[0056] First checkpoint judgment: obtain the flight data of the first task node corresponding to the target UAV, and judge whether the m1 condition parameters of the first checkpoint are consistent with the flight data of the first task node; if they are consistent, send the n1 action instructions of the first checkpoint to the UAV system and execute the second checkpoint judgment step; if they are not consistent, execute the first loop judgment step.
[0057] The first loop judgment: modify some or all of the conditional parameters of the first checkpoint and some or all of the action instructions of the first checkpoint, use the modified conditional parameters of the first checkpoint as the new conditional parameters of the first checkpoint, repeat the first checkpoint judgment step until the conditional parameters of the first checkpoint match the flight data of the first task node, and send the modified action instructions corresponding to the matching conditional parameters of the first checkpoint to the drone system.
[0058] Second checkpoint judgment: obtain the flight data of the second task node corresponding to the target UAV, and judge whether the m2 condition parameters of the second checkpoint are consistent with the flight data of the second task node; if they are consistent, send the n2 action instructions of the second checkpoint to the UAV system, and execute the third checkpoint judgment step; if they are not consistent, execute the second loop judgment step.
[0059] Second loop judgment: judge whether the flight data of the second task node is consistent with the n1 action instructions in the first checkpoint judgment step or the modified action instructions in the first loop judgment step; if consistent, modify part or all of the condition parameters of the second checkpoint, and repeat the first checkpoint judgment step, the first loop judgment step and the second checkpoint judgment step; if inconsistent, modify the n1 action instructions in the first checkpoint judgment step or the modified action instructions in the first loop judgment step, and repeat the first checkpoint judgment step, the first loop judgment step and the second checkpoint judgment step.
[0060] The i-th checkpoint judgment: obtain the flight data of the i-th task node corresponding to the target UAV, and judge the m of the i-th checkpoint i Whether the conditional parameters match the flight data of the i-th task node; where t≥i≥2, t and i are both non-zero integers; if they match, the n-th checkpoint of the i-th checkpoint is sent. i An action instruction is given to the drone system, and the i+1th checkpoint judgment step is executed; if it does not match, the i-th cycle judgment step is executed.
[0061] The i-th loop judgment: judge the flight data of the i-th task node and the n-th checkpoint judgment step i-1The first action instruction or the modified action instruction in the i-1th loop judgment step is consistent; if it is consistent, modify some or all of the condition parameters of the i-th checkpoint, return to the first checkpoint judgment step, and repeat the execution; if it is not consistent, modify the n-th checkpoint judgment step i-1 The modified action instruction in the i-1th loop judgment step or the action instruction in the i-1th loop judgment step returns to the first checkpoint judgment step and repeats the execution.
[0062] The t-th checkpoint judgment: obtain the flight data of the t-th task node corresponding to the target UAV, and judge the m of the t-th checkpoint t The condition parameters are consistent with the flight data of the tth task node; if they are consistent, the nth checkpoint of the tth checkpoint is issued. t An action instruction is given to the drone system; if it does not match, the tth cycle judgment step is executed.
[0063] The tth loop judgment: judge the flight data of the tth task node and the nth in the t-1th checkpoint judgment step t-1 The modified action instruction in the t-1th loop judgment step is consistent; if it is consistent, modify some or all of the condition parameters of the tth checkpoint, return to the first checkpoint judgment step, and repeat the execution; if it is not consistent, modify the nth checkpoint judgment step in the t-1th checkpoint judgment step. t-1 The modified action instruction in the t-1th cycle judgment step returns to the first checkpoint judgment step and repeats the execution.
[0064] After traversing all the checkpoints, the inspection strategy formed by the conditional parameters and action instructions of the final t checkpoints is used as the optimal decision of the drone in the simulation scenario.
[0065] In the present invention, the condition parameters in the checkpoint include condition flags, logical judgments, condition names and condition input parameters, wherein the condition input parameters include setting parameters and / or parameter thresholds.
[0066] In the present invention, a list of conditional parameters that a checkpoint may include is shown in Table 1.
[0067] Table 1: Checkpoint condition parameters
[0068]
[0069] Among them, the position judgment of the designated target UAV, the detection judgment of the designated target UAV, the communication judgment between the designated target UAV and the target, the longitudinal distance judgment between the designated target UAV and the target, the lateral distance judgment between the designated target UAV and the target, the height judgment between the designated target UAV and the target, the flight mode judgment of the designated target UAV and the fuel amount judgment of the designated target UAV correspond to the conditional parameters of the UAVs from the 4th to the 11th rows in Table 1.
[0070] Each condition in the list of conditional parameters corresponds to a logical judgment. By issuing conditional parameters, this logical judgment is called to obtain the return result (0 (satisfied) / 1 (not satisfied)).
[0071] For example: Set the condition flag in the first condition parameter to 1 (valid), select "and" for logical judgment, set the altitude to 2000m, and the altitude threshold to 10m. The resulting condition input parameter is [1990m, 2010m]. If the altitude of the drone is within the range of [1990m, 2010m], the condition is met. Otherwise, the condition is not met.
[0072] For example, if the condition flag of the first condition parameter and the condition flag of the second condition parameter are both set to 1, and the logical judgment selects "or", it means that either the first condition parameter or the second condition parameter can be satisfied. The first condition parameter is the UAV altitude judgment, and the set altitude is 2000m, the altitude threshold is 10m, and the condition input parameter obtained is [1990m, 2010m]. If the altitude of the UAV is within the range of [1990m, 2010m], the condition is satisfied, otherwise, the condition is not satisfied; the second condition parameter is the UAV speed judgment, and the set speed is 100m / s, the speed threshold is 5m / s, and the condition input parameter obtained is [105m / s, 95m / s]. If the speed of the UAV is within the range of [105m / s, 95m / s], the condition is satisfied, otherwise, the condition is not satisfied; for the first condition parameter and the second condition parameter, as long as one of them is satisfied, the condition is considered to be satisfied; otherwise, the condition is not satisfied.
[0073] For example: the 12th condition parameter specifies the height judgment of the target UAV, which is suitable for the judgment of the control condition of multiple UAVs. Select the number of the UAV to be judged in the condition input parameter. You can select multiple. Assuming that the number of valid target points is 3, you need to set the number array of 3 target UAVs. Select "and" for logical judgment, set the set height and height threshold of the corresponding 3 target UAVs, then the condition input parameters are [3 (specify the number of target UAVs), [u2, u3, u5] (specify the number array of target UAVs), [[8000, 10], [7800, 10], [7600, 10] (set height, height threshold)]; it is necessary to meet the height data of the target UAV numbered u2 within the range of [7990m, 8010m], the height data of the target UAV numbered u3 within the range of [7790m, 7810m] and the height data of the target UAV numbered u5 within the range of [7590m, 7610m], that is, the condition is met; otherwise, the condition is not met.
[0074] In the present invention, the action instruction in the checkpoint includes: action, action flag and action input parameter.
[0075] In the present invention, a list of action instructions that a checkpoint may include is shown in Table 2.
[0076] Table 2: Action instructions that a checkpoint can contain
[0077]
[0078] The action setting in the action instruction is the same as the condition parameter setting. Setting the action flag of action 2 height hold to 1 indicates that the height hold in the list of action instructions is selected as valid; the condition flag in the condition parameter is associated with the action flag in the action instruction.
[0079] There are also two types of actions. 1-8 are action instructions for the drones that need to be bound, and 9-16 are action instructions that need to be issued to multiple drones. Action instructions are issued to the target drone based on the set drone target number.
[0080] Conditional parameters and action instructions are configured according to simulation scenarios.
[0081] The present invention provides an autonomous decision-making system for unmanned aerial vehicles, wherein a neural network model in the autonomous decision-making system for unmanned aerial vehicles is formed by optimal decision training of the unmanned aerial vehicle obtained by using the optimal decision determination method for unmanned aerial vehicles based on scene simulation of the present invention.
[0082] See also Figure 2The present invention also provides a drone optimal decision determination system based on scene simulation, which corresponds to the drone optimal decision determination method based on scene simulation of the present invention, and specifically includes:
[0083] Scenario configuration module: used to configure simulation scenarios based on simulation scenarios;
[0084] Task division module: used to divide task nodes according to the actions of the UAV system in the simulation scenario, and set inspection strategies according to the task nodes, where the inspection strategies include condition parameters and action instructions;
[0085] Strategy binding module: used to bind inspection strategies to drones;
[0086] And the inspection strategy judgment module: used to obtain the flight data of the target UAV corresponding to the task node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the task node. If they are consistent, the action instructions in the inspection strategy are issued to the UAV system; otherwise, the condition parameters in the inspection strategy that are inconsistent with the flight data of the task node are modified, and re-judgment is made until the condition parameters in the inspection strategy are consistent with the flight data of the task node, and the consistent inspection strategy is used as the optimal decision for the UAV in the simulation scenario.
[0087] Specifically, for the contents of the scene configuration module, task division module, strategy binding module and inspection strategy judgment module in the drone optimal decision determination system based on scene simulation of the present invention, please refer to the description of the drone optimal decision determination method based on scene simulation of the present invention.
[0088] The present invention also provides a computer-readable storage medium, on which a program file is stored, and the program file is executed to implement the optimal decision-making determination method for a drone based on scene simulation of the present invention.
[0089] The present invention also provides an electronic device, which includes a processor and a memory coupled to each other, wherein the memory is used to store the optimal decision-making determination method for a drone based on scene simulation according to the present invention; and the processor is used to execute program instructions stored in the memory.
[0090] Example 1
[0091] This embodiment provides a method for determining optimal decision of a drone based on scenario simulation, which includes the following steps:
[0092] Scenario configuration: The simulation scenario is that one UAV searches at point A and moves to point D until the fuel level of the UAV is less than 300 kg and then returns to the initial position A. Based on the simulation scenario, the number of UAVs (1), the initial position of the UAV, the initial height of the UAV, the initial fuel level of the UAV, the initial speed of the UAV, the initial attitude angle of the UAV and the mission environment of the UAV are determined. The simulation scenario is configured according to the number of UAVs (1), the initial position of the UAV, the initial speed of the UAV, the initial fuel level of the UAV, the initial speed of the UAV, the initial attitude angle of the UAV and the mission environment of the UAV.
[0093] Task division: Divide the task nodes according to the actions of the UAV system in the simulation scenario, see Table 3, and divide the task nodes into 4; see Table 4, set the inspection strategy according to the task nodes;
[0094] Table 3: Task node division list of this embodiment
[0095]
[0096] Table 4: Check strategy list of this embodiment
[0097]
[0098] Policy binding: bind the inspection policy to drone 1;
[0099] First checkpoint judgment: obtain the flight data (flight altitude, flight speed and drone position) of the first task node corresponding to drone 1, and judge whether the three parameter conditions of the first checkpoint (drone altitude, drone speed and drone position) are consistent with the flight data of the first task node; if they are consistent, send the action command of the first checkpoint (fly to point D) to drone 1, and execute the second checkpoint judgment step; if they are not consistent, execute the first loop judgment step.
[0100] The first loop judgment: modify some or all of the conditional parameters of the first checkpoint and some or all of the action instructions of the first checkpoint, use the modified conditional parameters of the first checkpoint as the new conditional parameters of the first checkpoint, repeat the first checkpoint judgment step until the conditional parameters of the first checkpoint match the flight data of the first task node, and send the modified action instructions corresponding to the matching conditional parameters of the first checkpoint to UAV 1.
[0101] Second checkpoint judgment: obtain the flight data of the second task node corresponding to UAV 1 (the position of the UAV), and judge whether one condition parameter of the second checkpoint matches the flight data of the second task node; if so, send the action instruction of the second checkpoint (call route planning, generate search route) to the UAV system, and execute the third checkpoint judgment step; if not, execute the second loop judgment step.
[0102] Second loop judgment: judge whether the flight data of the second task node is consistent with the three action instructions in the first checkpoint judgment step or the modified action instructions in the first loop judgment step; if consistent, modify part or all of the condition parameters of the second checkpoint, and repeat the first checkpoint judgment step, the first loop judgment step and the second checkpoint judgment step; if inconsistent, modify the three action instructions in the first checkpoint judgment step or the modified action instructions in the first loop judgment step, and repeat the first checkpoint judgment step, the first loop judgment step and the second checkpoint judgment step.
[0103] Third checkpoint judgment: obtain the flight data of the third task node corresponding to UAV 1 (the amount of fuel in the UAV), and judge whether one condition parameter of the third checkpoint matches the flight data of the third task node; if they match, send the action instruction of the third checkpoint (fly to point A) to the UAV system, and execute the fourth checkpoint judgment step; if they do not match, execute the third loop judgment step.
[0104] Third checkpoint judgment: judge whether the flight data of the third task node is consistent with one action instruction in the second checkpoint judgment step or the modified action instruction in the second loop judgment step; if consistent, modify part or all of the condition parameters of the third checkpoint, and repeat the first checkpoint judgment step, the first loop judgment step, the second checkpoint judgment step, the second loop judgment step and the third checkpoint judgment step; if inconsistent, modify one action instruction in the second checkpoint judgment step or the modified action instruction in the second loop judgment step, and repeat the first checkpoint judgment step, the first loop judgment step, the second checkpoint judgment step, the second loop judgment step and the third checkpoint judgment step.
[0105] Fourth checkpoint judgment: obtain the flight data of the fourth task node corresponding to UAV 1 (the position of the UAV), and judge whether one condition parameter of the fourth checkpoint matches the flight data of the fourth task node; if they match, send the action instruction of the fourth checkpoint (simulation stop) to the UAV system; if they do not match, execute the fourth loop judgment step.
[0106] Fourth loop judgment: judge whether the flight data of the fourth task node is consistent with one action instruction in the third checkpoint judgment step or the modified action instruction in the third loop judgment step; if consistent, modify part or all of the condition parameters of the fourth checkpoint, and repeat the first checkpoint judgment step, the first loop judgment step, the second checkpoint judgment step, the second loop judgment step, the third checkpoint judgment step, the third loop judgment step and the fourth checkpoint judgment step; if inconsistent, modify one action instruction in the third checkpoint judgment step or the modified action instruction in the third loop judgment step, and repeat the first checkpoint judgment step, the first loop judgment step, the second checkpoint judgment step, the second loop judgment step, the third checkpoint judgment step, the third loop judgment step and the fourth checkpoint judgment step.
[0107] The inspection strategy formed by the conditional parameters and action instructions of the final four checkpoints is used as the optimal decision for the UAV in this simulation scenario.
[0108] Example 2
[0109] This embodiment provides a method for determining optimal decision of a drone based on scenario simulation, which includes the following steps:
[0110] Scenario configuration: The simulation scenario is: 2 drones, at points A and B, assemble at point C. After both drones arrive at point C, they go to point D in formation to search until the fuel of one of the drones is less than 300 kg and then return to their respective initial positions. Based on the simulation scenario, the number of drones (2), the initial position of the drone, the initial height of the drone, the initial fuel of the drone, the initial speed of the drone, the initial attitude angle of the drone, and the mission environment of the drone are determined; the simulation scenario is configured according to the number of drones (2), the initial position of the drone, the initial height of the drone, the initial fuel of the drone, the initial speed of the drone, the initial attitude angle of the drone, and the mission environment of the drone.
[0111] Task division: Divide the task nodes according to the actions of the UAV system in the simulation scenario, see Table 5, and divide the task nodes into 5; see Table 6, set the inspection strategy according to the task nodes;
[0112] Table 5: Task node division list of this embodiment
[0113]
[0114] Table 6: Inspection strategy list of drone 1 in this embodiment
[0115]
[0116] Refer to the inspection strategy of drone 1 in Table 6 to set the inspection strategy of drone 2 accordingly.
[0117] Policy binding: bind the inspection policy of drone 1 to drone 1, and bind the inspection policy of drone 2 to drone 2;
[0118] Inspection strategy judgment module: Referring to the process of Example 1, the condition parameters and flight instructions of the checkpoints corresponding to UAV 1 are compared with the flight data of the corresponding mission points of UAV 1, and the condition parameters and flight instructions of the checkpoints corresponding to UAV 2 are compared with the flight data of the corresponding mission points of UAV 2. The inspection strategy formed by the condition parameters and action instructions of the five checkpoints of UAV 1 and the inspection strategy formed by the condition parameters and action instructions of the five checkpoints of UAV 2 are finally used as the optimal decision of the UAV in the simulation scenario.
[0119] Example 3
[0120] The present embodiment is a drone optimal decision determination system based on scene simulation, which corresponds to a drone optimal decision determination method based on scene simulation in embodiment 1 or embodiment 2, and specifically includes: a scene configuration module, a task division module, a strategy binding module and a strategy judgment module; the specific modules refer to the description of embodiment 1 or embodiment 2.
[0121] Example 4
[0122] The present embodiment provides an autonomous decision-making system for a drone, which is formed by optimal decision training of the drone obtained by using the optimal decision determination method for a drone based on scene simulation in Embodiment 1 or Embodiment 2.
[0123] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or part or all of the technical features thereof can be replaced by equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the present invention.
Claims
1. A method for determining optimal decision of a UAV based on scenario simulation, characterized in that: The following steps are involved: Scenario configuration: configure simulation scenarios based on simulation scenarios; Task division: divide the task nodes according to the actions of the UAV system in the simulation scenario, and set the inspection strategy according to the task nodes, where the inspection strategy includes condition parameters and action instructions; the inspection strategy includes t checkpoints, each of which contains m i conditional parameters and n i action instructions, m is the number of conditional parameters, unit: ; n is the number of action instructions, unit: ; i refers to the sequence number of the checkpoint, unit: , 0<i≤t; where the number of checkpoints corresponds to the number of task nodes; Policy binding: Bind the inspection policy to the target drone; Inspection strategy judgment: obtain the flight data of the target UAV corresponding to the task node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the task node. If they are consistent, the action instructions in the inspection strategy are issued to the UAV system; otherwise, modify the condition parameters in the inspection strategy that are inconsistent with the flight data of the task node, and re-judge until the condition parameters in the inspection strategy are consistent with the flight data of the task node, and use the consistent inspection strategy as the optimal decision of the UAV in the simulation scenario; The scenario configuration specifically includes: determining the number of drones, the initial state of the drones, the flight routes of the drones and the mission environment of the drones based on the simulation scenario; configuring the simulation scenario according to the number of drones, the initial state of the drones, the flight routes of the drones and the mission environment of the drones.
2. The optimal decision determination method for unmanned aerial vehicle based on scenario simulation according to claim 1 is characterized in that: The inspection strategy determination step specifically includes: First checkpoint judgment: obtain the flight data of the first task node corresponding to the target UAV, and judge whether the m1 condition parameters of the first checkpoint are consistent with the flight data of the first task node; If they match, n1 action instructions of the first checkpoint are sent to the UAV system, and the second checkpoint judgment step is executed; If not, the first cycle judgment step is executed; First loop judgment: modify the condition parameters of the first checkpoint and the action instructions of the first checkpoint, use the modified condition parameters of the first checkpoint as the new condition parameters of the first checkpoint, repeat the first checkpoint judgment step until the condition parameters of the first checkpoint match the flight data of the first task node, and send the modified action instructions corresponding to the matching condition parameters of the first checkpoint to the UAV system; The i-th checkpoint judgment: obtain the flight data of the i-th task node corresponding to the target UAV, and judge the m of the i-th checkpoint i Whether the conditional parameters are consistent with the flight data of the i-th task node; If they match, send the nth checkpoint of i. i An action instruction is given to the UAV system, and the i+1th checkpoint judgment step is executed; If not, execute the i-th cycle judgment step; The i-th loop judgment: judge the flight data of the i-th task node and the n-th checkpoint judgment step i-1 The action instruction or the modified action instruction in the i-1th cycle judgment step is consistent; If they match, modify the condition parameters of the i-th checkpoint, return to the first checkpoint judgment step, and repeat; If they do not match, modify n in the i-1th checkpoint judgment step i-1 The modified action instruction in the i-1th loop judgment step or the action instruction in the i-1th loop judgment step returns to the first checkpoint judgment step and repeats the execution; After traversing all the checkpoints, the inspection strategy formed by the conditional parameters and action instructions of the final t checkpoints is used as the optimal decision of the drone in the simulation scenario.
3. The optimal decision determination method for unmanned aerial vehicle based on scenario simulation according to claim 1 or 2, characterized in that: The condition parameters in the checkpoint include a condition flag, a logical judgment, a condition name and a condition input parameter, wherein the condition input parameter includes a setting parameter and / or a parameter threshold.
4. The method for determining optimal decision of a UAV based on scenario simulation according to claim 3 is characterized in that: The action instruction in the checkpoint includes: action, action flag and action input parameter.
5. An autonomous decision-making system for unmanned aerial vehicles, characterized in that: The neural network model in the UAV autonomous decision-making system is formed by the optimal decision training of the UAV obtained by using the UAV optimal decision determination method based on scene simulation described in claim 1 or 2.
6. A drone optimal decision determination system based on scenario simulation, used to execute the drone optimal decision determination method based on scenario simulation according to claim 1, characterized in that: include: Scenario configuration module: used to configure simulation scenarios based on simulation scenarios; Task division module: used to divide task nodes according to the actions of the UAV system in the simulation scenario, and set inspection strategies according to the task nodes, where the inspection strategies include condition parameters and action instructions; Strategy binding module: used to bind inspection strategies to drones; And the inspection strategy judgment module: used to obtain the flight data of the target UAV corresponding to the task node, and judge whether the condition parameters in the inspection strategy are consistent with the flight data of the task node. If they are consistent, the action instructions in the inspection strategy are issued to the UAV system; otherwise, the condition parameters in the inspection strategy that are inconsistent with the flight data of the task node are modified, and re-judgment is made until the condition parameters in the inspection strategy are consistent with the flight data of the task node, and the consistent inspection strategy is used as the optimal decision for the UAV in the simulation scenario.
7. A computer-readable storage medium, characterized in that: A program file is stored, and the program file is executed to implement the optimal decision-making determination method for a drone based on scenario simulation as described in any one of claims 1 to 4.
8. An electronic device, characterized in that: The invention comprises a processor and a memory coupled to each other, wherein: The memory is used to store the optimal decision-making method for a UAV based on scenario simulation according to any one of claims 1 to 4; The processor is used to execute program instructions stored in the memory.
