Disclosure of Invention
The invention aims to solve the technical problem of how to provide a method for accurately detecting motion noise in a heart rate signal under the condition of very strong motion noise, and lays a foundation for improving the heart rate measurement value precision of wearable heart rate measurement equipment.
In order to solve the technical problem, the invention provides a motion noise detection method suitable for heart rate signals, which comprises three parts of signal acquisition, joint sparse spectrum reconstruction model construction and sparse spectrum matrix solving, and is characterized in that:
the wearable heart rate measuring device collects a plurality of photoplethysmographic signals and motion acceleration signals in the same time period at the wrist of a user; and forming a frequency spectrum matrix by using the plurality of photoplethysmographic signals and the motion acceleration signals, extracting the structural characteristics of the frequency spectrum matrix, establishing the joint sparse spectrum reconstruction model, and solving the sparse frequency spectrum matrix in the joint sparse spectrum reconstruction model.
The method comprises the following steps:
the wearable heart rate measuring equipment acquires a plurality of photoplethysmographic pulse wave signals and motion acceleration signals of a user in the same time period; down-sampling the plurality of photoplethysmographic signals and the motion acceleration signals; and then performing band-pass filtering operation on the down-sampled signals.
Meanwhile, a frequency spectrum matrix is formed by the plurality of photoplethysmographic signals and the motion acceleration signals, the structural characteristics of integral sparseness and row sparseness in the frequency spectrum matrix are extracted to establish the combined sparse spectrum reconstruction model, the sparse frequency spectrum matrix in the combined sparse spectrum reconstruction model is solved through an inaccurate augmented Lagrange multiplier method, and the solved signals have the characteristic that the spectral peak positions of the motion acceleration signal frequency spectrum are basically the same as those of the plurality of photoplethysmographic signal frequency spectrums.
Preferably, a plurality of photoplethysmography sensors and a three-axis accelerometer are embedded in the wearable heart rate measurement device; the plurality of photoplethysmography sensors collect a plurality of photoplethysmography signals of a user; the three-axis accelerometer collects motion acceleration signals of a user in the same time period.
Preferably, the joint sparse spectrum reconstruction model is constructed according to a spectrum matrix formed by the plurality of photoplethysmographic signals and the motion acceleration signals, and has structural features of global sparsity and row sparsity, and an objective function of the joint sparse spectrum reconstruction model is as follows:
wherein,
||V||Ffor constraining the error matrix V to minimize the error, | X | | | non-calculation1,1Used for constraining the global sparsity of the spectrum matrix, | X | | non-woven phosphor1,2For constraining the row sparsity, x, of the spectral matrixi,jIs the ith row and jth column element, v, of the frequency spectrum matrix Xi,jIs the ith row and jth column element, λ, of the error matrix V1、λ2、λ3Weight is used to weigh the importance of each item, Y is phi X + V is the constraint condition of equation, Y ∈ RM×HIs an observation matrix, X ∈ CN×HIs the spectrum matrix of the corresponding signal, i.e. the sparse spectrum matrix to be solved, phi ∈ CM×N(M < N) is a redundant discrete Fourier transform basis and V is a model error or measurement error matrix.
Preferably, the inaccurate augmented lagrangian multiplier method is an iterative method which is more suitable for the joint sparse spectrum reconstruction model target function and is constructed by combining a penalty function with a traditional lagrangian function; while the inexact augmented lagrange multiplier method allows updating unknown variables in an alternating or sequential manner with a rate of quadratic convergence.
Compared with the prior art, the technical scheme provided by the invention can accurately detect the strong motion noise in the heart rate signal, and lays a theoretical foundation for effectively removing the strong motion noise in the heart rate signal, so that the heart rate measurement value precision of the wearable heart rate measurement equipment can be improved.
Embodiment I, detection method of motion noise in heart rate signal
Fig. 1 is a flowchart illustrating a motion noise detection method according to this embodiment.
The embodiment shown in fig. 1 is an overall flow of a method for detecting motion noise in a heart rate signal, and mainly includes the following steps:
step S210, the wearable heart rate measuring device acquires photoplethysmographic signals of two channels by using two photoplethysmographic sensors distributed at different positions, and acquires motion acceleration signals of three channels in the same time period by using a three-axis accelerometer.
In step S220, the initial sampling frequency of the original signal is 125Hz, and in order to reduce the amount of calculation, the original signal needs to be down-sampled to a sampling frequency of 25 Hz.
In step S230, the down-sampled signals need to be filtered by a second-order butterworth filter with a passband of 0.4Hz to 4Hz to eliminate the interference of motion noise and other noise outside a certain frequency range.
In step S240, a spectrum matrix is formed by the two photoplethysmographic signals and the three motion acceleration signals.
And step S250, extracting the structural characteristics of global sparsity and row sparsity in the frequency spectrum matrix, and then constructing a combined sparse spectrum reconstruction model by using the structural characteristics.
In this step, typically, formula (1) is an objective function of the joint sparse spectrum reconstruction model:
wherein | V | Y luminanceFFor constraining the error matrix V to minimize the error, | X | | | non-calculation1,1Used for constraining the global sparsity of the spectrum matrix, | X | | non-woven phosphor1,2For constraining the row sparsity, x, of the spectral matrixi,jIs the ith row and jth column element, v, of the frequency spectrum matrix Xi,jIs an error matrixV ith row and jth column element, λ1、λ2、λ3Weight is used to weigh the importance of each item, Y is phi X + V is the constraint condition of equation, Y ∈ RM×HIs an observation matrix, X ∈ CN×HIs the spectrum matrix of the corresponding signal, i.e. the sparse spectrum matrix to be solved, phi ∈ CM×N(M < N) is a redundant discrete Fourier transform basis and V is a model error or measurement error matrix.
And step S260, solving the target function in the joint sparse spectrum reconstruction model by an inaccurate and augmented Lagrange multiplier method.
In this step, typically, to solve the complex objective function in equation (1), two relaxation variables X are introduced in equation (2)1、X2Two equality constraints are added simultaneously:
then, combining the equation constraint term and the objective function in the formula (2) by using an augmented Lagrange multiplier method, and obtaining a minimized expression through a series of simple closed alternative updating operations, as shown in the formula (3):
wherein Q is1,...,3Is Lagrange multiplier, mu > 0 is penalty parameter;
the inexact augmented lagrange multiplier method is an iterative method, and can independently update each variable in formula (3) in parallel, wherein formulas (4), (5), (6), (7) and (8) are updating formulas of each variable:
step S260, a sparse frequency spectrum matrix is obtained through the imprecise augmented Lagrange multiplier method, and signals in the sparse frequency spectrum matrix have the characteristic that the positions of the spectral peaks of the motion acceleration signal frequency spectrum are basically the same as the positions of the spectral peaks of the multiple photoplethysmography signal frequency spectra, so that the purpose of accurately detecting motion noise in the heart rate signal is achieved.
In this embodiment, two photoplethysmography sensors and a three-axis accelerometer are embedded in the wearable heart rate measurement device, two photoplethysmography pulse wave signals and a motion acceleration signal in the same time period are collected at a wrist of a user, a spectrum matrix is formed by the two photoplethysmography pulse wave signals and the motion acceleration signal, global sparse and row sparse structural features in the spectrum matrix are extracted to establish a combined sparse spectrum reconstruction model, a sparse spectrum matrix in the combined sparse spectrum reconstruction model is solved by an inaccurate augmented lagrange multiplier method, and finally, a signal having the characteristic that a peak position of a motion acceleration signal spectrum and peak positions of two photoplethysmography pulse wave signal spectra are basically the same is obtained. The spectrum peak position of the motion noise in the two photoplethysmography signal frequency spectrums can be aligned with the spectrum peak position of the motion acceleration signal frequency spectrum accurately by the aid of the sparse structural characteristics of the rows in the frequency spectrum matrix. The method can accurately detect the strong motion noise in the heart rate signal, and lays a theoretical foundation for effectively removing the strong motion noise in the heart rate signal, so that the heart rate measurement value precision of the wearable heart rate measurement equipment can be improved.
Although the embodiments of the present invention have been described above, the above descriptions are only for the convenience of understanding the present invention, and are not intended to limit the present invention. However, it should be understood that the present invention is not limited to the above-described embodiments, but may be embodied in many different forms and details.