Abstract
Efficient point-to-point navigation in the presence of a background flow field is important for robotic applications such as ocean surveying. In such applications, robots may only have knowledge of their immediate surroundings or be faced with time-varying currents, which limits the use of optimal control techniques for planning trajectories. Here, we apply a novel Reinforcement Learning algorithm to discover time-efficient navigation policies to steer a fixed-speed swimmer through an unsteady two-dimensional flow field. The algorithm entails inputting environmental cues into a deep neural network that determines the swimmer's actions, and deploying Remember and Forget Experience replay. We find that the resulting swimmers successfully exploit the background flow to reach the target, but that this success depends on the type of sensed environmental cue. Surprisingly, a velocity sensing approach outperformed a bio-mimetic vorticity sensing approach by nearly two-fold in success rate. Equipped with local velocity measurements, the reinforcement learning algorithm achieved near 100% success in reaching the target locations while approaching the time-efficiency of paths found by a global optimal control planner.
Introduction
Navigating through complex fluid environments—such as a drone in a gusty urban canyon or an autonomous underwater vehicle (AUV) in ocean currents—presents a significant challenge for modern robotics. While optimal paths can be calculated if a perfect global map of the fluid's movement is available, real-world currents are often unpredictable and time-varying. Most current robotic systems either struggle to maintain course or require high energy expenditure to fight against the flow.
A more efficient approach is to mimic skilled biological swimmers that sense local environmental cues to "hitch a ride" on favorable currents. This study investigates whether Deep Reinforcement Learning (RL) can discover such sophisticated navigation strategies using only local sensory information, and identifies which types of environmental cues are most effective for this task.
Methodology
The researchers utilized a simulated environment featuring a two-dimensional flow past a cylinder, which generates a chaotic trail of swirling eddies known as a von Kármán vortex street.
The Agent and AI Architecture
The agent is a virtual swimmer moving at a constant speed $U_{\text{swim}}$, set to 80% of the free-stream velocity $U_\infty$. This constraint necessitates the exploitation of the wake's low-velocity regions to move upstream effectively. The navigation policy was trained using V-RACER, a Deep RL algorithm employing a 128x128 neural network and "Remember and Forget Experience Replay" (ReF-ER) to enhance learning stability and efficiency.
Sensory Cues
Four distinct swimmer configurations were evaluated based on their sensory inputs ($s$):
- Naïve Swimmer: Moves directly toward the target without flow awareness.
- Flow-Blind RL Swimmer: Senses only its relative position to the target ($\Delta x, \Delta y$).
- Vorticity RL Swimmer: Senses relative position and local fluid rotation ($\omega_n, \omega_{n-1}$), a bio-mimetic approach inspired by fish lateral lines.
- Velocity RL Swimmer: Senses relative position and local fluid velocity ($u, v$).
The agents were trained over 20,000 episodes. Performance was evaluated across 12,500 episodes with randomized initial conditions to ensure robustness.
Results and Discussion
The choice of sensory input had a profound impact on navigation success. While biological studies often emphasize the importance of vorticity sensing, the AI performed significantly better when provided with local velocity data.
Performance Comparison
- Naïve Swimmer: Achieved a mere 1.3% success rate, as it was typically swept away by the current.
- Flow-Blind RL Swimmer: Reached a 39.4% success rate by learning general spatial strategies.
- Vorticity RL Swimmer: Improved to a 47.2% success rate.
- Velocity RL Swimmer: Achieved a near-perfect 99.9% success rate.
The velocity-sensing agent discovered a sophisticated strategy: it utilized the low-velocity "shadow" behind the cylinder to progress upstream and timed its movements to cross high-speed regions efficiently. Remarkably, these locally-informed policies achieved paths within 15-23% of the time-efficiency of a global optimal control planner that possesses perfect knowledge of the entire flow field.
Conclusion
This research demonstrates that Deep RL can effectively train autonomous agents to navigate unsteady fluid flows using only local measurements. The surprising superiority of velocity sensing over bio-mimetic vorticity sensing suggests that for robotic applications, direct velocity measurements may be a more robust predictor for navigation.
Future work will focus on extending these findings to three-dimensional environments, incorporating realistic physical constraints such as mass and inertia, and evaluating performance in the presence of sensor noise and more complex, non-linear fluid dynamics.
Summary updated