Skip to main content
Advertisement
  • Loading metrics

napariTFM: An open-source tool for traction force microscopy and monolayer stress microscopy

?

This is an uncorrected proof.

Abstract

Cellular force generation and transmission are fundamental processes driving cell migration, division, tissue morphogenesis, and disease progression. Traction Force Microscopy (TFM) and Monolayer Stress Microscopy (MSM) have emerged as essential techniques for quantifying these mechanical processes, but current software solutions are fragmented across multiple platforms with varying degrees of usability and accessibility. Here, we present napariTFM, a comprehensive open-source plugin for the napari image viewer that integrates state-of-the-art algorithms for both TFM and MSM analysis within an intuitive graphical user interface. The software implements TV-L1 optical flow for displacement analysis, Fourier Transform Traction Cytometry (FTTC) for force reconstruction, and finite element methods for stress calculation, supporting both single-frame and time-series analysis of 2D microscopy data. Systematic validation using synthetic datasets with known ground truth values demonstrated excellent accuracy, with correlation coefficients above 0.9 for most situations. Real-time parameter adjustment and immediate visualization capabilities enable interactive optimization of analysis parameters and quality assessment during processing. Finally, we demonstrate the software’s capabilities through analysis of optogenetic contractility experiments in cell doublets. napariTFM addresses critical gaps in the cellular mechanics software ecosystem by combining algorithmic rigor with practical usability, providing the research community with an accessible platform for quantitative studies of cellular force generation and transmission.

Author summary

Cell-generated forces are essential in driving and regulating numerous biological processes, including development, wound healing, and disease progression. Traction Force Microscopy (TFM) is a widely used technique to measure these cell-substrate forces. Cells are cultured on elastic gels of known stiffness with embedded fluorescent beads. By comparing images of the gel in deformed (cell-attached) and relaxed states (cell-detached), bead displacements can be measured and converted into traction forces through Fourier-based mathematical methods. For cells in monolayers, Monolayer Stress Microscopy (MSM) extends this analysis to calculate internal tissue stresses, assuming the cell layer behaves as a homogeneous and linear material. Despite TFM’s widespread use, existing software tools remain fragmented and often require programming expertise. napariTFM addresses this gap with a comprehensive, user-friendly platform built on napari, a python-based image viewer. The software combines an intuitive graphical interface for interactive parameter exploration with robust batch processing for large datasets, making quantitative force measurements accessible to researchers without computational backgrounds.

1 Introduction

Cellular force generation and transmission are fundamental processes that drive and regulate critical biological functions including cell migration, division, tissue morphogenesis, and disease progression [13]. Over the past decades, Traction Force Microscopy (TFM) and Monolayer Stress Microscopy (MSM) have emerged as powerful techniques for quantifying these mechanical processes, enabling researchers to measure cell-substrate forces and internal cellular stresses with high spatial and temporal resolution [46].

TFM reconstructs cellular traction forces by measuring substrate deformations caused by adherent cells on elastic substrates embedded with fiducial markers [7]. The technique typically involves comparing images of fluorescent beads in stressed (cell-attached) and relaxed (cell-removed) states, followed by computational reconstruction of force fields.

Several computational approaches have been developed for this inverse problem, including Boundary Element Methods (BEM) [8], Fourier Transform Traction Cytometry (FTTC) [9,10], and finite element approaches [11,12], each with distinct advantages and limitations depending on the experimental context.

MSM extends this analysis by calculating internal stress distributions within cell monolayers [6,13]. By modeling cellular tissues as thin elastic sheets, MSM enables determination of intercellular force transmission and stress propagation. Important contributions from the biomechanics community have advanced our understanding of these methods’ capabilities and limitations, including developments in 4D TFM [14], quantification of active versus resistive stresses [15], and theoretical frameworks for stress inference in confluent tissues [16].

Despite the widespread adoption of these techniques, significant barriers limit their accessibility to the broader biological research community. Current software solutions are fragmented across multiple platforms with varying degrees of usability, documentation quality, and computational requirements. The TFM software ecosystem includes diverse implementations: ImageJ plugins such as Qingzong Tseng’s PIV and FTTC implementations [17], JEasyTFM [18] and iTACS [19], the stand-alone tool Cellogram [20] for reference-free real-time analysis, MATLAB tools such as TFMLAB [21] for 4D TFM capabilities, the TFM toolkit by Huang et al., featuring Bayesian parameter selection [22] (available at https://github.com/CellMicroMechanics) or μ-inferforce [8], implementing both FTTC and BEM algorithms, and Python tools such as pyTFM [23] and our own previous tool batchTFM [24]. For MSM analysis, pyTFM and iTACS are, to our knowledge, the only freely available solutions.

However, several challenges remain for researchers seeking to implement these techniques. First, the fragmented software landscape requires users to switch between different platforms and programming environments for complete analysis workflows. Second, selecting appropriate algorithmic parameters (regularization values, mesh densities, filtering parameters) requires significant expertise and often lacks real-time visual feedback during optimization. Third, processing time-series datasets at scale demands robust batch processing capabilities that many existing tools lack. Finally, researchers without programming expertise face substantial barriers to entry, limiting the techniques’ adoption despite their biological value.

To this end, we developed napariTFM, a comprehensive TFM/MSM napari plugin that addresses these critical gaps through an intuitive graphical user interface, immediate feedback on parameter selection effects, and powerful batch processing capabilities for high-throughput experiments. The plugin leverages the Python-based napari image viewer [25], which is emerging as a powerful platform for biological image analysis with active community development and an extensive plugin ecosystem for comprehensive microscopy workflows.

The plugin supports both single-frame and time-series analysis of 2D microscopy images. napariTFM implements state-of-the-art algorithms including TV-L1 optical flow for displacement analysis, FTTC for force reconstruction, and finite element methods for stress calculation.

2 Design and implementation

2.1 Assumptions and limitations

napariTFM addresses the methodological complexities of force microscopy by making established computational approaches accessible, transparent, and easy to use for biologists conducting diverse experiments. The plugin implements well-established algorithms including TV-L1 optical flow for displacement analysis [26], FTTC for force reconstruction [9,12], and finite element methods for stress calculation [6,23].

We chose these specific methods based on their favorable balance of computational efficiency, robustness to noise, and ability to handle the range of displacement magnitudes encountered in typical biological experiments. However, we acknowledge that alternative approaches may be preferable in specific contexts. These methods rely on fundamental assumptions about substrate and cellular material properties (linear elasticity, homogeneity), measurement conditions (2D imaging of inherently 3D systems), and force balance (which may not hold locally even when satisfied globally). Different algorithmic approaches handle these challenges differently, with trade-offs between computational efficiency, noise robustness, and accuracy under various experimental conditions [7,12].

Important considerations for users include the effects of spherical aberration at image edges in large monolayers, and the current implementation of boundary conditions for MSM which work only when cell borders are clearly visible. Future versions will address boundary conditions for confluent layers without visible borders and could incorporate multiple algorithmic options with guidance for users on method selection.

2.2 Software architecture and implementation

napariTFM is implemented as a Python 3.6 + package designed to integrate with the napari image viewer as an optional plugin. The complete analysis workflow from raw input data through preprocessing, displacement analysis, force calculation, and stress analysis is outlined in Fig 1.

thumbnail
Fig 1. napariTFM workflow and data structure.

Schematic overview of the napariTFM analysis pipeline showing the flow from raw input data (beads, reference, and optional cell images) through preprocessing, displacement analysis using TV-L1 optical flow, force calculation via FTTC (Fourier Transform Traction Cytometry), and stress analysis using MSM (Monolayer Stress Microscopy). Orange boxes indicate input data, blue boxes show analysis steps and their internal data structures, and green boxes indicate output files generated at each step.

https://doi.org/10.1371/journal.pcbi.1014045.g001

The software provides both a graphical user interface through napari (Fig 2) and a standalone Python library for programmatic access. The core computational components utilize established open-source packages including NumPy for array operations, SciPy for scientific computing, OpenCV for image processing, scikit-image for automated detection and drift correction, and matplotlib for visualization.

thumbnail
Fig 2. napariTFM user interface in napari.

Screenshot of the napariTFM plugin integrated within the napari image viewer, showing: (1) the main image display with fluorescent bead data and overlaid displacement vectors, (2) napari’s layer controls, (3) global parameters panel, (4) tabs that access controls for different analysis steps, (5) data input panel, (6) local parameters for the selected step, and (7) action controls (analyze, save data, preview etc.). The interface provides real-time parameter adjustment and visualization of results.

https://doi.org/10.1371/journal.pcbi.1014045.g002

The plugin organizes data using a hierarchical structure where each experimental field of view is represented as a frame containing multiple image layers. Input images (substrate in tensed and relaxed states, and optional cell images) are stored as separate layers, with analysis outputs added as additional layers during processing. Cell masks are created through simple threshold segmentation of cell images or can be provided externally as TIFF files.

2.3 Displacement field calculation

Optical flow algorithms have been successfully applied to TFM [2628], where they have been shown to outperform classical PIV approaches in terms of both computational efficiency and accuracy [26,29]. napariTFM implements the TV-L1 variant [30,31], which is particularly well-suited for TFM analysis due to its ability to handle steep gradients in displacement fields, large displacements through multi-scale analysis, and provision of sub-pixel accuracy while being robust to intensity variations. The inherent smoothness constraint in TV-L1 optical flow makes it particularly robust to imperfect experimental conditions such as bead aggregates or non-uniform bead densities, reducing the need for post-processing steps like outlier removal that are sometimes necessary with other displacement tracking methods. However, users should be aware that this smoothness constraint can also over-regularize displacement fields in regions with genuinely high deformation gradients.

The TV-L1 algorithm minimizes an energy functional that combines brightness constancy assumptions (beads maintain intensity) with total variation regularization (smooth displacement fields) and additional constraints for numerical stability. It uses a multi-scale pyramid approach where images are analyzed at different resolution levels. Large displacements are captured at coarse scales while fine details are refined at higher resolutions. Key algorithm parameters include lambda (λ) which controls the balance between data fitting and smoothness (typical values 0.01–1.0, with lower values providing more smoothing for noisy data and higher values preserving detail for clear images), pyramid scales (number of resolution levels, typically 3–5), warps (number of iterative refinements per scale), epsilon (stopping criterion for optimization), and scale step (factor between pyramid levels, typically 0.5–0.8). Global image drift correction is performed using phase cross-correlation of the entire image pair, followed by image alignment and cropping to the overlapping field of view.

2.4 Traction force reconstruction

Traction forces are computed using Fourier Transform Traction Cytometry (FTTC) [9,10], which exploits the convolution theorem to efficiently relate substrate displacements to cellular tractions in Fourier space. FTTC typically processes images in seconds, making it well-suited for batch processing of large time-series datasets. napariTFM uses the Python implementation by Blumberg et al. [12].

For larger cell patches where substrate thickness becomes relevant, napariTFM also includes corrections for finite substrate thickness [23,32].

The reconstruction of traction forces from displacement data is an inverse problem and as such inherently ill-posed: small errors in displacement measurements can lead to large errors in the recovered forces [33]. Therefore, in order to avoid overfitting the traction force solution to noise, regularization is required. To this end, napariTFM uses Tikhonov regularization, which suppresses noise-dominated high-frequency contributions to the traction field [10,33].

The balance between fitting the displacement data and suppressing noise is controlled by the regularization parameter λ. napariTFM supports both automatic parameter selection via Generalized Cross-Validation (GCV) and manual specification of the regularization parameter.

When comparing datasets quantitatively, it is essential to maintain consistent regularization parameters to ensure that differences in recovered forces reflect biological variation rather than analysis artifacts. However, if substrate rigidity differs between conditions, the regularization parameter should be adjusted accordingly as the optimal regularization depends on the mechanical properties of the system.

A Lanczos filter with user-defined exponent is applied for additional noise reduction, with higher exponents providing stronger smoothing at the cost of spatial detail. The choice of Lanczos exponent, like the regularization parameter, should remain consistent within comparative studies.

2.5 Monolayer stress microscopy

Monolayer Stress Microscopy (MSM) calculates internal stress distributions within cell monolayers from measured traction forces [6,13]. The method models the cell monolayer as a thin elastic sheet and uses force balance to compute intercellular stresses from the traction field.

napariTFM implements MSM using a finite element method based on the pyTFM package [23], which uses SolidsPy [34] for solving the FEM equations. We extended this implementation by using Gmsh [35] for mesh generation, which provides improved mesh quality and user-controllable mesh parameters compared to the original pyTFM implementation.

Since TFM ensures global but not local force balance, unbalanced forces and torques are corrected before solving [13,23].

The stress calculation is largely independent of assumed material properties: it does not depend on Young’s modulus and is only weakly influenced by Poisson’s ratio [13].

Alternative approaches such as Bayesian inference have been developed that do not require assumptions about monolayer rheology [36], but are not currently implemented in napariTFM.

2.6 Synthetic data generation for validation

To validate the accuracy of napariTFM’s displacement analysis, traction force reconstruction, and stress calculation algorithms, we generated synthetic datasets with known ground truth values for systematic comparison.

For traction force microscopy validation, we utilized the DirectMethod repository from Blumberg et al. [12], which provides a forward simulation approach to generate substrate displacements from known force fields. We programmed two force dipoles with identical centers and 90-degree rotation relative to each other, mimicking the characteristic force field pattern of a cell doublet on H-shaped micropatterns, similar to the experimental conditions described in our previous work [37].

The dipoles were applied on a circular region of radius 3 µm, and we varied the total force magnitude across three conditions (high: 0.25 µN, medium: 0.025 µN, low: 0.0025 µN) to span three orders of magnitude and probe the limits of displacement reconstruction. Substrate displacements were computed using the DirectMethod forward model assuming a linear elastic substrate with properties matching typical polyacrylamide hydrogels (Young’s modulus , Poisson’s ratio ).

To create realistic synthetic bead images, we used OpenCV to deform experimental fluorescent bead images according to the displacement maps generated by the forward simulation.

For monolayer stress microscopy validation, we employed two complementary approaches. First, we used an analytically solved problem consisting of a square plate under uniform loading, where both the internal stress distribution (constant within the plate) and boundary forces are known exactly, providing a rigorous benchmark for algorithm accuracy.

Second, we employed a finite element method (FEM), inspired by the modeling approach in [38,39] to generate realistic stress maps and corresponding traction force distributions that capture the mechanical behavior of migrating cells. This approach enables validation under more complex and biologically relevant conditions.

In this framework, cells are modeled as a two-dimensional active elastic solid via

(1)

where the first term represents the constitutive relation of a linear elastic material, with and denoting the Cauchy stress and strain tensor, respectively. The second term introduces an active contractile stress with constant contractility . The cell layer is further characterized by the Young’s modulus , Poisson’s ratio , and effective contractile thickness . To increase geometric and mechanical complexity, the cell is assumed to adhere at 19 distinct adhesive islands positioned near the periphery similar to [40]. Force balance is then given by

(2)

where at adhesion sites (and vanishes otherwise), describing the spring stiffness of the elastic substrate, and u is the substrate displacement field [41]. For the parametrization of this continuum model, we closely follow the parameters listed in the Supporting Information of [40]. In our FEM simulations, an initially round cell undergoes isotropic contraction until the force balance in Eq 2 is reached. The resulting cell shape and internal stress patterns are shown in Fig 4C (upper left row).

3 Results

We systematically validated napariTFM’s performance across all major analysis components using synthetic datasets with known ground truth values, followed by demonstration of its capabilities on real experimental data. The validation encompassed displacement field calculation, traction force reconstruction, and monolayer stress microscopy analysis, confirming the software’s accuracy and reliability for quantitative cellular force measurements.

3.1 Displacement analysis performance

The displacement field reconstruction achieved excellent accuracy across all tested scenarios (Fig 3A), with correlation coefficients between calculated and ground truth displacement of ≈ 0.93 for low displacement scenarios and 0.99 for medium and high displacement conditions, demonstrating robust performance across biologically relevant deformation magnitudes.

thumbnail
Fig 3. Validation of displacement analysis and traction force calculation.

(A) Displacement field validation across three scenarios (low, mid, high displacement magnitudes). Top row shows ground truth displacement fields, bottom row shows calculated results using napariTFM’s TV-L1 optical flow algorithm. Vector overlays indicate displacement direction and magnitude, with color maps showing displacement magnitude in pixels. (B) Displacement analysis metrics. Left: correlation coefficients between calculated and ground truth displacement fields. Right: relative error as a function of ground truth displacement magnitude, showing systematic bias at different displacement scales.(C) Traction force validation using FTTC algorithm across three force magnitude scenarios. Top row shows ground truth traction fields, bottom row shows calculated results. Color maps indicate traction force magnitude in kPa, with vector overlays showing force direction. (D) Traction force analysis metrics. From left to right: correlation coefficients between calculated and ground truth traction forces, deviation of traction magnitude (DTM), traction in surrounding regions (DTPS) and deviation of traction angle (DTA).

https://doi.org/10.1371/journal.pcbi.1014045.g003

Error analysis as a function of ground truth displacement magnitude (Fig 3B) revealed systematic performance characteristics across the measurement range. For displacements below approximately 1 pixel, sub-pixel accuracy limitations lead to systematic underestimation of displacement magnitudes. The optimal operating regime lies between roughly 1–10 pixels, where relative errors are minimized and remain close to zero. Above 10 pixels, the algorithm begins to show increasing variability, though correlation coefficients remain high even at 30 pixels of displacement.

For a 60x objective with a camera pixel size of 6.5 µm (corresponding to the imaging conditions used here), this optimal operating range translates to physical displacements of approximately 0.1–1 µm, with sub-pixel accuracy enabling detection of displacements as small as 0.01 µm, as demonstrated by the low displacement scenario. Depending on substrate stiffness (typically 1–50 kPa for polyacrylamide gels), this displacement range enables measurement of cellular traction forces from tens of Pa to several tens of kPa. Depending on substrate stiffness (typically 1–50 kPa for polyacrylamide gels), this displacement range enables measurement of cellular traction forces from tens of Pa up to tens of kPa.

3.2 Traction force reconstruction accuracy

Force reconstruction showed high fidelity to ground truth data (Fig 3C), with correlation coefficients ranging from 0.72 to 0.98 across different force magnitudes.

Force reconstruction showed high fidelity to ground truth data (Fig 3C), with correlation coefficients ranging from 0.72 to 0.98 across different force magnitudes (Fig 3D). For further error quantification, we calculated the deviation in traction magnitude (DTM), the Traction in surrounding regions (DTMS) and the deviation of traction angle (DTA), as defined by Sabass et al. [10].

The medium force scenario performed best across all metrics, with minimal systematic bias (DTM ), good spatial localization (DTPS ), and near-perfect directional accuracy (DTA ).

The low force scenario showed reduced performance, likely due to increased noise, leading to underestimated forces (DTM ) and poor spatial localization (DTPS ).

The high force scenario suffered from large displacement artifacts, resulting in underestimated forces (DTM ), the highest spurious traction in surrounding regions (DTPS ), and reduced directional accuracy (DTA ).

These findings indicate an optimal operating regime of approximately 1–10 pixels displacement, providing practical guidance for substrate stiffness selection in experimental design.

3.3 Monolayer stress microscopy performance

MSM validation using analytical square plate solutions (Fig 4A and 4B) yielded correlation coefficients above for all stress tensor components (, , and their average ), with mean absolute and relative errors below 5%, indicating accurate recovery of both stress field structure and magnitude.

thumbnail
Fig 4. Validation of Monolayer Stress Microscopy (MSM) analysis.

(A) Square plate analytical validation using a simple geometric test case with a known analytical solution. Stress tensor components (, , ) are shown for ground truth (top row) and MSM-calculated (bottom row) fields. (B) Square plate analysis metrics. Bar charts show correlation coefficients between calculated and ground truth stress fields for each stress component, as well as mean relative error. (C) FEM-simulation–based validation using computational data from a finite element model resembling a snapshot of a migrating cell. Stress tensor components are shown for ground truth (top row) and MSM-calculated (bottom row) fields, with layout as in (A). (D) FEM-simulation validation metrics. Correlation coefficients between calculated and ground truth stress fields are shown for each stress component, as well as absolute and relative error with respect to ground truth sress magnitude.

https://doi.org/10.1371/journal.pcbi.1014045.g004

Validation using FEM simulations with realistic, cell-like geometries (Fig 4C and 4D) resulted in correlation coefficients ranging from 0.85 to 0.91. While relative errors were high for stress values near zero due to small normalization denominators, these errors decreased and transitioned to negative values at higher magnitudes. Ultimately, all substantial stress components were systematically underestimated by approximately −25%.

3.4 Validation against published experimental data

To further validate napariTFM’s accuracy on real experimental data, we reanalyzed microscopy images from previously published experiments [37] and compared the results with the original analysis. The original analysis used a custom MATLAB-based pipeline that included Gaussian smoothing of displacement fields after single particle tracking analysis of bead movements, while napariTFM uses TV-L1 optical flow with an optional post-processing median filter which was not used here.

Qualitative comparison of displacement, traction force, and stress fields showed good agreement between both methods (Fig 5A and 5B). The spatial patterns of force localization at cell-substrate adhesion sites and the overall stress distributions were highly consistent across individual cells and population averages, confirming that both analysis pipelines capture the same underlying mechanical behavior.

thumbnail
Fig 5. Validation of napariTFM against experimental data, previously published in eLife [37].

(A) Single-cell analysis showing displacement fields (left column), traction force fields (second column), and stress tensor components (third column) and (right column). Top row: original analysis from Ruppel et al., eLife 2023. Bottom row: reanalysis using napariTFM. Color maps indicate displacement magnitude in μm, traction force magnitude in Pa, and stress components in mN/m. (B) Population-averaged fields across 29 cells. Top row: averages from original analysis. Bottom row: averages from napariTFM reanalysis. Layout as in (A). (C) Quantitative comparison of analysis outputs. Box plots show distributions of average displacement magnitude (left), average traction force (second from left), average stress (second from right), and average stress (right). For each metric, three conditions are shown: Original (original published analysis), napariTFM (reanalysis), and Difference. Horizontal dashed line at zero indicates no difference between methods.

https://doi.org/10.1371/journal.pcbi.1014045.g005

Quantitative analysis across 29 cells revealed close agreement between methods (Fig 5C). The median average displacement magnitudes differed by less than 0.1 μm, average traction forces by approximately 0 Pa, and average stress components by less than 1 mN/m.

Notably, napariTFM produced sharper displacement and traction force fields compared to the original analysis, as evident from the more localized force patterns and reduced spatial spreading in Fig 5A and 5B. This difference reflects the absence of Gaussian smoothing in napariTFM’s workflow. As a consequence, maximum displacement and traction force values were consistently higher with napariTFM, while spatially-averaged quantities remained comparable between methods. The sharper fields obtained with napariTFM may provide improved spatial resolution for identifying localized mechanical features such as focal adhesion positions or stress concentrations.

4 Availability and future directions

napariTFM addresses a critical need in the cellular mechanics community by providing a comprehensive, user-friendly platform that integrates state-of-the-art algorithms for both traction force microscopy and monolayer stress microscopy. Our validation results demonstrate that the software achieves excellent accuracy across the full range of biologically relevant force and displacement magnitudes, with correlation coefficients consistently above 0.9 for most scenarios.

The integration within the napari ecosystem represents a significant advantage for the broader microscopy community, leveraging napari’s established plugin architecture and intuitive interface design. The real-time parameter adjustment and immediate visualization capabilities address a common limitation of batch-processing tools, allowing users to optimize analysis parameters interactively and assess data quality during processing.

Our synthetic data validation revealed important performance characteristics across different experimental conditions. The reduction in accuracy for low displacement scenarios (normalized strain energy ratio of 0.79) reflects the fundamental signal-to-noise limitations inherent to TFM analysis. This finding is consistent with previous studies and highlights the importance of experimental design considerations, such as substrate stiffness selection and imaging quality optimization, for achieving optimal force measurement accuracy.

While napariTFM’s primary contribution lies in integrating established methods into an accessible platform, it is important to acknowledge the algorithmic choices and their limitations. Our validation demonstrates the accuracy of specific implementations: TV-L1 optical flow, FTTC, and finite element MSM. We selected these methods for their favorable balance of computational efficiency, noise robustness, and ability to handle typical biological displacement magnitudes, but alternative approaches (e.g., PIV, BEM) may offer advantages in specific contexts [7,8]. Future versions could incorporate multiple algorithmic options with guidance for method selection based on experimental requirements.

Specifically, Particle Image Velocimetry (PIV) and single particle tracking (SPT) methods have been widely used in TFM and are still the norm up to date. Digital Image Correlation (DIC), including its 3D variant Digital Volume Correlation (DVC) [42,43], provides robust displacement tracking for volumetric datasets and has been successfully applied to 3D TFM. While Python implementations of DIC exist (e.g., spam [44]), the ecosystem for these methods is less mature than for optical flow. Our current implementation uses OpenCV’s C++-based TV-L1 implementation for computational efficiency, but we envision future versions that could leverage napari’s extensibility to offer users a choice of displacement detection algorithms. Such integration could provide a unified interface for comparing different approaches on the same dataset.

All force microscopy methods rely on assumptions that users must understand when interpreting results. TFM assumes linear elastic substrate behavior of the substrate to relate measured displacements to cellular traction forces, which means that substrates with more complex material properties such as matrigel or collagen gels, require different methods. For MSM, while the formulation invokes elastic sheet theory, the calculated stress distributions are largely independent of the assumed elastic modulus and only negligibly influenced by Poisson’s ratio [13], making the elasticity assumption less restrictive than it may appear. Standard 2D analysis captures projections of 3D mechanical systems, potentially missing out-of-plane forces. Regularization in FTTC represents critical trade-offs between noise suppression and spatial detail preservation; napariTFM’s real-time visualization allows interactive assessment, but optimal parameters ultimately require biological judgment about expected force patterns. MSM requires force balance corrections because TFM ensures global but not local equilibrium. The magnitude of these corrections can serve as a quality metric for the analysis.

Important practical considerations include distinguishing between isolated cells and confluent monolayers, which require different analytical approaches and boundary conditions. Our current MSM implementation works only when cell borders are clearly defined. Boundary conditions for truly confluent tissues without visible cell-cell boundaries will be addressed in future versions. Additionally, spherical aberration at image edges and photobleaching in time-lapse experiments can affect displacement accuracy, emphasizing that careful experimental design remains essential for high-quality force microscopy regardless of computational methods.

Current limitations include the restriction to 2D analysis and the computational requirements for large-scale time-series datasets. Future developments will focus on extending the framework to 2.5D and 3D traction force microscopy, implementing GPU acceleration for improved processing speed, and developing specialized tools for high-throughput screening applications.

napariTFM fills an important gap in the TFM and MSM software ecosystem by combining an interactive and user-friendly graphical interface with state-of-the-art algorithms. Its open-source nature and integration within the napari platform position it as a valuable resource for advancing quantitative studies of cellular force generation and transmission across diverse biological systems.

napariTFM is open-source software available at https://github.com/ArturRuppel/napariTFM (GNU General Public License) and can be installed by following the installation procedure outlined in the readme. Synthetic validation datasets and analysis scripts are included in the repository. The dataset used in Fig 5 is available at https://zenodo.org/records/18390989.

Acknowledgments

We acknowledge the foundational algorithmic contributions that enabled this work: Andreas Bauer and Ben Fabry for the pyTFM implementation of monolayer stress microscopy and finite substrate thickness corrections, and Johannes Blumberg and Ulrich Schwarz for the FTTC implementation and synthetic data generation methods. napariTFM builds upon these established frameworks to provide an integrated analysis platform for the cellular mechanics community. We further would like to thank François Graner for providing valuable feedback on the manuscript. During the development of this work, we used Claude (Anthropic) as a coding assistant for software development and to improve the clarity and organization of the manuscript text. We reviewed and edited all AI-generated content and code, and take full responsibility for the software implementation and final manuscript.

References

  1. 1. Engler AJ, Sen S, Sweeney HL, Discher DE. Matrix elasticity directs stem cell lineage specification. Cell. 2006;126(4):677–89.
  2. 2. Lecuit T, Lenne PF, Munro E. Force generation, transmission, and integration during cell and tissue morphogenesis. Annual Review of Cell and Developmental Biology. 2011;27(1):157–84.
  3. 3. Chen MB, Javanmardi Y, Shahreza S, Serwinski B, Aref A, Djordjevic B, et al. Mechanobiology in oncology: basic concepts and clinical prospects. Front Cell Dev Biol. 2023;11:1239749. pmid:38020912
  4. 4. Harris AK, Wild P, Stopak D. Silicone rubber substrata: a new wrinkle in the study of cell locomotion. Science. 1980;208(4440):177–9.
  5. 5. Dembo M, Oliver T, Ishihara A, Jacobson K. Imaging the traction stresses exerted by locomoting cells with the elastic substratum method. Biophys J. 1996;70(4):2008–22. pmid:8785360
  6. 6. Tambe DT, Hardin CC, Angelini TE, Rajendran K, Park CY, Serra-Picamal X, et al. Collective cell guidance by cooperative intercellular forces. Nat Mater. 2011;10(6):469–75. pmid:21602808
  7. 7. Schwarz US, Soiné JRD. Traction force microscopy on soft elastic substrates: a guide to recent computational advances. Biochim Biophys Acta. 2015;1853(11 Pt B):3095–104. pmid:26026889
  8. 8. Han SJ, Oak Y, Groisman A, Danuser G. Traction microscopy to identify force modulation in subresolution adhesions. Nat Methods. 2015;12(7):653–6. pmid:26030446
  9. 9. Butler JP, Tolić-Nørrelykke IM, Fabry B, Fredberg JJ. Traction fields, moments, and strain energy that cells exert on their surroundings. Am J Physiol Cell Physiol. 2002;282(3):C595-605. pmid:11832345
  10. 10. Sabass B, Gardel ML, Waterman CM, Schwarz US. High resolution traction force microscopy based on experimental and computational advances. Biophysical Journal. 2008;94(1):207–20.
  11. 11. Yang Z, Lin J-S, Chen J, Wang JH-C. Determining substrate displacement and cell traction fields--a new approach. J Theor Biol. 2006;242(3):607–16. pmid:16782134
  12. 12. Blumberg JW, Schwarz US. Comparison of direct and inverse methods for 2.5D traction force microscopy. PLoS One. 2022;17(1):e0262773. pmid:35051243
  13. 13. Tambe DT, Croutelle U, Trepat X, Park CY, Kim JH, Millet E, et al. Monolayer stress microscopy: limitations, artifacts, and accuracy of recovered intercellular stresses. PLoS One. 2013;8(2):e55172. pmid:23468843
  14. 14. Rieu JP, Delanoë-Ayari H. Shell tension forces propel Dictyostelium slugs forward. Physical Biology. 2012;9(6):066001.
  15. 15. Delanoë-Ayari H, Nicolas A. Quantifying active and resistive stresses in adherent cells. Phys Rev E. 2022;106(2–1):024411. pmid:36109975
  16. 16. Nier V, Peyret G, d’Alessandro J, Ishihara S, Ladoux B, Marcq P. Kalman inversion stress microscopy. Biophysical Journal. 2018;115(9):1808–16.
  17. 17. Martiel JL, Leal A, Kurzawa L, Balland M, Wang I, Vignaud T. Measurement of cell traction forces with ImageJ. Measurement of cell traction forces. Elsevier; 2015. p. 269–87. https://doi.org/10.1016/bs.mcb.2014.10.008
  18. 18. Carl P, Rondé P. JEasyTFM: an open-source software package for the analysis of large 2D TFM data within ImageJ. Bioinform Adv. 2023;3(1):vbad156. pmid:37928344
  19. 19. Nguyen A, Battle K, Paudel SS, Xu N, Bell J, Ayers L, et al. Integrative toolkit to analyze cellular signals: forces, motion, morphology, and fluorescence. Journal of Visualized Experiments. 2022;181.
  20. 20. Lendenmann T, Schneider T, Dumas J, Tarini M, Giampietro C, Bajpai A, et al. Cellogram: on-the-fly traction force microscopy. Nano Lett. 2019;19(10):6742–50. pmid:31538794
  21. 21. Barrasa-Fano J, Shapeti A, Jorge-Peñas Á, Barzegari M, Sanz-Herrera JA, Van Oosterwyck H. TFMLAB: a MATLAB toolbox for 4D traction force microscopy. SoftwareX. 2021;15:100723.
  22. 22. Huang Y, Schell C, Huber TB, Şimşek AN, Hersch N, Merkel R, et al. Traction force microscopy with optimized regularization and automated Bayesian parameter selection for comparing cells. Sci Rep. 2019;9(1):539. pmid:30679578
  23. 23. Bauer A, Prechová M, Fischer L, Thievessen I, Gregor M, Fabry B. pyTFM: a tool for traction force and monolayer stress microscopy. PLoS Comput Biol. 2021;17(6):e1008364. pmid:34153027
  24. 24. Ruppel A, Misiak V, Balland M. An open-source python tool for traction force microscopy on micropatterned substrates. Bio Protoc. 2025;15(1):e5156. pmid:39803324
  25. 25. Sofroniew N, Lambert T, Bokota G, Nunez-Iglesias J, Sobolewski P, Sweet A. Napari: a multi-dimensional image viewer for Python. Zenodo. https://zenodo.org/doi/10.5281/zenodo.3555620. 2020.
  26. 26. Holenstein CN, Silvan U, Snedeker JG. High-resolution traction force microscopy on small focal adhesions - improved accuracy through optimal marker distribution and optical flow tracking. Sci Rep. 2017;7:41633. pmid:28164999
  27. 27. Delanoë-Ayari H, Hiraiwa T, Marcq P, Rieu JP, Saw TB. 2.5D Traction force microscopy: imaging three-dimensional cell forces at interfaces and biological applications. The International Journal of Biochemistry & Cell Biology. 2023;161:106432.
  28. 28. Desjardins-Lecavalier N, Costantino S. A new approach for high-content traction force microscopy to characterize large cell ensembles. Biophys J. 2026;125(1):113–24. pmid:41229119
  29. 29. Vig DK, Hamby AE, Wolgemuth CW. On the quantification of cellular velocity fields. Biophys J. 2016;110(7):1469–75. pmid:27074673
  30. 30. Zach C, Pock T, Bischof H. A duality based approach for realtime TV-L 1 optical flow. In: 2007. 214–23. https://doi.org/10.1007/978-3-540-74936-3_22
  31. 31. Sanchez Parez J, Meinhardt-Llopis E, Facciolo G. TV-L1 optical flow estimation. Image Processing On Line. 2013;3:137–50. http://dx.doi.org/10.5201/ipol.2013.26
  32. 32. Merkel R, Kirchgessner N, Cesa CM, Hoffmann B. Cell force microscopy on elastic layers of finite thickness. Biophys J. 2007;93(9):3314–23. pmid:17660320
  33. 33. Schwarz US, Balaban NQ, Riveline D, Bershadsky A, Geiger B, Safran SA. Calculation of forces at focal adhesions from elastic substrate data: the effect of localized force and the need for regularization. Biophys J. 2002;83(3):1380–94. pmid:12202364
  34. 34. Guarín-Zapata N, Gómez J. SolidsPy: 2D-finite element analysis with python. 2023. https://doi.org/10.5281/zenodo.7694030
  35. 35. Geuzaine C, Remacle J. Gmsh: A 3‐D finite element mesh generator with built‐in pre‐ and post‐processing facilities. Numerical Meth Engineering. 2009;79(11):1309–31.
  36. 36. Nier V, Jain S, Lim CT, Ishihara S, Ladoux B, Marcq P. Inference of internal stress in a cell monolayer. Biophys J. 2016;110(7):1625–35. pmid:27074687
  37. 37. Ruppel A, Wörthmüller D, Misiak V, Kelkar M, Wang I, Moreau P. Force propagation between epithelial cells depends on active coupling and mechano-structural polarization. eLife. 2023.
  38. 38. Edwards CM, Schwarz US. Force localization in contracting cell layers. Phys Rev Lett. 2011;107(12):128101. pmid:22026803
  39. 39. Banerjee S, Cristina Marchetti M. Controlling cell–matrix traction forces by extracellular geometry. New J Phys. 2013;15(3):035015.
  40. 40. Solowiej-Wedderburn J, Dunlop CM. Sticking around: cell adhesion patterning for energy minimization and substrate mechanosensing. Biophys J. 2022;121(9):1777–86. pmid:35306023
  41. 41. Banerjee S, Marchetti MC. Contractile stresses in cohesive cell layers on finite-thickness substrates. Phys Rev Lett. 2012;109(10):108101. pmid:23005331
  42. 42. Bar-Kochba E, Toyjanova J, Andrews E, Kim K-S, Franck C. A fast iterative digital volume correlation algorithm for large deformations. Exp Mech. 2014;55(1):261–74.
  43. 43. Franck C, Maskarinec SA, Tirrell DA, Ravichandran G. Three-dimensional traction force microscopy: a new tool for quantifying cell-matrix interactions. PLoS ONE. 2011;6(3):e17833.
  44. 44. Stamati O, Andò E, Roubin E, Cailletaud R, Wiebicke M, Pinzon G. spam: software for practical analysis of materials. Journal of Open Source Software. 2020;5(51):2286.