An Energy-Efficient Spiking Neural Network Architecture for Predictive Insulin Delivery
Organizations: Predictive Drug Delivery System (PDDS) Project, Independent Research
Abstract
Diabetes mellitus affects over 537 million adults worldwide. Insulin-dependent patients require continuous glucose monitoring and precise dose calculation while operating under strict power budgets on wearable devices. This paper presents PDDS - an in-silico, software-complete research prototype of an event-driven computational pipeline for predictive insulin dose calculation. Motivated by neuromorphic computing principles for ultra-low-power wearable edge devices, the core contribution is a three-layer Leaky Integrate-and-Fire (LIF) Spiking Neural Network trained on 128,025 windows from OhioT1DM (66.5% real patients) and the FDA-accepted UVa/Padova physiological simulator (33.5%), achieving 85.90% validation accuracy. We present three rigorously honest evaluations: (1) a standard test-set comparison against ADA threshold rules, bidirectional LSTM (99.06% accuracy), and MLP (99.00%), where the SNN achieves 85.24% - we demonstrate this gap reflects the stochastic encoding trade-off, not architectural failure; (2) a temporal benchmark on 426 non-obvious clinician-annotated hypoglycemia windows where neither the SNN (9.2% recall) nor the ADA rule (16.7% recall) performs adequately, identifying the system's key limitation and the primary direction for future work; (3) a power-efficiency analysis showing the SNN requires 79,267x less energy per inference than the LSTM (1,551 Femtojoules vs. 122.9 nanojoules), justifying the SNN architecture for continuous wearable deployment. The system is not yet connected to physical hardware; it constitutes the computational middle layer of a five phase roadmap toward clinical validation. Keywords: spiking neural network, glucose severity classification, edge computing, hypoglycemia detection, event-driven architecture, LIF neuron, Poisson encoding, OhioT1DM, in-silico, neuromorphic, power efficiency.
Figures & tables
| Metric | ADA Rule | SNN |
| Overall accuracy | 87.63% | 85.43% |
| HIGH recall (safety) | 100.0% ∗ | 90.72% |
| HIGH precision | 95.50% | 86.65% |
| HIGH F1 | 97.70% | 88.45% |
| LOW recall | 82.72% | 88.00% |
| MEDIUM recall | 84.81% | 81.00% |
| Feature | Patient A | Patient B |
| Last glucose | 190 mg/dL | 190 mg/dL |
| time_below_70_pct | 0.00 | 0.38 (19 min hypo) |
| glucose_std_norm | 0.05 (stable) | 0.41 (volatile) |
| abs_slope | 0.3 mg/dL/min | 3.2 mg/dL/min |
| ADA rule prediction | MEDIUM | MEDIUM |
| SNN prediction | MEDIUM | HIGH |
| Layer | Type | Dim | Temporal Role | |
| Input | Poisson encoder | — | 50-min CGM window | |
| fc1 | Linear | — | Weight matrix | |
| lif1 | LIF | 128 neurons | 0.95 | Slow trend memory |
| fc2 | Linear | — | Weight matrix | |
| lif2 | LIF | 64 neurons | 0.90 | Medium integration |
| fc3 | Linear | — | Output weights |
| Source | Records | Role in PDDS |
| OhioT1DM [ 11 ] | 85,105 windows (12 T1D pts, 8 wks) | Primary training (66.5%); gold-standard with clinician hypo_event annotations |
| simglucose / UVa-Padova [ 12 ] | 42,920 windows (30 virtual pts) | Augmentation (33.5%); FDA-validated rare glucose patterns |
| Pima Indians (NIDDK) | 768 patients | Threshold calibration; real patient glucose distributions |
| DrugBank / openFDA | Drug interaction DB | Dose safety cross-reference |
| MIMIC-IV [ 17 ] | 50,000+ ICU admissions | Pending—severity label clinical validation |
| F | Name | Clinical Meaning |
| 1 | last_glucose_norm | Most recent CGM reading (current state) |
| 2 | mean_glucose_norm | 50-min mean (sustained vs. transient) |
| 3 | min_glucose_norm | Window minimum (catches hypo dips) |
| 4 | max_glucose_norm | Window maximum (catches hyper peaks) |
| 5 | abs_slope_norm | Rate-of-change magnitude |
| 6 | signed_slope_norm | Signed slope (rising vs. falling) |
| Mode | Response to HIGH | Emergency |
| DIABETIC | Compute dose via DoseCalculator; instruct ArtificialPancreas to inject. | Block injection; fire URGENT alert. |
| PREDIABETIC | Route severity to NotificationEngine: NUDGE / ALERT / URGENT behavioural message. No injection ever. | Fire URGENT alert (no injection to block). |
| Metric | Value |
| Training data | 128,025 windows (OhioT1DM + simglucose) |
| Training time | 7,589 s ( 2.1 h, CPU-only) |
| Epochs | 59 (early stopping, patience 15) |
| Best val accuracy | 85.90% (epoch 44, ) |
| Test accuracy | 85.43% |
| HIGH recall | 90.72% [primary safety metric] |
| Class | Prec. | Rec. | F1 | Supp. |
| LOW (0) | 0.8585 | 0.9299 | 0.8928 | 2,297 |
| MEDIUM (1) | 0.8415 | 0.7338 | 0.7839 | 2,047 |
| HIGH (2) | 0.8629 | 0.9072 | 0.8845 | 1,380 |
| Macro avg | 0.8543 | 0.8570 | 0.8537 | 5,724 |
| Metric | Exp. 1 | Exp. 2 | |
| Features | 2 (volt., slope) | 10 (Gold layer) | +8 |
| Architecture | 2-layer, 16h | 3-layer, 128-64-3 | Deeper |
| Optimizer | Adam | RMaxProp | SNN-tailored |
| Val acc | 57.9% | 85.90% | +28.0 pp |
| HIGH recall | N/A | 90.72% | — |
| Verdict | FAILED | SUCCESS | — |
| # | Scenario | Result |
| 1 | Threshold exceeded (happy path) | PASS |
| 2 | All readings below threshold (no wake) | PASS |
| 3 | Re-trigger prevention (epsilon guard) | PASS |
| 4 | Second spike after recovery | PASS |
| 5 | Steady gradual incline | PASS |
| 6 | Rapid spike + 5.0 U safety cap | PASS |
| Metric | ADA Rule | SNN | Interpretation |
| HIGH recall | 16.7% | 9.2% | Both fail on temporal edges |
| HIGH precision | 100% | 100% | When predict HIGH, correct |
| Correct / 426 | 71 | 39 | ADA slightly better |
| Neither classifier meets clinical safety bar. | |||
| Metric | SNN | Bi-LSTM | MLP |
| Accuracy | 85.24% | 99.06% | 99.00% |
| HIGH recall | 88.84% | 99.78% | 99.49% |
| HIGH F1 | 87.23% | 99.24% | 98.92% |
| Parameters | 9,859 | 138,627 | 9,859 |
| Training (CPU) | 7,589 s | 299 s | 145 s |
| Inference (CPU) | 1,094 ms | 61 ms | 6 ms |
Spiking Neural Networks
Spiking neural networks process information through discrete, time-dependent neural events, aiming for efficient computation and biologically inspired learning.
See all 351 papers