Skip to content

Feature 4: AI Explainability Dashboard (Advanced Grad-CAM) #157

Description

@saidai-bhuvanesh

Description

The current implementation of Grad-CAM (Gradient-weighted Class Activation Mapping) is basic. To improve transparency and explanation of AI decisions, this issue proposes an Advanced AI Explainability Dashboard.

The system will calculate and display the percentage contribution of individual regions (Gill, Eye, and Body) to the final freshness score. The fusion formula (0.50 * Body + 0.25 * Eye + 0.25 * Gill) will be mathematically decomposed to show exactly how much weight each part contributed to the final result. In addition, the frontend will feature an interactive activation layer viewer where users can toggle between different heatmaps.

Technical Implementation Details

  1. Contribution Parsing: Calculate contribution percentages on the backend using the score weights and return explainability_json.
  2. Visual Breakdown: Draw a custom radial ring or stacked percentage bar representing relative contribution weights in AnalysisDashboard.tsx.
  3. Interactive Maps: Support tab selection to let users toggle the overlay image between body, eye, and gill activation maps.
  4. Fallback Mode: Generate simulated overlays for crops when in demo/no-model mode so the UI remains interactive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions