ECG Reasoning Agent

Ask questions about a 12-lead ECG in plain language. Ask the agent to show its evidence, and it marks the waves and intervals behind its answer on the tracing.

A research demo, not for clinical use. Do not enter anything that could identify a patient.

What it does

Attach a 12-lead ECG, one of the public samples or your own recording, and ask about it in a chat; attach up to four to compare them. An ECG analysis program first analyzes each recording, and the agent answers from the program's measurements, findings and diagnostic statements. When you ask to see the evidence, it marks the waves and intervals its answer rests on, so you can check the answer against the tracing. When your reply would change its reading or what to do, it may ask you one question below its answer, with replies you can click.

This is a research prototype. We are studying whether an assistant can explain an ECG reading and show the evidence for it, so that a clinician can check the answer rather than take it on trust. We would especially like clinicians to try it and tell us where it is wrong, unclear or unhelpful (see Contact).

Check the reasoning

Clip coming soon

  • Ask whether a diagnosis fits, such as Are there signs of an old inferior myocardial infarction? Why? The answer names the findings and measurements it rests on, so you can follow how the agent reached it.

  • Ask for the numbers, such as What are the PR, QRS and QT intervals? The answer gives the measured values, so you can compare them with your own reading of the tracing.

  • Ask to see the evidence, such as Is the QT interval prolonged? Show me where you measured it. Below the answer, the 12-lead tracing shows each QT interval marked where it was measured. A result with no position on the tracing, such as the QRS axis, is given in words without a mark.

  • Ask another question in the same chat, such as Is that normal? after an answer. The answer builds on the conversation so far. The agent may also ask you one question below its answer, with replies you can click, when your reply would change its reading or what to do.

  • Attach another ECG to the same chat and ask, such as What changed since the first ECG? The answer says which ECG each value comes from. Ask to see the evidence, and the marks are drawn on each ECG's own tracing.

Each answer takes about half a minute, sometimes more, and a line above it shows which step the agent is on.

How it works

Is the QT intervalprolonged? Show mewhere you measured it. 1 Is ECG analysisneeded to answer? Yes: it asksabout this ECG 2 Choose whichresults to read QT, QTc and whereeach QT lies 3 Decide whatto mark Each QT interval,QRS onset to T offset 4 Write theanswer From the values andmedical knowledge yes No: answered from the conversation and medical knowledge, without the analysis results I II V2 Your 12-lead ECG ECG analysisprogram Measurements in each lead andacross leads QT interval QTc QRS onset T offset RR interval PR interval QRS duration and more Findings in a lead or forthe whole ECG ST elevation in V2 T-wave inversion in III Pathological Q wave in aVF Left axis deviation and more Diagnosticstatements First-degree AV block Left ventricular hypertrophy Inferior infarction Complete right bundle branch block and more picks results chosen results points to mark Answer The QTc is 489 ms, which is prolonged. The marks show each QT interval, from QRS onset to T offset. drawn on the ECG
  1. Is ECG analysis needed to answer? A general question (such as What is a normal PR interval?) or a follow-up that earlier answers already cover is answered from the conversation, any attached document and medical knowledge, without the analysis results. Any other question about this ECG goes on to step 2.
  2. Choose which results to read. The analysis program reports three kinds of results: measurements (wave onsets, offsets and peaks, as well as durations, intervals, amplitudes and axis, in each lead and across leads), findings (such as ST elevation in a lead) and diagnostic statements (such as first-degree AV block). In a chat with several ECGs, the agent first picks the ECGs the question is about. It picks the kinds the question needs, all three for a full interpretation, and then the leads and items that matter.
  3. Decide what to mark. When you ask to see something on the ECG, the agent picks the measured onsets, offsets or peaks that locate it. If the analysis holds no position for it, the measured wave that contains it is marked instead, such as the QRS complex for a Q wave. If no measured wave contains it, nothing is marked and the answer says so. When you have not asked but the answer rests on something that can be marked, a Show the evidence on the ECG button appears below the answer, once for each ECG.
  4. Write the answer. The answer is written from the values of the chosen results, the conversation so far, any document attached to the chat and medical knowledge. The demo then draws the marks on the 12-lead tracing below the answer. When your reply would change the reading or what to do, the agent may also ask one question below the answer, with replies to click, an I'm not sure button and a field to type your own reply, or ask you to attach an earlier ECG. When a message could mean several things, it may first ask which one you mean.

Supported diagnoses

The analysis program explicitly supports these diagnoses:

For other diagnoses, the agent reasons from the measured ECG features, and its answers may be less accurate, so please keep this in mind.

What this means for the answers

The answers are only as good as the measurements. On a noisy or unusual recording, a misplaced wave onset or offset can lead to a wrong answer. That is why the agent can show its evidence: ask to see it, and the marks sit exactly at the measured positions, so you can check them against the ECG.

Before you try it

  • This is a research demo. It is not a medical device and must not be used to diagnose or treat patients. Its answers can be wrong.
  • For diagnoses other than those the analysis program explicitly supports (see How it works), the agent reasons from the measured ECG features, so its answers may be less accurate.
  • Do not upload, attach or type anything that could identify a patient, and upload only recordings you are allowed to share outside your institution. A WFDB header can hold patient details in its comment lines, so check it before uploading.

Opening the demo

What you can attach

Where your messages go

Sessions and limits

Contact

Questions and feedback are welcome.

Email
ojw0123 (at) kaist.ac.kr
Feedback on one answer
Rate it in the demo with the thumbs-up or thumbs-down button below the answer, choose a reason and, if you like, add a comment.
Feedback on a whole conversation
Download it from the chat's menu as text or PDF, and attach it to an email.
Homepage
jwoo5.github.io