# US 2025/0366791 A1 · Systems and methods for a foundation model for cardiac data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0366791 A1
- Document ID: US20250366791A1
- Status: Published application
- Kind: A1
- Application number: 18/733,678
- Filed: 2024-06-04
- Published: 2025-12-04
- Earliest claimed: 2024-06-04
- Assignees: Eko Health, Inc.
- Applicants: Eko Health, Inc.
- Inventors: George Mathew; John Prince; Daniel Barbosa; Subramaniam Venkatraman
- Web page: https://patentgrep.com/patent/US20250366791A1

## CPC

- A61B 5/7267: {involving training the classification device}
- A61B 5/02028: {Determining haemodynamic parameters not otherwise provided for, e.g. cardiac contractility or left ventricular ejection fraction}
- A61B 5/08: Measuring devices for evaluating the respiratory organs
- A61B 5/346: Analysis of electrocardiograms
- A61B 5/361: Detecting fibrillation
- A61B 5/7221: {Determining signal validity, reliability or quality (preventing, reducing or removing noise induced by motion artefacts A61B5/7207; noise originating from a therapeutic or surgical apparatus A61B5/7217)}
- A61B 5/742: {using visual displays (displays for heart-related electrical signals, e.g. ECG, A61B5/339)}
- A61B 7/04: Electric stethoscopes
- G16H 10/60: for patient-specific data, e.g. for electronic patient records
- A61B 5/021: Measuring pressure in heart or blood vessels
- A61B 2560/045: with a separable interface unit, e.g. for communication
- A61B 2560/0468: Built-in electrodes
- A61B 2562/0204: Acoustic sensors
- A61B 2562/0219: Inertial sensors, e.g. accelerometers, gyroscopes, tilt switches
- A61B 2562/225: Connectors or couplings
- A61B: DIAGNOSIS; SURGERY; IDENTIFICATION (usefulness limited to only animals A61D)
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

The present description relates generally to methods and systems for detecting cardiovascular conditions using a foundation model. In one example, a method includes obtaining a synchronized ECG signal and a PCG signal from a patient, converting the PCG signal to a PCG mel-spectrogram, entering the ECG signal and the PCG mel-spectrogram as input to a trained specialized model configured to output a classification output based on the ECG signal and the PCG mel-spectrogram, the trained specialized model trained with labeled ECG and PCG signal pairs using a foundation model trained with unlabeled ECG and PCG signal pairs, and storing the classification output in memory and/or displaying the classification output on a display device.

## Claims

### Claim 1

A method, comprising:
obtaining an ECG signal and a PCG signal from a patient, wherein the ECG signal and PCG signal are synchronized;
converting the PCG signal to a PCG mel-spectrogram;
partitioning the ECG signal into segments and partitioning the PCG mel-spectrogram into patches;
forming an input sequence from the segments and the patches;
entering the input sequence as input to a trained specialized model configured to output a classification output based on the input sequence, the trained specialized model trained with labeled ECG and PCG signal pairs using a foundation model trained with unlabeled ECG and PCG signal pairs; and
storing the classification output in memory and/or displaying the classification output on a display device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the classification output includes an indication of whether or not the patient exhibits a patient condition.

### Claim 3 (depends on 2)

The method of claim 2, wherein the patient condition includes murmur, atrial fibrillation, low ejection fraction, or pulmonary hypertension.

### Claim 4 (depends on 1)

The method of claim 1, wherein each segment of the ECG signal spans a different time range of the ECG signal and includes the entire ECG signal over that time range, and wherein each patch includes a portion of a frequency range of the PCG mel-spectrogram over a time range of the PCG signal, such that the PCG mel-spectrogram is partitioned into rows and columns of patches.

### Claim 5 (depends on 1)

The method of claim 1, wherein entering the input sequence as input to the trained specialized model comprises entering the input sequence as input to an encoder of the trained specialized model, the encoder trained to output encoded tokens based on the input sequence, and entering the encoded tokens as input to a classification head trained to output the classification output based on the encoded tokens.

### Claim 6 (depends on 5)

The method of claim 5, wherein the encoder and the classification head are trained with the labeled ECG and PCG signal pairs.

### Claim 7 (depends on 6)

The method of claim 6, wherein the labeled ECG and PCG signal pairs are used to further train a pre-trained encoder to form the encoder, the pre-trained encoder trained with the unlabeled ECG and PCG signal pairs and a decoder, wherein training the pre-trained encoder with the unlabeled ECG and PCG signal pairs and the decoder comprises, for each unlabeled ECG and PCG signal pair, converting the PCG signal to a mel-spectrogram, partitioning the ECG signal into segments and partitioning the mel-spectrogram into patches, processing a subset of the segments and a subset of the patches with the pre-trained encoder to generate encoded tokens, combining the encoded tokens with a plurality of mask tokens to form a full set of tokens, and processing the full set of tokens with the decoder to generate a reconstructed ECG signal and mel-spectrogram, and wherein the plurality of mask tokens correspond to a remainder of the segments and the patches.

### Claim 8 (depends on 1)

The method of claim 1, wherein the trained specialized model is a first trained specialized model, and wherein the classification output includes an indication of a quality level of the ECG signal and the PCG signal, and further comprising, responsive to the quality level exceeding a threshold, entering the input sequence as input to a second trained specialized model configured to output a second classification output based on the input sequence, the second trained specialized model trained with further labeled ECG and PCG signal pairs using the foundation model.

### Claim 9

A data processing system, comprising:
memory storing instructions and a trained specialized model, the trained specialized model trained with labeled, synchronized ECG and PCG signal pairs using a foundation model trained with unlabeled, synchronized ECG and PCG signal pairs, the foundation model including a pre-trained encoder that is pre-trained with the unlabeled, synchronized ECG and PCG signal pairs and a decoder, and the trained specialized model includes an encoder that comprises the pre-trained encoder that is further trained with the labeled, synchronized ECG and PCG signals pairs; and
one or more processors configured to execute the instructions to:
obtain a patient ECG signal and a patient PCG signal from a patient;
convert the patient PCG signal to a PCG mel-spectrogram;
enter the patient ECG signal and the PCG mel-spectrogram as input to the trained specialized model, the trained specialized model configured to output a classification output based on the patient ECG signal and the PCG mel-spectrogram; and
store the classification output in memory and/or display the classification output on a display device.

### Claim 10 (depends on 9)

The data processing system of claim 9, wherein the classification output includes an indication of whether or not the patient exhibits a patient condition.

### Claim 11 (depends on 10)

The data processing system of claim 10, wherein the patient condition includes murmur, atrial fibrillation, low ejection fraction, or pulmonary hypertension.

### Claim 12 (depends on 9)

The data processing system of claim 9, wherein entering the patient ECG signal and the PCG mel-spectrogram as input to the trained specialized model comprises partitioning the patient ECG signal into a plurality of segments and partitioning the PCG mel-spectrogram into a plurality of patches and forming an input sequence that includes the plurality of segments and the plurality of patches, and entering the input sequence as input to the trained specialized model.

### Claim 13 (depends on 12)

The data processing system of claim 12, wherein entering the input sequence as input to the trained specialized model comprises entering the input sequence as input to the encoder of the trained specialized model, the encoder trained to output encoded tokens based on the input sequence, and entering the encoded tokens as input to a classification head trained to output the classification output based on the encoded tokens.

### Claim 14 (depends on 13)

The data processing system of claim 13, wherein the encoder and the classification head are trained with the labeled, synchronized ECG and PCG signal pairs.

### Claim 15 (depends on 14)

The data processing system of claim 14, wherein each unlabeled, synchronized ECG and PCG signal pair is processed to form a respective training data input set that includes a plurality of unmasked ECG segments and a plurality of unmasked PCG mel-spectrogram patches, each respective training data input set further processed to randomly mask a subset of ECG segments and a subset of PCG mel-spectrogram patches to form a respective masked training data input set, each respective masked training data input set configured to be entered as input to the pre-trained encoder, and the pre-trained encoder is pre-trained to reconstruct a respective training data input set from a corresponding masked training data input set.

### Claim 16

A method for generating a specialized model from a foundation model, comprising:
training a transformer-based foundation model using a plurality of unlabeled training data input sets, each unlabeled training data input set comprising a first ECG signal and a first PCG mel-spectrogram;
training the specialized model using a plurality of labeled training data input sets, each labeled training data input comprising a second ECG signal, a second PCG mel-spectrogram, and a label; and
deploying the trained specialized model to detect a patient condition based on a patient ECG signal and a patient PCG signal, including converting the patient PCG signal to a PCG mel-spectrogram, partitioning the patient ECG signal into a plurality of segments and partitioning the PCG mel-spectrogram into a plurality of patches, forming an input sequence that includes the plurality of segments and the plurality of patches, and entering the input sequence as input to the trained specialized model.

### Claim 17 (depends on 16)

The method of claim 16, wherein training the transformer-based foundation model using the plurality of unlabeled training data input sets comprises, for each unlabeled training data input set, partitioning the first ECG signal into segments and partitioning the first PCG mel-spectrogram into patches, processing a subset of the segments and a subset of the patches with an encoder to generate encoded tokens, combining the encoded tokens with a plurality of mask tokens to form a full set of tokens, and processing the full set of tokens with a decoder to generate a reconstructed ECG signal and PCG mel-spectrogram, wherein the plurality of mask tokens correspond to a remainder of the segments and the patches.

### Claim 18 (depends on 17)

The method of claim 17, wherein training the transformer-based foundation model further comprises calculating a loss function based on the reconstructed ECG signal and PCG mel-spectrogram and the first ECG signal and the first PCG mel-spectrogram, and updating the encoder and the decoder based on the loss function.

### Claim 19 (depends on 17)

The method of claim 17, wherein training the specialized model using the plurality of labeled training data input sets comprises, for each labeled training data input set, partitioning the second ECG signal into segments and partitioning the second PCG mel-spectrogram into patches, processing an entirety of the segments and an entirety of the patches with the encoder to generate second encoded tokens, and processing the second encoded tokens with a classification head to generate a classification output.

### Claim 20 (depends on 19)

The method of claim 19, wherein training the specialized model further comprises calculating a loss function based on the classification output and the label, and updating the classification head and the encoder based on the loss function.
