Explainable & Auditable Alloy Defect Detection

Group 8's submission for Problem #10, MIT Professional Education "Applied AI for Materials Discovery." A steel-surface defect classifier (NEU-DET, 6 defect classes) plus the interpretability and statistical-guarantee tools a plant manager or auditor would actually need before acting on it.

Read the tabs in order — they are an argument, not a menu. The model works and explains itself; that explanation can be hijacked by a meaningless artifact; and while it does pass the standard faithfulness test, that test turns out to be sensitive to how you split the data. What we would put in front of an auditor is none of those — it is a statistical guarantee, plus the lesson that audit tools need auditing before you trust them.

A working model that explains itself

Upload a micrograph (or pick an example below). The model predicts the most likely defect class; the heatmap shows which pixels drove that prediction (Grad-CAM, implemented from first principles with PyTorch hooks, following the course's own notebook).

The classifier itself is deliberately ordinary — a compact 164k-parameter CNN, trained by the same recipe as the notebook: a stratified 70/10/10/10 split where the test images are never used to fit weights or pick a checkpoint. The notebook's run scores 94.1% on that test split; the separately trained checkpoint served here scores 95.6% on the same split — same recipe and same split, different training run. That is the point: the question is not whether a CNN can score well on NEU-DET (it can), but whether the explanation sitting on top of it means anything. Tabs 2 and 3 test exactly that.

Examples

The full evidence behind every number on this page is in this Space's notebook/ folder — the Jupyter notebook with all outputs, and a plain-language walkthrough of what each cell does and why. The charts above are precomputed there; the notebook is where you can check them.

Group 8 · MIT Professional Education, Applied AI for Materials Discovery, July 2026.