1 of 24

Automatic Detection and Motion Analysis of Cells in Body Fluids in the Diagnosis of Disease Using �Image Processing and Deep Learning

Jamiu Oluwaseun Ojeleye�359704

Supervisor:�Prof. Dr. Murat Ekinci

Jury Members: �Prof. Dr. Murat Ekinci, Doç. Dr. Güzin Ulutaş and Dr. Öğrt. Üyesi Selen Ayas

2 of 24

Problem Statement

Traditional way of counting and tracking blood cells in body fluid for the diagnosis of disease is labor intensive, time consuming and lacks precision and reliability.

3 of 24

A desktop based application that automates the method of counting and tracking of blood cells would be developed using image processing and deep learning techniques.

Solution

4 of 24

Solution

5 of 24

Design Overview

Images or video frames are accepted as input and they are processed by three major subsystems in the application

6 of 24

Subsystem Overview

1. Hemocytometer Grids Detection System:

7 of 24

Hemocytometer Grid Detection System

8 of 24

Hemocytometer Grid Detection System

Adaptive Canny Edge Detection

9 of 24

Hemocytometer Grid Detection System

Line Detection with Hough Transform

10 of 24

Hemocytometer Grid Detection System

Detection of Grids

11 of 24

Subsystem Overview

2. Cells Detection System:

Steps:�1. Dataset Gathering and Labelling using an implemented Annotation Tool.�2. Training deeplearning model using Darknet Library.�3. Implementing the cells detection system using a well optimized version of Darknet library.

12 of 24

Annotation Tool:

An Annotation tool was implemented in Visual Studio C++ for labeling dataset using the YOLO Format and “AT” Format

Cells Detection System

13 of 24

Training Data and Data Augmentation:

Cells Detection System

Note: Why are images splitted into two overlapping images?

  • Training Large image with small objects requires large network size which requires alot of computing resources (GPU memory) and computational time.
  • Resizing the large image in order to train with small network size results in loss of smaller objects details and accuracy of model.

14 of 24

Cell Detector Network Architectures:

Cells Detection System

YOLOv3 Architecture:

Seun-1 Architecture:

15 of 24

Cells Detector: � CSF Frame + Deeplearning Model + Optimized Darknet Library

Cells Detection System

Steps:

  • Split image into two overlapping images of size 1080 x 1080
  • Detect cells in the two Images using YOLOv3 or Seun-1
  • Merge boundboxes of detect cells in the two images and remove overlapping boundboxes
  • Reconstruct boundboxes of original image from the resulting boundboxes from the previous step

16 of 24

3. Cells Motion Analysis Systems:

Subsystem Overview

1. Cells Counting System

2. Cells Tracking System

17 of 24

Cells Counting System: � Hemocytometer Grid Detection + Cells Detection System

Cells Motion Analysis System

18 of 24

Cells Motion Analysis System

Cells Tracker: � Cells Detection System � +� Tracking Algorithm

19 of 24

Cells Tracking Algorithm: Mean Shift Tracking + Normalized Cross-Correlation(NCC)

Cells Motion Analysis System

Steps:

  • Check if current frame and next frame are similar using Normalized Cross-Correlation(NCC) Algorithm.
  • If they are similar, track cells in next frame using Mean-Shift Algorithm. Otherwise, re-detect the cells in next frame using the deeplearning model.

20 of 24

Mean Shift Tracking Algorithm for tracking a cell with position Y0 in Frame t

Cells Motion Analysis System

Note: The edge information of the images were incorporated to the joint-color histogram

21 of 24

Illustration:

Real-time Face Tracking using Mean-Shift Algorithm

Cells Motion Analysis System

22 of 24

Cells Tracking System:

Cells Motion Analysis System

23 of 24

Demo

Demo Video: https://drive.google.com/file/d/1DkLVzRYsF0BvHsSgTYXInB_TnhB7X4ql/view?usp=sharing

24 of 24

Thank You For Your Time