Habitat Loss Mapping

Blog

What is a confusion matrix in land-cover accuracy assessment?

If you've sat through a technical review of a land-cover product, someone has put a confusion matrix on screen and moved past it fast, as if everyone in the room already knows what the rows and columns mean. Plenty of analysts nod along and work it out later from the footnotes. Here's what's in that table, and why reviewers for SDG indicator 15.1.1 or a national forest reference level keep asking for it.

The table itself

A confusion matrix cross-tabulates two things for a set of reference points: what the classification says a pixel or parcel is, and what it actually is on the ground (or in high-resolution imagery used as ground truth). Rows are usually the mapped classes, columns the reference classes, or the other way round depending on the convention your agency uses. Every validation point lands in one cell. A cell on the diagonal means the map and the reference agree. A cell off the diagonal is a mismatch: forest mapped as cropland, built-up area mapped as bare soil, and so on.

That's the whole idea. The matrix doesn't average anything away. It keeps every disagreement visible, by class, so you can see whether your errors are random noise or a pattern, like a classifier that consistently confuses young plantation with degraded forest.

From that table, three numbers get quoted in almost every accuracy report, and they answer different questions.

Overall accuracy is the sum of the diagonal divided by the total number of reference points. It's the number everyone wants first, and the number that hides the most. A map can hit 85% overall accuracy while missing most of the deforestation on the ground, if forest loss is a small fraction of the landscape and the matrix is dominated by stable classes getting mapped correctly.

Producer's accuracy asks: of all the reference points that are truly forest loss, what share did the map catch? It's calculated from the column for that class. Low producer's accuracy means the map is under-detecting the change, which matters enormously for a loss figure you're reporting upward.

User's accuracy flips the question: of everything the map labelled as forest loss, what share is correct on the ground? That's the row for that class. Low user's accuracy means a user acting on the map, a district forest officer sent to investigate flagged pixels, will find a lot of false alarms.

Why both accuracies matter for a change figure

A statistics office rarely cares about accuracy for its own sake. It cares because the confusion matrix is what lets you defend a loss figure to an auditor or a UNFCCC reviewer. If someone asks why your national loss estimate for the reporting period differs from last cycle's, the answer usually lives in the matrix: did producer's accuracy for the loss class improve, did the reference sample change, did a boundary definition shift between cycles.

This is also the part that breaks most often when a classification is recommissioned from scratch each cycle. A new contractor draws a new reference sample, uses a different stratification, and reports a matrix that isn't directly comparable to the one from three years ago. The accuracy numbers look fine in isolation and still can't be reconciled against each other, which is exactly the problem when SDG reporting asks for a trend, not a snapshot.

Our approach at Habitat Loss Mapping is built around that comparability problem: the same classification logic, reference approach and class definitions carried forward year to year over your territory, so the confusion matrix from this cycle and the one from five cycles ago are measuring the same thing, not two different studies that happen to share a map legend.

If multi-decade change statistics need to hold up across reporting cycles rather than just look clean for one, it's worth seeing what a consistent annual layer looks like for your territory.

Get started

← Back to the blog