DataScienceVibes / Malaria-Cell-Classification-Using-VGG19

WE WILL BE CLASSIFYING WHETHER THE PERSON HAS MALARIA OR NOT BY CLASSIFYING THE X-RAY SCANS OF INFECTED AND UNINFECTED IMAGES.

Home Page:https://github.com/Tanwar-12/Malaria-Cell-Classification-Using-VGG19

Repository from Github https://github.comDataScienceVibes/Malaria-Cell-Classification-Using-VGG19Repository from Github https://github.comDataScienceVibes/Malaria-Cell-Classification-Using-VGG19

๐‚๐๐ ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ: ๐Œ๐š๐ฅ๐š๐ซ๐ข๐š ๐‚๐ž๐ฅ๐ฅ ๐‚๐ฅ๐š๐ฌ๐ฌ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐”๐ฌ๐ข๐ง๐  ๐•๐†๐†19

C ell (1)

๐ˆ๐ง๐ญ๐ซ๐จ๐๐ฎ๐œ๐ญ๐ข๐จ๐ง:

Malaria, a severe and widespread parasitic disease in humans, exhibits clinical symptoms as parasites infiltrate and multiply within human red cells. Transmission occurs when infected mosquitoes bite humans, releasing parasites into the bloodstream where they infect and destroy red blood cells.

๐“๐จ๐จ๐ฅ๐ฌ ๐”๐ฌ๐ž๐

  • Google Colab

๐ƒ๐š๐ญ๐š๐ฌ๐ž๐ญ ๐’๐ฎ๐ฆ๐ฆ๐š๐ซ๐ฒ:

Link: https://www.kaggle.com/datasets/iarunava/cell-images-for-detecting-malaria

This dataset comprises 27,560 PNG images of malaria-infected and uninfected cells, grouped into two classes with 13,780 images each.

Classes:

  • Parasitized
  • Uninfected

๐“๐š๐ฌ๐ค: ๐๐ข๐ง๐š๐ซ๐ฒ ๐‚๐ฅ๐š๐ฌ๐ฌ๐ข๐Ÿ๐ข๐œ๐š๐ญ๐ข๐จ๐ง ๐๐ซ๐จ๐ฃ๐ž๐œ๐ญ ๐๐ก๐š๐ฌ๐ž๐ฌ:

  • Library Importation
  • Data Subset Creation (Training, Testing, Validation)
  • Data Processing (Prepare Training and Testing Data)
  • Visualization of Training Images
  • Architecture Development
  • Model Compilation
  • Training
  • Evaluation
  • Model Saving
  • Prediction
  • Testing
  • Visualization of Test Images

๐ƒ๐š๐ญ๐š ๐‹๐จ๐š๐๐ข๐ง๐  / ๐๐ซ๐ž๐ฉ๐š๐ซ๐š๐ญ๐ข๐จ๐ง:

Segregation into three subsets: training, testing, and validation using the split folder library. ๐ƒ๐š๐ญ๐š ๐๐ซ๐จ๐œ๐ž๐ฌ๐ฌ๐ข๐ง๐ : Training: 22,069 images across 2 classes. Validation: 2,758 images across 2 classes. Testing: 2,760 images across 2 classes.

๐•๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง ๐จ๐Ÿ ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐  ๐ˆ๐ฆ๐š๐ ๐ž๐ฌ:

Parasitized: Parasitized Image image

Uninfected: Uninfected Image image

๐€๐ซ๐œ๐ก๐ข๐ญ๐ž๐œ๐ญ๐ฎ๐ซ๐ž ๐ƒ๐ž๐ฏ๐ž๐ฅ๐จ๐ฉ๐ฆ๐ž๐ง๐ญ:

  • Utilization of VGG19 transfer learning technique to construct a malaria cell detection architecture.

  • Total params: 20,074,562

  • Trainable params: 50,178

  • Non-trainable params: 20,024,384

Implementation of a flatten layer to convert output into a 1D array.

Application of sigmoid activation function in the last FCNN layer due to the presence of only 2 classes.

๐Œ๐จ๐๐ž๐ฅ ๐‚๐จ๐ฆ๐ฉ๐ข๐ฅ๐š๐ญ๐ข๐จ๐ง, ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐ , ๐š๐ง๐ ๐„๐ฏ๐š๐ฅ๐ฎ๐š๐ญ๐ข๐จ๐ง:

Utilization of binary cross-entropy and Adam optimizer for model compilation. Model trained over 50 epochs with plots for training and validation accuracy, loss, and validation loss.

๐„๐ฏ๐š๐ฅ๐ฎ๐š๐ญ๐ข๐จ๐ง ๐ซ๐ž๐ฌ๐ฎ๐ฅ๐ญ๐ฌ:

Train Accuracy & Loss: [0.2546966075897217, 0.9057048559188843]

Testing Accuracy & Loss: [0.21056684851646423, 0.9217391014099121]

๐Œ๐จ๐๐ž๐ฅ ๐’๐š๐ฏ๐ข๐ง๐ :

Model saved using h5 format.

๐๐ซ๐ž๐๐ข๐œ๐ญ๐ข๐จ๐ง ๐š๐ง๐ ๐“๐ž๐ฌ๐ญ๐ข๐ง๐ :

Selection of image from testing data for prediction.

Conversion of the image into an array and expansion of its dimension.

Prediction made using if-else conditions based on maximum argument.

๐•๐ข๐ฌ๐ฎ๐š๐ฅ๐ข๐ณ๐š๐ญ๐ข๐จ๐ง ๐จ๐Ÿ ๐๐ซ๐ž๐๐ข๐œ๐ญ๐ข๐จ๐ง๐ฌ:

Prediction Visualization image

About

WE WILL BE CLASSIFYING WHETHER THE PERSON HAS MALARIA OR NOT BY CLASSIFYING THE X-RAY SCANS OF INFECTED AND UNINFECTED IMAGES.

https://github.com/Tanwar-12/Malaria-Cell-Classification-Using-VGG19


Languages

Language:Jupyter Notebook 100.0%