Project Description
CNN Classifier for dataset: https://www.kaggle.com/datasets/ismailpromus/skin-diseases-image-dataset/data
\Proj Folder | - \data | | - Class 0 | | - Class 1 | | - Class 2 | | - Class 3 | | - Class 4 | | - Class 5 | | - Class 6 | | - Class 7 | | - Class 8 | | - Class 9 | - dataProcessing.py | - README.MD | - test1.ipynb
Task: Supervised Classification task with a CNN, using Transfer Learning on a EfficientNet Model
Workflow:
- DataCleaning/Processing
- DataSet Splitting -> 90 : 10
- For Training Set: 90%
- Possibility of removing Watermarks?
- Padding To Square(resizing),
- DownSizing images (to reduce memory requirements)
- Normalizing Channels (for faster Learning)
- For Test Set: 10%
- No Augmentation, only resizing(Padding to Square) to fit the model inputs. use it raw to test for accuracy and generalization
- Model Building/Training
- Importing Model from torchvision
- Freezing of all layers except the classification layer.
- Train Model and Assess performance
-
Epoch, LR, Loss Fn, Additional Metrics
-
IF BAD: Modify/Reselect Model
-
IF GOOD: Progressive Unfreezing of Params for deeper learning of features.
-
git clone https://github.com/wsnc0/AIProject.git
cd AIProject/guipip install -r requirements.txtpython -m streamlit run app.pyFirst Run On first run, the application will automatically download the AI model (~185MB) from Google Drive. This may take a few minutes depending on your internet connection.
Click the "Start" button to begin Toggle "Use Gemini AI for enhanced descriptions" if you want detailed condition information
Drag and drop or browse to select a skin condition image Click "Analyze Image" to process the upload
View the predicted skin condition and confidence score Examine the GradCAM heatmap showing areas of interest Read the enhanced description of the condition (if Gemini AI is enabled) Click "Start Over" to analyze another image
The classifier can identify 10 different skin conditions: Eczema, Warts Molluscum, Melanoma, Atopic Dermatitis, Basal Cell Carcinoma, Melanocytic Nevi, Benign Keratosis, Psoriasis, Seborrheic Keratoses, Tinea Ringworm