Inspiration
Every smart home tells its story in fragments:
02:14:00 — Patio Slider: CONTACT OPEN
02:14:04 — Living Room Cam: PERSON DETECTED (96%)
02:14:14 — Office Cam: PERSON DETECTED (94%)
02:14:32 — Office Cam: MOTION DETECTED
02:14:48 — Patio Slider: CONTACT CLOSED
Look closely at that log and two questions immediately jump out. First, what happened during the 18 seconds of silence between 02:14:14 and 02:14:32? Second—and much more unsettling—to get from the Living Room to the Office, you have to walk down the Central Hallway. Why didn't the hallway motion sensor fire?
Today’s smart home dashboards treat sensors as isolated light switches: they are either firing right now, or they tell you nothing at all. If a sensor stays quiet, the software assumes the room is empty. It never asks whether the battery dropped to 2.84V and the radio packet browned out.
The same problem shows up in an even more personal place: caring for an aging parent. Nobody wants to put a camera inside their mother’s or father’s bathroom. That is a non-negotiable privacy boundary. Most falls happen in the bathroom, yet that is the exact room where cameras shouldn't exist.
We built Ring ShadowTrack because we realized you shouldn't have to fill every square inch of a house with cameras to understand what is happening inside it. The space between sensors isn't a void—it is governed by walls, doorways, and human physics. If you respect those constraints, the sparse signals Ring devices already emit are enough to reconstruct the whole story.
What it does
Ring ShadowTrack is a spatial state reconstructor and hardware diagnostic engine built on the Ring (Amazon Vision) API ecosystem. Instead of displaying a flat list of webhook alerts, it ingests sparse Ring events—contact sensors, PIR motion triggers, and Amazon Vision camera detections—and reconstructs a continuous, physically valid timeline across an architectural floorplan.
It solves four concrete problems across security, caretaking, and IoT reliability:
- Reconstructing Blind-Spot Trajectories & Dwell Time (Case 01 — The Midnight Burglar): When an intruder moves from a monitored room into an unmonitored zone, ShadowTrack routes their path along a topological navigation mesh, separating travel time from stationary dwell time. In our benchmark burglary case, it proves mathematically that the intruder spent 18.0 seconds stationary inside the unmonitored Office Safe alcove before retracing their steps.
- Catching Silent Hardware Failures (Case 01 & Case 04 — Sensor Health Audits): If the only physically possible path between two verified Ring camera detections cuts directly through the field-of-view cone of a third sensor that stayed silent, ShadowTrack flags a Silent Hardware Bypass. By cross-referencing that missed transit with device health telemetry (voltage sag to 2840mV and weak RSSI at -78dBm), it diagnoses a failing sensor before you rely on it in an emergency.
- Camera-Free Eldercare Fall Detection (Case 02 — Privacy-Preserving Caretaking):
An elderly resident wakes at their bedside (
03:12:00), walks across the bedroom, and opens the en-suite bathroom door (bathroom_contactatT+8s). There are no cameras inside the bathroom. ShadowTrack infers entry into the privacy blind spot and starts a boundary-value dwell timer. When 45 minutes pass without a door-exit event or bedroom re-entry—crossing the 35-minute safety ceiling—it triggers a high-priority caregiver immobility alert without ever capturing a single frame of private video. - Pet False-Alarm Discrimination (Case 03 — Domestic Pet Filter):
When a house cat darts between the living room sofa, rug, and cat tree, traditional motion logs look like an active break-in. ShadowTrack combines Amazon Vision’s low-to-ground bounding box telemetry (
[0.42, 0.65, 0.18, 0.22], 95.8% non-human confidence) with kinematic analysis—detecting high angular jitter (138°/s), a tight bounding radius (< 2.5m), and zero perimeter doorway crossings—to suppress a false alarm dispatch.
How we built it
We deliberately avoided throwing an unconstrained LLM at timestamp logs to "guess" where someone went. Physical security and eldercare require verifiable, deterministic math where you can inspect why the system reached its conclusion.
- Ring & Amazon Vision API Integration (
src/api/ring_client.ts): We built our ingestion layer around the canonicalAmazonAppDev/ring-api-helloworldstarter specification andapi.amazonvision.comREST conventions. Every webhook event is validated through strict Zod schemas (JSON:APIformat withmeta,data.attributes.confidence, normalizedbounding_box, and devicerelationships). We also built an interactive Ring Partner API Studio right into the header so judges and developers can paste a Ring Developer Playground Bearer token, inspect live JSON:API payloads, inject test webhooks, or copy ready-to-runcurlcommands. - Topological NavMesh & Kinematic Smoother (
src/engine/reconstructor.ts&constraints.ts): We modeled a 24m × 16m residential floorplan with structural walls, portals, and sensor cones clipped via 2D ray-casting. When consecutive events arrive at \( t_k \) and \( t_{k+1} \), an A* solver computes the shortest valid corridor path \( L = \sum_j |\vec{w}{j+1} - \vec{w}_j|_2 \). We then solve a two-point boundary value problem: comparing the elapsed interval \( \Delta T = t{k+1} - t_k \) against human walking kinematics (\( v_{\text{walk}} \approx 1.35\text{ m/s} \), \( v_{\max} \le 4.5\text{ m/s} \)) to separate corridor transit time from stationary blind-spot dwell time, interpolating smooth Catmull-Rom trajectories. - Bayesian Uncertainty Envelope & Particle Cloud (
src/engine/bayesian.ts): Rather than pretending we know a person's exact millimeter coordinates inside a dark hallway, ShadowTrack explicitly models what it doesn't know. While an entity is inside an active Amazon Vision camera cone, spatial uncertainty contracts to \( \sigma_{\min} = 0.6\text{m} \). As they step into an unmonitored corridor, the uncertainty radius blooms smoothly up to \( \sigma_{\max} = 2.6\text{m} \), rendered at 60 FPS with a 180-particle Monte Carlo probability cloud constrained by wall non-permeability:
$$ \sigma(t) = \sigma_{\min} + \sigma_{\max} \cdot \sin\left(\pi \frac{t - t_k}{t_{k+1} - t_k}\right) $$
- Bayesian Sensor Degradation Matrix (
src/engine/sensor_diagnostics.ts): For every reconstructed corridor leg, we run line-segment intersection checks against every sensor’s ray-casted visibility polygon. If an entity's mandatory path crosses a sensor cone with zero triggers emitted, we update the posterior failure probability using both the missed transit count and a hardware battery brownout curve (voltage sag under 3200mV):
$$ P(\text{Degraded}i \mid \text{Evidence}) = 1 - (1 - P{\text{prior}}) \cdot (1 - P_{\text{misses}}) \cdot (1 - P_{\text{battery}}) $$
Challenges we ran into
- The "Wall-Mount Bounce" Trap:
In our first pass at the Elder Care and Pet scenarios, when the same room sensor fired multiple times in a row, our reconstructor routed the entity back and forth to the sensor's physical wall mount (e.g., walking into the top-right drywall corner where the PIR bracket is screwed in). A sensor trigger doesn't mean the person is touching the plastic housing—it means they are inside its detection cone. We had to separate hardware mount coordinates from observable room points-of-interest (
detectionPosanddwellTarget), allowing the cat to dart naturally from the sofa to the cat tree while the camera observes from the corner wall. - Canvas vs. Cartesian Sensor Cones: Early on, we noticed the Living Room camera wasn't picking up the cat even when the cat was right in the middle of the rug. It turned out we had defined the camera's field-of-view angle as 215° thinking in standard Cartesian coordinates (+Y up). On an HTML5 Canvas where +Y points down, 215° pointed the camera straight into the northern drywall ceiling! Fixing our quadrant math (135° and 140° for down-left room coverage) made the ray-casted visibility polygons snap cleanly into the rooms.
- Resisting Forward-Only Drift: If you use a standard forward-only Kalman or particle filter, the moment someone walks into a blind spot, the particles drift aimlessly until the next sensor fires—and then teleport awkwardly across the room when the next webhook arrives. Switching to a retrospective boundary-value smoother meant that as soon as event \( E_{k+1} \) arrives, the engine solves the bridge connecting \( E_k \to E_{k+1} \) at a physically plausible speed without teleports or wall clipping.
Accomplishments that we're proud of
- Privacy by Architecture, Not Policy:
In our eldercare scenario, bathroom privacy isn't protected by blurring video frames or promising not to store footage—there is literally no camera in the room. By pairing a simple door contact sensor (
bathroom_contact) with bedroom motion and boundary-value dwell math, we get reliable fall/immobility detection with zero optical intrusion. - Turning "No Data" into Hardware Diagnostics: In almost every IoT dashboard, a dead sensor looks identical to an empty room. Using path topology between working neighbors to prove that a silent middle sensor had to have been crossed—and tying that to battery voltage sag—turns negative space into an actionable maintenance ticket.
- Zero-Scroll, 60 FPS Forensic Command Center:
We obsessed over usability. The entire workbench—interactive 24m × 16m blueprint canvas, live Amazon Vision AI viewfinder HUD, playback scrubber (
0.5xto10x), and 4-tab forensic dossier—fits cleanly into a single100vhviewport with zero awkward scrolling, backed by 27/27 passing unit and integration tests across geometry, kinematics, Bayesian bounds, and Ring JSON:API schema validation.
What we learned
- Physical constraints are the best regularizer: You don't need deep learning to figure out someone didn't walk through a brick wall. Encoding simple architectural geometry and human speed limits eliminates 90% of false trajectory hypotheses before you ever touch a probability distribution.
- Confidence belongs in the UI: Showing a single solid dot inside a blind spot lies to the user about how much the system knows. Rendering the expanding and contracting uncertainty ring (±0.6m to ±2.6m) makes the math intuitive at a glance—you can literally see certainty snap back into focus when someone steps into a Ring camera cone.
What's next for Ring ShadowTrack
- Multi-Track Data Association (JPDA): Extending our single-entity smoother to Joint Probabilistic Data Association so ShadowTrack can untangle overlapping paths when two people and a pet are moving through the house at the same time.
- Automated Floorplan Calibration from RSSI & Walk Tests: Right now, the 24m × 16m floorplan is defined in configuration. Next, we want to let homeowners do a 2-minute "setup walk" from room to room while holding their phone, automatically inferring the topological corridor graph and travel times between their Ring devices.
- Live Ring App Store Sidecar: Packaging the Silent Hardware Bypass detector as a lightweight background webhook worker that sends a weekly "Sensor Health & Blind-Spot Audit" push notification to Ring Alarm owners before a low battery turns into a missed event.
Built With
- amazon-ring-sdk
- vision