Confusion Matrix for Image Classes Calculator

Upload predictions, visualize image-class confusion, inspect mistakes, compare models, measure every class, filter confidence, and export clear reports for better decisions today with confidence.

Analysis Results

Interactive Confusion Matrix

Click a heatmap cell to inspect matching records.

Per-Class Performance

Actual and Predicted Distribution

Per-Class Metrics

Most Confused Class Pairs

Confidence Summary

Misclassified Images

Model Comparison

Interpretation

1. Dataset Input

Required columns: actual and predicted. Optional columns: image, confidence, split, model, source, url, width, height, notes.

2. Class and Dataset Filters

Leave empty for automatic detection.
Use zero for all classes.

3. Confidence and Rejection Settings

4. Matrix Display Settings

Formula Used

Accuracy(TP + TN) / (TP + TN + FP + FN)
PrecisionTP / (TP + FP)
RecallTP / (TP + FN)
SpecificityTN / (TN + FP)
F1-score2 × Precision × Recall / (Precision + Recall)
Balanced accuracyAverage recall across classes
Cohen’s kappa(Observed accuracy − Expected accuracy) / (1 − Expected accuracy)
Multiclass MCCGeneralized correlation between actual and predicted labels

How to Use

  1. Paste records or upload a CSV dataset.
  2. Choose filters, confidence rules, and class settings.
  3. Select normalization and heatmap display preferences.
  4. Press Calculate and Plot to generate results.
  5. Inspect matrix cells, errors, metrics, and confidence charts.
  6. Export tables, graphics, settings, or a PDF report.

Example Data

ImageActual ClassPredicted ClassConfidence
image_001.jpgCatCat0.96
image_002.jpgDogCat0.71
image_003.jpgBirdBird0.91
image_004.jpgCatDog0.64
image_005.jpgDogDog0.88

Frequently Asked Questions

What does the diagonal show?

Diagonal cells contain correct classifications for each image class.

What do off-diagonal cells show?

They show which actual classes were confused with other classes.

Which normalization should I use?

Normalize by actual class when comparing recall across unequal classes.

Why can accuracy be misleading?

Large classes can dominate accuracy while minority classes perform poorly.

What is macro F1?

It averages class F1-scores without weighting by class support.

What is weighted F1?

It weights each class score using its number of samples.

How are missing confidence values handled?

They remain available unless the keep-missing option is disabled.

Can I compare multiple models?

Yes. Include a model column and keep the model filter empty.

How are rejected predictions treated?

Predictions below the threshold become the configured uncertain class.

Related Calculators

Class Frequency ChartImage Size Distribution PlotBounding-Box Size PlotIntersection-over-Union DistributionPrecision-Recall Curve by ClassMean Average Precision PlotPixel Intensity HistogramColour Channel HistogramSegmentation Mask Overlay

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.