The detection of malaria-infected cells in microscopic images is a critical task in healthcare, as it aids in the timely diagnosis and treatment of malaria. However, manual examination of these images is labor-intensive and prone to errors. Therefore, there is a need for automated systems that can accurately classify malaria-infected cells from uninfected ones.
Our goal is to develop a robust deep learning model capable of accurately detecting malaria-infected cells in microscopic images. Additionally, we aim to create a user-friendly application using Streamlit that allows users to upload images for classification. The application will not only provide predictions but also visualize the areas within the images that influence the model's decision-making process, using Explainable AI techniques such as heatmap visualization. By achieving this goal, we aim to improve the efficiency and accuracy of malaria diagnosis, ultimately contributing to better healthcare outcome.
Models1 contains 1 folder and 2 files.
- dataset folder named = cell_images which contains train and test dataset
- notebook = malaria-detection.ipynb
- and saved model = saved-model
size of dataset and saved model is too large to upload to github.
The dataset used for training the model is available at Data source
Given dataset was manually split into training and testing datasets, maintaining the
distribution of infected and uninfected images in each set. The dataset consists of a total
of 27,294 images belonging to 2 classes for training and 264 images belonging to the
same 2 classes for validation. Here are further details:
- Training Dataset: Contains 27,294 images.
- Validation Dataset: Contains 264 images.
- Classes: The dataset is divided into 2 classes: infected and uninfected cells.
requirements.txt: This file contains all the dependencies required to run the application.
models1/malaria-detection.ipynb
- This notebook contains the code for training a malaria detection model using Convolutional Neural Network (CNN).
- Once training is completed, the trained model is saved to a file using following command for future use.
model.save('malaria-detection-model.h5')
app.py:
- This file contains code for a Streamlit app.
- The app utilizes the heatmap visualization technique to provide insights into how the model analyzes input images, aiding in the interpretation of its predictions.
- By overlaying the heatmap on the original image, users can visually identify the regions that the model considered most important for its classification decision, which will be colored red in our output.
python -m virtualenv malaria-env
malaria-env/Scripts/Activate.ps1
python -r requirements.txt
streamlit run app.py
Below are the videos demonstrating the Malaria Cell Classification Streamlit App: