# Prediction and accuracy improvement of insulin pump in-fusion deviation based on LSTM and PID

**Authors:** Leijie Wang, Xudong Guo, Qiuyue Peng, Hongmei Zhang, Yuan Yang, Hongyan Wang, Yongxin Wang, Haofang Liang, Wuyi Ming, Zhen Zhang

PMC · DOI: 10.1371/journal.pone.0324261 · PLOS One · 2025-06-04

## TL;DR

This paper improves the accuracy of an insulin pump by optimizing its structure and using LSTM and PID algorithms to reduce infusion deviations.

## Contribution

A novel combination of BP-PID control and LSTM prediction is used to enhance insulin pump accuracy.

## Key findings

- The minimum effective single infusion dose was reduced by 50.52% to 0.047 U.
- LSTM prediction reduced mean infusion deviation for large doses by 12.05%.
- The mean deviation decreased by 12.85% after 24h low basal rate injection.

## Abstract

In order to further improve the injection precision of the PH300 insulin pump, this paper optimizes and improves the mechanical structure and control algorithm of the PH300. The improved PH300 uses a proportional-integral-derivative controller based on back propagation neural network (BP-PID) algorithm to control operation, and the experimental results show that the minimum effective single infusion dose of the improved PH300 is 0.047 U, which is reduced by 50.52%. The deviation reduction of low-dose infusion (0.1U-0.9U) ranged from 1.47% to 10.87%, with a mean of 4.91%. The mean deviation of the improved PH300 decreases by 12.85% after a 24h low basal rate (0.5U/h) injection. In addition, Long Short-Term Memory (LSTM) was used to predict the deviation during injection, and the predicted values were uniformly compensated for in subsequent injection experiments. The LSTM model performed best with a training set of 85%, a test set of 15%, an epoch of 300, a batch number of 256, and 32 hidden layer neurons. After compensation, the mean infusion deviation for large doses was reduced by 12.05%, and the maximum deviation by 14.12%.

## Full-text entities

- **Genes:** INS (insulin) [NCBI Gene 3630] {aka IDDM, IDDM1, IDDM2, ILPR, IRDN, MODY10}, MTA2 (metastasis associated 1 family member 2) [NCBI Gene 9219] {aka MTA1L1, PID}
- **Diseases:** Diabetes (MESH:D003920), hyperglycemia (MESH:D006943), metabolic disorder (MESH:D008659), stroke (MESH:D020521), BLDCM (MESH:D051556), deficiencies in insulin secretion (MESH:D007333), hypoglycemia (MESH:D007003), diabetic complications (MESH:D048909), LSTM (MESH:D000088562), T1D (MESH:D003922)
- **Chemicals:** sugars (MESH:D000073893), blood glucose (MESH:D001786), lithium (MESH:D008094), water (MESH:D014867), K (MESH:D011188), MCU (-), glucose (MESH:D005947), BP (MESH:C038809)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12136315/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12136315/full.md

## References

59 references — full list in the complete paper: https://tomesphere.com/paper/PMC12136315/full.md

---
Source: https://tomesphere.com/paper/PMC12136315