Cell Tracking in C. elegans with Cell Position Heatmap-Based Alignment and Pairwise Detection

Kaito Shiku, Hiromitsu Shirai, Takeshi Ishihara, Ryoma Bise

TL;DR

Researchers have developed a robust 3D cell tracking method for C. elegans that overcomes large animal movements and inconsistent cell visibility. By combining non-rigid alignment of cell position heatmaps with a "pairwise" detection strategy that looks at two frames at once, the system achieves significantly higher tracking accuracy and consistency than standard methods.

What Problem Does This Paper Address?

Tracking individual neurons in a living, moving organism like C. elegans is a nightmare for traditional computer vision. The authors identify two primary "pain points":

  1. Large, Non-Rigid Displacement: Unlike cells in a static petri dish, C. elegans constantly wiggles its head during scanning. This means a cell's position in frame $t+1$ might be closer to a different cell's position in frame $t$ than its own previous location. Proximity-based tracking fails here.
  2. Inconsistent Detection: Microscopy images often suffer from low contrast or "touching" cells. A cell might be clearly visible in one frame but look like a faint blur in the next. If a detection algorithm "misses" a cell in just one frame, the entire track is broken.

Methods

The authors propose a pipeline consisting of three main stages: Alignment, Pairwise Detection, and Association.

1. Heatmap-Based Alignment with Test-Time Fine-Tuning

Instead of trying to align raw, noisy microscopy images, the team first generates "cell position heatmaps"—cleaner representations where each cell is a Gaussian peak. They use a deep learning framework called VoxelMorph (based on a 3D U-Net) to estimate a displacement field that warps the heatmap from the previous frame to match the current one.

A key innovation here is test-time fine-tuning. Because every worm moves differently, they allow the alignment network to "re-train" itself on the specific test sequence without needing ground-truth labels. It simply optimizes to make the warped previous frame look as much like the current frame as possible.

2. Pairwise Detection

Standard methods detect cells in each frame independently. This paper proposes Pairwise Detection: the network receives both the current raw image and the warped heatmap from the previous frame. This "hint" from the past helps the network maintain consistency, allowing it to "find" low-contrast cells in the current frame because it knows exactly where they were supposed to have moved.

3. Association

Finally, they use linear programming to solve the "one-to-one matching" problem. By using the warped positions (which are much closer to the actual targets) rather than the original positions, the optimization becomes much more reliable.

Datasets

The method was evaluated on four 3D time-lapse sequences of C. elegans neurons captured via confocal microscopy.

  • Scale: Approximately 120 individual cells per sequence.
  • Volume: A total of 72,716 manually annotated cell positions across all frames.
  • Resolution: 128 × 576 × 32 pixels.
  • Validation: They used a leave-one-out (four-fold) cross-validation approach to ensure the model generalized well.

Key Insights and Ideas

  • Heatmaps over Raw Pixels: Aligning raw microscopy data is hard because of noise and varying intensity. Aligning heatmaps is much more stable because the network focuses on the geometry of the cell constellation rather than the texture of the background.
  • The "Memory" Effect: By feeding the previous frame's results back into the detection step (Pairwise Detection), the authors effectively give the model a short-term memory. This prevents "flickering" detections where a cell disappears and reappears, which is a common death knell for tracking algorithms.
  • Unsupervised Adaptation: The use of test-time fine-tuning acknowledges that "one size does not fit all" in biological imaging. Allowing the model to adapt to the specific motion dynamics of a single video—without needing new labels—is a powerful way to handle biological variability.

Key Results

The authors compared their full method against several baselines (removing registration, fine-tuning, or pairwise detection one by one). They used two metrics: Tracking Accuracy (TA) and Target Effectiveness (TE) (which measures how many tracks remain "broken-free" over the whole sequence).

Method Tracking Accuracy (TA) Target Effectiveness (TE)
Baseline (No Reg/FT/PD) 0.7927 0.6522
With Registration only 0.7975 0.6630
With Reg + Fine-Tuning 0.8088 0.7361
Ours (Full Pipeline) 0.8302 0.7466

The results show that while each component helps, the combination of fine-tuned alignment and pairwise detection provides the most significant boost, particularly in maintaining long, continuous tracks (TE).

Limitations and Future Work

While the paper demonstrates strong results, a few areas remain for exploration:

  • Computational Overhead: Test-time fine-tuning requires retraining the network for every new sequence, which could be slow for very long time-lapses or high-throughput screenings.
  • Extreme Deformation: While non-rigid alignment handles head-turning well, it's unclear how the model would perform if the worm underwent more extreme "looping" or sudden jumps that exceed the search window of the displacement field.
  • Generalization: The paper focuses on neurons in the head of C. elegans. Future work could test if this heatmap-based approach translates well to other organisms or different types of moving tissues (like beating hearts).

Summary updated

BibTeX
@inproceedings{shiku2023cell,
  author = {Kaito Shiku and Hiromitsu Shirai and Takeshi Ishihara and Ryoma Bise},
  title = {{Cell Tracking in C. elegans with Cell Position Heatmap-Based Alignment and Pairwise Detection}},
  booktitle = {EMBC},
  year = {2023},
  url = {https://openreview.net/forum?id=DqSMBsRFTe},
}
Figure