A non-contact, non-invasive and non-destructive sugar monitoring, early warning and intervention method
By establishing a blood sugar dehydration model and a dynamic prediction model, combined with exercise data, the problem of dehydration interference caused by exercise is solved, the accuracy of blood sugar management under complex conditions is achieved, and the quality of life of diabetic patients is improved.
Patent Information
- Application Number
- CN202411105502.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-13
AI Technical Summary
Dehydration caused by exercise has a significant impact on blood sugar level measurement results. It is difficult to effectively eliminate dehydration interference factors with existing technology, leading to deviations in blood sugar measurement results.
By collecting and analyzing blood glucose spectrum data, physiological parameters and exercise data of diabetic patients, we can establish a blood glucose dehydration model and a dynamic prediction model, predict the degree of dehydration based on exercise data, adjust blood glucose test results, and generate a personalized sugar intake plan.
Under the complex conditions of dehydration and exercise changes, accurately manage the blood sugar levels of diabetic patients, improve the accuracy of blood sugar monitoring and management, reduce the risk of complications, and improve the quality of life of patients.
Smart Images

Figure CN118645264B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a non-contact, non-invasive and non-destructive sugar monitoring, early warning and intervention method. Background Art
[0002] In the process of using Raman scattering spectroscopy for non-invasive blood glucose testing, there is a key technical problem: the dehydration caused by exercise may have a significant impact on the accurate measurement of blood glucose levels. After exercise, the physiological state of the human body changes, the fluid balance is broken, and the blood concentration increases, while Raman scattering spectroscopy is extremely sensitive to sample concentration. Directly using conventional models to predict blood glucose concentration from Raman spectroscopy data in a dehydrated state may result in a large deviation from the actual blood glucose value. In order to overcome this technical obstacle, it is necessary to conduct in-depth research on the dehydration state, but in practical applications, the degree of dehydration is difficult to measure directly. Exercise is one of the main factors that cause human dehydration. The key here is how to organically integrate the exercise-dehydration prediction model with the Raman spectroscopy blood glucose measurement model to eliminate the influence of dehydration as an interfering factor. Traditional data-driven modeling methods may find it difficult to fully consider complex physiological processes. When new Raman spectroscopy data is input, the patient's dehydration state is judged by the exercise-dehydration model, and the corresponding blood glucose model is selected for concentration prediction, thereby obtaining the blood glucose level after dehydration correction. How to balance the complexity of the blood glucose model and the accuracy of the exercise-dehydration model still requires further theoretical analysis and experimental verification. Summary of the invention
[0003] The present invention provides a non-contact, non-invasive and non-destructive sugar monitoring and early warning intervention method, which mainly includes:
[0004] Collect the spectral data of the target diabetic patients' personal blood glucose level in the historical stage, identify and remove the noise and background signal interference in the spectral data through data preprocessing, and obtain the Raman spectral characteristic peaks of the personal blood glucose level through regression analysis algorithm;
[0005] A blood sugar level prediction model is established based on the obtained Raman spectral characteristic peaks and the actual blood sugar level data of the target diabetic patients in the historical stage;
[0006] By collecting and analyzing the physiological parameters of the target diabetic patients in the historical stage, including plasma osmotic pressure and blood volume, the analyzed physiological parameters are associated with the actual blood sugar level data to establish a blood sugar dehydration model, which is used to describe the relationship between blood sugar and dehydration status;
[0007] After the target diabetic patient exercises, the target diabetic patient's exercise data, including exercise mode and exercise intensity, is obtained, and the target diabetic patient's exercise data is processed and analyzed to obtain the type, frequency and duration of the target diabetic patient's exercise. Through the relationship between the body's water loss and exercise intensity, a dynamic prediction model is established to estimate the patient's dehydration degree in different time periods after exercise;
[0008] Combining the blood glucose dehydration model and the degree of dehydration predicted by exercise data, the target diabetic patients are divided into high dehydration and low dehydration based on whether the degree of dehydration after exercise affects blood glucose detection. The exercise data includes characteristic data such as exercise type, exercise frequency and duration factors;
[0009] For patients with severe dehydration, the blood sugar detected by the blood sugar level prediction model will be corrected according to the degree of dehydration and the blood sugar dehydration model, and then combined with the normal blood sugar level to generate a sugar intake plan. For patients with mild dehydration, the blood sugar detected by the current blood sugar level prediction model will be compared with the normal blood sugar level to generate a sugar intake plan.
[0010] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:
[0011] The present invention discloses a non-contact, non-invasive, and non-destructive sugar monitoring, early warning, and intervention method that accurately predicts and manages the blood sugar levels of diabetic patients under complex conditions of dehydration and exercise changes. By comprehensively considering the dehydration status and exercise factors, the present invention can more accurately manage the blood sugar levels of diabetic patients, especially in ever-changing daily activities. This method not only improves the accuracy of blood sugar monitoring and management, but also helps patients better understand and control their own health conditions. Overall, the present invention provides a more intelligent and personalized blood sugar management solution for diabetic patients, which helps reduce the risk of complications caused by improper management and improves the quality of life of patients. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 The present invention is a flow chart of a non-contact, non-invasive and non-destructive sugar monitoring, early warning and intervention method.
[0013] Figure 2 It is a schematic diagram of a non-contact, non-invasive and non-destructive sugar monitoring, early warning and intervention method of the present invention.
[0014] Figure 3 It is another schematic diagram of a non-contact, non-invasive and non-destructive sugar monitoring, early warning and intervention method of the present invention. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0016] like Figure 1-3 In this embodiment, a non-contact, non-invasive, and non-destructive sugar monitoring, early warning, and intervention method may specifically include:
[0017] S101. Collect spectral data on the individual blood glucose level of the target diabetic patient in the historical stage, identify and remove noise and background signal interference in the spectral data through data preprocessing, and obtain Raman spectral characteristic peaks related to the individual blood glucose level through regression analysis algorithm.
[0018] The spectral data of the target diabetic patient's personal blood glucose level in the historical stage are collected to obtain the first Raman spectrum information; the first Raman spectrum information is preprocessed to identify and remove the noise and background signal interference in the Raman spectrum information to obtain the second Raman spectrum data; based on the second Raman spectrum data, a regression analysis algorithm is used to establish a mathematical model between the personal blood glucose level and the Raman spectrum characteristic peak, and the corresponding relationship between the Raman spectrum characteristic peak and the blood glucose level is determined; if the accuracy of the established mathematical model does not reach the preset accuracy, the mathematical model is optimized until the preset accuracy requirement is met.
[0019] Specifically, according to the historical stage of the target diabetic patients, the spectral data of individual blood glucose levels are collected to obtain the initial Raman spectral information. The initial spectral data are analyzed and evaluated to determine whether the data quality meets the requirements of subsequent processing. If the data quality is poor, it is necessary to re-collect or clean the data. Through data preprocessing technology, filtering algorithms such as wavelet transform and signal enhancement methods such as curve fitting are used to identify the noise and background signal interference in the spectral data, remove the interference signal, and obtain pure Raman spectral data. Based on the pure Raman spectral data, regression analysis algorithms such as partial least squares regression are used to establish a mathematical model between individual blood glucose levels and Raman spectral characteristic peaks. The accuracy of the model is evaluated by cross-validation and other methods to determine the corresponding relationship between Raman spectral characteristic peaks and blood glucose levels. If the accuracy of the established mathematical model is not high enough, the generalization ability of the model is improved by increasing the number of training samples and optimizing the model hyperparameters, such as regularization coefficient, learning rate, etc., and the optimal parameter combination is found by grid search and other methods until the accuracy requirements are met. According to the established mathematical model, the current Raman spectrum data of the target diabetic patient is obtained, and the real-time blood sugar level of the individual is determined through the forward propagation calculation of the model. The blood sugar level is compared with the preset normal range to achieve real-time monitoring of the blood sugar change trend. If the blood sugar level of the target diabetic patient is detected to be beyond the normal range, the early warning mechanism is triggered, and the target diabetic patient is reminded to pay attention to blood sugar control in real time through text messages, application push, etc., and specific diet, exercise, medication and other suggestions are given to guide the patient to take corresponding measures. Through big data analysis technology, such as association rule mining and time series analysis, the historical blood sugar level data of the target diabetic patient is mined, combined with the patient's diet, exercise, medication and other information, the individual blood sugar change pattern is obtained, the key factors affecting blood sugar are identified, and the analysis results are intuitively presented through data visualization technology, providing data support for subsequent blood sugar management, and providing personalized diet control, exercise plan, drug adjustment and other diabetes management plans to achieve accurate blood sugar control. In the process of Raman scattering spectrum data acquisition, the QEPro high-sensitivity fiber spectrometer of OceanOptics was used, with a laser wavelength of 785nm, a power of 100mW, a spectral resolution of 0.8cm-1, a scanning range of 200-3000cm-1, and an acquisition time of 10s. The scan was repeated 3 times and the average value was taken to obtain the initial Raman spectrum data. The data quality was evaluated by calculating the signal-to-noise ratio (SNR) and peak-to-mean-square error (RMSE) of the spectral data. When the SNR was lower than 50 or the RMSE was greater than 0.1, the data quality was considered to be poor and re-collection or data cleaning was required. In the data preprocessing stage, the Daubechies4 wavelet was used to perform a 5-level decomposition of the spectral data to remove high-frequency noise, and then the Savitzky-Golay smoothing algorithm was used to smooth the spectral curve. The window size was 5 and the polynomial order was 3, which effectively eliminated the background signal interference.The partial least squares regression (PLSR) algorithm was used to establish a blood glucose level prediction model for the preprocessed Raman spectral data. The model performance was evaluated using 10-fold cross validation. When the coefficient of determination (R2) was greater than 0.9 and the root mean square error (RMSE) was less than 10 mg / dL, the model accuracy was considered to meet the requirements. If the model accuracy was not enough, 100 samples were randomly selected from the historical database to increase the training set, and the grid search method was used to optimize the number of principal components (1-20) and the number of factors (1-10) of the PLSR model, with 20 iterations each time until the optimal parameter combination was found. During real-time blood glucose monitoring, the patient's Raman spectral data was collected every 5 minutes and input into the prediction model for forward calculation to obtain the predicted value of blood glucose level. When the predicted value exceeded the normal range, the normal range was fasting blood glucose 3.9-6.1mmol / L, and blood glucose <7.8mmol / L 2 hours after a meal, an early warning message was immediately pushed through the mobile phone APP, giving specific diet, such as eating less high-sugar food, drinking more water, exercise, such as brisk walking for 30 minutes, medication, such as appropriately increasing insulin, and other suggestions. The patient's historical blood sugar data for the past three months was mined for association rules with a confidence level of 80% and a support level of 5%. It was found that excessive carbohydrate intake in the diet was the main factor leading to elevated blood sugar. At the same time, time series analysis was used to predict the blood sugar trend in the next week (ARIMA model, p=2, d=1, q=2). Based on the prediction results, a personalized carbohydrate intake control plan was formulated and presented to the patient through visual methods such as pie charts and line graphs to guide them to eat scientifically and achieve precise control of blood sugar.
[0020] S102. Establish a blood sugar level prediction model based on the obtained Raman spectrum characteristic peaks and the actual blood sugar level data of the target diabetic patients in the historical stage.
[0021] Calculate the Pearson correlation coefficient between the Raman spectrum characteristic peak and the actual blood glucose level, screen out the characteristic peak with a high correlation with the blood glucose level, and use it as an input variable for establishing a blood glucose level prediction model; establish a blood glucose level prediction model with the screened Raman spectrum characteristic peak as an independent variable and the actual blood glucose level as a dependent variable; and evaluate the prediction performance of the blood glucose level prediction model.
[0022] Specifically, based on pure Raman spectral data, the Pearson correlation coefficient between the Raman spectral characteristic peak and the actual blood glucose level is calculated through correlation analysis. The calculation formula of the Pearson correlation coefficient is: r=(Σ(X-X_mean)(Y-Y_mean)) / (sqrt(Σ(X-X_mean)^2)*sqrt(Σ(Y-Y_mean)^2)), where X and Y represent the Raman spectral characteristic peak and the actual blood glucose level, respectively, and X_mean and Y_mean represent their means. The absolute value of the correlation coefficient greater than 0.5 is usually considered to be significantly correlated. The characteristic peaks with a high correlation with the blood glucose level are screened out as the input variables for modeling. The multivariate linear regression algorithm is used to establish a blood glucose level prediction model with the screened Raman spectral characteristic peaks as independent variables and the actual blood glucose level as the dependent variable. The model parameters are estimated by the least squares method to obtain the regression equation. Using the 10-fold cross-validation method, the data set is randomly shuffled and then divided into a training set and a test set in a ratio of 9:1. The training set is divided into 10 parts on average, and 9 parts are selected as training subsets each time, and the remaining 1 part is used as a validation subset. The model is trained on the training subset, and the model performance is evaluated on the validation subset. This is repeated 10 times, and the average value is taken as the performance indicator of the model. In order to reduce the randomness of data division, the 10-fold cross-validation can be repeated multiple times, such as 10 times, and the average value of the performance indicators is taken. The root mean square error (RMSE) and determination coefficient (R²) of the model on the test set are calculated to evaluate the predictive performance of the model. If the prediction performance of the model is not ideal, a regularization method such as ridge regression or Lasso regression is used to introduce a regularization term to control the complexity of the model. For ridge regression, the value range of the regularization parameter α can be set to [0.01, 0.1, 1, 10, 100], and for Lasso regression, the value range of the regularization parameter λ can be set to [0.001, 0.01, 0.1, 1, 10]. The grid search method is used to train the model and cross-validate for each value of α or λ, and select the parameter value with the best average performance to improve the generalization ability of the model and reduce the risk of overfitting. The latest Raman spectral data of the target diabetic patient is obtained, and the characteristic peaks with a high correlation with the blood sugar level are extracted and input into the trained blood sugar level prediction model. Through forward propagation calculation, the current blood sugar level prediction value of the patient is obtained to achieve real-time blood sugar monitoring.According to medical guidelines, the fasting blood sugar level of a normal person should be between 3.9-6.1mmol / L, and the blood sugar level 2 hours after a meal should be lower than 7.8mmol / L. For diabetic patients, the safety threshold can be appropriately relaxed or tightened according to the severity of their condition, such as fasting blood sugar controlled at 4.4-7.0mmol / L, and blood sugar level 2 hours after a meal controlled at below 10.0mmol / L. Doctors can formulate personalized blood sugar control goals based on the patient's age, course of disease, complications and other factors, and set them as the safety threshold of the early warning system, comparing the predicted blood sugar level with the safety threshold set by the doctor; if the predicted value exceeds the safety range, the early warning mechanism is automatically triggered, and a blood sugar report is sent to the patient through a mobile phone APP or smart bracelet and other devices. Abnormal prompts, and personalized management suggestions such as diet, exercise, and medication are pushed at the same time. A knowledge base is established to collect management experience and medical guidelines in diet, exercise, and medication, such as the glycemic index of food, exercise intensity and duration, and the usage and dosage of commonly used hypoglycemic drugs; according to the patient's predicted blood sugar level, rule reasoning or machine learning algorithms are used to match management suggestions suitable for the patient's situation from the knowledge base, and the patient's personal preferences and living habits are considered to make personalized adjustments to the management suggestions, such as recommending low-glycemic index foods that patients like, exercise methods suitable for their physical conditions, etc. Patients' feedback is collected regularly to evaluate the effectiveness of management suggestions, and the knowledge base and recommendation algorithms are optimized accordingly to help patients adjust their lifestyles in a timely manner to avoid further deterioration of blood sugar. In the data preprocessing stage, the Z-score standardization method is used to normalize the blood sugar level data, converting the data into a standard normal distribution with a mean of 0 and a standard deviation of 1 to remove the dimension effect. Then, using methods such as box plots, outliers outside the normal range are identified, such as data points below Q1-1.5IQR or above Q3+1.5IQR, where Q1 and Q3 represent the first and third quartiles, respectively, and IQR represents the interquartile range. Outliers are replaced with medians or deleted. For missing values, if the missing ratio is less than 5%, samples containing missing values can be directly deleted, otherwise consider using mean, median, KNN and other methods for interpolation. In the correlation analysis, the Pearson correlation coefficient matrix between the Raman spectral characteristic peaks and the actual blood glucose level is calculated, and the characteristic peaks with an absolute value greater than 0.5 are taken as significant correlation features. For example, by calculation, it is found that the correlation coefficients between the 3rd, 7th, and 15th Raman spectral characteristic peaks and blood glucose levels are 0.62, -0.58, and 0.71, respectively, and these three characteristic peaks are selected as model inputs. In the modeling process, a multivariate linear regression model was used, Y=β0+β1X1+β2X2+...+βpXp+ε, where Y represents the blood glucose level, X1, X2,..., Xp represent the p screened Raman spectral characteristic peaks, β0, β1,..., βp are regression coefficients, and ε is the random error term.The least squares method was used to estimate the value of the regression coefficient by minimizing the residual sum of squares, and the regression equation of the blood glucose level prediction model was obtained. In the 10-fold cross validation, 80% of the data was used as the training set and 20% of the data was used as the test set. The cross validation was repeated 10 times on the training set, and each time it was randomly divided into 10 equal parts. 9 of them were selected as the training subsets and the remaining 1 was used as the validation subset. The model was fitted on the training subset, and the RMSE and R² were calculated on the validation subset. The average of the 10 results was taken as the performance index of the model. For example, after 10-fold cross validation, the average RMSE of the model on the validation set was 1.2mmol / L, and the average R² was 0.85, indicating that the prediction performance of the model was good. In regularized optimization, taking ridge regression as an example, the objective function of the model becomes min(∑(yi-ŷi)^2+α∑βj^2), where α is the regularization parameter, which controls the weight of the regularization term ∑βj^2. The larger the value of α, the simpler the model tends to be and the stronger the generalization ability. yi represents the true output value of the i-th sample. βj represents the influence of the j-th feature on the prediction result. α is the regularization parameter, which is a non-negative number used to control the importance of the regularization term ∑βj^2. This term penalizes the sum of squares of the model parameters. The purpose is to reduce the absolute value of the parameters and avoid overfitting. ∑(yi-ŷi)^2 is the square loss function (or residual sum of squares), which measures the difference between the model prediction value and the true value. The goal is to minimize this difference. ∑βj^2 is the L2 regularization term, which penalizes the size of the model parameters and encourages the model parameters to be as close to zero as possible, but not forced to be zero, which helps to reduce the complexity of the model and improve the generalization performance of the model. Through grid search, among the candidate values of α [0.01, 0.1, 1, 10, 100], the model is fitted and cross-validated respectively, and the α value with the smallest average RMSE is selected as the optimal parameter. Finally, it is determined that when α=10, the model performance is optimal. The patient's latest Raman spectral data is input into the trained blood glucose prediction model to obtain the predicted value of his blood glucose level. The predicted value of a patient is 9.8mmol / L, which exceeds the fasting blood glucose safety threshold of 4.4-7.0mmol / L set by the doctor. This immediately triggers an abnormal blood glucose warning, and according to the relevant rules in the knowledge base, the patient is recommended to eat less high-sugar foods, drink more water, and do moderate aerobic exercise such as brisk walking for 30 minutes. At the same time, the patient should increase the insulin dosage appropriately according to the doctor's advice to help the patient control blood sugar within a safe range as soon as possible.
[0023] S103. By collecting and analyzing the physiological parameters of the target diabetic patients in the historical stages, including plasma osmotic pressure and blood volume, the analyzed physiological parameters are associated with the actual blood sugar level data to establish a blood sugar dehydration model, which is used to describe the relationship between blood sugar and dehydration status.
[0024] The collected physiological parameter data are preprocessed to remove noise data including abnormal values, duplicate values, and missing values to form a standardized physiological parameter data set; feature engineering is performed on the standardized physiological parameter data set to identify physiological parameter features with a high correlation with blood glucose levels, including plasma osmotic pressure and blood volume, and a physiological parameter feature vector is constructed; the correlation between the physiological parameter feature vector and the actual blood glucose level data is calculated, the significance level of the correlation is determined, and a subset of physiological parameter features significantly correlated with blood glucose levels is screened out; a blood glucose dehydration prediction model is established based on the screened physiological parameter feature subset, the blood glucose dehydration prediction model parameters are fitted through the training set data, and the prediction performance of the blood glucose dehydration prediction model is evaluated using the test set, and the blood glucose dehydration prediction model is optimized based on the evaluation results to improve the prediction accuracy of the blood glucose dehydration state.
[0025] Specifically, after authorization by the target diabetic patients, the physiological parameter data of the target diabetic patients in the historical stage, including the patient's plasma osmotic pressure, blood volume and other indicator data, are collected through multiple channels such as electronic medical record systems and wearable devices to build a physiological parameter database. The collected physiological parameter data are preprocessed, and noise data such as outliers, duplicate values, and missing values are removed through data cleaning and data integration methods to improve data quality and form a standardized physiological parameter data set to ensure the accuracy and reliability of subsequent analysis. Using data mining technology, feature engineering is performed on the standardized physiological parameter data set. Through feature selection methods such as filtering, wrapping, embedding, etc., as well as feature extraction methods such as principal component analysis (PCA) and linear discriminant analysis (LDA), physiological parameter characteristics with a high correlation with blood sugar levels, such as plasma osmotic pressure and blood volume, are identified, and physiological parameter feature vectors are constructed to lay the foundation for subsequent correlation analysis and modeling. Biostatistical methods, such as Pearson correlation coefficient and Spearman rank correlation coefficient, are used to calculate the correlation between physiological parameter feature vectors and actual blood glucose level data. The significance level of the correlation is determined by hypothesis tests, such as t-test, F-test, chi-square test, etc., and 0.05 or 0.01 is usually taken as the threshold to screen out the subset of physiological parameter features that are significantly correlated with blood glucose levels, providing key features for the establishment of a blood glucose dehydration model. Based on the screened subset of physiological parameter features, machine learning algorithms, such as support vector machines (suitable for small samples and nonlinear problems) and random forests (capable of processing high-dimensional data and preventing overfitting), are used to establish a blood glucose dehydration prediction model. The model parameters are fitted through the training set data, and the prediction performance of the model is evaluated on the test set, such as mean square error, determination coefficient and other indicators, to continuously optimize the model and improve the prediction accuracy of blood glucose dehydration status. At the same time, other potentially applicable algorithms, such as neural networks, gradient boosting decision trees, etc., can also be tried to further improve the performance of the model. By connecting the hospital HIS system and the smart bracelet worn by the patient, the patient's plasma osmotic pressure and blood volume data are automatically collected every 30 minutes and uploaded to the cloud database. The original data was cleaned using Python's Pandas library, and outliers beyond the normal range of osmotic pressure 260-320mOsm / kg and blood volume 70-80mL / kg were removed. The missing values were mean-filled to obtain a clean data set. The SelectKBest and f_regression functions in the Scikit-learn library were used to perform ANOVA analysis on 20 physiological parameter features, and the 10 features with the largest F statistics were selected as candidate sets. The F statistic can measure the variance explanation ability of a feature. A larger F value means that the feature has a strong correlation with the target variable. The PCA algorithm was then used to reduce the dimension of the candidate set, and 3 principal components were extracted, with a cumulative variance contribution rate of more than 95%.The Pearson correlation coefficient between the principal components of physiological parameters and blood glucose levels was calculated using the stats module of the Scipy library, and a two-tailed t-test was performed. The confidence level was 99%, that is, the p value was less than 0.01, which was considered to be significant. The two principal components with the strongest correlation with blood glucose were selected as the input features of the model. Based on the selected features, the XGBoost algorithm was used to construct a blood glucose dehydration prediction model. The training and parameter adjustment were carried out using a 5-fold cross-validation method. The optimal learning rate was 0.1, the maximum tree depth was 6, and the subsampling ratio was 0.8. The AUC value on the test set reached more than 0.95. The trained blood glucose dehydration prediction model was deployed to the cloud server to receive the patient's physiological parameter data in real time. When the predicted probability of blood glucose dehydration exceeded 0.7, an early warning was automatically triggered, and the patient was pushed through the APP to prompt "Your current blood glucose is high, it is recommended to drink more water and avoid strenuous exercise", and at the same time, a warning message was sent to the attending physician. Using the DeepQ-Learning algorithm, combined with the patient's dietary records, exercise steps, medication dosage and other behavioral data, the patient's condition is simulated in a simulation environment to learn the best blood sugar control strategy, such as "walk for 30 minutes after breakfast and take 10 units of rapid-acting insulin before meals", etc., to form a personalized lifestyle intervention plan to help patients reduce the risk of blood sugar dehydration and improve their quality of life.
[0026] S104. After the target diabetic patient exercises, the exercise data of the target diabetic patient is obtained, including the exercise pattern and exercise intensity. The exercise data of the target diabetic patient is processed and analyzed to obtain the type, frequency and duration of the target diabetic patient's exercise. Through the relationship between the water loss of the human body and the exercise intensity, a dynamic prediction model is established to estimate the degree of dehydration of the patient in different time periods after exercise.
[0027] The collected exercise data is preprocessed, and the noise and outliers in the data are removed by time series analysis method, and the time series characteristics of the exercise mode and intensity are extracted; the preprocessed time series characteristics are analyzed, and the type of exercise of the target diabetic patient is determined by pattern recognition algorithm, including walking, jogging, sprinting, and cycling; the frequency characteristics of the exercise intensity time series are calculated by frequency domain analysis method, and the exercise frequency and duration of the target diabetic patient are obtained; a dynamic prediction model between human body water loss and exercise intensity is established, and a nonlinear function between exercise intensity, exercise duration, ambient temperature, humidity factors and human body water loss is fitted; the type, frequency, and duration information of the target diabetic patient's exercise is substituted into the nonlinear function, the water loss rate during exercise is calculated, and the cumulative water loss in different time periods after the end of exercise is estimated in combination with personal weight and age physiological parameters.
[0028] Specifically, through wearable devices such as smart bracelets, after authorization and consent from the target diabetic patients, the target diabetic patients' exercise data is collected in real time, including exercise modes, such as walking, running, cycling, and exercise intensity, such as heart rate, cadence, and speed. At the same time, personal physiological parameters, such as weight, age, and gender, are collected by filling in personal information when users register, or connecting with the medical system to obtain electronic medical records, and the collected data is uploaded to the cloud server. The collected exercise data is preprocessed, and the noise and outliers in the data are removed through time series analysis methods, such as moving average and exponential smoothing, to extract the time series characteristics of exercise mode and intensity. According to the characteristics of exercise intensity, frequency, duration, etc., a series of judgment rules are formulated. For example, if the heart rate is 120-140 times / minute, the cadence is 130-150 steps / minute, and the duration is between 20-30 minutes, it is judged as jogging. These rules are combined into a decision tree to classify the newly collected exercise data and judge the type of exercise of the target diabetic patients. Using the time domain analysis method, the number of data points in the window is counted by the moving window method to obtain the exercise frequency. For example, if the window size is 10 seconds and there are 50 data points in the window, the frequency is 50 times / 10 seconds = 5Hz, and the exercise frequency and duration of the target diabetic patients are calculated. Based on the knowledge of exercise physiology, a multivariate nonlinear regression model is established, such as y=ax1^b+cx2^d+ex3^f+g, where y is the amount of water loss, x1 is the exercise intensity, x2 is the exercise duration, x3 is the ambient temperature, and a, b, c, d, e, f, and g are the parameters to be fitted. Through the least squares method and other optimization algorithms, the optimal parameter combination is found to minimize the prediction error of the model on the training set, and the relationship between factors such as exercise intensity, exercise duration, ambient temperature, humidity and the amount of water loss in the human body is fitted. a is the coefficient of the y-intercept term, b, d, and f are the exponents of x1, x2, and x3, respectively, indicating that the relationship between these three independent variables and the dependent variable y is nonlinear, that is, the relationship between water loss and exercise intensity, duration, and ambient temperature is not a simple linear relationship, but changes in an exponential form. c, e, and g are the coefficients in front of x1^b, x2^d, and x3^f, respectively, which control the slope or amplitude of each nonlinear relationship. Substitute the type, frequency, and duration of exercise of the target diabetic into the water loss, and combine the physiological parameters such as personal weight and age to calculate the water loss rate during exercise, and estimate the cumulative water loss in different time periods after the end of exercise. Using time series prediction algorithms, such as ARIMA and LSTM, a dynamic prediction model is established. Taking the end of exercise as the starting point, the dehydration degree of the target diabetic in different time periods such as 1 hour, 2 hours, and 4 hours in the future is predicted.With reference to medical guidelines and literature recommendations, different dehydration safety thresholds are set for different groups of people. For example, adult men can be set to 2% of body weight, and the elderly and children can be appropriately reduced to 1.5% and 1%. When the predicted dehydration level exceeds the safety threshold, a warning message is immediately pushed through the mobile phone APP to remind the target diabetic patients to replenish the lost water in time. Combined with factors such as personal sweat volume, urine color, and thirst level, the water replenishment plan is dynamically adjusted. For example, people with a large amount of sweat can appropriately increase the frequency and amount of water replenishment, and people with yellow urine can supplement electrolyte-rich sports drinks, etc. Specific water replenishment suggestions are given, such as replenishing 200ml of water every 30 minutes, etc. At the same time, the warning information is sent to medical staff for timely intervention and guidance. In addition, according to the target diabetic's exercise and dehydration history data, machine learning algorithms such as decision trees and random forests can be used to analyze personal exercise habits, physiological characteristics, and dehydration patterns, and build a personalized dynamic prediction model to predict the dehydration risk level in the future and give preventive drinking and exercise adjustment suggestions in advance. The target diabetic patients wear Huawei Band 6, which automatically collects heart rate, steps and other sports data and GPS location information every 5 seconds, and uploads them to the mobile phone APP in real time via Bluetooth. At the same time, users fill in personal information in the APP, including gender, age, height, weight, etc., and the data is encrypted and transmitted to the cloud server. The heart rate data is smoothed using the Kalman filter algorithm to remove high-frequency noise caused by arm shaking, etc., and then segmented into 10-second windows to extract 10 features in each window, including average heart rate, maximum heart rate, minimum heart rate and heart rate variability. According to the 100 rules defined by the expert knowledge base, the decision tree C4.5 algorithm is used to classify the features. When the classification results of three consecutive windows are consistent, it is determined to be a sports mode, such as slow walking, fast walking, jogging, fast running, etc. The step data is accumulated, the step frequency per minute is calculated, and the dominant frequency of the step frequency is obtained through FFT transformation. If the dominant frequency is 120-140 steps / minute, it is determined to be jogging. The start and end time of each exercise mode was matched with the GPS trajectory, and the parameters such as exercise distance, speed and duration were calculated. The historical exercise records and urine specific gravity data of 1,000 diabetic patients were selected, and the functional relationship between the amount of water loss and exercise intensity (metabolic equivalent MET), exercise duration, ambient temperature and humidity was fitted by multivariate nonlinear regression, and the regression model was obtained: y=0.02x1^1.5+0.3x2+0.05x3^2-0.01x4+0.8. The current user's exercise intensity (MET=4.5), exercise duration of 45 minutes, ambient temperature of 28 degrees Celsius, and humidity of 60% were substituted into the regression model, and the average water loss rate during exercise was calculated to be 25ml / minute, and the cumulative water loss was 1125ml.The dynamic prediction model is constructed using LSTM neural network. The input features include the average water loss rate, heart rate, urine specific gravity, etc. in the past hour. The output dehydration levels in the next 1 hour, 2 hours, and 4 hours are mild, moderate, and severe, respectively. When the user's dehydration level is above moderate for 30 consecutive minutes, equivalent to 1.5% of body weight, and the urine specific gravity reaches 1.02 or above, the user is prompted through the APP pop-up window "You have reached moderate dehydration. It is recommended to drink 500ml of water or sports drinks immediately and rest for 10 minutes", and a warning text message is sent to the attending physician. In addition, the user's water intake, sweating, urine status and other data can be analyzed every day through the decision tree algorithm. If it is found that the water intake for 3 consecutive days is less than 2000ml and the urine specific gravity is higher than 1.015, a personalized suggestion "You have recently had a low water intake and are prone to dehydration. It is recommended to drink 500ml of water in the morning and evening every day, and supplement 200ml of salt-containing drinks every half an hour during exercise" is generated and pushed to the user.
[0029] S105. Combining the blood glucose dehydration model and the degree of dehydration predicted by the exercise data, the target diabetic patients are divided into high dehydration and low dehydration based on whether the degree of dehydration of the target diabetic patients after exercise affects the blood glucose detection; the exercise data includes characteristic data including the type of exercise, exercise frequency and duration factors.
[0030] Combine the target diabetic patient's exercise data and blood glucose dehydration model, including the characteristic data of exercise type, exercise frequency and duration, to predict the target diabetic patient's dehydration degree after exercise; based on the blood glucose dehydration model, analyze the influence of the dehydration degree on blood glucose detection, and establish a quantitative relationship between the dehydration degree and the blood glucose detection deviation; calculate the actual blood glucose value of the target diabetic patient after exercise according to the predicted dehydration degree and the blood glucose detection deviation; set a threshold for the dehydration degree, compare the predicted dehydration degree with the threshold, and if the dehydration degree is greater than or equal to the threshold, it is determined to be high dehydration, otherwise it is determined to be low dehydration; divide the target diabetic patients into a high dehydration risk group and a low dehydration risk group; according to the target diabetic patient's exercise habits and physiological characteristics, summarize the common characteristics of the high dehydration risk group to form a high dehydration risk profile, and for the people who meet the high dehydration risk profile, trigger a dehydration warning after exercise to prompt them to replenish water; and for the low-risk people who do not meet the high dehydration risk profile, reduce the warning frequency to avoid excessive intervention.
[0031] Specifically, according to the established blood glucose dehydration model, combined with the target diabetic patient's exercise data, including the type of exercise, exercise frequency and duration and other characteristic data, the target diabetic patient's dehydration degree after exercise is predicted through machine learning algorithms, such as support vector machine and decision tree. Among them, the support vector machine classifies samples with different dehydration degrees by constructing the optimal classification hyperplane, and the decision tree recursively selects the optimal features to generate a series of IF-THEN rules to predict new samples. In the process of training the blood glucose dehydration model, grid search and other methods are used to optimize the hyperparameters of the blood glucose dehydration model to improve the prediction accuracy. At the same time, a certain amount of diabetic patient's exercise and blood glucose data is collected to analyze the correlation between the degree of dehydration and the blood glucose detection deviation. Nonlinear regression algorithms, such as polynomial regression, kernel function regression, etc., or deep learning-based methods, such as multi-layer perceptron, long short-term memory network, etc., can be used to find a more accurate relationship between the degree of dehydration and the blood glucose detection deviation. According to the WHO definition of moderate dehydration as a weight loss of 5% to 10% and severe dehydration as a weight loss of more than 10%, and in consultation with medical experts, the dehydration threshold was set at 5%. The predicted dehydration level was compared with the threshold. If the dehydration level was greater than or equal to 5%, it was determined to be a high dehydration risk group, otherwise it was determined to be a low dehydration risk group. Association rule mining algorithms, such as Apriori and FP-growth, were used to mine the frequently occurring feature combinations of exercise intensity, sweat volume, BMI, etc. from the historical data of the high dehydration risk population to form a high dehydration risk portrait rule library. For the new target diabetic patients, their features were matched with the rule library, and the matching degree was calculated. If it exceeded a certain threshold, it was classified as a high dehydration risk group. According to the dehydration risk grouping results, the high dehydration risk group used the corrected actual blood glucose value and gave a water replenishment reminder. It was recommended to replenish 500 ml of water every 30 minutes until the dehydration level dropped below 3%. For the low dehydration risk group, by setting different warning trigger conditions, such as dehydration exceeding 3% for three consecutive times, or exceeding 4% for a single time, the warning frequency can be adjusted dynamically to avoid excessive intervention. Using natural language processing technology, the content of users' posts on social media, patient forums and other platforms can be analyzed to extract symptom descriptions related to dehydration, and further enrich and optimize the risk profile. Based on the supporting diabetes exercise management app, it can also provide personalized exercise plan formulation, exercise volume tracking, drinking water reminders and other functions, and push dehydration risk assessment results and hydration suggestions to users in real time. Using reinforcement learning algorithms, such as Q-learning and SARSA, the warning strategy and recommended content of the App can be dynamically optimized according to user feedback to improve user stickiness and satisfaction. It can also be connected with the hospital's electronic medical record system to share the user's dehydration risk assessment results and exercise status and other information with medical staff, realizing an integrated online and offline diabetes exercise management closed loop, helping doctors better understand the patient's daily situation, and providing data support for diagnosis and treatment decisions.A diabetic patient A wears a smart bracelet to run. The bracelet collects heart rate data at a frequency of 1 time per second, and steps and speed data at a frequency of 1 time per minute, for a duration of 1 hour. The collected heart rate, steps, speed and other data are input into the pre-trained relationship between dehydration degree and blood glucose detection deviation. This relationship can be a model established by the support vector machine algorithm. The model uses the RBF kernel function. After 5-fold cross-validation, the accuracy of the model on the training set is 95%, and the accuracy on the test set is 93%. The predicted dehydration degree of A is 6%. At the same time, 100 sets of data pairs of dehydration degree and blood glucose deviation are extracted from A's exercise blood glucose records in the past month. Polynomial regression fitting is used to obtain the quadratic function y=0.8x^2+0.5x+0.2, where x is the dehydration degree, y is the blood glucose detection deviation, and the determination coefficient R^2=0.85. After substituting A's dehydration degree of 6%, the blood glucose detection deviation is obtained to be 3.8mmol / L. Since A's dehydration level exceeded the threshold of 5%, he was classified into the high dehydration risk group. After analyzing A's exercise and physiological characteristics, it was found that his exercise intensity was 10MET, sweat volume was 1500ml / h, and BMI index was 22, which matched the rule "exercise intensity>8MET, sweat volume>1200ml / h, BMI index>20" in the high dehydration risk rule library with a 95% match, further confirming the result of the high risk determination. A water replenishment reminder was pushed to A, and it was recommended to replenish 500ml of water every 30 minutes until the dehydration level dropped below 3%. At the same time, based on A's body temperature of 38.5℃, ambient temperature of 32℃, and humidity of 60%, the decision tree algorithm was used to predict that the dehydration risk was high risk, which was consistent with the previous prediction results, enhancing the credibility of the warning. In addition, by analyzing A's posts on the "Diabetes Circle" APP, it was found that he mentioned "thirst, dizziness, fatigue" and other words many times, which were highly correlated with dehydration symptoms, providing strong support for risk determination. A's exercise plan, blood sugar records, dehydration warning and other information are synchronized to the hospital's electronic medical record system for the attending physician's reference and analysis.
[0032] S106. For patients with severe dehydration, the blood sugar detected by the blood sugar level prediction model is corrected according to the degree of dehydration and the blood sugar dehydration model, and then a sugar intake plan is generated in combination with the normal blood sugar level; for patients with mild dehydration, the blood sugar detected by the current blood sugar level prediction model is compared with the normal blood sugar level to generate a sugar intake plan.
[0033] According to the established blood glucose dehydration model, based on the dehydration degree data of highly dehydrated patients, and according to the quantitative relationship between the dehydration degree and the blood glucose detection deviation, a mapping function between the blood glucose deviation and the dehydration degree is obtained; the actual dehydration degree of the highly dehydrated patient is input into the mapping function, and the corresponding blood glucose correction value is calculated, and then the original blood glucose value detected by the blood glucose level prediction model is corrected with the correction value to obtain the corrected blood glucose level; a diabetic diet therapy knowledge base is constructed, and the diabetic diet therapy knowledge base includes the glycemic index, calories, and nutritional information of food, as well as recommended recipes under different blood glucose levels; according to the corrected blood glucose level of the highly dehydrated patient, the corresponding food combination and intake are matched from the diabetic diet therapy knowledge base, and a personalized sugar intake plan is generated in combination with the patient's age, weight, and daily activity personal information; for the low dehydration patient, the blood glucose value detected by the blood glucose level prediction model is compared with the normal blood glucose level to generate a corresponding sugar intake plan.
[0034] Specifically, according to the established blood glucose dehydration model, the dehydration degree data of highly dehydrated patients are obtained. Through machine learning algorithms such as polynomial regression, generalized additive model (GAM), XGBoost, etc., a nonlinear relationship model between dehydration degree and blood glucose deviation is established, and the mapping function between blood glucose correction value and dehydration degree is obtained. At the same time, medical literature mining, expert knowledge encoding and other methods are used to extract food nutrients, glycemic index (GI value), recommended recipes and other information from authoritative medical databases and guidelines. Using ontology construction tools such as Protege and WebProtege, this information is organized into a structured knowledge graph of diabetes diet treatment. The unstructured texts such as patients' diet diaries and consultation records are processed, and word segmentation tools such as Jieba and THULAC are used to segment the texts, extract key information such as food name, eating time, and eating amount, and use text classification, sentiment analysis and other methods to judge the patient's preference for a certain food as a supplementary input for personalized recommendation. The actual degree of dehydration of highly dehydrated patients is input into the mapping function to calculate the corresponding blood glucose correction value, and then the original blood glucose value obtained by the blood glucose level prediction model is added to the correction value to obtain the corrected blood glucose level. According to the corrected blood glucose level of highly dehydrated patients, label-based recommendation algorithms such as TF-IDF and Word2Vec are used to calculate and match the similarity with the food attributes in the knowledge graph to obtain a suitable food combination. In addition, collaborative filtering algorithms such as user-based collaborative filtering and item-based collaborative filtering are introduced to make recommendations using successful recipes of other similar patients, and to generate personalized sugar intake plans based on the patient's age, weight, daily activity and other personal information. For low-dehydration patients, the blood glucose value obtained by the blood glucose level prediction model is directly compared with the normal blood glucose level (fasting blood glucose 3.9~6.1mmol / L, two-hour postprandial blood glucose <7.8mmol / L). If it is lower than the normal range, sugar-rich foods are recommended from the knowledge graph. If it is higher than the normal range, low GI foods are recommended, and the corresponding sugar intake plan is generated through the recommendation algorithm. In the process of generating sugar intake plans, reinforcement learning algorithms are integrated, such as deep reinforcement learning algorithms such as DQN and DDPG. The Q-value function is approximated by neural networks. According to the patient's feedback scores on historical recommended plans, the recommendation strategy is continuously optimized to improve the acceptability and effectiveness of the plan. Natural language generation technology, such as template filling and semantic representation, is used to automatically generate natural language text that is easy to understand and execute based on the recommendation results, and push it to patients in real time through mobile apps, smart watches and other terminals. At the same time, a dialogue system is introduced to allow patients to interact with the system through text or voice, ask questions and provide feedback, and achieve more intelligent and humane services.The generated sugar intake plan is uploaded to the hospital's electronic medical record system for doctors to review and refer to. The plan is dynamically adjusted and optimized according to the patient's actual diet record and blood glucose monitoring results to form a closed-loop management. Throughout the process, attention is paid to data security and privacy protection, and sensitive information such as patients' blood glucose data and diet records are desensitized to ensure the security of data during collection, transmission, storage and use. At the same time, relevant laws, regulations and ethical standards such as GDPR and HIPAA are followed, and personal data is collected and used after obtaining the patient's informed consent. The dehydration degree and blood glucose deviation data of 100 highly dehydrated diabetic patients were extracted from the hospital's HIS system. The dehydration degree was estimated by urine specific gravity, and the blood glucose deviation was calculated by the difference between the blood glucose meter measurement value and the laboratory test value. Polynomial regression was used to fit the nonlinear relationship between the dehydration degree and blood glucose deviation. The optimal polynomial order was determined to be 3 through 5-fold cross validation, and the fitting function y=0.5x³-2x²+3x+0.2 was obtained, where x is the dehydration degree (%), y is the blood glucose deviation (mmol / L), and the determination coefficient R²=0.85. The Web of Science database was used to retrieve 500 articles related to diabetes diet therapy, and 2000 pieces of information such as food nutrients, GI values, and recommended recipes were extracted. Protege was used to build an ontology model, which included categories such as food, nutrients, diseases, drugs, and physiological indicators, as well as relationships such as has, applies to, and causes, forming a knowledge graph containing 5000 nodes and 10,000 edges. The diet diaries and medical records of 20 patients were segmented and POS tagged, and 500 food entities, 200 diet time entities, and 150 diet quantity entities were identified. The TextCNN model was used to classify food preferences, and the F1 value reached 0.9. The dehydration degree of a highly dehydrated patient A was 4%, and the blood glucose meter measured value was 13.5mmol / L. Substituting it into the fitting function, the blood glucose correction value was 1.8mmol / L. The corrected true blood glucose value was 13.5-1.8=11.7mmol / L. According to A's blood sugar level, age (55 years old), weight (70kg) and other attributes, we matched them with the foods in the knowledge graph and obtained suitable foods such as sweet potato (GI=54) and quinoa (GI=53). At the same time, we referred to the successful recipes of other similar patients to generate a sugar intake plan for three meals a day. A's feedback score for the historical recommended recipes was 3 points (out of 5 points). The DQN algorithm was used to optimize the recommendation strategy. CNN was used to extract food image features and LSTM was used to extract recipe text features. It was predicted that A's score for the new recipe was 4.5 points, and the recommendation confidence was high.The recommendation results are converted into natural language descriptions, "It is recommended to eat 1 sweet potato or half a bowl of quinoa porridge for breakfast, and ..." for lunch, and pushed to A through his WeChat applet, and a voice assistant function is provided. A asks "How to make quinoa porridge?" The system answers through knowledge graph query, "Wash 1 / 4 cup of quinoa, add 1 cup of water, boil, then simmer for 15 minutes, add a little salt and serve." A's diet plan is uploaded to the regional health information platform, which can be accessed by his attending physician at any time, and forms a closed-loop management with blood sugar monitoring records.
[0035] The blood sugar level prediction model is used to record the detection period of blood sugar, and the dehydration degree corresponding to the detection period is determined by the dynamic prediction model. The correction data is generated in combination with the blood sugar dehydration model to correct the output of the blood sugar level prediction model.
[0036] Based on the blood glucose test records of the target diabetic patients, the timestamp information of the blood glucose level prediction model for detecting blood glucose is extracted to form a blood glucose test period sequence; the blood glucose test period sequence is subjected to noise reduction and smoothing processing to extract blood glucose test period features; the extracted blood glucose test period features are input into the dynamic prediction model to obtain the dehydration degree prediction value corresponding to each test period; according to the blood glucose dehydration model, a functional relationship between the dehydration degree and the blood glucose deviation is established, and a mapping function of the dehydration degree and the blood glucose deviation is fitted; the dehydration degree prediction value obtained by the dynamic prediction model is substituted into the mapping function to calculate the blood glucose correction value of each test period to form a blood glucose correction value time series; abnormality detection and smoothing processing are performed on the blood glucose correction value time series, and the blood glucose correction value time series is optimized; the optimized blood glucose correction value sequence is matched with the original output value of the blood glucose level prediction model, and the original blood glucose output value is corrected according to the correction value corresponding to the test period to obtain a corrected blood glucose level prediction result.
[0037] Specifically, based on the blood glucose test records of the target diabetic patients, the timestamp information of the blood glucose level prediction model for testing blood glucose is extracted, and metadata such as the testing equipment model, testing location, and testing environment temperature and humidity are obtained to form a blood glucose testing period sequence. Time series analysis algorithms such as wavelet transform and EMD are used to reduce noise and smooth the blood glucose testing period sequence, remove outliers and random fluctuations, capture multi-scale and non-stationary features in the sequence, and extract the main period characteristics of blood glucose testing. The extracted blood glucose testing period characteristics are input into the trained dynamic prediction model, and the dehydration degree prediction value corresponding to each testing period is obtained through forward propagation calculation. According to the blood glucose dehydration model, the functional relationship between the dehydration degree and the blood glucose deviation is established, and the mapping function between the dehydration degree and the blood glucose deviation is fitted by using nonlinear regression algorithms such as GAM, random forest, and XGBoost. The dehydration degree prediction value obtained by the dynamic prediction model is substituted into the blood glucose deviation mapping function, and the blood glucose correction value of each testing period is calculated to form a time series of blood glucose correction values. The time series of blood glucose correction values is subjected to anomaly detection and smoothing. Unsupervised learning algorithms such as isolation forest and LOF are used to identify abnormal points that deviate from the normal mode. Edge-preserving smoothing algorithms such as bilateral filtering and guided filtering are used to remove noise in the sequence while retaining the important change characteristics of the sequence. The state space model of blood glucose correction values is established, including the state transfer equation and the observation equation. According to the recursive formula of Kalman filtering, the estimated value and estimated error of blood glucose correction values are continuously updated to obtain a dynamically optimized blood glucose correction value sequence. The optimized blood glucose correction value sequence is matched with the original output value of the blood glucose level prediction model. Data alignment and synchronization techniques such as interpolation and downsampling are used to ensure the consistency of the correction value sequence and the original output value in the time dimension. According to the correction value corresponding to the detection period, the original blood glucose output value is corrected to obtain the corrected blood glucose level prediction result. In the whole process, it is necessary to consider the handling of abnormal situations and extreme scenarios, and design corresponding abnormal handling mechanisms and emergency plans, such as missing blood glucose test data in a certain period of time, serious deviation of the dehydration degree prediction results from the normal range, and abnormal fluctuations in blood glucose correction values, to ensure the robustness and reliability of the system. At the same time, the pathogenesis of diabetes, the effect of dehydration on blood glucose homeostasis and other fields are introduced to theoretically verify and optimize the algorithm and model of blood glucose level correction, and the necessary encryption and desensitization of blood glucose test records are performed to prevent the leakage of sensitive information. By calling the data interface of the hospital HIS system, the blood glucose test record of the patient ID 1234 is obtained, including the test timestamp accurate to seconds, the test value (mmol / L), the test equipment model is Accu-ChekActive, the test site is the finger, the ambient temperature is 25℃, and the ambient humidity is 60%, etc., forming a blood glucose test period sequence containing 1000 data points.The sequence was decomposed into five levels by wavelet transform, and Daubechies4 wavelet basis function was selected. The high-frequency subband coefficients were soft-thresholded, and the threshold was 3 times the standard deviation to remove the high-frequency noise in the sequence. Then the low-frequency subband coefficients were decomposed by EMD, and the first three intrinsic mode functions (IMFs) of the sequence were extracted to reconstruct the main time period characteristics of blood glucose detection. The extracted 50 time period features were input into a 3-layer LSTM network, with the number of hidden layer neurons being 128, 64 and 32 respectively. The output layer used the Sigmoid activation function to predict the dehydration degree value of each time period, and the average absolute error with the standard dehydration assessment result was 0.02. Based on the dehydration degree and blood glucose deviation data of 500 diabetic patients, the regression model was constructed by XGBoost algorithm, and the average mean square error of 5-fold cross validation was 0.2mmol / L. The mapping function y=0.8x^2+0.5x between the dehydration degree x and the blood glucose deviation y was obtained. The predicted dehydration degree value was input into the function to obtain 1000 blood glucose correction values. The isolation forest algorithm was used to detect anomalies in the correction value sequence. Points with an outlier ratio of more than 10% were marked as anomalies. A total of 5 anomalies were detected. Then the bilateral filtering algorithm was used to smooth the sequence. The spatial window size was 5 and the grayscale similarity standard deviation was 0.8 to filter out the violent fluctuations in the sequence. The Kalman filter model was established based on the blood glucose correction value sequence. The state variables were the blood glucose correction value and the correction speed. The observation variable was the blood glucose correction value. The initial state estimation value was the sequence mean and 0. The state transfer matrix and the observation matrix were estimated according to the first-order difference and the original value of the correction value, respectively. The process noise and observation noise covariance matrix took the unit matrix. After 20 iterations, the filtering results were output. The filtered blood glucose correction value sequence was matched with the original output value sequence of the blood glucose meter. The cubic spline interpolation algorithm was used to interpolate the blood glucose meter output sequence at intervals of 30 seconds to align it with the time axis of the correction value sequence. The final correction blood glucose level prediction result was obtained by adding point by point. If the algorithm is run on the School-A101 device and the memory usage rate exceeds 90%, the data cache and batch processing mechanism will be automatically triggered, and the computing task will be split into 10 subtasks for parallel execution to avoid system crashes. At the same time, according to medical literature, for every 1% increase in dehydration, the blood sugar level can increase by 0.5mmol / L. Based on this, the blood sugar correction threshold is dynamically calibrated to improve the system's adaptive ability. All blood sugar test records of patients can be encrypted using the RSA algorithm with a key length of 2048 bits. The encrypted data is stored with the patient ID to protect the patient's privacy.
[0038] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A non-contact, non-invasive, and non-destructive sugar monitoring, early warning, and intervention method, characterized in that: The method comprises: Collect spectral data on the personal blood glucose level of a target diabetic patient in a historical stage, identify and remove noise and background signal interference in the spectral data through data preprocessing, and obtain Raman spectrum characteristic peaks about the personal blood glucose level through a regression analysis algorithm; including: collecting spectral data on the personal blood glucose level of a target diabetic patient in a historical stage to obtain first Raman spectrum information; performing data preprocessing on the first Raman spectrum information, identifying and removing noise and background signal interference in the Raman spectrum information to obtain second Raman spectrum data; based on the second Raman spectrum data, using a regression analysis algorithm, establishing a mathematical model between the personal blood glucose level and the Raman spectrum characteristic peaks, and determining the corresponding relationship between the Raman spectrum characteristic peaks and the blood glucose level; if the accuracy of the established mathematical model does not reach a preset accuracy, optimizing the mathematical model until the preset accuracy requirement is met; A blood glucose level prediction model is established based on the obtained Raman spectrum characteristic peaks and the actual blood glucose level data of the target diabetic patients in the historical stage; including: calculating the Pearson correlation coefficient between the Raman spectrum characteristic peaks and the actual blood glucose level, screening out the characteristic peaks with high correlation with the blood glucose level as input variables for establishing the blood glucose level prediction model; establishing the blood glucose level prediction model with the screened Raman spectrum characteristic peaks as independent variables and the actual blood glucose level as dependent variable; and evaluating the prediction performance of the blood glucose level prediction model; By collecting and analyzing the physiological parameters of the target diabetic patients in the historical stage, including plasma osmotic pressure and blood volume, the analyzed physiological parameters are associated with the actual blood sugar level data to establish a blood sugar dehydration model, which is used to describe the relationship between blood sugar and dehydration status; including: preprocessing the collected physiological parameter data to remove noise data including abnormal values, duplicate values and missing values to form a standardized physiological parameter data set; performing feature engineering on the standardized physiological parameter data set to identify physiological parameter features with high correlation with blood sugar levels, including plasma osmotic pressure and blood volume, and constructing a physiological parameter feature vector; calculating the correlation between the physiological parameter feature vector and the actual blood sugar level data, determining the significance level of the correlation, and screening out a subset of physiological parameter features that are significantly correlated with blood sugar levels; establishing a blood sugar dehydration prediction model based on the screened physiological parameter feature subset, fitting the blood sugar dehydration prediction model parameters through the training set data, and using the test set to evaluate the prediction performance of the blood sugar dehydration prediction model, and optimizing the blood sugar dehydration prediction model based on the evaluation results to improve the prediction accuracy of the blood sugar dehydration status; After the target diabetic patient exercises, the exercise data of the target diabetic patient is obtained, including the exercise mode and exercise intensity, and the exercise data of the target diabetic patient is processed and analyzed to obtain the type, frequency and duration of the target diabetic patient's exercise. Through the relationship between the water loss of the human body and the exercise intensity, a dynamic prediction model is established to estimate the degree of dehydration of the patient in different time periods after the exercise; including: preprocessing the collected exercise data, removing noise and outliers in the data through a time series analysis method, and extracting the time series characteristics of the exercise mode and intensity; analyzing the preprocessed time series characteristics, and judging the type of exercise of the target diabetic patient through a pattern recognition algorithm, including walking, jogging, sprinting and cycling; using a frequency domain analysis method to calculate the frequency characteristics of the exercise intensity time series, and obtaining the exercise frequency and duration of the target diabetic patient; establishing a dynamic prediction model between the water loss of the human body and the exercise intensity, and fitting the nonlinear function between the exercise intensity, exercise duration, environmental temperature and humidity factors and the amount of water lost by the human body; substituting the type, frequency and duration information of the target diabetic patient's exercise into the nonlinear function, calculating the water loss rate during the exercise, and combining the individual's weight and age physiological parameters to estimate the cumulative amount of water lost in different time periods after the exercise; Combining the blood glucose dehydration model and the degree of dehydration predicted by exercise data, the target diabetic patients are divided into high dehydration and low dehydration based on whether the degree of dehydration after exercise affects blood glucose detection. The exercise data includes characteristic data such as exercise type, exercise frequency and duration factors; For patients with severe dehydration, the blood sugar detected by the blood sugar level prediction model will be corrected according to the degree of dehydration and the blood sugar dehydration model, and then combined with the normal blood sugar level to generate a sugar intake plan. For patients with mild dehydration, the blood sugar detected by the current blood sugar level prediction model will be compared with the normal blood sugar level to generate a sugar intake plan.
2. The method according to claim 1, wherein: The target diabetic patients are divided into high dehydration patients and low dehydration patients based on the dehydration degree predicted by the blood glucose dehydration model and the exercise data and whether the dehydration degree of the target diabetic patients after exercise affects the blood glucose test; Sports data includes characteristic data such as sports type, frequency and duration, including: Combine the target diabetic patient's exercise data and blood glucose dehydration model, including the characteristic data of exercise type, exercise frequency and duration, to predict the degree of dehydration of the target diabetic patient after exercise; Based on the blood glucose dehydration model, analyzing the effect of the dehydration degree on blood glucose detection, and establishing a quantitative relationship between the dehydration degree and the blood glucose detection deviation; According to the predicted dehydration degree and combined with the blood sugar test deviation, the actual blood sugar value of the target diabetic patient after exercise is calculated; Setting a threshold of the dehydration degree, comparing the predicted dehydration degree with the threshold, and determining that the dehydration degree is high if the dehydration degree is greater than or equal to the threshold, otherwise determining that the dehydration degree is low; Dividing the target diabetic patients into a high dehydration risk group and a low dehydration risk group; According to the exercise habits and physiological characteristics of the target diabetic patients, the common characteristics of the high dehydration risk group are summarized to form a high dehydration risk profile. For the people who meet the high dehydration risk profile, a dehydration warning is triggered after exercise to remind them to replenish water; For low-risk people who do not meet the high dehydration risk profile, the warning frequency will be reduced to avoid excessive intervention.
3. The method according to claim 1, wherein: For patients with severe dehydration, the blood sugar detected based on the blood sugar level prediction model is corrected according to the degree of dehydration and the blood sugar dehydration model, and then a sugar intake plan is generated in combination with the normal blood sugar level; For patients with low dehydration, the blood sugar detected by the current blood sugar level prediction model is compared with the normal blood sugar level to generate a sugar intake plan, including: According to the established blood glucose dehydration model, based on the dehydration degree data of highly dehydrated patients, and according to the quantitative relationship between the dehydration degree and the blood glucose detection deviation, a mapping function between the blood glucose deviation and the dehydration degree is obtained; Inputting the actual dehydration degree of the highly dehydrated patient into the mapping function, calculating the corresponding blood glucose correction value, and then correcting the original blood glucose value detected by the blood glucose level prediction model with the correction value to obtain a corrected blood glucose level; Construct a knowledge base on dietary treatment for diabetics, which includes the glycemic index, calories and nutritional information of foods, as well as recommended recipes for different blood sugar levels; According to the corrected blood sugar level of the highly dehydrated patient, the corresponding food combination and intake are matched from the diabetic diet treatment knowledge base, and combined with the patient's age, weight and daily activity personal information, a personalized sugar intake plan is generated; For the low dehydration patient, the blood sugar value detected by the blood sugar level prediction model is compared with the normal blood sugar level to generate a corresponding sugar intake plan; It also includes: recording the detection period of blood sugar detected by the blood sugar level prediction model, determining the dehydration degree corresponding to the detection period through the dynamic prediction model, and generating correction data in combination with the blood sugar dehydration model to correct the output of the blood sugar level prediction model.
4. The method according to claim 3, wherein: The recording of the detection period of blood sugar detected by the blood sugar level prediction model, determining the dehydration degree corresponding to the detection period by the dynamic prediction model, and generating correction data in combination with the blood sugar dehydration model to correct the output of the blood sugar level prediction model include: Based on the blood sugar test records of the target diabetic patient, extracting the timestamp information of the blood sugar test by the blood sugar level prediction model to form a blood sugar test time period sequence; Performing noise reduction and smoothing processing on the blood sugar detection period sequence to extract blood sugar detection period features; Inputting the extracted blood sugar detection period characteristics into a dynamic prediction model to obtain a dehydration degree prediction value corresponding to each detection period; According to the blood glucose dehydration model, a functional relationship between the dehydration degree and the blood glucose deviation is established, and a mapping function between the dehydration degree and the blood glucose deviation is fitted; Substituting the dehydration degree prediction value obtained by the dynamic prediction model into the mapping function, calculating the blood glucose correction value of each detection period, and forming a blood glucose correction value time series; Performing abnormality detection and smoothing processing on the blood glucose correction value time series, and optimizing the blood glucose correction value time series; The optimized blood glucose correction value sequence is matched with the original output value of the blood glucose level prediction model, and the original blood glucose output value is corrected according to the correction value corresponding to the detection period to obtain a corrected blood glucose level prediction result.
Citation Information
Patent Citations
Sweat indication of physiological states
CN108024764A
Noninvasive in-vivo blood glucose detection system and method based on Raman spectrum
CN116509386A
Composite Raman spectrum data analysis method and system for glucose component in blood
CN116559143A
Noninvasive in vivo measuring system and noninvasive in vivo measuring method by correcting influence of Hemoglobin
US20080228050A1
Raman spectrum preprocessing model generation method and system, and terminal and storage medium
WO2024078321A1
