Some original image labels are retained; figure captions and explanations are provided in English.

DATA AUGMENTATION AND SYNTHETIC IMAGES

What Is Data Augmentation? Image Augmentation and Synthetic Data Generation

Geometric and photometric transforms are explained alongside the box and mask updates they require. A fine-scratch example derives transformation ranges from physical conditions and examines disappearing small defects and cumulative distortion. MixUp, CutMix and synthetic defects are considered through their gap from real data and a comparison design using a separate real-image test set.

Article sections1. Augmentation is not the same as collecting new data2. Geometric transformations: rotation, flipping, cropping, and scaling3. Photometric transformations: brightness, contrast, color, and noise4. Images and labels must be transformed together5. When should augmentation not be used?6. Designing a validity test for data augmentation7. Cutout, MixUp, CutMix, and similar methods8. What synthetic defect generation is and is not9. Domain gap: the difference between synthetic and real images10. Augmentation should be applied only to training data11. Interactive tool: How is an augmentation policy affected?12. How do you select an augmentation policy?13. Verifying its effect on model learning14. Common mistakes15. Application example: scratch detection on a metal surface16. Conclusion: not more variety, but the right variety17. Transformation ranges learned from the physical process18. Transformation combinations and cumulative degradation19. The relationship between augmentation, resolution, and small defects20. Comparing data augmentation experiments21. Augmentation decisions by label type22. Recording the provenance and quantity of synthetic data23. The transformation policy lifecycle24. Final checks before implementationFrequently asked questions

Data augmentation means applying controlled transformations to existing images so that a model sees more varied examples during training. Slightly rotating a metal part, changing its brightness, or adding a limited amount of noise to an image may improve robustness to certain field variations. However, not every transformation is realistic; some can distort the defect being sought and create mislabeled examples.

The purpose of data augmentation is not to increase the number of files, but to teach the invariances that need to be learned. First define which changes can occur in real production, which appearances alter the product decision, and which types of error the model needs to withstand. This guide provides a technical framework covering geometric/photometric transformations, synthetic defect generation, annotation alignment, domain gap analysis, and augmentation policy evaluation. The visuals were generated synthetically for explanatory purposes; they are not evidence from physical testing.

1. Augmentation is not the same as collecting new data

Generating an existing scratch photograph at ten different brightness levels provides visual variation, but does not provide the same information as having ten separate scratch examples. The scratch geometry, underlying material structure, and shape caused by production remain the same. The number of augmented images should therefore not be confused with the number of independent physical defects. A dataset's real diversity comes from different parts, batches, surfaces, and defect conditions.

Nevertheless, augmentation is an important training tool. For example, small angle variations may be realistic on a line where the product can rotate slightly in its fixture. If brightness varies within a limited range because of the camera's exposure control, mild photometric transformations may be useful. These transformations can reduce the model's memorization of the exact pixel arrangement seen during training. However, if those camera conditions are already completely fixed in production, excessive transformations may introduce unnecessary difficulty.

Measure field variation first: by how many degrees do parts rotate, how much do exposure and lighting levels change, and at what speeds does motion blur occur? Let these data guide the transformation ranges. There is no rule that 'stronger augmentation always provides better generalization.' Especially for very small defects, strong transformations can erase critical pixels.

Examples of image augmentation transformations
Figure 1. Examples of image augmentation transformations. All were generated synthetically.

2. Geometric transformations: rotation, flipping, cropping, and scaling

Geometric augmentation changes the position or shape of the object in an image. Examples include rotation, horizontal/vertical flipping, translation, scaling, cropping, perspective transformation, and elastic transformation. Each may aim to make the model less sensitive to a different change. However, the validity of a transformation depends on product geometry and the decision rule.

For example, rotating a symmetric metal nut by 90 degrees may preserve the label for some tasks. By contrast, flipping an assembly component whose orientation is critical makes a 'correctly positioned' label incorrect. Mirroring text on a product may likewise create an example that does not occur in the real world or has a different meaning. Transformations should not be selected independently of the task.

Cropping narrows the area containing the object but can move the entire defect outside the image. If a crop that loses the defect is still used with a 'defective' label, the model learns an incorrect association. In object detection and segmentation tasks, boxes and masks must be updated after cropping; minimum visibility rules may be useful. Leaving random cropping enabled automatically is particularly risky for small defects.

Scaling can also change the meaning of physical size. If the target is 'is there a scratch?', some scaling may preserve the label. If the target is 'does the scratch exceed the 0.2 mm limit?', the image's pixel scale should not be changed without calibration. Geometric augmentation should be designed with consideration for the physical information represented by the operation performed on the data.

Decision conditions for geometric transformationsRotationIs the orientation label preserved?CroppingDoes the defect remain in the image?ScalingHas the small defect been erased?FlippingIs the product symmetric?Not every transformation is valid for every task.
Figure 2. Decision conditions for geometric transformations. Not every transformation is valid for every task.

3. Photometric transformations: brightness, contrast, color, and noise

Photometric augmentation transforms pixel values, generally without changing image geometry. Brightness and contrast adjustments, color temperature changes, gamma transformations, channel effects, and added noise belong to this group. Their role is to support robustness to expected changes in lighting, the sensor, and the image processing chain.

The same noise model does not apply to every sensor. Particularly in low light, sensor read noise and variability dependent on photon count can behave differently. Simple Gaussian noise can be an initial experiment, but should not be claimed to represent the real sensor's entire noise characteristics. Compression artifacts can be examined separately in systems that use lossy image compression.

Color transformations can erase the defect information itself. For example, if signs of corrosion are observed as a specific change in surface color, intense hue shifts can make the distinction between defective and normal surfaces artificial. Likewise, directly applying color transformations designed for RGB to UV or NIR images may be technically meaningless. Sensor and spectral information are part of the augmentation policy.

Although increasing brightness can improve detail visibility in some images, information is lost when pixel values reach saturation. Excessively brightening dark regions can also create an image distribution that does not exist in real production. Check defect visibility when setting the transformation range; do not use a transformation merely because it makes the image look different.

Example pixel range under photometric changesReference150Dark100Contrast185Overly bright255Illustrative pixel values; excessive glare may cause information loss.
Figure 3. Example pixel range under photometric changes. Illustrative pixel values; excessive glare may cause information loss.

4. Images and labels must be transformed together

In an object detection dataset, if you rotate the image but leave the bounding box at the same coordinates, the label points to the wrong object. A similar error in a segmentation mask directly causes pixel misalignment. Geometric augmentation must therefore apply the same spatial transformation to the image and the associated label targets. Changing the image's colors, on the other hand, generally should not change the mask's class values.

Box coordinates are recalculated after rotation and cropping; an explicit policy is needed for boxes that fall outside the image. Polygon vertices are transformed, and appropriate resampling is used for masks. Applying bilinear interpolation to class masks can create new, invalid class values; a nearest-neighbor approach is generally used for categorical masks. The interpolation choice for the image itself may be different.

If there is a size-threshold or measurement task, the mask's geometric accuracy and relationship to physical units must also be examined. If the object shrinks by a few pixels in the augmented image, a fine crack mask can disappear completely. Updating the label is necessary but not sufficient; the target must be checked to ensure it can still be learned.

Libraries such as Albumentations provide capabilities to update images, boxes, masks, and keypoint targets together for many transformations. Nevertheless, not every transformation should be assumed to support every target type. The support table and visual checks of examples are as important as choosing a library.

Transforming spatial labels together with the image
Figure 4. Transforming spatial labels together with the image. Boxes and masks are associated with the source image.

5. When should augmentation not be used?

Augmentation can be harmful when a transformation changes the meaning of a label. For example, if strong geometric distortion makes characters unreadable in a barcode-reading problem, the example no longer represents the same task. In a system distinguishing product types through color coding, intense color changes may change the class. If part orientation is a quality criterion, the original label may no longer be valid for a horizontally flipped image.

Excessive blur can eliminate a small scratch, intense JPEG compression can create artificial block patterns, and large random erasing operations can remove a critical defect. If the 'defective' label is retained in these cases, an attempt is being made to teach the model to find an invisible defect. If similarly ambiguous images also occur in real production, they may require a separate image quality or image-retaking strategy.

Some transformations are valid only for certain classes. While random cropping may be safe on a good part, it can move the defect outside the image on a defective part. Mild blur may be tolerated for a large, high-contrast dent, yet the same operation destroys critical information in a fine crack. Policies dependent on class and defect morphology may be more meaningful.

Changes that preserve / destroy the defect
Figure 5. Changes that preserve / destroy the defect. Excessive blur and brightness can erase the physical distinction.

6. Designing a validity test for data augmentation

Generate visual quality control examples before using an augmentation policy. Examining hundreds of randomly selected transformations in a gallery reveals which problems occur, especially at extreme values. However, visually pleasing results are not guaranteed to be physically realistic. It is useful for a production engineer and, where necessary, a quality expert to evaluate this gallery.

Validity can be checked with three questions: Does the transformation represent a change that could occur in the field? Does the target label remain valid after the transformation? Does the image still contain the information the model is expected to resolve? For example, if a black triangle created at the image boundary by rotating a part never occurs in real production, the model may adapt to this artificial cue. Appropriate background filling or a narrower transformation range may be necessary.

The statistical distribution of the generated examples should also be checked. If brightness is changed in most normal images but not in defective images, the model may use brightness as a defect indicator. Where class-specific augmentation is needed, its rationale and potential bias should be evaluated explicitly.

Adding transformation parameters and random seeds to the experiment record enables results to be reproduced. Even when random augmentation is used during training, the probabilities and parameter ranges used must be tracked by version.

7. Cutout, MixUp, CutMix, and similar methods

Region occlusion or image mixing techniques can produce strong results in general computer vision. However, their effects in industrial defect detection depend on the task. Cutout or random erasing can cover a real defect. MixUp can soften the training signal by blending images from different classes, but the physical appearance of the defect may become blurred. CutMix transfers a region from one image to another, but the geometry and texture of the source and target surfaces may not match.

Evaluate these methods through pilot experiments rather than leaving them enabled automatically. In particular, consider the probability that region occlusion will overlap the defect in tasks where the defect occupies a small area. Some mixing methods may work if your task is general image classification alone; in systems using object detection or pixel masks, alignment between labels and region boundaries becomes more complex.

Synthetic transformations can sometimes reduce a model's excessive dependence on the image background. However, if mixing creates a physically impossible surface, the model spends time on patterns absent from the real field environment. Being a 'common and modern method' is not sufficient justification for good practice; method selection in an industrial solution must remain tied to the physical environment and operational goal.

8. What synthetic defect generation is and is not

Synthetic defect generation adds a scratch-, stain-, crack-, or dent-like structure to an image of a normal surface. Simple methods use lines and masks; more complex approaches may use texture transfer, physics-based rendering, or generative models. The resulting image attempts to resemble a real defect, but that resemblance does not automatically mean that the production mechanism is represented correctly.

Adding a scratch as nothing more than a light-colored line is easy; a real scratch, however, may scatter light in different directions, cast shadows at material edges, and alter the surface coating. Simple two-dimensional insertion represents these effects incompletely. It is therefore incorrect to count synthetic defect images as 'equivalent new data' without validation against real defects.

Synthetic defects may be useful for specific applications: initial method comparisons, visualizing rare shapes, testing label formats, creating controlled difficult examples, or training experiments alongside real data. However, it must be checked that the model has not adapted only to synthetic defects. A color edge, compression trace, or pasted boundary between the source image and the synthetic image can become a misleading cue.

Adding a synthetic scratch to a normal surface
Figure 6. Adding a synthetic scratch to a normal surface. Synthetic appearance is no substitute for real crack physics.

9. Domain gap: the difference between synthetic and real images

Domain gap is the difference between the image distribution used in training and the target production distribution. This difference can result from synthetic data; it can also arise from a different camera, lighting, product coating, or a change in the image processing chain. If synthetic defects are easy to distinguish from real examples, the model may learn traces of synthetic generation rather than the defect itself.

To understand this risk, examine synthetic and real examples using the same visual criteria. Are defect size, contrast, orientation, surface region, and background distribution similar? Is the influence of ambient light realistic? If synthetic defects are added only to the middle of the part, the model may learn a location cue. Do physically impossible geometries appear? These are the initial questions for checking synthetic data quality.

Another investigation is to examine how a model trained only on synthetic data evaluates real defects. However, this experiment is not sufficient on its own. A baseline trained on real data and an alternative trained on a mixture of real and synthetic data should be compared on the same independent real test sets. If there is an improvement, the defects and conditions in which it occurs should also be reported.

Synthetic-real distribution gapSynthetic sourceSingle textureArtificial edgeNarrow orientation distributionReal productionVaried surfacesDifferent lightingLocation diversityThe domain gap must be measured on an independent real test set.
Figure 7. Synthetic-real distribution gap. The domain gap must be measured on an independent real test set.

10. Augmentation should be applied only to training data

One of the most important experimental rules is to split data before augmentation. If the original image is in the training set and its rotated or brightness-adjusted copy is in the test set, evaluation leakage occurs. All derivatives must remain in the same group as the source image; independent test examples must not be enriched with derived images and mixed into the actual performance report.

The validation set is used for model selection and is generally prepared using fixed operations representative of production images. In some robustness studies, transformed validation sets may also be designed, but their purpose and results should be reported separately. For example, a robustness test can apply low-light simulation to the same images; this result does not replace actual low-light production data.

Retaining the source image identifier in the augmented example's metadata makes data traceability easier. This field is especially important in augmentation systems that generate files offline. The transformation parameters used during training should be linked to the experiment version; a new policy should be compared with previous results on the same test basis.

Split data before augmentation1Original images2Split by partgroups3Augmenttraining only4Independent testAn augmented copy of the original must not enter the test set.
Figure 8. Split data before augmentation. An augmented copy of the original must not enter the test set.

11. Interactive tool: How is an augmentation policy affected?

In the tool below, you can enable brightness, rotation, and blur options to examine the direction of visual change on the same example. This tool does not train a model or replace real production data; it is a limited demonstration for understanding what transformations do. Pay particular attention to why settings that make a fine defect invisible can be risky.

INTERACTIVE EXAMPLEApply transformations to the same image
Transformed illustrative metal part

This is a browser preview; it does not replace an image data or label transformation workflow.

Seeing a visually acceptable change in an image does not mean it is also safe for the label. For example, a defect may end up at the boundary after rotation; a brightness transformation may change a color-based class. The tool's purpose is not to select 'the setting that provides the most variation,' but to help you consider the setting's physical rationale.

12. How do you select an augmentation policy?

A policy defines transformation types together with application probabilities and parameter ranges. Applying every transformation simultaneously to every image is often unnecessary. When multiple transformations occur in succession, the combined image may be unrealistic even if each operation is reasonable on its own. For example, darkening, noise, and blur together may completely eliminate a fine crack.

When designing a policy, first prioritize changes expected in production. Small rotations may be chosen if part orientation varies; limited brightness changes if lighting has a tolerance range; an appropriate noise model if sensor noise is significant. The rationale and upper limit for each transformation should be documented. Transformations unrelated to the environment should not be added merely because they are popular in the literature.

To begin, a simple reference policy can be compared with policies that add transformations one at a time. This makes it possible to identify which transformation helps or harms. Changing many parameters simultaneously makes the cause of a performance increase harder to interpret. Especially with small datasets, variability due to randomness may require several repeated experiments.

Transformation validity: illustrative assessmentSymmetric partOrientation inspectionFine scratchHorizontal flip951070Rotation 5°906575Moderate gamma807580Heavy blur403010Scores are examples; they must be reassessed for each project.
Figure 9. Transformation validity: illustrative assessment. Scores are examples; they must be reassessed for each project.

13. Verifying its effect on model learning

A visually appealing augmentation gallery is only the first step. The actual evaluation compares training with and without augmentation on the same independent real test data. The test dataset should cover new parts, different production batches, and critical defect subtypes. Data version, model family, and the basic training setup should be held as constant as possible in the comparison.

Do not reduce results to a single accuracy figure. Did recall improve under low-light conditions? Did very small scratches disappear? Are acceptable glare examples falsely rejected more often? Did errors increase in classes dependent on product orientation? The aim is to understand which robustness the transformation teaches and which information it damages.

Augmentation can also have computational costs. Intensive geometric transformations during training can create a CPU bottleneck; files duplicated offline increase storage requirements. These costs must be evaluated, but short training time alone does not mean a better engineering solution. Some transformations may be used only in certain mini-batches or applied with lower probability.

14. Common mistakes

The first mistake is augmenting the dataset before splitting it randomly. In this case, the test contains near-duplicates of training examples. The second mistake is using the same transformation for every product; an orientation-critical assembly component and a symmetric gasket do not tolerate the same geometric changes. The third mistake is failing to transform masks and boxes together with the image. The fourth is adding excessive brightness or blur without measuring actual capture conditions.

The fifth mistake is reporting the number of synthetic defects as if it were the number of real, independent defects. The sixth is substituting augmentation for an optical solution: if the camera cannot actually see the defect, augmentation does not guarantee that the model can recover invisible information. The seventh is focusing only on changes in overall accuracy and hiding losses on critical defect subtypes.

The eighth mistake is choosing among many closely related augmentation policies solely by test results. This incorporates the test set into development decisions. Select the policy on validation data; protect the scope of the final test and how frequently it is used.

15. Application example: scratch detection on a metal surface

Suppose the task is to detect fine scratches on a metal part. Assume the part's position in the fixture varies by no more than a few degrees, lighting power fluctuates slightly, and the camera operates under fixed conditions. An initial policy could include small-angle rotation and limited brightness variation. However, visual checks should come first because very strong blur can erase the scratch signal.

If false alarms from normal machining marks appear during validation, examine the conditions under which the optical difference occurs instead of simply applying more augmentation. Limited contrast changes may increase the model's robustness to differences in glare; however, if the physical distinction between a machining mark and an actual scratch is entirely absent from the image, the method will not be sufficient. Different lighting geometry or a second image acquisition may be necessary.

Adding synthetic scratches may be considered as an experiment to supplement limited real defect data. However, the orientation, texture, and contrast distributions of synthetic scratches should be compared with those of real defects. The benefit of synthetic generation should not be treated as established unless improvement is seen on a test made up of independent real parts.

16. Conclusion: not more variety, but the right variety

The value of data augmentation is measured not by how many files it generates, but by how reliably the model behaves under real production variations. A successful policy must be realistic, preserve label meaning, avoid erasing critical defects, and be validated on independent field data. Heavy transformations do not always produce a stronger model; often, simple transformations derived from measured field changes provide more interpretable results.

A good augmentation study leaves clear answers to these questions: Which changes were targeted, which parameter ranges were used, which defects improved, under which conditions did harm occur, and did synthetic examples help on a real test? Without answers, a data augmentation strategy remains merely a technical option rather than an engineering rationale.

17. Transformation ranges learned from the physical process

A data augmentation policy becomes more defensible when it mimics changes measured on the production line. A small field study can estimate the angles through which the product shifts in its fixture, how much camera-to-part distance varies, how lighting power changes between shifts, and how much noise the image acquisition system produces. These measurements prevent arbitrary selection of augmentation parameters.

For example, a brightness distribution can be obtained from reference products photographed during ten different shifts. However, image brightness depends not only on lighting power; product coating and surface geometry also matter. Blindly using the lower and upper histogram limits as the transformation range is therefore insufficient. Camera settings should be fixed as far as possible, and genuinely acceptable field variations should be identified.

It may be useful to divide transformations into two categories. The first represents changes expected in normal production and can be used in the main training policy. The second represents failures, incorrect setup, or unexpected extreme conditions; these are more suitable for separate robustness tests. From a production safety perspective, it may be undesirable for the model to treat an image acquisition failure as 'normal diversity.'

18. Transformation combinations and cumulative degradation

Transformations that seem reasonable individually can produce an excessive result together. A five-degree rotation, a slight brightness reduction, and mild Gaussian blur may each be acceptable, yet together eliminate the visibility of a small crack. Policy design therefore requires checking not only individual transformation limits but also the distribution of combinations.

The probability and order of applying each transformation affect the result. Cropping before rotating may preserve different areas from rotating before cropping. Resizing an image after a geometric transformation can change the pixel width of fine scratches. Properly transforming categorical masks or boxes is mandatory, but coordinate accuracy does not solve the problem if the label's physical meaning has been compromised.

Prepare galleries of extreme examples to evaluate combinations. Show not only average transformations but also combinations of maximum brightness, the largest angle, and the strongest noise. Have experts confirm that the defect remains visible and the product decision has not changed. Overly aggressive transformations may be meaningful only for a dedicated robustness test.

19. The relationship between augmentation, resolution, and small defects

If a small defect is only a few pixels wide in the image, every resampling operation matters. Interpolation during rotation can reduce defect contrast; downscaling can eliminate a fine line entirely; JPEG compression can generate artificial edges. Expecting the model to learn from a real scratch when only compression traces remain after transformation is a serious labeling problem.

For small defects, a clear relationship must be established between image scale and physical size. For example, if a scratch is three pixels wide on average, the detail may not be reliably preserved after a 50 percent reduction in scale. In this example, the validity of a transformation should be evaluated not just by visual aesthetics, but by the defect's signal-to-noise ratio and measurement requirements.

Where necessary, the defect mask can be checked after transformation. If the mask becomes entirely empty, the example's label should be reviewed. However, a nonempty mask does not mean the defect is genuinely visible. A small amount of human review is therefore useful alongside mask-based automated checks.

Image quality for small defectsRotationInterpolation contrast lossDownscalingDefect width decreasesBlurEdge signal is erasedJPEGArtificial blocks may appearTransformations must be tested carefully for defects only a few pixels wide.
Figure 10. Image quality for small defects. Transformations must be tested carefully for defects only a few pixels wide.

20. Comparing data augmentation experiments

A sound experiment does not end when a model trained with augmented data achieves a higher score on a single test. A baseline model, a model using only geometric transformations, a model using only photometric transformations, and a model using a combined policy can be compared under the same data and evaluation conditions. This design helps identify which transformation family provides a benefit. If necessary, parameter ranges can subsequently be narrowed and examined again.

In addition to the overall classification score, performance should be analyzed separately for hard negatives, low-contrast defects, small cracks, shift differences, and examples from new batches. An approach may be unsuitable for the goal if it improves overall performance while missing small defects more often. Especially for critical defects, error costs must be visible in the results table.

Using the same test images to select among many policies reduces evaluation independence. Conduct development trials on validation groups; use protected part or batch groups for the final test. When interpreting results, state limitations such as the small number of independent defects and random differences in training. If augmentation differences are small, do not claim definitive superiority from a single run.

21. Augmentation decisions by label type

In image classification, preserving the label through a transformation often seems sufficient; in object detection, boxes must also be updated, as must masks in segmentation and coordinates in keypoint detection. However, every task has additional constraints. A classification label may no longer be valid in a cropped image. Even if a segmentation mask is correctly transformed, a very fine defect may disappear because of interpolation. A visibility rule is needed if some boxes fall partly outside the image.

In scenes with multiple objects, object-label relationships must also be tracked. After augmentation, the boxes of two objects may overlap, one object may move entirely outside the image, or a truncated object may retain an incorrect class. In industrial identification and OCR tasks, mirroring can change the meaning of characters; random perspective distortion may make a barcode unreadable. This is why the same library should not be used with the same policy for every task.

Even if transformations appropriate to the label type are technically supported, whether the change actually occurs under field conditions should be reassessed. A 'supported transformation' and a 'valid industrial example' are different concepts.

22. Recording the provenance and quantity of synthetic data

A synthetic defect generation system should record which original normal image it used, which defect template or generation method it applied, and which parameters it operated with. A synthetic example must not be labeled as a real defect; the source and generation method must be stated clearly. If the model is found to have memorized synthetic traces, this information makes it easier to identify which examples may have been affected.

The proportion of synthetic data in the overall training data should also be reported. As this proportion grows, the training distribution can move further away from real production. There is no single universal percentage for how much synthetic data is useful. Starting small and examining the difference on an independent real test is more controlled than arbitrary high-volume generation. Particularly when real defect examples are scarce, adding synthetic data may produce an apparently large improvement while providing limited actual transfer.

When generated examples are used as public examples or in product demonstrations, an 'illustrative/synthetic image' notice should be added. This notice is not merely an ethical note; it prevents users from misunderstanding how scratches and dents look in actual production. Technical content thus clearly separates experimental results from demonstration material.

23. The transformation policy lifecycle

An augmentation policy may work well in initial training but lose validity when production conditions change. A new camera, a different lens, a surface coating, a product revision, or a change in lighting setup may alter the variation encountered by the model. The old policy should not automatically be used under every new condition. The development team should examine the data acquisition profile together with historical error analysis.

If model errors concentrate in a new situation, first look for a physical cause. For example, if false rejections increase during the night shift, widening the brightness augmentation range may be an option; however, if camera exposure is faulty, the actual solution may be technical maintenance. Augmentation should not be presented as a corrective method that replaces hardware.

For each policy version, retain the transformations used, parameter ranges, sampling probabilities, label transformation rules, and independent test result. Policy changes should also be tracked together with the model version. This discipline helps the next engineer understand why particular transformations were chosen and reduces unnecessary experiments.

24. Final checks before implementation

A brief technical review of the augmentation policy should be performed before publication or production training. For each transformation, document the physical rationale, possible label change, limit value, expected benefit, and method for measuring success separately. If you cannot explain a photographic transformation to the production team, reconsider whether it is genuinely necessary. A simple but justified policy is easier to audit than a combination of many random operations.

In the visual inspection gallery, pay particular attention to small defects, normal marks confused with reflections, product edges, and masks that move outside the image. Check that there is no group overlap between original test images and training derivatives. Retain the source and generation method of synthetic examples. These checks alone do not demonstrate that the model will perform well, but they make the experiment interpretable.

The final decision must come from independent real production data. If a transformation helps only on an augmented test, its field benefit has not yet been demonstrated. If the model will be used with a new camera or product type, an evaluation representing those conditions is required. Data augmentation can thus become a traceable engineering decision rather than merely an experimental option.

It is also useful to add a small 'transformation dictionary' to the augmentation policy's technical requirements document. Each transformation's name, application probability, parameter range, affected label types, and cancellation condition can be viewed in one place. This prevents experimental settings from remaining only in team members' personal notes. If two training runs with the same model architecture use different transformation policies, a possible cause of the difference in results becomes easier to trace.

Dependence on the source image is particularly important for synthetic images. One hundred different artificial cracks generated from the same good surface should not be treated as one hundred different physical products. Even if useful in training, images derived from the same source can make actual generalization ability appear higher than it is when used for independent testing. Data provenance and group identity must therefore be preserved in augmented examples as well.

Recording visual inspection findings by class provides one final benefit. Some transformations may look natural on normal surfaces yet appear incorrect in images containing scratches or dents. A policy decision should therefore be made on a control set selected from critical and difficult defects, not by looking at a few attractive examples. Recording the data version this control set came from, the approving expert, and rejected transformation examples creates a useful knowledge base for future model versions.

Frequently asked questions

Does augmentation really enlarge the dataset?

It increases the visual variations seen in training, but not the number of independent physical defects or products. Images derived from the same source must be kept in the same group.

Is rotating every image useful?

No. If part orientation matters for the class or acceptance decision, some rotations and flips corrupt the label. The transformation range should be based on actual production movement.

Do synthetic defects replace real defects?

Generally not. Synthetic data may be useful for specific experiments but may not fully represent how a production defect interacts with light and the surface. Benefits must be validated using independent real examples.

Is augmentation applied to test images?

Normally not in the final test of natural field conditions. Controlled transformations may be applied as part of a separate robustness test; its results should be reported separately from actual field performance.

Sources and technical references

The links are primary dataset and tool documentation relevant to the topic. Illustrative numbers and original drawings are used for educational purposes in the indicated areas.

  1. Albumentations: Transformation support by target type
  2. Albumentations: Image augmentation fundamentals
  3. MVTec AD 2: official dataset
Visuals: synthetic images generated for educational purposes and original technical diagrams. Example rates and experimental scenarios are hypothetical unless otherwise stated. They must not be used as actual field results or certified measurements.
This content is designed to be read independently. Process, quality, and safety requirements must be verified on site before applying it to an actual production line.