Giter Site home page Giter Site logo

domanhquang / deep-learning-based-selection-of-human-sperm-with-high-dna-integrity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cmccallum08/deep-learning-based-selection-of-human-sperm-with-high-dna-integrity

0.0 1.0 0.0 15.48 MB

Jupyter Notebook 100.00%

deep-learning-based-selection-of-human-sperm-with-high-dna-integrity's Introduction

Deep-learning-based-selection-of-human-sperm-with-high-DNA-integrity

Relevant Code for manuscript: Deep learning-based selection of human sperm with high DNA integrity

All image data can be found here: https://figshare.com/articles/Deep_learning-based_selection_of_human_sperm_with_high_DNA_integrity/8124932

These notebooks provide guidance to help others understand the underlying model of the work

If you wish to reproduce all steps taken here, begin with 001_image_preprocessing. Otherwise, skip to step 4 to use the CNN.

One example is provided to demonstrate how to convert the large tif images with many cells into individual, cropped, DFI-labeled cells.

  1. The notebook "01_resort_brightfield_fluorescent_images_to_one_folder" will read in the tif images in "01_original_large_tifs" and output renamed images to the folder "01_renamed_and_sorted_large_tifs"

  2. The next notebook "02_get_coordinates_and_crop_images" reads in the new tif images from the folder "01_renamed_and_sorted_large_tifs" and allows individual cells to be cropped.

    To crop brighfield images:

    1. begin program, large tif images pops up

    2. find a cell 1a. 'draw a line' (no line visible) from the front of the head to the back 1b. click and hold the tip of the head 1c. drag cursor to the back of head 1d. release left mouse buttom

    3. repeat this for each sperm in brightfield image

    4. click 'n' when done with image (once all cells have been selected)

    5. now new image pops up, go back to step 1, select cells, and click 'n' again when complete

    6. after it goes through all images, if it doesn't find the next one, it quits automatically

  3. The next notebook "03_sort_images_into_sets_for_CNN" takes all of the images that you found and sorts them into different sets of training/validation/testing for use by the CNN

  4. The notebook "CNN_pretrain_VGG_all_sets_with_post_analysis" will load in all images that have already been cropped and labeled with DFI values (under the figshare repository).

    1. Specific values of interest are output and stored as csv files in the same folder as sets1-7, including:

      a. the predicted DFI values b. the accuracy and loss values c. a saved .keras model file with weights and model architecture

    2. The post-processing also produces scatterplots and histograms (as given in the final manuscript) to show the predicted versus measured DFI values and model performance

    3. Finally, saliency maps of certain cells are given to highlight regions of interest

Thanks for checking out our work!

deep-learning-based-selection-of-human-sperm-with-high-dna-integrity's People

Contributors

cmccallum08 avatar

Watchers

 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.