How far to trust the score
All figures below are computed on the holdout set, which the model did not see during training or calibration. The model gives a signal for manual review and must not ban automatically.
Production model: data/model.json
The cost of error at each threshold. The higher the threshold, the fewer honest players fall under suspicion, but fewer cheaters are caught too.
| Threshold | Flags honest (FPR) | Catches cheaters (recall) | False on holdout |
|---|---|---|---|
| 0.30 | 7.1% | 59.9% | ~184 of 2584 |
| 0.40 | 5.6% | 54.0% | ~145 of 2584 |
| 0.50 (current) | 5.2% | 52.5% | ~134 of 2584 |
| 0.60 | 3.0% | 41.8% | ~77 of 2584 |
| 0.70 | 2.4% | 37.7% | ~62 of 2584 |
| 0.80 | 1.0% | 28.3% | ~26 of 2584 |
| 0.90 | 0.3% | 20.3% | ~8 of 2584 |
| 0.95 | 0.0% | 11.0% | ~1 of 2584 |
Why players with little data are not scored
At threshold 0.8 the model falsely flags 7.3% of honest players with little data versus 0.9% for the rest (at 0.5: 14.6% versus 5.0%). Such players make up 3.8% of the holdout.
Source: data/scan_reference.json (ml/build_scan_reference.py).
Independent audit: validation_experiments/FINAL_RESULTS
A separate methodology check: leakage, model comparison, ablation, calibration, bootstrap. The audit tested the model without Part 2 stacking, so ROC-AUC here is lower than for the production model. This is expected and not a contradiction (experiment_info.txt).
Model comparison
| Model | ROC-AUC | PR-AUC | Brier | Precision | Recall |
|---|---|---|---|---|---|
| Logistic regression | 0.808 | 0.612 | 0.171 | 0.501 | 0.622 |
| Random Forest | 0.847 | 0.682 | 0.125 | 0.674 | 0.527 |
| XGBoost (selected) | 0.858 | 0.706 | 0.137 | 0.594 | 0.650 |
| CatBoost | 0.854 | 0.699 | 0.138 | 0.619 | 0.585 |
Calibration
ECE shows how well a “70%” from the model really means 70%. Calibration cut the error more than tenfold, so percentages on these screens can be read as probabilities.
What happens if a feature group is removed
| Configuration | Features | ROC-AUC | Change |
|---|---|---|---|
| all features | 26 | 0.858 | |
| without rating | 22 | 0.839 | -0.020 |
| rating only | 4 | 0.716 | -0.143 |
| without timings | 23 | 0.851 | -0.007 |
| without verdicts | 20 | 0.820 | -0.038 |
| without language | 23 | 0.855 | -0.004 |
| without activity | 20 | 0.846 | -0.012 |
| without difficulty/time | 23 | 0.856 | -0.002 |
Thresholds in the audit
| Threshold | Precision | Recall | F1 | Flagged |
|---|---|---|---|---|
| 0.30 | 0.357 | 0.895 | 0.511 | 1687 (51.8%) |
| 0.40 | 0.440 | 0.797 | 0.567 | 1220 (37.4%) |
| 0.50 | 0.545 | 0.715 | 0.619 | 884 (27.1%) |
| 0.60 | 0.629 | 0.585 | 0.606 | 626 (19.2%) |
| 0.70 | 0.742 | 0.496 | 0.594 | 450 (13.8%) |
| 0.80 | 0.854 | 0.392 | 0.537 | 309 (9.5%) |
Bootstrap: 95% confidence intervals
ROC-AUC = 0.857502
95% CI = [0.840042, 0.872591]
AP = 0.705927
95% CI = [0.675581, 0.734921]
Brier = 0.104838
95% CI = [0.097761, 0.111455]SHAP
Limitations
- Codeforces API does not return other people's source code: the model sees only metadata (verdict, time, language).
- Among random players there are far fewer cheaters than the 20.7% in the training set, so the false share among scanner flags is higher than on holdout.
- The cheater list is static while the honest sample grows with new data: revisit the threshold when the data changes noticeably.
- Detailed discussion of limitations: project paper, section 10.


