Award: MYOSA Competition Master Award, first place · IEEE SENSORS 2026 Competition: IEEE Sensors Council MYOSA 6.0 · New Mexico State University Selected: Demo slot awarded on panel review of the team's project blog, Sept 2026 Presented: IEEE SENSORS 2026, Rotterdam, Netherlands, October 25–28, 2026 Team: NMSU VSS 1.0 · Aidan Garcia, Jacob Randall, Cabe Robertson, Vu Ha Nguyen My role: Team lead, stack architecture & test methodology Faculty mentor: Dr. Lavrova · Klipsch School of Electrical & Computer Engineering
My role
What I led
I served as team lead on CrashGuard, owning the technical direction of the build and the effort to make its measurements trustworthy.
Own the detection firmware. Wrote and tuned the ESP32/MPU6050 firmware that recovers dynamic acceleration from the raw accelerometer counts, detects impact events in real time, and autonomously triggers the emergency call.
Architected the tech stack. Defined the full signal-to-action chain end to end (on-vehicle sensing, the BLE link to a phone with its Wi-Fi HTTP fallback, the Flask call server and dashboard, and the Twilio voice interface), resolving the threading and timeout failures that blocked reliable real-time dispatch.
Led the team. Coordinated four engineers across firmware, host software, and demo preparation, keeping the subsystems integrating cleanly against the competition deadline.
Led the testing effort. Drove the work of getting accurate results rather than plausible ones: tracing the vendor library's sensor readings to their source, calibrating the gravity vector, and tuning the threshold and confirmation window so ordinary handling cannot raise an alert.
Built the automated test suite. Constructed 46 automated tests across the BLE link, the Flask call server, and the Twilio voice interface to verify the detection chain and eliminate false triggers.
Problem
Why it exists
Every year, thousands of car crash victims suffer preventable deaths because emergency response is delayed, most critically when the driver is incapacitated and cannot call for help. CrashGuard closes that gap: it identifies a collision on its own from a sudden change in acceleration, then contacts help without requiring any action from the occupant.
The board becomes the "brain" of an in-vehicle guardian. When it detects an impact, a live phone dashboard flashes a ten-second countdown while the onboard buzzer sounds. A conscious occupant taps one big red CANCEL button and the system re-arms. If nobody cancels, CrashGuard assumes the occupant is incapacitated and escalates to an AI voice call that reports who they are, where they are, and what a dispatcher needs to know.
Prototype
Demo
The build running end to end: impact detection, the cancel countdown on the phone dashboard, and the outbound AI call. The first iteration is below it, for comparison.
LATEST Current build.FIRST First iteration, kept for comparison.§ Result
First place at IEEE SENSORS 2026
CrashGuard won the MYOSA Competition Master Award at IEEE SENSORS 2026 in Rotterdam, presented to team NMSU VSS 1.0. MYOSA 6.0 drew more than 225 submitted ideas from 17 countries; over 50 projects were evaluated and 16 teams reached the conference.
FIG.A The award, presented to team NMSU VSS 1.0.FIG.B Accepting the award at the conference.
FIG.C The competition's scale, from the organisers' closing recap.
01
The chain of events
From impact to a dispatcher answering the phone, with a human override at the only point where one belongs.
Detect. The accelerometer is sampled at 100 Hz; dynamic acceleration above 5.0 g on consecutive samples, or a sustained railed axis, declares a collision.
Warn. The phone dashboard flashes !! CRASH DETECTED !! with a ten-second countdown and vibrates; the buzzer on the car beeps faster in the final three seconds.
Offer the override. One tap on CANCEL - I'M OK dismisses the alert and re-arms the system, exactly how a conscious driver waves off a pothole.
Escalate. If the countdown expires, the board pushes a Bluetooth alert to the host, which fires the call pipeline.
Locate. A single batch of map lookups resolves the address, city, nearest cross streets, and closest hospitals from the live GPS fix.
Call. Twilio places an outbound call that speaks the occupant's briefing, then a Claude agent answers the dispatcher's follow-up questions using only verified data.
Document. After a few exchanges the system offers to send a full written incident report by SMS or email.
What CrashGuard is for: a crash becomes an emergency call with nobody touching a phone. The impact is detected, the occupant gets ten seconds to cancel, and if they do not, the system calls a dispatcher, speaks a briefing, and answers follow-up questions using only verified data.
1Detect
2Warn
3Override
4Escalate
5Locate
6Call
7Document
ARMED
Monitoring. Press Crash to start the chain.
The transcript appears here.
Written incident report
Published to the phone dashboard first, then sent by text message or email.
What the agent is given
The agent can read this record and nothing else. Edit any field and ask again. The occupant, address and hospital are fictional.
Try this
Press Crash and leave it alone. Ten seconds later the call goes out with nobody touching a phone. Skip the wait jumps to the end of the countdown.
Press Re-arm, then Crash again, and this time press CANCEL - I'M OK. No call is placed. A false alarm costs one tap.
On a live call, ask Is the occupant conscious? Nothing on the board measures that, so the agent says it does not have that information.
Clear Blood type in the record and ask for it. The answer becomes the same refusal, because the record is all the agent can read. Type a new value and ask again.
Press Pothole. It reads under 2 g, well below the 5.0 g threshold, and nothing happens.
End-to-end architecture, MYOSA board → BLE bridge → call server + Claude → Twilio → dispatcher. The dashed path is the Wi-Fi HTTP fallback, which removes the bridge entirely.
02
Impact detection
Subtracting the gravity vector, rather than its magnitude, makes the threshold pure excess acceleration and independent of mounting orientation.
Method
The MPU6050 accelerometer (I2C address 0x69) is sampled at 100 Hz with the full-scale range set to ±16 g. During a still-boot calibration the firmware averages one hundred samples to record the gravity vector g0, then subtracts it from every later sample to give the dynamic acceleration:
d(t) = (a(t) − g0) / |g0|
Because the whole vector is removed and not merely its magnitude, this reads 0.00 g at rest in any orientation. The threshold is therefore expressed purely as excess impact acceleration, with no gravity offset buried in the number. A collision is declared when the dynamic acceleration exceeds 5.0 g.
That value is chosen deliberately. Rotating the sensor by hand can produce at most 2 g of apparent dynamic acceleration, so any threshold above 2 g means ordinary handling can never raise an alert. Readings also pass through a median-of-three filter before comparison, which discards isolated outlier samples from bus glitches or transient saturation, so both the reported magnitude and the trigger reflect sustained motion rather than a single bad sample.
False positives are rejected by four mechanisms working together: gravity-vector removal, median-of-three spike filtering, the 5.0 g threshold, and a requirement for consecutive samples to confirm the event. GPS plays no part in this; it supplies location for the emergency call only.
Engineering lesson. Getting trustworthy acceleration required abandoning the vendor library's per-axis accessors. Reading its source revealed three properties that make them unsuitable for high-rate crash sensing. Each accessor re-reads the range configuration register, tripling I2C traffic at 100 Hz and returning intermittently corrupted samples. The three axes are read in separate transactions and therefore correspond to different instants, so their vector magnitude is not physically meaningful during rapid motion; the symptom was orientation-dependent readings of 14 to 17 g while the board sat perfectly still. And the library's scale factor is twice the correct value for every full-scale range, applying 2(fsr+1) where the datasheet requires 2fsr. The firmware now performs a single six-byte I2C burst read, so all three axes are sampled at the same instant, and applies the datasheet sensitivity of 2048 LSB/g at ±16 g to the raw counts directly. No gyroscope data is read at any point; angular rate is unnecessary for impact detection and would only add bus load.
Saturation
When the impact exceeds the instrument
Impacts on a rigid demonstration platform readily exceed the sensor's range, so sustained per-axis railing is treated as an independent crash indicator. When an axis reaches 95% of full scale for the confirmation window, an impact is declared regardless of the computed magnitude, and the alert is annotated to show that true severity exceeds the recorded peak. Collisions harder than the instrument can measure are therefore detected rather than missed.
Peaks
Two peaks, reported separately
The dashboard peak and the crash peak answer different questions, so they are measured differently:
Dashboard peak: holds the highest recent value for three seconds, then follows the live reading again, so the display reflects current activity rather than a stuck maximum.
Crash peak: measured only across a 400 ms window around the impact itself, so the figure given to the dispatcher belongs to that collision rather than to the largest bump seen earlier in the session.
Run the detection model
Detection model
Impact detector
CrashGuard's detection pipeline, running at 100 Hz on a synthetic accelerometer: gravity-vector subtraction, a median-of-three filter, a 5.0 g threshold confirmed over consecutive samples, and a railed-axis check for impacts beyond the sensor's range.
Solid: dynamic acceleration after the median filter. Faint: the raw value before it. Dashed, with Compare on: the method that subtracts only gravity's magnitude.
Dynamic accel
0.00 g
Peak, 3 s hold
0.00 g
State
ARMED
Over threshold
0 / 3
Magnitude method
0.00 g
The threshold is above the 27.7 g sensor ceiling. Nothing the sensor can report will cross it.
Try this
Press Pothole, then Hard braking. Both stay under 2 g and the detector stays armed.
Press Bus glitch: one corrupted 20 g sample. The faint raw trace spikes and the solid one does not move. Now untick the median filter, set Confirm over to 1, and press it again.
Drag Tilt after calibration to 180°. Turning the board over reads exactly 2.00 g and no more, which is why a 5 g threshold cannot be set off by handling.
Set strength to 40 g, drag the threshold past 27.7 g, untick the railed-axis check, and fire. Each axis clips at 16 g, so the reading never arrives: a crash the detector sits through. Tick the check again and the same impact is caught.
Tick Compare, set strength to 6 g and direction to against gravity, and fire. Subtracting only gravity's magnitude reads about 4 g and misses it.
03
The phone dashboard
The demo vehicle is moving, so every result belongs on a phone, not on a screen bolted to the car.
The board streams its status (current G, session peak, state, and countdown seconds) off-board five times per second. The call server renders it as a mobile web dashboard on the local network, so any phone can open it with no app install.
The instant an impact is confirmed the dashboard goes full-screen with the countdown and a large red CANCEL - I'M OK button, and the phone vibrates. One tap cancels and re-arms. The onboard pushbutton stays wired as a backup, and after an alert the dashboard offers a RE-ARM control.
Live telemetry: impact G and session peak, updated 5×/second
Ten-second cancel window: full-screen countdown with haptic feedback
Backup input: onboard hardware button mirrors the CANCEL action
Re-arm: return the system to monitoring after a cancelled or completed alert
The dashboard mid-countdown, showing a 5.12 G impact and the cancel control.
04
Systems behind the call
Four subsystems turn a detected impact into a conversation a dispatcher can actually use.
Link
Wireless link
BLE GATTESP32Wi-Fi fallback
The ESP32 runs a BLE GATT server with three characteristics: crash alerts out, live status out, and phone commands (CANCEL / REARM) in. A Python bridge relays alerts upward and button presses back down. For noisy conference radio environments, a compile-time flag switches the board onto a phone hotspot and talks to the server over HTTP instead; each status POST returns any pending command, so no bridge is needed at all.
Context
Map intelligence
OpenStreetMapNominatimOverpass
A dispatcher asks things no profile can hold: what's the nearest cross street? what city is this? where's the closest ER? At the moment of the crash CrashGuard resolves the live GPS fix into a context bundle using key-less OpenStreetMap services.
One combined query: named roads, hospitals, and landmarks are fetched in a single Overpass request rather than three, cutting lookup latency and rate-limit exposure to roughly a third. That is what made cross streets reliable.
Mirror failover: several public Overpass endpoints are tried in turn, because any single one frequently rate-limits.
What it returns: street address, city, county and ZIP, nearest named roads, closest hospitals, and nearby landmarks (schools, fuel, pharmacies, police and fire stations, shops, tourist sites), each with distance and compass bearing computed by the haversine formula.
Explicit gaps: fields that come back empty are marked unavailable in the agent's context, so it states plainly that it does not have them instead of hedging.
Off the critical path: the lookup runs on a background thread while the phone rings, so it never delays the call, and the live coordinates are applied instantly at trigger time.
Continuous position: the phone captures live GPS automatically and continuously, because a crash victim cannot press a button. Browser geolocation requires HTTPS, and the last fix is cached on disk so it survives a server restart.
Voice
The AI dispatcher agent
Twilio VoiceClaude APIFlask
The Flask call server receives the crash event and uses Twilio to place the outbound call. It opens with a spoken briefing (name, GPS coordinates and nearest address, peak impact force, blood type, medical conditions, primary emergency contact), then listens. The dispatcher's speech is transcribed and handed to a Claude agent whose system prompt contains only the occupant profile and live crash data, instructed to answer in one to three short sentences, read numbers digit by digit, and say "I don't have that information" rather than ever guess.
Published before it is sent: the report always goes to the phone dashboard first, before any send is attempted. That path cannot be blocked by a carrier, so the report is never lost regardless of what happens to SMS or email.
Delivery is verified, not assumed: Twilio accepting a message only means it was queued. US local (10DLC) numbers must be registered for A2P messaging or carriers silently drop the traffic, which looks like success in the API but never arrives. The system polls the message until it reaches a terminal status and reports the truth, naming the registration requirement when that is the cause.
Asked for at any point: a request for the report is recognized anywhere in the call, not only inside a scripted offer.
Spoken input parsed locally: phone numbers ("five seven five...") and email addresses ("chief at example dot gov") are decoded on the host. All intent handling is local rather than model-driven, so it adds no per-call inference cost and responds instantly.
Reliability
Keeping a live call from falling over
Most of the failure modes in this system are timing and lifecycle problems rather than algorithmic ones, so they are handled explicitly:
Inference off the webhook path: model inference is dispatched to a worker thread and the webhook returns immediately, so the telephony provider's roughly 15 second webhook timeout cannot terminate a live call during a slow inference.
Non-blocking trigger: the crash trigger returns instantly, with dialing and map enrichment running in parallel background threads, so the BLE bridge never times out waiting on the server.
BLE recovery: re-advertising is deferred to the main loop after a disconnect, since calling it inside the disconnect callback fails silently on the ESP32, and a heartbeat watchdog drops stale links so a bridge restart does not require power-cycling the board.
Startup self-check: every host module and dependency is verified present and from the same release, so version drift surfaces before a demo rather than mid-call.
Cost and latency control: a small fast model, prompt caching on the invariant system prompt, truncated conversation history, and short spoken replies.
05
Specifications & stack
Stack
What it is built from
MYOSA Mini Kit: ESP32 motherboard, MPU6050 (accelerometer only), buzzer and pushbutton on the I2C chain
Arduino (C++): firmware, official MYOSA sensor libraries, ESP32 BLE stack
Python 3 + HTML/JS: Flask call server, live mobile dashboard, bleak BLE bridge, pyserial calibration tooling
OpenStreetMap: Nominatim and Overpass for reverse geocoding, cross streets, and nearby hospitals (free, no API key)
Claude API: grounded conversational dispatcher agent
Specs
At a glance
Sample rate
100 Hz
Accel range
±16 g
Trigger
5.0 g dynamic
Baseline
100-sample g0
Peak window
400 ms
Cancel window
10 s
Status stream
5 Hz
Link
BLE / Wi-Fi
Platform
RC demo car
Safety. This is a demonstration system. The call is placed to a team member's phone that plays the dispatcher role, never to 911 or any real emergency service, and a demo-mode flag makes the AI disclose that no real emergency exists if it is asked.
06
Status & what's next
Roadmap
The full chain (detection, cancel window, BLE alert, AI call, map lookups, and incident reporting) runs end to end on the prototype above. The system ran end to end at the conference. Work that remains, if the project is carried further:
Rollover detection from the gravity vector already computed at calibration, by detecting when the measured gravity direction inverts. No new sensor data is required.
Phone app to replace the laptop bridge, which would bring real phone GPS into the alert
LTE alert path for genuinely standalone operation with no host nearby
Additional language support for the dispatcher agent
From the build log
A threshold that can never fireThe detection threshold was set at 50 g on a sensor that saturates at 27.7 g, so the branch could never be taken.