Skip to content
Deep dive

Context-aware generated defects that form where real ones do

Defects don't appear at random. They come from how a part is made, how it is used and how nature acts on it, so they show up in the same kinds of places every time. We recreate those processes to place each generated defect where it would really form, and every image comes with pixel-exact labels. Two use cases show how it works.

4,000 distinct labeled renders.

Flash on a nylon wall plug, changing between six samplesDatanoc generated image
Injection-molding flash. Forms where the mold parts meet: the parting line round the plug, inside the slit and at the slide.
Rust on a bolted steel connection, changing between six samplesDatanoc generated image
Steel corrosion. Starts where water stays and protection is thin: bolts, seams, edges and ledges.
Our approach

Context is the signal

A model trained on randomly placed defects learns that a defect is equally likely anywhere. It spends its attention on surfaces where defects cannot appear, and misses early defects in the small spots where they really begin. So we start from the context, not the defect.

  • Where it can form: we encode the physics of the process first, from data a manufacturer already has (CAD, tooling sheets, connection details, design guidance) and from how nature acts on the part: water, weather and wear.
  • How it looks: the defect is real geometry and real material, rendered with physically based light, not a texture painted on afterwards.
  • How it varies: size, severity and shape change with every sample.
  • How it is labelled: masks come from the same render pass as the image, so they cannot drift out of sync.
Real defects, cycling: flash on blue molded parts, rust at bolted plates, weld spatter, a crack in a formed sheet, a burn mark on white plastic
Real defects follow the process. Flash at mold seams, rust at bolts and seams, spatter beside a weld, a crack at a formed corner, a burn where trapped air ignited.
Use case 1 · Injection-molding flash

Flash forms where mold meets mold

Flash is a thin fin of plastic that leaks into a gap between mold parts and freezes. No gap, no flash. From the part's CAD and the way it will be molded, we work out where the mold parts will meet, and so where flash can appear, before the first part is made. Here is how we go from a CAD file to labelled images, on an 8 mm nylon wall plug.

01

Start from the CAD and the design sheet

The part as designed, and the molding specification from its design sheet.

Datanoc photorealistic render of the partThe client's CAD model of the part, no materialsClient CADDatanoc render
CAD and render. An 8 mm nylon wall plug. Drag to compare the two.
Top view of the plug with the parting lines in red and the slit shut-off in blue, the close-up area boxed
Flash lines from the molding specification, top view. A two-plate tool opening towards you, with a slide for the collar recess.
02

Find where flash can form on the part

The parting lines mapped onto the 3D part, and the close-up area we render.

The plug with the parting lines in red and the slit shut-off in blue, the mold halves and the slide coloured
Flash lines on the 3D part. From the molding specification, seen from the same view.
Close-up of the ribs with the parting line
Close-up of the ribs we render. Red: parting line, where flash forms. Grey: moving half (ejector side). Orange: fixed half.
03

Generate labelled images of the flash

Flash grown on those lines in the part's nylon, with a mask from the same pass.

Flash renders, changing between six samples
Render. Flash grown on the lines, in grey nylon.
Segmentation masks of the same six samples
Segmentation mask. From the same render pass, so it matches every pixel. Black: background. Blue: flash. Orange: part.

How it works

We read the molding specification from the design sheet and apply it to the part, so we know where the mold halves meet and where flash can form. Flash is then generated on that area only, varying in size and shape from image to image, in the part's own material, with a pixel-exact mask for every image.

SpecificationFrom the design sheetWhat it tells us
Tool conceptTwo-plate tool, opening through the slitThe parting line runs round the plug's outline, along every rib
SlitFormed by core blades from both halvesWhere the blades meet inside the slit, flash can form
Collar recessFormed by a core pin on a slideThe rim of the recess is a flash site too
EjectionEjector pins on one face, size mark on the otherWhich half forms each face
Use case 2 · Steel corrosion

Rust forms where water stays

Coated and bare steel corrodes where moisture lingers and protection is thin, then spreads outward. So the detailing of a structure tells us where corrosion starts. Here is how we go from a model of a bolted steel connection to labelled images with high-fidelity defects.

01

Start from the structure and its setting

The bolted connection as built, and the environment and coating it sits in.

The bolted steel connection before any corrosion
The connection. A column, a beam on web angles, stiffeners, a gusset and M20 bolts.

Part roles

Every surface is a plate, angle, bolt, nut or weld.

Exposure

How each face meets water: upward, downward, enclosed or open.

Environment and coating

Corrosivity class, coating type and age set how far rust has progressed.

02

Map where rust is most likely to start

Corrosion patterns from steel design guidance, combined into one map.

Crevice map
Crevices
Fastener map
Fasteners
Sharp edge map
Sharp edges
Standing water map
Standing water
Combined rust-risk map of the close-up view
Combined map. The four patterns combined into one score. Dark blue stays clean; cream and orange areas rust first.
03

Generate labelled images of the rust

Rust grown from the hotspots in real materials, with a mask from the same pass.

Rust renders, changing between six samples
Render. Rust at bolts, seams and ledges, stains running down with gravity.
Segmentation masks of the same six samples
Segmentation mask. Orange: surface rust. Blue: run-off stain. Green: pack rust. Grey: intact steel.

How it works

We take the places where steel design guidance (ISO 12944-3) says corrosion starts, map each one on the structure and combine them into one rust-risk map. Rust starts at the highest-risk spots and spreads outward as we raise the severity, and stains run down below every rust patch. Each image varies in severity, age and materials, and comes with a pixel-exact mask.

WherePatternWhy it rusts
Seams, laps, under nutsCrevicesWater and salt get trapped and dry slowly
Bolts, nuts and washersFastenersThreads and corners hold less coating
Plate edges, flange tipsSharp edgesCoating pulls thin over sharp edges
Top faces and enclosed ledgesStanding waterWater and debris sit and don't drain
Below rusted areasRun-offRusty water runs down and stains the steel
The counter-example

Same defects, no context

To demonstrate the value of context, we generated both defects a second time: identical in appearance, but placed without any engineering knowledge. The labels are equally precise, yet they teach a model the wrong lesson, that defects can appear anywhere. This is the difference between generic synthetic data and data built on your process.

Six wall plugs with flash in random places, cyclingUninformed synthetic image
Random flash. The same thin flash, placed randomly on the object, where no mold parts meet. No real plug could carry it.
Six randomly placed rust renders, cyclingUninformed synthetic image
Random rust. Same area as the physics version, placed by noise with no context: patches on the open web, bare bolts, no stains.
What this means for you

Data that teaches your model where to look

Fewer false alarms

Defects appear only on surfaces your process can affect, so the model won't flag clean surfaces or irrelevant features like scratches and dirt.

Catch defects early

The data is rich in small, early defects at the seam, the crevice and the bolt, where they start, so they can be caught before they grow.

Start before production

Flash lines and rust hotspots come from the design, so you have your first data before the first part is molded or the structure is installed and exposed to weather.

No labelling bill

Every image arrives with pixel-exact masks. When a design changes, you generate a new set instead of labelling one.

Talk to us about your dataset.

Tell us about your task and the data you have. We will help you find what is missing.