Skip to content
Brian Chang
All projects

Case study · Tech lead

Heace

A watchOS + iOS app that gives runners and event organizers early heatstroke warnings during marathons.

TL;DR

Runners collapsing from heatstroke keeps happening at city races. As Tech Lead, I built Heace: an Apple Watch app that scores each runner's heatstroke risk in real time, using the watch's own sensors plus the IoT sensors already on the route, and an iOS app that shows organizers where help is needed.

Role
Tech Lead
Platform
watchOS + iOS
Team
6 people
Duration
1.5 months
  • SwiftUI
  • WatchKit
  • HealthKit
  • MapKit
  • Supabase
  • ThingSpeak

Problem

Heatstroke can turn a runner's condition critical within minutes. At the 2026 BTN Jakarta International Marathon (JAKIM), many runners were hit by heatstroke, and it isn't a new story: running in a hot, humid city makes it a recurring risk at urban races.

That led to one question: what if runners got an early warning before things turned critical, and organizers knew exactly where to send help?

Research

It started with the news coverage from JAKIM 2026, then went to the people who run these races. I interviewed an event organizer about how heat is handled on race day.

  • Heat and air quality can't be avoided. Organizers can schedule and prepare around them, but on the day, runners are exposed regardless.
  • "Listen to your body" isn't enough. Many events already remind runners of this, yet plenty still push through on ego to reach the finish line, especially virgin runners attempting a category for the first time.
  • Existing solutions add hardware. Current monitoring systems build dedicated IoT devices for heart rate and other vitals and attach them to every runner.

Insight

  • The warning has to come from outside the runner's head. Runners who are determined to finish won't judge their own risk honestly, so the signal needs to be objective and right on the wrist.
  • Organizers need to know too. A warning only helps a runner in trouble if someone can reach them in time.
  • The sensors are already there. Many runners wear a smartwatch, and race routes already have environmental sensors. There's no need to strap new hardware to everyone.

Decisions & trade-offs

Use the watch and the route, not new hardware

Context
Existing heatstroke monitoring attaches purpose-built IoT devices to every runner to read heart rate and other vitals.
Options
  • Build and hand out a dedicated sensor for each runner
  • Use the runner's Apple Watch plus the IoT sensors already on the route (chosen)
Why

Runners already wear smartwatches that read heart rate and wrist temperature, and the route's sensors already measure air temperature and humidity. Combining the two gives us everything the risk score needs, without manufacturing, distributing, and collecting a device for every runner.

Two apps instead of one

Context
Runners and organizers need different things at the same moment: a personal warning versus an overview of the whole field.
Options
  • One iOS app for everyone
  • watchOS app for runners + iOS app for organizers (chosen)
Why

The Apple Watch is the only device on the runner during a race and can read vitals continuously. Organizers need a bigger screen to see the route and spot where help is needed.

Solution

On the wrist, the watch app runs a HealthKit workout session for continuous monitoring and combines three signals into one risk score:

  • Heart rate as a percentage of the runner's estimated maximum (from their age).
  • Estimated core temperature from the watch's wrist temperature and the air temperature.
  • Heat index from the temperature and humidity measured by the route's IoT sensors.

Each signal gets a score, and the total maps to four levels: Safe, Moderate, High, and Danger. The scoring scale is adapted from HeatGuard (Silawarawet et al., Sensors, 2026), a wearable heatstroke warning system, with our own thresholds for the four levels.

When the risk climbs, the watch tells the runner to slow down. At Danger it asks if they're okay, and one tap sends a help request with their live location, which switches GPS from once a minute to near real-time.

For organizers, the iOS app shows the race route and each runner on a map, colored by risk level. Risk readings and help requests are stored in Supabase so both apps work from the same data.

Watch screen showing a green Safe status with a walking figure and a 00:30:30 timer
The main screen: one clear risk level and the race time.
Watch screen showing an orange High status with a warning triangle
The level updates as heart rate, body temperature, and heat index change.
Watch screen with heart rate 171 BPM, body temperature 38.6°, ambient 33.0°, and humidity 78%
Swipe to see the signals behind the score.
Full-screen red Slow Down alert on the watch
A blinking alert tells the runner to slow down.
Sending Help screen with live location shared and an I'm okay now button
One tap sends help, with the runner's live location.
Events list showing BTN JAKIM 2027 with bib number M12345
Runners join their race and bib number before the start.

Results

  • As Tech Lead of the three-person engineering team, I split the work and delegated it well, and we delivered every planned task, from the Apple Watch app to the iOS app.
  • A working end-to-end flow: wrist and route sensor data in, a live risk level on the watch, and help requests out to organizers.

Reflection

Heace taught me what a tech lead is really for. My job wasn't to write every line, but to break a two-device product into pieces the team could build in parallel, make sure those pieces fit together, and keep the whole thing moving until both apps were done. On the product side, the interview changed how I saw the problem. The danger isn't only the heat. It's that people who are determined to finish won't stop on their own. That's why Heace doesn't rely on runners judging themselves, and why it brings organizers into the loop.