← Latest papers
💻 computer science

Digitizing Paper ECGs at Scale: An Open-Source Algorithm for Clinical Research

This paper introduces and validates a fully automated, open-source framework that converts millions of existing paper ECG scans into digital signals, significantly outperforming state-of-the-art methods on diverse datasets to enable large-scale retrospective clinical research and AI-driven diagnostics.

Original authors: Elias Stenhede, Agnar Martin Bjørnstad, Arian Ranjbar

Published 2026-07-02
📖 5 min read🧠 Deep dive

Original authors: Elias Stenhede, Agnar Martin Bjørnstad, Arian Ranjbar

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a massive library of old medical records, but instead of being typed into a computer, they are all printed on paper strips and tucked away in filing cabinets. These strips contain ECGs (electrocardiograms), which are like the "heartbeat fingerprints" of patients. Today, super-smart computer programs (AI) can read these fingerprints instantly to spot heart problems, but they can only do so if the data is in a digital format.

Right now, millions of these paper records are stuck in the past, invisible to modern AI. This paper introduces a new, free tool that acts like a high-tech translator, turning those old paper photos into digital signals that computers can understand.

Here is how the paper explains their solution, broken down into simple concepts:

The Problem: The "Lost in Translation" Gap

Think of the old paper ECGs as a handwritten letter. A computer can't read handwriting directly; it needs the letter typed out first.

  • The Issue: Many hospitals still print ECGs on paper. Even if they scan the paper into a photo, the computer sees a picture, not the actual heartbeat data.
  • The Consequence: AI tools that could save lives by analyzing these heartbeats are useless because they can't "read" the paper photos.

The Solution: A Five-Step Digital Assembly Line

The authors built a fully automated software pipeline (a step-by-step assembly line) that takes a photo of a paper ECG and turns it into a clean digital signal. They compared this process to fixing a crooked, wrinkled photo and then reading the text inside it.

Here are the five steps their "assembly line" performs:

  1. The "Magic Eye" (Segmentation):
    Imagine looking at a messy desk covered in papers, coffee stains, and scribbles. The software first puts on "magic glasses" to separate the important stuff (the heartbeat lines) from the junk (the grid lines, the text, and the background). It isolates just the heartbeat drawing.

  2. Straightening the Photo (Perspective Correction):
    If you take a photo of a paper ECG with your phone, it might look tilted, stretched, or warped, like a funhouse mirror reflection. This step uses math to "flatten" the image, making the paper look like it was scanned perfectly flat, even if the photo was taken at a weird angle.

  3. Finding the Ruler (Grid Size Extraction):
    Paper ECGs have a grid of tiny squares. The software needs to know exactly how big those squares are to measure the heartbeat correctly. It acts like a detective, counting the pixels between the grid lines to figure out the scale (e.g., "One square equals one millisecond").

  4. Reading the Labels (Layout Identification):
    ECGs have different sections for different parts of the heart (like Lead I, Lead II, etc.). The software scans the image to find the little text labels (like "V1" or "aVR") and figures out the map of where each heartbeat line belongs.

  5. The Final Translation (2D to 1D Conversion):
    Finally, the software traces the squiggly lines on the paper and converts them into a digital wave (a list of numbers) that computers can analyze. It's like tracing a drawing and turning it into a musical note.

How Well Does It Work? (The Test Drive)

The team tested their tool on two huge collections of data:

  • The "Real World" Test: They used 1,596 photos taken at a hospital in Norway. Some were taken with a flatbed scanner (perfectly flat), and others were taken with iPhone and OnePlus phones (which can be crooked or have bad lighting).
    • Result: The tool worked best on scanner photos (very clear), but it was still very good at fixing phone photos, even if they were slightly blurry or tilted.
  • The "Hard Mode" Test: They also tested it on a massive, hidden dataset from the Emory University challenge, which included photos of papers that were stained, wrinkled, or even moldy.
    • Result: Their tool beat every other method in the competition, even on the messy, damaged papers. It was the first to successfully turn all types of photos into usable data.

Why This Matters (According to the Paper)

The authors state two main reasons why this tool is a big deal:

  1. It Opens the Doors: It allows hospitals that don't have fancy digital equipment to still use modern AI tools. You just take a photo of the paper, run it through this software, and suddenly the AI can read it.
  2. It Unlocks History: It lets researchers dig into decades of old paper records. This creates a huge new library of data to train AI, which is especially helpful for studying rare heart conditions that don't have enough modern data to study.

The "Open Source" Promise

Unlike many medical tools that are locked behind paywalls or secret code, the authors released the entire software for free. They also shared the "training data" (the practice problems the AI learned on) and the real hospital data they used for testing. This means other scientists can look at the code, check the work, and improve it, ensuring the tool keeps getting better.

In short: This paper presents a free, automated "translator" that rescues millions of old, paper-based heart records, turning them into digital data so modern AI can finally read them and help diagnose heart disease.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →