Knowledge extraction method based on deep reinforcement learning agent deducing data
By acquiring and analyzing the state and action data of the agent, tactical actions and situational states can be identified, solving the problem of the agent's output data being difficult to understand and improving the player's learning efficiency of tactics.
Patent Information
- Application Number
- CN202410725563.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-06-05
AI Technical Summary
Existing game assistance methods struggle to convert the output data of intelligent agents into tactical information that players can easily understand, resulting in low learning efficiency for players, especially in complex and ever-changing air combat scenarios where it is difficult to improve tactical skills.
By acquiring agent state and action data, tactical action data is calculated and divided into multiple action ranges. Standard tactical action types are identified, and combined with situational state data, situational state and tactical action types are output to facilitate player understanding.
It effectively improves the learning efficiency of players' combat tactics, and can transform the output data of the intelligent agent into intuitive tactical information, thereby improving the learning effect of players' tactical level.
Smart Images

Figure CN118674027B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data analysis, and in particular to a knowledge extraction method based on inference data from deep reinforcement learning agents. Background Technology
[0002] With the continuous development of intelligent game technology, there are increasingly more instances in aerial combat games where game AI completely defeats players. In order to increase the appeal of human-machine combat, there is an urgent need to provide an auxiliary method that can improve the players' combat level.
[0003] Currently, the most representative practical solutions are mainly of two types: one is the rule-based approach, which mainly summarizes various aerial combat tactics in the game to form strategic rules, and uses these rules to deduce each combat game to help players improve their combat skills. This method cannot describe complex and ever-changing aerial combat scenarios, resulting in low training efficiency and poor effectiveness. The second method uses AI agents for combat simulation training, and then outputs data for players to learn from in order to improve their tactical skills. Although this method can adapt to complex combat scenarios, and with the maturity of AI agent technology, the win rate of AI agents is constantly improving, and its output data is of great learning and reference value, directly using AI agent output data to improve players' skills is not easy. First, each step of the AI agent's output is the basic control of the aircraft, namely the control of the joystick, throttle, and rudder, not the direct tactical actions taken; second, the AI agent does not provide a high degree of abstraction of the combat state, causing the state corresponding to the analysis of tactics to be annihilated in the continuously changing combat process, making it difficult for players to understand. Summary of the Invention
[0004] In view of this, this application proposes a knowledge extraction method based on deep reinforcement learning agent inference data, which can transform the agent's output data into data that is easy for players to understand, thereby improving the learning efficiency of players' combat tactics.
[0005] According to one aspect of this application, a knowledge extraction method based on deep reinforcement learning agent inference data is provided, the method comprising:
[0006] Acquire agent state data and corresponding agent action data;
[0007] Calculate tactical action data based on the agent's action data;
[0008] The tactical action data is divided into multiple action intervals, the average value of the tactical action data in each action interval is calculated, and the standard tactical action type of the action interval is determined based on the average value.
[0009] Calculate situational state data and situational state type based on the agent's state data at the first moment within each action interval;
[0010] Output the data and type of the situation status and the tactical actions.
[0011] Furthermore, the agent is trained using deep reinforcement learning, enabling it to defeat high-level players in human-machine competition.
[0012] Furthermore, the intelligent agent, after undergoing 1v1 and 2v1 air combat simulation training, is able to achieve victory in the simulated combat.
[0013] Furthermore, the tactical action data includes: radial overload n x Normal overload n z Roll angle μ.
[0014] Furthermore, the situational data includes: flight direction, position, distance, altitude difference, and speed.
[0015] Furthermore, the types of tactical maneuvers include: constant speed forward flight, accelerated forward flight, decelerated forward flight, constant speed left turn, accelerated left turn, decelerated left turn, constant speed right turn, accelerated right turn, decelerated right turn, constant speed descent, accelerated descent, decelerated descent, constant speed ascent, accelerated ascent, and decelerated ascent.
[0016] Furthermore, the situational state types include: parallel reverse, high-speed tail biting, tail biting, height difference, head-on collision, east oblique bite, west oblique bite, east far oblique bite, west far oblique bite, being bitten by east oblique bite, being bitten by west oblique bite, being bitten by east far oblique bite, being bitten by west far oblique bite, misaligned height difference, rotating pursuit, scissor pursuit, and misaligned parallel.
[0017] Furthermore, the step of dividing the tactical action data into multiple action intervals, calculating the average value of the tactical action data within each action interval, and determining the standard tactical action type for each action interval based on the average value includes the following steps:
[0018] Set thresholds for changes in tactical action data;
[0019] Compare the tactical action data of every two adjacent moments, and use the moments in the tactical action data where the change exceeds the threshold as interval dividing points;
[0020] Based on the interval division point, the tactical action data is divided into multiple action intervals, each action interval being a tactical action, and the average value of the tactical action data within each action interval is calculated.
[0021] The average value is compared with standard tactical action data, and the standard tactical action data with the smallest difference is found. The action range corresponding to the average value is identified as the standard action type corresponding to the standard action data.
[0022] According to another aspect of this application, a knowledge extraction system based on deep reinforcement learning agent inference data is provided, the system comprising:
[0023] The data acquisition module is used to acquire agent state data and corresponding agent action data;
[0024] The tactical action calculation module is used to calculate tactical action data based on the agent's action data;
[0025] The action interval division module is used to divide the tactical action data into multiple action intervals, calculate the average value of the tactical action data in each action interval, and determine the standard tactical action type of the action interval based on the average value.
[0026] The situational state calculation module is used to calculate situational state data and situational state type based on the agent's state data at the first moment within each action interval;
[0027] The data output module is used to output the data and type of the situation status and the tactical actions.
[0028] According to another aspect of this application, an electronic device is provided, the device comprising:
[0029] processor;
[0030] Memory used to store processor-executable instructions;
[0031] The processor is configured to implement the knowledge extraction method based on deep reinforcement learning agent inference data when executing the executable instructions.
[0032] The beneficial effects of this invention are:
[0033] This invention acquires agent state data and corresponding agent action data, calculates tactical action data, divides the tactical action data into multiple action intervals, identifies the standard tactical action type for each interval, calculates situational state data and situational state type based on the state data at the first moment within each action interval, and outputs the situational state and the data and type of the tactical action. This invention can transform the agent's output data into information that is easy for players to understand, thereby effectively improving the learning efficiency of players' combat tactics. It can also use various deep reinforcement learning methods and has good scalability. Attached Figure Description
[0034] Figure 1 A flowchart illustrating a knowledge extraction method based on deep reinforcement learning agent inference data provided in this application embodiment;
[0035] Figure 2 This is a schematic diagram of the structure of tactical action data provided in an embodiment of this application;
[0036] Figure 3 A schematic diagram of parameters for a standard tactical maneuver provided in an embodiment of this application;
[0037] Figure 4 A schematic diagram illustrating the construction of a standard situational state provided in an embodiment of this application;
[0038] Figure 5 This is a flowchart illustrating a knowledge extraction system based on deep reinforcement learning agent inference data, provided in an embodiment of this application. Detailed Implementation
[0039] Various exemplary embodiments, features, and aspects of this application will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0040] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0041] Furthermore, to better illustrate this application, numerous specific details are provided in the following detailed embodiments. Those skilled in the art should understand that this application can be implemented without certain specific details. In some instances, methods, means, components, and circuits well-known to those skilled in the art have not been described in detail in order to highlight the main points of this application.
[0042] Before providing further detailed explanations, the nouns and terms used in the embodiments of this application are described below. The nouns and terms used in the embodiments of this application shall be interpreted as follows:
[0043] Intelligent agent: In this application, intelligent agent refers to an autonomous learning system trained through deep reinforcement learning, which learns various flight operations and tactics to simulate human players in combat.
[0044] Intelligent agent motion data: In this application, intelligent agent motion data refers to the basic control data output by the aircraft controlled by the intelligent agent during the training process, including the control quantities of throttle, aileron, elevator and rudder.
[0045] Agent state data: In this application, agent state data refers to the flight state data output by the aircraft controlled by the agent during the training process, including position and velocity vectors.
[0046] Example 1
[0047] Figure 1 The flowchart illustrates a knowledge extraction method based on deep reinforcement learning agent inference data according to an embodiment of this application, including the following steps:
[0048] Step S100: Obtain agent state data and corresponding agent action data.
[0049] Specifically, deep reinforcement learning is used to train the agent so that it can defeat high-level players in human-machine combat. The trained agent is then used for 1v1 and 2v1 air combat simulation training, and the agent's state data and action data are collected to ensure that the agent's output data has learning reference value.
[0050] The collected agent state data and agent action data are continuous and correspond one-to-one. That is, the agent state data and agent action data are collected at continuous moments. Since the basic control of the aircraft in the game changes the aircraft's flight state, the state data obtained from the flight state at each moment will correspond one-to-one with the action data obtained from the basic control at the current moment.
[0051] Step S200: Calculate tactical action data based on the agent's action data.
[0052] Specifically, because aircraft exhibit characteristics such as acceleration and roll during flight, tactical maneuvers can also be decomposed into combinations of these characteristic quantities. See also Figure 2 Here, radial overload n is selected. x Normal overload n z The roll angle μ is used as a feature quantity of tactical actions. These features are obtained by calculating the agent's action data, forming tactical action data, which facilitates subsequent segmentation of tactical actions and understanding of the agent's action data.
[0053] Step S300: Divide the tactical action data into multiple action intervals, calculate the average value of the tactical action data in each action interval, and determine the standard tactical action type of the action interval based on the average value.
[0054] Specifically, since tactical maneuvers are derived from the combined state of the aircraft over a continuous period of time, it is necessary to segment the tactical maneuver data to distinguish and identify tactical maneuvers, including the following steps:
[0055] Step S310: Set the threshold for changes in tactical action data;
[0056] Step S320: Compare the tactical action data of every two adjacent moments, and take the moment when the change in the tactical action data exceeds the threshold as the interval dividing point.
[0057] Step S330: Based on the interval division points, the tactical action data is divided into multiple action intervals. Each action interval is a complete tactical action, containing tactical action data from multiple consecutive moments. The tactical action data at each moment is determined by the radial overload n. x Normal overload n z Composed of roll angle μ;
[0058] Step S340: Calculate the average value of tactical action data within each action interval to obtain the average combat data for each interval;
[0059] Step S350, see Figure 3 The average combat data is compared with the standard tactical action data, and the standard tactical action data with the smallest difference is found. The action range type corresponding to the average combat data is identified as the standard tactical action type corresponding to the standard tactical action data with the smallest difference.
[0060] By following the steps above, we can divide the action range, which makes it easier to learn tactical movements.
[0061] Step S400: Calculate situational state data and situational state type based on the agent state data at the first moment within each action interval.
[0062] Specifically, since the completion of each tactical maneuver requires a certain period of time, it is necessary to specify the flight state at a certain moment for each maneuver interval as the flight state of the current maneuver interval and calculate the situational state, including:
[0063] Step S410: Specify the instantaneous state of the aircraft at the first moment within each action interval as the flight state of the current action interval;
[0064] Step S420: Situational state data is calculated using flight status data. (See below) Figure 4 The situational data consists of the following features: flight direction, position, distance, altitude difference, and speed.
[0065] Step S430: Based on the standard situation state construction and the flight direction, position and other information in the situation state data, determine the corresponding situation state type.
[0066] By following the steps above, the flight status of each action range can be displayed more intuitively.
[0067] Step S500: Output the data and type of the situation status and the tactical actions.
[0068] Specifically, through the above steps, the agent's state data s and agent's action data a can be converted into situational state data S and tactical action data A, i.e., {(s1,a1)}. t1 ,(s2,a2)t2 ,…,(s n ,a n ) tn}→{(S1,A1) T1 (S2,A2) T2 ,…,(S m A m ) Tm Based on the situational state type and tactical action type identified for each action range, the combat actions and situational states of each action range are combined into data pairs, namely (situational state S, tactical action A) data pairs, and the data pairs are output to facilitate player understanding and learning.
[0069] Example 2
[0070] Based on the same principles as the aforementioned methods, a knowledge extraction system based on deep reinforcement learning agent inference data is also proposed, see [link to relevant documentation]. Figure 5 An embodiment of this application provides a knowledge extraction system based on deep reinforcement learning agent inference data, comprising:
[0071] 100, Data acquisition module, used to acquire agent state data and corresponding agent action data;
[0072] 200, Tactical Action Calculation Module, used to calculate tactical action data based on the agent's action data;
[0073] 300, Action Interval Division Module, used to divide the tactical action data into multiple action intervals, calculate the average value of the tactical action data in each action interval, and determine the standard tactical action type of the action interval based on the average value;
[0074] 400, Situational State Calculation Module, used to calculate situational state data and situational state type based on the agent state data at the first moment within each action interval;
[0075] 500, Data Output Module, used to output the data and type of the situation status and the tactical actions.
[0076] Obviously, those skilled in the art should understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, the present invention is not limited to any specific hardware and software combination.
[0077] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the control methods described above. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.
[0078] Example 3
[0079] Furthermore, an electronic device is proposed, comprising:
[0080] processor;
[0081] Memory used to store processor-executable instructions;
[0082] The processor is configured to implement the knowledge extraction method based on deep reinforcement learning agent inference data as described in Embodiment 1 when executing the executable instructions.
[0083] It should be noted that the number of processors can be one or more. Furthermore, the electronic device in this embodiment may also include input devices and output devices. The processor, memory, input devices, and output devices can be connected via a bus or other means, without specific limitations here.
[0084] Memory, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and various modules, such as the program or module corresponding to the knowledge extraction method based on deep reinforcement learning agent inference data in this application embodiment. The processor executes various functional applications and data processing of the electronic device by running the software programs or modules stored in the memory.
[0085] Input devices can be used to receive input digital numbers or signals. These signals can be key signals related to user settings and function control of the device / terminal / server. Output devices can include display devices such as screens.
[0086] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or improvement of the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A knowledge extraction method based on deep reinforcement learning agent inference data, applied to simulated air combat scenarios of aircraft, characterized in that, Includes the following steps: Acquire agent state data and corresponding agent action data. The agent state data includes the aircraft's position and velocity vectors, and the agent action data includes control values for throttle, ailerons, elevators, and rudder. Tactical action data is calculated based on the agent's action data, and the tactical action data includes radial overload. Normal overload Roll angle μ; The tactical action data is divided into multiple action intervals, and the average value of the tactical action data in each action interval is calculated. The standard tactical action type of the action interval is determined based on the average value. The tactical action type includes: uniform forward flight, accelerated forward flight, decelerated forward flight, uniform left turn, accelerated left turn, decelerated left turn, uniform right turn, accelerated right turn, decelerated right turn, uniform descent, accelerated descent, decelerated descent, uniform climb, accelerated climb, and decelerated climb. Based on the agent's state data at the first moment within each action interval, situational state data and situational state type are calculated. The situational state data includes: flight direction, position, distance, altitude difference, and speed. The situational state type includes: parallel reversal, high-speed tail bite, tail bite, altitude difference, head-on collision, east oblique bite, west oblique bite, east far oblique bite, west far oblique bite, being bitten by east oblique bite, being bitten by west oblique bite, being bitten by east far oblique bite, being bitten by west far oblique bite, misaligned altitude difference, rotating pursuit, scissor pursuit, and misaligned parallel. Output the data and type of the situation status and the tactical actions.
2. The knowledge extraction method based on deep reinforcement learning agent inference data according to claim 1, characterized in that: The agent is trained using deep reinforcement learning and is able to defeat high-level players in human-machine competition. Furthermore, the intelligent agent, after undergoing 1v1 and 2v1 air combat simulation training, is able to achieve victory in the simulated combat.
3. The knowledge extraction method based on deep reinforcement learning agent inference data according to claim 1, characterized in that, The process of dividing the tactical action data into multiple action intervals, calculating the average value of the tactical action data within each action interval, and determining the standard tactical action type for each action interval based on the average value includes the following steps: Set thresholds for changes in tactical action data; Compare the tactical action data of every two adjacent moments, and use the moments in the tactical action data where the change exceeds the threshold as interval dividing points; Based on the interval division point, the tactical action data is divided into multiple action intervals, each action interval being a tactical action, and the average value of the tactical action data within each action interval is calculated. The average value is compared with standard tactical action data, and the standard tactical action data with the smallest difference is found. The action range corresponding to the average value is identified as the standard tactical action type corresponding to the standard tactical action data.
4. A knowledge extraction system based on deep reinforcement learning agent inference data, characterized in that, include: The data acquisition module is used to acquire agent state data and corresponding agent action data. The agent state data includes the aircraft's position and velocity vectors, and the agent action data includes control values for throttle, ailerons, elevators, and rudders. The tactical action calculation module is used to calculate tactical action data based on the agent's action data, the tactical action data including radial overload. Normal overload Roll angle μ; The action interval division module is used to divide the tactical action data into multiple action intervals, calculate the average value of the tactical action data in each action interval, and determine the standard tactical action type of the action interval based on the average value. The tactical action types include: uniform forward flight, accelerated forward flight, decelerated forward flight, uniform left turn, accelerated left turn, decelerated left turn, uniform right turn, accelerated right turn, decelerated right turn, uniform descent, accelerated descent, decelerated descent, uniform ascent, accelerated ascent, and decelerated ascent. The situational state calculation module is used to calculate situational state data and situational state type based on the agent's state data at the first moment within each action interval. The situational state data includes: flight direction, position, distance, altitude difference, and speed. The situational state type includes: parallel reversal, high-speed tailing, tailing, altitude difference, collision, east oblique bite, west oblique bite, east far oblique bite, west far oblique bite, being bitten by east oblique bite, being bitten by west oblique bite, being bitten by east far oblique bite, being bitten by west far oblique bite, misaligned altitude difference, rotating pursuit, scissor pursuit, and misaligned parallel. The data output module is used to output the data and type of the situation status and the tactical actions.
5. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the knowledge extraction method based on deep reinforcement learning agent inference data as described in any one of claims 1-3 when executing the executable instructions.
Citation Information
Patent Citations
Battlefield key situation extraction method and system based on war game deduction system
CN117056738A
Inverse reinforcement learning algorithm-based instant strategic deduction scene simulation method
CN118052040A
