List techniques for a 1:1000 imbalanced problem and their side effects.
Answer
Model answer, written in a candidate's voice
In short
- Measure with PR-AUC and recall at fixed FPR, not accuracy; note prevalence sensitivity and noise with few positives.
- Use class weights or focal loss to emphasise rare positives; side effect is biased probabilities and sensitivity to hard or noisy examples.
- Under-sample negatives or use SMOTE only inside training folds; side effects are lost information, unrealistic synthetic points, leakage, and distorted priors.
- Tune the threshold to business cost or an FPR budget; side effect is a precision-recall trade-off and threshold drift.
- Collect more positives via targeted labelling or active learning; side effects are cost, label noise, and selection bias.
- Recalibrate or apply a prior correction after resampling; side effect is dependence on representative validation data and instability at 1:1000.
In full
First I would not trust accuracy at 1:1000; I would report PR-AUC and recall at a fixed FPR on untouched data, while remembering PR-AUC is prevalence-sensitive and noisy when positives are rare. For training I would use class weights or focal loss to push the model towards rare positives, accepting that probabilities become biased and hard or noisy examples can dominate. I would under-sample negatives or use SMOTE only inside training folds, because under-sampling discards information and SMOTE can create unrealistic points and leakage, and either way the prior is distorted. I would tune the decision threshold to the business cost or an FPR budget rather than 0.5, and I would try to collect more positives through targeted labelling or active learning, accepting cost, label noise and selection bias. After any resampling I would recalibrate on representative validation data or apply a prior correction, since raw scores no longer mean the true probability and calibration can be unstable with so few positives.
What a strong answer covers
- Better metrics first (PR-AUC, recall at fixed FPR).
- Class weights or focal loss; under-sampling negatives (with correction); SMOTE caveats.
- Threshold tuning; collect more positives (labelling, active learning).
- Resampling distorts probabilities, so recalibrate or apply a prior correction.
Common mistakes
- oversampling before the train/val split (leakage)
- judging by accuracy.