GithubHelp home page GithubHelp logo

ummadiviany / malaria-image-classification Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 5.45 MB

This repository contains code for end-term project of class Digital Image Processing & Applications taught by Prof Deboot Sheet.

MATLAB 97.07% M 2.93%
image-classification malaria image-processing matlab-gui

malaria-image-classification's Introduction

Malaria-Image-Classification

The below method is successfull in classifying Malarial/Normal samples with with ~92% accuracy.

For MATLAB Central File Exchange please visit View Malaria-Image-Classification on File Exchange

For GitHub Repo please visit :octocat: GitHub

Visualize dataset

  1. Dataset can be downloaded from Malarial Cell Images Dataset.

  2. Dataset consisits of 13780 parasited and 13780 non-infected images. A total of 27560 images are available in the dataset.

Some examples of the dataset are shown below.

Image class Image 1 Image 2 Image 3 Image 4 Image 5
Parasite Image
Non Infected Image
  1. Purple regions can be easily observed in the parasite images which are not available in Non-Infected images.

Classification task

Now the task is to classify the given input image into Malaria or Normal class.

Methods

Gradient-based edge dectection and morphological operations for Malaria image classification

Steps Description Result
1 Convert RGB to Gray Image
2 bw = Edge detection using sobel filter
3 bw005 = Edge detection using sobel filter with thresold = 0.05
4 Subtract bw from bw005
4 Dilate the bw005-bw image with structuring element of disk with radius=5
5 If the area of the dilated image is more than the threshold then, image is classified as malarial infected sample. Thresold = 100 Area = 937, So classified as Malaria .

Results

Below are results are obtained by performing classification on 13780 Malaria adn 13780 Normal class images.

Metric Accuracy Sensitivity Specificity Precision Recall F1-Score
Metric Value 91.97 0.929 0.910 0.912 0.929 0.920

Prediction Results

Testing on Normal-class images

Testing on Malaria-class images

Conclusions

The proposed method solves the malaria image classification problem with good accuracy. A lot of other advanced methods like use of Classifiers on top extracted feature using feature extraction and more advanced deep learning algorithms like Deep CNNs. But there is a trade-off between computaional effiecieny, time required to train & inferece. The proposed method solves the problem with least possible resources and time constraints with comparable accuracy to more sophisticated methods.

malaria-image-classification's People

Contributors

ummadiviany avatar

Stargazers

 avatar

Watchers

 avatar  avatar

malaria-image-classification's Issues

error while running check_malaria.

am getting error while running check_malaria.Please help
Not enough input arguments.

Error in check_malaria (line
2)
grayimg = rgb2gray(img);

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.