A method for parameterizing electrocardiogram signals, a method for training models, a device, equipment and a medium

Through Fourier-log coordinate transformation and key point information, the parameter vector sequence of the ECG signal is constructed, which solves the problem of insufficient versatility and interpretability of the existing ECG analysis method and realizes efficient and accurate ECG analysis. Electrical signal parameterization and analysis.

CN115040137BActive Publication Date: 2024-09-10GUANGZHOU SHIYUAN ELECTRONICS CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110251015.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-08
Publication Date
2024-09-10
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

Existing ECG analysis methods have shortcomings in versatility and clinical interpretability. Although deep learning methods have better performance, they are difficult to quickly and accurately extract ECG waveform information and measure key parameters, and the labeling cost is high.

Method used

By obtaining the characteristic wave signal in the ECG signal, calculating its position information and amplitude on the time-signal strength coordinate axis, determining the zoom width based on Fourier-log coordinate transformation, and constructing parameters using the relative position information of key points Vector sequence to achieve parameterization of ECG signals, thereby improving the clinical interpretability and accuracy of analysis.

Benefits of technology

It reduces storage costs and labeling costs, improves the accuracy and computing speed of ECG signal parameterization, enhances the clinical interpretability of analysis, and enables accurate measurement of parameters in the presence of noisy signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115040137B
    Figure CN115040137B
Patent Text Reader

Abstract

The present invention discloses an electrocardiogram (ECG) signal parameterization method, a model training method, a device, an apparatus and a medium. By parameterizing the characteristic wave signal in the ECG signal, these parameters can be directly used to analyze the ECG signal, and the clinical interpretability is good. When the ECG signal needs to be reconstructed later, it is only necessary to determine the first sample wave signal according to the key points, and adjust the first sample wave signal according to these parameters to obtain the reconstructed signal. Since there is no need to store the original ECG, only the parameter vector sequence needs to be stored, so the amount of stored data is greatly reduced, and the storage cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of electrocardiography technology, and in particular to an electrocardiography signal parameterization method, a model training method, a device, a equipment and a medium. Background Art

[0002] As society ages, the incidence and harmfulness of cardiovascular diseases continue to rise. As a routine physical examination item, electrocardiogram is of great significance for the diagnosis and monitoring of cardiovascular diseases. In clinical medicine, doctors mainly diagnose diseases by observing electrocardiogram waveforms and measuring certain key parameters. Therefore, an electrocardiogram analysis method that can quickly and accurately extract electrocardiogram waveform information and measure key parameters is needed to help doctors work.

[0003] Existing ECG analysis methods usually use end-to-end methods based on deep learning to obtain the probability that ECG signals may be abnormal. Although the performance of deep learning-based analysis methods is good, their versatility and clinical interpretability have always been their shortcomings. Summary of the invention

[0004] The present invention provides an electrocardiogram signal parameterization method, a model training method, a device, equipment and a medium, which improve clinical interpretability, reduce annotation costs, and simultaneously improve parameterization accuracy and operation speed.

[0005] In a first aspect, an embodiment of the present invention provides a method for parameterizing an electrocardiogram signal, comprising:

[0006] Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes a plurality of characteristic wave signals;

[0007] Acquiring relative position information of a plurality of key points for reconstructing the electrocardiogram signal;

[0008] Based on the relationship between the characteristic wave signal and the first spline wave signal, the characteristic wave signal is subjected to Fourier-logarithmic coordinate transformation to determine the scaling width, and the first spline wave signal is translated and scaled to obtain the characteristic wave signal;

[0009] Determining the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis;

[0010] A parameter vector sequence of the electrocardiogram signal is determined based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, wherein the parameter vector sequence includes a plurality of parameter vectors for characterizing the characteristic wave signal.

[0011] In a second aspect, an embodiment of the present invention further provides a method for training a parameterized model of an electrocardiogram signal, comprising:

[0012] Acquire an electrocardiogram signal sample, wherein the electrocardiogram signal sample includes a plurality of characteristic wave signal samples;

[0013] Inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, and obtaining a parameter vector sequence of the ECG signal samples, wherein the model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes a plurality of parameter vectors used to characterize the characteristic wave signal samples;

[0014] Reconstruct the electrocardiogram signal sample according to the parameter vector sequence to obtain a reconstructed signal sample;

[0015] Calculating the error between the electrocardiogram signal sample and the reconstructed signal sample;

[0016] The relative position information of the key points in the ECG parameterized model is updated according to the error.

[0017] In a third aspect, an embodiment of the present invention further provides an electrocardiogram signal parameterization device, comprising:

[0018] An ECG signal acquisition module, used to acquire an ECG signal, wherein the ECG signal includes a plurality of characteristic wave signals;

[0019] A key point information acquisition module, used to acquire relative position information of a plurality of key points used to reconstruct the electrocardiogram signal;

[0020] A scaling width determination module, used for performing Fourier-logarithmic coordinate transformation on the characteristic wave signal based on the relationship between the characteristic wave signal and the first spline wave signal to determine the scaling width, wherein the first spline wave signal is translated and scaled to obtain the characteristic wave signal;

[0021] A position amplitude determination module, used to determine the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis;

[0022] A parameter vector sequence determination module is used to determine the parameter vector sequence of the electrocardiogram signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, wherein the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal.

[0023] In a fourth aspect, an embodiment of the present invention further provides an electrocardiogram signal parameterized model training device, comprising:

[0024] A sample acquisition module, used to acquire an ECG signal sample, wherein the ECG signal sample includes a plurality of characteristic wave signal samples;

[0025] A parameterized processing module, used for inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, and obtaining a parameter vector sequence of the ECG signal samples, wherein the model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes a plurality of parameter vectors used to characterize the characteristic wave signal samples;

[0026] A reconstruction module, used for reconstructing the electrocardiogram signal sample according to the parameter vector sequence to obtain a reconstructed signal sample;

[0027] An error calculation module, used for calculating the error between the electrocardiogram signal sample and the reconstructed signal sample;

[0028] A key point updating module is used to update the relative position information of the key points in the ECG parameterized model according to the error.

[0029] In a fifth aspect, an embodiment of the present invention further provides a computer device, including:

[0030] one or more processors;

[0031] A storage device for storing one or more programs;

[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the ECG signal parameterization method provided in the first aspect of the present invention, or implement the ECG signal parameterization model training method provided in the second aspect of the present invention.

[0033] In a sixth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the ECG signal parameterization method provided in the first aspect of the present invention, or implements the ECG signal parameterization model training method provided in the second aspect of the present invention.

[0034] The electrocardiogram signal parameterization method provided by the embodiment of the present invention includes: obtaining an electrocardiogram signal, the electrocardiogram signal includes multiple characteristic wave signals, obtaining relative position information of multiple key points for reconstructing the electrocardiogram signal, calculating the scaling width of the first strip wave signal, the first strip wave signal is a signal generated by spline interpolation of multiple key points, and in the process of electrocardiogram signal reconstruction, the first strip wave signal is translated and scaled to obtain a reconstructed characteristic wave signal, determining the position information and amplitude of the characteristic wave signal on the time-signal intensity coordinate axis, and determining the parameter vector sequence of the electrocardiogram signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, and the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal. By parameterizing the characteristic wave signal in the electrocardiogram signal, these parameters can be directly used to analyze the electrocardiogram signal, and the clinical interpretability is good. When the electrocardiogram signal needs to be reconstructed later, it is only necessary to determine the first strip wave signal according to the key points, and adjust the first strip wave signal according to these parameters to obtain the reconstructed signal. Since there is no need to store the original electrocardiogram, only the parameter vector sequence needs to be stored, so the amount of stored data is greatly reduced, and the storage cost is greatly reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1A A flow chart of a method for parameterizing an electrocardiogram signal provided in the first embodiment of the present invention;

[0036] Figure 1B A structural diagram of an electrocardiogram signal provided in Embodiment 1 of the present invention;

[0037] Figure 2A is a flow chart of a method for parameterizing an electrocardiogram signal provided in Embodiment 2 of the present invention;

[0038] Figure 2B A schematic diagram of generating a first spline wave signal is provided for an embodiment of the present invention;

[0039] Figure 2C A schematic diagram of determining a maximum value in a matching degree sequence provided by an embodiment of the present invention;

[0040] Figure 3 A flowchart of a method for training a parameterized model of an electrocardiogram signal provided in Embodiment 3 of the present invention;

[0041] Figure 4 A flowchart of a method for training a parameterized model of an electrocardiogram signal provided in Embodiment 4 of the present invention;

[0042] Figure 5 A schematic diagram of the structure of an electrocardiogram signal parameterization device provided in Embodiment 5 of the present invention;

[0043] Figure 6A structural schematic diagram of an electrocardiogram signal parameterized model training device provided in Embodiment 6 of the present invention;

[0044] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 7 of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0046] Embodiment 1

[0047] Figure 1A This is a flow chart of a method for parameterizing an ECG signal provided in Embodiment 1 of the present invention. This embodiment is used to parameterize an ECG signal. This method can be performed by an ECG signal parameterizing device provided in an embodiment of the present invention. The device can be implemented in software and / or hardware and is usually configured in a computer device. Figure 1A As shown, the method specifically comprises the following steps:

[0048] S101. Acquire an electrocardiogram signal, where the electrocardiogram signal includes a plurality of characteristic wave signals.

[0049] Specifically, the myocardium is excited before and after the heart beats. During the myocardial excitement, a weak bioelectric current is generated. In this way, each cardiac cycle of the heart is accompanied by changes in bioelectricity. This bioelectric change can be transmitted to various parts of the body surface. Due to the different tissues of various parts of the body and the different distances from the heart, the potentials of the electrocardiogram signals in different parts of the body are also different. For a normal heart, the direction, frequency, and intensity of this bioelectric change are regular. If the electrical signals from different parts of the body surface are detected by electrodes, amplified by amplifiers, and recorded by recorders, an electrocardiogram (ECG) can be obtained.

[0050] An electrocardiogram is a graph of various forms of potential changes in each cardiac cycle of the heart, which is accompanied by changes in bioelectricity, as the pacemaker, atrium, and ventricle are excited successively. Since each heartbeat is regular, the waveform in the electrocardiogram is also regular. The waveform in the electrocardiogram that can fully represent one cardiac cycle of the heart is called a heartbeat signal. An ECG record usually contains hundreds of thousands of heartbeat signals. In an embodiment of the present invention, at least one continuous heartbeat is intercepted from the ECG record as an electrocardiogram signal. Specifically, the electrocardiogram can be obtained from the user's electrocardiogram physical examination results.

[0051] Figure 1B This is a structural diagram of an electrocardiogram signal provided in the first embodiment of the present invention, referring to Figure 1B It can be seen that the ECG signal includes a heartbeat, and a heartbeat includes multiple characteristic wave signals, such as P wave, Q wave, R wave, S wave and T wave. By detecting the characteristics of one or more waves among the P wave, Q wave, R wave, S wave and T wave, the ECG signal can be determined in the ECG. Among them, the horizontal axis is the time axis, which is in milliseconds, and the vertical axis is the intensity of the ECG signal, which is characterized by voltage. In clinical practice, the straight segment (TS segment) between the T wave and the S wave in the ECG signal is usually extended to obtain the time axis.

[0052] S102: Obtain relative position information of a plurality of key points for reconstructing an electrocardiogram signal.

[0053] In a specific embodiment of the present invention, a plurality of (e.g., 5) key points that can be used to reconstruct the characteristic wave signal are set for each characteristic wave signal, and the relative position information of the key points is determined. Exemplarily, in one embodiment of the present invention, two adjacent key points have the same spacing on the horizontal axis, and the relative position information of the plurality of key points can be determined by the vertical coordinates of the key points.

[0054] Specifically, in an embodiment of the present invention, the relative position information of the key points is a model parameter of the ECG signal parameterization model, and the relative position information of the key points can be optimized by training the ECG parameterization model with a large number of ECG signal samples. The ECG signal parameterization model is used to parameterize the ECG signal to obtain parameters for characterizing different dimensions of the ECG signal. The processing of the ECG signal parameterization model will be described in detail in the subsequent steps of this embodiment. Exemplarily, in a specific embodiment of the present invention, the above parameters may include the amplitude of each characteristic wave signal in the ECG signal, the position information on the time-signal intensity coordinate axis, and the relative position information of the key points used to determine the shape of the characteristic wave signal in the subsequent reconstruction of the characteristic wave signal. The embodiment of the present invention does not limit the type of parameters for characterizing the ECG signal. In other embodiments of the present invention, it may also be parameters of other different dimensions.

[0055] S103: Calculate the scaling width of the first sample wave signal.

[0056] In an embodiment of the present invention, the first spline wave signal is a signal generated by spline interpolation of multiple key points, and in the process of reconstructing the ECG signal, the first spline wave signal is translated based on the position information on the time-signal intensity coordinate axis, and the first spline wave signal is scaled based on the amplitude and scaling width of the characteristic wave signal to obtain a reconstructed characteristic wave signal.

[0057] Exemplarily, in one embodiment of the present invention, an initial width can be pre-set, and then the characteristic wave signal and the first strip wave signal are transformed into Fourier-logarithmic coordinates based on the relationship between the characteristic wave signal and the first strip wave signal, and the width scaling coefficient of the characteristic wave signal and the first strip wave signal is obtained, and then the scaling width is calculated based on the initial width and the width scaling coefficient. In other embodiments of the present invention, other methods can also be used to calculate the scaling width, and the embodiments of the present invention are not limited here.

[0058] S104. Determine the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis.

[0059] In an embodiment of the present invention, the position information of the characteristic wave signal includes the time position information of the characteristic wave signal on the time axis and the offset of the characteristic wave signal relative to the time axis. The time position information of the characteristic wave signal on the time axis can be the position information of a certain point on the characteristic wave signal on the time axis, and the time position information of the characteristic wave signal on the time axis can be determined based on the time position information of the point. The offset of the characteristic wave signal relative to the time axis refers to the ordinate of the position where the mean value of the characteristic wave signal is located.

[0060] S105 . Determine a parameter vector sequence of the electrocardiogram signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width, and the amplitude.

[0061] After obtaining multiple parameters (relative position information of multiple key points, position information of characteristic wave signals, scaling width and amplitude) for characterizing characteristic wave signals through the above steps, the above parameters are organized into a vector form to obtain a parameter vector for characterizing the characteristic wave signal. The parameter vectors of each characteristic wave signal are arranged in the time sequence of the characteristic wave signals in the electrocardiogram signal to obtain a parameter vector sequence for characterizing the electrocardiogram signal.

[0062] In the subsequent application process, if the ECG signal needs to be used, it is only necessary to apply the parameterized ECG signal to various ECG-related tasks, so that these parameters can be directly used to analyze the ECG signal, which has good clinical interpretability. Moreover, the parameterized ECG signal only needs to perform spline interpolation based on key points to obtain the first spline wave signal, and then adjust the first spline wave signal according to the parameters in the parameter vector, such as adjusting the amplitude of the first spline wave signal, the position on the time-signal intensity coordinate axis, and the signal width, etc., to reconstruct the ECG signal. Since there is no need to store the original ECG, only the parameter vector sequence needs to be stored, so the amount of stored data is greatly reduced, and the storage cost is greatly reduced.

[0063] The electrocardiogram signal parameterization method provided by the embodiment of the present invention includes: obtaining an electrocardiogram signal, the electrocardiogram signal includes multiple characteristic wave signals, obtaining relative position information of multiple key points for reconstructing the electrocardiogram signal, calculating the scaling width of the first strip wave signal, the first strip wave signal is a signal generated by spline interpolation of multiple key points, and in the process of electrocardiogram signal reconstruction, the first strip wave signal is translated and scaled to obtain a reconstructed characteristic wave signal, determining the position information and amplitude of the characteristic wave signal on the time-signal intensity coordinate axis, and determining the parameter vector sequence of the electrocardiogram signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, and the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal. By parameterizing the characteristic wave signal in the electrocardiogram signal, these parameters can be directly used to analyze the electrocardiogram signal, and the clinical interpretability is good. When the electrocardiogram signal needs to be reconstructed later, it is only necessary to determine the first strip wave signal according to the key points, and adjust the first strip wave signal according to these parameters to obtain the reconstructed signal. Since there is no need to store the original electrocardiogram, only the parameter vector sequence needs to be stored, so the amount of stored data is greatly reduced, and the storage cost is greatly reduced.

[0064] Embodiment 2

[0065] Embodiment 2 of the present invention provides a method for parameterizing an electrocardiogram signal. Figure 2A is a flow chart of a method for parameterizing an ECG signal provided by Embodiment 2 of the present invention. This embodiment is refined on the basis of Embodiment 1 above, and describes in detail the processing process of the ECG signal parameterization model. Figure 2A As shown, the method comprises the following steps:

[0066] S201. Acquire an electrocardiogram signal, where the electrocardiogram signal includes a plurality of characteristic wave signals.

[0067] Specifically, in a specific embodiment of the present invention, an electrocardiogram signal includes a heartbeat, and a heartbeat includes multiple characteristic wave signals, such as a P wave, a Q wave, an R wave, an S wave, and a T wave. By detecting the characteristics of one or more of the P wave, the Q wave, the R wave, the S wave, and the T wave, the electrocardiogram signal can be determined.

[0068] Specifically, in some embodiments of the present invention, step S201 may include the following steps:

[0069] Obtain an electrocardiogram (ECG) signal. The ECG signal may come from a physical examination result. The electrical signals from different parts of the body surface are detected by electrodes, and the collected signals are processed by analog circuits such as impedance matching, filtering, and amplification. The analog signal of the human physiological parameter is then converted into a digital signal by an analog-to-digital converter and stored in a memory. Exemplarily, the ECG signal may be a single-lead ECG signal or a multi-lead ECG signal. A single-lead ECG signal is an ECG signal obtained by collecting electrical signals from one part of the body, and a multi-lead ECG signal is an ECG signal obtained by collecting electrical signals from multiple parts of the body. The embodiment of the present invention does not limit the type of ECG signal.

[0070] The electrocardiogram signal is filtered to obtain a first signal. The electrocardiogram signal is a low-amplitude, low-frequency, weak physiological electrical signal measured by electrodes on the body surface. Its amplitude is usually between 0.1mv-5mv, and its energy is concentrated in the range of 0.5Hz-40Hz. It is very susceptible to environmental influences. The electrocardiogram signal directly collected and recorded by the electrocardiograph through the electrodes is often interfered by various noises. Common interferences include myoelectric interference, baseline drift, and power frequency interference. If these original signals are used directly for electrocardiogram classification, the accuracy of classification will be reduced due to the presence of noise. Therefore, before processing the electrocardiogram signal, it is generally necessary to filter the original signal first. In an embodiment of the present invention, the electrocardiogram signal is filtered to obtain a first signal. Specifically, the electrocardiogram signal is filtered by a bandpass filter with a cutoff frequency of 0.5Hz, 40Hz, and 40 orders to remove the interference of low-frequency noise and power frequency noise to obtain a first signal.

[0071] The first signal is resampled to obtain a second signal with a preset sampling frequency (eg, 250 Hz).

[0072] The second signal is cut into a plurality of heartbeat signals of a preset length (e.g., 10s). Specifically, each heartbeat includes a preR segment (from a given heartbeat to the midpoint of a given heartbeat and the previous heartbeat) and a proR segment (from a given heartbeat to the midpoint of a given heartbeat and the subsequent heartbeat). The length of the preR segment and the proR segment is set to 0.1s. If the length of the intercepted segment exceeds the preset length, truncation is performed. If the length of the intercepted segment is shorter than the preset length, zero padding is performed.

[0073] S202: Determine an ECG signal parameterized model, where model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal.

[0074] Specifically, the ECG signal parameterization model is used to parameterize the ECG signal to obtain parameters for characterizing different dimensions of the ECG signal. The model parameters of the ECG parameterization model include relative position information of multiple key points for reconstructing the ECG signal, and the relative position information of the key points can be optimized by training the ECG parameterization model with a large number of ECG signal samples. Specifically, in a specific embodiment of the present invention, 5 key points are set for each characteristic wave signal, and two adjacent key points have the same spacing on the horizontal axis. The relative position information of multiple key points can be determined by the position of each key point on the vertical axis.

[0075] S203 , performing spline interpolation on multiple key points to generate a first spline wave signal with an amplitude of 1 and a mean of 0.

[0076] Specifically, spline interpolation calculation is performed on multiple key points corresponding to each characteristic wave signal to obtain the first spline wave signal with an amplitude of 1 and a mean of 0. The so-called interpolation is to interpolate a continuous function based on discrete data so that this continuous curve passes through all discrete points (i.e., multiple key points), and the approximate value of the function at other points can also be estimated. Spline interpolation is to determine a function between every two points (i.e., key points). This function is a spline. Different functions will result in different splines.

[0077] For example, Figure 2B A schematic diagram of generating a first spline wave signal is provided for an embodiment of the present invention, such as Figure 2B As shown, in a specific embodiment of the present invention, cubic spline interpolation is performed on 5 key points to generate a first spline wave signal with an amplitude of 1 and a mean of 0. A cubic function curve is generated between two adjacent key points, and at the key point, the two adjacent cubic function curves are second-order continuous, that is, the two adjacent cubic function curves transition smoothly.

[0078] S204: Calculate the scaling width of the first sample wave signal.

[0079] As mentioned above, the first spline wave signal is a signal generated by spline interpolation of multiple key points, and in the process of ECG signal reconstruction, the first spline wave signal is translated based on the position information on the time-signal intensity coordinate axis, and the first spline wave signal is scaled based on the amplitude and scaling width of the characteristic wave signal to obtain the reconstructed characteristic wave signal.

[0080] In some embodiments of the present invention, step S204 includes the following sub-steps:

[0081] S2041. Set the initial width.

[0082] Specifically, the initial width is recorded as T, which can be set manually. For example, the initial width T is set to 1s.

[0083] S2042. Perform Fourier-logarithmic coordinate transformation on the characteristic wave signal and the first sample wave signal to obtain the width scaling coefficient of the characteristic wave signal and the first sample wave signal.

[0084] Specifically, the calculation process of the width scaling coefficient of the characteristic wave signal and the first sample wave signal is as follows:

[0085] 1. Perform Fourier transform on the characteristic wave signal and the first sample wave signal respectively to obtain the frequency spectrum of the characteristic wave signal and the frequency spectrum of the first sample wave signal.

[0086] Specifically, let the characteristic wave signal to be parameterized be f(t), let the first sample wave signal be g(t), and assume that the characteristic wave signal f(t) and the first sample wave signal g(t) satisfy the following formula:

[0087] f(t)=αg(λt-Δt) (1)

[0088] Among them, f(t) is the characteristic wave signal, g(t) is the first spline wave signal, α is the amplitude scaling factor, λ is the width scaling factor, and Δt is the translation factor.

[0089] Perform Fourier transform on the characteristic wave signal f(t) and the first sample wave signal g(t) in formula (1) respectively, and obtain the relationship between the spectrum of the characteristic wave signal and the spectrum of the first sample wave signal. The transformation process is as follows:

[0090]

[0091] Among them, F(ω) is the spectrum of the characteristic wave signal, G(ω) is the spectrum of the first sample wave signal, and ω is the angular frequency.

[0092] 2. Calculate the first amplitude spectrum of the frequency spectrum of the characteristic wave signal and the second amplitude spectrum of the frequency spectrum of the first spline wave signal respectively to obtain the first amplitude spectrum and the second amplitude spectrum.

[0093] Specifically, the amplitude spectrum of the spectrum F(ω) of the characteristic wave signal in (2) is calculated as the first amplitude spectrum, and the amplitude spectrum of the spectrum G(ω) of the first spline wave signal in the above formula is calculated as the second amplitude spectrum, and the first amplitude spectrum and the second amplitude spectrum are obtained. The relationship between the first amplitude spectrum and the second amplitude spectrum is:

[0094]

[0095] Among them, M F (ω) is the first amplitude spectrum, M G (ω) is the second amplitude spectrum. The amplitude spectrum is the second root of the sum of the squares of the real and imaginary parts of the spectrum.

[0096] 3. Convert the first amplitude spectrum and the second amplitude spectrum from the angular frequency-width scaling factor coordinate system to the logarithmic coordinate system of the angular frequency-width scaling factor to obtain the third amplitude spectrum and the fourth amplitude spectrum.

[0097] Specifically, the angular frequency-width scaling factor coordinate system in formula (3) is converted to the logarithmic coordinate system of the angular frequency-width scaling factor, and the converted formula (3) becomes:

[0098]

[0099] Let u = lgω, Δu = lgλ, and substitute into (4) to obtain:

[0100]

[0101] Among them, M F (u) is the third amplitude spectrum, M G (u) is the fourth amplitude spectrum.

[0102] 4. Perform Fourier transform on the third amplitude spectrum and the fourth amplitude spectrum respectively to obtain the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum.

[0103] The third amplitude spectrum and the fourth amplitude spectrum in formula (5) are subjected to Fourier transform, and the relationship between the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum is obtained as follows:

[0104]

[0105] Among them, Ω MF (v) is the frequency spectrum of the third amplitude spectrum, Ω MG (v) is the frequency spectrum of the fourth amplitude spectrum.

[0106] 5. Calculate the cross-power spectrum of the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum.

[0107] Based on formula (5), the relationship between the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum can be obtained as follows:

[0108]

[0109] Among them, the Ω MG The conjugate spectrum of (v) is is the cross power spectrum.

[0110] 6. Perform inverse Fourier transform on the cross power spectrum to obtain an impulse function with the logarithm of the width scaling factor as a variable.

[0111] Performing an inverse Fourier transform on the cross power spectrum obtained in equation (6) yields an impulse function with the logarithm of the width scaling factor as a variable, as follows:

[0112]

[0113] Among them, δ(u-Δu) is the impulse function with a translation of Δu. The impulse function is a singular function, which is an idealized mathematical model for extremely strong intensity, extremely short action time and finite integral.

[0114] 7. Determine the width scaling factor based on the maximum value of the impulse function.

[0115] Specifically, Δu can be obtained by searching for the position of the maximum value of the impulse function, and because Δu=lgλ, the width scaling factor λ can be obtained. The calculation formula of the width scaling factor λ is as follows:

[0116] λ=10 Δu (9)

[0117] S2043. Calculate the quotient of the initial width and the width scaling coefficient to obtain the scaled width.

[0118] After the width scaling factor λ is calculated, the initial width T is divided by the width scaling factor λ to obtain the scaling width of the first sample wave signal to be scaled, that is, T / λ.

[0119] S205. Calculate the time position information of the characteristic wave signal on the time axis.

[0120] The time position information of the characteristic wave signal on the time axis may be the position information of a certain point on the characteristic wave signal on the time axis. The time position information of the characteristic wave signal on the time axis can be determined based on the position information of the point.

[0121] In a specific embodiment of the present invention, the time position information of the characteristic wave signal on the time axis is determined by calculating the matching degree between the characteristic wave signal and the second spline wave signal obtained by scaling the first spline wave signal. The specific steps are as follows:

[0122] S2051. Scale the first spline wave signal to a scaling width to obtain a second spline wave signal.

[0123] Specifically, after the scaling width of the first spline signal is obtained, the first spline signal is scaled to the scaling width to obtain the second spline signal. It should be noted that the scaling described here is to scale the first spline signal along the time axis, while keeping it unchanged in the direction perpendicular to the time axis.

[0124] S2052. Calculate the matching degree between the second spline wave signal and the characteristic wave signal.

[0125] Specifically, the matching degree is used to characterize the error between the characteristic wave signal template and the characteristic wave signal or the similarity of the waveforms of the two. The greater the matching degree, the smaller the error or the greater the similarity.

[0126] Specifically, the above step S2052 may include the following sub-steps:

[0127] 1. Calculate the correlation coefficient between the second spline wave signal and the characteristic wave signal as the matching degree sequence.

[0128] The correlation coefficient is used to characterize the correlation degree between the characteristic wave signal template and the characteristic wave signal. Exemplarily, in one embodiment of the present invention, the Pearson correlation coefficient is used to characterize the correlation degree between the characteristic wave signal template and the characteristic wave signal.

[0129] Specifically, several points are selected from the characteristic wave signal, which may be the points inserted in the above interpolation process. The ordinate values ​​of these points and the ordinate values ​​of the points corresponding to the positions on the characteristic wave signal template are used as two variables X (x1, x2...x n )、Y(y1,y2…y n ), and then calculate the Pearson correlation coefficient of these two variables according to the following formula:

[0130]

[0131]

[0132] Among them, p X,Y is the Pearson correlation coefficient of X and Y, cov(X,Y) is the covariance of X and Y, δ X is the standard deviation of X, δ Y is the standard deviation of Y, x u is the mean of X, y u is the mean of Y.

[0133] Through the above calculations, the Pearson correlation coefficient sequence between the two variables X and Y is obtained. The Pearson correlation coefficient sequence includes multiple Pearson correlation coefficients. The Pearson correlation coefficient is a value between -1 and 1. When the linear relationship between the two variables is enhanced, the correlation coefficient tends to 1 or -1. For example, when one variable increases and the other variable also increases, it indicates that they are positively correlated, and the correlation coefficient is greater than 0; if one variable increases and the other variable decreases, it indicates that they are negatively correlated, and the correlation coefficient is less than 0; if the correlation coefficient is equal to 0, it indicates that there is no linear correlation between them. The Pearson correlation coefficient sequence is used as the matching degree sequence between the characteristic wave signal template and the characteristic wave signal. Each Pearson correlation coefficient is x i and i degree of matching.

[0134] It should be noted that the above-mentioned calculation of the Pearson correlation coefficient between the characteristic wave signal template and the characteristic wave signal as the matching degree sequence is an exemplary explanation of the present invention rather than a limitation. In other embodiments of the present invention, the Cosine similarity, the square of the Euclidean distance, etc. between the characteristic wave signal template and the characteristic wave signal can also be calculated as the matching degree sequence, and the embodiments of the present invention will not be repeated here.

[0135] 2. Determine the maximum value in the matching sequence.

[0136] Specifically, the maximum value is selected from each matching degree in the matching degree sequence. Exemplarily, in one embodiment of the present invention, the local maximum value in the matching degree sequence is determined based on a sliding window algorithm, and non-maximum value suppression is performed on the matching degree sequence in the sliding window.

[0137] Figure 2C A schematic diagram of determining a maximum value in a matching degree sequence provided by an embodiment of the present invention is exemplarily shown as follows: Figure 2C As shown, the matching degree sequence obtained in the above steps is 0.5, 0.7, 0.9, 0.7, 0.2, 0.1, 0.1, 0.7, 0.4, 0.2. It should be noted that the matching degree sequence is an exemplary description, and in other embodiments of the present invention, the matching degree sequence may include more matching degree values.

[0138] A sliding window is used to slide over the matching degree sequence, and the width of the sliding window is at least greater than the width of the two matching degrees. Exemplarily, in an embodiment of the present invention, the width of the sliding window is equal to the preset width in the standardized characteristic wave signal template. When the sliding window slides over a certain area on the matching degree sequence, the local maximum value in the area is obtained, and non-maximum suppression is performed at the same time to reduce the non-maximum value in the sliding window (such as to 0.1). For example, when the sliding window passes through the area where 0.7, 0.4, and 0.2 are located, the local maximum value of the area is determined to be 0.7, and the non-maximum value of the area is modified to 0.1. By analogy, the local maximum value sequence obtained after sliding over the matching degree sequence is 0.1, 0.1, 0.9, 0.1, 0.1, 0.1, 0.1, 0.7, 0.1, 0.1, and 0.9 and 0.7 in the sequence are the local maximum values ​​found.

[0139] Non-maximum suppression can improve the efficiency of the subsequent process of determining the position information of the characteristic wave signal and the accuracy of the position information of the characteristic wave signal.

[0140] 3. Take the maximum value as the matching degree between the second spline wave signal and the characteristic wave signal.

[0141] Specifically, the multiple local maximum values ​​obtained in the above steps are compared with a pre-set threshold value (such as 0.8), and the maximum value higher than the threshold value (such as 0.9) is used as the matching degree between the second spline wave signal and the characteristic wave signal. The matching degree between the second spline wave signal and the characteristic wave signal is a parameter in the parameterized vector.

[0142] S2053. Determine the time position information of the characteristic wave signal on the time axis based on the matching degree.

[0143] Specifically, in one embodiment of the present invention, in the aforementioned steps, the sliding window will record the position of the local maximum during the sliding process, and the position of the largest local maximum (ie, 0.9) will be used as the time position information of the characteristic wave signal.

[0144] In the prior art, the parameter of scaling width is set artificially based on medical prior knowledge, and the characteristic waveform width obtained based on medical prior knowledge is a range. In order to ensure data accuracy, when calculating the matching degree, it is necessary to first sample a set of width parameters within the range, and then use each width parameter in turn to calculate the time position information of the characteristic wave signal, and select the optimal value or multiple values ​​for averaging, so that parameter accuracy and operation speed cannot be taken into account. In the embodiment of the present invention, the characteristic wave signal and the first sample wave signal are transformed by Fourier-logarithmic coordinates based on the relationship between the characteristic wave signal and the first sample wave signal, and the scaling width of the first sample wave signal is calculated, thereby improving the accuracy and speed of the ECG parameterization algorithm and retaining good clinical interpretability.

[0145] S206: Calculate the amplitude of the characteristic wave signal and the offset of the characteristic wave signal relative to the time axis.

[0146] Specifically, the amplitude of the characteristic wave signal refers to the difference between the highest point and the lowest point of the characteristic wave signal, that is, the difference between the maximum voltage value and the minimum voltage value on the characteristic wave signal. The offset of the characteristic wave signal relative to the time axis refers to the vertical coordinate of the position where the mean value of the characteristic wave signal is located.

[0147] The embodiment of the present invention calculates the amplitude of the characteristic wave signal and the offset of the characteristic wave signal relative to the time axis based on the least square method. Specifically, the fitting function of the characteristic wave signal is assumed to be f(x)=ax+b, and several points on the characteristic wave signal are taken, and the horizontal coordinate values ​​of these points are x i , take the points at the corresponding positions of the original signal, the ordinate values ​​of these points are y i , the corresponding fitting function value is f(x i ), the least squares method is used to calculate the sum of the squares of the differences between the two. The specific formula is as follows:

[0148]

[0149] By iteratively calculating the parameters of the fitting function f(x) when the above formula reaches the minimum value, the amplitude a of the characteristic wave signal and the offset b of the characteristic wave signal relative to the time axis are obtained.

[0150] S207 . Determine a parameter vector sequence of the electrocardiogram signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width, and the amplitude.

[0151] After obtaining multiple parameters (relative position information of multiple key points, position information of characteristic wave signals, scaling width and amplitude) for characterizing characteristic wave signals through the above steps, the above parameters are organized into a vector form to obtain a parameter vector for characterizing the characteristic wave signal. The parameter vectors of each characteristic wave signal are arranged in the time sequence of the characteristic wave signals in the electrocardiogram signal to obtain a parameter vector sequence for characterizing the electrocardiogram signal. Exemplarily, the structure of the parameter vector sequence is shown in the following table:

[0152] Parameter vector 1 Parameter vector 2 … Parameter vector N Matching Degree 1 Matching Degree 2 … Matching degree N Location information 1 Location information 2 … Location InformationN Default width 1 Default Width 2 … Default width N Amplitude 1 Amplitude 2 … Amplitude N Bias 1 Bias 2 … Bias N Key Point 11 Key Point 21 … Key Point N1 Key Point 12 Key Point 22 … Key point N2 … … … … Key Point 1n Key Point 2n … Key Points Nn

[0153] Specifically, the first parameter vector 1 is used to characterize the first characteristic wave signal in the electrocardiogram signal, and so on, the Nth parameter vector N is used to characterize the Nth characteristic wave signal in the electrocardiogram signal.

[0154] The ECG signal parameterization method provided by the embodiment of the present invention parameterizes the characteristic wave signal in the ECG signal into parameters of different dimensions including the relative position information of multiple key points, so that these parameter areas can be directly used to analyze the ECG signal, and the clinical interpretability is good. When the ECG signal needs to be reconstructed later, it is only necessary to determine the first sample wave signal according to the key points, and adjust each first sample wave signal according to these parameters to obtain the reconstructed signal. Since there is no need to store the original ECG, only the parameter vector sequence needs to be stored, so the amount of stored data is greatly reduced, and the storage cost is greatly reduced. Based on the relationship between the characteristic wave signal and the first sample wave signal, the characteristic wave signal and the first sample wave signal are transformed into Fourier-logarithmic coordinates, and then the scaling width of the first sample wave signal is calculated. Compared with the preset width artificially specified based on prior knowledge, the accuracy and operation speed of the ECG signal parameterization are improved, and good clinical interpretability is retained. The time position information of the characteristic wave signal on the time axis is determined by calculating the matching degree between the characteristic wave signal and the second spline wave signal obtained by scaling the first spline wave signal, and the amplitude of the characteristic wave signal and the offset of the characteristic wave signal relative to the time axis are calculated using the least squares method. Compared with the previous method of directly measuring on the characteristic waveform, its ability to resist outlier interference is greatly improved, and more accurate parameter results can be obtained even on noisy signals.

[0155] Embodiment 3

[0156] Figure 3This is a flowchart of a method for training a parameterized model of an ECG signal provided in the third embodiment of the present invention. This embodiment can be used for training the parameterized model of an ECG provided in the above embodiments of the present invention to optimize the relative position information of key points in the model. This method can be performed by the ECG parameterized model training device provided in the embodiment of the present invention. The device can be implemented in software and / or hardware and is usually configured in a computer device. Figure 3 As shown, the method specifically comprises the following steps:

[0157] S301. Acquire an electrocardiogram signal sample, where the electrocardiogram signal sample includes a plurality of characteristic wave signal samples.

[0158] Specifically, the ECG signal samples are ECG signals used to train the ECG signal parameterization model. The ECG signal samples can be obtained from other corresponding physical examination results, or can be selected from an existing database, such as the ECEC electrocardiogram waveform database (CSE). Specifically, an ECG sample is obtained from the database, and starting from the first heartbeat signal in the ECG sample, a continuous preset number (at least one) of heartbeat signals are intercepted, and so on, the ECG is divided into multiple groups of ECG signal samples, and when the number of heartbeat signals in the last group of ECG signal samples is less than the preset number, zero filling is performed. Specifically, the processing of the ECG signal samples is similar to the processing of the ECG signal in the aforementioned embodiment, and the embodiments of the present invention will not be repeated here.

[0159] S302: Input the ECG signal samples into the ECG signal parameterization model to be trained for processing, and obtain a parameter vector sequence of the ECG signal samples.

[0160] Specifically, in an embodiment of the present invention, an ECG signal parameterization model is used to parameterize ECG signal samples to obtain parameters for characterizing different dimensions of ECG signal samples. The model parameters of the ECG parameterization model include relative position information of multiple key points used to reconstruct ECG signals, and the relative position information of the key points can be optimized by training the ECG parameterization model with a large number of ECG signal samples. Specifically, in a specific embodiment of the present invention, 5 key points are set for each characteristic wave signal, and two adjacent key points have the same spacing on the horizontal axis. The relative position information of multiple key points can be determined by the position of each key point on the vertical axis. When the model is just established, the relative position information of the key points is randomly generated, that is, the value of the vertical coordinate of the key point is randomly generated.

[0161] Specifically, the processing process of the ECG signal parameterization model on the ECG signal sample can refer to the processing process of the ECG signal parameterization model on the ECG signal in the aforementioned embodiment of the present invention, and the embodiment of the present invention will not be repeated here. The model parameters of the ECG parameterization model include the relative position information of multiple key points for reconstructing the ECG signal sample, and the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal sample. The parameter vector may include the relative position information of multiple key points, the position information of the characteristic wave signal, the scaling width and the amplitude.

[0162] S303 . Reconstruct the ECG signal samples according to the parameter vector sequence to obtain reconstructed signal samples.

[0163] Specifically, each parameter vector in the parameter vector sequence is reconstructed to obtain a reconstructed characteristic wave signal sample, and the reconstructed characteristic wave signal samples are spliced ​​in chronological order to obtain a reconstructed signal sample.

[0164] S304: Calculate the error between the ECG signal sample and the reconstructed signal sample.

[0165] Specifically, several points are selected from the ECG signal sample, and the mean square error between the ordinate values ​​of these points and the ordinate values ​​of the points corresponding to the positions on the reconstructed signal sample is calculated. For example, assuming that the ordinate value of the sampling point in the ECG signal sample is The ordinate value of the sampling point corresponding to the reconstructed signal sample is y i , then the mean square error between the ECG signal sample and the reconstructed signal sample is calculated as the error between the two, and the calculation formula is as follows:

[0166]

[0167] It should be noted that, in this embodiment, the mean square error of the ECG signal sample and the reconstructed signal sample is calculated as the error between the two. In other embodiments of the present invention, the root mean square error or the mean absolute error of the ECG signal sample and the reconstructed signal sample may also be calculated as the error between the two. The embodiments of the present invention are not limited here.

[0168] S305: Update the relative position information of key points in the ECG parameterized model according to the error.

[0169] Specifically, the obtained error is compared with the preset error. When the calculated error is greater than the preset error, the relative position information of the key points in the ECG signal parameterization model is updated, and the process returns to execute S301 and obtain the ECG signal sample. This process is repeated until the calculated error is less than or equal to the preset error, and the ECG parameterization model training is determined to be completed.

[0170] When updating the relative position information of the key points, since the distance between two adjacent key points on the horizontal axis is the same and constant, only the vertical coordinate value of the key points needs to be updated.

[0171] Specifically, the vertical coordinate value of the key point is taken as the parameter to be optimized, the calculated error is used as the objective function, and then the gradient descent method is used to find the vertical coordinate value of the key point that makes the error less than or equal to the preset error.

[0172] The ECG parameterized model training method provided by the embodiment of the present invention includes: obtaining ECG signal samples, the ECG signal samples include multiple characteristic wave signal samples, inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, obtaining a parameter vector sequence of the ECG signal samples, reconstructing the ECG signal samples according to the parameter vector sequence, obtaining a reconstructed signal sample, calculating the error between the ECG signal sample and the reconstructed signal sample, and updating the relative position information of the key points in the ECG parameterized model according to the error. In the embodiment of the present invention, the ECG signal samples do not need to be labeled, and the unlabeled ECG signal samples are used for self-supervised training, which saves the labeling cost.

[0173] Embodiment 4

[0174] Figure 4 This is a flowchart of a method for training a parameterized model of an ECG signal provided in Embodiment 4 of the present invention. This embodiment is a refinement of Embodiment 3 above, and describes in detail the specific process of reconstructing ECG signal samples according to a parameter vector sequence to obtain reconstructed signal samples, such as Figure 4 As shown, the method comprises the following steps:

[0175] S401. Acquire an electrocardiogram signal sample, where the electrocardiogram signal sample includes a plurality of characteristic wave signal samples.

[0176] Specifically, the process of acquiring the ECG signal samples has been described in detail in the aforementioned embodiments, and will not be described in detail in the embodiments of the present invention.

[0177] S402: Input the ECG signal samples into the ECG signal parameterization model to be trained for processing, and obtain a parameter vector sequence of the ECG signal samples.

[0178] The model parameters of the ECG parameterized model include the relative position information of multiple key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal samples. Specifically, the parameters in the parameter vector include the relative position information, matching degree, amplitude, bias, scaling width and position information of the characteristic wave signal samples of the key points. Specifically, the processing process of the ECG signal parameterized model on the ECG signal samples can refer to the processing process of the ECG signal parameterized model on the ECG signal in the aforementioned embodiment of the present invention, which will not be repeated here.

[0179] S403 , performing spline interpolation on multiple key points in each parameter vector to generate a third spline wave signal with an amplitude of 1 and a mean of 0.

[0180] Exemplarily, in a specific embodiment of the present invention, cubic spline interpolation is performed on multiple key points in each parameter vector to generate a third spline wave signal with an amplitude of 1 and a mean of 0. A cubic function curve is generated between two adjacent key points, and at the key point, the two adjacent cubic function curves are second-order continuous, that is, the two adjacent cubic function curves transition smoothly.

[0181] S404: Adjust the amplitude, position and width of multiple third spline wave signals according to the amplitude, position information and scaling width in the parameter vector to obtain reconstructed signal samples.

[0182] Specifically, in one embodiment, the third spline wave signal can be scaled to the scaling width to obtain a fourth spline wave signal. It should be noted that the scaling described here is to scale the third spline wave signal along the time axis direction, while it remains unchanged in the direction perpendicular to the time axis. Then, the fourth spline wave signal is proportionally scaled according to the amplitude of the characteristic wave signal sample in the parameter vector to obtain a reconstructed characteristic wave signal sample. Then, the position of the reconstructed characteristic wave signal sample on the time-signal intensity coordinate axis is determined according to the position information of the characteristic wave signal sample in the parameter vector to obtain the reconstructed signal sample. Specifically, the position information in the parameter vector includes the time position information of the characteristic wave signal on the time axis (horizontal axis) and the offset of the characteristic wave signal relative to the time axis. The position of the reconstructed characteristic wave signal sample on the time axis (horizontal axis) is determined according to the position information of the characteristic wave signal sample in the parameter vector, and the position of the reconstructed characteristic wave signal sample on the voltage axis (vertical axis) is determined according to the offset in the parameter vector to obtain the reconstructed characteristic wave signal sample.

[0183] Specifically, in the above step S405, when determining the position of each reconstructed characteristic wave signal sample on the time axis, it is determined whether two adjacent reconstructed characteristic wave signal samples overlap on the time axis. If so, the overlapping part of the reconstructed characteristic wave signal sample with a smaller matching degree among the two adjacent reconstructed characteristic wave signal samples is removed, and the overlapping part of the reconstructed characteristic wave signal sample with a higher matching degree is retained to obtain a reconstructed signal sample, thereby reducing the error between the reconstructed signal sample and the electrocardiogram signal.

[0184] In another embodiment of the present invention, when two adjacent reconstructed characteristic wave signal samples overlap on the time axis, the waveform signal of the overlapping portion can also be determined based on the weighted summation of the overlapping portion. Exemplarily, where the matching degree of the first characteristic wave signal sample is 0.9 and the matching degree of the second characteristic wave signal sample is 0.8, then the first weight corresponding to the first characteristic wave signal sample is 0.9 / (0.9+0.8), and the second weight corresponding to the second characteristic wave signal sample is 0.8 / (0.9+0.8). The ordinate of the overlapping portion of the first characteristic wave signal sample is multiplied by the first weight to obtain a first weighted signal, and the ordinate of the overlapping portion of the second characteristic wave signal sample is multiplied by the second weight to obtain a second weighted signal, and then the first weighted signal and the second weighted signal are added as the signal of the reconstructed signal sample in the overlapping portion.

[0185] In the subsequent application process, if the ECG signal needs to be reconstructed, the multiple key points in the parameter vector are also spline interpolated to produce a smooth spline wave signal, and the spline wave signal is adjusted based on the matching degree to obtain a smooth reconstructed signal. Therefore, even if the original ECG signal has noise, a smooth reconstructed signal can be obtained after parameterization and reconstruction, which reduces the impact of noise on the analysis results and improves the accuracy of the analysis results.

[0186] S405: Calculate the error between the ECG signal sample and the reconstructed signal sample.

[0187] Specifically, several points are selected from the ECG signal sample, and the mean square error between the ordinate values ​​of these points and the ordinate values ​​of points corresponding to the positions on the reconstructed signal sample is calculated.

[0188] S406: Update relative position information of key points in the ECG parameterized model according to the error.

[0189] Specifically, the obtained error is compared with the preset error. When the calculated error is greater than the preset error, the relative position information of the key points in the ECG signal parameterization model is updated, and the process returns to execute S401 and obtain the ECG signal sample. This process is repeated until the calculated error is less than or equal to the preset error, and the ECG parameterization model training is determined to be completed.

[0190] When updating the relative position information of the key points, since the distance between two adjacent key points on the horizontal axis is the same and constant, only the vertical coordinate value of the key points needs to be updated.

[0191] Specifically, the vertical coordinate value of the key point is taken as the parameter to be optimized, the calculated error is used as the objective function, and then the gradient descent method is used to find the vertical coordinate value of the key point that makes the error less than or equal to the preset error.

[0192] The ECG parameterized model training method provided in the embodiment of the present invention includes: obtaining ECG signal samples, the ECG signal samples include multiple characteristic wave signal samples, inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, obtaining a parameter vector sequence of the ECG signal samples, reconstructing the ECG signal samples according to the parameter vector sequence, obtaining a reconstructed signal sample, calculating the error between the ECG signal sample and the reconstructed signal sample, and updating the relative position information of the key points in the ECG parameterized model according to the error. In the embodiment of the present invention, the ECG signal samples do not need to be labeled, and unlabeled ECG signal samples are used for self-supervised training, saving the labeling cost. In addition, in the subsequent application process, even if the original ECG signal has noise, after parameterization and reconstruction, a smooth reconstructed signal can be obtained based on the matching degree, reducing the influence of noise on the analysis results and improving the accuracy of the analysis results.

[0193] Embodiment 5

[0194] Figure 5 A schematic diagram of the structure of an electrocardiogram signal parameterization device provided in Embodiment 5 of the present invention is shown in FIG. Figure 5 As shown, the device comprises:

[0195] The ECG signal acquisition module 501 is used to acquire an ECG signal, wherein the ECG signal includes a plurality of characteristic wave signals;

[0196] A key point information acquisition module 502, used to acquire relative position information of a plurality of key points used to reconstruct the electrocardiogram signal;

[0197] A scaling width determination module 503 is used to perform Fourier-logarithmic coordinate transformation on the characteristic wave signal based on the relationship between the characteristic wave signal and the first spline wave signal to determine the scaling width, wherein the first spline wave signal is translated and scaled to obtain the characteristic wave signal;

[0198] A position amplitude determination module 504 is used to determine the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis;

[0199] The parameter vector sequence determination module 505 is used to determine the parameter vector sequence of the ECG signal based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, and the parameter vector sequence includes multiple parameter vectors for characterizing the characteristic wave signal.

[0200] In some embodiments of the present invention, the scaling width determination module 503 includes:

[0201] The initial width setting submodule is used to set the initial width;

[0202] A width scaling coefficient determination submodule is used to perform Fourier-logarithmic coordinate transformation on the characteristic wave signal and the first strip wave signal to obtain the width scaling coefficients of the characteristic wave signal and the first strip wave signal;

[0203] The scaling width calculation submodule is used to calculate the quotient of the initial width and the width scaling coefficient to obtain the scaling width.

[0204] In some embodiments of the present invention, the width scaling factor determination submodule includes:

[0205] a signal spectrum calculation unit, used for performing Fourier transform on the characteristic wave signal and the first spline wave signal respectively to obtain the spectrum of the characteristic wave signal and the spectrum of the first spline wave signal;

[0206] an amplitude spectrum calculation unit, used for respectively calculating a first amplitude spectrum of the frequency spectrum of the characteristic wave signal and a second amplitude spectrum of the frequency spectrum of the first spline wave signal, to obtain the first amplitude spectrum and the second amplitude spectrum;

[0207] A logarithmic coordinate conversion unit, used to convert the first amplitude spectrum and the second amplitude spectrum from an angular frequency-width scaling coefficient coordinate system to a logarithmic coordinate system of the angular frequency-width scaling coefficient, respectively, to obtain a third amplitude spectrum and a fourth amplitude spectrum;

[0208] an amplitude spectrum calculation unit, used for performing Fourier transform on the third amplitude spectrum and the fourth amplitude spectrum respectively to obtain a spectrum of the third amplitude spectrum and a spectrum of the fourth amplitude spectrum;

[0209] a cross-power spectrum calculation unit, configured to calculate a cross-power spectrum of the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum;

[0210] An impulse function determination unit, configured to perform an inverse Fourier transform on the cross power spectrum to obtain an impulse function with the logarithm of the width scaling coefficient as a variable;

[0211] A width scaling factor determining unit is used to determine the width scaling factor based on a maximum value of the impulse function.

[0212] In some embodiments of the present invention, the position amplitude determination module 504 includes:

[0213] A time position information calculation submodule, used to calculate the time position information of the characteristic wave signal on the time axis;

[0214] The offset calculation submodule is used to calculate the amplitude of the characteristic wave signal and the offset of the characteristic wave signal relative to the time axis.

[0215] In some embodiments of the present invention, the time position information calculation submodule includes:

[0216] A first spline wave signal generating unit, used for performing spline interpolation on multiple key points to generate a first spline wave signal with an amplitude of 1 and a mean of 0;

[0217] A second spline wave signal generating unit, configured to scale the first spline wave signal to a scaling width to obtain a second spline wave signal;

[0218] A matching degree calculation unit, used for calculating the matching degree between the second spline wave signal and the characteristic wave signal;

[0219] A time position information determination unit is used to determine the time position information of the characteristic wave signal on the time axis based on the matching degree.

[0220] In some embodiments of the present invention, the matching degree calculation unit includes:

[0221] A matching degree sequence calculation subunit, used for calculating the correlation coefficient between the second spline wave signal and the characteristic wave signal as a matching degree sequence;

[0222] A maximum value determination subunit, used to determine the maximum value in the matching degree sequence;

[0223] The matching degree determining subunit is used to use the maximum value as the matching degree between the second spline wave signal and the characteristic wave signal.

[0224] In some embodiments of the present invention, the time location information determination unit is used to:

[0225] The position of the maximum value is determined as the time position information of the characteristic wave signal.

[0226] The above-mentioned ECG signal parameterization device can execute the ECG signal parameterization method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0227] Embodiment 6

[0228] Figure 6 A structural diagram of an electrocardiogram signal parameterized model training device provided in Embodiment 6 of the present invention is shown in FIG. Figure 6 As shown, the device comprises:

[0229] The sample acquisition module 601 is used to acquire an ECG signal sample, wherein the ECG signal sample includes a plurality of characteristic wave signal samples;

[0230] The parameterization processing module 602 is used to input the ECG signal sample into the ECG signal parameterization model to be trained for processing, and obtain a parameter vector sequence of the ECG signal sample, wherein the model parameters of the ECG parameterization model include relative position information of multiple key points used to reconstruct the ECG signal sample, and the parameter vector sequence includes multiple parameter vectors used to characterize the characteristic wave signal sample;

[0231] A reconstruction module 603 is used to reconstruct the ECG signal sample according to the parameter vector sequence to obtain a reconstructed signal sample;

[0232] An error calculation module 604 is used to calculate the error between the ECG signal sample and the reconstructed signal sample;

[0233] The key point updating module 605 is used to update the relative position information of the key points in the ECG parameterized model according to the error.

[0234] In some embodiments of the present invention, the reconstruction module 603 includes:

[0235] A third spline wave signal generating submodule is used to perform spline interpolation on multiple key points in each parameter vector to generate a third spline wave signal with an amplitude of 1 and a mean of 0;

[0236] The reconstruction submodule is used to adjust the amplitude, position and width of the plurality of third spline wave signals according to the amplitude, position information and scaling width in the parameter vector to obtain reconstructed signal samples.

[0237] In some embodiments of the present invention, the reconstruction submodule includes:

[0238] a fourth spline wave signal generating unit, configured to scale the third spline wave signal to a scaling width to obtain a fourth spline wave signal;

[0239] A reconstructed characteristic wave signal sample determination unit, used for adjusting the amplitude of the fourth spline wave signal according to the amplitude in the parameter vector to obtain a reconstructed characteristic wave signal sample;

[0240] The reconstructed signal sample determination unit is used to determine the position of the reconstructed characteristic wave signal sample on the time-signal strength coordinate axis according to the position information of the characteristic wave signal sample in the parameter vector to obtain the reconstructed signal sample.

[0241] The above-mentioned ECG signal parameterized model training device can execute the ECG signal parameterized model training method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0242] Embodiment 7

[0243] Embodiment 7 of the present invention provides a computer device, Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 7 of the present invention is shown in FIG. Figure 7 As shown, the computer device includes a processor 701, a memory 702, a communication module 703, an input device 704 and an output device 705; the number of processors 701 in the computer device can be one or more. Figure 7 A processor 701 is taken as an example; the processor 701, the memory 702, the communication module 703, the input device 704 and the output device 705 in the computer device can be connected by a bus or other means. Figure 7 The above processor 701, memory 702, communication module 703, input device 704 and output device 705 can be integrated on a control mainboard of a computer device.

[0244] The memory 702 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as the modules corresponding to the ECG signal parameterization method or the ECG signal parameterization model training method in this embodiment. The processor 701 executes various functional applications and data processing of the computer device by running the software programs, instructions and modules stored in the memory 702, that is, the ECG signal parameterization method or ECG signal parameterization model training method provided in the above embodiment is implemented.

[0245] The memory 702 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 702 may further include a memory remotely arranged relative to the processor 701, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0246] The communication module 703 is used to establish a connection with an external device (such as a smart terminal) and realize data interaction with the external device. The input device 704 can be used to receive input digital or character information and generate key signal input related to user settings and function control of the computer device.

[0247] The present embodiment provides a computer device that can execute the ECG signal parameterization method or ECG signal parameterization model training method provided in any of the above embodiments of the present invention, and has specific corresponding functions and beneficial effects.

[0248] Embodiment 8

[0249] Embodiment 8 of the present invention provides a storage medium containing computer executable instructions, on which a computer program is stored. When the program is executed by a processor, the electrocardiogram signal parameterization method or electrocardiogram signal parameterization model training method provided in any of the above embodiments of the present invention is implemented.

[0250] Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes a plurality of characteristic wave signals;

[0251] Acquiring relative position information of a plurality of key points for reconstructing the electrocardiogram signal;

[0252] Calculating a scaling width of a first spline wave signal, wherein the first spline wave signal is a signal generated by spline interpolation of a plurality of key points, and in the process of reconstructing the electrocardiogram signal, the first spline wave signal is translated and scaled to obtain a reconstructed characteristic wave signal;

[0253] Determining the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis;

[0254] A parameter vector sequence of the electrocardiogram signal is determined based on the relative position information of the key points, the position information of the characteristic wave signal, the scaling width and the amplitude, wherein the parameter vector sequence includes a plurality of parameter vectors for characterizing the characteristic wave signal.

[0255] The ECG signal parameterized model training method includes:

[0256] Acquire an electrocardiogram signal sample, wherein the electrocardiogram signal sample includes a plurality of characteristic wave signal samples;

[0257] Inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, and obtaining a parameter vector sequence of the ECG signal samples, wherein the model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes a plurality of parameter vectors used to characterize the characteristic wave signal samples;

[0258] Reconstruct the electrocardiogram signal sample according to the parameter vector sequence to obtain a reconstructed signal sample;

[0259] Calculating the error between the electrocardiogram signal sample and the reconstructed signal sample;

[0260] The relative position information of the key points in the ECG parameterized model is updated according to the error.

[0261] Of course, the storage medium containing computer executable instructions provided by the embodiment of the present invention is not limited to the method operations described above, and can also execute related operations in the ECG signal parameterization method or ECG signal parameterization model training method provided by the embodiment of the present invention.

[0262] It should be noted that, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0263] Through the above description of the implementation methods, technicians in the relevant field can clearly understand that the present invention can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a robot, a personal computer, a server, or a network device, etc.) to execute the electrocardiogram signal parameterization method or the electrocardiogram signal parameterization model training method described in any embodiment of the present invention.

[0264] It is worth noting that in the above-mentioned device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0265] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0266] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0267] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for parameterizing an electrocardiogram signal, characterized in that: It is implemented by the parameterized model of ECG signal, and the method includes: Acquiring an electrocardiogram signal, wherein the electrocardiogram signal includes a plurality of characteristic wave signals; Obtaining relative position information of a plurality of key points for reconstructing the electrocardiogram signal, wherein two adjacent key points have the same spacing on the horizontal axis, and the relative position information of the plurality of key points can be determined by the vertical coordinates of the key points, wherein the horizontal axis is the time axis and the vertical axis is the intensity axis of the electrocardiogram signal; Calculating a scaling width of a first spline wave signal, wherein the first spline wave signal is a signal generated by spline interpolation of a plurality of key points, and in the process of reconstructing the electrocardiogram signal, the first spline wave signal is translated and scaled to obtain a reconstructed characteristic wave signal; Determining the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis; Determining a parameter vector sequence of the electrocardiogram signal based on the relative position information of the key point, the position information of the characteristic wave signal, the scaling width and the amplitude, wherein the parameter vector sequence includes a plurality of parameter vectors for characterizing the characteristic wave signal; Calculate the scaling width of the first sample wave signal, including: Set the initial width; Performing Fourier-logarithmic coordinate transformation on the characteristic wave signal and the first sample wave signal, and obtaining the width scaling coefficients of the characteristic wave signal and the first sample wave signal; Calculating the quotient of the initial width and the width scaling factor to obtain the scaled width; Perform Fourier-logarithmic coordinate transformation on the characteristic wave signal and the first strip wave signal to obtain the width scaling coefficients of the characteristic wave signal and the first strip wave signal, including: Performing Fourier transform on the characteristic wave signal and the first spline wave signal respectively to obtain a frequency spectrum of the characteristic wave signal and a frequency spectrum of the first spline wave signal; Respectively calculating a first amplitude spectrum of the frequency spectrum of the characteristic wave signal and a second amplitude spectrum of the frequency spectrum of the first spline wave signal to obtain the first amplitude spectrum and the second amplitude spectrum; Respectively converting the first amplitude spectrum and the second amplitude spectrum from an angular frequency-width scaling coefficient coordinate system to a logarithmic coordinate system of the angular frequency-width scaling coefficient to obtain a third amplitude spectrum and a fourth amplitude spectrum; Performing Fourier transform on the third amplitude spectrum and the fourth amplitude spectrum respectively to obtain a frequency spectrum of the third amplitude spectrum and a frequency spectrum of the fourth amplitude spectrum; Calculating a cross power spectrum of the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum; Performing an inverse Fourier transform on the cross power spectrum to obtain an impulse function with the logarithm of the width scaling coefficient as a variable; The width scaling factor is determined based on a maximum value of the impulse function.

2. The method for parameterizing an ECG signal according to claim 1, characterized in that: Determining the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis includes: Calculating the time position information of the characteristic wave signal on the time axis; The amplitude of the characteristic wave signal and the offset of the characteristic wave signal relative to the time axis are calculated.

3. The method for parameterizing an ECG signal according to claim 2, characterized in that: Calculating the time position information of the characteristic wave signal on the time axis includes: Perform spline interpolation on multiple key points to generate a first spline wave signal with an amplitude of 1 and a mean of 0; Scaling the first spline wave signal to a scaling width to obtain a second spline wave signal; Calculating the matching degree between the second spline wave signal and the characteristic wave signal; The time position information of the characteristic wave signal on the time axis is determined based on the matching degree.

4. The method for parameterizing an ECG signal according to claim 3, characterized in that: Calculating the matching degree between the second spline wave signal and the characteristic wave signal includes: Calculating the correlation coefficient between the second spline wave signal and the characteristic wave signal as a matching degree sequence; Determining a maximum value in the matching degree sequence; The maximum value is used as the matching degree between the second spline wave signal and the characteristic wave signal.

5. The method for parameterizing an ECG signal according to claim 4, characterized in that: The determining of the time position information of the characteristic wave signal on the time axis includes: The position of the maximum value is determined as the time position information of the characteristic wave signal.

6. A method for training a parameterized model of an electrocardiogram signal, characterized in that: The ECG signal parameterization model is used to implement the ECG signal parameterization method according to any one of claims 1 to 5. The ECG signal parameterization model training method includes: Acquire an electrocardiogram signal sample, wherein the electrocardiogram signal sample includes a plurality of characteristic wave signal samples; Inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, and obtaining a parameter vector sequence of the ECG signal samples, wherein the model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes a plurality of parameter vectors used to characterize the characteristic wave signal samples; Reconstruct the electrocardiogram signal sample according to the parameter vector sequence to obtain a reconstructed signal sample; Calculating the error between the electrocardiogram signal sample and the reconstructed signal sample; The relative position information of the key points in the ECG parameterized model is updated according to the error.

7. The method for training a parameterized model of an ECG signal according to claim 6, characterized in that: The parameter vector includes the amplitude of the characteristic wave signal sample, the position information of the characteristic wave signal sample and the scaling width of the characteristic wave signal sample, and the reconstructing the electrocardiogram signal sample according to the parameter vector sequence to obtain the reconstructed signal sample includes: Perform spline interpolation on multiple key points in each parameter vector to generate a third spline wave signal with an amplitude of 1 and a mean of 0; The amplitude, position and width of the plurality of third spline wave signals are adjusted according to the amplitude, position information and scaling width in the parameter vector to obtain reconstructed signal samples.

8. The method for training a parameterized model of an ECG signal according to claim 7, characterized in that: The amplitude, position and width of the plurality of third spline wave signals are adjusted according to the amplitude, position information and scaling width in the parameter vector to obtain reconstructed signal samples, including: Scaling the third spline wave signal to a scaling width to obtain a fourth spline wave signal; Adjusting the amplitude of the fourth spline wave signal according to the amplitude in the parameter vector to obtain a reconstructed characteristic wave signal sample; The position of the reconstructed characteristic wave signal sample on the time-signal intensity coordinate axis is determined according to the position information of the characteristic wave signal sample in the parameter vector to obtain the reconstructed signal sample.

9. An electrocardiogram signal parameterization device, characterized in that: include: An ECG signal acquisition module, used to acquire an ECG signal, wherein the ECG signal includes a plurality of characteristic wave signals; A key point information acquisition module, used to acquire relative position information of multiple key points used to reconstruct the ECG signal, wherein two adjacent key points have the same spacing on the horizontal axis, and the relative position information of the multiple key points can be determined by the vertical coordinates of each key point, the horizontal axis is the time axis, and the vertical axis is the intensity axis of the ECG signal; A scaling width calculation module, used for calculating the scaling width of a first spline wave signal, wherein the first spline wave signal is a signal generated by spline interpolation of a plurality of key points, and in the process of ECG signal reconstruction, the first spline wave signal is translated and scaled to obtain a reconstructed characteristic wave signal; A position amplitude determination module, used to determine the position information and amplitude of the characteristic wave signal on the time-signal strength coordinate axis; A parameter vector sequence determination module, used to determine the parameter vector sequence of the electrocardiogram signal based on the relative position information of the key point, the position information of the characteristic wave signal, the scaling width and the amplitude, wherein the parameter vector sequence includes a plurality of parameter vectors for characterizing the characteristic wave signal; The scaling width determination module includes: The initial width setting submodule is used to set the initial width; A width scaling coefficient determination submodule is used to perform Fourier-logarithmic coordinate transformation on the characteristic wave signal and the first sample wave signal to obtain the width scaling coefficients of the characteristic wave signal and the first sample wave signal; A scaling width calculation submodule, used to calculate the quotient of the initial width and the width scaling coefficient to obtain the scaling width; The width scaling factor determination submodule includes: a signal spectrum calculation unit, used for performing Fourier transform on the characteristic wave signal and the first spline wave signal respectively to obtain the spectrum of the characteristic wave signal and the spectrum of the first spline wave signal; an amplitude spectrum calculation unit, used for respectively calculating a first amplitude spectrum of the frequency spectrum of the characteristic wave signal and a second amplitude spectrum of the frequency spectrum of the first spline wave signal, to obtain the first amplitude spectrum and the second amplitude spectrum; A logarithmic coordinate conversion unit, used to convert the first amplitude spectrum and the second amplitude spectrum from an angular frequency-width scaling coefficient coordinate system to a logarithmic coordinate system of the angular frequency-width scaling coefficient, respectively, to obtain a third amplitude spectrum and a fourth amplitude spectrum; an amplitude spectrum calculation unit, used for performing Fourier transform on the third amplitude spectrum and the fourth amplitude spectrum respectively to obtain a spectrum of the third amplitude spectrum and a spectrum of the fourth amplitude spectrum; a cross-power spectrum calculation unit, configured to calculate a cross-power spectrum of the frequency spectrum of the third amplitude spectrum and the frequency spectrum of the fourth amplitude spectrum; An impulse function determination unit, configured to perform an inverse Fourier transform on the cross power spectrum to obtain an impulse function with the logarithm of the width scaling coefficient as a variable; A width scaling factor determining unit is used to determine the width scaling factor based on a maximum value of the impulse function.

10. A device for training a parameterized model of an electrocardiogram signal, characterized in that: The ECG signal parameterization model is used to implement the ECG signal parameterization method according to any one of claims 1 to 5, and the ECG signal parameterization model training device comprises: A sample acquisition module, used to acquire an ECG signal sample, wherein the ECG signal sample includes a plurality of characteristic wave signal samples; A parameterized processing module, used for inputting the ECG signal samples into the ECG signal parameterized model to be trained for processing, and obtaining a parameter vector sequence of the ECG signal samples, wherein the model parameters of the ECG parameterized model include relative position information of a plurality of key points used to reconstruct the ECG signal samples, and the parameter vector sequence includes a plurality of parameter vectors used to characterize the characteristic wave signal samples; A reconstruction module, used for reconstructing the electrocardiogram signal sample according to the parameter vector sequence to obtain a reconstructed signal sample; An error calculation module, used for calculating the error between the electrocardiogram signal sample and the reconstructed signal sample; A key point updating module is used to update the relative position information of the key points in the ECG parameterized model according to the error.

11. A computer device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the ECG signal parameterization method as described in any one of claims 1-5, or implement the ECG signal parameterization model training method as described in any one of claims 6-8.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the electrocardiogram signal parameterization method described in any one of claims 1-5 is implemented, or the electrocardiogram signal parameterization model training method described in any one of claims 6-8 is implemented.