OpSeF: Open Source Python Framework for Collaborative Instance Segmentation of Bioimages

Various pre-trained deep learning models for the segmentation of bioimages have been made available as ‘developer-to-end-user’ solutions. They usually require neither knowledge of machine learning nor coding skills, are optimized for ease of use, and deployability on laptops. However, testing these tools individually is tedious and success is uncertain. Here, we present the ‘Op’en ‘Se’gmentation ‘F’ramework (OpSeF), a Python framework for deep learning-based instance segmentation. OpSeF aims at facilitating the collaboration of biomedical users with experienced image analysts. It builds on the analysts’ knowledge in Python, machine learning, and workflow design to solve complex analysis tasks at any scale in a reproducible, well-documented way. OpSeF defines standard inputs and outputs, thereby facilitating modular workflow design and interoperability with other software. Users play an important role in problem definition, quality control, and manual refinement of results. All analyst tasks are optimized for deployment on Linux workstations or GPU clusters, all user tasks may be performed on any laptop in ImageJ. OpSeF semi-automates preprocessing, convolutional neural network (CNN)-based segmentation in 2D or 3D, and post-processing. It facilitates benchmarking of multiple models in parallel. OpSeF streamlines the optimization of parameters for pre- and post-processing such, that an available model may frequently be used without retraining. Even if sufficiently good results are not achievable with this approach, intermediate results can inform the analysts in the selection of the most promising CNN-architecture in which the biomedical user might invest the effort of manually labeling training data. We provide Jupyter notebooks that document sample workflows based on various image collections. Analysts may find these notebooks useful to illustrate common segmentation challenges, as they prepare the advanced user for gradually taking over some of their tasks and completing their projects independently. The notebooks may also be used to explore the analysis options available within OpSeF in an interactive way and to document and share final workflows. Currently, three mechanistically distinct CNN-based segmentation methods, the U-Net implementation used in Cellprofiler 3.0, StarDist, and Cellpose have been integrated within OpSeF. The addition of new networks requires little, the addition of new models requires no coding skills. Thus, OpSeF might soon become both an interactive model repository, in which pre-trained models might be shared, evaluated, and reused with ease.

[1]  Thorsten Meinl,et al.  Parallel and Distributed Data Pipelining with KNIME , 2007 .

[2]  Luc Vincent,et al.  Watersheds in Digital Spaces: An Efficient Algorithm Based on Immersion Simulations , 1991, IEEE Trans. Pattern Anal. Mach. Intell..

[3]  Nassir Navab,et al.  AggNet: Deep Learning From Crowds for Mitosis Detection in Breast Cancer Histology Images , 2016, IEEE Trans. Medical Imaging.

[4]  Seyed-Ahmad Ahmadi,et al.  V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation , 2016, 2016 Fourth International Conference on 3D Vision (3DV).

[5]  Julia A. Watson,et al.  Nessys: A new set of tools for the automated detection of nuclei within intact tissues and dense 3D cultures , 2019, PLoS biology.

[6]  Michael Guerzhoy,et al.  Deep Neural Networks , 2013 .

[7]  R. Durbin,et al.  Phenotypic profiling of the human genome by time-lapse microscopy reveals cell division genes , 2010, Nature.

[8]  Shidan Wang,et al.  Pathology Image Analysis Using Segmentation Deep Learning Algorithms. , 2019, The American journal of pathology.

[9]  Luca Maria Gambardella,et al.  Deep Neural Networks Segment Neuronal Membranes in Electron Microscopy Images , 2012, NIPS.

[10]  Gaël Varoquaux,et al.  Scikit-learn: Machine Learning in Python , 2011, J. Mach. Learn. Res..

[11]  Joel Nothman,et al.  SciPy 1.0-Fundamental Algorithms for Scientific Computing in Python , 2019, ArXiv.

[12]  H. Sebastian Seung,et al.  Trainable Weka Segmentation: a machine learning tool for microscopy pixel classification , 2017, Bioinform..

[13]  Ryosuke Yoshihashi,et al.  Deep Convolutional Neural Networks: A survey of the foundations, selected improvements, and some current applications , 2020, ArXiv.

[14]  Nikita Moshkov,et al.  AnnotatorJ: an ImageJ plugin to ease hand annotation of cellular compartments , 2020, bioRxiv.

[15]  Anne E Carpenter,et al.  Nucleus segmentation across imaging experiments: the 2018 Data Science Bowl , 2019, Nature Methods.

[16]  Marius Pachitariu,et al.  Cellpose: a generalist algorithm for cellular segmentation , 2020, Nature Methods.

[17]  Eugene W. Myers,et al.  Cell Detection with Star-convex Polygons , 2018, MICCAI.

[18]  Konstantinos Kamnitsas,et al.  DeepCut: Object Segmentation From Bounding Box Annotations Using Convolutional Neural Networks , 2016, IEEE Transactions on Medical Imaging.

[19]  Lassi Paavolainen,et al.  nucleAIzer: A Parameter-free Deep Learning Framework for Nucleus Segmentation Using Image Style Transfer , 2020, Cell systems.

[20]  S. Omholt,et al.  Phenomics: the next challenge , 2010, Nature Reviews Genetics.

[21]  Thomas Brox,et al.  3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation , 2016, MICCAI.

[22]  Luca Maria Gambardella,et al.  Mitosis Detection in Breast Cancer Histology Images with Deep Neural Networks , 2013, MICCAI.

[23]  Juho Kannala,et al.  Cell Segmentation Proposal Network for Microscopy Image Analysis , 2016, LABELS/DLMIA@MICCAI.

[24]  Andreas Schertel,et al.  Cryo-FIB-SEM serial milling and block face imaging: Large volume structural analysis of biological tissues preserved close to their native state. , 2016, Journal of structural biology.

[25]  Johannes E. Schindelin,et al.  The ImageJ ecosystem: An open platform for biomedical image analysis , 2015, Molecular reproduction and development.

[26]  Rafael E Carazo Salas,et al.  From observing to predicting single-cell structure and function with high-throughput/high-content microscopy , 2019, Essays in biochemistry.

[27]  Anna Kreshuk,et al.  Machine Learning: Advanced Image Segmentation Using ilastik. , 2019, Methods in molecular biology.

[28]  et al.,et al.  Jupyter Notebooks - a publishing format for reproducible computational workflows , 2016, ELPUB.

[29]  Eugene W. Myers,et al.  Star-convex Polyhedra for 3D Object Detection and Segmentation in Microscopy , 2019, 2020 IEEE Winter Conference on Applications of Computer Vision (WACV).

[30]  C. Genoud,et al.  Volume scanning electron microscopy for imaging biological ultrastructure , 2016, Biology of the cell.

[31]  Alexandre X. Falcão,et al.  The Ordered Queue and the Optimality of the Watershed Approaches , 2000, ISMM.

[32]  Polina Golland,et al.  Scoring diverse cellular morphologies in image-based screens with iterative feedback and machine learning , 2009, Proceedings of the National Academy of Sciences.

[33]  Kevin W Eliceiri,et al.  NIH Image to ImageJ: 25 years of image analysis , 2012, Nature Methods.

[34]  Laurent Najman,et al.  Geodesic Saliency of Watershed Contours and Hierarchical Segmentation , 1996, IEEE Trans. Pattern Anal. Mach. Intell..

[35]  J. Swoger,et al.  Light-sheet-based fluorescence microscopy for three-dimensional imaging of biological samples. , 2014, Cold Spring Harbor protocols.

[36]  Stuart E. Berg,et al.  Segmenting and Tracking Multiple Dividing Targets Using ilastik. , 2016, Advances in anatomy, embryology, and cell biology.

[37]  Fred A. Hamprecht,et al.  Accurate and versatile 3D segmentation of plant tissues at cellular resolution , 2020, bioRxiv.

[38]  Pavel Tomancak,et al.  Tissue clearing and its applications in neuroscience , 2020, Nature Reviews Neuroscience.

[39]  J. D. Webster,et al.  Whole-Slide Imaging and Automated Image Analysis , 2014, Veterinary pathology.

[40]  K. Yeow,et al.  Cellular imaging in drug discovery , 2006, Nature Reviews Drug Discovery.

[41]  Abbas Shirinifard,et al.  Correlative three-dimensional super-resolution and block-face electron microscopy of whole vitreously frozen cells , 2019, Science.

[42]  Bálint Antal,et al.  Image Data Resource: a bioimage data integration and publication platform , 2017, Nature Methods.

[43]  Anne E Carpenter,et al.  CellProfiler 3.0: Next-generation image processing for biology , 2018, PLoS biology.

[44]  Fred A. Hamprecht,et al.  ilastik: interactive machine learning for (bio)image analysis , 2019, Nature Methods.

[45]  Peter Bankhead,et al.  QuPath: Open source software for digital pathology image analysis , 2017, Scientific Reports.

[46]  M. Schuldiner,et al.  High-throughput ultrastructure screening using electron microscopy and fluorescent barcoding , 2019, The Journal of cell biology.

[47]  Emmanuelle Gouillart,et al.  scikit-image: image processing in Python , 2014, PeerJ.

[48]  Isabella Haberbosch,et al.  Software tools for automated transmission electron microscopy , 2018, Nature Methods.

[49]  Euan A. Ashley,et al.  Deep Learning Automates the Quantitative Analysis of Individual Cells in Live-Cell Imaging Experiments , 2016, PLoS Comput. Biol..

[50]  A. Ruifrok,et al.  Quantification of histochemical staining by color deconvolution. , 2001, Analytical and quantitative cytology and histology.

[51]  P. Tomançak,et al.  Imaging plant germline differentiation within Arabidopsis flowers by light sheet microscopy , 2020, eLife.

[52]  Nicolas Chenouard,et al.  Icy: an open bioimage informatics platform for extended reproducible research , 2012, Nature Methods.

[53]  Max A. Viergever,et al.  Automatic Segmentation of MR Brain Images With a Convolutional Neural Network , 2016, IEEE Transactions on Medical Imaging.

[54]  Shuiwang Ji,et al.  Deep convolutional neural networks for multi-modality isointense infant brain image segmentation , 2015, NeuroImage.

[55]  Georg Langs,et al.  Causability and explainability of artificial intelligence in medicine , 2019, WIREs Data Mining Knowl. Discov..

[56]  Anne E Carpenter,et al.  CellProfiler: free, versatile software for automated biological image analysis. , 2007, BioTechniques.

[57]  David Svoboda,et al.  Generation of 3D Digital Phantoms of Colon Tissue , 2011, ICIAR.

[58]  Karel J. Zuiderveld,et al.  Contrast Limited Adaptive Histogram Equalization , 1994, Graphics Gems.

[59]  Benjamin Haibe-Kains,et al.  Why imaging data alone is not enough: AI-based integration of imaging, omics, and clinical data , 2019, European Journal of Nuclear Medicine and Molecular Imaging.