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.

Contents

1. Why SaMD Needs Lifecycle Witnessing 2. The Scenario: AI Radiology Triage 3. Six Lifecycle Phases 4. Procedure Mapping Across Three Namespaces 5. The Merkle Structure 6. Design Controls as a Phase Gate 7. The PCCP Decision Boundary 8. Post-Market Surveillance Evidence 9. The Dual-Market Problem 10. Notified Body Review Evidence 11. SDK Quick Start 12. Related Guides

1. Why SaMD Needs Lifecycle Witnessing

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.

The core insight

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.

2. The Scenario: AI Radiology Triage

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.

Device Classification

JurisdictionClassificationPathwayKey Requirements
United StatesClass II (De Novo)FDA De NovoGMLP, clinical performance, PCCP, labeling
European UnionClass IIa (Rule 11)EU MDR, Notified BodyAnnex I GSPR, Annex II/III technical documentation, clinical evaluation, PMS plan

Stakeholders

RolePartyPrimary Interest
ManufacturerMedTech AI companyRegulatory 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, OHTDe Novo authorization, PCCP evaluation, post-market reporting
Clinical TeamEmergency radiologistsTriage accuracy, false negative rate, workflow integration
Hospital ITDeploying institutionPACS integration, PHI handling, uptime, model version tracking
QMS OwnerManufacturer qualityDesign history file integrity, CAPA integration, audit readiness
Clinical AffairsManufacturer clinical teamClinical 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.

3. Six Lifecycle Phases

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.

PhaseDurationKey ActivitiesGate Criteria
1. Design Controls & Data Governance6-12 monthsIntended 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 & Validation3-6 monthsClinical performance testing, bias evaluation across demographics, ground truth establishment, robustness testingSensitivity/specificity meet predetermined criteria, demographic subgroup performance within bounds, robustness tests passed
3. Regulatory Submission3-12 monthsFDA De Novo preparation, EU MDR technical documentation, PCCP definition, clinical evaluation reportSubmission accepted, PCCP approved (FDA) or technical documentation reviewed (NB), CE marking issued
4. Post-Market SurveillanceOngoingReal-world performance monitoring, complaint trending, vigilance reporting, PSUR/periodic safety updatesPerformance within predetermined limits, no unresolved safety signals, PMS reports filed on schedule
5. Model Update CycleRecurringRetraining with new data, PCCP evaluation, regression testing, change impact assessmentChange within PCCP envelope (governed update) or new submission triggered (boundary crossed)
6. Decommission / Recall1-3 monthsModel retirement, field safety corrective action, transition plan, revocationAll 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.

4. Procedure Mapping Across Three Namespaces

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.

HCF: Healthcare

ProcedureWhat It WitnessesSaMD Application
HCF-DX.1Diagnostic accountabilityAI confidence score vs. clinical threshold for pneumothorax detection. Ground truth match rate against radiologist-confirmed diagnoses
HCF-RX.1Prescription safetyFor treatment-recommendation SaMD: drug interaction checks, contraindication flags, dosing validation
HCF-PRIV.1PHI access auditPatient consent verification for training data, HIPAA BAA compliance, de-identification attestation

AI: Model Governance (Lifecycle)

ProcedureWhat It WitnessesSaMD Application
AI-MDL.1Model weight integrityHash of deployed model weights matches authorized version in design history file
AI-MDL.2Model version trackingVersion lineage from training through deployment, PCCP change tracking
AI-MDL.3Configuration hashInference pipeline configuration (threshold, preprocessing, ensemble weights)
AI-MDL.4Provider model identificationFoundation model identity if transfer learning or fine-tuning is used
AI-DATA.1Data lineageTraining dataset provenance: source institutions, collection dates, IRB approvals
AI-DATA.2Data quality assuranceLabeling inter-rater agreement (kappa), image quality filtering, duplicate detection
AI-DATA.3Data retentionTraining data retention period, deletion schedules, GDPR data subject requests
AI-DATA.4Bias auditingDemographic distribution in training data: age, sex, ethnicity, imaging equipment manufacturer
AI-DATA.5Consent verificationPatient consent for use of imaging data in AI training, institutional data use agreements
AI-DRIFT.1Drift detectionPerformance metric shifts over time: sensitivity decline, false positive rate increase
AI-DRIFT.2Consequence-mapped thresholdsDrift thresholds tied to clinical impact: a 2% sensitivity drop for pneumothorax is not equivalent to a 2% drop for rib fracture
AI-FAIR.1Fairness metric trackingPerformance parity across demographic subgroups in validation and post-market data
AI-FAIR.2Demographic paritySensitivity/specificity breakdowns by age group, sex, and ethnicity
AI-EXPL.1Feature attributionSaliency maps, attention heatmaps showing which image regions drove the classification
AI-EXPL.2Decision explanationHuman-readable explanation of triage priority assignment for clinical transparency
AI-HITL.1Human oversight recordsRadiologist override rate, disagreement patterns, escalation triggers
AI-HITL.2Meaningful human reviewEvidence that radiologists are reviewing AI output rather than rubber-stamping
AI-HITL.3Decision override loggingWhen a radiologist disagrees with the AI priority, the override and rationale are recorded
AI-SAFE.1Safety guardrailsFallback behavior when the model cannot classify (indeterminate cases go to radiologist, never suppressed)
AI-ROBUST.1Robustness testingPerformance under image degradation: low dose, motion artifact, portable vs. fixed equipment
AI-PERF.1Performance metricsSensitivity, specificity, PPV, NPV, AUC at each evaluation point
AI-AUDIT.1Assessment objective completionTraceability of each design control step to its verification evidence
AI-GOV.1Risk management scopeISO 14971 risk analysis scope definition, intended use boundaries
AI-GOV.2Risk registerIdentified hazards, estimated risk levels, risk control measures implemented
AI-INCIDENT.1Adverse event loggingField safety events, vigilance reports, CAPA triggers
AI-REV.1Model revocationModel recall: deployed version deactivated, reason code recorded, transition evidence
AI-CHAIN.1Lifecycle chain linkingLinks design control anchors to validation anchors to deployment anchors to PMS anchors
AI-DPIA.1Impact assessmentGDPR Article 35 DPIA for processing patient imaging data, EU AI Act Article 27 FRIA
AI-ASSESS.1Capability assessmentPredetermined performance criteria against which the model is evaluated at each lifecycle stage
AI-SBOM.1Software bill of materialsThird-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

Three namespaces, one tree

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.

5. The Merkle Structure

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.

6. Design Controls as a Phase Gate

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.

Software Safety Classification

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 ClassPotential HarmDocumentation DepthAI Triage Example
Class ANo injury or damage to healthBasic lifecycleAdministrative scheduling tool
Class BNon-serious injuryIntermediate lifecycleIncidental finding flagging (non-urgent)
Class CDeath or serious injuryFull lifecycle with detailed unit-level documentationCritical 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.

ISO 13485 QMS Integration

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.

Training Data Governance

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.

ISO 14971 Risk Analysis

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.

7. The PCCP Decision Boundary

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).

The Three Change Categories

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.

CategoryDescriptionExampleRegulatory Action
Category A: Within PCCPChange matches a pre-defined modification type, stays within predetermined performance limitsRetraining with additional chest X-rays from a new institution, sensitivity stays above 0.90Governed update. Document and deploy. No new submission.
Category B: PCCP BoundaryChange is of a pre-defined type but performance approaches or reaches predetermined limitsRetraining causes specificity to drop to 0.85 (predetermined floor: 0.84)Enhanced documentation. Internal review. Deploy with heightened monitoring.
Category C: Outside PCCPChange type not anticipated in the original PCCP, or performance exceeds predetermined limitsNew indication (triage for rib fractures, not in original intended use), or sensitivity drops below 0.90New regulatory submission required.

Witnessing the Boundary

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
)

Why the PCCP boundary matters

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.

8. Post-Market Surveillance Evidence

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.

Continuous Performance Monitoring

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.

MetricPhase 2 (Validation)Phase 4 (Q1 PMS)Phase 4 (Q2 PMS)Procedure
Sensitivity (pneumothorax)0.9410.9370.928HCF-DX.1
Specificity0.9120.9080.891HCF-DX.1
PPV0.780.760.72AI-PERF.1
Demographic parity gap0.020.030.05AI-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.

Vigilance Reporting

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.

Multi-Site Deployment Variance

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).

9. The Dual-Market Problem

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.

Evidence Overlap

RequirementFDA (De Novo)EU MDR (NB Review)Shared SWT3 Evidence
Clinical performancePredetermined criteria in De Novo requestAnnex XIV Part A clinical evaluationHCF-DX.1, AI-PERF.1 (same metrics, different narratives)
Change controlPCCP (FDA-specific)QMS change management (ISO 13485)AI-MDL.2, AI-DRIFT.1 (same evidence, different frameworks)
Risk management21 CFR 820 design controlsISO 14971 (harmonized standard)AI-GOV.1, AI-GOV.2 (ISO 14971 satisfies both)
Post-marketMDR reporting (21 CFR 803)PMS system (Articles 83-86), PSURAI-INCIDENT.1, AI-PERF.1 (same events, different reports)
Bias/fairnessFDA guidance on demographic subgroupsEU AI Act Article 10 (data governance)AI-FAIR.1, AI-FAIR.2, AI-DATA.4 (single evaluation serves both)
ExplainabilityFDA 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.

The dual-market insight

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.

10. Notified Body Review Evidence

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.

Annex II/III Mapping

MDR RequirementAnnex SectionSWT3 Evidence
Device description and specificationAnnex II, Section 1AI-GOV.1 (intended use), AI-MDL.1-4 (model specification)
Design and manufacturing informationAnnex II, Section 4Phase 1 gate (complete design controls chain)
General safety and performance requirementsAnnex IHCF-DX.1 (clinical performance), AI-SAFE.1 (safety), AI-ROBUST.1 (robustness)
Benefit-risk analysisAnnex II, Section 5AI-GOV.2 (risk register), AI-PERF.1 (performance evidence)
Clinical evaluationAnnex XIVPhase 2 gate (complete V&V chain), HCF-DX.1 (clinical performance data)
Post-market surveillance planAnnex III, Section 1.1Phase 4 structure definition (monitoring milestones planned)
Post-market clinical follow-upAnnex XIV, Part BPhase 4 leaves (ongoing clinical performance measurement)

What to Verify

For a Notified Body reviewer examining SWT3 evidence for SaMD conformity assessment, verify these six items:

  1. Phase gate integrity: Every GATE_OPEN timestamp for Phase N precedes the first attestation timestamp in Phase N+1. A model that entered validation (Phase 2) before design controls (Phase 1) were complete is a critical finding.
  2. Training data-to-validation traceability: AI-DATA.1 (provenance) leaves in Phase 1 reference the same dataset version that AI-PERF.1 leaves in Phase 2 were evaluated against. A training dataset that was modified between Phase 1 and Phase 2 without a new AI-DATA.1 leaf is a finding.
  3. Demographic representation: AI-DATA.4 (bias audit) in Phase 1 and AI-FAIR.2 (demographic parity) in Phase 2 should demonstrate that the validation population reflects the intended use population. A model validated only on academic medical center data but deployed in community hospitals has a representativeness gap.
  4. PCCP boundaries are specific: The Phase 3 PCCP milestone should define measurable criteria for each change category. "Performance stays within acceptable limits" is not specific. "Sensitivity remains above 0.90 for pneumothorax and above 0.85 for pleural effusion" is specific.
  5. PMS evidence is current: Phase 4 should have recent leaves. If the last performance measurement was 9 months ago for a device that has been on the market for 18 months, the PMS system is not operating as declared.
  6. Version chain is complete: Every deployed model version has a structure root linked to the original via AI-CHAIN.1. No "orphan" versions that bypass the lifecycle.

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.

11. SDK Quick Start

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.

12. Related Guides