Artificial Intelligence in Medical Devices - Part 6 Verification and Validation
By Mitch on Friday, 4 December 2026, 13:22 - Processes - Permalink
One year after safety risks and cybersecurity, we continue this series on Artificial Intelligence in medical devices with the verification and validation (V&V) of AI-enabled medical devices.
V&V for AI isn't a brand-new discipline: the definitions don't change. What changes is where the limit between verification and validation resides, and the fact that AI is tested with statistical, data-driven methods rather than classical scripted tests.
Setting the scope: device V&V versus AI system V&V
Some vocabulary first:
- Verification answers: did we build the device right? Does the software system meet its specifications? This is covered by IEC 62304 clause 5.7.
- Validation answers did we build the right device? Does the device meet the user needs and the intended use, ultimately in clinical settings? This is covered by ISO 13485 clause 7.3.7, and IEC 82304-1 for SaMD.
The AI system (the AI models and their pipeline) can be either a small or a big chunk of the architecture. At one end, it is a small software item embedded in a much larger device. At the other end, it is almost the entire medical device software (MDSW). Likewise, it can play a tiny or major role in the achievement of the device performance, regarding the intended use.
That position is what determines whether testing the AI is more on the verification side or validation side. For example:
- When the AI system is (almost) the whole software system, then testing the AI model's standalone performance is, to a large extent, validating the device.
- Conversely, when the AI system is only one item buried in the architecture, testing the model is more on the verification side, one step on device-level V&V plan.
The standards landscape
ISO 13485, IEC 82304-1 and IEC 62304, these standards are made for classical software and don't answer the question: how to V&V medical device software with AI. They aren't very useful for AI system V&V. This is why two new standards have been created: IEC 63450 and IEC 63521.
IEC 62304
This is our good old waterfall cycle for classical software:
AI training, AI validation and AI test activities are slotted in the traditional development steps:
IEC 63450 Testing of AI/ML-enabled medical devices.
This is the technical verification step: how to test the AI models and pipeline, including techniques such as cross-validation. It can be seen as testing at software item level or verification at medical device level, depending on the importance of the AI pipeline in the device.
Testing, verification, validation, these terms are confusing, IEC 63450 uses the term testing. I don't find it a very good choice. We have to place it in the whole picture:
- From an AI vocabulary perspective, this is AI validation, with techniques like cross-validation,
- From a device perspective this is verification.
IEC 63521 Machine-learning-enabled medical devices, performance evaluation.
This is the validation step: how to evaluate the performance of the ML-enabled device. Performance is at medical device level. However, some performance tests on AI models can be done early in the design, when AI performance can be tested on a test bench (can be a virtual test bench on a tester's PC), not yet integrated in the device. IEC 63521 uses the term performance evaluation. It is a way better choice than the one made for IEC 63450:
- From an AI vocabulary perspective, this is AI testing, showing generalisability of the model with real-world data,
- From a device perspective this is validation.
Where reside verification and validation
As we said: it depends where the AI system resides in the architecture. Two examples to make the distinction.
First case, the AI is a small component
Consider a surgical robot with an AI item that controls the force applied to the patient. The AI item is one component among many: mechanics, sensors, deterministic safety layers, user interface. Testing the AI model against its software requirements (the force stays within the specified range) is verification. Validation happens later, at device level, and covers far more than the AI item.
Second case, the AI is (almost) the whole device
Consider software that detects patterns in medical images. Say, segmenting organs on CT images. Here the AI sub-system is almost all of the MDSW. Testing the AI model's standalone performance is a technical performance validation, and it happens at the end of the SDLC, close to the clinical performance validation. In this case, the AI validation and AI test steps can be mapped to the device V&V.
The four levels of testing
If we take the four classical testing levels we have in the SDLC, we can make an interpretation of AI systems:
- AI software item testing: the SW item is tested standalone.
- Integration of the AI item into the device: IEC 62304 clause 5.6.
- Device (system) testing: IEC 62304 clause 5.7.
- Device validation: IEC 63521 and ISO 13485 clause 7.3.7, including clinical performance.
As you can see in this diagram, IEC 63450 and IEC 63521 are present twice. The question is whether to redo the AI validation step and AI performance tests once the item is integrated into the device. The answer is ... case by case.
Some examples:
- If the layers integrating the pipeline leave the model's inputs and outputs untouched, re-running AI validation and test may be unnecessary.
- If the pre- or post-processing steps change what the model sees or produces, the AI test may be repeated in the integrated system.
- If there is a change of implementation, like standalone AI model validation and test was done on a python version and then is ported to C++ for integration into the software system, then full AI model validation and test are required.
A word on unit tests:
An AI pipeline software item typically decomposes into a pre-processing unit, one or more ML units, and a post-processing unit. The pre- and post-processing units are classical software units, verified with classical scripted and/or automated tests according to IEC 62304 clause 5.5.
Depending on the architecture, it may be possible to view the AI model design steps as software unit testing:
- If the AI model is a small component in the device, AI validation and test may be seen as (a not so satisfying mapping to) software unit testing.
- If the AI model contributes in an essential manner to the device intended use, AI validation may be seen as the software unit testing step, while AI test is at the V&V level.
This mapping of AI validation and testing to unit tests is fundamentally not satisfying for (at least) three reasons:
- IEC 62304 clause 5.5 on unit tests was created at a time where AI models were still in research labs. The aim of clause 5.5 is to have tests methods close to the source code,
- Each time an inference is made, execution walks through the whole model (this is why inference is so expensive for LLM, but this is another subject). There is no such thing as testing the model weights one by one, as would suggest unitary tests,
- From the dataset perspective, taking each item in the dataset as a unit test case makes no sense. There is no such thing as testing the data items one by one. Only the statistical results count.
To make it short, it's not satisfying to map AI validation and AI test steps to unit tests.
Test oracle, ground truth, and reference model
Any test needs a test oracle (expression borrowed from IEC 63450): the source of information that decides whether a test passes or fails. For AI in medical devices, the oracle is often named the ground truth (borrowed from clinical test language) or reference model (borrowed from FDA guidance).
Example with a segmentation model: the oracle is the region of interest (ROI) annotated by experts; the model output is compared against it.
Establishing the ground truth is itself an engineering task, and a source of risk we've already seen in this series: like inter-expert annotation variability. This belongs to the data-management process (more info here).
Performance metrics and acceptance criteria
The performance metric depends on the task accomplished by the AI models. It is not possible to define one-size-fit-all performance metrics. A few common cases:
- Medical image segmentation: overlap metrics such as Intersection over Union (IoU) or the Dice score (see the Metrics Reloaded page for tons of possible metrics. Your case must be there).
- Classification: the classical and well-known area under the ROC curve (AUC).
- Agreement about chatbot output truthfulness: Cohen's kappa, e.g. comparing a medical chatbot's output against annotated reference conversations.
Each metric needs pre-specified acceptance criteria: for example, Dice ≥ 80%, AUC ≥ 99%, or Cohen's kappa ≥ 95%. The criteria must be justified clinically and fixed before the model sees the test data. Tuning the threshold after seeing the test results is not validation, it is optimising on the test set (no, you swear you never did that!).
FDA on test data and dataset segregation
Test data come from the data-management process and must be representative of the intended population. But representativeness is not enough. The FDA is explicit on the independence of test data, and we are going to repeat what has already been said:
- Independence: the device verification data and device validation data come from strictly different sources,
- Sequestration: datasets are segregated. Namely, data scientists training the models shall never see the device validation (a.k.a. AI test) data.
- Multi-centric: device validation data shall come from at least two investigational centres, to avoid a performance collapse when the device meets data from a site it was never tuned on.
Device validation and clinical validation
For AI model performance, the FDA asks the question: is human + AI better than human alone? This question may be a too challenging question or even irrelevant is some cases. Non-inferiority of human + AI vs human alone should be enough in most of cases.
Device verification and validation can be distinguished with these two (too simple) images:
- Verification is performed by engineering teams on their PCs or test benches,
- Usability validation is performed with end-users on final devices ou very advanced RC version,
- Clinical validation is done in real (or sometimes simulated) clinical conditions, with real data.
To reuse the examples above, while device validation (don't confuse with AI validation) is performed with strategies like:
- Medical image segmentation:
- Verification: Segmentations are performed by engineers on some datasets, ensuring computed DICE is within acceptance criteria,
- Validation: three (or more) readers read cases with and without the software, to show the reader-plus-AI condition outperforms the reader alone.
- Classification:
- Verification: Classifications are performed by engineers on some datasets, ensuring computed AUC is within acceptance criteria,
- Validation: A non-inferiority comparison of AI against a gold-standard, to show the AI at least is as good as the gold standard,
- Medical chatbot:
- Verification: The chatbot is fed by engineers a huge datasets of all imaginable formulations, ensuring computed Cohen Kappa is within acceptance criteria,
- Validation: A comparison of the clinician plus chatbot vs the clinician alone, to show the clinicial-plus-chatbot condition outperforms the clinician alone.
But validation sometimes doesn't stop at the review of some AI models results obtained from test datasets. Even if this review is performed by clinical experts.
In cases where the objective is to demonstrate the superiority of human + AI, test on an independent dataset may not be enough. We can then make a distinction between:
- AI model test: mathematical generalizability on an independent test dataset,
- Clinical validation of the device: evaluation of the human-AI team in its actual workflow, where a clinical investigation protocol could have an arm with AI and an arm without AI (current practice).
Conclusion
V&V for AI in medical devices is not so far from what we know for classical software. What changes is the limits between them: it moves with how much AI contributes to the MD intended use.
Some standards are being drafted on this topic: IEC 63450, IEC 63521. But MD manufacturers didn't wait for standards to write their own test plans and acceptance criteria, based on common sense and clinical sense. When they are published, these standards will be helpful for those who will have never performed AI V&V.
As we said in previous posts, the state of the art is still being built.




