Otwarty dostęp

A Convolutional Neural Network-based Automatic Identification and Intervention Model for Health Surveillance Data during Postpartum Recovery Periods

  
21 mar 2025

Zacytuj
Pobierz okładkę

Introduction

Postpartum recovery refers to women’s postnatal problems such as physical weakness and poor mental health after giving birth, which need to be recovered physically and psychologically through various ways such as rest and quietness, diet and nourishment [1-3]. The premise of studying postpartum recovery is to fully understand the main problems of modern women in the postpartum period. Undoubtedly, in addition to pregnancy and childbirth, which bring about a change in women’s status and social roles, making some women because of the difficulty of adaptation, there are also the following problems that manifest themselves more directly or indirectly.

Physically, the first is the problem of postpartum weight retention. After delivery, due to the delivery of the fetus, placenta, amniotic fluid and other appendages about 5 kilograms, immediately after the uterus is restored, the excess water in the body is gradually eliminated, the weight is again reduced by 2-4 kilograms, in addition to the weight change after this [4-6]. The postpartum weight is related to the physical condition, diet and activity level of the mother [7-9]. In conclusion, postpartum body changes not only affect the curvature of women’s body, increase the risk of chronic diseases, affect women’s health, but also bring about problems such as postpartum bad mood [10-12]. Paying attention to postpartum physical recovery can help alleviate postpartum depression and other negative emotions.

Psychologically, postpartum mood disorders mainly include postpartum depression, postpartum anxiety and other postpartum mental activity disorders [13-15]. Postpartum mental activity disorder refers to the adverse emotions such as depressed mood, fatigue and fatigue after delivery, which may develop into postpartum depression in severe cases [16-17]. The influencing factors of postpartum mental activity disorder are the result of the interaction of multiple factors, which may be related to genetic, psychological, endocrine and social factors, including prenatal anxiety and depression, lack of self-confidence, life stress, stress of caring for infants and young children, poor birth history, lack of preparedness for pregnancy, low mood in pregnancy, socioeconomic status, low marital satisfaction, and lack of social support, etc. [18-20]. Postpartum depression is a neurological symptomatic depression characterized by tearfulness, sadness, fatigue, irritability, moodiness, guilt, poor concentration, memory difficulties, sleep disturbances, and inappropriate coping with the baby that occurs in the postpartum period [21-22]. Recovery from all aspects of postpartum physical problems is of concern, so it is important to monitor the recovery data of the physical and psychological aspects of the postpartum body to build well-being, which can help more postpartum women to get the best and most accurate care.

In the postpartum period, i.e., the period up to 12 weeks after delivery, mothers need to be monitored and restored in terms of physiological and psychological health, which can effectively avoid or promptly treat maternal conditions such as depression, pregnancy complications, etc. [23]. Literature [24] designed an Internet of Things (IoT) monitoring system for women’s health during pregnancy and postpartum, which can effectively and reliably carry out long-term monitoring of health data indicators. Literature [25] utilized telemedicine to monitor the pulse oximetry of postpartum women and suggested that the health system should design a remote patient monitoring system with pulse oximetry to save healthcare resources and also to reduce the traveling time of women in labor. Similarly, literature [26] mentioned that telemedicine interventions are safe and easy to use, not only to monitor the postpartum data of hypertensive pregnant women, but also to avoid the rejection of frequent visits to the hospital for review due to privacy issues. Literature [27] showed that mobile medical devices have the potential to enhance pelvic floor muscle training in the early postpartum period, but their acceptance and feasibility need to be improved.

Literature [28] designed a deep neural network model to identify high-risk fetuses and provide early intervention for such fetuses’ physical conditions, thereby reducing psychological problems such as postpartum depression, anxiety, and self-blame in pregnant women. Literature [29] describes to machine learning has the potential to analyze to determine and improve the effects of postpartum low back pain. Literature [30] used fuzzy neural techniques to predict the risk of postpartum hemorrhage based on an automated monitoring system worn by the mother to improve prenatal care, offering the possibility of reducing mortality and accelerating postpartum recovery. Literature [31] analyzed the probability of predicting postpartum depression in hypertensive women by improving the emotion perception intelligent system. And deep convolutional neural network has been applied in automatic and rapid identification of depression with accuracy and effectiveness [32]. Convolutional neural networks are mainly used to extract relevant information from the input data to improve the accuracy of the analysis [33]. Literature [34] developed a hybrid model of transfer learning, bi-directional long and short-term memory, and convolutional neural network with more than 90% accuracy and precision to derive the probability of maternal postpartum depression by analyzing human data such as medical history and behavioral patterns. Similarly, literature [35] constructed a deep neural network system with decision trees, bidirectional long and short-term memory, and temporal convolutional networks to predict the health risks of pregnant women in a timely manner, reduce the probability of physical complications, and provide for postpartum recovery. Literature [36] utilized convolutional neural networks for denoising and edge feature extraction of postpartum ultrasound images, which improved the image quality and the accuracy of doctors’ judgments of maternal illnesses.

The article firstly introduces the relevant concepts of pulse wave and the generation principle of photovoltaic volumetric wave, and focuses on the detection principle and method of blood oxygen saturation health parameter based on photovoltaic volumetric pulse wave, and the detection principle and method of blood pressure health parameter based on pulse wave conduction time. Then the method of extracting relevant features of pulse wave data is investigated, and the features are extracted from the time, frequency and nonlinear domains by using the extreme value method, PRV frequency domain analysis and sample entropy-based analysis methods, respectively. Then the self-encoder based DA-LSTM is proposed for effective extraction of features. Subsequently, the automatic recognition algorithm for health monitoring data based on convolutional neural networks proposed in this article is used to conduct feature extraction and recognition experiments on relevant datasets. On this basis, the article develops a health monitoring intervention model for postpartum recovery period, which is designed for each hardware module of the system, including the low-power module, followed by the design of the system software algorithm, including the heart rate extraction algorithm. Finally, through the intervention experiment, the effect of the method proposed in this paper on improving the physical and mental health of the subjects is analyzed.

Automatic identification of health monitoring data based on convolutional neural network
Principles of health parameter monitoring
Pulse wave overview

Generation and Classification of Pulse Waves

Pulse wave is also known as arterial beat. In the human blood circulation system, when the left ventricle diastole, it will squeeze the blood to shoot into the aorta, the blood vessels will block the blood flow directly into the veins, at this time, because many blood gathered to the proximal aorta makes the aortic pressure increase, which makes its diameter dilation, this phenomenon of pulsation dilation in the human body in some places can be felt, such as the wrist, neck, forefinger, ring finger, etc., which is often referred to as the pulse [37]. The formation of a pulse is based on two conditions: the contractile function of the heart and the elasticity of its walls. When the ventricles of the heart open, the pressure in the arteries increases and when the ventricles of the heart close, the pressure in the arteries decreases, which causes the arterial beat to propagate in the aorta and its various branches in the form of a wave, which is known as a pulse wave.

Photovoltaic Volume Pulse Wave

Photoelectric volumetric pulse wave refers to the use of photoelectric technology to obtain the waveform of the change in the amount of light absorbed by the blood as the pulse beats, i.e., the waveform of the change in the volume of the blood as the pulse beats. This waveform signal can reflect, for example, pathological information about the human blood circulation system such as blood circulation, heart diastolic capacity, vessel wall elasticity, pulse rate, and other important information about the human respiratory system such as respiratory rate and volume.

The generation of PPG is shown in Fig. 1, when the incident light intensity passes through the human tissue and reaches the receiving end, its light intensity will be absorbed by the static and dynamic tissues, and the transmission and reflection of the skin make the incident light intensity attenuated, i.e., by detecting the change of the light intensity at the receiving end, the pulse wave can be obtained. Under the assumption that the absorption of light by static tissues is stable and unchanged, the change in blood volume caused by arterial pulsation causes the light intensity at the receiving end to change, i.e., when the heart is in diastole, the blood volume reaches a minimum, the light intensity absorbed by it is the least, and the light intensity reaching the receiving end is the most, and conversely, when the heart is in systole, the blood volume reaches a maximum, the light intensity absorbed by it is the most and the light intensity reaching the receiving end is the least. Therefore, a pulse wave can be obtained by using a photoelectric sensor at the receiving end to detect and receive the intensity of the light.

Figure 1.

The production of PPG

Principle of oxygen saturation parameter detection

The oxygen saturation detection used in this paper is realized based on the photoelectric volumetric tracing technique. Whether arterial blood contains enough oxygen or not plays a vital role in maintaining human life. The oxygen content of human blood is generally judged by detecting the blood oxygen saturation. Arterial oxygen saturation (SaO2)$$\left( {Sa{O_2}} \right)$$ is the percentage of the actual amount of oxygen bound in the arterial blood to the maximum oxygen capacity of the blood that can bind oxygen. As a result of human respiration, the vast majority of the oxygen in the blood is bound to deoxyhemoglobin (Hb)$$\left( {Hb} \right)$$ and becomes oxyhemoglobin (HbO2)$$\left( {Hb{O_2}} \right)$$, with only about 1-2% of the oxygen being dissolved in other components of the blood. Therefore, the following formula can be used to approximate blood oxygen saturation: SaO2=(CHbO3CHbO2+CHb)×100%$$Sa{O_2} = \left( {\frac{{{C_{Hb{O_3}}}}}{{{C_{Hb{O_2}}} + {C_{Hb}}}}} \right) \times 100\%$$

Where, CHbO2 is the concentration of oxygenated hemoglobin in human blood tissue and CHb is the concentration of deoxyhemoglobin. According to Lambert-Beer law, there is: I=I0×F×e(E1C1L+E2C2L)=I0e(E1C1+E2C2)L$$I = {I_0} \times F \times {e^{ - \left( {{E_1}{C_1}L + {E_2}{C_2}L} \right)}} = {I_0}^{\prime} {e^{ - \left( {{E_1}{C_1} + {E_2}{C_2}} \right)L}}$$

Where I is the light intensity reflected back from the human body, I0 is the outgoing light intensity, F is the light absorption coefficient of human tissue, E1 and E2 represent the absorption coefficients of oxygenated hemoglobin HbO2 and deoxyhemoglobin Hb in the human blood tissue, C1 and C2 represent the concentrations of oxygenated hemoglobin HbO2 and deoxyhemoglobin Hb in the human blood tissue, and L is the length of the reflective light path. As the heart beats, the human blood tissue fluctuates and changes, the reflected light path changes ΔL and the corresponding reflected light intensity changes (IAC+IDC)$$\left( {{I_{AC}} + {I_{DC}}} \right)$$: IAC+IDC=IDCe(E1C1+E2C2)ΔL$${I_{AC}} + {I_{DC}} = {I_{DC}}{e^{ - \left( {{E_1}{C_1} + {E_2}{C_2}} \right)\Delta L}}$$

Taking logarithms on both sides of equation (3) gives: ln[(IAC+IDC)/IDC]=(E1C1+E2C2)ΔL$$\ln \left[ {\left( {{I_{AC}} + {I_{DC}}} \right)/{I_{DC}}} \right] = - \left( {{E_1}{C_1} + {E_2}{C_2}} \right)\Delta L$$

The percentage of AC and DC flow in reflected light is very small, therefore: ln[(IAC+IDC)/IDC]IAC/IDC$$\ln \left[ {\left( {{I_{AC}} + {I_{DC}}} \right)/{I_{DC}}} \right] \approx {I_{AC}}/{I_{DC}}$$

Combining equations (4) and (5) gives: IAC/IDC=(E1C1+E2C2)ΔL$${I_{AC}}/{I_{DC}} = - \left( {{E_1}{C_1} + {E_2}{C_2}} \right)\Delta L$$

The amount of reflected light path change ΔL is an unknown quantity, and choosing two different wavelengths of incidence eliminates the unknown quantity ΔL. Assuming that the two wavelengths of light are λ1 and λ2, respectively: IACA1λ1/IDCλ1IACλ2/IDCλ2=E1λ1C1+E2λ1C2E1λ2C1+E2λ2C2$$\frac{{{I_{AC}}A_1^{{\lambda _1}}/{I_{DC}}^{{\lambda _1}}}}{{I_{AC}^{{\lambda _2}}/{I_{DC}}^{{\lambda _2}}}} = \frac{{E_1^{{\lambda _1}}{C_1} + E_2^{{\lambda _1}}{C_2}}}{{E_1^{{\lambda _2}}{C_1} + {E_2}^{{\lambda _2}}{C_2}}}$$

Combining equation (7) with the original defining formula for arterial oxygen saturation gives: SaO2=(E2λ2E1λ1E2λ1×IACλ1/IDCλ1IAC/IDCE2λ1E1λ2E2λ2)×100%$$Sa{O_2} = \left( {\frac{{E_2^{{\lambda _2}}}}{{E_1^{{\lambda _1}} - E_2^{{\lambda _1}}}} \times \frac{{I_{AC}^{{\lambda _1}}/I_{DC}^{{\lambda _1}}}}{{{I_{AC}}/{I_{DC}}}} - \frac{{E_2^{{\lambda _1}}}}{{E_1^{{\lambda _2}} - E_2^{{\lambda _2}}}}} \right) \times 100\%$$

E1λ1$$E_1^{{\lambda _1}}$$, E2λ1$$E_2^{{\lambda _1}}$$, E1λ2$$E_1^{{\lambda _2}}$$, and E2λ2$$E_2^{{\lambda _2}}$$ in equation (8) are constants. Therefore, let: A=E2λ2/(E1λ1E2λ1)$$A = E_2^{{\lambda _2}}/\left( {E_1^{{\lambda _1}} - E_2^{{\lambda _1}}} \right)$$, B=E2λ1/(E1λ2E2λ2)$$B = E_2^{{\lambda _1}}/\left( {E_1^{{\lambda _2}} - E_2^{{\lambda _2}}} \right)$$, R=(IACλ1/IDCλ1)/(IACλ2/IDCλ2)$$R = \left( {IA{C^{{\lambda _1}}}/ID{C^{{\lambda _1}}}} \right)/\left( {IA{C^{{\lambda _2}}}/ID{C^{{\lambda _2}}}} \right)$$, carry over to the oxygen saturation formula: SaO2=(A×RB)×100%$$Sa{O_2} = \left( {A \times R - B} \right) \times 100\%$$

Principles of Blood Pressure Parameter Detection

Theoretical basis of blood pressure

Due to the heart’s contraction and contraction, blood flows in the circulatory organs of the human body, and in the process of flow, the pressure generated by the blood on the walls of the blood vessels is the blood pressure. Generally, human blood pressure refers to arterial blood pressure, and human physiological health has a close connection, for the diagnosis of the patient’s disease, analysis and treatment, etc. provides an important basis.

On the basis of the wave conduction velocity formula of the ideal fluid elastic tube, a large number of experiments have been carried out, and a new wave velocity formula has been introduced according to the experimental results: C=KEHρl$$C = K\sqrt {\frac{{EH}}{{\rho l}}}$$

In equation (10): C is the pulse wave velocity. K is called Moons constant and is dimensionless. E is the modulus of elasticity of the ideal fluid elastic tube. H is the thickness of the elastic tube. ρ is the fluid density inside the elastic tube. d is the inner diameter of the ideal fluid elastic tube.

Later, an expression for the relationship between the modulus of elasticity of blood and the pressure at the wall of the blood tube was introduced on its basis: E=E0epγ$$E = {E_0} \cdot {e^{p \cdot \gamma }}$$

In Eq. (11), E0 is the modulus of elasticity when the pressure within the blood tube wall reaches equilibrium. γ is a coefficient characterizing the blood tube wall. P is the blood pressure value.

According to the physical velocity-distance relationship expression, there is: C=DT$$C = \frac{D}{T}$$

Where D is the conduction distance of the pulse wave. T is the pulse wave conduction time.

According to Eq. (10) to Eq. (12), it can be introduced: P=1γ[ln(ρlD2K2E0H)2lnT]$$P = \frac{1}{\gamma }\left[ {\ln \left( {\frac{{\rho l{D^2}}}{{{K^2}{E_0}H}}} \right) - 2\ln T} \right]$$

Under the preconditions of constant vascular elasticity as well as constant pulse wave conduction distance, the first term in equation (13) is a constant; therefore, differentiating both sides of equation (13) yields the relationship between blood pressure change and pulse wave conduction time: ΔP=2γTΔT$$\Delta P = - \frac{2}{{\gamma T}}\Delta T$$

Where: ΔP is the amount of change in P and ΔT is the amount of change in T.

Methods of acquiring pulse wave conduction time PTT

There are two commonly used methods to obtain pulse wave conduction time (PTT): the first method is to select two points on the same pulse wave conduction pathway, the blood flow drives the propagation of the pulse wave, and by detecting the phase difference between the pulse waveforms of these two points, the conduction time of the pulse wave between these two points can be obtained. Another method is to collect the ECG signal and pulse wave signal at the same time, in a certain cardiac cycle, take the ECG signal as the starting point, and the characteristic points such as the peak or trough of the pulse wave as the end point to calculate the time difference, which can be defined as the pulse wave conduction time PTT.

Pulse wave data feature extraction
Time domain characteristics

Each characteristic point of the PPG signal: main wave, descending middle isthmus, heavy beat wave, etc. are located at the extreme value point in the waveform graph. As mentioned above, for the finding of troughs and peaks, the AMPD algorithm is used in this paper, the basic principle of which is shown as follows: let X=[x1,x2,,xi,,xN]$$X = \left[ {{x_1},{x_2}, \ldots ,{x_i}, \ldots ,{x_N}} \right]$$ be a univariate uniformly sampled signal (with baseline drift removed) [38].

First the local maximum scale (LMS) needs to be calculated. This is done by using a moving window of different sizes wk = 2k where k = 1, 2, …, [N/2] − 1, different k are called different scales. For each scale k and i = k + 2, …, Nk + 1, there are: mk,i={ 0, xi1>xik1xi1>xi+k1 r+α, otherwise$${m_{k,i}} = \left\{ {\begin{array}{*{20}{c}} {0,}&{{x_{i - 1}} > {x_{i - k - 1}} \wedge {x_{i - 1}} > {x_{i + k - 1}}} \\ {r + \alpha ,}&{otherwise} \end{array}} \right.$$

Where r is a uniformly distributed random number in the range [0, 1] and α is a constant factor (α=1)$$\left( {\alpha = 1} \right)$$.

For i = 1, ⋯, k + 1 and i = Nk + 2, …, N, r + α is assigned to mk,i. The result is shown in matrix M. M=[ m1,1 m1,2 m1,N m2,1 m2,2 m2,N mL,1 mL,2 mL,N]=(mk,j)$$M = \left[ {\begin{array}{*{20}{c}} {{m_{1,1}}}&{{m_{1,2}}}& \ldots &{{m_{1,N}}} \\ {{m_{2,1}}}&{{m_{2,2}}}& \ldots &{{m_{2,N}}} \\ \vdots & \vdots & \ddots & \vdots \\ {{m_{L,1}}}&{{m_{L,2}}}& \ldots &{{m_{L,N}}} \end{array}} \right] = \left( {{m_{k,j}}} \right)$$

where row k contains the value of window length wk.

Therefore, all elements of matrix M of shape L × N are in the range of [0,1+α]$$\left[ {0,1 + \alpha } \right]$$. This matrix M is called the LMS of the signal X.

This is followed by a row-by-row summation of the LMS matrix M. γk=i=1Nmk,i, for k{1,2,,L}$${\gamma _k} = \sum\limits_{i = 1}^N {{m_{k,i}}} ,{\text{ }}for{\text{ }}k \in \left\{ {1,2, \ldots ,L} \right\}$$

Vector γ=[γ1,γ2,,γi,,γL]$$\gamma = \left[ {{\gamma _1},{\gamma _2}, \ldots ,{\gamma _i}, \ldots ,{\gamma _L}} \right]$$ contains scale-dependent information about the distribution of zeros (i.e., extreme points). Let λ be the local maximum of the current scale, which is used to reshape the LMS matrix M in such a way that when k > λ, the corresponding mk,i is removed, resulting in a new λ × N matrix Mr=(mk,i)$${M_r} = \left( {{m_{k,i}}} \right)$$, where i ∈ 1, 2, …, N, k ∈ 1, 2, …, λ.

Finally, the detection of the waveforms is performed in the following way. σi=1λ1k=1λ[(mk,i1λk=1λmk,i)2]12, for i1,2,,N$${\sigma _i} = \frac{1}{{\lambda - 1}}\sum\limits_{k = 1}^\lambda {{{\left[ {{{\left( {{m_{k,i}} - \frac{1}{\lambda }\sum\limits_{k = 1}^\lambda {{m_{k,i}}} } \right)}^2}} \right]}^{\frac{1}{2}}}} ,{\text{ }}for{\text{ }}i \in 1,2, \ldots ,N$$

By indexing i at record σi = 0 and storing the index as a vector P=[p1,p2,,pq,,pN]$$P = \left[ {{p_1},{p_2}, \ldots ,{p_q}, \ldots ,{p_N}} \right]$$, then N^$$\hat N$$ is the number of signal X crests and P is the crest index value.

In particular, in order to deal with the elimination of the influence of different scales because of the individual subject’s own differences, the Z-Score normalization is applied to process the signal into data with 0 as the mean and 1 as the variance, in order to reduce the influence of the scale, the characteristics, the difference in distribution, etc., on the feature extraction. The formula is shown below. Zi=xiμσ$${Z_i} = \frac{{{x_i} - \mu }}{\sigma }$$

Frequency domain characteristics

Based on the discrete Fourier transform (DFT), its power spectral density (PSD) is further calculated, which can quantify the variations in the PPI sequence, provide basic information on the distribution of energy changes with frequency, and quantitatively assess the modulation of sympathetic and vagal nerves.

The PSD calculation method is derived as follows.

Let f(t) be a PPI sequence, and intercept a segment of |t|T2$$\left| t \right| \leq \frac{T}{2}$$ from f(t) to obtain a truncated function fT(t): fT(t)={ f(t) (t|T2) 0 (t|>T2)$${f_T}(t) = \left\{ {\begin{array}{*{20}{c}} {f(t)}&{\left( {t\left| { \leq \frac{T}{2}} \right.} \right)} \\ 0&{\left( {t\left| { > \frac{T}{2}} \right.} \right)} \end{array}} \right.$$

If T is a finite value, then fT(t) energy is also finite.

Let F[fT(t)]=FT(ω)$$F\left[ {{f_T}(t)} \right] = {F_T}(\omega )$$, the energy ET of fT(t) at this point can be expressed as: ET=fT2(t)dt=12π|FT(ω)|2d$${E_T} = \int_{ - \infty }^\infty {f_T^2} (t)dt = \frac{1}{{2\pi }}\int_{ - \infty }^\infty {{{\left| {{F_T}(\omega )} \right|}^2}} d$$

By: fT2(t)dt=T/2T/2f2(t)dt$$\int_{ - \infty }^\infty {f_T^2} (t)dt = \int_{ - T/2}^{T/2} {{f^2}} (t)dt$$

The average power of f(t) is obtained as: P=limTT2T21Tf2(t)dt=12π+limT1T|FT(ω)|2dω$$P = \mathop {\lim }\limits_{T \to \infty } \int_{ - \frac{T}{2}}^{\frac{T}{2}} {\frac{1}{T}} {f^2}(t)dt = \frac{1}{{2\pi }}\int_{ - \infty }^{ + \infty } {\mathop {\lim }\limits_{T \to \infty } } \frac{1}{T}{\left| {{F_T}(\omega )} \right|^2}d\omega$$

As T is increasing, so is the energy. fT(t) → f(t) when T → ∞, at which point a limit may exist for 1T|FT(ω)|2$$\frac{1}{T}{\left| {{F_T}(\omega )} \right|^2}$$. Assuming that the limit exists, define it as a function of the power spectral density of f(t), denoted as P(ω). i.e., the power spectrum of f(t) is: P(ω)=liml|FT(ω)|2T(rad2/hz)$$P(\omega ) = \mathop {\lim }\limits_{l \to \infty } \frac{{{{\left| {{F_T}(\omega )} \right|}^2}}}{T}\left( {ra{d^2}/hz} \right)$$

Therefore the average power of f(t) is: P=12πP(ω)dω$$P = \frac{1}{{2\pi }}\int_{ - \infty }^\infty P (\omega )d\omega$$

The power spectrum can be obtained as a reflection of the variation of signal power with frequency per unit frequency band, that is, the distribution of signal power in the frequency domain. The area of P(ω) is the total power of that signal, known as the bilateral power spectrum, and is thus taken as S(ω) = 2P(ω).

Notice the autocorrelation function of f(t). R(τ)=limT1TT/2T/2f(t)f*(tτ)dt$$R(\tau ) = \mathop {\lim }\limits_{T \to \infty } \frac{1}{T}\int_{ - T/2}^{T/2} f (t){f^*}(t - \tau )dt$$

According to the relevant theorem, it can be obtained: { R(τ)=12πψ(ω)eiωτdω ψ(ω)=R(τ)eiωτdτ$$\left\{ {\begin{array}{*{20}{c}} {R(\tau ) = \frac{1}{{2\pi }}\int_{ - \infty }^\infty \psi (\omega ){e^{i\omega \tau }}d\omega } \\ {\psi (\omega ) = \int_{ - \infty }^\infty R (\tau ){e^{ - i\omega \tau }}d\tau } \end{array}} \right.$$

Thus the power spectral function of a power limited signal is a pair of Fourier transform with its autocorrelation function, i.e., the Wiener-Hinchin theorem. In practical experiments, the signals are obtained by sampling and behave in the form of discrete points, so the choice is the DFT, of the form: F(k)=n=0N1f(n)ej2πnk/N$$F(k) = \sum\limits_{n = 0}^{N - 1} f (n){e^{ - j2\pi nk/N}}$$

The corresponding power spectral density is: P(k)=limN|F(k)|2N(rad2/hz)$$P(k) = \mathop {\lim }\limits_{N \to \infty } \frac{{{{\left| {F(k)} \right|}^2}}}{N}\left( {ra{d^2}/hz} \right)$$

Nonlinear characteristics

Sample entropy is a method used to measure the complexity of a time series. It can measure the complexity of a time series by measuring the probability of new pattern generation in the signal; the greater the probability of new pattern generation, the greater the complexity of the sequence [39]. The sample entropy can be represented by SampEn(m,r,N)$$SampEn\left( {m,r,N} \right)$$, where m is the number of dimensions, which can be m or m + 1, r is the similarity tolerance, and N is the length of the time series.

In general, the sample entropy is calculated as follows for a time series x(n) = x(1), x(2), x(N) consisting of N data.

Form a sequence of vectors of dimension m by ordinal number, Xm(1), …, Xm(Nm + 1) where Xm(i) = x(i), x(i + 1), …, x(i + m − 1). m consecutive x values starting at point i.

Define the distance d[Xm(i),Xm(j)]$$d\left[ {{X_m}(i),{X_m}(j)} \right]$$ between vectors Xm(i) and Xm(j) as the absolute value of the largest difference in the elements corresponding to both. I.e: d[Xm(i),Xm(j)]=maxk=0,,m1(x(i+k)x(j+k))$$d\left[ {{X_m}(i),{X_m}(j)} \right] = \mathop {\max }\limits_{k = 0, \cdots ,m - 1} \left( {x\left( {i + k} \right) - x\left( {j + k} \right)} \right)$$

For a given Xm(i), count the number of j(1jNm)$$j\left( {1 \leq j \leq N - m} \right)$$ for which the distance between Xm(i) and Xm(j) is less than or equal to r and denote them as Bi. For 1 ≤ iNm, define: Bim(r)=1Nm1Bi$$B_i^m(r) = \frac{1}{{N - m - 1}}{B_i}$$

Definition Bim(r)$$B_i^m(r)$$ for: B(m)(r)=1Nmi=1NmBim(r)$${B^{(m)}}(r) = \frac{1}{{N - m}}\sum\limits_{i = 1}^{N - m} {B_i^m} (r)$$

Increase the dimension to m + 1 and count the number of distances between Xm+1(i) and Xm+1(j)(1jNm,ji)$${X_{m + 1}}\left( j \right)\left( {1 \leq j \leq N - m,j \ne i} \right)$$ that are less than or equal to r, denoted Ai. Aim(r)$$A_i^m(r)$$ is defined as: Aim(r)=1Nm1Ai$$A_i^m(r) = \frac{1}{{N - m - 1}}{A_i}$$

Definition Am(r) for: Am(r)=1Nmi=1NmAim(r)$${A^m}(r) = \frac{1}{{N - m}}\sum\limits_{i = 1}^{N - m} {A_i^m} (r)$$

Thus, Bm(r) is the probability that two sequences match m points under the similarity tolerance r, while Am(r) is the probability that two sequences match m + 1 points. The sample entropy is defined as: SampEn(m,r)=limN{ln[An(r)Bm(r)]}$$SampEn(m,r) = \mathop {\lim }\limits_{N \to \infty } \left\{ { - \ln \left[ {\frac{{{A^n}(r)}}{{{B^m}(r)}}} \right]} \right\}$$

When N is a finite value, it can be estimated using the following equation: SampEn(m,r)=ln[An(r)Bm(r)]$$SampEn(m,r) = - \ln \left[ {\frac{{{A^n}(r)}}{{{B^m}(r)}}} \right]$$

Study on the detection of health anomalies during the postpartum recovery period
Research on health anomaly detection algorithms during postpartum recovery period

LSTM algorithm

As an improvement of RNN, LSTM is used to store the state at moment t by adding a new state in the hidden layer. Let X={x(1),x(2),,x(n)}$$X = \left\{ {{x^{(1)}},{x^{(2)}}, \cdots ,{x^{(n)}}} \right\}$$ be a time series of length n, x(t)$${x^{\left( t \right)}}$$ denote the sequence captured at moment t, and x(t)Rm$${x^{\left( t \right)}} \in {R^m}$$, be a m-dimensional vector {x1(t),x2(t),,xm(1)}$$\left\{ {x_1^{(t)},x_2^{(t)}, \cdots ,x_m^{(1)}} \right\}$$ meaning the m-dimensional measurements of the tth timestamp in the time series. Where the input of the cell at the tth moment is in addition to the observation x(t)$${x^{\left( t \right)}}$$ at the tth moment, there is also the cell state ct−1 and the output ht−1 of the previous moment, i.e., the t − 1th moment, through the phase present the biggest difference between RNN and LSTM is that a special structure that can record and update the state of the cell is added to the LSTM cell ct, and the function of ct is to save the state accumulated in the history, and then to participate in the computation of the output. The LSTM does this specifically by setting up three gates: a forgetting gate, an updating gate, and an output gate to fulfill the function. The forgetting gate is responsible for managing what information needs to be forgotten by taking the inputs ht−1 and x(t)$${x^{\left( t \right)}}$$ using the Sigmoid function to xt(t)$$x_t^{\left( t \right)}$$. Next is the update gate which controls the inputs with new information to update the values. Finally, it is the calculation of the forgotten data and the memorized data to get the new cell state Ct, which is calculated as shown in Eqs. (37) to (40). ft=σ(Wf[ht1,xt]+bf)$${f_t} = \sigma \left( {{W_f} \cdot \left[ {{h_{t - 1}},{x_t}} \right] + {b_f}} \right)$$ it=σ(Wi[ht1,xt]+bi)$${i_t} = \sigma \left( {{W_i} \cdot \left[ {{h_{t - 1}},{x_t}} \right] + {b_i}} \right)$$ C˜i=tanh(Wc[ht1,xt]+bc)$${\widetilde C_i} = \tanh \left( {{W_c} \cdot \left[ {{h_{t - 1}},{x_t}} \right] + {b_c}} \right)$$ Ct=ft×Ct1+it×C˜t$${C_t} = {f_t} \times {C_{t - 1}} + {i_t} \times {\widetilde C_t}$$

The final step is to calculate the output value ht at moment t using the output gate by first calculating what needs to be retained by the sigmoid cell ot, then using the Tanh function to regularize the cell state Ct, to between -1 and 1, and finally multiplying the results of ot and Ct, as the outputs ht. Eqs. (41) and (42) are the calculations for ht and ot. ot=σ(Wo[ht1,xt]+bo)$${o_t} = \sigma \left( {{W_o} \cdot \left[ {{h_{t - 1}},{x_t}} \right] + {b_o}} \right)$$ ht=ot×tanh(Ct)$${h_t} = {o_t} \times \tanh \left( {{C_t}} \right)$$

Attention mechanism for processing time series

Self-attention mechanism as a kind of attention mechanism mainly fuses the relationship between input sequences through queries, keys and values and outputs them.

a={a1,a2,,an}$$a = \left\{ {{a^1},{a^2}, \cdots ,{a^n}} \right\}$$ is an input sequence of length n, and b={b1,b2,,bn}$$b = \left\{ {{b^1},{b^2}, \cdots ,{b^n}} \right\}$$ is an output sequence of length n with weights assigned by the attention mechanism. The following is an example of b1, describing how the attention mechanism generates the correlation vectors α between the variables based on the individual input vectors. The input vectors are multiplied by different matrices, e.g., a1 by Wq, a2 by Wk, to obtain q and k, and finally q and k are multiplied by a dot product to obtain the correlation vector α, and the correlation vectors of each vector and a1 are obtained α and then processed by the softmax function to obtain α′, which is computed as shown in Eq. (43). a1,i=exp(α1,i)jexp(α1,j)$${a^{\prime}_{1,i}} = \frac{{\exp \left( {{\alpha _{1,i}}} \right)}}{{\sum\limits_j {\exp } \left( {{\alpha _{1,j}}} \right)}}$$

After obtaining the correlation vector a1,i$${a'_{1,i}}$$ between the first vector and the ist vector, the important information vi of each input vector is extracted from the input vectors, and then vi multiplied with the corresponding correlation vectors respectively to obtain the output b1, which is calculated as shown in Eqs. (44) to (47). qi=Wqai$${q^i} = {W^q}{a^i}$$ ki=Wkai$${k^i} = {W^k}{a^i}$$ vi=Wvai$${v^i} = {W^v}{a^i}$$ b=iα1,ivi$$b^{\prime} = \sum\limits_i {{{\alpha}^{\prime}_{1,i}}} {v^i}$$ A=( α1,1,α2,1,α3,1,α4,1 α1,2,α2,2,α3,2,α4,2 α1,3,α2,3,α3,3,α4,3 α1,4,α2,4,α3,4,α4,4)=( k1 k2 k3 k4)(q1,q2,q3,q4)$$A = \left( {\begin{array}{*{20}{l}} {{\alpha _{1,1}},{\alpha _{2,1}},{\alpha _{3,1}},{\alpha _{4,1}}} \\ {{\alpha _{1,2}},{\alpha _{2,2}},{\alpha _{3,2}},{\alpha _{4,2}}} \\ {{\alpha _{1,3}},{\alpha _{2,3}},{\alpha _{3,3}},{\alpha _{4,3}}} \\ {{\alpha _{1,4}},{\alpha _{2,4}},{\alpha _{3,4}},{\alpha _{4,4}}} \end{array}} \right) = \left( {\begin{array}{*{20}{l}} {{k^1}} \\ {{k^2}} \\ {{k^3}} \\ {{k^4}} \end{array}} \right)\left( {{q^1},{q^2},{q^3},{q^4}} \right)$$

Similarly, all the relation vectors are written in the form of matrix A as shown in equation (48). Normalize A to obtain A′, also known as the attention score Let the output matrix be represented using O and the input vectors be represented using V, then O is computed as shown in Equation (49).The above computational procedure shows that the output corresponding to each input is computed in parallel without causing any increase in time complexity. [ b1 b2 bn]=[ v1 v2 vn]A O=VA$$\begin{array}{rcl} \left[ {\begin{array}{*{20}{l}} {{b^1}}&{{b^2}}& \cdots &{{b^n}} \end{array}} \right] & = & \left[ {\begin{array}{*{20}{l}} {{v^1}}&{{v^2}}& \cdots &{{v^n}} \end{array}} \right] \cdot A^{\prime} \\ & \Rightarrow & O = V \cdot A^{\prime} \\ \end{array}$$

OC-SVM for anomaly detection

OC-SVM uses unsupervised learning to recognize sparsely populated data regions and distinguish data belonging to abnormal regions. Suppose there is a training sample x=(x1,x2,,xt)$$x = \left( {{x_1},{x_2}, \cdots ,{x_t}} \right)$$ of length l. Training sample x belongs to a known class which is generally the normal class. Let ϕ be a kernel function that can project the training data into a high-dimensional space. Then the goal is to solve the objective function of the support vector machine as shown in Eq. (50) such that the data set is separated from the origin. min{12w2+1vli=1lεiρ} s.t:wϕ(xi)ρεi,i=1,2,3,,l,εi0$$\begin{array}{c} \min \left\{ {\frac{1}{2}{{\left\| w \right\|}^2} + \frac{1}{{vl}}\sum\limits_{i = 1}^l {{\varepsilon _i}} - \rho } \right\} \\ s.t:w\phi \left( {{x_i}} \right) \geq \rho - {\varepsilon _i},i = 1,2,3, \cdots ,l,{\varepsilon _i} \geq 0 \\ \end{array}$$

where w is the hyperplane of the decision, ρ is the bias term, εi is the non-relaxation variable, and the meta-parameter v ∈ (0, 1), is used to control the number of samples contained in the hypersphere. The decision function is determined using w and ρ and is computed using the following equation: f(x)=wϕ(x)ρ$$f(x) = w\phi (x) - \rho$$

DA-LSTM-OS algorithm design

General Architecture of DA-LSTM-OS Algorithm

This subsection introduces the two-stage attention-based LSTM autoencoder and a class of support vector machines for anomaly detection algorithm (DA-LSTM-OS). This subsection proposes an LSTM algorithm incorporating the attention mechanism implements an encoder and decoder to extract features, and then inputs the extracted features into the OC-SVM for training, thus realizing the detection of abnormal physiological signals.

Encoder analysis and design

This algorithm designs LSTM autoencoder (AL-AE) that incorporates the attention mechanism. Let the length of the input sequence X be T. The input sequence is denoted as: X=[x1,x2,,xn]T =(x1,x2,,xT)Rn×T$$\begin{array}{rcl} X & = & {\left[ {{x^1},{x^2}, \cdots ,{x^n}} \right]^T} \\ & = & \left( {{x_1},{x_2}, \cdots ,{x_T}} \right) \in {R^{n \times T}} \\ \end{array}$$

where xi is the input of sampling moment t, expressed as shown in the following equation: xt=( xt1 xt2 xtn)TRn$${x_t} = {\left( {\begin{array}{*{20}{l}} {x_t^1}&{x_t^2}& \cdots &{x_t^n} \end{array}} \right)^\mathcal{T}} \in {R^n}$$

n indicates that xi has multiple input dimensions, such as the two acquired PPG signals and the acceleration vector sum. Use xk to represent a univariate sequence of inputs as shown in the following equation: xk=( x1k x2k xTk)TRT$${x^k} = {\left( {\begin{array}{*{20}{l}} {x_1^k}&{x_2^k}& \cdots &{x_T^k} \end{array}} \right)^T} \in {R^T}$$

Assuming a univariate input sequence of xk, where ht−1 and ct−1 are the outputs of the LSTM cell at the previous moment, and WRT, QRT × T, and KRT × 2m are the weight matrices to be learned, respectively, the innovation of the proposed attentional mechanism is that it takes into account the outputs of the LSTM network at the previous moments ht−1 and ct−1 so as to be able to guide the allocation of attention based on the previously learned experience [40]. The attention weights at each moment are then normalized using equation (56), αtk$$\alpha _t^k$$ to measure the attention weight of the kth input sequence xk at moment t. Here etk$$e_t^k$$ are the attention weights computed after pointwise multiplication and processed using the softmax function, which ensures that the sum of the attention weights is transformed to 1. The attention weights use a feed-forward network, which can be trained with the subsequent LSTM. etk=WTtanh(Qxk+K[ht1;ct1])$$e_t^k = {W^T} \cdot \tanh \left( {Q \cdot {x^k} + K \cdot \left[ {{h_{t - 1}};{c_{t - 1}}} \right]} \right)$$ αtk=exp(etk)i=1nexp(eti)$$\alpha _t^k = \frac{{\exp \left( {e_t^k} \right)}}{{\sum\limits_{i = 1}^n {\exp } \left( {e_t^i} \right)}}$$

After the allocation process, x′ is residually concatenated with the original inputs, an operation that smoothly integrates the inputs with the outputs of the attention mechanism. The computation is shown in Eqs. (58)-(59), and after obtaining xt$${x^{\prime\prime}_t}$$, it is normalized using Layer Normalization as the final output x˜t$${\tilde x_t}$$, where m and σ are the mean and variance of xt$${x^{\prime\prime}_t}$$, respectively. xt=(αt1xt1,αt2xt2,,αtnxtn)$${x^{\prime}_t} = \left( {\alpha _t^1x_t^1,\alpha _t^2x_t^2, \cdots ,\alpha _t^nx_t^n} \right)$$ xt=xt+xt$${x^{\prime\prime}_t} = {x^{\prime}_t} + {x_t}$$ x˜ti=xtimσ$$\tilde x_t^i = \frac{{x_t^{i''} - m}}{\sigma }$$

Decoder analysis and design

The attention mechanism in the decoding phase uses the hidden state dt−1 and cell state st−1 of the LSTM decoder at the previous moment to compute the attention weight at the current moment, which is computed as shown below: lti=WdTtanh(Qdhi+Kd[dt1;st1]),1iT$$l_t^i = W_d^T \cdot \tanh \left( {{Q_d} \cdot {h_i} + {K_d} \cdot \left[ {{d_{t - 1}};{s_{t - 1}}} \right]} \right),1 \leq i \leq T$$

The hidden state after the attention mechanism is h˜t$${\widetilde h_t}$$, which is computed by multiplying the hidden state hi of each encoder by its respective attention weight for a weighted sum, thus mapping hi to a temporal component of the decoder input as shown in Equation (61). h˜t=i=1Tβtiht$${\widetilde h_t} = \sum\limits_{i = 1}^T {\beta _t^i} {h_t}$$

The loss function uses the mean square error (MSE) function: MSE(Y,X)=i=1T(yixi)2T$$MSE\left( {Y,X} \right) = \frac{{\sum\limits_{i = 1}^T {{{\left( {{y_i} - {x_i}} \right)}^2}} }}{T}$$

Experiments and analysis of results
Pulse wave signal feature extraction during postpartum recovery period

Accurately identifying the peaks and valleys of the pulse signal is the key to measuring blood oxygenation and heart rate.PPG signal acquisition is greatly affected by external influences, and small positional offsets can cause drastic changes in the signal amplitude, while successive feature points become denser from sparse, and the detection accuracy of the fixed-threshold and step detection algorithms will be greatly affected. The conventional algorithm for identifying crest points in PPG signals is shown in Fig. 2, and leakage occurs when PPG signal crest detection is performed. According to the acquired pulse wave signal, the dynamic thresholding method is used for signal crest and trough feature extraction, which is better than the conventional thresholding method in terms of real-time and accuracy. Therefore, in this paper, the dynamic thresholding method is used to extract the feature points of the signal.

Figure 2.

The PPG signal conventional algorithm crest spot recognition

We found through the study of the acquired pulse signals, although each pulse wave will have a certain amount of change in the size of the peak wave value, but the overall change is still within an approximate threshold, through the analysis of a large number of waveform acquisition can be seen on the range of fluctuations will not be more than 0.4 times the maximum value of the wave point is the maximum value of the waveform in a signal cycle, which is characterized by a greater than all the values of its cycle. Set the acquired PPG signal as an array T[j], j[0,N], the sampling frequency of 400Hz, the neighborhood length is defined as 300 data points can identify the wave point, dynamic threshold detection wave detection method, first of all, the view window is set to 100 points, the average value of its fluctuations on behalf of the entire range of the data, so at the starting point, with the average value of the threshold for the start, the data point is greater than the threshold Therefore, at the starting point, the average value is used as the starting threshold and data points larger than the threshold, which are distributed in the upper half of the waveform, and the maximum value is the peak value if it is taken as the range. The new data profile is obtained by moving the time window, removing the first sample point, and adding new sample points at the end of the data. The average value of the data is calculated and compared to the maximum value of the previous data. The result obtained is between the peak and average signals. A different threshold value was derived by correcting for the difference and experimenting with it. This difference was used as a threshold value for the current determination of the peak point, and the cycle was performed until the end point of this peak detection was smaller than this threshold value.The dynamic threshold wave point identification of the PPG signal is shown in Figure 3. The results show good recognition and a low leakage rate.

Figure 3.

PPG signal dynamic threshold point recognition

The method first inverts the PPG signal using the dynamic thresholding method, so that the maximum value of the pulse wave signal becomes the minimum, and the minimum becomes the maximum. At this stage, the valley detection is converted into peak detection after inversion, and the peak value of the inverted signal is extracted using the dynamic thresholding method to obtain the valley of the initial signal.The identification of PPG signal peaks and valleys is shown in Fig. 4. By identifying the peaks and valleys of the PPG signal to determine the key eigenvalue R-value in the mathematical model of oxygen saturation, it can be seen that the R-value is the key factor for calculating oxygen saturation, and it is feasible to obtain the peaks and valleys based on the method in this section.

Figure 4.

PPG signal wave valley recognition

For the prediction of arterial blood pressure values, the acquired PPG signal, and the second-order derivative of the PPG signal, i.e., the accelerated pulse wave APG, are required.The key parameter for the prediction of arterial blood pressure, pulse wave conduction time, is computed by identifying the wave crest points of both signals. Arterial blood pressure is calculated using this method when PTT is calculated, i.e., the starting point is the first wave peak of the APG signal, and the end point is the main wave peak of the PPG signal in the next cycle.The effect of wave peak identification of the PPG and APG signals is shown in Fig. 5 (Fig. a shows the effect of wave peak identification of the PPG signal, and Fig. b shows the effect of wave peak identification of the APG signal). As can be seen from the figure, the kurtosis of PPG signal waveform recognition is mainly concentrated between 461 and 590, and the kurtosis of APG signal waveform recognition is mainly concentrated between 500 and 560, the

Figure 5.

PPG signal and APG signal wave peak recognition effect

Experiment on automatic identification of health monitoring data during the postpartum recovery period
Heart rate measurement experiment

Experimental design

The dataset in the experiment for measuring heart rate was derived from the Signal processing cup, which consists of 12 sets of signals collected from subjects between the ages of 20-35 years old, with each set of signals including two PPG signals collected using a bracelet integrated with 515 nm green light, one ECG signal, and three-axis acceleration signals. The triaxial acceleration signals were acquired through an acceleration sensor integrated into the bracelet and included motion information in three mutually perpendicular directions, and the ECG signals were electrocardiogram signals that were acquired through electrode pads immediately adjacent to the subject’s chest, while the reference heart rate provided was calculated from the ECG signals. During the data acquisition process, the subject followed a certain pattern of movement on the treadmill in order to achieve the desired state of exercise, which is as follows:

Rest (30 seconds) -> 8 km/h (1 minute) -> 15 km/h (1 minute) -> 8 km/h (1 minute) -> 15 km/h (1 minute) -> Rest (30 seconds).

Rest (30 seconds) -> 6 km/h (1 minute) -> 12 km/h (1 minute) -> 6 km/h (1 minute) -> 12 km/h (1 minute) -> Rest (30 seconds)

Each set of samples was recorded for 5 minutes of exercise, the overall sample included both forms of exercise described above, and the signal was sampled at 125 Hz, with the corresponding reference heart rate provided every 2 seconds.

Multi-channel parallel adaptive filtering technique and multi-parameter combination of heart rate algorithms were used to measure heart rate. For the experiment, 8s was used as the time window, and each step was 2s, and the algorithm was utilized to calculate the heart rate in each time window.

Experimental parameter settings

The relevant parameters of the heart rate measurement experiment were set: the order of the LMS adaptive filter was 20, the step size was 0.002, the order of the RLS adaptive filter was 5, and the forgetting factor was 0.999. The number of points of the Fourier transform was N=30000, the adaptive thresholds p and q were taken to be 40 and 52, respectively, and the maximum value of the heart rate change in the neighboring window σ was taken to be 10.

Experimental results and analysis

The AAEs of different algorithms on 12 sets of data are shown in Table 1. And compared with other algorithms, such as TROIKA, JOSS, SPECTRAP, COMB, Particle, OSC-ANFc, etc., the average AAE of 12 groups of data is 0.995±1.32 BPM, and the experimental results show that the algorithm proposed in this paper is better than the other algorithms.The Pearson correlation coefficients of the estimated heart rate and the reference heart rate for 12 groups of data are shown in Fig. 6 shows. The data shows that the Pearson correlation coefficient reaches 0.9951, and the two are highly correlated.

The different algorithms are on the 12 data

Algorithm TROKIA JOSS SPECTPAP COMB Particle OSC-ANFc Ours
1 2.01 1.71 1.02 2.41 1.43 1.45 1.36
2 2.84 1.75 2.54 3.46 1.44 1.56 1.32
3 2.48 1.34 0.38 0.02 1.57 1.9 0.49
4 2.87 1.59 1.84 1.63 1.22 1.19 1.25
5 2.12 0.59 0.92 0.47 0.11 0.6 0.71
6 2.78 1.13 1.25 1.71 1.18 1.32 0.01
7 1.88 0.27 1.81 2.52 0.09 0.27 0.7
8 1.31 0.73 0.45 0.85 1.61 1.66 0.46
9 1.09 0.2 0.73 0.54 0.83 0.23 0.32
10 4.13 3.86 3.06 4.2 2.54 2.88 3.95
11 1.95 0.25 0.92 1.52 1.79 1.53 0.2
12 2.87 1.87 1.35 1.13 1.18 1.28 1.17
Mean(SD) 2.361(2.75) 1.274(2.65) 1.356(1.89) 1.705(NA) 1.249(1.75) 1.323(NA) 0.995(1.32)
Figure 6.

The heart rate and the Pearson correlation coefficient of the heart rate

Blood pressure measurement experiments

Experimental design

The dataset for the blood pressure experiment consisted of two aspects, on the one hand, the data came from the MIMIC dataset, which included 80,000 physiological waveform records of the patients, and each set of recordings included one or more ECG signals, arterial blood pressure ABP signals as well as PPG signals, and from which we chose 10 sets of recordings that contained both PPG and ABP, and each set of signals contained one hour of consecutive waveform recordings,. The sampling rate of the signals was 125 Hz.

The experimental data set for blood pressure did not include triaxial acceleration signals, and a low-pass filter was used to remove high-frequency noise. For the experiment, the characteristic parameters of PPG were first extracted, and the blood pressure equation was fitted with 3 data sets as the training set and the remaining 7 data sets as the test set. We extracted the reference blood pressure from the ABP signal, with the peak representing diastolic blood pressure and the trough representing systolic blood pressure. The time window used for the experiment was set to 5s.

Parameter settings

The blood pressure experiment used a low-pass filter to filter out high-frequency noise interference, and the cutoff frequency of the filter was 4Hz.

Experimental results and analysis

The correlation between the characteristic parameters and SBP and DBP is shown in Table 2. It can be seen that the diastolic time share and the relative height of the repetition wave have a high correlation with blood pressure. The AAEs of blood pressure on the seven test sets are shown in Table 3.The best error for SBP was 2.61±5.1 mmHg, and the best error for DBP was 1.69±2.74 mmHg, and the error of the predicted DBP was overall better than the error of SBP.

The correlation between feature parameters and SBP and DBP

Eigenvalue Expression SBP correlation DBP correlation
Period of contraction t1/t -0.2547 -0.2185
Diastolic time ratio t2/t -0.6122 -0.5746
The relative height of the hypotension h1/h -0.3261 -0.1435
The relative height of the double bobo h2/h -0.4512 -0.4428
K1 SABCU/SAFHU -0.0754 -0.0561
K2 SUCDE/SUHIE -0.0268 -0.0032

AAE on the seven sets of tests

Test data SBP AAE(SD)(mmHg) DBP AAE(SD)(mmHg)
1 3.69(7.33) 2.36(5.36)
2 2.61(5.1) 1.69(2.74)
3 3.59(6.78) 2.24(5.32)
4 3.12(6.42) 1.85(4.36)
5 3.95(7.69) 2.66(5.88)
6 3.85(7.42) 2.48(5.19)
7 3.55(6.94) 2.58(5.68)
Oxygen saturation measurement experiments

Experimental design

The dataset for measuring oximetry was constructed using self-acquired data. PPG signals were collected through a physiological indicator monitoring development board, while oximetry was measured as a reference value using a Myriad IPM6 patient monitor. The dataset consists of four sets of data from adult males, each recorded over a 10-minute period, including two PPG and infrared light acquisitions from the development board. The reference oximetry was read every 5 seconds. For the experiment, the left middle finger was pressed on the development board to acquire the PPG signal while the left index finger wore a finger splint to measure the reference oxygen saturation through a patient monitor. The signal’s sampling rate was 100Hz.

The oximetry data does not include the triaxial acceleration signal, so we use low-pass filtering to remove the noise. In the experiment, the R-value is calculated by calculating the AC and DC components of the PPG signal, and then the quadratic equation of the oximetry is fitted. The training set of the experiment comprises the first 5 minutes of the 4 sets of data, and the test set consists of the final 5 minutes of the data. The time window in the experiment was 5 s, which was consistent with the reference oxygen saturation.

Parameter settings

To filter out high-frequency noise interference, a low-pass filter was utilized, and the filter’s cut-off frequency was 4 Hz.

Experimental results and analysis

The AAE of blood oxygen saturation on the four sets of test data is shown in Table 4. As seen in the table, the highest average absolute error is 1.13%, which indicates the effectiveness of the algorithm. The comparison of reference and predicted oximetry is shown in Figure 7. It clearly shows the effectiveness of the oximetry algorithm.

AAE on the four sets of test data

Test data 1 2 3 4
AAE(%) 0.85 1.13 0.89 0.96
Figure 7.

Reference blood oxygen and forecast blood oxygen contrast

Design and realization of a health monitoring system
Overall system framework design

The hardware flowchart of the postpartum recovery period health monitoring system is shown in Figure 8. The design of this paper for the human health monitoring system mainly includes three parts: ① main control module, including STM32 main control chip and CC2640 Bluetooth communication module. ② Front-end acquisition and processing module, including PPG signal acquisition module, I/V conversion and signal filtering, amplification module. ③ Auxiliary modules, including three-axis accelerometer module and system low-power design. The green light source module can provide a stable light source for the system, and at the same time, compared with other light sources, it has a higher signal-to-noise ratio after reflection, which is more suitable for the design of this system. In order to reduce power consumption, the switch can be controlled by the main control chip, and the light intensity value can be adjusted by adjusting the size of the LED current value. At the same time, the PPG signal, due to the presence of a large DC component, will saturate the operational amplifier when passing through the two modules of I/V conversion and signal filtering and amplification, covering the AC signal in the captured signal.

Figure 8.

Monitoring system hardware flow chart

Health monitoring system hardware design
Main control chip and Bluetooth communication module

During the operation of the whole system, data will be collected at high frequency at any time. At the same time, in order to deal with the huge amount of calculations, it is also necessary to put forward certain requirements on the computing power of the processing chip. STM32F103 has a powerful core of Cortex-M3 and 32-bit ARM microcontroller can fully meet the system’s demand for computing. Its core number and bus width are the best in its class, and it also has a rich set of pins and interfaces required by this design, which can satisfy the system’s various needs for ROM and RAM.

PPG Signal Acquisition Circuitry

The PPG signal acquisition module of this system selects the SFH7050 photoelectric sensor manufactured by OSRAM, which can support the acquisition of relevant signals such as heart rate, blood oxygen, and blood pressure. Under the working condition, the sensor can emit two channels of light at the same time, i.e., red light with a wavelength of 660nm and infrared light with a wavelength of 940nm. For the system acquisition accuracy needs, this paper at the same time selected the AFE4400 acquisition front-end, and in the original sensor based on the addition of 535nm green light emitting module, greatly improving the accuracy of the PPG signal acquisition.AFE4400 is mostly used in the biological signal acquisition front-end, the collected signals for filtering, amplification, and A/D conversion, etc., this paper makes improvements to its increased I / V conversion circuit and its filtering and conversion circuit. V conversion circuit and modify some parameters of the filtering and amplifying circuit, which can make the pre-processing of PPG signals to achieve more ideal results.

I/V conversion circuits

SFH7050 photoelectric sensor collected for the current signal, can not be extracted from the corresponding waveform and preprocessing operations, before the signal needs to be I / V conversion. Due to the size of the collected current signal for the microampere level, so after the I / V conversion is also required to process the signal filtering and amplification, in order to reduce noise interference, to improve the accuracy of the purpose.

The converted voltage value V0 is calculated from equation (63): V0=i1×Rf$${V_0} = {i_1} \times {R_f}$$

The input current value is i1, Rf is the feedback resistor in the figure. After the output voltage value V0 can be input to the subsequent filtering, amplification circuit.

Signal Filtering and Amplification Circuitry

The voltage signal output by the I/V conversion circuit is accompanied by a large number of noise signals, including: baseline drift, industrial frequency interference, ambient light and motion artifacts. Baseline drift is generally caused by breathing, and its frequency is generally lower than 0.5 Hz. Industrial frequency interference is mostly from the operating power supply, the noise signal frequency is generally around 50 Hz. Ambient light interference is due to the photosensitive element does not work in a closed environment and thus cause interference to the PPG signal, through the improvement of the probe structure and other technologies, the impact of ambient light can be improved.

The Butterworth second-order low-pass filter has the best amplitude-frequency characteristic curve when quality factor Q = 0.707 is used. Multi-stage cascading of the filter module is used to improve the filter roll-off characteristics so that it can filter out noise signals other than 5 Hz at one time, which greatly improves the efficiency.

By Eq: Q=13AUP=0.707$$Q = \frac{1}{{3 - {A_{UP}}}} = 0.707$$ AUP=31Q=310.7071.586$${A_{UP}} = 3 - \frac{1}{Q} = 3 - \frac{1}{{0.707}} \approx 1.586$$

Set the cutoff frequency to 24 Hz, i.e: fH=12πRC=24Hz$${f_H} = \frac{1}{{2\pi RC}} = 24Hz$$

Usually, capacitor C is used with a capacitance of 0.1μF. The amplification circuit in the second half of the module uses the differential amplification circuit of the OP07CDR chip, which amplifies the signal by a factor of: AU=1+R7R6$${A_U} = 1 + \frac{{{R_7}}}{{{R_6}}}$$

Design R7 = 10 kΩ, R6 = 5.86 kΩ, the amplification of the filter after cascading is about 1.6 times.

In this paper, the amplification of the inverse amplification circuit is set to 16 times, which can meet the demand of the subsequent module for signal processing. And the amplification multiplier: AV=V0Vi=R15R17$${A_V} = \frac{{{V_0}}}{{{V_i}}} = - \frac{{{R_{15}}}}{{{R_{17}}}}$$

Triaxial Acceleration Sensor Circuitry

According to the working principle of the NLMS adaptive filter, in the adaptive filtering of the preprocessed PPG signal, it is necessary to synchronize the input of three-axis acceleration signals from the same body at the same time at the second input. The sensor can meet the three axial acceleration acquisition at the same time, based on the difference between the front and rear two acceleration to realize the acquisition of motion signals. If the difference between the two signals is higher than the threshold, the corresponding pin will be cut off. The four-wire SPI interface can be configured in master-slave mode. In this system, the STM32 master chip can be set as a master mode, and the LIS3DH sensor can be set as a slave mode.

System low-power design

In the process of developing health monitoring system, due to the requirement of its standby time, it is necessary to reduce the power consumption of the equipment under the premise of meeting all the functions of the equipment, so as to achieve the purpose of long standby time, energy saving and emission reduction. Therefore, we should not only put forward the requirements of low power consumption from the system level, but also reduce the power consumption from each module and detail, so as to improve the performance and standby time of the device.

Health monitoring system software design
System software architecture

The system software architecture is shown in Fig. 9. The figure mainly introduces two timers and sets the timing period to 10ms and 2ms respectively to interrupt the normal working mode. Before executing the program, initialize it to preset the working mode. Set the PWM wave output of the timer to stabilize the current in the light source circuit at 20mA and set the frequency of the PWM wave to 100KHz. if the master chip does not execute the program related to filtering, it switches to the sleep mode and turns on the timer, which can be woken up by stopping the timer and switching to the fast operation state. When the master chip is interrupted from the 10ms timer, it will start filtering DC components with frequencies below 0.5Hz and return the processed components to the input. In the second half, by setting a timer with a time period of 2ms, the main control chip can be switched to sleep mode, in which synchronization between the I/V conversion circuit and the PPG signal of the signal amplifier circuit will be turned on. After 2ms, the main control chip is awakened by the timer and performs the secondary amplification and filtering process, while simultaneously turning on the acquisition of the three-axis acceleration signal. After the acquisition is completed and the processed PPG signal is divided into two separate inputs to the adaptive filter, the output waveform is decomposed and reconstructed to execute the health extraction algorithm. The final calculated health value and pulse wave are transmitted to the terminal platform of the smart device through Bluetooth module for processing. Once all the processes are completed, the main control chip will switch to low-power mode until the next 10ms timed interrupt occurs.

Figure 9.

System software architecture diagram

Health Extraction Algorithm

The calculation of peak-to-peak intervals and the number of peaks per minute have mostly been used for the calculation of heart rate values from ECG signals or PPG signals at rest. As shown in Eq. (69), some scholars have validated the estimation of heart rate by putting the PPG signal processed by hardware filtering and software algorithms into the frequency domain fes. fes=60×fHR$${f_{es}} = 60 \times {f_{HR}}$$

where fHR denotes the true heart rate.

In this paper, the position index Pn of the estimated heart rate in the frequency domain is obtained by spectral peak tracking, and the estimated heart rate can be obtained by substituting into Eq. (70): fes=60×PnNfs$${f_{es}} = 60 \times \frac{{{P_n}}}{N}{f_s}$$

where fs denotes the sampling frequency and N denotes the number of grids for [0,fs]$$\left[ {0,{f_s}} \right]$$. The grid frequency is set to be about 1 time/second, i.e: 60fsN=1$$60\frac{{{f_s}}}{N} = 1$$

where the number of grids N needs to be satisfied Nσfs, σ is the duration of each window. The FFT transform of the PPG time-domain signal and spectral peak tracking are performed to obtain the position index of the estimated heart rate in the frequency domain Pn.

Mobile terminal APP development

The health monitoring system software used in this paper accomplishes the data display and processing functions on the PC and mobile device side. The system will collect the PPG signal data for preprocessing, and filter and calculate the corresponding heart rate value according to the algorithm proposed in this paper, and finally display the real-time heart rate waveform and calculation results on the APP interface.

Impact of health intervention methods on the mental health status of women in the post-natal period

In this section, the experimental method was used to evaluate the effectiveness of the method used in this paper. Forty women who were three months to six months postpartum were selected and randomly divided into an experimental group (20) and a control group (20), and by using the method of this paper, the intervention experiment was carried out on the postpartum women three times a week for a period of 12 weeks.

Before and after the experiment, the SCL-90 psychological scale was measured by the experimental subjects, and the mean values of somatization, obsessive-compulsive symptoms, interpersonal sensitivity, depression, anxiety, hostility, horror, paranoia, psychoticism, and other ten factors of the measurement results were calculated and analyzed. The results of the psychological index test are shown in Table 5 (For comparison within groups, * indicates a significant difference, P < 0.05, and ** indicates a highly significant difference, P < 0.01.) (For comparisons between groups, △ indicates a significant difference, P < 0.05, and △△ indicates a highly significant difference P < 0.01).

Psychological indicators test results

Factor Experimental Group (N= 20) Control Group (N= 20)
Preexperiment After The Experiment Preexperiment After The Experiment
Somatization 1.26±0.13 1.09±0.58* 1.38±0.14 1.3±0.21
Obsessive-Compulsive Disorder 1.52±0.36 1.28±0.51** 1.52±0.22 1.51±0.36
Interpersonal Sensitivity 1.45±0.3 1.32±0.21 1.58±0.42 1.54±0.6
Depression 1.61±0.37 1.06±0.67** 1.65±0.64 1.62±0.44△△
Anxiety 1.24±0.23 1.12±0.13* 1.47±0.52 1.42±0.22
Antagonism 1.66±0.35 1.43±0.63** 1.56±0.6 1.5±0.37
Horror 1.18±0.65 1.07±0.51 1.27±0.25 1.26±0.62
Paranoia 1.33±0.62 1.28±0.15** 1.35±0.67 1.34±0.38*
Insanity 1.26±0.51 1.14±0.67 1.18±0.52 1.15±0.14
Other 1.42±0.14 1.18±0.48 1.36±0.51 1.34±0.2

As can be seen from the table, the experimental group and the control group did not see significant differences in the ten factors in the SCL-90 test results before the experiment (P>0.05), after using the method of this paper to assist in the practice of the experimental group after the experiment of the value of the indicators have decreased, and also the rate of decrease is larger, the control group in the experiment of the value of the factors after the experimental also showed a downward trend.

Somatization is essentially a reflection of a person’s subjective bodily feelings, which can manifest as dizziness, nausea, chest tightness, difficulty breathing, and difficulty in concentrating. The larger the score, the greater the physical discomfort. The somatization of both experimental and control groups decreased after the experiment, in which the somatization of the control group changed from (1.38±0.14) to (1.3±0.21) after the experiment, and the values changed but were not statistically significant (P>0.05). In contrast, somatization in the experimental group changed from (1.26±0.13) to (1.09±0.58) after the experiment, with a substantial decrease in the values and a significant difference compared to the preexperimental period (P<0.05). This is due to the fact that postpartum women gradually adapt to their new roles and their physical discomfort decreases over time. Postpartum women are weak and need rest and recuperation, but many women often have poor rest due to breastfeeding and caring for their children, resulting in dizziness, chest tightness, and lack of concentration. The experimental group in the yoga intervention used each ten-minute yoga rest technique to improve the body’s relaxation and rest, greatly reducing the physical discomfort of postpartum women. This shows that the method presented in this paper can effectively prevent the occurrence of somatization disorder.

Obsessive-compulsive symptoms mainly refer to an individual’s overstimulation to think or do things that he or she knows are not necessary as well as repetitive thoughts or repetitively doing something. Positive psychological suggestion is conducive to reducing the occurrence of OCD. The mean value of obsessive-compulsive disorder in the experimental group and the control group decreased after the experiment, in which the obsessive-compulsive symptoms of the control group changed from (1.52±0.22) to (1.51±0.36) after the experiment, the value of which decreased, but did not have a significant difference (P>0.05), which is because the natural recovery of women’s post-partum psychology takes a long process, and the effect is not obvious in the short term. In the experimental group, the obsessive-compulsive symptoms decreased from (1.52±0.36) to (1.28±0.51) after the experiment, which is a very significant change (P<0.01). Therefore, it indicates that the use of the method of this paper can effectively reduce the occurrence of obsessive-compulsive symptoms in postpartum women.

In conclusion, the method of this paper can effectively regulate depression, anxiety, and hostility in postpartum women, and improve their obsessive-compulsive symptoms, somatization, and paranoid behavior. It shows that the method presented in this paper has a positive impact on the mental health of postpartum women.

Conclusion

The article first describes the concepts related to pulse wave, introduces the principles and methods of detecting blood oxygen saturation and blood pressure. And various algorithms are utilized for pulse feature extraction from time, frequency, and nonlinear domains to ensure the capture of features that are helpful for health monitoring data. The processing flow of the health anomaly detection algorithm during the postpartum recovery period and the principle of implementation are introduced. Finally, a postpartum recovery period health monitoring system is designed based on relevant experimental results. This paper draws the following conclusions:

In the heart rate measurement experiment, the average AAE of the 12 groups of data in the experiment using the algorithm proposed in this paper is 0.995±1.32 BPM, which is better than other comparative algorithms. In the blood pressure test, the best SBP error of this paper’s method on 7 sets of test sets is 2.61±5.1 mmHg, and the best DBP error is 1.69±2.74 mmHg. In the oxygen saturation measurement experiments, the average absolute error is the highest of 1.13%, which confirms the effectiveness of this paper’s algorithm.

The results of this study, which used the method of this paper to intervene in postpartum women for a period of three months, showed that the method of this paper had a positive and significant difference in improving depression, anxiety, and paranoia in postpartum women. For example, the experimental group experienced a highly significant change in obsessive-compulsive symptoms by a drop of 0.24 after the experiment (p < 0.01).

Język:
Angielski
Częstotliwość wydawania:
1 razy w roku
Dziedziny czasopisma:
Nauki biologiczne, Nauki biologiczne, inne, Matematyka, Matematyka stosowana, Matematyka ogólna, Fizyka, Fizyka, inne