Preprint
Article

This version is not peer-reviewed.

ReSwitch: Risk-Aware Switch-Time Recovery Planning for High-Speed UAV Pursuit-Evasion

Submitted:

25 August 2026

Posted:

26 August 2026

You are already at the latest version

Abstract
High-speed unmanned aerial vehicle (UAV) pursuit-evasion in obstacle-rich environments is a challenging safety-critical decision-making problem, where the pursuer must intercept a maneuvering evader while avoiding obstacles. Existing methods often treat safety as an expected constraint and fail to prevent rare but severe unsafe events, resulting in conservative or aggressive policy. To address this issue, we propose a Risk-Aware Switch-Time Recovery Planning (ReSwitch) framework, which separates task-oriented pursuit from safety-oriented recovery. When flight risk emerges, a value-preserving switch-time planner evaluates candidate switching times through opponent-conditioned hybrid rollouts. The feasible switch time with the largest pursuit value after recovery is selected for execution, allowing the controller to prioritize safety while preserving pursuit effectiveness whenever possible. Experiments demonstrate that ReSwitch improves safety performance over baselines, with less degradation in pursuit effectiveness. The results show that ReSwitch is an effective mechanism for balancing safe flight and task completion.
Keywords: 
;  ;  ;  

1. Introduction

Unmanned aerial vehicles (UAVs) are increasingly employed in autonomous inspection, surveillance, search and rescue, environmental monitoring, and security-related missions [1,2]. As the level of autonomy increases, UAVs are expected not only to navigate toward predefined goals, but also to make responsive decisions in dynamic environments containing moving agents, obstacles, and operational constraints. In these scenarios, the control objective is often no longer a single navigation objective. Instead, the UAV must simultaneously accomplish a task, react to other agents, and maintain flight safety under limited maneuverability and finite control authority. This coupling between task execution and safety becomes particularly important when the UAV operates at high speed, because the time available for detecting risk and performing corrective maneuvers is substantially reduced.
Pursuit-evasion provides a representative setting for studying such autonomous decision-making problems [3,4,5,6]. In contrast to point-to-point navigation, the target state continuously changes according to the motion of an evader, and the pursuer must adapt its trajectory online while considering environmental constraints. The resulting decision process therefore combines adversarial interaction, motion planning, and safety-critical control. These characteristics make pursuit-evasion a useful benchmark for evaluating intelligent UAV decision-making methods, particularly when the pursuer must maintain aggressive task performance without sacrificing operational safety.
In unmanned aerial vehicle pursuit-evasion scenarios, the pursuer is required to approach or intercept an evader while maintaining a safe distance from obstacles and mission boundaries [3,4,7,8,9]. This setting is more demanding than standard navigation tasks because the decision process involves both task-oriented pursuit and safety-critical avoidance. The difficulty is further amplified when the UAV operates at high speed, where inertia, limited maneuverability, and actuation delays make late avoidance decisions unreliable [6].
Reinforcement learning provides a natural framework for pursuit-evasion because it allows a policy to learn complex interaction strategies directly from repeated experience [6,10,11]. In UAV applications, reinforcement-learning-based policies can integrate target motion, relative geometry, obstacle information, and vehicle states into a unified decision process. However, a policy trained primarily for task performance may exploit aggressive trajectories that improve interception efficiency while leaving insufficient maneuvering margin near obstacles or mission boundaries. This problem motivates the development of safe reinforcement learning and external safety mechanisms that explicitly account for unsafe states during either training or execution [12].
Traditional constrained reinforcement learning (CRL) allows the policy to trade off task performance and safety constraint during optimization [13,14,15,16]. However, in high-speed UAV pursuit-evasion scenarios, satisfying an expected safety constraint does not necessarily prevent rare but severe unsafe events. A policy may still choose aggressive pursuit actions in states where recovery is difficult but the expected safety cost remains acceptable. Therefore, safety should not always be treated as a soft trade-off against pursuit performance, especially when flight risk emerges.
An alternative direction is to separate task execution from safety intervention. Instead of requiring a single policy to simultaneously optimize pursuit performance and safety, an external safety mechanism can supervise the task policy and intervene only when necessary [17,18,19,20]. Such a design is attractive for pursuit-evasion because the pursuit policy can remain specialized for interception, while a separate controller is responsible for preventing unsafe behavior. The resulting question is then not only whether the current state is risky, but also how safety intervention should be coordinated with the task policy without unnecessarily destroying pursuit progress.
Safety shielding methods introduce an external safety module to monitor the learned policy and override unsafe actions during online execution [17,18,19,20,21], but many shielding methods rely on immediate triggering or binary safety decisions, which may be conservative and interrupt pursuit behavior unnecessarily in pursuit-evasion scenarios. In particular, a state predicted to become risky within a finite horizon does not necessarily imply that recovery must begin at the current time step [22]. The system may still possess a short recoverable interval during which the pursuit policy can be continued before safety-oriented control becomes necessary. Immediate intervention ignores this temporal structure and may therefore sacrifice task performance even when a delayed intervention remains feasible.
Recovery-based approaches further reduce the coupling between task and safety objectives by introducing a policy dedicated to returning the system toward safe states [23]. This decomposition is especially suitable for high-speed pursuit-evasion because recovery behavior can be trained independently from interception behavior and activated only when the task policy approaches the boundary of recoverability. Nevertheless, once a recovery mechanism is available, another important decision arises: the recovery policy can be activated immediately, delayed until a later feasible state, or scheduled according to the expected task value after recovery. The timing of intervention therefore becomes an independent decision variable rather than merely a consequence of risk detection.
Reachability-based methods provide principled safety analysis by determining whether the system can avoid unsafe states or remain within a safe region under admissible controls [24,25,26]. Nevertheless, their direct application to high-speed UAV pursuit-evasion is computationally expensive. Moreover, pursuit-evasion introduces an additional moving-agent dependency because the future state of the pursuer depends not only on its own control actions but also on the response of the evader. This makes exhaustive online safety analysis increasingly difficult when multiple possible recovery activation times must be evaluated within a limited control period.
Taken together, existing methods mainly address safety from three perspectives: incorporating safety costs into policy optimization, overriding unsafe actions through online shielding, or explicitly characterizing safe and unsafe regions through reachability analysis [12,20]. These approaches provide important foundations for safe autonomous control, but they leave a practical gap in high-speed pursuit-evasion. Once an emerging risk has been detected and a recovery policy is available, it remains necessary to determine whether recovery should be activated immediately or whether pursuit can be safely continued for several additional steps. This decision is particularly important because an unnecessarily early switch can substantially reduce pursuit effectiveness, whereas an excessively delayed switch can eliminate the remaining recovery margin.
These observations indicate that high-speed UAV pursuit-evasion requires a safety mechanism that does not merely impose a global constraint or trigger conservative intervention, but can prioritize recovery when risk emerges while retaining pursuit capability. This paper addresses the key question of how to ensure that a high-speed UAV pursuer gives priority to safety when flight risk emerges, while preserving as much pursuit effectiveness as possible in obstacle-rich pursuit-evasion scenarios.
Rather than treating risk detection as an immediate recovery command, we address this problem by interpreting the period between emerging risk and loss of recoverability as a finite-horizon decision window, within which different pursuit-to-recovery switching times can be explicitly evaluated according to both recovery feasibility and the pursuit capability retained after recovery.
To address this issue, we propose ReSwitch that separates task-oriented pursuit from safety-oriented recovery and coordinates them during execution. Specifically, the framework evaluates finite-horizon recoverability to determine whether the pursuit policy can still be safely continued, and activates the recovery policy when safety becomes critical. By predicting opponent-conditioned hybrid trajectories corresponding to different candidate switching times, ReSwitch evaluates whether recovery can still be completed without entering unsafe states and compares the pursuit values of the resulting post-recovery states. Consequently, the safety intervention is determined not only by whether risk exists, but also by when recovery should begin so that sufficient recoverability is retained while unnecessary interruption of pursuit is avoided.
The main contributions of this paper are summarized as follows.
  • We propose ReSwitch, a risk-aware recovery framework that separates pursuit and recovery and coordinates them through finite-horizon recoverability assessment.
  • An opponent-conditioned switch-time planner is designed to select a feasible recovery activation time by maximizing the discounted pursuit value after recovery.
  • Experiments in obstacle-rich high-speed UAV pursuit-evasion environment demonstrates that ReSwitch achieves better safety performance than baselines while maintaining competitive pursuit performance.

2. Problem Formulation

We consider a two-player pursuit-evasion Markov game in an obstacle-rich UAV environment [4]. The game involves a pursuer and an evader. At each discrete time step t, the pursuer and the evader select actions a P , t A P and a E , t A E , respectively. The system evolves according to
s t + 1 P ( · s t , a P , t , a E , t ) ,
where P denotes the state transition kernel conditioned on the known obstacle map M . The state space is defined as S , and the state at step t is expressed as
s t = ( x t , v t , y t , u t , M ) S .
Here, x t and v t denote the position and velocity of the pursuer, whereas y t and u t denote the position and velocity of the evader. The obstacle map M is assumed to be known during training and evaluation and is represented as
M = { o k } k = 1 N , o k = ( c k , r k ) ,
where c k and r k are the center and radius of the k-th obstacle, respectively.
The capture set G S is defined as
G = s t S x t y t r cap ,
where r cap is the capture radius. The unsafe set C S is defined as
C = { s t S k { 1 , , N } , x t c k r uav + r k + d safe or x t X } .
where X is the admissible flight region, r uav is the UAV safety radius, and d safe is an additional safety margin.
Let T G and T C denote the first hitting times of the capture set and the unsafe set, respectively:
T G = inf { t 0 s t G } , T C = inf { t 0 s t C } .
The pursuer aims to capture the evader while maintaining safety, which corresponds to satisfying T G < T C . However, in high-speed UAV pursuit-evasion, directly optimizing pursuit performance under safety constraint is challenging because unsafe events are rare but critical, and the feasibility of recovery depends strongly on short-horizon dynamics near obstacles. Therefore, this paper focuses on designing an online controller that can continue task-oriented pursuit in normal states and activate safety-oriented recovery when flight risk becomes critical.

3. Methodology

This section details the proposed ReSwitch framework. The overall architecture is illustrated in Figure 1.
The core of ReSwitch is to enforce safety-prioritized intervention through risk detection. Rather than treating safety and pursuit performance as two objectives to be directly traded off, ReSwitch prioritizes recovery once flight risk emerges. The role of the switch-time planner is to determine whether the task policy can be safely continued for a limited number of steps before recovery is activated. By predicting opponent-conditioned hybrid trajectories, the planner identifies states that are risky but still recoverable under the recovery policy. Among all feasible recovery schedules within the finite horizon, ReSwitch selects the one that satisfies the safety requirements while preserving the largest discounted pursuit value after recovery. In this way, the controller prioritizes model-predicted recoverability and preserves pursuit effectiveness whenever the predicted recovery constraints are satisfied.

3.1. State-Aware Danger Detector

During the execution of a pursuit mission, the danger detector quantifies the risk associated with continuing the task policy from the current system state. Unlike an instantaneous geometric rule based only on the current distance to an obstacle, the detector accounts for the finite-horizon evolution of the pursuer–evader system. This distinction is important in high-speed UAV flight because states with similar obstacle clearance may have substantially different safety implications depending on the pursuer velocity, evader motion, relative geometry, and the direction in which the task policy drives the system.
For any state s t , the danger detector D H ( s t ) is defined as the probability that the system will breach the unsafe set within a finite preview horizon H, assuming the pursuer continues with policy π T and the evader follows π E :
D H ( s t ) = P π T , π E k { 1 , , H } , s t + k C s t .
By denoting T C π T , π E ( s t ) as the first hitting time of the unsafe set under the joint policy execution, the danger condition can be expressed as:
D H ( s t ) = P π T , π E T C π T , π E ( s t ) H s t .
The horizon H represents the look-ahead steps used for risk prediction. Consequently, D H ( s t ) does not indicate only whether the UAV is currently close to an obstacle or boundary. Instead, it measures whether continuation of the task-oriented pursuit behavior is likely to drive the system into the unsafe set within the preview horizon. This formulation is particularly suitable for high-speed pursuit because the current state may still be geometrically safe while its velocity and relative motion make a future violation difficult to avoid.
The true evader policy π E is unavailable to the pursuer during online execution. Therefore, an opponent model π ^ E is used to approximate the evader response, yielding the practical estimate D ^ θ H ( s t ) D H ( s t ) [27]. The opponent-conditioned formulation allows the detector to capture changes in future risk induced by the interaction between the pursuer and the evader rather than treating the evader trajectory as fixed.
D ^ θ H is trained using rollout-supervised binary labels. Specifically, trajectories are collected by executing the task policy π T against evader behaviors sampled from the opponent model or from a diverse set of evader strategies. For each state s t along a trajectory, the finite-horizon danger label is defined as
y t H = 1 k { 1 , , H } , s t + k C ,
where y t H = 1 indicates that the system reaches the unsafe set within the next H steps, and y t H = 0 otherwise.
The danger detector is then trained by minimizing the binary cross-entropy loss:
min θ L D ( θ ) = E s t y t H log D ^ θ H ( s t ) + ( 1 y t H ) log 1 D ^ θ H ( s t ) .
After training, D ^ θ H ( s t ) provides a finite-horizon estimate of the risk associated with continuing π T from state s t . A low value indicates that continuation of the pursuit policy is not predicted to reach the unsafe set within the preview horizon, whereas a high value indicates that the current pursuit behavior is approaching a region in which safety-oriented intervention may become necessary.
The detector is used with two thresholds, δ enter and δ exit . The switch-time planner is activated when the danger estimate reaches the entry threshold, whereas the controller returns to normal pursuit after the danger estimate falls below the exit threshold. Setting δ exit < δ enter creates a hysteresis region between normal pursuit and safety intervention. This prevents repeated switching caused by small variations of the detector output near a single threshold and allows recovery to continue until the state has returned to a sufficiently low-risk region.

3.2. Switch-Time Planner

When the danger detector identifies a high-risk state, ReSwitch formulates safety intervention as a finite-horizon switch-time planning problem. The core idea is to determine how long the pursuer can continue executing the task policy π T before switching to the recovery policy π R . Instead of interpreting a high danger score as an unconditional command for immediate recovery, the planner evaluates whether a short period of continued pursuit remains compatible with subsequent recovery.
There is an inherent trade-off associated with the switching time. Activating π R at an early time generally preserves a larger recovery margin because the UAV is farther from the unsafe set. However, early recovery may move the pursuer away from the evader and discard useful pursuit progress. Conversely, a later switch allows π T to preserve more task-oriented behavior, but it also reduces the remaining time and maneuvering space available to the recovery policy. The planner therefore searches for a candidate schedule that retains pursuit effectiveness while satisfying the predicted recovery requirements.
Let V T ( s ) be the pursuit value function associated with π T , and π R be the recovery policy specialized for obstacle avoidance. At time t, if D ^ θ H ( s t ) δ enter , the switch-time planner is triggered. The planner enumerates candidate switching times j { 0 , 1 , , H 1 } , where j denotes the number of steps for which the pursuer follows π T before the candidate schedule begins executing π R . A smaller j therefore represents earlier recovery, whereas a larger j preserves the pursuit policy for a longer part of the predicted trajectory.
For each j, the hybrid behavioral profile is defined as:
μ j ( s t + i ) = π T ( s t + i ) , 0 i < j , π R ( s t + i ) , i j .
Using the opponent model π ^ E , the planner simulates candidate trajectories { s t + i ( j ) } [27]:
a P , t + i ( j ) = μ j ( s t + i ( j ) ) , a E , t + i ( j ) π ^ E ( s t + i ( j ) ) , s t + i + 1 ( j ) = P ( s t + i ( j ) , a P , t + i ( j ) , a E , t + i ( j ) ) , s t ( j ) = s t ,
where P ( · ) is the state transition function. The opponent model π ^ E provides the evader’s reactive actions conditioned on the predicted joint state, allowing each candidate schedule to account for the coupling between pursuit behavior, recovery behavior, and evader motion.
After switching to π R in a candidate trajectory, the planner continues the rollout until the predicted danger falls below the exit threshold or the maximum allowed recovery duration is exceeded. The recovery completion time κ j is defined as the first moment at which the predicted risk reaches the low-risk region:
κ j = min k { j , j + 1 , . . . , j + K max } D ^ θ H ( s t + k ( j ) ) δ exit .
The quantity κ j j therefore represents the predicted duration required by the recovery policy after the candidate switch. A candidate is considered feasible only if recovery is completed within K max steps, no predicted state before recovery completion belongs to the unsafe set, and the terminal state satisfies the low-risk condition. These requirements distinguish merely delaying intervention from delaying it while maintaining predicted recoverability.
A hysteresis mechanism is formed by setting δ exit < δ enter to prevent control chattering. The optimal switch time j * is then determined by solving:
j * = arg max j { 0 , , H 1 } γ κ j V T ( s t + κ j ( j ) ) s . t . κ j j K max , s t + i ( j ) C , i = 1 , , κ j , D ^ θ H ( s t + κ j ( j ) ) δ exit .
The objective evaluates the pursuit capability retained after the predicted recovery process. Specifically, V T ( s t + κ j ( j ) ) measures the expected pursuit value of the state from which normal task-oriented behavior can be resumed, while the factor γ κ j penalizes schedules requiring a longer period before returning to effective pursuit. Therefore, the planner does not simply choose the earliest feasible recovery or the latest feasible recovery. It selects the feasible schedule that provides the highest discounted post-recovery pursuit value.
The constraints in Equation (12) play complementary roles. The first constraint prevents the recovery phase from exceeding the prescribed maximum duration. The second requires the complete predicted trajectory before recovery completion to remain outside the unsafe set. The third requires the terminal state to return to the low-risk region defined by δ exit . Accordingly, feasibility in ReSwitch refers to model-predicted recoverability under the learned danger detector, the opponent-conditioned rollout, and the recovery policy.
If no feasible j exists, the controller defaults to immediate recovery, a P , t = π R ( s t ) . This fallback prioritizes the safety-oriented policy when none of the predicted delayed-switch schedules satisfies the recovery constraints. If at least one feasible candidate exists, j * is selected according to Equation (12).
The resulting switching decision is executed in a receding-horizon manner [28]. The value j * represents the preferred pursuit-to-recovery schedule predicted from the current state and is not treated as a committed open-loop countdown. Only the first control action of the selected candidate schedule is executed before the state is observed again and the planning problem is updated. Consequently, if j * = 0 , the selected schedule begins with recovery and the current action is generated by π R . If j * > 0 , the selected schedule permits continuation of pursuit at the current step, and the current action is generated by π T . At the next time step, all candidate schedules are recomputed using the newly observed state.
Although all positive values of j * produce a pursuit action at the current step, they correspond to different predicted hybrid trajectories, different recovery completion states, and different values in Equation (12). Their role is therefore to evaluate whether continued pursuit remains preferable under the current finite-horizon prediction. Replanning after every executed action allows the switching decision to adapt to changes in the evader response and system state rather than relying on a previously predicted open-loop trajectory. Recovery is activated once the updated optimization selects j * = 0 , or immediately when no feasible candidate schedule remains.
The two-threshold mechanism also determines how planning terminates. Once recovery or repeated switch-time planning drives the danger estimate below δ exit , the controller returns to the task mode and π T resumes normal pursuit. If the danger estimate remains within the intervention region, the planner continues to reassess the available pursuit and recovery schedules. This closed-loop process coordinates pursuit and recovery according to the continuously updated finite-horizon risk.
During online deployment, all neural network weights are frozen. The computational workload therefore consists only of forward policy inference, opponent-model inference, danger evaluation, value evaluation, and short-horizon state propagation. At each planning step, at most H candidate schedules are evaluated, and each schedule contains at most H + K max predicted steps. Hence, the number of rollout steps is bounded by an order of H ( H + K max ) . No gradient computation or policy update is required during deployment. Moreover, the switch-time planner is bypassed when the system remains in a low-risk task state, so the additional rollout computation is concentrated around states in which safety intervention is potentially required.
The complete online execution procedure is summarized in Algorithm 1.
Algorithm 1:ReSwitch: Risk-Aware Switch-Time Recovery Planning
Require: 
State s t ; policies π T , π R ; opponent model π ^ E ; value V T ; detector D ^ θ H ; thresholds δ enter , δ exit ; horizons H , K max ; discount factor γ
1:
Initialize m 0 Task , where m t { Task , Planning }
2:
for t = 0 , , T max 1 do
3:
    if  m t = Task D ^ θ H ( s t ) < δ enter  then
4:
         a P , t π T ( s t ) , m t + 1 Task ; continue
5:
    end if
6:
    if  D ^ θ H ( s t ) δ exit  then
7:
         a P , t π T ( s t ) , m t + 1 Task ; continue
8:
    end if
9:
     m t Planning , B t
10:
    for  j = 0 , , H 1  do
11:
        Roll out ( μ j , π ^ E ) and compute κ j
12:
        if  κ j exists and s t + i ( j ) C , i = 1 , , κ j  then
13:
            B t B t { ( j , γ κ j V T ( s t + κ j ( j ) ) ) }
14:
        end if
15:
    end for
16:
    if  B t =  then
17:
         a P , t π R ( s t ) , m t + 1 Planning ; continue
18:
    end if
19:
     j * arg max ( j , q ) B t q
20:
     a P , t π R ( s t ) if j * = 0 , else π T ( s t ) ; m t + 1 Planning
21:
end for

4. Experiments

The experiments are conducted in a high-speed UAV pursuit-evasion environment with obstacle avoidance constraints. The pursuer is required to complete the adversarial task by locking onto the evader while avoiding obstacles during the pursuit process. This section describes the training setup, baseline methods, and evaluation metrics used in the experiments.
The experiments are conducted in a three-dimensional high-speed UAV pursuit-evasion simulation environment with obstacle constraints. Considering the maneuvering characteristics of high-speed aerial vehicles, the UAV is modeled as a three-dimensional point-mass system with constrained velocity, acceleration, and attitude variation. Both the pursuer and the evader follow the same kinematic model, while their control policies are independently optimized according to their respective objectives.
The UAV state is represented as
ξ t = ( p t , v t , ϕ t , θ t ) ,
where p t = [ x t , y t , z t ] T denotes the three-dimensional position, v t represents the velocity magnitude, ϕ t denotes the yaw angle, and θ t denotes the pitch angle. The velocity vector is defined as
p ˙ t = v t cos θ t cos ϕ t cos θ t sin ϕ t sin θ t .
The UAV adopts a discrete-time three-dimensional coordinated-turn point-mass model. The control input is defined as
a t = [ a t lon , a t lat , a t ver ] T ,
where a t lon , a t lat , and a t ver denote the longitudinal, lateral, and vertical acceleration commands, respectively. The longitudinal acceleration controls the speed variation, while the lateral and vertical accelerations determine the turning and climbing maneuvers.
The speed update is given by
v t + 1 = clip v t + a t lon Δ t , v min , v max ,
where Δ t is the simulation time step and [ v min , v max ] denotes the allowable velocity range.
The attitude dynamics are determined by the lateral and vertical maneuver commands. The yaw-rate and pitch-rate are calculated as
ϕ ˙ t = clip a t lat v t , ω ϕ max , ω ϕ max ,
θ ˙ t = clip a t ver v t , ω θ max , ω θ max .
Therefore, the attitude states evolve according to
ϕ t + 1 = ϕ t + ϕ ˙ t Δ t ,
θ t + 1 = θ t + θ ˙ t Δ t .
The position update is expressed as
p t + 1 = p t + v t + 1 cos θ t + 1 cos ϕ t + 1 cos θ t + 1 sin ϕ t + 1 sin θ t + 1 Δ t .
The action space of each UAV is therefore defined as
a t = [ a t lon , a t lat , a t ver ] T A ,
where the acceleration commands satisfy
| a t lon | a lon max ,
| a t lat | a lat max , | a t ver | a ver max .
The simulation environment is constructed as a bounded three-dimensional flight region containing randomly generated spherical obstacles. The obstacle map is represented as
M = { o k } k = 1 N , o k = ( c k , r k ) ,
where c k = [ x k , y k , z k ] T and r k denote the center position and radius of the k-th obstacle, respectively. During each episode, the initial states of the pursuer, evader, and obstacles are randomly sampled while satisfying the minimum separation constraints. The pursuer aims to capture the evader by reducing the relative distance to the capture radius, whereas the evader attempts to avoid interception while maintaining collision-free flight.
The admissible flight region is defined as
X = { ( x , y , z ) | x [ x min , x max ] , y [ y min , y max ] , z [ z min , z max ] } .
The main parameters are summarized in Table 1. The simulation time step is set to Δ t . The UAV velocity, acceleration, and attitude variation are constrained according to the physical maneuverability limits of high-speed aerial vehicles. These constraints prevent unrealistic instantaneous direction changes and require the pursuer to balance interception performance with future safety margins during obstacle-rich pursuit-evasion.

4.1. Training Setup

The training process of the proposed method consists of three parts: policy-network training, opponent-policy learning, and danger-detector training. The details of each part are described as follows.
1.
PPO-based policy training. Both the pursuit policy π T and the recovery policy π R are trained using PPO [29]. PPO optimizes a stochastic actor π η and a critic network V ψ by solving the following clipped policy optimization problem:
max η , ψ E t min r t ( η ) A ^ t , clip r t ( η ) , 1 ϵ , 1 + ϵ A ^ t c v V ψ ( s t ) R ^ t 2 + c e H π η ( · s t ) ,
where
r t ( η ) = π η ( a t s t ) π η old ( a t s t ) .
Here, A ^ t is the advantage estimate, R ^ t is the return target, ϵ is the clipping coefficient, and c v and c e are the weights of the value loss and entropy regularization, respectively.
The pursuit policy π T is trained to track and intercept the evader, and the critic obtained during pursuit-policy training is retained as the pursuit value function V T and is later used by the switch-time planner. The reward function of the pursuit policy consists of three terms: distance reward, angle reward, and boundary reward. Following the reward design in [7], the pursuit reward is defined as
R T = ω 1 R distance + ω 2 R angle + ω 3 R boundary ,
where ω 1 , ω 2 , and ω 3 are the corresponding weighting coefficients.
The distance reward measures the improvement in the pursuer–evader distance between two consecutive time steps:
R distance = clip d t 1 d t R max , 1 , 1 ,
where d t = x t y t denotes the pursuer–evader distance at time step t, and R max is a normalization coefficient. A reduction in the pursuer–evader distance produces a positive reward, whereas an increase in the distance produces a negative reward.
The angle reward measures the improvement in the angular error between the pursuer’s current motion direction and the line of sight toward the evader:
R angle = clip θ t 1 θ t θ max , 1 , 1 ,
where θ t denotes the angular error at time step t, and θ max is the normalization angle. A decrease in the angular error produces a positive reward, encouraging the pursuer to align its motion direction with the evader, whereas an increase in the angular error produces a negative reward.
The boundary reward penalizes the pursuer when it approaches the boundary of the admissible flight region:
R boundary = max 0 , 1 c b d boundary ,
where c b denotes the minimum clearance between the pursuer and the nearest flight boundary, and d boundary determines the effective range of the boundary penalty. When c b d boundary , no boundary penalty is imposed. As the pursuer approaches the boundary, the penalty gradually increases toward 1 .
In the experiments, the reward weights and normalization parameters are set to
ω 1 = 4 , ω 2 = 2 , ω 3 = 4 , R max = 800 , θ max = 20 , d boundary = 200 .
Substituting these values into Equations (28)–(31), the pursuit reward used in the experiments is
R T = 4 clip d t 1 d t 800 , 1 , 1 + 2 clip θ t 1 θ t 20 , 1 , 1 4 max 0 , 1 c b 200 .
In addition, a terminal reward of + 150 is assigned for successful capture, whereas a terminal penalty of 180 is imposed for failure.
The recovery policy π R is trained to reduce safety risk near obstacles and mission boundaries. Compared with the pursuit reward, the distance reward and angle reward are removed. The recovery reward is defined as
R R = ω 4 R boundary + ω 5 R obstacle ,
where ω 4 and ω 5 are weighting coefficients. In the experiments, they are set to
ω 4 = 3 , ω 5 = 4 .
2.
Opponent-model training. An opponent model π ^ E is learned from observed evader behavior data [27]. The evader trajectories are collected during the training of the pursuit policy and the recovery policy since the true evader policy is unavailable during online execution. Given an evader behavior dataset D E = { ( s i , a E , i ) } i = 1 N E , the opponent model is trained by behavior cloning [30]:
min ω L BC ( ω ) = E ( s , a E ) D E [ log π ^ E , ω ( a E s ) ] .
After training, π ^ E , ω is denoted as π ^ E and is used to predict evader responses in opponent-conditioned hybrid rollouts.
3.
Danger-detector training. The danger detector D ^ θ H is trained using rollout-generated binary labels. A state is labeled as dangerous if continuing the task policy π T leads the UAV to enter the unsafe set within the finite horizon H. The binary danger labels are generated according to Equation (8), and the detector is trained by minimizing the loss in Equation (9).
The overall training procedure is organized into three stages:
1.
Pursuit-policy training. The pursuit policy π T is trained with the pursuit reward in Equation (28) using a curriculum learning strategy [31], in which the initial pursuer–evader distance is gradually increased and the number of obstacles is progressively increased to nine.
2.
Recovery-policy training. The recovery policy π R is trained with the recovery reward in Equation (34) until the constraint violation rate converges to a low level.
3.
Opponent-model and danger-detector training. The opponent model π ^ E is trained from observed evader trajectories using behavior cloning. The danger detector D ^ θ H is then trained for 30,000 steps using rollout-supervised binary labels.

4.2. Evaluation Metrics

In the high-speed UAV pursuit-evasion game, the UAV has two main objectives. First, it should complete the adversarial task by successfully locking onto the evader. Second, it should maintain safe flight by avoiding obstacles during the pursuit process. Based on these objectives, four evaluation metrics are used.
  • Success Rate: The success rate measures the percentage of episodes in which the pursuer successfully completes the adversarial task:
    R success = N episode success N episode total ,
    where N episode success is the number of successful episodes and N episode total is the total number of evaluation episodes.
  • Safety Rate: The safety rate measures the percentage of episodes in which the pursuer does not collide with any obstacle or violate the flight boundary during the entire rollout:
    R safe = 1 N episode danger N episode total .
    Here, N episode danger denotes the number of episodes in which the pursuer collides with an obstacle or violates the flight boundary during the entire rollout.
  • Zero-Danger Rate: The zero-danger rate measures the percentage of episodes in which no unsafe state occurs. Here, an unsafe state refers to a near-obstacle or near-boundary state in which the pursuer’s clearance to an obstacle or the flight boundary is smaller than r unsafe = 5 .
    R zero = N episode safe N episode total ,
  • Average Capture Time: The average capture time measures the mean number of time steps required to capture the evader over successful episodes only:
    T cap = 1 N episode success i = 1 N episode success T G ( i ) ,
    where T G ( i ) denotes the capture time of the i-th successful episode.
The key hyperparameters used in the environment configuration and danger-detector training are summarized in Table 1. These parameters define the state-action setting, obstacle distribution and flight constraints used in the experiments.

4.3. Comparison with Baselines

To evaluate the effectiveness and robustness of the proposed method, all methods are evaluated using 10 independent random seeds. For each random seed, all trainable components required by the corresponding method are retrained from scratch, resulting in 10 independently trained models for each method. After training, each model is evaluated over 5000 independently generated pursuit-evasion trajectories. Therefore, each method is evaluated using 50,000 trajectories in total across the 10 independently trained models.
We compare ReSwitch with the following three baseline methods.
  • ReSwitch is the proposed method. It uses the finite-horizon danger detector to estimate the risk of continuing the pursuit policy and employs the switch-time planner to select a feasible recovery activation time that preserves pursuit value.
  • Pursuit Only uses only the pursuit policy π T for target tracking and interception. No recovery policy, danger detector, or safety intervention mechanism is used during execution.
  • Immediate Recovery uses the same danger detector and recovery policy as ReSwitch, but does not perform switch-time planning. Once the danger score satisfies
    D ^ θ H ( s t ) δ enter ,
    the controller immediately switches to the recovery policy π R .
  • PPO-Lagrangian optimizes a constrained reinforcement learning objective [13,15]:
    max π E π t = 0 T γ t r ( s t , a t ) s . t . E π t = 0 T γ t c ( s t , a t ) d ,
    where r is the same reward function used for training the pursuit policy, and c is defined using the same safety-related terms as the recovery reward.
For each evaluation trajectory, the initial positions of the pursuer, evader, and obstacles are randomly generated subject to the environment constraints described in Section 4.1. Representative trajectory visualizations are shown in Figure 2.
Figure 3 provides a direct visualization of the safety–pursuit trade-off. The horizontal axis represents the safety rate, and the vertical axis represents the pursuit success rate. Therefore, moving toward the right indicates improved safety performance, whereas moving upward indicates improved task completion capability. The Pursuit Only policy achieves relatively high pursuit efficiency but suffers from insufficient safety performance. In contrast, Immediate Recovery improves safety by switching to the recovery policy conservatively, but its pursuit capability is reduced due to frequent intervention. PPO-Lagrangian provides an intermediate compromise by incorporating safety constraints into policy optimization. The proposed ReSwitch method is located in the upper-right region of the trade-off space, demonstrating that the switch-time planning mechanism can preserve pursuit capability while maintaining reliable safety performance.
As shown in Table 2, the results averaged over 10 independently trained models show that ReSwitch provides a favorable balance between pursuit effectiveness and flight safety. The confidence intervals additionally characterize the sensitivity of each method to random initialization and stochasticity in the training process.
The Pursuit Only baseline achieves the shortest average capture time among successful episodes, with a mean of 48.6 steps, because its controller focuses entirely on pursuit without safety-oriented intervention. However, this aggressive behavior results in substantially lower mean safety and zero-danger rates, 61.4% and 24.8%, respectively.
PPO-Lagrangian improves the mean safety rate to 82.6% by incorporating an expected safety constraint during policy optimization. Nevertheless, its mean success rate is 65.3%, and the mean capture time increases to 119.2 steps. These results indicate that incorporating safety into a single constrained optimization objective can reduce unsafe behavior, but may also substantially affect pursuit efficiency.
Immediate Recovery obtains the highest mean safety rate and zero-danger rate, reaching 94.8% and 76.5%, respectively. However, immediately activating the recovery policy whenever the danger threshold is exceeded results in frequent interruption of task-oriented behavior. Consequently, its mean success rate decreases to 53.2%, while its mean capture time increases to 123.5 steps.
In comparison, ReSwitch achieves the highest mean success rate of 74.1%, while maintaining a mean safety rate of 92.7% and a mean zero-danger rate of 72.8%. Its mean capture time is 85.4 steps, which is substantially shorter than those of PPO-Lagrangian and Immediate Recovery. These results show that explicitly optimizing the recovery activation time can retain more pursuit capability than immediate intervention while maintaining a high level of safety.

4.4. Ablation Study

To further investigate the contribution of switch-time planning and the value-preserving selection objective, we conduct an ablation study using three variants of the proposed framework. The same evaluation protocol as in Section 4.3 is adopted. Specifically, each variant is evaluated using 10 independent random seeds, with the corresponding trainable components retrained independently for each seed. Each trained model is then evaluated using 5000 pursuit-evasion trajectories. The reported results are the mean and 95% confidence interval across the 10 random seeds.
The evaluated variants are defined as follows.
  • Immediate Recovery removes switch-time planning and activates the recovery policy immediately when the danger score reaches the entry threshold. This variant represents the most conservative intervention strategy.
  • Latest Recovery retains the feasibility evaluation of candidate switching times but removes the value-preserving objective. Among all feasible candidates, it always selects the latest feasible switching time:
    j latest * = max j j J feasible ,
    where J feasible denotes the set of switching times satisfying the recovery constraints in Equation (12). This variant evaluates whether simply delaying recovery as much as possible is sufficient.
  • Random Recovery Time randomly selects one switching time from the feasible candidate set J feasible . This variant retains recoverability checking but removes the pursuit-value-based selection criterion.
  • ReSwitch uses the complete switch-time planner and selects the feasible candidate that maximizes the discounted post-recovery pursuit value according to Equation (12).
Table 3 summarizes the ablation results across the 10 independent training seeds. The results indicate that the choice of recovery activation time substantially affects the balance between pursuit effectiveness and safety.
Immediate Recovery provides the most conservative behavior, achieving the highest mean safety rate of 94.8% and the highest mean zero-danger rate of 76.5%. However, its mean success rate is only 53.2%, and the average capture time increases to 123.5 steps. This result illustrates the performance cost associated with activating the recovery policy immediately whenever risk is detected.
Latest Recovery produces a higher mean success rate of 61.7% and reduces the mean capture time to 93.1 steps, but its safety performance deteriorates. In particular, its mean safety rate and zero-danger rate decrease to 84.3% and 55.6%, respectively. This suggests that delaying recovery to the latest feasible time can excessively reduce the remaining recovery margin.
Random Recovery Time achieves intermediate results, with a mean success rate of 58.4%, a mean safety rate of 87.9%, and a mean zero-danger rate of 61.7%. Although restricting the selection to feasible switching times prevents completely unconstrained delay, random selection does not explicitly account for the quality of the post-recovery state and therefore cannot consistently preserve pursuit progress.
By contrast, ReSwitch achieves a mean success rate of 74.1%, which is the highest among the evaluated variants, while maintaining a mean safety rate of 92.7% and a mean zero-danger rate of 72.8%. Its mean capture time is 85.4 steps, lower than those of the other recovery-based variants. These results support the role of the value-preserving switch-time objective: rather than always recovering immediately or delaying recovery as much as possible, ReSwitch selects a feasible switching schedule according to the pursuit capability retained after recovery.

5. Conclusion

ReSwitch is proposed as a Risk-Aware Switch-Time Recovery Planning framework for safe decision making in high-speed UAV pursuit-evasion. This method separates task-oriented pursuit and safety-oriented recovery through a finite-horizon danger detector and a value-preserving switch-time planner. Instead of triggering recovery immediately after risk detection, ReSwitch evaluates candidate switching times and selects a feasible hybrid policy that maintains recoverability while preserving pursuit value. Evaluations in obstacle-rich pursuit-evasion scenarios demonstrate that ReSwitch achieves a favorable trade-off between adversarial task completion and safe flight, maintaining safety performance close to immediate recovery while substantially improving pursuit efficiency.
For future work, we aim to extend ReSwitch to multi-UAV pursuit-evasion scenarios. Specifically, we plan to improve opponent-policy estimation under unseen evader behaviors and optimize the rollout planner for real-time deployment in more complex dynamic environments.

Author Contributions

Conceptualization, B.H.; methodology, G.P.; validation, Y.C.; formal analysis, Y.C.; investigation, G.P. and Y.C.; writing—original draft preparation, G.P.; writing—review and editing, B.H., G.P. and Y.C.; supervision, B.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the National Natural Science Foundation of China Youth Program (Grant Nos. 62003363 and 62303485), the Shaanxi Province Natural Science Basic Research Program (Grant No. 2022KJXX-99), the Fundamental and Frontier Innovation Program (Grant No. 2025-QYCX-ZD-03-026), and the Natural Science Basic Research Plan in Shaanxi Province of China (Grant No. 2025JC-YBMS-730).

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors thank the reviewers for their constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
UAV Unmanned aerial vehicle
CRL Constrained reinforcement learning
PPO Proximal policy optimization
BC Behavior cloning
ReSwitch Risk-Aware Switch-Time Recovery Planning

References

  1. Floreano, D.; Wood, R.J. Science, Technology and the Future of Small Autonomous Drones. Nature 2015, 521, 460–466. [Google Scholar] [CrossRef] [PubMed]
  2. Shakhatreh, H.; Sawalmeh, A.H.; Al-Fuqaha, A.; Dou, Z.; Almaita, E.; Khalil, I.; Othman, N.S.; Khreishah, A.; Guizani, M. Unmanned Aerial Vehicles (UAVs): A Survey on Civil Applications and Key Research Challenges. IEEE Access 2019, 7, 48572–48634. [Google Scholar] [CrossRef]
  3. Isaacs, R. Differential Games: A Mathematical Theory with Applications to Warfare and Pursuit, Control and Optimization; John Wiley and Sons: New York, 1965. [Google Scholar]
  4. Littman, M.L. Markov Games as a Framework for Multi-Agent Reinforcement Learning. In Proceedings of the Proceedings of the Eleventh International Conference on Machine Learning; Morgan Kaufmann, 1994; pp. 157–163. [Google Scholar] [CrossRef]
  5. Akhloufi, M.A.; Arola, S.; Bonnet, A. Drones Chasing Drones: Reinforcement Learning and Deep Search Area Proposal. Drones 2019, 3, 58. [Google Scholar] [CrossRef]
  6. Yan, T.; Liu, C.; Gao, M.; Jiang, Z.; Li, T. A Deep Reinforcement Learning-Based Intelligent Maneuvering Strategy for the High-Speed UAV Pursuit-Evasion Game. Drones 2024, 8, 309. [Google Scholar] [CrossRef]
  7. Zhao, Y.; Nie, Z.; Dong, K.; Huang, Q.; Li, X. Autonomous Decision Making for UAV Cooperative Pursuit-Evasion Game with Reinforcement Learning. arXiv 2024, arXiv:2411.02983. [Google Scholar] [CrossRef]
  8. Zhao, Y.; Zhao, W.; Li, X. MSMAR-RL: Multi-Step Masked-Attention Recovery Reinforcement Learning for Safe Maneuver Decision in High-Speed Pursuit-Evasion Game. In Proceedings of the Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25; Kwok, J., Ed.; International Joint Conferences on Artificial Intelligence Organization; Main Track, 2025; pp. 311–319. [Google Scholar] [CrossRef]
  9. Hu, P.; Zhao, C.; Pan, Q. A Novel Method for a Pursuit–Evasion Game Based on Fuzzy Q-Learning and Model-Predictive Control. Drones 2024, 8, 509. [Google Scholar] [CrossRef]
  10. Koch, W.; Mancuso, R.; West, R.; Bestavros, A. Reinforcement Learning for UAV Attitude Control. ACM Trans. Cyber-Phys. Syst. 2019, 3, 1–21. [Google Scholar] [CrossRef]
  11. Kalidas, A.P.; Joshua, C.J.; Md, A.Q.; Basheer, S.; Mohan, S.; Sakri, S.B. Deep Reinforcement Learning for Vision-Based Navigation of UAVs in Avoiding Stationary and Mobile Obstacles. Drones 2023, 7, 245. [Google Scholar] [CrossRef]
  12. Brunke, L.; Greeff, M.; Hall, A.W.; Yuan, Z.; Zhou, S.; Panerati, J.; Schoellig, A.P. Safe Learning in Robotics: From Learning-Based Control to Safe Reinforcement Learning. Annu. Rev. Control Robot. Auton. Syst. 2022, 5, 411–444. [Google Scholar] [CrossRef]
  13. Altman, E. Constrained Markov Decision Processes; Chapman and Hall/CRC: Boca Raton, FL, 1999. [Google Scholar] [CrossRef]
  14. García, J.; Fernández, F. A Comprehensive Survey on Safe Reinforcement Learning. J. Mach. Learn. Res. 2015, 16, 1437–1480. [Google Scholar]
  15. Achiam, J.; Held, D.; Tamar, A.; Abbeel, P. Constrained Policy Optimization. In Proceedings of the Proceedings of the 34th International Conference on Machine Learning PMLR; Precup, D., Teh, Y.W., Eds.; Proceedings of Machine Learning Research; 2017; Vol. 70, pp. 22–31. [Google Scholar]
  16. Chow, Y.; Nachum, O.; Duenez-Guzman, E.; Ghavamzadeh, M. A Lyapunov-Based Approach to Safe Reinforcement Learning. Proc. Adv. Neural Inf. Process. Syst. 2018, Vol. 31, 8092–8101. [Google Scholar]
  17. Dalal, G.; Dvijotham, K.; Vecerik, M.; Hester, T.; Paduraru, C.; Tassa, Y. Safe Exploration in Continuous Action Spaces. arXiv 2018, arXiv:1801.08757. [Google Scholar]
  18. Cheng, R.; Orosz, G.; Murray, R.M.; Burdick, J.W. End-to-End Safe Reinforcement Learning through Barrier Functions for Safety-Critical Continuous Control Tasks. Proc. Proc. AAAI Conf. Artif. Intell. 2019, Vol. 33, 3387–3395. [Google Scholar] [CrossRef]
  19. Wabersich, K.P.; Zeilinger, M.N. A Predictive Safety Filter for Learning-Based Control of Constrained Nonlinear Dynamical Systems. Automatica 2021, 129, 109597. [Google Scholar] [CrossRef]
  20. Hsu, K.C.; Hu, H.; Fisac, J.F. The Safety Filter: A Unified View of Safety-Critical Control in Autonomous Systems. Annu. Rev. Control Robot. Auton. Syst. 2024, 7, 47–72. [Google Scholar] [CrossRef]
  21. Alshiekh, M.; Bloem, R.; Ehlers, R.; Könighofer, B.; Niekum, S.; Topcu, U. Safe Reinforcement Learning via Shielding. In Proceedings of the Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, 2018; pp. 2669–2678. [Google Scholar] [CrossRef]
  22. Thomas, G.; Luo, Y.; Ma, T. Safe Reinforcement Learning by Imagining the Near Future. Proc. Adv. Neural Inf. Process. Syst. 2021, Vol. 34, 13859–13869. [Google Scholar]
  23. Thananjeyan, B.; Balakrishna, A.; Nair, S.; Luo, M.; Srinivasan, K.; Hwang, M.; Gonzalez, J.E.; Ibarz, J.; Finn, C.; Goldberg, K. Recovery RL: Safe Reinforcement Learning With Learned Recovery Zones. IEEE Robot. Autom. Lett. 2021, 6, 4915–4922. [Google Scholar] [CrossRef]
  24. Mitchell, I.M.; Bayen, A.M.; Tomlin, C.J. A Time-Dependent Hamilton-Jacobi Formulation of Reachable Sets for Continuous Dynamic Games. IEEE Trans. Autom. Control 2005, 50, 947–957. [Google Scholar] [CrossRef]
  25. Bansal, S.; Chen, M.; Herbert, S.L.; Tomlin, C.J. Hamilton-Jacobi Reachability: A Brief Overview and Recent Advances. In Proceedings of the 2017 IEEE 56th Annual Conference on Decision and Control (CDC), 2017; pp. 2242–2253. [Google Scholar] [CrossRef]
  26. Fisac, J.F.; Akametalu, A.K.; Zeilinger, M.N.; Kaynama, S.; Gillula, J.; Tomlin, C.J. A General Safety Framework for Learning-Based Control in Uncertain Robotic Systems. IEEE Trans. Autom. Control 2019, 64, 2737–2752. [Google Scholar] [CrossRef]
  27. He, H.; Boyd-Graber, J.; Kwok, K.; Daumé, H., III. Opponent Modeling in Deep Reinforcement Learning. In Proceedings of the Proceedings of the 33rd International Conference on Machine Learning. PMLR, Proceedings of Machine Learning Research. 2016; Vol. 48, pp. 1804–1813. [Google Scholar]
  28. Mayne, D.Q.; Rawlings, J.B.; Rao, C.V.; Scokaert, P.O.M. Constrained Model Predictive Control: Stability and Optimality. Automatica 2000, 36, 789–814. [Google Scholar] [CrossRef]
  29. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal Policy Optimization Algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar] [CrossRef]
  30. Bain, M.; Sammut, C. A Framework for Behavioural Cloning. In Machine Intelligence 15: Intelligent Agents; Oxford University Press, 2000; pp. 103–129. [Google Scholar] [CrossRef]
  31. Bengio, Y.; Louradour, J.; Collobert, R.; Weston, J. Curriculum Learning. In Proceedings of the Proceedings of the 26th Annual International Conference on Machine Learning, 2009; Association for Computing Machinery; pp. 41–48. [Google Scholar] [CrossRef]
Figure 1. Overview of the proposed ReSwitch. The danger detector estimates the finite-horizon risk of continuing the task policy. When the risk exceeds the entry threshold, the switch-time planner evaluates candidate switching times by rolling out hybrid trajectories composed of the task policy and recovery policy. The candidate schedules are evaluated according to recoverability and post-recovery pursuit value, and the resulting decision is used to determine whether pursuit can be continued or recovery should be activated at the current step.
Figure 1. Overview of the proposed ReSwitch. The danger detector estimates the finite-horizon risk of continuing the task policy. When the risk exceeds the entry threshold, the switch-time planner evaluates candidate switching times by rolling out hybrid trajectories composed of the task policy and recovery policy. The candidate schedules are evaluated according to recoverability and post-recovery pursuit value, and the resulting decision is used to determine whether pursuit can be continued or recovery should be activated at the current step.
Preprints 230081 g001
Figure 2. Representative pursuit-evasion trajectories in obstacle-rich environments. The red and blue curves denote the trajectories of the pursuer and evader, respectively. The yellow curve indicates the trajectory segment executed after switching to the recovery policy. Compared with the pursuit-only policy, ReSwitch adjusts the pursuit behavior through risk-aware recovery planning and maintains safer trajectories around obstacles.
Figure 2. Representative pursuit-evasion trajectories in obstacle-rich environments. The red and blue curves denote the trajectories of the pursuer and evader, respectively. The yellow curve indicates the trajectory segment executed after switching to the recovery policy. Compared with the pursuit-only policy, ReSwitch adjusts the pursuit behavior through risk-aware recovery planning and maintains safer trajectories around obstacles.
Preprints 230081 g002
Figure 3. Safety–pursuit trade-off of different methods. Each point represents one independently trained model with a different random seed. The center of each cluster denotes the mean performance over 10 seeds, and the surrounding circle represents the minimum enclosing circle of the corresponding seed-level results. The horizontal and vertical directions indicate safety and pursuit effectiveness, respectively: points farther to the right correspond to higher safety rates, while points farther upward correspond to higher success rates. Compared with baseline methods, ReSwitch achieves a favorable balance between safety and pursuit effectiveness by maintaining a high safety level while obtaining the highest success rate.
Figure 3. Safety–pursuit trade-off of different methods. Each point represents one independently trained model with a different random seed. The center of each cluster denotes the mean performance over 10 seeds, and the surrounding circle represents the minimum enclosing circle of the corresponding seed-level results. The horizontal and vertical directions indicate safety and pursuit effectiveness, respectively: points farther to the right correspond to higher safety rates, while points farther upward correspond to higher success rates. Compared with baseline methods, ReSwitch achieves a favorable balance between safety and pursuit effectiveness by maintaining a high safety level while obtaining the highest success rate.
Preprints 230081 g003
Table 1. Key hyperparameters used in the experiments.
Table 1. Key hyperparameters used in the experiments.
Symbol Meaning Value
Environment configuration
dim ( s t ) Observation dimension 48
dim ( a P , t ) Action dimension of the pursuer 3
r cap Capture radius 3.0
r unsafe Unsafe radius 5.0
X Admissible flight region x , y [ 50 , 50 ] , z [ 5 , 125 ]
N obs max Maximum number of observed obstacles 9
c k Center range of the k-th obstacle x , y [ 40 , 40 ] , z [ 25 , 95 ]
r k Radius range of the k-th obstacle [ 6 , 16 ]
v t UAV speed range [ 0.5 , 6.0 ]
N episode total Total number of evaluated episodes 5000
Danger-detector training hyperparameters
T max D Maximum episode steps for detector data collection 320
H Finite prediction horizon of the danger detector 6
α D Learning rate of the danger detector 2 × 10 4
N obs Number of obstacles used in detector training 9
d P E 0 , min Minimum initial distance between the pursuer and evader 80.0
Table 2. Comparison with baseline methods over 10 independent training seeds. Each trained model is evaluated using 5000 trajectories. Values are reported as mean (95% confidence interval) across the 10 random seeds.
Table 2. Comparison with baseline methods over 10 independent training seeds. Each trained model is evaluated using 5000 trajectories. Values are reported as mean (95% confidence interval) across the 10 random seeds.
Method Success Rate (%) Safety Rate (%) Zero-Danger Rate (%) Average Capture Time
Pursuit Only 47.8 (45.5–50.1) 61.4 (59.4–63.4) 24.8 (23.0–26.6) 48.6 (45.6–51.6)
PPO-Lagrangian 65.3 (62.3–68.3) 82.6 (80.2–85.0) 52.3 (49.1–55.5) 119.2 (112.4–126.0)
Immediate Recovery 53.2 (50.6–55.8) 94.8 (93.5–96.1) 76.5 (74.2–78.8) 123.5 (117.3–129.7)
ReSwitch 74.1 (71.9–76.3) 92.7 (91.2–94.2) 72.8 (70.4–75.2) 85.4 (80.7–90.1)
Table 3. Ablation study over 10 independent training seeds. Each trained model is evaluated using 5000 trajectories. Values are reported as mean (95% confidence interval) across the 10 random seeds.
Table 3. Ablation study over 10 independent training seeds. Each trained model is evaluated using 5000 trajectories. Values are reported as mean (95% confidence interval) across the 10 random seeds.
Method Success Rate (%) Safety Rate (%) Zero-Danger Rate (%) Average Capture Time
Immediate Recovery 53.2 (50.6–55.8) 94.8 (93.5–96.1) 76.5 (74.2–78.8) 123.5 (117.3–129.7)
Latest Recovery 61.7 (59.0–64.4) 84.3 (81.9–86.7) 55.6 (52.4–58.8) 93.1 (88.2–98.0)
Random Recovery Time 58.4 (55.1–61.7) 87.9 (85.7–90.1) 61.7 (58.3–65.1) 102.8 (97.0–108.6)
ReSwitch 74.1 (71.9–76.3) 92.7 (91.2–94.2) 72.8 (70.4–75.2) 85.4 (80.7–90.1)
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.