· 2 min read · Meta Smart Factory Team
A defect classifier has to learn every defect from labelled examples, and a good line produces few of them. On a pipe extrusion line we trained on normal production only, with the cameras already installed, and let the model flag whatever does not look like normal pipe.
Ask a quality team for labelled defect images and the answer is usually short: there are not many, because the line mostly makes good product. That is the weak point of classic defect classification, where a model learns each defect type from examples. On the pipe extrusion line in our latest video we went the other way. The model learned what normal pipe looks like, and nothing else.
Four cameras were already on the line, watching the pipe from four sides as it leaves the die. We used them as they were. The model was trained on a short recording of normal production from each camera, with no defect labels at all.
When a spot on the surface does not match what the model learned, a heatmap lights it up. The model does not need to have seen that kind of defect before. It only needs to notice that this part of the pipe looks different from normal pipe.
A single flaw passing four cameras can produce a burst of detections within seconds. If every detection raised an alarm, people would soon stop looking. The system groups the detections from one passage into one clip and one review, so the team sees one item for one flaw.
A person watches the clip and decides. The MES then receives the event, the clip and the metres of pipe it belongs to, which ties the decision to the exact stretch of product.
Anomaly detection answers one question: is this different from normal? It does not say what the defect is called. That is why the review step matters. The person who looks at the clip gives the finding its name and decides what happens to the pipe, and those decisions stay with the event in the MES.
It also depends on normal being stable. The model learns the normal production of one line, so each line gets its own profile.
For inspections where the defect types are known and well documented, a trained classifier with engineered lighting is the usual design, and our guide to cameras and lighting for defect detection covers it. The two approaches answer different questions, and the right one depends on the line.
Rolling the inspection out to another line is the same procedure: record normal production, build that line's profile, start inspecting. Our AI visual inspection page describes the hardware and the integration with quality and MES.
The extrusion line in the video is a 3D reconstruction of a real deployment, and the figures shown in it are illustrative.
Discuss This With Our ExpertsYes, with anomaly detection. The model is trained only on footage of normal production and flags any area that differs from it. It does not name the defect, so a person reviews each finding and decides what it is.
Not always. On the pipe extrusion line in our video, the four cameras that were already installed were used as they were. Whether existing cameras are good enough depends on their position, resolution and the lighting at the line.