1. Introduction
Active colloidal particles – such as micro-organisms (Brennen & Winet Reference Brennen and Winet1977; Goldstein Reference Goldstein2015) and synthetic microswimmers (Ebbens & Howse Reference Ebbens and Howse2010; Thutupalli et al. Reference Thutupalli, Geyer, Singh, Adhikari and Stone2018) – are known to organise themselves in emergent structures via fluid-mediated interactions. An active particle can create flow around it even if it is not moving due to non-equilibrium processes on its surface, which could be of biological origin (Brennen & Winet Reference Brennen and Winet1977) or of phoretic origin (Ebbens & Howse Reference Ebbens and Howse2010). Classifying the irreducible components of flow produced by active particles provides a handle through which we can tune inter-agent interactions to design higher order (hierarchical) assemblies of active particles which display a desired self-organisation and tuneable emergent dynamics.
A topic of recent interest is the application of tools from machine learning to bear upon questions of inference and design principles in active matter systems (Cichos et al. Reference Cichos, Gustavsson, Mehlig and Volpe2020; Tsang et al. Reference Tsang, Tong, Nallan and Pak2020; Supekar et al. Reference Supekar, Song, Hastewell, Choi, Mietke and Dunkel2023; Boffi & Vanden-Eijnden Reference Boffi and Vanden-Eijnden2024). Convolutional neural networks (CNNs) have been used for performing particle image velocimetry (Rabault et al. Reference Rabault, Kolaas and Jensen2017), particle tracking (Newby et al. Reference Newby, Schaefer, Lee, Forest and Lai2018) and feature extraction (Hannel et al. Reference Hannel, Abdulali, O’Brien and Grier2018). To the best of our knowledge, a work on estimating activity from the flow field around active particles has not been reported. To this end, we use deep-learning techniques given fluid flow around particles to infer the irreducible components of activity.
The remainder of the paper is organised as follows. In § 2, we describe a method to compute irreducible components of flow around active particles. The methodology utilising deep learning to learn activity from fluid flow around active particles is given in § 3. We apply the method to construct irreducible components of flow around an active particle in § 4. We extend this method to infer flow around many particles in § 5. Finally, we conclude in § 6 by summarising our main results and suggesting directions for future investigations.
2. Irreducible components of flow around active particles
In this section, we consider the problem of computing irreducible components of flow around active colloidal particles in a Stokesian fluid of viscosity
$\eta$
. At low Reynolds number, as appropriate to active colloidal particles, the fluid flow
$\boldsymbol v$
satisfies the Stokes equation (Lauga Reference Lauga2020)
Here
$p$
is the fluid pressure and
$\boldsymbol f$
is the force density. In Appendix A, we show that the flow around active particles can be written in terms of irreducible components
$\boldsymbol{v}^{l\sigma }(\boldsymbol{k})$
. The sum of the irreducible components in the Fourier space is
\begin{align} {\boldsymbol{v}}^M(\boldsymbol{k}) = \sum _{l =1}^\infty \sum _{\sigma \in \{s,a,t\}} \boldsymbol{v}^{l\sigma }(\boldsymbol{k}). \end{align}
As described in the Appendix A, the flow
$\boldsymbol{v}^{l\sigma }(\boldsymbol r)$
decays as
$r^{-l}$
in an unbounded three-dimensional flow. Here
$\sigma$
can take three values for each
$l$
:
$\sigma =s$
,
$\sigma =a$
and
$\sigma =t$
, which correspond to the three irreducible modes allowed for each
$l$
. See Appendix A for details. The terms
$\boldsymbol v^{1s}$
is the flow due to a net external force, while
$\boldsymbol v^{2a}$
is the flow due to a net external torque. Since an active particle has no external force or torque on it, the two leading irreducible components of exterior flow created by active particles are
The two irreducible components of flow – the
$2s$
mode (or the stresslet (Lauga Reference Lauga2020)) and the
$3t$
mode (or the source dipole (Lauga Reference Lauga2020)) – is known to fit flow around a wide range of active particles (Drescher et al. Reference Drescher, Goldstein, Michel, Polin and Tuval2010, Reference Drescher, Dunkel, Cisneros, Ganguly and Goldstein2011; Guasto, Johnson & Gollub Reference Guasto, Johnson and Gollub2010; Ghose & Adhikari Reference Ghose and Adhikari2014; Delmotte et al. Reference Delmotte, Keaveny, Plouraboué and Climent2015; Goldstein Reference Goldstein2015; Thutupalli et al. Reference Thutupalli, Geyer, Singh, Adhikari and Stone2018; Lauga Reference Lauga2020; Krishnamurthy & Prakash Reference Krishnamurthy and Prakash2023; Marmol, Gachon & Faivre Reference Marmol, Gachon and Faivre2024; Baruah et al. Reference Baruah, Padhan, Maji, Pandit and Sharma2025). The leading fluid flow due to force-free and torque-free active particles is due to the two modes
$\boldsymbol{Q}^{(2s)}$
and
$\boldsymbol{Q}^{(3t)}$
. In addition, we can use uniaxial parameterisation of the single-layer density, which is true for a wide range of micro-organisms having symmetry about a given axis. For such a scenario, with
$\boldsymbol{p}$
being the orientation of the particle, we choose
Here
$n_d$
is the space dimension and
$\boldsymbol{I}$
is the identity tensor, while
$s_0$
and
$d_0$
are constants. We note that the constants
$s_0$
and
$d_0$
are related (Singh, Ghose & Adhikari Reference Singh, Ghose and Adhikari2015) to the
$B_1$
and
$B_2$
modes of the squirmer model (Lighthill Reference Lighthill1952; Blake Reference Blake1971; Pedley Reference Pedley2016; Lauga Reference Lauga2020). The flow field due to these two modes is present in figure 1.
(a) The neural network architecture for computing force field from input velocity field. Each layer is a convolution layer with
$3 \times 3$
kernel size and padding to preserve the dimension. Each block represents the image output of that layer in terms of
$\text{height} \times \text{width} \times \text{channels}$
. The network goes till 128 channels (indicated by the dotted arrow). (b) Flow due to
$2s$
and
$3t$
modes of the active slip. A combined flow is also shown. Position
$\boldsymbol c$
is shown by a circle, while the orientation
$\boldsymbol p$
is shown by a solid arrow. The flow streamlines have been overlaid on a pseudo colour plot of the speed.

For reasons explained, we truncate the expression of the fluid flow in (2.2) to the leading modes
$2s$
(stresslet) and
$3t$
(source dipole). For this choice, the expression for the net force density in the fluid, defined in (2.1), is written as the sum
Here,
$M$
is a Gaussian mollifier whose mean is at the centre of the particle and the variance equals
$2b^2/\unicode{x03C0}$
(Maxey & Patel Reference Maxey and Patel2001), where
$b$
is the radius of the particle. In the next section, we present a deep-learning method to infer the individual components of active force density (and also the positions and the orientations of the particles) given fluid-flow data from the flow field around single and many active particles. See Appendix A for further details.
3. Methodology
Finding the velocity field solution to the Stokes equation with a given force density is discussed in the previous section. In addition, the velocity field may also be obtained from experimental systems using methods such as particle image velocimetry (PIV) (Adrian et al. Reference Adrian1991; Willert & Gharib Reference Willert and Gharib1991). On the other hand, the inverse problem of finding the force density (and its irreducible components) from given flow-field data is non-trivial. This leads us to a neural-network-based learning approach for achieving the force density and corresponding irreducible modes using the universal function approximator capacity of neural networks (Hornik, Stinchcombe & White Reference Hornik, Stinchcombe and White1989).
To effectively approximate the inverse function using deep learning, we begin by constructing a sufficiently large and diverse dataset. This dataset is partitioned into training, validation and test subsets. The model is trained on the training set to learn the mapping from velocity to force density. Throughout training, the validation set is used to monitor accuracy. Further, the model is evaluated on the independent test set to verify the model’s performance on unseen data. We consider flow data with both a fixed and variable number of particles. For a fixed number of particles, we consider a single particle in a grid and four particles in a grid, which can be generalised to
$N$
particles. For a variable number of particles, we choose
$N$
to vary from one to four. We generate datasets of 4000 realisations corresponding to systems with different particle counts on a
$128 \times 128$
domain. The grid is divided into equal subregions, and one particle is randomly placed within each to ensure non-overlapping configurations in the case of more than one particle.
The
$i$
th particle, whose centre is located at
$\boldsymbol c^{(i)}=(x^{(i)}, y^{(i)})$
, is assigned an orientation vector
$\boldsymbol{p}^{(i)} = (\cos \theta ^{(i)}, \sin \theta ^{(i)})$
, where
$\theta ^{(i)}$
is an angle made by the orientation vector with the axis of Cartesian coordinates
$\hat x$
-axis. The angle
$\theta ^{(i)}$
is selected from a discretised set of angles with
$1^{\!\circ}$
resolution. Discretisation of orientation space facilitates improved learning by the neural network. Each particle is assigned randomised stresslet strength
$s_0 \in [800, 1200]$
and source dipole strength
$d_0 \in [12\,000, 16\,000]$
. The data are partitioned into training, validation and test sets comprising 2800, 600 and 600 samples, respectively.
The neural network used in this work is a fully convolutional architecture designed to approximate the inverse problem of (2.1). The input is a two-channel (
$x$
and
$y$
components of the fluid velocity
$\boldsymbol v$
) tensor
$ \boldsymbol v \in \mathbb{R}^{H \times W \times 2}$
, representing the force field on a two-dimensional grid of height
$ H$
and width
$ W$
. The network output is
$ \tilde {\boldsymbol f} \in \mathbb{R}^{H \times W \times 2}$
, which approximates the flow field for the given velocity field. Each convolutional layer
$(l)$
applies a localised linear transformation followed by a nonlinear activation function (Goodfellow et al. Reference Goodfellow, Bengio, Courville and Bengio2016). The network consists of a composition of such layers as shown in figure 1. The operation at layer
$ l$
is given by
Here,
$C_{l}$
is the depth of
$l$
th convolutional kernel. Where
$ z^{(l)} \in \mathbb{R}^{ H \times W \times C_l}$
is the input to the layer,
$ W^{(l)} \in \mathbb{R}^{C_{l+1} \times C_l \times k \times k}$
is a learnable convolutional kernel of size
$ k \times k$
, and
$ b^{(l)} \in \mathbb{R}^{C_{l+1}}$
is a bias vector. The symbol
$ *$
denotes the two-dimensional convolution operation, and
$ g$
is a nonlinear activation, ReLU, defined in (3.1). Here ReLU is preferred over the sigmoid activation function because it helps prevent the saturation of artificial neurons (Glorot et al. Reference Glorot, Bordes and Bengio2011). To improve generalisation and reduce overfitting, dropout is applied after each activation with a dropout probability of
$ 0.2$
. The neural network is trained with mean squared error (MSE) as the loss function and Adam (Kingma & Ba Reference Kingma and Ba2014) as the optimiser.
We note that our inference methodology is only applicable for low-Reynolds-number scenarios when the Stokes equation is a valid description of flow around particles. For active colloidal particles – such as micro-organisms (Goldstein Reference Goldstein2015) and synthetic microswimmers (Ebbens & Howse Reference Ebbens and Howse2010) – the Reynolds number is vanishingly small and fluid flow is indeed Stokesian (Lauga Reference Lauga2020). Crucially, the existence of a valid Stokes flow implies that a one-to-one relation exists between the force density and fluid velocity (Lauga Reference Lauga2020). Thus, the inverse problem of obtaining the force density from a given Stokesian flow is well-posed for active colloidal particles. Indeed, we show that the CNN effectively learns a direct field-to-field mapping to obtain force density from flow field data for both the single-particle and multiple-particle cases accurately. The method also works for data having a variable number of particles. We can also infer about the contribution of stresslet and source dipole in the flow field using a new algorithm, as we describe later, that works for an arbitrary number of particles given a predicted force density from the neural network.
Flowchart of the method for the predictions of the model for a single particle: the velocity field for inference is shown along with a schematic of the neural network. The neural network predicts the force density field (here only magnitude is shown for clarity) from input velocity field. The velocity field obtained from predicted force is reconstructed with good accuracy. See Algorithm1 for details of the method. The flow streamlines have been overlaid on a pseudo colour plot of the speed.

4. Inferring one-particle flow
Active and self-propelled particles in the absence of applied forces or torques, with uniaxial parameterisation, can be characterised by the flow generated. The stresslet
$\boldsymbol{Q}^{(2s)}$
generates flows that neither translate nor rotate the particle. The translational effect is generated by the source dipole
$\boldsymbol{Q}^{(3t)}$
. The sign of stresslet strength
$s_0$
with respect to source dipole strength
$d_0$
determines how the active particle acts. An active particle behaves as ‘puller’, pulling the fluid inward along the swimming direction and forcing fluid away from their sides, if
$s_0/d_0 \gt 0$
. The swimmer is said to be a ‘pusher’, pushing fluid away along their swimming direction and drawing fluid into the sides of their bodies, if
$s_0/d_0 \lt 0$
Lauga (Reference Lauga2020).
We consider the case of a single particle in a
$128 \times 128$
grid, which is a slice from a large grid with periodic boundaries. The velocity field of the grid is fed into the neural network as input. The network computes the force density
$\tilde{\boldsymbol{\kern-2.5pt f}} = (\tilde f_x , \tilde f_y)$
by approximating the inverse problem accurately as shown in figure 2. The orientation
$(\boldsymbol{p})$
of the particle is computed by taking local average of predicted force density in the neighbourhood where the magnitude of predicted force density is maximum. The position
$(\boldsymbol{c})$
of the particle, strength of stresslet (
$s_0$
) and the source dipole (
$d_0$
) are estimated by minimising the squared error of true force density and estimated force density with gradient descent. The algorithm for estimating these parameters is given in Algorithm1.
Particle detection and parameter estimation for N particles

The prediction of the neural network gives a very accurate representation of force density when compared with the ground truth as seen in figure 2. We reconstruct the velocity field using the parameters obtained from the predicted density using Algorithm1. The algorithm returns position and orientation of the particle along with the strengths of the stresslet (
$2s$
mode) and source dipole (
$3t$
mode). These parameters can be used to reconstruct velocity field using (2.1)–(2.6). The predicted velocity field represents the flow with a good accuracy and we are able to decompose the flow into
$2s$
and
$3t$
modes. The predictions of the stresslet and source dipole strength give very close results with respect to the ground truth having
$3.26 \,\%$
and
$5.70\,\%$
error, respectively, averaged over 600 test cases unseen to the neural network. We have predicted the parameters using the neural networks for particles with arbitrary positions and orientations and reconstructed the velocity field (see figure 3).
True (a) and predicted (b) velocity fields due to different values of stresslet strength
$(s_0)$
, source dipole strength
$(d_0)$
, orientation
$(\boldsymbol{p})$
and particle position
$(\boldsymbol{c})$
. Values have been rounded to the nearest integer for clarity. We show four distinct examples for illustration. The flow velocity streamlines have been overlaid on a pseudo colour plot of the flow speed. Here,
$\theta_p$
is the angle made by the particle with the positive
$x$
-axis of Cartesian coordinates.

Predictions of the model for multiple particles in a grid. The flow velocity streamlines have been overlaid on a pseudo colour plot of the flow speed. Magnitude of the force density is also shown. Our inference method using deep learning predicts location and orientation of the particles as well as the force density in the fluid due to them.

5. Inferring many-particle flow
We extend our model further to test with flow due to
$N$
particles. Here we consider the case of
$N=4$
. In an arbitrary velocity field, we first detect the number of particles in the box, detecting the number of locations where force density magnitude is concentrated over some small local area using scikit-ndimage (Van der Walt et al. Reference van der Walt, Schönberger, Nunez-Iglesias, Boulogne, Warner, Yager, Gouillart and Yu2014). We ensure there is sufficient distance between two different regions associated with particles while detecting. The approximate particle position can be guessed as the centre of mass (force density magnitude) of that region. Now each of these regions can be thought of as a single-particle system and the estimation methods of a single particle can be applied. The process is explained in Algorithm1.
The neural network is able to predict the force density effectively as seen from the comparison with ground-truth force density in figure 4. From the predicted force density, we get the parameters by Algorithm1. The final output of this procedure is a set of inferred parameters for all particles:
$\{\boldsymbol p^{(i)}$
,
$\boldsymbol c^{(i)}$
$s_0^{(i)}$
and
$d_0^{(i)}\}_{i=1}^N$
. These parameters can be used to reconstruct the velocity field using the results of § 2. Thus, our method using deep learning to extract force density and then fitting that data to the known model for the fluid flow allows prediction in a system of many particles.
In addition, our method can be applied to a variable number of particles. We note that our network is capable of predicting the force density accurately even if the number of particles is varied, while the Algorithm 1 is indifferent to the number of particles. We plot the training loss and validation loss in figure 5 for cases of fixed and variable number of particles. For the case of a fixed number, we show data for the system with one and four particles, while in the case of a variable number of particles, we have considered one to four particles. Histogram of error is shown in figure 6 in Appendix B. Thus, robustness of the method is demonstrated by showing that the model works for a variable number of particles. Moreover, we show that the model works even when we change spatial resolution of the data. See figure 7 in Appendix B.
6. Summary and conclusions
In this paper, we have studied the inverse problem of computing activity of colloidal particles from the specified flow field data around them by combining artificial intelligence and physics-based methods. Such a method is particularly attractive since PIV data from experiments can provide us with flow field data. Using deep learning, we predict activity from the two-dimensional flow field data created by active particles. We achieve this by inverting the flow field data to obtain force density in the fluid using CNNs. The reconstructed flow field from the predicted force density is in excellent agreement with the true flow field. Finally, using a new inference algorithm, we infer the position and orientation of active particles along with irreducible components of the velocity (stresslet and source dipole).
The training loss and validation loss over epochs indicating that the model is learning well without overfitting. We show this for cases with fixed number of particles (
$N=1$
and
$N=4$
are shown) and variable number of particles (
$N$
varies from 1 to 4).

Extending our method to infer the arbitrary modes of active slip around many active particles for a given flow data in two- and three-dimensional systems suggests an exciting direction for future work. In this paper, we have used deterministic fluid velocities around active particles in two-dimensions to infer their activity. Another potential future direction is to consider denoising and reconstruction methods in cases where there is noise in the fluid velocity (Weng et al. Reference Weng, Fan, Liao and Qin2001; Wang, Liu & Wang Reference Wang, Liu and Wang2022). Comparison of different architectures to find the most optimal one for these applications is another direction for future work. For generality, we have used a simple loss function in our CNN architecture. Using a physics-informed neural network with a more problem-specific choice of loss function suggests another exciting avenue for future work.
In this paper, we have used CNNs to solve an inverse problem to obtain force density given fluid-flow data. This inverse problem has inherent non-trivial spatial correlations. The CNNs are particularly well-suited for solving inverse problems involving spatial correlations because they are inherently designed to capture and learn hierarchical spatial features through convolutional filters (Goodfellow et al. Reference Goodfellow, Bengio, Courville and Bengio2016). In addition, we show in figure 8 and Appendix B that the ability of CNNs to learn nonlinear mapping is crucial for our case by training the convolution layers with and without activation functions. Moreover, CNNs are desirable for large datasets (Goodfellow et al. Reference Goodfellow, Bengio, Courville and Bengio2016), which is the case for inference from flow-field data, especially when larger numbers of particles are considered. We also note that the methodology using CNNs presented in this paper is only expected to work for Stokesian fluid-flow data. For more complex settings, when the steady Stokes equation, (2.1), is no longer a valid description of fluid flow – such as scenarios where inertia and/or memory effects in the fluid are important – entirely different architectures and strategies of training may be needed.
Declaration of interests
The authors report no conflict of interest.
Data availability
All code used in this work is freely available on GitHub (https://github.com/soft-matter-physics/deep-learning-active-flows).
Appendix A. Solving the Stokes equation to compute flow around active particles
The flow around a finite-sized rigid sphere of radius
$b$
in a fluid of viscosity
$\eta$
with single layer density
$\boldsymbol q$
is given by the boundary integral expression (Pozrikidis Reference Pozrikidis1992):
Here
$\boldsymbol r$
is the point at which the fluid velocity is computed.
$\boldsymbol G$
is a Green’s function of Stokes equation and
$S$
is the surface of the particle, while
$\boldsymbol{r}^{\prime }$
is an integration variable over the surface. These integrals can be solved by expanding the boundary fields in TSHs (tensorial spherical harmonics) (Hess Reference Hess2015). The TSHs are defined as
Here
$\hat {\boldsymbol b} = \boldsymbol b/b$
, while
$b=||\boldsymbol b||$
and
$\boldsymbol b$
is the radius vector of the active colloidal sphere. The expansion of the single layer density
$\boldsymbol{q}$
in TSHs is
\begin{align} \boldsymbol{q} (\boldsymbol{b} ) & =\sum _{l=1}^{\infty }w_{l}\,\boldsymbol{Q} ^{(l)}\boldsymbol{\cdot }\boldsymbol{Y}^{(l-1)}(\boldsymbol{\hat {\boldsymbol b}} ),\qquad \boldsymbol{Q} ^{(l)} =\tilde w_{l}\int \boldsymbol{q} \,\boldsymbol{Y}^{(l-1)} (\boldsymbol{\hat {\boldsymbol b}} )\,{\rm d}S. \end{align}
Here, the
$l$
-dependent constants are
$w_l = (2l-1)/(4\pi b^2)$
and
$\tilde w_l = 1/((l-1)!(2l-3)!!)$
(Hess Reference Hess2015). Here, and throughout the paper, a maximal contraction of two tensors is denoted by a dot product. The boundary integral of (A1) can be solved exactly as follows: (a) expanding the boundary fields in TSHs, (b) performing a Taylor expansion of kernels (the Green’s function) about the centre of the particles and (c) using the orthogonality of TSHs (Singh et al. Reference Singh, Ghose and Adhikari2015; Singh Reference Singh2018). The final result is the following summation:
\begin{align} \boldsymbol{v}(\boldsymbol{r}) = -\sum _{l=1}^{\infty } \left ( 1 + \frac {b^2}{4l+2}\boldsymbol{\nabla} ^2 \right ) \boldsymbol{\boldsymbol{\nabla} }^{(l-1)}\boldsymbol{G}(\boldsymbol{r})\boldsymbol{\cdot }\boldsymbol{Q}^{(l)}. \end{align}
Thus, the flow due to
$l$
th mode decays as
$\boldsymbol{\nabla} ^{l-1}\boldsymbol G(\boldsymbol r)$
. In three-dimensions
$\boldsymbol G(\boldsymbol r)\propto r^{-1}$
, and thus, the flow due to any of the
$l$
modes as
$r^{-l}$
(Singh et al. Reference Singh, Ghose and Adhikari2015; Deb & Singh Reference Deb and Singh2025), where
$r$
is the distance from the source. Equation (2.1) in the Fourier space is
Here
$\boldsymbol{I}$
is the identity tensor and
$\boldsymbol{k}$
is Fourier wave vector. We define the Fourier transform of a function
$\varphi (\boldsymbol{r})$
and Dirac delta function
$\delta (\boldsymbol r)$
as
Using (A5) and (A4), we can identify an effective force density:
\begin{align} \boldsymbol{ f} (\boldsymbol{k}) = -\sum _{l=0}^{\infty } \left (1 - \frac {b^2}{4l+2}k^2 \right )(i\boldsymbol{k})^{(l-1)}\boldsymbol{\cdot }\boldsymbol{Q}^{(l)} \end{align}
that produces the flow in (A4). Using the definition of the Dirac delta function, the force density can be written in the coordinate space as
\begin{align} \boldsymbol{f}(\boldsymbol{r}) =- \sum _{l=1}^{\infty } \left (1 + \frac {b^2}{4l+2}\boldsymbol{\nabla} ^2 \right ) \boldsymbol{\boldsymbol{\nabla} }^{l-1} \delta (\boldsymbol{r})\boldsymbol{\cdot }\boldsymbol{Q}^{(l)} \end{align}
that satisfies the Stokes equation. Since our interest is in the external flow, we are free for this purpose to replace the
$\delta$
function in (A8) with a mollifier
$M$
which produces the same exterior flow (Maxey & Patel Reference Maxey and Patel2001; Delmotte et al. Reference Delmotte, Keaveny, Plouraboué and Climent2015; Singh Reference Singh2018). We choose a Gaussian mollifier whose mean is at the centre of the particle and the variance equals
$2b^2/\pi$
(Maxey & Patel Reference Maxey and Patel2001). Using (A5), the expression of the flow in Fourier space is
\begin{align} { \boldsymbol{v}}^M(\boldsymbol{k}) &= -\sum _{l=1}^{\infty } \left (1 - \frac {b^2}{4l+2}k^2\right )(-i\boldsymbol{\boldsymbol k})^{l-1}\, M(\boldsymbol{k})\boldsymbol{G}(\boldsymbol{k})\boldsymbol{\cdot }\boldsymbol{Q}^{(l)}. \end{align}
The coefficients of single layer density
$\boldsymbol{Q} ^{(l)}$
are
$l$
th rank tensors, symmetric irreducible in their last
$l-1$
indices. The reducible tensors
$\boldsymbol{Q} ^{(l)}$
can be written in irreducible forms as
$\boldsymbol{Q} ^{(l\sigma )}$
. Here,
$\boldsymbol{Q} ^{(l\sigma )}$
are irreducible tensors of rank
$l$
,
$l-1$
and
$l-2$
for
$\sigma =s,a$
and
$t$
respectively. Here
$\sigma=s$
represents symmetric-traceless part of the tensor, while
$\sigma=a$
represents the antisymmetric part, and
$\sigma=t$
denotes the trace. The final expression of the flow – (2.2) of the main text – in terms of irreducible components is obtained when (A9) is written as a sum over the irreducible components of
$\boldsymbol Q^{(l)}$
.
Appendix B. Quantitative analysis
B.1. Root mean square error
The convergence plot (average of mean squared error over batches of 32 versus epoch) is given in figure 5 of the main text. It shows the good fit of the neural network. The network was tested over 600 test cases in each of the single particle, multiple particle and variable particle instances. The RMSE of the true force density versus that predicted by the network over the cases is plotted for each of the instances as a histogram in figure 6. The RMSE is calculated over all grid points for a single instance.
B.2. Variable resolution
In figure 7, we demonstrate that our network works for variable spatial resolution. In the main text, we have set the spatial resolution to be
$128\times 128$
while we vary the number of particles. Here, we plot the loss function as a function of epochs for two different resolutions (
$100\times 100$
and
$200\times 200$
) for an inference study of three particles.
Histogram of root mean squared error from the predictions by CNN.

Loss function as a function of epochs for two different resolutions of the data.

Ablation study. Measuring loss with epochs using CNN with activation functions (a) and without activation function (b).

B.3. Ablation study
The advantages of CNNs in this particular problem is studied by checking the solutions without the components of CNNs. To evaluate it, the dataset was trained with just convolution layers without any activation functions, which essentially makes it a linear map. The comparison of this case against the CNN with activation function is shown by the convergence plot in figure 8. The former is not converging with similar iterations whereas the latter converges rapidly. The CNNs learn nonlinear mappings using activation functions. Thus, we demonstrate the importance of nonlinear mappings in deep learning by showing that the CNN with activation function is essential for the model presented here to be effectively trained against data.





















