Single feature threshold false positive rate: ROC comparison of a one-feature cutoff against a full multivariate classifier on diagnostic benchmark data.
|

A Single-Feature Threshold Nearly Matches a Classifier’s Sensitivity — But Not Its False-Positive Rate

This single feature threshold false positive rate comparison asks whether one feature and one cutoff, chosen as well as a single feature allows, can match a full classifier’s sensitivity without also matching its false positive rate.

Concept

A recurring argument in applied-ML papers on medical diagnosis is that using more features beats using fewer. A May 2024 paper on biomarker selection for medical diagnosis reports that moving from 3 to 10 selected biomarkers on a gastric-cancer dataset raised sensitivity at fixed specificity from 0.24 to 0.52, and that a single-biomarker baseline (logistic regression on one feature) scored essentially 0 sensitivity at 90% specificity. Separately, a 2025 systematic review and meta-analysis in the International Journal of Medical Informatics pooled 14 studies comparing logistic regression against more complex machine-learning models for obesity-risk prediction and found no statistically significant difference (pooled AUC 0.75 for logistic regression vs. 0.76 for the best ML model, confidence intervals overlapping heavily).

Those two findings point in slightly different directions: one says a single feature is nearly useless next to a full model; the other says a full linear model (logistic regression, using every available feature) is often just as good as a more complex classifier. What’s missing from both is the specific comparison this post runs: a single feature with a single threshold, picked the best way that feature allows, against full multivariate models, on the same diagnostic benchmark, with the same decision rule for picking operating thresholds.

Hypothesis (falsifiable): on the Wisconsin Diagnostic Breast Cancer dataset, a threshold on the single most informative feature will reach sensitivity (cancer-catch rate) within a few percentage points of a logistic regression and a random forest trained on all 30 features, when all three methods pick their operating threshold the same way. If true, the common push toward multivariate models for this kind of screening task is less about catching more cancers and more about something else (false-positive control). If the single-feature rule trails by a wide and consistent margin on sensitivity, that argument doesn’t hold on this dataset.

Experiment

I used scikit-learn’s built-in Wisconsin Diagnostic Breast Cancer dataset: 569 samples, 30 numeric features computed from digitized images of fine-needle-aspirate (FNA) cell nuclei (radius, perimeter, area, concavity, etc., each reported as mean, standard error, and “worst” value), with a binary malignant/benign label. This is a real, publicly documented clinical dataset (UCI Machine Learning Repository / sklearn.datasets.load_breast_cancer), not synthetic data.

Procedure, run for real in this session:

  1. Stratified 70/30 train/test split (random_state=42 for the main run).
  2. On the training set only, rank all 30 features by AUC for predicting malignancy; take the single best one.
  3. Pick that feature’s decision threshold on the training set using Youden’s J statistic (the cutoff that maximizes sensitivity + specificity − 1) — a standard, well-documented way to choose an operating point from an ROC curve, not something I invented for this post.
  4. Train a logistic regression (on standardized features) and a random forest (300 trees), both using all 30 features, on the same training split.
  5. Give every method the same threshold-selection rule: pick the Youden-optimal cutoff on that method’s own training-set scores, then apply the fixed cutoff to the untouched test set. This keeps the comparison about the features used, not about who got a friendlier threshold.
  6. Repeat the whole pipeline across 10 random train/test splits (seeds 0–9) to see how much a single 171-sample test set (with ~64 positives) can swing the numbers.

Key code (trimmed for length; full script used scikit-learn 1.9.1, pandas, numpy):

aucs = {c: max(roc_auc_score(y_train, X_train[c]), 1 - roc_auc_score(y_train, X_train[c]))
        for c in X_train.columns}
best_feature = sorted(aucs.items(), key=lambda kv: kv[1], reverse=True)[0][0]

def best_threshold_youden(y_true, scores, higher_is_positive=True):
    s = scores if higher_is_positive else -scores
    fpr, tpr, thresh = roc_curve(y_true, s)
    j = tpr - fpr
    return thresh[np.argmax(j)] if higher_is_positive else -thresh[np.argmax(j)]

threshold = best_threshold_youden(y_train, X_train[best_feature].values, higher_is_malignant)

logreg = LogisticRegression(max_iter=5000, random_state=42).fit(X_train_scaled, y_train)
rf = RandomForestClassifier(n_estimators=300, random_state=42).fit(X_train, y_train)
# each model's own threshold chosen the same way, then applied to the test set

Results

With the 70/30, seed-42 split: the single best feature was “worst perimeter” (train-set AUC 0.972 — the single most informative predictor of malignancy in this dataset). Applying its Youden-selected threshold (113.1) to the 171-case test set (64 malignant):

Method Sensitivity Specificity Accuracy Missed cancers (FN) False alarms (FP)
Single feature (worst perimeter) 0.766 0.972 0.895 15 3
Logistic regression (30 features) 0.938 0.991 0.971 4 1
Random forest (30 features) 0.859 1.000 0.947 9 0

Test-set AUC (ranking ability, independent of threshold choice) told a different story: single feature 0.987, logistic regression 0.998, random forest 0.996 — all three were close on ranking. On this one split, 5 of the 15 cases the single-feature rule missed were caught by both multivariate models; 2 cases were missed by all three methods; and only 1 case missed by logistic regression was actually caught by the single-feature rule.

That single split looked like a clear win for the full models. Repeating the entire pipeline (feature selection, threshold selection, training, evaluation) across 10 random splits told a more nuanced story. “Worst perimeter” was selected as the single best feature in all 10 of the 10 runs — the feature choice is stable. But the sensitivity numbers moved a lot between splits:

Metric (mean ± std over 10 seeds) Single feature Logistic regression Random forest
Sensitivity 0.916 ± 0.027 0.928 ± 0.038 0.875 ± 0.045
Specificity 0.881 ± n/a* 0.991 ± n/a* 0.982 ± n/a*

*std omitted from console output for specificity in this run; range across the 10 seeds was roughly 0.776–0.935 for the single feature vs. 0.971–1.000 for logistic regression.

Averaged over 10 splits, the sensitivity gap between the single-feature rule and logistic regression shrank to just 1.2 points (0.916 vs. 0.928) — nowhere near as large as the single-split result (0.766 vs. 0.938) suggested. The random forest actually had slightly lower mean sensitivity than the single feature rule (0.875 vs 0.916) across the 10 splits, though it kept near-perfect specificity. The metric that did not narrow was specificity: the single-feature rule’s false-positive rate (1 − specificity ≈ 11.9%) was roughly 13 times logistic regression’s (1 − specificity ≈ 0.9%).

Explanation

Two things are true at once here, and conflating them is exactly the kind of blur the editorial standard on this site is meant to avoid. First, this is what I ran: a single well-chosen feature threshold, picked by a standard ROC-based rule, came close to matching two multivariate classifiers on sensitivity (cancer-catch rate) when averaged over 10 random splits, even though a single split can make the gap look much larger than it consistently is — a reminder that with ~64 positive test cases, each additional false negative moves sensitivity by roughly 1.5 points, so one split is a noisy estimate. Second, that same single-feature rule consistently and substantially lost on specificity: a published false-positive rate about 13 times higher than logistic regression’s, averaged over the same 10 splits.

That split result lines up with the two sources cited in Concept, now read more precisely: the 2024 biomarker-selection paper found single-biomarker logistic regression scored near-zero sensitivity at a fixed, high specificity (0.90) — a much stricter bar than the Youden-optimal threshold used here, which lets specificity drop into the 0.88–0.93 range in exchange for sensitivity. In other words, part of what looked like “a single feature nearly ties a classifier” in this test is because the comparison let the single feature trade away specificity to keep sensitivity competitive; at a fixed high-specificity operating point like the earlier paper used, the single feature would very likely fall far behind, consistent with that paper’s near-zero result. The 2025 IJMI meta-analysis is the more relevant comparator for the logistic-regression-vs-random-forest half of this result: it found full logistic regression and more complex ML essentially tied across 14 obesity-prediction studies, which matches what showed up here — the random forest did not outperform logistic regression on sensitivity in this test, and actually scored lower on average (0.875 vs 0.928). A 2025 lung-cancer screening study in Frontiers in Medicine makes the single-test-is-unreliable argument directly — it treats a single blood marker like CEA as unreliable and builds a 22-feature model (AUC 0.787) instead — and the false-positive gap found here is a concrete, quantified version of exactly that unreliability, even on a dataset far cleaner than routine blood panels.

So the more accurate summary isn’t “a single threshold is nearly as good as a classifier” — it’s “a single threshold can be tuned to chase a similar cancer-catch rate, but it pays for that with many more false alarms, and the size of the sensitivity gap depends heavily on which operating point and which single test split you happen to look at.” That nuance is also why this comparison is a meaningful extension of an earlier test of a simple threshold rule against a more complex detector in expense-fraud detection: there too, the simple rule (z-score thresholds) caught the obvious cases but missed the harder, contextual ones that a more complex model (Isolation Forest) picked up — the same basic trade-off, in a different domain.

What This Result Does Not Prove

  • 569 samples from one historical, carefully curated dataset (digitized FNA images, Wisconsin) — a clean benchmark, not messy real-world clinical data with missing values, scanner variation, or inter-observer disagreement in labeling.
  • “Worst perimeter” is itself computed from image analysis across all cell nuclei in a sample — it is not literally as cheap or simple to obtain as a single blood test or vital sign, so “single feature” here is a statistical simplification, not an operational one.
  • Youden’s J treats a missed cancer and a false alarm as equally costly; a real screening protocol that weights missed cancers far more heavily would likely push every method’s threshold — and the resulting sensitivity/specificity trade-off — somewhere else entirely.
  • Only two multivariate baselines were tested (logistic regression, random forest). A tuned gradient-boosting model or an ensemble might close more of the 13x false-positive gap than either did here.
  • Binary malignant/benign classification on one institution’s historical data says nothing about how any of these three methods would generalize to a different patient population, imaging protocol, or cancer type.

Resources

Related Reading

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *