Code Monkey home page Code Monkey logo

ct-slice-localization's Introduction

Project Title:

Relative location of CT slices on axial axis (Dataset)


Stack

Python Jupyter Notebook PyCharm PyTorch Scikit-Learn Git saythanks

Overview

The dataset comprises 386 features (including ID and target feature, radial axis location) extracted from CT images.

The class variable is of the numeric kind, and denotes the relative location of the CT slice on the axial axis of the human body. The data was retrieved from a set of 53500 CT images from 74 different patients (43 male, 31 female).

Each CT slice is described by two histograms in polar space. The first histogram describes the location of bone structures in the image, the second the location of air inclusions inside of the body. Both histograms are concatenated to form the final feature vector. Bins that are outside of the image are marked with a value of -0.25.

The class variable (i.e. relative location of an image on the axial axis) was constructed by manually annotating up to 10 different distinct landmarks in each CT Volume with known location. The location of slices in between landmarks was interpolated.

Demo

GIF 1

GIF 2

Features and Attribute Information

  • Feature 1 (patientId): Each ID identifies a different patient
  • Features 2 to 241: Histogram describing bone structures
  • Features 242 to 385: Histogram describing air inclusions
  • Feature 386 (target variable; reference): Relative location of the image on the axial axis in degrees (class value). Values are in the range [0; 180] where 0 denotes the top of the head and 180 the soles of the feet.

A link to the dataset may be obtained below.

Training procedure

The task could be modelled either as a regression or classification task. In this instance, the modelling was done via regression. Two models were fit on the dataset: a LinearSVR model, an SVM, and a neural network.

The fully-connected neural network was built via the PyTorch library, for the regression task described in the Overview above. The network was wrapped via the Skorch API, to render it compatible with the Scikit Learn API. The final model was obtained after training for 20 epochs, with a learning rate of 1e-4, and a batch size of 16.

A compressed form of the dataset is provided, with abstractions to decompress and compress as required.

Quick start

  1. Navigate to the scripts folder:
$ cd scripts
  1. Ensure compressed data file is decompressed into the data directory

  2. Run the main.py file.

$ python3 main.py --arg_key arg_value
  1. Arguments available include:
    - epochs
    - task ('classif' or 'regression')
    - lr (learning rate)
    - classes (None if 'regression', int if 'classif')
    - n_features (number of data features)
    - batch_size
    

Performance

The performance of the Skorch neural network (~99%) outstripped the vanilla LinearSVR model from Scikit Learn (~84%) via a considerable margin.

An exploratory hypothesis for why this was so might be that the network, by virtue of the RELU non-linearities present, was able to learn non-linear features from the dataset.

Appendix

Data Source:

  1. Dua, D. and Graff, C. (2019). UCI Machine Learning Repository. Irvine, CA: University of California, School of Information and Computer Science.

Authors

  1. Author: F. Graf, H.-P. Kriegel, M. Schubert, S. Poelsterl, A. Cavallaro Source: Dataset - 2011

Citation

  1. UCI Citation

ct-slice-localization's People

Contributors

arkhymadhe avatar

Watchers

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