Abstract: Current 3D imaging methods, including optical projection tomography, light-sheet microscopy, block-face imaging, and serial two photon tomography enable visualization of large samples of biological tissue. Large volumes of data obtained at high resolution require development of automatic image processing techniques, such as algorithms for automatic cell detection or, more generally, point-like object detection. Current approaches to automated cell detection suffer from difficulties originating from detection of particular cell types, cell populations of different brightness, non-uniformly stained, and overlapping cells. In this study, we present a set of algorithms for robust automatic cell detection in 3D. Our algorithms are suitable for, but not limited to, whole brain regions and individual brain sections. We used watershed procedure to split regional maxima representing overlapping cells. We developed a bootstrap Gaussian fit procedure to evaluate the statistical significance of detected cells. We compared cell detection quality of our algorithm and other software using 42 samples, representing 6 staining and imaging techniques. The results provided by our algorithm matched manual expert quantification with signal-to-noise dependent confidence, including samples with cells of different brightness, non-uniformly stained, and overlapping cells for whole brain regions and individual tissue sections. Our algorithm provided the best cell detection quality among tested free and commercial software.
Introduction
Modern 3D imaging techniques—like light-sheet microscopy and serial two-photon tomography—can visualize entire organs at cellular resolution. However, these techniques generate a "data deluge." A single mouse hippocampus can contain over 30,000 cells; counting them manually is impossible, and existing automated tools often struggle with the complexity of biological tissue.
Challenges in 3D Cell Detection
The primary challenges in 3D cell detection include overlapping cells in densely packed regions, inhomogeneous staining where cells appear "patchy," and autofluorescence from background structures like blood vessels. Additionally, signal intensity often shifts across large tissue samples, creating varying backgrounds that confuse standard thresholding methods.
The DALMATIAN Pipeline
The authors developed DALMATIAN (Dependable Algorithm for Matrix Image Analysis) to tackle these issues through a multi-step pipeline:
- Preprocessing: Histogram equalization standardizes intensities across different samples, enabling batch processing. It also subtracts autofluorescence by comparing images taken at different wavelengths.
- Filtering: To handle noise and varying backgrounds, the algorithm applies 3D Gaussian high-pass and low-pass filters in the frequency domain.
- Segmentation: A watershed algorithm is used to find local intensity maxima and "split" clumped cells.
- Bootstrap Gaussian Fit: This is the paper's most novel contribution. Instead of treating detection as a purely geometric problem, DALMATIAN treats it as a statistical hypothesis. The algorithm fits a 3D Gaussian distribution to each segment and uses a bootstrap procedure—randomly resampling voxels within a segment thousands of times—to calculate a p-value. If a segment doesn't consistently look like a cell across these resamples, it is discarded as noise.
Validation and Performance
The algorithm was validated using 42 different samples across six staining and imaging categories, including whole-mount (WM) EdU-stained hippocampi and 50µm tissue sections stained with BrdU, c-Fos, and DAPI.
DALMATIAN consistently provided the highest cell detection quality compared to FIJI (TrackMate) and Imaris:
- Whole-mount EdU: Achieved an impressive 99% F-score.
- Challenging Stains: For c-Fos (which often has low SNR), it achieved an 86% F-score, while Imaris trailed at 67%.
- Consistency: In batch mode (using the same parameters for all samples), DALMATIAN outperformed other software even when those tools were manually tuned for each individual sample.
Conclusion
DALMATIAN offers a robust, statistically-grounded approach to 3D cell counting. By standardizing intensities and employing a rigorous bootstrap verification step, it provides reliable results even in noisy or densely populated samples. While the bootstrap iterations are computationally intensive, the algorithm's accuracy and batch-processing capabilities represent a significant advancement for large-scale neuroanatomical studies.
Summary updated