Skip to content
StatusImplementedData originREAL_PUBLICSIMULATEDVerified on

Pipeline, Normalization & Quality ​

A guide for data contributors (data engineers, data scientists, researchers) of the Astronaut Health Intelligence Platform (AHI): what data the platform needs, how it must be normalized and checked, and in which format to deliver it. It is a concise English version of docs/data-guide.md (pt-BR), checked against NASA sources on 2026-11-14. The pipeline is implemented for the two OSDR datasets; everything else on this page is the contract for future imports.

In one minute ​

  1. The platform shows 21 metrics today, and all of them come from simulators or from the check-in typed in the app (SIMULATED or MANUAL, see the Data dictionary). The only exception: two real Inspiration4 blood panels (OSD-569 and OSD-575), shown as historical reference.
  2. The job is to replace simulation with real data where it exists, and where it does not, to anchor the simulation in citable scientific sources.
  3. There is no public continuous physiological telemetry of astronauts. Do not look for "the ISS vital signs API". For those metrics: calibrate the simulator with published ranges and keep the SIMULATED label.
  4. Real public data with the most impact: ISS cabin environment and radiation in NASA EDA (priority 1), human lab panels in NASA OSDR (done), and the NASA Standard Measures to justify the metric catalog.
  5. Every delivery uses the canonical HealthObservation with full provenance.

Pipeline ​

PathContent
data/raw/<ACCESSION>/Original file byte for byte, API responses as received
data/manifests/<ACCESSION>.jsonProvenance manifest
data/processed/<ACCESSION>.observations.jsonCanonical long format
frontend/web/src/data/<ACCESSION>.jsonCompact UI version (target: under 200 KB)
frontend/web/scripts/<source>/Reproducible discovery and import scripts

Pipeline rules:

  1. Reproducible: one documented command redoes the import (for example node scripts/osdr/import.mjs).
  2. Downloaded files are untrusted data: save each in its own folder, parse as text only, never execute anything.
  3. Keep the original value (metadata.original_value, original_unit) when converting units, and document the factor.
  4. Idempotent: re-importing does not duplicate (stable observation_id).
  5. Prefer SUBMITTED over TRANSFORMED files when the former has an explicit unit column.

Normalization rules ​

These rules come from section 6.3 of the product spec and are applied by the OSDR import scripts and by every simulated adapter (makeObservation in src/engine/sim/adapters.ts).

RuleHow
One canonical recordEvery value becomes a HealthObservation with a metric_code from the catalog
Canonical unitsConvert to the unit in the Data dictionary; keep metadata.original_value and original_unit and document the factor
Incompatible unitsRejected, never blindly converted
TimeISO 8601 in UTC; the original time zone is recorded
Missing valuesnull with quality.status = MISSING, never zero
Out of physical rangeFlagged QUESTIONABLE, never deleted
DeduplicationStable, idempotent observation_id; re-importing does not duplicate
Qualityquality.status (VALID, QUESTIONABLE, INVALID, MISSING), confidence, is_estimated
Contextcontext.mission_phase and context.activity when known
Origindata_origin on every record (Data origins)

In the running engine, the personal band is clamped to each metric's physical limits and questionable readings cannot escalate beyond MODERATE (Anomaly detection).

Quality checklist ​

Every dataset must pass before it enters the app:

  • [ ] Schema: every required HealthObservation field present.
  • [ ] Unit: known and compatible with the metric_code. Incompatible units are rejected, not blindly converted.
  • [ ] Timestamps: valid, UTC, ordered. Original time zone recorded.
  • [ ] Missing: null with quality.status = MISSING, counted in the manifest.
  • [ ] Duplicates: detected and removed by idempotent key, counted.
  • [ ] Plausible range: values outside the physical range are flagged QUESTIONABLE, never deleted.
  • [ ] Provenance: complete manifest with verified SHA-256.
  • [ ] Metadata consistency: sex, organism, mission and time points match the ISA metadata and description. Discrepancies noted in the manifest.
  • [ ] Population: population_type set. No analog or animal data labeled as astronaut.
  • [ ] License and access: recorded, or "not stated".
  • [ ] No em or en dash characters in text generated for the interface.

A dataset enters the app only if it has an official public source with a stable URL, identifiable units and period, verified population and design, passes the checklist, has a clear use in the app, and comes with a fitness report saved in docs/data-source-inventory.md.

Delivery schemas ​

The source of truth is frontend/web/src/types/domain.ts. Full field rules: Data model.

HealthObservation from a real source ​

json
{
  "observation_id": "stable idempotent key from the source",
  "subject_id": "C001",
  "mission_id": "SpaceX Inspiration4",
  "device_id": "LAB-CBC",
  "metric_code": "WBC",
  "value": 5.4,
  "unit": "Thousand/uL",
  "measured_at": "<ISO 8601 UTC>",
  "data_origin": "REAL_PUBLIC",
  "source_reference": {
    "repository": "NASA OSDR",
    "dataset_accession": "OSD-569",
    "file_name": "LSDS-7_Complete_Blood_Count_CBC.upload_SUBMITTED.csv",
    "record_reference": "row 42"
  },
  "quality": { "status": "VALID", "confidence": 1.0, "is_estimated": false },
  "context": { "mission_phase": "POST_FLIGHT", "activity": "REST" },
  "metadata": {
    "original_value": "5.4",
    "original_unit": "Thousand/uL",
    "population_type": "COMMERCIAL_ASTRONAUT",
    "timepoint_label": "R+1"
  }
}

Illustrative values

Values, codes and dates above are placeholders to show the shape. WBC is a lab metric planned in the product spec, not part of the live catalog. Use the real values of the downloaded file.

Proposed metadata.population_type values: ISS_ASTRONAUT, COMMERCIAL_ASTRONAUT, ANALOG_PARTICIPANT (HERA, bed rest, confinement), GROUND_CONTROL, NOT_APPLICABLE (cabin).

Cabin environment (EDA delivery) ​

Same HealthObservation with subject_id: "CABIN", the payload mission as mission_id (for example RR-18), source_reference.repository: "NASA EDA", and metadata.eda_column (for example CO2_ppm_ISS) plus a note such as "ISS cabin during payload mission RR-18".

Ingestion batch (backend) ​

POST /api/v1/observations on the AHI API (Implemented) takes a batch of canonical observations, validated as a whole, and answers 202 with accepted_count, duplicate_count, rejected_count and the rejected ids. Each observation carries its own provenance:

json
{
  "observations": [
    {
      "observation_id": "OBS-AST-01-HR-0001",
      "subject_id": "AST-01",
      "mission_id": "MISSION-001",
      "device_id": "DEV-BIO-AST-01",
      "metric_code": "HEART_RATE",
      "value": 82,
      "unit": "bpm",
      "measured_at": "2026-11-13T14:30:00Z",
      "data_origin": "SIMULATED",
      "quality": { "status": "VALID" }
    }
  ]
}

The web app does not send its simulated stream to the API today; the engine runs on the readings in the browser. The endpoint is ready for a real adapter or an import job.

Dataset manifest ​

One data/manifests/<ACCESSION>.json per dataset with the DatasetRecord fields listed in Data origins and provenance. Fields without information in the source stay null with the note "not stated". Never fill a field by assumption.

Simulated vs real today ​

DomainWhat the app showsOrigin todayCan it become real?Priority
Vital signsHR, HRV, SpO2, breathing, BP, skin temperatureSIMULATED (Bio-Monitor)Unlikely as a public continuous series. Calibrate with literatureP1 (calibration)
Sleep and activitySleep duration and efficiency, activitySIMULATED (actigraphy)Possible through analog studies (labeled analog)P1
ExerciseCEVIS, ARED and T2 performanceSIMULATEDUnlikely. Calibrate with countermeasure literatureP2
Cognition and self reportReaction time, mood, fatigue, stressSIMULATED and MANUALProtocol reference in the Standard MeasuresP2
HydrationHydration indexSIMULATEDUnlikelyP2
Cabin environmentCO2, temperature, humiditySIMULATEDYes: NASA EDA (ISS)P0
RadiationDose rate and accumulated doseSIMULATEDYes: NASA EDA and RadLabP0
LabBlood count and metabolic panelREAL_PUBLIC (OSD-569, OSD-575)Already real. ExpandDone, P1 to expand
Mission contextPhases, schedule, comm delayConfigurationYes, from OSDR and EDA metadataP1
DevicesState, battery, signalSIMULATEDNo public source. Keep simulatedOut of scope

Metric by source strategy ​

MetricBest real sourceRealismStrategy
CO2, CABIN_TEMPERATURE, RELATIVE_HUMIDITYNASA EDA (ISS)HighImport 1 or 2 missions with CO2 as a REAL_PUBLIC replay
RADIATION_DOSE_RATE, RADIATION_DOSENASA EDA (doses), RadLabHighImport the EDA series; RadLab when it is back
Blood count and metabolic panelNASA OSDRDoneExpand with OSD-656 and the OSD-575 multiplex panels if they can be explained clearly
Cortisol, immune markersOSDR (Inspiration4 and other human studies)MediumLook for tables with clinical units, no omics
SLEEP_DURATION, SLEEP_EFFICIENCY, ACTIVITY_LEVELNLSP and OSDR (analogs)Medium to lowActigraphy from HERA or bed rest, labeled analog; otherwise calibrate with literature
REACTION_TIME, MOOD, STRESS, PERCEIVED_FATIGUEStandard Measures (protocol), NLSPLowProtocol and scale reference; keep SIMULATED and MANUAL
HEART_RATE, HRV_RMSSD, SPO2, RESPIRATORY_RATE, BP, SKIN_TEMPERATURENo public continuous series foundVery lowCalibrate the simulator with published ranges (with DOI); document in the model card
EXERCISE_LOADCountermeasure literature (CEVIS, ARED, T2)LowCalibration and documentation
HYDRATIONNoneVery lowKeep simulated and state it as a limitation
Mission phases and datesOSDR and EDA metadataHighUse real dates in replays

Contributor priorities ​

PriorityDeliverableSourceDone when
P0Real ISS cabin replay (CO2, temperature, humidity)EDA1 or 2 missions with CO2, manifest, canonical JSON with subject_id: CABIN and REAL_PUBLIC, fitness report
P0Real radiation dose seriesEDA (RadLab if back)Rate and accumulated dose with unit and method documented
P0Scientific justification of the catalogStandard Measures and HRP hazardsTable metric x Standard Measure x hazard, with links
P1Grounding for the demo thresholdsNASA habitability standard (NASA-STD-3001 family) and literatureEach threshold with a source (document, section, version) or the demo label kept
P1Vital sign and sleep simulator calibrationLiterature with DOIRanges per metric (mean, spread, circadian variation) with references
P1Analog sleep or cognition dataNLSP and OSDRAn analog dataset with provenance, or an "access on request" record
P1More lab dataOSDRCortisol or immune markers with clinical units
P2Exercise dataCountermeasure literatureDocumented performance ranges
P2Real mission dates in replaysOSDR and EDA metadataPhases and dates filled from the source

What not to do ​

  • Present rodent, plant, cell or analog data as astronaut data.
  • Fill gaps with zero, a mean or a "typical" value without marking it DERIVED or is_estimated.
  • Use the lab reference range as an app alert limit.
  • Quote a number as an "official NASA limit" without document, section and version.
  • Download or try to access controlled access data.
  • Import large omics files into the interface.
  • Forget to record the SHA-256 and the download date.

Next steps ​

Astronaut Health Intelligence Platform. Decision support only: not a diagnosis and not a medical device. Device data is simulated.