Next Article in Journal
Design and Analysis of the Integrated Drag-Free and Attitude Control System for TianQin Mission: A Preliminary Result
Previous Article in Journal
Structural Strength Analysis and Optimization of Commercial Aircraft Nose Landing Gear under Towing Taxi-Out Conditions Using Finite Element Simulation and Modal Testing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Towards Global Explainability of Artificial Intelligence Agent Tactics in Close Air Combat

School of Aerospace, Transport, and Manufacturing, Cranfield University, Bedford MK43 0AL, UK
*
Authors to whom correspondence should be addressed.
Aerospace 2024, 11(6), 415; https://doi.org/10.3390/aerospace11060415
Submission received: 27 March 2024 / Revised: 4 May 2024 / Accepted: 15 May 2024 / Published: 21 May 2024
(This article belongs to the Section Aeronautics)

Abstract

:
In this paper, we explore the development of an explainability system for air combat agents trained with reinforcement learning, thus addressing a crucial need in the dynamic and complex realm of air combat. The safety-critical nature of air combat demands not only improved performance but also a deep understanding of artificial intelligence (AI) decision-making processes. Although AI has been applied significantly to air combat, a gap remains in comprehensively explaining an AI agent’s decisions, which is essential for their effective integration and for fostering trust in their actions. Our research involves the creation of an explainability system tailored for agents trained in an air combat environment. Using reinforcement learning, combined with a reward decomposition approach, the system clarifies the agent’s decision making in various tactical situations. This transparency allows for a nuanced understanding of the agent’s behavior, thereby uncovering their strategic preferences and operational patterns. The findings reveal that our system effectively identifies the strengths and weaknesses of an agent’s tactics in different air combat scenarios. This knowledge is essential for debugging and refining the agent’s performance and to ensure that AI agents operate optimally within their intended contexts. The insights gained from our study highlight the crucial role of explainability in improving the integration of AI technologies within air combat systems, thus facilitating more informed tactical decisions and potential advancements in air combat strategies.

1. Introduction

In recent years, the application of Artificial Intelligence (AI)-driven Autonomous Systems (ASs) in real-world scenarios has seen a remarkable surge, thus demonstrating highly complex and novel behaviors. This expansion includes diverse domains, such as large air combat vehicles [1] and smaller autonomous Remotely Piloted Aircraft Systems (RPASs) [2], which employ AI to improve operational autonomy and effectiveness. However, these advances have highlighted the critical need for explainability in these autonomous systems [3]. The importance of explainability extends beyond mere user comprehension and encompasses the building of trust among users, developers, and policymakers alike. Furthermore, in the context of safety-critical applications, such as autonomous air combat agents, the role of explainability is of even greater significance. As given in [4,5], explainability serves as one of the pillars of trustworthiness of AI-driven ASs along with verification, certification, and adaptability, especially in high-stakes safety critical environments. The role of explainability is to present users with the rationale behind AI actions to enable them to build higher-quality mental models. Formally, mental models are “internal representations that people build based on their experiences in the real world” [6]. Explainability allows users to construct higher-quality mental models by offering insights into the rationale behind AI actions, thus resulting in more effective human–AI collaboration. Although explainable AI methods have made significant progress in various domains such as healthcare, the judiciary, and finance [7], the application of these methods to AI-driven air combat agents remains relatively unexplored. In air combat environments, pilots are tasked with making high-frequency sequential decisions within highly dynamic and challenging environments. Explainability enables better integration of AI into air combat by assisting in the discovery and refinement of new tactics, as well as improves overall trust in AI applications.
The main aim of this work is to address the critical need for explainability in AI-driven Autonomous Systems (ASs), especially in high-stakes safety-critical environments such as air combat. This research is grounded in the understanding that while AI has significantly improved operational capabilities in various domains, its integration in complex scenarios such as air combat is hindered by a lack of explainability and transparency in its decision making. The overarching goal is to enhance trust and effective human–AI collaboration by developing methods that make AI actions understandable and reliable. By focusing on this aspect, this work aims to contribute to the broader field of trustworthy AI, which is a key concern in the current era of rapidly advancing autonomous technologies.
With the ever-increasing advancement of AI, the need for a trustworthy and transparent AI system becomes more evident. Explainable Artificial Intelligence (XAI) has emerged as a pivotal field, thus trying to address the need for transparency and understandability gap in AI decision-making processes. A branch of these AI systems employing the Deep Learning (DL) method uses a multilayer neural network (NN) at its core to solve some of the most complex problems ranging from classification to autonomous driving. The lack of transparency comes from the use of these deep NNs and their inherent black box-like nature. Some methods have been developed to address these issues such as [8], where they introduced a method called LIME that provides a local explanation of why an AI system made certain classification predictions. The explanation shows how much each feature contributed to the resultant classification, thus providing insight to the user about the AI system preferences. Similar to the LIME method, [9] introduced SHAPLEY, which uses Shapley values to identify how individual feature contribute to the model’s output. Some advancement has also been made in explaining vision-based AI systems like the saliency map [10] and GradCAM [11].
The recent success of DL methods has also benefited a branch of AI called Reinforcement Learning (RL). Deep RL methods have shown great success in multiple applications ranging from playing Atari and board games [12,13] to complex real-world robotics applications, including hand manipulation [14], aerial acrobatic drone flight [15], and champion level drone racing [16].
The generation of air combat tactics using RL has been studied extensively in the literature. An air combat tactic is a specific maneuver or action executed by a pilot to gain an advantage over an opponent during an immediate engagement. A notable study by [17] explored the use of the deep deterministic policy gradient (DDPG) for training RL agents, thus resulting in considerable performance enhancements in within-visual-range (WVR) combat. Another work by [18] delved into multiagent reinforcement learning (MARL) to model intricate, cooperative air combat strategies involving several aircraft, thus showcasing the potential of RL in complex scenarios. Ref. [19] employed hierarchical reinforcement learning (HRL) to decompose combat missions into manageable subtasks, thus streamlining training and decision-making processes. Ref. [20] investigated the efficacy of model-based RL in accelerating convergence and improving sample efficiency during air combat agent training, thereby contributing to better performance in dynamic environments. Lastly, ref. [21] applied advanced deep reinforcement techniques called Proximal Policy Optimization (PPO) and Soft Actor–Critic (SAC) and compared their performance. The development of air combat agents using deep RL methods was also explored during the DARPA AlphaDogFight trial [1].
Despite their great success, deep RL methods also suffer from a lack of explainability due to the black box nature of NNs. Explaining the rationale behind these RL agents’ actions has recently gained interest. However, the field still has not matured enough to have a concise definition and categorization of different explanation types. Multiple surveys use different methods to categorize Explainable RL (XRL) methods [22,23,24]. These categorizations can be briefly divided into the scope and source of explanation. The scope consists of global vs. local explainability, and the source consists of intrinsic vs. extrinsic explainability. There are also policy simplification methods, where deep NN is simplified to decision trees or linear regression models [25,26]. However, policy simplification approaches compromise performance to create an explainable model. When the depth of the tree is increased to match the performance, it grows large enough to negate its advantage in explainability. The local explanation explains the agent’s current action for a given state, whereas the global method gives an explanation for more broader states. An intrinsic explanation is defined as an explanation coming from the model itself, like a decision tree, whereas extrinsic methods provide an explanation outside the model.
Causal explanation approaches have been proposed to address “what if” questions, thus offering insights into the relationships between actions and resulting states or events. However, these methods depend on understanding the causal model that links specific actions with their consequences [27]. Research into discovering causal structures in continuous-state games has been studied, yet this approach requires an understanding of the environment’s model within the explanation method itself, with example explanations revealing relationships within the game’s differential equations [28]. Applying causal explanations within the air combat context presents particular challenges due to the high-dimensional and dynamic nature of the state space, as well as the complexity arising from the interactions among multiple agents, with each guided by distinct policies.
In [29], the authors proposed the notion of the intended outcome, where the belief map is trained along with the Q function for explanation purposes. Although a mathematical proof was given for why the belief map is a true representation of the Q function used in decision making, the paper lacks reasons as to why this is different from directly simulating the Q function and how it provides an explanation into an agent’s decision making. This approach is also limited to the tabular environment, thus making it unsuitable for the continuous dynamics of air combat environments.
The HIGHLIGHTS method has been proposed to summarize an agent’s behavior to assist individuals in assessing the capabilities of these agents [30]. The summary explanation is derived by calculating the state importance value, which represents the difference between the highest and lowest Q values from multiple simulation runs at each state, with the aim of offering a global explanation through concise clips of the most crucial states. This approach has been applied to saliency maps [31] and reward decomposition [32], with a user study having been conducted to investigate its effectiveness. In [32], the authors highlight the effectiveness of reward decomposition in conveying the agent’s preferences and note the limited contribution of the HIGHLIGHTS method. It is also mentioned that discerning reward decomposition becomes more challenging when observing dynamic videos instead of static images [31,32]. Although state-based global policy summarization approaches provide some insight into agent behavior, the explanations provided are constrained by the limited number of unique states visited during randomly initialized simulation runs. Furthermore, these explanations are anecdotal and therefore cannot be considered representative of the agent’s overall policy.
The concept of the influence predictor has been defined in [33], where a separate network is trained for each reward type using the absolute value of the reward value. A human evaluation study reveals that participants found the influence predictor significantly useful compared to the Q value that was provided for each state. The paper also concludes that although the proposed method increased the understanding of the participants, none of the investigated explanation methods had a high trust score.
The reward decomposition approach has been proposed to provide an explanation in an agent’s decision-making process by breaking down the scalar reward value into semantically meaningful reward types, thus allowing analysis of the contribution of each reward type to the chosen action in a given state [34,35]. Reward decomposition has proven to be effective in improving the understanding and trust of non-AI experts in scenarios with discrete states and action spaces, particularly in simple board games [36]. However, these applications have been predominantly demonstrated in simple games. Human evaluation studies conducted in [32,33,36] showed that presenting the agent’s expectation in terms of decomposed reward allowed users to have a better mental model and to make a better assessment of the agent’s preference. They also conclude that there is no one-size-fits-all explanation approach, and it is environment and task dependent.
The main aim of this work is to develop an explainability framework specifically designed for AI agents involved in air combat trained with reinforcement learning. This system is intended to demystify the decision-making processes of AI agents, thus revealing their preferences and operational patterns in various tactical situations. By doing so, the research seeks to identify the strengths and weaknesses of AI tactics in air combat, thereby enabling more effective debugging and performance optimization. The ultimate objective is to ensure that AI agents not only perform optimally but also operate in a manner that is explainable and understandable to human operators, thereby bridging the gap between advanced AI capabilities and their practical, real-world applications in air combat environments.
Our contributions to Explainable Reinforcement Learning (XRL) research are marked by several key advances. First, we extend local explanations to global explanations using tactical regions, thus offering a broader view of an agent’s decision-making process across different combat scenarios. Second, we introduce a visual explanation approach for reward decomposition, thus providing an innovative means to visually interpret an agent’s decision-making process. Third, by applying our approach to the air combat environment, we demonstrate its effectiveness in identifying dominant reward types and their relative contributions across tactical regions, thus uncovering insights into an agent’s decision-making process. Our global explanation approach, grounded in the context of tactical regions, enables a deeper understanding of the agent’s priorities and decision-making rationale. The visual explanation method further enhances this understanding by making complex patterns of preference easily accessible and explainable. Through the application of these methods in the air combat domain, we showcase the applicability of our approaches by highlighting potential areas for refinement and alignment with human expectations. This collective body of work significantly advances the field of XRL by providing powerful tools for explaining, debugging, and refining AI agents in complex dynamic environments.
The rest of the paper is organized as follows. Section 2 provides background information detailing the air combat environment, including its state space, action space, and reward function, along with an overview of the Deep Q Network (DQN), reward decomposition methods, and training details. Section 3 goes into explainability by elaborating on local explanation, global explanation within tactical regions, the application of global explanation to the air combat environment, and the method of global visual explanation. Finally, the discussion is given in Section 4, and the conclusion of this paper is given in Section 5.

2. Methodology

Incorporating explainability into a domain as complex as air combat requires a comprehensive understanding of the subject matter. This necessitates a systems engineering perspective focused on three key areas: first, crafting a reward function that is semantically meaningful, thus ensuring that it reflects objectives that are intuitively understood by humans; second, constructing a state space that approximates the sensory capabilities of pilots, thus facilitating a naturalistic representation of the environment that pilots would recognize; and third, streamlining the action space to alleviate computational burdens, thereby enabling decisions that are not only efficient but also cognitively plausible. This comprehensive strategy aims to bridge the gap between AI decision-making processes and human understanding, thus enhancing the system’s usability and effectiveness in real-world air combat scenarios.
In this section, we present the comprehensive methodology used to develop and validate our framework to explain the decision-making process of the reinforcement learning (RL) agent in air combat simulations. We first start by looking back at our previous research, which inspired us to work on creating an explainable RL agent for air combat. Expanding on the acquired knowledge, we define the air combat simulation environment that enables the training and assessment of AI agents. This includes a comprehensive explanation of the state space, action space, and a reward function designed specifically to promote explainability within the system. We give details about the Deep Q Network (DQN) training algorithm to enable agents to learn the optimal policy by interacting with its environment. Additionally, we incorporate the concept of reward decomposition into the DQN algorithm to explain the agent’s decision-making process and provide a better understanding of its preference. We also provide training details, including parameter settings, environmental conditions, and reference open source libraries used for reproducibility purposes. The flow chart shown in Figure 1 represents the methodology followed in this study, thereby illustrating the sequential steps and connections between the different phases of developing an explainable reinforcement learning agent for air combat. The following visual representation provides a high-level overview of the steps taken.

2.1. Background

The quest for autonomy in air combat has led to significant advances in the application of artificial intelligence (AI), specifically through reinforcement learning (RL) to train agents capable of performing complex maneuvers. Historically, the control of agile maneuvering aircraft has posed a considerable challenge due to the dynamic and nonlinear nature of aerial combat environments. Numerous investigations have been conducted to devise tactics for resolving dogfight engagement issues since the mid-1900s [37]. Some studies have suggested rule-based techniques, also known as knowledge-encoded methods, in which experts used their experience to generate specific counter maneuvers appropriate for different scenarios [38]. The system utilizes a rule-based approach to choose a maneuver from a pre-established list, which is also referred to as the Basic Flight Maneuver (BFM). This selection is made by considering encoded expert conditional statements. A landmark study [39] demonstrated that the precise control of such maneuvers could be effectively achieved through modern control theory, thus employing a nested Nonlinear Dynamic Inversion (NDI) and Higher-Order Sliding Mode (HOSM) technique. This revelation laid the groundwork for using simplified versions of basic flight maneuvers, represented as discrete actions, to achieve control over aircraft movements within the simulation environment in this study.
Expanding on these foundational insights, our research delved into the creation of a sophisticated 3D environment with the aim of training RL agents to excel in these maneuvers. The intricate dynamics of flight, combined with the complexity of aerial combat, require a platform where agents can learn and optimize their strategies in a controlled but realistic setting. By developing this 3D training environment, we were able to generate trajectory graphs, as depicted in Figure 2, which demonstrate the agents’ ability to navigate and execute combat tactics effectively. However, our previous work [40] revealed inconsistencies in the performance of the RL agent. Despite starting from a symmetrical initial condition, when pitted against itself, our agent exhibited inconsistent superiority in different air combat regions, as illustrated in Figure 3. These findings motivated us to explore the incorporation of explainability into the decision-making process of these RL agents.
To address the critical challenge of explainability within this AI-driven air combat tactic generation problem, we recognized the need to simplify the operational environment from 3D to 2D. This strategic reduction not only streamlines the computational demands but, more importantly, enhances the clarity and interpretability of the agent’s decision-making processes. By focusing on a 2D environment using a smaller discrete action set, we aim to demystify the underlying strategies and logic employed by the AI in air combat scenarios. This paper will delve into the methodology and implications of introducing an explainability framework within this simplified 2D context, thus offering insights into the agent’s tactical reasoning and providing a transparent overview of its operational logic in different air combat tactical regions.

2.2. Air Combat Environment

This section presents information on a subpart of the air combat environment. This subpart includes a simplified mathematical model of the aircraft to decrease computation. In addition, it covers the selection of the state space, action space, and reward function to facilitate explainability in air combat agent.
The mathematical model of the aircraft used in an air combat environment is represented by a reduced order 3DOF aircraft dynamic [41] with the addition of variable speed, which is expressed as follows
V c ˙ = Δ V c
χ c ˙ = Δ χ c
V ˙ = K V ( V c V )
χ ˙ = K χ ( χ c χ )
x ˙ = V cos ( χ )
y ˙ = V sin ( χ )
where Δ V c and Δ χ c are the commanded delta speed and heading angle. K V and K χ are the speed and heading angle gains. V and χ are the speed and heading angle states, respectively. The x and y represent the position state in the inertial frame. The geometric representations of these variables are shown in Figure 4. We used aerospace notation to represent coordinate frames, where X points towards up and Y points towards right. Following the right-hand rule, χ starts from the X axis as 0 and increases in the clockwise direction. The superscripts a g e n t and t a r g e t above V represent the own aircraft and the target aircraft’s velocity vector in m/s, respectively. LOS represents Line of Sight vector and it is defined from own aircraft’s center of mass ( x , y ) a g e n t to the target aircraft’s center of mass ( x , y ) t a r g e t in meters. The variables A T A and A A are defined in the following section. The advanced control technique discussed in [39] allows for finer control of the aircraft, thus allowing this simplified model to represent a wide range of maneuvers. Complex air combat maneuvers can be constructed by adjusting the control input Δ V c and Δ χ c . The limit and value of the model parameters used to simulate realistic aircraft are provided in the training details section.

2.2.1. State Space

Different state spaces have been used in the literature for the training of RL agents. In the DARPA competition, in addition to the relative position and angle between the aircraft, the angular speed of the enemy aircraft is also known [19]. In [21], they used the same state space but excluded Euler angle information for the target aircraft. In this paper, similar to our previous work [40,42], we used a smaller state space to replicate the limited perceptual capabilities of human pilots, thus creating a more realistic and relatable environment for explainability. The state space includes only relative measurements and does not contain information specific to the target aircraft.
Before we define state space, we introduce angles and other measurements commonly used in air combat environment. The geometric representation of the LOS vector, the ATA angle, the AA angle, and the velocity vectors is shown in Figure 4.
The Line of Sight (LOS) vector is defined from the center of mass of the agent aircraft ( x , y ) a g e n t to the target aircraft’s center of mass ( x , y ) t a r g e t . This measurement conveys how far the target is from the agent aircraft. The LOS vector in the inertial frame is rotated to the local body frame of the agent aircraft, where the x axis is aligned with the agent velocity vector as follows:
d x = L O S x sin ( χ a g e n t ) + L O S y cos ( χ a g e n t )
d y = L O S x cos ( χ a g e n t ) L O S y sin ( χ a g e n t )
L O S = L O S x 2 + L O S y 2
where χ a g e n t is the heading angle of the agent, ( L O S x , L O S y ) is the component of the LOS vector in the inertial frame, ( d x , d y ) is the component of the LOS vector defined in the local frame of the agent aircraft, and L O S is magnitude of this LOS vector.
The Antenna Train Angle (ATA) is defined as the angle starting from the velocity vector of the agent aircraft V a g e n t to the LOS vector LOS , and it increases clockwise. This gives a measurement of how much we are pointing towards the target aircraft. A value of 0 indicates that the agent aircraft is pointing directly towards the target aircraft, while a value of 180 indicates that it is pointing in the opposite direction of the target aircraft. The ATA angle is formulated as
A T A = arctan 2 V a g e n t × LOS V a g e n t · LOS
where V a g e n t and LOS represent the agent velocity vector and the LOS vector, respectively.
The Aspect Angle (AA) is defined as the angle starting from the LOS vector LOS to the target aircraft velocity vector V t a r g e t , and it increases clockwise. It gives us a measurement of how much the target aircraft is pointing towards us. A value of 0 indicates that the target is pointing in the opposite direction of the agent aircraft, whereas a value of 180 indicates that it is pointing directly towards the agent aircraft. The AA angle is formulated as
A A = arctan 2 LOS × V t a r g e t LOS · V t a r g e t
where V t a r g e t represents the target velocity vector.
Lastly, the relative heading angle is defined as the angle that starts from the agent velocity vector to the target velocity vector. It gives us a measurement of the relative velocity direction of each aircraft. The relative heading angle is formulated as
χ r e l = arctan 2 V a g e n t × V t a r g e t V a g e n t · V t a r g e t .
Combining all these equations, we write the state space as follows
s = d x , d y , L O S , χ r e l , A T A , A A .

2.2.2. Low Level Action

We can create complex air combat maneuvers using simple low-level actions, such as accelerating forward and decelerating while turning right. To achieve this, we defined eight discrete actions. Additionally, we included a “do nothing” action to represent no change in the speed and direction, thus resulting in a total of nine actions. The full list of action space is given in Table 1. In each iteration, the agent selects a number from the action space list, and the respective delta heading and velocity commands are fed into the aircraft model. These actions are formed by combining the maximum and minimum values specified in Table 2 for the delta speed and the heading angle, as defined in Equations (1) and (2), respectively. The list of actions is written as
A = [ a 1 , a 2 , , a 9 ]
where each element corresponds to the action in Table 1.

2.2.3. Reward Function

The reward function serves as an essential tool for an agent to evaluate its actions and their effectiveness as it moves through its environment. It plays a crucial role in determining the agent’s competency in air combat. Therefore, it is of utmost importance to carefully design the reward function to enhance the learning and adaptation processes of the model. The design of the reward function is a critical element in shaping the behavior of an RL agent, thus offering the potential for complexity by integrating various aspects of the environment’s state, such as combining the ATA angle with the LOS distance to encourage the agent to maintain visual contact with the target while optimizing proximity. However, overly intricate formulations might obscure the system’s explainability, as the expected behaviors driven by such a reward function may become difficult to interpret. This insight compels us to design a reward function that is not only semantically meaningful, thus ensuring its contributions to system explainability, but also effective in fostering the development of a competent agent. The challenge lies in balancing these considerations, thus ensuring that the reward function guides the agent towards desirable behaviors while remaining intuitively understandable, which in turn enhanced the explainability of the overall system.
In our research, we devised a comprehensive reward function composed of three principal parameters that accurately depict the situational dynamics between the involved aircraft, thus incorporating the A T A and A A angles, alongside the LOS vector, as illustrated in Figure 4.
The A T A angle measures the orientation of our aircraft in relation to the LOS vector that points towards the opponent. Essentially, it assesses the offensive positioning of the agent aircraft, where an A T A angle close to zero indicates an optimal alignment for engagement, with our aircraft directly facing the adversary.
r A T A = e | A T A |
The A A angle measures the orientation of the target aircraft in relation to the LOS vector. This metric is crucial to determine the relative orientation of the target aircraft with respect to the agent aircraft, where a minimal A A angle suggests a prime offensive position behind the enemy. A high value of A A , close to 180 degrees, suggests a disadvantageous position, where the enemy points towards us, thereby prompting a defensive position.
r A A = e | A A |
The LOS parameter quantifies the distance between the two aircraft, thus serving as a critical indicator for weapon engagement viability. It ensures that the target aircraft is within a suitable range for initiating an attack but not so close as to cause damage to the agent’s aircraft.
r L O S = e L O S d 1 d 1 L O S < d 1 , 1 d 1 < = L O S < d 2 , e L O S d 2 d 2 otherwise .
The total scalar reward is calculated as sum of linear combination of individual reward types:
r t o t = w 1 r A T A + w 2 r A A + w 3 r L O S
where w i is the weight of each reward types, and the sum of these weight w i is equal to 1. An example reward function with weights w 1 = 0.4 , w 2 = 0.4 , and  w 3 = 0.2 is given in Figure 5.

2.3. Deep Q Network

We use the Deep Q Network (DQN) to train our RL agent [43]. The DQN is a reinforcement learning algorithm that combines deep neural networks with Q learning [44], which is a popular method to learn optimal policies in Markov decision processes. The key idea behind the DQN is to use a deep neural network to approximate the Q function, which is computed using the Bellman equation. The Bellman equation expresses the optimal Q value of a state–action pair as the sum of the immediate reward and the discounted Q value of the next state–action pair.
Q ( s , a ) = E [ r + γ max a Q ( s , a ) ]
where E is the expected return, s is the current state, a is the chosen action, r is the immediate reward, γ [ 0 , 1 ] is the discount factor, s is the next state, and  a is the action chosen in the next state. The DQN algorithm uses experience replay and a target network to stabilize the learning process and improve the convergence of the Q value function. The Q value function is learned by minimizing the mean square error between the predicted Q value and the target Q value. The loss function for the DQN is defined as
L ( θ ) = E ( s , a , r , s ) D ( Q ( s , a ) y ) 2
where y = ( r + γ max a Q ( s , a ; θ ) ) is the updated target value, and D is the replay buffer. θ and θ are the neural network parameters of the current Q function and the target Q function, respectively. The parameters of the neural networks are updated using the stochastic gradient descent ADAM optimizer [45] with the following equation
θ θ α θ L ( θ )
where α is the learning rate, and θ L ( θ ) is the gradient of the loss function with respect to  θ .
After training is completed, the agent’s policy is constructed such that the action is chosen to maximize the expected return as follows:
π ( s ) = arg max a Q ( s , a )
The full description of the DQN algorithm is given in Algorithm 1. The state space in Equation (13), the action space in Table 1, and the reward function in Equation (18) are used to train the air combat agent with the DQN. The numerical value of reward weights and aircraft model are given in the training details section.

2.4. Reward Decomposition

In conventional reinforcement learning approaches, the reward signal is typically represented as a singular scalar value, as illustrated in Equation (18). This representation inherently lacks the granularity to distinguish between the contribution of different reward types, thereby omitting explicit explainability that could be generated from each reward type. Reward decomposition addresses this limitation by employing a distinct Deep Q Network (DQN) for each reward type. This methodology enables a precise assessment of the contribution of each reward type to the agent’s decision-making process. With reward decomposition, we can show the relative importance of one reward type over another by comparing the Q values of various reward types in each state. The action is selected by first summing the Q values from each DQN associated with different reward types and then selecting the action corresponding to the highest cumulative Q value. This approach effectively prevents the issue of the tragedy of the commons highlighted in [46].
Algorithm 1 Deep Q Network (DQN) Algorithm
1:
Initialize replay memory D to capacity N
2:
Initialize action–value function Q with random weights θ
3:
Initialize target action–value function Q with weights θ = θ
4:
Initialize state s 0 randomly
5:
for t = 1 , T do
6:
    if random(0,1) < ϵ  then
7:
         i = 1 i n | i Z
8:
         a t = A [ r a n d o m ( i ) ]
9:
    else
10:
         a t = arg max a Q ( s t , a , θ )
11:
    end if
12:
    Advance environment one step s t + 1 , r t = e n v ( a t )
13:
    Store transition ( s t , a t , r t , s t + 1 ) in D
14:
    Sample random minibatch of transitions ( s j , a j , r j , s j + 1 ) from D
15:
    if  s j + 1 is terminal then
16:
        Set y j = r j
17:
    else
18:
        Set y j = r j + γ max a Q ( s j + 1 , a ; θ )
19:
    end if
20:
    Perform a gradient descent step on ( y j Q ( s j , a j ; θ ) ) 2 with respect to θ
21:
    Periodically update weights of target networks: θ = τ θ + ( 1 τ ) θ
22:
end for
The Bellman equation that describes the optimal decomposed Q value is written as the sum of the immediate reward and the discounted Q value of the next state–action pair.
c Q c ( s , a ) = E c r c + γ max a c Q c ( s , a )
where symbol E , s , a , s , a follows the same notation as in the DQN, c is the reward component index, and Q c denotes the Q value for component c that only accounts for the reward type r c .
We employed a double DQN training approach to avoid overoptimistic value estimation in the vanilla DQN algorithm [47]. The loss function for the decomposed DQN is defined as
L c ( θ c ) = E ( s , a , r , s ) D ( Q c ( s , a ) y c ) 2
where the updated target value y c is defined as
y c = r c + γ Q c ( s , a ; θ c .
Unlike the vanilla DQN, the next action a in the next state used by the target Q value function is defined as
a = arg max a c Q c ( s , a , θ c ) .
That is, instead of using the best action from the target Q value function, we use the action chosen by the original Q value function in the next state s . The NN weights are updated with the following equation using the ADAM optimizer [45] as
θ c θ c α θ L c ( θ c )
After training is completed, the Q value for a given state–action pair is calculated as
Q ( s , a ) = c Q c ( s , a ) .
For each component-level Q value, the action–value pair is calculated as
Q c ( s ) = [ Q c ( s , a 1 ) , Q c ( s , a 2 ) , , Q c ( s , a k ) ] T
where k represents the total number of available actions. The policy function used to select an action is defined as
π ( s ) = arg max a Q ( s , a ) = arg max a c Q c ( s , a )
where the total Q value following the policy π ( s ) is written as
Q π ( s ) = c Q c ( s , π ( s ) )
and finally, the component-level Q value following the policy π ( s ) is written as
Q c π ( s ) = Q c ( s , π ( s ) ) .
A vector of these component-level Q value functions following the policy π ( s ) is defined as
Q π ( s ) = [ Q 1 π ( s ) , Q 2 π ( s ) , , Q n π ( s ) ]
n denotes the total number of components considered for the decomposition. The vector elements in Equation (33) represent the expected outcomes for each reward type r c when the agent follows the policy π ( s ) from state s. By analyzing the Q values associated with their corresponding reward types, we can deduce the agent’s expectations in terms of the semantically meaningful reward types we have defined, thus providing insight into the reasoning behind its decision-making process.
The full description of the double DQN algorithm with reward decomposition is given in Algorithm 2. The double DQN algorithm with reward decomposition was trained using the same state space, action space, and reward functions as those described in the previous section on DQN.

2.5. Training Details

In this section, we provide the actual training details in a comprehensive fashion to help with reproducibility. The fine-tuned hyperparameters and the episode initialization strategy are given in full detail. An agent needs to explore a wide range of situations to increase its competence. We started each episode with a random relative orientation, speed, and distance between two aircraft. This ensured that our agent had explored the entire state space through its training. The aircraft parameters used in our air combat environment are given in Table 2.
Table 2. Aircraft model parameters.
Table 2. Aircraft model parameters.
SymbolDefinitionValueUnit
K V Velocity gain2-
K χ Heading angle gain0.6-
Δ V c Commanded delta speed[−10, 10]m/s
Δ χ c Commanded delta heading angle[−20, 20]degree
VVelocity state[100, 250]m/s
χ Heading angle state[−180, 180]degree
Algorithm 2 Double Deep Q-Network (DQN) Algorithm with Reward Decomposition
1:
Get number of reward component c C
2:
Initialize replay memory D to capacity N
3:
for Each reward component c do
4:
    Initialize action–value function Q c with random weights θ c
5:
    Initialize target action–value function Q c with weights θ c = θ c
6:
end for
7:
Initialize state s 0 randomly
8:
for t = 1 , T do
9:
    if random(0,1) < ϵ  then
10:
         i = { 1 i n | i Z }
11:
         a t = A [ r a n d o m ( i ) ]
12:
    else
13:
         a t = arg max a c Q c ( s t , a , θ c )
14:
    end if
15:
    Advance environment one step s t + 1 , r t = e n v ( a t )
16:
    Store transition ( s t , a t , r c , s t + 1 ) in D
17:
    Sample random minibatch of transitions ( s j , a j , r c , j , s j + 1 ) from D
18:
    for Each reward component c do
19:
        if  s j + 1 is terminal then
20:
           Set y j = r c , j
21:
        else
22:
           Set y j = r c , j + γ Q c ( s j + 1 , arg max a c Q c ( s , a , θ c ) ; θ c )
23:
        end if
24:
        Perform a gradient descent step on ( y j Q c ( s j , a j ; θ c ) ) 2 with respect to θ
25:
    end for
26:
    for Each reward component c do
27:
        Periodically update weights of target networks: θ c = τ θ c + ( 1 τ ) θ c
28:
    end for
29:
end for
In addition to the constraints specified by the model parameters in Table 2, we also initialized the relative distance randomly within the range of −1000 to 1000 m. The episodic return of the training session and the Q value components are shown in Figure 6. The RL agents were trained using DQN implementation of [48] with the necessary modification for the decomposition of rewards.
The state space vector s is normalized to a range of [ 1 , 1 ] with the following vector to maintain stability:
s s c a l = 4000 , 4000 , 4000 , π , π , π .
We performed element wise division with Equation (13) before obtaining the final state space vector used as an input:
s n o r m = s / s s c a l .
A balanced weight profile was chosen for experiments where the ATA and AA rewards have the same weight and the LOS has a lower weight. The distance values d 1 , d 2 were taken from the DARPA AlphaDog challenge [1,49]. Individual values of these weights are given in Table 3 and shown in Figure 5. The total reward is calculated by taking the weighted average of the individual rewards as follows:
r t o t = 0.4 r A T A + 0.4 r A A + 0.2 r L O S
We ran hyperparameter optimization to reduce fluctuation in the episodic return signal and component-level Q value Q c π signal, as shown in Figure 6. The hyperparameters used in this study during training are shared in Table 4 to help the reader reproduce the results.
In this section, we have covered background information, including details of the air combat environment, agent training with the DQN in this environment, the extension of the DQN approach with reward decomposition, and training details for reproducibility. In the next section, we will use this background information as a foundation for explainability. We will start with local explanation, expand it into global explanation with tactical regions and visualization of global explanation, and then apply these concepts to the air combat environment.

3. Explainability

In the rapidly evolving field of artificial intelligence, the quest for systems that not only perform optimally but are also explainable and transparent has taken center stage. This is particularly true in complex domains, such as air combat, where the decision-making process of AI agents must be both effective and understandable. The concept of explainability in AI seeks to bridge this gap, thus providing insights into the ‘how’ and ‘why’ of an agent’s actions. The explanation can be roughly divided into local and global explanations depending on the scope. Local explanation tries to answer the question of “Why is this action preferable in this state?” Or, it could be in the form of “How much does each reward type contribute to the selected action?” However, a local explanation is harder to follow when looking at dynamic videos [32], which is the essence of air combat, where states change rapidly. In contrast to the local explanation, the global explanation provides insight into the agent’s decision making in a wider range of situations. It tries to present an explanation for the question “Which reward types are dominant in different regions of the state space?” and “What is the relative contribution of each reward type in this region?” In addition to the local and global textual explanation, an explanation can also be provided in visual form, such as through salience maps [10], where the visual explanation shows which pixels are more important for classified objects. Answering these questions or visualizing the agent’s expectation sheds light on its decision-making process. In this section, we frequently use the phrase “reward type” followed by the name of the associated reward name. It is important to note that the explanations provided are derived from the component-level Q values given in Equation (33), which are by design associated with semantically meaningful reward types. This association allows us to directly refer to them as an X reward type in our explanations, as the purpose of reward decomposition is to generate insights using this relationship. For example, when we say that the X reward type is higher, it indicates that the Q value Q c associated with the reward type X is higher. We consistently apply and repeat this terminology throughout this section to help clarify the explanations.
The objective of providing explanations goes beyond enhancing the comprehensibility of the agent for the user, thereby increasing trust in the agent. It also serves a critical role in identifying potential deficiencies within the agent’s decision-making processes and acts as a cautionary mechanism to notify users whenever the agent’s rationale diverges from user expectations or accepted norms. This contradicts the notion proposed in [50], in which the author argued that value-based explanations are intrinsically problematic. However, offering explanations that facilitate the identification of an agent’s misbehavior remains crucial, thus underscoring that the primary objective of explanations is not just to detail the inner workings of an optimally performing agent. Instead, it serves to enhance understanding and oversight, particularly in instances where the agent’s expectation deviates from expected or desired outcomes.
To increase the user’s trust in the air combat agent, we developed local, global, and visual explanation methods. We provide examples on how to interpret the explanation result, thus showcasing the effectiveness of our approach in understanding the agent’s decision-making process.
First, we introduce local explanations facilitated by reward decomposition, which offer a microscopic view of decision-making processes. The local explanation answers the question “Why is this action preferable in this state?” by showing a contribution of carefully selected semantically meaningful reward types to provide a qualitative explanation. The question of “How much does each reward type contribute to the selected action?” is answered by showing the relative contribution of each reward type to provide a quantitative explanation. This information can be used to understand the agent’s preference or to detect misalignment between the agent and user expectations.
Second, we give the mathematical foundation of our tactical region-based global explanation approach by extending the local explanation with the reward decomposition, thus providing a broader perspective on the dominance of different reward types. Our method seeks to address the pivotal question of “Which reward type is dominant in different regions of the state space?” by identifying the most dominant reward type through an analysis of the average contribution of each reward type within predefined tactical regions. We generate an answer to the question “What is the relative contribution of each reward type in this region?” by comparing the relative contribution of each reward type in each tactical region.
Third, we introduce a global explanation with a tactical region approach to the air combat environment. We described the tactical regions used in air combat to analyze the dominant reward types within each region. Furthermore, we expanded the tactical regions outlined in the air combat literature to encompass all four quadrants, thus demonstrating how explanations can uncover discrepancies in the agent’s expectations across symmetrically identical regions.
Fourth, we introduce a visual explanation approach, in which we employed color coding to represent the ATA–AA–LOS reward types associated with the agent’s expectations, which is represented by Q c , thereby creating color-coded reward type plots. These visuals offer intuitive insight into the global explanation with tactical regions approach. By color coding the agent’s expectations in Equation (33), we developed a global explanation approach that visualizes these expectations, thereby uncovering changes in the agent’s expectation within the varied scenarios of aerial combat.

3.1. Local Explanation

We introduced the explainability to air combat agents using double DQN with reward decomposition in our previous work [42]. Three Q value functions Q c associated with the ATA, AA, and LOS reward types were obtained after training. These Q value functions are an intrinsic part of the agent’s policy in Equation (30). The block diagram of the agent’s policy is also given in Figure 7.
The explainability was obtained using the Q values given in Equation (33). The Q values associated with the semantically meaningful reward types ATA, AA, and LOS given in Equation (18) provide direct geometrical and tactical relations, thereby making them easy to understand. Recall that the Q value means the return that the agent expects to achieve following its policy. The block diagram of local explainability using decomposed Q values is shown in Figure 8.
We answer the questions of “Why is this action preferable in this state?” by looking at the maximum contribution of the Q value to the selected action using arg max c Q c π . The answer to “How much doeseach reward type contribute to the selected action?” is obtained directly from the decomposed component-level Q value vector given in Equation (33).
In Figure 9, we show a snapshot of our explainability interface showing the agent’s expectation Q c for each action and the type of reward Q c associated with it. Using this information, we can answer the question of why the agent chose to slow down and turn right action while the enemy is within firing range and in front of it. The answer to this question would be that the agent chose this action because it had a higher expectation in the ATA and AA reward types than the LOS reward type, thus meaning that it expected that this action would make it point more towards the target aircraft while also making it stay behind. We could further obtain the contribution of each reward type to the agent’s expectation for the selected action to obtain how much each reward type contributed.
We note that the agent’s expectations for each reward type, even for nonoptimal actions, closely mirrored those of the optimal ones. This suggests that the agent has very similar expectations for all possible actions. We found this outcome to be unexpected, as we anticipated the action to speed up and turn right would have a relatively lower expectation, given that such a maneuver would position the blue aircraft into a more defensive position, thereby effectively placing it in front of the red aircraft.
Even though a local explanation with reward decomposition provides insight into the agent’s decision-making process by showing the agent’s decomposed expectation for each reward type, in a dynamically changing nature of air combat, these values are hard to track and understand. We observed sudden changes in the agent’s expectation in each reward type between temporally close states throughout multiple simulations. To provide a more general overview of the agent’s expectation, we extended the local explanation with reward decomposition to a global explanation with tactical regions.

3.2. Global Explanation with Tactical Regions

The explanation provided by the local reward decomposition does not provide insight into the agent’s preference in neighboring regions. The agent’s expectation for each reward type can change significantly between temporally and spatially similar states. To provide a more general explanation about the agent’s decision-making process, we extended the local explanation with reward decomposition and proposed a global explanation within tactical regions approach. Compared to the question of “Why is this action preferable in this state?” asked in local explanation, we asked “Which reward type is dominant in different regions of the state space?” On a more quantitative basis, instead of the question of “How much does each reward type contribute to the selected action?”, we asked “What is the relative contribution of each reward type in this region?” By identifying the dominant reward type and assessing the relative contributions of each reward type within predefined tactical regions, we highlighted variations in the agent’s expectations and the prevailing rewards influencing its actions. The resultant explanation allows users to better examine the agent’s behavior or provide insight into tactical preference a pilot should have in different tactical regions.
We formalized our explanation approach by first defining tactical regions and the decomposed Q value associated with each reward type:
  • Let T = { T 1 , T 2 , , T m } represent the set of tactical regions within the environment, where j = 1 , , m indexes each tactical region T j .
  • Q π in Equation (33) represents the vector of decomposed Q value functions.
  • c is the selected reward component.
We first calculate the relative contribution of each Q c π ( s ) within a tactical region T j when the agent follows its policy π ( s ) as follows:
RC ( T j , Q π , c ) = s T j Q c π ( s ) s T j 1 T Q π ( s ) .
The relative contribution function calculates the proportion of the agent’s expectation for a specific reward type, as shown in Equation (32), in relation to the total expectations for all the reward types given in Equation (31) when following the policy π . This measure explains the degree to which each reward type influences the selection of the optimal action according to the policy π , thus revealing the expected return of each reward type within a given tactical region. Dividing the state space into meaningful and manageable tactical regions allows us to understand the agent’s decision-making process in terms of its expectations.
We then define a decision function F that assigns the most dominant reward type to each tactical region, thus identifying the reward type with the highest expectation in each region. Given a vector of decomposed Q value functions following the policy π ( s ) defined in Equation (33), the decision function F maps each tactical region to the component corresponding to the dominant reward types and is defined as
F ( T j , Q π ) = arg max c RC ( T j , Q π , c ) .
The decision function aims to elucidate which reward type predominantly influences the actions chosen within a specific tactical region. By considering the absolute value of the relative contribution, our approach accommodates both negative and episodic rewards, thereby broadening its applicability beyond merely continuous-shaped rewards. This adjustment ensures versatility in various reward scenarios, thus enhancing our understanding of action selection across different tactical regions.
This framework quantitatively assesses the influence of different reward types on the agent’s decision-making process within various tactical regions, thereby offering insights into the agent’s expectation. The decision function clarifies “which reward type is dominant in different regions of the state space” by identifying the component c associated with the dominant reward type r c in the tactical region T j . The decision function reveals that the selection of an action is influenced by the expectation to maximize or minimize Q c depending on whether the associated reward is positive or negative. This distinction is crucial: a positively defined Q c suggests that the agent aims for actions that maximize the returns of that reward, while a negatively defined Q c indicates actions chosen to avoid adverse outcomes. This approach not only answers the question of dominant reward types in various regions but also offers insights into the agent’s expectation associated with each reward type. By linking user-defined semantically meaningful reward types with user-defined tactical regions, we improve the explainability of the agent decision-making process, thus facilitating a deeper understanding of its preference. This approach not only clarifies the underlying rationale of agent behavior but also supports the objectives of explainable artificial intelligence by making complex agent preferences understandable and relatable to users when compared to the detailed but narrower focus of local explanation provided by local reward decomposition. This global perspective enriches our understanding of AI decision-making processes, thereby focusing on context and preference in a way that is immediately accessible to users.

3.3. Global Explanation for Air Combat Tactical Regions

The air combat environment, with its inherent complexity and strategic importance, is well suited for applying the global explanation with the tactical region approach. The distinct tactical regions in air combat allow for a clear analysis of agent behavior through decomposed rewards, thus offering insights into decision making in varied tactical situations.
To apply the global explanation with tactical region approach to the air combat environment, we first defined our tactical regions, namely offensive, defensive, neutral, and head-on, as defined within the air combat literature [17,51]. In contrast to the existing literature, we extended the tactical regions to four different quadrants as shown in Figure 10. This extension was introduced to analyze the agent’s expectation in symmetric air combat regions after getting inconsistent results, as shown in Figure 3.
After defining tactical regions, we delineated the boundaries of each tactical region by specifying the criteria that determine the inclusion of states within these designated regions. The offensive region was characterized as where the ATA angle is less than or equal to 90 degrees, thus excluding scenarios that fall within the head-on region criteria. This region signifies the agent’s aggressive positioning, thereby aiming to engage the adversary from advantageous angles. The head-on region was defined by a narrow ATA angle of less than or equal to 45 degrees combined with AA greater than or equal to 135 degrees, thus indicating a direct frontal engagement approach. In contrast, the defensive region was defined as when both ATA and AA angles are greater than 90 degrees, thus suggesting the agent is in a position more susceptible to adversary actions and potentially focusing on evasive maneuvers. Lastly, the neutral region was defined as ATA angles greater than 90 degrees and AA angles less than 90 degrees, thereby representing scenarios where neither party has a distinct offensive advantage. The graph of the regions is shown in Figure 10.
Using these classifications, we defined the set of tactical regions and the set of decomposed Q values associated with specific reward types for air combat, as outlined in Equation (18): Q 1 r A T A , Q 2 r A A , and Q 3 r L O S . Let T = { T o f f e n s i v e , T d e f e n s i v e , T n e u t r a l , T h e a d - o n } be the set of tactical regions, and let Q π = { Q 1 π , Q 2 π , Q 3 π } be a vector of component-level Q value functions in the air combat environment. Based on the tactical region definition given above and the state vector in Equation (13), we further defined the set of states corresponding to each tactical region as follows:
T head-on = s S ATA ( s ) 45 AA ( s ) 135
T offensive = s S ATA ( s ) 90 s T head-on
T defensive = s S ATA ( s ) > 90 AA ( s ) > 90
T neutral = s S ATA ( s ) > 90 AA ( s ) 90
where T head-on , T offensive , T defensive , and T neutral directly represent the sets of states corresponding to each tactical region. Functions ATA ( s ) , AA ( s ) , and LOS ( s ) are selector functions that return the respective values for a given state s, as defined in Equation (13).
Following Equations (37) and (38), we calculated the dominant reward types and their relative contribution for all the tactical regions and quadrants shown in Figure 10. The resulting explanation in terms of the dominant reward type and relative contribution of each reward type when the LOS was at 2000 m is given in Table 5. To reiterate, this agent was trained using the weight of 0.4 for the ATA and AA the reward and weight of 0.2 for the LOS reward.
In applying the global explanation with the tactical region approach to the air combat environment, we uncovered nuanced insights into the agent’s decision-making processes. The following examples illustrate the practical implications of this analysis, from identifying the dominant reward types within specific regions to exploring variations in agent expectations across symmetrical tactical regions and leveraging this knowledge to debug and realign the agent’s strategies. Each example serves to demonstrate the depth of understanding we can achieve regarding the agent’s decision-making process.
The 1st quadrant results are analyzed for this example explanation. In the head-on, offensive, and defensive regions, the ATA was identified as the dominant reward type. Since the ATA measures how directly our aircraft faces the target, the result suggests that in these tactical areas, the agent’s selected actions are based on the expectation of maximizing the ATA reward. This interpretation implies that the agent expects that its actions will result in better alignment with the target aircraft. Furthermore, in the neutral region, the dominant reward type changed to the AA, thus indicating that the agent expects the selected actions to position it more advantageously behind the target aircraft. Delving deeper into the analysis to examine the relative contribution of each reward within specific tactical regions reveals nuanced reasoning. In the head-on and defensive regions, the AA and LOS rewards contributed approximately 30 % each. However, when transitioning from the head-on region to the defensive region, the contribution from the ATA reward increased by an additional 7 % . This change suggests that, while the agent has similar expectations for all reward types in the head-on region, thus recognizing the tactical disadvantage of its positioning, it considers actions that enhance the ATA reward to be more critical in the defensive region to improve its offensive stance and potential to land hits. This insight into the dominant reward type and the relative contribution of each reward type underscore how the agent’s expectation can be used to explain its decision-making process with this framework, and the reward weight used during training did not translate fully to the trained agent.
The 1st and 3rd quadrants represent symmetric geometries in air combat scenarios, with the agent’s aircraft oriented left and right of the line of sight in the 1st and 3rd quadrants, respectively, with the target aircraft oriented oppositely. Analyzing the tactical regions within these quadrants uncovers distinct variations in agent expectations. Specifically, in the neutral region of both the 1st and 3rd quadrants, the AA reward was predominant; however, the relative contribution between these regions was different for each reward type. This change in relative contribution between symmetrical regions indicates that the agent’s expectations can differ even in geometrically identical scenarios. Such discrepancies point to potential inconsistencies in the agent’s policy and an imbalance in training, thereby possibly stemming from the random initialization process. The use of dominant rewards and their relative contributions as an explanatory tool enables the identification of these inconsistencies through direct analysis of the agent’s policy, thus bypassing the need for extensive simulation. This method provides a clear window into the agent’s decision-making process, thereby highlighting areas for potential improvement or adjustment.
The evaluation of dominant rewards across tactical regions provides a vital mechanism for debugging the agent and identifying any discrepancies between the agent’s expectation and the expectations of a human operator. Consider the defensive region within the 1st quadrant, where the ATA reward dominated; in contrast to this, a human operator might anticipate a higher preference for the AA reward, thereby suggesting a cautious strategy aimed at positioning behind the target rather than directly engaging it. Similarly, the prevalence of the AA reward in the neutral region of the 1st quadrant stands out. In such a scenario, where neither party holds a clear positional advantage, a dominant expectation towards the AA reward might indicate a more defensive posture, thus hinting that the agent is adopting a less aggressive approach in this tactically ambiguous region. These examples highlight how an analysis focused on dominant rewards can pinpoint areas where the agent’s expectation deviates from user expectation, thereby offering clues for further investigation and refinement. This approach of examining reward dominance and distribution across tactical regions, coupled with comparisons with human pilot expectations, establishes a robust framework for debugging and ensuring alignment. By highlighting areas where the agent’s expectation diverges from the one expected by the human operator, it allows for the critical assessment and adjustment of the agent’s tactic, thus ensuring that its actions are in concordance with established tactical principles and human expertise.

3.4. Global Visual Explanation

The visual explanation approach provides a more granular and qualitative perspective on the agent’s decision-making process, thus offering insights that extend beyond the averaged reward dominance per area, as shown in the global explanation with tactical region approach. This method uncovers subtle variations and patterns in the agent’s expectations that may not be immediately evident from the aggregated data by visually representing the color-coded agent’s expectation value across the state space. This approach uses color-coded heat maps based on normalized Q values. By mapping the relative importance of different Q value components to a spectrum of colors, this method provides immediate visual insight into the agent’s decision-making process across various tactical regions. Such a visual representation not only enhances our understanding of the agent’s decision-making process but also facilitates the identification of areas for improvement, thereby enabling a more informed and targeted approach to refining agent performance and alignment with desired outcomes. Due to the inherent limitations of color coding, this approach is currently restricted to visualizing a maximum of three reward types.
The equation provided outlines the process to generate color-coded visual explanations that reflect the agent’s expectations based on its policy π ( s ) across different states s. Specifically, the magnitude of component-level Q values ( Q 1 π ( s ) , Q 2 π ( s ) , and Q 3 π ( s ) ) for a given state is normalized against the maximum absolute value between these components. This normalization process ensures that each contribution of the Q value component is proportionally represented, with the maximum contributing component scaled to unity. The resulting normalized values are then mapped onto the RGB color space, where each component corresponds to one of the primary colors (red, green, or blue).
Color ( s , Q π ) = | Q 1 π ( s ) | , | Q 2 π ( s ) | , | Q 3 π ( s ) | max c | Q c π ( s ) | · 1 0 0 0 1 0 0 0 1 , c { 1 , 2 , 3 }
This mapping transforms numerical data into a visual format, thus allowing us to intuitively understand the relative influence of each Q value component on the agent’s decision-making process at any given state. Through this approach, the visualization directly communicates the agent’s prioritized expectation, thereby offering insights into its decision-making process and highlighting areas of potential refinement. Taking the absolute value of both the numerator and the denominator makes this visualization technique immune to the sign of the reward, thus making it equally applicable and informative for both positive and negative reward scenarios. This ensures that the method provides valuable information regardless of the reward structure used for training. Similar to the application of global explanation with tactical region approach to air combat, the relation between Q values, reward types, and color coding is as follows:
Q 1 r A T A RED Q 2 r A A GREEN Q 3 r L O S BLUE .
The comparison between the visual explanations shown in Figure 11 and the quantitative data presented in Table 5 demonstrates a clear correlation. For example, in the upper right 1st quadrant, the ATA (represented in red) emerged as the predominant reward type in both the offensive and the head-on regions, thereby aligning with the findings in Table 5. In the defensive region, we can observe a balanced contribution across all reward types, with a preference towards the ATA (red). Conversely, the AA reward type (depicted in green) was more pronounced in the neutral region, thus underscoring its dominance as identified in the table. While this analysis specifically focuses on the first quadrant, a similar consistency in reward type dominance and distribution was evident across the entire color map, thereby reinforcing the alignment between the visual and tabulated explanations of the agent’s decision-making process.
The utility of this visual explanation becomes particularly apparent when identifying areas within the state space where the agent’s expectations deviate from anticipated symmetrical outcomes. For illustrative purposes, the state space was sampled at fixed Line of Sight (LOS) distances of 500, 1000, 1500, and 2000 m with variations in the ATA and AA values, as demonstrated in Figure 12. The figure reveals that as the distance between the aircraft decreased, the discrepancies in agent expectations across symmetric quadrants began to diminish. This observation suggests a convergence in the agent’s expectation as combat scenarios become more proximate, thus highlighting the impact of spatial dynamics on the agent’s decision-making process.
We used the color coding from Equation (43) to present the change in agent expectation along the trajectory defined by the ATA, AA, and LOS states. It is important to note that the ATA, AA, and LOS states, as defined in Equations (9)–(11), differed from the ATA, AA, and LOS reward types specified in Equation (18). Although the reward functions were derived from these states, the states themselves represent the spatial domain the agent navigates, and the reward types are the signals used by the agent to train its policy. We compared the simulation results of the symmetric initial states, both of which resided in the neutral region. In the first simulation, the headings of both aircraft were oriented so that the initial ATA state was −135 degrees and the AA state was 45 degrees, which corresponds to the neutral region in the 2nd quadrant. The second simulation started with an ATA state of 135 degrees and an AA state of −45 degrees, which corresponds to the neutral region in the 4th quadrant. In both simulations, the aircraft were positioned 1000 m away from each other, and the initial velocity was set to 150 m/s. The red target aircraft was set to move along a straight line for demonstration purposes.
In the initial simulation shown in Figure 13, the trajectory analysis from a bird’s-eye view highlights the agent’s maneuvers towards the target aircraft. Between 0 and 10 s, the agent executed a sharp left turn and then accelerated to close the distance for engagement while slowly adjusting its heading. The change in the contribution of each Q value to the selected actions over this period began with similar relative contributions from all Q values, as shown in the bottom plot. The ATA reward type became dominant during the sharp turn and settled after 8 s once the agent completed its maneuver and aligned with the target aircraft. This indicates that alignment with the target aircraft was the main contributor to the selected actions. The upper right plot reveals that the agent increased its speed and approach towards the target aircraft, as evidenced by the decreasing LOS state values from 2000 m to 1000 m in the upper right plot. The LOS reward type contribution gradually increased during this time, thus indicating a correct change in the agent’s expectation as it narrowed the distance with the target.This observation shows the tactic adopted by the agent, which balanced between alignment (ATA) for offensive positioning and distance closure (LOS) to maintain or enter the engagement range.
However, in the second simulation, despite starting from geometrically symmetrical states, the agent did not get close to the target aircraft after a sharp right turn, as shown in Figure 14. The lower plot shows that the agent had expectations similar to the first simulation in the first 10 s. After 10 s, the expectation of the LOS reward decreased. Although the agent had a correct expectation aligning with the change in LOS state, it did not choose the speed-up action.
The snapshot of the local reward decomposition taken after 20 s shown in Figure 15 reveals that the aggregated expectation had the highest value in the slowdown action, which was dominated mainly by the AA reward, similar to the lower plot in Figure 14. However, the Q value associated with the LOS reward type had the highest value for the speed-up turn left action. The two contradictory slow-down and speed-up actions when the two aircraft were far away indicate a problem with the agent policy. Investigating agent’s decision making and obtaining this kind of explanation would not be possible without the reward decomposition method.
Similarly to the previous example, a trajectory-based explanation is provided to show the agent’s decision-making process over time during an air combat engagement where the same agent is pitted against itself. In this simulation run, the blue aircraft was positioned at ( 500 , 500 ) , and the red aircraft was positioned ( 500 , 500 ) with the heading of 90 degrees. The initial velocity was set to 150 m/s. To reiterate, the agent was trained against a randomly moving aircraft, with each episode starting from randomly selected initial states, and the Q value of each reward type represents the agent’s expected return starting from given state while following its policy. The result of this simulation is given in Figure 16.
We can observe in the bird’s-eye view (upper left plot) that the agent kept its course constant in the first 5 s and executed a sharp left turn towards the target between 5 and 10 s. The AA reward type increased during the constant course phase followed by the increase in the ATA (red line) reward type, as shown in the lower plot. This suggests that the agent expected such a maneuver to first place it behind the target aircraft and then align itself towards it. A similar observation can also be made with the upper right plot, which shows the color-coded Q value contribution in 3D whose axes are the ATA–AA–LOS state. The color-coded trajectory was initially white, thus indicating that the agent had a similar expectation for all reward types. This was followed by the green color at around 5 s, thus indicating a high expectation for the AA reward type, and the orange color around the 10 s mark, thus indicating a similar expectation for the ATA and AA reward types.
The blue aircraft closed its distance with the target between 10 and 20 s while keeping its heading fixed to the target, thus performing a pure pursuit maneuver. The target aircraft made a right turn between 20 and 30 s, thus making the blue aircraft overshoot in its course, and the fight went into to lag pursuit, which resulted in a lower expectation for the ATA Q value. The blue aircraft made a sharp right turn to align its heading with the red aircraft and speed up while continuing its pure pursuit maneuver. The red aircraft also maximized its speed to escape pure pursuit. Since the two aircraft had identical dynamics, neither could gain an advantage after this point. The simulation was finished at the 55 s mark, because the two aircraft entered a rate fight. It should be noted that, even though the simulation started from an equally offensive position for both aircraft and they were driven by the same agent, the blue aircraft maintained its offensive stance better than the red one. Similarly to the previous example, this shows the importance of testing for symmetrical air combat geometries.
In this section, we presented various explanation approaches, including local explanation, global explanation with tactical regions, visualization of the global explanation, and its application to the air combat environment. In the next sections, we provide a discussion and conclude the paper by summarizing our findings and suggesting future research directions.

4. Discussion

Most studies in the air combat literature focus on developing optimal agents using policy-based reinforcement learning approaches, which typically do not provide mechanisms to generate global intrinsic explanations. This is a significant limitation in operational settings, where understanding the rationale behind AI decisions is crucial to trust and engage in effective human–AI collaboration. In contrast, our work introduces a novel explanation approach that extends intrinsic local explanations to global explanations with tactical regions using the reward decomposition of a value-based Deep Q Network. Our study not only demonstrates the successful application of agents in various air combat scenarios but also allows for the generation of comprehensive and meaningful explanations that can be easily interpreted by users.
The novel approach to explainability developed in this work addresses a critical gap in Explainable Reinforcement Learning (XRL) by providing mechanisms for generating global intrinsic explanations that are suitable for dynamic and continuously changing environments where local explanation methods fall short. By segmenting the state space into semantically meaningful tactical regions, our method improves the relevance and comprehensibility of the explanations that enable a broader evaluation of agent decision-making processes. This segmentation can significantly improve user understanding without the need for exhaustive simulations.
Furthermore, our approach offers substantial practical implications in domains where quick and reliable decision making is paramount. Our method improves operational readiness by providing clarity on AI-driven decisions, thereby improving coordination and strategic planning. Additionally, the principles established here could be adapted to other complex, dynamic environments such as autonomous driving and robotic navigation, where understanding AI behavior in diverse scenarios is critical.
In broader terms, this work significantly advances the field of XRL. Not only does it provide approaches for the deeper integration of AI systems in high-stakes environments, but it also sets a foundation for future research into the development of explainable AI across various domains. The explanation methods developed here could lead to more robust, transparent, and trustworthy AI systems, thus paving the way for their adoption in more critical and public-facing applications.

5. Conclusions

This work contributes to the field of explainable reinforcement learning (XRL) by extending local explanation methods to a global context through the innovative use of tactical regions and by introducing a visual explanation approach for decomposed rewards. We demonstrated the effectiveness of our approaches in providing nuanced insights into the agent’s decision-making processes by applying them to a complex and dynamic air combat environment. Our findings reveal that by analyzing dominant reward types and their distributions across different tactical regions, we can gain a deeper understanding of an agent’s decision-making process and identify areas for potential improvement. The visual explanation technique, with its color-coded representation of reward types, further enhances our ability to intuitively grasp the agent’s expectations, even in scenarios where traditional explanations might fall short. These contributions not only advance the state of XRL research but also have practical implications for the design and evaluation of AI systems in high-stakes domains, thus emphasizing the importance of explainability for trust, transparency, and alignment with human strategic objectives.
Future work includes expanding the global explanation with tactical regions approach to other reinforcement learning architectures. Another research direction would be to conduct extensive empirical user studies to validate the proposed approach. These future works will further the utility of XRL in complex dynamic environments, thereby contributing to the development of highly performing, transparent, and trustworthy autonomous systems.

Author Contributions

Conceptualization, E.S., M.H. and G.I.; methodology, E.S., M.H. and G.I.; software, E.S.; validation, E.S.; formal analysis, E.S.; investigation, E.S., M.H. and G.I.; resources, G.I.; data curation, E.S.; writing—original draft preparation, E.S.; writing—review and editing, E.S., M.H., G.I. and A.T.; visualization, E.S.; supervision, G.I. and A.T.; project administration, G.I.; funding acquisition, G.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AAAspect Angle
AIArtificial Intelligence
ATAAntenna Train Angle
DQNDeep Q Network
LOSLine of Sight
Q valueQuality Value
RLReinforcement Learning
RPASRemotely Piloted Aircraft Systems
XRLExplainable Reinforcement Learning

References

  1. Defense Advanced Research Projects Agency (DARPA). AlphaDogfight Trials Foreshadow Future of Human-Machine Symbiosis. 2020. Available online: https://www.darpa.mil/news-events/2020-08-26 (accessed on 10 March 2023).
  2. Aibin, M.; Aldiab, M.; Bhavsar, R.; Lodhra, J.; Reyes, M.; Rezaeian, F.; Saczuk, E.; Taer, M.; Taer, M. Survey of RPAS autonomous control systems using artificial intelligence. IEEE Access 2021, 9, 167580–167591. [Google Scholar] [CrossRef]
  3. Kaur, D.; Uslu, S.; Rittichier, K.J.; Durresi, A. Trustworthy artificial intelligence: A review. ACM Comput. Surv. (CSUR) 2022, 55, 1–38. [Google Scholar] [CrossRef]
  4. Gunning, D.; Vorm, E.; Wang, Y.; Turek, M. DARPA’s explainable AI (XAI) program: A retrospective. Appl. Lett. 2021, 2, e61. [Google Scholar] [CrossRef]
  5. European Commission; Directorate-General for Communications Networks, Content and Technology. Ethics Guidelines for Trustworthy AI; European Commission: Brussels, Belgium, 2019. [Google Scholar] [CrossRef]
  6. Norman, D.; Gentner, D.; Stevens, A. Mental models. Some Observations on Mental Models. In Human-Computer Interaction: A Multidisciplinary Approach; Morgan Kaufmann Publishers Inc.: San Francisco, CA, USA, 1983; pp. 7–14. [Google Scholar]
  7. Burkart, N.; Huber, M.F. A survey on the explainability of supervised machine learning. J. Artif. Intell. Res. 2021, 70, 245–317. [Google Scholar] [CrossRef]
  8. Ribeiro, M.T.; Singh, S.; Guestrin, C. “Why should i trust you?” Explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 1135–1144. [Google Scholar]
  9. Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. Adv. Neural Inf. Process. Syst. 2017, 31, 4768–4777. [Google Scholar]
  10. Simonyan, K.; Vedaldi, A.; Zisserman, A. Deep inside convolutional networks: Visualising image classification models and saliency maps. arXiv 2013, arXiv:1312.6034. [Google Scholar]
  11. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-cam: Visual explanations from deep networks via gradient-based localization. In Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy, 22–29 October 2017; pp. 618–626. [Google Scholar]
  12. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Graves, A.; Antonoglou, I.; Wierstra, D.; Riedmiller, M. Playing atari with deep reinforcement learning. arXiv 2013, arXiv:1312.5602. [Google Scholar]
  13. Silver, D.; Huang, A.; Maddison, C.J.; Guez, A.; Sifre, L.; Van Den Driessche, G.; Schrittwieser, J.; Antonoglou, I.; Panneershelvam, V.; Lanctot, M.; et al. Mastering the game of Go with deep neural networks and tree search. Nature 2016, 529, 484–489. [Google Scholar] [CrossRef]
  14. Andrychowicz, O.M.; Baker, B.; Chociej, M.; Jozefowicz, R.; McGrew, B.; Pachocki, J.; Petron, A.; Plappert, M.; Powell, G.; Ray, A.; et al. Learning dexterous in-hand manipulation. Int. J. Robot. Res. 2020, 39, 3–20. [Google Scholar] [CrossRef]
  15. Kaufmann, E.; Loquercio, A.; Ranftl, R.; Müller, M.; Koltun, V.; Scaramuzza, D. Deep drone acrobatics. arXiv 2020, arXiv:2006.05768. [Google Scholar]
  16. Kaufmann, E.; Bauersfeld, L.; Loquercio, A.; Müller, M.; Koltun, V.; Scaramuzza, D. Champion-level drone racing using deep reinforcement learning. Nature 2023, 620, 982–987. [Google Scholar] [CrossRef]
  17. Kong, W.; Zhou, D.; Yang, Z.; Zhao, Y.; Zhang, K. UAV autonomous aerial combat maneuver strategy generation with observation error based on state-adversarial deep deterministic policy gradient and inverse reinforcement learning. Electronics 2020, 9, 1121. [Google Scholar] [CrossRef]
  18. Zhang, J.; Yang, Q.; Shi, G.; Lu, Y.; Wu, Y. UAV cooperative air combat maneuver decision based on multi-agent reinforcement learning. J. Syst. Eng. Electron. 2021, 32, 1421–1438. [Google Scholar] [CrossRef]
  19. Pope, A.P.; Ide, J.S.; Mićović, D.; Diaz, H.; Rosenbluth, D.; Ritholtz, L.; Twedt, J.C.; Walker, T.T.; Alcedo, K.; Javorsek, D. Hierarchical reinforcement learning for air-to-air combat. In Proceedings of the 2021 International Conference on Unmanned Aircraft Systems (ICUAS), Athens, Greece, 15–18 June 2021; pp. 275–284. [Google Scholar]
  20. Mottice, D.A. Team Air Combat Using Model-Based Reinforcement Learning. Master of Science Thesis, Air Force Institute of Technology, Wright-Patterson AFB, OH, USA, 2022. [Google Scholar]
  21. Yoo, J.; Seong, H.; Shim, D.H.; Bae, J.H.; Kim, Y.D. Deep Reinforcement Learning-based Intelligent Agent for Autonomous Air Combat. In Proceedings of the 2022 IEEE/AIAA 41st Digital Avionics Systems Conference (DASC), Portsmouth, VA, USA, 18–22 September 2022; pp. 1–9. [Google Scholar]
  22. Heuillet, A.; Couthouis, F.; Díaz-Rodríguez, N. Explainability in deep reinforcement learning. Knowl.-Based Syst. 2021, 214, 106685. [Google Scholar] [CrossRef]
  23. Puiutta, E.; Veith, E.M. Explainable reinforcement learning: A survey. In Proceedings of the International Cross-Domain Conference for Machine Learning and Knowledge Extraction, Dublin, Ireland, 25–28 August 2020; pp. 77–95. [Google Scholar]
  24. Krajna, A.; Brcic, M.; Lipic, T.; Doncevic, J. Explainability in reinforcement learning: Perspective and position. arXiv 2022, arXiv:2203.11547. [Google Scholar]
  25. Coppens, Y.; Efthymiadis, K.; Lenaerts, T.; Nowé, A.; Miller, T.; Weber, R.; Magazzeni, D. Distilling deep reinforcement learning policies in soft decision trees. In Proceedings of the IJCAI 2019 Workshop on Explainable Artificial Intelligence, Macao, China, 10–16 August 2019; pp. 1–6. [Google Scholar]
  26. Verma, A.; Murali, V.; Singh, R.; Kohli, P.; Chaudhuri, S. Programmatically interpretable reinforcement learning. In Proceedings of the International Conference on Machine Learning, PMLR, Stockholm, Sweden, 10–15 July 2018; pp. 5045–5054. [Google Scholar]
  27. Madumal, P.; Miller, T.; Sonenberg, L.; Vetere, F. Explainable reinforcement learning through a causal lens. In Proceedings of the AAAI Conference on Artificial Intelligence, New York, NY, USA, 7–12 February 2020; Volume 34, pp. 2493–2500. [Google Scholar]
  28. Yu, Z.; Ruan, J.; Xing, D. Explainable reinforcement learning via a causal world model. arXiv 2023, arXiv:2305.02749. [Google Scholar]
  29. Yau, H.; Russell, C.; Hadfield, S. What did you think would happen? Explaining agent behaviour through intended outcomes. Adv. Neural Inf. Process. Syst. 2020, 33, 18375–18386. [Google Scholar]
  30. Amir, D.; Amir, O. Highlights: Summarizing agent behavior to people. In Proceedings of the 17th International Conference on Autonomous Agents and Multiagent Systems, Stockholm, Sweden, 10–15 July 2018; pp. 1168–1176. [Google Scholar]
  31. Huber, T.; Weitz, K.; André, E.; Amir, O. Local and global explanations of agent behavior: Integrating strategy summaries with saliency maps. Artif. Intell. 2021, 301, 103571. [Google Scholar] [CrossRef]
  32. Septon, Y.; Huber, T.; André, E.; Amir, O. Integrating policy summaries with reward decomposition for explaining reinforcement learning agents. In Proceedings of the International Conference on Practical Applications of Agents and Multi-Agent Systems, Guimaraes, Portugal, 12–14 July 2023; pp. 320–332. [Google Scholar]
  33. Alabdulkarim, A.; Riedl, M.O. Experiential Explanations for Reinforcement Learning. arXiv 2022, arXiv:2210.04723. [Google Scholar]
  34. Erwig, M.; Fern, A.; Murali, M.; Koul, A. Explaining deep adaptive programs via reward decomposition. In Proceedings of the IJCAI/ECAI Workshop on Explainable Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018. [Google Scholar]
  35. Juozapaitis, Z.; Koul, A.; Fern, A.; Erwig, M.; Doshi-Velez, F. Explainable reinforcement learning via reward decomposition. In Proceedings of the IJCAI/ECAI Workshop on Explainable Artificial Intelligence, Macao, China, 10–16 August 2019. [Google Scholar]
  36. Anderson, A.; Dodge, J.; Sadarangani, A.; Juozapaitis, Z.; Newman, E.; Irvine, J.; Chattopadhyay, S.; Fern, A.; Burnett, M. Explaining reinforcement learning to mere mortals: An empirical study. arXiv 2019, arXiv:1903.09708. [Google Scholar]
  37. Isaacs, R. Games of Pursuit; Rand Corporation: Santa Monica, CA, USA, 1951. [Google Scholar]
  38. Burgin, G.H. Improvements to the Adaptive Maneuvering Logic Program; Technical Report; NASA: Moffett Field, CA, USA, 1986.
  39. Ure, N.K.; Inalhan, G. Autonomous control of unmanned combat air vehicles: Design of a multimodal control and flight planning framework for agile maneuvering. IEEE Control Syst. Mag. 2012, 32, 74–95. [Google Scholar]
  40. Hasanzade, M.; Saldiran, E.; Guner, G.; Inalhan, G. Analyzing RL Agent Competency in Air Combat: A Tool for Comprehensive Performance Evaluation. In Proceedings of the 2023 IEEE/AIAA 42nd Digital Avionics Systems Conference (DASC), Barcelona, Spain, 1–5 October 2023; pp. 1–6. [Google Scholar]
  41. McGrew, J.S.; How, J.P.; Williams, B.; Roy, N. Air-combat strategy using approximate dynamic programming. J. Guid. Control. Dyn. 2010, 33, 1641–1654. [Google Scholar] [CrossRef]
  42. Saldiran, E.; Hasanzade, M.; Inalhan, G.; Tsourdos, A. Explainability of AI-Driven Air Combat Agent. In Proceedings of the 2023 IEEE Conference on Artificial Intelligence (CAI), Santa Clara, CA, USA, 5–6 June 2023; pp. 85–86. [Google Scholar]
  43. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [PubMed]
  44. Watkins, C.J.; Dayan, P. Q-learning. Mach. Learn. 1992, 8, 279–292. [Google Scholar] [CrossRef]
  45. Kingma, D.P.; Ba, J. Adam: A method for stochastic optimization. arXiv 2014, arXiv:1412.6980. [Google Scholar]
  46. Russell, S.J.; Zimdars, A. Q-decomposition for reinforcement learning agents. In Proceedings of the 20th International Conference on Machine Learning (ICML-03), Washington, DC, USA, 21–24 August 2003; pp. 656–663. [Google Scholar]
  47. Van Hasselt, H.; Guez, A.; Silver, D. Deep reinforcement learning with double q-learning. In Proceedings of the AAAI Conference on Artificial Intelligence, Phoenix, AZ, USA, 12–17 February 2016; Volume 30. [Google Scholar]
  48. Huang, S.; Dossa, R.F.J.; Ye, C.; Braga, J.; Chakraborty, D.; Mehta, K.; Araújo, J.G. CleanRL: High-quality Single-file Implementations of Deep Reinforcement Learning Algorithms. J. Mach. Learn. Res. 2022, 23, 1–18. [Google Scholar]
  49. Pope, A.P.; Ide, J.S.; Mićović, D.; Diaz, H.; Twedt, J.C.; Alcedo, K.; Walker, T.T.; Rosenbluth, D.; Ritholtz, L.; Javorsek, D. Hierarchical Reinforcement Learning for Air Combat at DARPA’s AlphaDogfight Trials. IEEE Trans. Artif. Intell. 2022, 4, 1371–1385. [Google Scholar] [CrossRef]
  50. Rietz, F.; Magg, S.; Heintz, F.; Stoyanov, T.; Wermter, S.; Stork, J.A. Hierarchical goals contextualize local reward decomposition explanations. Neural Comput. Appl. 2023, 35, 16693–16704. [Google Scholar] [CrossRef]
  51. Park, H.; Lee, B.Y.; Tahk, M.J.; Yoo, D.W. Differential game based air combat maneuver generation using scoring function matrix. Int. J. Aeronaut. Space Sci. 2016, 17, 204–213. [Google Scholar] [CrossRef]
Figure 1. General overview of explainable reinforcement learning agent development process.
Figure 1. General overview of explainable reinforcement learning agent development process.
Aerospace 11 00415 g001
Figure 2. A sample air combat agent vs. agent match starting from neutral position with 3000 m separation and 150 m/s speed.
Figure 2. A sample air combat agent vs. agent match starting from neutral position with 3000 m separation and 150 m/s speed.
Aerospace 11 00415 g002
Figure 3. Winning assessment with changing starting position. Initial speed is 150 m/s. Green, gray, and red represent win, draw, and lose, respectively.
Figure 3. Winning assessment with changing starting position. Initial speed is 150 m/s. Green, gray, and red represent win, draw, and lose, respectively.
Aerospace 11 00415 g003
Figure 4. Geometric representation of Antenna Train Angle (ATA), Aspect Angle (AA), and Line of Sight (LOS) vector.
Figure 4. Geometric representation of Antenna Train Angle (ATA), Aspect Angle (AA), and Line of Sight (LOS) vector.
Aerospace 11 00415 g004
Figure 5. ATA, AA, and LOS reward functions values with changing air combat state.
Figure 5. ATA, AA, and LOS reward functions values with changing air combat state.
Aerospace 11 00415 g005
Figure 6. (Left) Episodic return of multiple training. (Right) Comparison of component Q values of multiple trainings.
Figure 6. (Left) Episodic return of multiple training. (Right) Comparison of component Q values of multiple trainings.
Aerospace 11 00415 g006
Figure 7. Block diagram of agent’s policy and generated component-level Q values Q c for explanation. The Q values are associated with reward types as Q 1 r A T A , Q 2 r A A , and Q 3 r L O S .
Figure 7. Block diagram of agent’s policy and generated component-level Q values Q c for explanation. The Q values are associated with reward types as Q 1 r A T A , Q 2 r A A , and Q 3 r L O S .
Aerospace 11 00415 g007
Figure 8. Block diagram of generated local explanation using Q values obtained from the agent’s policy.
Figure 8. Block diagram of generated local explanation using Q values obtained from the agent’s policy.
Aerospace 11 00415 g008
Figure 9. Snapshot from a simulation with a trained RL agent. The upper left plot is a bird’s-eye view. The upper right plot is perspective from the blue agent body frame, and each green circle has a 1000 m radius. The lower figure is decomposed reward bar chart, the black x sign represents the chosen action, and the other x signs represent what the action would be if it was selected based on maximum value of each respective reward types.
Figure 9. Snapshot from a simulation with a trained RL agent. The upper left plot is a bird’s-eye view. The upper right plot is perspective from the blue agent body frame, and each green circle has a 1000 m radius. The lower figure is decomposed reward bar chart, the black x sign represents the chosen action, and the other x signs represent what the action would be if it was selected based on maximum value of each respective reward types.
Aerospace 11 00415 g009
Figure 10. Air combat geometry divided into offensive, defensive, neutral, and head-on regions all in one quadrant.
Figure 10. Air combat geometry divided into offensive, defensive, neutral, and head-on regions all in one quadrant.
Aerospace 11 00415 g010
Figure 11. Color-coded reward contribution through all tactical regions. Sampled at fixed LOS of 2000 m.
Figure 11. Color-coded reward contribution through all tactical regions. Sampled at fixed LOS of 2000 m.
Aerospace 11 00415 g011
Figure 12. Color-coded reward contribution through all tactical regions. Sampled at multiple LOS state values.
Figure 12. Color-coded reward contribution through all tactical regions. Sampled at multiple LOS state values.
Aerospace 11 00415 g012
Figure 13. Contribution of Q values to the decision-making process along the trajectory defined by ATA–AA–LOS states starting from neutral region in 2nd quadrant. The upper left plot is bird’s-eye view. The upper right plot is color-coded 3D plot whose axis are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers in the upper left and right plots along the trajectory correspond to the elapsed time in seconds.
Figure 13. Contribution of Q values to the decision-making process along the trajectory defined by ATA–AA–LOS states starting from neutral region in 2nd quadrant. The upper left plot is bird’s-eye view. The upper right plot is color-coded 3D plot whose axis are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers in the upper left and right plots along the trajectory correspond to the elapsed time in seconds.
Aerospace 11 00415 g013
Figure 14. Contribution of Q values to the decision-making process along the trajectory defined by ATA–AA–LOS states starting from neutral region in 4th quadrant. The upper left plot is bird’s-eye view. The upper right plot is color-coded 3D plot whose axes are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers on the upper left and right plots along the trajectory correspond to the elapsed time.
Figure 14. Contribution of Q values to the decision-making process along the trajectory defined by ATA–AA–LOS states starting from neutral region in 4th quadrant. The upper left plot is bird’s-eye view. The upper right plot is color-coded 3D plot whose axes are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers on the upper left and right plots along the trajectory correspond to the elapsed time.
Aerospace 11 00415 g014
Figure 15. Snapshot from a simulation with a trained RL agent. The upper left plot is a bird’s-eye view. The upper right plot is perspective from the blue agent body frame, and each green circle has a 1000 m radius. The lower figure is decomposed reward bar chart, the black x sign represents the chosen action, and the other x signs represent what the action would be if it was selected based on maximum value of each respective reward types.
Figure 15. Snapshot from a simulation with a trained RL agent. The upper left plot is a bird’s-eye view. The upper right plot is perspective from the blue agent body frame, and each green circle has a 1000 m radius. The lower figure is decomposed reward bar chart, the black x sign represents the chosen action, and the other x signs represent what the action would be if it was selected based on maximum value of each respective reward types.
Aerospace 11 00415 g015
Figure 16. AI vs. AI simulation result. The upper left plot is the bird’s-eye view. The upper right plot is color-coded 3D plot whose axis are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers on the upper left and right plots along the trajectory correspond to the elapsed time.
Figure 16. AI vs. AI simulation result. The upper left plot is the bird’s-eye view. The upper right plot is color-coded 3D plot whose axis are ATA–AA–LOS states. The lower plot is each Q value corresponding to the optimal action. The numbers on the upper left and right plots along the trajectory correspond to the elapsed time.
Aerospace 11 00415 g016
Table 1. Action Space.
Table 1. Action Space.
NoManeuverHeadingVelocity
1Right Accelerate11
2Right Maintain10
3Right Decelerate1−1
4Left Accelerate−11
5Left Maintain−10
6Left Decelerate−1−1
7Maintain Accelerate01
8Maintain00
9Maintain Decelerate0−1
Table 3. Environment parameters.
Table 3. Environment parameters.
SymbolValue
w 1 0.4
w 2 0.4
w 3 0.2
d 1 500
d 2 1000
Table 4. Hyperparameters for the experiment.
Table 4. Hyperparameters for the experiment.
HyperparameterValue
Total Timesteps2,000,000
Learning Rate 1 × 10 4
Buffer Size1,000,000
Discount Factor ( γ )0.99
Target Network Update Rate ( τ )1.0
Target Network Update Frequency10,000
Batch Size64
Starting Epsilon ( ϵ s t a r t )1
Ending Epsilon ( ϵ e n d )0.05
Exploration Fraction0.35
Learning Starts10,000
Training Frequency8
Table 5. Tactical regions reward dominance at LOS 2000 m.
Table 5. Tactical regions reward dominance at LOS 2000 m.
Tactical RegionDominant Reward TypeRelative Contribution
1st Quadrant
Head-onATA[0.388, 0.315, 0.298]
OffensiveATA[0.476, 0.330, 0.195]
DefensiveATA[0.414, 0.288, 0.298]
NeutralAA[0.386, 0.511, 0.103]
2nd Quadrant
Head-onATA[0.384, 0.341, 0.276]
OffensiveATA[0.486, 0.315, 0.199]
DefensiveATA[0.434, 0.195, 0.370]
NeutralATA[0.461, 0.380, 0.159]
3rd Quadrant
Head-onATA[0.398, 0.310, 0.292]
OffensiveATA[0.458, 0.355, 0.188]
DefensiveATA[0.400, 0.298, 0.302]
NeutralAA[0.366, 0.539, 0.095]
4th Quadrant
Head-onATA[0.423, 0.285, 0.292]
OffensiveATA[0.508, 0.271, 0.220]
DefensiveATA[0.387, 0.241, 0.371]
NeutralATA[0.462, 0.395, 0.143]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Saldiran, E.; Hasanzade, M.; Inalhan, G.; Tsourdos, A. Towards Global Explainability of Artificial Intelligence Agent Tactics in Close Air Combat. Aerospace 2024, 11, 415. https://doi.org/10.3390/aerospace11060415

AMA Style

Saldiran E, Hasanzade M, Inalhan G, Tsourdos A. Towards Global Explainability of Artificial Intelligence Agent Tactics in Close Air Combat. Aerospace. 2024; 11(6):415. https://doi.org/10.3390/aerospace11060415

Chicago/Turabian Style

Saldiran, Emre, Mehmet Hasanzade, Gokhan Inalhan, and Antonios Tsourdos. 2024. "Towards Global Explainability of Artificial Intelligence Agent Tactics in Close Air Combat" Aerospace 11, no. 6: 415. https://doi.org/10.3390/aerospace11060415

APA Style

Saldiran, E., Hasanzade, M., Inalhan, G., & Tsourdos, A. (2024). Towards Global Explainability of Artificial Intelligence Agent Tactics in Close Air Combat. Aerospace, 11(6), 415. https://doi.org/10.3390/aerospace11060415

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop