Skip to content

🧠 Malaria detection from RBC cell images using Convolutional Neural Networks (CNN). Built as a learning project

Notifications You must be signed in to change notification settings

Digam-hue/Malaria-Detection-Using-CNN

Repository files navigation

🦠 Malaria Detection Using CNN

This project focuses on detecting malaria-infected red blood cells (RBCs) using a Convolutional Neural Network (CNN).
It is built as a hands-on learning project .

The goal of this project is to understand:

  • How image data is processed
  • How CNN models are trained
  • How medical image classification works in practice

🛠️ Tech Stack Used

  • Python
  • TensorFlow / Keras
  • NumPy
  • Pandas
  • Matplotlib
  • Seaborn
  • Google Colab

📁 Dataset

The dataset contains microscopic images of red blood cells divided into two classes:

  • Parasitized (Infected)
  • Uninfected (Healthy)

The dataset is loaded directly using TensorFlow Datasets (TFDS).


📌 Project Workflow

  1. Dataset loading & preprocessing
  2. Image resizing & normalization
  3. CNN model building
  4. Model training with callbacks
  5. Evaluation using:
    • Accuracy
    • Confusion Matrix
    • ROC-AUC
  6. True vs Predicted visualization
  7. Model saving & loading

🧠 Model Architecture

The model uses a custom CNN built with:

  • Convolution Layers
  • Batch Normalization
  • Max Pooling
  • Fully Connected (Dense) Layers
  • Dropout for regularization
  • Sigmoid activation for binary classification

✅ Results

The model was trained and evaluated earlier using GPU on Google Colab.
Currently, due to GPU limitations, the notebook is being re-run for final clean outputs.

Evaluation includes:

  • Training & Validation Accuracy
  • Confusion Matrix
  • ROC Curve
  • True vs Predicted image visualization

Final results will be updated soon.


▶️ How to Run This Project

  1. Clone the repository
  2. Open the notebook in Google Colab
  3. Enable GPU runtime
  4. Run all cells from top to bottom

💾 Saving & Loading the Model

Two methods are used:

  • Saving the full model (architecture + weights)
  • Saving only the weights

This helps in resuming training and using the trained model later without retraining.


🎯 Learning Outcome

Through this project I learned:

  • How CNN works internally
  • How medical image classification is implemented
  • How to evaluate models using:
    • Confusion Matrix
    • ROC-AUC
    • Precision, Recall, F1-score
  • How to save and reload trained models


🔗 Author

Digambar
GitHub: https://github.com/Digam-hue

About

🧠 Malaria detection from RBC cell images using Convolutional Neural Networks (CNN). Built as a learning project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published