Application note · Semiconductor manufacturing · Time-ordered validation
Chosen on earlier wafers, no screening rule clearly beat random flagging later.
A semiconductor wafer is measured many times on its way through a fab, but whether its chips work is known only at final test. We asked Vicena which measurements predict a failing wafer, and how many failures a line could catch early without holding too many good ones, using SECOM, a public record of 1,567 wafers from one fab. It sorted the wafers by test date, chose its rule on the earlier ones, set thresholds, and replayed them unchanged on the latest 401, as a fab would use a screen.
The question
A fab wants to catch failing wafers before final test. Which in-line measurements predict a failure, and how many failures could be caught without stopping too many good wafers?
What Vicena did
It downloaded the public record, sorted 1,567 wafers by test date, compared seven models on the earliest 932, set thresholds on the next 234 and replayed them unchanged on the last 401.
What it found
The rule chosen in advance caught 1 of 24 later failures, no better than flagging wafers at random. One measurement, 104, still separated failures from passes on later wafers, and Vicena proposed testing it on a live line without holding wafers.
The session
From one question to a checked answer.
- 01
Ask in your own words
Name the public dataset and the decision you face. Vicena says it will test which measurements stay predictive on later wafers, using the original UCI files.

- 02
It plans a test forward in time
It sets out the study as tasks on the board and, because failures cluster on some days, judges on later days rather than a random split, with thresholds set apart from the final evaluation.

- 03
It works in notebooks beside the chat
The overview notebook opens next to the chat with the question and the passing and failing wafers per test day.

- 04
It keeps the conclusion and the open questions together
The overview holds the current conclusion and a table of each hypothesis with its test, result and verdict, including what a live line would still need to show.

- 05
The answer gives counts and says what was chosen afterwards
The reply opens with measurement 104's exploratory result and states that it was singled out after seeing the later wafers; the rule chosen in advance caught 1 of 24. A shadow-trial task stays paused on the board.

- 06
It says where the evidence stops
Each rule is listed with its target and the hold rate it delivered. Vicena notes that its intervals ignore the choice of 104 and recommends a shadow trial, not holds.

Results
The rule chosen in advance caught 1 of 24 later failures while holding 4.2% of good wafers, about what random flagging gives. One measurement, 104, is a lead worth testing on a live line.
On the three forward folds inside the fitting period, the single-measurement rule led with a partial ROC area of 0.592, against 0.573 for logistic regression on the top 40, and it chose measurement 60. With frozen cutoffs it caught 1 of the 24 later failures at the 1%, 2% and 5% targets, while holding 16, 20 and 35 of the 377 later good wafers (4.2%, 5.3% and 9.3%): the cutoffs held more good wafers than their targets because the later values had shifted. Random flagging that holds 16 of 377 good wafers is expected to catch 1.0 of 24 failures (our check), so the rule chosen in advance did no better than chance. Resampling test days gives 95% intervals of 0–11% for its catch rate at the 1% target, against 4.2% for random flagging, and 2.1–6.6% for its hold rate, so 24 failures cannot rule out a modest gain.
- 1 of 24
- later failures caught by the rule chosen in advance, holding 4.2% of good wafers; random flagging catches about one (our check)
- 7
- models compared on the earlier wafers
- 0.70
- ROC area of measurement 104 on later wafers, the only one of 15 still to separate failures from passes tested on the same day
- 22% → 3%
- failure rate from July to September 2008 (our check)



| Rule | Target share of good wafers held | Failures caught | Good wafers held | Failures expected from random flagging |
|---|---|---|---|---|
| Measurement 60, chosen on earlier wafers | 1% | 1/24 | 16/377 (4.2%) | 1.0 |
| Measurement 60, chosen on earlier wafers | 5% | 1/24 | 35/377 (9.3%) | 2.2 |
| Missingness model, the most caught at 5% held or fewer | 10% | 2/24 | 16/377 (4.2%) | 1.0 |
| Measurement 104, chosen after the replay | 1% | 1/24 | 0/377 (0.0%) | 0.0 |
| Measurement 104, chosen after the replay | 2% | 6/24 | 15/377 (4.0%) | 1.0 |
| Measurement 104, chosen after the replay | 5% | 11/24 | 51/377 (13.5%) | 3.2 |
Only the rows for measurement 60 were fixed before the later wafers were scored. Random flagging holds the same share of failures as of good wafers, so it is expected to catch 24 × (good wafers held ÷ 377); that column, and the choice of the missingness row from the run's table, are our checks.
In plain words
A wafer screen is judged by two counts: the failing wafers it catches and the good wafers it holds. Random flagging is the baseline: hold 4% of wafers at random and you catch about 4% of failures. The rule Vicena chose on earlier wafers did no better on later ones, so these measurements, used this way, showed no benefit in this test. With only 24 later failures, the test could not rule out a modest gain.
The line changed under the screen. The share of failing wafers fell from 22% in July to 3% in September (our check), and the measurement that best predicted failure in summer stopped doing so in autumn. Studies that report high scores on this dataset often test on wafers mixed from all periods, and some choose measurements or rebalance the data before splitting it. On this data, mixing periods lets production order alone score well, and choosing measurements first makes shuffled labels look predictive (our demonstration); we did not rerun those studies.
One measurement, 104, kept its link to failure among wafers tested on the same day, although within single months the link appears only in October. Its result at the 2% target, 6 of 24 failures at 4% of good wafers held, was found after looking at the later wafers and changes sharply with the threshold, so it is a lead, not a rate. Vicena recommended testing it on a live line in a shadow trial that logs flags without stopping wafers. The data are anonymised, so what 104 measures is unknown.
For this kind of work
What you can do with Vicena.
Your own line data
Upload process and test records from your line and ask which measurements predict yield loss, tested on later lots with thresholds set as you would set them.
Any model built from past records
Check whether a predictive model, a virtual metrology model or a sensor alarm holds on later data, with counts set against random flagging.
A trial plan
Turn a candidate signal into a shadow trial: a frozen cutoff, what to log on new lots and the counts that would decide whether to act on it.
A report or a deck
Doc Editor and Presentation Editor turn the same notebooks into a Word report or slides for your group.
Method details, for specialists
Vicena analysed SECOM, a public record of 1,567 wafers from one semiconductor fab, each with 590 anonymised in-line measurements and a pass or fail result at final test. It sorted the wafers by test time and split them at day boundaries: 932 to fit and compare models, 234 to set thresholds on good wafers and 401 to evaluate. On the earlier wafers it compared seven models and chose a rule on one measurement, 60. With its thresholds frozen, that rule caught 1 of the 24 later failures while holding 16 of 377 good wafers (4.2%); random flagging at that rate catches about one. No rule chosen on the earlier wafers did clearly better than random flagging at any setting, although 24 failures cannot rule out a modest gain. Of 15 measurements shortlisted on the earlier wafers, only measurement 104 still separated failures from passes tested on the same day (p = 0.0045 after Holm's adjustment for the 15 tests). Its ROC area on the later wafers, the chance that a failing wafer scores above a passing one (0.5 is guessing), was 0.70. Its 2% operating point was picked after seeing those wafers and changes sharply with the target and the calibration window (1 of 24 at a 1% target), so 104 is a lead to validate. The failure rate fell from 22% in July to 3% in September 2008. Two effects measured on this data can account for higher published scores: under random cross-validation, production order alone scores 0.68; choosing features before the split makes shuffled labels score 0.70, and oversampling before it gives 1.00. We did not rerun the published studies. The comparison with random flagging, the drift, the sensitivity of 104 and the checks of validation protocols are from our evaluation, not the run.
The prompt Vicena was given, verbatim:
We run a semiconductor line and want to catch failing wafers before final test. The public SECOM dataset (UCI Machine Learning Repository, id 179) is a close match: 590 in-line process measurements for 1,567 wafers from one fab, each labelled pass or fail at final test, with many missing values. Which measurements best predict a failed wafer, and how many failures could we really catch early without stopping too many good wafers? Show me the evidence.
Introduction
A wafer passes through hundreds of process steps and is measured at many of them, but whether its chips work is known only at final test, days or weeks later. A screen that flagged likely failures from in-line measurements would let engineers hold, rework or investigate those wafers early. Its value rests on two counts: the failures it catches and the good wafers it holds, because every hold costs line capacity and review time.
SECOM, released by McCann and Johnston in 2008 [1] and posed as a benchmark for selecting the measurements that matter [2], is the standard public record for this question. Some published studies report much higher scores on it, often under random cross-validation, which mixes wafers from all periods. A fab would instead build a screen on past wafers and apply it to future ones, so the test that matters runs forward in time. This note reports what that test shows.
Samples and data
The data are dataset 179 of the UCI Machine Learning Repository, SECOM, DOI 10.24432/C54305, under CC BY 4.0 [1]. Vicena downloaded the official archive and recorded the SHA-256 fingerprints of its three files in Data/SOURCES.md; they match our independent download. secom.data holds 590 measurements for each of 1,567 wafers, secom_labels.data holds each wafer's pass or fail result and the time of its test, and secom.names describes the set. 104 wafers failed (6.6%).
The fab removed all names and units, so no measurement can be tied to a tool, a process step or a physical quantity. 4.54% of values are missing, every wafer misses at least one, and 116 measurements are constant. secom.data has no column names. Measurements are numbered from 1 by column position, as the run and most papers do; measurement 60 is column 59 counting from 0, the number results/selection.json records. The wafers were tested between 19 July and 17 October 2008, and the failure rate changed over that time: 22% of wafers tested in July failed, 9% in August, 3% in September and 6% in October; July and October are partial months (our check).
Measurement
The source does not state the product, the process steps, the tools, the quantities measured or their units, nor when in the process each measurement was taken. The only time recorded is that of the functionality test, and 33 wafers share a test time with an earlier one. Lot and tool identifiers are not given, so wafers can be kept together only by test day.
Analysis
Vicena sorted the wafers by test time and placed the split points at the start of a test day, near 60% and 75% of the record. The first 932 wafers (19 July to 19 September, 76 failures) were used to fit and compare models, the next 234 (20 to 28 September, 4 failures) to set thresholds, and the last 401 (29 September to 17 October, 24 failures) only to evaluate. The test time was never a predictor.
Every learned step was fitted on training wafers only, and nothing was resampled. The value models keep measurements that vary and are observed on at least 70% of training wafers, express each as its percentile among the training values and as its absolute distance from the training median on that percentile scale, and set missing values to zero in both. Measurements are ranked by how well either form separates failures from passes on training wafers. The seven candidate models are: the single best-ranked measurement; L2 logistic regression (C = 0.3) on the top 5, 15 or 40 ranked measurements or on all eligible ones; histogram gradient-boosted trees on the top 40; and logistic regression on which values are missing.
A model's ROC area is the chance that it scores a failing wafer above a passing one: 0.5 is guessing and 1 is perfect. On three forward folds inside the fitting period, each fitted on the wafers before a block and scored on that block, Vicena compared the models by their partial ROC area: how well they rank failures among the cutoffs that hold at most 10% of good wafers, rescaled so that 0.5 is random ranking and 1 perfect. It wrote the choice to results/selection.json before scoring the later wafers. It then refitted every model on the 932 fitting wafers, set cutoffs on the 230 good calibration wafers so that at most 1%, 2%, 5%, 10% or 20% of them would be held, and applied those cutoffs unchanged to the last 401 wafers, a replay of how a fab would have used the screen. Its 95% intervals resample whole test days 4,000 times.
After that replay, Vicena took the 15 measurements ranked highest on the fitting wafers, kept the direction each had there, and ran a within-day test: whether failures still scored higher than passes tested on the same day, so that a day with many failures cannot create the association. The test shuffles labels within each evaluation day (9,999 permutations, one-sided) and adjusts the 15 p-values together by Holm's method, which keeps the chance of any false positive among the 15 at the stated level. It reuses the evaluation wafers, and this second stage was designed after the replay; Holm's method adjusts for the 15 tests, not for that choice. The run labels its results exploratory.
Discussion
The record is not stationary. The failure rate falls from 22% in July to 9% in August, 3% in September and 6% in October, and the calibration window, 20 to 28 September, fell in the trough with 4 failures in 234 wafers (1.7%), against 8.2% in the fitting period and 6.0% in the evaluation period (our check). The measurements shift too: cutoffs set on calibration wafers held 4.2% of later good wafers for a 1% target and 9.3% for a 5% target. The record does not say why the failure rate fell: process changes, product mix and changed test limits are all possible. A cutoff for a 1% target set on 230 good calibration wafers also rests on the two highest-scoring of them, and the calibration window, with 1.7% failures, inverts measurement 104 (ROC area 0.43), so cutoffs from that window are fragile. A screen built on one period therefore meets different conditions in the next. Measurement 60, the most consistent predictor within the record in our reference analysis, lost its signal later, with an ROC area falling from 0.73 to 0.48. The run saw the overshooting cutoffs and the converging distributions of 60 and answered with the within-day test, but it did not measure the change in failure rate.
Measurement 104 is a lead to validate, not a rate to plan around. Its association with failure on later wafers survives a comparison of wafers tested on the same day, adjusted for the 15 measurements tried but not for designing that test after the replay on the same wafers. Our reference analysis, written before the run, also finds it in both parts of its 70/30 split (ROC area 0.65 on the first 70% of wafers and 0.72 on the rest). Within single months, though, it separates failures only in October: its ROC area is 0.51, 0.58, 0.49 and 0.75 from July to October, so its pooled fitting-period value of 0.627 mostly reflects drift, and its later signal comes from October, which holds 359 of the 401 evaluation wafers. Its values drift with production order (Spearman ρ = −0.52), and in the calibration window it pointed the wrong way. Its operating point is fragile (our checks): the 2% target was chosen after seeing the results, a 1% target catches 1 of 24 and a 5% target 11 of 24 at 51 held (13.5%), and cutoffs set on older good wafers catch 1 to 4 of 24: 1 at none held when set on all good fitting-period wafers, 4 at 9 held when set on the last 600.
The shortlist held only the 15 measurements strongest on the fitting wafers. Measurements our reference found to hold up in both parts of its split were never tested: 130, 131 and 511, with ROC areas of 0.61–0.67 on the last 30% of wafers in the reference's 70/30 split, and 349, at 0.59 in both parts. Three of the 15, 248, 520 and 386, are one signal with identical missing values (our check).
Some published SECOM results are much higher. Two effects measured on this data can account for higher published scores (Table 2, our checks): under random cross-validation, production order alone scores 0.68; choosing features before the split makes shuffled labels score 0.70, and oversampling before it gives 1.00. We did not rerun the published studies. Random cross-validation lets a model learn which weeks were bad from neighbouring wafers, so a random forest's 0.75 under random five-fold cross-validation is only 0.07 above what production order alone scores (0.68). Choosing 40 features on all wafers before splitting turns shuffled labels into an ROC area of 0.70, and duplicating failures to balance the classes before splitting gives a random forest 1.00, because copies of each failure land in both training and test folds. Fitted on the first 70% of wafers and tested on the rest, the reference's own models score 0.52–0.67, overlapping the run's 0.44–0.57 on the last 401. Park et al. [3] split before all preprocessing and resampling, but at random, 70/30, so the time effect remains in their test; their best result, 0.73, is a geometric mean of sensitivity and specificity, not an ROC area. They point out an earlier study that oversampled the whole dataset before splitting. In our search we found no published SECOM study that tests forward in time. The run searched once and did not compare its results with published ones.
Vicena recommended a shadow trial rather than holds: find the measurement on the target line that corresponds to 104, or a local candidate, and confirm that it is known before a useful decision point; then freeze a locally calibrated cutoff and log flags on new lots without stopping wafers, keeping final test, and measure the false-hold rate and the lead time. SECOM's measurements are anonymised and only the test time is recorded, so the data cannot say what 104 measures, at which step or how early, and no physical cause can be named. Whether any catch rate a validated cutoff reaches would pay depends on the cost of a held good wafer against an escaped failure, which the question did not give.
Verification
Vicena checked the files' shape and the pairing of measurements with labels, fitted every learned step on training wafers only, wrote its model choice to a file before scoring the later wafers, reported the hold rates its cutoffs delivered rather than their targets, resampled whole test days for its intervals and reran the notebooks from a fresh kernel.
Before reading the run, the Vicena team wrote an independent reference analysis with random and forward-in-time validation, a production-order-only control, checks of which measurements recur across resamples and a demonstration of leakage. There is no confirmed answer, so the run was judged against that analysis, and our evaluation recomputed the splits, the ROC areas of 60 and 104, the frozen counts and the sensitivity of 104 from the raw files. The run matches the reference on the central result, that rules chosen on earlier wafers do not screen later ones, and on its two key measurements: 60 leads on the fitting wafers and fades later, and 104 is associated with failure on the later wafers. Its accounting of frozen thresholds, with a separate calibration period, day-resampled intervals and a within-day test, is stronger than the reference's. It falls short on the failure-rate drift, the contrast between random and forward validation, the literature, the sensitivity of 104's operating point and 104's behaviour within single months, which come from our evaluation. Its final answer led with 104's 6 of 24, chosen after seeing the later wafers, rather than the 1 of 24 fixed in advance; this note leads with the latter.
Not verified: what measurement 104 represents and when it is taken, whether its association holds on another line or period, and the forward performance of any rule beyond these 24 later failures, which leave wide intervals.
Conclusions
- No rule chosen on the first 932 wafers did clearly better than random flagging on the last 401 at any setting. The rule chosen in advance, on measurement 60, caught 1 of 24 failures while holding 16 of 377 good wafers (4.2%), where random flagging catches about one (our check). With 24 failures the test has little power: the 95% interval for that catch rate runs from 0% to 11%, against 4.2% at random, so a modest gain cannot be ruled out.
- The process drifted: the failure rate was 22% in July, 9% in August, 3% in September and 6% in October 2008, the calibration window had 1.7%, and the ROC area of measurement 60 fell from 0.73 to 0.48 (the failure rates are ours; the record does not say why they fell).
- Measurement 104 is a lead to validate: an ROC area of 0.70 on later wafers (95% interval 0.56–0.79, our day bootstrap), and the only one of 15 shortlisted measurements to pass the within-day test (p = 0.0045 after Holm's adjustment for the 15 tests). Within single months it separates failures only in October. Its 6 of 24 caught at 15 of 377 held was chosen after seeing the results; a 1% target gives 1 of 24 and older calibration wafers give 1 to 4 (our checks).
- Two effects measured on this data can account for higher published SECOM scores: under random cross-validation, production order alone scores 0.68; shuffled labels score 0.70 when 40 features are chosen on all wafers first, and oversampling before the split scores 1.00 (our demonstration). We did not rerun the published studies.
- The measurements are anonymised, so no physical cause can be named. Vicena's next step is a shadow trial on the target line that logs flags without holding wafers.
Data and notebooks
- Overview.ipynb
- Screening performance.ipynb
- Measurement stability.ipynb
- screening.py
- results/selection.json
- results/historical folds.csv
- results/frozen thresholds.csv
- results/evaluation ranking.csv
- results/measurement stability.csv
- results/individual measurement replay.csv
- results/wafer scores.csv
- Data/SOURCES.md
- Data/secom.data
- Data/secom_labels.data
- Data/secom.names
Data source: McCann and Johnston, SECOM, UCI Machine Learning Repository, 2008, 10.24432/C54305, CC BY 4.0.
References
- M. McCann and A. Johnston, SECOM, UCI Machine Learning Repository, dataset 179, 2008, CC BY 4.0. https://doi.org/10.24432/C54305
- M. McCann, Y. Li, L. Maguire and A. Johnston, Causality Challenge: Benchmarking relevant signal components for effective monitoring and process control, Proceedings of Machine Learning Research, 2010, 6, 277–288. https://proceedings.mlr.press/v6/mccann10a.html
- H.-J. Park, Y.-S. Koo, H.-Y. Yang, Y.-S. Han and C.-S. Nam, Study on data preprocessing for machine learning based on semiconductor manufacturing processes, Sensors, 2024, 24, 5461. https://doi.org/10.3390/s24175461
Try it