Code Monkey home page Code Monkey logo

dlforwsi's Introduction

projects / aim

ccRCC tumor detection by DL sliding widows on whole slides images.

data: slides and patches

In total of 5 slides 4 for training and 1 one for validation

patches distribution non tumor
training 23824 40946
validation 10136 12605

The patch size is 512*512 at 20x magnificaiton.

with samples selection manually slightly. Mainly for whole white patches.

No stain normalizaiton, no samples agumentation

2019/11/2 update

methods

  • DL resnet34 + weighted cross entory loss for 45 epochs with lr 0.001 on pretrained ImageNet.
  • weights are: [0.7, 0.3]

results on epoch 45

ACC: 0.8814, take about 302 seconds

Confusion Matrix non tumor total
real non 7451 2685 10136
real tumor 11 12594 12605
  • acc = 7451+ 12594 / (10136+12605)= 0.88144761
  • sen = recall = 12594/ 12605 = 0.999127
  • spc = 7451 / 10136 = 0.7351
  • precision = 12594 / (12594+2685) = 0.8242

2019/12/18 update

methods

Modified DL framework with fully convs for fast WSI prediction.

We replaced the last GAP and fc. in resnet34 with **AP with kernel size 16x16 followed by fconv and classifer_conv with 1x1 kernel **.

A simple implementation is shown as followed:

# self.avgpool = nn.AdaptiveAvgPool2d((1, 1))
# self.fc = nn.Linear(512 * block.expansion, num_classes)
self.avgpool = nn.AvgPool2d(kernel_size=16, stride=1)
self.Fconv = nn.Conv2d(512 * block.expansion, 512, kernel_size=1, stride=1, bias=False)
self.Fbn = norm_layer(512)
self.final = nn.Conv2d(512, num_classes, kernel_size=1, stride=1, bias=False)

Training predurce is the same as the previous, but WSI prediction is faster than it.

reference1:ScanNet: A Fast and Dense Scanning Framework for Metastastic Breast Cancer Detection from Whole-Slide Image reference2:RMDL: Recalibrated Multi-instance Deep Learning for Whole Slide Gastric Image Classification

Visualization results

  • one visualization result is the WSI prediction. We compared with the previous. The result of the previous is on the left, and new result is on the right. Spent time is shown in the figure. WSIprediction

  • Another visualization result is the PCA and TSNE features points cluster visualization. Upper is the PCA method and Down is based on TSNE method. PCAandTSNE

TODO

  • Reorganize the codes/
  • convert the slide2patch.m to py script

You can refer to Gatsby2016:Fast-WSI-Prediction for more details.

dlforwsi's People

Contributors

gatsby2016 avatar

Stargazers

 avatar  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.