Skip to content

dglubokov/blood-classifier

Repository files navigation

Blood-Classifer 🩸

A machine learning-powered tool for classifying blood and bone marrow cells using microscopy image data.

Project Concept


Table of Contents

  1. Overview
  2. Dataset
  3. Installation
  4. Usage

Overview

This project focuses on the classification of blood and bone marrow cells using deep learning techniques. It utilizes data from the Cancer Imaging Archive and provides a system for training models, interpreting results, and deploying a user-friendly interface with back-end and front-end support.

Key features:

  • Pre-trained models for cell classification.
  • Customizable training pipeline for new datasets.
  • Dockerized deployment for seamless integration.

Dataset

The project uses the following dataset:

Matek, C., Krappe, S., Münzenmayer, C., Haferlach, T., & Marr, C. (2021).
An Expert-Annotated Dataset of Bone Marrow Cytology in Hematologic Malignancies [Data set].
The Cancer Imaging Archive

This dataset includes expertly annotated images of bone marrow cytology, aiding the development of robust classification models.


Installation

Prerequisites

  • Python 3.8+
  • NVIDIA GPU with CUDA support for model training
  • Docker and Docker Compose

Setup

  1. Clone the repository:

    git clone https://github.com/dglubokov/blood-classifier.git
    cd blood-classifier
  2. Install required Python dependencies:

    pip install -r requirements.txt
  3. Ensure Docker is installed and running:

    docker --version
    docker-compose --version

Usage

Training

  1. Prepare your dataset and place it in the appropriate directory.

  2. Modify paths in the Jupyter notebook file ./experiments/5_experiment.ipynb to point to your dataset.

  3. Run the notebook:

    jupyter notebook ./experiments/5_experiment.ipynb

    ⚠️ Note: A powerful GPU is required to train the models efficiently.

  4. After training, the models and interpreted image examples will be saved locally.


System Usage

  1. Move the trained models to the ./models/ directory (create this directory if it doesn't exist):

    mkdir models
    mv <your_model_files> ./models/
  2. Start the Dockerized system:

    docker-compose up

    This will launch:


About

My Master Thesis: Blood and Bone Marrow classifier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages