Deep learning model training method for predicting cardiac disease

A deep learning model processes electrocardiogram data to enhance cardiac disease risk prediction, addressing the limitations of statistical methods by improving accuracy and enabling early detection through preprocessing and ensemble learning.

JP7837100B2Active Publication Date: 2026-03-30SYNERGY A I CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2026-03-30

AI Technical Summary

Technical Problem

Existing electrocardiogram analysis methods, primarily statistical, struggle to accurately predict and stratify the risk of cardiac diseases like arrhythmias due to their inability to handle non-linear patterns and are affected by noise, leading to inadequate detection and management of conditions such as atrial fibrillation.

Method used

A deep learning model is developed to process electrocardiogram data, involving preprocessing, extraction of ROI signals, HRV characteristics, and ensemble learning using tree models to generate a cardiac disease risk prediction model, enhancing accuracy and reliability.

Benefits of technology

The model improves the prediction of cardiac disease risk by reducing noise interference and leveraging complex patterns, enabling early detection and efficient screening, thus improving patient health outcomes and reducing medical analysis time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007837100000006
    Figure 0007837100000006
  • Figure 0007837100000007
    Figure 0007837100000007
  • Figure 0007837100000008
    Figure 0007837100000008
Patent Text Reader

Abstract

To provide a method of generating a model for predicting heart disease.SOLUTION: The method includes obtaining a plurality of electrocardiogram data, and generating the model for predicting heart disease on the basis of the plurality of electrocardiogram data.SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Various embodiments of the present invention relate to a method for providing a neural network model for predicting future cardiac diseases in patients, and more specifically, to a technique for evaluating and predicting the risks of arrhythmias including atrial fibrillation and other cardiac diseases based on electrocardiogram data by utilizing a deep learning model.

Background Art

[0002] Electrocardiogram (ECG) data is widely used as an important tool for recording the electrical activity of the heart and diagnosing the heart condition. Existing multi-lead electrocardiographs have played a central role in detecting cardiac rhythm and electrical conduction abnormalities and diagnosing cardiac diseases such as arrhythmias, especially atrial fibrillation. Arrhythmias including atrial fibrillation are common diseases characterized by irregular or abnormal heartbeats, and often show no symptoms or mild symptoms and are difficult to detect without appropriate screening. Such arrhythmias, if left untreated, may lead to serious health complications such as stroke, heart failure, and sudden cardiac death. In particular, atrial fibrillation is one of the important arrhythmia types because it is associated with an increased risk of stroke and heart failure. Therefore, early detection and intervention of atrial fibrillation and arrhythmias are very important for effectively managing these diseases. On the other hand, existing electrocardiographs mainly focus on diagnosis and have limitations in predicting or stratifying the risks of future cardiac diseases. This is because existing electrocardiogram analysis methods mainly rely on statistical analysis. Statistical methodologies do not fully reflect non-linear and complex patterns and are difficult to precisely evaluate the individual cardiac states of patients and the risks of various arrhythmias. Furthermore, statistical-based models are inferior in performance compared to deep learning-based probability models when processing large amounts of data. Electrocardiogram data may be affected by signal overlaps such as muscle movement, respiration, and electrical noise generated from other equipment. These external factors may reduce the accuracy of statistical methodologies and thus become a major obstacle to accurately stratifying and quantifying the risks of cardiac diseases. [Prior art documents] [Patent Documents]

[0003] [Patent Document 1] Korean Published Patent Gazette No. 10-2022-0104583 [Overview of the project] [Problems that the invention aims to solve]

[0004] The problem that this invention aims to solve was devised in response to the aforementioned background technology, and is to provide a technology that can predict and stratify the risk of future heart disease based on electrocardiogram data. The problems that this invention aims to solve are not limited to those described above, and other problems not mentioned above should be clearly understood by an ordinary engineer from the following description. [Means for solving the problem]

[0005] A method for generating a cardiac disease prediction model according to one embodiment of the present invention is disclosed to solve the above problems. The method may include the steps of acquiring a plurality of electrocardiogram data and generating a model for predicting cardiac disease based on the plurality of electrocardiogram data. In an alternative embodiment, the step of generating a model for predicting cardiac disease may include the steps of constructing a training dataset based on the plurality of electrocardiogram data, and generating a cardiac disease risk prediction model by training one or more network functions based on the training dataset, wherein the training dataset includes a first training dataset and a second training dataset classified for different training purposes, and the cardiac disease risk prediction model may be characterized by providing hierarchical predictive information regarding the risk of future cardiac disease based on the patient's electrocardiogram data. In an alternative embodiment, the first training dataset may include data for training corresponding to the process of transforming the characteristics of electrocardiogram data into a characteristic space, and the second training dataset may include data for calibration related to cardiac risk prediction. In an alternative embodiment, the step of constructing the training dataset includes a step of preprocessing the plurality of electrocardiogram data, the preprocessing step includes a step of noise preprocessing the plurality of electrocardiogram data, a step of dividing the noise-preprocessed plurality of electrocardiogram data into predetermined window sizes to generate a plurality of ROI signals, and a step of extracting HRV characteristic information on a read-by-read basis from the plurality of electrocardiogram data, wherein the HRV characteristic information may include index information relating to variability between heart rate intervals. In an alternative embodiment, the step of generating the cardiac disease risk prediction model may include: generating an embedding model via masking-based self-supervised learning using the first training dataset; an embedding execution step of using the embedding model to extract latent vectors corresponding to each of a plurality of ROI signals corresponding to the second training dataset; a step of performing clustering on the latent vectors using a clustering model; and a step of constructing a vector database (DB) based on the latent vectors and information for each cluster corresponding to each latent vector. In an alternative embodiment, the step of generating the embedding model includes the steps of: inducing self-supervised learning in a self-reconstructing model by processing the data contained in the first training dataset as input so that the self-reconstructing model produces an output similar to the input data; and extracting an encoder from the trained self-reconstructing model to generate the embedding model, wherein the self-reconstructing model is a neural network model that masks a portion of the input data and restores the masked portion, and may include a dimensionality reduction network function and a dimensionality restoration network function. In an alternative embodiment, the clustering model is characterized by performing clustering based on similarity distances between latent vectors corresponding to each of the plurality of ROI signals, and the step of performing the clustering may include a step of extracting representative vectors for each of the plurality of clusters corresponding to the clustering results. In an alternative embodiment, the method may include the steps of: acquiring electrocardiogram data of a person to be predicted; preprocessing the electrocardiogram data of the person to be predicted; generating a plurality of latent vectors corresponding to the preprocessed electrocardiogram data using the embedded model; comparing each of the plurality of latent vectors with each of the representative vectors corresponding to each of the plurality of clusters to classify each of the plurality of latent vectors into one of the plurality of clusters; and generating stratified information regarding the risk of cardiac disease based on the classification results in which each of the plurality of latent vectors is classified into the plurality of clusters. In an alternative embodiment, the step of generating the cardiac disease risk prediction model may include: obtaining user metadata corresponding to each of the plurality of electrocardiogram data; obtaining the plurality of latent vectors and cluster information corresponding to the plurality of latent vectors from the vector database; and generating the cardiac disease risk prediction model by performing ensemble learning, which involves training a plurality of tree models based on the HRV characteristic information, the user metadata, the plurality of latent vectors, and the cluster information corresponding to the latent vectors, and integrating the outputs of each tree model. In an alternative embodiment, the step of generating the model for predicting cardiac disease may further include: classifying the acquired plurality of electrocardiogram data into a training dataset, a validation dataset, and a test dataset; acquiring ROI electrocardiogram data divided into predetermined window sizes from each of the electrocardiogram data classified into the training dataset, the validation dataset, and the test dataset; training the deep learning model to predict each cardiac disease class of the first ROI electrocardiogram data, corresponding to inputting the first ROI electrocardiogram data acquired from the electrocardiogram data included in the training dataset into a deep learning model for predicting a patient's cardiac disease; and applying the second ROI electrocardiogram data acquired from the electrocardiogram data included in the validation dataset to the trained deep learning model to determine thresholds for classifying the cardiac disease classes. In an alternative embodiment, the determining step may include: collecting probability scores for each of the ROI electrocardiogram data separated from the same electrocardiogram data for each of the second ROI electrocardiogram data; averaging the probability scores for each of the collected second ROI electrocardiogram data to derive a final probability score; and fine-tuning the threshold for classifying the cardiac disease class based on the derived final probability score. In an alternative embodiment, the determined threshold can be stored together with the weights of the deep learning model.

[0006] According to another embodiment of the present invention, a server for generating a cardiac disease prediction model is disclosed. The server includes a memory for storing one or more instructions and a processor for executing one or more instructions stored in the memory, wherein the processor can perform the cardiac disease prediction model generation method described above by executing the one or more instructions. According to another embodiment of the present invention, a computer program stored on a recording medium readable from a computer is disclosed. The computer program is coupled to a computer, which is hardware, and can perform a method for generating a cardiac disease prediction model. Other specific aspects of the present invention are included in the detailed description and drawings. [Effects of the Invention]

[0007] According to various embodiments of the present invention, ROI electrocardiogram data can be extracted from a patient's electrocardiogram data, and the accuracy of predicting a patient's cardiac disease can be improved by applying the extracted ROI electrocardiogram data to a deep learning model. Furthermore, the present invention can provide the effect of enabling patients to understand their own health status and prevent heart disease by predicting the risk of future heart disease using multiple machine learning models. This provides an opportunity to protect patients' lives and improve treatment outcomes by enabling early detection and rapid response to heart disease. Furthermore, the present invention can improve the efficiency of screening and reduce opportunity costs in the medical field by significantly reducing the physical time medical staff have to spend analyzing electrocardiogram data one by one through an automated AI-based processing process. Furthermore, the present invention can further improve the accuracy of predicting cardiac disease risk by ensembling HRV characteristic information, latent vectors extracted from an embedded model, and metadata such as the patient's age using multiple tree-sequence machine learning models. The effects of the present invention are not limited to those described above, and other effects not mentioned above should be clearly understood by an ordinary person from the following description. [Brief explanation of the drawing]

[0008] [Figure 1] This is a diagram illustrating the configuration of a computing device that generates a cardiac disease prediction model according to one embodiment of the present invention. [Figure 2] This flowchart shows a method for training a deep learning model to predict heart disease according to one embodiment of the present invention. [Figure 3] This figure shows a method for classifying electrocardiogram data according to one embodiment of the present invention. [Figure 4] This figure shows a method for subdividing electrocardiogram data into individual heartbeats according to one embodiment of the present invention. [Figure 5a] This figure shows the types of deep learning models related to one embodiment of the present invention. [Figure 5b] This figure shows the types of deep learning models related to one embodiment of the present invention. [Figure 5c] This figure shows the types of deep learning models related to one embodiment of the present invention. [Figure 6] This figure shows the training steps of a deep learning model according to one embodiment of the present invention. [Figure 7] This flowchart shows a method for predicting heart disease using a trained deep learning model according to one embodiment of the present invention. [Figure 8] This figure shows the steps for predicting cardiac disease using a deep learning model according to one embodiment of the present invention. [Figure 9]An exemplary flowchart regarding a method for generating a heart disease prediction model according to an embodiment of the present invention. [Figure 10] A flowchart exemplarily showing a preprocessing process for a plurality of electrocardiogram data according to an embodiment of the present invention. [Figure 11] A flowchart exemplarily showing a process of performing embedding on a latent vector according to an embodiment of the present invention and constructing a vector database based on the execution result. [Figure 12] A flowchart exemplarily showing a process of generating an embedding model according to an embodiment of the present invention. [Figure 13] An exemplary diagram for explaining a process of generating an embedding model from a self-reconstruction model and a learned self-reconstruction model according to an embodiment of the present invention. [Figure 14] An exemplary flowchart for explaining a process of generating a heart disease risk prediction model through ensemble learning of a plurality of tree series models according to an embodiment of the present invention.

Mode for Carrying Out the Invention

[0009] Specific structural or functional descriptions of the embodiments are disclosed only for the purpose of illustration and can be implemented in various forms. Therefore, the actually implemented form is not limited to the disclosed specific embodiments only, and the scope of this specification includes modifications, equivalents, or alternatives included in the technical idea described in the embodiments. Terms such as first or second can be used to describe various components, but these terms should be interpreted only for the purpose of distinguishing one component from another. For example, the first component can be named the second component, and similarly, the second component can be named the first component. When a certain component is described as being "connected to" another component, it should be understood that it may be directly connected or connected to the other component, or there may be another component intervening between them. A singular expression includes plural expressions unless the context clearly indicates otherwise. In this text, each of the phrases such as “A or B,” “at least one of A and B,” “at least one of A or B,” “A, B or C,” “at least one of A, B and C,” and “at least one of A, B or C” may include any of the items listed together in the applicable phrase, or all possible combinations thereof. In this specification, terms such as “includes” or “has” should be understood to indicate the presence of a described feature, number, step, action, component, part, or combination thereof, without prejudice to the possibility of the presence or addition of one or more other features, numbers, steps, actions, components, parts, or combinations thereof. Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as they would be generally understood by someone of ordinary skill in the art. Terms defined in commonly used dictionaries should be interpreted as having the meaning consistent with their meaning in the context of the relevant art, and not in an ideal or overly formal sense unless expressly defined herein. The embodiments will be described in detail below with reference to the attached drawings. In the description with reference to the attached drawings, identical components will be given the same reference numerals regardless of the reference numerals in the drawings, and redundant explanations will be omitted. The present invention can acquire multiple electrocardiogram (ECG) data corresponding to multiple patients and generate a model for predicting cardiac disease based on the acquired ECG data. In an embodiment, the model for predicting cardiac disease may be a neural network model that extracts important patterns and features from the ECG data and predicts the likelihood of cardiac disease based on these. The computing device of the present invention processes the multiple ECG data into a form suitable for learning and uses the processed data to train the model for predicting cardiac disease. According to one embodiment, the present invention can generate and provide deep learning models and cardiac disease risk prediction models as models for predicting cardiac disease. In one embodiment, the present invention can process multiple electrocardiogram data into various forms, train neural networks in different ways for each, and generate and provide various prediction models. Below, the method for generating models for predicting cardiac disease will be described in detail with reference to various drawings.

[0010] Figure 1 is a diagram of the configuration of a computing device that performs a method for generating a cardiac disease prediction model according to one embodiment of the present invention. As shown in Figure 1, the computing device 100 may include one or more processors 110 and a memory 120 for loading or storing programs 130 performed by the processors 110. The components included in the computing device 100 in Figure 1 are merely examples, and a person ordinary in the art to which the present invention belongs will see that in addition to the components shown in Figure 1, other general-purpose components may be included. The processor 110 controls the overall operation of each component of the computing device 100. The processor 110 can include at least one of a CPU (Central Processing Unit), MPU (Micro Processor Unit), MCU (Micro Controller Unit), GPU (Graphic Processing Unit), NPU (Neural Processing Unit), DSP (Digital Signal Processor), or any form of processor well known in the art of the present invention. The processor 110 can also perform calculations for at least one application or program to perform methods / operations according to various embodiments of the present invention. The computing device 100 may comprise one or more processors. Memory 120 stores one or more combinations of various data, instructions, and information used by components (e.g., processor 110) included in the computing device 100. Memory 120 may include volatile memory and / or non-volatile memory. Program 130 may include one or more actions that implement methods / operations according to various embodiments of the present invention, and can be stored in memory 120 in software form. Here, an action corresponds to an instruction word implemented in program 130. For example, program 130 may include instructions to classify electrocardiogram data acquired from multiple patients into a training dataset, a validation dataset, and a test dataset; to acquire ROI electrocardiogram data divided into predetermined window sizes from each of the electrocardiogram data classified into the training dataset, validation dataset, and test dataset; to train a deep learning model to predict each cardiac disease class of the first ROI electrocardiogram data, corresponding to inputting first ROI electrocardiogram data acquired from electrocardiogram data included in the training dataset into a deep learning model for predicting cardiac diseases in patients; and to apply second ROI electrocardiogram data acquired from electrocardiogram data included in the validation dataset to the trained deep learning model to determine thresholds for classifying cardiac disease classes. Depending on the embodiment, ROI electrocardiogram data divided into a predetermined window size may represent individual heartbeats, but is not limited thereto. In the following, for the sake of explanation, individual heartbeats may be described as an example for ROI electrocardiogram data divided into a predetermined window size depending on the embodiment, but the type of ROI electrocardiogram data applied to each embodiment is not limited thereto.

[0011] Once program 130 is loaded into memory 120, the processor 110 can perform various methods / operations according to the present invention by executing multiple operations to implement program 130. The execution screen of program 130 can be displayed via display 140. In Figure 1, the display 140 is represented as a separate device connected to the computing device 100, but in the case of a computing device 100 such as a smartphone or tablet, which can be carried by the user, the display 140 can become a component of the computing device 100. The screen displayed on display 140 may be before information is entered into the program or as a result of program execution. Figure 2 is a flowchart showing a method for training a deep learning model to predict heart disease according to one embodiment of the present invention. The training method for the deep learning model shown in Figure 2 is performed by the processor of the computing device shown in Figure 1. In step 210, the processor can classify electrocardiogram data acquired from multiple patients into training datasets, validation datasets, and test datasets. First, the electrocardiogram data acquired from multiple patients can be divided into groups: True-Normal Sinus Rhythm (T-NSR), Atrial Fibrillation-Normal Sinus Rhythm (AF-NSR), and Clinically Important Arrhythmia-Normal Sinus Rhythm (CIA-NSR). In this case, the electrocardiogram data acquired from multiple patients may be 10-second 12-lead electrocardiogram data, but this type of electrocardiogram data is merely an example and is not limited to the above example.

[0012] On the other hand, clinically important arrhythmias (CIAs) can include atrial arrhythmias, ventricular arrhythmias, atrial fibrillation, and BBB (bundle block). Atrial arrhythmia is an arrhythmia originating in the atria, meaning a sustained arrhythmia lasting 30 seconds or more, or a non-sustained arrhythmia lasting 30 seconds or less, and can include atrial premature complex, or sustained / non-sustained atrial rhythm. Ventricular arrhythmia is an arrhythmia originating in the ventricles, meaning a sustained arrhythmia lasting 30 seconds or more, or a non-sustained arrhythmia lasting 30 seconds or less, and can include ventricular premature complex, or sustained / non-sustained ventricular arrhythmia. Atrial fibrillation can mean an arrhythmia in which there is no regular electrical signal and contraction of the atria, resulting in irregular ventricular contractions. Finally, BBB can refer to an arrhythmia characterized by a blockage of signal transmission in the right or left bundle of the heart, which transmits cardiac signals through the ventricles, resulting in a distinctive electrocardiogram pattern. The T-NSR group can be composed of electrocardiograms from patients with no history of atrial fibrillation or arrhythmias and who have three or more normal sinus rhythm electrocardiograms in a year. The AF-NSR group can be composed of electrocardiograms from patients in which a normal sinus rhythm electrocardiogram is paired with an atrial fibrillation or atrial flutter electrocardiogram that occurred within 14 days of the normal sinus rhythm electrocardiogram. Similarly, the CIA-NSR group can be composed of electrocardiograms from patients in which a normal sinus rhythm electrocardiogram is paired with an arrhythmia electrocardiogram that occurred within 14 days of the normal sinus rhythm electrocardiogram. The processor can classify the electrocardiogram data belonging to the T-NSR group, AF-NSR group, and CIA-NSR group, as defined above, into training datasets, validation datasets, and test datasets applicable to deep learning models for predicting cardiac diseases. As an example, Figure 3 shows a method for classifying electrocardiogram data according to one embodiment of the present invention. The processor can classify electrocardiogram data 310 belonging to the T-NSR group, AF-NSR group, and CIA-NSR group according to the cardiac disease to be predicted. As an example, the processor can classify the electrocardiogram data 310 into electrocardiogram data 320 belonging to the T-NSR group and AF-NSR group in order to predict atrial fibrillation, and electrocardiogram data 330 belonging to the T-NSR group and CIA-NSR group in order to predict arrhythmia.

[0013] Subsequently, the processor can classify the electrocardiogram data 320 and 330, which are separated by each cardiac disease, into training datasets, validation datasets, and test datasets based on any date on which the electrocardiogram data 320 and 330 were generated. As an example, as shown in Figure 3, if electrocardiogram data 320 and 330 were acquired between May 23, 2017 and May 23, 2022, the processor can classify the electrocardiogram data 320 and 330 based on an arbitrary date (e.g., June 11, 2021), dividing the data before that date into training and validation datasets in a certain proportion, and classifying the data after that date (including that date) into a test dataset. In the example in Figure 3, the electrocardiogram data 320 and 330 were classified into training dataset (60%), validation dataset (20%), and test dataset (20%), but such classification proportions are merely examples and are not limited to the above example. In step 220, the processor can acquire individual heartbeats from each of the electrocardiogram data categorized into training, validation, and test datasets. The processor can preprocess the 10-second 12-read electrocardiogram data categorized into training, validation, and test datasets to obtain accurate and reliable data. More specifically, the processor can receive electrocardiogram data, categorized into training, validation, and test datasets, in XML (eXtensible Markup Language) file format. The processor can parse the input data into a structured data portion, such as patient name, age, and gender, and an unstructured data portion consisting of continuous signals. Subsequently, the processor can perform noise reduction preprocessing on the unstructured data portion consisting of continuous signals to separate the key markers of the heartbeat. Through these separated key markers, the processor can obtain discontinuous individual heartbeats from the unstructured data consisting of continuous signals. As an example, referring to Figure 4, the processor can decode 10-second 12-read electrocardiogram data using Base64 encryption, and then pass it through an IIR Butterworth SOS filter with a moving average kernel and a power line noise filter for noise reduction and cleansing. Next, the processor can subdivide the denoised 10-second 12-read electrocardiogram data into individual heartbeats using a QRS peak sensing algorithm. As a result, the processor can acquire multiple discontinuous individual heartbeats from a single 10-second 12-read electrocardiogram data set, as shown in Figure 3. These individual heartbeats can then be used to train a deep learning model for more accurate prediction of cardiac disease.

[0014] In step 230, the processor can train a deep learning model to predict the cardiac disease class for each first individual heartbeat, in response to inputting the first individual heartbeat, obtained from electrocardiogram data included in the training dataset, into the deep learning model for predicting the patient's cardiac disease. At this time, the processor can be trained to predict each cardiac disease class for the first individual heartbeat using one of the following deep learning models: ResNet-18, Conv1D with LSTM (Long Short-Term Memory), or Conv1D with a transformer. As an example, ResNet-18, as shown in Figure 5a, is a deep learning model that can extract essential features of input using convolutional operations such as those found in various convolutional neural networks (CNNs). To solve the vanishing gradient problem of CNN architectures, ResNet-18 can perform residual learning via skip concatenation, a method in which input data skips multiple layers on the network and is directly concatenated to the output layer, as shown in Figure 5a. Because the ResNet-18 deep learning model requires a fixed-length input, the processor can fix the length of individual heartbeats to the average length of all individual heartbeats. For example, if the average length of all individual heartbeats is 700, the processor can perform slicing on individual heartbeats with lengths longer than 700 and zero-padding on individual heartbeats with lengths shorter than 700 to fix their length to 700. As another example, a Conv1D layer containing an LSTM, as shown in Figure 5b, can capture both local time patterns and long-range time patterns from sequential data. In this case, the Conv1D layer excels at sensing local time patterns, while the LSTM layer excels at modeling long-term dependencies. As another example, a Conv1D with a transformer, as shown in Figure 5c, can capture all local patterns and global dependencies of the input data. In this case, the transformer layer is suitable for modeling global dependencies, while the Conv1D layer may be effective for sensing local patterns. Unlike ResNet-18, which has a fixed input length, a Conv1D with a transformer has the advantage of being able to accommodate various input sizes. On the other hand, Figure 6 is a diagram showing the training steps of a deep learning model according to one embodiment of the present invention. Referring to Figure 6, the processor can optimize the parameters of the deep learning model using binary cross-entropy with logarithmic loss and an AdamW optimizer with an initial learning rate of 0.0001. In this case, binary cross-entropy is a loss function that reduces the difference between the predicted result and the actual correct answer in the training of the deep learning model, and the AdamW optimizer is an algorithm that is involved in updating the actual deep learning model based on such a loss function. By applying a sigmoid function to the output of the deep learning model optimized with such binary cross-entropy and AdamW optimizer, the processor can obtain probability values ​​for each cardiac disease class of the first individual heartbeat in the range of 0 to 1.

[0015] In step 240, the processor can apply the second individual heart rate percentage obtained from the electrocardiogram data included in the validation dataset to the trained deep learning model to determine thresholds for classifying cardiac disease classes. More specifically, as shown in Figure 6, the processor collects probability values ​​for each of the individual heartbeats separated from the same electrocardiogram data for each of the second individual heartbeats, collects probability values ​​for each of the collected second individual heartbeats, averages the probability values ​​for all the collected second individual heartbeats to derive a final probability score, and then fine-tunes the optimal threshold for classifying cardiac disease classes based on the derived final probability score. In this case, the optimal threshold can be obtained by applying a threshold between 0 and 1 in increments of 0.01 to achieve the highest F1 score in the validation dataset for the cardiac disease class, i.e., the T-NSR and AF-NSR class or the T-NSR and CIA-NSR class. In this case, the F1 score can be defined as shown in Equation 1 below.

number

[0016] As an example, Figure 8 shows a cardiac disease prediction step using a deep learning model according to one embodiment of the present invention. Referring to Figure 8, the processor can load the weights and thresholds of the trained deep learning model and then derive probability values ​​for each individual heartbeat. The processor can then calculate the average of all the probability values ​​of the individual heartbeats thus derived. For example, if the processor determines that the patient's cardiac disease class is normal, i.e., T-NSR, when the T-NSR Logit value, which is the average of the probability values ​​for determining T-NSR, is greater than the first threshold θ1, and the CA-NSR Logit value, which is the average of the probability values ​​for determining CIA-NSR, is less than the second threshold θ2, then the processor can determine that the patient's cardiac disease class is normal, i.e., T-NSR. Alternatively, if the T-NSR Logit value is greater than the first threshold θ1 and the CIA-NSR Logit value is greater than the second threshold θ2, the processor can compare the T-NSR Logit value and the CIA-NSR Logit value and select the larger value as the final prediction. For example, if the CIA-NSR Logit value is greater than the T-NSR Logit value, the patient's cardiac disease class can be determined to be CIA-NSR, which is prone to arrhythmias. Furthermore, if the T-NSR Logit value is smaller than the first threshold θ1 and the CIA-NSR Logit value is smaller than the second threshold θ2, the processor can compare the T-NSR Logit value and the CIA-NSR Logit value and select the larger value as the final prediction. Finally, if the T-NSR Logit value is less than the first threshold θ1 and the CIA-NSR Logit value is greater than the second threshold θ2, the processor can determine that the patient's cardiac disease class is CIA-NSR, which is prone to arrhythmias. These four methods for classifying cardiac disease can also be applied to the distinction between T-NSR and AF-NSR. The following describes in detail, with reference to Figures 9 to 14, a method for utilizing HRV characteristic information, latent vectors, cluster information corresponding to latent vectors, and metadata according to one embodiment of the present invention, as well as a method for predicting cardiac disease by ensembling multiple tree model outputs.

[0017] Figure 9 shows an illustrative flowchart of a method for generating a cardiac disease prediction model according to one embodiment of the present invention. According to one embodiment of the present invention, a method for generating a cardiac disease prediction model may include the step of acquiring multiple electrocardiogram data (S1000). According to the embodiments, multiple electrocardiogram data are acquired for multiple patients and can be collected in various ways. In one embodiment, the electrocardiogram data in the present invention can mean multi-lead electrocardiogram (ECG) data related to recording the electrical activity of the heart and evaluating the cardiac state. Multi-lead electrocardiogram data includes cardiac electrical signals obtained through various leads, thereby providing comprehensive information on the heart's rhythm, electrical conduction state, and other cardiac functions. In an embodiment, multiple electrocardiogram (ECG) data acquired from multiple patients may include normal ECG data, ECG data related to arrhythmias, and ECG data for other cardiac conditions. In a specific embodiment, the ECG data acquired from multiple patients may be categorized into groups such as True-Normal Sinus Rhythm (T-NSR), Atrial Fibrillation-Normal Sinus Rhythm (AF-NSR), and Clinically Important Arrhythmia-Normal Sinus Rhythm (CIA-NSR). In this case, the ECG data acquired from multiple patients may be 10-second, 12-lead ECG data, but the types of such ECG data are not limited to this example. In one embodiment, acquiring multiple electrocardiogram (ECG) data may involve receiving or loading data stored in memory 120. Acquiring multiple ECG data may also involve receiving or loading multiple ECG data from another storage medium, another computing device, or a separate processing module within the same computing device, based on wired / wireless means. As an example, a user (e.g., a patient or healthcare provider) can connect to computing device 100 via a user terminal to receive a user interface for cardiac disease prediction from computing device 100, and transmit ECG data to computing device 100 by dragging and dropping the ECG data into the provided user interface.

[0018] According to various embodiments, the computing device 100 of the present invention can perform data augmentation on multiple electrocardiogram data acquired. Specifically, the computing device 100 can augment training data for neural network training by performing data augmentation using read pairs. To explain in more detail, each type of electrocardiogram (ECG) data can be acquired per lead. For example, ECG data can be collected with various lead configurations such as 1-lead, 3-lead, and 12-lead, which are used to record electrical activity in different parts of the heart and to assess the overall cardiac condition. For example, with a 12-lead signal, many signals can be acquired over a relatively short period, but the total amount of data may be limited. On the other hand, a 1-lead signal is recorded over an even longer period, but the diversity of the data is limited. While using these two types of data together allows for a more accurate assessment of cardiac condition, in practice, the number of such data pairs may be insufficient. To solve this problem, the computing device 100 of the present invention can generate a reconstruction model that generates other read data based on one read data. The reconstruction model takes one read data as input and plays the role of generating multi-read data based on it. This process has the effect of augmenting the training data as if there were more read data, by expanding the one read data to 3-lead or more (12-lead). Training the reconstruction model involves learning the correlation between single-read and multi-read data. For this purpose, the reconstruction model is trained using paired data containing both single-read and multi-read data. During the training process, the model learns how to reconstruct multi-read data from single-read data, learning the characteristics of the single-read data and the patterns of multi-read signals that can be inferred from it. After model training is complete, the reconstructed model can generate multi-read signals even with only single-read data, thereby compensating for the lack of actual multi-read data. This increases data diversity and improves the model's generalization performance. The multi-read data thus generated (i.e., augmented multi-read data) can be used together with the existing multi-read data to train the neural network, allowing the model to learn even more diverse read configurations and improve its predictive performance for various cardiac states. As a result, data augmentation through reconstructed models substantially increases the amount of training data, improving the model's predictive accuracy and strengthening the reliability of the cardiac disease prediction model. This helps medical staff to more accurately diagnose patients' health conditions and establish more effective treatment and prevention plans. According to one embodiment of the present invention, a method for generating a cardiac disease prediction model may include the step (S2000) of constructing a training dataset based on multiple electrocardiogram data. In one embodiment, constructing a training dataset through multiple electrocardiogram data is the process of collecting and organizing various data to learn important features and patterns from each electrocardiogram data. This generates a dataset containing various cases and patterns necessary for predicting cardiac diseases.

[0019] According to embodiments, the learning dataset of the present invention includes various data related to the prediction of cardiac disease and may include a training dataset for training a neural network model, a validation dataset for evaluating and optimizing the model's performance, and test data for evaluating the model's generalized performance. In one embodiment, the training dataset may include a first training dataset and a second training dataset, each classified for different training purposes. The first and second training datasets may be data classified to train different neural network models. The first and second training datasets can be classified by the computing device 100. For example, the first training dataset is used in the training process of the embedded model, with an emphasis on extracting and representing key features of electrocardiogram data. The second training dataset is used to train a model that predicts the risk of cardiac disease, and this dataset can be used for calibration and performance evaluation to improve the accuracy of the predictive model. Specifically, the first training dataset can include data for learning that corresponds to the process of transforming the characteristics of electrocardiogram data into a characteristic space. The first training dataset is data for ECG Representation Learning and can be used to extract and embed diverse characteristics and patterns of electrocardiogram data signals. The second training dataset can include data for calibration related to predicting cardiac risk. That is, the second training dataset is data for correcting cardiac risk and can be used to more accurately predict the risk predicted by the model. According to one embodiment, the step of constructing a training dataset may include the step of preprocessing multiple electrocardiogram data. Figure 10 is a flowchart illustrating an exemplary preprocessing process for multiple electrocardiogram data according to one embodiment of the present invention. Referring to Figure 10, a preprocessing method for multiple electrocardiogram data can include the steps of: performing noise preprocessing on the multiple electrocardiogram data (S2100); dividing the noise-preprocessed multiple electrocardiogram data into predetermined window sizes and acquiring multiple ROI signals (S2200); and extracting HRV (Heart Rate Variability) characteristic information on a read-by-read basis for the multiple electrocardiogram data (S2300). In one embodiment, the HRV characteristic information can include index information regarding variability between heartbeat intervals.

[0020] More specifically, in step S2100, the multiple electrocardiogram data acquired are first preprocessed to remove noise. This preprocessing includes low-pass filtering and noise removal, which removes baseline noise from the electrocardiogram signal. Specifically, low-pass filtering removes high-frequency components from the electrocardiogram data via a frequency band limiting scheme to improve signal purity, while noise removal utilizes time-series analysis techniques to reduce unwanted noise from the electrocardiogram data, making important signal components clearer. Such preprocessing minimizes distortion of the electrocardiogram signal and contributes to improved signal quality for a more accurate assessment of cardiac activity. Furthermore, according to the embodiment, the computing device 100 can perform data augmentation to enhance the diversity and robustness of model learning. The computing device 100 performs data augmentation by simulating various noise patterns, thereby enabling the model to learn and adapt to various noise situations that may occur in real environments. In a specific embodiment, the dataset is increased by artificially adding various types of noise that may occur in actual electrocardiogram measurement environments, such as Gaussian noise, jitter noise, random time warping, scaling, amplitude modulation, and phase shifting, during the preprocessing of electrocardiogram data. This allows the model to learn and adapt to noise that may occur in various environments. Such noise addition and removal processes have the advantage of improving data quality and enhancing the generalization performance of the model. Subsequently, the denoised electrocardiogram data from step S2200 is divided into predetermined window sizes and organized into multiple ROI signals. Depending on the embodiment, an ROI signal is defined as a range containing at least 3 to 5 QRS complexes (heartbeats) in a deformable window size unit, each containing a meaningful heartbeat from the electrocardiogram data. In one embodiment, a QRS complex indicates ventricular depolarization during the electrical activity of the heart and can contribute to identifying the start and end of a heartbeat as a key feature in the electrocardiogram. For example, each ROI signal can be divided into 30-second to 1-minute units, which is useful for analyzing important patterns in the electrocardiogram signal and identifying regularity and abnormality in heartbeats. The computing device 100 extracts ROI signals and organizes them into data that allows for a more accurate analysis of the key characteristics of the heartbeat. This plays a crucial role in identifying specific patterns and signs of abnormalities in the electrocardiogram signals and assessing the risk of heart disease. Furthermore, in step (S2300), the HRV characteristic information extraction process is performed. HRV characteristic information is an index that measures the periodic changes in heart rate over time and is an important signal characteristic that reflects cardiac activity. For example, the computing device 100 divides the electrocardiogram data into 30-second to 1-minute units to acquire multiple ROI signals and extracts HRV characteristics corresponding to each ROI signal. This is to more accurately assess the overall activity of the heart by analyzing the data over a longer time range than existing bit-level analysis. The computing device 100 derives HRV characteristics from each ROI signal using methods such as frequency analysis or time-domain analysis. In a specific embodiment, the computing device 100 can extract HRV characteristic information corresponding to each ROI signal by applying various analytical techniques. As a specific example, the computing device can extract HRV characteristic information through evaluation of high-frequency and low-frequency components by spectral analysis and statistical analysis of NN spacing.

[0021] Spectral analysis assesses heart rate variability in the frequency domain, with high-frequency components primarily reflecting parasympathetic nervous system activity and low-frequency components indicating mixed sympathetic and parasympathetic nervous system activity. This is useful for understanding the balance of the autonomic nervous system. Statistical analysis of NN intervals assesses the variability of heart rate intervals in the time domain, quantifying the autonomic nervous system activity of the heart. This can be an important indicator for assessing heart rate irregularity, stress response, and cardiac health. In one embodiment, HRV characteristic information extracted on a lead basis may include RMSSD (Root Mean Square of Successive Differences), SDNN (Standard Deviation of NN intervals), and SDANN (Standard Deviation of Average NN intervals). Specifically, RMSSD represents the square root of the mean square of the differences in continuous heart rate intervals and primarily reflects the influence of the parasympathetic nervous system. SDNN shows the standard deviation of all normal heart rate intervals and indicates the overall variability of the autonomic nervous system. SDANN measures the standard deviation of the mean heart rate interval over a certain period to assess long-term heart rate variability. These indices play an important role in evaluating the activity of the cardiac autonomic nervous system and comprehensively analyzing cardiac health. In other words, HRV characteristic information reflects various aspects of heart rate variability and can be used to evaluate irregularity of heartbeats, autonomic nervous system activity, etc., and can serve as a basis for predicting the risk of cardiac disease. According to one embodiment of the present invention, a method for generating a cardiac disease prediction model may include the step (S3000) of generating a cardiac disease risk prediction model by training one or more network functions based on a training dataset. Figure 11 is a flowchart illustrating the process of performing embedding on a latent vector according to one embodiment of the present invention and constructing a vector database based on the results of that process. Referring to Figure 11, the steps for generating a cardiac disease risk prediction model may include: generating an embedding model via masking-based self-supervised learning using a first training dataset (S3100); performing an embedding execution step (S3200) to extract latent vectors corresponding to each of multiple ROI signals corresponding to a second training dataset using the embedding model; performing clustering on the latent vectors using a clustering model (S3300); and constructing a vector database (DB, Database) based on the latent vectors and information for each cluster corresponding to each latent vector (S3400).

[0022] More specifically, in step S3100, the computing device 100 can generate an embedding model based on the first training dataset. An embedded model can be a model trained to represent complex patterns in electrocardiogram data in a low-dimensional space. When multiple ROI signals corresponding to electrocardiogram data are input, the embedded model can generate latent vectors corresponding to each ROI signal. Here, the latent vector may be a low-dimensional vector that compresses key features of the electrocardiogram data. This is a data representation that has been transformed into a form containing the main information of the signal in order to make the high-dimensional electrocardiogram signal easier to understand and analyze. The latent vector can provide useful information for assessing cardiac health based on patterns in the electrocardiogram data or for sensing signs of disease. A detailed explanation of how to generate the embedded model will be provided below, with reference to Figures 12 and 13. Figure 12 is a flowchart illustrating the process of generating an embedded model according to one embodiment of the present invention. Figure 13 is an illustrative diagram illustrating the process of generating an embedded model from a self-reconstructing model and a learned self-reconstructing model according to one embodiment of the present invention. Referring to Figure 12, the step of generating an embedding model may include the steps of: (S3110) in which a self-reconstructing model processes the data contained in the first training dataset as input to induce self-supervised learning so that the self-reconstructing model produces output similar to the input data; and (S3120) in which an encoder is extracted from the trained self-reconstructing model to generate an embedding model. Self-reconstructing models can be models designed to intrinsically learn important features of data during the learning process through inputs and outputs. In one embodiment, the self-reconstruction model is a neural network model that masks a portion of the input data and reconstructs the masked portion, and may include an encoder (or a dimensionality reduction network function) and a decoder (or a dimensionality restoration network function). In one embodiment, the self-reconstruction model of the present invention may be, but is not limited to, a Masked AutoEncoder (MAE) that learns important patterns in electrocardiogram data and accurately reconstructs the masked signal. Self-reconstruction models can effectively learn key features of data through a process that intentionally hides portions of the electrocardiogram signal (specifically, each ROI signal) and reconstructs the entire signal based on the remaining portions. Self-reconstructing models learn in a way that minimizes reconstruction errors between input and output, thereby effectively extracting and representing key characteristics of a signal. Self-reconstructing models are particularly strong at understanding and utilizing the inherent structure of data, especially when the data is complex or incomplete. More specifically, as shown in Figure 13, the self-reconstructing model 800 can learn important features by reducing the dimensionality of the input data and then reconstructing it. The self-reconstructing model may include an encoder (or dimensionality reduction network function) 810 and a decoder (or dimensionality restoration network function) 820. The self-reconstructing model 800 transforms high-dimensional data into a low-dimensional latent space via the encoder 810, compressing the core information of the data and reducing noise in the process. Then, using the decoder 820, it attempts to reconstruct the compressed low-dimensional representation into the original high-dimensional space, thereby learning and reproducing important patterns in the data.

[0023] According to one embodiment, the computing device 100 can be guided to learn a self-reconstructing model 800 via a masking learning scheme. In this scheme, a portion of the input data is intentionally masked, and the model learns to reconstruct the masked portion. For example, without masking, the self-reconstructing model might learn biasedly towards noise rather than QRS complexes; however, masking allows it to focus on learning important features. This enables the model to develop the ability to extract important patterns and features from the rest of the input data and accurately reconstruct the masked information. This has the advantage of being able to operate robustly even with noisy or incomplete data. Furthermore, the process of reconstructing masked portions allows for an understanding of the data's context and the learning of important features, making it extremely useful for analyzing and interpreting complex medical data such as electrocardiogram data. By applying masks, the model focuses on key signals such as the QRS complex, enabling highly reliable data analysis for accurate diagnosis and evaluation of cardiac diseases. In other words, the present invention trains a self-reconstruction model using a masking learning method to focus on important cardiac signals in order to improve reliability in the analysis and interpretation of electrocardiogram data. This enables the model to understand the context of the data and learn key features, allowing it to accurately grasp and reconstruct core signals such as the QRS complex. Self-reconstruction models aim to reconstruct the entire signal by masking a specific meaningful range of signals and then reconstructing the masked portion. For example, a significant portion of the entire electrocardiogram signal range might be masked, ensuring that this masked region contains approximately three QRS complexes. The self-reconstruction model then intensively learns this region, and the loss function is calculated only for this region. In this manner, the model learns data features centered on important signals, thereby gaining a more accurate understanding and reproduction of the overall context of the data. As a result, it operates robustly even with noise and imperfections that may arise from electrocardiogram data, enabling highly reliable data analysis necessary for the early diagnosis and evaluation of cardiac disease. This approach minimizes the loss of important information in the analysis of electrocardiogram signals, supporting accurate assessment of cardiac condition and significantly improving the interpretation of medical data. According to one embodiment, the self-reconstruction model 800 may include at least one hidden layer, and an odd number of hidden layers may be placed between the input and output layers. The number of nodes in each layer may be reduced from the number of nodes in the input layer to an intermediate layer called the bottleneck layer (encoder), and then expanded symmetrically from the bottleneck layer to the output layer (symmetric to the input layer). In this case, Figure 13 shows that the layers of encoder 810 and decoder 820 are symmetric, but the present invention is not limited thereto, and the nodes of the layers of encoder 810 and decoder 820 may be symmetric or not. The self-reconstruction model 800 can perform nonlinear dimensionality reduction. The number of input and output layers may correspond to the number of input data items remaining after preprocessing of the input data. In the structure of the self-reconstruction model 800, the number of nodes in the hidden layer included in encoder 810 may have a structure that decreases as it moves away from the input layer. The number of nodes in the bottleneck layer (the layer with the fewest nodes located between the encoder and decoder) can be maintained above a certain number (for example, more than half the number of nodes in the input layer), because if it is too small, a sufficient amount of information may not be transmitted.

[0024] In one embodiment, the computing device 100 trains a self-reconstructing model via multiple ROI signals corresponding to a first training dataset, thereby allowing the model to learn important features and patterns of electrocardiogram data. The trained self-reconstructing model is applied to each of the multiple electrocardiogram data sets, and through a process of masking and reconstructing portions of the input data, it extracts and analyzes the main features of the electrocardiogram signals. In summary, the computing device 100 guides learning using a masking learning method for a self-reconstructing model to ensure high reliability in the analysis and interpretation of electrocardiogram data. In this process, the self-reconstructing model learns the intrinsic distribution of heartbeats by focusing on key signals such as the QRS complex. While the self-reconstructing model reconstructs the original signals of the electrocardiogram data, it effectively learns important features inherent in the electrocardiogram data itself, such as the peaks of the QRS complex. In the next step, S3120, the encoder is extracted from the trained self-reconstruction model to generate an embedding model. The encoder portion in the trained self-reconstruction model is trained (i.e., pre-trained on the first training dataset) to compress important features of high-dimensional data and remove noise, so that it can output low-dimensional latent vectors corresponding to the input data (e.g., multiple ROI signals contained in the second training dataset). According to the embodiment, the generated embedding model can effectively reflect the similarity between input data in the latent space by compressing and representing the features of the data. For example, in response to similar input data, the embedding model outputs latent vectors in similar latent spaces. For example, the second latent vector of a second ROI signal similar to the first ROI signal is located in a latent space similar to the first latent vector corresponding to the first ROI signal. That is, they are located in close proximity in the latent space. Conversely, when the input data differs significantly (i.e., there are large differences), the embedding model places these data points at separate locations within the latent space. This allows for a clear distinction between similarities and differences between data based on characteristic patterns in the electrocardiogram data, which can be used in the diagnostic and evaluation process of cardiac diseases. In other words, the present invention guides a self-reconstructing model to self-learn using a first training dataset, and extracts encoders from the completed self-reconstructing model to form an embedded model. The computing device 100 can generate an embedding model using the first training dataset, and then use the embedding model to perform embedding, extracting latent vectors corresponding to each of the multiple ROI signals corresponding to the second training dataset. More specifically, each ROI signal included in the second training dataset is provided as input to the embedding model by the computing device 100, and the embedding model compresses the main features of the signal to output a low-dimensional latent vector. The latent vector is a concise representation of the complex patterns of the ROI signals and reflects the similarities and differences between each ROI signal in the latent space. For example, among the ROI signals of the electrocardiogram data included in the second training dataset, signals with similar patterns are output as latent vectors located close to each other in the latent space.

[0025] Subsequently, in step (S3300), the computing device 100 can perform clustering on the latent vectors using a clustering model. According to the embodiment, the computing device 100 can perform clustering on the latent vectors using a clustering model. For example, a clustering model is a model trained to perform clustering using latent vectors extracted by an embedding model, and could be a KNN (K-Nearest Neighbors) model. In one embodiment, the clustering model can be characterized by performing clustering based on the similarity distance between latent vectors corresponding to each of a plurality of ROI signals. More specifically, the clustering process calculates the distance or similarity between each latent vector to determine how close or similar these vectors are. Here, the distance is generally calculated using measurement methods such as Euclidean distance or cosine similarity. For example, the distance between latent vector A extracted from a specific ROI signal and latent vector B extracted from another ROI signal is calculated to evaluate how similar these two vectors are. If the distance between A and B is small, these two vectors can be considered to represent electrocardiogram signals containing the same or similar patterns. A clustering model groups latent vectors into multiple clusters based on this distance information. In the KNN model, clustering is performed by finding the K nearest neighbor vectors of a given vector and including that vector in the cluster to which those neighbor vectors belong. For example, if K=3, the three nearest neighbor vectors of latent vector A are found, and A is assigned to the cluster to which the majority of those neighbor vectors belong. This process is repeated for all latent vectors, and ultimately, vectors that share similar features are grouped into the same cluster. This process is useful for classifying various patterns in electrocardiogram data and analyzing how each pattern relates to a specific type or risk level of cardiac disease. For example, if a particular cluster contains signals related to irregular heartbeats, that cluster can be used as an indicator of a disease such as arrhythmia. As a more concrete example, when clustering is performed on each latent vector using a clustering model, four clusters can be formed. In this clustering process, vectors are grouped based on the similarity between each latent vector. Assuming there are four clusters—the first, second, third, and fourth clusters—each of these clusters can represent a different electrocardiogram pattern. For example, the first cluster might contain signals with a normal heart rate pattern, while the second cluster might contain signals with specific abnormalities such as arrhythmias. The third and fourth clusters might each contain signals reflecting different types of cardiac disease or conditions. While the above explanation describes the formation of four clusters (or groups), this is merely illustrative, and the actual number of clusters can vary depending on the characteristics of the data and the settings of the clustering model.

[0026] Such clustering can automatically identify specific patterns or abnormalities in electrocardiogram data and analyze the characteristics of each cluster to provide useful information for the early diagnosis and management of cardiac disease. The clustering results provide important data for healthcare professionals to comprehensively assess a patient's condition and establish a customized treatment plan. Furthermore, in step S3400, the computing device 100 can construct a vector database based on the latent vectors and the information for each cluster corresponding to each latent vector. The vector database of the present invention may be a NoSQL database server for storing and managing embedded vectors, their affiliated cluster information, and information regarding the distance between each vector. The vector database of this invention is optimized for the analysis and management of latent vectors extracted from various electrocardiogram data. This allows for the systematic storage of characteristic patterns in electrocardiogram signals, which can then be searched and utilized as needed. As an example, the vector database of the present invention can support risk assessment and condition monitoring based on a patient's electrocardiogram data. When newly collected electrocardiogram data from a particular patient is received, the latent vectors extracted from the data can be compared with existing vectors stored in the vector database to evaluate their similarity. Through this similarity evaluation, it is possible to determine which cluster the patient's electrocardiogram data belongs to and which previously observed patterns that cluster resembles. Furthermore, in this embodiment, the computing device 100 can extract a principal vector for each of the multiple clusters corresponding to the clustering results. Such a principal vector is a vector that represents each cluster and can represent the center of the latent vectors within the cluster. More specifically, if the data stored in a vector database is enormous, for example, searching through 300,000 electrocardiogram (ECG) data can take a considerable amount of time. Generally, when new ECG data for a particular patient is input, it is divided into multiple ROI signals during the preprocessing stage, and 80 to 120 embedding vectors are generated through an embedding process for each ROI signal. For example, if the new ECG data is individually compared with all the vectors stored in the database, it can be computationally intensive and inefficient. This is time-consuming and unsuitable for situations where real-time analysis is required. This allows for rapid identification of similar clusters by comparing latent vectors generated based on patient electrocardiogram data with the principal vectors of each cluster, thereby reducing search time and increasing efficiency. In this process, the dot product of each embedding vector and the principal vector is calculated to evaluate similarity, and based on this information, it is determined which cluster the electrocardiogram data belongs to.

[0027] This method allows for rapid identification of relevant clusters by comparing them to a principal vector representing each cluster, rather than comparing the entire dataset piecemeal. As a result, it enables rapid analysis and efficient management of electrocardiogram data, playing a crucial role in quickly assessing the risk of cardiac disease and monitoring patient conditions in real time. Furthermore, in this embodiment, cardiac disease prediction information can be generated for the electrocardiogram data of the person to be predicted through the following process. In one embodiment, a method for generating cardiac disease prediction information for electrocardiogram data of a subject to be predicted may include the steps of: acquiring electrocardiogram data of the subject to be predicted; preprocessing the electrocardiogram data of the subject to be predicted; generating a plurality of latent vectors corresponding to the preprocessed electrocardiogram data using an embedded model; comparing each of the plurality of latent vectors with each of the representative vectors corresponding to each of the plurality of clusters, and classifying each of the plurality of latent vectors into one of the plurality of clusters; and generating stratified information regarding the risk of cardiac disease based on the classification result in which each of the plurality of latent vectors is classified into the plurality of clusters. In embodiments, the predictor may be an individual who has undergone an electrocardiogram (ECG) examination for the purpose of assessing and managing the risk of heart disease. This could be a person undergoing a routine health checkup, a person with a family history of heart disease, or a patient who has previously been diagnosed with heart disease or has shown related symptoms. The predictor may continuously assess their cardiac condition through regular ECG monitoring and utilize the computing device 100 of the present invention for the early detection and prevention of heart disease. More specifically, after acquiring electrocardiogram (ECG) data from the target individual, this data is preprocessed to remove noise and refine the signal. This preprocessing can include removing unwanted signal components and highlighting important signal features to improve the quality of the ECG data, as described above. It can also include dividing each ECG signal into appropriate units (a predetermined window size) for processing. The predetermined window size can generally be defined as a segment containing important information in the ECG data, for example, a length of 30 seconds to 1 minute. During this process, the ECG data is divided into fixed time intervals, allowing each segment to be analyzed independently. Preprocessed electrocardiogram data is input into an embedding model (e.g., an encoder extracted from a self-reconstruction model pre-trained via a first training dataset), and latent vectors (or embedding vectors) are generated from each data point. The generated latent vectors are compared with existing vectors stored in a vector database, and each vector is classified into a specific cluster based on its similarity. Since each cluster has a specific pattern that reflects cardiac status, the risk of cardiac disease is assessed based on which cluster the latent vector belongs to.

[0028] Furthermore, the computing device 100 can generate stratified information regarding the risk of cardiac disease based on classification results in which multiple latent vectors are classified into multiple clusters. More specifically, in the case of electrocardiogram data of a target individual, the data is divided into specific time units during the preprocessing process and acquired as multiple ROI signals. Each ROI signal is then processed as input to an embedded model, thereby generating latent vectors for each of the multiple ROI signals. In this case, predictive information regarding the risk of cardiac disease can be generated according to the classification results in which each latent vector is classified into which cluster and to what extent. As a more specific example, if the electrocardiogram data of a subject being predicted consists of 10 30-second ROI signals, each of these 10 ROI signals can be transformed into 10 latent vectors via an embedded model, and these 10 vectors can be classified into one of four predetermined clusters. Here, each predetermined cluster represents a specific cardiac condition, with the first cluster being the group with the highest risk and the groups with decreasing risk moving towards the fourth cluster. The computing device 100 can predict the overall risk based on how the 10 input signals are classified into each cluster. For example, if eight signals belong to the first cluster and two signals belong to the second cluster, the patient's risk of heart disease can be assessed as very high. In contrast, if five signals belong to the second cluster, three to the third cluster, and two to the fourth cluster, the risk can be assessed as moderate. If two signals belong to the third cluster and eight to the fourth cluster, the risk can be assessed as low, and if all ten signals belong to the fourth cluster, the patient's risk of heart disease can be assessed as very low. In other words, the computing device 100 of the present invention can predict a patient's risk of cardiac disease in a hierarchical form by analyzing the ROI signal of electrocardiogram data using an embedded model to obtain latent vectors, and by evaluating which of the predetermined clusters each latent vector belongs to via a clustering model based on a training dataset. In other words, the computing device 100 compares the latent vectors generated by the embedded model with predetermined clusters to determine which cluster each vector belongs to, and evaluates the patient's cardiac condition multidimensionally based on this information. Such a hierarchical risk prediction method improves the accuracy of electrocardiogram data analysis and aids in a comprehensive understanding of the patient's cardiac condition. Therefore, the computing device of the present invention can provide important information for medical professionals to establish appropriate preventive measures or treatment plans by systematically and clearly hierarchically providing the patient's risk of cardiac disease. This can contribute to patient health management by enabling early detection and appropriate response to cardiac disease.

[0029] Figure 14 shows an illustrative flowchart illustrating the process of generating a cardiac disease risk prediction model through ensemble learning of multiple tree sequence models according to one embodiment of the present invention. Referring to Figure 14, the steps for generating a cardiac disease risk prediction model may include: acquiring user metadata corresponding to each of multiple electrocardiogram data (S3500); acquiring multiple latent vectors and cluster information corresponding to the multiple latent vectors from a vector database (S3600); and generating a cardiac disease risk prediction model by performing ensemble learning, which involves training multiple tree models based on HRV characteristic information, user metadata, multiple latent vectors, and cluster information corresponding to the latent vectors, and integrating the outputs of each tree model (S3700). More specifically, step S3500, the step of acquiring user metadata, may include the process of collecting personal health information such as the patient's age, sex, medical history, and lifestyle. Such information accurately reflects an individual's health status and characteristics and has a significant impact on the interpretation of electrocardiogram data. In particular, such metadata is used as an important variable necessary to more accurately assess the risk of cardiac disease. This enables customized predictions and assessments that take into account the patient's personal health factors. In step S3600, multiple latent vectors and corresponding cluster information are retrieved from the vector database. Latent vectors summarize the characteristics of the electrocardiogram data, and cluster information indicates the pattern of a specific cardiac condition or disease to which the vector belongs. This allows us to determine which cluster a patient's electrocardiogram data belongs to and to assess the risk of cardiac disease indicated by that cluster. In step S3700, multiple tree models are trained based on HRV characteristic information, user meta information, latent vectors, and cluster information. Each tree model predicts the risk of cardiac disease using various tree-based machine learning algorithms, such as decision trees, random forests, and gradient boosting trees. Here, cluster information can be obtained from a vector database and may include information about the cluster to which each vector belongs, as well as information about the distance between vectors. For example, cluster information may provide which cluster each latent vector belongs to, and distance information indicating the similarity or difference between vectors within the cluster. Such information plays an important role in evaluating which cluster a particular electrocardiogram pattern belongs to, and how similar or different this pattern is compared to other electrocardiogram data. This allows for a more accurate analysis of the characteristics of the electrocardiogram data and a better understanding of whether the data is related to a particular disease or condition. More specifically, the process of training multiple tree sequence models based on HRV characteristic information, user meta information, latent vectors, and cluster information is as follows: First, HRV characteristic information is a heart rate variability index extracted from electrocardiogram data, reflecting the activity of the cardiac autonomic nervous system. User metadata is information indicating the individual health status of the patient, such as age, sex, medical history, and lifestyle. Latent vectors are values ​​that represent the characteristics of the electrocardiogram data in a low-dimensional space, and cluster information indicates which cardiac conditions or diseases these vectors are associated with. These various pieces of information are used as input variables to train multiple tree-based models. For example, a random forest model uses these input variables to construct multiple decision trees and combines the results of each tree to provide a final prediction. Gradient boosting trees aim for more accurate predictions by correcting the errors of previous models at each step through continuous model learning.

[0030] In this case, cluster information can be particularly important. Distance information between each latent vector's cluster and other vectors is used to gain a deeper understanding of the characteristics of the electrocardiogram data and to assess the risk of cardiac disease. Such information acts as a key decision factor in multiple tree models, and each model learns patterns in the data based on this information. In the final ensemble process, the prediction results of the individual tree models are integrated to derive a single, comprehensive prediction result. During this process, the weights of each model are adjusted to improve the reliability and accuracy of the final prediction. The ensemble process complements the weaknesses of the individual models and combines their strengths to provide more robust and consistent predictions. As a result, this integrated learning and ensemble process makes it possible to accurately and precisely predict the risk of cardiac disease by reflecting the multidimensional characteristics of electrocardiogram data. Subsequently, ensemble learning is performed to integrate the outputs of each tree model, combining the prediction results of the individual models to improve the accuracy and reliability of the final prediction. Through ensemble learning, the risk of cardiac disease can be predicted with greater precision, thereby enabling a comprehensive assessment of the patient's health status and the establishment of early diagnosis and preventive treatment plans. In other words, the present invention can combine the strengths of various models through ensemble learning of multiple tree sequence models to provide even higher predictive performance than a single model and improve robustness to data noise and variability. This allows the model to provide consistent predictions for various patient data and reduces predictive uncertainty. In summary, the computing device of the present invention is characterized by utilizing three neural network models to more accurately predict the risk of cardiac disease. First, the embedding model converts electrocardiogram data into low-dimensional latent vectors to summarize important signal features. Second, the clustering model clusters the latent vectors to determine the cluster to which each vector belongs. Finally, the cardiac disease risk prediction model combines HRV characteristic information, user metadata, latent vectors, and cluster information to predict the risk of cardiac disease. Through this integrated approach, the computing device can predict the risk of cardiac disease more precisely and consistently. In particular, in the process of predicting the final cardiac disease risk, multiple tree-sequence models are used utilizing four variables: HRV characteristic information, user meta information, latent vectors, and cluster information. These models each generate their own outputs. Through ensemble learning, these outputs are integrated to produce the final output, which predicts the risk of cardiac disease. This configuration improves the accuracy of cardiac disease risk prediction and enables a more multidimensional and comprehensive assessment through various combinations of variables. This more accurately reflects the individual health status of patients and plays a crucial role in enabling medical staff to clearly understand patient risks and establish optimal treatment plans.

[0031] As a result, the cardiac disease risk prediction model generated through final learning completion can provide hierarchical predictive information about the future risk of cardiac disease based on the patient's electrocardiogram data. This hierarchical information plays a crucial role in multidimensionally assessing the patient's cardiac health and establishing individualized treatment plans. This contributes to the early detection and management of cardiac disease by enabling medical staff to have a clearer understanding of the patient's risk and to implement more precise treatment and preventive measures. Specifically, this system comprehensively analyzes electrocardiogram data and patient metadata to categorize the likelihood of developing cardiac disease into various risk levels. For example, by providing risk levels such as low, medium, and high, medical staff can clearly understand how much attention they should pay to specific patients. This increases the likelihood of early diagnosis and treatment for high-risk patients, while enabling less unnecessary testing and more efficient health management for low-risk patients. As a result, it can play a crucial role in supporting the efficient allocation of medical resources, preventing complications from cardiac disease, and improving patients' quality of life. The embodiments described above can be implemented using hardware components, software components, and / or combinations of hardware and software components. For example, the apparatus, methods, and components described in the embodiments can be implemented using a general-purpose computer or a special-purpose computer, such as a processor, controller, ALU (arithmetic logic unit), digital signal processor, microcomputer, FPGA (field programmable gate array), PLU (programmable logic unit), microprocessor, or any other device capable of executing and responding to instructions. The processing device can run an operating system (OS) and software applications run on the OS. The processing device can also access, store, manipulate, process, and generate data in response to software execution. For convenience of understanding, the processing device has sometimes been described as using only one, but a person with ordinary skill in the art will see that the processing device can include multiple processing elements and / or multiple types of processing elements. For example, the processing device can include multiple processors or one processor and one controller. Furthermore, other processing configurations, such as parallel processors, are also possible. Software may include computer programs, code, instructions, or a combination of one or more of these, which can configure a processing unit to operate as desired, or which can instruct a processing unit independently or collectively. Software and / or data may be stored on any type of machine, component, physical device, virtual device, computer storage media, or device for interpretation by a processing unit or for providing instructions or data to a processing unit. Software may also be distributed across a networked computer system and stored or executed in a distributed manner. Software and data may be stored on computer-readable recording media.

[0032] The methods according to the embodiment can be implemented in the form of program instructions delivered via various computer means and recorded on a computer-readable medium. The computer-readable medium can store program instructions, data files, data structures, etc., individually or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or they may be publicly known and usable by those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes; optical media such as CD-ROMs and DVDs; magneto-optical media such as floptical disks; and hardware devices such as ROMs, RAMs, and flash memory that are specially configured to store and execute program instructions. Examples of program instructions include not only machine code, such as that produced by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules in order to perform the operations of the embodiment, and vice versa. As described above, although embodiments have been illustrated with limited drawings, a person with ordinary skill in the art can apply various technical modifications and variations thereto. For example, the described techniques may be performed in a different order than described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or joined in a different manner than described, or replaced or substituted by other components or equivalents, and still the appropriate results may be achieved. Therefore, other realizations, other embodiments, and claims equivalent to those described below also fall within the scope of the claims. [Explanation of symbols]

[0033] 100 computing devices 110 processors 120 memory 130 programs 140 displays

Claims

1. In a method performed via a processor included in a computing device, The processor performs the steps of obtaining discontinuous individual heartbeats from electrocardiogram data, which is atypical data consisting of continuous signals acquired from multiple patients, The process includes the step of the processor inputting the acquired individual heartbeats into a deep learning model for predicting the patient's cardiac disease, thereby training the deep learning model to predict each cardiac disease class of the acquired individual heartbeats, The aforementioned method, The processor further includes the step of applying a second individual heartbeat obtained from at least one electrocardiogram data of the acquired individual heartbeats to the learned deep learning model to determine a threshold for classifying the cardiac disease class. A method for training deep learning models for predicting cardiac disease.

2. The aforementioned learning step is, A method for training a deep learning model for predicting cardiac disease according to claim 1, comprising the step of training the deep learning model using a first individual heartbeat obtained from at least one electrocardiogram data from among the acquired individual heartbeats.

3. The aforementioned acquisition step is, The steps include filtering each of the aforementioned electrocardiogram data to remove noise, A method for training a deep learning model for predicting cardiac disease according to claim 1, comprising the step of subdividing each of the electrocardiogram data from which the noise has been removed into individual heartbeats by applying a peak sensing algorithm to each of the electrocardiogram data from which the noise has been removed.

4. The aforementioned learning step is, A method for training a deep learning model for predicting cardiac disease according to claim 1, comprising the step of optimizing the parameters of the deep learning model using binary cross-entropy and an optimizer.

5. The aforementioned decision-making step is: The steps include: collecting a probability score for each of the individual heartbeats separated from the same electrocardiogram data for each of the second individual heartbeats; The steps include: averaging the probability scores for each of the collected second individual heartbeats to derive a final probability score; A method for training a deep learning model for predicting cardiac disease according to claim 1, comprising the step of fine-tuning thresholds for classifying cardiac disease classes based on the derived final probability scores.

6. The threshold determined above is The method for training a deep learning model for predicting cardiac disease according to claim 1, characterized in that the data is stored together with the weights of the deep learning model.

7. In a method performed via a processor included in a computing device, The processor receives electrocardiogram data, which is atypical data consisting of continuous signals, from the patient. The steps include obtaining discontinuous individual heartbeats from the received electrocardiogram data, The steps include: inputting the acquired individual heartbeats into a deep learning model to derive a probability value that predicts each of the acquired individual heartbeats as belonging to a specific cardiac disease class; The step includes predicting the patient's cardiac disease using the derived probability value, The aforementioned deep learning model, This model was trained using individual heartbeats obtained from electrocardiogram data of multiple patients. A threshold for classifying the cardiac disease class is determined by applying a second individual heartbeat obtained from at least one electrocardiogram data from the individual heartbeats acquired above. The average of the derived probability values ​​is compared with the determined threshold to classify the patient's cardiac disease class. A method for predicting cardiac disease using a deep learning model, characterized by the following features.

8. The aforementioned acquisition step is, The steps include filtering the received electrocardiogram data to remove noise, A method for predicting cardiac disease using a deep learning model according to claim 7, comprising the step of subdividing the electrocardiogram data into individual heartbeats by applying a peak sensing algorithm to the electrocardiogram data from which the noise has been removed.

9. The aforementioned deep learning model, A method for predicting cardiac disease using a deep learning model according to claim 7, characterized in that the parameters are optimized based on binary cross-entropy and an optimizer.

10. Processor and Network interface and Memory and The system includes a computer program that is loaded into the memory and executed by the processor, The aforementioned processor, A computing device that performs the method according to claim 1 or 7 by executing one or more instructions included in the computer program.

11. Combined with a computing device, A computer program stored on a computing device-readable recording medium for performing the method according to claim 1 or 7.

Citation Information

Patent Citations

  • Multi-lead electrocardiosignal feature point extraction method combining deep learning and electrophysiological knowledge

    CN113951893A

  • Method and apparatus for high accuracy photoplethysmogram based atrial fibrillation detection using wearable device

    JP2019084343A

  • Automatic electrocardiogram analysis method and device based on artificial intelligence self-learning

    JP2020536693A

  • Electrocardiographic abnormality detection network training method, and electrocardiographic abnormality early warning method and device

    JP2022045870A

  • Methods for detecting risk of torsades de pointes

    JP2022535574A