From Raw Sensor Signals to Physiological Inference
A Technical Note on Multimodal Sensing, Signal Processing, Model Input, Prediction, and Uncertainty
Author: Bobby J Smith
Research program: Nugenesis
Related system: Nexus Watch
Category: AI & Intelligent Systems
Subcategory: Physiological Computing and Wearable Machine Learning
Document type: Technical Note
Status: Architecture documentation and research framework; end-to-end validation on physical hardware remains outstanding.
Abstract
Wearable sensors do not directly measure complex physiological states such as blood pressure or stress. They capture electrical, optical, and movement-related signals that contain incomplete and sometimes noisy evidence about those states. Turning these signals into useful estimates requires a sequence of processing stages: acquisition, synchronization, filtering, signal-quality assessment, feature construction, model inference, and uncertainty evaluation.
This technical note documents the conceptual and computational pipeline underlying the Nexus Watch research architecture. The system combines electrocardiography (ECG), photoplethysmography (PPG), and motion sensing to construct a compact representation of physiological activity. A multi-task neural network is designed to use that representation to estimate systolic and diastolic blood pressure and produce a stress-related output.
The central engineering challenge is not simply to produce a prediction. It is to determine whether the input signals are sufficiently reliable, whether the model has learned meaningful physiological relationships, how sensitive its output is to noise and individual differences, and whether its predictions generalize beyond the conditions represented in training data.
The architecture therefore treats signal processing, model inference, explainability, and uncertainty as connected parts of one system. It also distinguishes a documented design from a validated measurement device: a model architecture and a functioning software demonstration do not, by themselves, establish clinical accuracy or readiness for real-world physiological monitoring.
1. Introduction: From Measurement to Inference

A wearable sensing system begins with measurements, not conclusions.
An ECG sensor records electrical potential differences associated with cardiac activity. A PPG sensor measures changes in light absorption or reflection associated with blood-volume changes in peripheral tissue. An accelerometer records changes in motion and orientation. Each sensor observes a different aspect of the body, and each is affected by different sources of error.
The challenge is to combine these observations into a representation that can support a useful estimate of a physiological variable.
The overall pipeline is:
Sensors → Preprocessing → Quality Assessment → Feature Construction → Model Inference → Prediction and Uncertainty
Every stage affects the stages that follow. A missed ECG beat can distort a heart-rate estimate. Motion can alter the shape of a PPG pulse. Poor synchronization can distort the interval between electrical and optical cardiac events. A model can then interpret those distortions as physiological information unless the system detects and accounts for them.
For this reason, physiological inference must be treated as a complete signal-to-decision problem rather than as a neural-network problem alone.
2. The Sensor Layer
2.1 Electrocardiography: ECG
ECG provides an electrical view of cardiac activity. Its waveform contains recognizable components, including the P wave, QRS complex, and T wave. For many wearable applications, detecting the R peaks of the QRS complexes is especially useful because successive R-peak times can support heart-rate and heart-rate-variability calculations.
If detected R peaks occur at times t₁, t₂, …, tₙ, the successive RR intervals are:
RRᵢ = tᵢ₊₁ − tᵢ
These intervals provide a temporal description of cardiac rhythm. Their interpretation depends on accurate peak detection, correct handling of missed or extra detections, and sufficient observation duration.
ECG can also serve as a timing reference when paired with PPG. However, ECG is not a direct blood-pressure measurement, and its waveform alone does not establish a person's blood pressure or psychological state.
2.2 Photoplethysmography: PPG
PPG uses optical sensing to observe changes associated with blood volume in tissue. In a wrist-worn system, illumination and a photodetector capture changes in reflected or transmitted light as the peripheral pulse passes through the measurement region.
The resulting waveform contains information about pulse timing, pulse shape, amplitude, and other characteristics. These properties can be used to construct features for physiological models, provided that the waveform is sufficiently reliable.
PPG is particularly sensitive to:
Movement and changes in sensor contact.
Ambient-light interference and optical noise.
Peripheral perfusion and changes in vascular tone.
Sensor placement, skin-tissue characteristics, and device mechanics.
Sampling limitations and signal saturation.
A visually recognizable pulse is not automatically a valid basis for every downstream calculation. A signal can support heart-rate estimation while still being inadequate for more demanding waveform analysis.
Consequently, the pipeline must evaluate signal quality for the intended task, not merely determine whether a waveform exists.
2.3 Motion Sensing
An accelerometer provides measurements related to movement and orientation. Depending on its configuration, it may help identify activity, sudden movement, changes in posture, and periods in which physiological signals are likely to be degraded.
Motion data can play two distinct roles. First, it can be an input feature: activity and movement context may help a model interpret physiological observations that differ between rest and movement. Second, it can support signal-quality control: motion may indicate when an optical waveform is contaminated and when a physiological estimate should be withheld or marked as unreliable.
These roles should not be confused. A motion signal does not automatically remove motion artifacts. It provides information that an appropriate algorithm may use to identify, model, or compensate for them.
3. Preprocessing: Preparing Signals for Analysis

Raw sensor data cannot be assumed to be clean, synchronized, or immediately comparable. Preprocessing transforms the acquired signals into forms suitable for downstream analysis while attempting to preserve the information needed for inference.
3.1 Filtering

Filtering suppresses selected noise components and unwanted frequency content. The appropriate filter depends on the sensor, the target feature, the sampling rate, and the expected physiological bandwidth.
A general Butterworth low-pass filter has the magnitude response:
|H(jω)|² = 1 / [1 + (ω/ωc)²ᴺ]
Here, ωc is the cutoff frequency and N is the filter order.
A band-pass filter can retain a selected frequency range while attenuating frequencies outside it. The Nexus Watch research notes include a second-order-section (SOS) Butterworth filtering approach for PPG, with a candidate band of 0.5–40 Hz. This is a documented processing choice to evaluate, not a universal prescription for PPG. Its suitability depends on the sampling rate, the signal characteristics, the intended features, and the implementation.
Second-order sections are useful for numerical stability when implementing higher-order filters. Filtering choices must also account for timing effects: some implementations introduce phase delay, while zero-phase offline filtering uses future samples and therefore cannot be reproduced unchanged in a strictly real-time pipeline.
The general rule is that filtering should reduce unwanted variation without erasing the physiological features the model needs.
3.2 Motion-Artifact Reduction
Motion artifacts can overlap the frequency range of physiological signals. A conventional frequency filter may therefore be unable to distinguish a real pulse from movement-related interference.
One possible approach is adaptive filtering. If a reference signal x(n) is available to represent noise or movement, an adaptive filter estimates the artifact contribution and subtracts it from a desired signal d(n).
For the least mean squares (LMS) algorithm:
e(n) = d(n) − wᵀ(n)x(n)
w(n+1) = w(n) + μe(n)x(n)
Here, w(n) is the adaptive filter's coefficient vector, μ controls the update step, and e(n) is the residual error.
This method is a potential tool for reducing correlated artifacts. Its effectiveness depends on the reference signal, the relationship between motion and sensor noise, and the algorithm's stability. If the artifact cannot be adequately represented by the reference, the residual may remain unreliable.
Severe motion, poor contact, or sensor saturation can destroy information that filtering cannot recover. In those conditions, rejecting a window may be more responsible than attempting to reconstruct a plausible-looking waveform.
3.3 Synchronization and Resampling
ECG, PPG, and accelerometer channels may have different sampling rates, timestamps, buffering behavior, and communication delays. Combining them without accounting for these differences can produce misleading features.
The system should preserve timestamps and establish a consistent temporal reference. When resampling is needed, the method must be appropriate for the signal and must not imply that interpolated samples contain new measured information.
Synchronization is especially important when calculating pulse transit time or related ECG–PPG timing features. A timing error between channels can become a feature error, which can then become a prediction error.
3.4 Windowing and Signal Quality
After preprocessing, signals can be divided into analysis windows. Each window should be checked for conditions such as:
Missing samples or timestamp discontinuities.
Saturation, clipping, or flat-lined segments.
Implausible or unstable peak detections.
Excessive motion contamination.
Inadequate sensor contact or insufficient usable beats.
Misalignment between sensor channels.
Quality assessment should determine whether a window is usable for a particular task. The same window might support a rough heart-rate estimate but fail the quality requirements for waveform morphology or ECG–PPG timing analysis.
This stage is a critical boundary between measured data and inferred physiology.
4. Feature Construction: Turning Signals into a Model Representation

The next stage converts processed waveforms into a representation that a model can consume. Features may describe timing, shape, variability, activity, or relationships between sensor channels.
4.1 Heart Rate and RR-Interval Variability
If successive valid R peaks are available, mean heart rate can be approximated from the average RR interval:
HR ≈ 60 / average RR interval
This formula assumes the average RR interval is expressed in seconds and the intervals are appropriate for the calculation.
A common time-domain heart-rate-variability measure is RMSSD:
RMSSD = square root of [sum of (RRᵢ₊₁ − RRᵢ)² divided by (N − 1)]
RMSSD describes short-term variation between successive normal-to-normal intervals when those intervals have been appropriately identified and cleaned. It is not a direct measurement of stress. It can be influenced by numerous physiological, behavioral, and measurement factors, including breathing, posture, activity, medication, rhythm irregularities, and the duration and quality of the recording.
An inverse relationship such as ASI ∝ 1 / RMSSD could be explored as a proposed autonomic stress index. However, this is a research hypothesis, not a validated clinical stress metric. It requires an explicit definition, empirical testing, and evaluation against an appropriate reference or outcome.
4.2 PPG-Derived Features
Candidate PPG features include pulse rate, pulse intervals, amplitude-related measures, pulse shape, and morphology-derived timing or shape descriptors.
Feature extraction should account for variability caused by sensor placement, contact pressure, peripheral circulation, and movement. A feature that appears informative in a controlled dataset may behave differently in daily use.
The system must also define how it handles missing or low-quality beats. Replacing every missing value with a constant, for example, can introduce a pattern that the model mistakenly learns as meaningful. Missingness should be represented or handled in a way consistent with the training procedure.
4.3 ECG–PPG Timing and Pulse Transit Time
ECG and PPG can be combined to examine the delay between an electrical cardiac event and a subsequent peripheral pulse event.
A simplified timing feature is:
PTT = time of PPG pulse − time of ECG reference
The exact definition depends on which ECG landmark and which PPG landmark are selected. This distinction matters because the measured interval may include more than the propagation time of a pressure wave, and its interpretation depends on the measurement geometry and timing convention.
Pulse transit time has been studied as a possible source of information for cuffless blood-pressure estimation. A simplified inverse relationship is sometimes expressed as PTT ∝ 1 / BP, but this should not be treated as a universal physiological law. The relationship is affected by arterial stiffness, vascular tone, pre-ejection period when ECG-based timing is used, individual characteristics, and other factors.
Therefore, PTT is a candidate predictive feature, not a substitute for reference blood-pressure measurements or model validation.
4.4 Motion-Derived Features
Motion data can provide activity intensity, movement variability, orientation changes, or other descriptors appropriate to the sensor configuration.
These features may help distinguish different operating conditions. For example, a model may need to interpret a physiological observation differently during rest and movement, or the system may decide not to estimate a quantity when motion contamination is excessive.
The intended use of each motion feature should be explicit. A feature designed for artifact detection should not automatically be interpreted as a direct indicator of stress or cardiovascular state.
5. Constructing the Canonical Model Input
The documented Nexus Watch architecture uses a compact, eight-dimensional input representation for the multi-task learning model.
Conceptually, the input is x = [x₁, x₂, …, x₈]ᵀ.
The vector is intended to summarize selected information from the sensor-processing pipeline. Documented feature categories include PPG-related information, heart rate, pulse-transit-time information, and motion-related features. The exact feature definitions, ordering, units, normalization parameters, missing-value policy, and validity rules must be fixed in the implementation and documented alongside the model.
The eight-dimensional representation should not be assumed to contain eight universally established physiological measurements, nor should any unspecified feature mapping be treated as finalized.
Before inference, the feature vector must undergo the same transformations used during training. These may include scaling, normalization, or other preprocessing steps. If training and inference use different units, scaling rules, timing conventions, or missing-data policies, the model can produce unreliable results even when the neural-network code is unchanged.
The canonical input is therefore an interface contract between signal processing and machine learning.
That contract should specify:
Feature name and physiological or computational meaning.
Units and allowed numerical range.
Sensor source and extraction method.
Time window and timestamp convention.
Quality requirements and missing-value handling.
Normalization or scaling procedure.
Version identifier for the feature schema.
This makes it possible to trace a prediction back through the data transformations that produced it.
6. Multi-Task Neural-Network Inference
The documented model uses a shared neural-network representation with separate output heads for blood pressure and stress-related inference.
The recorded architecture is:
Shared layers: 8 → 32 → 16
Blood-pressure head: 16 → 2 outputs
Stress head: 16 → 1 output
The shared layers transform the eight-dimensional input into a learned representation. The blood-pressure head produces two outputs intended to represent systolic and diastolic blood pressure. The stress head produces one stress-related model output.
Conceptually:
h = shared_network(x)
BP prediction = BP_head(h)
Stress output = stress_head(h)
The shared representation may allow the tasks to learn overlapping patterns, while separate output heads preserve task-specific predictions. However, multi-task learning does not guarantee that the tasks will help one another. Poorly balanced losses or conflicting learning signals can cause negative transfer.
During training, a combined objective might take the form:
Total loss = λBP × BP loss + λstress × stress loss
The loss terms measure error against appropriate reference labels, and the λ values control their relative contribution. For blood-pressure regression, the loss could be defined over systolic and diastolic targets. The stress objective depends on how stress is operationally defined and labeled. A physiological proxy, a self-reported state, and a clinically assessed condition are not interchangeable ground truths.
The model's outputs are estimates derived from patterns in its training data. They should not be interpreted as direct sensor readings.
7. Prediction Is Not the Same as Confidence
A model can produce a precise-looking number even when its input is unreliable or its prediction is poorly supported by the training data.
A physiological inference system should distinguish three questions: What did the model predict? How uncertain is that prediction? Is the input and operating condition suitable for making the prediction at all?
These questions require related but distinct mechanisms.
7.1 Signal-Quality Confidence
Signal-quality assessment evaluates whether the measurements are adequate for the intended calculation. It may identify motion contamination, missing data, poor contact, or unreliable feature extraction.
This is not the same as model confidence. A clean waveform can still lead to an incorrect prediction, and a model may be poorly calibrated even when all input-quality checks pass.
7.2 Predictive Uncertainty
Aleatoric uncertainty reflects variability or ambiguity inherent in the observations and target relationship. Physiological states vary over time, and sensor measurements contain noise that cannot always be eliminated.
Epistemic uncertainty reflects limitations in the model's learned knowledge. It may increase when the input differs from the data represented during training, such as when a person, activity, sensor placement, or operating condition is poorly represented.
These categories are useful conceptual distinctions, but they cannot be reliably separated merely by attaching a confidence score to an ordinary neural-network output. A suitable uncertainty-estimation method must be selected, implemented, and evaluated.
7.3 From a Point Estimate to an Uncertainty-Aware Output
Instead of returning only a blood-pressure point estimate, a more complete interface could return:
Predicted value; uncertainty estimate or interval; input-quality status; suitability status.
The predicted value is the model output. The uncertainty estimate describes a method-specific measure of uncertainty. The input-quality status summarizes relevant checks. The suitability status indicates whether the system considers the estimate usable.
This is a proposed interface, not a claim that calibrated uncertainty intervals are already implemented in Nexus Watch.
Possible approaches for future evaluation include ensembles, probabilistic regression, and conformal prediction. Each has different assumptions and computational requirements. A method should be selected based on its performance under realistic conditions, not merely because it can produce an interval.
For example, an interval designed to contain the reference value in 90% of test cases should be assessed for coverage on genuinely held-out data, including relevant subgroups and operating conditions. Coverage alone is not sufficient: interval width and the ability to identify difficult cases also matter.
7.4 When the System Should Abstain
An uncertainty-aware system should be allowed to withhold a prediction.
Possible reasons include severe motion contamination, invalid feature values, missing channels, out-of-range inputs, or evidence that the model is operating outside the conditions in which it was evaluated.
Abstention is not necessarily a system failure. In physiological monitoring, a clearly communicated inability to provide a reliable estimate can be more useful than a plausible but unsupported number.
8. Explainability: Tracing the Prediction Back to Its Inputs
The Nexus Watch architecture documents feature attribution using an input-times-gradient approach. For input feature xᵢ and prediction ŷ, the attribution is:
Aᵢ = xᵢ × (change in ŷ with respect to xᵢ)
In calculus notation, the change term is the partial derivative of the prediction with respect to that feature. The expression above is written in plain text for portability.
Separate attribution calculations can be performed for systolic pressure, diastolic pressure, and the stress-related output. Attribution can help investigate which input features most influenced a prediction, whether the output depends heavily on a potentially contaminated feature, whether different outputs respond differently to the same input, and whether model behavior changes across users or operating conditions.
However, an attribution score is not proof of causation, physiological validity, or prediction accuracy. Gradient-based explanations may be sensitive to scaling, local model behavior, and the input itself. A model can explain its own output while still producing a wrong answer.
Explainability should therefore be evaluated alongside prediction error, signal quality, calibration, and robustness testing.
9. Data Transport and Persistence
The wider Nexus Watch software architecture documents a pathway from constrained device communication to local persistence and downstream inference.
The intended pipeline includes BLE and SPI-flash transport or persistence, SQLite storage, PyTorch-based inference, and a FastAPI/WebSocket pathway toward an interactive Three.js digital twin.
These components serve different functions:
BLE and device-side interfaces move data between constrained hardware and other system components.
SPI flash can provide device-side persistence where supported by the implementation.
SQLite provides structured local storage for records and analysis.
PyTorch supports the documented machine-learning model.
FastAPI and WebSocket provide a potential interface for sending inference results to a live application.
The Three.js digital twin presents a visual representation of the device or its associated data.
Transport and persistence should preserve timestamps, feature-schema versions, data provenance, and quality information. Otherwise, the system may be unable to reconstruct why a particular prediction was produced.
The architectural separation also supports local-first data handling. However, local storage alone does not prove end-to-end data sovereignty. That claim depends on the actual data flows, access controls, encryption, retention policies, synchronization behavior, and external services used by the implemented system.
The existence of a documented pathway does not establish that every hardware, storage, inference, and visualization component has been integrated and tested end to end.
10. Validation: How the Pipeline Must Be Tested
A complete validation strategy should examine every stage, not only the final model score.
10.1 Signal-Processing Validation
Test filtering, peak detection, synchronization, and artifact handling against representative signals. Include clean recordings and difficult conditions such as movement, low perfusion, missing samples, and unstable contact. Determine whether preprocessing improves the features required by the task without introducing unacceptable distortion or timing errors.
10.2 Feature Validation
Check units, ranges, timing conventions, missing-value handling, and reproducibility. Compare extracted features against trusted calculations or annotated reference data where available. Test whether ECG–PPG timing remains stable under the actual acquisition and transport conditions.
10.3 Model Validation
For blood pressure, compare predictions with appropriate reference measurements. Report systolic and diastolic performance separately, using measures such as mean absolute error, root mean squared error, bias, and error dispersion.
A high correlation or a strong coefficient of determination does not, by itself, demonstrate acceptable measurement accuracy.
Training and test data should be separated to avoid leakage. In particular, randomly splitting overlapping windows from the same people across training and test sets can overstate generalization. Subject-independent evaluation is important when the intended system must work for people not represented during training. Personalized or calibrated use cases require separate, explicitly designed validation.
10.4 Uncertainty Validation
Assess whether reported uncertainty corresponds to actual prediction errors. Evaluate interval coverage and width where intervals are used, and examine whether uncertainty increases in cases where the model is less reliable.
Test performance across activity levels, relevant user groups, sensor conditions, and data-quality categories. Global averages can hide important failures in specific conditions.
10.5 End-to-End Validation
Finally, test the complete path from sensor acquisition through preprocessing, feature construction, inference, and user-facing output. This should include timing, dropped data, storage behavior, reconnection, computational constraints, and failure recovery.
For a blood-pressure estimation system intended for health-related use, clinical validation requirements and the applicable standards must be assessed for the device's intended purpose. A successful software test is not a substitute for clinical validation.
11. Current Research Position and Next Steps
The current Nexus Watch documentation establishes a coherent research architecture: multimodal physiological sensing, signal preprocessing, an eight-dimensional model input, a shared multi-task neural network, feature attribution, local data persistence, and a planned visualization pathway.
The following items should remain explicit development and validation tasks:
Finalize and version the eight-feature schema.
Document the sampling rates, synchronization rules, and filtering parameters used in each processing path.
Specify signal-quality thresholds and the conditions under which the system rejects a window.
Verify the feature-extraction implementation against reference data.
Define the reference labels and training methodology for blood pressure and stress.
Evaluate the multi-task model with leakage-resistant, appropriately separated datasets.
Select and validate a predictive-uncertainty method rather than treating an uncalibrated score as confidence.
Test the full sensor-to-inference pathway on physical hardware.
Measure performance under movement and other realistic operating conditions.
Document limitations, intended use, and user-facing behavior when a prediction is unreliable.
These steps turn a promising architecture into a reproducible experimental system. They also establish a defensible path from software development to evidence about real-world performance.
12. Conclusion
Physiological inference is a chain of evidence.
ECG, PPG, and motion sensors capture different aspects of the body. Filtering and artifact handling prepare those measurements for analysis. Feature construction translates waveforms into a compact representation. A machine-learning model uses that representation to estimate selected physiological targets. Quality assessment, uncertainty evaluation, and validation determine how much confidence those estimates deserve.
The essential engineering principle is that a prediction is only as defensible as the measurements, transformations, assumptions, and validation behind it.
For NuGenesis, the Nexus Watch architecture provides a framework for connecting sensor processing, multi-task learning, explainability, local data handling, and interactive presentation. The next challenge is to test each component and the complete pipeline under conditions that resemble actual use.
The objective is not merely to make a wearable produce physiological numbers. It is to build a system that can explain where those numbers came from, identify when its evidence is weak, and communicate the limits of what it knows.



Comments