Dataset Health Check
Assess and improve the quality of your dataset.
About
Dataset Health Check shows a range of statistics about the dataset associated with a project. You can see the following pieces of information:
Number of images in your dataset;
Number of annotations;
Average image size;
Median image ratio;
Number of missing annotations;
Number of null annotations;
Image dimensions across your dataset;
Object count histogram, and;
A heatmap of annotation locations.
Using Dataset Health Check, you can derive a range of insights about your dataset. For example, if you have no null annotations, you may want to consider adding a few depending on the project on which you are working; if there are images with missing annotations, you can dig deeper to add the requisite annotations.
To view the Health Check for a project, open the Dataset page and click the "Health Check" tab:

The Health Check tab will then open:

On this page, you can see:
A breakdown of the number of classes in the images in your train, test, and valid datasets.
An overview of the sizes and aspect ratios of the images in your dataset.
A heatmap showing where most of your annotations are.
A histogram showing how many classes are annotated in each image in your dataset.
Web App
Dimension Insights
The Dimension Insights section describes the sizes and aspect ratios of raw images in your dataset.
If you apply the Resize augmentation when you create a project version - which we strongly recommend for almost all use cases - images in your version will be resized, but the raw images will stay the same.

Annotation Heat Map
When you are training a model, it is important that your dataset is representative of the conditions in which your model will be deployed.
If your model will be deployed in an environment in which annotations may appear anywhere in the camera frame - for example, on a factory line where objects of different sizes are moving in real time, or in an image taken on a phone of an object - it is important that you annotate objects that appear in different places in an image.
Labeling objects in different parts of an image will ensure your model doesn't overfit to learn only how to identify objects in specific places.
The Annotation Heat Map shows where there are more or less annotations in images. This can be used to identify scenarios where your dataset annotations are too concentrated in a particular place.

You can drag over an area in the Heat Map to see images in the chosen range:

Histogram of Object Count by Image
This shows you the distribution of how many annotated objects appear in each image.
If images that you pass through your model may contain multiple instances of an object, we recommend ensuring your dataset contains images with different numbers of object instances. This will help you ensure your model can generalise well to images with no, one, or multiple objects of interest.
Here if an example of a histogram:

You can select any of the bars on the histogram to see images with a given count:

HTTP API
The API returns the same counts, class balance, and object count histogram as the Health Check tab, without the heatmaps or image dimensions. The first report for a project, or one you request with regenerate=true, is computed during the request and can take a few minutes on large datasets. Later calls return the stored report, which can be older than your latest changes. Check generated, and pass regenerate=true when you need current numbers.
Returns the Dataset Health Check report for a project: image and annotation counts, class balance overall and per split, and the object count histogram. Heatmaps and per-image data are left out. Requires project:read. Any API key can read the report of a public project.
Roboflow API key or OAuth access token.
Workspace URL slug.
Project URL slug.
Set to true to recompute the report. Otherwise you get the last computed report, and it is computed only when none exists.
Successful response.
When the report was computed, in milliseconds since the Unix epoch.
Report format version.
The request is invalid.
Authentication is missing or invalid.
The credential does not have access to this resource.
The resource does not exist or is not accessible.
The request rate is too high.
GET /{workspace}/{project}/health HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"generated": 1793369145612,
"version": 3,
"stats": {
"images": 524,
"annotated": 524,
"unannotated": 0,
"empty": 0,
"labels": 4668,
"average": "8.9",
"singleClass": 0,
"multiClass": 0,
"numClasses": 2,
"classes": [
{
"count": 941,
"percent": "100.0",
"cls": "fair",
"description": "",
"name": "needle"
},
{
"count": 412,
"percent": "43.8",
"cls": "under",
"description": "Under Represented",
"name": "dial"
}
],
"classesBySplit": {
"train": [
{
"count": 820,
"percent": "100.0",
"cls": "fair",
"description": "",
"name": "needle"
},
{
"count": 360,
"percent": "43.9",
"cls": "under",
"description": "Under Represented",
"name": "dial"
}
],
"valid": [
{
"count": 121,
"percent": "100.0",
"cls": "fair",
"description": "",
"name": "needle"
},
{
"count": 52,
"percent": "43.0",
"cls": "under",
"description": "Under Represented",
"name": "dial"
}
],
"test": [
{
"count": 0,
"percent": "0.0",
"cls": "missing",
"description": "Missing",
"name": "needle"
},
{
"count": 0,
"percent": "0.0",
"cls": "missing",
"description": "Missing",
"name": "dial"
}
]
},
"histogram": {
"all": {
"1": 2,
"5": 229,
"10": 151
},
"needle": {
"1": 244,
"2": 188
},
"dial": {
"1": 239,
"2": 85
}
}
}
}MCP Server
Connect your AI agent to the MCP Server and it can check dataset health with these tools:
projects_health
Get the dataset health check for a project.
Last updated
Was this helpful?