mach: ultrafast ultrasound beamforming

This paper introduces **mach**, an open-source, GPU-accelerated beamformer that achieves record-breaking throughput of 1.1 trillion points per second on consumer-grade hardware, enabling real-time 3D volumetric ultrafast ultrasound reconstruction for applications like functional neuroimaging and microscopy.

Charles Guan, Alexander P. Rockhill, Masashi Sode, Gianmarco Pinton

Published 2026-04-09
📖 5 min read🧠 Deep dive

Imagine you are trying to take a photograph of a hummingbird's wings in mid-flight. To do this, you need a camera that snaps pictures incredibly fast (ultrafast) and a lens that can capture the bird in 3D, not just flat (volumetric).

In the world of medical ultrasound, scientists have built cameras that can do exactly this: they can see inside the body at speeds 100 times faster than normal, capturing blood flow, brain activity, and tissue movement in 3D.

The Problem: The Traffic Jam
The issue is that these cameras generate a massive amount of data. It's like trying to download the entire internet in a single second. To turn those raw radio signals into a picture you can actually see, a computer has to perform a complex calculation called "beamforming."

Think of beamforming like a massive choir.

  • The ultrasound machine has hundreds of microphones (sensors) listening to echoes.
  • To make a clear picture, the computer has to listen to every single microphone, figure out exactly when each sound arrived, and then "sing" them all together in perfect harmony.
  • If the timing is off by a fraction of a second, the song sounds like noise. If the timing is perfect, you get a crystal-clear image.

Doing this for a 3D movie of the brain, hundreds of times per second, creates a computational traffic jam. Existing computers are too slow to process the data fast enough. They can't keep up with the "choir," so the images are either blurry, delayed, or require hours of offline processing. This stops doctors from using these amazing tools in real-time during surgery or for instant brain scans.

The Solution: "mach"
The authors of this paper built a new tool called mach (which stands for machine, but also sounds like "make it happen").

Think of mach as a super-conductor for the choir.

  • The Old Way: Imagine a conductor trying to tell 500 singers what to do one by one, while they all wait in line to hear the instructions. It's slow and chaotic.
  • The mach Way: Imagine the conductor has a super-power. They shout the instructions to the whole choir at once, and the singers are arranged in a perfect grid so they can all hear and react instantly.

How mach works (The Magic Tricks):

  1. The GPU Super-Engine: Instead of using a standard computer brain (CPU), mach uses a Graphics Processing Unit (GPU). These are the same chips found in video game consoles, but they are built to do thousands of tiny math problems at the exact same time. mach is written specifically to speak the language of these chips.
  2. The "Lazy" Genius Strategy: Usually, the computer has to calculate the timing for every single sound wave from scratch every time. mach is smarter. It calculates the timing for the "outgoing" sound waves once and saves them (like writing a script once and reusing it). Then, it only calculates the "incoming" timing on the fly. This saves a huge amount of memory and time.
  3. The Assembly Line: The way the data is organized is like a perfectly packed suitcase. Instead of stuffing items randomly, mach packs them so the computer can grab them all in one smooth motion, rather than digging through the bag for every single sock.

The Results: From Slow Motion to Super Speed
The paper tested mach on a standard computer chip (the kind you can buy at an electronics store, not a supercomputer).

  • Speed: It processes 1.1 trillion data points per second. That is over 10 times faster than any other open-source tool available.
  • Real-Time: It can reconstruct a 3D image of the brain in 0.23 milliseconds. To put that in perspective, sound takes about 1.5 milliseconds to travel to the bottom of the brain and back. mach is 6 times faster than the speed of sound. It's so fast that it can build the picture before the sound even finishes bouncing back!

Why This Matters
Before mach, seeing a 3D movie of a beating heart or a working brain was like watching a movie with a 2-hour delay. You couldn't react to it while it was happening.

With mach, we can finally have real-time 3D ultrasound.

  • For Surgeons: They could see exactly where a tumor is and where the blood vessels are while they are cutting, guiding the knife with instant feedback.
  • For Neuroscientists: They could watch a rat's entire brain light up as it thinks or feels pain, in 3D, in real-time.
  • For Everyone: It turns these high-tech research tools into practical tools that can run on standard hospital equipment.

In a Nutshell
The authors built a software engine that removes the bottleneck holding back the future of medical imaging. They took a technology that was stuck in "slow motion" and turned it into "super speed," making it possible to see inside the human body in 3D, instantly, on a computer you could buy at a store.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →