Open to work · Available June 2026

← Work

NPEC · 2023

Plant Phenotyping Pipeline

A computer vision pipeline that automatically extracts plant growth traits from high-throughput imagery — replacing hours of manual measurement with a batch process that runs overnight.

Computer Vision Python OpenCV Robotics

NPEC phenotyping pipeline diagram

Context

NPEC (Netherlands Plant Eco-phenotyping Centre) runs high-throughput plant imaging experiments — hundreds of plants photographed from multiple angles at regular intervals over the course of weeks. Researchers needed to extract quantitative traits from this imagery: plant height, leaf area, rosette diameter, colour indices.

The existing process was partly manual. Researchers would sample a subset of images, take measurements by hand, and extrapolate. This introduced human variability and meant only a fraction of the available data was actually analysed.

Challenge

Plants are awkward computer vision subjects. They're non-rigid, their appearance changes significantly over the growth period, and the imaging setup (overhead + side cameras, controlled lighting) introduces its own artefacts. The pipeline needed to handle the full range of plant sizes and shapes across an experiment without manual tuning between batches.

What I built

A four-stage batch pipeline:

  1. Ingestion & calibration — Images are loaded, lens distortion corrected using calibration targets, and scaled to a consistent pixels-per-mm ratio.
  2. Segmentation — Background subtraction using HSV colour thresholding isolates the plant from the tray and conveyor belt. Morphological operations clean up the mask.
  3. Trait extraction — From the segmented mask: projected leaf area (pixel count × scale²), bounding box height, convex hull area, and RGB/HSV colour indices are computed per plant per timepoint.
  4. Output — Results are written to structured CSV files with plant ID, timepoint, and all extracted traits — directly importable into the statistical analysis tools the researchers already use.

Key results

Processing time for a full experiment batch (≈ 2,400 images) dropped from several days of manual work to an overnight automated run. Trait extraction error versus manual ground truth measurements was within 3–5% for leaf area and height — within the acceptable range for the downstream statistical analyses.

What I learned

Calibration is everything in quantitative imaging. Early versions of the pipeline produced measurements that looked plausible but drifted by 8–12% from ground truth because of inconsistent scale correction between camera positions. Fixing the calibration step — boring, methodical work — had more impact on accuracy than any improvement to the segmentation algorithm.

This project introduced me to the robotics and automation side of data science. The imaging system itself is a conveyor-based robot; the pipeline slots into a larger automated infrastructure. That context changed how I thought about edge cases — the pipeline needs to handle a plant that fell over, a tray that arrived empty, a camera that captured partial occlusion.