MKZ.
All work
Case study 03Research · Data & AI

Finding microplastics with computer vision

Can a cheap USB microscope and the right AI model let any school lab detect microplastics? A four-phase pipeline, four models, one fair comparison.

My role
First author, researcher & presenter
Team
3 student researchers · advisor Dr. Dobri Atanassov Batovski
Venue
11th International STEM Education Conference (iSTEM-Ed 2026)
Tools
Python, Google Colab, Roboflow, USB microscope
§ 01

The problem

Microplastics, plastic particles smaller than 5 mm, are now found in oceans, rivers, soil and human tissue. Recent studies link them to cardiovascular risk and immune responses.

The accurate way to identify them, FTIR or Raman spectroscopy, is too expensive for most undergraduate labs. Counting particles by eye under a microscope is cheap, but slow, subjective and error-prone.

The gap we found

  • No low-cost pipeline: existing AI tools assume expensive equipment or clean, lab-quality images.
  • No fair comparison: segmentation and detection models report incompatible metrics (mIoU versus mAP), so they can't be ranked directly.
  • No integrated STEM framework combining wet-lab chemistry, hardware and AI for undergraduates.
§ 02

My role

I'm the first author of the paper. I worked through the full research cycle with two fellow students under our advisor: sample preparation, microscopy imaging, annotation in Roboflow, model training in Python on Google Colab, statistical analysis and writing.

I also built the conference slides and gave the oral presentation at the 11th International STEM Education Conference.

§ 03

The process

  1. Wet lab: extract the particles

    Sand from Bang Saen Beach, Chonburi, separated with saturated salt water. Plastics float and sediment sinks. Then fine-mesh filtration, air drying and optical confirmation.

  2. Hardware: low-cost imaging

    A consumer 40× USB microscope with dual LED lighting. 4032×3024 images, resized to 1920×1080 and annotated by hand in Roboflow with bounding boxes and masks.

  3. AI: four models, three training stages

    Two detectors (Faster R-CNN, YOLOv5) and two segmenters (U-Net, Mask R-CNN). Each learned basic shapes from a public dataset, was fine-tuned on 50 local beach images, then adapted with 30 curated images to cope with USB-microscope glare.

  4. Evaluation: one fair yardstick

    We converted every model's output into bounding boxes using morphological opening, closing and contour detection, then scored all four on precision, recall and F1 at IoU ≥ 0.5. A Contamination Percentage (Cp) turns detections into an environmental severity measure.

Fig.The iSTEM framework: chemistry, hardware, AI and mathematics in one pipeline.
§ 04

The results

Model comparison on the holdout set
ModelPrecisionRecallF1-score
Mask R-CNN0.77250.82490.7978
Faster R-CNN0.71350.77400.7425
U-Net0.75460.69490.7235
YOLOv50.62150.86190.7222
0.7978best balanced F1, from Mask R-CNN
4 of 4models beat the random-chance baseline (z-test, p < 0.05)
8–11%stable contamination medians from U-Net and Faster R-CNN on beach samples

Each model taught a different trade-off. YOLOv5 catches almost everything but with more false alarms, making it a screening tool. U-Net is the most precise but misses smaller particles, so it works best as a filter. Mask R-CNN is the best all-rounder.

Deep learning is viable for microplastics detection even on a student budget.

Limitations: optical identification only (no FTIR/Raman confirmation), particles must be larger than about 8 µm for the USB microscope, and the educational reflection comes from three student co-authors.

Fig.Precision, recall and F1-score for all four architectures.

Paper & slides

Click any slide to enlarge