The noise ceiling: why I stopped tuning at 0.8254 ROC AUC
Measuring the irreducible error of a landslide dataset before tuning turned a mediocre 0.8254 ROC AUC into 98.3 percent of achievable.
I stopped tuning the landslide risk model in Bhoomi Drishti at 0.8254 ROC AUC. Not because I ran out of ideas, I still had a list, but because I had already measured the ceiling for that dataset at 0.8397 ROC AUC. The distance between where I was and where the data allowed me to go was 0.0143. Everything left in that gap was label noise, and tuning does not remove label noise.
The measurement that made the decision easy
A noise ceiling is an estimate of the best score any model could reach on a dataset, given the features you have and the labels you were handed. It exists because supervised data is rarely a function. Two rows can carry the same 16 features and disagree on the label: one region saw a slope fail after a week of heavy rain on saturated soil, another region with the same numbers did not. Neither row is wrong. The label depends on things nobody recorded, such as a blocked drainage culvert, a road cut from last year, or the exact geometry of the bedding planes.
If those contradictions exist in the data, then even a perfect model, one that returns the true conditional probability of failure for every feature vector, will misrank some pairs. That perfect model has a score, and that score is the ceiling. It is not 1.0, and on geoscience data assembled from regional records it is usually nowhere close.
Estimating it costs an afternoon
The estimate is cheap. Quantise every feature so that near-identical rows collide into the same cell, then score each row with the observed positive rate of its cell. That per-cell rate is the best guess the features can support, so the ROC AUC of those scores approximates the ceiling.
import numpy as np
def roc_auc(y, s):
"""Mann-Whitney U with mid-ranks, so ties do not inflate the score."""
order = np.argsort(s, kind='mergesort')
ranks = np.empty(len(s), dtype=float)
i = 0
while i < len(s):
j = i
while j + 1 < len(s) and s[order[j + 1]] == s[order[i]]:
j += 1
ranks[order[i:j + 1]] = (i + j) / 2.0 + 1.0 # shared mid-rank
i = j + 1
p = y.sum()
q = len(y) - p
return (ranks[y == 1].sum() - p * (p + 1) / 2.0) / (p * q)
def noise_ceiling(X, y, bins=12):
"""Best ROC AUC the features can support, given these labels."""
cuts = [np.quantile(X[:, j], np.linspace(0, 1, bins + 1)[1:-1])
for j in range(X.shape[1])]
codes = np.stack([np.digitize(X[:, j], cuts[j])
for j in range(X.shape[1])], axis=1)
_, cell = np.unique(codes, axis=0, return_inverse=True)
pos = np.bincount(cell, weights=y) # positives per feature cell
n = np.bincount(cell) # rows per feature cell
oracle = (pos / n)[cell] # empirical P(y = 1 | cell)
return roc_auc(y, oracle)On the Bhoomi Drishti dataset, 24,000 rows drawn from 74 regions across 20 Indian states, 16 features, 2,660 positive labels, that procedure returns 0.8397. Two caveats are worth stating out loud. The number moves with the bin count, so I swept it across a range instead of trusting one setting, and the bias runs in both directions: coarse bins blur distinct rows together and push the estimate down, fine bins shrink cells toward single rows and push it up until the estimate is meaningless. It is an interval, not a constant of nature. It was still precise enough to make the call.
What the ceiling changed
Before I had a ceiling, 0.8254 was a number with no context. It could have meant the ensemble was underfitting, or that my feature engineering was thin, or that the trees needed more depth and a smaller learning rate. Each of those readings would have justified another week. With the ceiling in hand, 0.8254 became 98.3 percent of achievable, and the list of plausible explanations collapsed to one.
- A gap of 0.0143 is too small to be model capacity. Tree count, depth and learning rate were not the bottleneck.
- More trees would fit the noise rather than the signal, and the calibration would drift while the AUC sat still.
- Anything that did move the number would have to come from new features or better labels, which means new data collection, not new hyperparameters.
- The remaining engineering budget was better spent on the parts of the system with no ceiling at all: the explanations, the alert logic, the map.
That last point is what mattered for this build. The problem statement asked for a platform that monitors, predicts, explains, warns and responds, using software only, with no Arduino, no Raspberry Pi and no physical sensor anywhere in the design. Predict is one verb out of five. Spending the last stretch chasing three thousandths of AUC while explain and respond were half-built would have been a bad trade, and without a ceiling I would not have been able to see it as a trade at all.
A share of achievable beats a raw number
There is a reflex in this work where you treat the metric as a leaderboard and assume the top of the board is 1.0. The reflex is trained on benchmarks with clean labels, where the ceiling really does sit near perfect. On a dataset stitched together from regional rainfall, slope, soil and historical incidence, that assumption is wrong, and being wrong about it produces two failure modes. You burn weeks on a gap that cannot close. Then, running out of ideas, you reach for something that moves the metric without improving the model: a leaked feature, a looser split, one too many looks at the test set.
A raw AUC tells you where you are. A ceiling tells you whether there is anywhere left to go.
It also changes how the result reads to someone else. On its own, 0.8254 invites the question of why it is not 0.9, and answering that takes ten minutes of context. Reporting 98.3 percent of a measured ceiling of 0.8397 answers the question in the same sentence that makes the claim, and it commits me to something falsifiable. If someone demonstrates the ceiling is really 0.92, my headline is wrong and I have work to do. I would rather publish a number that can be checked than one that merely sounds large.
Measuring the ceiling cost an afternoon and saved a week. It told me the limit was in the labels rather than the model, and it turned an unremarkable 0.8254 into a claim I can defend under questioning. The estimate now runs before the first round of tuning instead of after it.