Difference between revisions of "Team:HUST-China/Micronucleus Counter"

 
Line 19: Line 19:
 
     <nav class="navbar navbar-expand-xl fixed-top">
 
     <nav class="navbar navbar-expand-xl fixed-top">
 
         <div class="container d-flex justify-content-between"><a class="navbar-brand"
 
         <div class="container d-flex justify-content-between"><a class="navbar-brand"
                 href="https://2021.igem.org/Team:HUST-China"><i
+
                 href="https://2021.igem.org/Team:HUST-China"><i class="navbar-logo-left"></i><span>HUST-China</span></a>
                    class="navbar-logo-left"></i><span>HUST-China</span></a><button aria-controls="navbarNav"
+
            <button aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"
                aria-expanded="false" aria-label="Toggle navigation" class="navbar-toggler" data-target="#navbarNav"
+
                class="navbar-toggler" data-target="#navbarNav" data-toggle="collapse" type="button"><span
                data-toggle="collapse" type="button"><span class="navbar-toggler-icon"></span></button>
+
                    class="navbar-toggler-icon"></span>
 +
            </button>
 
             <div class="collapse navbar-collapse" id="navbarNav">
 
             <div class="collapse navbar-collapse" id="navbarNav">
 
                 <ul class="navbar-nav ml-auto">
 
                 <ul class="navbar-nav ml-auto">
Line 32: Line 33:
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Design">Design</a><a
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Design">Design</a><a
 
                                 class="dropdown-item"
 
                                 class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Proof_Of_Concept">Proof of Concept</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Proof_Of_Concept">Proof of
                                class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Safety">Safety</a><a
+
                                Concept</a><a class="dropdown-item"
                                class="dropdown-item"
+
                                href="https://2021.igem.org/Team:HUST-China/Safety">Safety</a><a class="dropdown-item"
 
                                 href="https://2021.igem.org/Team:HUST-China/Implementation">Proposed
 
                                 href="https://2021.igem.org/Team:HUST-China/Implementation">Proposed
 
                                 Implementation</a><a class="dropdown-item"
 
                                 Implementation</a><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Contribution">Contribution</a></div>
+
                                 href="https://2021.igem.org/Team:HUST-China/Contribution">Contribution</a>
 +
                        </div>
 
                     </li>
 
                     </li>
 
                     <li class="nav-item dropdown"><a aria-expanded="false" aria-haspopup="true"
 
                     <li class="nav-item dropdown"><a aria-expanded="false" aria-haspopup="true"
Line 46: Line 48:
 
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices">Overview</a><a
 
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices">Overview</a><a
 
                                 class="dropdown-item"
 
                                 class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices_01">Part 1</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices_01">Part
                                class="dropdown-item"
+
                                1</a><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices_02">Part 2</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Human_Practices_02">Part
                                class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Collaborations">Part
+
                                2</a><a class="dropdown-item"
 +
                                href="https://2021.igem.org/Team:HUST-China/Collaborations">Part
 
                                 3</a><a class="dropdown-item"
 
                                 3</a><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Education">Part 4</a></div>
+
                                 href="https://2021.igem.org/Team:HUST-China/Education">Part 4</a>
 +
                        </div>
 
                     </li>
 
                     </li>
 
                     <li class="nav-item dropdown"><a aria-expanded="false" aria-haspopup="true"
 
                     <li class="nav-item dropdown"><a aria-expanded="false" aria-haspopup="true"
Line 58: Line 62:
 
                         <div aria-labelledby="navbarModelingDropdown" class="dropdown-menu"><a class="dropdown-item"
 
                         <div aria-labelledby="navbarModelingDropdown" class="dropdown-menu"><a class="dropdown-item"
 
                                 href="https://2021.igem.org/Team:HUST-China/Model">Overview</a><a class="dropdown-item"
 
                                 href="https://2021.igem.org/Team:HUST-China/Model">Overview</a><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Gene_Pathway">Gene Pathway</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Gene_Pathway">Gene
                                class="dropdown-item"
+
                                Pathway</a><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Dye_color_forecast">Dye color forecast</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Dye_color_forecast">Dye color
                                class="dropdown-item"
+
                                forecast</a><a class="dropdown-item"
 
                                 href="https://2021.igem.org/Team:HUST-China/Micronucleus_Counter">Micronucleus
 
                                 href="https://2021.igem.org/Team:HUST-China/Micronucleus_Counter">Micronucleus
 
                                 Counter</a></div>
 
                                 Counter</a></div>
Line 84: Line 88:
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Parts">Parts</a><a
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Parts">Parts</a><a
 
                                 class="dropdown-item"
 
                                 class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Engineering">Engineering Success</a><a
+
                                 href="https://2021.igem.org/Team:HUST-China/Engineering">Engineering
                                class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Results">Results</a><a
+
                                Success</a><a class="dropdown-item"
                                class="dropdown-item"
+
                                href="https://2021.igem.org/Team:HUST-China/Results">Results</a><a class="dropdown-item"
 
                                 href="https://2021.igem.org/Team:HUST-China/Protocol">Protocol</a><a
 
                                 href="https://2021.igem.org/Team:HUST-China/Protocol">Protocol</a><a
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Notebook">Notebook</a>
 
                                 class="dropdown-item" href="https://2021.igem.org/Team:HUST-China/Notebook">Notebook</a>
Line 104: Line 108:
 
                             id="navbarAchievementsDropdown" role="button">Achievements</a>
 
                             id="navbarAchievementsDropdown" role="button">Achievements</a>
 
                         <div aria-labelledby="navbarAchievementsDropdown" class="dropdown-menu"><a class="dropdown-item"
 
                         <div aria-labelledby="navbarAchievementsDropdown" class="dropdown-menu"><a class="dropdown-item"
                                 href="https://2021.igem.org/Team:HUST-China/Judging">Judging</a><a class="dropdown-item"
+
                                 href="https://2021.igem.org/Team:HUST-China/Award">Award</a><a class="dropdown-item"
 
                                 href="https://video.igem.org/w/aMwNT6eBryGs8xG5avXD51">Promotion
 
                                 href="https://video.igem.org/w/aMwNT6eBryGs8xG5avXD51">Promotion
 
                                 Video</a><a class="dropdown-item"
 
                                 Video</a><a class="dropdown-item"

Latest revision as of 14:28, 16 December 2021

Micronucleus Counter | iGEM HUST-China

Micronucleus Counter


Overview

It's THE WORLD'S FIRST micronucleus recognition counter for ordinary light microscope photographs. This tool GREATLY SAVES EXPERIMENTAL COSTS, both in terms of equipment cost and labor cost.And the evaluation results based on this set of tools are highly consistent with the recognized evaluation standards.

PART 1 algorithm structures

We choosed the Yolov 5 algorithm framework.

This algorithm uses Mosaic data enhancement, adaptive anchor frame calculation, adaptive image scaling and other processing methods for input data, and backbone uses Focus architecture and CSP architecture - it is worth mentioning that this algorithm introduces CSP2 architecture in Neck part, thus enhancing the ability of model feature fusion. Finally, GIOU_Loss is used as the loss function of Bounding box at the output end, and NMS non-maximum suppression is used to ensure no double counting.

PART 2 results

Our runtime environment is Pycharm, Python+Tensor, Flow+Torch+Scikit-learn. You could download the source code to get the requirements via requirements.txt. The way to install the requirements is shown below:

pip install -r requirements.txt

Taking our micronucleus counting as an example, we wrote the scripting file run_bat.py.

import os
for dirname in os.listdir(r'F:\venv\work'):
    os.system('python ./detect.py --weights F:/venv/MCNcounter/runs/train/exp2/weights/best.pt --source F:/venv/work/{0}  --imgsz 2592  --save-txt --name F:/venv/results/{0} --line-thickness 1 >> F:/venv/logs/{0}_log.txt'.format(dirname))

Among this, F:\venv\work is the catalog where the pictures to be analyzed were situated.

F:\venv\MCNcounter\runs\train\exp2\weights\best.pt is the address of weight file. These contents could all be customized and we would make an instruction about this in PART 3.

These are the running results:

Left: raw photo, Right: labeled photo

Figure 2: Left: raw photo, Right: labeled photo

In the installed file, the log.txt and the labeled images are included, which can not only extract the labels directly, but also test if the labels mark the micronuclei accurately.

PART 3 Customization of data set

Generally, yolov5 framework could be optimized to identify every image to label (or the video read frame by frame). But to improve the efficiency of the model, here it is used as a micronucleus counter, we don't illustrate these customizable file and model files. We would provide the interface of training model when the labels are only "cell" and "micro" (referring to micronucleus) to simplify the explanation of how to customize the data set.

Still, source codes are provided and you could learn further about how to customize via internet.

The steps to customize the training set are listed below:

  • Input this at the command terminal:

    labelimg
    
  • If the file "labelimg" isn't installed, please run this beforehand:

    pip3 install labelimg
    
  • Put the pictures for training into ./MSNcounter/prepare_data_voc/images, then click "Open Dir" in the surface of lebelimg. Choose the image folder and click "Change Save Dir", and save the label files in the folder ./MSNcounter/prepare_data_voc/Annotations.

  • Choose cell/micronuclei in the inner frame of labelimg, and name it as cell/micro

  • Save, and exit the labelimg surface.

  • Run this file under the catalog where voc_label.py is situated:

    python3 ./voc_laebl.py
    
  • As the same, run this file under the catalog where split_train_val.py is situated:

    python3 ./split_train_val.py
    
  • Begin the training:

    python train.py --img 640 --batch 16 --epoch 300 --data data/ab.yaml --cfg models/yolov5s.yaml --weights F:/venv/MCNcounter/runs/train/exp2/weights/best.pt --device '0'
    

Tips: You can modify the parameters according to the actual configurations. The weight file after training is: ./runs/train/exp*/weights/best.pt

  • You can run our script directly according to the catalog settings displayed in part 2, or set the attention catalog according to the command below:

    python ./detect.py --weights {weights_file(.pt)} --source {the_dir_of_photos}  --imgsz {the _size_of_photos}  --save-txt --name {the_dir_of_results} --line-thickness 1 >> {the_dir_of_logs}
    

PART 4 Several tips about the data set

Here are some advice about data set:

  • You should make sure that the samples are collected with the same apparatus and the same parameters:
  • The quality of the samples should be specially noticed. Redundant external stains, less interphase cells and uneven dyeing(or most of the part are too pale) could lead to unreliable testing results. In this case, positive and negative control group could only be used as relative reference and the widely acknowledged data standards could not be optimized anymore.

Impressive! I believe it will bring convenience to other teams in the future, what do you say? I’m now really excited about their final products, let’s take a look!

References

  1. Allen, M. J., & Sheridan, S. C. (2015).

    Mortality risks during extreme temperature events (ETEs) using a distributed lag non-linear model.

    International Journal of Biometeorology 62(1), 57-67.

    CrossRefGoogle ScholarBack to text
  2. Rosano, A., Bella, A., Gesualdo, F., Acampora, A., Pezzotti, P., Marchetti, S., ... & Rizzo, C. (2019).

    Investigating the impact of influenza on excess mortality in all ages in Italy during recent seasons (2013/14-2016/17 seasons).

    International Journal of Infectious Diseases 88, 127-134.

    CrossRefGoogle ScholarBack to text
  3. Ingalls, B. P. (2013).

    Mathematical modeling in systems biology: An introduction.

    MIT Press.

    Google BooksBack to text
  4. Agriculture: Crop production: Sugarcane. TNAU Agritech Portal.

    (March 15, 2019). Retrieved on June 22, 2020. from https://google.com

    Back to text
  5. Author Name. (n.d.).

    Agriculture: Crop production: Sugarcane. TNAU Agritech Portal.

    Retrieved on June 22, 2020. from https://google.com

    Back to text

CONTACT US: iGEMHUSTChina@163.com

Huazhong University of Sci. & Tech., Wuhan, China

1037# Luoyu Rd, Wuhan, P.R.China 430074

Copyright © HUST-China iGEM 2021