Giter VIP home page Giter VIP logo

panda-challenge-raehmae's Introduction

PANDA Challenge

AI powered Prostate cancer ISUP grading. Team rähmä.ai solution for the Prostate cANcer graDe Assessment (PANDA) Challenge. We ranked 24th (top 3%) in the competition. The models included in this repository get 0.930 QWK in the private test set and 0.904 QWK in the public test set.

Team rähmä.ai


Installation

  1. Download PANDA dataset

  2. Clone this repository.

  3. cd into cloned repository and install dependencies:

python3 -m venv venv
source venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
  1. (Optional) Install ResNeSt pre-trained models package
pip install git+https://github.com/zhanghang1989/ResNeSt

Preprocessing

  1. Find all serial section replicates by running Detect_serial_sections.ipynb

The training data contains near duplicate slides which come from serial sections. The same tissue sample is sliced multiple times but these are essentially different parts and not duplicate although they may look similar.

serial section

Replicate slides of the same tissue sample are physically different and shouldn't be removed. However, they can be very similar to each other and they have same labels so this is problematic for evaluation. Replicates shouldn't be placed in same cross-validation folds to avoid sample memorization.

  1. Sample tissue parts of the training data ot generate tile training sets.

Our method samples tile images along the tissue skeleton. The first image shows the WSI (whole slide image) with green sampling places and the second image shows the cropped tiles. The Figure below is sampled with 6x6 256-sized tiles using 256 slide size.

Training

Train using Train template notebook.

Training readme has additional instructions.

Competition models

We trained our 256, 299 and 384 models that we used in the final submission with these scripts (in order).

256 model

  1. train_256_ordinal_0.py
  2. train_256_ordinal_1.py

Trained model

384 model

  1. train_384_ordinal_0.py
  2. train_384_ordinal_1.py
  3. train_384_ordinal_2.py

Trained model

299 model

  1. train_299_0.py
  2. train_299_1.py
  3. train_299_2.py
  4. train_299_3.py

Trained model

Inference

Please see our inference notebook that uses 256 and 384 models. This scored 0.930 qwk in the private, and 0.904 qwk in the public test sets.

The one that we used in the final competition submission scored 0.926 qwk in the private, and 0.907 qwk in the public test sets.

panda-challenge-raehmae's People

Contributors

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