Knowledge-driven hierarchical intelligent decision-making model training method and device
Through the knowledge-driven hierarchical intelligent decision-making model training method, combined with military decision-making points and equipment knowledge, the problem of insufficient decision-making collaboration and knowledge utilization in the intelligent learning environment is solved, and efficient training and accuracy improvement of military auxiliary decision-making are achieved.
Patent Information
- Application Number
- CN202311233581.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-09-21
AI Technical Summary
The existing intelligent learning environment lacks the coordination of multi-level training of military decision-making and the utilization of military knowledge in military auxiliary decision-making, making it difficult for intelligent algorithms to conduct massive training at the task level and lacking effective knowledge guidance.
Using a knowledge-driven hierarchical intelligent decision-making model training method, by deploying mission decision points and action decision points, combined with the preset objective situation information and equipment capability knowledge of both the enemy and ourselves, weighted fusion calculations are performed to generate initial and current observation situation vectors. Update combat grouping actions and equipment actions to form a task-level and action-level agent sample library, and conduct parameter update training until preset conditions are met.
It realizes the collaborative training of upper-level tasks and lower-level operations, effectively uses military knowledge, and improves the accuracy of military confrontation decision-making and the decision-making effect of intelligent agents.
Smart Images

Figure CN117291278B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and in particular to a knowledge-driven hierarchical intelligent decision-making model training method, device, electronic device and computer-readable storage medium. Background Art
[0002] The powerful ability of machine learning methods represented by deep reinforcement learning to solve game-related problems has brought new solutions to intelligent campaign auxiliary decision-making planning.
[0003] Intelligent learning algorithms require a large amount of simulation training, and their application in military decision-making assistance requires the construction of an intelligent learning environment on the simulation system. However, the existing intelligent learning environment is only used to open up the interactive interface with the simulation platform and provide an intelligent algorithm training interface, lacking effective support for the intelligentization of military decision-making assistance.
[0004] There are two problems with using intelligent learning algorithms in military decision-making support:
[0005] First, there is a lack of coordination for multi-level training of military decision-making. For example, mission-level decision-making focuses on macro-task planning, but requires the coordination of underlying actions to complete. At the mission level, issuing regional air defense tasks focuses on factors such as available forces, mission areas, and time, while the coordination and cooperation between multiple aircraft and route planning require the support of action planning. At present, most systems require separate design of rules at the action level, which makes it difficult for intelligent algorithms to conduct massive training at the mission level. Second, there is a lack of utilization of military knowledge. The problem space of military decision-making support is large and there are many influencing factors. It is costly to rely solely on intelligent algorithms to train from scratch, and effective use of military knowledge is required for efficient guidance. However, the existing intelligent learning environment only provides a basis for algorithm training, and does not provide knowledge utilization functions. Summary of the invention
[0006] The present invention provides a knowledge-driven hierarchical intelligent decision-making model training method, device, electronic device and computer-readable storage medium, the main purpose of which is to solve the problem of lack of coordination of multi-level training of military decision-making and lack of utilization of military knowledge in the application of intelligent learning algorithms in military auxiliary decision-making.
[0007] To achieve the above object, the present invention provides a knowledge-driven hierarchical intelligent decision model training method, comprising:
[0008] Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1;
[0009] At the first mission decision point, the preset objective situation information and equipment capability knowledge of both sides are weighted and fused to obtain the initial observation situation vector. The pre-built mission-level intelligent agent is used to calculate the combat formation action and action-level target state of our side based on the initial observation situation vector.
[0010] At the first action decision point, using the pre-built action-level agent to calculate the equipment action according to the initial observation situation vector and the action-level target state;
[0011] Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side;
[0012] At the next mission decision point, the latest objective situation information and equipment capability knowledge of both sides are weightedly fused and calculated to obtain the current observation situation vector, and the task-level intelligent agent is used to update the combat formation action and action-level target state of our side according to the current observation situation vector;
[0013] Calculate the task-level reward value of the task-level intelligent agent, and form a task-level intelligent agent sample by combining the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action;
[0014] At the next action decision point, the action-level agent is used to update the equipment action according to the current observation situation vector and the latest action-level target state;
[0015] Calculate the action-level reward value of the action-level agent, and form an action-level agent sample by combining the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party;
[0016] Returning to the step of obtaining the preset simulation platform, updating the objective situation information and equipment capability knowledge of both the enemy and our side according to the latest combat formation actions and equipment actions of our side, until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment is completed;
[0017] Gather all task-level agent samples and all action-level agent samples to form a sample library;
[0018] The parameters of the task-level agent and the action-level agent are updated, and the sample library is used to adjust and train the task-level agent and the action-level agent after the parameter update, until the adjustment training meets the preset training end condition, so as to obtain the trained task-level agent and the action-level agent.
[0019] Optionally, performing weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both the enemy and ourselves to obtain an initial observation situation vector includes:
[0020] Discretize the preset combat confrontation space into a space matrix;
[0021] According to the objective situation information of both sides, the distribution value of each side's equipment at each point in the space matrix is counted to obtain the objective situation matrix;
[0022] According to the equipment capability knowledge of both sides, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated to obtain the equipment capability matrix;
[0023] Generate objective weight values of the objective situation matrix and capability weight values of the equipment capability matrix using a preset attention mechanism;
[0024] Multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix;
[0025] The weighted objective situation matrix and the weighted equipment capability matrix are integrated to obtain the initial observation situation vector.
[0026] Optionally, the calculating, based on the equipment capability knowledge of both the enemy and our own party, the superimposed influence of the equipment of both the enemy and our own party on each point in the space matrix to obtain the equipment capability matrix includes:
[0027] Identifying the capability type and capability value of each equipment from the equipment capability knowledge;
[0028] According to the objective situation information of both the enemy and ourselves, the position distance of each equipment to each point in the spatial matrix is calculated;
[0029] Using the preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, the superimposed influence of the enemy and our equipment on each point in the space matrix is calculated to obtain the equipment ability matrix of the corresponding ability type.
[0030] Optionally, the using of a preset influence formula to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix according to the capability value of each equipment of the same capability type and the position distance of each equipment to each point in the space matrix includes:
[0031] The following preset influence formula is used to calculate the superimposed influence of the enemy and our equipment on each point in the spatial matrix:
[0032]
[0033] z k =∑ e h ek
[0034] Among them, k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on point k in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
[0035] In order to solve the above problems, the present invention also provides a knowledge-driven hierarchical intelligent decision model training device, the device comprising:
[0036] A decision point deployment module, used to deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1;
[0037] The initial module of task-level training is used to perform weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides at the first task decision point to obtain the initial observation situation vector, and use the pre-built task-level intelligent agent to calculate the combat formation action and action-level target state of our side according to the initial observation situation vector;
[0038] An action-level training initial module is used to calculate the equipment action of our side at the first action decision point using a pre-built action-level agent according to the initial observation situation vector and the action-level target state;
[0039] The latest observation situation acquisition module is used to obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side;
[0040] The task-level sample generation module is used to perform weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides at the next task decision point to obtain the current observation situation vector, use the task-level intelligent agent to update our combat formation action and action-level target state according to the current observation situation vector, calculate the task-level reward value of the pre-constructed task-level intelligent agent, and form a task-level intelligent agent sample with the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action;
[0041] An action-level sample generation module is used to update the equipment action of our party at the next action decision point using the action-level agent according to the current observation situation vector and the latest action-level target state, calculate the action-level reward value of the pre-constructed action-level agent, and form an action-level agent sample with the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party;
[0042] The sample library formation module is used to obtain the latest objective situation information and equipment capability knowledge of both sides, complete the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment, and collect all task-level agent samples and all action-level agent samples to form a sample library;
[0043] The parameter adjustment training module is used to update the parameters of the pre-constructed task-level intelligent agent and the pre-constructed action-level intelligent agent, and use the sample library to adjust the task-level intelligent agent and the action-level intelligent agent after the parameter update until the adjustment training meets the preset training end conditions, thereby obtaining the trained task-level intelligent agent and the action-level intelligent agent.
[0044] Optionally, the task-level training initial module performs weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both the enemy and our side by the following method:
[0045] Discretize the preset combat confrontation space into a space matrix;
[0046] According to the objective situation information of both sides, the distribution value of each side's equipment at each point in the space matrix is counted to obtain the objective situation matrix;
[0047] According to the equipment capability knowledge of both sides, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated to obtain the equipment capability matrix;
[0048] Generate objective weight values of the objective situation matrix and capability weight values of the equipment capability matrix using a preset attention mechanism;
[0049] Multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix;
[0050] The weighted objective situation matrix and the weighted equipment capability matrix are integrated to obtain the initial observation situation vector.
[0051] Optionally, the task-level training initialization module calculates the superimposed influence of the enemy and our equipment on each point in the space matrix according to the knowledge of the enemy and our equipment capabilities through the following method to obtain the equipment capability matrix:
[0052] Identifying the capability type and capability value of each equipment from the equipment capability knowledge;
[0053] According to the objective situation information of both the enemy and ourselves, the position distance of each equipment to each point in the spatial matrix is calculated;
[0054] Using the preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, the superimposed influence of the enemy and our equipment on each point in the space matrix is calculated to obtain the equipment ability matrix of the corresponding ability type.
[0055] Optionally, the task-level training initial module uses the following preset influence formula to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix:
[0056]
[0057] z k =∑ e h ek
[0058] Where k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on the k point in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
[0059] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0060] a memory storing at least one computer program; and
[0061] The processor executes the program stored in the memory to implement the above-mentioned knowledge-driven hierarchical intelligent decision-making model training method.
[0062] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned knowledge-driven hierarchical intelligent decision-making model training method.
[0063] The embodiments of the present invention achieve coordinated training of upper-level tasks and lower-level actions by training pre-constructed task-level intelligent agents and action-level intelligent agents, and introduce equipment capability knowledge for the training of task-level intelligent agents and action-level intelligent agents on the basis of traditional objective situation information of both sides, thereby overcoming the defect of current intelligent learning algorithms in the application of military auxiliary decision-making that lacks the utilization of military knowledge. At the same time, by performing weighted fusion calculation on objective situation information and equipment capability knowledge, on the one hand, the fusion of the two types of information is achieved, and on the other hand, the difference in weights of the two types of information is reflected, which conforms to objective facts and helps to improve the accuracy of decision-making of task-level intelligent agents and action-level intelligent agents used to assist military confrontation decisions. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic diagram of a process flow of a knowledge-driven hierarchical intelligent decision-making model training method provided by an embodiment of the present invention;
[0065] Figure 2 A detailed implementation flow diagram of one of the steps in the knowledge-driven hierarchical intelligent decision-making model training method provided in one embodiment of the present invention;
[0066] Figure 3 A detailed implementation flow diagram of one of the steps in the knowledge-driven hierarchical intelligent decision-making model training method provided in one embodiment of the present invention;
[0067] Figure 4 A functional module diagram of a knowledge-driven hierarchical intelligent decision model training device provided by an embodiment of the present invention;
[0068] Figure 5 A schematic diagram of the structure of an electronic device for implementing the knowledge-driven hierarchical intelligent decision model training method provided by one embodiment of the present invention.
[0069] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0071] The embodiment of the present application provides a knowledge-driven hierarchical intelligent decision-making model training method. The execution subject of the knowledge-driven hierarchical intelligent decision-making model training method includes but is not limited to at least one of the electronic devices such as the server, the terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the knowledge-driven hierarchical intelligent decision-making model training method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0072] Reference Figure 1 FIG. 1 is a flow chart of a knowledge-driven hierarchical intelligent decision model training method provided by an embodiment of the present invention. In this embodiment, the knowledge-driven hierarchical intelligent decision model training method includes:
[0073] S1. Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, wherein N is a natural number greater than 1. At the first task decision point, perform weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both the enemy and us to obtain an initial observation situation vector. Use a pre-constructed task-level intelligent agent to calculate our combat formation action and action-level target state based on the initial observation situation vector. At the first action decision point, use a pre-constructed action-level intelligent agent to calculate our equipment action based on the initial observation situation vector and the action-level target state.
[0074] A knowledge-driven hierarchical intelligent decision-making model training method provided in an embodiment of the present invention can be used to simulate military confrontation decision-making scenarios.
[0075] In the embodiment of the present invention, the military confrontation decision includes a task-level decision and an action-level decision. It is understandable that in the military confrontation decision simulation scenario, the forces of each party are usually organized in the form of formations, wherein the task-level decision is mainly used to command the formation to perform relatively macro tasks such as air strikes and ground strikes, while the action-level decision is mainly used to command each equipment in each formation to perform specific actions, such as a certain equipment taking off, firing or returning.
[0076] In an embodiment of the present invention, the pre-constructed task-level agent is a neural network model constructed based on a deep reinforcement learning algorithm, which is used to predict task-level decisions for our formation in a military confrontation simulation scenario based on the objective situation information and equipment capability knowledge of both the enemy and our side. The pre-constructed action-level agent is also a neural network model constructed based on a deep reinforcement learning algorithm, which is used to predict action-level decisions for each equipment in our formation in a military confrontation simulation scenario based on the objective situation information and equipment capability knowledge of both the enemy and our side.
[0077] In an embodiment of the present invention, each task decision point refers to the moment when the pre-constructed task-level intelligent agent needs to make a task-level decision prediction, and each action decision point refers to the moment when the pre-constructed action-level intelligent agent needs to make an action-level decision prediction. According to the needs of the actual military confrontation simulation scenario, multiple task decision points and action decision points can be deployed in chronological order, wherein each task decision point corresponds to an action decision point.
[0078] Preferably, in a military confrontation decision simulation scenario, different task decision steps and different action decision steps can be set according to the specific goals of the simulation scenario planning, so that multiple task decision points and action decision points that occur in chronological order can be generated. It is understandable that task-level decisions focus on macro-task planning, but require the coordination of underlying actions. For example, at the task level, issuing regional prevention and control tasks requires consideration of factors such as available forces, task areas, and time. Therefore, the step size of task-level decisions is usually larger than that of action-level decisions.
[0079] In the embodiment of the present invention, in the military confrontation decision simulation scenario, the objective situation information refers to the equipment models and quantities, ammunition types and quantities, real-time position information occupied by each of the enemy and our side, etc. The equipment capability knowledge refers to the attack or detection capability range that can be achieved by the equipment owned by each of the enemy and our side, for example, the detection range and attack range of a certain reconnaissance aircraft.
[0080] In the embodiment of the present invention, the customer situation information and equipment capability knowledge of both the enemy and our side can be preset, that is, the military confrontation simulation between the enemy and our side is initialized.
[0081] In the embodiment of the present invention, the objective situation information and equipment capability knowledge of both the enemy and our side are the key input information for the task-level intelligent agent and the action-level intelligent agent to make decisions. On the one hand, the objective situation information and equipment capability knowledge are text information composed of natural language, and the text information needs to be converted into numerical information so that the task-level intelligent agent and the action-level intelligent agent can recognize it. On the other hand, since different objective situation information and equipment capability knowledge play different roles in decision-making at the same time, it is necessary to calculate and distinguish the weights of the two.
[0082] For details, see Figure 2 As shown, the weighted fusion calculation of the preset objective situation information and equipment capability knowledge of both the enemy and ourselves is performed to obtain the initial observation situation vector, including:
[0083] S11. discretize the preset combat confrontation space into a space matrix;
[0084] In the embodiment of the present invention, the preset combat confrontation space refers to the effective spatial area of the enemy-to-enemy confrontation in the military confrontation decision simulation. For example, according to the goal of the military confrontation decision simulation task, the preset combat confrontation space can be discretized into a 4*4 matrix, and each point in the spatial matrix represents a smaller regional space constituting the preset combat confrontation space.
[0085] S12, according to the objective situation information of both sides, counting the distribution value of each side's equipment at each point in the spatial matrix to obtain the objective situation matrix;
[0086] Exemplarily, if the objective situation information includes the number of equipment of both the enemy and us and the coordinate position of each equipment, for our side, we can count the number of our equipment at each point in the spatial matrix based on the coordinate position of our equipment, thereby generating our objective situation matrix. Similarly, for the enemy, we can count the number of enemy equipment at each point in the spatial matrix based on the coordinate position of the enemy's equipment, thereby generating the enemy's objective situation matrix.
[0087] S13, based on the equipment capability knowledge of both sides, calculating the superimposed influence of the equipment of both sides on each point in the spatial matrix, and obtaining an equipment capability matrix;
[0088] For details, see Figure 3 As shown, the S13 includes:
[0089] S131, identifying the capability type and capability value of each equipment from the equipment capability knowledge;
[0090] S132, calculating the position distance of each equipment to each point in the space matrix according to the objective situation information of both the enemy and ourselves;
[0091] S133. Using a preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, calculate the superimposed influence of the equipment of both sides on each point in the space matrix to obtain the equipment ability matrix of the corresponding ability type.
[0092] In the embodiment of the present invention, the capability value refers to a value such as a maximum detection distance, a maximum strike distance, etc. that the equipment possesses, which characterizes the specific capability of the equipment.
[0093] In an embodiment of the present invention, a keyword matching method can be used to identify the capability type of each equipment, and the capability type includes but is not limited to detection capability and strike capability, which can be set according to the objectives of the military confrontation decision-making simulation task.
[0094] In the embodiment of the present invention, the position coordinates of each equipment contained in the objective situation information of both the enemy and the friendly party can be used to calculate the position distance of each equipment to any point in the space matrix.
[0095] In the embodiment of the present invention, the following preset influence formula can be used to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix:
[0096]
[0097] z k =∑ e h ek
[0098] Among them, k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on point k in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
[0099] For example, when the device e is our device, n e =1, when the equipment e is the enemy's equipment, n e =-1.
[0100] For example, when e is a detection device, q e Indicates the maximum detection distance of the equipment. When e is the attack equipment, q e Indicates the maximum attack distance of the equipment.
[0101] It is understandable that when d ek Less than or equal to q e When d is greater than d, it means that the distance from equipment e to point k is within the maximum detection range or maximum attack range of equipment e, then the influence of the corresponding equipment e on point k is relatively large. On the contrary, when d is greater than d, it means that the distance from equipment e to point k is within the maximum detection range or maximum attack range of equipment e, then the influence of the corresponding equipment e on point k is relatively large. ek Greater than q e, it means that the distance that equipment e reaches point k exceeds the maximum detection distance or maximum attack distance of equipment e. Accordingly, the influence of equipment e on point k is 0.
[0102] S14, using a preset attention mechanism to generate an objective weight value of the objective situation matrix and a capability weight value of the equipment capability matrix;
[0103] S15, multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix;
[0104] S16. Fuse the weighted objective situation matrix and the weighted equipment capability matrix to obtain the initial observation situation vector.
[0105] In an embodiment of the present invention, the preset attention mechanism may adopt activation functions such as softmax activation function, sigmoid activation function, relu activation function, etc.
[0106] In the embodiment of the present invention, the initial observation situation vector integrates the objective situation information and equipment capability knowledge of both the enemy and our side, which can ensure the sufficiency of the source data of the final military decision-making. By weighting the objective situation information and equipment capability knowledge of both the enemy and our side, the different influences of the two types of information on the military confrontation decision are reflected, which conforms to objective reality and is conducive to improving the accuracy of the final military confrontation decision.
[0107] In the embodiment of the present invention, our combat formation actions include but are not limited to relatively macroscopic task-level decision-making actions such as ground strikes and air strikes. The action-level target state refers to the prediction of the action target expected by the pre-constructed task-level agent for each device in the formation according to the initial observation situation vector, for example, the take-off and return target states.
[0108] In the embodiment of the present invention, the actions of our equipment include but are not limited to specific actions such as taking off, returning, and firing.
[0109] S2. Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both the enemy and us based on the latest actions of our combat formation and our equipment.
[0110] In the embodiment of the present invention, the preset simulation platform refers to a military simulation platform that deduce the next action of the simulated entities of the enemy and our side in the military confrontation according to the combat formation action and the equipment action. For example, the preset simulation platform adjusts the spatial distribution of each equipment in our combat formation, adjusts the amount of ammunition for each equipment, deduce the change of the spatial distribution of the enemy equipment, the change of the enemy equipment capability, and then forms new objective situation information and equipment capability knowledge of both sides.
[0111] In an embodiment of the present invention, the latest objective situation information and equipment capability knowledge of both sides are obtained from the preset simulation platform, and then the latest objective situation information and equipment capability knowledge of both sides can be used to promote the pre-constructed task-level intelligent agent and action-level intelligent agent to perform relevant decision calculations when subsequent task decision points and action decision points occur.
[0112] S3. At the next task decision point, perform weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides to obtain the current observation situation vector, use the task-level intelligent agent to update our combat formation actions and action-level target status according to the current observation situation vector, calculate the task-level reward value of the task-level intelligent agent, and combine the current observation situation vector, task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation actions to form a task-level intelligent agent sample.
[0113] In an embodiment of the present invention, the method of performing weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides to obtain the current observation situation vector is the same as the method of performing weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides to obtain the initial observation situation vector, which will not be repeated here.
[0114] It can be understood that the reward value refers to the feedback signal obtained by the agent based on its actions in the reinforcement learning task. The reward value is used to evaluate the quality of the agent's actions and to guide the agent to choose better actions in future decision-making processes. In an embodiment of the present invention, the task-level reward value refers to the evaluation value of the task-level decision of the pre-constructed task-level agent on the output of our combat formation action and action-level target state at the previous task decision point.
[0115] In the embodiment of the present invention, each of the task-level agent samples can be represented in the form of the following four-tuple:
[0116] (o t , a t , o t+t0 , r t+t0 )
[0117] Among them, t represents the previous task decision point, t0 represents the step size of the task decision point, and o t represents the observation situation vector corresponding to the previous task decision point, a t Indicates our combat formation action output by the previous mission decision point, o t+t0 Represents the current observation situation vector, r t+t0 Represents the task-level reward value output by the current task decision point.
[0118] In an embodiment of the present invention, the task-level agent sample may be used for subsequent training of parameter update of the pre-constructed task-level agent.
[0119] S4. At the next action decision point, the action-level agent is used to update the action of our equipment according to the current observation situation vector and the latest action-level target state, and the action-level reward value of the action-level agent is calculated. The current observation situation vector, action-level reward value, and the observation situation vector, action-level target state and equipment action corresponding to the previous action decision point are combined into an action-level agent sample.
[0120] In the embodiment of the present invention, the action-level reward value refers to the evaluation value of the action-level decision of the pre-constructed action-level agent on the equipment action output by the immediately previous action decision point.
[0121] In the embodiment of the present invention, each of the action-level agent samples can be represented in the form of the following five-tuple:
[0122] (o′ m , a′ m , o′ m+t1 , g t , r m+t1 )
[0123] Among them, m represents the previous action decision point, t1 represents the step length of the action decision point, and o m represents the observation situation vector corresponding to the previous action decision point, a t Indicates the equipment action of our side outputted at the previous action decision point, o′ m+t1 represents the current observation situation vector, g t represents the action-level target state corresponding to the previous action decision point, r m+t1 Represents the action-level reward value output by the current action decision point.
[0124] In the embodiment of the present invention, the action-level agent sample may be used for subsequent training of parameter update of the pre-constructed action-level agent.
[0125] S5. Determine whether all task-level agent samples and action-level agent samples corresponding to all task decision points and action decision points have been generated?
[0126] If there are task decision points and action decision points for which task-level agent samples and action-level agent samples have not been generated, return to S3 until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points deployed is completed;
[0127] In an embodiment of the present invention, when there are task decision points and action decision points for which task-level intelligent agent samples and action-level intelligent agent samples have not been generated, each time the task-level intelligent agent outputs the latest combat formation action of our side, action-level target status and the action-level intelligent agent outputs the latest equipment action of our side, it is necessary to obtain the latest objective situation information and equipment capability knowledge of both the enemy and our side from the preset simulation platform in order to complete the simulation of subsequent task decision points and action decision points.
[0128] If all the task-level agent samples and action-level agent samples corresponding to the task decision points and action decision points have been generated, execute S6, collect all the task-level agent samples and all the action-level agent samples to form a sample library, update the parameters of the pre-constructed task-level agent and the pre-constructed action-level agent, and use the sample library to adjust and train the task-level agent and action-level agent after the parameter update, until the adjusted training meets the preset training end conditions, so as to obtain the trained task-level agent and action-level agent.
[0129] In the embodiment of the present invention, when the parameters of the pre-constructed task-level agent and the pre-constructed action-level agent need to be updated, the task-level agent samples and the action-level agent samples in the sample library can be used to train the task-level agent and the action-level agent after the parameters are updated. For example, the task-level agent samples and the action-level agent samples are selected from the sample library by random method to train the task-level agent and the action-level agent after the parameters are updated.
[0130] In an embodiment of the present invention, the preset training end conditions include but are not limited to traversing all task decision points and action decision points, the loss value generated by the adjustment training is less than or equal to a preset loss threshold, etc.
[0131] In an embodiment of the present invention, the task-level intelligent agent samples and the action-level intelligent agent samples are used to train the task-level intelligent agent and the action-level intelligent agent from the task level and the action level respectively. At the same time, the task-level intelligent agent samples and the action-level intelligent agent samples integrate objective situation information and equipment capability knowledge, which can improve the training effect of the task-level intelligent agent and the action-level intelligent agent.
[0132] The embodiments of the present invention achieve coordinated training of upper-level tasks and lower-level actions by training pre-constructed task-level intelligent agents and action-level intelligent agents, and introduce equipment capability knowledge for the training of task-level intelligent agents and action-level intelligent agents on the basis of traditional objective situation information of both sides, thereby overcoming the defect of current intelligent learning algorithms in the application of military auxiliary decision-making that lacks the utilization of military knowledge. At the same time, by performing weighted fusion calculation on objective situation information and equipment capability knowledge, on the one hand, the fusion of the two types of information is achieved, and on the other hand, the difference in weights of the two types of information is reflected, which conforms to objective facts and helps to improve the accuracy of decision-making of task-level intelligent agents and action-level intelligent agents used to assist military confrontation decisions.
[0133] like Figure 4 , which is a functional module diagram of a knowledge-driven hierarchical intelligent decision model training device provided by an embodiment of the present invention.
[0134] The knowledge-driven hierarchical intelligent decision model training device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the knowledge-driven hierarchical intelligent decision model training device 100 includes: a decision point deployment module 101, a task-level training initial module 102, an action-level training initial module 103, a latest observation situation acquisition module 104, a task-level sample generation module 105, an action-level sample generation module 106, a sample library formation module 107 and a parameter adjustment training module 108. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0135] In this embodiment, the functions of each module / unit are as follows:
[0136] The decision point deployment module 101 is used to deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1;
[0137] The task-level training initial module 102 is used to perform weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides of the enemy at the first task decision point to obtain an initial observation situation vector, and use the pre-built task-level intelligent agent to calculate the combat formation action and action-level target state of our side according to the initial observation situation vector;
[0138] The action-level training initialization module 103 is used to calculate the equipment action of our side according to the initial observation situation vector and the action-level target state by using the pre-built action-level intelligent agent at the first action decision point;
[0139] The latest observation situation acquisition module 104 is used to acquire the preset simulation platform and update the objective situation information and equipment capability knowledge of both the enemy and our side according to the latest combat formation actions and equipment actions of our side;
[0140] The task-level sample generation module 105 is used to perform weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides of the enemy at the next task decision point to obtain the current observation situation vector, use the task-level intelligent agent to update the combat formation action and action-level target state of our side according to the current observation situation vector, calculate the task-level reward value of the pre-constructed task-level intelligent agent, and form a task-level intelligent agent sample with the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and the combat formation action of our side;
[0141] The action-level sample generation module 106 is used to update the equipment action of our party according to the current observation situation vector and the latest action-level target state using the action-level agent at the next action decision point, calculate the action-level reward value of the pre-constructed action-level agent, and form an action-level agent sample with the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state and the equipment action of our party;
[0142] The sample library forming module 107 is used to obtain the latest objective situation information and equipment capability knowledge of both sides, complete the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment, and collect all task-level agent samples and all action-level agent samples to form a sample library;
[0143] The parameter adjustment training module 108 is used to update the parameters of the pre-constructed task-level intelligent agent and the pre-constructed action-level intelligent agent, and use the sample library to adjust the task-level intelligent agent and the action-level intelligent agent after the parameter update until the adjustment training meets the preset training end conditions, thereby obtaining the trained task-level intelligent agent and the action-level intelligent agent.
[0144] In detail, the specific implementation of each module of the knowledge-driven hierarchical intelligent decision model training device 100 is as follows:
[0145] Step 1: Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, wherein N is a natural number greater than 1, and at the first task decision point, perform weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides to obtain an initial observation situation vector, and use a pre-constructed task-level intelligent agent to calculate our combat formation action and action-level target state based on the initial observation situation vector, and at the first action decision point, use a pre-constructed action-level intelligent agent to calculate our equipment action based on the initial observation situation vector and the action-level target state.
[0146] A knowledge-driven hierarchical intelligent decision-making model training method provided in an embodiment of the present invention can be used to simulate military confrontation decision-making scenarios.
[0147] In the embodiment of the present invention, the military confrontation decision includes a task-level decision and an action-level decision. It is understandable that in the military confrontation decision simulation scenario, the forces of each party are usually organized in the form of formations, wherein the task-level decision is mainly used to command the formation to perform relatively macro tasks such as air strikes and ground strikes, while the action-level decision is mainly used to command each equipment in each formation to perform specific actions, such as a certain equipment taking off, firing or returning.
[0148] In an embodiment of the present invention, the pre-constructed task-level agent is a neural network model constructed based on a deep reinforcement learning algorithm, which is used to predict task-level decisions for our formation in a military confrontation simulation scenario based on the objective situation information and equipment capability knowledge of both the enemy and our side. The pre-constructed action-level agent is also a neural network model constructed based on a deep reinforcement learning algorithm, which is used to predict action-level decisions for each equipment in our formation in a military confrontation simulation scenario based on the objective situation information and equipment capability knowledge of both the enemy and our side.
[0149] In an embodiment of the present invention, each task decision point refers to the moment when the pre-constructed task-level intelligent agent needs to make a task-level decision prediction, and each action decision point refers to the moment when the pre-constructed action-level intelligent agent needs to make an action-level decision prediction. According to the needs of the actual military confrontation simulation scenario, multiple task decision points and action decision points can be deployed in chronological order, wherein each task decision point corresponds to an action decision point.
[0150] Preferably, in a military confrontation decision simulation scenario, different task decision steps and different action decision steps can be set according to the specific goals of the simulation scenario planning, so that multiple task decision points and action decision points that occur in chronological order can be generated. It is understandable that task-level decisions focus on macro-task planning, but require the coordination of underlying actions. For example, at the task level, issuing regional prevention and control tasks requires consideration of factors such as available forces, task areas, and time. Therefore, the step size of task-level decisions is usually larger than that of action-level decisions.
[0151] In the embodiment of the present invention, in the military confrontation decision simulation scenario, the objective situation information refers to the equipment models and quantities, ammunition types and quantities, real-time position information occupied by each of the enemy and our side, etc. The equipment capability knowledge refers to the attack or detection capability range that can be achieved by the equipment owned by each of the enemy and our side, for example, the detection range and attack range of a certain reconnaissance aircraft.
[0152] In the embodiment of the present invention, the customer situation information and equipment capability knowledge of both the enemy and our side can be preset, that is, the military confrontation simulation between the enemy and our side is initialized.
[0153] In the embodiment of the present invention, the objective situation information and equipment capability knowledge of both the enemy and our side are the key input information for the task-level intelligent agent and the action-level intelligent agent to make decisions. On the one hand, the objective situation information and equipment capability knowledge are text information composed of natural language, and the text information needs to be converted into numerical information so that the task-level intelligent agent and the action-level intelligent agent can recognize it. On the other hand, since different objective situation information and equipment capability knowledge play different roles in decision-making at the same time, it is necessary to calculate and distinguish the weights of the two.
[0154] Specifically, the weighted fusion calculation of the preset objective situation information and equipment capability knowledge of both the enemy and ourselves to obtain the initial observation situation vector includes:
[0155] Discretize the preset combat confrontation space into a space matrix;
[0156] In the embodiment of the present invention, the preset combat confrontation space refers to the effective spatial area of the enemy-to-enemy confrontation in the military confrontation decision simulation. For example, according to the goal of the military confrontation decision simulation task, the preset combat confrontation space can be discretized into a 4*4 matrix, and each point in the spatial matrix represents a smaller regional space constituting the preset combat confrontation space.
[0157] According to the objective situation information of both sides, the distribution value of each side's equipment at each point in the space matrix is counted to obtain the objective situation matrix;
[0158] Exemplarily, if the objective situation information includes the number of equipment of both the enemy and us and the coordinate position of each equipment, for our side, we can count the number of our equipment at each point in the spatial matrix based on the coordinate position of our equipment, thereby generating our objective situation matrix. Similarly, for the enemy, we can count the number of enemy equipment at each point in the spatial matrix based on the coordinate position of the enemy's equipment, thereby generating the enemy's objective situation matrix.
[0159] According to the equipment capability knowledge of both sides, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated to obtain the equipment capability matrix;
[0160] Specifically, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated based on the equipment capability knowledge of both sides, and the equipment capability matrix is obtained, including:
[0161] Identifying the capability type and capability value of each equipment from the equipment capability knowledge;
[0162] According to the objective situation information of both the enemy and ourselves, the position distance of each equipment to each point in the spatial matrix is calculated;
[0163] Using the preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, the superimposed influence of the enemy and our equipment on each point in the space matrix is calculated to obtain the equipment ability matrix of the corresponding ability type.
[0164] In the embodiment of the present invention, the capability value refers to a value such as a maximum detection distance, a maximum strike distance, etc. that the equipment possesses, which characterizes the specific capability of the equipment.
[0165] In an embodiment of the present invention, a keyword matching method can be used to identify the capability type of each equipment, and the capability type includes but is not limited to detection capability and strike capability, which can be set according to the objectives of the military confrontation decision-making simulation task.
[0166] In the embodiment of the present invention, the position coordinates of each equipment contained in the objective situation information of both the enemy and the friendly party can be used to calculate the position distance of each equipment to any point in the space matrix.
[0167] In the embodiment of the present invention, the following preset influence formula can be used to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix:
[0168]
[0169] z k =∑ e h ek
[0170] Among them, k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on point k in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
[0171] For example, when the device e is our device, n e =1, when the equipment e is the enemy's equipment, n e =-1.
[0172] For example, when e is a detection device, q e Indicates the maximum detection distance of the equipment. When e is the attack equipment, q e Indicates the maximum attack distance of the equipment.
[0173] It is understandable that when d ek Less than or equal to q e When d is greater than d, it means that the distance from equipment e to point k is within the maximum detection range or maximum attack range of equipment e, then the influence of the corresponding equipment e on point k is relatively large. On the contrary, when d is greater than d, it means that the distance from equipment e to point k is within the maximum detection range or maximum attack range of equipment e, then the influence of the corresponding equipment e on point k is relatively large. ek Greater than q e , it means that the distance that equipment e reaches point k exceeds the maximum detection distance or maximum attack distance of equipment e. Accordingly, the influence of equipment e on point k is 0.
[0174] Generate objective weight values of the objective situation matrix and capability weight values of the equipment capability matrix using a preset attention mechanism;
[0175] Multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix;
[0176] The weighted objective situation matrix and the weighted equipment capability matrix are integrated to obtain the initial observation situation vector.
[0177] In an embodiment of the present invention, the preset attention mechanism may adopt activation functions such as softmax activation function, sigmoid activation function, relu activation function, etc.
[0178] In the embodiment of the present invention, the initial observation situation vector integrates the objective situation information and equipment capability knowledge of both the enemy and our side, which can ensure the sufficiency of the source data of the final military decision-making. By weighting the objective situation information and equipment capability knowledge of both the enemy and our side, the different influences of the two types of information on the military confrontation decision are reflected, which conforms to objective reality and is conducive to improving the accuracy of the final military confrontation decision.
[0179] In the embodiment of the present invention, our combat formation actions include but are not limited to relatively macroscopic task-level decision-making actions such as ground strikes and air strikes. The action-level target state refers to the prediction of the action target expected by the pre-constructed task-level agent for each device in the formation according to the initial observation situation vector, for example, the take-off and return target states.
[0180] In the embodiment of the present invention, the actions of our equipment include but are not limited to specific actions such as taking off, returning, and firing.
[0181] Step 2: Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides based on the latest combat formation actions and equipment actions of our side.
[0182] In the embodiment of the present invention, the preset simulation platform refers to a military simulation platform that deduce the next action of the simulated entities of the enemy and our side in the military confrontation according to the combat formation action and the equipment action. For example, the preset simulation platform adjusts the spatial distribution of each equipment in our combat formation, adjusts the amount of ammunition for each equipment, deduce the change of the spatial distribution of the enemy equipment, the change of the enemy equipment capability, and then forms new objective situation information and equipment capability knowledge of both sides.
[0183] In an embodiment of the present invention, the latest objective situation information and equipment capability knowledge of both sides are obtained from the preset simulation platform, and then the latest objective situation information and equipment capability knowledge of both sides can be used to promote the pre-constructed task-level intelligent agent and action-level intelligent agent to perform relevant decision calculations when subsequent task decision points and action decision points occur.
[0184] Step 3: At the next task decision point, perform weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides to obtain the current observation situation vector. Use the task-level intelligent agent to update our combat formation actions and action-level target states according to the current observation situation vector, calculate the task-level reward value of the task-level intelligent agent, and combine the current observation situation vector, task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation actions to form a task-level intelligent agent sample.
[0185] In an embodiment of the present invention, the method of performing weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides to obtain the current observation situation vector is the same as the method of performing weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides to obtain the initial observation situation vector, which will not be repeated here.
[0186] It can be understood that the reward value refers to the feedback signal obtained by the agent based on its actions in the reinforcement learning task. The reward value is used to evaluate the quality of the agent's actions and to guide the agent to choose better actions in future decision-making processes. In an embodiment of the present invention, the task-level reward value refers to the evaluation value of the task-level decision of the pre-constructed task-level agent on the output of our combat formation action and action-level target state at the previous task decision point.
[0187] In the embodiment of the present invention, each of the task-level agent samples can be represented in the form of the following four-tuple:
[0188] (o t , a t , o t+t0 , r t+t0 )
[0189] Among them, t represents the previous task decision point, t0 represents the step size of the task decision point, and o t represents the observation situation vector corresponding to the previous task decision point, a t Indicates our combat formation action output by the previous mission decision point, o t+t0 Represents the current observation situation vector, r t+t0 Represents the task-level reward value output by the current task decision point.
[0190] In an embodiment of the present invention, the task-level agent sample may be used for subsequent training of parameter update of the pre-constructed task-level agent.
[0191] Step 4: At the next action decision point, use the action-level agent to update our equipment action according to the current observation situation vector and the latest action-level target state, calculate the action-level reward value of the action-level agent, and combine the current observation situation vector, action-level reward value, and the observation situation vector, action-level target state and our equipment action corresponding to the previous action decision point to form an action-level agent sample.
[0192] In the embodiment of the present invention, the action-level reward value refers to the evaluation value of the action-level decision of the pre-constructed action-level agent on the equipment action output by the immediately previous action decision point.
[0193] In the embodiment of the present invention, each of the action-level agent samples can be represented in the form of the following five-tuple:
[0194] (o′ m , a′ m , o′ m+t1 , g t , r m+t1 )
[0195] Among them, m represents the previous action decision point, t1 represents the step length of the action decision point, and o m represents the observation situation vector corresponding to the previous action decision point, a t Indicates the equipment action of our side outputted at the previous action decision point, o′ m+t1 represents the current observation situation vector, g t represents the action-level target state corresponding to the previous action decision point, r m+t1 Represents the action-level reward value output by the current action decision point.
[0196] In the embodiment of the present invention, the action-level agent sample may be used for subsequent training of parameter update of the pre-constructed action-level agent.
[0197] Step 5: Determine whether the task-level agent samples and action-level agent samples corresponding to all task decision points and action decision points have been generated?
[0198] If there are task decision points and action decision points for which no task-level agent samples and action-level agent samples have been generated, return to step 3 until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points deployed is completed;
[0199] In an embodiment of the present invention, when there are task decision points and action decision points for which task-level intelligent agent samples and action-level intelligent agent samples have not been generated, each time the task-level intelligent agent outputs the latest combat formation action of our side, action-level target status and the action-level intelligent agent outputs the latest equipment action of our side, it is necessary to obtain the latest objective situation information and equipment capability knowledge of both the enemy and our side from the preset simulation platform in order to complete the simulation of subsequent task decision points and action decision points.
[0200] If the task-level agent samples and action-level agent samples corresponding to all task decision points and action decision points have been generated, execute step six, collect all task-level agent samples and all action-level agent samples to form a sample library, update the parameters of the pre-constructed task-level agent and the pre-constructed action-level agent, and use the sample library to adjust and train the task-level agent and action-level agent after the parameter update, until the adjusted training meets the preset training end conditions, thereby obtaining the trained task-level agent and action-level agent.
[0201] In the embodiment of the present invention, when the parameters of the pre-constructed task-level agent and the pre-constructed action-level agent need to be updated, the task-level agent samples and the action-level agent samples in the sample library can be used to train the task-level agent and the action-level agent after the parameters are updated. For example, the task-level agent samples and the action-level agent samples are selected from the sample library by random method to train the task-level agent and the action-level agent after the parameters are updated.
[0202] In an embodiment of the present invention, the preset training end conditions include but are not limited to traversing all task decision points and action decision points, the loss value generated by the adjustment training is less than or equal to a preset loss threshold, etc.
[0203] In an embodiment of the present invention, the task-level intelligent agent samples and the action-level intelligent agent samples are used to train the task-level intelligent agent and the action-level intelligent agent from the task level and the action level respectively. At the same time, the task-level intelligent agent samples and the action-level intelligent agent samples integrate objective situation information and equipment capability knowledge, which can improve the training effect of the task-level intelligent agent and the action-level intelligent agent.
[0204] The embodiments of the present invention achieve coordinated training of upper-level tasks and lower-level actions by training pre-constructed task-level intelligent agents and action-level intelligent agents, and introduce equipment capability knowledge for the training of task-level intelligent agents and action-level intelligent agents on the basis of traditional objective situation information of both sides, thereby overcoming the defect of current intelligent learning algorithms in the application of military auxiliary decision-making that lacks the utilization of military knowledge. At the same time, by performing weighted fusion calculation on objective situation information and equipment capability knowledge, on the one hand, the fusion of the two types of information is achieved, and on the other hand, the difference in weights of the two types of information is reflected, which conforms to objective facts and helps to improve the accuracy of decision-making of task-level intelligent agents and action-level intelligent agents used to assist military confrontation decisions.
[0205] like Figure 5 , which is a schematic diagram of the structure of an electronic device for implementing a knowledge-driven hierarchical intelligent decision model training method provided by an embodiment of the present invention.
[0206] The electronic device 1 may include a processor 10, a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a knowledge-driven hierarchical intelligent decision model training program.
[0207] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code for training the knowledge-driven hierarchical intelligent decision model, but also be used to temporarily store data that has been output or is to be output.
[0208] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as knowledge-driven hierarchical intelligent decision model training programs, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0209] The bus may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0210] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0211] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0212] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0213] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0214] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0215] The knowledge-driven hierarchical intelligent decision model training program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0216] Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1;
[0217] At the first mission decision point, the preset objective situation information and equipment capability knowledge of both sides are weighted and fused to obtain the initial observation situation vector. The pre-built mission-level intelligent agent is used to calculate the combat formation action and action-level target state of our side based on the initial observation situation vector.
[0218] At the first action decision point, using the pre-built action-level agent to calculate the equipment action according to the initial observation situation vector and the action-level target state;
[0219] Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side;
[0220] At the next mission decision point, the latest objective situation information and equipment capability knowledge of both sides are weightedly fused and calculated to obtain the current observation situation vector, and the task-level intelligent agent is used to update the combat formation action and action-level target state of our side according to the current observation situation vector;
[0221] Calculate the task-level reward value of the task-level intelligent agent, and form a task-level intelligent agent sample by combining the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action;
[0222] At the next action decision point, the action-level agent is used to update the equipment action according to the current observation situation vector and the latest action-level target state;
[0223] Calculate the action-level reward value of the action-level agent, and form an action-level agent sample by combining the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party;
[0224] Returning to the step of obtaining the preset simulation platform, updating the objective situation information and equipment capability knowledge of both the enemy and our side according to the latest combat formation actions and equipment actions of our side, until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment is completed;
[0225] Gather all task-level agent samples and all action-level agent samples to form a sample library;
[0226] The parameters of the task-level agent and the action-level agent are updated, and the sample library is used to adjust and train the task-level agent and the action-level agent after the parameter update, until the adjustment training meets the preset training end condition, so as to obtain the trained task-level agent and the action-level agent.
[0227] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0228] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0229] Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1;
[0230] At the first mission decision point, the preset objective situation information and equipment capability knowledge of both sides are weighted and fused to obtain the initial observation situation vector. The pre-built mission-level intelligent agent is used to calculate the combat formation action and action-level target state of our side based on the initial observation situation vector.
[0231] At the first action decision point, using the pre-built action-level agent to calculate the equipment action according to the initial observation situation vector and the action-level target state;
[0232] Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side;
[0233] At the next mission decision point, the latest objective situation information and equipment capability knowledge of both sides are weightedly fused and calculated to obtain the current observation situation vector, and the task-level intelligent agent is used to update the combat formation action and action-level target state of our side according to the current observation situation vector;
[0234] Calculate the task-level reward value of the task-level intelligent agent, and form a task-level intelligent agent sample by combining the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action;
[0235] At the next action decision point, the action-level agent is used to update the equipment action according to the current observation situation vector and the latest action-level target state;
[0236] Calculate the action-level reward value of the action-level agent, and form an action-level agent sample by combining the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party;
[0237] Returning to the step of obtaining the preset simulation platform, updating the objective situation information and equipment capability knowledge of both the enemy and our side according to the latest combat formation actions and equipment actions of our side, until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment is completed;
[0238] Gather all task-level agent samples and all action-level agent samples to form a sample library;
[0239] The parameters of the task-level agent and the action-level agent are updated, and the sample library is used to adjust and train the task-level agent and the action-level agent after the parameter update, until the adjustment training meets the preset training end condition, so as to obtain the trained task-level agent and the action-level agent.
[0240] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0241] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0242] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0243] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0244] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A knowledge-driven hierarchical intelligent decision model training method, characterized in that: The method comprises: Deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1; At the first mission decision point, the preset objective situation information and equipment capability knowledge of both sides are weighted and fused to obtain the initial observation situation vector. The pre-built mission-level intelligent agent is used to calculate the combat formation action and action-level target state of our side based on the initial observation situation vector. At the first action decision point, using the pre-built action-level agent to calculate the equipment action according to the initial observation situation vector and the action-level target state; Obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side; At the next mission decision point, the latest objective situation information and equipment capability knowledge of both sides are weightedly fused and calculated to obtain the current observation situation vector, and the task-level intelligent agent is used to update the combat formation action and action-level target state of our side according to the current observation situation vector; Calculate the task-level reward value of the task-level intelligent agent, and form a task-level intelligent agent sample by combining the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action; At the next action decision point, the action-level agent is used to update the equipment action according to the current observation situation vector and the latest action-level target state; Calculate the action-level reward value of the action-level agent, and form an action-level agent sample by combining the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party; Returning to the step of obtaining the preset simulation platform, updating the objective situation information and equipment capability knowledge of both the enemy and our side according to the latest combat formation actions and equipment actions of our side, until the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment is completed; Gather all task-level agent samples and all action-level agent samples to form a sample library; The parameters of the task-level agent and the action-level agent are updated, and the sample library is used to adjust and train the task-level agent and the action-level agent after the parameter update, until the adjustment training meets the preset training end condition, so as to obtain the trained task-level agent and the action-level agent.
2. The knowledge-driven hierarchical intelligent decision model training method according to claim 1, characterized in that: The weighted fusion calculation of the preset objective situation information and equipment capability knowledge of both sides of the enemy is performed to obtain the initial observation situation vector, including: Discretize the preset combat confrontation space into a space matrix; According to the objective situation information of both sides, the distribution value of each side's equipment at each point in the space matrix is counted to obtain the objective situation matrix; According to the equipment capability knowledge of both sides, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated to obtain the equipment capability matrix; Generate objective weight values of the objective situation matrix and capability weight values of the equipment capability matrix using a preset attention mechanism; Multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix; The weighted objective situation matrix and the weighted equipment capability matrix are integrated to obtain the initial observation situation vector.
3. The knowledge-driven hierarchical intelligent decision model training method according to claim 2, characterized in that: The method of calculating the superimposed influence of the equipment of both sides on each point in the space matrix based on the equipment capability knowledge of both sides, and obtaining the equipment capability matrix, includes: Identifying the capability type and capability value of each equipment from the equipment capability knowledge; According to the objective situation information of both the enemy and ourselves, the position distance of each equipment to each point in the spatial matrix is calculated; Using the preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, the superimposed influence of the enemy and our equipment on each point in the space matrix is calculated to obtain the equipment ability matrix of the corresponding ability type.
4. The knowledge-driven hierarchical intelligent decision model training method according to claim 3, characterized in that: The method uses a preset influence formula to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix according to the ability value of each equipment of the same ability type and the position distance of each equipment to each point in the space matrix, including: The following preset influence formula is used to calculate the superimposed influence of the enemy and our equipment on each point in the spatial matrix: z k =∑ e h ek Among them, k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on point k in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
5. A knowledge-driven hierarchical intelligent decision model training device, characterized in that: The device comprises: A decision point deployment module, used to deploy N task decision points and action decision points corresponding to each task decision point in chronological order, where N is a natural number greater than 1; The initial module of task-level training is used to perform weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides at the first task decision point to obtain the initial observation situation vector, and use the pre-built task-level intelligent agent to calculate the combat formation action and action-level target state of our side according to the initial observation situation vector; An action-level training initial module is used to calculate the equipment action of our side at the first action decision point using a pre-built action-level agent according to the initial observation situation vector and the action-level target state; The latest observation situation acquisition module is used to obtain the preset simulation platform and update the objective situation information and equipment capability knowledge of both sides according to the latest combat formation actions and equipment actions of our side; The task-level sample generation module is used to perform weighted fusion calculation on the latest objective situation information and equipment capability knowledge of both sides at the next task decision point to obtain the current observation situation vector, use the task-level intelligent agent to update our combat formation action and action-level target state according to the current observation situation vector, calculate the task-level reward value of the pre-constructed task-level intelligent agent, and form a task-level intelligent agent sample with the current observation situation vector, the task-level reward value, the observation situation vector corresponding to the previous task decision point, and our combat formation action; An action-level sample generation module is used to update the equipment action of our party at the next action decision point using the action-level agent according to the current observation situation vector and the latest action-level target state, calculate the action-level reward value of the pre-constructed action-level agent, and form an action-level agent sample with the current observation situation vector, the action-level reward value, the observation situation vector corresponding to the previous action decision point, the action-level target state, and the equipment action of our party; The sample library formation module is used to obtain the latest objective situation information and equipment capability knowledge of both sides, complete the generation of task-level agent samples and action-level agent samples corresponding to the remaining task decision points and action decision points of the deployment, and collect all task-level agent samples and all action-level agent samples to form a sample library; The parameter adjustment training module is used to update the parameters of the pre-constructed task-level intelligent agent and the pre-constructed action-level intelligent agent, and use the sample library to adjust the task-level intelligent agent and the action-level intelligent agent after the parameter update until the adjustment training meets the preset training end conditions, thereby obtaining the trained task-level intelligent agent and the action-level intelligent agent.
6. The knowledge-driven hierarchical intelligent decision model training device according to claim 5, characterized in that: The task-level training initial module performs weighted fusion calculation on the preset objective situation information and equipment capability knowledge of both sides through the following method: Discretize the preset combat confrontation space into a space matrix; According to the objective situation information of both sides, the distribution value of each side's equipment at each point in the space matrix is counted to obtain the objective situation matrix; According to the equipment capability knowledge of both sides, the superimposed influence of the equipment of both sides on each point in the space matrix is calculated to obtain the equipment capability matrix; Generate objective weight values of the objective situation matrix and capability weight values of the equipment capability matrix using a preset attention mechanism; Multiplying the objective situation matrix by the objective weight value to obtain a weighted objective situation matrix, and multiplying the equipment capability matrix by the capability weight value to obtain a weighted equipment capability matrix; The weighted objective situation matrix and the weighted equipment capability matrix are integrated to obtain the initial observation situation vector.
7. The knowledge-driven hierarchical intelligent decision model training device according to claim 6, characterized in that: The task-level training initial module calculates the superimposed influence of the enemy and our equipment on each point in the space matrix according to the knowledge of the enemy and our equipment capabilities through the following method to obtain the equipment capability matrix: Identifying the capability type and capability value of each equipment from the equipment capability knowledge; According to the objective situation information of both the enemy and ourselves, the position distance of each equipment to each point in the spatial matrix is calculated; Using the preset influence formula, according to the ability value of each equipment in the same ability type and the position distance of each equipment to each point in the space matrix, the superimposed influence of the enemy and our equipment on each point in the space matrix is calculated to obtain the equipment ability matrix of the corresponding ability type.
8. The knowledge-driven hierarchical intelligent decision model training device according to claim 7, characterized in that: The task-level training initial module uses the following preset influence formula to calculate the superimposed influence of the enemy and our equipment on each point in the space matrix: z k =∑ e h ek Where k represents any point in the space matrix, e represents any equipment, and h ek represents the influence of any equipment e on the k point in the space matrix, n e is a numerical constant, Z k represents the superimposed influence of the equipment on the k points in the space matrix, q e Indicates the ability value of equipment e, d ek Represents the distance of equipment e relative to point k.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the knowledge-driven hierarchical intelligent decision-making model training method as described in any one of claims 1 to 4.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the knowledge-driven hierarchical intelligent decision-making model training method as described in any one of claims 1 to 4 is implemented.
