Table of Contents
- NDT algorithm validation: What must be demonstrated?
- Define the function before evaluating performance
- Independent data and representative defects
- Designing a test representative of service conditions
- Probability of detection and false negatives in NDT
- Blind testing and robustness under changing operating conditions
- Acceptance criteria and results traceability
- From algorithm validation to mechanical integrity decisions
- Conclusion
- References
- Frequently Asked Questions (FAQs)
Automated discontinuity detection requires demonstrated sensitivity, control of false negatives, and verification of algorithm performance under representative industrial inspection conditions.
An ultrasonic inspection system analyzes hundreds of inspection records and flags indications requiring review. During initial testing, its results appear consistent. However, when the material, geometry, or acquisition equipment changes, a relevant discontinuity may go undetected. This is why NDT algorithm validation is essential before relying on the results.
This raises an engineering question: how can an algorithm be shown to deliver reliable results beyond the conditions used during its development? The answer lies in independent testing, acceptance criteria, statistical analysis, and controls that establish where the system performs reliably and what its limitations are.
NDT algorithm validation: What must be demonstrated?
When artificial intelligence is used in nondestructive testing, a model may achieve high performance during training but behave differently when processing industrial inspection data. This difference may arise because laboratory conditions do not always reproduce the variability encountered in actual inspections.
The variables affecting data acquisition depend on the testing method. Two examples are:
- Conventional ultrasonic testing and phased array ultrasonic testing (UT/PAUT): Material, discontinuity orientation, sound path, geometry, coupling, and acquisition parameters.
- Digital radiography (DR): Contrast, scatter, spatial resolution, exposure conditions, and detector characteristics.
Other methods, such as time-of-flight diffraction (TOFD) and eddy current testing, have their own influencing variables. In every case, these variables can change the signals received by the algorithm even when the discontinuity remains unchanged. Validation must therefore consider the complete inspection system and its intended application: which indications must be detected, which dimensions are relevant, and which configurations are authorized.
The NIST artificial intelligence risk management framework establishes principles for assessing system validity and reliability, including limitations in generalization. In NDT, successful testing on one family of components does not automatically authorize the use of a model on different materials, geometries, or inspection procedures.
The American Society for Nondestructive Testing (ASNT) is advancing a proposed standard addressing artificial intelligence and machine learning applications in NDT/E. The proposal aims to establish controls for development, validation, implementation, and maintenance. The document remains under development and should not be regarded as an approved standard.
Define the function before evaluating performance
The first decision is to establish which task the algorithm will perform:
- Locate potential indications.
- Classify the type of discontinuity.
- Estimate dimensions such as length, depth, or height.
- Support the inspector’s evaluation of inspection results.
Each function requires different supporting evidence. A model that identifies an indication in an image cannot necessarily determine its depth, and a model that distinguishes porosity from lack of fusion may fail when discontinuities produce similar signals.
Validation must begin with verifiable requirements, application limits, and the consequences of each type of error. It must also establish whether the algorithm will support human review or participate in acceptance decisions.
Independent data and representative defects
One of the most significant risks arises when the images or signals used to evaluate a model are related to those used during training.
Consider a system trained to recognize discontinuities in PAUT data from specific welds. If it is evaluated using other images from the same components, it may be recognizing characteristics of the material, geometry, or acquisition procedure rather than demonstrating an ability to generalize.
This situation is known as data leakage, where information is inadvertently shared between datasets. To prevent it, dataset separation must account for:
- Independent components and test pieces.
- Inspections performed under different conditions or at different times.
- Equipment, probes, and acquisition configurations.
- Materials and geometries representative of the authorized scope.
Independence involves more than using different files. It also requires preventing related records, obtained from the same defects or under nearly identical conditions, from artificially inflating performance metrics.
Designing a test representative of service conditions
The validation dataset must include discontinuities relevant to the intended application, with variations in size, orientation, location, and instrument response. It must also include components without relevant defects and signals generated by geometric features that could be mistaken for indications.
Simply collecting a large number of records is insufficient. If large, readily detectable defects predominate, the results may conceal limitations near the acceptance threshold.
Reference ground truth also has uncertainty
Reference defects must be characterized using appropriate methods, with verifiable information retained regarding their dimensions and conditions. Even so, reference ground truth is not infallible. Metallography, destructive sectioning, another NDT method, or expert consensus each has its own uncertainty. If the reference is incorrect, the algorithm may be penalized for a correct result or rewarded for an incorrect one. It is therefore important to document how the reference was established and the uncertainty assigned to it.
When artificial discontinuities are used, the extent to which they represent damage mechanisms that may occur in service must be justified.
The evaluation must also account for variations among operators and equipment configurations when these fall within the intended scope, without assuming that a controlled test captures all operational variability.
Probability of detection and false negatives in NDT
Overall classification accuracy can be misleading when most inspection records correspond to components without relevant defects.
For example, if a dataset contains 950 records without relevant discontinuities and 50 records with defects, an algorithm that classifies every record as acceptable would achieve 95% accuracy, despite failing to detect all 50 defects. In this case, accuracy does not describe detection capability. Each type of outcome must be evaluated separately using a confusion matrix.
| Outcome | Technical meaning |
| True Positive (TP) | The system correctly identifies a relevant discontinuity. |
| False Negative (FN) | A relevant discontinuity is present, but the system fails to detect it. |
| False Positive (FP) | The system indicates a relevant discontinuity that does not exist according to the reference. |
| True Negative (TN) | The system correctly identifies a case without relevant discontinuities. |
Several metrics can be calculated from the confusion matrix. No single metric is sufficient because false negatives (missed defects) and false positives (false alarms) have different consequences:
- Sensitivity (Recall): The proportion of relevant discontinuities correctly detected, TP / (TP + FN). This metric is most directly related to the risk of missing a defect.
- Specificity: The proportion of cases without relevant discontinuities correctly identified, TN / (TN + FP). It reflects the burden of false alarms.
- Precision: The proportion of flagged indications that actually correspond to defects, TP / (TP + FP). It depends on how frequently defects occur in the evaluated data.
High sensitivity achieved with large defects does not demonstrate equivalent performance for smaller discontinuities. Moreover, sensitivity is a point estimate whose statistical reliability depends on the number of defects evaluated.
How many defects are needed? Statistical uncertainty
Suppose the algorithm detects all 50 defects in the previous dataset. This does not establish a demonstrated sensitivity of 100%. With 50 defects and no misses, the lower bound of a one-sided 95% confidence interval is approximately 94%. With fewer defects, the uncertainty is greater.
In the simplified case of defects of the same size, 29 consecutive detections without a miss demonstrate a 90% probability of detection at 95% confidence. If even one defect is missed, a considerably larger sample is required. Sample size determines which claims can be supported statistically.
Probability of detection (POD) and discontinuity size
It is important to distinguish sensitivity calculated from a dataset from a probability of detection (POD) curve, which describes the detection capability of an inspection procedure as a function of discontinuity size. A favorable confusion matrix does not establish a statistically supported POD level.
ASTM E2862-23 establishes a practice for analyzing detection or nondetection (hit/miss) responses, while ASTM E3023-21 addresses measurable responses related to defect size (â versus a). Both can be used to evaluate inspection procedures incorporating algorithms, provided their applicability requirements are met.
Some evaluations use the a90/95 metric, representing the discontinuity size at which a POD of 90% is demonstrated with 95% confidence. It is not a universal requirement and must be interpreted according to project-specific criteria.
The frequency of false indications must also be recorded. Lowering the decision threshold increases sensitivity but generates more indications requiring investigation. Threshold selection must therefore balance the consequences of missed defects against those of unnecessary verification activities.
Blind testing and robustness under changing operating conditions
In a blind test, reference results are kept independent of the algorithm and the personnel applying it until the test is complete. This prevents decisions from being adjusted during evaluation and allows system behavior to be observed under previously unknown conditions.
Blind testing should include justified variations in material, geometry, resolution, noise, acquisition parameters, and discontinuity types, according to the conditions for which the software is intended to be authorized.
What happens when the equipment or inspection site changes?
Consider an algorithm designed to identify cracks using ultrasonic testing on carbon steel components, which correctly recognizes most indications under a particular configuration. When transferred to another facility, or when frequency, aperture, signal processing, or resolution is modified, differences in attenuation, surface conditions, geometry, and acoustic response may alter the signals received by the model.
Although the software continues to generate results, the error distribution may change, producing more false indications or missed defects. The absence of visible errors in the user interface does not demonstrate that detection capability remains unchanged. Testing must therefore include samples representative of actual inspection conditions.
The NIST AI Risk Management Framework recommends evaluating and documenting systems according to their conditions of use. This principle is useful when conducting comparative tests before introducing new configurations, materials, or model versions.
Inspector assistance versus automated decisions
It is important to distinguish the degree of system autonomy. If the algorithm flags potential discontinuities for examination by a qualified inspector, it assists interpretation. If it makes acceptance or rejection decisions without human review, the required evidence and controls change substantially.
ASTM E3327/E3327M-21 provides guidance on the qualification and control of assisted defect recognition in digital radiography. It distinguishes between assisted systems (AssistDR), which support human evaluation, and automated systems (AutoDR), which may make decisions without inspector intervention. The standard focuses on assisted applications with fixed parameters following qualification and therefore does not authorize the use of systems that continue learning during production.
The human factor: Automation bias
Having the algorithm assist the inspector does not eliminate risk. Automation bias occurs when a person places excessive trust in the system or stops looking for indications the system has not flagged. As a result, the combined inspector-algorithm process may perform worse than the inspector working independently.
In such cases, it is advisable to evaluate the combined performance of the inspector and algorithm, define training requirements and instructions for interpreting system outputs, and establish controls consistent with the system’s degree of autonomy and the consequences of an incorrect decision.
Acceptance criteria and results traceability
NDT algorithm validation requires more than demonstrating that known defects can be identified. It is also necessary to establish who authorizes its use, what documentation supports that decision, and how results outside the authorized limits will be handled.
Acceptance criteria must be defined before testing begins. They may include minimum sensitivity for each discontinuity category, false-negative limits, sizing tolerances, permitted acquisition conditions, and human review requirements.
A technically supported evaluation should retain, at a minimum, the following evidence:
| Element | Required evidence |
| Authorized scope | NDT method, materials, geometries, defects, and algorithm function. |
| Reference data | Data origin, discontinuity characterization, reference uncertainty, and independence from training data. |
| Statistical performance | Sensitivity, specificity, false indications, sample size, confidence intervals, and POD where applicable. |
| Configuration | Algorithm version, equipment, acquisition parameters, and thresholds. |
| Responsibilities | Qualified personnel, review, approval, and handling of inconclusive results. |
| Change control | Modifications requiring full or partial revalidation. |
ISO/IEC 23894:2023 provides guidance on artificial intelligence risk management. It is not an NDT acceptance procedure, but it helps organize risks, failure consequences, and controls throughout the system life cycle.
Evaluating the algorithm before production deployment
Before using the algorithm on a manufacturing line or during field inspections, a parallel operation phase, known as shadow mode, may be introduced. During this phase, the software processes actual inspection records, but its outputs do not replace decisions made under the existing inspection procedure.
The comparison helps identify missed indications, false alarms, and conditions underrepresented during development, without yet assigning the algorithm responsibility for component acceptance.
Parallel operation provides additional evidence of system behavior under production conditions, but it does not replace the formal qualification and validation testing required for the intended application.
When should validation be repeated?
Any change that could affect the results must be evaluated. Changes requiring particular attention include:
- Incorporating new training data.
- Adjusting detection or classification thresholds.
- Replacing sensors or modifying hardware.
- Modifying signal processing.
- Expanding the scope to additional materials or geometries.
Depending on the impact, regression testing, verification using representative cases, or revalidation of the affected scope may be necessary.
Traceability must link each result to the algorithm version used, the acquisition parameters, and the applicable procedure, allowing decisions to be reconstructed without relying solely on the software report.
From algorithm validation to mechanical integrity decisions
An indication correctly identified by an algorithm does not, by itself, constitute a mechanical integrity assessment. Detecting a discontinuity and deciding whether a component can remain in service are separate engineering problems. The first depends on the demonstrated capabilities of the inspection system; the second requires interpreting the findings according to the damage mechanism, dimensions, operating conditions, and applicable acceptance criteria.
In high-risk facilities, a false negative carries much greater consequences than a false alarm. Therefore, the limits of use must be proportional to the demonstrated detection capability.
Conclusion
An algorithm is reliable only under the conditions in which it has been demonstrated to work. NDT algorithm validation involves defining those conditions through independent data, representative discontinuities, statistically supported error analysis, and robustness testing. This allows automation to provide reliable information while ensuring that mechanical integrity decisions remain grounded in technical criteria and appropriate procedures.
References
- Aldrin, J. C., Forsyth, D. S., and Poudel, A. Best Practices for Validation of NDT Techniques Incorporating AI/ML. ASNT.
- ASTM International. ASTM E2862-23, Standard Practice for Probability of Detection Analysis for Hit/Miss Data.
- ASTM International. ASTM E3023-21, Standard Practice for Probability of Detection Analysis for â Versus a Data.
- ASTM International. ASTM E3327/E3327M-21, Standard Guide for Qualification and Control of Assisted Defect Recognition Systems in Digital Radiography.
- NIST. Artificial Intelligence Risk Management Framework (AI RMF 1.0).
- ISO/IEC 23894:2023. Information technology — Artificial intelligence — Guidance on risk management.
Frequently Asked Questions (FAQs)
What does it mean to validate an NDT algorithm?
It means demonstrating, through independent testing and predefined criteria, that the algorithm fulfills its detection, classification, or measurement function within established and documented inspection conditions.
Why is the probability of detection important?
POD helps evaluate how an NDT system’s ability to detect discontinuities varies with their size, revealing limitations that may remain hidden in overall classification metrics.
Is an algorithm with 99% accuracy reliable?
Not necessarily. Accuracy depends on the composition of the evaluated dataset. A model may achieve a high accuracy score while still missing discontinuities that are relevant to component safety.