
How deep learning learns in machine vision systems
Classical image processing follows rules; deep learning learns from examples. The difference is not a slogan: it determines where it pays off, what you must procure, and where disappointment lies.
Classical machine vision: rules, not experience
Traditional machine vision works with hand-crafted features: edge detection, thresholding, morphology, template matching. It assumes rigid positioning, tightly controlled lighting and a well-bounded task. Where the rule can be stated explicitly - dimensional gauging, presence checks, counting - that remains the economical route today.
Training: examples are the program
Convolutional neural networks (CNNs) are not given rules; they are given labeled examples. During training, the network weights adjust so that features extracted from images point toward the label. Augmentation (rotation, brightening, noise) simulates production variance. A model is worth as much as its training data: a non-representative dataset yields good lab results and poor factory results.
The rare-defect problem
Quality inspection has a peculiarity: defective parts are rare - that is the goal. With few defect samples, a classifier can be misleadingly good (always saying "good" and still scoring 99%). The answers are anomaly detection - the model learns the "good" state and flags deviations - and synthetically generated defect images.
Running in the factory
Inference of a trained model can now run integrated into the camera or on edge IPCs, so evaluation can happen right at the production line, without a separate server connection. Physics does not disappear: optics and lighting are still half of the system. And the model is never finished: when the product or process changes, it needs retraining - a deep learning system is an operational commitment, not a one-time setup.
Which one when
Deep learning where the defect is hard to formalize: surface defects on varying textures, organic material, unanticipated cases. Classical systems where the task is precisely definable and measurement is the goal. The two can be combined: the classical channel delivers measured data, the learning channel handles the uncertain cases.
Sources and further reading
- Stanford CS231n: Deep Learning for Computer Vision (course notes)
- Goodfellow, Bengio, Courville: Deep Learning (MIT Press)