Medical Scan Classifier (2D): CNN Forward Pass Explained
A flat 2D read on the same CNN forward pass: a fixed blob kernel convolves a synthetic scan, a max-pooled sigmoid outputs a diagnosis probability, and a live ROC curve shows the sensitivity/specificity tradeoff β drawn with plain Canvas2D instead of a 3D scene.
This 2D companion runs the exact same forward-pass mechanics as the 3D version β synthetic scan β fixed blob-detector convolution β max pooling β sigmoid β diagnosis probability β but draws every panel with plain Canvas2D rectangles instead of textured planes in a WebGL scene. The input-scan heatmap, the feature-map reveal that tracks the scanning kernel across the grid, and the live ROC curve all read the same way, just flatter and lighter to render. Run single cases against the Normal / Early / Advanced presets to watch the kernel sweep and the probability gauge settle, or fire off a randomized batch to build a confusion matrix and watch the ROC curve and AUC update in real time as you drag the decision threshold.
A fixed 3Γ3 blob-detector kernel convolves a synthetic 24Γ24 scan, the response is global-max-pooled to a single activation, and a sigmoid turns that into a diagnosis probability β the same forward-pass pipeline a trained CNN executes at inference, with hand-chosen weights instead of learned ones. A parallel edge-detector kernel is available for the feature-map view but does not feed the score.
2D Β· HTML5 Canvas 2D Β· 60 FPS target Β· runs fully client-side, no install