{"id":3323,"date":"2019-05-18T13:23:34","date_gmt":"2019-05-18T17:23:34","guid":{"rendered":"https:\/\/www.med.unc.edu\/bigs2\/?page_id=3323&#038;preview_id=3323"},"modified":"2020-10-13T17:55:10","modified_gmt":"2020-10-13T21:55:10","slug":"hecd","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/","title":{"rendered":"HECD: Pipeline for H and E image preprocessing and cell detection"},"content":{"rendered":"<div id=\"content1\">\n<div id=\"main\">\n<div id=\"right\">\n<div id=\"right_text\">\n<div class=\"box\">\n<h4><strong>Introduction<\/strong><\/h4>\n<ol>\n<li>To enhance the cell detection accuracy, the preprocessing of H&amp;E is necessary and helpful. Usually, the stain normalization is first applied on H and E image, then the blue ratio transformation is done to make the nuclei outstanding. Next, the OTSU thresholding method is adopted to remove the information in the background.<\/li>\n<li>The key idea for cell detection is the nuclei detection. For the normal cell, the nuclei size is typically invariant across cells (e.g., Lymphocytes). Thus, to detect the nucleus, a moving block method is considered to extract the training\/testing samples and corresponding label information. A bounding box with fixed size screens the whole image. For each patch image, if the nuclei are at the center, the patch image is labeled as positive, otherwise, negative.<\/li>\n<li>Normally, there is an issue in data unbalance. To address it, the data augmentation (e.g., flip, rotation, and add noise) is considered to increase the number of positive samples.<\/li>\n<li>Different neural networks are considered here: deep CNN (VGG16), ResNet, CapsNet, and convolutional autoencoder.<\/li>\n<\/ol>\n<h4><strong>Pipeline<\/strong><\/h4>\n<p>All the codes are in the folder named code<\/p>\n<h5>1. Stain normalization<\/h5>\n<p>Go to the folder stain_normalisation_toolbox. Run the MATLAB function run-all.m. You need to change the data folder path in the function according to you case.<\/p>\n<h5>2. Deep CNN<\/h5>\n<p>Go to the folder nuclei_norm.<br \/>\nFirst, run the python code data_norm.py, which will preprocess the normalized images to extract the patch images and corresponding labels. The augmentation will be called if necessary. You need to change the data folder path in the function according to you case.<br \/>\nSecond, run the python code train_norm.py, the model will be trained and the performance on the testing dataset will be assessed as well.<br \/>\nThe shell scripts for running on server are available within the same folder.<\/p>\n<h5>3. ResNet<\/h5>\n<p>Go to the folder nuclei_resnet.<\/p>\n<p>First, run the python code data_norm.py, which will preprocess the normalized images to extract the patch images and corresponding labels. The augmentation will be called if necessary. You need to change the data folder path in the function according to you case.<\/p>\n<p>Second, run the python code train_resnet.py, the ResNet will be trained and the performance on the testing dataset will be assessed as well.<br \/>\nThe shell scripts for running on server are available within the same folder.<\/p>\n<h5>4. CapsNet<\/h5>\n<p>Go to the folder CapsNet-Keras.<\/p>\n<p>First, run the python code data.py, which will preprocess the normalized images to extract the patch images and corresponding labels. The augmentation will be called if necessary. You need to change the data folder path in the function according to you case.<\/p>\n<p>Second, run the python code capsulenet.py, the CapsNet will be trained and the performance on the testing dataset will be assessed as well.<br \/>\nThe shell scripts for running on server are available within the same folder.<\/p>\n<h5>5. Convolutional autoencoder (CAE)<\/h5>\n<p>Go to the folder crcnucleus.<\/p>\n<p>Run the python code test_xcae_crcnucleus.py, the CAE will be trained and the performance on the testing dataset will be assessed as well. You need to change the data folder path in the function according to you case.<\/p>\n<p><strong>Key words:<\/strong> H and E; CNN.<\/p>\n<p>&nbsp;<\/p>\n<h4><a href=\"https:\/\/www.med.unc.edu\/bigs2\/wp-content\/uploads\/sites\/822\/2018\/09\/illustrativeCode.zip\">Software Download<\/a><\/h4>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"footer\">\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<p><!-- footer ends--><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction To enhance the cell detection accuracy, the preprocessing of H&amp;E is necessary and helpful. Usually, the stain normalization is first applied on H and E image, then the blue ratio transformation is done to make the nuclei outstanding. Next, the OTSU thresholding method is adopted to remove the information in the background. The key &hellip; <a href=\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/\" aria-label=\"Read more about HECD: Pipeline for H and E image preprocessing and cell detection\">Read more<\/a><\/p>\n","protected":false},"author":55348,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-3323","page","type-page","status-publish","hentry","odd"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2\" \/>\n<meta property=\"og:description\" content=\"Introduction To enhance the cell detection accuracy, the preprocessing of H&amp;E is necessary and helpful. Usually, the stain normalization is first applied on H and E image, then the blue ratio transformation is done to make the nuclei outstanding. Next, the OTSU thresholding method is adopted to remove the information in the background. The key &hellip; Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/\" \/>\n<meta property=\"og:site_name\" content=\"BIG-S2\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-13T21:55:10+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/\",\"url\":\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/\",\"name\":\"HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2\",\"isPartOf\":{\"@id\":\"https:\/\/www.med.unc.edu\/bigs2\/#website\"},\"datePublished\":\"2019-05-18T17:23:34+00:00\",\"dateModified\":\"2020-10-13T21:55:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.med.unc.edu\/bigs2\/hecd\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.med.unc.edu\/bigs2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HECD: Pipeline for H and E image preprocessing and cell detection\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.med.unc.edu\/bigs2\/#website\",\"url\":\"https:\/\/www.med.unc.edu\/bigs2\/\",\"name\":\"BIG-S2\",\"description\":\"Biostatistics and Imaging Genomics analysis lab - Statistics &amp; Signal\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.med.unc.edu\/bigs2\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2","og_description":"Introduction To enhance the cell detection accuracy, the preprocessing of H&amp;E is necessary and helpful. Usually, the stain normalization is first applied on H and E image, then the blue ratio transformation is done to make the nuclei outstanding. Next, the OTSU thresholding method is adopted to remove the information in the background. The key &hellip; Read more","og_url":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/","og_site_name":"BIG-S2","article_modified_time":"2020-10-13T21:55:10+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/","url":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/","name":"HECD: Pipeline for H and E image preprocessing and cell detection - BIG-S2","isPartOf":{"@id":"https:\/\/www.med.unc.edu\/bigs2\/#website"},"datePublished":"2019-05-18T17:23:34+00:00","dateModified":"2020-10-13T21:55:10+00:00","breadcrumb":{"@id":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.med.unc.edu\/bigs2\/hecd\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.med.unc.edu\/bigs2\/hecd\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.med.unc.edu\/bigs2\/"},{"@type":"ListItem","position":2,"name":"HECD: Pipeline for H and E image preprocessing and cell detection"}]},{"@type":"WebSite","@id":"https:\/\/www.med.unc.edu\/bigs2\/#website","url":"https:\/\/www.med.unc.edu\/bigs2\/","name":"BIG-S2","description":"Biostatistics and Imaging Genomics analysis lab - Statistics &amp; Signal","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.med.unc.edu\/bigs2\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links_to":[],"_links_to_target":[],"_links":{"self":[{"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/pages\/3323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/users\/55348"}],"replies":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/comments?post=3323"}],"version-history":[{"count":0,"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/pages\/3323\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.med.unc.edu\/bigs2\/wp-json\/wp\/v2\/media?parent=3323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}