*Article* **A Novel Seismocardiogram Mathematical Model for Simplified Adjustment of Adaptive Filter**

**Gediminas Uskovas 1 , Algimantas Valinevicius 1 , Mindaugas Zilys 1 , Dangirutis Navikas 1 , Michal Frivaldsky 2 , Michal Prauzek 3 , Jaromir Konecny <sup>3</sup> and Darius Andriukaitis 1, \***


**Abstract:** Nonclinical measurements of a seismocardiogram (SCG) can diagnose cardiovascular disease (CVD) at an early stage, when a critical condition has not been reached, and prevents unplanned hospitalization. However, researchers are restricted when it comes to investigating the benefits of SCG signals for moving patients, because the public database does not contain such SCG signals. The analysis of a mathematical model of the seismocardiogram allows the simulation of the heart with cardiovascular disease. Additionally, the developed mathematical model of SCG does not totally replace the real cardio mechanical vibration of the heart. As a result, a seismocardiogram signal of 60 beats per min (bpm) was generated based on the main values of the main artefacts, their duration and acceleration. The resulting signal was processed by finite impulse response (FIR), infinitive impulse response (IRR), and four adaptive filters to obtain optimal signal processing settings. Meanwhile, the optimal filter settings were used to manage the real SCG signals of slowly moving or resting. Therefore, it is possible to validate measured SCG signals and perform advanced scientific research of seismocardiogram. Furthermore, the proposed mathematical model could enable electronic systems to measure the seismocardiogram with more accurate and reliable signal processing, allowing the extraction of more useful artefacts from the SCG signal during any activity.

**Keywords:** mathematic model; cardiovascular system; seismography; modeling; adaptive digital filter; noninvasive method; heart rate

#### **1. Introduction**

The heart is one of the most complex and hardest-working organs in the physiological system of a living organism and determines the quality of human life. Proper cardiac diagnosis allows one to notice heart problems in a timely manner. Various cardiac tests are among the most important, but the number of patients with cardiovascular disease remains high [1,2]. One of the most popular heart work measurements is electrocardiogram measurement, but the measurement of electrocardiogram is a clinical method and is not suitable for monitoring the patient's daily or active activities due to the need to carry uncomfortable electrodes [3,4]. The need for nonclinical monitoring is growing to detect changes in cardiac work at an early stage, to facilitate treatment in areas where cardiac disease experts are missing [5,6]. Additionally, hospitals want to minimize unplanned visits to clinics or hospitals, when majority visits are minute-time and, as a result, not cost beneficial. For this group, the challenge is how to help them to interpret symptoms correctly and alert an ambulance or use medicaments instead of waiting for symptoms to disappear [7,8]. Therefore, the main objective is to reduce mortality by replacing stationary diagnostic devices with portable devices, which can alert to possible disease.

**Citation:** Uskovas, G.; Valinevicius, A.; Zilys, M.; Navikas, D.; Frivaldsky, M.; Prauzek, M.; Konecny, J.; Andriukaitis, D. A Novel Seismocardiogram Mathematical Model for Simplified Adjustment of Adaptive Filter. *Electronics* **2022**, *11*, 2444. https://doi.org/10.3390/ electronics11152444

Academic Editor: João Soares

Received: 16 June 2022 Accepted: 3 August 2022 Published: 5 August 2022

**Publisher's Note:** MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

**Copyright:** © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/).

These portable or wearable electronic systems do not disturb the daily activity of patients, have evaluated data noninvasively and extract various information on heart functionality [9,10]. The seismocardiogram signal represents low-frequency (0–50 Hz) cardio cycle mechanic vibrations corresponding to cardiac events [11,12], and contains mitral valve opening (MO) and closing (MC), isovolumetric contraction, ejection, opening of the aortic valve (AO) and closing (AC), and cardiac filling [13]. The heart monitoring system is complicated due to its nonstationary nature [14] and the presence of noises such as muscle movement noise, respiration vibration noise [8], and environment acoustic noise [6,15] in the seismocardiogram (SCG) signal [16,17]. These signals correspond to the surfaces generated by cardiac activities, which we can measure with the accelerometer micromechanical system (electromechanical control system-MEMS) [18]. In addition, we aim to search for other measurement methods and methods, such as forcecardiography (FCG), which describes a combination of force and accelerometer sensors that can monitor weak mechanical oscillations of the heart's work [19,20].

This article is one of the articles which deals with a moving patient without simultaneously measuring the ECG. Therefore, the development of seismocardiogram measurement devices requires a good understanding of this signal morphology. Using mathematical models of heart and seismocardiogram signals reduces investigation time and resources. The article [21] describes the mechanical morphology of the seismocardiogram and suggests an analytic seismocardiogram model. This model can be complicated, because it requires good heart physiological mechanics and liquid mechanics. Such heartbeat signals can be simulated using an electric circuit heart model, which researchers call a cardiovascular functional avatar [22]. Furthermore, the numeric seismocardiogram model suggests using the artefacts that share the fiducial points of the seismocardiogram from early published studies [11,23]. As a result, the mathematical signal results in further progression of the investigation. The mathematical representation of the human heart allows more accurate and better-quality analysis of the cause of cardiovascular diseases.

The rest of the article is organized as follows. Section 2 discusses related works and methods, describes the mathematical model of seismocardiogram signal and algorithms, and introduces the use of the SCG model and the processing of a real signal with adaptive filters. Section 3 presents the experimental data and analysis. Section 4 concludes the work of this paper and briefly introduces future works.

#### **2. Materials and Methods**

The cardiovascular system is complex and, in order to create a mathematical model describing it, it is also complicated. Thus, systematic analysis methods are useful when attention first focuses on the structure of the system, then on the interrelationship of the individual components, and finally on the internal structure of individual parts. For this reason, regarding the cardiovascular system, it is appropriate to investigate the heart separately from blood vessels. In addition, the seismocardiogram investigation is related to the transfer of vibrations from the heart muscles to the chest. Unlike the most popular clinical heart rate monitoring methods, such as electrocardiogram, ultrasound cardiogram, phonocardiogram, or photoplethysmogram, mechanocardiogram measurement is focused on recording and analyzing mechanical vibrations in the heart muscle with micro-electromechanical system (MEMS) sensors [24]. This list can be supplemented with a force sensor consisting of an accelerometer and a force-sensitive resistor [25,26].

#### *2.1. Related Works*

The complexity of the human cardiovascular system involves many control mechanisms, which can mathematically explain the proposed nature of the investigation. The heart modeling process has a few directions, mathematical and physical, which have to be followed before real experiments occur [22,27]. Apart from that, the cardiovascular system is generally hydraulic, but also can be analyzed in the electrical circuit [28]. The concept that one heart work cycle or a heartbeat duration combines systolic and diastolic

durations unites the hemodynamic and electrical nature of development of an artificial heart or a mathematical model. Due to both models, the general scopes demonstrate parts of impulses rising and falling [27].

Examining the cardiovascular system, researchers in papers point out the heart as a pump forcing blood flow through the blood vessels. Hence, the heart is emphasized as a hydraulic system, which is defined using fluid mechanics equations, quantities, and coefficients such as: vessel volume, blood flow rate, blood pressure, wall elasticity and strength, cross-section area, vessels length, blood viscosity, and blood density [29,30].

The main advantage of this model is that it is directly related to the patient, whose several required quantities (blood viscosity, blood density, blood pressure, etc.) can be measured by laboratory tests inside a medical institution.

Another part of the heart mathematical models is related to the electrical nature of the heart, when an electrical impulse is generated as the synodic node, and as a result, it forces the heart muscle to move periodically [22,31]. These pulses can be measured using electrodes and an electrocardiogram. For this reason, the heart mathematical model is based on an electrical circuit. The aim of this model is to reproduce and simulate an electrocardiogram.

The third part of the mathematical models is the result of changing the hemodynamical representation of the heart to electrical [32,33]. So, the hydraulic system interconnects mechanical and electrical quantities, coefficients and constants [28]. The element of each mechanical system is described by parameters corresponding to the analogy of their mechanical nature. Then, the blood flow in the blood vessels is changed to the electrical current, the volume is changed to voltage, the resistance to blood flow (*R*) Equation (1) [27] is changed to electrical resistance, blood flow inertia (*L*) Equation (2) [27] is changed to electrical induction, and the storage (*C*) Equation (3) [27] is changed to electrical capacity. Hence, nonelectrical quantities are replaced by electrical ones.

$$R = \frac{8l\mu}{\pi r^4} \tag{1}$$

$$L = \frac{8l\rho}{\pi r^2} \tag{2}$$

$$\mathcal{C} = \frac{3\pi r^3 l}{2E\hbar} \tag{3}$$

where: *l*—length of the artery; *µ*—blood viscosity; *r*—radius; *ρ*—blood viscosity; *h*—thickness; and *E*—Jung module.

The proposed seismocardiogram model in [21] represents blood flow through large vessels in the upper part of the body. The written mathematical model explains the systolic and diastolic phases and forces [34]. This mathematical model is helpful and suited to explaining heart work from a mechanical perspective.

This article is closely related to the previous article of this research group, and will continue the work of improving the quality of the study of nonclinical SCG signals [35]. Also, the work relates to investigations of using wireless sensors and them effective energy consumption [36–38]. Direct comparison of a few different models is difficult, it requires a deep understanding of each model. All models discussed require a good understanding of the cardiovascular system and individual parameters of the patients that the mathematical model performs correctly. Thus, a simpler mathematical model is required, which can support researchers in investigating the seismocardiogram or developing new devices for ensuring quality of life and safety in roads [39–42].

#### *2.2. Mathematical Modeling*

A single heartbeat signal mathematical model is created according to the data provided in Table 1. For that purpose, a heartbeat cycle is split into artefacts, symbolizing the duration between the heart valves' state moments. These durations can be recorded in the aria of fiducial points values (4).

$$FV\_{\rm SCG} = \left\{ T^{\rm MC,AO}, T^{A0,AC}, T^{A0,AC}, T^{AC,MO}, T^{RBE}, T^{RBF} \right\} \tag{4}$$

where:

*FVSCG*—seismocardiogram signal fiducial points values aria; *T MC,AO*—time between the aorta opening and closing; *T A0,AC*—time between the aorta opening and closing; *T MC,MO*—time between the closing and opening of the mitral valves; *T AC,MO*—time between the closure of the aorta and the opening of the mitral valve; *T RBE*—duration of systole; *RBF*—duration of diastole.

*T*


**Table 1.** Seismocardiogram artefacts fiducial points and duration rangers.

This passion in the MATLAB program is converted into a single line matrix with additional variables to mark the relative acceleration of the accelerometer ± *ag*, where *a* is the measured multiplier and *g* is the free acceleration equal to 9.8 [m/s<sup>2</sup> ]. The mathematical model of the theoretical SCG signal has been modeled by taking conditional acceleration values from graphics and fiducial points data from other research publications, such as [11] and [15].

The graphics shown in the second picture reflect the main artefacts of the seismocardiogram signal corresponding to the heart working moments specified in Table 1.

The widely visible artefacts of the time values and duration ranges of the seismocardiogram between two fiducial points are shown in the first table, which was created based on [11,23].

The acceleration amplitude values are tabled in Table 2 and explain all the meanings of the abbreviations in more detail.

**Table 2.** Modeled SCG signal acceleration amplitude values and description.


The proposed time values for each fiducial points are tabled and more details are described in Table 3.


**Table 3.** Modeled SCG signal fiducial points time values and description.

The mathematical model of the SCG signal was formed based on the Heaviside function, which marks the concrete fiducial points impulse activation sequence in the time domain.

$$\text{sg}\_1(t) = a \text{sc}\_1 e^{-10t} \cos(w\_0 60t - 6.45)(\mathbf{x}\_1 - \mathbf{x}\_2) \tag{5}$$

$$\text{sg}\_2(t) = \text{asc}\,\mathbf{g}\cos(w\_o\mathbf{23}t - 1.2)(\mathbf{x}\_3 - \mathbf{x}\_2) \tag{6}$$

$$\text{sg}\_3(t) = a \text{sc}\mathfrak{E}\_4 e^{-0.98t} \sin(w\_o \mathfrak{H}t - 2.7) \cos(w\_o 16.5t - 5.5) (\mathfrak{x}\_6 - \mathfrak{x}\_3) \tag{7}$$

$$\text{sg}\_4(t) = a \text{sc}\_6 e^{-6.5t} \text{1.5} \cos(w\_o \text{9.23t}) (\mathbf{x}\_6 - \mathbf{x}\_7) \tag{8}$$

$$\mathbf{s}\cdot\mathbf{s}\mathbf{g}\_5(t) = \left(t + a\mathbf{s}\mathbf{c}\mathbf{g}\_7 + a\mathbf{s}\mathbf{c}\mathbf{g}\_8e^{-2.5t}\cos(w\_0\mathbf{1}2.8t - \mathbf{2}.7)\right)(\mathbf{x}\_7 - \mathbf{x}\_8) \tag{9}$$

$$\log\_6(t) = a \text{scg}\_9 3.3e^{-2.85t} \cos(w\_0 4.1t + 3.14) \cos(w\_0 14.2t - 0.1) \left(\mathbf{x}\_8 - \mathbf{x}\_{12}\right)^2 \tag{10}$$

where:

*w<sup>o</sup>* = 2*π f* angular frequency rad/s when *f* = 1 Hz; *sg1*(*t*)*–sg6*(*t*)*—*intermediate signal parts, which represent each acceleration artifact of the modeled SCG signal.

The presented equations are intermediate, and form the final expression of the modeled signal *scg*(*t*) Equation (11). Each of these formulas is directly related to the seismocardiogram artifacts described in Tables 2 and 3. On the basis of these artifact values, the artificial signal is developed. Additionally, the synthesis of this signal is made possible, according to investigation requirements, by changing these values.

Adding all the expressions of the signal pulse sequences, a mathematical model of a single heartbeat seismocardiogram signal is obtained, as is the algorithm described in Figure 1, for which the signal is shown in Figure 2.

Following the algorithm described in Figure 1a, the seismocardiogram of a single heartbeat is visualized graphically, so Figure 2 shows the generated theoretical seismocardiogram signal with the main artefacts of a seismocardiogram. So, using this signal the sequence can be produces (Figure 3).

As a result, the mathematical model has been developed on the basis of these artefacts points. In this article, the general Equation (11) is presented and used for the described investigation.

$$\mathrm{scg}(t) = \mathrm{sg}\_1(t) + \mathrm{sg}\_2(t) + \mathrm{sg}\_3(t) + \mathrm{sg}\_4(t) + \mathrm{sg}\_5(t) + \mathrm{sg}\_6(t) \tag{11}$$

More detail and a clear explanation of the numerically modeled seismocardiogram signal, sequence creation, and management possibilities with additional noises is described using three algorithms (Figures 1 and 4).

‐ **Figure 1.** Modeling the seismocardiogram signal sequence without noise algorithms: (**a**) Creation of a heartbeat seismocardiogram signal algorithm; (**b**) modeling the SCG signal without noise algorithm. Where: **ascg** = {**ascg1**, **ascg2**, **ascg3**, **ascg4**, **ascg5**, **ascg6**, **ascg7**, **ascg8**, **ascg9**}—SCG data artifacts acceleration values set; **t0** = {**tas**, **tmc**, **tim**, **tao**, **tic**, **trbe**, **trbee**, **tac**, **tmo**, **trbf**, **trbfe**, **te**}—SCG data fiducial points time values set; **tstart**—start time in seconds; **tend**—end of one heartbeat in seconds; **n**—number of samples equal to 1000 ms; **dt**—step of time difference; **bpm** = heart rate beats per minute; **imp**—additional impulses for anti-alliancing heartbeats; **BC**—beat countdown; **BN**—beats number for generation one minute sequence; **BR**—set of random beats; **Y**—SCG signal sequence; **tp**—duration of SCG sequence.

‐ ‐

‐

‐

**Figure 2.** The mathematical model of the SCG signal. Where: AS—atrial systole; MC—closing of the mitral valve; AO—aorta opening; IM—isovolumic movement; IC—isovolumic contraction; RE—rapid systolic ejection; AC—aorta closing; MO—opening of the mitral valve; RF—rapid filing. ‐ ‐

‐ ‐

‐

‐

‐

**Figure 3.** Theoretical sequence of SCG signals.

‐ The algorithm shown in Figure 1a explains the mathematical model of the seismocardiogram. The main aim of this algorithm is to generate a single-heartbeat SCG signal with one-second duration, then the heart rate is 60 bpm. In the first step of the algorithm, two sets of acceleration values **ascg** and the corresponding fiducial points time values **t0** are entered. These values are the main artifacts of the simulated SCG signal, and sample values for these sets, respectively, are given in Tables 2 and 3. The researcher can modify these values according to the investigation objectives.

**Figure 4.** Adding breath noise and white noise signals to the modeled sequence of the seismocardiogram signal algorithm.

The second step specifies the time constant of the start and end of the heartbeat signal (tstart), the heart rate of 60 bpm and the number of samples number **n** = 1000. In the third step, the calculations of the required pulse durations are performed and the duration of the sampling step **dt** creates a 1000 ms time domain.

The 4th, 5th, 6th, and 7th steps of the algorithm show how to find the unit impulse values (**x1: x12**) corresponding to the time references of the **t0** set for creation of a desired shape in the 8th and 9th step of the seismocardiogram signal. The SCG signal is displayed graphically, and all values are stored in the memory during the 10th step of the algorithm. The researcher qualifies a visually received SCG signal in the 11th step and, if required, changes the values of **ascg** and **t0** sets. The researcher can modify the t0 set time values of each fiducial point and parallelly acg set the amplitude values that allow synthesis of the desired SCG signal and allow random changes to be set.

The second algorithm, shown in Figure 1b, describes the simulation of a sequence of SCG signals. This sequence is an analogy of a repetitive heart rhythm. In the first step of the algorithm, the **scg** signal of one heartbeat obtained in the first algorithm is used. In addition, the heart rate **bpm** and the number of additional pulses are examined, so that the signals of individual beats do not overlap in the sequence. The next step of the algorithm is to calculate the beat count **BC** of the sequence. In the following 4th, 5th, and 6th steps, a different number of pulses are counted in the sequence of the SCG signal for each heartbeat. In the seventh step, each heartbeat is given an index and is equated to a unit in Step 8. In Step 9, the sequence **Y** of the SCG signals is found after the convulsion between the single heartbeat signal **scg** and the new unit pulse sequences **scg\_one (B\_index)** formed in the 9th step, the time counts of which are calculated in the 10th step. In the 10th step of the algorithm, the sequence of the noise-free SCG signal shown in Figure 3 is represented graphically.

From one generated theoretical seismocardiogram cycle, we can create a sequence of desired duration SCG signal without noise, which is shown in Figure 3.

The sequence of SCG signals without noise is not informative and needs to be added with some real noise, which makes the artificial SCG signal more realistic. So, the desired sequence has been constructed with different types of noises, which changes randomly and reflects the real situation. Figure 4 shows the next step, which describes the SCG signal required to perform the sequence with added noise. Thus, the real situation is reflected as a seismocardiogram is measured from a patient and has noncardiac signals that are considered noise. These may be random vibrations in the surrounding environment or chest vibrations caused by breathing.

The algorithm shown in Figure 4 describes the acquisition of an SCG signal with total noise and will be further used to find the optimal parameters of the adaptive filter. First, the parameter values require the **Y** and **t** of SCG signal sequences to be entered without the noise, in addition to the respiration rate **fbr** and its amplitude **Brm**, and the white noise amplitude **Nom**. The following four, five, and six steps of the algorithm describe the finding of random values for white noise and respiration. Additionally, the respiration amplitude and frequency vary randomly. In the seventh step, an SCG signal with noise Yscg is obtained, displayed graphically (Figure 5), and saved. Figure 5 shows an example of such a signal. The mathematical model created first allows us to model the desired seismocardiogram signals, monitoring the reaction of the designed system to them, adding various environmental noise signals, and taking into account the research objectives. On the basis of the obtained results, it is possible to develop and research real seismocardiogram measuring devices, which are capable of processing nonclinical data much more efficiently. The legal regulations related to testing medical devices before they are approved and approved are avoided. Additionally, research becomes safer and more economical in this way because optimal data obtained from many simulations are used to realize a real electronic device.

**Figure 5.** The theoretical seismocardiogram signal with different types of noises.

‐ Therefore, an example is presented that examines how the settings of an adaptive filter operating with the least mean squares (LMS) algorithm are obtained after performing signal processing simulations. On the basis of these results, a real electronic measuring device is established, which measures the heart work of one of the authors. Figure 6 shows the method how accelerometer is placed.

ሺሻ ൌ ሺሻ െ ሺሻ

ሺሻሺെሻ

ሺሻ ൌ

ୀଵ

‐

**Figure 6.** Position of accelerometer.

‐ Adaptive filtering has many advantages and is useful for biomedical applications when the filter coefficients self-adjust to a rapidly and unpredictably changing signal. The principle of operation of the adaptive filter is defined by Equation (12) [43,44].

$$e(n) = d(n) - y(n) \tag{12}$$

‐

‐

where: *e*(*n*)—adaptation error, *y*(*n*)—denoised signal in output, *d*(*n*)—desired signal.

 The operation of this filter is based on the tendency of the filter output signal *y*(*n*) defined by Equation (13) to correspond as closely as possible to the affected signal *d*(*n*) through the feedback response of the error signal *e*(*n*) to the coefficients H(z) of the filter transfer function, so that *e*(*n*) is zero [43,44].

$$y(n) = \sum\_{k=1}^{L} b\_{\mathfrak{n}}(n)x(n-k) \tag{13}$$

− −

The structure shows in Figure 7 that, based on the fact that the SCG signal is measured in the frequency band 1–20 Hz. It feeds the signal of the frequency band of interest to the adaptive filter to make the adaptive filter much more efficient and effective [23,45]. For this, a finite impulse response filter (FIR) or an infinite impulse response filter (IIR) can be used [44,46]. As a result, an accelerometer can be used for measurement. Apart from the fundamental adaptive filter configuration, the frequency band is 5–45 Hz for adaptive filter with delay Figure 7. Additionally, the performance to detect AO peaks is analyzed with FIR and IRR filters. ‐

‐ **Figure 7.** Adaptive filter configuration. Where: s(n)—input signal, x(n)—delayed signal, d(n)—desired signal, e(n)—adaptation error, y(n)—denoised signal, v(n) noise signal.

− −

−

Processing data from the simulated SCG are presented in the Table 4. The second table shows the measurement results with an adjusted 410 ms duration window, which indicates the shortest interval between the AO peaks [47]. This duration is taken from the data in Table 1 to avoid misinterpretation of seismocardiogram signal artifacts when aortic valve closure is accepted for aortic opening. A mitral valve opening peak may also be faulty. The minimum peak interval can also be called a blind zone or a silence mode, when signal peaks are not evaluated with a level higher than the lowest signal root mean square (RMS) value [48,49]. For the first adapter filter (AF), the convergence parameter or the adaptation step mu is equal to 0.00023, and for the second, this parameter is 0.00019.


**Table 4.** Modeled SCG signal processing data.

Knowing that the signal noise ratio (SNR) [50,51] of the SCG signal at the adaptive filters input is −14.009 dB, the processing efficiencies of these two filters can be evaluated. The processing benefit of the first adaptive filter 7.6802 dB is achieved in 1.2375 s, while the 7.2095 dB processing benefit of the second adaptive filter is achieved in 1.1857 s. The root mean square error (RMSE) of the modeled seismocardiogram signal for the first adaptive filter is 0.1447 (m/s<sup>2</sup> ), and for the second it is 0.3401 (m/s<sup>2</sup> ). Hence, the modeled seismocardiogram signal processing is less stable using the second adaptive filter.

#### **3. Results and Discussions**

Based on the data described above, signal processing is performed in the form of a mathematical model of the SCG signal and adaptive filter algorithms. The signal processing is carried out in an experimental way, measured following the theoretical SCG model during desk work when slow moving or in a resting state.

The severity of the generalized seismocardiogram was primarily analyzed by filters of limited and unlimited impulsive reactions. For this purpose, there were limited pulse and indefinite impulsive reaction filters, based on the available initial data suggesting that it is appropriate to examine the signal from the frequency band 1 to 40 Hz.

Ascertainment of whether the limits of the frequency band in question are correctly selected and whether efficient use of the signal processing system resources is performed by a fast Furrier transformation (FFT).

The FFT is performed for the investigated signal when a frequency distribution spectrum is generated which contains the maximum signal powers located in the adjusted frequency band from 0 to 50 Hz.

Similarly, the processing of further SCG signals and its results are focused on the seismocardiogram measurement in order to determine the working condition of the human heart using a nonelectrical measurement method. This choice is motivated by the fact that it is possible to perform an evaluation of a heart condition without disturbing the activity of the patient. The accelerometer, in response to mechanical movements, captures changes in acceleration and converts them into electrical signals. Heart rate is one of the main objects of measurement and is simply determined to give a minimal indication of the state of health.

In order to achieve more reliable data, FIR and IIR filters are applied, which are serially connected with signal delay before the adaptive filter. The decision to use one of the FIR or IIR filters at the beginning will facilitate the adaptive filter's ability to effectively eliminate suddenly changed signal components related to movement or activity. This responds directly to the purpose of the study and research group to measure the seismocardiogram while the patient performs daily activities such as driving. Based on this, the heart rhythms of the possible scenarios are calculated simultaneously with the evaluation of the time of SCG signal processing using adaptive filter. All seismocardiogram signal processing was performed with MATLAB 2021a software installed on an Intel (R) Core (TM) i5-7200U CPU @2.50 GHz 2.70 GHz with 16 GB of RAM and 109 GB of free space on a 500 GB SSD.

The analyzed resting SCG signal consists of 61,000 samples, which were recorded at a sampling rate of 490 Hz on an MPU9250 accelerometer connected to an ESP32 WROOM microcontroller via an I2C data bus. The measured data analysis was performed with MATLAB software.

After representative calculation of the signals of all three coordinate axes of the accelerometer was performed, a steady-state SCG signal with an SNR of −12.5946 dB was measured.

Figures 8 and 9 shows signal processing results, where (a) signal represents the measured signal in the input.

**Figure 8.** Processing seismocardiogram signal in the first adaptive filter with sample delay 5 and the FIR filter in the input. (**a**) SCG signal on input. (**b**) Adaptation error of the first adaptive filter. (**c**) Adaptively filtered signal. (**d**) The efficiency of the filter.

**Figure 9.** Processing SCG signal in the second adaptive filter with sample delay order 5 and IIR filter in the input. (**a**) Adaptation error of the second adaptive filter. (**b**) Adaptively filtrated signal. (**c**) The efficiency of the adaptive filter.

‐ ‐ Figures 8 and 9 show two cases of the measured SCG signal processing data when two different LMS adaptive filter algorithms were adjusted based on the mathematical model simulation data. Both Figures 8 and 9 allow received values of the acceleration amplitudes and fiducial points, which make it possible to perform a deeper analysis of received data, calculate heart rate and heart rate variability.

Following the theoretical seismocardiogram processing data, the same adjustments use adaptive filters for real seismocardiogram signal processing. These processing data are tabled in Table 5.

**Table 5.** Rest SCG signal processing data.


‐

− −

‐

The 7.49 dB processing benefit of the first adaptive filter was achieved in 1.2 s, while the 4.7137 dB processing benefit of the second adaptive filter was achieved in 1.194 s.

Correlation analysis of the two signals showed that for the filter with a 5 s delay and an IIR filter at the input, the processed steady-state SCG signal level is sufficient and, in some cases, correlates with the SCG-modeled signal without noise signal. Therefore, the adaptive filters must be combined individually (Table 6) to achieve the desired processing results. The negative SNR value in both cases −5.1 and −7.88 dB indicate that denoised signal has a significant level of noise.


**Table 6.** Rest SCG signal processing data with individually adjusted adaptive filters. − −

Both adaptive filters have been adjusted by reducing filter orders, respectively, from 892 to 200 and 50. Figure 10 represents the seismocardiogram signal in the second adaptive filter with marked AO and AC artifacts. ‐

**Figure 10.** Denoised SCG signal in the second adaptive filter output after individual adjustment.

Figure 11 presents the same signal power frequency density, where one can see the extremums of signal amplitude and artifacts sequences. White spaces indicates each HR cycle signal peaks maximum power in dB.

**Figure 11.** Spectrogram of the denoised SCG signal in the second adaptive filter output after individual adjustment.

‐

‐

‐

‐

‐

#### **4. Conclusions**

‐ ‐ A simpler mathematical model was developed and three algorithms were created for a more detailed explanation and understanding of the process and behavior of the model. Using this algorithm, the processing program can be written in several programming languages, not only in MATLAB. This seismocardiogram model can be used to find optimal parameters (fifth-order delay before adaptive filter, 892 filter order) for adaptive filters that can perform real cardio-mechanical vibration signal processing for estimating AO peaks. As a result, the heart rate was calculated. However, filter order 200 and 50 were evaluated again, so the processing duration decreased in both filters, respectively, from 1.20 to 1.09 and from 1.19 to 1.11 s. In each case, the signal processing and the necessary calculations were performed with programs written in MATLAB.

The proposed system and methodology can be useful to increase such research efficiency. Furthermore, future works will relate to improvements in processing methods by including machine learning to estimate systolic and diastolic intervals and heart rate variability during daily activity.

**Author Contributions:** Conceptualization, G.U., A.V. and D.N.; methodology, D.A., M.Z. and M.P.; software, G.U. and J.K.; validation, D.A., A.V., M.Z., M.P. and M.F.; visualization, G.U., D.N. and A.V.; investigation, D.N., G.U., D.A., A.V. and M.Z.; resources, M.Z., M.F., J.K. and M.P.; data curation, D.N., M.Z. and G.U.; writing—original draft preparation, G.U., A.V., D.A. and M.P.; writing—review and editing, D.N., D.A., J.K. and M.F.; supervision, A.V.; funding acquisition, M.Z. and D.A. All authors have read and agreed to the published version of the manuscript.

**Funding:** This research received no external funding.

**Institutional Review Board Statement:** Not applicable.

**Informed Consent Statement:** Not applicable.

**Data Availability Statement:** Not applicable.

**Conflicts of Interest:** The authors declare no conflict of interest.

#### **References**

