Skip to content

VillaHsu/Unet_Mito

Repository files navigation

Mitochondrial Structure Prediction in Label-free Microscopy Images Using Convolutional Neural Networks

Requirements

All of the processes are trained on Linux (Ubuntu 18.04) and with an NVIDIA graphics card (NVIDIA Geforce 1080Ti). It is recommended to install latest drivers and use the GPU with 12+ GB of RAM.

Installation

Environment setup

  • Install Miniconda for environment control.
  • Create a Conda environment for the platform:
conda env create -f environment.yml
  • Activate the environment:
conda activate fnet
  • Test the environment by executing the script:
./scripts/test_run.sh

The installation will done if the script executes without errors.

Data

Data is currently available here. Download to the ./data/ directory (for example, you should see data inside ./data/z_stack_confocal_HR).

Train a model with provided data

Start training a model with:

  • data: YOUR_OWN_DATA (e.g., dna)
  • GPU: WHICH_GPU_TO_USE (e.g., 0)
./scripts/train_model.sh dna 0

The first time this is run, the DNA dataset will be split into 25% test and 75% training images. A model will be trained using the training images. The model will be stored in directory saved_models/dna.

losses.csv file is inside the saved_models/dna like this:

997,0.2585
998,0.2647
999,0.2837
1000,0.3116

Predict the structures with the trained model

./scripts/predict.sh dna 0

Predicted outputs will be in directories results/dna/test and results/dna/train corresponding to predictions on the training set and on the test set respectively. For example, there are 20 prediction images inside the directory results/dna/test:

$ ls results/3d/dna/test
00  01  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  predict_options.json  predictions.csv

Each number represents a single dataset with source image (bright-field), predicted image, and target image (fluorescence image):

$ ls results/3d/dna/test/00
prediction_dna.tiff  signal.tiff  target.tiff

Citations

@inproceedings{10.1117/12.2591089,
author = {Chan-Min Hsu and Yi-Ju Lee and An-Chi Wei},
title = {{Convolutional neural networks predict mitochondrial structures from label-free microscopy images}},
volume = {11792},
booktitle = {International Forum on Medical Imaging in Asia 2021},
editor = {Ruey-Feng Chang},
organization = {International Society for Optics and Photonics},
publisher = {SPIE},
pages = {85 -- 93},
keywords = {convolutional neural networks, label-free imaging, confocal microscopy, mitochondria},
year = {2021},
doi = {10.1117/12.2591089},
URL = {https://doi.org/10.1117/12.2591089}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published