CountXplain: Interpretable Cell Counting with Prototype-Based Density Map Estimation
Abdurahman Ali Mohammed, Wallapak Tavanapong, Catherine Fonder, Donald S. Sakaguchi
TL;DR
CountXplain addresses the interpretability gap in cell counting by integrating a prototype layer into density map estimation. It learns representative cell and background prototypes and generates explanations by highlighting regions similar to each prototype. The model optimizes a multi-objective loss including a prototype-to-feature term and a diversity term to maintain distinct prototypes while preserving counting accuracy. Empirical results on IDCIA and DCC show comparable MAE to CSRNet and provide concrete, visual explanations, validated by a biologist survey, suggesting practical utility in biomedical settings.
Abstract
Cell counting in biomedical imaging is pivotal for various clinical applications, yet the interpretability of deep learning models in this domain remains a significant challenge. We propose a novel prototype-based method for interpretable cell counting via density map estimation. Our approach integrates a prototype layer into the density estimation network, enabling the model to learn representative visual patterns for both cells and background artifacts. The learned prototypes were evaluated through a survey of biologists, who confirmed the relevance of the visual patterns identified, further validating the interpretability of the model. By generating interpretations that highlight regions in the input image most similar to each prototype, our method offers a clear understanding of how the model identifies and counts cells. Extensive experiments on two public datasets demonstrate that our method achieves interpretability without compromising counting effectiveness. This work provides researchers and clinicians with a transparent and reliable tool for cell counting, potentially increasing trust and accelerating the adoption of deep learning in critical biomedical applications. Code is available at https://github.com/NRT-D4/CountXplain.
