Blood pressure detection signal sampling and compensation method and apparatus, and blood pressure signal collection system
11375908 · 2022-07-05
Assignee
Inventors
Cpc classification
G16H50/20
PHYSICS
A61B5/318
HUMAN NECESSITIES
A61B5/02416
HUMAN NECESSITIES
A61B5/7278
HUMAN NECESSITIES
H03M1/1255
ELECTRICITY
A61B5/0245
HUMAN NECESSITIES
G06F1/12
PHYSICS
International classification
G06F1/12
PHYSICS
A61B5/318
HUMAN NECESSITIES
A61B5/0245
HUMAN NECESSITIES
G16H50/20
PHYSICS
A61B5/00
HUMAN NECESSITIES
Abstract
Blood pressure detection signal sampling and compensation methods and apparatuses, and an example blood pressure signal collection system are described. One example method described includes controlling an electrocardiogram (ECG) sampling module and a photoplethysmogram (PPG) sampling module to simultaneously sample a standard periodic signal. Sampling frequencies and sampling end times are separately obtained. A sampling start time and a sampling frequency of the ECG sampling module or the PPG module is then compensated so that a sampling frequency deviation is less than a preset frequency threshold and a sampling end time difference is less than a preset time threshold.
Claims
1. A blood pressure detection signal sampling and compensation method, comprising: controlling an electrocardiogram (ECG) sampling module and a photoplethysmogram (PPG) sampling module to simultaneously sample a standard periodic signal; separately obtaining sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal; compensating for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the ECG sampling module for the standard periodic signal is less than the preset frequency threshold; compensating for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the PPG sampling module for the standard periodic signal is less than the preset frequency threshold; and compensating for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, wherein the compensating causes the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold.
2. The method according to claim 1, wherein before the controlling an ECG sampling module and a PPG sampling module to simultaneously sample a standard periodic signal, the method further comprises: generating a high-precision clock signal, wherein precision of the high-precision clock signal is one order of magnitude higher than precision of clock signals in the ECG sampling module and the PPG sampling module; the controlling an ECG sampling module and a PPG sampling module to simultaneously sample a standard periodic signal comprises: controlling, based on the high-precision clock signal, the ECG sampling module and the PPG sampling module to simultaneously sample the standard periodic signal; and the separately obtaining sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal comprises: recording the sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal based on the high-precision clock signal.
3. The method according to claim 2, wherein the high-precision clock signal is generated by any one of a high-precision system crystal oscillator, a synchronization calibration clock signal of a Bluetooth module, and a synchronization calibration clock signal of a Wireless Fidelity (WiFi) module; and the high-precision clock signal comprises: any one of a sine wave signal, a triangular wave signal, and a sawtooth signal.
4. The method according to claim 2, wherein before the controlling an ECG sampling module and a PPG sampling module to separately sample a standard periodic signal, the method further comprises: generating the standard periodic signal based on the high-precision clock signal.
5. The method according to claim 3, wherein before the controlling an ECG sampling module and a PPG sampling module to separately sample a standard periodic signal, the method further comprises: generating the standard periodic signal based on the high-precision clock signal.
6. The method according to claim 5, wherein the controlling an ECG sampling module and a PPG sampling module to separately sample a standard periodic signal comprises: controlling the ECG sampling module to sample the standard periodic signal, and calculating a frequency f.sub.1 of sampled data; and controlling the PPG sampling module to sample the standard periodic signal, and calculating a frequency f.sub.2 of sampled data; the separately obtaining sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal comprises: calculating Δf.sub.10=|f.sub.1−f.sub.0| and Δf.sub.20=|f.sub.1−f.sub.0| wherein f.sub.0 is a frequency of the standard periodic signal, Δf.sub.10 is the sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δf.sup.20 is the sampling frequency deviation of the PPG sampling module for the standard periodic signal; the compensating for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the ECG sampling module for the standard periodic signal is less than the preset frequency threshold comprises: if Δf.sub.10>F.sub.0 and f.sub.1>f.sub.0, reducing data sampled by the ECG sampling module by a quantity L, wherein (Δf.sub.10−F.sub.0)≤L≤Δf.sub.10, and using (F.sub.1−L) a new sampling frequency of the ECG sampling module, wherein F.sub.1 is an original sampling frequency of the ECG sampling module, and F.sub.0 is the preset frequency threshold; or if Δf.sub.10>F.sub.0 and f.sub.1<f.sub.0, increasing data sampled by the ECG sampling module by a quantity M, wherein (Δf.sub.10−F.sub.0)≤M≤Δf.sub.10 and using (F.sub.1+M) as a new sampling frequency of the ECG sampling module; and the compensating for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the PPG sampling module for the standard periodic signal is less than the preset frequency threshold comprises: if Δf.sub.20>F.sub.0 and f.sub.2>f.sub.0, reducing data sampled by the PPG sampling module by a quantity N, wherein and using (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20 as a new sampling frequency of the PPG sampling module, wherein F.sub.2 is an original sampling frequency of the PPG sampling module; or if Δf.sub.20>F.sub.0 and f.sub.2<f.sub.0, increasing data sampled by the PPG sampling module by a quantity P, wherein (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20, and using (F.sub.2+P) as a new sampling frequency of the PPG sampling module.
7. The method according to claim 6, wherein the compensating for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, wherein the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold comprises: calculating the sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal, wherein Δt.sub.21=|t.sub.2−t.sub.1|, t.sub.1 is a sampling end time of the ECG sampling module for the standard periodic signal, and t.sub.2 sampling end time of the PPG sampling module for the standard periodic signal; and delaying a sampling time-to-trigger t.sub.p1 of the ECG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met, wherein t.sub.p2 is a sampling time-to-trigger of the PPG sampling module, and T.sub.0 is the preset time threshold; or delaying a sampling time-to-trigger t.sub.p2 of the PPG sampling module if Δt.sub.21>T.sub.0 and t.sub.2<t.sub.1, wherein delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met.
8. The method according to claim 1, wherein the controlling an ECG sampling module and a PPG sampling module to separately sample a standard periodic signal comprises: controlling the ECG sampling module to sample the standard periodic signal, and calculating a frequency f.sub.1 of sampled data; and controlling the PPG sampling module to sample the standard periodic signal, and calculating a frequency f.sub.2 of sampled data; the separately obtaining sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal comprises: calculating Δf.sub.10=|f.sub.1−f.sub.0|, wherein f.sub.0 is a frequency of the standard periodic signal, Δf.sub.10 is the sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δf.sub.20 is the sampling frequency deviation of the PPG sampling module for the standard periodic signal; the compensating for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the ECG sampling module for the standard periodic signal is less than the preset frequency threshold comprises: if Δf.sub.10>f.sub.0 and f.sub.1>f.sub.0, reducing data sampled by the ECG sampling module by a quantity L, wherein (Δf.sub.10−f.sub.0)≤L≤Δf.sub.10, and using (f.sub.1−L) as a new sampling frequency of the ECG sampling module, wherein f.sub.1 is an original sampling frequency of the ECG sampling module, and f.sub.0 is the preset frequency threshold; or if Δf.sub.10>f.sub.0 and f.sub.1<f.sub.0, increasing data sampled by the ECG sampling module by a quantity M, wherein (Δf.sub.10−f.sub.0)≤M≤Δf.sub.10, and using (f.sub.1+M) as a new sampling frequency of the ECG sampling module; and the compensating for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the PPG sampling module for the standard periodic signal is less than the preset frequency threshold comprises: if Δf.sub.20>F.sub.0 and f.sub.2>f.sub.0, reducing data sampled by the PPG sampling module by a quantity N, wherein (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20, and using (F.sub.2−N) as a new sampling frequency of the PPG sampling module, wherein F.sub.2 is an original sampling frequency of the PPG sampling module; or if Δf.sub.20>F.sub.0 and f.sub.2<f.sub.0, increasing data sampled by the PPG sampling module by a quantity P, wherein (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20, and using (F.sub.2+P) as a new sampling frequency of the PPG sampling module.
9. The method according to claim 1, wherein the compensating for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, wherein the compensating causes the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold comprises: calculating the sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal, wherein Δt.sub.21=|t.sub.2−t.sub.1|, t.sub.1 is a sampling end time of the ECG sampling module for the standard periodic signal, and t.sub.2 is a sampling end time of the PPG sampling module for the standard periodic signal; and delaying a sampling time-to-trigger t.sub.p1 of the ECG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1 wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met, wherein t.sub.p2 is a sampling time-to-trigger of the PPG sampling module, and T.sub.0 is the preset time threshold; or delaying a sampling time-to-trigger t.sub.p2 of the PPG sampling module if Δt.sub.21>T.sub.0 and t.sub.2<t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met.
10. A blood pressure signal sampling system, comprising an electrocardiogram (ECG) sampling module, a photoplethysmogram (PPG) sampling module, and at least one processor, wherein the processor is configured to: control the ECG sampling module and the PPG module to simultaneously sample a standard periodic signal; separately obtain sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal; compensate for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the ECG sampling module for the standard periodic signal to be less than the preset frequency threshold; compensate for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, wherein the compensating causes the sampling frequency deviation of the PPG sampling module for the standard periodic signal to be less than the preset frequency threshold; and compensate for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, wherein the compensating causes the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal to be less than the preset time threshold.
11. The system according to claim 10, further comprising a clock module, the clock module configured to generate a high-precision clock signal, wherein precision of the high-precision clock signal is one order of magnitude higher than precision of clock signals in the ECG sampling module and the PPG sampling module; and the at least one processor is configured to: control, based on the high-precision clock signal, the ECG sampling module and the PPG sampling module to simultaneously sample the standard periodic signal; and record the sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal based on the high-precision clock signal.
12. The system according to claim 11, wherein the clock module comprises any one of a high-precision system crystal oscillator, a clock module in a Bluetooth module, and a clock module in a Wireless Fidelity (WiFi) module; the high-precision clock signal is generated by any one of the high-precision system crystal oscillator, a synchronization calibration clock signal of the Bluetooth module, and a synchronization calibration clock signal of the WiFi module; and the high-precision clock signal comprises: any one of a sine wave signal, a triangular wave signal, and a sawtooth signal.
13. The system according to claim 11, wherein the at least one processor is further configured to generate the standard periodic signal based on the high-precision clock signal.
14. The system according to claim 12, wherein the at least one processor is further configured to generate the standard periodic signal based on the high-precision clock signal.
15. The system according to claim 14, wherein the at least one processor is configured to: control the ECG sampling module to sample the standard periodic signal, and calculate a frequency f.sub.1 of sampled data; control the PPG sampling module to sample the standard periodic signal, and calculate a frequency f.sub.2 of sampled data; calculate Δf.sub.10=|f.sub.1−f.sub.0| and Δf.sub.20=|f.sub.2−f.sub.0|, wherein f.sub.0 is a frequency of the standard periodic signal, Δf.sub.10 is the sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δf.sub.20 is the sampling frequency deviation of the PPG sampling module for the standard periodic signal; and if Δf.sub.10>F.sub.0 and f.sub.1>f.sub.0, reduce data sampled by the ECG sampling module by a quantity L, wherein (Δf.sub.10−F.sub.0)≤L≤Δf.sub.10, and use (F.sub.1−L) as a new sampling frequency of the ECG sampling module, wherein F.sub.1 is an original sampling frequency of the ECG sampling module, and F.sub.0 is the preset frequency threshold; if Δf.sub.10>F.sub.0 and f.sub.1<f.sub.0, increase data sampled by the ECG sampling module by a quantity M, wherein (Δf.sub.10−F.sub.0)≤M≤Δf.sub.10, and use (F.sub.1+M) as a new sampling frequency of the ECG sampling module; if Δf.sub.20>F.sub.0 and f.sub.2>f.sub.0 reduce data sampled by the PPG sampling module by a quantity N, wherein (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20, and use (F.sub.2−N) as a new sampling frequency of the PPG sampling module, wherein F.sub.2 is an original sampling frequency of the PPG sampling module; or if Δf.sub.20>F.sub.0 and f.sub.2<f.sub.0, increase data, sampled by the PPG sampling module by a quantity P, wherein (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20 (F.sub.2+P) as a new sampling frequency of the PPG sampling module.
16. The system according to claim 15, wherein the at least one processor is configured to: calculate the sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal, wherein Δt.sub.21=|t.sub.2−t.sub.1|, t.sub.1 is a sampling end time of the ECG sampling module for the standard periodic signal, and t.sub.2 is a sampling end time of the PPG sampling module for the standard periodic signal; and delay a sampling time-to-trigger t.sub.p1 of the ECG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met, wherein t.sub.p2 is a sampling time-to-trigger of the PPG sampling module, and T.sub.0 is the preset time threshold; or delay a sampling time-to-trigger t.sub.p2 of the PPG sampling module if Δt.sub.21>T.sub.0 and t.sub.2<t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met.
17. The system according to claim 10, wherein the at least one processor is configured to: control the ECG sampling module to sample the standard periodic signal, and calculate a frequency f.sub.1 of sampled data; control the PPG sampling module to sample the standard periodic signal, and calculate a frequency f.sub.2 of sampled data; calculate Δf.sub.10=|f.sub.1−f.sub.0| and Δf.sub.20=|f.sub.2−f.sub.0|, wherein f.sub.0 is a frequency of the standard periodic signal, Δf.sub.10 is the sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δf.sub.20 is the sampling frequency deviation of the PPG sampling module for the standard periodic signal; and if Δf.sub.10>F.sub.0 and f.sub.1>f.sub.0, reduce data sampled by the ECG sampling module by a quantity L, wherein (Δf.sub.10−F.sub.0)≤L≤Δf.sub.10, and use (F.sub.1−L) as a new sampling frequency of the ECG sampling module, wherein F.sub.1 is an original sampling frequency of the ECG sampling module, and F.sub.0 is the preset frequency threshold; if Δf.sub.10>F.sub.0 and f.sub.1<f.sub.0, increase data sampled by the ECG sampling module by a quantity M, wherein (Δf.sub.10−F.sub.0)≤M≤Δf.sub.10, and use (F.sub.1+M) as a new sampling frequency of the ECG sampling module; if Δf.sub.20>F.sub.0 and f.sub.2>f.sub.0, reduce data sampled by the PPG sampling module by a quantity N, wherein (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20 and use (F.sub.2−N) as a new sampling frequency of the PPG sampling module, wherein F.sub.2 is an original sampling frequency of the PPG sampling module; or if Δf.sub.20>F.sub.0 and f.sub.2<f.sub.0, increase data sampled by the PPG sampling module by a quantity P, wherein (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20, and use (F.sub.2+P) as a new sampling frequency of the PPG sampling module.
18. The system according to claim 10, wherein the at least one processor is configured to: calculate the sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal, wherein Δt.sub.21=|t.sub.2−t.sub.1|, is a sampling end time of the ECG sampling module for the standard periodic signal, and t.sub.2 is a sampling end time of the PPG sampling module for the standard periodic signal; and delay a sampling time-to-trigger t.sub.p1 of the ECG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met, wherein t.sub.p2 is a sampling time-to-trigger of the PPG sampling module, and T.sub.0 is the preset time threshold; or delay a sampling time-to-trigger t.sub.p2 of the PPG sampling module if Δt.sub.21>T.sub.0 and t.sub.2<t.sub.1, wherein the delaying causes T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 to be met.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art.
(2) Apparently, the accompanying drawings in the following description show some embodiments of the present invention, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DESCRIPTION OF EMBODIMENTS
(10) To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following clearly and completely describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
(11) When a PTT method is used to measure a blood pressure, an ECG signal and a PPG signal of a user need to be measured synchronously, a PTT is obtained by analyzing the ECG signal and the PPG signal, and then values of a systolic blood pressure and a diastolic blood pressure are obtained by using a relationship between the PTT and the blood pressure. The ECG signal and the PPG signal are respectively sampled by using a corresponding ECG sampling module and PPG sampling module. However, because sampling frequencies and sampling times of the ECG sampling module and the PPG sampling module may have deviations, the PTT obtained by analyzing the ECG signal and the PPG signal may have a deviation. Consequently, a finally obtained blood pressure value may be affected.
(12) Therefore, the embodiments of the present invention provide a blood pressure detection signal sampling and compensation method, so as to compensate for signals collected by the ECG sampling module and the PPG sampling module, so that a deviation of the finally measured blood pressure value is less than a preset threshold.
(13)
(14) Step S101: Control an ECG sampling module and a PPG sampling module to simultaneously sample a standard periodic signal.
(15) Specifically, an ECG signal and a PPG signal are respectively collected by the ECG sampling module and the PPG sampling module, and the ECG sampling module and the PPG sampling module are mutually independent. Therefore, sampling times and sampling frequencies of the ECG sampling module and the PPG sampling module may have deviations. Consequently, there is a deviation in time synchronization or frequency synchronization of the ECG signal and the PPG signal that are obtained through sampling. As a result, there is an error in a PTT. Therefore, to resolve the PTT error, a sampling time deviation between and sampling frequency deviations of the ECG sampling module and the PPG sampling module need to be eliminated. In this case, the sampling time deviation between and the sampling frequency deviations of the ECG sampling module and the PPG sampling module need to be measured first, so that the sampling times and the sampling frequencies of the ECG sampling module and the PPG sampling module can be compensated for. In this way, the PTT error is reduced to an allowed range, so that an error of a blood pressure value measured by using a PTT method falls within an allowed range.
(16) To measure the sampling time deviation between and the sampling frequency deviations of the ECG sampling module and the PPG sampling module, the ECG sampling module and the PPG sampling module may be separately controlled to simultaneously sample a standard periodic signal.
(17) Step S102: Separately obtain sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal.
(18) First, when the ECG sampling module and the PPG sampling module are separately controlled to sample the standard periodic signal, sampling frequencies of signals obtained through sampling by the ECG sampling module and the PPG sampling module are separately recorded, and the sampling end times are separately recorded.
(19) A timer may be used to control the ECG sampling module and the PPG sampling module to simultaneously perform sampling. A controller simultaneously sends a sampling notification message to the ECG sampling module and the PPG sampling module based on triggering of the timer, so that the ECG sampling module and the PPG sampling module simultaneously perform measurement. Because the PTT needs to be obtained by performing synchronous comparison on the signals collected by the ECG sampling module and the PPG sampling module, sampling data volumes or the sampling times of the ECG sampling module and the PPG sampling module should be the same. However, a sampling error may exist in the ECG sampling module and the PPG sampling module. Therefore, although the ECG sampling module and the PPG sampling module simultaneously start sampling, the sampling end times may be different. Therefore, the sampling end times of the ECG sampling module and the PPG sampling module are separately recorded.
(20) To detect sampling frequency errors of the ECG sampling module and the PPG sampling module, a known reference signal needs to be found, and sampling frequencies of the ECG sampling module and the PPG sampling module on the known reference signal are separately measured, so that the sampling frequency errors of the ECG sampling module and the PPG sampling module can be learned of.
(21) Herein, the ECG sampling module and the PPG sampling module are separately controlled to sample the standard periodic signal. The standard periodic signal is a standard signal such as a sine wave signal, a rectangular wave signal, a triangular wave signal, or a sawtooth signal, with a known and stable frequency. The standard periodic signal may be an existing periodic signal, or may be a newly generated periodic signal.
(22) Step S103: Compensate for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, so that the sampling frequency deviation of the ECG sampling module for the standard periodic signal is less than the preset frequency threshold.
(23) Specifically, after the ECG sampling module and the PPG sampling module separately sample the standard periodic signal, sampled data may be separately obtained, and after the two pieces of sampled data are separately analyzed, frequencies of the sampled data may be learned of. The obtained frequencies of the two pieces of sampled data are compared with the frequency of the standard periodic signal, so that the sampling frequency deviations of the ECG sampling module and the PPG sampling module for the standard periodic signal can be separately calculated.
(24) Because the frequency of the standard periodic signal is stable, sampling errors for the standard periodic signal reflect system sampling errors of the ECG sampling module and the PPG sampling module. The sampling errors of the ECG sampling module and the PPG sampling module may be eliminated by compensating for the system sampling errors of the ECG sampling module and the PPG sampling module.
(25) After the sampling frequency deviation of the ECG sampling module for the standard periodic signal is calculated, if the sampling frequency deviation of the ECG sampling module for the standard periodic signal does not exceed the preset frequency threshold, it means that the sampling frequency deviation of the ECG sampling module falls within an allowed range, and no compensation needs to be performed.
(26) If the sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds the preset frequency threshold, the sampling frequency deviation of the ECG sampling module exceeds the allowed range, and the ECG sampling module needs to be compensated for. A purpose of compensating for the ECG sampling module is to make the sampling frequency deviation of the ECG sampling module for the standard periodic signal be less than the preset frequency threshold. A method for compensating for the ECG sampling module is increasing or decreasing a quantity of sampling points of the ECG sampling module, so as to increase or decrease the sampling frequency of the ECG sampling module.
(27) Step S104: Compensate for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, so that the sampling frequency deviation of the PPG sampling module for the standard periodic signal is less than the preset frequency threshold.
(28) Specifically, after the sampling frequency deviation of the PPG sampling module for the standard periodic signal is calculated, if the sampling frequency deviation of the PPG sampling module for the standard periodic signal does not exceed the preset frequency threshold, it means that the sampling frequency deviation of the PPG sampling module falls within the allowed range, and no compensation needs to be performed.
(29) If the sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, the sampling frequency deviation of the PPG sampling module exceeds the allowed range, and the PPG sampling module needs to be compensated for. A purpose of compensating for the PPG sampling module is to make the sampling frequency deviation of the PPG sampling module for the standard periodic signal be less than the preset frequency threshold. A method for compensating for the PPG sampling module is increasing or decreasing a quantity of sampling points of the PPG sampling module, so as to increase or decrease the sampling frequency of the PPG sampling module.
(30) A compensated sampling frequency of the ECG sampling module and a compensated sampling frequency of the PPG signal are used as new sampling frequencies of the ECG sampling module and the PPG sampling module. In this way, impact on PTT calculation due to the sampling frequency deviations of the ECG sampling module and the PPG sampling module can be eliminated.
(31) Step S105: Compensate for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, so that the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold.
(32) After the sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal are obtained, determining is performed on the sampling end times, so as to determine whether the sampling end time difference exceeds the preset time threshold. The preset time threshold is an allowed error range of a deviation, and may be determined based on different precision requirements for blood pressure measurement. For example, in blood pressure measurement at a home level, the preset time threshold may be set to be relatively great, but in blood pressure measurement at a medical level, the preset time threshold needs to be set to be relatively small. If the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal does not exceed the preset time threshold, it means that the sampling time deviation between the ECG sampling module and the PPG sampling module falls within an allowed range, and no compensation needs to be performed.
(33) However, if the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds the preset time threshold, the sampling time deviation between the ECG sampling module and the PPG sampling module exceeds the allowed range, and the ECG sampling module or the PPG sampling module needs to be compensated for. The compensation may be performed on the ECG sampling module or the PPG sampling module, and may be delaying the sampling start time of the ECG sampling module or the PPG sampling module or advancing the sampling start time of the ECG sampling module or the PPG sampling module. However, generally, the sampling start time of the ECG sampling module or the PPG sampling module is delayed. In short, the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal needs to be less than the preset time threshold, and a compensated sampling start time of the ECG sampling module and a compensated sampling start time of the PPG signal are used as new sampling start times of the ECG sampling module and the PPG sampling module. In this way, impact on PTT calculation due to the time deviation between the ECG sampling module and the PPG sampling module can be eliminated.
(34) According to the blood pressure detection signal sampling and compensation method provided in this embodiment, the ECG sampling module and the PPG sampling module are controlled to sample the standard periodic signal, so as to separately obtain the sampling frequencies and the sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal, thereby compensating for the sampling start time of the ECG sampling module or the PPG sampling module and compensating for the sampling frequencies of the ECG sampling module and the PPG sampling module. In this way, the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold, and the sampling frequency deviations of the ECG sampling module and the PPG sampling module for the standard periodic signal are less than the preset frequency threshold, so that the error of the PTT determined by using the ECG sampling module and the PPG sampling module falls within the allowed range, and the error of the blood pressure value measured by using the PTT method falls within the allowed range, thereby improving precision of blood pressure measurement performed by using the PTT method.
(35) To ensure precise synchronization between the start times of the ECG sampling module and the PPG sampling module, and the stable frequency of the sampled standard periodic signal, a high-precision clock signal is required as a basis for the time synchronization and as a basis for generating the standard periodic signal. In this case, before the standard periodic signal is sampled, the high-precision clock signal may further be generated. Precision of the high-precision clock signal is one order of magnitude higher than precision of clock signals in the ECG sampling module and the PPG sampling module. The high-precision clock signal can ensure precise recording of the sampling start times and the sampling end times of the ECG sampling module and the PPG sampling module, and ensure the stable frequency of the standard periodic signal generated based on the high-precision clock signal.
(36) The high-precision clock signal is generated by any one of a high-precision system crystal oscillator, a synchronization calibration clock signal of a Bluetooth module, and a synchronization calibration clock signal of a Wireless Fidelity (Wireless Fidelity, WiFi) module. The high-precision clock signal includes any one of a sine wave signal, a triangular wave signal, and a sawtooth signal.
(37)
(38) Step S201: Control an ECG sampling module to sample a standard periodic signal, and calculate a frequency f.sub.1 of sampled data.
(39) Step S202: Control a PPG sampling module to sample the standard periodic signal, and calculate a frequency f.sub.2 of sampled data.
(40) Specifically, the blood pressure detection signal sampling and compensation method provided in this embodiment is a specific method for compensating for a frequency error of a blood pressure detection signal. First, the ECG sampling module is controlled to sample the standard periodic signal to obtain a plurality of sampled data. Then, the frequency of the signal obtained through sampling is determined based on the obtained plurality of sampled data, and is denoted as f.sub.1. The PPG sampling module is controlled to sample the standard periodic signal to obtain a plurality of sampled data. Then, the frequency of the signal obtained through sampling is determined based on the obtained plurality of sampled data, and is denoted as f.sub.2. The standard periodic signal is any signal that has a fixed frequency, such as a sine wave signal, a triangular wave signal, a rectangular wave signal, or a sawtooth signal. A method for sampling the frequency of the standard periodic signal may be a maximum value method or a minimum value method. The maximum value method is extracting peak values of obtained K pieces of data to calculate frequencies f.sub.1.sup.1, f.sub.2.sup.1, . . . , and f.sub.K.sup.1 of the data, and then averaging the frequencies of the K pieces of data in K periods to obtain f.sub.1, where f.sub.1=(f.sub.1.sup.1+f.sub.2.sup.1+ . . . +f.sub.K.sup.1)/K. Similarly, f.sub.2 may be obtained according to the method, where f.sub.2=(f.sub.1.sup.2+f.sub.2.sup.2+ . . . +f.sub.K.sup.2)/K.
(41) Step S203: Calculate Δf.sub.10=|f.sub.1−f.sub.0| and Δf.sub.20=|f.sub.2−f.sub.0|, where f.sub.0 is a frequency of the standard periodic signal, Δf.sub.10 is a sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δf.sub.20 is a sampling frequency deviation of the PPG sampling module for the standard periodic signal.
(42) Specifically, after f.sub.1 and f.sub.2 are obtained, the sampling frequency deviations of the ECG sampling module and the PPG sampling module for the standard periodic signal may be calculated according to the formulas Δf.sub.10=|f.sub.1−f.sub.0| and Δf.sub.20=|f.sub.2−f.sub.0|. f.sub.0 is the frequency of the standard periodic signal. Δf.sub.10 is the sampling frequency deviation of the ECG sampling module for the standard periodic signal, and Δ.sub.20 is the sampling frequency deviation of the PPG sampling module for the standard periodic signal.
(43) Step S204: Determine whether the sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold.
(44) Specifically, whether the sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds the preset frequency threshold is determined based on a relationship between Δf.sub.10 and F.sub.0, where F.sub.0 is the preset frequency threshold. If Δf.sub.10≤F.sub.0, it indicates that the sampling frequency deviation of the ECG sampling module for the standard periodic signal does not exceed the preset frequency threshold. In this case, it is not necessary to compensate for a sampling frequency of the ECG sampling module. This process may be terminated. If Δf.sub.10>F.sub.0, a relationship between f.sub.1 and f.sub.0 further needs to be determined. If f.sub.1>f.sub.0, step S205 is performed. If f.sub.1<f.sub.0, step S206 is performed.
(45) Step S205: If Δf.sub.10>F.sub.0 and f.sub.1>f.sub.0, reduce data sampled by the ECG sampling module by a quantity L, where (Δf.sub.10−F.sub.0)≤L≤Δf.sub.10, and use (F.sub.1−L) as a new sampling frequency of the ECG sampling module, where F.sub.1 is an original sampling frequency of the ECG sampling module, and F.sub.0 is the preset frequency threshold.
(46) Specifically, if Δf.sub.10>F.sub.0, it indicates that the sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds the preset frequency threshold, and f.sub.1>f.sub.0 indicates that the sampling frequency of the ECG sampling module for the standard periodic signal is greater than the frequency of the standard periodic signal. In this case, the sampling frequency of the ECG sampling module needs to be reduced. A method for reducing the sampling frequency of the ECG sampling module may be reducing the data sampled by the ECG sampling module by the quantity L, where (Δf.sub.10−F.sub.0)≤L≤Δf.sub.10, so as to ensure that a sampling frequency deviation of the new sampling frequency (F.sub.1−L) of the ECG sampling module can meet a requirement. F.sub.1 is the original sampling frequency of the ECG sampling module.
(47) A method for reducing the data sampled by the ECG sampling module by the quantity L may be extracting one piece of data every a specified length l, where l=(f.sub.1/L).
(48) Step S206: If Δf.sub.10>F.sub.0 and f.sub.1<f.sub.0, increase data sampled by the ECG sampling module by a quantity M, where (Δf.sub.10−F.sub.0)≤M≤Δf.sub.10, and use (F.sub.1+M) as a new sampling frequency of the ECG sampling module.
(49) Specifically, if Δf.sub.10>F.sub.0, it indicates that the sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds the preset frequency threshold, and f.sub.1<f.sub.0 indicates that the sampling frequency of the ECG sampling module for the standard periodic signal is less than the frequency of the standard periodic signal. In this case, the sampling frequency of the ECG sampling module needs to be increased. A method for increasing the sampling frequency of the ECG sampling module may be increasing the data sampled by the ECG sampling module by the quantity M, where (Δf.sub.10−F.sub.0)≤M≤Δf.sub.10, so as to ensure that a sampling frequency deviation of the new sampling frequency (F.sub.1+M) of the ECG sampling module can meet a requirement.
(50) A method for increasing the data sampled by the ECG sampling module by the quantity M may be adding one piece of data every a specified length m, where m=(f.sub.1/M).
(51) Step S207: Determine whether the sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds a preset frequency threshold.
(52) Specifically, whether the sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold is determined based on a relationship between Δf.sub.20 and F.sub.0. If Δf.sub.20≤F.sub.0, it indicates that the sampling frequency deviation of the PPG sampling module for the standard periodic signal does not exceed the preset frequency threshold. In this case, it is not necessary to compensate for a sampling frequency of the PPG sampling module. This process may be terminated. If Δf.sub.20>F.sub.0, a relationship between f.sub.2 and f.sub.0 further needs to be determined. If f.sub.2>f.sub.0, step S208 is performed. If f.sub.2<f.sub.0, step S209 is performed.
(53) Step S208: If Δf.sub.20>F.sub.0 and f.sub.2>f.sub.0, reduce data sampled by the PPG sampling module by a quantity N, where (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20, and use (F.sub.2−N) as a new sampling frequency of the PPG sampling module, where F.sub.2 is an original sampling frequency of the PPG sampling module.
(54) Specifically, if Δf.sub.20>F.sub.0, it indicates that the sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, and f.sub.2>f.sub.0 indicates that the sampling frequency of the PPG sampling module for the standard periodic signal is greater than the frequency of the standard periodic signal. In this case, the sampling frequency of the PPG sampling module needs to be reduced. A method for reducing the sampling frequency of the PPG sampling module may be reducing the data sampled by the PPG sampling module by the quantity N, where (Δf.sub.20−F.sub.0)≤N≤Δf.sub.20, so as to ensure that a sampling frequency deviation of the new sampling frequency (F.sub.2−N) of the PPG sampling module can meet a requirement. F.sub.2 is the original sampling frequency of the PPG sampling module.
(55) A method for reducing the data sampled by the PPG sampling module by the quantity N may be extracting one piece of data every a specified length n, where n=(f.sub.1/N).
(56) Step S209: If Δf.sub.20>F.sub.0 and f.sub.2<f.sub.0, increase data sampled by the PPG sampling module by a quantity P, where (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20, and use (F.sub.2+P) as a new sampling frequency of the PPG sampling module.
(57) Specifically, if Δf.sub.20>F.sub.0, it indicates that the sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, and f.sub.2<f.sub.0 indicates that the sampling frequency of the PPG sampling module for the standard periodic signal is less than the frequency of the standard periodic signal. In this case, the sampling frequency of the PPG sampling module needs to be increased. A method for increasing the sampling frequency of the PPG sampling module may be increasing the data sampled by the PPG sampling module by the quantity P, where (Δf.sub.20−F.sub.0)≤P≤Δf.sub.20, so as to ensure that a sampling frequency deviation of the new sampling frequency (F.sub.2+P) of the PPG sampling module can meet a requirement.
(58) A method for increasing the data sampled by the PPG sampling module by the quantity P may be adding one piece of data every a specified length p, where p=(f.sub.1/P).
(59)
(60) Step S301: Control an ECG sampling module and a PPG sampling module to simultaneously sample a standard periodic signal, and separately record sampling end times.
(61) Specifically, a timer may be set. The timer may trigger a sampling trigger signal. When the timer expires, the ECG sampling module and the PPG sampling module are simultaneously controlled to sample the standard periodic signal. A sampling end time t.sub.1 of the ECG sampling module and a sampling end time t.sub.2 of the PPG sampling module are separately recorded.
(62) Step S302: Calculate a sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal, where Δt.sub.21=|t.sub.2−t.sub.1|.
(63) Specifically, to compensate for sampling times of the ECG sampling module and the PPG sampling module, the sampling end time difference Δt.sub.21 between the ECG sampling module and the PPG sampling module for the standard periodic signal needs to be first determined, where Δt.sub.21=|t.sub.2−t.sub.1|.
(64) Step S303: Determine whether the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold.
(65) Specifically, whether the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds the preset time threshold is determined based on a relationship between Δt.sub.21 and T.sub.0, where T.sub.0 is the preset time threshold. If Δt.sub.21≤T.sub.0, it indicates that the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal does not exceed the preset time threshold. In this case, it is not necessary to compensate for the sampling times of the ECG sampling module and the PPG sampling module. This process may be terminated. If Δt.sub.21>T.sub.0, a relationship between t.sub.2 and t.sub.1 further needs to be determined. If t.sub.2>t.sub.1, step S304 is performed. If t.sub.2<t.sub.1, step S305 is performed.
(66) Step S304: Delay a sampling time-to-trigger t.sub.p1 of the ECG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1, so that T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 is met, where t.sub.p2 is a sampling time-to-trigger of the PPG sampling module, and T.sub.0 is the preset time threshold.
(67) Specifically, if Δt.sub.21>T.sub.0, it indicates that the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds the preset time threshold, and t.sub.2>t.sub.1 indicates that the sampling end time of the PPG sampling module is later than the sampling end time of the ECG sampling module. In this case, the sampling start time t.sub.p1 of the ECG sampling module needs to be delayed, so that T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 is met, where t.sub.p2 is the sampling time-to-trigger of the PPG sampling module. Certainly, the compensation for the sampling times may alternatively be implemented by advancing the sampling time-to-trigger of the PPG sampling module.
(68) Step S305: Delay the sampling time-to-trigger t.sub.p2 of the PPG sampling module if Δt.sub.21>T.sub.0 and t.sub.2>t.sub.1, so that T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 is met.
(69) Specifically, if Δt.sub.21<T.sub.0, it indicates that the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds the preset time threshold, and t.sub.2<t.sub.1 indicates that the sampling end time of the PPG sampling module is earlier than the sampling end time of the ECG sampling module. In this case, the sampling start time t.sub.p2 of the PPG sampling module needs to be delayed, so that T.sub.0<|t.sub.p1−t.sub.p2|<Δt.sub.21 is met. Certainly, the compensation for the sampling times may alternatively be implemented by advancing the sampling time-to-trigger of the ECG sampling module.
(70)
(71) a control module 41, configured to control an ECG sampling module and a PPG module to simultaneously sample a standard periodic signal;
(72) a calculation module 42, configured to separately obtain sampling frequencies and sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal; and
(73) a compensation module 43, configured to: compensate for a sampling frequency of the ECG sampling module if a sampling frequency deviation of the ECG sampling module for the standard periodic signal exceeds a preset frequency threshold, so that the sampling frequency deviation of the ECG sampling module for the standard periodic signal is less than the preset frequency threshold; compensate for a sampling frequency of the PPG sampling module if a sampling frequency deviation of the PPG sampling module for the standard periodic signal exceeds the preset frequency threshold, so that the sampling frequency deviation of the PPG sampling module for the standard periodic signal is less than the preset frequency threshold; and compensate for a sampling start time of the ECG sampling module or the PPG sampling module if a sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal exceeds a preset time threshold, so that the sampling end time difference between the ECG sampling module and the PPG sampling module for the standard periodic signal is less than the preset time threshold.
(74) The blood pressure detection signal sampling and compensation apparatus provided in this embodiment is configured to implement the method steps of the blood pressure detection signal sampling and compensation method shown in
(75)
(76) a clock module 51, configured to generate a high-precision clock signal, where precision of the high-precision clock signal is one order of magnitude higher than precision of clock signals in the ECG sampling module and the PPG sampling module.
(77) The control module 41 is specifically configured to: control, based on the high-precision clock signal, the ECG sampling module and the PPG sampling module to simultaneously sample the standard periodic signal, and record the sampling end times of the ECG sampling module and the PPG sampling module for the standard periodic signal based on the high-precision clock signal.
(78) Further, in the embodiment shown in
(79) Further, in the embodiment shown in
(80) Further, in the embodiment shown in
(81) Further, in the embodiment shown in
(82)
(83) The processor 63 is configured to: control the ECG sampling module 61 and the PPG module 62 to simultaneously sample a standard periodic signal; separately obtain sampling frequencies and sampling end times of the ECG sampling module 61 and the PPG sampling module 62 for the standard periodic signal; compensate for a sampling frequency of the ECG sampling module 61 if a sampling frequency deviation of the ECG sampling module 61 for the standard periodic signal exceeds a preset frequency threshold, so that the sampling frequency deviation of the ECG sampling module 61 for the standard periodic signal is less than the preset frequency threshold; compensate for a sampling frequency of the PPG sampling module 62 if a sampling frequency deviation of the PPG sampling module 62 for the standard periodic signal exceeds the preset frequency threshold, so that the sampling frequency deviation of the PPG sampling module 62 for the standard periodic signal is less than the preset frequency threshold; and compensate for a sampling start time of the ECG sampling module 61 or the PPG sampling module 62 if a sampling end time difference between the ECG sampling module 61 and the PPG sampling module 62 for the standard periodic signal exceeds a preset time threshold, so that the sampling end time difference between the ECG sampling module 61 and the PPG sampling module 62 for the standard periodic signal is less than the preset time threshold.
(84) Specifically, the blood pressure signal sampling system provided in this embodiment may be any system that can perform blood pressure detection according to a PTT method, for example, a home wrist blood pressure monitor and arm blood pressure monitor, or any medical blood pressure monitor. The blood pressure signal sampling system includes the ECG sampling module 61 and the PPG sampling module 62. The ECG sampling module 61 is configured to collect an electrocardiogram signal of a user, is constituted by an electrocardiogram sensor and an electrocardiogram signal sampling chip, and may use an integrated analog front end chip (for example, ADS1292) or a discrete sampling chip. The PPG sampling module 62 is constituted by a PPG optical sensor and a PPG sampling chip, and may use an integrated analog front end chip (for example, AFE4404/ADPD153) or a discrete sampling chip.
(85) The processor 63 may be any hardware chip having a processing function.
(86)
(87) a clock module 71, configured to generate a high-precision clock signal, where precision of the high-precision clock signal is one order of magnitude higher than precision of clock signals in the ECG sampling module 61 and the PPG sampling module 62.
(88) The processor 63 is specifically configured to: control, based on the high-precision clock signal, the ECG sampling module 61 and the PPG sampling module 62 to simultaneously sample the standard periodic signal, and record the sampling end times of the ECG sampling module 61 and the PPG sampling module 62 for the standard periodic signal based on the high-precision clock signal.
(89) The clock module 71 may be any one of a high-precision system crystal oscillator, a clock module in a Bluetooth module, and a clock module in a Wireless Fidelity WiFi module. The high-precision clock signal includes any one of a sine wave signal, a triangular wave signal, and a sawtooth signal.
(90) Further, in the embodiment shown in
(91) Further, in the embodiment shown in
(92) Further, in the embodiment shown in
(93) Persons of ordinary skill in the art may understand that all or some of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes: any medium that can store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.
(94) Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present invention, but not for limiting the present invention. Although the present invention is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.