How alfareza26/gerd_classification works
GERDGuard is a clinical decision-support web app for analyzing upper-GI endoscopy images. Its principal workflow is image upload, image-type screening, GERD classification, Grad-CAM visualization, report generation, and clinical report display. The backend excerpts show the API coordinating screening, explanation, and reporting; the README documents the frontend dashboard and browser-local history. Some frontend wiring and unsampled gate internals are not shown, so those connections are omitted or marked unverified.
Main entry points: main.py Prediction API & classifier · AnalysisReportDashboard.tsx Report dashboard · store.ts Local history & profile · page.tsx Analysis workflow
Components 13
Web application
- Analysis workflow
frontend/app/analisis/page.tsx - Prediction API client
frontend/lib/api.ts - Local history & profile
frontend/lib/store.ts - History view
frontend/app/riwayat/page.tsx - Profile view
frontend/app/profil/page.tsx - Login & registration
frontend/app/login/page.tsx
Inference backend
- Prediction API & classifier
backend/main.py - Image screening
backend/guard.py - Grad-CAM explainer
backend/gradcam.py - Patient report generator
backend/report_generator.py
Clinical results
- Report dashboard
frontend/components/AnalysisReportDashboard.tsx - Report dialog
frontend/components/ResultDialog.tsx
Other components
- Clinician
Connections 14
- Clinician → Analysis workflow: uploads image
README.md - Analysis workflow → Prediction API client: requests prediction
- Prediction API client → Prediction API & classifier: posts image
frontend/lib/api.ts - Prediction API & classifier → Image screening: screens image
backend/main.py - Prediction API & classifier → Grad-CAM explainer: generates heatmap
backend/main.py - Prediction API & classifier → Patient report generator: builds report
backend/main.py - Prediction API & classifier → Report dashboard: returns report data
- Report dashboard → Report dialog: renders in
frontend/components/ResultDialog.tsx - Report dashboard → Local history & profile: reads saved record
- Clinician → History view: reviews history
README.md - History view → Local history & profile: uses local history
- Clinician → Profile view: manages profile
README.md - Profile view → Local history & profile: stores preferences
- Clinician → Login & registration: accesses account