Releases

v0.0.1

2026-10-20 23:32 UTC

Pre-alpha. JEV tuned on validation and tested once; comparison with CLIP and Clef-Flash; calibration; the MSEC 2027 abstract and the replication document.

Decisions in v0.0.1
IDDecisionProposed byDecided by
D1Keep a replication record with the replication-materials skill.Fadel M. MegahedFadel M. Megahed
D2Make all manifest paths relative to the local imgs/ folder.Fadel M. MegahedFadel M. Megahed
D3Pin the model to jev-1.13.0 in the runner, because jev-latest can change.Claude CodeClaude Code
D4Run batch 1: a baseline and a repeat baseline for microstructure, textiles and extrusion.Claude CodeFadel M. Megahed
D5Freeze 50 validation images per class.Claude CodeFadel M. Megahed
D6Add an opt-in upscale argument (default FALSE) to the JEV client.Claude CodeFadel M. Megahed
D7Set up the replication record after the experiments.Claude CodeFadel M. Megahed
D8Make a panelled progress chart like the autoresearch chart.Fadel M. MegahedFadel M. Megahed
D9Include center crop and downsizing as experiments to reduce tokens.Fadel M. MegahedFadel M. Megahed
D10Run the rest of the queue for the three priority datasets, with a cap of 1,000 calls.Claude CodeFadel M. Megahed
D11Judge criteria, reference and size changes by AUC (+0.02) and tune the threshold last.Claude CodeFadel M. Megahed
D12Choose each threshold as the midpoint of the widest run of thresholds with the maximum validation BA.Claude CodeClaude Code
D13Tune pipe_staple and pan before one final test of all datasets.Claude CodeFadel M. Megahed
D14Stop pan tuning while its validation images have copies in the test set.Claude CodeClaude Code
D15Delete the duplicate pan images from the test folder.Fadel M. MegahedFadel M. Megahed
D16Raise the paid-call cap to 5,000.Fadel M. MegahedFadel M. Megahed
D17Delete all files with the word copy in their names.Fadel M. MegahedFadel M. Megahed
D18Keep a smaller pan image size when it is no worse, because the aim is to save tokens.Claude CodeClaude Code
D19Use the bright-clip wording for pipe_staple; at the AUC ceiling, compare BA at tuned thresholds.Claude CodeFadel M. Megahed
D20Match the test sizes of the prior CLIP study, not its few-shot learning sizes.Fadel M. MegahedFadel M. Megahed
D21Delete pan test image 21.JPG, which the prior test folder does not have.Claude CodeFadel M. Megahed
D22Add the real textile images as a transfer test.Claude CodeFadel M. Megahed
D23Run the one-time final test for the frozen configurations.Claude CodeFadel M. Megahed
D24Run CLIP on the same partition, a zero-shot JEV ablation and a calibration check.Fadel M. MegahedFadel M. Megahed
D25Give the zero-shot ablation its own validation threshold, with the same rule.Claude CodeClaude Code
D26Raise the paid-call cap to 7,000 if needed.Fadel M. MegahedFadel M. Megahed
D27Run CLIP in a separate, pinned conda environment.Claude CodeClaude Code
D28Replicate CLIP with the learning-set size that the CLIP paper reports for each experiment.Fadel M. MegahedFadel M. Megahed
D29Compare Platt scaling with isotonic regression.Fadel M. MegahedFadel M. Megahed
D30Drop the real-textile transfer example.Fadel M. MegahedFadel M. Megahed
D31Exclude copies of test images from the CLIP learning pool.Claude CodeClaude Code
D32Wait with the repository, because the scope and name can change with Clef-Flash.Fadel M. MegahedFadel M. Megahed
D33Back-fill the decisions of this session into the record.Claude CodeFadel M. Megahed
D34Run Clef-Flash locally with the same protocol.Claude CodeFadel M. Megahed
D35Delete only the extrusion pool frames that copy test frames.Claude CodeFadel M. Megahed
D36Send images to Clef-Flash as an ordered list with a text legend, because its SystemOne server ignores TypeSafe assets.Claude CodeClaude Code
D37Submit the MSEC 2027 title and abstract in the rewrite of the owner.Fadel M. MegahedFadel M. Megahed
D38Add Ying-Ju (Tessa) Chen as a co-author.Fadel M. MegahedFadel M. Megahed
D39Name the R package decisionqc and the research repository decision-models-for-industrial-image-qc.Claude CodeFadel M. Megahed
D40Organize the repository before the first push.Fadel M. MegahedFadel M. Megahed
D41Make the research repository public, so the record website works on the free plan.Claude CodeFadel M. Megahed
D42License the repository under MIT.Claude CodeFadel M. Megahed
D43Cite the CLIP study as the 2026 Journal of Quality Technology article, which is open access.Fadel M. MegahedFadel M. Megahed
D44Set the JEV budget to about USD 5, the free credit for a new user.Fadel M. MegahedFadel M. Megahed
D45Use APA 7 style for citations, with the published metadata of each work.Fadel M. MegahedFadel M. Megahed
D46Use short, direct section headers in all documents.Fadel M. MegahedFadel M. Megahed
D47Make one Quarto document that reproduces all paper figures and tables; it reads saved predictions by default and has switches to re-run the paid and GPU steps.Claude CodeFadel M. Megahed
D48Produce tables T1 to T7, figures F1 to F7 and the appendix table of all trials.Claude CodeFadel M. Megahed
D49Use theme_bw with Dark2, annotations and a polished font; save each figure as PNG, PDF and SVG in one-column and two-column sizes.Claude CodeFadel M. Megahed
D50Use Outfit for figure titles and Cabin for all other figure text.Fadel M. MegahedFadel M. Megahed
D51Name groups in their chart color in the subtitle (ggtext) in place of a legend.Fadel M. MegahedFadel M. Megahed
D52Round reported numbers half up (0.725 to 0.73), as in the submitted abstract, because floating point makes round() and sprintf() give 0.72.Claude CodeClaude Code
D53Show all tables of the replication document as interactive DT tables; keep the CSV and LaTeX files for the paper.Fadel M. MegahedFadel M. Megahed
D54In figures F3 and F4, give each method its own row or column, with larger points and no vertical nudging.Fadel M. MegahedFadel M. Megahed
D55Publish figure F1 with its image sources on the figure; its AutoVI (pipe staple) tiles stay under CC BY-NC-SA 4.0.Fadel M. MegahedFadel M. Megahed
D56Keep beyond_clip_analysis.html in the repository and show it on the record website as an extra page (replication-materials 1.1.0).Fadel M. MegahedFadel M. Megahed
D57Put "(Few-Shot)" in parentheses in the title: Beyond CLIP: Calibrated (Few-Shot) Defect Detection With Structured Decision Models.Fadel M. MegahedFadel M. Megahed
D58Also report CLIP with the learning sets of the CLIP paper at a threshold tuned like ours, next to the rule of that paper.Fadel M. MegahedFadel M. Megahed
D59Tune that CLIP threshold by leave-one-out on the learning set (identical frames left out together), because the learning sets hold most of our validation images (all 16 for pans).Claude CodeClaude Code
D60In the interactive T4, mark each JEV and Clef-Flash result against the best CLIP result on the same dataset: up, level or down at a margin of 0.02 balanced accuracy.Fadel M. MegahedClaude Code
D61Record the R packages in an renv lockfile (renv.lock) without activating renv in the project, because the project folder is in Dropbox.Fadel M. MegahedClaude Code
D62The benchmark is a CLIP baseline with 50 learning images per class (pans: 10), the low end of the abstract of the CLIP paper, with the defect images split evenly over the defect types; it replaces the best CLIP result as the reference of the glyphs, and the other columns stay.Fadel M. MegahedFadel M. Megahed
D63Add a dot-chart column to the interactive T4: one row per method, balanced accuracy on a common axis, dashed line at the CLIP baseline (inline SVG, no script).Fadel M. MegahedFadel M. Megahed
Results in v0.0.1
IDResultValue
H1JEV with 2 to 4 references: test balanced accuracy on the five datasets0.73 to 1.00 (pans 1.00, extrusion 0.73, textiles 0.86, pipe staple 0.98, microstructure 0.92)
H2JEV against CLIP with the same references: equal or better on all five datasetsmicrostructure equal (0.92 and 0.92); JEV better on the other four
H3JEV against CLIP with the learning sets of the CLIP paper (20 to 700 labeled images): JEV better on three datasets, CLIP slightly better on twopipe staple 0.98 vs 0.57, pans 1.00 vs 0.91, microstructure 0.92 vs 0.85; textiles 0.86 vs 0.975, extrusion 0.73 vs 0.82
H4Calibration of the JEV probabilities on the test setsraw ECE 0.11 to 0.23; isotonic regression 0.01 to 0.04 on four of the five datasets
H5Clef-Flash with the frozen JEV configurations: test balanced accuracy0.68 to 0.99
H6Benchmark of the analysis document: the best CLIP result on the test set for each datasetpans 0.94, extrusion 0.83, textiles 0.98, pipe staple 0.61, microstructure 0.96
H7JEV with references against the CLIP baseline (50 learning images per class, pans 10; rule of the CLIP paper): JEV higher on four datasets, lower on textilespans 1.00 vs 0.91, extrusion 0.73 vs 0.70, textiles 0.86 vs 0.98, pipe staple 0.98 vs 0.57, microstructure 0.92 vs 0.84
H8Validation size (JEV with references): test balanced accuracy settles at about 10 to 20 validation images per class; the calibration error keeps falling up to 50mean test balanced accuracy at 20 and at 50 per class: extrusion 0.726 and 0.725, textiles 0.848 and 0.855, pipe staple 0.991 and 0.980, microstructure 0.920 and 0.920 (pans have 8 per class only)