The methodology is structured as a motivated progression of design decisions, in which each stage starts from a limitation identified in the previous one. First, we establish the dataset, the validation protocol and the end-to-end LIF regression topology—exploring alternatives (discrete classification, hybrid SNN+SVR extraction) to justify the architectural choice. We then compare two input-encoding strategies—Direct Injection (MAC) and Rate-Coding (AC)—quantifying the trade-off between clinical accuracy and energy savings. The next stage investigates whether patient clinical-profile data (diabetes type, BMI, sex) improve individual accuracy, revealing that such metadata partially compensate for the absence of individualized physiological calibration. This finding motivated the core mechanism of the solution: the Patient Fingerprint, a calibration vector computed from the patient’s first K measurements that replaces one-hot encoding and, by not depending on identities seen in training, in principle enables the calibration of unseen patients. Finally, we evaluate the portability of the trained model to a distinct clinical cohort (ICU2025), delimiting the scope of the solution.
3.1. Dataset and Preprocessing
Cohort and acquisition. The study used multisensor monitoring data collected in a controlled clinical environment from two distinct campaigns: ambulatory patients diagnosed with diabetes (2024 campaign) and patients admitted to an intensive-care unit (2025 campaign), with capillary-glucose reference determined by a glucometer. After integrity validation and physiological filtering (steps 1–2 of the pipeline described below), the consolidated base comprises
98 patients and
717 multisensor measurements, concentrated in 2024 (67 patients, 575 measurements) and 2025 (31 patients, 138 measurements). From this base, the analysis cohorts summarized in
Table 1 are derived, combining a temporal filter (ambulatory 2024 vs. ICU 2025) with a clinical-profile integrity criterion. The final model is trained and evaluated on the curated ambulatory cohort (
sano2024); the ICU cohort serves only as the target domain of the transfer study. Each acquisition simultaneously records five biosignal modalities: (i) multi-frequency bioimpedance—magnitude (
m) and phase (
f) measured at 32 distinct frequencies in 2-probe and 4-probe configurations, totaling
raw channels; (ii) photoplethysmography (PPG)—minimum and maximum amplitude per acquisition window at 4 wavelengths, yielding 8 optical channels; (iii) pulse oximetry (SpO
2), 1 channel; (iv) skin temperature, 1 channel; and (v) heart and pulse rate, 1 channel.
Patient clinical profile. In addition to the sensor measurements, the database stores a per-patient clinical profile linked by a unique identifier. The available fields are date of birth (converted to age in years), height and weight (from which the body mass index, BMI, is derived), sex (; ), and diabetes type in clinical ordinal encoding (; ; ; ). The integrity criterion required height between 1.40 and 2.20 m, weight between 30 and 300 kg and age between 10 and 100 years. Of the 98 patients, 58 hold a real, valid clinical profile; the remaining 40 lacked a valid record. For the experiments based only on sensors and identity (one-hot), these 40 patients were retained—their clinical fields filled by the median and signaled by a flag—since such models do not consume clinical features. Conversely, any analysis that actually uses clinical features (enrichment and importance) was restricted to the subset of 58 patients with a real profile, avoiding contamination by imputed values.
Sanitization pipeline. Preprocessing followed a four-step sequence: (1) integrity validation—discarding records flagged as invalid by the device firmware (contact failure or motion artifact); (2) physiological filtering—retaining only records with reference glycemia in mg/dL (717 measurements from 98 patients after this step); (3) cohort filtering—selecting the sano2024 cohort, i.e., patients with at least 80% of measurements in 2024, restricting the study to contemporary, homogeneous data; and (4) zero-variance filtering—removing channels with null variance, leaving 96 active features for the model.
Analysis cohorts. From the sanitized base, the analysis cohorts of
Table 1 are derived by combining the temporal split with the clinical-profile integrity requirement. The curated ambulatory cohort
sano2024 (29 patients with an integral profile and ≥80% of measurements in 2024) supports the champion model, the importance analysis and the transfer source. The broad 2024 cohort (66 patients, no profile requirement) is used only in the scalability test of the sensor-only model, and the
ICU2025 cohort (29 patients admitted in 2025) is the transfer target. The preliminary architecture explorations (classification, SNN+SVR and the input-encoding study) were conducted on the full 98-patient base—which mixes both campaigns and relies on profile imputation for the 40 patients without a valid record—and are therefore reported only as a preliminary baseline.
Temporal abstraction. Unlike conventional ANNs that map static matrices, SNNs operate in the time domain. To represent this biological dynamic, the analog signal was abstracted into sequential sliding windows. Ablation analyses (window sizes , and ) revealed the diminishing returns of temporal memory for this biosignal: overly wide windows introduced statistical noise and diluted the instantaneous glucose correlation, and at the requirement of continuous temporal sequences exhausted the viable windows per patient, precluding training. Therefore, the optimal abstraction window was set at discrete steps.
3.4. The Neuron Model for Continuous Regression
The fundamental element of the proposed architecture is the Leaky Integrate-and-Fire (LIF) neuron. The temporal dynamics of the membrane potential
are governed by the decay equation:
where
(fixed at 0.80) is the leak factor,
is the synaptic weight,
is the event presence (continuous current or binary spike) at the input synapse, and the term
implements the subtractive reset after firing (
). In the hidden layers the threshold is fixed at
. In the output layer the firing mechanism is disabled (
, hence
for all
t) and the leak is removed (
, no leak), turning the neuron into a continuous charge accumulator; the temporal mean of its potential over the
T steps directly represents the estimated glucose concentration.
Figure 3 illustrates the membrane-potential behavior in both configurations.
3.5. Input-Encoding Topologies
To assess the trade-off between clinical predictive accuracy and energy savings on edge operations, two main data-injection schemes were developed.
Direct Injection (temporal spike): the normalized analog signal is continuously converted into current and processed step by step. This preserves the full signal resolution and maximizes accuracy, but requires multiply–accumulate (MAC) operations in the first synaptic layer.
Sparse encoding (Rate-Coding): the analog value is replaced by the spike-emission probability through a Bernoulli distribution, turning the first hidden layer into a purely additive (AC) operation matrix—the ideal solution for energy-limited architectures. In the baseline comparison (
, no fingerprint), the stochastic evaluation was stabilized by averaging 30 Monte Carlo passes per sample. In the fingerprint variant (
Section 3.7), the Straight-Through Estimator (STE) [
18] was adopted: the gradient backpropagates through the Bernoulli operation as if the identity were applied (
), removing the need for multiple samples during training. To compensate for the limited six-level resolution at
, the number of rate-coding steps was decoupled from the temporal window: each window step was subdivided into
microticks, with
evaluated by ablation.
Both topologies were first evaluated with patient identification via one-hot encoding, without explicit clinical data. The next investigation examines whether incorporating clinical-profile metadata reduces residual mean bias and improves individual accuracy.
3.6. Enrichment with the Patient Clinical Profile
Motivated by the hypothesis that anthropometric and clinical factors influence the bioimpedance–glycemia correlation, we investigated a complementary model that concatenates to the sensor vector the five clinical-profile features of
Section 3.1: age, BMI, sex, diabetes type and the
has-profile flag. Data was collected from 98 patients from Azambuja Hospital in Brusque (Brazil) using the eGluco3 device, which was developed by the research group at Santa Catarina State University. This experiment, like the input-encoding comparison (Direct Injection vs. Rate-Coding), operates on the
98-patient cohort with one-hot identification. The strategy expands the input vector from
to
dimensions and adds 640 trainable parameters. The importance of each feature was quantified by architecture-agnostic Permutation Feature Importance: each feature is shuffled individually in the validation set and the MAE degradation is measured against the baseline, with 10 repetitions per feature for statistical stability. Although the clinical profile improves accuracy, one-hot encoding remains a critical operational restriction: the model only recognizes patients present in the training set, precluding deployment on commercial devices with new users.
3.7. Patient Fingerprint Calibration
The clinical-profile and one-hot model assumes that the device recognizes the user—a critical limitation for embedded deployment, since new patients require retraining. To overcome this, we investigated a dynamic calibration mechanism called the
Patient Fingerprint: a vector
computed as the arithmetic mean of the patient’s first
K sensor vectors in the training window,
where
denotes the 96 bioimpedance channels of the
j-th chronologically ordered measurement. The vector
is concatenated to every temporal step of the sliding window, expanding the input from
to
dimensions. Unlike one-hot, the fingerprint does not require the patient to be present in training—only
K initial measurements are needed to personalize it.
Fingerprint evaluation—which consolidates the proposed final solution—adopts a stricter temporal filter than the previous experiments, requiring from each patient a continuous series long enough to compute the calibration vector under the walk-forward protocol (≥80% of measurements in 2024). This reduces the cohort to
29 patients (
336 measurements) with dense temporal history. For a fair comparison, the reference one-hot model is retrained on this same 29-patient cohort, not on the 98-patient cohort used in the input-encoding study. Under this stricter filter, the
has-profile flag becomes constant (zero variance, since all 29 patients hold a valid profile) and is dropped, while sex is evaluated and
excluded for exhibiting negative permutation importance on this subset. Three active clinical features therefore remain—age, BMI and diabetes type—so the base windows hold
channels. In this protocol, walk-forward quantifies temporal robustness on known patients (present in both training and validation of each fold), whereas generalization to unseen individuals is assessed separately in the cross-cohort transfer (
Section 3.8). The effect of
K was studied by ablation (
) in two variants: (a) windows holding the 99 base channels (
) and (b) windows restricted to the 96 sensor channels (
), removing the dependence on clinical records and simulating a purely sensor-based device. A complementary temporal analysis quantified the mean interval
between the first and
K-th measurement per patient, assessing the calibration latency in a realistic clinical scenario.