Code Monkey home page Code Monkey logo

kaggle_ranzcr_challenge's Introduction

RANZCR Catheter and Line Position Challenge

The top-5% solution to the RANZCR CLiP - Catheter and Line Position Challenge on Kaggle.

sample

Summary

Hospital patients can have catheters and tubes inserted during their admission. If tubes are placed incorrectly, serious health complications can occur later. Using deep learning helps to automate detection of malpositioned tubes, which allows to reduce the workload of clinicians and prevent treatment delays.

This project works with a dataset of 30,083 high-resolution chest X-ray images. The images have 11 binary labels indicating normal, borderline or abnormal placement of endotracheal tubes, nasogastric tubes, central venous catheters and Swan-Ganz catheters.

I develop an ensemble of 5+2 CNN models implemented in PyTorch. The solution reaches the test AUC of 0.971 and places 71st out of 1,549 competing teams. The diagram below overviews the ensemble. The detailed summary is provided in this writeup.

ensemble

Project structure

The project has the following structure:

  • codes/: .py scripts with training, inference and image processing functions
  • notebooks/: .ipynb Colab-friendly notebooks for training CNNs and ensembling
  • input/: input data (not included due to size constraints, can be downloaded here)
  • output/: model configurations, weights and figures exported from the notebooks

Reproducing solution

The solution can be reproduced in the following steps:

  1. Downloading competition data and placing it in the input/ folder.
  2. Running five training notebooks model_x.ipynb to obtain weights of base models.
  3. Running the ensembling notebook ensembling.ipynb to obtain the final prediction.

All model_x.ipynb notebooks have the same structure and differ in model/data parameters. Different versions are included to ensure reproducibility. To understand the training process, it is sufficient to go through the codes/ folder and inspect one of the modeling notebooks. The ensembling code is also provided in this Kaggle notebook.

More details are provided in the documentation within the scripts & notebooks.

kaggle_ranzcr_challenge's People

Contributors

kozodoi avatar

Watchers

James Cloos 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.