Giter Club home page Giter Club logo

embsam's Introduction

[arXiv] EmbSAM: Cell boundary localization and Segment Anything Model for 3D fast-growing embryos


Cunmin Zhao#, Zelin Li#, Pei Zhang, Yixuan Chen, Pohao Ye, Ming-Kin Wong, Lu-Yan Chan, Hong Yan, Chao Tang, Guoye Guan*, Zhongying Zhao*
In [arXiv]
# Equal contribution, * Correspondence Author.

Motivations: Cellular shape dynamics are critical for understanding cell fate determination and organogenesis during development. However, fluorescence live-cell images of cell membranes frequently suffer from a low signal-to-noise ratio, especially during long-duration imaging with high spatiotemporal resolutions. This is caused by phototoxicity and photobleaching, which limit laser power and hinder effective time-lapse cell shape reconstruction, particularly in rapidly developing embryos.

Results: We devised a new computational framework, EmbSAM, that incorporates a deep-learning-based cell boundary localization algorithm and the Segment Anything Model. EmbSAM enables accurate and robust three-dimensional (3D) cell membrane segmentation for roundworm Caenorhabditis elegans embryos imaged every 10 seconds. The cell shape data prior to gastrulation quantitatively characterizes a series of cell-division-coupled morphodynamics associated with cell position, cell identity, lineage, and fate, and can be accessed locally and online. The framework also exhibits potential in segmenting and quantifying the fluorescence labeling various cell-membraned-attached molecules in both wild-type and RNAi-treated embryos.

Overview

Ai

Fig. 1. The flowchart of EmbSAM

Get Started

Dependencies and Installation

  • Python 3.11.0
  • Pytorch 2.0.1
  1. Create Conda Environment
conda create --name EmbSAM python=3.11.0
conda activate EmbSAM
conda install anaconda::git
  1. Clone Repo
git clone https://github.com/cunminzhao/EmbSAM.git
  1. Install Dependencies
cd EmbSAM
pip install -r ./requirement.txt

Dataset

You can refer to the following links to download the datasets of raw cell membrane fluorescence Emb1_Raw.zip, Emb2_Raw.zip, Emb3_Raw.zip, Emb4_Raw.zip and Emb5_Raw.zip

Pre-trained Model

the pre-trained models of this project can be downloaded here

  • The model_parameters with Segment Anything Model(vit_b) and the image denosing module trained on X_axis, Y_axis and Z_axis [model_parameters]. You need to download these parameters and put them into model_parameters.
  • Structure of model_parameters:
    model_parameters/
      |--Z_axis.pth
      |--Y_axis.pth
      |--X_axis.pth
      |--sam_vit_b_01ec64.pth
    

Test

Example: to run EmbSAM with Emb1_Raw, you need to keep these data in

  • Structure of data folder:
    data/
      |--Emb1_Raw/*.tif
    
  • Structure of confs folder:
    The Emb1_CellTracing.csv is the tracing result of cell nucleus fluorescence, saved in confs.
    confs/
      |--Emb1_CellTracing.csv
      |--running_Emb1.txt
      ...
      |--other running confs
    

Then run

python EmbSAM.py -cfg_path ./confs/running_Emb1.txt

you will get your result in

./output_folder/result

Provided Data

  • All the 5 embryo samples processed in this paper are digitized into the format customized to our visualization software ITK-SNAP-CVE from https://doi.org/10.1101/2023.11.20.567849, and can be downloaded online.

  • The effective visualization is shown below:

    • GUIDATA_SHOW

Acknowledgement

embsam's People

Contributors

cunminzhao avatar chiellini avatar

Stargazers

Jeffrey XIE avatar  avatar  avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.