WO2022011595A1 - Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium - Google Patents
Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium Download PDFInfo
- Publication number
- WO2022011595A1 WO2022011595A1 PCT/CN2020/102102 CN2020102102W WO2022011595A1 WO 2022011595 A1 WO2022011595 A1 WO 2022011595A1 CN 2020102102 W CN2020102102 W CN 2020102102W WO 2022011595 A1 WO2022011595 A1 WO 2022011595A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- body temperature
- temperature compensation
- compensation
- updated
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/14507—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue specially adapted for measuring characteristics of body fluids other than blood
- A61B5/14517—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue specially adapted for measuring characteristics of body fluids other than blood for sweat
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/14532—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue for measuring glucose, e.g. by tissue impedance measurement
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/14546—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue for measuring analytes not otherwise provided for, e.g. ions, cytochromes
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/145—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue
- A61B5/1468—Measuring characteristics of blood in vivo, e.g. gas concentration, pH value; Measuring characteristics of body fluids or tissues, e.g. interstitial fluid, cerebral tissue using chemical or electrochemical methods, e.g. by polarographic means
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/68—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
- A61B5/6801—Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
- A61B5/6802—Sensor mounted on worn items
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01K—MEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
- G01K13/00—Thermometers specially adapted for specific purposes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Definitions
- the invention relates to the field of medical technology, and in particular, to a body temperature compensation method, a mobile terminal and a storage medium based on the second-generation wavelet.
- Wearable Electrochemical Sensor As the core component of wearable electronic devices, is the most suitable technology for continuous monitoring of the physiological state of the human body. Because sweat contains a wealth of clinically relevant biomarkers, it is one of the most suitable biological fluids for continuous monitoring. There are two main categories of major biomarkers in sweat: metabolites (eg, blood glucose and lactate) and electrolytes (eg, potassium and sodium ions).
- metabolites eg, blood glucose and lactate
- electrolytes eg, potassium and sodium ions
- the schematic diagram of the sensor structure of a typical wearable electronic device as shown in Figure 1, can detect four important human physiological parameters: blood sugar content, lactic acid content, potassium ion concentration and sodium ion concentration.
- the Ag/AgCI (silver/silver chloride) electrode is used as the common reference electrode of the blood glucose sensor anode (GoX) and the lactic acid sensor anode (Lox), and an output current proportional to the blood glucose content/lactic acid content will be generated between the electrodes; Potassium ion (K+) and sodium ion electrodes (Na+), as an ion-selected electrode (Ion-selected Electrodes, ISE), are connected to a reference electrode composed of polyvinyl butyral (PVB), which can generate more stable output voltage.
- PVB polyvinyl butyral
- Electrolyte imbalance can reflect the potential danger posed by abnormal heart rate, and electrolyte loss is also a major cause of bodily dysfunction, so monitoring key electrolyte concentrations can warn of potential heart disease.
- the real-time measurement of electrolyte concentration can remind patients, doctors, coaches or athletes of electrolyte loss or dehydration.
- abnormal metabolite levels can also affect exercise status and scientific recovery after exercise. If the blood sugar during exercise can be accurately grasped in real time and lactic acid changes, it is beneficial to restore the balance of body functions during exercise and after use. Therefore, how to detect abnormal metabolite content or electrolyte level disturbance with high performance becomes important and challenging.
- the first requirement is met by a textile-based, highly stretchable, printed voltage sensor array that can be used for multiple ionic and enzymatic sweat analysis simultaneously. Textiles are absorbent components that can provide rich elasticity, enabling close contact between the sensor and the body. Combined with graphene, which has good strength, electrical conductivity, and optical transparency, the second requirement can be better addressed.
- One of the difficulties in solving the third requirement is that the human body will have different resistance and impedance characteristics under different skin temperatures, thereby affecting the detection results of enzymes, electrolytes or ions.
- Figure 2 shows that although the blood sugar content (100uM) or the lactate content (5mM) in the sweat is fixed, the output current is very obvious due to the change of skin temperature (from 20°C to 40°C). s difference.
- a body temperature compensation model must be introduced to calibrate the data collected by the sensor.
- the effect of body temperature on the performance of potentiometric sensors is not particularly significant, it has a significant impact on the biochemical properties of enzymes (such as blood glucose or lactate), so high-performance sensors must compensate for the effect of body temperature in real time.
- the fourth requirement becomes the key to the realization of the first three requirements.
- the number of detected components is proportional to the power consumption, it is obviously unacceptable to detect too few components. If the power consumption is too large, it cannot meet the real-time and continuous detection. The accuracy of the detection results will inevitably lead to an increase in power consumption. If a simple model is used for lower power consumption, the accuracy will be affected.
- the purpose of the present invention is to provide a body temperature compensation method, mobile terminal and storage medium based on the second generation wavelet, so as to achieve real-time body temperature compensation for electronic wearable devices with high precision and low power consumption , which effectively eliminates the influence of body temperature on the performance of electronic wearable devices.
- a body temperature compensation method based on the second generation wavelet comprises the steps of:
- the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated;
- the detection result of the biomarker to be calibrated and compensated is compensated according to the compensation factor, and the body temperature compensation model outputs the detection result of the biomarker after compensation.
- the original signal is input to the body temperature compensation model, and the steps of the body temperature compensation model splitting the original signal to obtain an approximate signal and a detail signal include:
- the step of calculating the compensation factor according to the approximate signal and the detail signal includes:
- the approximate signal a[n] is updated according to the information in the detail signal d[n] to obtain the updated approximate signal a'[n]; wherein, the expression of the updated approximate signal a'[n]
- the formula represents the smoothing operation, which is defined as: Among them, U(d[n]) is the adaptive update operator, which is defined as:
- ⁇ L
- ⁇ R
- the step of calculating the compensation factor according to the approximate signal and the detail signal further includes:
- the step of calculating the compensation factor according to the approximate signal and the detail signal further includes:
- the compensation factor c[n] is calculated according to the updated approximate signal a'[n] and the updated detail signal d'[n]; wherein, the expression of the compensation factor c[n] is:
- the inputting the original signal to the body temperature compensation model further includes before the step of splitting the original signal to obtain the approximate signal and the detail signal:
- the step of compensating the detection result of the biomarker to be calibrated and compensated according to the compensation factor, and outputting the compensated detection result of the biomarker by the body temperature compensation model further includes:
- the compensation factor is updated to obtain the updated compensation factor
- the detection result of the biomarker to be calibrated and compensated is any one of four results: blood sugar content, lactic acid content, potassium ion concentration and sodium ion concentration.
- a mobile terminal includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the second-generation wavelet-based body temperature compensation method when the processor executes the computer program.
- the present invention provides a body temperature compensation method, a mobile terminal and a storage medium based on the second generation wavelet.
- the method includes the steps of: inputting an original signal into a body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated; a compensation factor is calculated according to the approximate signal and the detail signal; the biological marker to be calibrated and compensated is compensated according to the compensation factor Marker detection results, the body temperature compensation model outputs the compensated biomarker detection results.
- Real-time body temperature compensation for electronic wearable devices with high precision and low power consumption is realized, and the influence of body temperature on the performance of electronic wearable devices is effectively eliminated.
- Figure 1 is a schematic diagram of the sensor structure of a typical wearable electronic device.
- Figure 2 shows the effect of human skin temperature on the detection of blood sugar or lactate.
- FIG. 3 is a schematic flowchart of a body temperature compensation method based on the second generation wavelet in one embodiment.
- FIG. 4 is a schematic structural diagram of the lifting framework of the second generation wavelet in one embodiment.
- FIG. 5 is a flow chart of a body temperature compensation model based on the second-generation wavelet-based lifting framework in one embodiment.
- FIG. 6 is a logic diagram of a low-power body temperature compensation circuit based on the MSP430 platform in one embodiment.
- Figure 7 is a schematic diagram of body temperature compensation results in one embodiment.
- the temperature sensor inevitably increases the complexity and power consumption of the hardware system.
- the three links of signal op amp (amplification), A/D conversion (analogue-digital converter, analog-to-digital conversion) and digital signal processing (digital signal processing) cannot be highly integrated, which affects the Implementation of low power consumption.
- the present invention provides a body temperature compensation method, a mobile terminal and a storage medium based on the second-generation wavelet.
- the method uses the lifting framework in the second-generation wavelet to establish a flexible and universal body temperature compensation model.
- the second-generation wavelet-based body temperature compensation method provided in this application can be applied to a terminal.
- the wearable electronic device has a wearable electrochemical sensor for continuously monitoring the physiological state of the human body.
- the wearable electronic device uses a single-chip microcomputer as a processor, wherein a single-instruction-cycle RISC chip of the MSP430 model is used.
- the following describes an example in which a second-generation wavelet-based body temperature compensation method is applied to a wearable electronic device with a wearable electrochemical sensor.
- FIG. 3 is a schematic flowchart of a body temperature compensation method based on the second-generation wavelet. 4, the method includes the steps:
- Step S100 input the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated; in the present invention
- the biomarker detection results to be calibrated and compensated can be any of the four results of blood glucose content, lactic acid content, potassium ion concentration and sodium ion concentration.
- the body temperature compensation model is established based on the lifting framework in the second-generation wavelet.
- the recently emerging lifting framework as the second-generation wavelet can show more flexibility and versatility
- a general improvement framework includes two improvement steps of update (Update) and prediction (Prediction), and introduces adaptability, so that the system in this application does not need to adjust algorithm parameters during the entire operation cycle, and can adapt to the signal Various changes in characteristics.
- the body temperature compensation model can calculate the compensation factor according to the approximate and detailed components formed after signal update and prediction, and compensate the input signal in real time.
- the inputting the original signal to the body temperature compensation model, and the step of the body temperature compensation model splitting the original signal to obtain an approximate signal and a detail signal includes:
- the approximate signal contains the low-frequency part of the original signal, also known as the signal contour, and the detail signal contains the high-frequency part of the original signal, that is, the details or sudden changes of the signal. Compensation of human skin temperature is to eliminate unnecessary fluctuations caused by human skin temperature to the detection results of biomarkers.
- Step S200 calculating a compensation factor according to the approximate signal and the detail signal
- the step of calculating the compensation factor according to the approximation signal and the detail signal includes:
- Step S201 Update the approximate signal a[n] according to the information in the detail signal d[n] to obtain an updated approximate signal a'[n]; wherein, the updated approximate signal a'[n] ]
- U() represents the smoothing operation, which is defined as: Among them, U(d[n]) is the adaptive update operator, which is defined as:
- ⁇ L
- ⁇ R
- ⁇ L ⁇ R represents the enhancement of the fluctuation
- ⁇ L ⁇ R represents the fluctuation unchanged
- ⁇ L > ⁇ R means that the fluctuation becomes smaller.
- the smoothing operation can retain the low-frequency part (the contour part) of the signal, and can retain the most important slowly changing information of the signal. Participating in the smoothing operation requires two signal sequences, one of which is denoted as x, and the other is denoted as y, y[n] is the nth point of the signal sequence y.
- the data in the signal data stream x[n] is continuously sampled, that is, the three consecutive samples in the signal data stream x[n] are d[n-1], a [n] and d[n].
- a[n] will adaptively use its neighbors, that is, d[n-1] or d[n] will replace a[n], thereby trying to eliminate unwanted or unreasonable mutations in the signal. If ⁇ L ⁇ R, which means that the signal gets stronger over time. Since the updated data a'[n] reflects the steady-state component of the signal, then a[n] should be replaced by its smooth neighbor, that is, d[n-1].
- the step of calculating the compensation factor according to the approximation signal and the detail signal further includes the steps of:
- Step S202 Predict the detail signal d[n] according to the information contained in the updated approximate signal a'[n] to obtain a predicted detail signal d'[n]. That is to say, when predicting the detail signal d[n], the information contained in the updated approximate signal a'[n] will be used;
- P represents the prediction operator, which represents the contour information (low-frequency information) after the smoothing operation, which is defined as:
- the updated detail signal d'[n] only contains the high-frequency components in the detail signal obtained by splitting the original signal, which can be effectively used to extract the Transient information.
- the step of calculating the compensation factor according to the approximation signal and the detail signal further includes:
- Step S203 Calculate and obtain a compensation factor c[n] according to the updated approximate signal a'[n] and the updated detail signal d'[n]; wherein, the expression of the compensation factor c[n] is: :
- is the second-order norm of the updated approximate signal a'[n]
- its expression is:
- the second-order norm is used to calculate the energy of the low-frequency part of the signal, which contains most of the energy (generally above 98%), and the fine-tuning part It needs to be divided by the second-order norm, and the purpose is to normalize the processing to avoid overcompensation.
- Step S300 Compensate the biomarker detection result to be calibrated and compensated according to the compensation factor, and the body temperature compensation model outputs the compensated biomarker detection result.
- the biomarker detection result to be calibrated and compensated for the nth input is compensated according to the updated compensation factor
- c[n] will be fine-tuned on the basis of c[n-1], and the fine-tuning part will be fine-tuned.
- the compensation formula c[n] will decrease, and the compensation strength will be weakened. If the change is 0, that is, c[n] is equal to 0, no compensation is needed. If the change is stronger and c[n] increases, then Compensation is increased.
- the inputting the original signal to the body temperature compensation model, before the step of splitting the original signal to obtain the approximate signal and the detail signal, the body temperature compensation model further includes:
- the step of compensating the biomarker detection result to be calibrated and compensated according to the compensation factor, and outputting the compensated biomarker detection result by the body temperature compensation model further includes:
- steps in the flowchart of FIG. 3 are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
- the present invention also provides a specific application example of a body temperature compensation method based on the second generation wavelet, as shown in FIG. 5 , which is the body temperature compensation of the lifting frame based on the second generation wavelet.
- a flow chart of the model which includes the steps:
- the parameter of human skin temperature is not needed in this model, so a high-precision temperature sensor can be omitted from the hardware, and the power consumption can be effectively reduced.
- the lifting frame as the second generation wavelet comprehensively considers the local changes of the signal, which better solves the problem that the performance of the first generation wavelet is not very ideal when dealing with discontinuous signals.
- the compensation model does not require accurate body temperature measurement, which greatly reduces the requirements for hardware design.
- the body temperature compensation model in the present invention processes the nth data, there are only the adaptive update operator U(d[n]), the prediction operator P(a'[n]) and the compensation factor c[n].
- FIG. 7 is a schematic diagram of the body temperature compensation result.
- the present invention establishes a more flexible and versatile body temperature compensation model by using the lifting framework in the second generation wavelet, and realizes high precision and low power consumption. Real-time body temperature compensation for electronic wearable devices can effectively eliminate the impact of body temperature on the performance of electronic wearable devices.
- the present application further provides a mobile terminal, including a memory and a processor, the memory stores a computer program, and the processor implements the second-generation wavelet-based method when the processor executes the computer program The steps of the body temperature compensation method.
- the mobile terminal uses an MSP430 microcontroller as a processor, and the MSP430 chip (such as MSP430G2553) is a 16-bit single instruction cycle RISC (reduced instruction set) microcontroller launched by a company in the United States.
- FIG. 6 is a logic diagram of a low-power body temperature compensation circuit based on the MSP430 platform in one embodiment.
- the MSP430 platform includes an MSP430 control chip, an analog-to-digital conversion setting circuit, a system clock setting circuit, a watchdog circuit and Serial communication circuits and memories.
- any one of the analog signal outputs of the 4-way sensors of the wearable electronic device can be used as the signal input of the MSP430 control chip and connected to the No. 8 tube corner of the MSP430 control chip. in:
- the MSP430 integrates a 14kHz vibrator, so no external crystal is required.
- the master clock (MCLK) clock frequency is programmed as needed to make a good compromise between high speed (from 14kHz to 1.12MHz) and low power consumption to maximize the performance of the microcontroller.
- the analog-to-digital conversion circuit adopts the built-in 10bitA/D (10-bit analog-to-digital conversion) interface of the MSP430 chip.
- the reference voltage Vref+ can adapt to 0v ⁇ 1.5v, and meet the maximum dynamic range of the sensor analog signal. .
- the MSP430 chip can set the analog-to-digital conversion rate, and the 10bitA/D analog-to-digital conversion rate of the MSP430 chip can be dynamically set within 200ksps. Considering that the bandwidth of the analog signal is in the order of 1Hz, the system sampling rate can be set to 4Hz. The analog-to-digital conversion rate is correspondingly set to 40sps, which can greatly reduce the power consumption of the system.
- a watchdog circuit is added between the 1st and 16th pins of the MSP430 chip.
- a system reset signal will be generated to help the system reset and restart the program.
- the memory implements a body temperature compensation method based on the second-generation wavelet by adopting the body temperature compensation processing program in assembly language, and is loaded into the non-volatile memory Flash of the MSP430 chip.
- the body temperature compensation model is relatively simple, in order to reduce power consumption and better utilize the low power consumption characteristics of the MSP430 chip, the unnecessary data memory can be turned off.
- the data memory RAM has only 512 bytes, which is mainly used to store variables and intermediate results of operations.
- the storage required by this system is within 100 bytes, so about 80% of the data memory can be closed.
- Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory may include random access memory (RAM) or external cache memory.
- RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
- the compensated signal processing result can perform data communication with peripheral slaves through the serial communication interface circuit (pins 7, 14, and 15).
- the peripheral slave may be a low-power Bluetooth module. Wireless communication with the smartphone is carried out through this peripheral slave.
- the present invention adopts a single instruction cycle RISC chip such as MSP430.
- the core processing part of each data in this model requires less than 100 single instructions of addition or multiplication in total, and the data processing burden is very light, ensuring low theoretical and algorithmic requirements. Realizability of power consumption; when the hardware of the system is implemented, the signal op amp, A/D conversion and digital signal processing are highly integrated in one chip, the integration is high and the signal processing algorithm can be dynamically adjusted, thereby improving the self-adaptation of the system Therefore, the hardware design ensures the low power consumption of the system again.
- a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
- Step S100 input the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated;
- the body temperature compensation method of the second generation wavelet is described, and will not be repeated here.
- Step S200 Calculate and obtain a compensation factor according to the approximate signal and the detail signal; the details are as described in a body temperature compensation method based on the second-generation wavelet, which will not be repeated here.
- Step S300 Compensate the detection result of the biomarker to be calibrated and compensated according to the compensation factor, and output the compensated detection result of the biomarker by the body temperature compensation model.
- the details are as described in a body temperature compensation method based on the second-generation wavelet, which will not be repeated here.
- the second-generation wavelet-based body temperature compensation method, mobile terminal and storage medium can establish a more flexible and versatile body temperature by using the lifting frame in the second-generation wavelet.
- Compensation model compared with the simple body temperature compensation model, the lifting frame as the second generation wavelet comprehensively considers the local changes of the signal, and better solves the problem that the performance of the first generation wavelet is not very ideal when dealing with discontinuous signals; this model There is no need to accurately measure body temperature, which greatly reduces the requirements for hardware design; using a single-instruction-cycle RISC chip such as MSP430, the core processing part of each data in this model requires a total of less than 100 additions or multiplications.
- the core of the MSP430 single-chip microcomputer platform is a 16-bit single-instruction cycle RISC processor. Compared with many other single-chip microcomputers, the most significant advantages are strong computing power and low overall power consumption.
- the system can realize the clock frequency of the main clock of the system through programming according to actual needs, so as to make a good compromise between high speed and low power consumption, and maximize the performance of the microcontroller.
- the present application realizes real-time body temperature compensation for electronic wearable devices with high precision and low power consumption, and effectively eliminates the influence of body temperature on the performance of electronic wearable devices.
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Medical Informatics (AREA)
- Surgery (AREA)
- Veterinary Medicine (AREA)
- Public Health (AREA)
- General Health & Medical Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- Molecular Biology (AREA)
- Heart & Thoracic Surgery (AREA)
- Biomedical Technology (AREA)
- Pathology (AREA)
- Biophysics (AREA)
- Optics & Photonics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Computer Hardware Design (AREA)
- General Chemical & Material Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Chemical & Material Sciences (AREA)
- Emergency Medicine (AREA)
- Measuring And Recording Apparatus For Diagnosis (AREA)
Abstract
A body temperature compensation method based on a second generation wavelet, and a mobile terminal and a storage medium. The method comprises: inputting an original signal into a body temperature compensation model, and splitting the original signal by means of the body temperature compensation model to obtain an approximate signal and a detail signal (S100), wherein the original signal is a biomarker measurement result to be subjected to calibration and compensation; calculating a compensation factor according to the approximate signal and the detail signal (S200); and according to the compensation factor, carrying out compensation on the biomarker measurement result to be subjected to calibration and compensation, and outputting a compensated biomarker measurement result by means of the body temperature compensation model (S300). By means of the method, real-time body temperature compensation can be performed on an electronic wearable device in a highly precise and low-power-consumption manner, thereby eliminating the effect of body temperature on the performance of the electronic wearable device.
Description
本发明涉及医疗技术领域,尤其涉及的是一种基于第二代小波的体温补偿方法、移动终端及存储介质。The invention relates to the field of medical technology, and in particular, to a body temperature compensation method, a mobile terminal and a storage medium based on the second-generation wavelet.
目前在个性化医疗的近期发展使得对人体进行连续监测生理状态的需求大增。可穿戴电化学传感器(Wearable Electrochemical sensor,WES)作为可穿戴电子设备最核心的部件,是最为适合连续监测人体生理状态的技术,近年来备受关注并且取得长足发展。因为汗液包含了丰富的临床相关生物标志物,所以汗液成为最适合连续监测的生物体液之一。汗液中主要有两大类主要的生物标志物:代谢物(Metabolite,譬如血糖和乳酸)和电解质(Electrolyte,譬如钾离子和钠离子)。典型的可穿戴电子设备的传感器结构示意图,如图1所示,可以检测血糖含量、乳酸含量、钾离子浓度和钠离子浓度四种重要的人体生理参数。图1中Ag/AgCI(银/氯化银)电极用作血糖传感器阳极(GoX)和乳酸传感器阳极(Lox)的公共参考电极,在电极间会产生正比于血糖含量/乳酸含量的输出电流;钾离子(K+)和钠离子电极(Na+)作为一种离子选择性电极(Ion-selected Electrodes,ISE),连接上由聚乙烯醇缩丁醛(Polyvinyl Butyral,PVB)构成的参考电极,可以产生较为稳定的输出电压。电解质不平衡能够反映出异常心率所带来的潜在危险,电解质流失也是身体机能紊乱的主要原因,那么监测关键的电解质浓度就可以预警潜在的心脏疾病。电解质浓度的实时测量能够提醒病人、医生、教练或者运动员所面临的电解质流失或者脱水状态;同样代谢物含量异常也会影响运动状态以及运动后的科学恢复,如果能够实时准确地掌握运动期间的血糖和乳酸变化,则有利于运动中和运用后恢复身体机能平衡。因此,如何高性能地检测代谢物含量异常或者电解质水平紊乱,变得重要而且富有挑战。Recent developments in personalized medicine have led to a huge increase in the need for continuous monitoring of the physiological state of the human body. Wearable Electrochemical Sensor (WES), as the core component of wearable electronic devices, is the most suitable technology for continuous monitoring of the physiological state of the human body. Because sweat contains a wealth of clinically relevant biomarkers, it is one of the most suitable biological fluids for continuous monitoring. There are two main categories of major biomarkers in sweat: metabolites (eg, blood glucose and lactate) and electrolytes (eg, potassium and sodium ions). The schematic diagram of the sensor structure of a typical wearable electronic device, as shown in Figure 1, can detect four important human physiological parameters: blood sugar content, lactic acid content, potassium ion concentration and sodium ion concentration. In Figure 1, the Ag/AgCI (silver/silver chloride) electrode is used as the common reference electrode of the blood glucose sensor anode (GoX) and the lactic acid sensor anode (Lox), and an output current proportional to the blood glucose content/lactic acid content will be generated between the electrodes; Potassium ion (K+) and sodium ion electrodes (Na+), as an ion-selected electrode (Ion-selected Electrodes, ISE), are connected to a reference electrode composed of polyvinyl butyral (PVB), which can generate more stable output voltage. Electrolyte imbalance can reflect the potential danger posed by abnormal heart rate, and electrolyte loss is also a major cause of bodily dysfunction, so monitoring key electrolyte concentrations can warn of potential heart disease. The real-time measurement of electrolyte concentration can remind patients, doctors, coaches or athletes of electrolyte loss or dehydration. Similarly, abnormal metabolite levels can also affect exercise status and scientific recovery after exercise. If the blood sugar during exercise can be accurately grasped in real time and lactic acid changes, it is beneficial to restore the balance of body functions during exercise and after use. Therefore, how to detect abnormal metabolite content or electrolyte level disturbance with high performance becomes important and challenging.
实现汗液中生物标志物检测的高性能,具体有四个方面的要求:1、多成分检测;2、实时连续性;3、准确性;4、低功耗。基于纺织物的高度可拉伸打印式电压式传感器阵列,可同时用于多种离子和酶的汗液分析,因而能够满足第一个要求。纺织物是有吸附力的组件,能够提供丰富的弹性,使得传感器和身体之间可以紧密接触,结合具有良好强度、导电性和光学透明性的石墨烯,能够较好的解决第二个要求。解决第三个要求的困难之一在于,人体在不同的皮肤温度情况下,会出现不同的电阻阻抗特性,从而影响酶、电解质或者离子的检测结果。如图2所示,图2显示了虽然汗液中的血糖含量(100uM)或者乳酸含量(5mM)固定不变,但是由于皮肤温度的变化(从20℃到40℃),而导致输出电流非常明显的不同。为了消除人体皮肤温度对传感器性能的影响,必须引入体温补偿模型来校准传感器采集的数据。尽管体温对电压传感器(potentiometric sensor)性能的影响不特别显著,但是对酶(譬如血糖或者乳酸)的生化性能却会产生重大的影响,所以高性能的传感器必须实时补偿体温带来的影响。第四个要求成为能否实现前三个要求的关键。虽然检测成分多少与功耗成正比,但是检测过少成分显然是无法接受,若功耗太大,则无法满足实时、连续的检测,若对检测数据采用复杂模型的计算和校准,虽然可以提高检测结果的准确性,但必然导致功耗的提高,如果为了较低功耗而采用简单模型,则会影响准确性。To achieve high performance of biomarker detection in sweat, there are four specific requirements: 1. Multi-component detection; 2. Real-time continuity; 3. Accuracy; 4. Low power consumption. The first requirement is met by a textile-based, highly stretchable, printed voltage sensor array that can be used for multiple ionic and enzymatic sweat analysis simultaneously. Textiles are absorbent components that can provide rich elasticity, enabling close contact between the sensor and the body. Combined with graphene, which has good strength, electrical conductivity, and optical transparency, the second requirement can be better addressed. One of the difficulties in solving the third requirement is that the human body will have different resistance and impedance characteristics under different skin temperatures, thereby affecting the detection results of enzymes, electrolytes or ions. As shown in Figure 2, Figure 2 shows that although the blood sugar content (100uM) or the lactate content (5mM) in the sweat is fixed, the output current is very obvious due to the change of skin temperature (from 20°C to 40°C). s difference. In order to eliminate the influence of human skin temperature on the sensor performance, a body temperature compensation model must be introduced to calibrate the data collected by the sensor. Although the effect of body temperature on the performance of potentiometric sensors is not particularly significant, it has a significant impact on the biochemical properties of enzymes (such as blood glucose or lactate), so high-performance sensors must compensate for the effect of body temperature in real time. The fourth requirement becomes the key to the realization of the first three requirements. Although the number of detected components is proportional to the power consumption, it is obviously unacceptable to detect too few components. If the power consumption is too large, it cannot meet the real-time and continuous detection. The accuracy of the detection results will inevitably lead to an increase in power consumption. If a simple model is used for lower power consumption, the accuracy will be affected.
因此,现有技术还有待于改进和发展。Therefore, the existing technology still needs to be improved and developed.
发明内容SUMMARY OF THE INVENTION
鉴于上述现有技术的不足,本发明的目的在于提供一种基于第二代小波的体温补偿方法、移动终端及存储介质,以达到高精度、低功耗地对电子可穿戴设备进行实时体温补偿,有效消除了体温对电子可穿戴设备性能所带来的影响。In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a body temperature compensation method, mobile terminal and storage medium based on the second generation wavelet, so as to achieve real-time body temperature compensation for electronic wearable devices with high precision and low power consumption , which effectively eliminates the influence of body temperature on the performance of electronic wearable devices.
本发明的技术方案如下:The technical scheme of the present invention is as follows:
一种基于第二代小波的体温补偿方法,该方法包括步骤:A body temperature compensation method based on the second generation wavelet, the method comprises the steps of:
输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号;其中,所述原始信号为待校准补偿的生物标志物检测结果;inputting the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated;
根据所述近似信号和细节信号计算得到补偿因子;Calculate the compensation factor according to the approximate signal and the detail signal;
根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果。The detection result of the biomarker to be calibrated and compensated is compensated according to the compensation factor, and the body temperature compensation model outputs the detection result of the biomarker after compensation.
本发明的进一步设置,输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤包括:In a further arrangement of the present invention, the original signal is input to the body temperature compensation model, and the steps of the body temperature compensation model splitting the original signal to obtain an approximate signal and a detail signal include:
令所述原始信号为x[n](n=0,1,...,N),获取原始信号x[n]并将所述原始信号x[n]分裂为近似信号a[n]和细节信号d[n];Let the original signal be x[n] (n=0, 1, . . . , N), obtain the original signal x[n] and split the original signal x[n] into approximate signals a[n] and detail signal d[n];
其中,a[n]=x[2n],d[n]=x[2n+1]。Among them, a[n]=x[2n], d[n]=x[2n+1].
本发明的进一步设置,所述根据所述近似信号和细节信号计算得到补偿因子的步骤包括:In a further arrangement of the present invention, the step of calculating the compensation factor according to the approximate signal and the detail signal includes:
根据所述细节信号d[n]中的信息对所述近似信号a[n]进行更新,得到更新后的近似信号a′[n];其中,更新后的近似信号a′[n]的表达式为:
表示平滑运算,其定义为:
其中,U(d[n])为自适应更新算子,其定义为:
The approximate signal a[n] is updated according to the information in the detail signal d[n] to obtain the updated approximate signal a'[n]; wherein, the expression of the updated approximate signal a'[n] The formula is: represents the smoothing operation, which is defined as: Among them, U(d[n]) is the adaptive update operator, which is defined as:
其中,Δ
L=|a[n]-d[n-1]|,Δ
R=|a[n]-d[n]|。
Among them, Δ L =|a[n]-d[n-1]|, Δ R =|a[n]-d[n]|.
本发明的进一步设置,所述根据所述近似信号和细节信号计算得到补偿因子的步骤还包括:In a further arrangement of the present invention, the step of calculating the compensation factor according to the approximate signal and the detail signal further includes:
根据所述更新后的近似信号a′[n]中包含的信息对所述细节信号d[n]进行预测,得到预测的细节信号d′[n];Predict the detail signal d[n] according to the information contained in the updated approximate signal a'[n], to obtain a predicted detail signal d'[n];
其中,预测的细节信号d′[n]的表达式为:d′[n]=d[n]-P(a′[n]);The expression of the predicted detail signal d'[n] is: d'[n]=d[n]-P(a'[n]);
本发明的进一步设置,所述根据所述近似信号和细节信号计算得到补偿因子的步骤还包括:In a further arrangement of the present invention, the step of calculating the compensation factor according to the approximate signal and the detail signal further includes:
根据所述更新后的近似信号a′[n]和所述更新后的细节信号d′[n]计算得到补偿因子c[n];其中,补偿因子c[n]的表达式为:The compensation factor c[n] is calculated according to the updated approximate signal a'[n] and the updated detail signal d'[n]; wherein, the expression of the compensation factor c[n] is:
其中||a′[n]||为更新后的近似信号a′[n]的二阶范数,其表达式为:
Where ||a'[n]|| is the second-order norm of the updated approximate signal a'[n], and its expression is:
本发明的进一步设置,所述输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤之前还包括:In a further arrangement of the present invention, the inputting the original signal to the body temperature compensation model, the body temperature compensation model further includes before the step of splitting the original signal to obtain the approximate signal and the detail signal:
初始化补偿次数n、更新后的近似信号的二阶范数||a′[n]||和补偿因子c[n];其中,n=0,||a′[0]||=0,c[0]=0。Initialize the number of compensation n, the second-order norm ||a'[n]|| of the updated approximate signal, and the compensation factor c[n]; where n=0, ||a'[0]||=0, c[0]=0.
本发明的进一步设置,所述根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果的步骤还包括:In a further arrangement of the present invention, the step of compensating the detection result of the biomarker to be calibrated and compensated according to the compensation factor, and outputting the compensated detection result of the biomarker by the body temperature compensation model further includes:
在进行第n=n+1次补偿时,根据第n=n+1次输入的待校准补偿的生物标志物检测结果,对所述补偿因子进行更新并得到更新后的补偿因子;When performing the n=n+1th compensation, according to the n=n+1th input of the biomarker detection result to be calibrated and compensated, the compensation factor is updated to obtain the updated compensation factor;
根据所述更新后的补偿因子补偿所述第n=n+1次输入的待校准补偿的生物标志物检测结果,其表达式为:The biomarker detection result to be calibrated and compensated for the n=n+1th input is compensated according to the updated compensation factor, and its expression is:
x′[n+1]=x[n+1]-c[n+1],其中x[n+1]表示第n=n+1次输入的待校准补偿的生物标志物检测结果,c[n+1]表示更新后的补偿因子,x′[n+1]表示在进行第n=n+1次补偿后的生物标志物检测结果。x'[n+1]=x[n+1]-c[n+1], where x[n+1] represents the biomarker detection result to be calibrated and compensated for the n=n+1th input, c [n+1] represents the updated compensation factor, and x'[n+1] represents the biomarker detection result after the n=n+1th compensation.
本发明的进一步设置,所述待校准补偿的生物标志物检测结果为血糖含量、乳酸含量、钾离子浓度和钠离子浓度四种结果中的任意一种。In a further arrangement of the present invention, the detection result of the biomarker to be calibrated and compensated is any one of four results: blood sugar content, lactic acid content, potassium ion concentration and sodium ion concentration.
一种移动终端,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器 执行所述计算机程序时实现所述基于第二代小波的体温补偿方法的步骤。A mobile terminal includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the second-generation wavelet-based body temperature compensation method when the processor executes the computer program.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现基于第二代小波的体温补偿方法的步骤。A computer-readable storage medium on which a computer program is stored, the computer program implementing the steps of a second-generation wavelet-based body temperature compensation method when executed by a processor.
本发明所提供的一种基于第二代小波的体温补偿方法、移动终端及存储介质,所述方法包括步骤:输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号;其中,所述原始信号为待校准补偿的生物标志物检测结果;根据所述近似信号和所述细节信号计算得到补偿因子;根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果。实现了高精度、低功耗地对电子可穿戴设备进行实时体温补偿,有效消除了体温对电子可穿戴设备性能所带来的影响。The present invention provides a body temperature compensation method, a mobile terminal and a storage medium based on the second generation wavelet. The method includes the steps of: inputting an original signal into a body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated; a compensation factor is calculated according to the approximate signal and the detail signal; the biological marker to be calibrated and compensated is compensated according to the compensation factor Marker detection results, the body temperature compensation model outputs the compensated biomarker detection results. Real-time body temperature compensation for electronic wearable devices with high precision and low power consumption is realized, and the influence of body temperature on the performance of electronic wearable devices is effectively eliminated.
图1是典型可穿戴电子设备的传感器结构示意图。Figure 1 is a schematic diagram of the sensor structure of a typical wearable electronic device.
图2是人体皮肤温度对检测血糖或者乳酸的影响。Figure 2 shows the effect of human skin temperature on the detection of blood sugar or lactate.
图3是一个实施例中基于第二代小波的体温补偿方法的流程示意图。FIG. 3 is a schematic flowchart of a body temperature compensation method based on the second generation wavelet in one embodiment.
图4是一个实施例中第二代小波的提升框架的结构示意图。FIG. 4 is a schematic structural diagram of the lifting framework of the second generation wavelet in one embodiment.
图5是一个实施例中基于第二代小波的提升框架的体温补偿模型流程图。FIG. 5 is a flow chart of a body temperature compensation model based on the second-generation wavelet-based lifting framework in one embodiment.
图6是一个实施例中基于MSP430平台的低功耗体温补偿电路逻辑图。FIG. 6 is a logic diagram of a low-power body temperature compensation circuit based on the MSP430 platform in one embodiment.
图7是一个实施例中体温补偿结果的示意图。Figure 7 is a schematic diagram of body temperature compensation results in one embodiment.
发明人发现,目前简单而被广泛使用的体温补偿模型是来自加州大学伯克利分校,该模型简单认为:以20℃为基准,体温每升高一度,电流或者电压会增加0.18%。该模型计算简单,所以可穿戴电子设备消耗的功耗较低,但是这个模型没有充分考虑每个人的个体差异,20℃作为基准也未必合理,而且在硬件设计上需要增加一个精确测量皮肤温度的温度传感器,不可避免的增加了硬件系统的复杂度和功耗。另外,在低功耗方面也未能够将信号运放(amplification)、A/D转换(analogue-digital converter,模数转换) 和数字信号处理(digital signal processing)三个环节高度集成,从而影响了低功耗的实现。本发明提供一种基于第二代小波的体温补偿方法、移动终端及存储介质,所述方法使用第二代小波中的提升框架,建立具有灵活性和通用性的体温补偿模型,在硬件系统设计上完成信号运放、A/D转换和体温补偿处理的高度集成设计,从而高精度、低功耗地实现电子可穿戴设备的实时体温补偿,有效消除体温对电子可穿戴设备性能所带来的影响。The inventor found that the current simple and widely used body temperature compensation model is from the University of California, Berkeley. This model is simple to calculate, so the power consumption of wearable electronic devices is low, but this model does not fully consider the individual differences of each person, and 20 °C as a benchmark may not be reasonable, and it is necessary to add an accurate measurement of skin temperature in the hardware design. The temperature sensor inevitably increases the complexity and power consumption of the hardware system. In addition, in terms of low power consumption, the three links of signal op amp (amplification), A/D conversion (analogue-digital converter, analog-to-digital conversion) and digital signal processing (digital signal processing) cannot be highly integrated, which affects the Implementation of low power consumption. The present invention provides a body temperature compensation method, a mobile terminal and a storage medium based on the second-generation wavelet. The method uses the lifting framework in the second-generation wavelet to establish a flexible and universal body temperature compensation model. Complete the highly integrated design of signal op amp, A/D conversion and body temperature compensation processing, so as to realize real-time body temperature compensation of electronic wearable devices with high precision and low power consumption, and effectively eliminate the effect of body temperature on the performance of electronic wearable devices. Influence.
为使本发明的目的、技术方案及效果更加清楚、明确,以下参照附图并举实例对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and effects of the present invention clearer and clearer, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
在实施方式和申请专利范围中,除非文中对于冠词有特别限定,否则“一”与“所述”可泛指单一个或复数个。In the embodiments and the scope of the patent application, unless the context has a special limitation on the articles, "a" and "the" can generally refer to a single or plural.
另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions between the various embodiments can be combined with each other, but must be based on the realization by those of ordinary skill in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of such technical solutions does not exist. , is not within the scope of protection required by the present invention.
本申请提供的一种基于第二代小波的体温补偿方法,可以应用于终端中。其中,特别应用于一种可穿戴电子设备中,该可穿戴电子设备具有可穿戴电化学传感器,用于连续监测人体生理状态。所述可穿戴电子设备采用单片机作为处理器,其中,采用MSP430型号的单指令周期RISC芯片。The second-generation wavelet-based body temperature compensation method provided in this application can be applied to a terminal. Among them, it is especially used in a wearable electronic device, the wearable electronic device has a wearable electrochemical sensor for continuously monitoring the physiological state of the human body. The wearable electronic device uses a single-chip microcomputer as a processor, wherein a single-instruction-cycle RISC chip of the MSP430 model is used.
以下以一种基于第二代小波的体温补偿方法应用于具有可穿戴电化学传感器的可穿戴电子设备上的实施例进行说明。The following describes an example in which a second-generation wavelet-based body temperature compensation method is applied to a wearable electronic device with a wearable electrochemical sensor.
请参阅图3并结合图4,图3是一种基于第二代小波的体温补偿方法的流程示意图,图4是一个实施例中第二代小波的提升框架的结构示意图,如图3与图4所示,该方法包括步骤:Please refer to FIG. 3 in conjunction with FIG. 4. FIG. 3 is a schematic flowchart of a body temperature compensation method based on the second-generation wavelet. 4, the method includes the steps:
步骤S100、输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号;其中,所述原始信号为待校准补偿的生物标志物检测结果;在本发明中待校准补偿的生物标志物检测结果可以是血糖含量、乳酸含量、钾离子浓度 和钠离子浓度四种结果中的任何一种。Step S100, input the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated; in the present invention The biomarker detection results to be calibrated and compensated can be any of the four results of blood glucose content, lactic acid content, potassium ion concentration and sodium ion concentration.
其中,体温补偿模型是基于第二代小波中的提升框架建立的,与现有的第一代小波分析方法相比,近期出现的提升框架作为第二代小波能够表现出更加的灵活性和通用性,一个通用的提升框架包含了更新(Update)和预测(Prediction)两个提升步骤,并且引入了自适应性,使得本申请中的系统在整个运行周期内都无需调整算法参数,能够适应信号特性的各种变化。该体温补偿模型能够根据信号更新和预测后形成的近似成分与细节成分,并计算补偿因子,实时补偿输入信号。Among them, the body temperature compensation model is established based on the lifting framework in the second-generation wavelet. Compared with the existing first-generation wavelet analysis methods, the recently emerging lifting framework as the second-generation wavelet can show more flexibility and versatility A general improvement framework includes two improvement steps of update (Update) and prediction (Prediction), and introduces adaptability, so that the system in this application does not need to adjust algorithm parameters during the entire operation cycle, and can adapt to the signal Various changes in characteristics. The body temperature compensation model can calculate the compensation factor according to the approximate and detailed components formed after signal update and prediction, and compensate the input signal in real time.
在一个实施例的进一步实施方式中,所述输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤包括:In a further implementation of an embodiment, the inputting the original signal to the body temperature compensation model, and the step of the body temperature compensation model splitting the original signal to obtain an approximate signal and a detail signal includes:
步骤S101、令所述原始信号为x[n](n=0,1,...,N),获取原始信号x[n]并将所述原始信号x[n]分裂为近似信号a[n]和细节信号d[n];Step S101: Let the original signal be x[n] (n=0, 1, . . . , N), obtain the original signal x[n] and split the original signal x[n] into an approximate signal a[ n] and the detail signal d[n];
其中,a[n]=x[2n],d[n]=x[2n+1]。Among them, a[n]=x[2n], d[n]=x[2n+1].
具体地,将原始信号x[n](n=0,1,...,N)首先被分裂(Split)为两个数据流:近似信号a[n]=x[2n]和细节信号d[n]=x[2n+1]。其中,近似信号包含了原始信号的低频部分,又被称为信号轮廓,细节信号包含了原始信号的高频部分,也就是信号的细节或者突变,在近似信号和细节信号的基础上以完成对人体皮肤温度的补偿,也就是消除人体皮肤温度对生物标志物检测结果造成的不必要的波动。Specifically, the original signal x[n] (n=0, 1, . . . , N) is first split into two data streams: the approximate signal a[n]=x[2n] and the detail signal d [n]=x[2n+1]. Among them, the approximate signal contains the low-frequency part of the original signal, also known as the signal contour, and the detail signal contains the high-frequency part of the original signal, that is, the details or sudden changes of the signal. Compensation of human skin temperature is to eliminate unnecessary fluctuations caused by human skin temperature to the detection results of biomarkers.
步骤S200、根据所述近似信号和所述细节信号计算得到补偿因子;Step S200, calculating a compensation factor according to the approximate signal and the detail signal;
在一个实施例的进一步实施方式中,所述根据所述近似信号和所述细节信号计算得到补偿因子的步骤包括:In a further implementation of an embodiment, the step of calculating the compensation factor according to the approximation signal and the detail signal includes:
步骤S201、根据所述细节信号d[n]中的信息对所述近似信号a[n]进行更新,得到更新后的近似信号a′[n];其中,更新后的近似信号a′[n]的表达式U()为:
表示平滑运算,其定义为:
其中,U(d[n])为自适应更新算子,其定义为:
Step S201: Update the approximate signal a[n] according to the information in the detail signal d[n] to obtain an updated approximate signal a'[n]; wherein, the updated approximate signal a'[n] ] The expression U() is: represents the smoothing operation, which is defined as: Among them, U(d[n]) is the adaptive update operator, which is defined as:
其中,Δ
L=|a[n]-d[n-1]|,Δ
R=|a[n]-d[n]|,Δ
L<Δ
R表示波动增强,Δ
L=Δ
R表示波动不变,Δ
L>Δ
R表示波动变小。其中,平滑运算可以保留信号的低频部分(轮廓部分),能够保留信号最重要的缓慢变化信息,参与平滑运算需要两个信号序列,其中一个记作x,另外一个记作y,y[n]是信号序列y的第n个点。
Among them, Δ L =|a[n]-d[n-1]|, Δ R =|a[n]-d[n]|, Δ L <Δ R represents the enhancement of the fluctuation, and Δ L =Δ R represents the fluctuation unchanged, Δ L >Δ R means that the fluctuation becomes smaller. Among them, the smoothing operation can retain the low-frequency part (the contour part) of the signal, and can retain the most important slowly changing information of the signal. Participating in the smoothing operation requires two signal sequences, one of which is denoted as x, and the other is denoted as y, y[n] is the nth point of the signal sequence y.
其中,在对原始信号进行分裂步骤之前,在对信号数据流x[n]中的数据进行连续抽样,即信号数据流x[n]中的连续三个抽样就是d[n-1],a[n]和d[n]。在所有情况下,a[n]会自适应用它的邻居,也就是d[n-1]或者d[n]会替代a[n],从而尽量消除信号中不需要或者不合理的突变。如果Δ
L<Δ
R,这意味着信号随着时间推移在变强。因更新后的数据a′[n]反应了信号的稳态成分,那么a[n]就应该用它的平滑邻居,也就是使用d[n-1]进行替代。
Among them, before the splitting step is performed on the original signal, the data in the signal data stream x[n] is continuously sampled, that is, the three consecutive samples in the signal data stream x[n] are d[n-1], a [n] and d[n]. In all cases, a[n] will adaptively use its neighbors, that is, d[n-1] or d[n] will replace a[n], thereby trying to eliminate unwanted or unreasonable mutations in the signal. If Δ L <Δ R, which means that the signal gets stronger over time. Since the updated data a'[n] reflects the steady-state component of the signal, then a[n] should be replaced by its smooth neighbor, that is, d[n-1].
在一个实施例的进一步实施方式中,所述根据所述近似信号和所述细节信号计算得到补偿因子的步骤还包括步骤:In a further implementation of an embodiment, the step of calculating the compensation factor according to the approximation signal and the detail signal further includes the steps of:
步骤S202、根据所述更新后的近似信号a′[n]中包含的信息对所述细节信号d[n]进行预测,得到预测的细节信号d′[n]。也就是说,对细节信号d[n]进行预测时,会采用更新过的近似信号a′[n]中所包含的信息;Step S202: Predict the detail signal d[n] according to the information contained in the updated approximate signal a'[n] to obtain a predicted detail signal d'[n]. That is to say, when predicting the detail signal d[n], the information contained in the updated approximate signal a'[n] will be used;
其中,预测的细节信号d′[n]的表达式为:d′[n]=d[n]-P(a′[n]);The expression of the predicted detail signal d'[n] is: d'[n]=d[n]-P(a'[n]);
其中,P表示预测算子,表示的是平滑运算后的轮廓信息(低频信息),其定义为:
Among them, P represents the prediction operator, which represents the contour information (low-frequency information) after the smoothing operation, which is defined as:
以使得预测的细节信号中的稳态成分去除,那么更新后的细节信号d′[n]就仅包含了原始信号分裂所得的细节信号中的高频成分,从而可有效地用于提取信号的瞬态信息。In order to remove the steady-state components in the predicted detail signal, the updated detail signal d'[n] only contains the high-frequency components in the detail signal obtained by splitting the original signal, which can be effectively used to extract the Transient information.
在一个实施例的进一步实施方式中,所述根据根据所述近似信号和所述细节信号计算得到补偿因子的步骤还包括:In a further implementation of an embodiment, the step of calculating the compensation factor according to the approximation signal and the detail signal further includes:
步骤S203、根据所述更新后的近似信号a′[n]和所述更新后的细节信号d′[n]计算得到补偿因子c[n];其中,补偿因子c[n]的表达式为:Step S203: Calculate and obtain a compensation factor c[n] according to the updated approximate signal a'[n] and the updated detail signal d'[n]; wherein, the expression of the compensation factor c[n] is: :
其中,||a′[n]||为更新后的近似信号a′[n]的二阶范数,其表达式为:
二阶范数用于计算信号低频部分的能量,包含了大部分的能量(一般在98%以上),微调部分
需要除以二阶范数,目的就是归一化处理,以避免过度补偿。
Among them, ||a'[n]|| is the second-order norm of the updated approximate signal a'[n], and its expression is: The second-order norm is used to calculate the energy of the low-frequency part of the signal, which contains most of the energy (generally above 98%), and the fine-tuning part It needs to be divided by the second-order norm, and the purpose is to normalize the processing to avoid overcompensation.
步骤S300、根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果。其中,根据所述更新后的补偿因子补偿所述第n次输入的待校准补偿的生物标志物检测结果,得到补偿后的生物标志物检测结果其表达式为:x′[n]=x[n]-c[n],其中x[n]表示第n次输入的待校准补偿的生物标志物检测结果,c[n]表示更新后的补偿因子,x′[n]表示在进行第n次补偿后的生物标志物检测结果。因补偿具有延续性,所以c[n]会在c[n-1]的基础上进行微调,微调部分
取决于高频信号d′[n]的变化。如果信号变弱,则补偿公式c[n]就会减小,补偿力度减弱,如果变化为0,即c[n]等于0,则无需补偿,如果变化增强,c[n]增大,则补偿力度加大。
Step S300: Compensate the biomarker detection result to be calibrated and compensated according to the compensation factor, and the body temperature compensation model outputs the compensated biomarker detection result. Wherein, the biomarker detection result to be calibrated and compensated for the nth input is compensated according to the updated compensation factor, and the expression of the compensated biomarker detection result is: x'[n]=x[ n]-c[n], where x[n] represents the biomarker detection result to be calibrated and compensated for the nth input, c[n] represents the updated compensation factor, and x'[n] represents the nth input Biomarker detection results after subcompensation. Because the compensation is continuous, c[n] will be fine-tuned on the basis of c[n-1], and the fine-tuning part will be fine-tuned. Depends on the variation of the high frequency signal d'[n]. If the signal becomes weak, the compensation formula c[n] will decrease, and the compensation strength will be weakened. If the change is 0, that is, c[n] is equal to 0, no compensation is needed. If the change is stronger and c[n] increases, then Compensation is increased.
在一个实施例的进一步实施方式中,所述输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤之前还包括:In a further implementation of an embodiment, the inputting the original signal to the body temperature compensation model, before the step of splitting the original signal to obtain the approximate signal and the detail signal, the body temperature compensation model further includes:
初始化补偿次数n、更新后的近似信号的二阶范数||a′[n]||和补偿因子c[n];其中,n=0,||a′[0]||=0,c[0]=0。Initialize the number of compensation n, the second-order norm ||a'[n]|| of the updated approximate signal, and the compensation factor c[n]; where n=0, ||a'[0]||=0, c[0]=0.
在一个实施例的进一步实施方式中,所述根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果的步骤还包括:In a further implementation of an embodiment, the step of compensating the biomarker detection result to be calibrated and compensated according to the compensation factor, and outputting the compensated biomarker detection result by the body temperature compensation model further includes:
步骤S301、在进行第n=n+1次补偿时,根据第n=n+1次输入的待校准补偿的生物 标志物检测结果,对所述补偿因子进行更新并得到更新后的补偿因子;Step S301, when performing the n=n+1th compensation, according to the n=n+1th input of the biomarker detection result to be calibrated and compensated, update the compensation factor and obtain the updated compensation factor;
步骤S302、根据所述更新后的补偿因子补偿所述第n=n+1次输入的待校准补偿的生物标志物检测结果,其表达式为:Step S302: Compensate the biomarker detection result to be calibrated and compensated for the n=n+1th input according to the updated compensation factor, and its expression is:
x′[n+1]=x[n+1]-c[n+1],其中x[n+1]表示第n=n+1次输入的待校准补偿的生物标志物检测结果,c[n+1]表示更新后的补偿因子,x′[n+1]表示在进行第n=n+1次补偿后的生物标志物检测结果。x'[n+1]=x[n+1]-c[n+1], where x[n+1] represents the biomarker detection result to be calibrated and compensated for the n=n+1th input, c [n+1] represents the updated compensation factor, and x'[n+1] represents the biomarker detection result after the n=n+1th compensation.
应该理解的是,虽然图3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowchart of FIG. 3 are sequentially displayed according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 3 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution of these sub-steps or stages The sequence is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a phase.
为更好的理解本发明,本发明还提供了一种基于第二代小波的体温补偿方法的具体应用实施例,如图5所示,图5是基于第二代小波的提升框架的体温补偿模型流程图,其包括步骤:For better understanding of the present invention, the present invention also provides a specific application example of a body temperature compensation method based on the second generation wavelet, as shown in FIG. 5 , which is the body temperature compensation of the lifting frame based on the second generation wavelet. A flow chart of the model, which includes the steps:
初始化n=0,||a′[0]||=0,c[0]=0;Initialize n=0, ||a'[0]||=0, c[0]=0;
将原始信号a[n]分裂(split)为近似信号a[n]和细节信号d[n];Split the original signal a[n] into an approximate signal a[n] and a detail signal d[n];
更新(update)近似信号a[n]得到a′[n];Update the approximate signal a[n] to get a'[n];
预测(predict)细节信号d[n]得到d′[n];Predict the detail signal d[n] to get d'[n];
进行体温补偿x′[n]=x[n]-c[n];Perform body temperature compensation x'[n]=x[n]-c[n];
令n=n+1;Let n=n+1;
判断系统是否停止工作;若否,则进行第n+1次补偿,再将输入的原始信号a[n]分裂,循环上述步骤;若判定系统已经停止工作,则停止运行系统。Determine whether the system has stopped working; if not, perform the n+1th compensation, and then split the input original signal a[n], and repeat the above steps; if it is determined that the system has stopped working, stop running the system.
通过上述技术方案,本模型中无需人体皮肤温度这个参数,所以在硬件上可以省略一个高精度温度传感器,同时有效降低了功耗。与简单的体温补偿模型相比,提升框架作为第二代小波综合考虑信号的局部变化,较好地解决了第一代小波在处理不连续信号时性能不是非常理想的问题,本发明中的体温补偿模型无需精确测量体温,大大降低了对硬件设计的要求。另外,本发明中的体温补偿模型在处理第n个数据时,只有自适应更新算子U(d[n])、预测算子P(a′[n])和补偿因子c[n]中会涉及到第n-1个数据,所以本模型只是一阶数字滤波器,所需数据存储和计算都已降到最低。因此,请参阅图7,图7是体温补偿结果的示意图,本发明通过使用第二代小波中的提升框架,建立更具有灵活性和通用性的体温补偿模型,实现了高精度、低功耗地对电子可穿戴设备进行实时体温补偿,有效消除了体温对电子可穿戴设备性能所带来的影响。Through the above technical solution, the parameter of human skin temperature is not needed in this model, so a high-precision temperature sensor can be omitted from the hardware, and the power consumption can be effectively reduced. Compared with the simple body temperature compensation model, the lifting frame as the second generation wavelet comprehensively considers the local changes of the signal, which better solves the problem that the performance of the first generation wavelet is not very ideal when dealing with discontinuous signals. The compensation model does not require accurate body temperature measurement, which greatly reduces the requirements for hardware design. In addition, when the body temperature compensation model in the present invention processes the nth data, there are only the adaptive update operator U(d[n]), the prediction operator P(a'[n]) and the compensation factor c[n]. The n-1th data will be involved, so this model is only a first-order digital filter, and the required data storage and calculation have been reduced to a minimum. Therefore, please refer to FIG. 7, which is a schematic diagram of the body temperature compensation result. The present invention establishes a more flexible and versatile body temperature compensation model by using the lifting framework in the second generation wavelet, and realizes high precision and low power consumption. Real-time body temperature compensation for electronic wearable devices can effectively eliminate the impact of body temperature on the performance of electronic wearable devices.
在一个实施例中,本申请还提供了一种移动终端,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现所述一种基于第二代小波的体温补偿方法的步骤。其中该移动终端使用MSP430单片机作为处理器,MSP430芯片(譬如MSP430G2553)是美国某公司推出的一款16位单指令周期RISC(精简指令集)单片机。由于MSP430芯片的工作电压可以低至1.5v,所以系统供电采用1.5v的微型锂离子聚合物充电电池(Li-ion Polymer Rechargeable Battery)即可,无需像现在其他系统普通采用的3.7v的电池。如图6所示,图6是一个实施例中基于MSP430平台的低功耗体温补偿电路逻辑图,该MSP430平台包括MSP430控制芯片、模数转换设置电路、系统时钟设置电路、看门狗电路和串行通信电路和存储器。其中,请同时参阅图1,可以将可穿戴电子设备的4路传感器的任何一路模拟信号的输出,作为MSP430控制芯片的信号输入,并连接到MSP430控制芯片的第8号管角。其中:In an embodiment, the present application further provides a mobile terminal, including a memory and a processor, the memory stores a computer program, and the processor implements the second-generation wavelet-based method when the processor executes the computer program The steps of the body temperature compensation method. The mobile terminal uses an MSP430 microcontroller as a processor, and the MSP430 chip (such as MSP430G2553) is a 16-bit single instruction cycle RISC (reduced instruction set) microcontroller launched by a company in the United States. Since the working voltage of the MSP430 chip can be as low as 1.5v, the system power supply can be powered by a 1.5v micro Li-ion Polymer Rechargeable Battery (Li-ion Polymer Rechargeable Battery), instead of the 3.7v battery commonly used by other systems today. As shown in FIG. 6 , FIG. 6 is a logic diagram of a low-power body temperature compensation circuit based on the MSP430 platform in one embodiment. The MSP430 platform includes an MSP430 control chip, an analog-to-digital conversion setting circuit, a system clock setting circuit, a watchdog circuit and Serial communication circuits and memories. Among them, please refer to Figure 1 at the same time, any one of the analog signal outputs of the 4-way sensors of the wearable electronic device can be used as the signal input of the MSP430 control chip and connected to the No. 8 tube corner of the MSP430 control chip. in:
所述系统时钟设置电路,MSP430内部集成了14kHz的振动器,所以可以无需外接晶振。根据需要编程实现主时钟(MCLK)的时钟频率,以便在高速度(从14kHz到1.12MHz)和低功耗之间做出良好的折中,最大限度地发挥单片机的性能。In the system clock setting circuit, the MSP430 integrates a 14kHz vibrator, so no external crystal is required. The master clock (MCLK) clock frequency is programmed as needed to make a good compromise between high speed (from 14kHz to 1.12MHz) and low power consumption to maximize the performance of the microcontroller.
所述模数转换电路,采用MSP430芯片内置的10bitA/D(10位模数转换)接口,通过调节可变电阻R1,使得参考电压Vref+能够适应0v~1.5v,满足传感器模拟信号的最大动态范围。The analog-to-digital conversion circuit adopts the built-in 10bitA/D (10-bit analog-to-digital conversion) interface of the MSP430 chip. By adjusting the variable resistor R1, the reference voltage Vref+ can adapt to 0v ~ 1.5v, and meet the maximum dynamic range of the sensor analog signal. .
其中,MSP430芯片可以进行模数转换速率设置,MSP430芯片的10bitA/D模数转换速率可以动态设置在200ksps以内。考虑到模拟信号的带宽在1Hz数量级,系统采样速率可以设置为4Hz。模数转换速率相应设置为40sps,能够大大降低系统的功耗。Among them, the MSP430 chip can set the analog-to-digital conversion rate, and the 10bitA/D analog-to-digital conversion rate of the MSP430 chip can be dynamically set within 200ksps. Considering that the bandwidth of the analog signal is in the order of 1Hz, the system sampling rate can be set to 4Hz. The analog-to-digital conversion rate is correspondingly set to 40sps, which can greatly reduce the power consumption of the system.
所述看门狗电路,在MSP430芯片的第1和16管脚间增加看门狗电路,当系统程序出现问题时,就会产生一个系统复位信号,帮助系统复位并重新启动程序。In the watchdog circuit, a watchdog circuit is added between the 1st and 16th pins of the MSP430 chip. When a problem occurs in the system program, a system reset signal will be generated to help the system reset and restart the program.
所述存储器,通过将体温补偿处理程序采用汇编语言实现一种基于第二代小波的体温补偿方法,并加载到MSP430芯片的非易失存储器Flash中。The memory implements a body temperature compensation method based on the second-generation wavelet by adopting the body temperature compensation processing program in assembly language, and is loaded into the non-volatile memory Flash of the MSP430 chip.
由于体温补偿模型较为简单,为了降低功耗,更好地发挥MSP430芯片的低功耗特性,可以把不需要的数据存储器关闭。数据存储器RAM只有512个字节,主要用于存储变量和运算的中间结果,本系统所需的存储量在100个字节以内,所以可以关闭约80%的数据存储器。Because the body temperature compensation model is relatively simple, in order to reduce power consumption and better utilize the low power consumption characteristics of the MSP430 chip, the unnecessary data memory can be turned off. The data memory RAM has only 512 bytes, which is mainly used to store variables and intermediate results of operations. The storage required by this system is within 100 bytes, so about 80% of the data memory can be closed.
需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。It should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile In the computer-readable storage medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
所述串行通信接口电路,补偿后的信号处理结果可以通过串行通信接口电路(第7、14、15管脚)与外围的从机进行数据通信。其中,因可穿戴传感器处理后的结果需要实时传输给手机,所以,所述的外围的从机可以是一个低功耗的蓝牙模块。通过这个外围从机与智能手机进行无线通信。In the serial communication interface circuit, the compensated signal processing result can perform data communication with peripheral slaves through the serial communication interface circuit (pins 7, 14, and 15). Among them, because the result processed by the wearable sensor needs to be transmitted to the mobile phone in real time, the peripheral slave may be a low-power Bluetooth module. Wireless communication with the smartphone is carried out through this peripheral slave.
本发明通过采用MSP430这样的单指令周期RISC芯片,该模型中每个数据的核心处理部分,总共需要不到100次加法或者乘法单指令,数据处理负担非常轻,从理论与算法上确保了低功耗的可实现性;系统的硬件实现时,将信号运放、A/D转换和数字信号处理高度集成在一个芯片内,集成度高并且可以动态调整信号处理算法,从而提高系统的自适应性和可拓展性,从而硬件设计上再次确保了系统的低功耗。The present invention adopts a single instruction cycle RISC chip such as MSP430. The core processing part of each data in this model requires less than 100 single instructions of addition or multiplication in total, and the data processing burden is very light, ensuring low theoretical and algorithmic requirements. Realizability of power consumption; when the hardware of the system is implemented, the signal op amp, A/D conversion and digital signal processing are highly integrated in one chip, the integration is high and the signal processing algorithm can be dynamically adjusted, thereby improving the self-adaptation of the system Therefore, the hardware design ensures the low power consumption of the system again.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
步骤S100、输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号;其中,所述原始信号为待校准补偿的生物标志物检测结果;具体如一种基于第二代小波的体温补偿方法所述,在此不再赘述。Step S100, input the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated; The body temperature compensation method of the second generation wavelet is described, and will not be repeated here.
步骤S200、根据所述近似信号和细节信号计算得到补偿因子;具体如一种基于第二代小波的体温补偿方法所述,在此不再赘述。Step S200: Calculate and obtain a compensation factor according to the approximate signal and the detail signal; the details are as described in a body temperature compensation method based on the second-generation wavelet, which will not be repeated here.
步骤S300、根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果。具体如一种基于第二代小波的体温补偿方法所述,在此不再赘述。Step S300: Compensate the detection result of the biomarker to be calibrated and compensated according to the compensation factor, and output the compensated detection result of the biomarker by the body temperature compensation model. The details are as described in a body temperature compensation method based on the second-generation wavelet, which will not be repeated here.
综上所述,本发明所述提供的一种基于第二代小波的体温补偿方法、移动终端及存储介质,通过使用第二代小波中的提升框架,建立更具有灵活性和通用性的体温补偿模型,与简单的体温补偿模型相比,提升框架作为第二代小波综合考虑信号的局部变化,较好地解决了第一代小波在处理不连续信号时性能不是非常理想的问题;该模型无需精确测量体温,大大降低了对硬件设计的要求;采用MSP430这样的单指令周期RISC芯片,该模型中每个数据的核心处理部分,总共需要不到100次加法或者乘法单指令,数据处理负担非常轻,从理论与算法上确保了低功耗的可实现性;系统的硬件实现时,将 信号运放、A/D转换和数字信号处理高度集成在一个芯片内,集成度高并且可以动态调整信号处理算法,从硬件设计上再次确保了系统的低功耗。MSP430单片机平台的核心是16位单指令周期的RISC处理器,与其他众多的单片机相比,最为显著的优点是运算能力强,整体功耗低。系统可以根据实际需要,通过编程实现系统主时钟的时钟频率,以便在高速度和低功耗之间做出良好的折中,最大限度地发挥单片机的性能。为了更好地发挥MSP430的低功耗特性,系统工作时会关闭不需要的存储器。因此,本申请实现了高精度、低功耗地对电子可穿戴设备进行实时体温补偿,有效消除了体温对电子可穿戴设备性能所带来的影响。To sum up, the second-generation wavelet-based body temperature compensation method, mobile terminal and storage medium provided by the present invention can establish a more flexible and versatile body temperature by using the lifting frame in the second-generation wavelet. Compensation model, compared with the simple body temperature compensation model, the lifting frame as the second generation wavelet comprehensively considers the local changes of the signal, and better solves the problem that the performance of the first generation wavelet is not very ideal when dealing with discontinuous signals; this model There is no need to accurately measure body temperature, which greatly reduces the requirements for hardware design; using a single-instruction-cycle RISC chip such as MSP430, the core processing part of each data in this model requires a total of less than 100 additions or multiplications. Single instruction, data processing burden Very light, theoretically and algorithmically ensure the achievability of low power consumption; when the system is implemented in hardware, the signal op amp, A/D conversion and digital signal processing are highly integrated into one chip, with high integration and dynamic Adjust the signal processing algorithm to ensure the low power consumption of the system again from the hardware design. The core of the MSP430 single-chip microcomputer platform is a 16-bit single-instruction cycle RISC processor. Compared with many other single-chip microcomputers, the most significant advantages are strong computing power and low overall power consumption. The system can realize the clock frequency of the main clock of the system through programming according to actual needs, so as to make a good compromise between high speed and low power consumption, and maximize the performance of the microcontroller. In order to make better use of the low power consumption of MSP430, the unnecessary memory will be turned off when the system is working. Therefore, the present application realizes real-time body temperature compensation for electronic wearable devices with high precision and low power consumption, and effectively eliminates the influence of body temperature on the performance of electronic wearable devices.
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that the application of the present invention is not limited to the above examples. For those of ordinary skill in the art, improvements or transformations can be made according to the above descriptions, and all these improvements and transformations should belong to the protection scope of the appended claims of the present invention.
Claims (10)
- 基于第二代小波的体温补偿方法,其特征在于,包括步骤:The second-generation wavelet-based body temperature compensation method is characterized in that it includes the steps of:输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号;其中,所述原始信号为待校准补偿的生物标志物检测结果;inputting the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain an approximate signal and a detail signal; wherein, the original signal is the detection result of the biomarker to be calibrated and compensated;根据所述近似信号和所述细节信号计算得到补偿因子;A compensation factor is calculated according to the approximate signal and the detail signal;根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果。The detection result of the biomarker to be calibrated and compensated is compensated according to the compensation factor, and the body temperature compensation model outputs the detection result of the biomarker after compensation.
- 根据权利要求1所述的基于第二代小波的体温补偿方法,其特征在于,输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤包括:The body temperature compensation method based on the second generation wavelet according to claim 1, characterized in that, inputting the original signal to the body temperature compensation model, and the step of dividing the original signal by the body temperature compensation model to obtain the approximate signal and the detail signal comprises:令所述原始信号为x[n](n=0,1,...,N),获取原始信号x[n]并将所述原始信号x[n]分裂为近似信号a[n]和细节信号d[n];Let the original signal be x[n] (n=0, 1, . . . , N), obtain the original signal x[n] and split the original signal x[n] into approximate signals a[n] and detail signal d[n];其中,a[n]=x[2n],d[n]=x[2n+1]。Among them, a[n]=x[2n], d[n]=x[2n+1].
- 根据权利要求2所述的基于第二代小波的体温补偿方法,其特征在于,所述根据所述近似信号和所述细节信号计算得到补偿因子的步骤包括:The body temperature compensation method based on the second generation wavelet according to claim 2, wherein the step of calculating the compensation factor according to the approximate signal and the detail signal comprises:根据所述细节信号d[n]中的信息对所述近似信号a[n]进行更新,得到更新后的近似信号a′[n];其中,更新后的近似信号a′[n]的表达式为: 表示平滑运算,其定义为: 其中,U(d[n])为自适应更新算子,其定义为: The approximate signal a[n] is updated according to the information in the detail signal d[n] to obtain the updated approximate signal a'[n]; wherein, the expression of the updated approximate signal a'[n] The formula is: represents the smoothing operation, which is defined as: Among them, U(d[n]) is the adaptive update operator, which is defined as:其中,Δ L=|a[n]-d[n-1]|,Δ R=|a[n]-d[n]|。 Among them, Δ L =|a[n]-d[n-1]|, Δ R =|a[n]-d[n]|.
- 根据权利要求3所述的基于第二代小波的体温补偿方法,其特征在于,所述根据所述近似信号和所述细节信号计算得到补偿因子的步骤还包括:The body temperature compensation method based on the second generation wavelet according to claim 3, wherein the step of calculating the compensation factor according to the approximate signal and the detail signal further comprises:根据所述更新后的近似信号a′[n]中包含的信息对所述细节信号d[n]进行预测,得到预测的细节信号d′[n];Predict the detail signal d[n] according to the information contained in the updated approximate signal a'[n], to obtain a predicted detail signal d'[n];其中,预测的细节信号d′[n]的表达式为:d′n]=d[n]-P(a′[n]);The expression of the predicted detail signal d'[n] is: d'n]=d[n]-P(a'[n]);
- 根据权利要求4所述的基于第二代小波的体温补偿方法,其特征在于,所述根据所述两个数据流计算得到补偿因子的步骤还包括:The body temperature compensation method based on the second generation wavelet according to claim 4, wherein the step of calculating the compensation factor according to the two data streams further comprises:根据所述更新后的近似信号a′[n]和所述更新后的细节信号d′[n]计算得到补偿因子c[n];其中,补偿因子c[n]的表达式为:The compensation factor c[n] is calculated according to the updated approximate signal a'[n] and the updated detail signal d'[n]; wherein, the expression of the compensation factor c[n] is:
- 根据权利要求1所述的基于第二代小波的体温补偿方法,其特征在于,所述输入原始信号至体温补偿模型,所述体温补偿模型将所述原始信号分裂得到近似信号和细节信号的步骤之前还包括:The body temperature compensation method based on the second generation wavelet according to claim 1, wherein the inputting the original signal to the body temperature compensation model, and the body temperature compensation model splits the original signal to obtain the approximate signal and the detail signal. Also included before:初始化补偿次数n、更新后的近似信号的二阶范数||a′[n]||和补偿因子c[n];其中,n=0,||a′[0]||=0,c[0]=0。Initialize the number of compensation n, the second-order norm ||a'[n]|| of the updated approximate signal, and the compensation factor c[n]; where n=0, ||a'[0]||=0, c[0]=0.
- 根据权利要求1所述的基于第二代小波的体温补偿方法,其特征在于,所述根据所述补偿因子补偿所述待校准补偿的生物标志物检测结果,所述体温补偿模型输出补偿后的生物标志物检测结果的步骤还包括:The body temperature compensation method based on the second generation wavelet according to claim 1, characterized in that, according to the compensation factor to compensate the biomarker detection result to be calibrated and compensated, the body temperature compensation model outputs the compensated Steps for biomarker test results also include:在进行第n=n+1次补偿时,根据第n=n+1次输入的待校准补偿的生物标志物检测结果,对所述补偿因子进行更新并得到更新后的补偿因子;When performing the n=n+1th compensation, according to the n=n+1th input of the biomarker detection result to be calibrated and compensated, the compensation factor is updated to obtain the updated compensation factor;根据所述更新后的补偿因子补偿所述第n=n+1次输入的待校准补偿的生物标志物检测结果,其表达式为:The biomarker detection result to be calibrated and compensated for the n=n+1th input is compensated according to the updated compensation factor, and its expression is:x′[n+1]=x[n+1]-c[n+1],其中x[n+1]表示第n=n+1次输入的待校准补偿 的生物标志物检测结果,c[n+1]表示更新后的补偿因子,x′[n+1]表示在进行第n=n+1次补偿后的生物标志物检测结果。x'[n+1]=x[n+1]-c[n+1], where x[n+1] represents the biomarker detection result to be calibrated and compensated for the n=n+1th input, c [n+1] represents the updated compensation factor, and x'[n+1] represents the biomarker detection result after the n=n+1th compensation.
- 根据权利要求1所述的基于第二代小波的体温补偿方法,其特征在于,所述待校准补偿的生物标志物检测结果为血糖含量、乳酸含量、钾离子浓度和钠离子浓度四种结果中的任意一种。The method for body temperature compensation based on the second generation wavelet according to claim 1, wherein the detection result of the biomarker to be calibrated and compensated is one of four results: blood glucose content, lactic acid content, potassium ion concentration and sodium ion concentration. any of the .
- 一种移动终端,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述方法的步骤。A mobile terminal, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when the processor executes the computer program.
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/102102 WO2022011595A1 (en) | 2020-07-15 | 2020-07-15 | Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium |
CN202080001250.0A CN112040866B (en) | 2020-07-15 | 2020-07-15 | Body temperature compensation method based on second-generation wavelet, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/102102 WO2022011595A1 (en) | 2020-07-15 | 2020-07-15 | Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022011595A1 true WO2022011595A1 (en) | 2022-01-20 |
Family
ID=73573592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/102102 WO2022011595A1 (en) | 2020-07-15 | 2020-07-15 | Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112040866B (en) |
WO (1) | WO2022011595A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104434064A (en) * | 2014-11-26 | 2015-03-25 | 中国科学院计算技术研究所 | Method for processing and tracking heart rate and respiration rate signals and a system thereof |
US20160089086A1 (en) * | 2014-09-26 | 2016-03-31 | Pixart Imaging Inc. | Heart rate detection module, and detection and denoising method thereof |
CN110146201A (en) * | 2019-04-13 | 2019-08-20 | 复旦大学 | A kind of transducing signal conditioning system and temperature-compensation method with temperature-compensating |
CN110177502A (en) * | 2017-09-13 | 2019-08-27 | 美敦力泌力美公司 | For calibrating and optimizing method, system and the equipment of glucose sensor and sensor output |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7398173B2 (en) * | 2005-05-04 | 2008-07-08 | Ami Semiconductor, Inc. | Providing nonlinear temperature compensation for sensing means by use of Padé approximant function emulators |
CN101596554B (en) * | 2009-07-01 | 2011-06-01 | 燕山大学 | Cold belt rolling mill panel thickness control limited frequency domain feedforward compensation method based on wave function |
CN102999884B (en) * | 2011-09-16 | 2015-11-25 | 株式会社东芝 | Image processing equipment and method |
CN105004278B (en) * | 2015-07-10 | 2018-03-16 | 东南大学 | Real-time baseline and denoising method based on distributed sensor and small echo analytic technique |
CN108828301A (en) * | 2018-03-07 | 2018-11-16 | 江苏大学 | A kind of method for detecting voltage drop based on complex wavelet transform Yu Teager energy operator |
-
2020
- 2020-07-15 CN CN202080001250.0A patent/CN112040866B/en active Active
- 2020-07-15 WO PCT/CN2020/102102 patent/WO2022011595A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160089086A1 (en) * | 2014-09-26 | 2016-03-31 | Pixart Imaging Inc. | Heart rate detection module, and detection and denoising method thereof |
CN104434064A (en) * | 2014-11-26 | 2015-03-25 | 中国科学院计算技术研究所 | Method for processing and tracking heart rate and respiration rate signals and a system thereof |
CN110177502A (en) * | 2017-09-13 | 2019-08-27 | 美敦力泌力美公司 | For calibrating and optimizing method, system and the equipment of glucose sensor and sensor output |
CN110146201A (en) * | 2019-04-13 | 2019-08-20 | 复旦大学 | A kind of transducing signal conditioning system and temperature-compensation method with temperature-compensating |
Also Published As
Publication number | Publication date |
---|---|
CN112040866A (en) | 2020-12-04 |
CN112040866B (en) | 2023-06-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2022202343B2 (en) | Methods, systems, and devices for calibration and optimization of glucose sensors and sensor output | |
CA3008638C (en) | Methods, systems, and devices for sensor fusion | |
US11166653B2 (en) | Reconfigurable, multi-technique electrochemical portable biosensor | |
KR102307374B1 (en) | Use of electrochemical impedance spectroscopy(eis) in continuous glucose monitoring | |
WO2020160023A1 (en) | Methods, systems, and devices for continuous glucose monitoring | |
CA3008647A1 (en) | Sensor-unspecific calibration methods and systems | |
EP3351169A1 (en) | Apparatus and method for measuring bioelectrical impedance and apparatus and method for measuring biometric information | |
Hanitra et al. | Multichannel front-end for electrochemical sensing of metabolites, drugs, and electrolytes | |
KR20190054892A (en) | System and method for controlling sensing device | |
Dheman et al. | ImpediSense: A long lasting wireless wearable bio-impedance sensor node | |
WO2022011595A1 (en) | Body temperature compensation method based on second generation wavelet, and mobile terminal and storage medium | |
Sarkar et al. | SStat: Wi-Fi and Bluetooth integrated Multimodal" Do-It-Yourself" Electrochemical Potentiostat | |
US20200355732A1 (en) | Impedance measurement circuit | |
Sankhala et al. | Analysis of bio-electro-chemical signals from passive sweat-based wearable electro-impedance spectroscopy (EIS) towards assessing blood glucose modulations | |
Rimoldi | Achieving efficiency in blood glucose meter design | |
CN116313099A (en) | Blood glucose data acquisition method, blood glucose data generation method, blood glucose data acquisition device and blood glucose data generation medium | |
Qin et al. | Wearable real-time multi-health parameter monitoring system | |
CN106198945A (en) | Low-power consumption glucose motion detection device | |
Monge et al. | Multi-node potentiostat device and multiplatform mobile application for on-field measurements | |
CN114287891A (en) | Intelligent finger-clamping type monitor | |
CN112308026A (en) | Surgical instrument clamping force sensing method based on deep learning | |
Manoharan et al. | Platform-agnostic electrochemical sensing app and companion potentiostat | |
Kuang et al. | Live demonstration: an IoT wearable device for real-time blood glucose prediction with edge AI | |
Chang et al. | TDPRO: Ultra-low Power ECG Processor with High-Precision Time-Domain Computing Engine | |
Zhang | Feasibility Study of Wearable Sweat Sodium Sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20945646 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20945646 Country of ref document: EP Kind code of ref document: A1 |