02 · Data
Four panels, one question.
MASTER, CANCER, CFTR and PAH. Each point is a variant; unwinding the helix lays them out by predicted probability, one lane per panel.
02 / 03
Health AI · Genomics · Team project
Classifying genetic variants as pathogenic or benign across four gene panels, and keeping the decision threshold meaningful when the test set shifts.
01
A variant is a single change in a gene. Most are harmless; a few cause disease. The task: give every variant one probability of being pathogenic, across four gene panels with very different class balances, scored by a jury on a hidden test set.
A probability is not a decision. Somewhere a threshold turns it into one, and that threshold quietly encodes the data it was tuned on.
02 · Data
MASTER, CANCER, CFTR and PAH. Each point is a variant; unwinding the helix lays them out by predicted probability, one lane per panel.
02.1 · Model
CatBoost beat XGBoost, ExtraTrees and a blended ensemble under grouped, nested cross-validation, so the same variant never sits in both a training and a validation fold.
02.2 · Threshold
Each panel's threshold maximises (F1 + MCC) / 2 under stressed class ratios. F1 alone can look great while MCC sits near zero, flagging almost everything.
02.3 · Shift
The test set was far more benign than training. The model responded correctly with lower probabilities, and the fixed thresholds became unreachable. Three of four panels flagged nothing.
02.4 · Fix
A threshold's value depends on the distribution; the positive rate travels better. With the model frozen, each panel's optimal rate from out-of-fold predictions is applied as a quantile of the test probabilities. No test labels involved.
03 · Results — national final
04
A fixed threshold is a statement about the training distribution, not about the model.
Rate transfer assumes test prevalence resembles out-of-fold prevalence: a better guess, not a guarantee.
Report MCC next to F1. When classes are this imbalanced, F1 alone hides failure.