How singhamit55/dermai works
DermAI is a browser-based acne-severity analysis and skincare guidance app. The main user flow is to upload or capture a skin image, send it to the Flask API for assessment, and view the result; the app also offers explanations, chat, routine guidance, and scan history. The README documents several capabilities whose implementation is not fully visible in the excerpts, so those links are cited to the README. The shipped backend excerpt shows heuristic image assessment, while the README describes EfficientNet; training code also includes a baseline and a reference CNN pipeline.
Main entry points: app.py Flask API routes · app.js Routine and progress UI · features.py Image features · explain.py LIME explanations
Components 18
Web experience
- Image capture
app.js - Analysis results
app.js - Scan history
app.js - Routine and progress UI
app.js - Assistant chat UI
app.js
Assessment API
- Flask API routes
app.py - Image assessment
app.py - Clinical summary
app.py - Chat service
app.py - Routine and profile
app.py - Progress endpoint
app.py
Model and explanation
- Image features
features.py - LIME explanations
explain.py - Baseline training
train_baseline.py - EfficientNet reference
train_cnn_efficientnet.py - Tri-layer XAI
app.py
Care guidance
- LLM provider
Other components
- User
Connections 21
- User → Image capture: uploads or captures
README.md - Image capture → Flask API routes: submits image
README.md - Flask API routes → Image assessment: routes assessment
app.py - Image assessment → Image features: extracts features
app.py - Image assessment → Clinical summary: builds summary
app.py - Flask API routes → Analysis results: returns assessment
README.md - Analysis results → Scan history: tracks scans
README.md - User → Routine and progress UI: views routine
README.md - Routine and progress UI → Routine and profile: requests routine
README.md - Flask API routes → Routine and profile: routes plan and profile
app.py - Routine and progress UI → Progress endpoint: requests progress
- Flask API routes → Progress endpoint: routes progress
app.py - User → Assistant chat UI: asks skincare questions
README.md - Assistant chat UI → LLM provider: requests chat completion
app.js - Assistant chat UI → Chat service: requests assistant reply
- Flask API routes → Chat service: routes chat
app.py - Chat service → LLM provider: requests model reply
app.py - Image assessment → Tri-layer XAI: generates visualizations
app.py - Baseline training → Image features: extracts training features
train_baseline.py - LIME explanations → Image features: reuses feature functions
explain.py - EfficientNet reference → Tri-layer XAI: documents Grad-CAM approach