Related Experiment Video
Updated: Jan 10, 2026

Anesthesia-free Heartbeat Measurements in Freely Moving Zebrafish
Published on: April 18, 2025
Piscis: A loss estimator of the F1 score enables accurate spot detection in fluorescence microscopy images via deep
Zijian Niu1, Aoife O'Farrell2, Jingxin Li3
1Department of Chemistry, School of Arts and Sciences, University of Pennsylvania, Philadelphia, PA 19104, USA; Department of Physics and Astronomy, School of Arts and Sciences, University of Pennsylvania, Philadelphia, PA 19104, USA; Computational and Systems Biology Program, Massachusetts Institute of Technology, Cambridge, MA 02139, USA.
Abstract:
Single-molecule RNA fluorescence in situ hybridization (RNA FISH)-based spatial transcriptomics methods have enabled the accurate quantification of gene expression at single-cell resolution by visualizing transcripts as diffraction-limited spots. Although these methods generally scale to large samples, image analysis remains challenging, often requiring manual parameter tuning. We present Piscis, a fully automatic deep learning algorithm for spot detection trained using a loss function, the SmoothF1 loss, that approximates the F1 score to directly penalize false positives and false negatives but remains differentiable and hence usable for training by deep learning approaches. Piscis was trained and tested on a diverse dataset composed of 358 manually annotated experimental RNA FISH images representing multiple cell types and 240 additional synthetic images. Piscis outperforms other state-of-the-art spot detection methods, enabling accurate, high-throughput analysis of RNA FISH-derived imaging data without the need for manual parameter tuning. A record of this paper's transparent peer review process is included in the supplemental information.

