Editor’s introduction
The study evaluates a framework designed to support safety knowledge in medical devices by linking device artifacts to controlled knowledge sources. It emphasizes source-linked safety-knowledge support rather than autonomous text generation, focusing on traceability, critique, and expert review. The framework connects safety methods to device design, changes, and post-market data, enabling lifecycle updates and uncertainty checks. It was tested on two distinct device types: a software-intensive infusion pump subsystem and an AI-enabled connected function with dynamic input conditions. The evaluation uses non-public case studies to avoid training data contamination and assesses coverage, correctness, traceability, and expert review effort. The evidence shows the framework improves transparency and traceability without making safety decisions or offering regulatory approval. A key boundary is that the system does not generate final safety conclusions or replace human judgment in regulatory contexts.
Introduction
Medical devices are increasingly software-intensive, connected, and AI-enabled. This development supports new functions in diagnosis, therapy, rehabilitation, hospital logistics, and surgery. At the same time, it increases the effort needed to show that a device is safe for patients, users, and its intended use environment. Manufacturers must provide risk-management evidence and safety documentation aligned with standards such as ISO 14971 for risk management and IEC 62304 for medical software lifecycle processes.
Safety analysis is expert-intensive. Engineers must identify hazards, hazardous situations, failure modes, causal factors, foreseeable misuse, possible harm, and suitable risk-control measures. They must also keep these artifacts aligned with requirements, architecture, software design, verification evidence, production data, post-production data, and device changes. This creates a major cost and time burden, especially for small and medium-sized manufacturers. An MDR survey by DIHK, MedicalMountains, and SPECTARIS reports certification costs as the most frequently named reason for discontinuing products in the EU, cited by 91% of respondents.
LLMs are a promising support technology for this setting because safety engineering is strongly document-based. Device descriptions, requirements, hazard logs, FMEA tables, risk-control records, safety cases, test reports, user manuals, incident reports, and standards contain information that can support risk-management work. LLMs can help safety engineers draft candidate hazards, failure modes, causal links, risk controls, safety requirements, review questions, and safety-case fragments.
However, in regulated medical-device development, such support cannot be treated as independent safety assessment. Generated outputs need source grounding, traceability, uncertainty indicators, and expert review. A candidate hazard without evidence links is difficult to assess. A candidate risk control without links to requirements and verification evidence is difficult to justify. A generated risk score without recorded assumptions may even mislead reviewers.
As reviewed in Section III, recent work shows that LLMs can support tasks such as Hazard Analysis and Risk Assessment (HARA), Failure Mode and Effects Analysis (FMEA), Fault Tree Analysis (FTA), System-Theoretic Process Analysis (STPA), safety-requirements generation, and assurance-case analysis. Yet these studies often address isolated tasks, rely on prompt engineering, use public case studies, or focus on non-medical domains. This limits their use for medical devices, where device-specific knowledge, confidentiality, audit trails, rare high-severity harms, lifecycle updates, and fair evaluation are central concerns.
This paper argues that LLM-supported medical-device safety analysis should be framed as source-linked safety-knowledge support. The goal is not to let an LLM decide whether a device is safe. The goal is to help experts prepare, link, check, review, and update candidate safety artifacts in a controlled process.
Medical-Device Safety Analysis as a Research Context
Medical-device safety analysis is not a final check before market release. It is a lifecycle activity. ISO 14971 requires manufacturers to identify hazards and hazardous situations, estimate and evaluate risks, select and verify risk-control measures, assess residual risk, and use production and post-production information. IEC 62304 adds software lifecycle activities, including requirements, architecture, implementation, verification, maintenance, and risk-related software changes.
This creates a demanding traceability problem. Safety artifacts must be linked to device functions, requirements, software items, design decisions, verification evidence, risk controls, and residual-risk decisions. When a requirement changes, when software is updated, or when post-market feedback reveals a new issue, the manufacturer must assess which safety artifacts are affected and whether additional risk control or verification is needed.
Medical devices also differ from many other technical systems because harm can depend on the device, the user, the patient, and the clinical context together. Consider an infusion pump. A safety analysis must not only consider hardware faults and software defects. It must also consider wrong dose entry, wrong flow rate, delayed occlusion detection, misleading alarms, use under time pressure, patient-specific sensitivity, and interaction with clinical workflows. The same technical failure may have different safety meaning depending on the intended use and the patient context.
The task becomes harder as devices become connected and AI-enabled. Modern medical devices may combine sensors, embedded software, networked services, cloud components, robotic functions, and machine-learning models. AI-enabled functions add further concerns because behavior can depend on training data, operating conditions, changes in input data, model limits, and uncertain predictions. Reported recalls and post-market safety events for AI-enabled medical devices show that safety evidence must also be maintained after release. The TruDi case illustrates this lifecycle concern: incorrect localization events and patient injuries were reported after AI-supported functionality had been introduced, while AI was not identified as the reported cause of the errors. Such cases show that safety analysis must account for changing device behavior, clinical use, and field feedback.
These properties make medical-device safety analysis a strong but high-risk use case for LLM support. LLMs may help draft candidate hazards, causes, risk controls, safety requirements, and review questions. Yet for regulated medical-device work, useful support requires source evidence, weak-support checks, qualified expert review, and lifecycle update support. The next section reviews whether current LLM-assisted safety-engineering work provides these capabilities.
Structured Review of LLM-Assisted Safety Engineering
We conducted a structured review of recent work on LLM-assisted safety engineering. The goal was to identify research patterns relevant for medical-device safety analysis, not to perform a full systematic review. We searched Scopus, IEEE Xplore, and Google Scholar, and checked the references of selected papers. Search terms combined LLM-related terms, such as Large Language Models, Generative AI, and ChatGPT, with safety-engineering terms, such as hazard analysis, risk analysis, FMEA, FTA, STPA, HARA, Goal Structuring Notation (GSN), safety cases, assurance cases, and safety documentation. The search was last updated in May 2026.
Papers were included if they applied or discussed LLMs for safety-engineering tasks such as hazard analysis, risk analysis, FMEA, FTA, STPA, HARA, safety cases, safety requirements, or assurance-case review. Papers were excluded if they focused only on general AI safety, clinical diagnosis, cybersecurity without safety analysis, non-LLM safety automation, or general documentation support without a safety-engineering task. The initial search returned more than 200 papers. After title and keyword screening, duplicate removal, abstract screening, and use-case screening, 90 papers published between 2023 and 2026 remained. Due to the limited space in this paper, we have included the list of papers reviewed in an online repository.
When a paper used several LLM techniques, we assigned the dominant method based on the technique that carried the main safety-engineering contribution. Borderline cases were discussed among the authors and assigned to the category that best reflected the paper’s stated contribution. The reviewed work shows five main patterns.
First, many studies test feasibility through prompt engineering. They ask whether LLMs can identify hazards, failure modes, unsafe control actions, risk scenarios, safety requirements, or mitigations from a system description. These studies show that LLMs can produce useful candidate outputs quickly. They also report recurring problems, including missed rare hazards, generic or duplicate entries, implicit assumptions, weak mitigations, and difficulties with structured output formats. Prompt-only use can therefore support early ideation, but it is not sufficient as the sole support method for regulated safety analysis.
Second, retrieval-based grounding is becoming more important. RAG and vector search allow LLMs to use information from prior safety analyses, failure reports, standards, manuals, and technical documents. Such approaches have been studied for performance-level estimation, FMEA generation, STPA support, and safety-requirements generation. Related medical and radiotherapy studies evaluate LLM support for FMEA-based risk management. This pattern is important for medical devices because device-specific evidence is often private, technical, versioned, and absent from public model training data.
Third, some studies use structured safety knowledge through knowledge graphs. Knowledge graphs can represent failures, hazards, causes, components, functions, risk controls, and their relations. They have been studied for medical-device risk knowledge extraction and causal analysis in aerospace manufacturing. FMEA support for human-robot collaboration provides a related example of method-specific safety support. Compared with plain document retrieval, knowledge graphs can make relations more explicit and may support links from generated safety items back to source evidence.
Research Gap: From Generated Text to Source-Linked Safety Knowledge
The reviewed literature shows that LLMs can support safety-engineering tasks, but current approaches are not yet sufficient for regulated medical-device risk management. The main gap is not simply that LLMs can produce incorrect text. The deeper problem is that most approaches do not provide a controlled process for linking outputs to device evidence, flagging uncertainty, supporting expert review, and updating safety artifacts over the lifecycle.
A first challenge is domain grounding. Prompt-only use can support early brainstorming, but it is weak for medical-device safety analysis. Critical knowledge is often contained in requirements, software design documents, risk-management files, verification reports, complaints, and post-market reports. Public model training data is unlikely to contain this device- and company-specific evidence. LLM outputs may therefore be plausible but weakly supported by the actual device.
A second challenge is hazard coverage. Medical-device safety analysis must consider common failures as well as rare, indirect, interaction-based, or context-dependent scenarios that may lead to severe harm. LLMs may miss such scenarios or produce duplicate hazards, generic failure descriptions, missing causal chains, or weak risk controls. The goal is not to prove complete hazard identification, but to improve coverage and make remaining uncertainty visible to reviewers.
A third challenge is traceability. Safety artifacts must be linked to requirements, design elements, risk controls, verification evidence, and residual-risk decisions. LLM-generated text without source links is difficult to review, justify during audits, or update when the device changes. Each generated safety item therefore needs an explicit link to the evidence and assumptions that support it.
A fourth challenge is hallucination and uncertainty. LLMs can produce plausible but unsupported or incomplete claims. This is especially critical when they assign severity, occurrence, detectability, risk priority numbers, or residual-risk judgments. Such values influence risk-control decisions and should be treated as candidates for expert review, not as model decisions.
A fifth challenge is the human role. Existing work often includes an expert either at the end of the process or after selected generation steps, but the expert role is not always defined clearly. In medical-device safety analysis, the LLM should assist qualified engineers, not replace them. Experts must inspect source evidence before accepting generated hazards, causes, risk controls, risk scores, or safety arguments, and their decisions and justifications should be recorded.
Method-specific generation
The generation component uses the task definition and retrieved evidence to produce source-linked safety items. Depending on the selected method, these items may include hazards, hazardous situations, failure modes, causes, effects, risk controls, safety requirements, verification ideas, safety-case claims, or review questions. Each generated item should include links to the evidence used during generation and should record assumptions that require expert review.
For example, consider an infusion pump software change that modifies occlusion detection and alarm timing. The framework should retrieve related requirements, software items, previous FMEA entries, alarm-related risk controls, verification evidence, complaint data, and prior reviewer decisions. The LLM may then propose candidate updates such as a changed hazardous situation, an affected risk control, or a new verification question. These proposals are not accepted automatically. They become source-linked safety items that must pass critique checks and expert review.
Expert review and lifecycle updates
The expert review component is central to the framework. Generated safety items must be reviewed by qualified experts before they are accepted. The reviewer should inspect the source evidence and then accept, reject, edit, merge, or split generated items. The reviewer should also record short justifications for important decisions, especially for rejected hazards, accepted risk controls, residual-risk decisions, and changes to risk scores.
The same structure supports lifecycle updates. When requirements, software, design elements, risk controls, verification results, complaints, or post-market data change, the framework should identify affected source-linked safety items and propose updates. For example, a changed software requirement should trigger retrieval of linked hazards, affected risk controls, related verification evidence, and prior reviewer decisions. These proposed updates must again be reviewed and approved by experts.
The framework therefore shifts LLM use from one-time safety-text generation to lifecycle-oriented safety-knowledge support. Its novelty is not the isolated use of retrieval, knowledge graphs, LLM generation, critique, or expert review. These elements already appear in parts of the literature. The contribution is their integration around a common reviewable artifact: the source-linked safety item. This artifact binds generated safety content to source evidence, method context, assumptions, uncertainty flags, reviewer decisions, and lifecycle history. It therefore gives LLM support a structure that can be reviewed, audited, updated, and evaluated in regulated medical-device development.
Evaluation Strategy
The case studies should include at least two device types with different safety characteristics. One case should be a software-intensive but non-AI device, such as an infusion-pump function or alarm subsystem. A second case should include an AI-enabled or connected function, where evidence may include model limits, data assumptions, use conditions, post-market feedback, or changes in input distribution. The use of non-public or newly built cases reduces the risk that the LLM has already seen related safety material during training and helps limit evaluation-data contamination.
Expert reference analyses should be created by qualified safety and domain experts. These references should not be treated as perfect ground truth, but as review baselines. They should include accepted hazards or hazardous situations, causal explanations, risk controls, and verification links. Where experts disagree, the disagreement should be recorded rather than hidden, because such disagreement is common in safety analysis.
The full framework would be considered useful if, compared with prompt-only and retrieval-grounded baselines, it increases the share of relevant and source-supported safety items, reduces unsupported claims and duplicate items, improves traceability, and reduces expert search and consistency-checking effort. It should not be considered successful if it only increases the number of generated hazards without improving review quality or source support.
The proposed evaluation has several threats to validity. Expert reference analyses may be incomplete or reflect expert-specific judgment. Non-public or newly built case studies reduce training-data overlap, but cannot prove that no related knowledge was present in model training data. Review effort may also depend on reviewer experience, device familiarity, and the quality of the existing risk-management file. We therefore treat the evaluation as evidence of usefulness and review quality, not as proof of complete hazard identification or regulatory sufficiency.
Conclusion
This paper argued that LLM support for medical-device safety should not be framed as autonomous safety-text generation. Used in that narrow way, LLMs risk adding more unverified text to an already document-heavy process. A stronger role is source-linked safety-knowledge support: connecting device evidence, safety methods, critique checks, expert review, and lifecycle updates around reviewable safety items.
For the medical-device industry, the value hypothesis is specific. Manufacturers need to reuse internal knowledge from requirements, design files, risk files, verification reports, complaints, and post-market data. They also need to keep safety artifacts consistent when devices change. The proposed framework is intended to reduce search, drafting, and consistency-checking effort while keeping qualified experts responsible for final safety decisions. The intended industry benefit is strongest where manufacturers must maintain risk-management files across many device variants, software versions, and post-market feedback loops.
In the MedSafe project, we will implement and evaluate evidence intake, safety-knowledge retrieval, method-specific generation, critique and uncertainty checks, expert review, and lifecycle updates for selected safety-analysis and risk-management processes. The expected result is not an automatic safety assessor, but a support system for testing whether medical-device safety analysis can become more efficient, reviewable, traceable, and updatable while preserving human responsibility.


