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.