Problem
A biopsy slide is a gigapixel image with one slide-level label, detailed annotations are expensive, and blurred, folded or empty regions can capture a model's attention. Grading is also ordinal: calling ISUP 5 a 4 is a smaller mistake than calling it a 1. The tool has to help a pathologist, not replace one.
Solution
Multiple-instance learning over frozen foundation-model features for the slide-level grade, trained with an ordinal loss and scored with quadratic weighted kappa. A U-Net localises Gleason patterns per pixel, a third model detects cribriform architecture, and the review interface presents all three as suggestions with attention maps. The pathologist accepts, edits or rejects each one, and every deviation is justified and logged.