Integration of deep generative Anomaly Detection algorithm in high-speed industrial line
Organizations: Department of Engineering, University of Ferrara, Via Saragat 1, Ferrara, 44122, Italy. · Bonfiglioli Engineering, Via Amerigo Vespucci 20, Ferrara, 44124, Italy.
Abstract
Industrial visual inspection in pharmaceutical production requires high accuracy under strict constraints on cycle time, hardware footprint, and operational cost. Manual inline inspection is still common, but it is affected by operator variability and limited throughput. Classical rule-based computer vision pipelines are often rigid and difficult to scale to highly variable production scenarios. To address these limitations, we present a semi-supervised anomaly detection framework based on a generative adversarial architecture with a residual autoencoder and a dense bottleneck, specifically designed for online deployment on a high-speed Blow-Fill-Seal (BFS) line. The model is trained only on nominal samples and detects anomalies through reconstruction residuals, providing both classification and spatial localization via heatmaps. The training set contains 2,815,200 grayscale patches. Experiments on a real industrial test kit show high detection performance while satisfying timing constraints compatible with a 500 ms acquisition slot.
Figures & tables
| Overall results | |||||
|---|---|---|---|---|---|
| R0 | R1 | R2 | R3 | Vial | |
| Threshold | 0.015589 | 0.038017 | 0.046568 | 0.029593 | - |
| Accuracy | 0.9919 | 0.9926 | 0.9957 | 0.9991 | 0.9870 |
| True positive ratio | 0.9966 | 0.9985 | 0.9986 | 0.9994 | 0.9942 |
| True negative ratio | 0.9093 | 0.9044 | 0.9779 | 0.9973 | 0.9581 |
| Balanced accuracy | 0.9530 | 0.9515 | 0.9883 | 0.9984 | 0.9762 |
| Per strip results | |
|---|---|
| Score | |
| Threshold R0 | 0.016156 |
| Threshold R1 | 0.038584 |
| Threshold R2 | 0.046635 |
| Threshold R3 | 0.029660 |
| Accuracy | 0.9593 |
| Per strip results | |
|---|---|
| Score | |
| Threshold R0 | 0.013222 |
| Threshold R1 | 0.034650 |
| Threshold R2 | 0.046201 |
| Threshold R3 | 0.029226 |
| Accuracy | 0.9641 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.