An anti-motion interference processing circuit suitable for blood oxygen extraction chip

By combining adaptive filtering of acceleration signals and discrete saturation transformation, the problem of low accuracy and poor real-time performance of existing blood oxygen detection equipment in removing motion interference is solved, and blood oxygen saturation with high accuracy and strong real-time performance is achieved. monitor.

CN118214396BActive Publication Date: 2024-09-03WUHAN KANGNUOXIN SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410420877.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-09
Publication Date
2024-09-03
Estimated Expiration
2044-04-09

AI Technical Summary

Technical Problem

Existing blood oxygen detection equipment has problems with low accuracy, complex calculations, or poor real-time performance in removing motion interference, making it difficult to achieve both high accuracy and strong real-time performance.

Method used

An anti-motion interference processing circuit suitable for blood oxygen extraction chips is used, combined with adaptive filtering and discrete saturation transform based on acceleration signals, through low-pass filter, band-pass filter, adaptive filter and discrete saturation transform module to remove motion interference in PPG signals and improve SpO2 extraction accuracy and real-time performance.

Benefits of technology

It achieves high accuracy while improving the real-time performance of SpO2 extraction. Through the combination of adaptive filter and discrete saturation transformation module, motion interference is removed, the calculation time is shortened, and the blood oxygen saturation monitoring accuracy and speed are improved. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118214396B
    Figure CN118214396B
Patent Text Reader

Abstract

The present invention relates to an anti-motion interference processing circuit suitable for a blood oxygen extraction chip, comprising: a low-pass filter module, a first mean value calculation module, a band-pass filter module, a first adaptive filter module, an R value extraction and filtering effect diagnosis module, a first SpO2 calculation module, and a discrete saturation conversion module. By combining adaptive filtering based on acceleration signals and discrete saturation conversion, when the adaptive filtering effect is good, SpO2 is directly calculated, otherwise, discrete saturation conversion is performed with the help of the result of adaptive filtering to obtain accurate SpO2. The present invention solves the problem that high accuracy and strong real-time performance cannot be taken into account at the same time in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital integrated circuits, and in particular to an anti-motion interference processing circuit suitable for a blood oxygen extraction chip. Background Art

[0002] SpO2 stands for peripheral capillary oxygen saturation and is an estimate of the oxygen content in the blood. More specifically, it is the percentage of oxygenated hemoglobin relative to the total amount of hemoglobin in the blood (oxygenated and non-oxygenated hemoglobin). SpO2 is an important physiological parameter that reflects respiratory and circulatory functions and is an indicator of the ability of human blood to carry oxygen. Compared with traditional pulse oximetry devices, wearable pulse oximetry devices are more portable, but they face many problems, the most core of which is anti-motion interference. The possibility and degree of motion interference in wearable pulse oximetry devices are much greater than those in traditional devices. If the clean motion interference is not removed, the SpO2 extracted from the unclean PPG signal is inaccurate, which will seriously affect health monitoring, disease diagnosis, etc. Therefore, removing the motion interference processing algorithm is a very important link in extracting SpO2.

[0003] Existing blood oxygen detection equipment generally has the following shortcomings:

[0004] 1. Some existing technologies have low accuracy or can only guarantee high accuracy in specific situations;

[0005] 2. Although some existing technologies have high accuracy, the calculation is complex or takes a long time, and the real-time performance is poor;

[0006] 3. Although some existing technologies have strong real-time performance, they do not completely eliminate motion interference and have low accuracy. Summary of the invention

[0007] In view of the technical problems existing in the prior art, the present invention provides an anti-motion interference processing circuit suitable for a blood oxygen extraction chip. By combining adaptive filtering based on acceleration signals and discrete saturation transformation, the problem that both high accuracy and strong real-time performance cannot be taken into account at the same time in the prior art is solved.

[0008] The technical solution of the present invention to solve the above technical problems is as follows:

[0009] An anti-motion interference processing circuit suitable for a blood oxygen extraction chip, comprising: a low-pass filter module, a first mean value calculation module, a band-pass filter module, a first adaptive filter module, an R value extraction and filtering effect diagnosis module, a first SpO2 calculation module, and a discrete saturation conversion module;

[0010] The input end of the low-pass filter module receives the red light PPG signal RED and the infrared light PPG signal IR, extracts the DC component RED_DC1 of the red light PPG signal RED and the DC component IR_DC1 of the infrared light PPG signal IR, and outputs them to the input end of the first mean value calculation module;

[0011] The first mean value calculation module is used to perform mean value processing on the input RED_DC1 signal and the IR_DC1 signal to obtain the DC value RED_DC of the red light PPG signal RED and the DC value IR_DC of the infrared light PPG signal IR, and output them to the input end of the R value extraction and filtering effect diagnosis module and the discrete saturation conversion module;

[0012] The input end of the bandpass filter module receives the red light PPG signal RED, the infrared light PPG signal IR and the acceleration signal ACC, removes the baseline drift and high-frequency interference of the RED signal, the IR signal and the ACC signal, extracts the AC component RED_AC1 of the RED signal and the AC component IR_AC1 of the IR signal, and outputs the RED_AC1 signal, the IR_AC1 signal and the processed acceleration signal ACC1 to the input end of the first adaptive filter module;

[0013] The first adaptive filter module adopts the recursive least square method to filter the input RED_AC1 signal and IR_AC1 signal based on the acceleration signal ACC1 to remove motion interference, obtain the RED_AC2 signal and IR_AC2 signal and output them to the input end of the R value extraction and filtering effect diagnosis module and the discrete saturation conversion module;

[0014] The R value extraction and filtering effect diagnosis module calculates the first R value according to the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal, and judges the filtering effect according to the RED_AC2 signal and the IR_AC2 signal. If the filtering effect meets the preset conditions, the first R value is output to the first SpO2 calculation module to calculate the first blood oxygen saturation SpO2_1; otherwise, the enable signal En and the first R value are output to the discrete saturation conversion module;

[0015] The discrete saturation conversion module receives the enable signal En, and based on the first R value, performs discrete saturation conversion on the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal, estimates the second R value and calculates the second blood oxygen saturation SpO2_2.

[0016] Furthermore, the low-pass filter module adopts a third-order IIR structure to perform low-pass filtering on the red light PPG signal RED and the infrared light PPG signal IR, respectively, to extract the DC component RED_DC1 of the red light PPG signal RED and the DC component IR_DC1 of the infrared light PPG signal IR.

[0017] Furthermore, the bandpass filter module includes a cascaded high-pass filter and a low-pass filter, both of which adopt a third-order IIR structure, and respectively perform bandpass filtering on the red light PPG signal RED, the infrared light PPG signal IR, and the acceleration signal ACC, remove the baseline drift and high-frequency interference of the RED signal, the IR signal, and the ACC signal, and obtain the AC component RED_AC1 of the RED signal, the AC component IR_AC1 of the IR signal, and the processed acceleration signal ACC1.

[0018] Further, the first adaptive filter module includes a fourth adder, a fifth adder, a fourth subtractor, a fourth multiplier, a fourth register and a matrix operation module; the fourth register is used to store the acceleration signal ACC1 at the current moment and the previous M-1 moments; the first adaptive filter module is specifically used to:

[0019] The acceleration signal ACC1 at the current moment and the previous M-1 moments is multiplied by the corresponding filter coefficient through a fourth multiplier and then input into a fourth adder for accumulation and summation;

[0020] The AC component RED_AC1 of the RED signal or the AC component IR_AC1 of the IR signal and the sum of the fourth adder are subtracted by the fourth subtractor to obtain the output error signal RED_AC2 signal or IR_AC2 signal at the current moment;

[0021] The RED_AC2 signal or the IR_AC2 signal is multiplied by the gain vector K through a fourth multiplier to obtain an update amount of the filter coefficient at the current moment, and the update amount and the filter coefficient at the current moment are added through a fifth adder to obtain the filter coefficient at the next moment;

[0022] The M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are subjected to matrix operation through the matrix operation module to obtain a gain vector K of size M*1;

[0023] The gain vector K, the M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are subjected to matrix operation through a matrix operation module to obtain the matrix P at the next moment.

[0024] Further, the R value extraction and filtering effect diagnosis module includes a first difference module, a trough determination module, a peak determination module, a second mean value calculation module, a fifth subtractor, a first R value calculation module, a second difference module and a variance judgment module;

[0025] The first difference module receives the RED_AC2 signal or the IR_AC2 signal, and calculates the difference between two preceding and following values ​​in the RED_AC2 signal or the IR_AC2 signal sequence;

[0026] The trough determination module and the peak determination module screen the trough amplitude and the peak amplitude that meet the conditions in the RED_AC2 signal or the IR_AC2 signal sequence and their corresponding indexes according to the difference;

[0027] The second mean value calculation module calculates the mean of the trough amplitude and the peak amplitude determined by the trough determination module and the peak determination module respectively;

[0028] The fifth subtractor calculates the difference between the average of the peak amplitudes and the average of the trough amplitudes as the AC value RED_AC of the red light PPG signal RED or the AC value IR_AC of the infrared PPG signal IR;

[0029] The first R value calculation module calculates a first R value according to the DC value RED_DC, the DC value IR_DC, the AC value RED_AC, and the AC value IR_AC;

[0030] The second difference module respectively calculates the distance between the trough indexes filtered and output by the trough determination module and the distance between the peak indexes filtered and output by the peak determination module;

[0031] The variance judgment module calculates the variance of the distance between each trough index and the variance of the distance between each peak index respectively. If any variance is not less than the set threshold, it is judged that the filtering effect of the first adaptive filter module does not meet the conditions, and an enable signal En is generated. The first R value and the enable signal En are output to the discrete saturation conversion module. If both variances are less than the set threshold, it is judged that the filtering effect of the first adaptive filter module meets the conditions, and the first R value is output to the first SpO2 calculation module.

[0032] Further, the discrete saturation conversion module includes a seventh divider, a seventh multiplier, a seventh subtractor, a second adaptive filter module, a power calculation module, a second R value calculation module, and a second SpO2 calculation module;

[0033] The seventh divider divides the RED_AC2 signal by the DC value RED_DC to obtain a normalized red light PPG signal RED_normalized, and divides the IR_AC2 signal by the DC value IR_DC to obtain a normalized infrared PPG signal IR_normalized;

[0034] The seventh multiplier multiplies the infrared PPG signal IR_normalized by the correlation sequence of the first R value, and the result is subtracted from the red light PPG signal RED_normalized by the seventh subtractor to obtain a reference signal RS; by scanning the correlation sequence of the first R value, the reference signal RS corresponding to different values ​​in the sequence is obtained; the correlation sequence of the first R value is a sequence r(n) constructed according to the first R value, r(n)=[R-0.1, ..., R-0.01, R, R+0.01, ..., R+0.1];

[0035] The second adaptive filter module is used to filter out the frequency components shared by RS in IR_normalized to obtain an error signal en; different reference signals RS correspond to different error signals e(n);

[0036] The power calculation module calculates the square sum of each value contained in the error signal e(n) and divides it by the length of e(n) to obtain the power P corresponding to the error signal e(n);

[0037] The second R value calculation module selects the maximum value Pmax among the powers P corresponding to different error signals e(n), and searches for the value in the corresponding sequence r(n) according to the maximum value Pmax as the second R value;

[0038] The second SpO2 calculation module calculates a second blood oxygen saturation SpO2_2 according to the second R value.

[0039] Furthermore, the peak determination module screens the peak amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, including:

[0040] Step 701, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L;

[0041] Step 702, determine whether the first L data are all greater than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 702, if yes, execute step 703;

[0042] Step 703, determine whether the last L numbers are all less than 0. If not, cut the next segment of data with a length of 2L in steps of 1 and jump to step 702. If so, it is considered that a peak that meets the conditions is found, and its index is recorded. The amplitude of the peak is found from the RED_AC2 or IR_AC2 signal sequence according to the index.

[0043] Furthermore, the trough determination module screens the trough amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, including:

[0044] Step 801, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L;

[0045] Step 802, determine whether the first L numbers are all less than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 802, if so, execute step 803;

[0046] Step 803, determine whether the last L numbers are all greater than 0; if not, cut the next segment of data with a length of 2L with a step size of 1, and jump to step 802. If so, it is considered that a valley value that meets the conditions is found, and its index is recorded. According to the index, the amplitude of the valley value is found from the RED_AC2 or IR_AC2 signal sequence.

[0047] Furthermore, the first adaptive filter module adopts a 15th-order recursive least squares method.

[0048] Furthermore, the second adaptive filter module adopts an 80th-order recursive least squares method.

[0049] The beneficial effects of the present invention are:

[0050] The core of the anti-motion interference processing circuit in the present invention is to combine two algorithms, one is adaptive filtering based on acceleration signal, and the other is discrete saturation conversion. Adaptive filtering based on acceleration signal uses the acquired acceleration signal as the reference signal of motion artifact, and uses adaptive filter for filtering. The algorithm is simple and the operation time is short. In some cases, SpO2 with higher accuracy can be obtained, but the acceleration signal and motion artifact may not have a strong correlation. At this time, the filtering accuracy is lacking. The advantage of adaptive filtering based on acceleration signal is strong real-time performance, and the disadvantage is that the accuracy cannot be guaranteed; discrete saturation conversion constructs the reference signal of motion artifact from the PPG signal itself, uses adaptive filtering for filtering, and finds the peak of the power graph to determine SpO2. There is no interference, and the accuracy is high, but the scanning range is large. At the same time, the adaptive filtering order required for high accuracy is large, resulting in a long operation time. The advantage of discrete saturation conversion is high accuracy, and the disadvantage is poor real-time performance. The present invention combines the advantages of the two algorithms and first uses adaptive filtering based on acceleration signal to remove the motion artifact of PPG signal. There are two situations in the PPG signal processing process: Situation 1: If the adaptive filtering effect based on the acceleration signal is good, the obtained PPG signal is directly used to calculate SpO2, which has high accuracy and strong real-time performance; Situation 2: If the adaptive filtering effect based on the acceleration signal is poor, it is necessary to use the improved discrete saturation transformation module to extract SpO2. At this time, the R value calculated in Situation 1 (red light PI value divided by infrared light PI value) can still be used as a rough estimate of the actual R value. The R value can be used to greatly shorten the scanning range of the discrete saturation and reduce the calculation time, taking into account the performance requirements of high accuracy and strong real-time performance.

[0051] Based on the traditional solution of using an adaptive filter in conjunction with an acceleration reference signal to remove motion interference of the PPG signal, the present invention diagnoses the filtering effect of the processed PPG signal. If the filtering effect is good, SpO2 is directly output. If the effect is not good, discrete saturation transformation is performed to obtain SpO2, thereby ensuring the ultra-high accuracy of the extracted SpO2. The present solution also uses the R value obtained by removing motion interference with the help of adaptive filtering to significantly reduce the scanning range of discrete saturation transformation. At the same time, the adaptive filtering used to remove motion interference and the adaptive filtering in the discrete saturation transformation both adopt the RLS algorithm, thereby achieving the effects of fast convergence and small steady-state error, thereby improving the real-time performance and accuracy of SpO2 extraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a schematic diagram of the overall structure provided by an embodiment of the present invention;

[0053] Figure 2 is a schematic diagram of the structure of a low-pass filter module provided by an embodiment of the present invention;

[0054] Figure 3is a schematic structural diagram of a bandpass filter module provided by an embodiment of the present invention;

[0055] Figure 4 is a schematic diagram of the structure of an adaptive filter module provided by an embodiment of the present invention;

[0056] Figure 5 It is a schematic diagram of the structure of the R value extraction and filtering effect diagnosis module provided in an embodiment of the present invention;

[0057] Figure 6 It is a schematic diagram of the structure of a discrete saturation conversion module provided in an embodiment of the present invention.

[0058] Figure 7 It is a schematic diagram of a peak determination process provided by an embodiment of the present invention.

[0059] Figure 8 It is a schematic diagram of a process of determining a trough provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0061] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.

[0062] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0063] Figure 1FIG. 1 is a schematic diagram of the overall structure of an anti-motion interference processing circuit for a blood oxygen extraction chip provided by an embodiment of the present invention. Figure 1 As shown, the anti-motion interference processing circuit includes: a low-pass filter module 1, a first mean value calculation module 2, a band-pass filter module 3, a first adaptive filter module 4, an R value extraction and filtering effect diagnosis module 5, a first SpO2 calculation module 6, a discrete saturation conversion module 7 and a data selector;

[0064] The input end of the low-pass filter module 1 receives the red light PPG signal RED and the infrared light PPG signal IR, extracts the DC component RED_DC1 of the red light PPG signal RED and the DC component IR_DC1 of the infrared light PPG signal IR, and outputs them to the input end of the first mean value calculation module;

[0065] The first mean value calculation module 2 is used to perform mean value processing on the input RED_DC1 signal and the IR_DC1 signal to obtain the DC value RED_DC of the red light PPG signal RED and the DC value IR_DC of the infrared light PPG signal IR, and output them to the input ends of the R value extraction and filtering effect diagnosis module 5 and the discrete saturation conversion module 7;

[0066] The input end of the bandpass filter module 3 receives the red light PPG signal RED, the infrared light PPG signal IR and the acceleration signal ACC, removes the baseline drift and high-frequency interference of the RED signal, the IR signal and the ACC signal, extracts the AC component RED_AC1 of the RED signal and the AC component IR_AC1 of the IR signal, and outputs the RED_AC1 signal, the IR_AC1 signal and the processed acceleration signal ACC1 to the input end of the first adaptive filter module 4;

[0067] The first adaptive filter module 4 uses a recursive least square method to filter the input RED_AC1 signal and IR_AC1 signal based on the acceleration signal ACC1 to remove motion interference, obtain RED_AC2 signal and IR_AC2 signal and output them to the input end of the R value extraction and filtering effect diagnosis module 5 and the discrete saturation conversion module 7;

[0068] The R value extraction and filtering effect diagnosis module 5 calculates the first R value according to the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal, and judges the filtering effect according to the RED_AC2 signal and the IR_AC2 signal. If the filtering effect meets the preset conditions, the first R value is output to the first SpO2 calculation module 6 to calculate the first blood oxygen saturation SpO2_1. Otherwise, the enable signal En and the first R value are output to the discrete saturation conversion module 7, and the enable signal En is output to the data selector.

[0069] The discrete saturation conversion module 7 receives the enable signal En, and based on the first R value, performs discrete saturation conversion on the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal, estimates the second R value and calculates the second blood oxygen saturation SpO2_2.

[0070] The structural principle diagram of the low-pass filter module 1 is as follows Figure 2 As shown, a third-order IIR structure is adopted, which reduces the order compared to FIR and improves the operation speed. The low-pass filter module 1 performs low-pass filtering on the red light PPG signal RED and the infrared light PPG signal IR respectively, and extracts the DC components RED_DC1 and IR_DC1 of the red light PPG signal RED and the infrared light PPG signal IR.

[0071] Specifically, Figure 2 As shown, the low-pass filter module 1 includes an adder, a multiplier and a register. In the figure, x(n), x(n-1), x(n-2) and x(n-3) respectively represent the values ​​of the input signal IR or RED of the low-pass filter module 1 at the current moment, the previous moment, the previous two moments and the previous three moments. These values ​​are stored in the low-pass filter module 1 by the register (z -1 ) is implemented; a0, a1, a2, a3 are filter coefficients of x(n), x(n-1), x(n-2), x(n-3) respectively; y(n), y(n-1), y(n-2), y(n-3) respectively represent the values ​​of the output signal IR_DC1 or RED_DC1 of the low-pass filter module 1 at the current moment, the previous moment, the previous 2 moments, and the previous 3 moments, and these values ​​are stored in the low-pass filter module 1 by the register (z -1 ) is implemented; b1, b2, and b3 are filter coefficients of y(n-1), y(n-2), and y(n-3) respectively; the filter coefficients and the corresponding input or output are multiplied by the multiplier and input into the adder to obtain the current value y(n) of IR_DC1 or RED_DC1, that is, the DC component RED_DC1 of the red light PPG signal RED and the DC component IR_DC1 of the infrared light PPG signal IR.

[0072] The structural principle diagram of the bandpass filter module 3 is as follows Figure 3As shown, it includes a cascaded 5Hz high-pass filter and a 0.5Hz low-pass filter, both of which adopt a 3rd-order IIR structure, which reduces the order and improves the operation speed compared to FIR. The bandpass filter module performs bandpass filtering on the red light PPG signal RED, the infrared light PPG signal IR and the acceleration signal ACC, respectively, removes the baseline drift and high-frequency interference of the RED signal, the IR signal and the ACC signal, and obtains the AC component RED_AC1 of the RED signal and the AC component IR_AC1 of the IR signal and the processed acceleration signal ACC1.

[0073] Specifically, Figure 3 As shown, the left part is a 5Hz high-pass filter, and the right part is a 0.5Hz low-pass filter. The output of the 5Hz high-pass filter is connected to the input of the 0.5Hz low-pass filter. The x(n), x(n-1), x(n-2), and x(n-3) in the high-pass filter represent the values ​​of the input signal IR or RED or ACC of the band-pass filter module 3 at the current moment, the previous moment, the previous two moments, and the previous three moments, respectively. The y(n), y(n-1), y(n-2), and y(n-3) in the high-pass filter represent the values ​​of the output signal of the high-pass filter at the current moment, the previous moment, the previous two moments, and the previous three moments, respectively.

[0074] x(n), x(n-1), x(n-2), and x(n-3) in the low-pass filter respectively represent the values ​​of the output signal of the high-pass filter at the current moment, the previous moment, the previous two moments, and the previous three moments. y(n), y(n-1), y(n-2), and y(n-3) in the low-pass filter respectively represent the values ​​of the output signal IR_AC1 or RED_AC1 or ACC1 of the band-pass filter module 3 at the current moment, the previous moment, the previous two moments, and the previous three moments.

[0075] It should be noted here that the high-pass filter and low-pass filter included in the band-pass filter module 3 and x(n), x(n-1), x(n-2), x(n-3), y(n), y(n-1), y(n-2), y(n-3), a0, a1, a2, a3, b1, b2, and b3 in the low-pass filter module 1 are only symbols used to represent the internal structure of the filter. The high-pass filter and low-pass filter included in the band-pass filter module 3 have the same structure as the low-pass filter module, and their internal input, output and filter coefficients are independent. Therefore, the values ​​of the same symbols are not the same for different filters.

[0076] The structural principle diagram of the first adaptive filter module 4 is as follows Figure 4As shown, it includes a fourth adder, a fifth adder, a fourth subtractor, a fourth multiplier, a fourth register and a matrix operation module; the fourth register is used to store the acceleration signal ACC1 at the current moment and the previous M-1 moments. The first adaptive filter module 4 is used to remove motion interference, using a 15-order recursive least squares (RLS) algorithm. Compared with the LMS algorithm and the improved algorithm based on LMS, RLS is more suitable for removing motion artifacts of PPG signals, because the LMS algorithm and the improved algorithm based on LMS are both solving uniformly weighted optimization problems, and the weight of the error at each moment in the objective function is the same, so the LMS algorithm and the improved algorithm based on LMS are suitable for processing stationary signals; the RLS algorithm introduces a forgetting factor to adjust the weight size of each moment, and the earlier the moment, the smaller the weight, which is suitable for processing non-stationary signals. The motion artifacts of the PPG signal are non-stationary, so RLS has a better filtering effect. At the same time, the convergence speed of RLS is faster, which is conducive to improving real-time performance; the steady-state error is smaller, which is conducive to improving accuracy.

[0077] The algorithm flow of the M-order RLS algorithm is as follows:

[0078] e(n)=d(n)-W T (n)x(n) (1)

[0079]

[0080]

[0081] W(n+1)=W(n)+K(n)e(n) (4)

[0082] Where x(n) is the input signal at time n, the size is M*1, x T (n) is the transpose of x(n); d(n) is the expected signal input at time n; W(n) is the filter parameter at time n, with a size of M*1, W T (n) is the transpose of W(n); e(n) is the output error signal at time n; K(n) is called the gain vector, and its size is M*1; λ is the forgetting factor, and its value range is (0,1); P(n) is the intermediate matrix at time n, and its size is M*M.

[0083] W(n) and P(n) are initialized as follows:

[0084] W(0)=0 (5)

[0085] P(0)=δ -1 *I (6)

[0086] Where δ is a very small positive number, I is the identity matrix, and the size is M*M, M=15.

[0087] In the first adaptive filter module 4, RED_AC1 (or IR_AC1) is used as the desired signal d(n), ACC1 is used as the input signal x(n), RED_AC2 (or IR_AC2) is used as the output error signal e(n), and there is a certain correlation between ACC1 and the motion artifact signal in RED_AC1 (or IR_AC1). The motion artifact in RED_AC1 (or IR_AC1) can be removed to a certain extent through the first adaptive filter module 4.

[0088] Specifically, Figure 4 As shown, the acceleration signal ACC1 at the current moment and the previous M-1 moments and the corresponding filter coefficient are multiplied by the fourth multiplier and then input into the fourth adder for accumulation and summation; the AC component RED_AC1 of the RED signal (or the AC component IR_AC1 of the IR signal) and the sum of the fourth adder are subtracted by the fourth subtractor to obtain the output error signal RED_AC2 signal (or IR_AC2 signal) at the current moment; the RED_AC2 signal (or IR_AC2 signal) and the gain vector K are multiplied by the fourth multiplier to obtain the update amount of the filter coefficient at the current moment, and the update amount and the filter coefficient at the current moment are added by the fifth adder to obtain the filter coefficient at the next moment; the M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are matrix operated by the matrix operation module to obtain the gain vector K of size M*1; the gain vector K, the M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are matrix operated by the matrix operation module to obtain the matrix P at the next moment.

[0089] The structural principle diagram of the R value extraction and filtering effect diagnosis module 5 is as follows Figure 5 As shown, it includes a first difference module 8, a trough determination module 9, a peak determination module 10, a second mean value calculation module 11, a fifth subtractor 12, a first R value calculation module 13, a second difference module 14 and a variance judgment module 15.

[0090] The core of the R value extraction and filtering effect diagnosis module is to calculate the R value and diagnose the filtering effect by using the peaks and troughs extracted from the PPG signal output by the first adaptive filter module 4. The extraction conditions of the peaks and troughs are set to be relatively strict, discarding the undesirable peaks and troughs of some PPG signal segments with motion artifacts, and only retaining the more ideal peaks and troughs. The R value is extracted by the amplitude of these peaks and troughs, and the quality of the filtering effect is determined by the variance of the distance between the more ideal peaks and the distance between the troughs. A small variance indicates that the motion artifacts in the PPG signal are removed cleanly, the filtering effect is good, and the SpO2 directly calculated has a high accuracy. At this time, an enable signal is issued to disable the discrete saturation conversion module; a large variance indicates that there are residual motion artifacts in the PPG signal, the filtering effect is poor, and the SpO2 directly calculated has a low accuracy. At this time, an enable signal is issued to enable the discrete saturation conversion module.

[0091] Specifically, Figure 5 As shown, the first difference module 8 receives the RED_AC2 signal or the IR_AC2 signal, and calculates the difference (diff) between the two preceding and following values ​​in the RED_AC2 signal or the IR_AC2 signal sequence;

[0092] The trough determination module 9 screens the trough amplitudes (bottoms) and their corresponding indexes (b_indexs) that meet the conditions in the RED_AC2 signal (or IR_AC2 signal) sequence according to the difference (diff), and discards the remaining undesirable troughs, thereby improving the accuracy of R value extraction and facilitating the judgment of the effect of adaptive filtering based on acceleration signals to remove motion artifacts;

[0093] The peak determination module 10 screens the peak amplitudes (peaks) and their corresponding indexes (p_indexs) that meet the conditions in the RED_AC2 signal (or IR_AC2 signal) sequence according to the difference (diff), discards the remaining undesirable peaks, improves the accuracy of R value extraction, and facilitates the judgment of the effect of adaptive filtering based on acceleration signals to remove motion artifacts;

[0094] The second mean value calculation module 11 calculates the mean of the trough amplitude and the peak amplitude determined by the trough determination module and the peak determination module, respectively, to reduce errors;

[0095] The fifth subtractor 12 calculates the difference between the average of the peak amplitudes and the average of the trough amplitudes as the AC value RED_AC of the red light PPG signal RED or the AC value IR_AC of the infrared PPG signal IR;

[0096] The first R value calculation module 13 calculates the first R value according to the DC value RED_DC, the DC value IR_DC, the AC value RED_AC, and the AC value IR_AC; respectively calculates the red light PI value (RED_AC / RED_DC) and the infrared PI value (IR_AC / IR_DC), and then calculates the ratio of the red light PI value to the infrared PI value to obtain the first R value;

[0097] The second difference module 14 respectively calculates the distance between the trough indexes filtered and output by the trough determination module and the distance between the peak indexes filtered and output by the peak determination module;

[0098] The variance judgment module 15 respectively calculates the variance of the distance between each trough index and the variance of the distance between each peak index. If any variance is not less than the set threshold, it is judged that the filtering effect of the first adaptive filter module does not meet the conditions, and an enable signal En is generated. The first R value and the enable signal En are output to the discrete saturation conversion module. If both variances are less than the set threshold, it is judged that the filtering effect of the first adaptive filter module meets the conditions, and the first R value is output to the first SpO2 calculation module. The first SpO2 calculation module 6 calculates and outputs the first blood oxygen saturation SpO2_1.

[0099] Furthermore, the peak determination module screens the peak amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, such as Figure 7 As shown, including:

[0100] Step 701, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L;

[0101] Step 702, determine whether the first L data are all greater than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 702, if yes, execute step 703;

[0102] Step 703, determine whether the last L numbers are all less than 0. If not, cut the next segment of data with a length of 2L in steps of 1 and jump to step 702. If so, it is considered that a peak that meets the conditions is found, and its index is recorded. The amplitude of the peak is found from the RED_AC2 or IR_AC2 signal sequence according to the index.

[0103] Furthermore, the trough determination module screens the trough amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, such as Figure 8 As shown, including:

[0104] Step 801, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L;

[0105] Step 802, determine whether the first L numbers are all less than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 802, if so, execute step 803;

[0106] Step 803, determine whether the last L numbers are all greater than 0; if not, cut the next segment of data with a length of 2L with a step size of 1, and jump to step 802. If so, it is considered that a valley value that meets the conditions is found, and its index is recorded. According to the index, the amplitude of the valley value is found from the RED_AC2 or IR_AC2 signal sequence.

[0107] The structural principle diagram of the discrete saturation conversion module is as follows Figure 6 As shown, it includes a seventh divider 16, a seventh multiplier 17, a seventh subtractor 18, a second adaptive filter module 19, a power calculation module 20, a second R value calculation module 21, and a second SpO2 calculation module 22;

[0108] The collected red light PPG signal and infrared light PPG signal contain both the real blood oxygen saturation signal and the noise signal of motion artifact. The following formula gives the expression of red light PPG signal and infrared light PPG signal in discrete saturation transform algorithm (DST):

[0109] IR_normalized=S+M (7)

[0110] RED_normalized=R*S+R′*M (8)

[0111] Where IR_normalized and RED_normalized represent the normalized infrared PPG signal and the normalized red light PPG signal respectively, S represents the PPG signal containing the true SpO2, M represents the motion artifact, the R value is still the ratio of the red light PI value to the infrared PI value, and R′ represents the ratio of the red light artifact to the infrared light artifact.

[0112] Construct a reference signal RS, whose expression is:

[0113] RS=r*IR_normalized-RED_normalized (9)

[0114] The parameter r is scanned, and different r corresponds to different reference signals RS. Different RS are used as the input signal x(n) of the adaptive filter, IR_normalized is used as the expected signal of the adaptive filter, and the error signal e(n) of the adaptive filter is used as the output signal. Different r also obtains different e(n). When r is not equal to R or R′, RS contains the S and M parts, so most of S and M in IR_normalized are filtered out, and the power of e(n) is small; when r is equal to R or R′, RS only contains the M or S part, so only M or S is filtered out in IR_normalized, and the power of e(n) is large. Therefore, different e(n) is obtained from different r, and the power of e(n) is calculated. The R value can be located by finding the peak of the power.

[0115] However, the traditional DST algorithm requires that SpO2 covers the range of 0-100% when scanning r, which results in a relatively large scanning range of r value and a long scanning time, which is not conducive to improving real-time performance. Therefore, when the adaptive filtering effect of the acceleration signal is not good and the DST module is to be used, the present invention uses a rough R value obtained by adaptive filtering based on the acceleration signal to estimate the real and accurate R value, thereby reducing the scanning range of r, greatly shortening the scanning time, and improving real-time performance.

[0116] Specifically, Figure 6 As shown, the seventh divider 16 divides the RED_AC2 signal by the DC value RED_DC to obtain a normalized red light PPG signal RED_normalized, and divides the IR_AC2 signal by the DC value IR_DC to obtain a normalized infrared PPG signal IR_normalized;

[0117] The seventh multiplier 17 multiplies the infrared PPG signal IR_normalized by the correlation sequence of the first R value, and the result is subtracted from the red light PPG signal RED_normalized by the seventh subtractor 18 to obtain a reference signal RS; by scanning the correlation sequence of the first R value, the reference signal RS corresponding to different values ​​in the correlation sequence of the first R value is obtained; the correlation sequence of the first R value is a sequence r(n) constructed according to the first R value, r(n)=[R-0.1, ..., R-0.01, R, R+0.01, ..., R+0.1];

[0118] The second adaptive filter module 19 is used to filter out the frequency components shared by RS in IR_normalized to obtain an error signal e(n); different reference signals RS correspond to different error signals e(n);

[0119] The power calculation module 20 obtains the power P corresponding to the error signal e(n) by calculating the sum of the squares of the values ​​contained in the error signal e(n) and dividing it by the length of en;

[0120] The second R value calculation module 21 selects the maximum value Pmax among the powers P corresponding to different error signals e(n), and searches for the value in the corresponding sequence r(n) according to the maximum value Pmax as the second R value;

[0121] The second SpO2 calculation module 22 calculates a second blood oxygen saturation SpO2_2 according to the second R value.

[0122] In the second adaptive filter module 19, RS is used as the input signal x(n), IR_normalized is used as the expected signal, and different error signals e(n) are output according to different reference signals RS to determine the accurate R value. The structure of the second adaptive filter module 19 is the same as that of the first adaptive filter module 4, but the parameters, order, input and output of the filter are different. In this embodiment, the second adaptive filter module 19 adopts an 80-order RLS algorithm to improve accuracy.

[0123] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0124] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An anti-motion interference processing circuit suitable for a blood oxygen extraction chip, characterized in that: include: Low-pass filter module, first mean value calculation module, band-pass filter module, first adaptive filter module, R value extraction and filtering effect diagnosis module, first SpO2 calculation module, discrete saturation conversion module; The input end of the low-pass filter module receives the red light PPG signal RED and the infrared light PPG signal IR, extracts the DC component RED_DC1 of the red light PPG signal RED and the DC component IR_DC1 of the infrared light PPG signal IR, and outputs them to the input end of the mean calculation module; The first mean value calculation module is used to perform mean value processing on the input RED_DC1 signal and the IR_DC1 signal to obtain the DC value RED_DC of the red light PPG signal RED and the DC value IR_DC of the infrared light PPG signal IR, and output them to the input end of the R value extraction and filtering effect diagnosis module and the discrete saturation conversion module; The input end of the bandpass filter module receives the red light PPG signal RED, the infrared light PPG signal IR and the acceleration signal ACC, removes the baseline drift and high-frequency interference of the RED signal, the IR signal and the ACC signal, extracts the AC component RED_AC1 of the RED signal and the AC component IR_AC1 of the IR signal, and outputs the RED_AC1 signal, the IR_AC1 signal and the processed acceleration signal ACC1 to the input end of the first adaptive filter module; The first adaptive filter module adopts the recursive least square method to filter the input RED_AC1 signal and IR_AC1 signal based on the acceleration signal ACC1 to remove motion interference, obtain the RED_AC2 signal and IR_AC2 signal and output them to the input end of the R value extraction and filtering effect diagnosis module and the discrete saturation conversion module; The R value extraction and filtering effect diagnosis module calculates the first R value according to the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal, and judges the filtering effect according to the RED_AC2 signal and the IR_AC2 signal. If the filtering effect meets the preset conditions, the first R value is output to the first SpO2 calculation module to calculate the first blood oxygen saturation SpO2_1; otherwise, the enable signal En and the first R value are output to the discrete saturation conversion module; The discrete saturation conversion module receives the enable signal En, performs discrete saturation conversion on the input DC value RED_DC, DC value IR_DC, RED_AC2 signal, and IR_AC2 signal based on the first R value, estimates the second R value and calculates the second blood oxygen saturation SpO2_2; The R value extraction and filtering effect diagnosis module includes a first difference module, a trough determination module, a peak determination module, a second mean value calculation module, a fifth subtractor, a first R value calculation module, a second difference module and a variance judgment module; The first difference module receives the RED_AC2 signal or the IR_AC2 signal, and calculates the difference between two preceding and following values ​​in the RED_AC2 signal or the IR_AC2 signal sequence; The trough determination module and the peak determination module screen the trough amplitude and the peak amplitude that meet the conditions in the RED_AC2 signal or the IR_AC2 signal sequence and their corresponding indexes according to the difference; The second mean value calculation module calculates the mean of the trough amplitude and the peak amplitude determined by the trough determination module and the peak determination module respectively; The fifth subtractor calculates the difference between the average of the peak amplitudes and the average of the trough amplitudes as the AC value RED_AC of the red light PPG signal RED or the AC value IR_AC of the infrared PPG signal IR; The first R value calculation module calculates a first R value according to the DC value RED_DC, the DC value IR_DC, the AC value RED_AC, and the AC value IR_AC; The second difference module respectively calculates the distance between the trough indexes filtered and output by the trough determination module and the distance between the peak indexes filtered and output by the peak determination module; The variance judgment module calculates the variance of the distance between each trough index and the variance of the distance between each peak index respectively. If any variance is not less than a set threshold, it is judged that the filtering effect of the first adaptive filter module does not meet the conditions, an enable signal En is generated, and the first R value and the enable signal En are output to the discrete saturation conversion module. If both variances are less than the set threshold, it is judged that the filtering effect of the first adaptive filter module meets the conditions, and the first R value is output to the first SpO2 calculation module; The discrete saturation conversion module includes a seventh divider, a seventh multiplier, a seventh subtractor, a second adaptive filter module, a power calculation module, a second R value calculation module, and a second SpO2 calculation module; The seventh divider divides the RED_AC2 signal by the DC value RED_DC to obtain a normalized red light PPG signal RED_normalized, and divides the IR_AC2 signal by the DC value IR_DC to obtain a normalized infrared PPG signal IR_normalized; The seventh multiplier multiplies the infrared PPG signal IR_normalized by the correlation sequence of the first R value, and the result is subtracted from the red light PPG signal RED_normalized by the seventh subtractor to obtain a reference signal RS; by scanning the correlation sequence of the first R value, the reference signal RS corresponding to different values ​​in the sequence is obtained; the correlation sequence of the first R value is a sequence r(n) constructed according to the first R value, r(n)=[R-0.1, ..., R-0.01, R, R+0.01, ..., R+0.1]; The second adaptive filter module is used to filter out the frequency components shared by RS in IR_normalized to obtain an error signal e(n); different reference signals RS correspond to different error signals e(n); The power calculation module calculates the square sum of each value contained in the error signal e(n) and divides it by the length of e(n) to obtain the power P corresponding to the error signal e(n); The second R value calculation module selects the maximum value Pmax among the powers P corresponding to different error signals e(n), and searches for the value in the corresponding sequence r(n) according to the maximum value Pmax as the second R value; The second SpO2 calculation module calculates a second blood oxygen saturation SpO2_2 according to the second R value.

2. The anti-motion interference processing circuit according to claim 1, characterized in that: The low-pass filter module adopts a third-order IIR structure to perform low-pass filtering on the red light PPG signal RED and the infrared light PPG signal IR, respectively, and extract the DC components RED_DC1 and IR_DC1 of the red light PPG signal RED and the infrared light PPG signal IR.

3. The anti-motion interference processing circuit according to claim 1, characterized in that: The bandpass filter module includes a cascaded high-pass filter and a low-pass filter, both of which adopt a third-order IIR structure, and perform bandpass filtering on the red light PPG signal RED, the infrared light PPG signal IR, and the acceleration signal ACC, respectively, to remove the baseline drift and high-frequency interference of the RED signal, the IR signal, and the ACC signal, and obtain the AC component RED_AC1 of the RED signal, the AC component IR_AC1 of the IR signal, and the processed acceleration signal ACC1.

4. The anti-motion interference processing circuit according to claim 1, characterized in that: The first adaptive filter module includes a fourth adder, a fifth adder, a fourth subtractor, a fourth multiplier, a fourth register and a matrix operation module; the fourth register is used to store the acceleration signal ACC1 at the current moment and the previous M-1 moments; the first adaptive filter module is specifically used to: The acceleration signal ACC1 at the current moment and the previous M-1 moments is multiplied by the corresponding filter coefficient through the fourth multiplier and then input into the fourth adder for accumulation and summation; The AC component RED_AC1 of the RED signal or the AC component IR_AC1 of the IR signal and the sum of the fourth adder are subtracted by the fourth subtractor to obtain the output error signal RED_AC2 signal or IR_AC2 signal at the current moment; The RED_AC2 signal or the IR_AC2 signal is multiplied by the gain vector K through a fourth multiplier to obtain an update amount of the filter coefficient at the current moment, and the update amount and the filter coefficient at the current moment are added through a fifth adder to obtain the filter coefficient at the next moment; The M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are subjected to matrix operation through the matrix operation module to obtain a gain vector K of size M*1; The gain vector K, the M*M-order matrix P, the acceleration signal ACC1 at the current moment and the previous M-1 moments, and the forgetting factor λ are subjected to matrix operation through a matrix operation module to obtain the matrix P at the next moment.

5. The anti-motion interference processing circuit according to claim 1, characterized in that: The peak determination module screens the peak amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, including: Step 701, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L; Step 702, determine whether the first L data are all greater than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 702, if yes, execute step 703; Step 703, determine whether the last L numbers are all less than 0. If not, cut the next segment of data with a length of 2L in steps of 1 and jump to step 702. If so, it is considered that a peak that meets the conditions is found, and its index is recorded. The amplitude of the peak is found from the RED_AC2 or IR_AC2 signal sequence according to the index.

6. The anti-motion interference processing circuit according to claim 1, characterized in that: The trough determination module screens the trough amplitudes and corresponding indexes that meet the conditions in the RED_AC2 signal or IR_AC2 signal sequence according to the difference, including: Step 801, intercepting the difference between the two values ​​in the RED_AC2 signal or IR_AC2 signal sequence to obtain data with a length of 2L; Step 802, determine whether the first L numbers are all less than 0, if not, intercept the next segment of data with a length of 2L with a step size of 1, and repeat step 802, if so, execute step 803; Step 803, determine whether the last L numbers are all greater than 0; if not, cut the next segment of data with a length of 2L with a step size of 1, and jump to step 802. If so, it is considered that a valley value that meets the conditions is found, and its index is recorded. According to the index, the amplitude of the valley value is found from the RED_AC2 or IR_AC2 signal sequence.

7. The anti-motion interference processing circuit according to claim 4, characterized in that: The first adaptive filter module adopts a 15th-order recursive least squares method.

8. The anti-motion interference processing circuit according to claim 1, characterized in that: The second adaptive filter module adopts 80th order recursive least square method.