How shivakarthikvuppala/melanomadetection works
Melanoma Detection is a research-oriented, agentic system for dermoscopic-image analysis with supplied clinical context, evidence retrieval, and explainable reporting. The main workflow runs from image/context submission through orchestration, parallel vision analysis and evidence gathering, then report generation; users can access it through the web UI or API. The README documents these product stages and capabilities. Source-index references support several internal calls, but unsampled UI/API and specialist implementations limit some implementation-level links; those links are omitted or marked unverified.
Main entry points: orchestrator.py Case orchestrator · vision.py Vision agent · agent.py Hybrid retrieval · server.py Analysis API
Components 24
User experience
- Web app routes
frontend-ui/src/App.jsx - Image upload
frontend-ui/src/pages/Upload.jsx - Results view
frontend-ui/src/pages/Results.jsx
API and identity
- Analysis API
api/server.py - Authentication
api/auth.py - Application database
api/db.py
Case workflow
- Case orchestrator
src/agents/orchestrator.py - Case state
src/agents/state.py - Clinical context
src/agents/clinical_context.py
Image analysis
- Vision agent
src/agents/vision.py - SwinV2 classifier
src/classification/inference.py - SegFormer segmentation
src/segmentation/segformer_wrapper.py - ABCD features
src/features/extractor.py - Scale calibration
src/engine/scale_detection.py - Grad-CAM
src/explainability/gradcam.py
Evidence and reporting
- Evidence agent
src/agents/evidence.py - Hybrid retrieval
rag_pipeline/agent.py - Query generation
rag_pipeline/query_engine.py - Report agent
src/agents/report.py - Report rendering
src/agents/report_generator.py - Validated report
src/agents/report.py
Other components
- User
- Qdrant
- LLM service
Connections 25
- User → Web app routes: uses
README.md - Web app routes → Image upload: routes to
frontend-ui/src/App.jsx - Web app routes → Results view: routes to
frontend-ui/src/App.jsx - Image upload → Analysis API: submits image
- User → Analysis API: submits image
README.md - Analysis API → Authentication: routes auth
api/server.py - Authentication → Application database: reads/writes
api/auth.py - Analysis API → Case orchestrator: invokes
api/server.py - Case orchestrator → Case state: updates
src/agents/orchestrator.py - Case orchestrator → Vision agent: dispatches
src/agents/orchestrator.py - Case orchestrator → Evidence agent: dispatches
src/agents/orchestrator.py - Case orchestrator → Report agent: dispatches
src/agents/orchestrator.py - Case orchestrator → Clinical context: consults
src/agents/orchestrator.py - Vision agent → SwinV2 classifier: classifies
- Vision agent → SegFormer segmentation: segments
- Vision agent → ABCD features: extracts features
- Vision agent → Scale calibration: calibrates scale
- Vision agent → Grad-CAM: creates explanation
- Evidence agent → Hybrid retrieval: retrieves evidence
- Hybrid retrieval → Query generation: generates queries
rag_pipeline/agent.py - Hybrid retrieval → Qdrant: searches
- Hybrid retrieval → LLM service: uses for HyDE
- Report agent → Report rendering: renders report
- Report agent → Validated report: validates
README.md - Validated report → Results view: displays