← ALL WORK
Engineering2026

LIGHT-TIME: Delay-Aware Triage for Astronaut Health Alerts

Built in one weekend for the NASA Space Apps Challenge 2026 by a team of six from Lakehead University, and given an Honourable Mention. It checks each vital sign, estimates how long a falling reading has before it becomes critical, compares that with the round trip to Earth, and says who has to act. I built the backend.

PythonFlaskSQLAlchemySQLitePostgreSQLpytestNext.jsReactTypeScriptDockerGoogle Cloud RunNASA JPL HorizonsClaude Code

On 14 and 15 November 2026, my team of six, The Procrastinators, took part in the NASA Space Apps Challenge at Lakehead University's Orillia campus. We built LIGHT-TIME, a triage system for crew health alerts that accounts for the communication delay to Earth. It received an Honourable Mention at the Orillia event.

I built the backend: the ship's computer, the alert rules, the delayed link to Earth and the tests. The demo runs at lighttime.health, and the code is in two public repositories: the ship and the link and the crew and Earth consoles.

The team presenting at the front of a lecture hall at Lakehead University. The projector screen shows the LIGHT-TIME logo, the words Health Monitoring System and the names Rebecca, TJ, Kyler, Youssef, Damola and Oreoluwa.

Presenting LIGHT-TIME at the Orillia event on 15 November.

The problem

Medical care in space is delivered by the crew. On the International Space Station, a crew medical officer, a crew member who does not have to be a physician (NASA-STD-3001), carries out tests and treatment on board. A flight surgeon, a physician in mission control, advises them in near real time. Former crew medical officers describe the role as a healthcare extender to the flight surgeons on the ground (LaBarbera et al., 2023).

That arrangement depends on a fast link. On 14 November 2026, NASA JPL Horizons put Mars 198.1 million km from Earth: 660.86 seconds one way, so a question and its answer take 1,321.72 seconds, about 22 minutes. Over the years the one-way delay ranges from about 3 to 22 minutes, and around solar conjunction, when the Sun sits between the two planets, there is no link at all.

We took the challenge "Create Health Monitoring Software for Astronauts on Space Missions" and narrowed it to one question: when a crew member's blood oxygen starts falling, can Earth respond in time, and if not, who should act?

Horizontal bar chart on a log scale of the round trip for a question to Earth and its answer. The space station is 0.5 seconds (0.25 seconds one way, through relay satellites) and the Moon 2.6 seconds; at both the flight surgeon on Earth directs care. Mars on 14 November 2026, from JPL Horizons, is 22 minutes 2 seconds, and the crew medical officer decides while Earth reviews. Behind the Sun there is no link, and the crew acts alone while messages queue. A dashed orange line at a 10-minute round trip marks a one-way delay of 5 minutes, where the crew medical officer takes the lead.

The round trip at each stop on the dial, on a log scale. Right of the dashed line, a one-way delay of five minutes or more, the crew medical officer leads.

Monitoring vital signs is not new. The Canadian Space Agency's Bio-Monitor already records heart rate, blood oxygen, skin temperature and more from one shirt. LIGHT-TIME adds the delay: it uses the round trip to Earth as an input to every alert decision. NASA lists distance from Earth as one of the five hazards of human spaceflight, and its plans for Earth-independent medical operations give the crew more responsibility for care as missions go further out.

What we built

LIGHT-TIME has three parts. The ship, or base station, is the crew's console and the computer behind it. It shows four crew members, each scored against their own pre-flight baseline, and the cabin: carbon dioxide, oxygen, pressure, temperature, radiation and space weather.

The LIGHT-TIME crew console with the dial on Mars. The header reads Earth is 11 min 1 s away, earliest reply 22 min 2 s, crew medical officer, beside four dial stops: space station 0.25 s, Moon 1.3 s, Mars 11 min 1 s and behind the Sun with no link. Station cards for cabin carbon dioxide, oxygen partial pressure, pressure, temperature, radiation today and space weather sit above four crew cards for TJ, Rebecca, Kyler and David, each with heart rate, blood pressure, blood oxygen, temperature, sleep and mood scored against their own baseline. An alerts list runs down the right. Readings are labelled simulated.

The crew console. Crew readings are simulated and labelled; the cabin carbon dioxide, temperature and humidity replay a NASA record from the space station.

Earth, or the command center, is the flight surgeon's console. It shows only what has crossed the link, as old as the light time, and any reply takes the same time to come back.

The flight surgeon's console on a dark map of North America at night. A large dot-matrix clock reads 11:01 old under the line Light from the ship is, with one way 11 min 1 s, crew medical officer. A dotted path runs from the ship to the Canadian Space Agency in Saint-Hubert, Quebec. Below, crew vitals for TJ, Rebecca, Kyler and David show heart rate, blood oxygen and skin temperature as the newest reading to reach Earth, and a link panel shows a ring at 11:01 one way, a round trip of 22 min 2 s, and who decides: crew medical officer.

The Earth console. Night lights from NASA Black Marble.

The link between them is a table of messages, each stamped with when it was sent, the delay and when it lands. A dial in the ship's header has four stops: the space station (0.25 seconds one way, through relay satellites), the Moon (1.3 seconds), Mars (11 minutes 1 second on our date) and behind the Sun (no link). Moving the dial changes the delay, who decides and what the ship says, on every screen at once.

Flow diagram in four boxes. 1, Smart shirt: one timestamped reading a second of heart rate, blood oxygen, skin temperature, motion, muscle activity and radiation dose. An arrow leads to 2, the ship computer, LIGHTTIME, with three questions: can I trust this reading, is it normal for this person, and how long until the red line. Arrows lead down to 3, the crew, at once, where every screen shows the alert, the time left and a checklist, and to 4, Earth, after the light time, where a report takes 11 min 1 s and a reply another 11 min 1 s. A strip along the bottom reads time left versus round trip: if Earth can answer before the red line the flight surgeon directs, and if not the crew medical officer acts now while Earth reviews afterwards.

One reading a second goes from the shirt to the ship. The ship alerts the crew at once, and Earth receives the report a light time later.

We assume each crew member wears a smart shirt like the Bio-Monitor for the whole mission, an assumption our mentor asked us to state. Youssef Ali, the team's hardware engineer, designed the sensors we would add to that shirt and documented them in our hardware write-up. An ESP32 microcontroller in a removable module at the waist reads heart rate and blood oxygen, skin temperature, motion, muscle activity and radiation dose, plus a blood-pressure cuff used at scheduled check-ins, and sends timestamped readings to the ship over Wi-Fi.

The shirt has not been built. During the hackathon a hobby pulse-oximeter board stood in for it, and the demo's readings are simulated. No rule yet uses the motion or muscle readings.

How the triage works

Animated infographic of LIGHT-TIME as a four-stage triage pipeline for one blood-oxygen reading a second: validate the signal, classify severity with NEWS2 bands, project the time to the red line with a Theil-Sen trend, and route by the light time to Earth. A worked example for Mars on 14 November 2026 follows: readings still in the normal band but falling, a time to critical of 70 seconds, a round trip to Earth of 1,321.72 seconds, so the crew medical officer leads. Four results close it: 6 of 6 falls warned before the SOS, a median lead time of 97 seconds, false SOS alarms from 4 to 0 on a 7.8-hour night, and 271 backend tests passing.

The four stages, with a worked example for Mars.

The ship's adviser, LIGHTTIME, runs every reading through four stages, once a second, for each crew member. It uses fixed rules and simple statistics. No trained model makes or changes a decision.

1. Validate the reading

Many false alarms on a patient monitor come from the sensor, not the patient, so the first checks are on the signal. A blood-oxygen value outside 50 to 100 % is treated as a dropout, not a measurement. A reading flagged with a poor signal is never judged; the ship asks for a sensor check instead. After any poor reading, nothing can raise an alarm for the next 10 readings, because a sensor that has just been put back on reads low for a few seconds.

Animated chart of illustrative blood-oxygen readings near 97 % against dashed lines at 95, 93 and 91 % for caution, warning and emergency. A reading of 38 % is marked as a dropout, a short run of low readings is marked poor signal, and the readings after it are marked as a hold-off while the sensor settles, so none of them raises an alarm. Four rules are listed below the chart: a value outside 50 to 100 % is a dropout, a poor-signal reading is never judged, nothing can alarm for 10 readings after a poor one, and a level counts only after 5 clean readings in a row.

An illustrative trace. A dropout and a run of poor-signal readings pass through without raising an alarm.

2. Classify severity

The severity levels come from NEWS2, the early-warning chart of the Royal College of Physicians: 95 % or less is a caution, 93 % or less a warning, and 91 % or less an emergency, which raises an SOS and sends the report to Earth automatically. A level only counts once it holds for five clean readings in a row. NEWS2 is a hospital score and has not been tested in spaceflight, so these are demo tiers with a named source, not flight rules.

Each crew member also has a usual range, the 1st to the 99th percentile of their own clean readings over the last 24 hours. It gives context on the crew card and in every report but never raises an alarm, because on real wrist recordings a personal range was too wide to alarm on.

3. Estimate the time left

A fixed threshold only fires once the reading is already low. The third stage estimates when that will happen. The ship fits a Theil-Sen line to the last 60 clean readings: the median of the slopes between every pair of readings, 1,770 slopes in all. A median of slopes is much less sensitive to a few bad readings than a least-squares line; up to about 29 % of the points can be wrong before the estimate fails. The ship raises an early caution only if the fall is consistent (Kendall's rank correlation of at least 0.5 between time and the reading), it drops at least 2 points across the window, and the red line is no more than 10 minutes away.

Animated chart of 60 illustrative blood-oxygen readings falling from about 99.5 to 95.6 % over a minute, with a few outliers. Lines between pairs of readings flash as the 1,770 pairwise slopes are computed, a lime Theil-Sen line is drawn through the points, and a dotted extension reaches the red line at 91 % about 70 seconds ahead. Below the chart, the slope is the median of the pairwise slopes, about minus 0.066 % per second, and the three conditions are listed: agreement of at least 0.5, a fall of at least 2 points across the window, and a red line no more than 10 minutes away.

Illustrative data. The agreement shown, falling pairs minus rising pairs over all pairs, is the size of Kendall's rank correlation between time and the reading.

time_left  = (median of the last 5 readings - 91) / rate of fall
reply_time = 2 x one-way light time
Earth can answer in time only if reply_time < time_left
The LIGHT-TIME alert page for TJ, the commander, with the dial on Mars. A watch card reads Blood oxygen 95.5% and falling, with the rule tripped: the reading is still in the normal band but falling steadily toward the red line. Below it the LIGHTTIME panel, which coaches the crew medical officer, says: TJ. Blood oxygen 96 and falling. At this rate it reaches the red line in about 70 seconds. Earth's earliest reply is 22 minutes away. That is too late. Crew medical officer, check on TJ now. Three tiles show time left to the red line 1 min 10 s, earliest reply from Earth 22 min 2 s, and can Earth answer in time: No, followed by a three-step checklist.

The early caution, raised while the reading was still in the normal band. The sentence is built from fixed templates and read aloud by the browser's speech synthesis.

The ship stores this comparison in the report, so Earth later sees what the ship knew when it raised the alert. Every alert lists its reasons under "Why the ship says this" and ends with the same line: "This is a fixed rule, not a diagnosis. A person, not the ship, decides."

4. Route by light time

One rule decides who leads, with three cases. Under 300 seconds one way, the flight surgeon directs care, as on the station today. At 300 seconds or more, the crew medical officer leads and Earth reviews afterwards. With no link, the crew acts alone, and every message waits in a queue that is sent most urgent first when the link returns.

Two LIGHTTIME panels, one above the other, for the same simulated fall in TJ's blood oxygen. Top, the Moon at 1.3 seconds one way, Earth in time: yes. The panel drafts the report while the flight surgeon directs care, and says Earth can answer in 3 seconds, report sent; time left 1 min 10 s, earliest reply 2.6 s. Bottom, Mars on 14 November 2026 at 11 min 1 s one way, Earth in time: no. The panel coaches the crew medical officer and says Earth's earliest reply is 22 minutes away, that is too late, crew medical officer, check on TJ now; time left 1 min 10 s, earliest reply 22 min 2 s.

The same simulated reading with the dial at the Moon and at Mars. Nothing else was changed.

The 300-second switch is a design choice. It is based on NASA's NEEMO 16 analog mission, which ran a simulated medical emergency at a five-minute delay and concluded that more crew medical autonomy is desirable at delays of five minutes or more (Rader et al., 2013). That is one simulation with one crew, so 300 seconds is a reasoned setting, not a measured threshold. It is a single constant in the code.

The delayed link

Every message between ship and Earth is a row with three times: sent, delay and lands. Earth's API reads only that table, and an automated test fails if Earth's code ever imports the ship's crew, reading or alert tables, so the Earth console cannot show anything Earth would not have received yet.

The Mars delay is live: the ship asks NASA JPL Horizons for the light time on the mission date, and the Earth console checks it against the round-trip light time NASA's Deep Space Network reports for spacecraft at Mars. At 21:49 UTC on 15 November the two were 1.6 seconds apart. For the stage demo, any leg of a minute or more plays 60 times faster, with the true figure kept on screen.

Results

There is no open astronaut data, so before a rule was allowed to raise an alarm, we ran public recordings from healthy volunteers through the ship's own code. Six adults breathed low-oxygen gas in a lab while a finger oximeter recorded once a second (Hoffman et al., 2022).

Line chart of one volunteer's blood oxygen over about 300 seconds, on a dark background. The reading steps down from 96 and 97 % toward the red line at 91 %, which is drawn dashed in red with the label SOS after five readings in a row. A thick lime line marks the ship's Theil-Sen trend through the 60 readings before the warning, and a dotted lime line extends it to the red line. A lime dot at 138 seconds is labelled warning at 138 s, reading 94 %, about 87 s left. A red vertical line at 236 seconds is labelled SOS at 236 s, 98 s after the warning.

Volunteer 100003. The thick line is the ship's trend through the 60 readings before the warning, and the dotted line is where it leads.

VolunteerWarning atSOS atWarned ahead byTime left the ship stated
100001162 s321 s159 s142 s
100002235 s341 s106 s56 s
100003138 s236 s98 s87 s
100004221 s317 s96 s58 s
100005112 s180 s68 s84 s
100006114 s128 s14 s26 s

The ship warned before the SOS in all six recordings, by a median of 97 seconds (range 14 to 159). The time left it stated at the warning was within 50 seconds of what happened in every case. The trend settings (window, minimum fall and agreement) were chosen by leaving each volunteer out in turn: 18 combinations, tuned on five people and tested on the sixth. All six rounds picked the same settings. Six recordings is a small sample, so this checks that the rule behaves as designed; it is not a validation.

On a 7.8-hour night from a person who was well (Apnea-ECG record c01r; Penzel et al., 2000), the trust rules reduced false SOS alarms from four with every number believed, to one with impossible values rejected, to zero once the sensor had to settle after a dropout. The time-left rule still raised two cautions that night. A caution does not send an SOS, but both were false warnings.

Two results were negative. Hospital heart-rate bands, applied to wrist recordings of 15 healthy volunteers (PPG-DaLiA; Reiss et al., 2019), flagged 14 of the 15 while they sat at a desk, so heart rate is shown and sent to Earth but does not raise an alarm by itself. On a night of sleep apnoea, where oxygen falls fast and often, the trend warning came first in only 32 % of falls. For falls that fast, the fixed thresholds do the work.

Feedback from the Canadian Space Agency

One of the highlights of the event was working with Anastasiia, our Canadian Space Agency mentor. She told us that monitoring on the station today is mostly periodic: scheduled checks that the crew medical officer logs and sends to the ground. Astronauts accept those checks, but they do not want to be monitored around the clock. She asked for two things from any onboard software: recommendations a crew member can trace and override, and health data kept off the public internet. She also pointed out that not every crew member should see every record.

Her advice changed the build. No decision calls a language model or an outside service, and every alert names the reading and the rule that raised it. The ship's API shapes each answer by role: full records go to the crew medical officer and the flight surgeon, every other crew member sees their own record and a name card for the rest, and an SOS reaches everyone with only who, what and where. These are role-based views, not a login. Nothing in the demo yet verifies who is at the screen.

My role and how I used AI tools

I built the Flask ship computer, the alert rules and the scripts that test them on the recordings, the delayed link, the Horizons and Deep Space Network checks, the role-based views and the demo's scripted story, and hardened the service for hosting. I also wrote the backend documentation, the concept document and the research paper, which list all six of us as authors.

I used Claude and Claude Code throughout the weekend, and every use is logged with its date and purpose in the backend's AI_USE.md. Claude helped me write a design spec and a task-by-task plan. Claude Code built the plan test-first, one task at a time. Separate review agents then checked the work, and every finding was reproduced before anything was fixed. The backend finished the weekend with 271 passing tests.

The tools did not decide what the software should do. The alert levels come from a published chart, the trend settings were chosen on real recordings, and two rules were switched off because the data showed they would raise false alarms. No AI model runs inside LIGHT-TIME.

The team

The six members of The Procrastinators standing in a row and smiling in a lecture room at Lakehead University, in front of two projector screens showing the LIGHT-TIME logo.

The team after the pitch. Photo: NASA Space Apps Challenge Orillia.

The six of us are Oreoluwa Akinnukawe, Youssef Ali, Tirthesh Jani, Rebecca Mazzocco, Damola Olutoke and Kyler Visser. Rebecca led the team and kept our documentation together. Youssef designed the suit hardware. Kyler and Oreoluwa worked on the backend, hosting and data with me: Kyler built the Docker image for Google Cloud Run, and Oreoluwa built the generated mission month, the Earth console's case routes and the vitals feed. Damola built the crew and Earth consoles in Next.js.

The six team members standing in a row, each holding an Honourable Mention certificate from the 2026 NASA Space Apps Challenge, beside a sponsor board and a Space Apps banner.

Our Honourable Mention from the Orillia event.

Limits and next steps

The evidence is six laboratory events and two nights from healthy volunteers on Earth. It shows that the parts work as designed, not that the system would help a crew, and the settings and the test share the same recordings. The severity levels come from a hospital chart that has not been tested in spaceflight, and the 300-second switch is a design choice. The light time leaves out relay and ground processing. At the start of a fast fall, the 60-reading window still holds flat readings, so the stated time left runs long: in the scripted story the ship says about 70 seconds and the SOS comes 13 seconds later. There is no rule yet for a fast heart rate at rest or a stuck sensor. LIGHT-TIME is not a medical device.

Next, we would build the shirt and test it in an analog habitat on Earth with the delay imposed, using real sensors and a busy crew. We would add a sign-in for each role and an emergency unlock that lets the crew member helping a casualty open that person's record, logged and reviewed afterwards. We would also test the time-left rule on more recordings and ask a flight surgeon to review the severity levels.

Sources

© 2026 TIRTHESHJANI.COMBARRIE, ONTARIOAD ASTRA PER ASPERA