Abstract
Life is in constant movement, even microscopic bodies like cells. To understand cellular dynamics, or how cells move and interact, we analyse time-lapse microscopy images that highlight cellular structures like membranes and nuclei. The bioimage community has developed automated tracking algorithms to follow cells over time and space, but these tools often require extensive manual parameter tuning and technical expertise. easytrack democratises cell tracking by providing an intuitive graphical interface and automating the parameter optimisation process, making these powerful algorithms accessible to researchers without computational backgrounds.
Figure 1. Napari-easytrack workflow and results.
A ) Workflow of the napari plugin easytrack. The parameter tuning widget (top) uses ground truth annotations to optimise btrack parameters via Bayesian optimisation, using Optuna and traccuracy for the optimisation and evaluation process respectively. The tracking widget (bottom) applies these optimised parameters to new datasets. B-C ) Tracking Accuracy normalisation of the AOGM (TRA) and ( C ) Acyclic oriented graphs matching measure (AOGM) scores for the different datasets: ”DIC-C2DH- HeLa”, ”Fluo-N2DH-GOWT1”, ”PhC-C2DH-U373”, and ”wing disc”. Each dataset contains two sets of images. Results are average between the set of images in each dataset. Yellow bar: btrack default cell parameters. Blue bar: easytrack default epithelial cells preset. Red bar: predictions from the trained algorithm with the other set of images it was not trained with (n=10). Green bar: tracking results using the same set of images easytrack was trained on (n=10). Purple bar: random parameters that create valid tracking images (n=10). Note that for TRA higher is better. In contrast, for AOGM lower is better.
Description
Cell tracking, the process of following individual cells through time and space, is essential for quantifying dynamic cellular behaviours such as migration, division, and morphological changes. These measurements underpin research into tissue healing (Tetley, 2019), developmental biology (Valon, 2021), and cancer progression (Hong, 2016). Despite advances in computational methods (Ulman, 2017, and Maska, 2023), many tracking algorithms require careful tuning of multiple parameters to achieve accurate results (Loffler 2021, and Chenouard, 2014). Current cell tracking software falls into two categories: general-use tools with modest accuracy, or high-performance algorithms like btrack (Bove, 2017, and Ulicna, 2021) that require extensive manual parameter tuning. This manual tuning is labour-intensive, requires expertise, and often needs repetition for different datasets or experimental conditions. For instance, for btrack, a Bayesian cell tracking algorithm, this involves configuring 18 parameters across its motion and hypothesis models. In contrast, while deep learning approaches to cell tracking have shown impressive results (Soelistyo, 2023; Sugawara et al., 2025; Lange et al., 2025), classical algorithms (Bove, 2017, and Ulicna, 2021) retain important advantages: they require no training data for the tracker itself, and their parameters are directly interpretable as physical properties of the cells and images (e.g. expected migration speed, division rate, search radius).
The lack of accessible parameter tuning tools creates a barrier between technological capability and practical application. Researchers often resort to default parameters or limited manual exploration of the parameter space, potentially missing optimal configurations for their specific datasets. While hyperparameter optimisation frameworks like Optuna (Akiba, 2019) have proven effective in machine learning contexts, their application to cell tracking software remains limited, with no existing tools providing an accessible interface for biologists.
easytrack addresses this gap by implementing automated parameter tuning within the napari ecosystem (https://zenodo.org/record/3555620), leveraging Bayesian optimisation techniques including Tree-structured Parzen Estimators (TPE) (Ozaki, 2022). By automating what was previously a manual, iterative process, easytrack makes high-accuracy cell tracking accessible to researchers without computational expertise whilst reducing the time required from hours to minutes. Sophisticated cell tracking algorithms often remain underutilised due to their complexity (Soelystio, 2023). easytrack addresses this usability barrier by automating parameter tuning, enabling:
1. Reproducible research: Parameter configurations can be saved, shared, and reused, reducing variability across studies.
2. Efficiency gains: Optimisation completes in tens of minutes compared to hours or days of manual tuning.
3. Accessibility: Non-experts can leverage state-of-the-art tracking without deep algorithmic knowledge.
To test easytrack’s efficacy, we benchmarked it versus btrack’s default parameters for cells using different datasets. To do that, we used some of the non-epithelial datasets from the Cell Tracking Challenge (CTC) (Ulman, 2017, and Maska, 2023) and two epithelial datasets (’wing disc’) from a 2D+time wound healing dataset (Tetley, 2019) and a 3D one from (Paci, 2026; https://www.ebi.ac.uk/biostudies/BioImages/studies/S-BIAD843). First, we predicted the trajectories of the cells in our datasets using btrack’s default set of parameters for cells ( Figure 1B- C). We compared these results with our default easytrack config preset for epithelial cells ( Figure 1A ). To faithfully compare the results from different tracking algorithms, we used two of the metrics the CTC uses: Acyclic oriented graphs matching measure (AOGM score), defined such that a score of 0 represents a perfect result; and Tracking Accuracy normalisation of the AOGM (TRA), whose perfect score would be represented as 1 and 0 as the worst. Overall, we obtained very similar results for all the datasets with btrack and easytrack ( Figure 1B- C, yellow and blue bar). However, easytrack can train a dataset-specific model in about 30 minutes to obtain a better fit, whereas doing so manually would increase the tuning time substantially. We trained 10 times with each set of images, and obtained that AOGM and TRA scores were significantly improved after using the learned parameters on the same dataset ( Figure 1B- C, ’train’). Furthermore, to test each model generalisability, we predicted the tracks of the cells using the parameters learned from the other set of images within the same dataset. Indeed, results worsened in some datasets compared to ‘train’, but overall improved upon default parameter settings, suggesting its generalisability within the same type of images. Finally, to reliably assess whether easytrack can find optimal parameters, we used random parameters that created valid tracking images and results (see Methods). Compared to random valid parameters, all the different set of parameters perform better (Fig. B-C, 'random'). To sum up, we have shown easytrack’s versatility by tracking different types of cells and its improvements over the default set of parameters.
Advances in artificial intelligence have produced powerful segmentation tools for microscopy images (Stringer, 2021). However, for complex 3D segmentations, a tracking step is required to get an accurate result (Paci and Vicente-Munuera, 2025). easytrack has already been integrated into napari-EpiTools (https://github.com/epitools/epitools), a tool for analysing packed epithelial tissues. Previously, napari-EpiTools lacked a tracking algorithm with a simplified graphical user interface. This integration allows EpiTools’ user base to benefit from automated parameter tuning for accurate 3D tracking. While btrack is one of the most popular and robust plugins in napari, it is not specialised for packed epithelial tissues. Given that easytrack can be trained to track any kind of cells in a relatively short amount of time, it fills a gap in the napari community for easy-to-use tracking tools for both epithelial tissues and non-epithelial cells. Furthermore, its implementation as a standalone plugin ensures broader accessibility across the napari community.
Methods
easytrack is implemented as napari-easytrack, a plugin for the napari multi-dimensional image viewer, integrating seamlessly with the growing napari bioimage analysis ecosystem. The design philosophy emphasises composability over reinvention, building upon established open-source tools: btrack for tracking (Ulicna, 2021, and Bove, 2017), Optuna for optimisation (Akiba, 2019), and traccuracy for evaluation (https://github.com/live-image-tracking-tools/traccuracy). The plugin provides two complementary widgets (Figure 1):
- Parameter tuning widget: Automates the process of finding optimal btrack parameters for given data using Bayesian optimisation. Optuna (Akiba, 2019) is a hyperparameter optimisation framework that can be used to to find the best solution that minimises (or maximises) a function. Users provide ground truth annotations (cells that have been segmented and tracked), and easytrack's widget optimises btrack’s 18 parameters by minimising the difference between predicted and ground truth tracking. The optimisation proceeds in two phases: first, 64 random trials sample parameters uniformly to explore the search space; then 128 trials guided by a Tree-structured Parzen Estimator (TPE) preferentially sample from parameter regions that produced good tracking scores. In this way, all parameter tuning start with random configurations and no prior knowledge. TPE efficiently navigates btrack’s 18-dimensional parameter space by modelling the distributions of parameters that fall above or below a performance threshold, avoiding the exponential scaling of grid search. Each trial runs the full tracking and evaluation pipeline, minimising the AOGM score from the Cell Tracking Challenge (Maska, 2014). Optimised parameters are saved as JSON configuration files for subsequent use.
-Tracking widget: Applies previously optimised or manually created parameter configurations to new segmented time-lapse or 3D images. The widget parses JSON configuration files, executes btrack with the specified parameters, and displays tracked cells with their trajectories overlaid for visual inspection and manual correction if needed. Both widgets include segmentation preprocessing functionality to remove small artefacts that can compromise tracking accuracy.
We used some of the Cell Tracking Challenge datasets to compare easytrack with btrack and random parameters, both trained and untrained. Given that Cell Tracking Challenge ground-truth annotations do not always cover every cell in every frame (the gold truth (GT) segmentation may annotate only a subset of cells, while silver truth (ST) provides denser but noisier coverage), we took two measures to ensure a fair evaluation. First, we merged GT and ST segmentation masks on a per-pixel basis, with GT taking priority, and relabeled every cell using its tracking (TRA) identity to maintain temporal consistency. Second, we filtered the ground-truth tracking graph (man_track.txt) to retain only those cell lineages whose segmentation masks were actually present in the input provided to the tracker, preventing spurious false-negative penalties for cells the tracker never had the opportunity to detect. TRA was computed via the traccuracy library using the CTC matching protocol. In addition, we relied on CTC matching to compute the different evaluation metrics TRA and AOGM. Thus, there are some parameters that would result in incorrectly tracked images, which would lead to an error in the traccuracy library's CTC matching protocol. For Figure 1B –C ('Random'), we discarded the ones that gave an error and kept only those with valid tracking scores.
Code is accessible via: https://github.com/timsmsmsm/easytrack .
Acknowledgments
We thank the Mao laboratory for providing valuable feedback on the graphical user interface and thoroughly testing easytrack during development. We also acknowledge the napari and btrack communities for creating the foundational tools upon which this work builds.
Funding Statement
P. V.-M. was supported by EPSRC grant EP/X03139X/1. Y.M. was supported by the MRC award MR/W027437/1, a Lister Institute Research Prize and EMBO Young Investigator Programme.
References
- Akiba Takuya, Sano Shotaro, Yanase Toshihiko, Ohta Takeru, Koyama Masanori. Optuna. Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining. 2019 Jul 25;:2623–2631. doi: 10.1145/3292500.3330701. [DOI]
- Bove Anna, Gradeci Daniel, Fujita Yasuyuki, Banerjee Shiladitya, Charras Guillaume, Lowe Alan R. Local cellular neighborhood controls proliferation in cell competition. Molecular Biology of the Cell. 2017 Nov 7;28(23):3215–3228. doi: 10.1091/mbc.e17-06-0368. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Chenouard N, Smal I, de Chaumont F, Maška M, Sbalzarini IF, Gong Y, Cardinale J, Carthel C, Coraluppi S, Winter M, Cohen AR, Godinez WJ, Rohr K, Kalaidzidis Y, Liang L, Duncan J, Shen H, Xu Y, Magnusson KE, Jaldén J, Blau HM, Paul-Gilloteaux P, Roudot P, Kervrann C, Waharte F, Tinevez JY, Shorte SL, Willemse J, Celler K, van Wezel GP, Dan HW, Tsai YS, Ortiz de Solórzano C, Olivo-Marin JC, Meijering E. Objective comparison of particle tracking methods. Nat Methods. 2014 Jan 19;11(3):281–289. doi: 10.1038/nmeth.2808. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hong Y, Fang F, Zhang Q. Circulating tumor cell clusters: What we know and what we expect (Review). Int J Oncol. 2016 Oct 24;49(6):2206–2216. doi: 10.3892/ijo.2016.3747. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Löffler K, Scherr T, Mikut R. A graph-based cell tracking algorithm with few manually tunable parameters and automated segmentation error correction. PLoS One. 2021 Sep 7;16(9):e0249257–e0249257. doi: 10.1371/journal.pone.0249257. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Maška M, Ulman V, Delgado-Rodriguez P, Gómez-de-Mariscal E, Nečasová T, Guerrero Peña FA, Ren TI, Meyerowitz EM, Scherr T, Löffler K, Mikut R, Guo T, Wang Y, Allebach JP, Bao R, Al-Shakarji NM, Rahmon G, Toubal IE, Palaniappan K, Lux F, Matula P, Sugawara K, Magnusson KEG, Aho L, Cohen AR, Arbelle A, Ben-Haim T, Raviv TR, Isensee F, Jäger PF, Maier-Hein KH, Zhu Y, Ederra C, Urbiola A, Meijering E, Cunha A, Muñoz-Barrutia A, Kozubek M, Ortiz-de-Solórzano C. The Cell Tracking Challenge: 10 years of objective benchmarking. Nat Methods. 2023 May 18;20(7):1010–1020. doi: 10.1038/s41592-023-01879-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Maška M, Ulman V, Svoboda D, Matula P, Matula P, Ederra C, Urbiola A, España T, Venkatesan S, Balak DM, Karas P, Bolcková T, Streitová M, Carthel C, Coraluppi S, Harder N, Rohr K, Magnusson KE, Jaldén J, Blau HM, Dzyubachyk O, Křížek P, Hagen GM, Pastor-Escuredo D, Jimenez-Carretero D, Ledesma-Carbayo MJ, Muñoz-Barrutia A, Meijering E, Kozubek M, Ortiz-de-Solorzano C. A benchmark for comparison of cell tracking algorithms. Bioinformatics. 2014 Feb 12;30(11):1609–1617. doi: 10.1093/bioinformatics/btu080. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ozaki Yoshihiko, Tanigaki Yuki, Watanabe Shuhei, Nomura Masahiro, Onishi Masaki. Multiobjective Tree-Structured Parzen Estimator. Journal of Artificial Intelligence Research. 2022 Apr 8;73:1209–1250. doi: 10.1613/jair.1.13188. [DOI] [Google Scholar]
- Paci Giulia, Berkemeier Francisco, Baum Buzz, Page Karen M., Mao Yanlan. 3D epithelial cell topology tunes signaling range to promote precise patterning. Proceedings of the National Academy of Sciences. 2026 May 6;123(19) doi: 10.1073/pnas.2522727123. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Paci Giulia, Vicente-Munuera Pablo, Fernandez-Mosquera Inés, Miranda Álvaro, Lau Katherine, Zhang Qingyang, Barrientos Ricardo, Mao Yanlan. Single cell resolution 3D imaging and segmentation within intact live tissues. npj Imaging. 2025 Sep 3;3(1) doi: 10.1038/s44303-025-00099-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Soelistyo CJ, Ulicna K, Lowe AR. Machine learning enhanced cell tracking. Front Bioinform. 2023 Jul 14;3:1228989–1228989. doi: 10.3389/fbinf.2023.1228989. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Stringer C, Wang T, Michaelos M, Pachitariu M. Cellpose: a generalist algorithm for cellular segmentation. Nat Methods. 2020 Dec 14;18(1):100–106. doi: 10.1038/s41592-020-01018-x. [DOI] [PubMed] [Google Scholar]
- Tetley RJ, Staddon MF, Heller D, Hoppe A, Banerjee S, Mao Y. Tissue Fluidity Promotes Epithelial Wound Healing. Nat Phys. 2019 Aug 12;15(11):1195–1203. doi: 10.1038/s41567-019-0618-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ulicna Kristina, Vallardi Giulia, Charras Guillaume, Lowe Alan R. Automated Deep Lineage Tree Analysis Using a Bayesian Single Cell Tracking Approach. Frontiers in Computer Science. 2021 Oct 20;3 doi: 10.3389/fcomp.2021.734559. [DOI] [Google Scholar]
- Ulman V, Maška M, Magnusson KEG, Ronneberger O, Haubold C, Harder N, Matula P, Matula P, Svoboda D, Radojevic M, Smal I, Rohr K, Jaldén J, Blau HM, Dzyubachyk O, Lelieveldt B, Xiao P, Li Y, Cho SY, Dufour AC, Olivo-Marin JC, Reyes-Aldasoro CC, Solis-Lemus JA, Bensch R, Brox T, Stegmaier J, Mikut R, Wolf S, Hamprecht FA, Esteves T, Quelhas P, Demirel Ö, Malmström L, Jug F, Tomancak P, Meijering E, Muñoz-Barrutia A, Kozubek M, Ortiz-de-Solorzano C. An objective comparison of cell-tracking algorithms. Nat Methods. 2017 Oct 30;14(12):1141–1152. doi: 10.1038/nmeth.4473. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Valon L, Davidović A, Levillayer F, Villars A, Chouly M, Cerqueira-Campos F, Levayer R. Robustness of epithelial sealing is an emerging property of local ERK feedback driven by cell elimination. Dev Cell. 2021 Jun 2;56(12):1700–1711.e8. doi: 10.1016/j.devcel.2021.05.006. [DOI] [PMC free article] [PubMed] [Google Scholar]

