Hostname: page-component-7b7567c8c-kwt9d Total loading time: 0 Render date: 2026-11-15T04:19:34.659Z Has data issue: false hasContentIssue false

Active cloaking in Stokes flows via reinforcement learning

Published online by Cambridge University Press:  30 September 2020

Mehdi Mirzakhanloo
Affiliation:
Department of Mechanical Engineering, University of California, Berkeley, CA94720, USA
Soheil Esmaeilzadeh
Affiliation:
Department of Energy Resources Engineering, Stanford University, Stanford, CA94305, USA
Mohammad-Reza Alam*
Affiliation:
Department of Mechanical Engineering, University of California, Berkeley, CA94720, USA
*
†Email address for correspondence: reza.alam@berkeley.edu

Abstract

Hydrodynamic signatures at the Stokes regime, pertinent to motility of micro-swimmers, have a long-range nature. This implies that movements of an object in such a viscosity-dominated regime can be felt tens of body-lengths away and significantly alter dynamics of the surrounding environment. Here, we devise a systematic methodology to actively cloak swimming objects within any arbitrarily crowded suspension of micro-swimmers. Specifically, our approach is to conceal the target swimmer throughout its motion using cooperative flocks of swimming agents equipped with adaptive decision-making intelligence. Through a reinforcement learning algorithm, the cloaking agents experientially learn an optimal adaptive behaviour policy in the presence of flow-mediated interactions. This artificial intelligence enables them to dynamically adjust their swimming actions, so as to optimally form and robustly retain any desired arrangement around the moving object without disturbing it from its original path. Therefore, the presented active cloaking approach not only is robust against disturbances, but also is non-invasive to motion of the cloaked object. We then further generalize the proposed approach and demonstrate how our cloaking agents can be readily used, in any region of interest, to realize hydrodynamic invisibility cloaks around any number of arbitrary intruders.

Information

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

Figure 1.(a) Schematic representation of the archetypal puller and pusher swimmers. The force dipole ($\pm f_0 \boldsymbol {e}$) exerted by each swimmer to the surrounding fluid is shown by red arrows. Vector $\boldsymbol {e}$ denotes the swimming direction, and curly blue arrows demonstrate the direction of the induced disturbing flows in each case. (b) Schematic representation for a system of interacting micro-swimmers. The position vector of swimmer $i \in \{ 1 \ldots N \}$, swimming with speed $V_s$ in direction $\boldsymbol {e}^{i}$, is denoted by $\boldsymbol {r}^{i}$ with respect to the fixed frame of reference. Here $N=6$, and the system includes both pusher and puller swimmers.

Figure 1

Figure 2.(a) Schematic representation of the presented method for cloaking an intruder (here a puller swimmer is shown in green) using properly positioned single ($\psi =0$) or double ($\psi \neq 0$) cloaking agents (here a pusher swimmer is shown in blue). To compute the cloaking efficiency of different arrangements, the induced fluid disturbances are measured over a surrounding (dashed) ring of radius $R$. The dipole strength of each smart agent is half of the intruder's (i.e. $\mathscr {D}/2$). The agents are positioned on a (highlighted dashed) ring of radius $r_0$ around the intruder – i.e. their separation distance from the intruder is set to $r_0$, and their relative position vectors are denoted by $\boldsymbol {r}_1$ and $\boldsymbol {r}_2$, respectively. The angle between these two vectors is denoted by $\psi$ and represents a measure of symmetry. Also, $\beta$ is defined as the angle between the intruder's swimming direction (green arrow) and the position vector $\boldsymbol {r}_1$. (b) Magnitude of the net fluid disturbances ($\mathscr {U}_c$) induced by the cloaked intruder and its cloaking agents, normalized by that of an isolated intruder ($\mathscr {U}_i$), is plotted for various cloak arrangements as a function of distance from the swimmer (R). Specifically, $\mathscr {U}_c/\mathscr {U}_i$ is plotted as a function of $R/r_0$ for $\psi = 0$, ${\rm \pi} /4, {\rm \pi}/2, 3{\rm \pi} /4$ and ${\rm \pi}$, where $\beta$ is set to ${\rm \pi} /2$. (c) The cloaking efficiency of the arrangements associated with each of the $\psi$-angles presented in panel (b) is plotted as a function of $R/r_0$. Insets also demonstrate how the cloaking performance (in terms of $\eta \%$) varies with $\psi$ (I) and $\beta$ (II), respectively. For all cases presented in (I), $\beta$ is fixed to ${\rm \pi} /2$, and for those presented in (II), $\psi$ is fixed to ${\rm \pi}$. The presented values are measured at $R/r_0 = 5$, 10 and 20.

Figure 2

Figure 3.(a) Schematic representation of the reinforcement learning algorithm coupled with the presented flow-mediated interaction dynamics in viscous environments. (b) Schematic illustration of the state space $(\xi ,\theta )$, when two of our smart micro-swimmers (agents A and B shown in blue) attempt to form a desired active cloak around a randomly moving intruder (green).

Figure 3

Figure 4.(b,c,d,e,f,g). (a) The learning process is assessed in terms of the agent's success rate and number of the required swimming actions. After every $1000$ training episodes, a set of $100$ random active cloaking tests have been performed using a purely deterministic policy based on the most updated $Q$-matrix at the moment. Each of the testing episodes starts with an intruder randomly entering a guarded region (shaded in grey; see panels b–g) from a random position and swimming toward a random direction, while the cloaking agents are initially positioned on the sides of the entrance (see, e.g. panels b–g). The test results are presented throughout the learning phase in terms of (i) the success rate (shown in green) of the agents in catching the intruders and forming the desired active cloak; as well as (ii) the number of total state changes (average $\pm$ standard error) in each set of testing episode (shown in red). (b–d) Benchmarks of different learning stages. The panels represent a sample test on realizing an active cloak around a random intruder, performed in three different learning stages, i.e. non-adaptive (b), intermediate-adaptive (c) and well-adaptive (d) stages. The episode number ($E$) corresponding to each of the panels (b–d) is marked in panel (a), and agents use the most updated behaviour policy at each stage. The intruder (here a puller shown in green) and the cloaking agents (pushers shown in blue) are also represented both at the initial and final positions with stripe and solid schematics, respectively. Trajectories of the swimmers are shown in each panel by dashed lines, and colour coded based on the swimming speed at the moment – see the legend in panel (c). The assigned target points (to realize the desired symmetrical active cloak) for each of the agents is also marked in each panel (pink markers). (e–g) Sample tests performed using well-trained cloaking agents, equipped with well-adaptive behaviour policy, which is obtained after convergence of the success rate to $100\,\%$ (see panel a). The number of required swimming actions (or, equivalently, the number of state changes, $N_s$) is denoted on each panel. At this stage, the agents are capable of identifying the shortest non-invasive paths in forming desired active cloaks around any randomly moving intruder. The target arrangement here is to symmetrically position on the sides of the intruder, with a separation distance $r_0/L_s =5$ (see, e.g. panel e). The learning hyper-parameters are set to $\alpha =0.3, \gamma =0.95$ and $\epsilon =0.01$.

Figure 4

Figure 5.Evolution of the normalized element-wise sum of the $Q$-matrix ($\bar {\varSigma }$) through successive training episodes ($E$) during the learning phase. The agents’ behaviour policy is also visualized (see insets I–IV) by colour coding over a selected sector of the state space. Its evolution is monitored at four different learning stages (marked over the curve by I-IV), and eventually converges to the optimal behaviour policy. Here, each swimming action is presented by a colour code (see the colour-bar legend), and every point in the state space is shaded by a colour representing the agents’ current understanding of the best action at that specific state. The training episodes are the same as those presented in figure 4 for which the learning hyper-parameters are set to $\alpha =0.3, \gamma =0.95$ and $\epsilon =0.01$.

Figure 5

Figure 6.Time evolution of a crowded suspension of intruders (shown in green), each of which are actively cloaked by a pair of smart micro-swimmers (shown in blue). Here the intruders are freely moving toward random directions in space – specified by green arrows in (a). Periodic boundary conditions are imposed on the presented panels – i.e. each panel represents just a window of an infinite domain at that specific moment. As demonstrated through snapshots (a–d) of the system's time evolution (see also supplementary movie S1 available at https://doi.org/10.1017/jfm.2020.665), using their adaptive decision-making intelligence, our agents are able to robustly maintain the cloak formation in the presence of complex hydrodynamic interactions. They are also able to immediately restore the desired formation after any severe close encounters (b,c) which cause major disruptions to the cloak. As a benchmark, the evolution dynamics of four sample groups (G.1–4) are tracked in the panels. Specifically, the close encounter between G.1 & G.2 as well as G.3 & G.4 are marked by red dashed circles in panels (b) and (c), respectively. Also, trajectories of the swimmers in G.1 are shown by solid lines throughout the time, while other groups’ trajectories are only demonstrated (by dashed lines) within the last $25T_s$ of their motion. The time corresponding to each snapshot is noted in each panel, and swimmer schematics are added to panels (a) and (d) for readability. Here, the goal was to realize an active version of the symmetric cloak presented in figure 2. Thus, for reference, rings of radii $r/L_s=5$ (that is equal to the predefined desired separation distances) are depicted around intruders in the final snapshot (d).

Figure 6

Figure 7.(a) Time evolution of the overall cloaking performance ($\eta \%$) corresponding to the flock of smart micro-swimmers deployed within the crowded suspension presented in figure 6 to cloak random intruders. Here $\eta$ ($\%$) is monitored over the entire time evolution at ranges $R/L= 1$ (red solid line), $R/L= 10$ (black dashed line) and $R/L= 100$ (black dash–dotted line), where $L$ is the length of each presented window in figure 6. (b–e) Snapshots of the induced fluid disturbances (see also supplementary movie S1) are visualized (by colour shading) over the entire system (cloak: on), and also compared to those induced when no cloaking agents are deployed (cloak: off). The moment corresponding to each of the snapshots in (b–e) is marked on the curve in (a). Specifically, we demonstrate the snapshots at (i) an early stage, where the desired cloaks ($\eta \approx 98\,\%$) have been just formed (figures 6a and 7b); (ii) the moments of close encounters happening between G.1 & G.2 (first disruption, see figures 6b and 7c) as well as G.3 & G.4 (second disruption, see figures 6c and 7d), respectively, where the implemented cloaks undergo severe disruptions; and (iii) a final recovered stage (figures 6d and 7e) where the agents are once again perfectly in the desired cloaking arrangements ($\eta \approx 93\,\%$).

Figure 7

Figure 8.Applicability of a learned policy (measured in terms of success rate) in cloaking intruders with various swimming speeds ($v^{i}$), once adopted by agents with different speed characteristics (i.e. $v^{a}$ and $\delta v$). The employed policy (${\rm \pi} ^{*}$) is specifically the one learned by agents with $\delta v/v^{a} = 0.5$, through episodes of catching intruders swimming in random directions with the speed of $v^{i}/v^{a} = 1$ (see figure 4). The reference point is marked (with a red asterisk) on the parameter space ($v^{i}/v^{a}, \delta v/v^{a}$). To assess the generality of this policy, we run a set of $25$ random active cloaking tests (similar to those demonstrated in figure 4) for every point in the presented parameter space (i.e. corresponding to each specific choice of $v^{i}/v^{a}$ and $\delta v/v^{a}$). Colour shading represents the success rate of the deployed agents (equipped with the same ${\rm \pi} ^{*}$) in forming desired cloaks (i.e. the one with $\beta ={\rm \pi} /2$ and $\psi = {\rm \pi}$ in figure 2) around the corresponding randomly moving intruders. Three distinct regions can be identified in the parameter space: (I) the region of ideal applicability within which the learned policy is fully effective with a success rate of 100 %; (II) the region associated with $v^{i} > v^{a} + \delta v$, for which catching the intruder is not physically possible; and (III) a transition region.

Figure 8

Figure 9.Applicability of a learned policy in realizing multi-agent active cloaks for random intruders. Here, the employed policy (${\rm \pi} ^{*}$) is the one obtained through consecutive learning episodes of double-agent cloaking, as demonstrated in figure 4. Once the agents are equipped with this behaviour policy, they can be readily deployed to form any other forms of cloaking arrangements around random intruders. Here, as a benchmark, we demonstrate samples of triple- and quadruple-agent cloaking strategies in panels (a) and (b), respectively. Similar to those presented in figure 4 (b–g), each testing episode starts with an intruder entering a guarded region (shaded in grey) from (toward) a random position (direction), while the cloaking agents are initially positioned on the sides of the entrance. The intruder (here a puller, shown in green) and the cloaking agents (pushers shown in blue) are also represented both at the initial and final positions with stripe and solid schematics, respectively. Trajectories of the swimmers are shown in each panel by dashed lines, and colour coded based on the swimming speed at the moment – see the legend in panel (b). The assigned target points for each of the agents (to realize the desired symmetrical active cloaks) are also marked in each panel (with pink markers). Note that the agents (equipped with an optimal behaviour policy) are capable of identifying the shortest non-invasive paths toward forming any desired active cloak around any randomly moving intruder. The target arrangements here are symmetric configurations, achieved by positioning three (a) or four (b) agents around the subject, with a separation distance of $r_0/L_s =5$ (denoted by a pink circle around the intruder).

Figure 9

Figure 10.The learning process repeated for each alternative reward signal, $r_n^{(1)}$ to $r_n^{(5)}$, is assessed in terms of the agents’ success rate. Similar to the original process demonstrated in figure 4, a set of $100$ random active cloaking tests have been performed after every $1000$ training episodes, where the agents use a purely deterministic (greedy) policy based on the most updated $Q$-matrix at the moment. Results are presented for each case throughout the corresponding learning process, in terms of the success rate of the agents in catching the random intruders and forming desired active cloaks. The target arrangement is defined similar to the original process, that is, the symmetric double-agent cloaking with a separation distance of $r_0/L_s =5$. Learning hyper-parameters are also kept the same – i.e. $\alpha =0.3, \gamma =0.95$ and $\epsilon =0.01$. Here, the learning processes represented by curves (1)–(4) have converged (as marked in green) to the 100 % success rate after $\sim$25 000, 100 000, 260 000 and 270 000 training episodes, respectively. Note that curve (1) is the originally proposed learning process, also presented in figure 4(a).

Figure 10

Figure 11.Performance of the implemented model predictive control (as an alternative agent-control strategy) is compared on a benchmark test case against the performance of smart agents equipped with the optimal behaviour policy (${\rm \pi} ^{*}$) obtained through the proposed reinforcement learning-based algorithm. Similar to the sample test cases presented in figure 4 (b–g), the testing episode starts with an intruder entering a guarded region (shaded in grey) from (toward) a random position (direction), while the cloaking agents are initially positioned on the sides of the entrance. Throughout the process, cloaking agents in panel (a) are actively controlled through a model predictive control scheme that targets the pre-identified optimal double-agent cloaking configuration. On the other hand, the agents deployed in panel (b) use their own adaptive decision-making intelligence encoded in the learned optimal policy (${\rm \pi} ^{*}$) to realize the desired cloak. In both panels, the intruder (here, a puller shown in green) and the cloaking agents (pushers shown in blue) are represented both at their initial and final positions, with stripe and solid schematics, respectively. Trajectories of the swimmers are shown in each panel by dashed lines (colour coded based on the instantaneous swimming speed). The number of swimming actions (or, equivalently, the number of state changes $N_s$) taken in each case to form the desired cloak around the intruder is also reported within each panel.

Figure 11

Figure 12.(a) Applicability of the learned behaviour policy for agent control, when the simulation of hydrodynamics incorporates the swimmers’ realistic 3-D geometry. Specifically, the swimmers’ hydrodynamics and their flow-mediated interactions are modelled using a high-accuracy 3-D simulation framework (proposed by Gallagher & Smith 2018) based on discretization of the regularized Stokeslets in boundary integral (RS-BI) formulation (solid trajectories). For the sake of comparison, we also plot (dashed line) the trajectories presented in figure 5(f) associated with the test case conducted using ideal cloaking agents, modelled through the theoretical singularity method (as described in § 3). In both cases, the cloaking agents are equipped with the optimal behaviour policy (${\rm \pi} ^{*}$), obtained through the consecutive learning episodes demonstrated in figure 4. Here, the desired arrangement for the deployed agents is to symmetrically position themselves on the sides of the intruder (with a separation distance $r_0/L_s =5$) that is properly achieved in both cases. The assigned target point for each agent is marked (in pink) at the final stages. Note that the RS-BI approach precisely models realistic geometry of the intruder and our swimming agents, as demonstrated in their final positions in panel (a). Here, as a benchmark, 3-D models of self-propelled sperm cells (which propel based on the flexible-oar mechanism) are used to represent our pusher-type swimming agents. The 3-D geometry of these model sperm cells and their beating pattern (i.e. swimming stroke) are presented in panel (b). The puller-type intruder, on the other hand, is simulated using a 3-D model bi-flagellate algae, for which the swimming trajectory is also monitored over time, throughout the presented window in inset (I) of panel (a). The 3-D geometry of the deployed bi-flagellate swimming cell along with its beating pattern is presented in panel (c).

Figure 12

Figure 13.Effectiveness of the double-agent symmetric cloak formed at the final stage of the numerical experiment (presented in figure 12) that incorporates the swimmers’ realistic geometry by simulating hydrodynamics using a high-accuracy 3-D framework based on discretization of the regularized Stokeslets in boundary integral (RS-BI) formulation. In panel (a) we compare the efficiency ($\eta$, quantified as a function of $R/r_0$) of the realized cloak (shown in red with ‘o’ markers) to that associated with an ideal set of cloaking agents (shown in blue with ‘x’ markers) modelled through the theoretical singularity method as described in § 3. Inset also compares the model force dipoles used in the singularity method, against the 3-D realistic geometries used in the RS-BI simulation. In panel (b) we visualize performance of the cloak formed using the latter approach, where a realistic geometry of the intruder and cloaking agents are incorporated into the simulation of hydrodynamics. The colour shading represents the magnitude of induced disturbing flows. For the sake of comparison, we also visualize (via colour shading) the magnitude of fluid disturbances induced by an isolated intruder (c), when no cloaking agents are deployed (i.e. cloak: off). The presented snapshots correspond to the final stage of the numerical experiment demonstrated in figure 12, and the scale bars denote $20L_s$.

Mirzakhanloo et al. Supplementary Movie

(a) Time evolution of a crowded suspension of intruders (shown in green), each of which actively cloaked by a pair of smart micro-swimmers (cloaking agents shown in blue). Here the intruders are freely moving toward arbitrary directions in space. Periodic boundary conditions are imposed on the presented panel -- i.e. it represents just a window of an infinite domain. As evident in the system's time evolution, using their adaptive decision-making intelligence, our agents are able to robustly maintain the cloak formation in the presence of complex hydrodynamic interactions. They are also able to immediately restore the desired formation after any sever close encounters which cause major disruptions to the cloak. (b) Magnitude of the disturbing flows (i.e. flow signatures) induced by the actively cloaked system, monitored throughout the presented time evolution.

Download Mirzakhanloo et al. Supplementary Movie(Video)
Video 4.5 MB