Atrial fibrillation data labeling method and system based on dual-source electrocardio synchronization
By employing a dual-source synchronous ECG acquisition and closed-loop processing architecture, combined with variational mode decomposition, stochastic matrix theory, and fractional differential equation estimation algorithms, the problem of insufficient information dimension from a single signal source is solved. This enables accurate labeling and adaptive optimization of atrial fibrillation signals, thereby improving the accuracy and reliability of atrial fibrillation detection.
Patent Information
- Application Number
- CN202611361336.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-24
AI Technical Summary
Existing atrial fibrillation detection and annotation technologies suffer from limited information dimensions of a single signal source, lack of deep integration and bidirectional interaction between various processing stages, and lack of adaptive optimization mechanisms for algorithm parameters, resulting in insufficient signal fidelity and annotation accuracy.
A data annotation method for atrial fibrillation based on dual-source ECG synchronization is adopted. By simultaneously acquiring surface ECG signals and intracardiac electrical signals, and combining variational mode decomposition, stochastic matrix theory and fractional differential equation estimation algorithms, a closed-loop processing architecture is formed to achieve complementary global and local perspectives of the signal. The annotation accuracy is improved through multiple discriminant indicators and feedback mechanisms.
It achieves information complementarity between surface electrocardiogram signals and intracardiac electrical signals, forming a closed-loop iterative optimization, improving the labeling accuracy and robustness of atrial fibrillation signals, and possessing continuous optimization and adaptive update capabilities to meet clinical diagnostic needs.
Smart Images

Figure CN123147944A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electrocardiogram signal processing and arrhythmia detection technology, and in particular to a method and system for labeling atrial fibrillation data based on dual-source electrocardiogram synchronization. Background Technology
[0002] Atrial fibrillation is one of the most common arrhythmias in clinical practice, and accurate identification and labeling of atrial fibrillation episodes are of fundamental importance for clinical diagnosis and treatment management. Currently, the detection and labeling of atrial fibrillation signals mainly rely on the following technical approaches.
[0003] Methods based on single-source surface ECG signals are one of the mainstream technical approaches. They typically extract features such as RR interval irregularities, P wave disappearance, and f wave appearance from a single lead signal, and then use threshold discrimination or machine learning classifiers for atrial fibrillation identification. However, surface ECG signals are far-field projections of the heart's overall electrical activity onto the trunk's volumetric conductors. During atrial fibrillation, the subtle electrical activity of atrial myocytes is significantly attenuated by the time it reaches the body surface. Furthermore, noise interference from respiration, electromyography, and other sources further exacerbates the problem, resulting in insufficient signal fidelity, which is a fundamental limitation.
[0004] Methods based on intracardiac electrical signals place electrode catheters directly inside the atria, enabling the acquisition of near-field atrial electrical activity with a high signal-to-noise ratio and high sensitivity to local myocardial electrical activity. However, intracardiac electrical signals can only reflect electrical activity within a limited range near the electrode contact area, lacking the ability to describe the overall electrical activity pattern of the heart.
[0005] Multimodal ECG signal fusion analysis methods attempt to jointly analyze surface and intracardiac electrical signals to balance global perspective and local accuracy. A common architecture is a cascaded combination of independent component analysis (ICA) and variational mode decomposition (VMD). ICA first decouples intracardiac electrical activity, then VMD performs time-frequency decomposition. However, this architecture only has a unidirectional serial relationship between the components, lacking parameter interaction and feedback optimization mechanisms. The decomposition results are directly fed into the subsequent classifier, failing to form a closed-loop iteration to continuously optimize the front-end processing accuracy.
[0006] At the level of ECG feature extraction, existing methods mostly employ time-domain statistics, frequency-domain power spectra, or nonlinear dynamic features. While random matrix theory has been applied in EEG signal analysis, it has not yet been used to characterize the cross-source correlation structure between electrical signals on the body surface and within the cardiac chambers. At the level of dynamic modeling, fractional differential equations have been attempted for ECG waveform modeling, but these are all open-loop models. The model parameters lack coupling with the front-end signal decomposition and feature extraction stages, making adaptive adjustment based on decomposition quality and spectral analysis results impossible.
[0007] In summary, the existing technologies have the following shortcomings: single-source signals are difficult to balance global perspective and local fidelity; multimodal fusion processing is mostly serial unidirectional transmission, lacking bidirectional interaction and closed-loop optimization; variational mode decomposition, eigenvalue spectrum analysis and dynamic modeling are independent of each other and have not formed a deep fusion architecture; the processing stages are open-loop structures, and the backend lacks feedback channels to optimize the frontend parameter settings. Summary of the Invention
[0008] This invention provides a method and system for labeling atrial fibrillation data based on dual-source ECG synchronization, in order to solve the technical problems in existing atrial fibrillation detection and labeling technologies, such as the limited information dimension of a single signal source, the lack of deep integration and bidirectional interaction between various processing links, and the lack of adaptive optimization mechanism for algorithm parameters.
[0009] To achieve the above objectives, the present invention adopts the following technical solution: Atrial fibrillation data annotation method based on dual-source ECG synchronization includes the following steps: S1: Collect surface electrocardiogram (ECG) signals and intracardiac electrical signals, obtain a first ECG signal sequence and a second ECG signal sequence, and perform preprocessing respectively to obtain a preprocessed first ECG signal sequence and a preprocessed second ECG signal sequence, which constitute a dual-source ECG synchronization signal pair; S2: The variational mode decomposition algorithm is used to decompose the preprocessed first ECG signal sequence and the preprocessed second ECG signal sequence in parallel to obtain several intrinsic mode function components. S3: Based on several intrinsic mode function components, a dual-source ECG collaborative random matrix is constructed using a random matrix theory algorithm. The dual-source ECG collaborative random matrix is decomposed into eigenvalues to obtain several eigenvalues and corresponding eigenvectors. The adjacent ratio, information entropy, and spectral moments of the ordered eigenvalue sequence are then calculated. S4: Based on several eigenvalues and corresponding eigenvectors, the adjacent ratio of the ordered eigenvalue sequence, information entropy, and spectral moments, a fractional-order dynamic model of the dual-source ECG system is constructed and solved using a fractional-order differential equation estimation algorithm to obtain a fractional-order state vector. Based on the fractional-order state vector, the mean fractional-order state energy, the mean fractional-order state entropy, the fractional-order state energy fluctuation coefficient, and the fractional-order state entropy fluctuation coefficient are calculated. Atrial fibrillation is then identified based on the mean fractional-order state energy, the mean fractional-order state entropy, the fractional-order state energy fluctuation coefficient, and the fractional-order state entropy fluctuation coefficient, and the atrial fibrillation identification labeling results are output. S5: Align the atrial fibrillation discrimination labeling results with the dual-source ECG synchronization signal pair on the time axis to generate a time-labeled atrial fibrillation data labeling file. Perform quality verification on the atrial fibrillation data labeling file and output the verified atrial fibrillation data labeling file as the final atrial fibrillation data labeling result. S6: The parameters of the variational mode decomposition algorithm, the random matrix theory algorithm, the fractional differential equation estimation algorithm, and the verification threshold parameters used in quality verification are solidified to form an atrial fibrillation data annotation parameter set. The entire processing flow from S1 to S5 is encapsulated into an executable atrial fibrillation data annotation model.
[0010] In summary, the present invention has at least the following beneficial effects: The synchronous acquisition architecture of surface electrocardiogram (ECG) signals and intracardiac electrical signals enables the two signal sources to share the same clock source to achieve strict time synchronization. It can simultaneously acquire surface ECG signals that reflect the overall electrical activity of the heart and intracardiac electrical signals that reflect the local atrial myocardial electrical activity, forming information complementarity from a global and local perspective, effectively overcoming the shortcomings of insufficient information dimension of a single signal source.
[0011] The variational mode decomposition algorithm, the stochastic matrix theory algorithm, and the fractional differential equation estimation algorithm form a two-way interactive closed-loop processing architecture through parameter passing and result feedback. The decomposed mode parameters of the variational mode decomposition algorithm serve as the basis for constructing the input matrix of the stochastic matrix theory algorithm, establishing an intrinsic connection between the construction of the stochastic matrix and the physiological structure of the electrocardiogram signal; the eigenvalue distribution results of the stochastic matrix theory algorithm serve as the initial condition parameters of the fractional differential equation estimation algorithm, enabling the eigenvalue spectrum features to effectively drive the fractional dynamic model; the output results of the fractional differential equation estimation algorithm are simultaneously fed back to the mode number optimization of the variational mode decomposition algorithm and the stochastic matrix reconstruction process of the stochastic matrix theory algorithm, forming a closed-loop iterative optimization chain.
[0012] By comprehensively judging multiple discriminant indicators such as the fractional-order state energy mean, fractional-order state entropy mean, fractional-order state energy fluctuation coefficient, and fractional-order state entropy fluctuation coefficient, and combining multi-threshold discrimination rules based on statistical learning of clinically diagnosed samples, accurate differentiation and automatic labeling of atrial fibrillation signals, normal sinus rhythm signals, and other arrhythmia signals are achieved. The fractional-order differential equation estimation algorithm incorporates eigenvalue spectrum features into the fractional-order dynamic model, and obtains the state vector and its evolution characteristics by solving the fractional-order differential equation, thus characterizing the chaotic features of the cardiac electrical activity system under atrial fibrillation state from the perspective of fractional-order dynamics.
[0013] The fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient are fed back to the variational mode decomposition algorithm to optimize the number of modes. The Lyapunov exponent and correlation dimension of the fractional-order state vector are fed back to the stochastic matrix theory algorithm to adjust the random perturbation amplitude and matrix reconstruction strategy. This gives the interaction relationship between the three algorithms clear mathematical expression support and a quantifiable feedback mechanism, which can adaptively adjust the algorithm parameters according to the signal characteristics, thereby improving the accuracy and robustness of atrial fibrillation annotation results.
[0014] The quality of atrial fibrillation (AF) data annotation results is verified through a dual verification mechanism involving expert review and clinical event control. Quantitative indicators such as expert review consistency rate, annotation sensitivity, and annotation specificity are calculated to ensure the reliability of the annotation results. AF data annotation files that pass this dual verification can be used as standard datasets for clinical research and assisted diagnosis.
[0015] All parameters determined through closed-loop iterative optimization are solidified to form a complete atrial fibrillation data annotation parameter set, and the entire processing flow is encapsulated into an executable atrial fibrillation data annotation model. After the model is deployed, it can continuously record key indicators during the processing. When indicators show systematic deviations, it automatically triggers online adaptive adjustments, using recently processed historical signals to re-perform closed-loop iterative optimization and update parameters, possessing the ability for continuous optimization and adaptive updates. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating the atrial fibrillation data annotation method based on dual-source ECG synchronization involved in this invention.
[0018] Figure 2 This is a schematic diagram of the iterative solution process for variational mode decomposition involved in this invention.
[0019] Figure 3 This is a schematic diagram of the eigenvalue spectrum analysis of the random matrix theory involved in this invention.
[0020] Figure 4 This is a schematic diagram of the process for solving fractional differential equations and closed-loop feedback involved in this invention. Detailed Implementation
[0021] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of the embodiments of the invention. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0022] The following disclosure provides many different implementations or examples for carrying out different structures of the embodiments of the present invention. To simplify the disclosure of the embodiments of the present invention, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the embodiments of the present invention. Furthermore, reference numerals and / or reference letters may be repeated in different examples of the embodiments of the present invention; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various implementations and / or arrangements discussed.
[0023] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0024] like Figure 1 As shown, this embodiment provides a method for atrial fibrillation data annotation based on dual-source ECG synchronization. This method simultaneously acquires surface ECG signals and intracardiac electrical signals, and combines the deep fusion and interactive processing of three algorithms: variational mode decomposition (VMD), stochastic matrix theory (SMT), and fractional differential equation estimation (FDE). This achieves accurate and automatic annotation of atrial fibrillation data. The three algorithms form a closed-loop processing architecture with bidirectional interaction through parameter passing and result feedback: the decomposed mode parameters of the VMD serve as the input matrix construction basis for the SMT; the eigenvalue distribution results of the SMT serve as the initial condition parameters for the FDE; and the output results of the FDE are simultaneously fed back to the VMD's mode number optimization and the SMT's stochastic matrix reconstruction process.
[0025] S1: Synchronous acquisition and preprocessing of dual-source ECG signals.
[0026] S1 simultaneously acquires surface electrocardiogram (ECG) signals and intracardiac electrical signals from the target object, maintaining strict time synchronization between the two acquisition methods to obtain the first ECG signal sequence and the second ECG signal sequence.
[0027] Surface electrocardiogram (ECG) signals were acquired simultaneously using three leads: lead 1, lead 2, and chest lead V5, within a standard twelve-lead system. The sampling frequency was set to 1,000 times per second, and the quantization precision was set to 16 bits. Lead 1 was used at time... The sampled value is denoted as The second lead will be at time The sampled value is denoted as The chest lead V5 will be at the time The sampled value is denoted as The arithmetic mean of the three lead samples is taken as the surface electrocardiogram signal at time t. The representative value, that is ,in Intracardiac electrical signal acquisition was performed using a bipolar electrode catheter placed in the right atrium of the target patient. This bipolar electrode catheter shared the same clock source as the surface ECG acquisition device, ensuring complete consistency of the time base for both signal acquisitions. The sampling frequency was also set to 1,000 times per second, and the quantization precision was also set to 16 bits. The duration of synchronous acquisition was 300 seconds, and the first acquired ECG signal sequence was denoted as... ,in Represents a discrete-time index. , The total number of sampling points and The acquired second electrocardiogram signal sequence is denoted as ,in This also represents a discrete-time index. , The total number of sampling points and .
[0028] The first electrocardiogram signal sequence obtained in S1 Second ECG signal sequence Baseline drift removal and power frequency interference filtering were performed separately. Baseline drift removal employed median filtering with a filter window width of 250 sampling points (250 milliseconds), yielding the first ECG signal sequence after baseline drift removal. and the second ECG signal sequence after baseline drift removal The power frequency interference filtering process employed a notch filter method, with the notch frequency set to 50 Hz and its integer multiples of harmonic frequencies, and the quality factor set to 30. This yielded the first ECG signal sequence after power frequency interference filtering. The second ECG signal sequence after filtering out power frequency interference .
[0029] The first ECG signal sequence after filtering out power frequency interference The second ECG signal sequence after filtering out power frequency interference Amplitude normalization is performed to map the signal amplitude uniformly to the range of negative one to positive one, resulting in the preprocessed first ECG signal sequence. and the preprocessed second electrocardiogram signal sequence The expressions for the two are as follows:
[0030] ;
[0031] ; in This represents the first ECG signal sequence after power frequency interference filtering. Throughout the entire time length The arithmetic mean within, This represents the first ECG signal sequence after power frequency interference filtering. Throughout the entire time length Within the standard deviation; This represents the second electrocardiogram signal sequence after power frequency interference filtering. Throughout the entire time length The arithmetic mean within, This represents the second electrocardiogram signal sequence after power frequency interference filtering. Throughout the entire time length The standard deviation within.
[0032] The first electrocardiogram signal sequence after preprocessing and the preprocessed second electrocardiogram signal sequence This constitutes a dual-source ECG synchronization signal pair, denoted as .
[0033] S2: Parallel decomposition of dual-source ECG signals based on variational mode decomposition.
[0034] S2 receives the preprocessed first electrocardiogram signal sequence output by S1. and the preprocessed second electrocardiogram signal sequence Variational mode decomposition is performed independently for each sequence. The decomposition processes of the two sequences are independent of each other, but the parameter settings are kept consistent, that is, the same number of modes are used. And the same convergence criterion system. The iterative solution process for variational mode decomposition is as follows: Figure 2 As shown.
[0035] The core of the variational mode decomposition algorithm lies in constructing and solving a variational optimization problem. The goal of this optimization problem is to minimize the sum of the bandwidths of all intrinsic mode function (IMF) components, while ensuring that the sum of all IMF components can reconstruct the original signal. For the preprocessed first ECG signal sequence... Construct the following variational optimization problem:
[0036] ; The constraints are:
[0037] ; in This indicates the preset number of modal decompositions. are positive integers and ; This represents the first electrocardiogram signal sequence after preprocessing. The decomposition yielded the first Each intrinsic mode function component ; Indicates the first Each intrinsic mode function component The center frequency, measured in radians per second; Represents the time variable The first-order partial derivative operator; Dirac function; Represents the imaginary unit. ; express Norm; This represents the convolution operator, i.e. .
[0038] For the preprocessed second ECG signal sequence Construct the following variational optimization problem:
[0039] ; The constraints are:
[0040] ; in This represents the preprocessed second electrocardiogram signal sequence. The decomposition yielded the first Each intrinsic mode function component ; Indicates the first Each intrinsic mode function component The center frequency, measured in radians per second.
[0041] The two variational optimization problems mentioned above are solved using an alternating direction multiplier algorithm for iterative computation. This is based on the preprocessed first electrocardiogram signal sequence. Taking the variational optimization problem as an example, a quadratic penalty factor is introduced. and Lagrange multipliers The augmented Lagrangian function is constructed as follows:
[0042] ; in The first electrocardiogram signal sequence after preprocessing The corresponding secondary penalty factor, The value range is from 1000 to 5000. In this embodiment... The value is 2000, which was determined by optimizing the training dataset using grid search with the goal of minimizing the reconstruction error. The first electrocardiogram signal sequence after preprocessing The corresponding Lagrange multiplier sequence; This represents the inner product operator.
[0043] The iterative update formula for the alternating direction multiplier algorithm is as follows, where Indicates the index of the iteration count of the alternating direction multiplier algorithm. : Intrinsic mode function components The update expression in the frequency domain is:
[0044] ; in The symbol represents the frequency domain representation of the time-domain signal after performing a Fourier transform. Indicates the first After the nth iteration The intrinsic mode function components in the frequency domain The value at that location, This represents a frequency domain variable, with units of radians per second. This represents the first electrocardiogram signal sequence after preprocessing. Fourier transform in the frequency domain The value at; Indicates the first After the nth iteration The intrinsic mode function components in the frequency domain The value at that location, , ; Indicates the first Lagrange multiplier sequence after the second iteration Fourier transform in the frequency domain The value at; Indicates the first After the nth iteration The center frequencies of the intrinsic mode function components.
[0045] Center frequency The update expression is:
[0046] ; in Indicates the first After the nth iteration The center frequencies of the eigenmode function components; express The model.
[0047] Lagrange multipliers The update expression is:
[0048] ; in Indicates the first Lagrange multiplier sequence after the second iteration Fourier transform in the frequency domain The value at; The first electrocardiogram signal sequence after preprocessing The corresponding Lagrange multiplier update step size, The value is 0.01, which is the standard step size setting to ensure convergence in the alternating direction multiplier algorithm.
[0049] The iteration termination condition is:
[0050] ; in The first electrocardiogram signal sequence after preprocessing The corresponding convergence threshold, Values This value ensures that the iteration accuracy reaches an acceptable range for engineering purposes. Similarly, for the preprocessed second ECG signal sequence... The corresponding convergence threshold is denoted as , The value of and Same, that is .
[0051] After the above iterative calculations, the preprocessed first electrocardiogram signal sequence Decomposed into Each intrinsic mode function component and a residual component ,satisfy:
[0052] ; in This represents the first electrocardiogram signal sequence after preprocessing. The residual components remaining after decomposition.
[0053] Preprocessed second ECG signal sequence Decomposed into Each intrinsic mode function component and a residual component ,satisfy:
[0054] ; in This represents the preprocessed second electrocardiogram signal sequence. The residual components remaining after decomposition.
[0055] The core role of the variational mode decomposition algorithm in this scheme is to synchronously decompose the non-stationary and nonlinear dual-source electrocardiogram signal into several intrinsic mode function components with different center frequencies. These components correspond to the physiological activities of different frequency components in the electrocardiogram signal, providing a component sequence with clear physical meaning for the construction of the random matrix in S3.
[0056] After S2 completes the variational mode decomposition, it will analyze all the intrinsic mode function components of the first ECG signal sequence obtained from the decomposition. All intrinsic mode function components of the second electrocardiogram signal sequence and the center frequencies corresponding to all intrinsic mode function components. and Pass it to S3.
[0057] S3: Analysis of eigenvalue spectra of dual-source electrocardiograms based on random matrix theory.
[0058] S3 receives all intrinsic mode function components of the first electrocardiogram signal sequence transmitted by S2. All intrinsic mode function components of the second electrocardiogram signal sequence and the center frequencies corresponding to all intrinsic mode function components. and (This center frequency is used in subsequent step S4 to construct the time basis function; in this step S3, the construction of the dual-source ECG coordinated random matrix only utilizes the intrinsic mode function components themselves.) The dual-source ECG coordinated random matrix is constructed using random matrix theory algorithms, and eigenvalue spectrum analysis is performed. The eigenvalue spectrum analysis process of random matrix theory is as follows: Figure 3 As shown.
[0059] A dual-source electrocardiogram (ECG) co-random matrix is constructed using the eigenmode function components transmitted by S2. The first ECG signal sequence... Each intrinsic mode function component Arranged along the time dimension, they constitute the first electrocardiogram eigenmode matrix. Its dimensions are The matrix element expression is:
[0060] ; in Represents the first electrocardiogram eigenmode matrix The Middle Line number Column elements, , .
[0061] The second electrocardiogram signal sequence Each intrinsic mode function component Arranged along the time dimension, they constitute the second electrocardiogram eigenmode matrix. Its dimensions are The matrix element expression is:
[0062] ; in Represents the second electrocardiogram eigenmode matrix The Middle Line number Column elements, , .
[0063] Using the first ECG eigenmode matrix Second ECG eigenmode matrix Constructing a dual-source ECG coordinated random matrix Its expression is:
[0064] ; in Represents the second electrocardiogram eigenmode matrix The transpose of the matrix; The dimension is It is a square array.
[0065] Dual-source ECG co-random matrix Each element in The first ECG signal sequence represents the first... The intrinsic mode function components and the second electrocardiogram signal sequence Each intrinsic mode function component over the entire time length The cumulative cross-correlation values on, where The range of values is , The range of values is Dual-source ECG coordinated random matrix diagonal elements Indicates the first The synchronization correlation strength of each intrinsic mode function component between the first and second ECG signals, and off-diagonal elements. Indicates the first The intrinsic mode function components and the first The cross-source cross-correlation strength among the intrinsic mode function components, where , and .
[0066] When the dual-source electrocardiogram coordinated random matrix The number of conditions exceeds the preset threshold At that time, the dual-source ECG co-random matrix was processed using a regularization method as follows:
[0067] ; in For regularization parameters, Values This value ensures that the introduction of the regularization term does not significantly alter the spectral structure of the matrix, while effectively improving the condition number of the matrix and reducing it to a lower value. the following; for An identity matrix of 3D; This is the regularized dual-source ECG co-current random matrix. Replace the original matrix It participates in subsequent eigenvalue decomposition and spectral analysis calculations.
[0068] For dual-source ECG co-random matrix (or after regularization) hereinafter referred to as Perform eigenvalue decomposition to obtain eigenvalues and corresponding eigenvectors The eigenvalue decomposition expression is:
[0069] ; in ; Represents the dual-source ECG coordinated random matrix The One eigenvalue; Represents the dual-source ECG coordinated random matrix The There are feature vectors with dimension . .
[0070] Will eigenvalues Sort the values in descending order to obtain an ordered sequence of feature values. ,satisfy Calculate the adjacent ratio of an ordered sequence of eigenvalues. The expression is:
[0071] ; in .
[0072] Calculate the information entropy of an ordered sequence of eigenvalues The expression is:
[0073] ; in Indicates the first ordered eigenvalues The proportion of the entire eigenvalue sequence, ; Represents the natural logarithm function; when At that time, it was agreed .
[0074] Calculate the spectral moments of an ordered sequence of eigenvalues The expression is:
[0075] ; in Let be the order of the spectral moments. are positive integers and .
[0076] The core role of the random matrix theory algorithm in this scheme is to map the eigenmode function components obtained by variational mode decomposition to the eigenvalue spectrum space of the random matrix. By using statistical measures such as eigenvalue distribution, adjacent ratio, information entropy and spectral moments, the synchronization relationship and intrinsic structure between the two-source ECG signals are quantitatively characterized, providing eigenvalue spectrum characteristic parameters for the subsequent fractional differential equation estimation algorithm in S4.
[0077] After S3 completes the theoretical analysis of the random matrix, it will use the dual-source ECG coordinated random matrix. All eigenvalues All feature vectors Adjacent ratios of ordered eigenvalue sequences Information entropy and spectral moments (in The preset maximum spectral moment order. The value is 5, which covers the main moment information of the eigenvalue spectrum and avoids numerical instability introduced by higher-order moments, and is passed to S4.
[0078] S4: Estimation of dual-source ECG state and diagnosis of atrial fibrillation based on fractional differential equations.
[0079] S4 receives the dual-source ECG coordinated random matrix transmitted by S3. All eigenvalues All feature vectors Adjacent ratios of ordered eigenvalue sequences Information entropy and spectral moments A fractional-order dynamic model of a dual-source electrocardiogram system was constructed using a fractional-order differential equation estimation algorithm. Automatic annotation of atrial fibrillation data was achieved through model parameter estimation and state discrimination. The fractional-order differential equation solution and closed-loop feedback process is as follows: Figure 4 As shown.
[0080] The core of the fractional differential equation estimation algorithm lies in constructing a state equation for a dual-source ECG system containing fractional derivative terms. This equation uses the eigenvalue spectrum characteristic parameters passed by S3 as initial conditions and model parameters to describe the evolution of dual-source ECG signals within a fractional dynamic framework.
[0081] Constructing the fractional-order state vector of a dual-source electrocardiogram system Its dimensions are The expression is:
[0082] ; in Represents the dual-source ECG co-random matrix transmitted by S3. The One eigenvalue; Represents the dual-source ECG co-random matrix transmitted by S3. The 1 eigenvector; Indicates the first The time basis function corresponding to each eigenvector ,in Indicates the first The angular frequencies of the basis functions The value is the first ECG signal sequence in S2. The center frequency of each intrinsic mode function component ,Right now ,in ; Indicates the first The initial phase of each basis function By analyzing the first electrocardiogram signal sequence in S2... Each intrinsic mode function component After extracting the instantaneous phase using Hilbert transform, the initial time is taken. The instantaneous phase value at the given point is obtained. The expression for the Hilbert transform is: ,in Represents the Hilbert transform operator. Instantaneous phase. The extraction expression is ,in Represents the arctangent function. Initial time. The instantaneous phase value at that point is ,in .
[0083] Fractional state vector The fractional derivative is defined as:
[0084] ; in Represents time variables of Caputo fractional derivative operator; For fractional order, are positive real numbers and , The value of is determined using a grid search optimization method, specifically: on the dual-source ECG signal training dataset labeled with clinical diagnoses, let ... exist to Within the range of values Iterate through each candidate value with a step size, and for each candidate... The entire processing flow from S1 to S5 is executed, the corresponding atrial fibrillation detection accuracy is calculated, and the value corresponding to the highest atrial fibrillation detection accuracy is determined. Value as The final value; Represents the Gamma function. ; For integration variables, . The final value is determined through grid search during the training process of S4, and this value will be fixed as a parameter in the atrial fibrillation data annotation model in S6.
[0085] The fractional-order dynamic state equation of a dual-source ECG system is expressed as follows:
[0086] ; in for A system matrix of dimension 3 represents the linear coupling relationship within the dual-source ECG system; for A dimensional input matrix characterizes the influence of external inputs on the system state; for 3D system noise vector It follows a pattern with a mean of zero and a covariance matrix of... The Gaussian distribution. Covariance matrix. The following method is used to determine the duration: A period of time not less than... The clinically confirmed dual-source synchronized ECG signal pair of normal sinus rhythm was subjected to preprocessing (S1), variational mode decomposition (S2), and stochastic matrix theory analysis (S3) in sequence, and then... covariance matrix As parameters to be estimated, the maximum likelihood estimation method is used to identify the parameters of the fractional-order dynamic state equation. The objective function of the maximum likelihood estimation is:
[0087] ; in Represents the matrix determinant operator; Represents the covariance matrix The inverse matrix; The operator that evaluates the argument to the maximum value of the objective function is the operator that evaluates the argument to the maximum value of the objective function. , Return to To obtain the maximum value The value of is obtained by maximizing the objective function. The estimated value, i.e. ,in express The estimated value. The identified... As The final value of .
[0088] System Matrix The construction utilizes the adjacent ratios of the ordered eigenvalue sequence passed by S3. and information entropy The expression is:
[0089] ; in This is the scaling factor for the system matrix. Values ; The weighting coefficients for information entropy. Values ; for An identity matrix of dimension 1.
[0090] Input matrix The construction utilizes the spectral moments transferred by S3. The expression is:
[0091] ; in express factorial; Represents the dual-source ECG coordinated random matrix of Power of 1.
[0092] The fractional differential equation estimation algorithm employs a predictor-corrector numerical method. The expression for the prediction step is:
[0093] ; in Indicates the first A discrete time point, , The total number of discrete time points (equal to the total number of sampling points, i.e.) ); For time step index, ; Indicates the first The predicted state vector at each discrete time point; Indicates the initial time. The state vector; The integral weighting coefficients for the prediction step are expressed as follows:
[0094] ; The expression for the correction step is:
[0095] ; in Indicates the first The corrected state vector at each discrete time point; These are the integral weighting coefficients for the correction step. For time step index, The expression is:
[0096] ; The fractional-order dynamic state equations are solved using the aforementioned prediction and correction numerical method, yielding the results for each discrete time point. Fractional state vector at point In the numerical solution process, the system noise vector Take its statistical expectation zero vector, that is, let =0 for deterministic state estimation.
[0097] Calculate each discrete time point Fractional state energy at the point The expression is:
[0098] ; in Represents a fractional-order state vector The transpose of .
[0099] Calculate each discrete time point Fractional state entropy at the point The expression is:
[0100] ; in Represents a fractional-order state vector The One portion, .
[0101] Calculate the total time length Fractional-order state energy mean The expression is:
[0102] ; Calculate the total time length Fractional-order state entropy mean The expression is:
[0103] ; Calculate the total time length Fractional-order state energy fluctuation coefficient The expression is:
[0104] ; Calculate the total time length Fractional-order state entropy fluctuation coefficient within The expression is:
[0105] ; The core role of the fractional differential equation estimation algorithm in this scheme is to integrate the eigenvalue spectrum feature parameters extracted by random matrix theory into the system matrix and input matrix of the fractional dynamic model. By solving the fractional differential equation, the state vector is obtained, and then the discrimination indexes such as state energy and state entropy are calculated, so as to realize the atrial fibrillation discrimination of dual-source electrocardiogram signals from the perspective of fractional dynamics.
[0106] The criteria for diagnosing atrial fibrillation are as follows: Fractional-order state energy mean Greater than the first energy threshold Fractional-order state entropy mean Greater than the first entropy threshold Fractional-order state energy fluctuation coefficient Greater than the first energy fluctuation threshold And the fractional-order state entropy fluctuation coefficient Greater than the first entropy fluctuation threshold When the current time window is defined as an atrial fibrillation signal, it is labeled as an atrial fibrillation type.
[0107] Fractional-order state energy mean Less than the second energy threshold Fractional-order state entropy mean Less than the second entropy threshold Fractional-order state energy fluctuation coefficient Less than the second energy fluctuation threshold And the fractional-order state entropy fluctuation coefficient Less than the second entropy fluctuation threshold When the current time window is defined as a normal sinus rhythm signal, it is marked as normal.
[0108] Fractional-order state energy mean Fractional-order state entropy mean Fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient When the value of is between the two thresholds mentioned above, the ECG signal within the current time window is determined to be another arrhythmia signal and marked as other categories.
[0109] First energy threshold Second energy threshold First entropy threshold Second entropy threshold First energy fluctuation threshold Second energy fluctuation threshold First entropy fluctuation threshold Second entropy fluctuation threshold The value is determined as follows: First energy threshold The mean fractional-order state energy of samples clinically diagnosed with atrial fibrillation The Percentile; Second energy threshold The mean fractional-order state energy of samples clinically diagnosed as having normal sinus rhythm The Percentiles; First entropy threshold The fractional-order state entropy mean of the clinically diagnosed atrial fibrillation samples The Percentiles; Second Entropy Threshold The mean fractional-order state entropy of samples clinically diagnosed as having normal sinus rhythm The Percentile; First energy fluctuation threshold Fractional-order state energy fluctuation coefficients of samples clinically diagnosed with atrial fibrillation The Percentile; Second energy fluctuation threshold Fractional-order state energy fluctuation coefficients of samples clinically diagnosed as having normal sinus rhythm The Percentiles; First entropy fluctuation threshold Fractional-order state entropy fluctuation coefficient of clinically diagnosed atrial fibrillation samples The Percentiles; Second Entropy Fluctuation Threshold Fractional-order state entropy fluctuation coefficient of samples clinically diagnosed as having normal sinus rhythm The percentile.
[0110] Output of fractional differential equation estimation algorithm – at each discrete time point Fractional state vector at point Fractional state energy Fractional-order state entropy and the average energy of fractional-order states over the entire time period Fractional-order state entropy mean Fractional-order state energy fluctuation coefficient Fractional-order state entropy fluctuation coefficient The atrial fibrillation discrimination and annotation results are simultaneously fed back to S2 and S3 to optimize the number of modes in the variational mode decomposition algorithm. Parameter settings for random matrix theory algorithms.
[0111] The specific implementation of the feedback mechanism is as follows: fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient The numerical value reflects the number of current decomposition modes. The extent to which the lower fractional-order kinetic model adequately describes the dual-source ECG signal. and When all exceed the preset fluctuation upper limit threshold, it indicates that the current number of modes is... Insufficient; the number of modes needs to be increased. and When all values are below the preset fluctuation lower limit threshold, it indicates the current number of modes. Too many modes lead to over-decomposition, requiring a reduction in the number of modes. Fluctuation upper limit threshold. and Fractional-order state energy fluctuation coefficients of samples clinically diagnosed with atrial fibrillation and fractional-order state entropy fluctuation coefficient Each distributed Upper bound of confidence interval; lower bound of fluctuation threshold and Fractional-order state energy fluctuation coefficients of samples clinically diagnosed as having normal sinus rhythm. and fractional-order state entropy fluctuation coefficient Each distributed Lower bound of the confidence interval.
[0112] Number of modes Adjustment amount From the average energy of fractional-order states and the mean of fractional-order state entropy The adjustment amount is jointly determined and expressed as follows:
[0113] ; in This represents the floor operation; The scaling factor for adjusting the number of modes. The value is This value is obtained through grid search in to Within the integer range The step size is optimized and determined with the goal of maximizing the convergence speed so that the fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient fall within the acceptable fluctuation range after closed-loop iteration.
[0114] Adjusted number of modes Feedback is sent to S2, which then updates the number of modes. The variational mode decomposition is re-executed to obtain the updated eigenmode function components and center frequencies, which are then passed back to S3 and S4 for iterative optimization until the fractional-order state energy fluctuation coefficients are obtained. and fractional-order state entropy fluctuation coefficient All fluctuations fell within the preset acceptable fluctuation range, which is: and That is, when and At that time, the number of current modes is considered to be If the result is optimal, stop iterative optimization.
[0115] Fractional state vector Evolutionary trajectory characteristics—including Lyapunov exponents of fractional-order state vectors The correlation dimension with the fractional-order state vector —Feedback is sent to S3 to adjust the dual-source ECG co-random matrix. Restructuring strategy. Lyapunov index. The expression is:
[0116] ; in Represents a fractional-order state vector Tiny perturbations in time Evolution value at the location; Represents a fractional-order state vector The value of the tiny perturbation at the initial moment; Represents the vector norm. Lyapunov exponent. The numerical values are obtained using the Wolf algorithm within a finite time length. The estimation is performed internally. The specific calculation process of the Wolf algorithm is as follows: an initial point is selected in the fractional-order state vector trajectory. Find the initial point The closest point is denoted as the distance between them. Let this distance evolve over a certain period of time in the trajectory. The new distance was then obtained. Then the first The estimated value of the Lyapunov index is Repeat the above process until the entire trajectory has been traversed, and use the average of the estimated values as the mean. The final estimate. Evolution time. The value is the total duration of the fractional-order state vector trajectory. of ,Right now (Based on the number of sampling points).
[0117] Correlation dimension The expression is:
[0118] ; in The integral of the correlation of the fractional-order state vector trajectory is given. , Represents the Heaviside step function. Let be the total number of phase points in the fractional-order state vector trajectory. For distance scale variables, are positive real numbers and .
[0119] Lyapunov index feedback Greater than zero and correlation dimension Greater than the preset dimensionality threshold At this point, it indicates that the dual-source ECG system is in a chaotic state, consistent with the dynamic characteristics of atrial fibrillation. In this state, S3 increases the amplitude of random perturbations when reconstructing the dual-source ECG cooperative random matrix; Lyapunov exponent. Less than or equal to zero and related dimension Less than or equal to the preset dimensionality threshold When the signal is in a periodic or quasi-periodic state, which is consistent with the dynamic characteristics of normal sinus rhythm, S3 reduces the amplitude of random disturbances when reconstructing the dual-source electrocardiogram co-random matrix. Values .
[0120] Adjustment amount for random disturbance amplitude The expression is:
[0121] ; in As the baseline random disturbance amplitude, Values ; This is the adjustment amount for the amplitude of the random disturbance; This represents the hyperbolic tangent function.
[0122] Adjusted random disturbance amplitude Used for dual-source ECG coordinated random matrix in S3 The refactoring expression is:
[0123] ; in This represents the reconstructed dual-source ECG co-random matrix; This indicates the adjusted magnitude of the random disturbance; for A Gaussian random noise matrix of dimension 1, wherein each element of the Gaussian random noise matrix is independently and identically distributed in a standard normal distribution with a mean of zero and a variance of one.
[0124] Reconstructed dual-source ECG cooperative random matrix Eigenvalue decomposition and eigenvalue spectrum analysis are performed again, and the updated eigenvalue spectrum characteristic parameters are passed to S4 again for fractional differential equation estimation, forming a closed-loop iterative optimization between S2, S3 and S4.
[0125] S5: Output and validation of atrial fibrillation annotation results.
[0126] S5 receives the final atrial fibrillation discrimination and labeling results output by S4 after closed-loop iterative optimization, and compares the labeling results with the dual-source ECG synchronization signal. Align the data on the timeline to generate a time-labeled atrial fibrillation data annotation file.
[0127] The atrial fibrillation data annotation file contains the following information: each discrete time point Corresponding timestamp information, each discrete time point The first electrocardiogram signal sequence after preprocessing at the site The amplitude value, at each discrete time point The preprocessed second electrocardiogram signal sequence The amplitude value, at each discrete time point Fractional state vector at point The values of each component and each discrete time point Fractional state energy at the point Each discrete time point Fractional state entropy at the point and each discrete time point The atrial fibrillation classification is labeled at each location. Timestamp information is recorded in milliseconds, using an offset relative to the start time of data acquisition.
[0128] Atrial fibrillation (AF) discrimination and labeling categories include three types: AF category, normal category, and other arrhythmia category, each labeled with a number. , and Encode and represent.
[0129] The quality of the atrial fibrillation data annotation files output by S5 was verified using two methods: expert review and clinical event control verification.
[0130] During the expert review and verification process, no fewer than three clinical experts with qualifications in cardiac electrophysiology were invited to independently review the annotation results in the atrial fibrillation data annotation file, and the consistency rate of the expert review was calculated. The expression is:
[0131] ; in This indicates an indicator function. The indicator function takes the value of 1 when the condition inside the parentheses is true, and takes the value of 0 when the condition inside the parentheses is false. This represents the logical AND operator; , and The three clinical experts respectively represent the three clinical experts in the first stage of the study. Independent label categories at discrete time points; Indicates the output of S5. Atrial fibrillation is classified and labeled at discrete time points. Greater than the preset consistency rate threshold At that time, it was determined that the atrial fibrillation data annotation file had passed expert review and verification. Values .
[0132] In the clinical event control validation, the time periods of atrial fibrillation labeled in the atrial fibrillation data annotation file were compared with the atrial fibrillation episode records in the clinical medical records of the target subjects along a timeline, and the annotation sensitivity was calculated. and label specificity The expressions are as follows:
[0133] ;
[0134] ; in This indicates the total length of the time period during which both the atrial fibrillation data annotation file and the clinical medical record were simultaneously identified as atrial fibrillation; This indicates the total length of the time period in which clinical medical records indicate atrial fibrillation, but the atrial fibrillation data annotation file indicates that it is not atrial fibrillation; This represents the total length of the time period during which both the atrial fibrillation data annotation file and the clinical medical record are simultaneously determined to be non-atrial fibrillation. This indicates the total length of time period in which clinical medical records were determined to be non-atrial fibrillation, but atrial fibrillation data annotation files were determined to be atrial fibrillation. Greater than the preset sensitivity threshold and Greater than the preset specificity threshold At that time, it was determined that the atrial fibrillation data annotation file passed the clinical event control verification. Values , Values .
[0135] Atrial fibrillation data annotation files that have passed both expert review and clinical event control verification are output and stored as the final standard atrial fibrillation data annotation results.
[0136] S6: Parameter solidification and application deployment of atrial fibrillation annotation models.
[0137] S6 determines the final number of modes after closed-loop iterative optimization of the variational mode decomposition algorithm in S2. Convergence threshold of variational mode decomposition algorithm in S2 and The baseline random perturbation amplitude of the random matrix theory algorithm in S3 and the order of the maximum spectral moment Fractional order of fractional differential equation estimation algorithm in S4 System matrix scaling factor Information entropy weight coefficient First energy threshold Second energy threshold First entropy threshold Second entropy threshold First energy fluctuation threshold Second energy fluctuation threshold First entropy fluctuation threshold Second entropy fluctuation threshold upper limit threshold for energy fluctuations in fractional-order states Fractional-order state energy fluctuation lower limit threshold upper limit threshold for fractional-order state entropy fluctuation Fractional-order state entropy fluctuation lower limit threshold Modal quantity adjustment ratio coefficient Dimension threshold Consistency threshold Sensitivity threshold and specificity threshold The parameters are solidified to form a complete set of labeled parameters for atrial fibrillation data.
[0138] All the processing steps described in S1 to S5 are encapsulated into an executable atrial fibrillation data annotation model, which takes a new dual-source ECG synchronization signal pair as input and a data annotation file with atrial fibrillation annotation categories as output.
[0139] When deploying atrial fibrillation data annotation models, for a new first ECG signal sequence as input... and the new second ECG signal sequence ,in , The total number of sampling points for the new first ECG signal sequence and the new second ECG signal sequence. The sampling duration may differ from the 300 seconds in S1, but should at least include no less than [number missing]. A valid signal of seconds is needed to ensure the average energy of fractional-order states. Fractional-order state entropy mean Fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient The statistical estimate has a sufficient sample size when the sampling duration of the input signal is not equal to 300 seconds, and the total number of sampling points is [missing information]. The actual sampling duration is adjusted accordingly to be the product of the sampling frequency and the actual sampling duration. The atrial fibrillation data annotation model sequentially performs the following steps: S1 synchronous acquisition and preprocessing, S2 variational mode decomposition, S3 stochastic matrix theory analysis, S4 fractional differential equation estimation and atrial fibrillation discrimination, and S5 annotation result output and verification, outputting a new atrial fibrillation data annotation file.
[0140] During the application of the atrial fibrillation data annotation model, the mean value of the fractional-order state energy for each processing step is continuously recorded. Fractional-order state entropy mean Fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient Historical baseline refers to the period before the atrial fibrillation data annotation model was first put into application and operation after the parameters were solidified. In this process, the mean energy of the fractional-order state is... Fractional-order state entropy mean Fractional-order state energy fluctuation coefficient and fractional-order state entropy fluctuation coefficient Each of the following is its arithmetic mean. When continuous... In this process, the mean energy of the fractional-order state is... The moving average value has deviated from the historical baseline by more than And the mean of the fractional-order state entropy The moving average value has deviated from the historical baseline by more than And the fractional-order state energy fluctuation coefficient The moving average value has deviated from the historical baseline by more than And the fractional-order state entropy fluctuation coefficient The moving average value has deviated from the historical baseline by more than If a systematic shift is detected, online adaptive adjustment of the model is triggered. This involves re-optimizing the closed-loop process from S2 to S4 using at least one hundred recently processed dual-source ECG synchronized signal pairs. These at least one hundred pairs of dual-source ECG synchronized signal pairs refer to historical input signals recently processed by the atrial fibrillation data annotation model whose annotation results have passed double verification in S5, excluding the input signal currently triggering online adjustment. Relevant parameters in the atrial fibrillation data annotation parameter set are updated to achieve continuous model optimization and adaptive updates.
[0141] Atrial fibrillation data annotation system based on dual-source ECG synchronization, applying any one of the above-mentioned methods for atrial fibrillation data annotation, wherein the atrial fibrillation data annotation system based on dual-source ECG synchronization includes: The dual-source ECG synchronous acquisition and preprocessing module is used to acquire surface ECG signals and intracardiac electrical signals, obtain a first ECG signal sequence and a second ECG signal sequence, and perform preprocessing on them respectively to obtain a preprocessed first ECG signal sequence and a preprocessed second ECG signal sequence, which constitute a dual-source ECG synchronous signal pair. The variational mode decomposition module is used to perform parallel decomposition of the preprocessed first ECG signal sequence and the preprocessed second ECG signal sequence using the variational mode decomposition algorithm to obtain several intrinsic mode function components. The random matrix theory analysis module is used to construct a dual-source ECG co-random matrix based on several intrinsic mode function components using random matrix theory algorithms. It performs eigenvalue decomposition on the dual-source ECG co-random matrix to obtain several eigenvalues and corresponding eigenvectors, and calculates the adjacent ratio, information entropy, and spectral moments of the ordered eigenvalue sequence. The fractional-order state estimation and atrial fibrillation discrimination module is used to construct and solve a fractional-order dynamic model of a dual-source ECG system based on several eigenvalues and corresponding eigenvectors, the adjacent ratio of an ordered eigenvalue sequence, information entropy, and spectral moments, using a fractional-order differential equation estimation algorithm. This yields a fractional-order state vector. Based on the fractional-order state vector, the module calculates the mean fractional-order state energy, mean fractional-order state entropy, and the fluctuation coefficients of fractional-order state energy and entropy. Finally, it performs atrial fibrillation discrimination based on the mean fractional-order state energy, mean fractional-order state entropy, and fluctuation coefficients of fractional-order state energy and entropy, and outputs the atrial fibrillation discrimination labeling results. The atrial fibrillation data annotation file generation and verification module is used to align the atrial fibrillation discrimination annotation results with the dual-source ECG synchronization signal pair on the time axis, generate atrial fibrillation data annotation files with time tags, verify the quality of the atrial fibrillation data annotation files, and output the atrial fibrillation data annotation files that pass the verification as the final atrial fibrillation data annotation results. The model encapsulation and parameter solidification module is used to solidify the parameters of the variational mode decomposition algorithm, the parameters of the random matrix theory algorithm, the parameters of the fractional differential equation estimation algorithm, and the verification threshold parameters used in quality verification to form an atrial fibrillation data annotation parameter set. It encapsulates the entire processing flow from the dual-source ECG synchronous acquisition and preprocessing module to the atrial fibrillation data annotation file generation and verification module into an executable atrial fibrillation data annotation model.
[0142] The embodiments described above are for illustrative purposes only and are not intended to limit the invention. Therefore, any changes in numerical values or substitutions of equivalent elements should still fall within the scope of this invention.
[0143] The above detailed description will enable those skilled in the art to understand that the present invention can indeed achieve the aforementioned objectives and has complied with the provisions of the Patent Law.
[0144] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention. The above descriptions are merely preferred embodiments of the invention and are not intended to limit the invention. It should be noted that any modifications, equivalent substitutions, and improvements made within the spirit and principles of the invention should be included within the scope of protection of the invention.
[0145] It should be noted that the above description of the process is for illustrative purposes only and does not limit the scope of this specification. Those skilled in the art can make various modifications and changes to the process under the guidance of this specification. However, these modifications and changes remain within the scope of this specification.
[0146] The basic concepts have been described above. Obviously, for those skilled in the art who have read this application, the above disclosure is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore, such modifications, improvements, and corrections still fall within the spirit and scope of the exemplary embodiments of this application.
[0147] Furthermore, this application uses specific terms to describe its embodiments. For example, "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic related to at least one embodiment of this application. Therefore, it should be emphasized and noted that "an embodiment," "one embodiment," or "an alternative embodiment" mentioned twice or more in different positions in this specification do not necessarily refer to the same embodiment. In addition, certain features, structures, or characteristics in one or more embodiments of this application can be appropriately combined.
Claims
1. A method for labeling atrial fibrillation data based on dual-source ECG synchronization, characterized in that, Includes the following steps: S1: Collect surface electrocardiogram (ECG) signals and intracardiac electrical signals, obtain a first ECG signal sequence and a second ECG signal sequence, and perform preprocessing respectively to obtain a preprocessed first ECG signal sequence and a preprocessed second ECG signal sequence, which constitute a dual-source ECG synchronization signal pair; S2: The variational mode decomposition algorithm is used to decompose the preprocessed first ECG signal sequence and the preprocessed second ECG signal sequence in parallel to obtain several intrinsic mode function components. S3: Based on several intrinsic mode function components, a dual-source ECG collaborative random matrix is constructed using a random matrix theory algorithm. The dual-source ECG collaborative random matrix is decomposed into eigenvalues to obtain several eigenvalues and corresponding eigenvectors. The adjacent ratio, information entropy, and spectral moments of the ordered eigenvalue sequence are then calculated. S4: Based on several eigenvalues and corresponding eigenvectors, the adjacent ratio of the ordered eigenvalue sequence, information entropy, and spectral moments, a fractional-order dynamic model of the dual-source ECG system is constructed and solved using a fractional-order differential equation estimation algorithm to obtain a fractional-order state vector. Based on the fractional-order state vector, the mean fractional-order state energy, the mean fractional-order state entropy, the fractional-order state energy fluctuation coefficient, and the fractional-order state entropy fluctuation coefficient are calculated. Atrial fibrillation is then identified based on the mean fractional-order state energy, the mean fractional-order state entropy, the fractional-order state energy fluctuation coefficient, and the fractional-order state entropy fluctuation coefficient, and the atrial fibrillation identification labeling results are output. S5: Align the atrial fibrillation discrimination labeling results with the dual-source ECG synchronization signal pair on the time axis to generate a time-labeled atrial fibrillation data labeling file. Perform quality verification on the atrial fibrillation data labeling file and output the verified atrial fibrillation data labeling file as the final atrial fibrillation data labeling result. S6: The parameters of the variational mode decomposition algorithm, the random matrix theory algorithm, the fractional differential equation estimation algorithm, and the verification threshold parameters used in quality verification are solidified to form an atrial fibrillation data annotation parameter set. The entire processing flow from S1 to S5 is encapsulated into an executable atrial fibrillation data annotation model.
2. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, Preprocessing in S1 includes baseline drift removal, power frequency interference filtering, and amplitude normalization.
3. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The specific implementation of the variational mode decomposition algorithm in S2 is as follows: a variational optimization problem is constructed for the preprocessed first ECG signal sequence and the preprocessed second ECG signal sequence, respectively. The variational optimization problem takes minimizing the sum of the bandwidths of all intrinsic mode function components as the objective function and the sum of all intrinsic mode function components equal to the ECG signal sequence to be decomposed as the constraint condition. The variational optimization problem is solved by the alternating direction multiplier algorithm. In the frequency domain, each intrinsic mode function component, the center frequency corresponding to each intrinsic mode function component, and the Lagrange multiplier are iteratively updated until the iteration result meets the convergence criterion, and several intrinsic mode function components are obtained.
4. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The specific implementation of the random matrix theory algorithm in S3 is as follows: Several eigenmode function components of the first ECG signal sequence and several eigenmode function components of the second ECG signal sequence are arranged in the time dimension to form the first ECG eigenmode matrix and the second ECG eigenmode matrix; the first ECG eigenmode matrix is multiplied by the transpose of the second ECG eigenmode matrix to obtain the dual-source ECG co-random matrix; eigenvalue decomposition is performed on the dual-source ECG co-random matrix to obtain several eigenvalues and corresponding eigenvectors; the several eigenvalues are arranged in descending order of numerical value to obtain an ordered eigenvalue sequence; the ratio of adjacent eigenvalues in the ordered eigenvalue sequence is calculated to obtain the adjacent ratio; the information entropy is calculated based on the proportion of each eigenvalue in the entire eigenvalue sequence; and the spectral moments are obtained by calculating the average value of each power of the ordered eigenvalue sequence.
5. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The specific implementation method for constructing and solving the fractional-order dynamic model of the dual-source ECG system in S4 is as follows: a fractional-order state vector is constructed based on the square roots of several eigenvalues, several eigenvectors, and the corresponding time basis function. The time basis function is a sine function, and the angular frequency of the sine function is taken from the center frequency of the intrinsic mode function component corresponding to the first ECG signal sequence. The initial phase of the sine function is obtained by extracting the instantaneous phase by performing a Hilbert transform on the intrinsic mode function component corresponding to the first ECG signal sequence and then taking the instantaneous phase value at the initial moment. The system matrix is constructed based on the adjacent ratio and information entropy of the ordered eigenvalue sequence, and the input matrix is constructed based on the spectral moments. The fractional-order dynamic state equations are solved using the system matrix and the input matrix to obtain the fractional-order state vector at each discrete time point.
6. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 5, characterized in that, The specific implementation method for constructing the system matrix is as follows: construct a tridiagonal matrix using the adjacent ratios of the ordered eigenvalue sequence, multiply the tridiagonal matrix by the first scaling factor, and add it to the identity matrix obtained by multiplying the information entropy by the second weighting factor to obtain the system matrix; the specific implementation method for constructing the input matrix is as follows: divide each order spectral moment by the factorial of the corresponding order, multiply it by the corresponding power of the dual-source ECG coordinated random matrix, and sum them up to obtain the input matrix.
7. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The specific implementation method for atrial fibrillation detection in S4 is as follows: when the average value of fractional-order state energy is greater than the first energy threshold, the average value of fractional-order state entropy is greater than the first entropy threshold, the fractional-order state energy fluctuation coefficient is greater than the first energy fluctuation threshold, and the fractional-order state entropy fluctuation coefficient is greater than the first entropy fluctuation threshold, it is determined to be atrial fibrillation. When the average fractional-order state energy is less than the second energy threshold, the average fractional-order state entropy is less than the second entropy threshold, the fractional-order state energy fluctuation coefficient is less than the second energy fluctuation threshold, and the fractional-order state entropy fluctuation coefficient is less than the second entropy fluctuation threshold, it is determined to be a normal sinus rhythm; when none of the above conditions are met, it is determined to be another arrhythmia.
8. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The specific implementation method for quality verification of atrial fibrillation (AF) data annotation files in S5 is as follows: An expert review verification method is adopted, inviting multiple clinical experts to independently review the annotation results in the AF data annotation file, calculating the expert review consistency rate. When the expert review consistency rate is greater than a preset consistency rate threshold, the expert review verification is passed. A clinical event control verification method is adopted, comparing the AF annotation time period in the AF data annotation file with the AF attack records in the target subject's clinical medical records on a timeline, calculating annotation sensitivity and annotation specificity. When the annotation sensitivity is greater than a preset sensitivity threshold and the annotation specificity is greater than a preset specificity threshold, the clinical event control verification is passed. AF data annotation files that pass both expert review verification and clinical event control verification are output as the final standard AF data annotation result.
9. The atrial fibrillation data annotation method based on dual-source ECG synchronization according to claim 1, characterized in that, The parameters of the variational mode decomposition algorithm in S6 include the convergence criterion threshold and the final number of modes; the parameters of the stochastic matrix theory algorithm include the baseline random perturbation amplitude and the order of the maximum spectral moment; the parameters of the fractional differential equation estimation algorithm include the fractional order, the system matrix scaling factor, the information entropy weighting factor, the first energy threshold, the second energy threshold, the first entropy threshold, the second entropy threshold, the first energy fluctuation threshold, the second energy fluctuation threshold, the first entropy fluctuation threshold, the second entropy fluctuation threshold, the mode number adjustment factor, and the dimension threshold; the validation threshold parameters include the consistency threshold, the sensitivity threshold, and the specificity threshold.
10. Atrial fibrillation data annotation system based on dual-source electrocardiogram synchronization, characterized in that, The atrial fibrillation data annotation method based on dual-source ECG synchronization according to any one of claims 2 to 9, wherein the atrial fibrillation data annotation system based on dual-source ECG synchronization comprises: The dual-source ECG synchronous acquisition and preprocessing module is used to acquire surface ECG signals and intracardiac electrical signals, obtain a first ECG signal sequence and a second ECG signal sequence, and perform preprocessing on them respectively to obtain a preprocessed first ECG signal sequence and a preprocessed second ECG signal sequence, which constitute a dual-source ECG synchronous signal pair. The variational mode decomposition module is used to perform parallel decomposition of the preprocessed first ECG signal sequence and the preprocessed second ECG signal sequence using the variational mode decomposition algorithm to obtain several intrinsic mode function components. The random matrix theory analysis module is used to construct a dual-source ECG co-random matrix based on several intrinsic mode function components using random matrix theory algorithms. It performs eigenvalue decomposition on the dual-source ECG co-random matrix to obtain several eigenvalues and corresponding eigenvectors, and calculates the adjacent ratio, information entropy, and spectral moments of the ordered eigenvalue sequence. The fractional-order state estimation and atrial fibrillation discrimination module is used to construct and solve a fractional-order dynamic model of a dual-source ECG system based on several eigenvalues and corresponding eigenvectors, the adjacent ratio of an ordered eigenvalue sequence, information entropy, and spectral moments, using a fractional-order differential equation estimation algorithm. This yields a fractional-order state vector. Based on the fractional-order state vector, the module calculates the mean fractional-order state energy, mean fractional-order state entropy, and the fluctuation coefficients of fractional-order state energy and entropy. Finally, it performs atrial fibrillation discrimination based on the mean fractional-order state energy, mean fractional-order state entropy, and fluctuation coefficients of fractional-order state energy and entropy, and outputs the atrial fibrillation discrimination labeling results. The atrial fibrillation data annotation file generation and verification module is used to align the atrial fibrillation discrimination annotation results with the dual-source ECG synchronization signal pair on the time axis, generate atrial fibrillation data annotation files with time tags, verify the quality of the atrial fibrillation data annotation files, and output the atrial fibrillation data annotation files that pass the verification as the final atrial fibrillation data annotation results. The model encapsulation and parameter solidification module is used to solidify the parameters of the variational mode decomposition algorithm, the parameters of the random matrix theory algorithm, the parameters of the fractional differential equation estimation algorithm, and the verification threshold parameters used in quality verification to form an atrial fibrillation data annotation parameter set. It encapsulates the entire processing flow from the dual-source ECG synchronous acquisition and preprocessing module to the atrial fibrillation data annotation file generation and verification module into an executable atrial fibrillation data annotation model.
