Skip to content

Agilkannan/EffiDerm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

โš ๏ธ Limitations

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)

LinkedIn
GitHub

โœจ If you like this project, donโ€™t forget to โญ the repo!

About

EffiDerm: An Efficient Deep Learning Model for Skin Cancer Prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published