A method of creating datasets for training a
machine-learning-based sample container
detector and classifier for a diagnostic laboratory
system includes receiving a raw dataset of training data including a plurality of images of sample containers having different properties; receiving a clean
annotation subset of the raw dataset; training an
annotation cleaning model using the clean
annotation subset, wherein once trained, the annotation cleaning model is configured to annotate images of sample containers; running the raw dataset through the trained annotation cleaning model to generate a clean annotation dataset; applying a clustering
algorithm to the clean annotation dataset to identify errors in labels in the clean annotation dataset; correcting identified
label errors in the clean annotation dataset so as to generate a clean annotation, clean
label dataset. The method may further include training a sample container
detector and classifier using the clean annotation, clean
label dataset. Numerous other embodiments are provided.