Skip to content
Malaria Detection Using Deep Learning

Malaria Detection Using Deep Learning

Smart malaria diagnosis with deep learning

Created on 7th March 2026

•

Malaria Detection Using Deep Learning

Malaria Detection Using Deep Learning

Smart malaria diagnosis with deep learning

The problem Malaria Detection Using Deep Learning solves

Malaria is one of the most dangerous infectious diseases worldwide, especially in tropical and developing regions.
Traditional malaria detection relies on manual microscopic examination of blood smears, which has several challenges:

  • Time‑consuming: Manual analysis takes significant time, delaying treatment.
  • Human error: Accuracy depends on the skill and experience of the technician.
  • Resource limitations: Many rural or under‑resourced areas lack trained professionals and advanced lab facilities.
  • Late diagnosis: Delayed detection increases the risk of severe illness or death.

How This Project Helps
The Malaria AI Detection Dashboard addresses these challenges by:

  • Automating detection: Uses a trained deep learning model (CNN) to classify blood cell images as Malaria Infected or Normal.
  • Improving accuracy: Reduces human error by leveraging AI predictions with confidence scores.
  • Saving time: Provides instant results after image upload.
  • Supporting doctors: Includes a recommendation panel with suggested actions and preventive tips.
  • Visual insights: Interactive charts show infection distribution and parasite stage counts for better understanding.
  • Accessible design: A simple web dashboard that can be deployed in clinics, labs, or even educational settings.

Challenges we ran into

  • Dataset Quality & Preprocessing
  • The malaria cell image dataset contained variations in size, lighting, and noise.
  • I solved this by resizing all images to 64×64 pixels, normalizing pixel values to the 0–1 range, and applying augmentation techniques (rotation, zoom, flip) to improve generalization.
  • Model Accuracy vs Overfitting
  • During training, the CNN achieved high accuracy on the training set but dropped significantly on the validation set (overfitting).
  • To address this, I used validation splits, added data augmentation, and carefully tuned the number of epochs.
  • Backend–Frontend Integration
  • Passing predictions from Flask backend to the frontend and updating dynamic charts was tricky.
  • I solved this using Jinja2 templates ({{infected}}, {{normal}}) and binding Chart.js with backend data.
  • File Upload & Security
  • Uploaded files sometimes had unsafe names that caused errors.
  • I used secure_filename() from Werkzeug to sanitize filenames and prevent crashes.
  • Doctor Recommendation Logic
  • The AI model only predicted infected/normal, but I also needed parasite counts and doctor recommendations.
  • I simulated parasite counts using random values (demo purpose) and hard‑coded recommendations for infected vs normal cases.
  • UI/UX Design
  • Designing a professional dashboard that matched the logo theme (pastel skyblue transparent look) was challenging.
  • I solved this with CSS gradients, transparency (rgba), animations (fadeIn, fadeInUp), and a responsive grid layout.
  • Deployment Issues
  • Running Flask locally was smooth, but deployment caused errors with static files and upload paths.
  • I fixed this by ensuring the upload folder exists (os.makedirs()) and correcting relative paths.

Tracks Applied (1)

Requestly – Creative Use Challenge

For this project, the following partner track was applied: Requestly Integrated to manage and optimize network requ...Read More

Requestly

Discussion

Builders also viewed

See more projects on Devfolio