From design controls to post-market surveillance: cryptographic phase gates for an AI-enabled medical device. Six phases, three namespaces, one Merkle root that the manufacturer, the Notified Body, and the FDA reviewer all verify independently.
Who this is for: Medical device manufacturers developing AI/ML-enabled SaMD, regulatory affairs teams preparing 510(k)/De Novo/PMA submissions, quality management system (QMS) owners, Notified Bodies conducting EU MDR conformity assessments, FDA CDRH reviewers evaluating PCCP proposals, clinical affairs teams designing post-market surveillance, biostatisticians validating clinical performance, and hospital IT teams deploying SaMD into clinical workflows.
SWT3 is an industry-agnostic cryptographic witness protocol. The evidence described in this guide is identical regardless of medical specialty, deployment geography, or risk classification. This guide maps that universal evidence to FDA, EU MDR, and EU AI Act requirements so manufacturers and assessors can verify compliance using independently verifiable cryptographic proof.
What SWT3 does and does not do. SWT3 witnesses evidence that the manufacturer produces. It records that a clinical performance evaluation was conducted, what metrics were measured, and when. It does not evaluate whether the clinical performance is adequate. It does not determine whether a model is safe or effective. It does not replace the Notified Body's conformity assessment, the FDA reviewer's scientific judgment, or the clinical team's medical expertise. The manufacturer generates the evidence. The assessor interprets it. SWT3 provides the cryptographic chain that connects them. The witness is not the judge.
A Software as a Medical Device (SaMD) is not a static product. The model that receives regulatory clearance on day one will drift, degrade, and eventually require replacement. The training data that defined the model's performance boundaries will age as clinical practice evolves, imaging equipment changes, and patient demographics shift. The regulatory clearance itself is not permanent: it is conditional on the manufacturer maintaining the safety and effectiveness that justified the original authorization.
This creates a lifecycle evidence problem that no other medical device category faces. A titanium hip implant does not change its material properties after implantation. A cardiac pacemaker's firmware is frozen at manufacturing. But an AI radiology model that was validated on 50,000 chest X-rays from three academic medical centers may encounter imaging protocols, patient populations, and pathology distributions in community hospitals that differ significantly from its training data. When performance degrades, the manufacturer must demonstrate that the degradation was detected, evaluated, and addressed within the boundaries of the authorized change control plan.
Today, that evidence chain is fragmented. Design history files live in a document management system. Clinical performance data lives in a validation database. Post-market surveillance reports live in a regulatory information management system. When a Notified Body or FDA reviewer asks "show me the evidence chain from the original intended use through every model update to the current deployed version," the answer involves assembling documents from five different systems, cross-referencing version numbers manually, and hoping that nothing was lost in a system migration.
A SaMD lifecycle has a unique property: the product changes after regulatory clearance, and each change must be evaluated against the original authorization. The Predetermined Change Control Plan (PCCP) defines which changes are pre-authorized and which require a new submission. SWT3 witnesses the boundary between these two categories. Every model update either falls within the PCCP envelope (witnessed as a governed change) or crosses the boundary (witnessed as a new-submission trigger). The Merkle tree makes this boundary visible, verifiable, and permanent.
The manufacturer proves the change was governed. The Notified Body verifies independently. The FDA reviewer traces the full chain. One root hash. No trust required.
The product is an AI-powered chest X-ray triage system deployed in emergency departments. The system analyzes incoming chest X-rays and assigns a priority score. Suspected critical findings (pneumothorax, large pleural effusion, mediastinal widening) are flagged and moved to the top of the radiologist's worklist. The radiologist makes all diagnostic decisions; the AI determines the reading order.
The stakes are not abstract. A tension pneumothorax is a life-threatening emergency. If the AI misclassifies a tension pneumothorax as normal and places it at the bottom of the queue, the patient may wait four hours for a read instead of four minutes. The difference between a correctly prioritized image and a missed critical finding is the difference between a chest tube in the ED and a code blue in the waiting room.
| Jurisdiction | Classification | Pathway | Key Requirements |
|---|---|---|---|
| United States | Class II (De Novo) | FDA De Novo | GMLP, clinical performance, PCCP, labeling |
| European Union | Class IIa (Rule 11) | EU MDR, Notified Body | Annex I GSPR, Annex II/III technical documentation, clinical evaluation, PMS plan |
| Role | Party | Primary Interest |
|---|---|---|
| Manufacturer | MedTech AI company | Regulatory clearance, post-market compliance, model performance |
| Notified Body (EU) | TUV SUD, BSI, DEKRA, etc. | Conformity assessment per EU MDR Annex IX/XI, technical documentation review |
| FDA Reviewer (US) | CDRH, OHT | De Novo authorization, PCCP evaluation, post-market reporting |
| Clinical Team | Emergency radiologists | Triage accuracy, false negative rate, workflow integration |
| Hospital IT | Deploying institution | PACS integration, PHI handling, uptime, model version tracking |
| QMS Owner | Manufacturer quality | Design history file integrity, CAPA integration, audit readiness |
| Clinical Affairs | Manufacturer clinical team | Clinical evaluation, PMS plan execution, vigilance reporting |
Assessor Note
IMDRF categorizes SaMD by significance of information (treat/diagnose/drive/inform) and health condition severity (critical/serious/non-serious). This triage system "drives clinical management" for a "serious" condition (pneumothorax), placing it in IMDRF Category III. Under EU MDR Rule 11, software intended to provide information used to make decisions with diagnosis or therapeutic purposes is Class IIa (or higher if the decision could cause death or irreversible deterioration). The classification determines the conformity assessment route, which determines the depth of Notified Body review. Verify the classification before reviewing the evidence chain.
The SaMD lifecycle follows six phases. Each phase must gate-clear before the next begins. This is not a suggestion: it is how the Merkle structure enforces sequencing. A model cannot enter clinical validation before the training data governance is complete. A regulatory submission cannot be filed before verification and validation results are anchored. The cryptography enforces what the quality management system promises.
| Phase | Duration | Key Activities | Gate Criteria |
|---|---|---|---|
| 1. Design Controls & Data Governance | 6-12 months | Intended use definition, training data curation, labeling protocol, feature engineering, risk analysis (ISO 14971) | Intended use documented, training data provenance verified, labeling inter-rater agreement above threshold, risk analysis complete |
| 2. Verification & Validation | 3-6 months | Clinical performance testing, bias evaluation across demographics, ground truth establishment, robustness testing | Sensitivity/specificity meet predetermined criteria, demographic subgroup performance within bounds, robustness tests passed |
| 3. Regulatory Submission | 3-12 months | FDA De Novo preparation, EU MDR technical documentation, PCCP definition, clinical evaluation report | Submission accepted, PCCP approved (FDA) or technical documentation reviewed (NB), CE marking issued |
| 4. Post-Market Surveillance | Ongoing | Real-world performance monitoring, complaint trending, vigilance reporting, PSUR/periodic safety updates | Performance within predetermined limits, no unresolved safety signals, PMS reports filed on schedule |
| 5. Model Update Cycle | Recurring | Retraining with new data, PCCP evaluation, regression testing, change impact assessment | Change within PCCP envelope (governed update) or new submission triggered (boundary crossed) |
| 6. Decommission / Recall | 1-3 months | Model retirement, field safety corrective action, transition plan, revocation | All deployed instances deactivated, transition evidence recorded, revocation anchors minted |
Notified Body Note
EU MDR Article 83 requires manufacturers to have a post-market surveillance system proportionate to the risk class. For Class IIa SaMD, this means a PMS plan (Article 84), periodic safety update reports (PSUR, Article 86 for Class IIa and above), and a post-market clinical follow-up (PMCF) plan per Annex XIV Part B. The phase gate structure makes it straightforward to verify that PMS obligations are being met: the Phase 4 gate requires witnessed evidence of ongoing monitoring, not just a plan document. If the monitoring evidence stops, the gate does not advance, and that gap is permanently visible in the Merkle tree.
A SaMD lifecycle touches three SWT3 namespaces. The HCF (Healthcare) namespace addresses clinical-specific requirements. The AI namespace covers model governance applicable to any AI system. Together, they provide end-to-end evidence from training data curation through post-market model retirement.
| Procedure | What It Witnesses | SaMD Application |
|---|---|---|
| HCF-DX.1 | Diagnostic accountability | AI confidence score vs. clinical threshold for pneumothorax detection. Ground truth match rate against radiologist-confirmed diagnoses |
| HCF-RX.1 | Prescription safety | For treatment-recommendation SaMD: drug interaction checks, contraindication flags, dosing validation |
| HCF-PRIV.1 | PHI access audit | Patient consent verification for training data, HIPAA BAA compliance, de-identification attestation |
| Procedure | What It Witnesses | SaMD Application |
|---|---|---|
| AI-MDL.1 | Model weight integrity | Hash of deployed model weights matches authorized version in design history file |
| AI-MDL.2 | Model version tracking | Version lineage from training through deployment, PCCP change tracking |
| AI-MDL.3 | Configuration hash | Inference pipeline configuration (threshold, preprocessing, ensemble weights) |
| AI-MDL.4 | Provider model identification | Foundation model identity if transfer learning or fine-tuning is used |
| AI-DATA.1 | Data lineage | Training dataset provenance: source institutions, collection dates, IRB approvals |
| AI-DATA.2 | Data quality assurance | Labeling inter-rater agreement (kappa), image quality filtering, duplicate detection |
| AI-DATA.3 | Data retention | Training data retention period, deletion schedules, GDPR data subject requests |
| AI-DATA.4 | Bias auditing | Demographic distribution in training data: age, sex, ethnicity, imaging equipment manufacturer |
| AI-DATA.5 | Consent verification | Patient consent for use of imaging data in AI training, institutional data use agreements |
| AI-DRIFT.1 | Drift detection | Performance metric shifts over time: sensitivity decline, false positive rate increase |
| AI-DRIFT.2 | Consequence-mapped thresholds | Drift thresholds tied to clinical impact: a 2% sensitivity drop for pneumothorax is not equivalent to a 2% drop for rib fracture |
| AI-FAIR.1 | Fairness metric tracking | Performance parity across demographic subgroups in validation and post-market data |
| AI-FAIR.2 | Demographic parity | Sensitivity/specificity breakdowns by age group, sex, and ethnicity |
| AI-EXPL.1 | Feature attribution | Saliency maps, attention heatmaps showing which image regions drove the classification |
| AI-EXPL.2 | Decision explanation | Human-readable explanation of triage priority assignment for clinical transparency |
| AI-HITL.1 | Human oversight records | Radiologist override rate, disagreement patterns, escalation triggers |
| AI-HITL.2 | Meaningful human review | Evidence that radiologists are reviewing AI output rather than rubber-stamping |
| AI-HITL.3 | Decision override logging | When a radiologist disagrees with the AI priority, the override and rationale are recorded |
| AI-SAFE.1 | Safety guardrails | Fallback behavior when the model cannot classify (indeterminate cases go to radiologist, never suppressed) |
| AI-ROBUST.1 | Robustness testing | Performance under image degradation: low dose, motion artifact, portable vs. fixed equipment |
| AI-PERF.1 | Performance metrics | Sensitivity, specificity, PPV, NPV, AUC at each evaluation point |
| AI-AUDIT.1 | Assessment objective completion | Traceability of each design control step to its verification evidence |
| AI-GOV.1 | Risk management scope | ISO 14971 risk analysis scope definition, intended use boundaries |
| AI-GOV.2 | Risk register | Identified hazards, estimated risk levels, risk control measures implemented |
| AI-INCIDENT.1 | Adverse event logging | Field safety events, vigilance reports, CAPA triggers |
| AI-REV.1 | Model revocation | Model recall: deployed version deactivated, reason code recorded, transition evidence |
| AI-CHAIN.1 | Lifecycle chain linking | Links design control anchors to validation anchors to deployment anchors to PMS anchors |
| AI-DPIA.1 | Impact assessment | GDPR Article 35 DPIA for processing patient imaging data, EU AI Act Article 27 FRIA |
| AI-ASSESS.1 | Capability assessment | Predetermined performance criteria against which the model is evaluated at each lifecycle stage |
| AI-SBOM.1 | Software bill of materials | Third-party libraries, frameworks, and dependencies in the inference pipeline. FDA recommends SBOM for all devices with software (Oct 2023 guidance). EU CRA Article 10(9) requires machine-readable SBOM |
No other evidence system spans from training data consent (AI-DATA.5) to diagnostic confidence (HCF-DX.1) to model recall (AI-REV.1) in one verifiable structure. The Merkle tree links the IRB approval for the training dataset to the clinical performance on the 100,000th real-world inference. When the Notified Body asks "was this model validated on representative data?" the answer is not a narrative claim in a clinical evaluation report. It is a chain of witnessed leaves: AI-DATA.1 (provenance) linked to AI-DATA.4 (bias audit) linked to AI-FAIR.1 (performance parity) linked to HCF-DX.1 (clinical threshold). Every link is independently verifiable.
The SaMD lifecycle Merkle tree has three tiers: structure root, phase roots, and milestone leaves. Each validation test, regulatory event, or performance measurement becomes a leaf with a unique cryptographic fingerprint. The fingerprint is independently verifiable by any party at sovereign.tenova.io/verify.
Structure Root: "RADIOLOGY-TRIAGE-V2"
|
+-- Phase 1: Design Controls & Data [GATE_OPEN]
| +-- MS: Intended Use Definition (AI-GOV.1 PASS)
| +-- MS: Training Data Provenance (AI-DATA.1 PASS, AI-DATA.5 PASS)
| +-- MS: Labeling Protocol (AI-DATA.2 PASS, kappa=0.87)
| +-- MS: Risk Analysis (AI-GOV.2 PASS, ISO 14971)
| +-- MS: Bias Audit (AI-DATA.4 PASS, AI-FAIR.1 PASS)
|
+-- Phase 2: Verification & Validation [GATE_OPEN]
| +-- MS: Clinical Performance (HCF-DX.1 PASS, sens=0.94, spec=0.91)
| +-- MS: Demographic Subgroup Analysis (AI-FAIR.2 PASS, 8 subgroups)
| +-- MS: Robustness Testing (AI-ROBUST.1 PASS, 4 degradation modes)
| +-- MS: Explainability Validation (AI-EXPL.1 PASS, saliency maps reviewed)
|
+-- Phase 3: Regulatory Submission [GATE_OPEN]
| +-- MS: FDA De Novo Filed (AI-AUDIT.1 PASS)
| +-- MS: EU MDR Technical Doc (AI-AUDIT.1 PASS)
| +-- MS: PCCP Defined (AI-MDL.2 PASS, 3 change categories)
| +-- MS: CE Marking Issued (AI-CHAIN.1 links to Phase 1+2)
|
+-- Phase 4: Post-Market Surveillance [GATE_BLOCKED]
| +-- MS: Q1 Performance Report (AI-PERF.1 PASS, HCF-DX.1 PASS)
| +-- MS: Q2 Performance Report (AI-DRIFT.1 ... in progress)
| +-- MS: Complaint Trending (pending)
|
+-- Phase 5: Model Update Cycle [locked]
+-- Phase 6: Decommission / Recall [locked]
SaMD lifecycle mid-deployment: Regulatory clearance complete, PMS in progress. Q2 drift monitoring blocking the gate.
Assessor Note: Version Lineage
The structure root includes a version identifier ("RADIOLOGY-TRIAGE-V2"). When the manufacturer releases a model update, the new version gets its own structure linked to the original via AI-CHAIN.1. This creates a version lineage that is traceable back to the original design controls. During a conformity assessment, verify that every deployed version has a complete phase gate chain and that no version was deployed without passing through Phases 1-3. A version that appears in Phase 4 (post-market) without Phase 2 (validation) leaves in its chain is a finding.
IEC 62304 defines the software lifecycle process for medical device software. It requires design inputs, design outputs, verification, and validation at defined stages. For AI-enabled SaMD, the design controls phase is more complex than traditional software because the "design" includes the training data, the labeling protocol, the model architecture, and the performance criteria, not just source code.
IEC 62304 classifies software into three safety classes based on the severity of harm that could result from a software failure. For AI SaMD, the safety classification determines the depth of lifecycle documentation required:
| IEC 62304 Class | Potential Harm | Documentation Depth | AI Triage Example |
|---|---|---|---|
| Class A | No injury or damage to health | Basic lifecycle | Administrative scheduling tool |
| Class B | Non-serious injury | Intermediate lifecycle | Incidental finding flagging (non-urgent) |
| Class C | Death or serious injury | Full lifecycle with detailed unit-level documentation | Critical finding triage (pneumothorax, PE) |
A chest X-ray triage system that prioritizes critical findings is Class C under IEC 62304: a missed tension pneumothorax can cause death. This means every phase gate requires the full documentation depth. The Merkle tree structure does not change between classes, but the number of required milestones within each phase increases with the safety classification. A Class A device may have 3 milestones in Phase 1; a Class C device may have 12.
EU MDR requires manufacturers to maintain a quality management system per ISO 13485. The phase gate structure does not replace the QMS; it integrates with it. Design control milestones in Phase 1 correspond to ISO 13485 Section 7.3 (design and development) records. Validation milestones in Phase 2 correspond to Section 7.3.6 (design validation) records. The Merkle tree provides the cryptographic integrity layer on top of the QMS document management system. When the Notified Body audits the QMS, the phase gate evidence demonstrates that design control procedures were not just documented but executed in sequence with verifiable outputs.
Notified Body Note: QMS Audit Integration
During an ISO 13485 audit, verify that the manufacturer's QMS procedures reference the phase gate milestones. A QMS that describes a design review process (ISO 13485 Section 7.3.5) should produce a design review record that is also witnessed as a Phase 1 milestone. If the QMS records and the Merkle tree tell different stories (different dates, different versions, different approvers), that discrepancy is a finding. The two evidence systems should be consistent because they describe the same events.
The training data for a radiology AI is not just a dataset. It is a chain of decisions: which institutions contributed images, what inclusion/exclusion criteria were applied, who labeled the images, what protocol governed disagreements between labelers, and whether the demographic distribution reflects the intended use population.
SWT3 witnesses each of these decisions as a milestone in Phase 1:
# Phase 1: Training Data Governance
from swt3_ai import Witness
witness = Witness(
endpoint="https://sovereign.tenova.io",
api_key="axm_live_...",
tenant_id="RADIOLOGY-TRIAGE-V2"
)
# Witness training data provenance
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="design-controls",
milestone="training-data-provenance",
procedure="AI-DATA.1",
factor_a="chest_xray_dataset_v3", # dataset identifier
factor_b="52847", # total images
factor_c="3_institutions_irb_approved" # source summary
)
# Witness labeling inter-rater agreement
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="design-controls",
milestone="labeling-agreement",
procedure="AI-DATA.2",
factor_a="cohen_kappa", # agreement metric
factor_b="0.87", # kappa score
factor_c="3_radiologists_board_certified" # labeler qualifications
)
Clinical Note
A kappa score of 0.87 indicates strong inter-rater agreement, but kappa alone does not capture all labeling quality dimensions. For pneumothorax detection, verify that the labeling protocol included sub-classification (small vs. tension), that edge cases were adjudicated by a senior radiologist, and that the ground truth included confirmation from CT or clinical follow-up where available. A labeling protocol that accepts only "present/absent" for pneumothorax may miss the clinical severity gradient that the triage system needs to prioritize correctly.
The risk analysis for AI SaMD must address hazards unique to machine learning: training data bias, distribution shift, adversarial inputs, and the interaction between AI output and clinical workflow. ISO 14971 requires that each identified hazard has a risk control measure and that the residual risk is acceptable. SWT3 witnesses the risk register (AI-GOV.2) and links each identified hazard to the corresponding verification evidence.
For a triage system, the highest-severity hazard is a false negative on a critical finding. The risk control is the fallback behavior: when the model cannot classify an image with sufficient confidence, the image is routed to the radiologist at normal priority rather than suppressed. The fallback behavior is witnessed as AI-SAFE.1.
Assessor Note: Risk Control Verification
Verify that every high-severity hazard in the risk analysis (AI-GOV.2) has a corresponding verification milestone in Phase 2. A risk analysis that identifies "false negative on pneumothorax" as a critical hazard but has no corresponding HCF-DX.1 milestone measuring pneumothorax sensitivity is an incomplete control loop. The Merkle tree makes this gap immediately visible: the Phase 1 risk register leaf references a hazard ID, and the Phase 2 validation leaves should reference the same hazard ID as the test objective.
The Predetermined Change Control Plan (PCCP) is unique to AI/ML medical devices. It defines in advance which types of model changes are pre-authorized by the FDA and which require a new regulatory submission. This is the most consequential decision boundary in the SaMD lifecycle, because it determines whether a model update takes two weeks (governed change) or two years (new submission).
Assessor Note: PCCP Guidance Is Evolving
The categories below are illustrative. FDA's PCCP guidance framework evaluates changes along multiple dimensions including modification type, performance impact, and intended use scope. Manufacturers should follow the latest FDA PCCP guidance (most recently updated in the Marketing Submission Recommendations for a Predetermined Change Control Plan for AI/ML-Enabled Device Software Functions). The Merkle tree witnesses whatever categorization framework the manufacturer adopts; the protocol is agnostic to the specific PCCP structure.
| Category | Description | Example | Regulatory Action |
|---|---|---|---|
| Category A: Within PCCP | Change matches a pre-defined modification type, stays within predetermined performance limits | Retraining with additional chest X-rays from a new institution, sensitivity stays above 0.90 | Governed update. Document and deploy. No new submission. |
| Category B: PCCP Boundary | Change is of a pre-defined type but performance approaches or reaches predetermined limits | Retraining causes specificity to drop to 0.85 (predetermined floor: 0.84) | Enhanced documentation. Internal review. Deploy with heightened monitoring. |
| Category C: Outside PCCP | Change type not anticipated in the original PCCP, or performance exceeds predetermined limits | New indication (triage for rib fractures, not in original intended use), or sensitivity drops below 0.90 | New regulatory submission required. |
SWT3 records every model update as a Phase 5 milestone. The milestone captures: the change description, the PCCP category determination, the performance metrics before and after the change, and the authorization decision. This creates a permanent record of whether each change was evaluated against the PCCP and which category it was assigned.
# Phase 5: Model Update - PCCP Category A (governed change)
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="model-update",
milestone="retrain-v2.3-new-institution",
procedure="AI-MDL.2",
factor_a="pccp_category_a", # within PCCP envelope
factor_b="sensitivity_0.943_to_0.947", # before/after metrics
factor_c="approved_qa_lead_hash_b7f2" # authorization
)
# Witness the drift check that triggered the update
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="model-update",
milestone="drift-trigger-v2.3",
procedure="AI-DRIFT.1",
factor_a="specificity_decline_detected",
factor_b="0.912_to_0.891", # the drift that triggered retraining
factor_c="threshold_0.880" # predetermined monitoring threshold
)
The PCCP is the most valuable regulatory innovation for AI medical devices. Without it, every model update requires a new regulatory submission, which means the model is effectively frozen after clearance. With a well-defined PCCP, the manufacturer can continuously improve the model while maintaining regulatory compliance. SWT3 makes this possible by providing the evidence chain that proves each update was evaluated against the PCCP criteria. The alternative is a spreadsheet, and spreadsheets do not have cryptographic integrity.
Notified Body Note: PCCP Review
When reviewing a manufacturer's PCCP during conformity assessment, check the Phase 5 history in the Merkle tree. Look for: (1) updates that were categorized as Category A but show performance changes near the predetermined limits (potential under-classification), (2) a pattern of exclusively Category A determinations (no model change is ever outside the PCCP, which may indicate the PCCP was written too broadly), (3) updates that lack a corresponding drift trigger from Phase 4 (the model was updated proactively, which is fine, but verify the justification). A healthy PCCP history shows a mix of Category A and occasional Category B, with clear documentation of the category determination for each change.
Post-market surveillance (PMS) for AI SaMD is fundamentally different from PMS for traditional medical devices. A traditional device has a fixed failure mode: a joint implant wears, a battery depletes, a connector corrodes. An AI SaMD has a failure mode that is invisible until it is measured: the model's performance degrades as the real-world data distribution shifts away from the training data distribution.
SWT3 witnesses the ongoing performance of the deployed model at regular intervals. Each performance measurement is a Phase 4 milestone that records the same metrics used during Phase 2 validation, allowing direct comparison between the performance at clearance and the performance in the field.
| Metric | Phase 2 (Validation) | Phase 4 (Q1 PMS) | Phase 4 (Q2 PMS) | Procedure |
|---|---|---|---|---|
| Sensitivity (pneumothorax) | 0.941 | 0.937 | 0.928 | HCF-DX.1 |
| Specificity | 0.912 | 0.908 | 0.891 | HCF-DX.1 |
| PPV | 0.78 | 0.76 | 0.72 | AI-PERF.1 |
| Demographic parity gap | 0.02 | 0.03 | 0.05 | AI-FAIR.1 |
The table above tells a story: the model is drifting. Sensitivity is declining, specificity is declining faster, and the demographic parity gap is widening. Each quarterly measurement is a witnessed leaf in Phase 4. AI-DRIFT.2 maps these declines to clinical consequences: a 2% sensitivity decline for pneumothorax detection is not the same clinical risk as a 2% decline for rib fracture detection, because a missed pneumothorax can be immediately life-threatening.
When a SaMD-related adverse event occurs (a critical finding was missed by the triage system, and the delay in diagnosis contributed to patient harm), the manufacturer must file a vigilance report. Under EU MDR, this is a serious incident report per Article 87. Under FDA regulations, it is an MDR report per 21 CFR Part 803.
SWT3 witnesses the adverse event as an AI-INCIDENT.1 leaf in Phase 4. The leaf is linked to the specific model version that was deployed at the time of the event (via AI-CHAIN.1), the performance metrics at the time (AI-PERF.1 and HCF-DX.1), and any subsequent CAPA actions. This creates a complete incident chain that connects the clinical event to the model's evidence history.
Assessor Note: PMS Report Backing
When reviewing a PSUR or PMS report, verify that the performance claims in the report are backed by witnessed evidence in the Merkle tree. A PMS report that states "sensitivity remained above 0.90 throughout the reporting period" should have corresponding HCF-DX.1 leaves at each measurement interval. If the PMS report claims stable performance but the Phase 4 gate shows drift detection triggers (AI-DRIFT.1), that discrepancy is a finding. The witness evidence is the ground truth; the PMS report is a narrative summary of that evidence.
A SaMD deployed at an academic medical center with modern digital radiography equipment may perform differently than the same SaMD deployed at a community hospital using older CR (computed radiography) equipment. Patient demographics, imaging protocols, and pathology prevalence all vary by site. Aggregate performance metrics (all sites combined) can mask site-level degradation.
Best practice: Phase 4 monitoring should include site-level performance breakdowns. If the aggregate sensitivity is 0.93 but Site C's sensitivity is 0.81, the aggregate masks a site-specific problem. SWT3 supports this through site-scoped milestones within Phase 4: each site gets its own HCF-DX.1 and AI-PERF.1 leaves at each measurement interval. The phase gate evaluates both aggregate and per-site performance.
Assessor Note: Site-Level Red Flags
When reviewing Phase 4 PMS evidence, check whether performance metrics are reported at the aggregate level only or include site-level breakdowns. A manufacturer that reports only aggregate metrics may not detect (or may be obscuring) site-level performance degradation. If site-level leaves exist, compare the variance across sites. High inter-site variance in sensitivity or specificity suggests that the model is sensitive to imaging equipment, protocol, or population differences that were not represented in the original training data.
Clinical Note: Override Patterns
AI-HITL.1 records radiologist override rates. A healthy override pattern shows occasional disagreements (5-15% is typical for triage systems). Two red flags deserve attention: an override rate near zero (radiologists may be over-relying on the AI, which is a human factors concern) and a suddenly increasing override rate (the model may be producing outputs that clinicians find unreliable, which is an early signal of drift that may precede measurable metric decline).
A manufacturer seeking clearance in both the US and EU faces a coordination problem. The FDA De Novo pathway and the EU MDR conformity assessment have different timelines, different evidentiary requirements, and different decision-making structures. The model that receives FDA authorization may differ from the model that receives CE marking if updates occur between the two decisions.
| Requirement | FDA (De Novo) | EU MDR (NB Review) | Shared SWT3 Evidence |
|---|---|---|---|
| Clinical performance | Predetermined criteria in De Novo request | Annex XIV Part A clinical evaluation | HCF-DX.1, AI-PERF.1 (same metrics, different narratives) |
| Change control | PCCP (FDA-specific) | QMS change management (ISO 13485) | AI-MDL.2, AI-DRIFT.1 (same evidence, different frameworks) |
| Risk management | 21 CFR 820 design controls | ISO 14971 (harmonized standard) | AI-GOV.1, AI-GOV.2 (ISO 14971 satisfies both) |
| Post-market | MDR reporting (21 CFR 803) | PMS system (Articles 83-86), PSUR | AI-INCIDENT.1, AI-PERF.1 (same events, different reports) |
| Bias/fairness | FDA guidance on demographic subgroups | EU AI Act Article 10 (data governance) | AI-FAIR.1, AI-FAIR.2, AI-DATA.4 (single evaluation serves both) |
| Explainability | FDA labeling (intended use clarity) | EU AI Act Article 13 (transparency) | AI-EXPL.1, AI-EXPL.2 (same artifacts, different regulatory hooks) |
Assessor Note: EUDAMED and UK UKCA
EU MDR requires device registration in EUDAMED (European Database on Medical Devices) before placing on the market. This is a Phase 3 event that should appear as a milestone alongside CE marking. For manufacturers also targeting the UK market, the MHRA requires UKCA marking under the UK MDR 2002 (as amended). The same evidence chain supports all three markets (FDA, EU, UK), but each has distinct registration and post-market reporting obligations. A manufacturer targeting all three should have three distinct Phase 3 registration milestones referencing the same Phase 1 and Phase 2 evidence.
The Merkle tree does not care about regulatory jurisdictions. The same HCF-DX.1 leaf that proves clinical performance to the FDA reviewer also proves clinical performance to the Notified Body. The manufacturer writes two regulatory narratives (one for the De Novo request, one for the EU MDR technical documentation), but both narratives reference the same cryptographic evidence. If the Notified Body verifies the Phase 2 validation leaves and the FDA reviewer verifies the same leaves, they reach the same conclusion independently, because the evidence is deterministic.
Traditional regulatory affairs for dual-market SaMD involves maintaining two parallel documentation systems. When the FDA requests additional performance data, the EU MDR technical file must also be updated, and vice versa. With SWT3, the evidence is single-source: one Merkle tree, one set of witnessed measurements. The regulatory submissions are different narratives wrapped around the same cryptographic evidence. When a model update changes performance, both jurisdictions see the same witnessed delta. This eliminates the most common source of dual-market compliance failure: documentation divergence between the FDA file and the EU technical file.
Notified Body Note: EU AI Act Overlay
Medical devices containing AI are subject to both EU MDR and EU AI Act. Under Article 6(1) of the AI Act, a high-risk AI system within a product covered by Union harmonisation legislation (including MDR) must comply with both. For Class IIa SaMD, this means the conformity assessment under MDR must also verify EU AI Act requirements in Articles 8-15. The SWT3 evidence chain already covers Article 9 (risk management via AI-GOV.1/GOV.2), Article 10 (data governance via AI-DATA.1-5), Article 13 (transparency via AI-EXPL.1/EXPL.2), and Article 14 (human oversight via AI-HITL.1-3). This is not additional work for the manufacturer; it is the same evidence evaluated through an additional regulatory lens.
When a Notified Body conducts a conformity assessment for an AI-enabled Class IIa SaMD, the technical documentation review under Annex II and Annex III is the core of the assessment. The Merkle tree provides a structured evidence chain that maps directly to the technical documentation requirements.
| MDR Requirement | Annex Section | SWT3 Evidence |
|---|---|---|
| Device description and specification | Annex II, Section 1 | AI-GOV.1 (intended use), AI-MDL.1-4 (model specification) |
| Design and manufacturing information | Annex II, Section 4 | Phase 1 gate (complete design controls chain) |
| General safety and performance requirements | Annex I | HCF-DX.1 (clinical performance), AI-SAFE.1 (safety), AI-ROBUST.1 (robustness) |
| Benefit-risk analysis | Annex II, Section 5 | AI-GOV.2 (risk register), AI-PERF.1 (performance evidence) |
| Clinical evaluation | Annex XIV | Phase 2 gate (complete V&V chain), HCF-DX.1 (clinical performance data) |
| Post-market surveillance plan | Annex III, Section 1.1 | Phase 4 structure definition (monitoring milestones planned) |
| Post-market clinical follow-up | Annex XIV, Part B | Phase 4 leaves (ongoing clinical performance measurement) |
For a Notified Body reviewer examining SWT3 evidence for SaMD conformity assessment, verify these six items:
Notified Body Note: Sampling Strategy
For a conformity assessment, you do not need to verify every leaf in the Merkle tree. Use the phase gate structure as a sampling framework: verify the gate status of each phase (were all required milestones completed?), then sample individual milestones within each phase. For Phase 2 (V&V), verify HCF-DX.1 (the clinical performance claim) and AI-FAIR.2 (demographic parity). For Phase 4 (PMS), verify the most recent performance measurement and check whether drift triggers have fired. If the phase gates are intact and the sampled milestones are consistent, the evidence chain is sound. If a phase gate was forced open or a milestone shows unexpected values, expand the sample.
Define the SaMD lifecycle structure at the start of the design controls phase. The structure persists for the entire product lifecycle.
from swt3_ai import Witness
witness = Witness(
endpoint="https://sovereign.tenova.io",
api_key="axm_live_...",
tenant_id="RADIOLOGY-TRIAGE-V2"
)
# Define the 6-phase lifecycle structure
witness.create_milestone_structure(
structure_id="RADIOLOGY-TRIAGE-V2",
phases=[
{"id": "design-controls", "seq": 0, "name": "Design Controls & Data Governance"},
{"id": "verification", "seq": 1, "name": "Verification & Validation"},
{"id": "regulatory", "seq": 2, "name": "Regulatory Submission"},
{"id": "post-market", "seq": 3, "name": "Post-Market Surveillance"},
{"id": "model-update", "seq": 4, "name": "Model Update Cycle"},
{"id": "decommission", "seq": 5, "name": "Decommission / Recall"},
]
)
# Phase 1: Witness intended use definition
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="design-controls",
milestone="intended-use-definition",
procedure="AI-GOV.1",
factor_a="chest_xray_triage",
factor_b="pneumothorax_effusion_mass", # target conditions
factor_c="ed_worklist_prioritization" # output: priority, not diagnosis
)
# Phase 2: Witness clinical performance
witness.witness_milestone(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="verification",
milestone="clinical-performance-pneumothorax",
procedure="HCF-DX.1",
factor_a="pneumothorax_sensitivity",
factor_b="0.941", # measured sensitivity
factor_c="PASS_above_0.90_threshold"
)
# Check the Phase 1 gate
gate = witness.check_gate(
structure_id="RADIOLOGY-TRIAGE-V2",
phase="design-controls"
)
print(gate)
# {"status": "GATE_OPEN", "phase": "design-controls",
# "milestones_passed": 5, "milestones_total": 5,
# "root_hash": "a3c1...f892", "timestamp": 1795012345}
The TypeScript SDK follows the same pattern. See npm install @tenova/swt3-ai and the SDK documentation for the full API reference.