Skip to main content
Journal of the Royal Society Interface logoLink to Journal of the Royal Society Interface
. 2025 Sep 10;22(230):20250428. doi: 10.1098/rsif.2025.0428

Single camera estimation of microswimmer depth with a convolutional network

Ali Hosseini 1,†, Célia Fosse 1,†, Maya Awada 1, Marcel Stimberg 1, Romain Brette 1,✉
PMCID: PMC12419879  PMID: 40925556

Abstract

A number of techniques have been developed to measure the three-dimensional trajectories of protists, which require special experimental set-ups, such as a pair of orthogonal cameras. On the other hand, machine learning techniques have been used to estimate the vertical position of spherical particles from the defocus pattern, but they require the acquisition of a labelled dataset with finely spaced vertical positions. Here, we describe a simple way to make a dataset of Paramecium images labelled with vertical position from a single 5 min movie, based on a tilted slide set-up. We used this dataset to train a simple convolutional network to estimate the vertical position of Paramecium from conventional bright field images. As an application, we show that this technique has sufficient accuracy to study the surface following behaviour of Paramecium (thigmotaxis).

Keywords: microswimmer, tracking, microscopy, machine learning, image analysis, protist

1. Introduction

The natural environment of swimming microorganisms is three-dimensional. Protists such as the common freshwater ciliate Paramecium often swim upward towards the surface [1,2], but can also dive down [3], hover above surfaces or land on them [4,5] and explore the full volume of their environment [6,7]. Yet, due to technical constraints, observation is generally restricted to a two-dimensional projection.

A number of three-dimensional observation techniques have been designed using special equipment. Drescher et al. [8] reconstruct trajectories from two orthogonal cameras. This is precise, although with a limited observable volume. Other techniques use custom microscopes, such as the tPOT microscope, which uses a principle akin to stereomicroscopy [9,10]. Others use a multicoloured light sheet [11,12], a custom laser-based feedback system [13], a confocal microscope [14,15] or holographic microscopes, which create interference patterns with a laser [16–20]. Several authors have developed three-dimensional tracking using a motorized stage or microscope [21,22], but this is necessarily limited to the observation of a single cell, and requires careful synchronization of camera and motor control.

All these techniques rely on special equipment that is not usually available in laboratories. Image processing techniques to augment conventional microscope images with three-dimensional information are therefore valuable. A method to estimate the three-dimensional position of particles from such images is to infer the vertical position from the defocus pattern. This approach is called defocus particle tracking [23]. It is based on correlation with images of known position [24] or trained neural networks [25–28]. In either case, it requires the prior acquisition of a stack of images at finely spaced vertical positions.

Defocus particle tracking has been applied to spherical particles, typically for particle tracking velocimetry, but not to protists. The additional difficulty is that protists have more variable and non-symmetrical shapes, and they swim. This makes both acquisition and training more challenging. Here, we train a convolutional network to estimate the vertical position of Paramecium from conventional bright field microscope images, using a simple trick to acquire a labelled dataset. The trick consists of placing swimming paramecia between two tilted glass slides, so that the vertical position z correlates with the x coordinate, which is used as a proxy for z during training. This allows training the network with a single continuous 5 min movie. We show that the trained model can then estimate the vertical position of cells on a horizontal slide. We demonstrate the applicability of the method to the study of thigmotaxis (attraction to surfaces).

2. Methodology

2.1. Experimental procedures

Specimens of Paramecium tetraurelia were obtained from Éric Meyer, Institut de Biologie, Ecole Normale Supérieure, Paris, France. Cells were grown at room temperature (approx. 22°C) with a light–dark cycle (12 h) in a wheat grass powder (Pines International, Lawrence, KS, USA) infusion medium bacterized with Klebsiella pneumoniae the day before feeding the cells and supplemented with 0.8 µg ml−1 β-sitosterol.

For the training datasets, we mixed stationary (starved) and log-phase (growing) cells, which have different sizes and shapes (figure 1). Cells were washed for at least 30 min in a salt solution that mimicked the ionic composition and pH of the culture medium. The solution contained 0.8 mM KCl, 0.1 mM CaCl₂ and 0.64 mM NaCl, buffered with 1.4 mM NaH₂PO₄·H₂O and 4.2 mM Na₂HPO₄·2H₂O, with the pH adjusted to 7.5 using NaOH, resulting in a total Na concentration of approximately 11.5 mM. To account for the difference in cell densities—around 1000 cells ml−1 for log-phase cultures and over 4000 cells ml−1 for stationary-phase cultures—a 4 : 1 volume ratio of log-phase to stationary-phase cells was used. All chemicals were acquired from Sigma-Aldrich.

Figure 1.

Mixture of log and stationary cells, observed in bright field

Mixture of log and stationary cells, observed in bright field. A, Example of a background-subtracted image obtained with the 4× objective. A dividing cell can be seen on top. B, Distribution of cell length and width, based on ellipsoid fits of binarized images (typically underestimates measurements).

 We trained and tested the models on a motorized upright microscope with a 4× objective (Olympus, NA 0.10, FN 22) and a 6 MP camera (Lumenera Infinity 3-6UR; 8 bits depth, 2752 × 2192 pixels), with bright field illumination. Pixel size was 1.78 µm. Thus, the field of view was 4900 µm × 3900 µm.

To make a test dataset with controlled depth, a drop of 40 µl of cell mixture was put on a plain glass slide (Premium Plain Slides, Epredia, 2950 WX-003 25 × 75 × 1 mm, USA) and gently covered by a square glass coverslip (20 × 20 mm). This flattened the drop on the surface and limited the movement of the cells to virtually a two-dimensional plane. Movies were taken at depth 0–500 µm in steps of 100 µm, using a motorized stage (Luigs and Neumann, D-40880, Germany).

To make datasets with a tilted slide, a drop of the cell mixture was placed on a plain glass slide and sandwiched by placing a second glass slide over it with a fixed 260 µm distance (using tape). The slide sandwich was then inclined such that the distance between the maximum and minimum heights within the field of view was approximately 1 mm, corresponding to an angle of 9.4° relative to the horizontal plane (figure 2A). The microscope image was then focused on top. In this way, defocus increases from right to left (figure 2B).

Figure 2.

Recording on a tilted slide

Recording on a tilted slide. A, Schematics of a glass slide sandwich resting on a pile of slides. B, Sample cell images ordered from left to right by horizontal position on the slide.

For the application to thigmotaxis, a drop of culture medium with stationary cells was placed between two horizontal glass slides, spaced by 520 µm (using tape) and the image was focused on top.

2.2. Data acquisition

Images were acquired at a fixed frame rate (2, 10 or 20 Hz). Light intensity, exposure and gain were varied to test for robustness. The background was calculated over a few seconds (mean of images) then subtracted online, and the resulting image was thresholded, and then saved with lossless compression. This ensured manageable data size for storage.

We then extracted images of individual cells. This was done with conventional tracking techniques. We used FastTrack [29], which uses classical computer vision methods: binarization of the threshold image, selection of connected components of adequate size and calculation of the centroid. Then, a square image around the centroid was extracted of size 96 pixels (171 µm). Squares extending beyond the image boundaries were discarded. To make the training datasets, we removed tracks smaller than 300 µm, in order to avoid still cells and errors.

Training datasets were built from 5 min movies at 20 Hz, totalling 6000 frames, from which approximately 100 000 cell images were extracted. For each image, we assigned a label corresponding to the central vertical position of the slide sandwich given the cell’s horizontal position (i.e. expected position of the cell). The test dataset with controlled depth was acquired at 2 Hz over 5 min. The application to thigmotaxis was done from a 3 min movie acquired at 10 Hz.

2.3. Models

2.3.1. Architecture

We used a simple network with two convolutional layers with kernel size 3 and two dense layers (figure 3). The first convolutional layer has 32 filters and is followed by a max pooling operation (size 2), and the second one has 64 filters and is followed by global average pooling. The output is flattened and fed to a dense layer with 128 output units. A final dense layer outputs a single number, which is the z estimate. All units have leaky rectified linear activation (leaky ReLU), except the final unit, which is linear. Thus, the model produces estimates based on local texture.

Figure 3.

Architecture of the convolutional neural network model (shown as a sequence of PyTorch objects).

Architecture of the convolutional neural network model (shown as a sequence of PyTorch objects).

2.3.2. Preprocessing and augmentation

Images are inverted so that the background is zero. The final 20% of the movie is used for validation, then the frames are shuffled in both training and validation sets. In the training dataset, images are augmented with random horizontal and vertical flipping, and Gaussian noise is added, with a standard deviation taken for each image from a uniform distribution between 0 and 5 (out of a range of 0–255).

2.3.3. Training

Models were optimized for quadratic loss (mean squared error) relative to the assigned vertical position. They were trained for up to 500 epochs on a MacBook Pro (36 GB; M3 Pro) using Adam optimizer, starting with a learning rate of 5 × 10−4, halved when the loss stalls or increases. The weights with lowest mean absolute error on the validation dataset during training were saved.

2.3.4. Prediction

With the tilted slide set-up, the model is trained on variations of distance in air between the microscope and the cells. Thus, when the model is used to estimate the depth of cells in water, a corrective factor of 1.33 must be applied to account for the difference in refraction index between air and water. This factor is applied in the thigmotaxis application (figure 4), but not in the various tests, which are done with variations of distance in air.

Figure 4.

Figure 4.

Testing the trained model on recordings with controlled depth. A, Model estimate versus true vertical position (dashed line: identity relation; shaded area: mean estimate ± mean absolute error). B, Training on fixed depths and testing on tilted slide produces a ladder effect.

3. Results

3.1. Training and testing the model

To make a dataset representative of the diversity of shapes, we mix cells in logarithmic phase (large cells) with cells in stationary phase (smaller starved cells), as illustrated in figure 1A. Cell length and width were quite variable, as measured from ellipsoid fits of binarized cell images (length: 76 ± 14 µm, s.d.; width: 22 ± 5 µm) (figure 1B); note that, because of thresholding, this underestimates the true cell dimensions (typically approx. 120 µm long [30]). The apparent shape of cells also changes depending on their angle relative to the horizontal plane. In order to allow for diverse cell orientations, we place a drop of cells between two glass slides spaced by 260 µm, which is approximately twice the cell length. The slide sandwich is then tilted by raising one end with a stack of slides (figure 2A) to an angle of approximately 10°. In this way, the vertical position of cells (z) varies systematically with the horizontal position (x), over a range of approximately 800 µm (figure 2B).

We then take a 5 min movie. Individual cells are first localized in two dimensions with a previously developed two-dimensional tracking algorithm. We used FastTrack [29], which is based on classical computer vision techniques, because it does not require training, but deep learning-based tracking software such as YOLO could also be used [31]. Briefly, images are preprocessed by removing the background and thresholding, then small images of individual cells are extracted. The model is then trained to predict the cell’s expected vertical position, as inferred from the cell’s horizontal position. After training, the model obtains a mean absolute error of 48 µm on the validation set (the last minute of the movie). Note that with our tilted slide design, it is the distance in air, not in water, that varies. As the refraction index of air and water differs, this must be corrected. A precision of 48 µm in air is optically equivalent to 64 µm in water (48 µm times 1.33).

Note that part of this estimation error comes from the fact that, since the two glass slides are spaced by 260 µm, there is some variability in the actual vertical position of the cell at a given horizontal position along the slide, as can be observed in figure 2B. We can estimate this contribution as follows (figure 5). Cells are approximately 35 µm wide, plus 10 µm for cilia. This means that the maximum distance between two cell centres is 205 µm. If cells are uniformly distributed between the two slides, then the average distance of a cell centre to the centre of the slide sandwich is 51 µm. In summary, the precision of the model’s estimation is comparable to the variability of cell position within the slide sandwich.

Figure 5.

Variability of vertical cell position in the glass sandwich

Variability of vertical cell position in the glass sandwich. The maximum distance of a cell’s centroid to the centre (dashed line) is 102 µm, so that the average distance should be 51 µm if vertical position is uniformly distributed.

When we look at the model’s estimates in detail as a function of z (figure 6), we notice a bias on the boundaries of the training set, at minimum and maximum depth. This is to be expected because a good estimator would take constraints of the dataset into account, and therefore output estimates within these bounds. For example, the estimator always outputs negative z estimates, because z is always negative in the training set. Thus, when a cell is presented in focus (z = 0 µm), the estimate is always lower, and therefore biased. This bias can be mitigated on the defocused end (low z) by including a large enough range of vertical positions in the training set, but this cannot be easily done on the focused end (z near 0). Thus, estimates near focus tend to be biased.

Figure 6.

Estimation results after training

Estimation results after training. Top: Estimates of z after training, as a function of expected z (black line: perfect estimation; red: mean estimate as a function of expected z). Bottom: Root mean square error (black), standard deviation (blue) and bias (red), versus expected z.

One practical challenge, which was not assessed in previous work on defocus particle tracking, is that recording parameters, such as exposure time, light intensity and camera gain, can vary across recordings. One obvious solution is to train the model for each recording condition. To make it more practical, we trained the model by augmenting the dataset with noise, so as to make the model more robust to varying recording conditions. Figure 7A shows estimation results on a tilted slide sandwich, with different recording parameters compared to the training dataset (higher gain, higher light intensity and lower exposure time). These results are similar to the validation set (error of 46 versus 48 µm). When noise is not added during training, the model is not robust, as shown in figure 7B. Specifically, in the test slide, which is noisier (higher gain), the estimated position of defocused cells is biased towards more focused cells. As a result, the linear regression between the estimate and the actual z has slope 1.34 (versus. 0.96 when trained with noise).

Figure 7.

Estimation results with different recording settings

Estimation results with different recording settings. A, With noise added during training. B, Without noise augmentation (same legend as figure 6A).

We then measured the precision of estimates with ground truth measurements of z. To this end, we placed a thin film with cells on a glass slide and took movies with the microscope focus positioned 0 to 500 µm above the cells, in steps of 100 µm, using a motorized microscope. The average absolute error was 46 µm, similar to the error obtained on tilted slides, and the regression slope was 0.99 (figure 4A).

If, instead, the model is trained on this discrete set of recordings, we obtain an error of 27 µm, but of course this is a much simpler task since the set of possible positions is very small (six possibilities). In addition, in this dataset, cells are constrained to be horizontal and therefore do not reflect the full diversity of cell appearances. When we test this model on a tilted slide, the error is similar to previous results (46 µm), but as can be seen in figure 4B, there is a ladder effect: near focus, there is a peak in the distribution of estimates near −100 µm, which is one of the positions of the discrete dataset.

3.2. Application

We now show an application of this estimation model to the study of thigmotaxis. Thigmotaxis is the tendency of some microorganisms to follow surfaces or attach to them. This is a major part of the life of Paramecium in its natural habitat [7], but it has not been the object of many studies, possibly for technical reasons. We simply placed a drop of culture medium with stationary cells (i.e. starved) between two glass slides, spaced by 520 µm (based on tape thickness), and took a 3 min movie.

Figure 8A shows the estimated position of cells on part of a frame (full annotated movie: electronic supplementary material, video S1). Note that the water refraction index is taken into account by multiplying the model estimate by 1.33. One of the cells is dividing. Figure 8B shows the speed and vertical position of all cells measured in all frames. We can see that most cells are concentrated near the two surfaces. Many are swimming and a few cells are attached, both on the top and the bottom surfaces. Regarding the z estimates, we note that the attached cells are estimated away from the surfaces by approximately 100 µm or more. First, we expect the estimate to correspond to the cell centre. Given that cell width is on average 34 µm [30] and cilia are 10 µm long, this means the centre of an attached cell is at least 27 µm away from the surface. Second, cells tend to attach with their anterior end, slightly tilted, which moves away the cell centre from the surface (e.g. approx. 40 µm for a 30° angle). The rest might be accounted for by the precision error and biases, especially near focus, as we have seen previously. Looking more closely at the attached cells (zero speed), we can also see some positive estimates, which must be erroneous. Looking at the annotated movie, this appears to be due to occlusions due to background removal, when the cell was attached during the calculation of the background and later moved. Finally, we also notice some unusually low estimates for attached cells, with a rather broad distribution (down to approx. 200 µm). Looking again at the movie, this appears to be due to the dividing cell shown in figure 8A, which is initially horizontal and later turns on the anterior end of one of the daughter cells, so that the dividing cell is almost vertical, and this is accompanied by a decrease in the z estimate. Thus, these low values of z actually seem genuine.

Figure 8.

Application to the study of thigmotaxis

Application to the study of thigmotaxis. A, Estimated position in red (µm). B, Speed versus z for all measured points, with marginal distributions. The blue ellipse shows the typical size of a cell for scale (120 µm long, 30 µm wide). Dashed lines: slides. C, Four long trajectories, colour coded for z. Cell shape is drawn every second and time along the trajectory is written every 5 s.

Figure 8C shows four trajectories lasting approximately 20 s, illustrating the diversity of behaviour in this recording. From left to right, the first trajectory shows a cell spiralling at the top, with a few avoiding reactions. The second trajectory is at the bottom. The cell stays still for a few seconds, then slides (no spiralling) over 5 s to a nearby position and stops. The third trajectory spirals between the top and bottom surfaces, with a few avoiding reactions. One avoiding reaction seems to occur when the cell reaches the bottom surface (at t = 15 s). The fourth trajectory shows a cell quickly reaching the top surface (in the first second), then sliding at the top (circular motion).

In summary, despite the limitations of the method, it seems to be able to provide useful information in the context of thigmotaxis.

4. Discussion

We have introduced a simple method to train a convolutional network to estimate the vertical position of paramecia from conventional microscopy images, using tilted glass slides. With a 4× objective, we obtained a precision of approximately 60 µm. Augmenting the training dataset with noise improves the robustness with respect to changes in recording conditions (light intensity, focus, gain). The method can be used, for example, to study thigmotaxis.

Precision in the vertical dimension remains more than an order of magnitude worse than in the horizontal dimensions (pixel size was approx. 2 µm). This is not surprising, given that cells are approximately 35 µm wide and that, in contrast with the small spherical particles typically used in defocus particle tracking, they come in a variety of shapes and orientations rather than a stereotypical pattern. Nonetheless, this means that this estimation method remains inferior in accuracy to direct estimation of vertical position with an orthogonal camera, although it allows for a wider field of view. Therefore, the method does not replace dedicated equipment for accurate three-dimensional tracking, but it is useful to augment the information obtained with conventional microscopy equipment.

It must be pointed out that, as for any method based on template matching, whether using neural networks or otherwise, performance depends crucially on the training data. As the vertical position of a cell in the training set is calculated based on its horizontal position, it depends on accurate measurement of the tilt angle. To tilt the glass sandwich, we have used a stack of 1 mm thick glass slides (figure 2A), which typically come with a precision of 50–100 µm (5–10%). This limited precision could result in an error in angle estimation, yielding proportional errors in z estimates. The unbiased estimates obtained on cells positioned with a micromanipulator (figure 4A) suggest that this was not a strong issue in our case; we measured the thickness of a stack of 10 slides and found 10.04 mm (with a 50 µm precision). However, in principle, it could be a source of error, although with no effect on either precision or relative estimates. If thickness errors are independent between different slides, the resulting error in tilt angle should be approximately 1.5–3%. When this is a concern, a simple solution is to directly measure the tilt angle (e.g. by measuring the total thickness of the slide stack).

A related limitation is that the model is trained for a particular experimental set-up, with specific properties of microscope, illumination and camera. As we have seen (figure 7B), estimates on different recording conditions can be biased. One possibility to make the model more robust is to use a dataset with diverse experimental conditions. We have shown that a simpler possibility is to train the model with a computationally augmented dataset including noise (figure 7A), but of course this will not apply to changes in the optical pathway (different objectives). Similarly, the focus must be done at the same position in the test set as in the training data (at the top, in our case). It can be challenging to do this accurately in some cases.

The quality of the training dataset is also important. It must include a sufficient diversity of cell shapes, in particular cell orientations. Cell density must be sufficiently high to make a large dataset, but not so high as to induce crowding. Images must appear similar across the horizontal dimension; for example, a different illumination on the left and on the right could be picked up by the training algorithm instead of the defocus pattern.

While it does not replace more accurate techniques relying on special equipment, this technique should be helpful to augment conventional microscopy movies of protists with three-dimensional information. It could be applied, for example, to the studies of thigmotaxis, gravitaxis or surface interactions.

Contributor Information

Ali Hosseini, Email: hosseini@isir.upmc.fr.

Célia Fosse, Email: fosse@isir.upmc.fr.

Maya Awada, Email: maya.awada01@gmail.com.

Marcel Stimberg, Email: marcel.stimberg@sorbonne-universite.fr.

Romain Brette, Email: Romain.Brette@inserm.fr.

Ethics

This work did not require ethical approval from a human subject or animal welfare committee.

Data accessibility

Code for the depth estimator can be found at [32]. Code for tracking and background removal can be found at [33].

Supplementary material is available online [34].

Declaration of AI use

We have not used AI-assisted technologies in creating this article.

Authors’ contributions

A.H.: investigation, methodology, writing—original draft; C.F.: investigation, methodology, writing—original draft; M.A.: investigation; M.S.: software; R.B.: conceptualization, funding acquisition, investigation, methodology, project administration, software, supervision, writing—original draft, writing—review and editing.

All authors gave final approval for publication and agreed to be held accountable for the work performed therein.

Conflict of interest declaration

We declare we have no competing interests.

Funding

This work was supported by Agence Nationale de la Recherche (ANR-20-CE30-0025-01, ANR-21-CE16-0013-02 and ANR-23-CE16-0020-02).

References

  • 1. Häder DP, Hemmersbach R. 2018. Gravitaxis in flagellates and ciliates. In Gravitational biology I: gravity sensing and graviorientation in microorganisms and plants (eds Braun M, Böhmer M, Häder DP, Hemmersbach R, Palme K), pp. 27–45. Cham, Switzerland: Springer International Publishing.(SpringerBriefs in Space Life Sciences). ( 10.1007/978-3-319-93894-3_3) [DOI] [Google Scholar]
  • 2. Roberts AM. 2010. The mechanics of gravitaxis in Paramecium. J. Exp. Biol. 213, 4158–4162. ( 10.1242/jeb.050666) [DOI] [PubMed] [Google Scholar]
  • 3. Applewhite PB, Gardner FT. 1973. Tube-escape behavior of paramecia. Behav. Biol. 9, 245–250. ( 10.1016/s0091-6773(73)80159-2) [DOI] [PubMed] [Google Scholar]
  • 4. Iwatsuki K, Hirano T. 1995. Induction of the thigmotaxis in Paramecium caudatum. Comp. Biochem. Physiol. Part Physiol. 110, 167–170. ( 10.1016/0300-9629(94)00125-D) [DOI] [PubMed] [Google Scholar]
  • 5. Ohmura T, Nishigami Y, Taniguchi A, Nonaka S, Manabe J, Ishikawa T, Ichikawa M. 2018. Simple mechanosense and response of cilia motion reveal the intrinsic habits of ciliates. Proc. Natl Acad. Sci. USA 115, 3231–3236. ( 10.1073/pnas.1718294115) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Brette R. 2021. Integrative neuroscience of Paramecium, a ‘swimming neuron’. eNeuro 8, ENEURO.0018-21. ( 10.1523/ENEURO.0018-21.2021) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Jennings HS. 1906. Behavior of the lower organisms. New York, NY, USA: The Columbia University Press, The Macmillan Company, agents. [Google Scholar]
  • 8. Drescher K, Leptos KC, Goldstein RE. 2009. How to track protists in three dimensions. Rev. Sci. Instrum. 80, 014301. ( 10.1063/1.3053242) [DOI] [PubMed] [Google Scholar]
  • 9. Marumo A, Yamagishi M, Yajima J. 2021. Three-dimensional tracking of the ciliate Tetrahymena reveals the mechanism of ciliary stroke-driven helical swimming. Commun. Biol. 4, 1209. ( 10.1038/s42003-021-02756-0) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Yajima J, Mizutani K, Nishizaka T. 2008. A torque component present in mitotic kinesin Eg5 revealed by three-dimensional tracking. Nat. Struct. Mol. Biol. 15, 1119–1121. ( 10.1038/nsmb.1491) [DOI] [PubMed] [Google Scholar]
  • 11. Matsushita H, Mochizuki T, Kaji N. 2004. Calibration scheme for three-dimensional particle tracking with a prismatic light. Rev. Sci. Instrum. 75, 541–545. ( 10.1063/1.1641154) [DOI] [Google Scholar]
  • 12. McGregor TJ, Spence DJ, Coutts DW. 2008. Laser-based volumetric flow visualization by digital color imaging of a spectrally coded volume. Rev. Sci. Instrum. 79, 013710. ( 10.1063/1.2825462) [DOI] [PubMed] [Google Scholar]
  • 13. Peters IM, Grooth BG, Schins JM, Figdor CG, Greve J. 1998. Three dimensional single-particle tracking with nanometer resolution. Rev. Sci. Instrum. 69, 2762–2766. ( 10.1063/1.1149012) [DOI] [Google Scholar]
  • 14. Dinsmore AD, Weeks ER, Prasad V, Levitt AC, Weitz DA. 2001. Three-dimensional confocal microscopy of colloids. Appl. Opt. 40, 4152–4159. ( 10.1364/ao.40.004152) [DOI] [PubMed] [Google Scholar]
  • 15. Rabut G, Ellenberg J. 2004. Automatic real-time three-dimensional cell tracking by fluorescence microscopy. J. Microsc. 216, 131–137. ( 10.1111/j.0022-2720.2004.01404.x) [DOI] [PubMed] [Google Scholar]
  • 16. Altman LE, Grier DG. 2023. Machine learning enables precise holographic characterization of colloidal materials in real time. Soft Matter 19, 3002–3014. ( 10.1039/d2sm01283a) [DOI] [PubMed] [Google Scholar]
  • 17. Daloglu MU, et al. 2018. Label-free 3D computational imaging of spermatozoon locomotion, head spin and flagellum beating over a large volume. Light Sci. Appl. 7, 17121–17121. ( 10.1038/lsa.2017.121) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Dixon L, Cheong FC, Grier DG. 2011. Holographic deconvolution microscopy for high-resolution particle tracking. Opt. Express 19, 16410–16417. ( 10.1364/oe.19.016410) [DOI] [PubMed] [Google Scholar]
  • 19. Memmolo P, Miccio L, Paturzo M, Caprio GD, Coppola G, Netti PA, Ferraro P. 2015. Recent advances in holographic 3D particle tracking. Adv. Opt. Photonics 7, 713–755. ( 10.1364/aop.7.000713) [DOI] [Google Scholar]
  • 20. Su TW, Choi I, Feng J, Huang K, McLeod E, Ozcan A. 2013. Sperm trajectories form chiral ribbons. Sci. Rep. 3, 1664. ( 10.1038/srep01664) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Darnige T, Figueroa-Morales N, Bohec P, Lindner A, Clément E. 2017. Lagrangian 3D tracking of fluorescent microscopic objects in motion. Rev. Sci. Instrum. 88, 055106. ( 10.1063/1.4982820) [DOI] [PubMed] [Google Scholar]
  • 22. Hasegawa T, Ogawa N, Oku H, Ishikawa M. 2008. A new framework for microrobotic control of motile cells based on high-speed tracking and focusing. In 2008 IEEE Int. Conf. on Robotics and Automation, pp. 3964–3969. IEEE. ( 10.1109/robot.2008.4543820) [DOI] [Google Scholar]
  • 23. Barnkob R, Cierpka C, Chen M, Sachs S, Mäder P, Rossi M. 2021. Defocus particle tracking: a comparison of methods based on model functions, cross-correlation, and neural networks. Meas. Sci. Technol. 32, 094011. ( 10.1088/1361-6501/abfef6) [DOI] [Google Scholar]
  • 24. Taute KM, Gude S, Tans SJ, Shimizu TS. 2015. High-throughput 3D tracking of bacteria on a standard phase contrast microscope. Nat. Commun. 6, 8776. ( 10.1038/ncomms9776) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. König J, Chen M, Rösing W, Boho D, Mäder P, Cierpka C. 2020. On the use of a cascaded convolutional neural network for three-dimensional flow measurements using astigmatic PTV. Meas. Sci. Technol. 31, 074015. ( 10.1088/1361-6501/ab7bfd) [DOI] [Google Scholar]
  • 26. Newby JM, Schaefer AM, Lee PT, Forest MG, Lai SK. 2018. Convolutional neural networks automate detection for tracking of submicron-scale particles in 2D and 3D. Proc. Natl. Acad. Sci. USA 115, 9026–9031. ( 10.1073/pnas.1804420115) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Ratz M, Sachs S, König J, Cierpka C. 2023. A deep neural network architecture for reliable 3D position and size determination for Lagrangian particle tracking using a single camera. Meas. Sci. Technol. 34, 105203. ( 10.1088/1361-6501/ace070) [DOI] [Google Scholar]
  • 28. Zhang X, Wang H, Wang W, Yang S, Wang J, Lei J, Zhang Z, Dong Z. 2022. Particle field positioning with a commercial microscope based on a developed CNN and the depth-from-defocus method. Opt. Lasers Eng. 153, 106989. ( 10.1016/j.optlaseng.2022.106989) [DOI] [Google Scholar]
  • 29. Gallois B, Candelier R. 2021. FastTrack: an open-source software for tracking varying numbers of deformable objects. PLOS Comput. Biol. 17, e1008697. ( 10.1371/journal.pcbi.1008697) [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30. Nagel U, Machemer H. 2000. Physical and physiological components of the graviresponses of wild-type and mutant Paramecium tetraurelia. J. Exp. Biol. 203, 1059–1070. ( 10.1242/jeb.203.6.1059) [DOI] [PubMed] [Google Scholar]
  • 31. Redmon J, Divvala S, Girshick R, Farhadi A. 2016. You only look once: unified, real-time object detection. In 2016 IEEE Conf. on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, pp. 779–788. IEEE. ( 10.1109/CVPR.2016.91) [DOI] [Google Scholar]
  • 32. Brette R. 2025. Three-dimensional tracking of protists from two-dimensional microscopy images. Zenodo. ( 10.5281/zenodo.16761288) [DOI]
  • 33. Stimberg M, Brette R. 2025. Online background removal and cell tracking tool. Zenodo. ( 10.5281/zenodo.16761316) [DOI]
  • 34. Hosseini A, Fosse C, Awada M, Stimberg M, Brette R. 2025. Supplementary material from: Single camera estimation of microswimmer depth with a convolutional network. Figshare. ( 10.6084/m9.figshare.c.8014925) [DOI] [PubMed]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Code for the depth estimator can be found at [32]. Code for tracking and background removal can be found at [33].

Supplementary material is available online [34].


Articles from Journal of the Royal Society Interface are provided here courtesy of The Royal Society

RESOURCES