Evaluation Metrics
Assess labelers’ answers using reviewers’ labels as the ground truth.
To view evaluation metrics for a project:
Go to the Projects page.
Click the three-dot menu on a specific project and select View project analytics.
Go to the Evaluation metrics tab.
Currently, evaluation metrics are available for:
Row labeling projects with dropdown, hierarchical dropdown, True/False, or single choice questions that have a single answer (excluding multiple answers for dropdown questions).
Span labeling projects.
How to use
Evaluation metrics are typically used to assess models rather than human labeling quality. This differs from inter-annotator agreement (IAA), which measures agreement between labelers. In this system, reviewer mode acts as the ground truth and is compared against each labeler.
You can evaluate a model using one of the following approaches:
Use a labeling agent.
Use the ML-assisted labeling extension.
Use pre-labeled data (Datasaur schema).
Labeling agent
The labeling agent automatically calculates evaluation metrics after the project is completed by a reviewer.
ML-assisted labeling
Use ML-assisted labeling to integrate model inference results. A designated labeler runs the model, and the responses represent the model’s predictions. These responses are then compared to the reviewer’s answers for evaluation. This approach supports evaluating multiple models.
To evaluate models with the ML-assisted labeling extension:
Create a project with no consensus to allow reviewers to set the correct answers directly.
Assign one person as both labeler and reviewer (optional, for simplicity). To evaluate multiple models, assign additional labelers accordingly.
Open the project and ensure you are in the labeler mode.
Open the ML-assisted labeling extension and call the model. Accept all the suggestions.
Switch to reviewer mode and finalize the ground truth.
Mark the project as complete. This will trigger the evaluation metrics calculation.
Pre-labeled data
This approach evaluates a single model using pre-labeled data with the Datasaur Schema format. The pre-labeled data is then compared to the reviewer’s answers for evaluation.
To evaluate a model using pre-labeled data:
Create a project with pre-labeled data in Datasaur schema format.
Assign one person as both labeler and reviewer (optional, for simplicity).
Open the project.
Switch to reviewer mode and finalize the ground truth.
Mark the project as complete. This will trigger the evaluation metrics calculation.
Metrics
Evaluation metrics are calculated using standard algorithms. The process begins with constructing a confusion matrix, and results are macro-averaged to produce final scores.
Handling empty labels
In row labeling projects, empty answers (unanswered optional questions) are included in the calculation, as they may represent valid outcomes.
In span labeling projects, empty spans are excluded due to the large number of possible unlabeled spans, which would skew results.
Accuracy
The proportion of correctly labeled instances among the total labels.
Calculation = total correct labels divided by total labels.
Precision
The ratio of correctly labeled positive instances to the total instances predicted as positive.
Calculation = True Positives / (True Positives + False Positives).
"Of all the instances predicted as positive, how many were actually positive?"
Real world example: Spam detection, where false positives should be minimized, because we do not want to have a perfectly normal email being incorrectly classified as a spam.
Recall
The ratio of correctly labeled positive instances to the total actual positive instances.
Calculation = True Positives / (True Positives + False Negatives).
"Of all the actual positive instances, how many were correctly identified?"
Real world example: Medical diagnosis, where false negatives must be minimized, because the system cannot afford to label a cancerous case as a non-cancerous one.
F1 score
The harmonic mean of precision and recall.
Calculation = 2 * ((Precision * Recall) / (Precision + Recall)).
A score of 1 indicates a perfect balance between precision and recall.
Confusion matrix
A confusion matrix provides a detailed breakdown of predictions versus ground truth.
Row labeling:
The matrix represents each eligible question.
Both the rows and columns correspond to the available options for each question.
An additional empty answer row and column are included to account for unanswered optional questions, as described above.
Span labeling:
The matrix represents a specific label set.
Both the rows and columns correspond to the label classes applied within that set.
An additional empty label row and column are included. The empty label pair is displayed as N/A, consistent with the explanation provided in the Metrics section.
Filters
By default, metrics are calculated across all data. But, the metrics can be filtered by:
By documents.
By labelers.
By questions (row labeling only).
By label sets (span labeling only).
Last updated