← All projectsProblem statement Solution Architecture Key features Challenges Lessons learned
2026
EchoSense
A low-cost ultrasound probe training simulator: a dummy probe, a camera and an ESP32 pull up the matching ultrasound image as you scan, and a web dashboard scores every practice session.
Learning to handle an ultrasound probe takes hands-on practice, but access to real machines is limited and professional training simulators are expensive. Students need a cheap way to practise where to place the probe, how to tilt it, and how hard to press, and a way to see whether they are improving.
EchoSense turns a dummy probe into a training simulator. A camera reads ArUco markers stuck on a mannequin, and an ESP32 with a tilt sensor and a pressure sensor reports how the probe is held. The software shows an ultrasound image for the organ under the probe, with gain and time-gain (TGC) controls like a real machine. A web dashboard gives every trainee an account, saves each practice session automatically, scores it, and shows progress over time. The images come from open datasets (CC BY 4.0: Karim 2025, MSU Scholars Junction).
Three parts talk to each other. (1) Hardware: an ESP32 (C++, PlatformIO) reads an MPU6050 for pitch and roll and an FSR for pressure and sends one line of pitch,roll,force at 115200 baud over serial, with LEDs for contact and too-hard pressing; an ESP32-CAM streams video over Wi-Fi (MJPEG) from the probe itself. (2) Probe app: a Python/OpenCV program detects the ArUco organ markers (eight organs: liver, gallbladder, pancreas, spleen, both kidneys, pelvis, ovaries), works out which organ is under the probe, and picks an image from a dataset of over 3,000 ultrasound images using sweep position, pitch and roll. The image appears only above a contact pressure, and the laptop beeps when the probe is pressed too hard. (3) Dashboard: a FastAPI server with SQLite stores accounts (bcrypt-hashed passwords, expiring hashed tokens) and sessions, and a plain JavaScript web app shows a live feed, exercises, results and progress. Scoring weights and thresholds live in one config file that both the server and the browser read.
- Camera tracking of ArUco markers on a mannequin, with the organ under the probe highlighted
- ESP32 tilt (MPU6050) and pressure (FSR) readings streamed over serial, plus an ESP32-CAM video stream from the probe
- The ultrasound image appears only when the probe is pressed on, and a beep warns when it is pressed too hard
- Image matching from sweep position, pitch and roll, with live gain and time-gain (TGC) controls
- Accounts with secure login, and sessions saved to the trainee's account automatically when practice ends
- Session score out of 100 from coverage, pressure control, tilt accuracy and time, with progress charts and a view-as-table option
- Live probe feed on the dashboard, and a demo mode that works without any hardware
- Accessible interface: keyboard navigation, text and icons alongside colour
The open ultrasound datasets have no probe-tilt information, so every image is tagged with zero tilt and an evenly spaced sweep position; the matching code already uses pitch and roll, so real poses can be added later. A flickering marker or a wobbling probe makes the image jump, so position and tilt are smoothed, small changes are ignored, and the last image is held briefly when the marker is lost.
Three different inputs (camera, tilt sensor, pressure sensor) become much easier to combine when each one is reduced to a few clean numbers per frame, and when the whole thing still runs without the hardware attached. Keeping scoring rules in one shared config file meant the server and the browser could never disagree about a score.