Generative AI for industrial inspection

Controllable defect synthesis and few-shot anomaly detection for quality control in manufacturing.

Visual quality control needs examples of defects, yet good factories produce very few of them. This work tackles the data problem from two sides: generating realistic defects to train detectors, and building detectors that need only a handful of examples.

Synthetic defects with COIGAN

COIGAN (Controllable Object Inpainting through Generative Adversarial Network) inpaints defects of a chosen shape and position onto clean images, producing labelled training data for defect detectors. The method was presented at IEEE ICRA 2025 (Biancucci et al., 2025), and its application to anomaly detection was presented at the Ital-IA 2025 workshop “AI per la Robotica” (Narang et al., 2025).

COIGAN in action: a hand-drawn defect mask (left) is inpainted onto a clean concrete surface (centre), producing a realistic crack (right).
The COIGAN inference tool: defect masks are drawn on the left and inpainted onto the input image.

Robotic vision for plastics and packaging

Next-generation robotic vision systems for quality assurance in plastics and packaging were presented at the European Robotics Forum 2024 (Galdelli et al., 2024).

InfinityRobotics (2026)

In the Italian national project InfinityRobotics, I developed and deployed computer vision models with few-shot anomaly detection to improve a manufacturer’s production capacity. The system identifies defects early in the production line from minimal training samples, enabling real-time quality control without large labelled datasets. This reduced material waste and improved product consistency, lowering scrap rates and energy consumption per unit produced.

References

2025

  1. ICRA
    biancucci2025coigan.jpg
    COIGAN: Controllable Object Inpainting Through Generative Adversarial Network for Defect Synthesis in Data Augmentation
    Massimiliano Biancucci, Alessandro Galdelli, Gagan Narang, and 3 more authors
    In 2025 IEEE International Conference on Robotics and Automation (ICRA), 2025
  2. Ital-IA
    Controllable object inpainting through generative adversarial network applied to anomaly detection
    Gagan Narang, Adriano Mancini, Emanuele Frontoni, and 2 more authors
    In Workshop “AI per la Robotica”, Ital-IA 2025 – Convegno Nazionale CINI sull’Intelligenza Artificiale, 2025

2024

  1. ERF
    Next-Generation Robotic Vision Systems for Quality Assurance in Plastics and Packaging
    Alessandro Galdelli, Gagan Narang, Adriano Mancini, and 4 more authors
    In European Robotics Forum, 2024