METHOD AND SYSTEM FOR EVALUATING THE QUALITY OF A PHYSIOLOGICAL SIGNAL

20220409144 · 2022-12-29

Assignee

Inventors

Cpc classification

International classification

Abstract

A method, intended for the evaluation of the quality of at least one periodic or quasi-periodic physiological signal, which includes the steps of: segmenting the physiological signal temporally into a plurality of signal segments; for each given signal segment, determining a distance representative of a shape difference between the given signal segment and at least one signal segment temporally offset relative to the given signal segment; and determining a quality index of the given signal segment according to the distance determined for the given signal segment.

Claims

1.-12. (canceled)

13. A method for evaluating the quality of at least one periodic or quasi-periodic physiological signal, said method comprising: segmenting the physiological signal temporally into a plurality of signal segments, said signal segments having all the same temporal length selected to be higher than or equal to the predefined longest period of the physiological signal, for each given signal segment, determining a distance representative of a shape difference between the given signal segment and at least one signal segment temporally offset relative to the given signal segment, and determining a quality index of the given signal segment according to the distance determined for the given signal segment.

14. The method according to claim 13, comprising, for each given signal segment, a determination of a pointwise distance between the given signal segment and each signal segment in a temporal window around the given signal segment having a length between twice and ten times the length of the signal segment, and the computation of the minimum of the determined distances, the pointwise distance between two segments corresponding to the distance computed between subsequent pairs of points in which each point belongs to a distinct segment.

15. The method according to claim 13, wherein, prior to determining a distance, the physiological signal is transformed using a transformation function, so that the distance representative of a shape difference between two signal segments is given by the Euclidean distance between the transformed representations of the two signal segments.

16. The method according to claim 15, wherein the transformation function is the square root velocity function.

17. The method according to claim 15, further comprising: computing a sliding distance matrix by calculating, for the transformed representation of each given signal segment starting at a point and of duration, the distance to all signal segments starting at a point and of duration comprised in a temporal window around of length between twice and ten times the length, wherein said sliding distance matrix has cells comprising the distance between segments; and for each column of the sliding distance matrix, computing the minimum distance value of each column, yielding a so-called sliding matrix profile consisting of a vector of the minimal distance between the transformed representation of each given signal segment to all the transformed representation of signal segments in a temporal window around the given signal segment having a length between twice and ten times the length of the signal segment, so that the sliding matrix profile vector comprises the distance representative of a shape difference for each given signal segment.

18. The method according to claim 17, wherein the segments of the physiological signal are normalized in amplitude before the computation of the sliding distance matrix.

19. The method according to claim 17, wherein, for the computation of the sliding distance matrix, for each pair of signal segments T.sub.i,m={t.sub.i:t.sub.i+m} and T.sub.j,m={t.sub.j:t.sub.j+m} having a temporal length m, the distance between the two signal segments of the pair is computed as: d ij = 2 m ( 1 - C ij - m - 1 A i A j ( B i - m - 1 A i ) ( B j - m - 1 A j ) ) where : A i = .Math. k = 0 m - 1 t i + k B i = .Math. k = 0 m - 1 t i + k 2 C ij = .Math. k = 0 m - 1 t i + k t j + k

20. The method according to claim 17, wherein the combined quality of at least a first and a second periodic or quasi-periodic physiological signals recorded simultaneously is evaluated by computing a combined sliding distance matrix through the expression:
sdm_c=sqrt(sdm.sub.1.sup.2+sdm.sub.2.sup.2), where sdm_c is the combined sliding distance matrix, sdm.sub.1 is the sliding distance matrix of the first physiological signal and sdm.sub.2 is the sliding distance matrix of the second physiological signal.

21. The method according to claim 17, wherein the quality of the physiological signal is evaluated taking into account data of a gyroscope sensor recorded simultaneously with the physiological signal, so as to detect motion artifacts, by computing a motion-integrating combined sliding distance matrix obtained by multiplying the combined sliding distance matrix with a power of the gyroscope sensor.

22. The method according to claim 13, wherein the quality index of a given signal segment is a decreasing function of the distance determined for the given signal segment.

23. The method according to claim 22, wherein the quality index of the given signal segment is related to the distance determined for the given signal segment by the equation: q=1/(1+d) where a is the distance determined for the given signal segment and q is the quality index for the given signal segment.

24. The method according to claim 13, wherein each periodic or quasi-periodic physiological signal is a signal which is representative of a heart rate of a subject or is modulated by a heart rate of a subject.

25. A system for evaluating the quality of at least one periodic or quasi-periodic physiological signal, in particular a signal which is representative of a heart rate of a subject or modulated by a heart rate of a subject, said system comprising: an acquisition module configured to acquire the physiological signal, a processing module for evaluating the quality of the physiological signal configured to implement: segmenting the physiological signal temporally into a plurality of signal segments, said signal segments having all the same temporal length selected to be higher than or equal to the longest period of the physiological signal, for each given signal segment, determining a distance representative of a shape difference between the given signal segment and at least one signal segment temporally offset relative to the given signal segment, determining a quality index of the given signal segment according to the distance determined for the given signal segment.

26. The system according to claim 25, for performing a pulse oximetry, the system comprising at least two light sources configured to emit light at two distinct wavelengths λ.sub.1 and λ.sub.2, the acquisition module being configured to acquire the PPG signals resulting from the illumination of tissues of a subject by means of said light sources, the processing module being configured to evaluate the quality of each PPG signal by implementing: segmenting each PPG signal temporally into a plurality of signal segments, for each given signal segment, determining a distance representative of a shape difference between the given signal segment and at least one signal segment temporally offset relative to the given signal segment, determining a quality index of the given signal segment according to the distance determined for the given signal segment.

27. The system according to claim 25, further comprising a gyroscope, the acquisition module being configured to acquire the data from the gyroscope, the processing module being configured to evaluate the quality of the physiological signal(s) taking into account data of the gyroscope recorded simultaneously with the physiological signal(s), so as to detect motion artifacts.

Description

DESCRIPTION OF THE DRAWINGS

[0069] Features and advantages of the invention will become apparent from the following description of two illustrative embodiments of a method and a system according to the invention, intended for the evaluation of the quality of at least one periodic or quasi-periodic physiological signal, this description being given merely by way of example and with reference to the appended drawings in which:

[0070] FIG. 1 is a perspective view of a wrist-worn portable monitoring device according to one embodiment of the invention;

[0071] FIG. 2 is a view of the skin-side of the casing of the wrist-worn monitoring device of FIG. 1;

[0072] FIG. 3 is a schematic view of possible locations for a casing of a monitoring device according to the invention on the body of a subject;

[0073] FIG. 4 is a graph showing the AC and DC components of a PPG signal corresponding to the IR channel of a wrist-worn monitoring device such as that of FIGS. 1 and 2;

First Embodiment: FIGS. 5 to 12

[0074] FIG. 5 is a graph showing the segmentation into successive patterns of a PPG signal corresponding to the IR channel of the wrist-worn monitoring device;

[0075] FIG. 6 is a graph showing an isolated pattern of the PPG signal of FIG. 5 before time normalization;

[0076] FIG. 7 is a graph showing the pattern of FIG. 6 resampled to normalize the time base;

[0077] FIG. 8 is a graph showing the transform of the pattern of FIG. 7 obtained using the square root velocity function SRVF;

[0078] FIG. 9 is a graph showing the time warping function that minimizes the distance between the SRVF representation of the pattern of FIG. 7 and a reference pattern;

[0079] FIG. 10 is a graph showing the effect of the warping on the SRVF representation of the pattern of FIG. 7;

[0080] FIG. 11 is a graph showing the SRVF representations of the pattern of FIG. 7 before and after warping superposed with the SRVF representation of a reference pattern;

[0081] FIG. 12 is a graph showing the pattern of FIG. 7 before and after warping superposed with the reference pattern.

Second Embodiment: FIGS. 13 to 18

[0082] FIG. 13 is a graph showing the transform of the AC component of the PPG signal of FIG. 4 obtained using the square root velocity function SRVF;

[0083] FIG. 14 is a graph showing data of a gyroscope recorded simultaneously with the PPG signal of FIG. 4;

[0084] FIG. 15 is a graph showing, in the top part, the average of the SRVF transform of the AC components of two PPG signals recorded simultaneously, corresponding respectively to the red channel and the IR channel of the wrist-worn monitoring device, referred to as “average PPG”, and, in the lower part, the matrix profile of the average PPG used for the determination of a quality index of the PPG signals;

[0085] FIG. 16 is a graph showing the average of the DC component of the IR PPG signal used for the computation of the corresponding ratio-of-ratio;

[0086] FIG. 17 is a graph showing the standard deviation of the AC component of the IR PPG signal used for the computation of the corresponding ratio-of-ratio;

[0087] FIG. 18 is a graph showing both the SpO2 computed from the ratio-of-ratio RR, and the filtered SpO2 obtained by filtering the SpO2 by means of a Kalman filter using the quality index.

ILLUSTRATIVE EMBODIMENTS OF THE INVENTION

[0088] An example of a wrist-worn portable biometric monitoring device 1 is shown in FIGS. 1 and 2. The monitoring device 1 comprises an attachment band 11 and a casing 12 fixed to the attachment band 11. The monitoring device 1 also comprises several active elements housed inside the casing 12, i.e. a PPG sensor 2 (or photoplethysmograph), an inertial motion unit (IMU) 3 and a temperature sensor 4. The attachment band 11 is advantageously flexible and/or compliant so as to conform to the shape of a wrist of a subject. In this way, when the attachment band 11 is in place around a wrist of a subject, the casing 12 and its active elements 2, 3, 4 are close to the skin of the subject, i.e. with little to no gap between the skin-side of the casing 12 and the adjacent surface of the skin of the subject.

[0089] The attachment band 11 may have an adjustable circumference, therefore allowing it to be closely fitted to the wrist of the subject. The attachment band 11 may be detachable from the casing 12 and, if necessary, replaceable. As illustrated in FIG. 3, the casing 12 may also be associated to attachment bands 11 of various shapes and dimensions, so that it can be worn by a subject in different locations, e.g. on the wrist, the arm, the chest, the forehead, the ankle, the leg, the hip of the subject. In FIG. 3, for clarity purposes, the various attachment bands 11 associated to the casings 12 in the different locations have not been represented.

[0090] The PPG sensor 2 of the monitoring device 1 comprises at least two light sources 5 (LED, laser, etc.) and at least one photodetector 6 (photodiode, phototransistor, etc.) arranged relative to one another so that each photodetector 6 receives the light emitted by the light sources 5 after interaction with the tissues of a subject wearing the monitoring device 1.

[0091] The light sources 5 and the photodetector(s) 6 may be placed on a flexible PCB. The monitoring device 1 also comprises a circuitry configured to determine physiological data of the subject based on the measurements of each photodetector 6, i.e. PPG signals resulting from the emission of the light sources 5, possibly combined with other measurements e.g. from the inertial motion unit 3 and the temperature sensor 4. Examples of physiological data of the subject that can be determined by means of the monitoring device 1 include the heart rate, the respiratory rate and/or the blood oxygen saturation (SpO2) of the subject.

[0092] More specifically, in the illustrative embodiment shown in FIG. 2, the PPG sensor 2 includes three light sources 5 which are three LEDs emitting light at, respectively, a red wavelength, an infrared wavelength, and a green wavelength. The PPG sensor 2 also includes two photodetectors 6 placed on both sides of the green LED, whereas the red and infrared LEDs are offset laterally relative to the interspace between the two photodetectors 6. Light pipes may be used to optically connect the LEDs 5 and the photodetectors 6 with the surface of the skin of the subject. Beneath the skin, the light from the LEDs 5 scatters off of blood in the body, some of which may be scattered or reflected back into the photodetectors 6. Due to the different positions of the three LEDs 5 in the casing 12 and the different depths of penetration of light into the tissues of the subject for the three wavelengths, different optical paths are obtained for the light of the three LEDs 5, resulting in multiple measurements by the two photodetectors 6. Such multiple measurements ensure a robust evaluation of the physiological data of the subject such as the heart rate, the respiratory rate and/or the SpO.sub.2 of the subject.

[0093] In this illustrative embodiment, the inertial motion unit 3 is a 6-axis unit comprising a 3-axis gyroscope and a 3-axis accelerometer. Advantageously, the inertial motion unit 3 is entirely housed inside the casing 12, without emerging on the skin-side of the casing 12. This is represented by the dotted lines around the inertial motion unit 3 in FIG. 2, which shows the skin-side of the casing 12. The temperature sensor 4 is configured to monitor the skin temperature of the subject in the vicinity of the PPG sensor.

[0094] In prior art methods, a quality evaluation is performed by checking the consistency of computed values of the ratio-to-ratio RR with one another and with a computed heart rate. A problem of such prior art methods is that they perform poorly when the PPG channels exhibit a pulsatile signal not linked to the heart rate.

[0095] The first embodiment of the invention overcomes this problem by implementing a step of assessment of the signal quality configured to detect how successive heart beats are similar to one another. By doing so, heart beats that are corrupted, e.g. by motion artifacts or other harmful effects, are assigned a low quality index and are not considered for further RR computation.

[0096] More specifically, the method according to this first embodiment takes advantage of the following features: [0097] using the square root velocity function SRVF to represent the morphology of each heart beat; [0098] developing a low-complexity strategy to find an optimal time-warping function; [0099] developing a process to learn what a “clean” heart beat is in an unsupervised manner.

[0100] The successive steps of the method of the first embodiment are detailed below.

[0101] On each of the red and IR PPG channels of the wrist-worn monitoring device, the pulsatile AC signal is obtained thanks to a 4th order Butterworth band-pass filter with cutoff frequencies of 0.5 Hz and 4 Hz. The DC signal is obtained using a low-pass filter having a cutoff frequency of 0.5 Hz.

[0102] By way of example, preprocessed AC and DC components of the PPG signal corresponding to the IR channel of the monitoring device are shown in FIG. 4.

[0103] In an advantageous manner, information gathered on the green PPG channel of the monitoring device is used to segment the PPG signals from the red and infrared PPG channels. More specifically, a sequence of heart beat instants t.sub.b,g[n] is detected on the green PPG channel and applied on the red and IR PPG channels such that:


n, t.sub.b,r[n]=t.sub.b,ir[n]=t.sub.b,g[n].

[0104] Then, each beat signal is constructed on the red and IR PPG channels according to the following expressions:


x.sub.r[n,:]=ppg_r[½(t.sub.b,g[n]+t.sub.b,g[n+1]):½(t.sub.b,g[n+1]+t.sub.b,g[n+2])],


x.sub.ir[n,:]=ppg_ir[½(t.sub.b,g[n]+t.sub.b,g[n+1]):½(t.sub.b,g[n+1]+t.sub.b,g[n+2])],

[0105] It is noted that, depending on the physical distribution of the LEDs of the monitoring device, it is possible that the green optical path differs from the red and IR optical paths. Therefore, in an improved embodiment, instead of applying directly the beat instants found on the green PPG channel to the red and IR PPG channels, each value of t.sub.b,r[n] and t.sub.b,ir[n] is determined, respectively on the red PPG channel and on the IR PPG channel, by searching the local maximum closest to the corresponding value of t.sub.b,g[n].

[0106] An example of the resulting segmented heart beats obtained, e.g., for the AC component of the red PPG signal of the monitoring device is shown in FIG. 5.

[0107] After the segmentation of signals from each PPG channel in successive heart beats, each heart beat is compared sequentially to a “clean” heart beat. To this end, the data are aligned using functional data analysis, and a specific distance function is used for shape comparison.

[0108] Since it is required to compare the morphology of heart beats and not specific data points, where different heart beats may have different lengths and amplitudes, the signal is preprocessed by implementing the following steps: [0109] resampling of each heart beat to normalize the time bases. For example, for an input signal x.sub.0 ranging from t.sub.min to t.sub.max and sampled at a frequency f.sub.s, a resampled signal x.sub.1 sampled at 100 Hz between 0 and 1 is computed. This is shown for example for the input signal x.sub.0 of FIG. 6, which is converted to a resampled signal x.sub.1 as shown in FIG. 7. [0110] normalizing the minima and maxima of the resampled signal x.sub.1 so that the amplitude of the signal ranges between 0 and 1. This is typically performed by computing a normalized signal

[00002] x 2 = x 1 - min ( x 1 ) max ( x 1 ) - min ( x 1 ) . [0111] transforming the heart beats via the square root Velocity function (SRVF). The SRVF is defined as follows: SRVF(f,x)=sign(f(x))√{square root over (|f′(x)|)}. The SRVF is particularly well suited for signal shape comparison. In an advantageous manner, comparing two functions transformed with the SRVF under the Euclidean distance is equivalent to comparing the original functions under the Fisher-Rao metric, which is more suited for shape comparison. After this step, the heart beats are represented in the SRVF space which is well suited for functional analysis. By way of example, the SRVF transform of the normalized signal corresponding to the heart beat P.sub.i of FIG. 7 is shown in FIG. 8.

[0112] Functional analysis comprises the search of a temporal deformation function h, or time warping function, that minimizes the distance between the SRVF representation of a given heart beat and the SRVF representation of a reference heart beat. In this embodiment, the temporal deformation function h is given by the following expression:


h:t.fwdarw.C.sub.0+C.sub.1∫.sub.0.sup.te.sup.W(v)dv,

where C.sub.0 and C.sub.1 are predetermined constants, and W is a continuous function. In this specific embodiment, W is a B-spline function of degree 1 with two control points. More generally, the function W may be any other continuous function. B-spline functions are advantageous in that they are continuous functions that can be defined by a finite number of control points. In practice, the number of control points and the degree of the function are set, and an optimization algorithm is used to find the values of the control points.

[0113] Then, functional analysis is performed to find the spline parameters which minimize the distance between the given heart beat and the reference heart beat. Since complex warping is not required in this application, a B-spline function of degree 1 with two control points, as shown in FIG. 9, is a good option for the continuous function W. FIG. 10 illustrates the deformation of the SRVF representation of FIG. 8 after warping with the temporal deformation function h.

[0114] Thereafter, the minimal distance between the given heart beat and a reference heart beat is determined for each PPG channel and is used to compute a signal quality index q of the given heart beat.

[0115] In this first embodiment, the computation of the reference heart beat is performed in an adaptive manner, by implementing the following steps: [0116] a first heart beat is selected to initialize the reference heart beat; [0117] for each given heart beat being processed, the SRVF representation of the given heart beat is stored and the distance between the given heart beat and the reference heart beat is computed according to the process described in the paragraph “Functional analysis” above; [0118] after the processing of each given heart beat, the reference heart beat is updated as a weighted average of previous warped heart beats, where the weights of the previous warped heart beats are computed as the inverse of their distance to the reference heart beat multiplied by an exponential forgetting factor. For example, naming d.sub.b the distance between a previous warped heart beat and the reference heart beat, the weight of the previous warped heart beat in the computation of the new reference is computed as:


w.sub.b=1/d.sub.bexp(−update.sub.rate*(t−t.sub.b))

[0119] This process allows the reference heart beat to change slowly with the physiological parameters, thus discarding obvious artifacts. A limitation of this process is that, as long as the heart beats are similar, their quality will be considered satisfactory, even if they actually do not correspond to heart beats. For example, this may be the case in the presence of a periodic motion which may introduce periodic beats in the PPG signal that do not correspond to the pulse rate.

[0120] Therefore, in an improved variant of this embodiment, the reference signal is not initialized by a first heart beat, but by a reference control heart beat which can be obtained, e.g.: [0121] by considering an average heart beat shape measured on several subjects, or [0122] by implementing a calibration phase in which the subject is invited to acquire a reference heart beat in optimal conditions, for example under the supervision of a health care professional.

[0123] By way of example, FIG. 11 shows the SRVF representations of the heart beat P.sub.i of FIG. 7 before and after warping superposed with the SRVF representation of a reference heart beat P.sub.ref, and FIG. 12 shows the heart beat P.sub.i of FIG. 7 before and after warping superposed with the reference heart beat P.sub.ref.

[0124] Once the minimal distance between a given heart beat and the reference heart beat has been computed on both the red and infrared PPG channels, the distances are combined into a quality indicator for each heart beat.

[0125] Then, for a given heart beat, a quality index q is defined as:


q=1/((1+d.sub.r)(1+d.sub.IR)).

[0126] This quality index may be used as an input for the assessment of the quality of the computed values of the ratio-to-ratio RR.

[0127] The ratio-to-ratio RR is determined for each heart beat by computing the following value:

[00003] R R [ n ] = s t d ( x r A C [ n , : ] ) mean ( x r D C [ n , : ] ) × mean ( x i r D C [ n , : ] ) s t d ( x i r A C [ n , : ] )

[0128] The outputs are the vector RR as well as the instant associated to each computed RR, depicted as t.sub.RR.

[0129] A customized Kalman smoother making use of the quality index q computed as explained above. Apart from the observation covariance, all parameters of the Kalman smoother are set to 1. The observation covariance is set to the exponential of the squared movement adjusted quality index, CoV.sub.obs=exp(QI.sub.ma.sup.2). It is noted that the exponential of the square movement adjusted quality index gives good empirical performance, but other transformation functions can also be used.

[0130] The Kalman smoother outputs both the smoothed RR signal, and the smooth state covariance, which makes it possible to compute the confidence interval of the RR value.

[0131] In the second embodiment of the invention, the step of heart beat detection is removed. Instead, signal segments are produced by dividing the signal such that each signal segment T.sub.i,m has a starting point i and all the signal segments have the same temporal length m, selected to be higher than or equal to the longest period of the physiological signal.

[0132] In the same way as in the first embodiment, on each of the red and IR PPG channels of the wrist-worn monitoring device, the pulsatile AC signal is obtained thanks to a 4th order Butterworth band-pass filter with cutoff frequencies of 0.5 Hz and 4 Hz. The DC signal is obtained using a low-pass filter having a cutoff frequency of 0.5 Hz.

[0133] The PPG signals from the red and IR PPG channels of the monitoring device are each divided into signal segments T.sub.i,m of temporal length m=2 s corresponding to 50 samples for a sampling frequency of 25 Hz. The value of the temporal length m of each signal segment T.sub.i,m can be reduced or increased, depending on the setup and the physiological signal to be monitored. In this embodiment, the temporal length m is about two times the temporal length of a typical pulse of the PPG signals.

[0134] This second embodiment involves, for each given signal segment T.sub.i,m, the determination of the pointwise distance between the given signal segment T.sub.i,m and each signal segment T.sub.j,m in a forward temporal window p starting at the starting point i of the given signal segment T.sub.i,m and having a length n=8 s corresponding to 200 samples for a sampling frequency of 25 Hz.

[0135] First, the AC signal on each PPG channel is transformed by applying the SRVF function so as to work in a space more suitable for morphology comparison as shown in FIG. 13. In addition, the signal segments T.sub.i,m are normalized in amplitude.

[0136] Then, a matrix profile algorithm is applied on the SRVF representation of the PPG AC signals. More precisely, in a first step, a sliding distance matrix is computed for the SRVF representation of each of the red and JR PPG AC signals segments starting at a point i and of duration m, the distance to all signal segments T.sub.i,m starting at a point j and of duration m comprised in a temporal window p around T.sub.i,m of length n between twice and ten times the length m. Therefore, the sliding distance matrix comprises for each given signal segment T.sub.i,m a vector of the Euclidean distances between the SRVF representation of the given signal segment T.sub.i,m and the SRVF representation of each signal segment T.sub.j,m in the forward temporal window φ.

[0137] In this second embodiment, for the computation of the sliding distance matrix, for each pair of signal segments T.sub.i,m={t.sub.i:t.sub.i+m}, T.sub.j,m={t.sub.j:t.sub.j+m} having a temporal length m, the distance between the two signal segments of the pair is computed as:

[00004] d ij = 2 m ( 1 - C ij - m - 1 A i A j ( B i - m - 1 A i ) ( B j - m - 1 A j ) ) where : A i = .Math. k = 0 m - 1 t i + k B i = .Math. k = 0 m - 1 t i + k 2 C ij = .Math. k = 0 m - 1 t i + k t j + k

[0138] Then, the combined quality of the red and IR PPG signals is evaluated by computing a combined sliding distance matrix sdm_c through the expression:


sdm_c=sqrt(sdm.sub.red.sup.2+sdm.sub.nir.sup.2),

where sdm.sub.red is the sliding distance matrix of the red PPG signal and sdm.sub.nir is the sliding distance matrix of the IR PPG signal.

[0139] The quality of the PPG signals is advantageously evaluated taking into account the gyroscope norm to detect motion artifacts. A motion-integrating combined sliding distance matrix sdm.sub.c* is obtained by multiplying the combined sliding distance matrix sdm_c by the power of the gyroscope sensor of the inertial motion unit 3. The power of the gyroscope sensor is calculated through the L.sup.2 norm of the gyroscope sensor, as follows:


gyro.sub.mag=√{square root over (gyro.sub.x.sup.2+gyro.sub.y.sup.2+gyro.sub.z.sup.2)}

[0140] From the motion-integrating combined sliding distance matrix sdm.sub.c*, a sliding matrix profile is computed (FIG. 15), which is the series of the minimal Euclidean distances between the SRVF representation of each given signal segment T.sub.i,m and the SRVF representation of all the other signal segments T.sub.i,m of same length m in the forward temporal window p. The signal segments T.sub.i,m are normalized, by mean and standard deviation, before computing the Euclidean distances.

[0141] In practice, the sliding matrix profile is computed from the motion-integrating combined sliding distance matrix sdm.sub.c* by evaluating the minimum value d of each column of the motion-integrating combined sliding distance matrix sdm.sub.c*. This gives a measure of the similarity of the given signal segment T.sub.i,m to its neighboring signal segments T.sub.i,m, which is assumed to be correlated with the signal quality. Indeed, a low distance with neighbors reveals regular patterns in the data, and the distance will be increased by noise or artifacts.

[0142] This finally yields an estimation of the signal quality for each PPG signal segment T.sub.i,m. Then, a single value of the quality index q is output every two seconds by computing the maximum on the corresponding PPG signal segment T.sub.i,m.

[0143] The quality index q of a given signal segment T.sub.i,m is a decreasing function of the distance d determined for the given signal segment, e.g. q=1/(1+d).

[0144] For the red and IR PPG channels of the monitoring device, for each signal segment T.sub.i,m, the following is computed: [0145] on the AC components, the standard deviation of the points on the signal segment T.sub.i,m (FIG. 17); [0146] on the DC components, the average of the values observed on the signal segment T.sub.i,m (FIG. 16).

[0147] Then, the ratio-to-ratio RR is obtained, for each signal segment T.sub.i,m, by computing the following value:

[00005] RR [ i ] = s t d ( x r A C [ i , m ] ) mean ( x r D C [ i , m ] ) × mean ( x i r D C [ i , m ] ) s t d ( x i r A C [ i , m ] )

[0148] A customized Kalman smoother is applied using the quality index q computed above.

[0149] Apart from the observation covariance, all parameters of the Kalman smoother are set to 1. The observation covariance is set to the exponential of the squared movement adjusted quality index, Cov.sub.obs=exp(q.sup.2). The exponential of the square movement adjusted quality index provides good empirical performance, but other transformation functions may be applied.

[0150] The Kalman's smoother outputs both a smoothed RR signal, and a smooth state covariance, making it possible to compute a confidence interval of the RR value.

[0151] The main cost of the algorithm of the second embodiment, both computationally and in terms of memory, comes from the distance matrix computation. However, this can be mitigated by the online nature of the algorithm. Once a specific temporal window p has been filled with a certain amount of values, the computation can be performed incrementally after each PPG signal sample is received.

[0152] For example, to compute the SpO2 on a given signal segment T.sub.i,m of length m and compare the signal segment T.sub.i,m with and each signal segment T.sub.j,m temporally offset relative to the given signal segment in a forward temporal window p of length n.

[0153] The normalized Euclidean distance between two signal segments T.sub.i={t.sub.i:t.sub.i+m} and T.sub.j={t.sub.j:t.sub.j+m} can be computed as:

[00006] d ij = 2 m ( 1 - C ij - m - 1 A i A j ( B i - m - 1 A i ) ( B j - m - 1 A j ) ) where : A i = .Math. k = 0 m - 1 t i + k B i = .Math. k = 0 m - 1 t i + k 2 C ij = .Math. k = 0 m - 1 t i + k t j + k

[0154] In an advantageous manner, all the values A.sub.i, B.sub.i and C.sub.ij can be computed incrementally after each PPG sampling.

TABLE-US-00001 Operation +/− × ÷ √ Time per sample A.sub.i 2 0 0 0 1 B.sub.i 2 2 0 0 1 C.sub.ij 2 2 0 0 n d.sub.ij.sup.2 4 6 1 1 n Total 4 + 6*n 2 + 8*n n n

[0155] It is noted that performing a division or a square root costs about 10 times as much as an addition, subtraction or multiplication. In addition, i≤j<i+n since the distances are computed over a forward window of size n.

[0156] Since we want the minimal distance over the temporal window φ of length n, at least n comparisons per new sample are to be performed, and both the quality index q and the value of the minimum are to be stored. The memory cost is constant:

TABLE-US-00002 Variable Number t.sub.i m + n A.sub.i n B.sub.i n C.sub.ij n Min index 1 Total 4* n + m

[0157] To compute one value of the quality index q for each SpO2 value, a maximum over n values is computed. This maximum value is stored or transmitted along with the SpO2 value. The distances have to be computed both for the red PPG signal and the IR PPG signal. They are then combined before computing the minimum over the temporal window φ.

[0158] The cost for computing the distances after each sampling can be estimated as:


2×(6+14×n+10×2×n)=12+68×n

[0159] For n=200, the resulting cost is around 14000 operations, which is an approximation giving an indication of the algorithm complexity. This can be performed at about 4000 times real time.

[0160] The memory requirement is about 8*n+2*m, which is 1700 floats for m=50 (=2 s) and n=200 (=8 s).

[0161] As can be seen from the previous examples, a method and a system according to the invention provide algorithmic solutions focused on signal quality assessment and RR quality assessment.

[0162] The first embodiment described above introduces an evaluation of the signal quality by comparing the morphology of each pattern of the physiological signal with a reference pattern, where the computation of the reference pattern is performed in an adaptive manner so that the reference pattern changes with the physiological parameters of the user, thus discarding obvious artifacts. Such an adaptive computation of the reference pattern can be learned in a non-supervised manner by the system.

[0163] The second embodiment builds further upon this technique and simplifies it by implementing a simple pattern matching algorithm. This second embodiment has low complexity and advantageously allows for a complete removal of the step of pattern extraction, which is highly beneficial as this step is usually a burdensome procedure in signal processing. Furthermore, the second embodiment can easily be applied to multi-channel physiological sensors with more than two channels and make it possible to take into account data of a gyroscope recorded simultaneously with the physiological signal (FIG. 14).

[0164] The invention is not limited to the examples described and shown. In particular, the use of the gyroscope's power could be omitted, or replaced with the accelerometer's power, the values of m and n could be different and the Kalman smoother observation covariance expression could be modified, to Cov.sub.obs=q for example.