2025CompletedComputer Vision
AI Microscopic Blood & Disease Analyzer

Metrics & Visuals
YOLOv8s
Detection Model
5
WBC Classes
30–50
Training Epochs
3 (RBC / WBC / Platelet)
Cell Types
Diagram
Pipeline overview. App screenshots coming soon.
Overview
A three-module deep learning pipeline for automated blood cell analysis — from raw detection to disease classification. Built as a PG Mini Project on Kaggle. The system analyses blood microscopy images in three sequential stages: cell detection with YOLOv8, WBC subtype classification with ResNet-50, and disease detection with EfficientNetB3.
Key Features
- YOLOv8s fine-tuned on blood cell data — detects RBC, WBC, and Platelets with bounding boxes
- Automated clinical cell counting converted to cells/µL with High/Normal/Low interpretation
- ResNet-50 WBC subtype classifier: Basophil, Eosinophil, Lymphocyte, Monocyte, Neutrophil (5 classes)
- EfficientNetB3 disease detector with last 30 layers unfrozen for fine-tuning
- Detects Malaria, Leukemia, Sickle Cell Anemia, and Anemia from blood smear images
- LangChain + OpenAI GPT integration for auto-generating human-readable diagnostic reports
- Streamlit web interface for uploading blood smear images and downloading PDF reports
- OpenCV preprocessing pipeline for image normalization and augmentation
- Trained on Kaggle GPU with ModelCheckpoint and CSVLogger callbacks
How It Works
- 1Blood microscopy image → Module 1 (YOLOv8s): detects RBC, WBC, Platelets with bounding boxes
- 2WBC crops passed to Module 2 (ResNet-50): classifies into 5 WBC subtypes
- 3Full smear passed to Module 3 (EfficientNetB3): predicts disease class with confidence score
- 4Results fed into LangChain pipeline → GPT generates diagnostic report
- 5Streamlit UI renders results and provides PDF download
System Architecture
Input
Blood Smear Image
Microscopy photo
Module 1
YOLOv8s
Cell Detection
Cell Counter
RBC / WBC / Platelet
Module 2
ResNet-50
WBC Classification
5 Subtypes
Basophil, Eosinophil...
Module 3
EfficientNetB3
Disease Detection
4 Diseases
Malaria, Leukemia...
Output
LangChain + GPT
Report generation
Streamlit UI
PDF download
Data Flow
YOLOv8s→ResNet-50(WBC crops)
Blood Smear Image→EfficientNetB3(full smear)
Roadmap
- Streamlit web app for interactive inference
- Docker container for reproducible environment
- ONNX export for edge deployment
- Grad-CAM visualisations for model explainability
- Module 1 + 2 pipeline: detect WBC → auto-classify subtype
Tech Stack
Detection
YOLOv8s (Ultralytics)OpenCVNumPy
Classification
TensorFlow 2.15KerasResNet-50EfficientNetB3
Reporting
LangChainOpenAI GPTStreamlit
Training
Kaggle GPUEarlyStoppingReduceLROnPlateauModelCheckpoint