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
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 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. - 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.
- 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. - 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:
- Rhythm: atrial fibrillation, atrial flutter, premature atrial complexes and premature ventricular complexes
- AV conduction: first-, second- and third-degree AV block
- Intraventricular conduction: complete left bundle branch block, complete and incomplete right bundle branch block, and left anterior and left posterior fascicular block
- Hypertrophy: left and right ventricular hypertrophy
- Infarction: anterior, inferior and lateral myocardial infarction
- Ischemia: anterior, inferior and lateral ischemia
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
- No sign-up is needed. On your first visit, a notice page from ngrok, the service that serves the demo, asks you to confirm. It appears for every site served this way and does not mean anything is wrong. Select Visit Site to continue.
- If the demo does not open on a hospital network, try another network.
- The 12-lead tracing is easier to read on a larger screen, and uploading a recording is easier from a computer.
- The demo is available in English and Korean. It starts in Korean when your browser's first language is Korean, and you can switch the language in Settings, under General.
- Two switches sit next to the message box. Clarifying questions lets the agent ask you a question below its answer, or ask which of a few things you mean; it is on by default, and you can turn it off if you only want answers. Deep thinking has the agent take more time over each answer; it is off by default.
What you can attach
- One of 6,188 sample ECGs from two public research datasets, PTB-XL and MIMIC-IV-ECG. They are listed by ID, without their diagnoses. Rest the pointer on an ID, or tap it, to see a preview of the ECG before you attach it.
- Your own 12-lead recording in WFDB format, a
.heaheader file and a.datsignal file. You confirm its sampling rate and lead order when you attach it. - A chat can hold up to four ECGs, attached one per message. Ask about one of them or compare them, such as a recording from today with one from last week. A temporary chat holds one ECG.
- Photos, PDFs, scanned paper ECGs, files exported from ECG machines in other formats (such as XML) and single-lead recordings cannot be read as ECGs.
- If you know the patient has a pacemaker, turn on pacemaker detection when you attach the ECG. It looks for ventricular pacing spikes only and can make mistakes, so it is off by default. When it finds them, diagnostic statements that cannot be read from paced beats, such as bundle branch block, ventricular hypertrophy, infarction or ischemia, are not assessed for that recording.
- A document, such as a PDF, can be attached to a question. From then on, for each question in that chat, the parts of the document that match the question are used as reference material for the answer.
Where your messages go
- To write each answer, the demo sends your question, the earlier messages in the chat, text from any document you attach and the analysis results to an external language model service. The ECG signal, its image and the marked tracing are not sent.
- If you rate an answer, a copy of that chat is kept with your rating.
Sessions and limits
- There is no account: each browser gets its own guest session. Closing the browser usually ends it, signing out starts a new one, and the chats of an ended session cannot be opened again. A session left unused for a day is deleted, with its chats.
- Use is limited per day. The limit resets every day at 00:00 UTC (09:00 in Korea).
- The demo may be unavailable at times, for example while it is being updated. If it does not open or answer, try again in a few minutes.
Contact
Questions and feedback are welcome.
- 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