Abstract
Recent microscopy imaging techniques allow to precisely analyze cell morphology in 3D image data. To process the vast amount of image data generated by current digitized imaging techniques, automated approaches are demanded more than ever. Segmentation approaches used for morphological analyses, however, are often prone to produce unnaturally shaped predictions, which in conclusion could lead to inaccurate experimental outcomes. In order to minimize further manual interaction, shape priors help to constrain the predictions to the set of natural variations. In this paper, we show how spherical harmonics can be used as an alternative way to inherently constrain the predictions of neural networks for the segmentation of cells in 3D microscopy image data. Benefits and limitations of the spherical harmonic representation are analyzed and final results are compared to other state-of-the-art approaches on two different data sets.
Introduction
Segmenting cells in 3D microscopy is a cornerstone of modern biology, yet it remains a significant computational challenge. Traditional 3D instance segmentation usually works at the pixel level, where a neural network decides, voxel by voxel, whether a point belongs to a cell or the background. While powerful, this "pixel-wise" approach lacks biological "common sense." Without massive amounts of training data, these models often produce fragmented, noisy, or physically impossible shapes. In 3D microscopy, high-quality annotated data is rare and expensive. To bridge this gap, researchers from RWTH Aachen University propose using Spherical Harmonics (SH) as shape priors—mathematical constraints that ensure generated cell segmentations are smooth, closed volumes.
Methods: The HarmonicNet Architecture
The proposed "HarmonicNet" utilizes a deep learning architecture that predicts global shape descriptors instead of just local pixels. Spherical Harmonics can be thought of as the 3D equivalent of a Fourier transform for a sphere. Any star-convex shape can be decomposed into a series of basis functions. By using a limited number of these functions, the model effectively filters out noise and forces the resulting shape to be smooth and coherent.
The pipeline consists of:
- Encoding: A residual encoder-decoder architecture (similar to a U-Net) processes 3D image volumes.
- Dual-Path Prediction: At each pixel, the network predicts a Distance Map (to find cell centers) and SH Coefficients (scalars describing the global shape).
- Sampling: During training, a sampling pattern based on electrostatic repulsion distributes 5,000 points optimally across the cell surface to map pixels to SH coefficients.
- Reconstruction: The final 3D shape is reconstructed from predicted coefficients using Delaunay triangulation.
Datasets and Evaluation
The authors evaluated HarmonicNet on two distinct 3D datasets:
- Meristem Dataset: 125 3D confocal microscopy images of Arabidopsis thaliana plant cell membranes, representing a challenging real-world scenario with dense cell populations.
- Synthetic Nuclei: 60 artificially generated images of 3D nuclei, distorted with realistic noise and blurring to simulate actual microscopy conditions.
Results and Discussion
The researchers found that an SH order of $l=5$ (36 coefficients) provided the optimal balance between detail and computational efficiency. By predicting global descriptors, the model is less susceptible to local image artifacts or gaps in membrane staining compared to local pixel-wise methods.
HarmonicNet was compared against StarDist, Cellpose, and a standard UNet+Watershed approach. On synthetic nuclei, HarmonicNet achieved a median Dice score of 0.83, nearing the theoretical maximum for its representation. On the dense Meristem dataset, it achieved a median Dice score of 0.87, outperforming the UNet+WS approach (0.85) and matching StarDist. This demonstrates that global shape priors provide robustness in dense environments where pixel-wise methods may fail.
Conclusion
Spherical Harmonics offer a robust way to incorporate shape constraints into 3D cell segmentation. While they struggle with high-frequency details or non-star-convex shapes due to their inherent smoothness, they provide a strong regularizer for biological data. Future work may explore hybrid approaches that combine the global robustness of SH with pixel-level refinement to capture fine-grained surface textures.
Summary updated