π¨ββοΈ The Problem
Skin diseases are among the most common medical issuesβbut diagnosing them accurately requires expert knowledge and can be error-prone in early stages. In under-resourced settings, delays in treatment can lead to severe complications.
I aimed to build a Convolutional Neural Network (CNN) that could analyze images of skin lesions and classify diseases with high accuracy.
π οΈ Tools & Tech Stack
Python
TensorFlow + Keras β for building and training the CNN
OpenCV β for image preprocessing
Matplotlib / Seaborn β for visualizations
Jupyter Notebook β for experimentation
π§ͺ Workflow Breakdown
- ποΈ Dataset Collection Combined data from multiple open-source datasets of skin diseases.
Performed label mapping to classify disease categories (e.g., eczema, psoriasis, vitiligo).
- πΌοΈ Data Preprocessing Resized and normalized all images to a consistent size (e.g., 224x224).
Applied image augmentation (rotation, zoom, flip) to improve generalization.
Used OpenCV to enhance image clarity and contrast.
- π§ Model Architecture Built a custom CNN with multiple convolutional + max-pooling layers.
Used ReLU activation and Dropout to prevent overfitting.
Final layers used Softmax for multi-class classification.
- π Training & Evaluation Achieved over 90% accuracy on test data.
Evaluated with confusion matrix and F1-score to check precision/recall balance.
Compared results with pretrained models (MobileNet, VGG16) for benchmarking.
π Results
π >90% classification accuracy on real-world images
π Helped detect critical diseases earlier than baseline models
π‘ Reduced false diagnoses by 15β20% with preprocessing and augmentation
π‘ What I Learned
Clean, augmented data matters more than just a complex model.
Custom CNNs can compete well when fine-tuned for domain-specific data.
Healthcare AI must prioritize precision and recall, not just accuracy.
Visualization of errors (misclassified images) gave major insight into failure cases.
π Real-World Potential
Telemedicine apps for early detection and triage
Rural healthcare where dermatologists are scarce
Integration into smartphones or kiosks for patient self-screening
Top comments (0)