Ultrasound Simulation: A Medical Exploration

Keyboard: Space = Pulse, C = Clear, D = Demo. Demo auto-starts after 10 seconds of inactivity.
Use the left canvas to move the probe and send pulses. The right canvas builds the simulated ultrasound image as echoes return. When demo mode is active, the system sweeps multiple times before refreshing so you can watch the B-mode image form instead of disappearing too quickly.

Overview

Welcome to the interactive Ultrasound Simulation! This tool is designed to demystify the core principles of medical ultrasound. The left panel shows the "physics view"—the anatomy and animated sound waves. The right panel shows the "clinical view"—the realistic, black-and-white B-mode image. This version introduces a new **Auditory Feedback** mode, allowing you to "hear" the ultrasound echoes, providing a multi-sensory learning experience.

How to Use

Move the **transducer** with your mouse, touch, or arrow keys. Click **"Emit Pulse"** to build the B-mode image on the right. Use **"Clear Image"** to restart a scan. The **"Pulse Sound"** button toggles the simple beep when a pulse is emitted. The exciting new feature is the **"Feedback"** button. When turned on, you will hear a distinct sound for each returning echo, providing real-time auditory information about the anatomy you are scanning.

Keyboard shortcuts are available too: press **Space** to emit a pulse, **C** to clear the image, and **D** to toggle demo mode. Space is captured by the simulation so it fires a pulse instead of scrolling, even while the probe is being moved. Any active interaction will stop demo mode, returning control to you immediately.

Demo mode now completes multiple sweep passes before it refreshes the image, giving the B-mode display a more complete and natural reconstruction before the next cycle begins.

Technical Details & Interpretation: Hearing the Image

While standard B-mode imaging is silent, this simulation's Auditory Feedback mode demonstrates principles used in advanced **Doppler Ultrasound**. When activated, each echo is sonified:

Try scanning with Auditory Feedback on. You'll quickly learn to identify the loud, high-pitched signature of the kidney stone versus the loud, low-pitched rumble of the deep bone, all through sound!

Future Directions

This simulation now feels more responsive and intuitive, but it still has room to grow. A next step would be building more realistic controls for gain, depth, and frequency so the image looks and behaves more like a real ultrasound machine. Better sonification could map echo characteristics more directly to tissue types and depth, and adding selectable probe geometries or pathology cases would make the experience richer for learners.

We could also make the demo mode smarter by showing a small progress indicator or by letting users choose an educational walkthrough instead of an automatic sweep. More visual polish, clearer artifact labels, and a mobile-friendly probe interface would make the whole simulation easier to use in a classroom or training environment.