EffiDerm: An Efficient Deep Learning Model for Skin Cancer Prediction
๐ Overview
EffiDerm is a lightweight Convolutional Neural Network (CNN) designed for skin cancer detection and classification. It classifies 7 types of skin lesions from dermoscopic images with high accuracy while maintaining a low computational footprint.
Unlike heavy models such as ResNet-50 or VGG16, EffiDerm has only ~1.4M parameters, making it suitable for mobile deployment and real-time usage in resource-limited healthcare environments.
โจ Features
๐น Lightweight CNN with only ~1.4M parameters
๐น 93.07% classification accuracy
๐น Inference time ~47 ms per image
๐น Memory footprint ~5.6 MB (mobile-friendly)
๐น Class balancing with SMOTE for rare lesion types
๐น Data augmentation to improve generalization
๐น Grad-CAM visualizations for explainability
๐น Deployable in VS Code, local GPUs, or mobile frameworks
๐ Dataset
We use the HAM10000 dataset (Human Against Machine with 10,000 training images).
Total Images: 10,015 dermatoscopic images
Classes: 7 skin lesion categories
Format: RGB, 600ร450 px (resized to 64ร64 px)
Source: Harvard HAM10000 Dataset
๐ ๏ธ Tech Stack
Programming Language: Python 3.8
Frameworks: TensorFlow 2.x, Keras
Libraries: NumPy, Pandas, Matplotlib, Seaborn, Scikit-learn, Imbalanced-learn (SMOTE), OpenCV
Development Environment: Visual Studio Code
โ๏ธ Methodology
Preprocessing
Resize all images to 64ร64ร3
Normalize pixel values to [0, 1]
One-hot encode labels
Apply SMOTE to handle class imbalance
Data Augmentation
Random rotation, zoom, shift
Horizontal & vertical flipping
Brightness adjustment
Model Training
CNN with Conv2D, MaxPooling, Dropout, BatchNormalization
Optimizer: Adamax
Loss: Categorical Crossentropy with Focal Loss
Epochs: 50, Batch size: 32
Evaluation
Metrics: Accuracy, Precision, Recall, F1-score
Confusion Matrix
Training/Validation Curves
Grad-CAM Heatmaps
๐ Results
Accuracy: 93.07%
Inference Time: ~47 ms
Parameters: ~1.4M
Memory: ~5.6 MB
๐ Applications
Clinical decision-support tool for dermatologists
Mobile-based early skin cancer screening app
Telemedicine integration for rural healthcare
Educational tool for dermatology students
Dataset contains only dermoscopic images (not smartphone-quality photos)
Model performance depends on dataset quality and diversity
Requires further validation in real-world clinical settings
๐ฎ Future Scope
Integration with explainable AI (better Grad-CAM visualizations)
Deployment in mobile and edge devices
Expansion to include real-world smartphone datasets
Cloud-based teledermatology platforms
๐จโ๐ป Author
Agil Kannan
๐ B.Tech IT Student (2021โ2025)
โจ If you like this project, donโt forget to โญ the repo!