Preparing Data for YOLO: Training and Evaluating Object Detection Models | Swara Joshi

Swara Joshi walks through converting annotated loon images into YOLO-ready training data and explains why environmental variety in the dataset determines whether the detector holds up in the field.

3:13 video3 min readWatch on YouTube

Swara Joshi continues a series on building a computer vision pipeline for detecting and counting loons from drone footage, moving from labeling images to actually training a YOLO object detection model. The video explains what happens between having annotated images and having a model that can find a loon in a new frame, and why the quality of that in-between step decides whether the model works at all.

From labeled images to a trained model

The pipeline starts with images where loons have already been marked and labeled. YOLO, short for "you only look once," is an object detection model built to scan an image efficiently and return not just whether an object is present but where it is, drawing a bounding box around each loon and attaching a confidence score, such as "loon, 92 percent confidence" at a specific location in the frame. Getting there requires converting the raw annotations into a format the model can actually train on, an intermediate step that sits between labeling and training and is easy to underestimate.

Why annotation quality decides model quality

The workflow runs from images to annotations to dataset preparation to model training to model evaluation to detection. If the annotations feeding that pipeline are inconsistent, incomplete, or inaccurate, the model learns those same mistakes. Joshi frames this directly: the annotation and dataset stages were never separate from the machine learning step, they are the foundation it depends on. Quality upstream produces quality downstream, and there is no later step that fixes a poorly labeled dataset.

Testing on conditions the model has not seen

Once trained, the model is evaluated on images it did not see during training, measuring missed detections, incorrect detections, and how accurately each bounding box locates a loon. Because this is a conservation project, that accuracy matters in a concrete way. A model that scores well on one batch of images can fail when conditions change: drone altitude, lighting, water reflections, camera angle, weather, and distance to the birds all vary in real footage. That is why the dataset needs to grow with diverse examples across those conditions rather than simply accumulating more images that look like the ones already collected.

The honest state of the project

Joshi is explicit that the project does not yet have a production-ready loon detection model and is not claiming one. The current goal is establishing the full pipeline, from raw footage through metadata, annotation, training data, and the model itself, feeding into a researcher-facing application where a researcher can upload footage, run an analysis, and review results without needing to know YOLO is running underneath. The next stage of the series will go deeper into how YOLO training itself works, including validation, predictions, and confidence scores.

Key takeaways

  • YOLO detects objects by drawing a bounding box and assigning a confidence score, rather than just flagging that an object is present somewhere in the frame.
  • Converting raw annotations into model-ready training data is a distinct, necessary step between labeling and training.
  • Inconsistent or inaccurate annotations directly degrade the trained model, since the model learns from whatever it is given.
  • Evaluation on unseen images measures missed detections, false detections, and localization accuracy, not just overall presence or absence.
  • Real-world variation in altitude, lighting, reflections, weather, and camera angle means the training dataset must include diverse conditions to generalize.

Who this is for

Anyone following a conservation computer vision project from the ground up, or a student wanting a concrete walkthrough of what stands between an annotated image dataset and a working object detector.

Chapters

  1. 0:00The Transition: Moving from Annotation to YOLO Model Training
  2. 0:30Data Preparation: Converting Raw Labels to Model-Ready Inputs
  3. 0:58Addressing Environmental Noise: Reflections, Altitudes, and Lighting
  4. 1:25The Evaluation Process: Measuring Missed and Inaccurate Detections
  5. 1:50Complete Vision: Building the Automated End-to-End Inference App
Full transcript(auto-generated, with timestamps)

The Transition: Moving from Annotation to YOLO Model Training

[0:00]Hi, this is Swara Joshi. In this series, we've covered the data set, the metadata, and the annotation stages of the loon computer vision pipeline. This episode moves into the next major stage, using that labeled data to actually train a computer vision model, starting with loon detection and counting. The basic idea is simple. We give the model images where loons are already identified and labeled. It looks for patterns in those examples, shape, appearance, visual features, and learns

Data Preparation: Converting Raw Labels to Model-Ready Inputs

[0:31]What a loon looks like. Once it's learned from enough examples, we can hand it a new image and ask whether a loon is present. This is where an object detection model like YOLO comes in, you only look once, built to detect objects efficiently. Instead of just saying a loon is present, it draws a bounding box around it and attaches a confidence score. A future result might read, "Loon, 92% confidence at a specific location in the

Addressing Environmental Noise: Reflections, Altitudes, and Lighting

[0:59]Frame." There's an important step between our annotations and a trained model. Preparing the annotated data into a format the model can actually use. The workflow becomes images to annotations to data set preparation to model training to model evaluation to detection. If our annotations are inconsistent, incomplete, or inaccurate, the model learns from those mistakes. That's why the data set and annotation

The Evaluation Process: Measuring Missed and Inaccurate Detections

[1:26]Stages were never separate from machine learning. They are the foundation the model depends on. Quality upstream is quality downstream. We don't just train a model and assume it works. We test it on images it hasn't seen during training and measure how it performs. Missed detections, incorrect detections, and how accurately it locates each loon. Because this is a conservation project,

Complete Vision: Building the Automated End-to-End Inference App

[1:50]That accuracy genuinely matters. A model that performs well on one set of images may not hold up when conditions change. Drone footage varies with altitude, lighting, water reflections, camera angle, weather, and distance to the birds. That's why the data set needs diverse examples as it grows, not just more of the same. The complete vision strings every stage together. Raw footage, metadata, annotation, a training data set, a computer vision model, then loon detection and counting, feeding a researcher-facing application. The researcher doesn't need to know YOLO is running underneath. They upload footage, run an analysis, and review the results. So, the honest state, we don't have a production-ready loon detection model, and we're not claiming one. The goal right now is establishing the complete pipeline, so that once enough suitable loon imagery exists, we can actually train, evaluate, and improve a real model. In the next part of the series, we'll go deeper into how YOLO training actually works. Training data, validation, model predictions, confidence scores, and how we evaluate whether the model is genuinely learning. If you want to think ahead, here's one question. What result would convince you this model is actually ready for the field? That's this episode. Thanks for watching, and I'll see you in the next video.

More from Humanitarians AI Fellows

Humanitarians AI Lyrical Literacy Project