Short answer

How do you evaluate surgical dataset quality?

Evaluate a surgical dataset against a defined research task. Check media, labels, permissions, source coverage, and the independence of evaluation data. Keep related frames, clips, views, and repeat patient recordings together when the protocol requires it. Case, patient, site, and device holdouts test different claims; document which separation you actually achieved.

Working on a project? Use the free data brief, manifest, and acceptance templates.

Five kinds of quality check

Use several layers of review. File checks can establish that media decodes and matches a manifest. Content review assesses whether the footage shows the intended procedures. Clinical review examines whether labels and interpretations are appropriate. Provenance review establishes what is known about the collection and its permitted use.

LayerExample checkWhat it does not prove
IntegrityChecksum, decoding, duration, and timestamp validationClinical relevance
CoverageProcedure and source distribution against the briefGeneralization to every setting
AnnotationSampled expert review and alignment checksA perfect reference standard
ProvenanceTraceable source, transformations, and permissionsA downstream product’s approval
EvaluationDocumented split logic and duplication reviewFuture clinical performance

Assign each finding to the team that can resolve it. Media, licensing, clinical review, and collection gaps require different work.

How does leakage happen in surgical video?

Leakage occurs when development has access to information that the evaluation is meant to withhold. In video, adjacent frames can show almost the same scene. Randomly assigning those frames to training and test sets can reward familiarity with a recording when the intended question is performance on a new operation.

A different filename does not make an independent example. A trimmed clip, a second camera view, a resized export, and an augmented frame can all come from the same case. Preserve that relationship before sampling frames. Removing exact duplicate files alone will miss overlapping clips and re-encoded copies.

The IMDRF: good machine learning practice, 2025 asks developers to address dependencies involving patients, sites, and acquisition when separating training and test data. The split designs and examples below apply that principle to surgical video procurement; they are not a validated study protocol.

Keep related recordings together

Choose the unit that must remain unseen, then group all related records before assigning training, validation, and test sets. A case-separated split keeps an operation together. It does not establish patient separation if the same person has more than one recorded operation.

RelationshipWhat to keep togetherEvidence to retain
Same source videoFrames, overlapping clips, re-encodes, crops, and derived labelsStable source-video identity and transformation lineage
Same operationAll source recordings and synchronized views from that caseCase identity shared across recorders and exports
Same patient, when patient separation is requiredEvery included operation associated with that patientAn approved patient grouping method and its coverage
Same footage in separate datasetsRecords mapped to the same underlying operationThe cross-dataset mapping and release versions

Use identifiers approved for the research workflow and keep any identifying linkage separately controlled. A pseudonymous grouping key is not, by itself, proof of de-identification. If a provider cannot establish patient grouping, report patient overlap as unknown. Do not convert missing identifiers into a claim of zero overlap.

Worked example: one million frames, eleven patient groups

Consider a synthetic collection of 12 operations, each recorded for one hour at a constant 25 frames per second. One view contains 12 × 3,600 × 25 = 1,080,000 frames. A second synchronized view doubles the images, but the collection still represents 12 operations. Suppose operations C01 and C02 belong to patient group P01; the other ten operations each belong to a different patient group.

PartitionOperationsPatient groups
TrainingC01 through C08: 8 operationsP01 through P07: 7 groups
ValidationC09 and C10: 2 operationsP08 and P09: 2 groups
TestC11 and C12: 2 operationsP10 and P11: 2 groups

Both P01 operations remain in training. Every clip, view, and derived frame inherits its operation’s assignment. Moving C02 into test would preserve case separation but break patient separation. Sending a re-encoded C11 clip into training would break the source and case separation even if the new file had a unique name.

This example demonstrates bookkeeping, not a recommended sample size or split ratio. Two test operations provide very limited evidence. Report frames, clips, operations, and patient groups separately; a large frame count does not create an equally large number of independent patients.

A real example of shared source footage

CholecT50 includes 45 videos from Cholec80. CAMMA’s overlap analysis maps shared videos among Cholec80, CholecT50, and Endoscapes, including overlaps across their named partitions. Separate dataset names, label sets, and published splits therefore do not guarantee an independent combined evaluation.

Check the exact releases you use and preserve the original-to-derived mapping. Include any footage used for pretraining in that review, not only the final supervised training set. If a base model’s training corpus is undisclosed, say that this part of the overlap assessment is unknown. Our research dataset comparison links the official releases.

Does a case holdout also test a new hospital or camera?

No. A case holdout can contain the same hospitals, surgeons, and recording systems as training. A site holdout deliberately excludes a hospital or collection site from development. A device holdout excludes a defined device model or configuration. These designs investigate different sources of change.

DesignQuestion it can investigateLimit to state
Case holdoutDoes the model work on other operations from the sampled setting?Patients, sites, operators, or devices may still recur.
Patient holdoutDoes the model work on operations from other patients?The same sites and acquisition practices may remain.
Site holdoutDoes performance transfer to the specified held-out site?One hospital does not represent every unseen hospital.
Device or configuration holdoutDoes performance transfer to the excluded acquisition setup?A model name, individual unit, and software version are different grouping choices.

Keep required patient and source separation in place when adding a site or device holdout. Record exactly which factors change. If all footage from hospital B uses camera Y and all training footage uses camera X, a performance difference cannot be attributed to the camera alone. The test changes site and camera together.

A coverage table shows which sites and devices occur in each split. It does not prove generalization. Document unavailable metadata and describe the actual held-out setting instead of calling every test set external validation.

How can development decisions contaminate a clean split?

File separation is only one part of evaluation independence. Fit learned preprocessing on training data, make model-selection decisions using the designated development procedure, and reserve the final test set for the agreed evaluation. Repeatedly changing a model after inspecting test errors turns that test set into development information. The scikit-learn leakage guide explains why preprocessing fitted before a split can inflate evaluation results.

When implementing grouping, inspect the library’s semantics. In GroupShuffleSplit, the requested test fraction applies to groups, not frames, and repeated test folds can overlap. Independently generating a validation set and a test set is not enough to make them disjoint. Save the final assignments, input manifest version, code version, and random seed where used.

Check coverage and exclusions

A collection may contain many repeated examples of a narrow procedure, recording system, or visual condition. That can be useful for one question while failing another. Ask for distributions relevant to the intended use and identify which characteristics are known, unavailable, or inferred.

Review exclusions. If low-visibility segments, atypical anatomy, or interrupted cases were removed, document the selection process. A polished dataset can accidentally hide the situations that will challenge a model in practice. Do not equate cleanliness with representativeness.

Treat missing metadata as a limitation to manage, not an invitation to infer sensitive attributes from video. Some coverage questions cannot be answered without appropriately collected contextual information.

Document acceptance checks and decisions

Ask for findings that can be reproduced against a named release. “Quality checked” or “no leakage” is too broad without the method, scope, and exceptions. The acceptance worksheet provides a starting structure; agree the actual criteria before delivery.

CheckEvidence to requestDecision to document
Media integrityManifest reconciliation, decode results, timing checks, and affected filesRepair, exclude, or accept specified limitations
Split separationAssignment manifest, grouping fields, missing-ID counts, and cross-split conflictsResolve conflicts required by the protocol before evaluation
Overlap reviewKnown source mappings, exact-duplicate checks, and any sampled visual reviewState what the review could and could not detect
AnnotationsGuide version, sampled units, alignment findings, disagreements, and correctionsAccept the scope or repeat affected labeling/review
CoverageCase and group counts by relevant setting, including unknowns and exclusionsNarrow the research claim or seek additional coverage

A synthetic result such as “18 of 200 reviewed intervals had misaligned boundaries” is more useful than “91% quality.” It identifies the unit, denominator, and defect. It still needs a sampling method, agreed tolerance, responsible owner, and correction decision. It does not establish the error rate of every unreviewed interval.

For each release, retain the checks performed, reviewer or script identity, exceptions, and final disposition. After removing or replacing a file, rerun affected checks and version the assignments. A corrected label can change an experiment even when total hours stay the same.

Run a local check on the split manifest

Use the split-audit Python script with the synthetic example CSV and usage guide. It checks clip-ID uniqueness and case, source-video, and patient-group identifiers across partitions, then reports site and device coverage. It runs locally without uploading the file. Inspect the versioned release and worked example for expected output, checksums, and a deliberate cross-split conflict.

This is a manifest check. It cannot inspect footage, discover an unrecorded patient relationship, find hidden visual duplicates, or establish clinical validity. Keep patient names and other direct identifiers out of the input. A report with no listed conflicts means none were found in the supplied identifiers, not that the underlying dataset is proven independent.

Does a high-quality dataset prove a model is safe?

No. Data quality is one input to a broader development and evaluation program. A dataset can be well documented and still be unsuitable for a particular intended use. Likewise, a model can perform well on an offline benchmark without establishing performance in a clinical workflow.

Define the claim you want to make, the evidence needed for that claim, and the limits of the current experiment. Use the procurement checklist to connect those decisions to the supplier’s deliverables before purchase.

Sources & further reading

An Operavue planning guide informed by the sources above. Sources do not endorse Operavue. This is educational material, not clinical, legal, or regulatory advice.

Editorial approach and corrections

Contact

Discuss your research.

Tell us the task you are studying and the data or clinical expertise you need.

Discuss a dataset