A method and system for generating electromagnetic action strategy based on red-blue game confrontation
By constructing a game tree model and iteratively updating the strategy, the problem of difficulty in predicting the opponent's strategy in the electromagnetic action game is solved, the generation of confrontation strategies in rapidly changing scenarios is achieved, and the winning probability is improved.
Patent Information
- Application Number
- CN202311725331.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-12-14
AI Technical Summary
In complex scenarios, it is difficult for the red and blue parties to quickly analyze and obtain the optimal confrontation strategy in the electromagnetic action game confrontation. Especially when equipment develops rapidly and the situation on the game field changes rapidly, existing technology cannot effectively predict the opponent's confrontation strategy. .
By obtaining the action set of electromagnetic action, a game tree model is constructed, mapping the opponent's action information, calculating the probability and regret value of the action, iteratively updating the strategy to achieve Nash equilibrium, and outputting the optimal electromagnetic action strategy.
Under the condition of incomplete information, it can quickly make response strategies, improve the probability of winning, dynamically feedback responses, and adapt to rapidly changing game scenarios.
Smart Images

Figure CN117670094B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of simulation and intelligent confrontation technology, and in particular to a method and system for generating an electromagnetic action strategy based on incomplete information of red-blue game confrontation. Background Art
[0002] When the red and blue teams are engaged in a game of confrontation, as the situation continues to advance, the decisions of both sides will be constantly updated, and they will continue to incorporate the decisions of the other side into their own decision-making considerations, and repeatedly update their action strategies with an iterative mindset, so that they can take the initiative in the game of confrontation. As equipment becomes more and more advanced, the situation on the game field changes more and more rapidly, and it becomes increasingly difficult for the red and blue teams to predict the opponent's confrontation strategy during the game of confrontation.
[0003] Incomplete information machine games refer to the situation where the agent cannot obtain all game states and information through any means, and there are characteristics of hidden information and information asymmetry. Compared with complete information games, incomplete information games are closer to electromagnetic actions.
[0004] If machine games want to successfully complete their missions, they need to analyze as quickly as possible to obtain scientific and optimal countermeasure strategies based on the information they already have in complex and unknown scenarios; however, for red and blue electromagnetic operations with complex tasks and large dimensions, there is still a lack of effective solutions. Summary of the invention
[0005] The present invention provides a method and system for generating electromagnetic action strategies based on red-blue game confrontation, which is used to solve the problem in the prior art that it is impossible to quickly analyze and obtain the optimal confrontation strategy in complex scenarios. The method includes:
[0006] Obtain an action set of electromagnetic actions, and construct a game tree model based on the action set; the action set includes multiple groups of actions, each group of actions corresponds to an action sequence and a strategy; the action sequence is the action sequence in which the red party or the blue party adopts different actions at different times;
[0007] Obtaining action information of the other party, mapping the action information into the game tree model, and obtaining at least one strategy;
[0008] Based on the obtained strategy, the first probability of each action and the second probability of each strategy are calculated, and the action benefit and regret value are calculated;
[0009] Based on the action benefit and the regret value, a final electromagnetic action strategy is obtained.
[0010] Furthermore, obtaining the regret value also includes:
[0011] Based on the action information updated multiple times by the other party, the strategy is updated by minimizing the counterfactual regret value, and multiple iterations are performed to satisfy the Nash equilibrium, thereby obtaining the regret value.
[0012] Furthermore, when the red-blue game confrontation is a plurality of rounds, obtaining the regret value further comprises: obtaining the regret value of each round, obtaining a plurality of regret values and calculating an average regret value of the plurality of regret values.
[0013] Furthermore, the action benefit u i The calculation method of (σ,h) is:
[0014] u i (σ,h)=Σ zeZ π σ (h,z)u i (z);
[0015] Among them, i represents the red side or the blue side; σ represents a set of actions; h represents the action sequence; z represents the strategy obtained by adopting a set of actions and an action sequence; π σ (h,z) represents the second probability of taking action sequence h to obtain strategy z; u i (z)=∑ h∈Z u i (h)π z (h),u i (h) represents the action benefit of taking each action in action sequence h; π z (h) represents the first probability corresponding to each action in strategy z.
[0016] Furthermore, based on the other party's action information, the regret value of the red party or the blue party taking action a in round T is The calculation method is:
[0017]
[0018] Wherein, T represents the number of updates; I represents the action set; a represents each action; Represents the regret value of the corresponding strategy based on the action set.
[0019] Furthermore, based on the obtained strategy, at the time of T+1 update, the first probability for:
[0020]
[0021] Wherein, T represents the number of iterations; I represents the action set; a represents each action; represents the regret value of the corresponding strategy obtained based on the action for the T+1th time; A(I) represents the action probability distribution in the action set I.
[0022] Furthermore, for each action a in the action set I, the first parameter ε∈(0,1], the second parameter τ∈[1,∞) and the third parameter β∈[0,∞) are introduced. Based on the obtained strategy, the second probability ρ(I,a) is:
[0023]
[0024] Among them, ε represents the exploration parameter; τ represents the threshold parameter; β represents the scale parameter; Indicates the cumulative amount.
[0025] Furthermore, if the game is played for M rounds, the average regret value of the regret value is The calculation is:
[0026] Furthermore, when the action information is mapped into the game tree model:
[0027] When reaching the terminal node, the utility value scaled by 1 / q is returned;
[0028] When reaching the opponent's action information node, select an action and continue to recurse to the node below; select an action at the opponent's action node and continue to iterate downward, while updating the accumulated amount at the opponent's action node
[0029] Based on the action nodes of the red team or the blue team, calculate the probability of each action being taken;
[0030] If it is sampled, the corresponding counterfactual value is calculated by recursive method;
[0031] Update the counterfactual value corresponding to the action set and return it;
[0032] The update is repeated continuously to ensure the maximization of the action benefit and the minimization of the regret value, and the optimal electromagnetic action strategy is output.
[0033] On the other hand, the present invention also provides an electromagnetic action strategy generation system based on red-blue game confrontation, the system comprising at least a data acquisition module, a data processing module and a strategy output module, which is used to execute the steps of any of the above methods.
[0034] In general, the technical solution conceived by the present invention can achieve the following beneficial effects compared with the prior art:
[0035] The present invention provides a method and system for generating electromagnetic action strategies based on red-blue game confrontation, which solves the problem that in the past, when electromagnetic action equipment is developing rapidly and the situation on the game field is changing more and more rapidly, the red and blue parties are unable to quickly and accurately predict the opponent's confrontation strategy during the game confrontation; through the present invention, when the red and blue parties are playing against each other, once the action changes of the opponent are collected, they can quickly respond and output the corresponding action strategy, so that even under the condition of incomplete information, the response strategy can be dynamically fed back, thereby improving the probability of winning to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a method flow diagram of a method and system for generating an electromagnetic action strategy based on red-blue game confrontation provided by the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in combination with the drawings and embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. In addition, the technical features involved in the various embodiments described below can be combined with each other as long as they do not conflict with each other.
[0039] It should be noted that, in the description of the embodiments of the present invention, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or system. In the absence of further restrictions, the sentence "includes a ..." defines an element, and does not exclude the existence of other identical elements in the process, method or system including the element.
[0040] The present invention provides a method and system for generating electromagnetic action strategies based on red-blue game confrontation, as shown in FIG. Figure 1 As shown,
[0041] An action set of electromagnetic actions is obtained, and a game tree model is constructed based on the action set; the action set includes multiple groups of actions, each group of actions corresponds to an action sequence and a strategy; the action sequence is the action sequence in which the red party or the blue party adopts different actions at different times.
[0042] It should be noted that electromagnetic action belongs to serialized game. The game consists of a series of actions. The action of the previous step may lead to the change of the action selection of the next step. The final series of actions selected form the game result and obtain a strategy. The game tree model is constructed using the action sequence. Among them, the game tree model consists of multiple states, and the edge represents the transition from one state to another. The state can be a chance node or a decision node. The function of the chance node is to assign the result of a chance event, so each edge represents a possible result of the chance event and the probability of the event. The edges of the decision node represent actions and subsequent states, which are the result strategies of the red or blue party taking these actions.
[0043] For example, during the game, the Red team is responsible for establishing a communication network, and the Blue team is responsible for using drones to interfere with the Red team's communication network. Then, the Red team needs to set the network communication information of the radio station, and its electromagnetic actions include deploying radio stations, building communication networks, and allocating frequencies; further, it also includes setting network communication names, setting network node locations, setting network frequencies, etc.; while the Blue team needs to use drones to interfere with the Red team's communication network, and its electromagnetic actions include deploying drones, planning drones, and starting interference; further, it includes setting drone names, setting drone locations, and setting drone interference frequencies, etc.
[0044] That is, the action set includes the actions of the red and blue sides, such as setting the network communication name, setting the network node location, setting the network frequency, setting the drone name, setting the drone location, setting the drone interference frequency, etc.
[0045] The game tree model is constructed based on the action set. That is, all actions of the red and blue sides are mapped to the game tree model. In other words, when the red side adopts the first red action, the blue side may respond with the first blue action or the second blue action; and when the blue side adopts the first blue action, the red side may respond with the second red action, the third red action or the third red action, so as to establish the game tree model.
[0046] For example, when the red side sets the network node position 1, the blue side may set UAV 1 or UAV 2 to respond; when the blue side sets UAV 2, the red side sets the network frequency 1 of node position 1, and the blue side sets the UAV interference frequency 1 or sets the interference frequency 2; and so on, until all the actions of the red side and the blue side are mapped into the game tree model.
[0047] Obtain the other party's action information, map the action information into the game tree model, and obtain at least one strategy.
[0048] Due to incomplete information, it is impossible to obtain all the actions of the opponent. We can only obtain some known actions and then map the opponent's action information into the game tree model to obtain all strategies to deal with the opponent's actions.
[0049] For example, if the Red side takes action A1, then the Blue side can respond to A1 with B1 or B2, and the Red side can respond to B1 with A2 or A3; for B2, the Red side can respond to A4 or A5; for A2, the Blue side can respond to B3 or B4; for A3, the Blue side can respond to B5 or B6; for B3, the Red side can respond to A6 or A7; for B4, the Red side can respond to A8; for B5, the Red side can respond to A9; for B6, the Red side can respond to A10 or A11, and so on. When the Blue side's action is B1, the Red side has 6 strategies, namely: A2-B3-A6, A2-B3-A7, A2-B4-A8, A3-B5-A9, A3-B6-A10, A3-B6-A11.
[0050] Based on the obtained strategy, the first probability of each action and the second probability of each strategy are calculated, and the action benefit and regret value are calculated;
[0051] Furthermore, the action benefit u i The calculation method of (σ,h) is:
[0052] u i (σ,h)=Σ zeZ π σ (h,z)u i (z);
[0053] Among them, i represents the red side or the blue side; σ represents a set of actions; h represents the action sequence; z represents the strategy obtained by adopting a set of actions and an action sequence; π σ (h,z) represents the second probability of taking action sequence h to obtain strategy z; u i (z)=∑ h∈Z u i (h)π z (h),u i (h) represents the action benefit of taking each action in action sequence h; π z (h) represents the first probability corresponding to each action in strategy z.
[0054] For each action set I i ∈ξ i , σ i (Ii ):A(I i )-→[0,1], is in the action set A(I i ). The strategy space of red or blue party i is represented by ∑ i Represents. The probability of each action set emitting part π σ (I) = ∑ h∈I π σ (h) represents the cumulative probability of all action sequences that can reach the action set. When strategy z is adopted, the second probability of reaching the final strategy z after applying the game action sequence h is: π σ (h,z); when strategy z is adopted, the action benefit of its corresponding action strategy is: u i (σ,h)=∑ z∈Z π σ (h,z)u i (z). The red or blue party takes action a to achieve strategy z, and the regret value obtained is: r(h,a)=v i (σ I→a ,h)-v i (σ,h). The regret value of action a corresponding to action sequence h in action set I is: r(I,a)=∑r(h,a). If necessary, negative regret values are not considered and are recorded as:
[0055] Since the other party will constantly update his actions during the game, the regret value also includes: based on the other party's multiple updated action information, the strategy is updated by minimizing the counterfactual regret value, and multiple iterations are performed to satisfy the Nash equilibrium, so as to obtain the regret value.
[0056] As an embodiment of the present invention, for each action set, the regret value and strategy are initialized; the current strategy is used to play a game with the opponent; the action benefit and regret value of each action accessed in this game are calculated; the strategy is updated through a counterfactual regret value minimization algorithm, that is, the strategy is updated according to the regret value result, and it is iterated multiple times until the Nash equilibrium; finally, the average strategy (cumulative regret value / number of iterations) is returned.
[0057] Furthermore, based on the other party's action information, the regret value of the red or blue party taking action a in round T is The calculation method is:
[0058]
[0059] Where T represents the number of updates; I represents the action set; a represents each action; Represents the regret value of the corresponding strategy based on the action set.
[0060] By introducing sample estimates of counterfactual regret values to update the regret values of the changed parts of the strategy, it can converge quickly in a short time in large-scale games. In other words, while avoiding iterating the entire game tree in each round, it can still ensure that the counterfactual regret value remains unchanged.
[0061] As an embodiment of the present invention, the leaf node is divided into different parts Q = {Q1, Q2, ..., Q n}, and ensure that all leaf nodes are covered.
[0062] Define Q j is to select Q in the current iteration i Probability: Define Q(z) to represent the probability of sampling a leaf node in the current iteration:
[0063] Then when selecting iterations, the sampled virtual values are:
[0064] Furthermore, based on the obtained strategy, at the time of T+1 update, the first probability for:
[0065]
[0066] Wherein, T represents the number of iterations; I represents the action set; a represents each action; represents the regret value of the corresponding strategy obtained based on the action for the T+1th time; A(I) represents the action probability distribution in the action set I.
[0067] As another embodiment of the present invention, for each action a in the action set I, a first parameter ε∈(0,1], a second parameter τ∈[1,∞) and a third parameter β∈[0,∞) are introduced, and based on the obtained strategy, the obtained second probability ρ(I,a) is:
[0068]
[0069] Among them, ε represents the exploration parameter; τ represents the threshold parameter; β represents the scale parameter; Indicates the cumulative amount.
[0070] When the formula is illegal, the second probability is 1; when τ = 1 and β = 0, the above sampling probability is basically the same as the second probability of this method, except that the sampling probability ε has a minimum value. The role of τ is to ensure that any action with a probability of at least 1 / τ will be sampled in the AT algorithm. As the number of iterations increases, the accumulated amount continues to increase, and eventually β becomes a negligible parameter, but it will not affect the result of the final iteration.
[0071] As an embodiment of the present invention, the pseudo code for minimizing the average tactical sampling counterfactual regret value is:
[0072]
[0073]
[0074] When the action information is mapped to the game tree model, it is necessary to return the utility value scaled by 1 / q when reaching the terminal node; when reaching the opponent's action information node, select an action and continue to recurse to the node below; select an action at the opponent's action node and continue to iterate downward (the opponent's action is obtained by the RM algorithm), and update the accumulated value at the opponent's action node. Based on the action nodes of the red party or the blue party, the probability of each action being adopted is calculated; if sampled, the corresponding counterfactual value is calculated by a recursive method; the counterfactual value corresponding to the action set is updated and returned; the above steps are repeated continuously to ensure that the action benefit is maximized and the regret value is minimized, and the optimal electromagnetic action strategy is output.
[0075] Since there may be multiple rounds in the game, when the red-blue game confrontation is multiple rounds, obtaining the regret value also includes: obtaining the regret value of each round, obtaining multiple regret values and calculating the average regret value of the multiple regret values.
[0076] More specifically, if the game is played for M rounds, the average regret value is The calculation is:
[0077] Finally, the final electromagnetic action strategy is obtained based on the action benefit and the regret value. That is, the optimal electromagnetic action strategy is outputted while ensuring the maximization of the action benefit and the minimization of the regret value.
[0078] On the other hand, the present invention also provides an electromagnetic action strategy generation system based on red-blue game confrontation, the system includes at least a data acquisition module, a data processing module and a strategy output module, which is used to execute the steps of any of the above methods.
[0079] In summary, the present invention provides a method and system for generating electromagnetic action strategies based on red-blue game confrontation, which solves the problem that in the past, when electromagnetic action equipment was developing rapidly and the situation on the game field was changing more and more rapidly, the red and blue parties were unable to quickly and accurately predict the opponent's confrontation strategy during the game confrontation. Through the present invention, while the red and blue parties were playing against each other, once the action changes of the opponent were collected, they could quickly respond and output the corresponding action strategy, so that even under incomplete information conditions, the response strategy could be dynamically fed back, thereby improving the probability of winning to a certain extent.
[0080] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0081] It should be understood that the embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0082] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.
[0083] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. As long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0084] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating electromagnetic action strategies based on red-blue game confrontation, characterized in that: The method comprises: Obtain an action set of electromagnetic actions, and construct a game tree model based on the action set; the action set includes multiple groups of actions, each group of actions corresponds to an action sequence and a strategy; the action sequence is the action sequence in which the red party or the blue party adopts different actions at different times; Obtaining action information of the other party, mapping the action information into the game tree model, and obtaining at least one strategy; Based on the obtained strategy, the first probability of each action and the second probability of each strategy are calculated, and the action benefit and regret value are calculated; Based on the action benefit and the regret value, a final electromagnetic action strategy is obtained; The action benefits u i The calculation method of (σ, h) is: at i (σ,h)=∑ z∈Z π σ (h,z)u i (With); Among them, i represents the red side or the blue side; σ represents a set of actions; h represents the action sequence; z represents the strategy obtained by using a set of actions and an action sequence; π σ (h, z) represents the second probability of taking action sequence h to obtain strategy z; u i (z)=∑ h∈Z u i (h)π z (h),u i (h) represents the action benefit of taking each action in action sequence h; π z (h) represents the first probability corresponding to each action in strategy z; The regret value is obtained by: based on the action information updated multiple times by the other party, the strategy is updated by minimizing the counterfactual regret value, iterates multiple times, satisfies Nash equilibrium, and thus obtains the regret value.
2. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 1 is characterized in that: When the red-blue game confrontation is a plurality of rounds, obtaining the regret value further comprises: obtaining the regret value of each round, obtaining a plurality of regret values and calculating an average regret value of the plurality of regret values.
3. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 2 is characterized in that: Based on the opponent's action information, the regret value of the red or blue party taking action a in round T The calculation method is: Wherein, T represents the number of updates; I represents the action set; a represents each action; Represents the regret value of the corresponding strategy based on the action set.
4. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 3 is characterized in that: Based on the obtained strategy, at the T+1 update, the first probability for: Wherein, T represents the number of iterations; I represents the action set; a represents each action; represents the regret value of the corresponding strategy obtained based on the action for the T+1th time; A(I) represents the action probability distribution in the action set I.
5. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 3 is characterized in that: For each action a in the action set I, the first parameter ε∈(0,1], the second parameter τ∈[1,∞) and the third parameter β∈[0,∞) are introduced. Based on the obtained strategy, the second probability ρ(I,a) is: Among them, ε represents the exploration parameter; τ represents the threshold parameter; β represents the scale parameter; Indicates the cumulative amount.
6. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 3 is characterized in that: If the game is played for M rounds, then the average regret value of the regret value is The calculation is:
7. The electromagnetic action strategy generation method based on red-blue game confrontation as claimed in claim 5, characterized in that: When mapping the action information into the game tree model: When reaching the terminal node, the utility value scaled by 1 / q is returned; When reaching the opponent's action information node, select an action and continue to recurse to the node below; select an action at the opponent's action node and continue to iterate downward, while updating the accumulated amount at the opponent's action node Based on the action nodes of the red team or the blue team, calculate the probability of each action being taken; If it is sampled, the corresponding counterfactual value is calculated by recursive method; Update the counterfactual value corresponding to the action set and return it; The update is repeated continuously to ensure the maximization of the action benefit and the minimization of the regret value, and the optimal electromagnetic action strategy is output.
8. An electromagnetic action strategy generation system based on red-blue game confrontation, characterized in that: The system at least comprises a data acquisition module, a data processing module and a strategy output module, which is used to execute the steps of the method according to any one of claims 1 to 7.
