The invention discloses an
insulin pump control method and
system based on blood glucose data, and relates to the technical field of
insulin infusion control, and the method comprises the steps: obtaining real-time blood glucose sequence data and historical infusion
record data, and carrying out the preprocessing; constructing an
insulin pharmacokinetic attenuation model to calculate an in-transit insulin
residual activity value; inputting the standardized blood glucose
time series data into a Bayesian neural network prediction model to generate prediction uncertainty distribution parameters; calculating a prediction confidence index according to the prediction variance and comparing the prediction confidence index with a threshold value to obtain a confidence judgment result; selecting a
dose optimization strategy or a conservative control strategy according to a confidence coefficient judgment result to calculate an
insulin infusion dose; infusion is executed, and historical records are updated; the prediction uncertainty is quantified through the Bayesian neural network, the in-transit
insulin activity is accurately modeled in combination with the pharmacokinetic model, and the control strategy is dynamically switched according to the confidence, so that the
control error amplification caused by prediction misjudgment is effectively avoided, and the delayed
hypoglycemia caused by the insulin superposition effect is prevented.