How vidyutchakrabarti/dermascan-ai works
Project type and purpose
• This is a full-stack, multi-modal diagnostic application.
• Frontend: React + Vite SPA for image upload and result visualization.
• Backend: Flask API serving predictions by combining CNN (ResNet50), segmentation (U-Net), and NLP (Random Forest) pipelines.
• Purpose: Classify dermatoscopic images using deep learning and NLP.
File structure
• Top level contains React/Vite configuration (index.html, vite.config.js, package.json, src/, public/).
• No backend code in this tree; assume a separate backend/ (Flask) folder alongside this repo.
• No database folder—data flows from model artifacts and HAM10000 dataset.
• Deployment config: vercel.json indicates hosting on Vercel.
Extract additional insights from the README
• Models:
• ResNet50 for image classification
• U-Net for lesion segmentation
• Random Forest for text metadata analysis
• Data source: HAM10000
• Workflow: image → segmentation → CNN → NLP → merge → response
Main components
a. Frontend (React + Vite)
b. Backend API (Flask)
c. ML pipelines
• Segmentation service (U-Net)
• Classification service (ResNet50)
• NLP service (Random Forest)
d. Data source (HAM10000)
e. Artifact storage (model weights)
f. Result aggregator & response
Relationships and interactions
• User browser → Frontend UI
• Frontend → HTTP POST /predict → Flask API
• Flask API fan-out:
• Send image to U-Net service → binary mask
• Send image to ResNet50 service → class scores
• Send metadata to Random Forest service → text scores
• Flask API merges outputs → final diagnosis
• Flask API → respond JSON → Frontend
• Frontend renders results
Architectural patterns and principles
• Micro-services style for each ML component
• API gateway (Flask) as orchestration layer
• Separation of concerns: UI vs. model inference vs. data
• Stateless services (models load weights on startup)
• Modular design for easy extension (swap models, add services)
Relevant technologies & frameworks
• Frontend: React, Vite, JSX, CSS modules
• Backend: Python Flask, Gunicorn (or similar)
• ML: TensorFlow/PyTorch (for ResNet50 & U-Net), scikit-learn (Random Forest)
• Dataset management: local files or object storage
• Deployment: Vercel (frontend), Docker or cloud VM for backend