Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-07T21:04:01.453Z Has data issue: false hasContentIssue false

Optimizing low-Reynolds-number predation via optimal control and reinforcement learning

Published online by Cambridge University Press:  22 June 2022

Guangpu Zhu
Affiliation:
Department of Mechanical Engineering, National University of Singapore, 117575, Republic of Singapore
Wen-Zhen Fang
Affiliation:
Department of Mechanical Engineering, National University of Singapore, 117575, Republic of Singapore Key Laboratory of Thermo-Fluid Science and Engineering, MOE, Xi'an Jiaotong University, Xi'an 710049, PR China
Lailai Zhu*
Affiliation:
Department of Mechanical Engineering, National University of Singapore, 117575, Republic of Singapore
*
†Email address for correspondence: lailai_zhu@nus.edu.sg

Abstract

We seek the best stroke sequences of a finite-size swimming predator chasing a non-motile point or finite-size prey at low Reynolds number. We use optimal control to seek the globally optimal solutions for the former and reinforcement learning (RL) for general situations. The predator is represented by a squirmer model that can translate forward and laterally, rotate and generate a stresslet flow. We identify the predator's best squirming sequences to achieve the time-optimal (TO) and efficiency-optimal (EO) predation. For a point prey, the TO squirmer executing translational motions favours a two-fold $L$-shaped trajectory that enables it to exploit the disturbance flow for accelerated predation; using a stresslet mode expedites significantly the EO predation, allowing the predator to catch the prey faster yet with lower energy consumption and higher predatory efficiency; the predator can harness its stresslet disturbance flow to suck the prey towards itself; compared to a translating predator, its compeer combining translation and rotation is less time-efficient, and the latter occasionally achieves the TO predation via retreating in order to advance. We also adopt RL to reproduce the globally optimal predatory strategy of chasing a point prey, qualitatively capturing the crucial two-fold attribute of a TO path. Using a numerically emulated RL environment, we explore the dependence of the optimal predatory path on the size of prey. Our results might provide useful information that help in the design of synthetic microswimmers such as in vivo medical microrobots capable of capturing and approaching objects in viscous flows.

Information

Type
JFM Papers
Copyright
© The Author(s), 2022. Published by Cambridge University Press
Figure 0

Figure 1. (a) A squirming predator chases a point prey on the $y=0$ plane (finite-size spherical prey will be investigated in § 4.2). Here, $\boldsymbol {e}_{x^{\prime } y^{\prime } z^{\prime }}$ denotes the local coordinate system translating and rotating with the squirmer, while $\boldsymbol {e}_{xyz}$ is the global counterpart. (b) The predator captures the prey at time $t=T$, when the latter is within a cut-off distance $\varepsilon \ll 1$ away from the surface of the former. The coordinates of the squirmer centre and prey are $\boldsymbol {r}_{{s}}$ and $\boldsymbol {r}_{{p}}$, respectively; $\boldsymbol {r} = \boldsymbol {r}_{{p}} - \boldsymbol {r}_{{s}} = r( \sin \theta \,\boldsymbol {e}_x + \cos \theta \,\boldsymbol {e}_z )$ indicates their relative displacement. The orientation $\boldsymbol {e}_{{s}}$ of the squirmer deviates from $\boldsymbol {e}_z$ by an angle $\alpha$. The travelling distances of the predator and prey are denoted by $L$ and $\tilde {L}$, respectively. The insets show the disturbance velocity fields in the $y=0$ plane (in the lab frame) generated by a squirmer using the $B_{{F}}=1$, $B_{{L}}=1$ and $B_{{S}}=1$ modes. The variables here are all dimensionless.

Figure 1

Figure 2. Time-optimal (TO) and efficiency-optimal (EO) predating strategies using combined forward and lateral squirming modes of magnitudes $B_{{F}}$ and $B_{{L}}$, respectively. (a) Trajectories of the predator (blue) and point prey (red), where the latter is initially ahead of the former ($\theta _0=0^{\circ }$); circles and stars denote their initial and ending positions. The bottom images show how the two modes evolve in time. The left- and right-hand images depict the TO and EO strategies, respectively. (b) The prey’s velocity $\tilde {U}^z$ and accumulative travelling distance $\tilde {L}^z$ in $\boldsymbol {e}_z$; $\tau$ indicates when the TO predator takes the sharp turn. The inset illustrates its disturbance flow field in the $y=0$ plane right before $t=\tau$. (c) Capture time $T$ and predating efficiency $\eta$ of the TO and EO predators versus the initial bearing $\theta _0$ of the prey with respect to the predator. (d) Similar to (c), but for the predator’s consumed energy $E$ and travelling distance $L$. (e) The TO and EO predating behaviours when $\theta _0 = 30^{\circ }$ and $45^{\circ }$.

Figure 2

Figure 3. Adding a stresslet mode $B_{{S}}$ on top of the EO predator with $B_{{F}}$ and $B_{{L}}$ modes enhances its all-round performance. (a) Capturetime $T_{{eo}}$ and predatory efficiency $\eta _{{eo}}$ versus the initial bearing $\theta _0$ of the prey. (b) Similar to (a), but for the predator’senergy consumption $E_{{eo}}$ and travelling distance $L_{{eo}}$. (c) Trajectories of the EO predator and prey with (left-hand image) and without (right-hand image) the $B_{{S}}$ mode; the bottom images show the time sequences of the squirming modes. (d) The prey's velocity $\tilde {U}_{{eo}}^z$ and accumulative travelling distance $\tilde {L}_{{eo}}^z$ in $\boldsymbol {e}_z$, with and without the $B_{{S}}$ mode. The inset indicates the flow field when the $\tilde {U}_{{eo}}^z$ reaches the minimum.

Figure 3

Figure 4. Varying the maximum magnitude $B^{{max}}_{{S}}$ of the stresslet mode for the TO predator that swims using the ‘$F+L+S$’ combination of squirming modes. (a) Capture time $T_{{to}}$ versus $B^{{max}}_{{S}}$ for two initial orientations, $\theta _0=0^{\circ }$ and $\theta _0=60^{\circ }$, of the prey with respect to the predator. (b) Energy consumption $E_{{to}}$ and travelling distance $L_{{to}}$ versus $B^{{max}}_{{S}}$. (c) Similar to (a), but for the predating efficiency $\eta _{{to}}$. (d) Trajectories of the predator and prey for $B^{{max}}_{{S}}=0.1$, $0.75$ and $2$ marked in (c).

Figure 4

Figure 5. Effects of the rotational mode $B_{{R}}$ of the squirmer on its TO predatory performance. (a) Capture time $T_{{to}}$, and(b) predating efficiency $\eta _{{to}}$, are plotted versus the initial orientation $\theta _0$ of the prey with respect to the predator. Three combinations of squirming modes, ‘$F+R$’, ‘$F+L$’ and ‘$F+L+R$’, are adopted. Chasing dynamics of the ‘$F+R$’ mode are illustrated for (c) $\theta _0=0^{\circ }$, (d) $\theta _0=45^{\circ }$, and (e) $\theta _0=90^{\circ }$; those of the ‘$F+L+R$’ case are shown for (f) $\theta _0=0^{\circ }$,and (g) $\theta _0=90^{\circ }$. The insets plot the time evolutions of the modes.

Figure 5

Figure 6. Using RL to obtain the minimal capture time $T_{{to}}$ and maximum efficiency $\eta _{{eo}}$ of an ‘$F+L$’ predator chasing a point prey. The results are compared against those based on the optimal control approach.

Figure 6

Figure 7. Trajectories of the TO predators (blue) and their point prey (red) with initial bearing (a) $\theta =0^{\circ }$, (b) $\theta =15^{\circ }$, and (c) $\theta =30^{\circ }$, based on optimal control (curves) and RL (symbols). The time evolutions of the lateral mode (action) $B_{{L}}$ of the predators are shown in (d), (e) and (f), respectively. The forward mode $B_{{F}} \approxeq -1$ as in figure 2(a) for both methods, and is thus not shown here. The inset of (b) shows $\tau /T$ versus $\theta _0$ of the optimal control solutions.

Figure 7

Figure 8. Trajectories of the RL-trained TO ‘$F+L$’ predator and its finite-size spherical prey of radius $\chi =0.25$ initially located at (a) $\theta =0^{\circ }$ and (b) $\theta =30^{\circ }$; the lateral $B_{{L}}$ and forward $B_{{F}}$ modes of the squirmer are depicted in the bottom images. The circles (resp. stars) denote the initial (resp. final) positions of the predator and prey. (c) Dependence of the TO trajectory on the prey size $\chi \in [0, 6]$ when $\theta _0=15^{\circ }$. (d) Minimal capture time $T_{{to}}$ versus initial bearing $\theta _0$ and size $\chi$ of the prey; $\chi =0$ corresponds to a point prey studied via both optimal control and RL, whereas the results for a finite-size prey ($\chi >0$) are obtained by RL. For all cases here, the cut-off distance is $\varepsilon = 5\times 10^{-2}$, and the initial surface-to-surface distance between predator and prey is $|d_0| = 2$ as in § 3.