Skip to content

← All work

Defect detection for PET parisons before blow molding

A compact vision model that flags defective parisons before inflation, running on a small device on the line.

PET parison inspection data flow Parisons on the production line are imaged by a camera; a CNN running on a small edge device (Raspberry Pi, then a microcontroller via TinyML) flags defective parisons so they are separated before blow molding. New line samples are used to retrain the model. result new samples updated model Production line parisons before blow molding Camera images at the line Edge model CNN · Raspberry Pi → MCU (TinyML) Pass or separate before inflation Retraining augmented samples quantization (QAT) built by Donusoft
How it fits together. Boxes in red are the parts we built.

Client context

A PET packaging manufacturer needed defective parisons detected and separated before the inflation (blow molding) step. The system had to be compact enough to run on a small device integrated directly into the production line.

What we built

  • Collected defective and non-defective parison samples from the line, and used data augmentation to cover a wider range of defect variations.
  • Trained a convolutional neural network (CNN) to classify defective parisons, then retrained it as more line samples came in.
  • Deployed the model on a Raspberry Pi for real-time detection at the line.
  • Applied quantization-aware training (QAT) so the model runs on a microcontroller (TinyML), further reducing device size.

Outcome

The system detects defective parisons in real time before the inflation step, on hardware small enough to mount at the line. Detection performance improved as more production samples were collected and the model was retrained.