What we learned testing a cardiology imaging prototype

Four scans, one sealed test machine, eight findings. What testing a medical imaging prototype taught us about memory, silent errors and patient data.

A cardiologist came to us with a prototype. It measures turbulence in the blood flow inside the heart from an ultrasound scan, and he wants to turn it into a product doctors can use. Before rebuilding it, he needed to know what was broken in the current version.

We tested it on four example scans. Here is what came out of it, and what we think applies to anyone taking a research prototype toward clinical use.

1. “It works on my computer” is the most expensive sentence in software

Export is the last step of the workflow. On our machine it closed the program and threw away the whole analysis. The program’s own error log showed why: Export tried to add a logo picture to the report, and that picture was not packaged with the program. It sat in a folder on the founder’s computer, so for him Export worked every time.

This is one of the most common defects we see in prototypes, and it is cheap to catch. Install the program on a clean machine that has never seen the source code, and run the whole workflow once. If something only works on the developer’s computer, a clean machine finds it in minutes.

2. Memory limits decide who can use the product

On a machine with 8 GB of memory, the main analysis finished on only one of the four scans. On the other three, the program ran out of memory and simply disappeared, after anything from 2 to 32 minutes of waiting. No message, no saved work.

A research team usually runs software on its own powerful machines. Clinics often do not. Before a product leaves the lab, someone has to decide the smallest computer it must support, and test on that one. And when memory does run out, the program should say so and keep the work, not vanish.

3. A wrong number on screen is worse than a crash

This was the finding we ranked highest for clinical risk. The program lets the user set a cut-off value and recalculate. After one value was applied, some later values were silently ignored: the program recalculated for several minutes and then showed exactly the same numbers as before, as if they belonged to the new value.

A crash is annoying, but everyone notices it. A stale result looks exactly like a correct one. In a medical tool, every number on screen has to match the settings shown next to it, and an input the program cannot use should be refused with a message, not accepted and ignored.

4. De-identification has to cover the pixels

Scan files carry patient details in a hidden header, and there are standard tools to clean it. But on these scans the exam date and time were also burned into the image itself, in a bar at the top. Cleaning the header does not touch that.

For a desktop tool used inside a hospital, this matters less. For a web version, where scans are uploaded, the upload step has to blank that part of the image too.

5. Prove the program is repeatable, and prove your check works

Doctors need the same scan to give the same answer every time. To check this, we ran the same case twice and compared the results screens pixel by pixel, rather than reading the numbers by eye. They were identical.

The step people skip is checking the check. We also compared two screens we knew were different, and the method flagged almost every pixel. Without that control, “no difference found” could just mean the comparison was not looking.

6. Keep patient data on a sealed machine

All testing ran on a virtual machine with no network connection, used for nothing else, on cleaned copies of the scans. We reported no patient values, and we never opened the files the program exported, because they contain patient data. Testing medical software should not create a new place where patient data can leak.

What the founder got

Eight findings ranked by how much each one affects a cardiologist, eleven questions only he could answer, and a short list of what the web version must do differently from the first day: check every input, show progress on long steps, clean the image as well as the header, and replace a file format that can run code when it is opened.

If you are taking a prototype toward a product, a test pass at this stage costs far less than finding the same problems after doctors start using it. Talk to us at betterqa.co. No lock-in. From 20 hours a month.

Built by BetterQA

Share the Post: