A tri-modal, offline, and explainable framework for 12-lead electrocardiogram interpretation: fusing deterministic rules, a local residual network, and an agentic vision-language model.
OBJECTIVE
Automated electrocardiogram (ECG) interpretation is increasingly delivered as cloud deep-learning services, trading data sovereignty, auditability and robustness for accuracy. This study tests whether an offline, explainable framework can remove that trade-off. Approach. Three independent interpreters feed a decision-fusion layer: a deterministic engine of 26 executable clinical criteria, each finding linked to a highlighted signal segment and a literature source; a compact one-dimensional residual network trained on PTB-XL and run on-device via the Open Neural Network Exchange runtime; and an optional agentic vision-language model reading a rendered ECG image behind a security screen with human-in-the-loop escalation. Format-agnostic ingestion, lead-aware capability tiering and a three-tier signal-quality gate precede interpretation. Evaluation covers diagnostic accuracy, on-device latency, noise resilience, modality ablation and zero-shot external validation. Main results. On the PTB-XL test fold (n = 2198) the network reaches a macro-averaged area under the receiver operating characteristic curve (AUROC) of 0.932 (95% confidence interval (CI) 0.918-0.943), matching published GPU baselines, while the complete pipeline runs in 108 ± 25 ms on a CPU with no network access. Performance degrades gracefully to a signal-to-noise ratio of 5 dB (AUROC 0.951) as the quality gate rejects uninterpretable signals, and rules and network agree only weakly (Cohen's kappa 0.26), indicating complementary errors. Applied without retraining to an independent cohort (Chapman-Shaoxing, n = 1599) the model retains a macro-AUROC of 0.898. In a small pilot (25 records; 30 rule/network disagreements) the general-purpose agentic model was the weakest adjudicator (accuracy 0.267, 95% CI 0.142-0.444; exact McNemar test versus rules, p = 0.09). Significance. Edge inference, intrinsic explainability and governed multi-modal fusion give competitive accuracy with auditable findings. The agentic layer is positioned for governance rather than diagnosis, motivating ECG-specialized models. The open-source system is a research prototype, not a medical device.
Supporting data, adapters, predictions and code for the article *Low-Cost LoRA Fine-Tuning of Small Language Models for Multi-Step Arithmetic Reasoning* by Jake O'Grady, Asena Isik Gürhan, Chee Fong Ting and Effirul Ramlan (University of Galway). We generated 20,000 GSM8K-derived arithmetic problems with step-by-step s...
O'Grady, Jake, Gürhan, Asena Isik, Chee, Fong Ting et al.· Zenodo (CERN European Organi...· 465 citations
The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.
Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al.· IEEE Transactions on Softwar...· 178 citations· ⚡14
Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.
M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al.· e-Informatica Software Engin...· 157 citations· ⚡17
This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.
Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al.· Empirical Software Engineeri...· 127 citations· ⚡15
The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.
Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al.· Journal of Systems and Softw...· 111 citations· ⚡8
This study investigates how Lean internal startup facilitates software product innovation in large companies and identifies its enablers and inhibitors, and shows the potential of the method-in-action framework to investigate the Lean startup approach in non-startup context.
Henry Edison, Nina M. Smørsgård, Xiaofeng Wang et al.· Journal of Systems and Softw...· 78 citations· ⚡6