A microwave non-invasive blood glucose prediction method and system based on error decomposition
The Hybrid CGM system, which integrates multi-head self-attention mechanism and Bayesian optimization algorithm, solves the problems of temporal modeling and hyperparameter optimization in microwave non-invasive blood glucose prediction, achieving high-precision blood glucose prediction and reducing system error and cost.
Patent Information
- Application Number
- CN202611403385.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-27
AI Technical Summary
Existing microwave non-invasive blood glucose prediction technologies suffer from insufficient time-series modeling capabilities, limited key feature extraction capabilities, and low hyperparameter optimization efficiency, resulting in low blood glucose prediction accuracy.
A microwave-based non-invasive blood glucose prediction method based on error decomposition is adopted. A hybrid CGM system is constructed by integrating multi-head self-attention mechanism and Bayesian optimization algorithm. Blood glucose prediction is performed by combining microwave non-invasive sensing signals and CGM reference data through time alignment and deep learning model.
It improves the accuracy of blood glucose prediction and the generalization ability of the model, reduces the impact of systematic errors and time delays, reduces reliance on CGM devices, and lowers the cost of use and the number of intrusions.
Smart Images

Figure CN123166643A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of structural engineering technology in building engineering, and more specifically, to a microwave non-invasive blood glucose prediction method and system based on error decomposition. Background Technology
[0002] Continuous glucose monitoring (CGM) has significant applications in diabetes management and health monitoring. Traditional CGM devices typically use invasive or minimally invasive methods to measure glucose concentration in subcutaneous tissue fluid. Although they can achieve continuous monitoring, they still have problems such as discomfort from wearing them, limited sensor lifespan, and high long-term operating costs.
[0003] Microwave non-invasive blood glucose monitoring technology utilizes the differences in microwave response caused by changes in the dielectric properties of human tissue with varying blood glucose concentrations to achieve non-invasive blood glucose detection, offering advantages such as non-invasiveness, comfort, portability, and ease of continuous monitoring. However, due to the complex structure of human tissues, microwave signals are susceptible to factors such as temperature, systematic errors, and random noise, leading to problems such as random fluctuations, systematic errors, and time delays in microwave measurement signals, thus limiting the accuracy of blood glucose prediction. Furthermore, blood glucose changes exhibit significant dynamic temporal characteristics, making it difficult for traditional recurrent neural network models to fully capture long-term dependencies and the impact of key time segments on future blood glucose trends. Therefore, there is an urgent need to establish a high-precision blood glucose prediction model suitable for hybrid continuous glucose monitoring (Hybrid CGM) systems to improve the ability to predict future blood glucose trends. Summary of the Invention
[0004] This invention addresses the problems of insufficient temporal modeling ability, limited key feature extraction ability, and low hyperparameter optimization efficiency in existing microwave non-invasive blood glucose prediction methods. It proposes a microwave non-invasive blood glucose prediction method and system based on error decomposition, which integrates multi-head self-attention mechanism and Bayesian optimization algorithm.
[0005] This invention constructs a Hybrid CGM system, integrating microwave non-invasive sensing signals and CGM reference data to build a calibrated combined blood glucose time series. Furthermore, it combines a multi-head self-attention mechanism and a bidirectional long short-term memory network to predict the dynamic changes in blood glucose over time, and uses a Bayesian optimization algorithm to automatically optimize key model parameters, thereby improving the accuracy of blood glucose prediction and the model's generalization ability.
[0006] The present invention adopts the following technical solution:
[0007] A microwave-based non-invasive blood glucose prediction method based on error decomposition includes the following steps:
[0008] (1) Acquiring combined continuous blood glucose monitoring data based on microwave non-invasive blood glucose sensing system and CGM device;
[0009] (2) Preprocess, time-series aligned and blood glucose calibrated the original microwave frequency shift signal and CGM reference data to construct combined blood glucose time series data;
[0010] (3) The processed blood glucose time series data are reconstructed using a sliding window to form supervised learning input and output samples;
[0011] (4) Construct a blood glucose prediction model that integrates multi-head self-attention mechanism and bidirectional long short-term memory network;
[0012] (5) The model hyperparameters are optimized using the Bayesian optimization algorithm to obtain the optimal prediction model;
[0013] (6) Output the blood glucose prediction results for the future time range.
[0014] The blood glucose calibration in steps (1) and (2) above is a calibration process that requires the participation of CGM equipment. After calibration, only microwave frequency shift signals need to be collected in the actual blood glucose prediction process, and CGM equipment is not required.
[0015] Furthermore, the specific implementation method of step (1) is as follows:
[0016] A microwave non-invasive blood glucose sensing system was used to continuously monitor blood glucose levels in volunteers, while a CGM device was used to acquire reference blood glucose data. During the experiment, the microwave system acquired frequency shift signals every 30 seconds, and the CGM device recorded reference blood glucose values every 5 minutes. Finally, a combined continuous blood glucose dataset incorporating microwave frequency shift features and CGM reference blood glucose values was constructed.
[0017] The microwave frequency shift feature is obtained as follows: For the S21 response obtained from each frequency sweep measurement, the resonant frequencies fSM(t) and fSM(t) corresponding to the antisymmetric mode ASM and the symmetric mode SM are extracted respectively. The frequency shift feature Δf(t) is constructed using the relative frequency difference between the two resonant frequencies, Δf(t) = fSM(t) - fASM(t), which serves as the microwave feature quantity for subsequent blood glucose calibration and prediction. Using dual-frequency differential features can suppress the system drift shared by the two resonant frequencies and improve the identifiability of weak blood glucose-related frequency shifts.
[0018] Furthermore, in step (2), the blood glucose calibration employs an error decomposition and calibration model, which is an iterative Gaussian process calibration model constructed for system drift in microwave blood glucose measurement signals, including:
[0019] The original microwave frequency shift signal is represented as:
[0020] in, The original microwave frequency shift signal, CGM reference blood glucose concentration It is a blood glucose-related function. Let be the system drift function. It is random noise;
[0021] Gaussian process models in the concentration dimension and time dimension were established respectively, and the blood glucose response function was estimated sequentially using an alternating iterative approach. and system drift function Continue until the residual converges or the preset number of iterations is reached;
[0022] The original frequency shift signal is compensated based on the obtained system drift term to obtain the calibrated microwave frequency shift signal: ;
[0023] The calibrated microwave frequency shift signal CGM reference blood glucose concentration at the same time point Forming sample pairs For the original microwave frequency shift signal, a mapping relationship is established using least squares linear regression:
[0024] Where b is the intercept of the regression model, and k is the regression coefficient. The CGM reference blood glucose concentration is obtained by minimizing the squared error between the predicted blood glucose value and the CGM reference blood glucose value.
[0025] This invention also discloses a microwave non-invasive blood glucose prediction method based on a pre-calibrated model, comprising the following steps:
[0026] S1. Acquire the microwave frequency shift signal of the object under test to obtain the microwave frequency shift signal sequence;
[0027] S2. Using a pre-calibrated error decomposition and calibration model, the microwave frequency shift signal sequence is processed to obtain a blood glucose time series. The error decomposition and calibration model represents the microwave frequency shift signal as the sum of blood glucose response components, system drift components, and random noise components. The microwave frequency shift signal is compensated according to a pre-estimated system drift function. The compensated microwave frequency shift signal is then converted into blood glucose concentration through linear regression. The regression coefficients and intercepts of the linear regression are pre-calibrated.
[0028] S3. Reconstruct the blood glucose time series using a sliding window, and obtain the input sample according to the input window length N;
[0029] S4. Input the input sample into the pre-trained blood glucose prediction model and output the blood glucose prediction results for the next M time steps. The blood glucose prediction model includes a bidirectional long short-term memory network and a multi-head self-attention mechanism.
[0030] The input data for steps S1 to S4 is only the microwave frequency shift signal.
[0031] This invention also discloses a microwave non-invasive blood glucose prediction system based on error decomposition, comprising:
[0032] The data acquisition module is used to acquire combined continuous glucose monitoring data based on the microwave non-invasive blood glucose sensing system and CGM device;
[0033] The data processing module is used to preprocess, time-series align, and calibrate blood glucose levels on the raw microwave frequency shift signal and CGM reference data to construct combined blood glucose time series data.
[0034] The sample construction module is used to reconstruct the processed blood glucose time series data using a sliding window to form supervised learning input and output samples.
[0035] The prediction model module is used to build a blood glucose prediction model that integrates multi-head self-attention mechanism and bidirectional long short-term memory network;
[0036] The hyperparameter optimization module is used to optimize the model hyperparameters using the Bayesian optimization algorithm to obtain the optimal prediction model;
[0037] The prediction output module is used to output blood glucose prediction results for a future time range.
[0038] Beneficial effects
[0039] This invention constructs a Hybrid CGM system based on the fusion of microwave non-invasive sensing and CGM reference information, realizing combined continuous blood glucose monitoring;
[0040] This invention effectively reduces the impact of systematic errors and time delays in microwave blood glucose measurement through timing alignment and error calibration methods.
[0041] This invention introduces a multi-head self-attention mechanism, which can dynamically focus on important features in different time segments and improve the model's ability to model complex blood glucose change trends.
[0042] This invention employs a Bayesian optimization algorithm to automatically search for model hyperparameters, thereby improving model training efficiency and prediction accuracy.
[0043] This invention enables the prediction of future blood glucose trends, providing technical support for diabetes early warning and continuous health monitoring;
[0044] The microwave sensing method used in this invention has a faster response speed than CGM equipment, which can compensate for the physiological lag caused by CGM in measuring the glucose concentration of subcutaneous tissue fluid.
[0045] This invention only requires the acquisition of microwave frequency shift signals during the blood glucose prediction process after calibration, without the need for CGM equipment, which can reduce the number of CGM calibrations, lower usage costs, and reduce the number of intrusions. Attached Figure Description
[0046] Figure 1 This is a flowchart of a blood glucose prediction method based on the BO-MHSA-BiLSTM model according to an embodiment of the present invention.
[0047] Figure 2 This is a schematic diagram of the sliding window reconstruction process and the division of the training set and test set in one embodiment of the present invention.
[0048] Figure 3 This is a comparison chart of actual and predicted blood glucose values in one embodiment of the present invention, wherein... Figure 3 (a) to Figure 3 (d) Corresponds to the prediction durations T of 5 min, 15 min, 30 min and 60 min respectively. Detailed Implementation
[0049] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0050] As shown in the figure, one embodiment of this invention discloses a microwave non-invasive blood glucose prediction method and system based on error decomposition (BO-MHSA-BiLSTM). This method integrates a multi-head self-attention mechanism and a Bayesian optimization algorithm. By constructing a HybridCGM system, it achieves the fusion of microwave non-invasive blood glucose signals and CGM reference blood glucose data. Furthermore, by combining time-series calibration and deep learning prediction methods, it enables the prediction of future blood glucose trend changes. This invention mainly includes the following steps:
[0051] (1) Obtain combined continuous glucose monitoring data;
[0052] (2) Preprocess the raw data, perform time-series alignment, and calibrate blood glucose levels;
[0053] (3) Construct a sliding window time series sample;
[0054] (4) Establish a blood glucose prediction model that integrates multi-head self-attention mechanism and bidirectional long short-term memory network;
[0055] (5) The model hyperparameters are optimized using the Bayesian optimization algorithm;
[0056] (6) Output blood glucose prediction results and evaluate performance.
[0057] Step 1: Combined Continuous Glucose Data Acquisition. A microwave non-invasive glucose sensing system was used to continuously monitor the blood glucose levels of volunteers, and reference blood glucose data was simultaneously acquired using a CGM device, thus constructing a Hybrid CGM system.
[0058] During the experiment, the microwave sensor was fixed to the human hand with a strap and connected to the LibreVNA portable platform for data acquisition. The LibreVNA operating frequency band was set to 2.2 GHz to 2.6 GHz, the number of sampling points was set to 10001, and the input power was set to −30 dBm to obtain the microwave frequency shift characteristics of human tissue.
[0059] During the experiment, the microwave system acquired frequency shift data every 30 seconds, and the CGM device recorded the reference blood glucose value every 5 minutes. Volunteers completed the pre-meal and post-meal blood glucose change experiments under normal dietary conditions, with each experiment lasting no less than 120 minutes.
[0060] Approximately 1,000 sets of combined continuous blood glucose time series data were obtained. The first 70% of the continuous data were divided into the training set and the remaining 30% into the test set according to the time sequence.
[0061] Step 2: Data preprocessing and blood glucose calibration. First, outlier detection and filtering are performed on the raw microwave frequency shift data to reduce the impact of random noise.
[0062] The 3σ criterion is used to detect and remove outlier data; then, the moving average filtering method is used to smooth the frequency shift signal, thereby reducing high-frequency random fluctuations.
[0063] In one embodiment of the present invention, the input window length N of the sliding window is set to 60, and the prediction length M is set to 30. The sampling interval of the combined blood glucose time series after time alignment and resampling is 30 seconds. Therefore, each input window contains blood glucose data from the past 30 minutes and is used to predict the blood glucose change trend in the next 15 minutes.
[0064] To eliminate the time delay between the microwave frequency-shifted signal and the CGM reference blood glucose, Pearson correlation analysis was used to align the two sets of data. By calculating the correlation coefficient at different time offsets τ, the time offset with the highest correlation was selected as the optimal time delay compensation value, thus achieving synchronization between the frequency-shifted signal and the blood glucose data.
[0065] After completing the time alignment, the frequency shift feature is input into the error decomposition and calibration model to establish the mapping relationship between microwave frequency shift and blood glucose concentration, and the calibrated combined blood glucose time series data is obtained. The specific process is as described in Equations 2 to 4 above.
[0066] The data was then normalized using the min-max normalization method, scaling it to the range [0,1]. The expression for this is as follows:
[0067]
[0068] in, These are the normalized data values. The original data values, and These represent the maximum and minimum values in the data, respectively. A sliding window is constructed to transform the data into a form suitable for supervised learning. The direct policy method is applied to transform the time series data, and the sliding window method is used to reconstruct the time series data. By setting the input window length N and the prediction length M, the time series data is reconstructed into the feature matrix X and target vector Y required for supervised learning.
[0069]
[0070]
[0071] Its mapping relationship can be expressed as:
[0072]
[0073] in, This represents the nonlinear mapping function fitted by the BO-MHSA-BiLSTM model. This represents the system noise term. By setting a fixed-length input window, continuous historical data is used as the model input, while corresponding future time-step data is used as the prediction target, thus constructing the input matrix X and output vector Y required for supervised learning. With an input step size of 60 and an output step size of 30, data is recorded every 5 minutes in combined continuous blood glucose monitoring. Based on the blood glucose data from the first 30 minutes, the model can predict the blood glucose level for the next 15 minutes. Figure 2 This demonstrates that the sliding window method successfully transforms the raw data into input-output pairs for supervised learning, enabling the model to accurately predict future blood glucose levels based on historical data.
[0074] Step 3: A Bidirectional Long Short-Term Memory (BiLSTM) network is used as the base prediction model to extract bidirectional temporal features from the blood glucose time series. BiLSTM consists of a forward LSTM and a backward LSTM, enabling it to simultaneously learn historical and future dependencies in the blood glucose change process, thereby enhancing the model's ability to express dynamic blood glucose changes. To further enhance the model's ability to extract key temporal features, a Multi-Head Self-Attention (MHSA) mechanism is introduced after the BiLSTM output layer. MHSA dynamically weights the importance of different time steps by calculating the correlation between the query, key, and value, thereby enhancing the model's ability to focus on key dynamic features such as rapid postprandial blood glucose rise and post-exercise blood glucose decline.
[0075] Its expression is as follows:
[0076]
[0077] head i W represents the output of the i-th attention head. O H is the linear projection matrix, and H is the feature matrix input to the multi-head self-attention mechanism. The hyperparameters of the BiLSTM network are set as follows: learning rate search range is set to [0.0001, 0.1], batch size range is [32, 256], number of hidden layer units range is [50, 200], Dropout ratio is 3, and number of attention heads search range is [2, 8]. Furthermore, the hyperparameters β1 and β2 in the Adam optimizer are set to search ranges of [0.9, 0.99] and [0.99, 0.9999], respectively.
[0078] Step 4: During training, to improve model prediction accuracy and training efficiency, Bayesian Optimization (BO) is used to automatically search for key hyperparameters of the model. Bayesian Optimization establishes a surrogate model of the objective function through a Gaussian process and uses the Expected Improvement (EI) function to select the next set of parameters to be searched, thereby quickly approximating the global optimum with a limited number of iterations. In this embodiment, the final optimal parameter combination is as follows: Optimizer: Adam; Hidden layer dimension: 84; Number of BiLSTM layers: 2; Number of attention heads: 4; Batch size: 64; Learning rate: 0.000228; Number of training epochs: 100.
[0079] Step 5: Train the BO-MHSA-BiLSTM model using the training set and validate its predictive performance using the test set. Specifically, this includes: 1) training the BO-MHSA-BiLSTM model using the training set; 2) using the trained BO-MHSA-BiLSTM model to predict blood glucose values on the test set. The 70% training data is further divided into training and validation subsets. During Bayesian optimization, the RMSE of the validation subset is used as the objective function for hyperparameter search. The remaining 30% test data is not used for model training or hyperparameter optimization; it is only used for the final performance evaluation of the optimal model. Figure 3 The results show the blood glucose prediction results for different output step sizes when the input duration ∆t is 30 minutes. The prediction results show that when the prediction duration is 5 minutes, the predicted value curve almost overlaps with the actual blood glucose value curve, showing excellent prediction performance; when the prediction duration is 15 minutes, although the prediction curve fluctuates slightly, it can still predict blood glucose changes well; however, when the prediction duration is greater than 30 minutes, the difference between the predicted value curve and the actual blood glucose value curve is large, the model error increases, and it can only predict a general trend; 3) The root mean square error (RMSE), mean absolute error (MAE), and coefficient of determination (R²) of the predicted and actual blood glucose values of the test set samples are calculated as evaluation indicators for the model:
[0080]
[0081]
[0082]
[0083] In the formula, and The actual value and the predicted value of the i-th data point are respectively. , where is the mean of the original data, and is the sample size. This is used to measure the model's predictive performance on non-invasive blood glucose data. To further quantitatively analyze the predictive performance of each model, root mean square error (RMSE), mean absolute error (MAE), and coefficient of determination (R²) were selected as evaluation indicators. The results are shown in the table below. Analysis shows that compared to traditional models, BO-MHSA-BiLSTM achieved significant improvements in all indicators. In terms of RMSE, it reduced by 42.50%, 59.16%, and 50.86% compared to RNN, LSTM, and Gated Recurrent Unit (GRU) models, respectively; in terms of MAE, it reduced by 32.58%, 50.77%, and 40.56%, respectively; and in terms of R², it improved by 4.70%, 12.45%, and 7.48%, respectively. The performance improvement compared to the LSTM model was the most significant. The final experimental results are shown in the table below:
[0084]
[0085] The BO-MHSA-BiLSTM model proposed in this invention has an RMSE of 0.174 mmol / L, an MAE of 0.149 mmol / L, and an R² of 0.978 on the test set, which is significantly better than traditional RNN, LSTM, and GRU models.
[0086] Step 6: Actual Blood Glucose Prediction After Calibration. After completing the above calibration and model training, in actual use, only the microwave frequency shift signal of the test subject needs to be collected: First, the collected microwave frequency shift signal is compensated according to the pre-estimated system drift function, and then converted into a blood glucose time series using the pre-calibrated linear regression coefficients k and intercept b; subsequently, the blood glucose time series is reconstructed using a sliding window, and the resulting input sample is input into the trained BO-MHSA-BiLSTM model to output the blood glucose prediction results for the next M time steps. The input data for this prediction process is only the microwave frequency shift signal, and no CGM device is required.
[0087] This embodiment also provides a microwave non-invasive blood glucose prediction system based on error decomposition, including a data acquisition module, a data processing module, a sample construction module, a prediction model module, a hyperparameter optimization module, and a prediction output module, which are respectively used to perform the corresponding processing in steps one through five above. The specific implementation methods of each module are described in the above method embodiment and will not be repeated here.
[0088] The above description is merely a preferred embodiment of the present invention; however, the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and its improved concepts, should be covered within the scope of protection of the present invention.
Claims
1. A microwave non-invasive blood glucose prediction method based on error decomposition, characterized in that, Includes the following steps: (1) Acquiring combined continuous blood glucose monitoring data based on microwave non-invasive blood glucose sensing system and CGM device; (2) Preprocess, time-series aligned and blood glucose calibrated the original microwave frequency shift signal and CGM reference data to construct combined blood glucose time series data; (3) The processed blood glucose time series data are reconstructed using a sliding window to form supervised learning input and output samples; (4) Construct a blood glucose prediction model that integrates multi-head self-attention mechanism and bidirectional long short-term memory network; (5) The model hyperparameters are optimized using the Bayesian optimization algorithm to obtain the optimal prediction model; (6) Output the blood glucose prediction results for the future time range.
2. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, The sampling period of the microwave frequency shift signal is 30 s, and the sampling period of the CGM device reference blood glucose data is 5 min; in step (2), before time alignment, the CGM reference blood glucose sequence is resampled or interpolated with the 30 s microwave measurement time axis as a unified time reference, so that it forms a 30 s equally spaced sequence that corresponds one-to-one with the microwave frequency shift data; the acquired data is divided into training set and test set according to time order, of which the first 70% of the continuous sequences are used as training set and the remaining 30% of the continuous sequences are used as test set.
3. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, In step (1), the microwave frequency shift signal is obtained as follows: for the S21 response obtained from each frequency sweep measurement, the resonant frequencies fASM(t) and fSM(t) corresponding to the antisymmetric mode ASM and the symmetric mode SM are extracted respectively, and the frequency shift feature Δf(t) is constructed using the relative frequency difference between the two resonant frequencies. Δf(t) = fSM(t) - fASM(t).
4. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, In step (2), the preprocessing includes outlier removal, smoothing filtering, time alignment, and normalization. Specifically, the 3σ criterion is used for outlier detection and removal; the moving average filtering method is used to smooth the frequency-shifted signal; Pearson correlation analysis is used to align the microwave frequency-shifted signal with the reference blood glucose data; and the max-min normalization method is used to normalize the data, with the following expression: in, These are the normalized data values. The original data values, and These represent the maximum and minimum values in the data, respectively.
5. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, In step (2), the blood glucose calibration adopts an error decomposition and calibration model. The error decomposition and calibration model is an iterative Gaussian process calibration model constructed for system drift in microwave blood glucose measurement signals, including: The original microwave frequency shift signal is represented as: in, The original microwave frequency shift signal, CGM reference blood glucose concentration It is a blood glucose-related function. Let be the system drift function. It is random noise; Gaussian process models in the concentration dimension and time dimension were established respectively, and the blood glucose response function was estimated sequentially using an alternating iterative approach. and system drift function Continue until the residual converges or the preset number of iterations is reached; The original frequency shift signal is compensated based on the obtained system drift term to obtain the calibrated microwave frequency shift signal: ; The calibrated microwave frequency shift signal CGM reference blood glucose concentration at the same time point Forming sample pairs For the original microwave frequency shift signal, a mapping relationship is established using least squares linear regression: Where b is the intercept of the regression model, and k is the regression coefficient. The CGM reference blood glucose concentration is obtained by minimizing the squared error between the predicted blood glucose value and the CGM reference blood glucose value.
6. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, In step (3), the sliding window method is used to reconstruct the time series data, and the prediction problem is constructed into a nonlinear autoregressive mapping model using a direct multi-step prediction strategy; by setting the input window length N and the prediction length M, the time series data is reconstructed into the feature matrix X and target vector Y required for supervised learning. Its mapping relationship is expressed as: in, This represents the nonlinear mapping function fitted by the BO-MHSA-BiLSTM model. Representing the system noise term, by setting a fixed-length input window, continuous historical data is used as the model input, while the corresponding future time step data is used as the prediction target, thereby constructing the input matrix X and output vector Y required for supervised learning.
7. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 2, characterized in that, The input window length N=60 and the prediction length M=30, that is, the blood glucose level in the next 15 minutes is predicted based on the data of the past 30 minutes.
8. The microwave non-invasive blood glucose prediction method based on error decomposition according to claim 1, characterized in that, In step (4), a bidirectional long short-term memory network (BiLSTM) is used as the basic temporal feature extraction network. The temporal dependencies in the blood glucose sequence are learned simultaneously through forward LSTM and backward LSTM. A multi-head self-attention mechanism (MHSA) is introduced after the BiLSTM output layer. By calculating the correlation weights between different time steps, key time segments are dynamically weighted. The expression for the MHSA mechanism is as follows: head i W represents the output of the i-th attention head. O H is the linear projection matrix, and H is the feature matrix input to the multi-head self-attention mechanism. In step (5), the Bayesian optimization algorithm is used to automatically optimize the key hyperparameters of the model. The key hyperparameters include the number of hidden units in the BiLSTM layer, the learning rate, the Dropout ratio, the number of attention heads, and the batch size. The Bayesian optimization algorithm constructs a surrogate model through a Gaussian process and uses the expectation improvement function to search for the optimal combination of hyperparameters. The blood glucose prediction model uses RMSE, MAE, and R... 2 As an evaluation indicator: In the formula, and The actual value and the predicted value of the i-th data point are respectively. is the mean of the original data, and is the sample size.
9. A microwave non-invasive blood glucose prediction method based on a pre-calibrated model, characterized in that, Includes the following steps: S1. Acquire the microwave frequency shift signal of the object under test to obtain the microwave frequency shift signal sequence; S2. Using a pre-calibrated error decomposition and calibration model, the microwave frequency shift signal sequence is processed to obtain a blood glucose time series. The error decomposition and calibration model represents the microwave frequency shift signal as the sum of blood glucose response components, system drift components, and random noise components. The microwave frequency shift signal is compensated according to a pre-estimated system drift function. The compensated microwave frequency shift signal is then converted into blood glucose concentration through linear regression. The regression coefficients and intercepts of the linear regression are pre-calibrated. S3. Reconstruct the blood glucose time series using a sliding window, and obtain the input sample according to the input window length N; S4. Input the input sample into the pre-trained blood glucose prediction model and output the blood glucose prediction results for the next M time steps. The blood glucose prediction model includes a bidirectional long short-term memory network and a multi-head self-attention mechanism. The input data for steps S1 to S4 is only the microwave frequency shift signal.
10. A microwave non-invasive blood glucose prediction system based on error decomposition, characterized in that, include: The data acquisition module is used to acquire combined continuous glucose monitoring data based on the microwave non-invasive blood glucose sensing system and CGM device; The data processing module is used to preprocess, time-series align, and calibrate blood glucose levels on the raw microwave frequency shift signal and CGM reference data to construct combined blood glucose time series data. The sample construction module is used to reconstruct the processed blood glucose time series data using a sliding window to form supervised learning input and output samples. The prediction model module is used to build a blood glucose prediction model that integrates multi-head self-attention mechanism and bidirectional long short-term memory network; The hyperparameter optimization module is used to optimize the model hyperparameters using the Bayesian optimization algorithm to obtain the optimal prediction model; The prediction output module is used to output blood glucose prediction results for a future time range.
