| Titel: | Development and evaluation of an automated, AI-driven pipeline for transforming cardiac MRI DICOM data into patient-specific 3D cardiac heart meshes | Sprache: | Englisch | Autorenschaft: | Hinz, Niklas | Erscheinungsdatum: | 2026 | Zusammenfassung: | Problem: Statement Cardiac magnetic resonance imaging produces volumetric anatomical data that is essential for diagnosis, surgical planning, and the construction of patient-specific cardiac digital twins. Despite considerable methodological progress, the transformation of raw Digital Imaging and Communications in Medicine (DICOM) acquisitions into reproducible three-dimensional cardiac mesh representations remains a fragmented endeavour, frequently dependent on bespoke scripts, manual curation, or single-model approaches that are susceptible to unflagged operational impairment on heterogeneous clinical inputs. The absence of an integrated, traceable workflow that consolidates standardised preprocessing, multi-stage segmentation, anatomy-aware quality control, mesh generation, and structured reporting hampers both scientific reproducibility and downstream clinical applicability. Methodologies: This thesis endeavors to develop a modular, end-to-end pipeline that converts cardiac magnetic resonance imaging (MRI) or computed tomography (CT) Digital Imaging and Communications in Medicine (DICOM) data into patient-specific 3D cardiac meshes through a coarse-to-fine segmentation strategy. The system integrates TotalSegmentator for coarse anatomical localisation, an nnU-Net v2 model for fine multi-class delineation of the left ventricle, right ventricle, and myocardium, and the Segment Anything Model family for optional boundary refinement. Probability outputs are aggregated by softvoting fusion, followed by anatomy-aware topology constraints (largest connected component per class, left ventricular cavity contained within myocardium) and morphological post-processing. Mesh generation is subsequently undertaken through the implementation of marching cubes, complemented by Gaussian smoothing and Taubin volume-preserving smoothing. Each execution is governed by a deterministic configuration object, complete logging, and a structured run manifest that records weight hashes, package versions, stage-progression metrics, and timing; thereby enabling bit-exact reproducibility. The component choices and the post-inference framing of the topology constraints are discussed critically in Sections 3.3, 4.7, and 8.3; the missing evaluation extensions (multi-vendor cohorts, boundary and mesh-quality metrics, VVUQ under ASME V&V 40) are recorded as future work in Section 8.3. Key Results: The pipeline was evaluated on 15 ACDC patients drawn from all five pathological cohorts (NOR, DCM, HCM, MINF, ARV) at both end-diastole and end-systole, under two topology configurations: the strict baseline rule and an adaptive guard introduced in this work. The strict configuration reproduces the patient 002 baseline within the noise floor of the underlying numerical libraries, confirming platform portability. The adaptive configuration applies to 100 % of sweep cases and recovers the pooled per-class left-ventricular Dice from 0.446 ± 0.078 to 0.902 ± 0.043 without changing the myocardial (0.843 ± 0.047) or right-ventricular (0.865 ± 0.055) scores, lifting the macro-averaged Dice from 0.718 ± 0.043 to 0.870 ± 0.039 across the sweep. The per-patient ejection fractions, nonphysiological for several patients under the strict configuration, fall within the published per-cohort distribution reported by Bernard et al. (2018) under the adaptive configuration. Mesh outputs remained watertight, end-to-end runtime on commodity hardware stayed below one minute per case, and two independent executions of each configuration produced bit-identical segmentation volumes, mesh files, and clinical-function reports. Main Conclusion: The proposed pipeline demonstrates that competitive cardiac segmentation accuracy for the myocardium and the right ventricle can be achieved within a reproducible, traceable, and anatomy-aware workflow that runs on commodity hardware in under a minute per case, and that an adaptive, manifest-recorded topology guard can transparently correct the dominant systematic interaction between the upstream segmentation weights and the anatomical post-processing stage. The cross-cohort evaluation in Section 7.5.1 establishes that the guard is not a dilated-cohort mitigation but a pipeline-wide correction whose decision boundary sits well above the configured threshold on every cohort examined. The remaining accuracy ceiling on out-ofdistribution morphologies lies in the public segmentation weights themselves rather than in the orchestration layer, indicating that future improvements should prioritise either the integration of cohort-aware model weights or fine-tuning on multi-vendor cardiac datasets, rather than additional architectural complexity. The modular structure, structured run manifests, configurable per-case safety guard, and one-command setup procedure render the pipeline readily extensible to additional modalities, segmentation models, and clinical pre- or intraoperative scenarios, including integration with multilead electrocardiography pipelines at CardioSecur GmbH. Die kardiale Magnetresonanztomographie liefert volumetrische anatomische Daten, die für Diagnose, Operationsplanung und die Konstruktion patientenspezifischer kardialer digitaler Zwillinge unverzichtbar sind. Die Überführung roher DICOM-Aufnahmen in reproduzierbare dreidimensionale Herzmodelle erfolgt in der Praxis bislang meist über manuell zusammengestellte Skripte oder einzelne Segmentierungsmodelle und ist damit anfällig für stillschweigende Fehler auf heterogenen klinischen Eingaben. Die vorliegende Arbeit entwirft, implementiert und evaluiert eine modulare End-to-End- Pipeline, die kardiale MRT-DICOM-Daten in patientenspezifische dreidimensionale Herzmodelle überführt. Die Architektur folgt einer Coarse-to-Fine-Strategie und kombiniert TotalSegmentator zur groben anatomischen Lokalisation, ein nnU-Net-v2- Modell zur fein aufgelösten Mehrklassen-Segmentierung von linkem Ventrikel, rechtem Ventrikel und Myokard sowie das Segment-Anything-Modell (und MedSAM) zur optionalen Randverfeinerung. Die Wahrscheinlichkeitskarten werden über Soft-Voting fusioniert, anschließend durch anatomiebewusste Topologie-Bedingungen, eine in dieser Arbeit eingeführte adaptive LV-Loss-Schutzregel und morphologische Nachbearbeitung stabilisiert und über den Marching-Cubes-Algorithmus mit anschließender Taubin-Glättung in eine geschlossene Oberfläche überführt. Jede Ausführung wird durch eine deterministische Konfiguration, vollständige Protokollierung und ein strukturiertes Run-Manifest mit Hashes der Modellgewichte und Paketversionen begleitet. In der Evaluation wurden 15 ACDC-Patienten aus allen fünf Pathologie- Kohorten (NOR, DCM, HCM, MINF, ARV) jeweils bei End-Diastole und End-Systole in zwei Topologie-Konfigurationen verarbeitet (60 deterministische Durchläufe je Konfiguration). Unter der strikten Containment-Regel ergibt sich ein gepooltes Linksventrikel-Dice von 0,446 ± 0,078; unter der in dieser Arbeit eingeführten adaptiven Schutzregel steigt es auf 0,902 ± 0,043, ohne die Werte für Myokard (0,843 ± 0,047) und rechten Ventrikel (0,865 ± 0,055) zu verändern. Die Schutzregel greift in 30 von 30 Fällen quer durch alle Kohorten und bringt die patientenspezifische Ejektionsfraktion in die von Bernard et al. (2018) berichtete kohortenspezifische Referenzverteilung. Die erzeugten Mesh-Modelle sind wasserdicht, die End-to-End-Laufzeit pro Fall liegt im Sekundenbereich, und zwei unabhängige Durchläufe derselben Konfiguration lieferten bit-identische Segmentierungs- und Mesh-Dateien. Die Arbeit zeigt damit, dass eine reproduzierbare, anatomiebewusste, auf Standard-Hardware lauffähige Pipeline mit einer datengesteuerten Schutzregel auf der Topologie-Stufe einen tragfähigen Ausgangspunkt für die Integration kardialer Bildgebung in elektrophysiologische Visualisierungs- und Entscheidungsunterstützungssysteme bildet, etwa im Kontext der bei CardioSecur GmbH eingesetzten EKG-Pipelines. |
URI: | https://hdl.handle.net/20.500.12738/20379 | Einrichtung: | Fakultät Life Sciences (ehemalig, aufgelöst 10.2025) Department Medizintechnik (ehemalig, aufgelöst 10.2025) |
Dokumenttyp: | Abschlussarbeit | Abschlussarbeitentyp: | Bachelorarbeit | Betreuer*in: | Riemenschneider, Markus | Gutachter*in: | Snaidr, Anna Luisa |
| Appears in Collections: | Theses |
Files in This Item:
| File | Description | Size | Format | |
|---|---|---|---|---|
| BA_Development_and_evaluation_of_an_automated_AI-driven_pipeline.pdf | 2.34 MB | Adobe PDF | View/Open |
Note about this record
Export
Items in REPOSIT are protected by copyright, with all rights reserved, unless otherwise indicated.