Skip to Content

Results

Accessing the results

Read the final result when the measurement state reaches FINISHED or your app receives the measurement-finished event. Progress can reach 100% while the SDK is still computing the result in FINALIZING. Read any values you want to keep before resetting or starting the next scan.

Check that a result exists, then check each optional metric your app uses. A finished scan can return heart rate while omitting another metric because of the preset, license, or signal quality. Show a missing value as unavailable. Zero can be a valid reading, for example on the Stress Index scale.

The examples read heart rate and, when available, heart rate variability (SDNN).

const result = await shenaiSDK.getMeasurementResults() if (result) { console.log("Heart rate (bpm)", result.heart_rate_bpm) if (result.hrv_sdnn_ms != null) console.log("SDNN (ms)", result.hrv_sdnn_ms) }

Result fields

OutputFields
Heart rate and HRVheart_rate_bpm, hrv_sdnn_ms, hrv_lnrmssd_ms
Stress and parasympathetic activitystress_index, parasympathetic_activity
Breathing ratebreathing_rate_bpm
Blood pressure and cardiac workloadsystolic_blood_pressure_mmhg, diastolic_blood_pressure_mmhg, cardiac_workload_mmhg_per_sec
Body estimatesage_years, bmi_kg_per_m2, bmi_category, weight_kg, height_cm
Signal qualityaverage_signal_quality, quality_metrics
Detected heartbeatsheartbeats

Each heartbeat has a start and end time in seconds (start_location_sec, end_location_sec) and a duration in milliseconds (duration_ms).

Success conditions

The default measurement preset collects 30 seconds of usable signal. Movement, poor lighting, or an incorrectly positioned face can extend the scan. The selected precision mode determines how much signal quality is required.

Final metrics

The preset determines which metrics the SDK attempts to return. Some come from the timing of detected heartbeats. Others, including blood pressure and BMI, use models applied to the facial scan.

HR (Heart Rate)

The camera picks up subtle changes in facial skin color as blood pulses through the skin (remote photoplethysmography, or rPPG) and tiny head movements caused by each heartbeat (ballistocardiography, or BCG). Depending on signal quality, the SDK can use either source or combine beat timings from both.

The SDK uses the intervals between detected beats to report average heart rate in beats per minute (bpm). Those intervals also underlie HRV, Stress Index, and parasympathetic activity. For a reading during a scan, use live heart rate.

Resting heart rate is commonly 60–100 bpm in adults. Fitness, activity, posture, and medication can all affect an individual’s reading. American Heart Association guide to heart rate 

Heart Rate Variability (HRV)

HRV describes how beat-to-beat intervals vary over the scan. The SDK reports two measures.

  • SDNN is the standard deviation of the filtered beat intervals, in milliseconds. A longer scan can capture slower changes in heart rate and produce a different SDNN. Use the same scan duration when comparing results.
  • lnRMSSD describes beat-to-beat changes. The SDK takes the root mean square of differences between consecutive beat intervals, expressed in milliseconds, then takes the natural logarithm. Display this value as lnRMSSD, without an ms suffix.

For trends, compare a person’s readings at a similar time of day, in the same posture, and under similar resting conditions. Age, breathing, and recent exercise also influence HRV, so a single population cutoff is a poor guide to an individual’s result. Voss et al., study of short-term HRV  · Olivieri et al., review of HRV and aging 

Breathing Rate (BR)

The SDK estimates respiratory cycles per minute from breathing-related changes in the facial video, including subtle motion and skin-color variations. Display the result in breaths/min to distinguish it from heart rate. If your app needs to assess signal quality, use the breathing quality index.

Stress Index

The Stress Index is an HRV-derived physiological indicator mathematically calculated from the distribution of intervals between consecutive heartbeats. It reflects physiological autonomic regulation during the measurement and is scaled from 0 to 10.

  • Values from 0 to 4 are within the reference range for this indicator.
  • Values from 5 to 8 indicate an elevated physiological load reflected in the heartbeat-interval pattern.
  • Values from 9 to 10 indicate a markedly elevated physiological load. If the result persists, the measurement should be repeated under the recommended conditions.

The result may be influenced by factors such as recent physical activity, insufficient recovery, posture, movement, breathing pattern, caffeine intake, hydration, illness, medication and measurement conditions.

The Stress Index does not identify or infer emotions, intentions, mood, mental state or psychological condition. Its calculation does not involve the classification of facial expressions or other indicators of emotional state. It is not intended to diagnose or predict myocardial infarction, cardiovascular dysfunction or any other medical condition. The result is provided for general wellness and informational purposes and must not be used for clinical or emergency decisions.

Parasympathetic Activity (PA)

The SDK estimates parasympathetic modulation from the frequency content of the heartbeat intervals. It low-pass filters the interval series at 0.4 Hz and measures power in the low-frequency band (LF, 0.04–0.15 Hz) and the high-frequency band (HF, 0.15–0.4 Hz). It reports 100 × HF / (LF + HF). A higher percentage means that more of the power in these two bands lies in the high-frequency band, which is associated with breathing and parasympathetic modulation. Age and recording conditions influence the result. Voss et al. 

Cardiac workload

The SDK calculates cardiac workload as heart rate (bpm) × systolic blood pressure (mmHg) / 60. This expresses the rate-pressure product per second. For example, 60 bpm and 120 mmHg give 120 mmHg/s. The product reflects two contributors to the heart’s oxygen demand, the frequency of heartbeats and the pressure generated with each beat. Kitamura et al., study of myocardial oxygen consumption during exercise 

Blood Pressure (BP)

The SDK estimates systolic pressure (as the heart contracts) and diastolic pressure (as it relaxes), both in mmHg. It uses models applied to facial video and derived signals. If your integration uses a personal calibration, see Blood pressure calibration.

When the optional blood pressure quality check is enabled in strict mode, a scan can return heart rate while withholding blood pressure. The quality metrics can help explain why a repeat scan in better conditions may be useful.

Body Mass Index (BMI) classification

BMI expresses weight relative to height, in kg/m². The SDK estimates BMI from the facial scan and can return the corresponding adult BMI category. Use the category returned by the SDK when displaying the classification. Each category includes its lower boundary.

CategoryBMI (kg/m²)
Underweight, severe thinnessBelow 16
Underweight, moderate thinness16 to under 17
Underweight, mild thinness17 to under 18.5
Normal range18.5 to under 25
Overweight (pre-obese)25 to under 30
Obese, class I30 to under 35
Obese, class II35 to under 40
Obese, class III40 or above

Depending on the scan configuration, the result can also include age in years, weight in kilograms, and height in centimeters. WHO technical report on adult BMI classification 

Measurement quality metrics

The overall signal-quality score ranges from 0 to 1 and uses the same scale as the live signal-quality indicator. The result can also include separate quality indices for the optical pulse signal (PPG), camera-based motion signal (BCG), breathing, and blood pressure. Higher values indicate better signal quality. Check each index before displaying it.

This example reads the blood pressure quality index from the completed result.

const bpQuality = result?.quality_metrics?.blood_pressure_quality_index

Quality and expected error fields

OutputFields
Signal quality indicesppg_quality_index, bcg_quality_index, breathing_quality_index, blood_pressure_quality_index
Expected systolic error (mmHg)expected_sbp_median_abs_error_mmHg, expected_sbp_p80_abs_error_mmHg, expected_sbp_mean_abs_error_mmHg, expected_sbp_balanced_mae_mmHg
Expected diastolic error (mmHg)expected_dbp_median_abs_error_mmHg, expected_dbp_p80_abs_error_mmHg, expected_dbp_mean_abs_error_mmHg, expected_dbp_balanced_mae_mmHg

When available, the SDK also reports expected absolute errors in mmHg for systolic and diastolic pressure separately. These summarize the median, 80th percentile, mean, and balanced mean absolute error for measurements of comparable quality. For example, a predicted median absolute error of 5 mmHg describes the typical size of the error under similar conditions. The actual error of an individual reading requires a reference measurement.

Additional outputs

If your license includes raw data access, you can retrieve heartbeat intervals and a pulse waveform after a successful scan.

Heartbeat intervals

Each entry represents the time between two successive detected beats. It gives the start and end of the interval in seconds and its duration in milliseconds. For example, an interval from 4.20 s to 5.02 s has a duration of 820 ms. There can be gaps between entries, so use each entry’s reported duration when analyzing the intervals.

See Result fields for the field names on your platform. To read intervals during a scan, see live heartbeat intervals.

Pulse waveform

The pulse waveform can come from either the skin-color or the motion signal. Each sample gives the relative signal amplitude on a resampled 30 Hz timeline. For example, samples 30 positions apart are one second apart, even if the camera frame rate varied. Check that samples are present before plotting them.

const ppgSignal = await shenaiSDK.getFullPpgSignal()