Datasets:
note_id int64 | variance float64 | skewness float64 | kurtosis float64 | entropy float64 | label int64 |
|---|---|---|---|---|---|
0 | 3.6216 | 8.6661 | -2.8073 | -0.44699 | 0 |
1 | 4.5459 | 8.1674 | -2.4586 | -1.4621 | 0 |
2 | 3.866 | -2.6383 | 1.9242 | 0.10645 | 0 |
3 | 3.4566 | 9.5228 | -4.0112 | -3.5944 | 0 |
4 | 0.32924 | -4.4552 | 4.5718 | -0.9888 | 0 |
5 | 4.3684 | 9.6718 | -3.9606 | -3.1625 | 0 |
6 | 3.5912 | 3.0129 | 0.72888 | 0.56421 | 0 |
7 | 2.0922 | -6.81 | 8.4636 | -0.60216 | 0 |
8 | 3.2032 | 5.7588 | -0.75345 | -0.61251 | 0 |
9 | 1.5356 | 9.1772 | -2.2718 | -0.73535 | 0 |
10 | 1.2247 | 8.7779 | -2.2135 | -0.80647 | 0 |
11 | 3.9899 | -2.7066 | 2.3946 | 0.86291 | 0 |
12 | 1.8993 | 7.6625 | 0.15394 | -3.1108 | 0 |
13 | -1.5768 | 10.843 | 2.5462 | -2.9362 | 0 |
14 | 3.404 | 8.7261 | -2.9915 | -0.57242 | 0 |
15 | 4.6765 | -3.3895 | 3.4896 | 1.4771 | 0 |
16 | 2.6719 | 3.0646 | 0.37158 | 0.58619 | 0 |
17 | 0.80355 | 2.8473 | 4.3439 | 0.6017 | 0 |
18 | 1.4479 | -4.8794 | 8.3428 | -2.1086 | 0 |
19 | 5.2423 | 11.0272 | -4.353 | -4.1013 | 0 |
20 | 5.7867 | 7.8902 | -2.6196 | -0.48708 | 0 |
21 | 0.3292 | -4.4552 | 4.5718 | -0.9888 | 0 |
22 | 3.9362 | 10.1622 | -3.8235 | -4.0172 | 0 |
23 | 0.93584 | 8.8855 | -1.6831 | -1.6599 | 0 |
24 | 4.4338 | 9.887 | -4.6795 | -3.7483 | 0 |
25 | 0.7057 | -5.4981 | 8.3368 | -2.8715 | 0 |
26 | 1.1432 | -3.7413 | 5.5777 | -0.63578 | 0 |
27 | -0.38214 | 8.3909 | 2.1624 | -3.7405 | 0 |
28 | 6.5633 | 9.8187 | -4.4113 | -3.2258 | 0 |
29 | 4.8906 | -3.3584 | 3.4202 | 1.0905 | 0 |
30 | -0.24811 | -0.17797 | 4.9068 | 0.15429 | 0 |
31 | 1.4884 | 3.6274 | 3.308 | 0.48921 | 0 |
32 | 4.2969 | 7.617 | -2.3874 | -0.96164 | 0 |
33 | -0.96511 | 9.4111 | 1.7305 | -4.8629 | 0 |
34 | -1.6162 | 0.80908 | 8.1628 | 0.60817 | 0 |
35 | 2.4391 | 6.4417 | -0.80743 | -0.69139 | 0 |
36 | 2.6881 | 6.0195 | -0.46641 | -0.69268 | 0 |
37 | 3.6289 | 0.81322 | 1.6277 | 0.77627 | 0 |
38 | 4.5679 | 3.1929 | -2.1055 | 0.29653 | 0 |
39 | 3.4805 | 9.7008 | -3.7541 | -3.4379 | 0 |
40 | 4.1711 | 8.722 | -3.0224 | -0.59699 | 0 |
41 | -0.2062 | 9.2207 | -3.7044 | -6.8103 | 0 |
42 | -0.006892 | 9.2931 | -0.41243 | -1.9638 | 0 |
43 | 0.96441 | 5.8395 | 2.3235 | 0.066365 | 0 |
44 | 2.8561 | 6.9176 | -0.79372 | 0.48403 | 0 |
45 | -0.7869 | 9.5663 | -3.7867 | -7.5034 | 0 |
46 | 2.0843 | 6.6258 | 0.48382 | -2.2134 | 0 |
47 | -0.7869 | 9.5663 | -3.7867 | -7.5034 | 0 |
48 | 3.9102 | 6.065 | -2.4534 | -0.68234 | 0 |
49 | 1.6349 | 3.286 | 2.8753 | 0.087054 | 0 |
50 | 4.3239 | -4.8835 | 3.4356 | -0.5776 | 0 |
51 | 5.262 | 3.9834 | -1.5572 | 1.0103 | 0 |
52 | 3.1452 | 5.825 | -0.51439 | -1.4944 | 0 |
53 | 2.549 | 6.1499 | -1.1605 | -1.2371 | 0 |
54 | 4.9264 | 5.496 | -2.4774 | -0.50648 | 0 |
55 | 4.8265 | 0.80287 | 1.6371 | 1.1875 | 0 |
56 | 2.5635 | 6.7769 | -0.61979 | 0.38576 | 0 |
57 | 5.807 | 5.0097 | -2.2384 | 0.43878 | 0 |
58 | 3.1377 | -4.1096 | 4.5701 | 0.98963 | 0 |
59 | -0.78289 | 11.3603 | -0.37644 | -7.0495 | 0 |
60 | 2.888 | 0.44696 | 4.5907 | -0.24398 | 0 |
61 | 0.49665 | 5.527 | 1.7785 | -0.47156 | 0 |
62 | 4.2586 | 11.2962 | -4.0943 | -4.3457 | 0 |
63 | 1.7939 | -1.1174 | 1.5454 | -0.26079 | 0 |
64 | 5.4021 | 3.1039 | -1.1536 | 1.5651 | 0 |
65 | 2.5367 | 2.599 | 2.0938 | 0.20085 | 0 |
66 | 4.6054 | -4.0765 | 2.7587 | 0.31981 | 0 |
67 | 2.4235 | 9.5332 | -3.0789 | -2.7746 | 0 |
68 | 1.0009 | 7.7846 | -0.28219 | -2.6608 | 0 |
69 | 0.12326 | 8.9848 | -0.9351 | -2.4332 | 0 |
70 | 3.9529 | -2.3548 | 2.3792 | 0.48274 | 0 |
71 | 4.1373 | 0.49248 | 1.093 | 1.8276 | 0 |
72 | 4.7181 | 10.0153 | -3.9486 | -3.8582 | 0 |
73 | 4.1654 | -3.4495 | 3.643 | 1.0879 | 0 |
74 | 4.4069 | 10.9072 | -4.5775 | -4.4271 | 0 |
75 | 2.3066 | 3.5364 | 0.57551 | 0.41938 | 0 |
76 | 3.7935 | 7.9853 | -2.5477 | -1.872 | 0 |
77 | 0.049175 | 6.1437 | 1.7828 | -0.72113 | 0 |
78 | 0.24835 | 7.6439 | 0.9885 | -0.87371 | 0 |
79 | 1.1317 | 3.9647 | 3.3979 | 0.84351 | 0 |
80 | 2.8033 | 9.0862 | -3.3668 | -1.0224 | 0 |
81 | 4.4682 | 2.2907 | 0.95766 | 0.83058 | 0 |
82 | 5.0185 | 8.5978 | -2.9375 | -1.281 | 0 |
83 | 1.8664 | 7.7763 | -0.23849 | -2.9634 | 0 |
84 | 3.245 | 6.63 | -0.63435 | 0.86937 | 0 |
85 | 4.0296 | 2.6756 | 0.80685 | 0.71679 | 0 |
86 | -1.1313 | 1.9037 | 7.5339 | 1.022 | 0 |
87 | 0.87603 | 6.8141 | 0.84198 | -0.17156 | 0 |
88 | 4.1197 | -2.7956 | 2.0707 | 0.67412 | 0 |
89 | 3.8027 | 0.81529 | 2.1041 | 1.0245 | 0 |
90 | 1.4806 | 7.6377 | -2.7876 | -1.0341 | 0 |
91 | 4.0632 | 3.584 | 0.72545 | 0.39481 | 0 |
92 | 4.3064 | 8.2068 | -2.7824 | -1.4336 | 0 |
93 | 2.4486 | -6.3175 | 7.9632 | 0.20602 | 0 |
94 | 3.2718 | 1.7837 | 2.1161 | 0.61334 | 0 |
95 | -0.64472 | -4.6062 | 8.347 | -2.7099 | 0 |
96 | 2.9543 | 1.076 | 0.64577 | 0.89394 | 0 |
97 | 2.1616 | -6.8804 | 8.1517 | -0.081048 | 0 |
98 | 3.82 | 10.9279 | -4.0112 | -5.0284 | 0 |
99 | -2.7419 | 11.4038 | 2.5394 | -5.5793 | 0 |
Beyond 99%: open-set evaluation of counterfeit banknote detectors
Data and results for the preprint Beyond 99%: Open-Set Evaluation Reveals Silent Failures of Counterfeit
Banknote Detectors, and the Case for One-Class Screening by Thanatchon Chongmankhong
(read online ·
PDF).
The paper evaluates counterfeit detectors on counterfeit families they have never seen, at a fixed 1%
genuine-rejection budget. Under that protocol, tree ensembles that score above 99% on random splits catch
51–61% of unseen-family counterfeits, while a one-class autoencoder trained on genuine notes alone catches
99.98%. Code: https://github.com/thanatchon36/beyond99-banknote-detection; trained detectors:
thanatchon36/beyond99-banknote-detection;
archived on Zenodo: 10.5281/zenodo.24049790.
Independent personal research. Does not represent the views of any employer or institution.
Files
| path | content |
|---|---|
data/banknote.csv |
UCI Banknote Authentication with a header: note_id (0–1371, row order of the UCI file), the four features variance, skewness, kurtosis, entropy of a wavelet-transformed image, and label (0 = genuine, 762 notes; 1 = counterfeit, 610 notes) |
data/data_banknote_authentication.txt |
the original UCI file, unchanged (no header; SHA-256 in SHA256SUMS) |
data/counterfeit_families.csv |
the counterfeit "families" used by the paper: family_k2 … family_k6 give each counterfeit's K-means cluster (standardised features, n_init=20, random_state=0) and −1 for genuine notes. Family sizes at K = 3: 71, 360, 179 |
results/e1_folds.csv, e1_summary.csv, e1_test.csv |
E1, random-split benchmark: 10 supervised models, repeated stratified 10-fold cross-validation (5 × 10); per fold, summary, and the corrected resampled t-test of the best tree ensemble against the MLP |
results/e2_learning_curve.csv |
E2, accuracy and miss rate against 10–640 training notes (30 repetitions) |
results/e3_ablation.csv |
E3, a weaker sensor: all four features, without variance, kurtosis and entropy only |
results/e4_noise.csv |
E4, Gaussian noise on test features (worn notes, sensor drift) |
results/e5_unseen_families.csv, e5_summary.csv |
E5, unseen counterfeit families at K = 3: per seed and setting (family 0..2 withheld, or random split), and the summary |
results/e5x_K2.csv … e5x_K6.csv |
E6, leave-one-family-out for K = 2..6: 10 seeds × (K families + random split) × 18 detectors × 7 budgets alpha ∈ {0.2%, 0.5%, 1%, 2%, 5%, 10%, 20%}. cdr = counterfeits detected in the held-out family, grr = genuine test notes rejected, auc = ROC AUC (empty for hybrids). e5x_K3.csv at alpha = 0.01 is Table 5 of the paper |
results/quadrant.csv |
mechanism analysis, K = 3, 1% budget: for every genuine test note and every held-out counterfeit (idx = note_id), the exact margin of XGBoost or the MLP (sup, threshold sup_thr, logit units), the squared Mahalanobis distance from the genuine class (maha, maha_thr) and the autoencoder reconstruction error (ae, ae_thr) |
SHA256SUMS |
checksums of every data and result file |
Detectors: supervised (logistic regression, k-NN, SVM with RBF kernel, decision tree, random forest, extra trees,
HistGradientBoosting, XGBoost, LightGBM, MLP 3 × 64), one-class (autoencoder, Mahalanobis, one-class SVM,
isolation forest) and hybrids that flag a note if either component exceeds its own α/2 threshold. Thresholds are
the (1 − α) quantile of each detector's scores on held-out genuine notes. Every number regenerates with
make all in the code repository.
Usage
from datasets import load_dataset
notes = load_dataset("thanatchon36/beyond99-banknote-detection", "banknote", split="train").to_pandas()
lofo = load_dataset("thanatchon36/beyond99-banknote-detection", "lofo_k3", split="train").to_pandas()
t5 = lofo[(lofo.alpha == 0.01) & lofo.setting.str.startswith("family")]
print(t5.groupby("model").cdr.mean().sort_values()) # mean unseen-family detection, Table 5
Source and licence
The banknote data are the UCI Banknote Authentication dataset (Lohweg, 2013,
doi:10.24432/C55P57), released by the UCI Machine Learning Repository under
CC BY 4.0 and redistributed here unchanged apart from the added header and note_id. Images of genuine and
forged banknote-like specimens were taken with an industrial print-inspection camera (400 × 400 pixels, about
660 dpi) and reduced to four wavelet statistics. The family assignments and all results are by Thanatchon
Chongmankhong, also CC BY 4.0. Counterfeit "families" are K-means clusters, a statistical proxy for real
production processes, not labels from the data source.
Citation
@misc{chongmankhong2026beyond,
author = {Chongmankhong, Thanatchon},
title = {Beyond 99\%: Open-Set Evaluation Reveals Silent Failures of Counterfeit Banknote Detectors,
and the Case for One-Class Screening},
year = {2026},
note = {Preprint},
doi = {10.5281/zenodo.24049790},
url = {https://thanatchon36.github.io/beyond99-banknote-detection/paper/}
}
@misc{lohweg2013banknote,
author = {Lohweg, Volker},
title = {Banknote Authentication},
howpublished = {UCI Machine Learning Repository},
year = {2013},
doi = {10.24432/C55P57}
}
- Downloads last month
- 92