<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">jis</journal-id>
      <journal-title-group>
        <journal-title>Journal of Information Security</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2153-1242</issn>
      <issn pub-type="ppub">2153-1234</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/jis.2027.181001</article-id>
      <article-id pub-id-type="publisher-id">jis-155863</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Computer Science</subject>
          <subject>Communications</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Agentic LLM Workflows for Trustworthy ECG Analysis</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Odeyemi</surname>
            <given-names>Jethro</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Madisetti</surname>
            <given-names>Vijay K.</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> College of Computing, Georgia Institute of Technology, Atlanta, GA, USA </aff>
      <aff id="aff2"><label>2</label> School of Cybersecurity and Privacy, Georgia Institute of Technology, Atlanta, GA, USA </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The authors declare no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>04</day>
        <month>01</month>
        <year>2027</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>01</month>
        <year>2027</year>
      </pub-date>
      <volume>18</volume>
      <issue>01</issue>
      <fpage>1</fpage>
      <lpage>20</lpage>
      <history>
        <date date-type="received">
          <day>26</day>
          <month>10</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>29</day>
          <month>11</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>02</day>
          <month>12</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2027 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2027</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/jis.2027.181001">https://doi.org/10.4236/jis.2027.181001</self-uri>
      <abstract>
        <p><italic>Objective</italic>: Manual interpretation of the electrocardiogram (ECG) is susceptible to variability, and current artificial intelligence models often lack the transparent, rule-based logic employed by clinicians. This study introduces an agentic Large Language Model (LLM) workflow engineered to execute trustworthy ECG analyzes consistent with clinical procedures. <italic>Methods</italic>: Our system employs a Vision-Language Model to interpret ECG images by responding to diagnostic queries formulated from cardiology guidelines. We utilize the Reflexion framework, wherein an LLM generates findings, receives appraisal from a multifaceted critique mechanism, and self-refines the output. <italic>Results</italic>: The agentic workflow achieved an average critique score improvement of 37.3% over a Zero-Shot baseline and 10.6% over a Best-of-N selection method. Additionally, the system demonstrated high quantitative accuracy regarding critical parameters, such as Left Ventricular Hypertrophy criteria. <italic>Conclusion</italic>: These findings attest to the potential of this agentic, self-refining architecture for biomedical systems to yield more accurate and interpretable ECG evaluations compared to standard prompting methods. <italic>Significance</italic>: This methodology advances reliable AI by methodically verifying diagnostic criteria, thereby assisting clinicians with transparent, explainable decision support.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Agentic AI</kwd>
        <kwd>Agentic LLMs</kwd>
        <kwd>BiomedGPT</kwd>
        <kwd>ECG</kwd>
        <kwd>Medical Diagnosis</kwd>
        <kwd>Reflexion</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>The electrocardiogram (ECG) constitutes a critical biomedical system measurement within the realm of cardiovascular medicine, providing non-invasive insights into cardiac electrical activity and the overall condition of heart health [<xref ref-type="bibr" rid="B1">1</xref>] [<xref ref-type="bibr" rid="B2">2</xref>]. For over a century, clinicians have depended on ECGs for the detection of arrhythmias, ischemia, and various structural heart diseases. Nonetheless, manual interpretation of ECGs is a sophisticated skill that requires significant expertise and is frequently susceptible to inter-rater variability and oversight. Studies suggest that a substantial proportion of these interpretations may be erroneous [<xref ref-type="bibr" rid="B3">3</xref>] [<xref ref-type="bibr" rid="B4">4</xref>]. Although traditional computerized ECG interpretation (CIE) systems have sought to enhance efficiency, they frequently lack the nuanced comprehension necessary for complex cases and can still yield inaccuracies [<xref ref-type="bibr" rid="B4">4</xref>] [<xref ref-type="bibr" rid="B5">5</xref>].</p>
      <p>Recent advances in large language models (LLMs), particularly multimodal and foundation models, have expanded the range of tasks that can be addressed in ECG analysis, including classification, visual interpretation, and report generation. These algorithms exhibit the capability to interpret ECG data with proficiency comparable to, or exceeding, that of human experts [<xref ref-type="bibr" rid="B6">6</xref>]-[<xref ref-type="bibr" rid="B9">9</xref>]. They are able to identify subclinical patterns and forecast conditions that were previously undetectable through manual methods or conventional computerized analysis [<xref ref-type="bibr" rid="B10">10</xref>]-[<xref ref-type="bibr" rid="B12">12</xref>]. These AI-enhanced ECGs possess the ability to screen for disorders such as left ventricular dysfunction, silent atrial fibrillation, and hypertrophic cardiomyopathy, frequently utilizing a standard 12-lead ECG acquired during sinus rhythm [<xref ref-type="bibr" rid="B1">1</xref>] [<xref ref-type="bibr" rid="B2">2</xref>].</p>
      <p>Notwithstanding these advancements, a considerable challenge persists in the systematic application of the detailed, rule-based diagnostic criteria utilized by cardiologists in their routine practice. This requirement for methodical verification mirrors recent findings in biomedical systems research, such as Zhu <italic>et al.</italic>’s demonstration that principled, modular pipelines outperform monolithic approaches [<xref ref-type="bibr" rid="B13">13</xref>] and Smital <italic>et al.</italic>’s validation of signal quality segmentation as a prerequisite for reliable analysis [<xref ref-type="bibr" rid="B13">13</xref>]. In contrast to these robust engineering standards, numerous contemporary AI models for ECG interpretation function as end-to-end classifiers, delivering a final diagnosis without explicitly elucidating adherence to or violation of specific diagnostic rules (e.g., Sokolow-Lyon criteria for LVH, specific ST-T changes for ischemia) [<xref ref-type="bibr" rid="B7">7</xref>] [<xref ref-type="bibr" rid="B14">14</xref>]. This can impede physician trust and adoption, as it obfuscates the reasoning process, making interpretations untrustworthy [<xref ref-type="bibr" rid="B15">15</xref>]. While the proposed system is orchestrated within a single agentic workflow, it is functionally modular at the level of individual diagnostic rules, with each rule independently generated, critiqued, refined, and selected. Moreover, although multimodal LLMs such as ChatGPT-4V have demonstrated potential in interpreting ECG images [<xref ref-type="bibr" rid="B16">16</xref>], their capacity to consistently apply complex diagnostic rules is limited. Further, the reliability of their zero-shot visual question answering for nuanced ECG features requires further exploration and enhancement [<xref ref-type="bibr" rid="B17">17</xref>]. The potential for hallucination or misinterpretation of image features by LLMs represents an additional, albeit critical concern in such high-stakes medical contexts. </p>
      <p>Also, challenges related to trust, explainability, and hallucination remain significant barriers to clinical adoption of LLM based ECG interpretation systems. In this work, explainability is addressed not through post-hoc visualization alone, but through decomposition of ECG interpretation into established diagnostic rules, with each rule producing a standalone, inspectable output. Hallucination risk is mitigated, but not eliminated, through numeric grounding, cross-answer consistency checks, and critique-guided self-refinement. Importantly, this study claims a structured reduction in unverified reasoning compared to single-shot LLM prompting.</p>
      <p>This study introduces a novel methodology designed to address the aforementioned limitations. Its primary objective is to develop a reliable, agentic large language model (LLM)-based workflow that systematically applies established electrocardiogram (ECG) diagnostic rules in a structured, stepwise manner. The system is designed to provide clinicians with explicitly justified outputs for each diagnostic criterion, thereby supporting their interpretive processes and enhancing diagnostic accuracy and inter-observer consistency. In contrast to conventional approaches that focus predominantly on global ECG categorization, the proposed framework decomposes ECG interpretation into its constituent rule-based components. We hypothesize that automating the verification of individual diagnostic rules will reduce clinicians’ cognitive load, decrease the likelihood of diagnostic oversights, and yield a more transparent and dependable AI-assisted interpretation. </p>
      <p>The contributions of this paper include: </p>
      <p>1) We have introduced a novel and trustworthy agentic LLM framework specifically designed for systematic, rule-by-rule ECG analysis, aimed at providing direct decision support to physicians by verifying adherence to established diagnostic criteria. </p>
      <p>2) We proposed a mechanism wherein each rule-based answer generated by an LLM undergoes a Reflexion [<xref ref-type="bibr" rid="B18">18</xref>] refinement process to enhance accuracy and reliability before being presented to the physician, resulting in measurable improvements over existing work. </p>
      <p>By focusing on the rigorous automation of diagnostic rule implementation, we have developed a robust and highly accurate artificial intelligence system designed to support clinicians in improving the diagnostic precision of cardiovascular conditions.</p>
    </sec>
    <sec id="sec2">
      <title>2. Related Work</title>
      <p>Recently, LLMs have entered the domain of ECG data analysis, with studies exploring the capability of multimodal LLMs like ChatGPT-4V to interpret ECG images and answer related questions [<xref ref-type="bibr" rid="B16">16</xref>] [<xref ref-type="bibr" rid="B17">17</xref>] [<xref ref-type="bibr" rid="B19">19</xref>]. A hybrid CNN-Transformer network for ECG classification, utilizing Gradient-weighted Class Activation Mapping (Grad-CAM) has also been introduced to visualize which waveform segments influenced the model’s decision [<xref ref-type="bibr" rid="B20">20</xref>]. While promising, challenges in visual feature extraction, consistency, and hallucination persist, particularly for zero-shot visual question answering (VQA) with complex 12-lead ECGs [<xref ref-type="bibr" rid="B17">17</xref>]. Specialized models like ECGLM [<xref ref-type="bibr" rid="B8">8</xref>] are being developed to better align ECG signal data with textual features for prediction and question answering, indicating that direct LLM application to nuanced clinical interpretation requires careful validation and adaptation [<xref ref-type="bibr" rid="B7">7</xref>] [<xref ref-type="bibr" rid="B19">19</xref>] [<xref ref-type="bibr" rid="B21">21</xref>].</p>
      <p>Commercial computerized ECG interpretation (CIE) systems, such as the Glasgow program and proprietary algorithms developed by companies including Monebo Technologies Inc., provide highly advanced automated electrocardiographic interpretations [<xref ref-type="bibr" rid="B22">22</xref>]. These systems are particularly effective for rapid, high-precision quantitative analysis, encompassing measurements of intervals, electrical axes, and waveform amplitudes, and they frequently incorporate sophisticated signal processing techniques and machine learning-based classifiers to generate a final diagnostic statement. For example, Monebo’s AI-driven algorithm has been validated for its high accuracy in detecting a broad spectrum of ECG abnormalities [<xref ref-type="bibr" rid="B22">22</xref>]. Nonetheless, these systems differ from the present work in two fundamental respects. First, they are typically implemented as end-to-end classification pipelines that directly output a final interpretive label. Second, although they demonstrate excellent quantitative accuracy, they are not designed to support the qualitative, interpretive, and context-dependent reasoning that is intrinsic to expert ECG analysis (e.g., detailed characterization of P-wave morphology or consideration of the clinical context when evaluating T-wave abnormalities). </p>
      <p>The importance of systematic, rule-based approaches is foundational to medical diagnosis, forming the basis of clinical guidelines. Early AI expert systems attempted to codify this medical knowledge [<xref ref-type="bibr" rid="B23">23</xref>], and recent AI research has revisited this integration. For example, the WaSP-ECG toolkit combines AI-derived segmentation with a rule-based atrial fibrillation detector for explainability [<xref ref-type="bibr" rid="B15">15</xref>], and studies on automated HEART score determination via ChatGPT highlight iterative prompt development for applying rule-based logic [<xref ref-type="bibr" rid="B24">24</xref>]. These efforts aim to align AI decision-making with established clinical reasoning. However, few AI systems have been explicitly designed to systematically iterate through comprehensive ECG diagnostic rules and provide verified answers for each. Generalist models like BiomedGPT are designed for diverse biomedical tasks including instruction following [<xref ref-type="bibr" rid="B25">25</xref>], but their specific application to granular, rule-by-rule ECG interpretation with per-rule verification remains an underexplored area, which is a primary focus of our work.</p>
      <p>Agentic LLMs, which can plan, use tools, and learn from interactions, represent a significant advancement [<xref ref-type="bibr" rid="B18">18</xref>] [<xref ref-type="bibr" rid="B26">26</xref>]. The Reflexion framework enables language agents to learn via linguistic feedback and iterative self-reflection, proving effective for complex reasoning tasks [<xref ref-type="bibr" rid="B18">18</xref>]. In medicine, agentic workflows with Reflexion have been used to translate formal medical reports into patient-friendly equivalents, improving accuracy and readability [<xref ref-type="bibr" rid="B27">27</xref>]. Our research adapts these principles by first employing an agentic structure to generate the technical, rule-based ECG interpretation itself, where an LLM, guided by a “Critiquer” LLM, refines its answer for each specific diagnostic rule. This per-rule refinement is a novel application of Reflexion principles to the core diagnostic task. </p>
      <p><bold>Table 1</bold> synthesizes the principal contributions of prior studies and delineates the specific research gaps addressed in this work. Although contemporary AI methods achieve high performance in global ECG classification and large language models (LLMs) demonstrate promise for multimodal interpretation and textual report simplification, there remains a substantial unmet need for AI systems that explicitly emulate and systematically validate the rule-based diagnostic procedures employed by clinicians in ECG interpretation. Moreover, the application of iterative refinement frameworks such as Reflexion at the fine-grained level of verifying individual diagnostic rules constitutes an underexplored research direction. The present study seeks to bridge these gaps by developing an agentic LLM-based system for systematic ECG rule application, integrating Reflexion for per-rule answer verification to improve technical accuracy, and furnishing clinicians with rule-level, verified outputs to more effectively support their diagnostic workflow.</p>
      <p><bold>Table 1.</bold>Comparison of related work and gaps addressed by this research.</p>
      <table-wrap id="tbl1">
        <label>Table 1</label>
        <table>
          <tbody>
            <tr>
              <td>
                <bold>Paper/Area</bold>
              </td>
              <td>
                <bold>Key Focus/Contribution</bold>
              </td>
              <td>
                <bold>Gap Addressed by Our Research</bold>
              </td>
            </tr>
            <tr>
              <td>
                Attia
                <italic>et al.</italic>
                [
                <xref ref-type="bibr" rid="B1">1</xref>
                ], Siontis
                <italic>et al.</italic>
                [
                <xref ref-type="bibr" rid="B2">2</xref>
                ]
              </td>
              <td>AI for ECG classification (LV dysfunction, AF) using deep learning.</td>
              <td>Focuses on overall diagnosis. Our work provides answers to each specific diagnostic rule.</td>
            </tr>
            <tr>
              <td>
                Commercial CIE Systems (e.g., Monebo [
                <xref ref-type="bibr" rid="B22">22</xref>
                ])
              </td>
              <td>High-precision, automated quantitative analysis and generation of a final diagnostic classification using advanced signal processing and ML classifiers.</td>
              <td>Our work handles both quantitative and nuanced qualitative/interpretive reasoning, enhancing explainability.</td>
            </tr>
            <tr>
              <td>
                Zhu
                <italic>et al.</italic>
                [
                <xref ref-type="bibr" rid="B16">16</xref>
                ], Seki
                <italic>et al.</italic>
                [
                <xref ref-type="bibr" rid="B17">17</xref>
                ]
              </td>
              <td>Multimodal LLMs (ChatGPT-4V) for interpreting ECG images and answering MCQs.</td>
              <td>Shows promise but highlights challenges in accuracy, hallucination for VQA on ECGs, and consistent application of complex rules. Our work aims for higher accuracy through per-rule refinement, making it easier for physicians to generate an overall interpretation.</td>
            </tr>
            <tr>
              <td>
                Sudarshan
                <italic>et al.</italic>
                [
                <xref ref-type="bibr" rid="B27">27</xref>
                ]
              </td>
              <td>Agentic LLM workflow with Reflexion for generating patient-friendly radiology reports from existing technical reports.</td>
              <td>Applies Reflexion to simplify existing reports. Our work uses a rule-based, Reflexion process to generate the technical interpretation itself.</td>
            </tr>
            <tr>
              <td>
                Shinn
                <italic>et al.</italic>
                (Reflexion) [
                <xref ref-type="bibr" rid="B18">18</xref>
                ]
              </td>
              <td>General framework for language agents with verbal reinforcement learning for tasks like coding, reasoning.</td>
              <td>A general framework. Our work applies Reflexion specifically to the medical sub-task of verifying individual ECG diagnostic rule applications by an LLM.</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
    </sec>
    <sec id="sec3">
      <title>3. Methodology</title>
      <p>The proposed biomedical system employs an agentic workflow to derive accurate, rule-based technical interpretations of electrocardiogram (ECG) data, with the primary objective of supporting clinical decision-making by physicians. This section delineates the principal components of the workflow: 1) the acquisition and representation of ECG data, 2) the systematic curation of diagnostic rules and associated query templates, 3) the implementation of the Reflexion framework to enable iterative refinement of intermediate answers, and 4) the generation of a final, structured diagnostic report. The overall system architecture, depicting the specific interactions between the ECG data input, the LLM actors, and the Reflexion refinement loops, is illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p>
      <fig id="fig1">
        <label>Figure 1</label>
        <caption>
          <p>High-level architecture of the agentic LLM workflow for systematic ECG analysis. It shows the input ECG data, the iterative per-rule interpretation sub-process involving initial answer generation, critique, and refinement using the Reflexion mechanism, and the final compilation into a structured technical report for physician assistance.</p>
        </caption>
        <graphic xlink:href="https://html.scirp.org/file/7801175-rId13.jpeg?20261202014045" />
      </fig>
      <sec id="sec3dot1">
        <title>3.1. ECG Data Input and Feature Representation</title>
        <p>In this work, image standardization refers to the deterministic transformation of raw digital ECG waveform data (WFDB records) into a consistent, uniform visual image representation suitable for processing by vision-language models. This process enforces a standardized 12-lead composite layout consisting of a fixed 6 × 2 grid, with each subplot corresponding to a single lead. During image generation, lead labels (e.g., I, II, V1 - V6) are automatically placed in fixed, consistent locations within each subplot to preserve semantic correspondence across samples. All background grid lines, axis ticks, spines, and non-signal visual artifacts are intentionally removed to produce a clean signal-only image. This design choice reduces visual clutter and emphasizes waveform morphology, but also removes explicit measurement references such as time and amplitude grids. The agentic-based biomedical system is designed to process standard 12-lead ECGs sourced from the MIMICIV-ECG database [<xref ref-type="bibr" rid="B28">28</xref>]. Our workflow employs a hybrid data representation to leverage the distinct strengths of both visionlanguage models (VLMs) and programmatic analysis tools. The primary input for the VLM is an image-based representation. Raw ECG waveform data (from ‘.dat’ files) are converted into standardized 12-lead ECG image tracings, to accurately represent the format reviewed by clinicians (<xref ref-type="fig" rid="fig2">Figure 2</xref>). ECG images are initially rendered and stored at a high resolution of approximately 2700 × 1800 pixels (18 × 12 inches at 150 DPI) to preserve waveform detail for human inspection and high-fidelity processing. Prior to inference, images are resized to 480 × 480 pixels to match the fixed input resolution expected by the BiomedGPT vision-language model. This downsampling is required for model compatibility and computational efficiency. This approach allows models like BiomedGPT [<xref ref-type="bibr" rid="B25">25</xref>] to utilize their visual processing capabilities to analyze waveform morphologies, amplitudes, and durations, a method proven effective in VQA tasks on ECGs [<xref ref-type="bibr" rid="B16">16</xref>] [<xref ref-type="bibr" rid="B17">17</xref>]. Concurrently, the raw digital waveform data (‘.dat’ and ‘.hea’ files) and associated machine-generated reports are retained. This raw data serves as the objective ground truth for the programmatic critique of quantitative rules. This ensures that the model’s visual interpretation is anchored and verified by objective, calculable metrics. </p>
        <fig id="fig2">
          <label>Figure 2</label>
          <caption>
            <p>Example of a standardized 12-lead ECG image tracing used as input for the LLM analysis. This format allows the VLM to visually assess waveform characteristics across all leads [<xref ref-type="bibr" rid="B29">29</xref>].</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/7801175-rId14.jpeg?20261202014046" />
        </fig>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. Curation of ECG Diagnostic Rules and Questions</title>
        <p>A structured set of diagnostic rules was derived from established ECG interpretation criteria and widely accepted cardiology guidelines [<xref ref-type="bibr" rid="B4">4</xref>]. Rather than manually authoring diagnostic prompts, the corresponding rule-based diagnostic questions were programmatically generated using BiomedGPT, conditioned on these predefined criteria. These rules deconstruct the complex task of ECG interpretation into a series of verifiable, rule-based queries. For each rule, a diagnostic question was formulated to prompt the LLM to assess a specific feature of the ECG. The major categories and questions are outlined in <bold>Table 2</bold>.</p>
        <p><bold>Table 2.</bold>Major categories of ECG diagnostic rules and diagnostic questions.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>Category of Diagnostic Rule</td>
                <td>Diagnostic Question for LLM</td>
              </tr>
              <tr>
                <td>Heart Rate Classification</td>
                <td>“Based on this ECG image, is the heart rate classified as bradycardia, normal, or tachycardia?”</td>
              </tr>
              <tr>
                <td>Rhythm Analysis</td>
                <td>“From the ECG image, identify the underlying rhythm. Is it Normal Sinus Rhythm, Atrial Fibrillation, Atrial Flutter, or are there significant ectopics present? Describe key rhythm features.”</td>
              </tr>
              <tr>
                <td>Axis Determination</td>
                <td>“Determine the QRS axis from this ECG image. Is it normal, left axis deviation, right axis deviation, or extreme axis deviation?”</td>
              </tr>
              <tr>
                <td>Interval Measurements and Assessment</td>
                <td>“Measure the PR interval, QRS duration, and QTc interval from this ECG image. Are these intervals within normal limits?”</td>
              </tr>
              <tr>
                <td>P-Wave Morphology and Atrial Abnormalities</td>
                <td>“Analyze the P-wave morphology in leads II and V1 from the ECG image. Are there signs suggestive of Left Atrial Enlargement or Right Atrial Enlargement?”</td>
              </tr>
              <tr>
                <td>QRS Complex Morphology</td>
                <td>“Examine the QRS complexes in all leads of this ECG image. Are there any pathological Q waves, signs of low voltage, or RSR’ patterns indicative of specific conditions?”</td>
              </tr>
              <tr>
                <td>Chamber Hypertrophy (e.g., LVH-Sokolow-Lyon)</td>
                <td>“Based on the ECG image, assess if the Sokolow-Lyon voltage criteria for Left Ventricular Hypertrophy (S wave in V1 + R wave in V5 or V6 ¿ 35mm) are met. State the calculated sum.”</td>
              </tr>
              <tr>
                <td>ST Segment Analysis</td>
                <td>“Evaluate the ST segments across all leads in this ECG image. Is there evidence of clinically significant ST elevation or ST depression? If so, in which leads and by how many millimeters?”</td>
              </tr>
              <tr>
                <td>T Wave Analysis</td>
                <td>“Analyze the T waves in this ECG image. Are there any abnormalities such as inversion, peaking, or flattening that might indicate ischemia or electrolyte imbalance?”</td>
              </tr>
              <tr>
                <td>Conduction Abnormalities (e.g., RBBB)</td>
                <td>“Based on this ECG image, is there evidence of a Right Bundle Branch Block (RBBB)? Describe the QRS duration and morphology in relevant leads (e.g., V1, V6).”</td>
              </tr>
              <tr>
                <td>Indicators of Acute Myocardial Infarction (e.g., Inferior MI)</td>
                <td>“Examine this ECG image for signs of acute inferior myocardial infarction. Are there ST elevations in leads II, III, and aVF, and/or reciprocal changes?”</td>
              </tr>
              <tr>
                <td>Electrolyte Imbalance Indicators (e.g., Hyperkalemia)</td>
                <td>“Are there any ECG findings in this image, such as peaked T waves or widened QRS, suggestive of hyperkalemia?”</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. LLM-Based Rule Application with Agentic Reflexion</title>
        <p>The core of our proposed system is an agentic workflow that directly implements the Reflexion framework [<xref ref-type="bibr" rid="B18">18</xref>] to systematically apply and refine the answer for each diagnostic rule. This process, detailed in Algorithm 1, is designed to maximize the accuracy of the final finding for each rule. We adopted the principles of the AlfWorld variant of Reflexion. Unlike the reasoning and programming variants, which grade attempts against exact-match answers or unit tests, the Alf-World variant targets multi-step sequential decision-making, where each trial is scored by an evaluator (a heuristic or an LLM) and failed trials yield verbal feedback for the next attempt. This matches our task, in which ECG interpretation proceeds as a sequence of rule-level decisions, each scored by the multi-faceted critique mechanism described below. The framework consists of an Actor VLM (BiomedGPT), an Evaluator (a multi-faceted critique mechanism), and a SelfReflection process. BiomedGPT was selected over generalist VLMs because it is pretrained on biomedical image-text data and supports medical visual question answering, the task formulation used here; it is also open-source and lightweight [<xref ref-type="bibr" rid="B25">25</xref>]. </p>
        <table-wrap id="tbl3">
          <label>Table 3</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Algorithm 1:</bold>
                  Agentic Per-Rule ECG Interpretation with Reflexion
                </td>
              </tr>
              <tr>
                <td>
                  <bold>Input:</bold>
                  ECG Image
                  <italic>I</italic>
                  <italic>
                    <sub>ecg</sub>
                  </italic>
                  , Raw ECG Record
                  <italic>D</italic>
                  <italic>
                    <sub>raw</sub>
                  </italic>
                  , Diagnostic Rule
                  <italic>R</italic>
                  <italic>
                    <sub>i</sub>
                  </italic>
                  , Number of candidates
                  <italic>N</italic>
                  <bold>Output:</bold>
                  Best refined answer
                  <italic>A</italic>
                  <italic>
                    <sub>best</sub>
                  </italic>
                  1 {
                  <italic>A</italic>
                  <sub>1</sub>
                  , ∙∙∙,
                  <italic>A</italic>
                  <italic>
                    <sub>N</sub>
                  </italic>
                  } ←Generate N initial answers for Ri using
                  <italic>M</italic>
                  <italic>
                    <sub>actor</sub>
                  </italic>
                  (
                  <italic>I</italic>
                  <italic>
                    <sub>ecg</sub>
                  </italic>
                  )2 {
                  <italic>C</italic>
                  <sub>1</sub>
                  , ∙∙∙,
                  <italic>C</italic>
                  <italic>
                    <sub>N</sub>
                  </italic>
                  } ←Critique each answer (numeric, text, or consistency)3 RefinedAnswers ← []4
                  <bold>for</bold>
                  j ← 1
                  <bold>to</bold>
                  N
                  <bold>do</bold>
                  5
                  <inline-formula>
                    <mml:math display="inline">
                      <mml:mrow>
                        <mml:msub>
                          <mml:msup>
                            <mml:mi>A</mml:mi>
                            <mml:mo>′</mml:mo>
                          </mml:msup>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                      </mml:mrow>
                    </mml:math>
                  </inline-formula>
                  ← Run Reflexion trial(
                  <italic>R</italic>
                  <italic>
                    <sub>i</sub>
                  </italic>
                  ,
                  <italic>A</italic>
                  <italic>
                    <sub>j</sub>
                  </italic>
                  ,
                  <italic>C</italic>
                  <italic>
                    <sub>j</sub>
                  </italic>
                  )
                  <inline-formula>
                    <mml:math display="inline">
                      <mml:mrow>
                        <mml:msub>
                          <mml:msup>
                            <mml:mi>C</mml:mi>
                            <mml:mo>′</mml:mo>
                          </mml:msup>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                      </mml:mrow>
                    </mml:math>
                  </inline-formula>
                  ← Re-critique the refined answer
                  <inline-formula>
                    <mml:math display="inline">
                      <mml:mrow>
                        <mml:msub>
                          <mml:msup>
                            <mml:mi>A</mml:mi>
                            <mml:mo>′</mml:mo>
                          </mml:msup>
                          <mml:mi>j</mml:mi>
                        </mml:msub>
                      </mml:mrow>
                    </mml:math>
                  </inline-formula>
                  6 Add
                  <inline-formula>
                    <mml:math display="inline">
                      <mml:mrow>
                        <mml:mrow>
                          <mml:mo>(</mml:mo>
                          <mml:mrow>
                            <mml:msub>
                              <mml:msup>
                                <mml:mi>A</mml:mi>
                                <mml:mo>′</mml:mo>
                              </mml:msup>
                              <mml:mi>j</mml:mi>
                            </mml:msub>
                            <mml:mo>,</mml:mo>
                            <mml:msub>
                              <mml:msup>
                                <mml:mi>C</mml:mi>
                                <mml:mo>′</mml:mo>
                              </mml:msup>
                              <mml:mi>j</mml:mi>
                            </mml:msub>
                          </mml:mrow>
                          <mml:mo>)</mml:mo>
                        </mml:mrow>
                      </mml:mrow>
                    </mml:math>
                  </inline-formula>
                  to RefinedAnswers7
                  <bold>end</bold>
                  8
                  <italic>A</italic>
                  <italic>
                    <sub>best</sub>
                  </italic>
                  ←Select answer with the highest score in its critique
                  <italic>C</italic>
                  ′9
                  <bold>return</bold>
                  <italic>A</italic>
                  <italic>
                    <sub>best</sub>
                  </italic>
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The process for each diagnostic rule Ri involves the following steps, as implemented in our scripts:</p>
        <p>1) Initial Answer Generation (Actor): For a given diagnostic question Qi, the Actor VLM generates <italic>N</italic> = 5 diverse candidate answers based on the input ECG image Iecg, with <italic>N</italic> held constant across all diagnostic rules. This “best-of-N” approach creates a set of initial hypotheses.</p>
        <p>2) Multi-Faceted Evaluation (Evaluator): Each candidate answer is evaluated by a Critiquer mechanism that employs one of three methods depending on the rule’s nature:</p>
        <p>Numeric Critique: For quantitative rules (e.g., Heart Rate, LVH), a ground truth value is calculated directly from the raw waveform data using the “neurokit2” library [<xref ref-type="bibr" rid="B22">22</xref>]. The critique score is based on the numeric difference between the LLM’s answer and this objective ground truth. The purpose of prompting the LLM to assess quantitative criteria is not to replace deterministic computation, but to evaluate its ability to reason about clinically defined thresholds in a manner analogous to human verification. Programmatic calculations derived from raw waveform data serve as the authoritative ground truth for critique and scoring.Textual Critique: For qualitative rules with a known reference interpretation, textual critique measures factual alignment between the candidate answer and a ground-truth ECG report. The critique model is prompted with both texts and instructed to assign a score based on agreement of rhythm, findings, and diagnostic conclusions. A score of 1.0 indicates near-perfect alignment, while 0.0 indicates complete disagreement. For example, in rhythm analysis, an answer identifying Normal Sinus Rhythm with appropriate supporting evidence receives a high score when the reference report indicates sinus rhythm, whereas diagnosing atrial fibrillation or flutter in the same case yields a score near 0.0 due to mutual exclusivity. <italic>Consistency</italic><italic>Critique</italic>: For rules lacking a single objective ground truth, consistency critique evaluates the degree to which a candidate answer aligns with the consensus of multiple independent answers (<italic>N</italic> = 5) generated by the same model. High scores correspond to agreement with the majority opinion, while low scores indicate outlier responses suggestive of instability or hallucination. For instance, if most answers identify a normal electrical axis and one answer reports left axis deviation, the former receives a high consistency score while the latter is penalized. </p>
        <p>This evaluation yields a score and a textual justification (the critique) for each of the <italic>N</italic>initial answers. </p>
        <p>3) <bold>Self-Reflection</bold><bold>and</bold><bold>Refinement:</bold>This step uses the Reflexion decision making agent. For each initial answer and its corresponding critique, the agent is used to run a certain number of self-reflection trials. This prompts the agent to learn from its specific mistake and generate a refined answer.</p>
        <p>4) <bold>Final</bold><bold>Answer</bold><bold>Selection:</bold>Each refined answer is reevaluated using the critique mechanism to obtain a final score. The system then selects the single best answer for the rule, the one that achieved the highest score after the reflection and refinement trial.</p>
        <p>This entire loop of generation, evaluation, reflection, and selection is performed independently for every diagnostic rule in our database. </p>
      </sec>
      <sec id="sec3dot4">
        <title>3.4. Structured Report Output for Physician Assistance</title>
        <p>Upon completion of the per-rule interpretation process for all <italic>K</italic>rules, the system programmatically compiles the single “best” refined answer for each rule into a structured technical report. This report, <italic>S</italic><italic><sub>report</sub></italic>, is formatted to mirror a systematic clinical workflow, presenting findings clearly under each diagnostic rule heading. This transparent, rule-by-rule breakdown allows a physician to quickly review the AI’s findings, compare them against their own interpretation, and integrate the AI-generated insights into their final clinical assessment, thereby enhancing diagnostic efficiency and confidence.</p>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Results</title>
      <p>The performance of our agentic workflow was systematically evaluated against two baselines: a standard Zero-Shot approach and a Best-of-N selection method. The evaluation utilized an automated critique score (0.0 to 1.0) and, for quantitative rules, the Mean Absolute Error (MAE). </p>
      <sec id="sec4dot1">
        <title>4.1. Overall Performance Improvement with Reflexion</title>
        <p><xref ref-type="fig" rid="fig3">Figure 3</xref> illustrates the average automated critique scores across all diagnostic rules for the three evaluation methods. A clear, stepwise improvement is observed. The Best-of-N method consistently outperforms the Zero-Shot baseline, and the final Reflexion-based workflow achieves the highest scores for the vast majority of rules. Notably, the Reflexion agent demonstrates substantial performance gains in complex interpretive tasks such as “Conduction Abnormalities (e.g., RBBB)” (0.92 final score), “Rhythm Analysis” (0.95), and “Heart Rate Classification” (0.91). </p>
        <p>To quantify these improvements, <bold>Table 3</bold> shows the percentage change in average critique score at each stage. On average, moving from a Zero-Shot to a Best-of-N approach yielded a 23.1% increase in performance. The subsequent application of the Reflexion workflow provided an additional 10.6% improvement over the Best-of-N results. Overall, the full agentic system demonstrated an average performance uplift of 37.3% compared to the Zero-Shot baseline.</p>
        <fig id="fig3">
          <label>Figure 3</label>
          <caption>
            <p>Performance comparison across evaluation methods. The final agentic workflow using Reflexion (green) consistently outperforms both the Zero-Shot baseline (blue) and the Best-of-N selection method (red) across most diagnostic rules.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/7801175-rId23.jpeg?20261202014047" />
        </fig>
        <p><bold>Table 3.</bold> Percentage improvement in critique score across methods.</p>
        <table-wrap id="tbl4">
          <label>Table 4</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Diagnostic Rule</bold>
                </td>
                <td>
                  <bold>Best-of-N vs.</bold>
                  <bold>Zero-Shot</bold>
                  <bold>(%)</bold>
                </td>
                <td>
                  <bold>Reflexion</bold>
                  <bold>vs.</bold>
                  <bold>Bestof-N</bold>
                  <bold>(%)</bold>
                </td>
                <td>
                  <bold>Reflexion</bold>
                  <bold>vs.</bold>
                  <bold>Zero-Shot</bold>
                  <bold>(%)</bold>
                </td>
              </tr>
              <tr>
                <td>Axis Determination</td>
                <td>3.5</td>
                <td>−38.6</td>
                <td>−36.5</td>
              </tr>
              <tr>
                <td>Chamber Hypertrophy</td>
                <td>29.1</td>
                <td>21.1</td>
                <td>56.4</td>
              </tr>
              <tr>
                <td>Conduction Abnormalities</td>
                <td>25.0</td>
                <td>22.7</td>
                <td>53.3</td>
              </tr>
              <tr>
                <td>Electrolyte Imbalance</td>
                <td>36.0</td>
                <td>29.4</td>
                <td>76.0</td>
              </tr>
              <tr>
                <td>Heart Rate Classification</td>
                <td>23.1</td>
                <td>13.8</td>
                <td>40.0</td>
              </tr>
              <tr>
                <td>Acute MI Indicators</td>
                <td>25.8</td>
                <td>14.1</td>
                <td>43.5</td>
              </tr>
              <tr>
                <td>Interval Measurements</td>
                <td>24.1</td>
                <td>20.8</td>
                <td>50.0</td>
              </tr>
              <tr>
                <td>P-Wave Morphology</td>
                <td>17.1</td>
                <td>−20.7</td>
                <td>−7.1</td>
              </tr>
              <tr>
                <td>QRS Complex Morphology</td>
                <td>25.0</td>
                <td>20.0</td>
                <td>50.0</td>
              </tr>
              <tr>
                <td>Rhythm Analysis</td>
                <td>21.4</td>
                <td>11.8</td>
                <td>35.7</td>
              </tr>
              <tr>
                <td>ST Segment Analysis</td>
                <td>26.2</td>
                <td>14.3</td>
                <td>44.3</td>
              </tr>
              <tr>
                <td>T Wave Analysis</td>
                <td>20.3</td>
                <td>18.3</td>
                <td>42.4</td>
              </tr>
              <tr>
                <td>
                  <bold>Average</bold>
                </td>
                <td>
                  <bold>23.1</bold>
                </td>
                <td>
                  <bold>10.6</bold>
                </td>
                <td>
                  <bold>37.3</bold>
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot2">
        <title>4.2. Effectiveness of the Self-Refinement Workflow</title>
        <fig id="fig4">
          <label>Figure 4</label>
          <caption>
            <p>Effectiveness of the Reflexion workflow, showing the score uplift (Final Score - Average Initial Score). Positive bars indicate successful refinement, while negative bars highlight cases where the process degraded performance.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/7801175-rId24.jpeg?20261202014048" />
        </fig>
        <p>The direct contribution of the self-reflection and refinement step is visualized in <xref ref-type="fig" rid="fig4">Figure 4</xref>. This “Reflexion uplift”, calculated as the difference between the final score and the average initial score, was positive for 10 out of the 12 rules, indicating a successful refinement process. The most significant gains were seen in rules like “Electrolyte Imbalance Indicators (e.g., Hyperkalemia)” (+0.20 score uplift) and “Conduction Abnormalities” (+0.17). However, for two rules, “Axis Determination” and “P-Wave Morphology and Atrial Abnormalities”, the Reflexion process resulted in a lower final score compared to the initial answers, with uplifts of −0.34 and −0.17, respectively.</p>
      </sec>
      <sec id="sec4dot3">
        <title>4.3. Accuracy on Quantitative Rules</title>
        <p>For rules requiring numeric calculation, the system’s accuracy was measured by MAE against a ground truth derived from the raw waveform data using the “neurokit2” library. As shown in <bold>Table 4</bold>, the final refined answers achieved high accuracy on key clinical parameters. The MAE for “Interval Measurements and Assessment” was higher at 15.50 ms, and for “Chamber Hypertrophy (Sokolow-Lyon)” it was 3.10 mm.</p>
        <p><bold>Table 4.</bold>Mean absolute error (MAE) for quantitative ECG diagnostic rules.</p>
        <table-wrap id="tbl5">
          <label>Table 5</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Diagnostic Rule</bold>
                </td>
                <td>
                  <bold>MAE</bold>
                </td>
                <td>
                  <bold>Unit</bold>
                </td>
              </tr>
              <tr>
                <td>LVH (Sokolow-Lyon)</td>
                <td>3.53</td>
                <td>mm</td>
              </tr>
              <tr>
                <td>Heart Rate Calculation and Classification</td>
                <td>5.77</td>
                <td>bpm</td>
              </tr>
              <tr>
                <td>Interval Measurements and Assessment</td>
                <td>17.44</td>
                <td>ms</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot4">
        <title>4.4. Qualitative Report Improvement</title>
        <p>The quantitative score improvements translated directly into higher-quality, more clinically useful reports. <xref ref-type="fig" rid="fig5">Figure 5</xref> presents a side-by-side comparison of a final report generated by the Zero-Shot method versus the Reflexion-based agent alongside its corresponding input ECG signal. The Zero-Shot report is often generic or contains factual inaccuracies, whereas the Reflexion report provides more specific, and corrected findings. For this specific example (Study 44458630, machine report: “Sinus rhythm, possible right atrial abnormality, borderline ECG”), the Zero-Shot report achieved an average automated critique score of 0.39, whereas the Reflexion-based report achieved a significantly improved score of 0.99. Key corrections included the rhythm classification (changed from “Atrial Fibrillation” to the correct “Normal Sinus Rhythm with Right Atrial Abnormality”).</p>
        <p>Conversely, <xref ref-type="fig" rid="fig6">Figure 6</xref> presents a counter-example (Study 45386375, machine report: “Extensive T wave changes may be due to myocardial ischemia, abnormal ECG”) where the Zero-Shot baseline was already strong (average score 0.97), leaving minimal room for improvement. The Reflexion process achieved only a marginal gain to 0.99 (+2.6%), and for the QRS Complex Morphology rule, the score was degraded from 1.00 to 0.95 following an over-correction by the critique step. Additionally the conduction assessment erroneously introduced a Left Bundle Branch Block finding.</p>
        <fig id="fig5">
          <label>Figure 5</label>
          <caption>
            <p>Qualitative comparison of a Zero-Shot report (left) and the final Reflexion-based report (right) for Study 44458630. The corresponding processed input ECG signal is shown at the top. The Zero-Shot average score was 0.39 compared to the Reflexion score of 0.99.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/7801175-rId25.jpeg?20261202014048" />
        </fig>
        <fig id="fig6">
          <label>Figure 6</label>
          <caption>
            <p>Counter-example demonstrating limited Reflexion improvement for Study 45386375. The corresponding processed input ECG signal is shown at the top. The initial Zero-Shot score of 0.97 was only marginally improved to 0.99 (+2.6%), and the QRS Complex Morphology rule was degraded from 1.00 to 0.95 due to an over-correction by the critique.</p>
          </caption>
          <graphic xlink:href="https://html.scirp.org/file/7801175-rId26.jpeg?20261202014048" />
        </fig>
      </sec>
    </sec>
    <sec id="sec5">
      <title>5. Discussion</title>
      <p>The findings of this study indicate that an agentic workflow incorporating the Reflexion framework can substantially improve both the diagnostic accuracy and the reliability of automated ECG interpretation performed by large language models. The incremental performance gains observed from the Zero-Shot condition to the Best-of-N configuration, and ultimately to the Reflexion-based output, provide evidence that each constituent element of the agentic architecture contributes distinct and quantifiable benefits. </p>
      <p>A key finding is that the self-reflection and refinement loop improves performance for the majority diagnostic rules. This suggests that the agent is not simply selecting the optimal hypothesis from a fixed set of initial candidates, but is instead actively correcting its own errors and iteratively enhancing its reasoning process. The critique mechanism supplies the structured feedback required to support this effective selfcorrection. The low mean absolute error (MAE) values observed for quantitative rules, such as heart rate estimation and left ventricular hypertrophy (LVH) criteria, further substantiate this conclusion, demonstrating that the system attains a level of quantitative accuracy that is clinically meaningful. </p>
      <p>Nonetheless, the study also identifies several important limitations. The performance degradation observed in “Axis Determination” and “P-Wave Morphology” (<xref ref-type="fig" rid="fig4">Figure 4</xref>) indicates that the current critique mechanism, although effective for many decision rules, may generate inaccurate or misleading feedback for these more nuanced interpretive tasks. This, in turn, can prompt the agent to refine an initially correct response into an incorrect one. The tendency of the LLM to over-correct its reasoning on the basis of an imperfect critique constitutes a critical failure mode that warrants systematic investigation. End-to-end processing time varies as a function of the number of diagnostic rules evaluated, the number of candidate answers generated per rule (<italic>N</italic>), and the number of Reflexion refinement trials, and is therefore configuration dependent. As such, the system is best suited for offline or asynchronous decision-support scenarios.</p>
      <p>The Consistency Critique scores candidates by agreement with a consensus drawn from the same model, so it cannot detect an error shared by all candidates, and refinement may move a correct minority answer toward an incorrect majority. Its scope is, however, limited: it is used only for Axis Determination and P-Wave Morphology, where it serves to suppress unstable outputs such as image-feature hallucinations [<xref ref-type="bibr" rid="B17">17</xref>]; the remaining ten rules are scored against the raw waveform or the reference report, and every rule-level finding remains open to physician review. Future work could replace it with waveform derived checks (e.g., computing the QRS axis from leads I and aVF) or with consensus across heterogeneous models. </p>
      <p>This study is intended as a methodological investigation of agentic LLM workflows for rule-based ECG interpretation rather than a clinical validation study. While clinician evaluation is essential for downstream deployment, the present work focuses on demonstrating feasibility, internal consistency, and systematic behavior under controlled conditions. As such, nonquantitative assessments rely on structured internal critique rather than expert adjudication, which remains a necessary direction for future research. </p>
      <p>The broader implication of this work is that agentic frameworks such as Reflexion hold substantial promise for complex, multi-step medical reasoning tasks in the context of biomedical systems. By decomposing a complex interpretation into a sequence of verifiable sub-steps and equipping the model with mechanisms for self-critique and self-correction, this paradigm extends beyond simple question-answering and moves toward the development of more robust and trustworthy AI-based clinical decision-support systems. </p>
      <p>Regarding the computational and time resources required to deploy this system, the agentic workflow is substantially more resource-intensive compared to single-pass end-to-end classifiers. For each ECG, the pipeline evaluates 12 diagnostic rules with <italic>N</italic> = 5 candidate answers per rule, resulting in approximately 264 API calls per ECG: 1 zero-shot generation, 5 candidate generations, 5 critique evaluations, 5 refinement generations, 5 re-critique evaluations, and 1 zero-shot scoring evaluation per rule. With an average API call latency of 2 - 4 seconds, processing a single ECG through the full pipeline required approximately 25 minutes in our experimental setup. The only local compute required was for signal processing via NeuroKit2, which completed in under 10 seconds per ECG on a standard CPU. </p>
      <p>Future research should prioritize several key directions. First, the critique mechanism requires systematic refinement, with particular emphasis on those rules for which it currently exhibits suboptimal performance. Potential enhancements include the development and training of a specialized Critiquer model, or the implementation of a multi-agent debate framework in which distinct agents present arguments for and against a given finding to arrive at a more reliable and robust critique. Second, the rule set should be broadened and refined to encompass a more comprehensive spectrum of cardiac abnormalities.</p>
    </sec>
    <sec id="sec6">
      <title>6. Conclusions</title>
      <p>In this paper, we introduced a novel agentic LLM workflow designed to automate the systematic, rule-based interpretation of 12-lead ECGs. By deconstructing the complex diagnostic process into a series of verifiable questions and employing the Reflexion framework, our system iteratively refines its findings to enhance accuracy. The core of our contribution lies in using a multi-faceted critique mechanism, combining programmatic validation, textual comparison, and consistency checks, to guide an LLM in a self-correction loop for each specific diagnostic rule. </p>
      <p>Our results confirm the efficacy of this approach. The full agentic workflow achieved a substantial average performance improvement of 37.3% over a standard Zero-Shot baseline and demonstrated high accuracy on quantitative measurements. The success of the self-refinement process for the majority of rules underscores the potential of agentic frameworks to move beyond simple classification and tackle complex medical reasoning tasks. However, our work also highlighted key limitations, notably the performance degradation on certain nuanced rules where the critique mechanism proved insufficient, leading to flawed refinements. </p>
      <p>This study shows that agentic AI can be structured to mirror clinical reasoning pathways. It paves the way for developing more transparent, reliable, and trustworthy AI-powered assistants that can support physicians by automating rule verification, reducing cognitive load, and ultimately enhancing diagnostic confidence. Future work will focus on improving the robustness of the critique mechanism and expanding the system’s diagnostic rule set to create a more comprehensive and clinically applicable tool. </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Attia, Z.I., Harmon, D.M., Behr, E.R. and Friedman, P.A. (2021) Application of Artificial Intelligence to the Electrocardiogram. <italic>European Heart Journal</italic>, 42, 4717-4730. https://doi.org/10.1093/eurheartj/ehab649 <pub-id pub-id-type="doi">10.1093/eurheartj/ehab649</pub-id><pub-id pub-id-type="pmid">34534279</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/eurheartj/ehab649">https://doi.org/10.1093/eurheartj/ehab649</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Attia, Z.I.</string-name>
              <string-name>Harmon, D.M.</string-name>
              <string-name>Behr, E.R.</string-name>
              <string-name>Friedman, P.A.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Application of Artificial Intelligence to the Electrocardiogram</article-title>
            <source>European Heart Journal</source>
            <volume>42</volume>
            <pub-id pub-id-type="doi">10.1093/eurheartj/ehab649</pub-id>
            <pub-id pub-id-type="pmid">34534279</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Siontis, K.C., Noseworthy, P.A., Attia, Z.I. and Friedman, P.A. (2021) Artificial Intelligence-Enhanced Electrocardiography in Cardiovascular Disease Management. <italic>Nature Reviews Cardiology</italic>, 18, 465-478. https://doi.org/10.1038/s41569-020-00503-2 <pub-id pub-id-type="doi">10.1038/s41569-020-00503-2</pub-id><pub-id pub-id-type="pmid">33526938</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41569-020-00503-2">https://doi.org/10.1038/s41569-020-00503-2</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Siontis, K.C.</string-name>
              <string-name>Noseworthy, P.A.</string-name>
              <string-name>Attia, Z.I.</string-name>
              <string-name>Friedman, P.A.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Artificial Intelligence-Enhanced Electrocardiography in Cardiovascular Disease Management</article-title>
            <source>Nature Reviews Cardiology</source>
            <volume>18</volume>
            <pub-id pub-id-type="doi">10.1038/s41569-020-00503-2</pub-id>
            <pub-id pub-id-type="pmid">33526938</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Cook, D.A., Oh, S. and Pusic, M.V. (2020) Accuracy of Physicians’ Electrocardiogram Interpretations: A Systematic Review and Meta-Analysis. <italic>JAMA Internal Medicine</italic>, 180, 1461-1471. https://doi.org/10.1001/jamainternmed.2020.3989 <pub-id pub-id-type="doi">10.1001/jamainternmed.2020.3989</pub-id><pub-id pub-id-type="pmid">32986084</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1001/jamainternmed.2020.3989">https://doi.org/10.1001/jamainternmed.2020.3989</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Cook, D.A.</string-name>
              <string-name>Oh, S.</string-name>
              <string-name>Pusic, M.V.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Accuracy of Physicians’ Electrocardiogram Interpretations: A Systematic Review and Meta-Analysis</article-title>
            <source>JAMA Internal Medicine</source>
            <volume>180</volume>
            <pub-id pub-id-type="doi">10.1001/jamainternmed.2020.3989</pub-id>
            <pub-id pub-id-type="pmid">32986084</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Muzammil, M.A., Javid, S., Afridi, A.K., Siddineni, R., Shahabi, M., Haseeb, M., <italic>et al.</italic> (2024) Artificial Intelligence-Enhanced Electrocardiography for Accurate Diagnosis and Management of Cardiovascular Diseases. <italic>Journal of Electrocardiology</italic>, 83, 30-40. https://doi.org/10.1016/j.jelectrocard.2024.01.006 <pub-id pub-id-type="doi">10.1016/j.jelectrocard.2024.01.006</pub-id><pub-id pub-id-type="pmid">38301492</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jelectrocard.2024.01.006">https://doi.org/10.1016/j.jelectrocard.2024.01.006</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Muzammil, M.A.</string-name>
              <string-name>Javid, S.</string-name>
              <string-name>Afridi, A.K.</string-name>
              <string-name>Siddineni, R.</string-name>
              <string-name>Shahabi, M.</string-name>
              <string-name>Haseeb, M.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Artificial Intelligence-Enhanced Electrocardiography for Accurate Diagnosis and Management of Cardiovascular Diseases</article-title>
            <source>Journal of Electrocardiology</source>
            <volume>83</volume>
            <pub-id pub-id-type="doi">10.1016/j.jelectrocard.2024.01.006</pub-id>
            <pub-id pub-id-type="pmid">38301492</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Schläpfer, J. and Wellens, H.J. (2017) Computer-Interpreted Electrocardiograms: Benefits and Limitations. <italic>Journal of the American College of Cardiology</italic>, 70, 1183-1192. https://doi.org/10.1016/j.jacc.2017.07.723 <pub-id pub-id-type="doi">10.1016/j.jacc.2017.07.723</pub-id><pub-id pub-id-type="pmid">28838369</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jacc.2017.07.723">https://doi.org/10.1016/j.jacc.2017.07.723</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Wellens, H.J.</string-name>
            </person-group>
            <year>2017</year>
            <article-title>Computer-Interpreted Electrocardiograms: Benefits and Limitations</article-title>
            <source>Journal of the American College of Cardiology</source>
            <volume>70</volume>
            <pub-id pub-id-type="doi">10.1016/j.jacc.2017.07.723</pub-id>
            <pub-id pub-id-type="pmid">28838369</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Fu, G., Zheng, J., Abudayyeh, I., Ani, C., Rakovski, C., Ehwerhemuepha, L., <italic>et al.</italic> (2024) CardioGPT: An ECG Interpretation Generation Model. <italic>IEEE Access</italic>, 12, 50254-50264. https://doi.org/10.1109/access.2024.3384349 <pub-id pub-id-type="doi">10.1109/access.2024.3384349</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/access.2024.3384349">https://doi.org/10.1109/access.2024.3384349</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Fu, G.</string-name>
              <string-name>Zheng, J.</string-name>
              <string-name>Abudayyeh, I.</string-name>
              <string-name>Ani, C.</string-name>
              <string-name>Rakovski, C.</string-name>
              <string-name>Ehwerhemuepha, L.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>CardioGPT: An ECG Interpretation Generation Model</article-title>
            <source>IEEE Access</source>
            <volume>12</volume>
            <pub-id pub-id-type="doi">10.1109/access.2024.3384349</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Harmon, D.M., Sehrawat, O., Maanja, M., Wight, J. and Noseworthy, P.A. (2023) Artificial Intelligence for the Detection and Treatment of Atrial Fibrillation. <italic>Arrhythmia &amp; Electrophysiology Review</italic>, 12, e12. https://doi.org/10.15420/aer.2022.31 <pub-id pub-id-type="doi">10.15420/aer.2022.31</pub-id><pub-id pub-id-type="pmid">37427304</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.15420/aer.2022.31">https://doi.org/10.15420/aer.2022.31</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Harmon, D.M.</string-name>
              <string-name>Sehrawat, O.</string-name>
              <string-name>Maanja, M.</string-name>
              <string-name>Wight, J.</string-name>
              <string-name>Noseworthy, P.A.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Artificial Intelligence for the Detection and Treatment of Atrial Fibrillation</article-title>
            <source>Arrhythmia &amp; Electrophysiology Review</source>
            <volume>12</volume>
            <pub-id pub-id-type="doi">10.15420/aer.2022.31</pub-id>
            <pub-id pub-id-type="pmid">37427304</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B8">
        <label>8.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Yang, K., Hong, M., Zhang, J., Luo, Y., Zhao, S., Zhang, O., <italic>et al.</italic> (2025) ECG-LM: Understanding Electrocardiogram with a Large Language Model. <italic>Health Data Science</italic>, 5, Article No. 0221. https://doi.org/10.34133/hds.0221 <pub-id pub-id-type="doi">10.34133/hds.0221</pub-id><pub-id pub-id-type="pmid">39906894</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.34133/hds.0221">https://doi.org/10.34133/hds.0221</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Yang, K.</string-name>
              <string-name>Hong, M.</string-name>
              <string-name>Zhang, J.</string-name>
              <string-name>Luo, Y.</string-name>
              <string-name>Zhao, S.</string-name>
              <string-name>Zhang, O.</string-name>
            </person-group>
            <year>2025</year>
            <article-title>ECG-LM: Understanding Electrocardiogram with a Large Language Model</article-title>
            <source>Health Data Science</source>
            <volume>5</volume>
            <elocation-id>No</elocation-id>
            <pub-id pub-id-type="doi">10.34133/hds.0221</pub-id>
            <pub-id pub-id-type="pmid">39906894</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B9">
        <label>9.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Tang, J., Pham, H.M., De Lathauwer, I., Schipper, H.S., Lu, Y., Ma, D., <italic>et al.</italic> (2026) Interpretable Multimodal Zero Shot ECG Diagnosis via Structured Clinical Knowledge Alignment. <italic>NPJ</italic><italic>Cardiovascular Health</italic>, 3, Article No. 1. https://doi.org/10.1038/s44325-025-00099-x <pub-id pub-id-type="doi">10.1038/s44325-025-00099-x</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s44325-025-00099-x">https://doi.org/10.1038/s44325-025-00099-x</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Tang, J.</string-name>
              <string-name>Pham, H.M.</string-name>
              <string-name>Lathauwer, I.</string-name>
              <string-name>Schipper, H.S.</string-name>
              <string-name>Lu, Y.</string-name>
              <string-name>Ma, D.</string-name>
            </person-group>
            <year>2026</year>
            <article-title>Interpretable Multimodal Zero Shot ECG Diagnosis via Structured Clinical Knowledge Alignment</article-title>
            <source>NPJ Cardiovascular Health</source>
            <volume>3</volume>
            <elocation-id>No</elocation-id>
            <pub-id pub-id-type="doi">10.1038/s44325-025-00099-x</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B10">
        <label>10.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Attia, Z.I., Noseworthy, P.A., Lopez-Jimenez, F., Asirvatham, S.J., Deshmukh, A.J., Gersh, B.J., <italic>et al.</italic> (2019) An Artificial Intelligence-Enabled ECG Algorithm for the Identification of Patients with Atrial Fibrillation during Sinus Rhythm: A Retrospective Analysis of Outcome Prediction. <italic>The Lancet</italic>, 394, 861-867. https://doi.org/10.1016/s0140-6736(19)31721-0 <pub-id pub-id-type="doi">10.1016/s0140-6736(19)31721-0</pub-id><pub-id pub-id-type="pmid">31378392</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/s0140-6736(19)31721-0">https://doi.org/10.1016/s0140-6736(19)31721-0</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Attia, Z.I.</string-name>
              <string-name>Noseworthy, P.A.</string-name>
              <string-name>Lopez-Jimenez, F.</string-name>
              <string-name>Asirvatham, S.J.</string-name>
              <string-name>Deshmukh, A.J.</string-name>
              <string-name>Gersh, B.J.</string-name>
            </person-group>
            <year>2019</year>
            <article-title>An Artificial Intelligence-Enabled ECG Algorithm for the Identification of Patients with Atrial Fibrillation during Sinus Rhythm: A Retrospective Analysis of Outcome Prediction</article-title>
            <source>The Lancet</source>
            <volume>6736</volume>
            <issue>19</issue>
            <pub-id pub-id-type="doi">10.1016/s0140-6736(19)31721-0</pub-id>
            <pub-id pub-id-type="pmid">31378392</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B11">
        <label>11.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Pang, J., Wang, Y., Ozyurt, F., Dogan, S., Tuncer, T. and Yu, L. (2024) Utilizing Language Models for Advanced Electrocardiogram Analysis. <italic>Alexandria Engineering Journal</italic>, 105, 460-470. https://doi.org/10.1016/j.aej.2024.07.086 <pub-id pub-id-type="doi">10.1016/j.aej.2024.07.086</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.aej.2024.07.086">https://doi.org/10.1016/j.aej.2024.07.086</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Pang, J.</string-name>
              <string-name>Wang, Y.</string-name>
              <string-name>Ozyurt, F.</string-name>
              <string-name>Dogan, S.</string-name>
              <string-name>Tuncer, T.</string-name>
              <string-name>Yu, L.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Utilizing Language Models for Advanced Electrocardiogram Analysis</article-title>
            <source>Alexandria Engineering Journal</source>
            <volume>105</volume>
            <pub-id pub-id-type="doi">10.1016/j.aej.2024.07.086</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B12">
        <label>12.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Liu, R., Bai, Y., Yue, X. and Zhang, P. (2024) Teach Multimodal LLMs to Comprehend Electrocardiographic Images. https://arxiv.org/abs/2410.19008</mixed-citation>
          <element-citation publication-type="web">
            <person-group person-group-type="author">
              <string-name>Liu, R.</string-name>
              <string-name>Bai, Y.</string-name>
              <string-name>Yue, X.</string-name>
              <string-name>Zhang, P.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Teach Multimodal LLMs to Comprehend Electrocardiographic Images</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B13">
        <label>13.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Smital, L., Haider, C.R., Vitek, M., Leinveber, P., Jurak, P., Nemcova, A., <italic>et al.</italic> (2020) Real-Time Quality Assessment of Long-Term ECG Signals Recorded by Wearables in Free-Living Conditions. <italic>IEEE Transactions on Biomedical Engineering</italic>, 67, 2721-2734. https://doi.org/10.1109/tbme.2020.2969719 <pub-id pub-id-type="doi">10.1109/tbme.2020.2969719</pub-id><pub-id pub-id-type="pmid">31995473</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tbme.2020.2969719">https://doi.org/10.1109/tbme.2020.2969719</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Smital, L.</string-name>
              <string-name>Haider, C.R.</string-name>
              <string-name>Vitek, M.</string-name>
              <string-name>Leinveber, P.</string-name>
              <string-name>Jurak, P.</string-name>
              <string-name>Nemcova, A.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Real-Time Quality Assessment of Long-Term ECG Signals Recorded by Wearables in Free-Living Conditions</article-title>
            <source>IEEE Transactions on Biomedical Engineering</source>
            <volume>67</volume>
            <pub-id pub-id-type="doi">10.1109/tbme.2020.2969719</pub-id>
            <pub-id pub-id-type="pmid">31995473</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B14">
        <label>14.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Lee, S., Chu, Y., Ryu, J., Park, Y.J., Yang, S. and Koh, S.B. (2022) Artificial Intelligence for Detection of Cardiovascular-Related Diseases from Wearable Devices: A Systematic Review and Meta-Analysis. <italic>Yonsei Medical Journal</italic>, 63, S93-S107. https://doi.org/10.3349/ymj.2022.63.s93 <pub-id pub-id-type="doi">10.3349/ymj.2022.63.s93</pub-id><pub-id pub-id-type="pmid">35040610</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3349/ymj.2022.63.s93">https://doi.org/10.3349/ymj.2022.63.s93</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Lee, S.</string-name>
              <string-name>Chu, Y.</string-name>
              <string-name>Ryu, J.</string-name>
              <string-name>Park, Y.J.</string-name>
              <string-name>Yang, S.</string-name>
              <string-name>Koh, S.B.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>Artificial Intelligence for Detection of Cardiovascular-Related Diseases from Wearable Devices: A Systematic Review and Meta-Analysis</article-title>
            <source>Yonsei Medical Journal</source>
            <volume>63</volume>
            <pub-id pub-id-type="doi">10.3349/ymj.2022.63.s93</pub-id>
            <pub-id pub-id-type="pmid">35040610</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B15">
        <label>15.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Brisk, R., Bond, R.R., Finlay, D., McLaughlin, J.A.D., Piadlo, A.J. and McEneaney, D.J. (2022) WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis. <italic>Frontiers in Physiology</italic>, 13, Article ID: 760000. https://doi.org/10.3389/fphys.2022.760000 <pub-id pub-id-type="doi">10.3389/fphys.2022.760000</pub-id><pub-id pub-id-type="pmid">35399264</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fphys.2022.760000">https://doi.org/10.3389/fphys.2022.760000</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Brisk, R.</string-name>
              <string-name>Bond, R.R.</string-name>
              <string-name>Finlay, D.</string-name>
              <string-name>McLaughlin, J.A.D.</string-name>
              <string-name>Piadlo, A.J.</string-name>
              <string-name>McEneaney, D.J.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>WaSP-ECG: A Wave Segmentation Pretraining Toolkit for Electrocardiogram Analysis</article-title>
            <source>Frontiers in Physiology</source>
            <volume>13</volume>
            <fpage>760000</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.3389/fphys.2022.760000</pub-id>
            <pub-id pub-id-type="pmid">35399264</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B16">
        <label>16.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Zhu, L., Mou, W., Wu, K., Lai, Y., Lin, A., Yang, T., <italic>et al.</italic> (2024) Multimodal ChatGPT-4V for Electrocardiogram Interpretation: Promise and Limitations. <italic>Journal of Medic</italic><italic>al Internet Research</italic>, 26, e54607. https://doi.org/10.2196/54607 <pub-id pub-id-type="doi">10.2196/54607</pub-id><pub-id pub-id-type="pmid">38764297</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2196/54607">https://doi.org/10.2196/54607</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Zhu, L.</string-name>
              <string-name>Mou, W.</string-name>
              <string-name>Wu, K.</string-name>
              <string-name>Lai, Y.</string-name>
              <string-name>Lin, A.</string-name>
              <string-name>Yang, T.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Multimodal ChatGPT-4V for Electrocardiogram Interpretation: Promise and Limitations</article-title>
            <source>Journal of Medical Internet Research</source>
            <volume>26</volume>
            <pub-id pub-id-type="doi">10.2196/54607</pub-id>
            <pub-id pub-id-type="pmid">38764297</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B17">
        <label>17.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Seki, T., Kawazoe, Y., Ito, H., Akagi, Y., Takiguchi, T. and Ohe, K. (2025) Assessing the Performance of Zero-Shot Visual Question Answering in Multimodal Large Language Models for 12-Lead ECG Image Interpretation. <italic>Frontiers in Cardiovascular Medicine</italic>, 12, Article ID: 1458289. https://doi.org/10.3389/fcvm.2025.1458289 <pub-id pub-id-type="doi">10.3389/fcvm.2025.1458289</pub-id><pub-id pub-id-type="pmid">39981353</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fcvm.2025.1458289">https://doi.org/10.3389/fcvm.2025.1458289</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Seki, T.</string-name>
              <string-name>Kawazoe, Y.</string-name>
              <string-name>Ito, H.</string-name>
              <string-name>Akagi, Y.</string-name>
              <string-name>Takiguchi, T.</string-name>
              <string-name>Ohe, K.</string-name>
            </person-group>
            <year>2025</year>
            <article-title>Assessing the Performance of Zero-Shot Visual Question Answering in Multimodal Large Language Models for 12-Lead ECG Image Interpretation</article-title>
            <source>Frontiers in Cardiovascular Medicine</source>
            <volume>12</volume>
            <fpage>145828</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.3389/fcvm.2025.1458289</pub-id>
            <pub-id pub-id-type="pmid">39981353</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B18">
        <label>18.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Shinn, N., Cassano, F., Gopinath, A., Narasimhan, K. and Yao, S. (2023) Reflexion: Language Agents with Verbal Reinforcement Learning. <italic>Advances in Neural Information Processing Systems</italic> 36, New Orleans, 10-16 December 2023, 8634-8652. https://doi.org/10.52202/075280-0377 <pub-id pub-id-type="doi">10.52202/075280-0377</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.52202/075280-0377">https://doi.org/10.52202/075280-0377</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Shinn, N.</string-name>
              <string-name>Cassano, F.</string-name>
              <string-name>Gopinath, A.</string-name>
              <string-name>Narasimhan, K.</string-name>
              <string-name>Yao, S.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Reflexion: Language Agents with Verbal Reinforcement Learning</article-title>
            <source>Advances in Neural Information Processing Systems 36</source>
            <volume>10</volume>
            <pub-id pub-id-type="doi">10.52202/075280-0377</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B19">
        <label>19.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Seki, T., Kawazoe, Y., Ito, H., Akagi, Y., Takiguchi, T. and Ohe, K. (2023) BiomedGPT: A Generalist Vision-Language Foundation Model for Diverse Biomedical Tasks. https://arxiv.org/abs/2305.17100</mixed-citation>
          <element-citation publication-type="web">
            <person-group person-group-type="author">
              <string-name>Seki, T.</string-name>
              <string-name>Kawazoe, Y.</string-name>
              <string-name>Ito, H.</string-name>
              <string-name>Akagi, Y.</string-name>
              <string-name>Takiguchi, T.</string-name>
              <string-name>Ohe, K.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>BiomedGPT: A Generalist Vision-Language Foundation Model for Diverse Biomedical Tasks</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B20">
        <label>20.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Lu, P., Wang, C., Hagenah, J., Ghiasi, S., consortium, V., Zhu, T., <italic>et al.</italic> (2023) Improving Classification of Tetanus Severity for Patients in Low-Middle Income Countries Wearing ECG Sensors by Using a CNN-Transformer Network. <italic>IEEE Transactions on Bi</italic><italic>omedical Engineering</italic>, 70, 1340-1350. https://doi.org/10.1109/tbme.2022.3216383 <pub-id pub-id-type="doi">10.1109/tbme.2022.3216383</pub-id><pub-id pub-id-type="pmid">36269901</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tbme.2022.3216383">https://doi.org/10.1109/tbme.2022.3216383</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Lu, P.</string-name>
              <string-name>Wang, C.</string-name>
              <string-name>Hagenah, J.</string-name>
              <string-name>Ghiasi, S.</string-name>
              <string-name>Zhu, T.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Improving Classification of Tetanus Severity for Patients in Low-Middle Income Countries Wearing ECG Sensors by Using a CNN-Transformer Network</article-title>
            <source>IEEE Transactions on Biomedical Engineering</source>
            <volume>70</volume>
            <pub-id pub-id-type="doi">10.1109/tbme.2022.3216383</pub-id>
            <pub-id pub-id-type="pmid">36269901</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B21">
        <label>21.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Parsa, S., Somani, S., Dudum, R., Jain, S.S. and Rodriguez, F. (2024) Artificial Intelligence in Cardiovascular Disease Prevention: Is It Ready for Prime Time? <italic>Current Atherosclerosis Reports</italic>, 26, 263-272. https://doi.org/10.1007/s11883-024-01210-w <pub-id pub-id-type="doi">10.1007/s11883-024-01210-w</pub-id><pub-id pub-id-type="pmid">38780665</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s11883-024-01210-w">https://doi.org/10.1007/s11883-024-01210-w</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Parsa, S.</string-name>
              <string-name>Somani, S.</string-name>
              <string-name>Dudum, R.</string-name>
              <string-name>Jain, S.S.</string-name>
              <string-name>Rodriguez, F.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Artificial Intelligence in Cardiovascular Disease Prevention: Is It Ready for Prime Time? Current Atherosclerosis Reports, 26, 263-272</article-title>
            <pub-id pub-id-type="doi">10.1007/s11883-024-01210-w</pub-id>
            <pub-id pub-id-type="pmid">38780665</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B22">
        <label>22.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Monebo Technologies Inc. (2025) Monebo—AI-Based ECG Interpretation. https://www.monebo.com/</mixed-citation>
          <element-citation publication-type="web">
            <year>2025</year>
            <article-title>Monebo—AI-Based ECG Interpretation</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B23">
        <label>23.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Kashou, A.H., Mulpuru, S.K., Deshmukh, A.J., Ko, W., Attia, Z.I., Carter, R.E., <italic>et al.</italic> (2021) An Artificial Intelligence-Enabled ECG Algorithm for Comprehensive ECG Interpretation: Can It Pass the “Turing Test”? <italic>Cardiovascular Digital Health Journal</italic>, 2, 164-170. https://doi.org/10.1016/j.cvdhj.2021.04.002 <pub-id pub-id-type="doi">10.1016/j.cvdhj.2021.04.002</pub-id><pub-id pub-id-type="pmid">35265905</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cvdhj.2021.04.002">https://doi.org/10.1016/j.cvdhj.2021.04.002</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Kashou, A.H.</string-name>
              <string-name>Mulpuru, S.K.</string-name>
              <string-name>Deshmukh, A.J.</string-name>
              <string-name>Ko, W.</string-name>
              <string-name>Attia, Z.I.</string-name>
              <string-name>Carter, R.E.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>An Artificial Intelligence-Enabled ECG Algorithm for Comprehensive ECG Interpretation: Can It Pass the “Turing Test”? Cardiovascular Digital Health Journal, 2, 164-170</article-title>
            <pub-id pub-id-type="doi">10.1016/j.cvdhj.2021.04.002</pub-id>
            <pub-id pub-id-type="pmid">35265905</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B24">
        <label>24.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Safranek, C.W., Huang, T., Wright, D.S., Wright, C.X., Socrates, V., Sangal, R.B., <italic>et</italic><italic>al.</italic> (2024) Automated HEART Score Determination via ChatGPT: Honing a Framework for Iterative Prompt Development. <italic>JACEP Open</italic>, 5, e13133. https://doi.org/10.1002/emp2.13133 <pub-id pub-id-type="doi">10.1002/emp2.13133</pub-id><pub-id pub-id-type="pmid">38481520</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/emp2.13133">https://doi.org/10.1002/emp2.13133</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Safranek, C.W.</string-name>
              <string-name>Huang, T.</string-name>
              <string-name>Wright, D.S.</string-name>
              <string-name>Wright, C.X.</string-name>
              <string-name>Socrates, V.</string-name>
              <string-name>Sangal, R.B.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Automated HEART Score Determination via ChatGPT: Honing a Framework for Iterative Prompt Development</article-title>
            <source>JACEP Open</source>
            <volume>5</volume>
            <pub-id pub-id-type="doi">10.1002/emp2.13133</pub-id>
            <pub-id pub-id-type="pmid">38481520</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B25">
        <label>25.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zhang, K., Zhou, R., Adhikarla, E., Yan, Z., Liu, Y., Yu, J., <italic>et al.</italic> (2024) A Generalist Vision-Language Foundation Model for Diverse Biomedical Tasks. <italic>Nature Medicine</italic>, 30, 3129-3141. https://doi.org/10.1038/s41591-024-03185-2 <pub-id pub-id-type="doi">10.1038/s41591-024-03185-2</pub-id><pub-id pub-id-type="pmid">39112796</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41591-024-03185-2">https://doi.org/10.1038/s41591-024-03185-2</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zhang, K.</string-name>
              <string-name>Zhou, R.</string-name>
              <string-name>Adhikarla, E.</string-name>
              <string-name>Yan, Z.</string-name>
              <string-name>Liu, Y.</string-name>
              <string-name>Yu, J.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>A Generalist Vision-Language Foundation Model for Diverse Biomedical Tasks</article-title>
            <source>Nature Medicine</source>
            <volume>30</volume>
            <pub-id pub-id-type="doi">10.1038/s41591-024-03185-2</pub-id>
            <pub-id pub-id-type="pmid">39112796</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B26">
        <label>26.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Kunze, K.N., Nwachukwu, B.U., Cote, M.P. and Ramkumar, P.N. (2024) Large Language Models Applied to Health Care Tasks May Improve Clinical Efficiency, Value of Care Rendered, Research, and Medical Education. <italic>Arthroscopy</italic>, 41, 547-556. https://doi.org/10.1016/j.arthro.2024.12.010 <pub-id pub-id-type="doi">10.1016/j.arthro.2024.12.010</pub-id><pub-id pub-id-type="pmid">39694303</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.arthro.2024.12.010">https://doi.org/10.1016/j.arthro.2024.12.010</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Kunze, K.N.</string-name>
              <string-name>Nwachukwu, B.U.</string-name>
              <string-name>Cote, M.P.</string-name>
              <string-name>Ramkumar, P.N.</string-name>
              <string-name>Efficiency, V</string-name>
              <string-name>Rendered, R</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Large Language Models Applied to Health Care Tasks May Improve Clinical Efficiency, Value of Care Rendered, Research, and Medical Education</article-title>
            <source>Arthroscopy</source>
            <volume>41</volume>
            <pub-id pub-id-type="doi">10.1016/j.arthro.2024.12.010</pub-id>
            <pub-id pub-id-type="pmid">39694303</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B27">
        <label>27.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Sudarshan, M., Shih, S., Yee, E., Yang, A., Zou, J., Chen, C., Zhou, Q., <italic>et al.</italic> (2024) Agentic LLM Workflows for Generating Patient-Friendly Medical Reports. https://arxiv.org/abs/2408.01112</mixed-citation>
          <element-citation publication-type="web">
            <person-group person-group-type="author">
              <string-name>Sudarshan, M.</string-name>
              <string-name>Shih, S.</string-name>
              <string-name>Yee, E.</string-name>
              <string-name>Yang, A.</string-name>
              <string-name>Zou, J.</string-name>
              <string-name>Chen, C.</string-name>
              <string-name>Zhou, Q.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Agentic LLM Workflows for Generating Patient-Friendly Medical Reports</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B28">
        <label>28.</label>
        <citation-alternatives>
          <mixed-citation publication-type="web">Gow, B., Pollard, T., Nathanson, L.A., Johnson, A., Moody, B., Fernandes, C., <italic>et al.</italic> (2023) MIMIC-IV-ECG: Diagnostic Electrocardiogram Matched Subset (Version 1.0). https://physionet.org/content/mimic-iv-ecg/1.0/</mixed-citation>
          <element-citation publication-type="web">
            <person-group person-group-type="author">
              <string-name>Gow, B.</string-name>
              <string-name>Pollard, T.</string-name>
              <string-name>Nathanson, L.A.</string-name>
              <string-name>Johnson, A.</string-name>
              <string-name>Moody, B.</string-name>
              <string-name>Fernandes, C.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>MIMIC-IV-ECG: Diagnostic Electrocardiogram Matched Subset (Version 1</article-title>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B29">
        <label>29.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Park, J., An, J., Kim, J., Jung, S., Gil, Y., Jang, Y., <italic>et al.</italic> (2022) Study on the Use of Standard 12-Lead ECG Data for Rhythm-Type ECG Classification Problems. <italic>Computer Methods a</italic><italic>nd Programs in Biomedicine</italic>, 214, Article ID: 106521. https://doi.org/10.1016/j.cmpb.2021.106521. <pub-id pub-id-type="doi">10.1016/j.cmpb.2021.106521</pub-id><pub-id pub-id-type="pmid">34844765</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.cmpb.2021.106521">https://doi.org/10.1016/j.cmpb.2021.106521</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Park, J.</string-name>
              <string-name>An, J.</string-name>
              <string-name>Kim, J.</string-name>
              <string-name>Jung, S.</string-name>
              <string-name>Gil, Y.</string-name>
              <string-name>Jang, Y.</string-name>
            </person-group>
            <year>2022</year>
            <article-title>Study on the Use of Standard 12-Lead ECG Data for Rhythm-Type ECG Classification Problems</article-title>
            <source>Computer Methods and Programs in Biomedicine</source>
            <volume>214</volume>
            <fpage>106521</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.cmpb.2021.106521</pub-id>
            <pub-id pub-id-type="pmid">34844765</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>