Method for defining signal templates in implantable cardiac devices

Template formation methods for use in implantable cardiac rhythm management devices. In an illustrative method, a signal is captured signal an implanted cardiac rhythm management device, and parameters for analysis of the captured signal are then defined. Then, in the example, additional signals can be captured and used to either verify or discard the captured signal defined parameters. The template formation methods provide for creating a robust template to compare with sensed cardiac complexes. Devices and systems configured to perform template formation and verification methods are also shown.

RELATED APPLICATIONS

The present invention is related to U.S. patent application Ser. No. 10/999,274, filed Nov. 29, 2004, entitled METHOD AND APPARATUS FOR BEAT ALIGNMENT AND COMPARISON, the disclosure of which is incorporated herein by reference.

FIELD

The present invention relates generally to implantable cardiac systems that detect, sense and classify cardiac signals. More particularly, the present invention relates to implantable medical devices that generate a template from which the medical device can make comparisons to a patient's normal cardiac complex.

BACKGROUND

Implantable cardiac rhythm management devices are an effective treatment in managing irregular cardiac rhythms in particular patients. Implantable cardiac rhythm management devices are capable of recognizing and treating arrhythmias with a variety of therapies. To effectively deliver these therapies, however, cardiac rhythm management devices must first accurately sense and classify an episode.

In order to apply the proper therapy in responding to an episode, some cardiac rhythm management devices compare sensed cardiac signals to a previously stored “template” representing normal sinus rhythm (NSR) or other “template” frequently intended to represent the patient's NSR. This stored NSR template must accurately characterize a patient's true NSR in order to be used in a process that properly identifies potentially fatal deviations from normal cardiac activity.

Problems arise when the cardiac rhythm management device inaccurately compares a sensed cardiac complex to a stored NSR template, and as a result, misclassifies the sensed cardiac complex. The severity of this problem escalates if the cardiac rhythm management device inappropriately delivers therapy due to the misclassification. In illustration, when a particular group of sensed complexes are erroneously compared to a stored template because of an improper alignment to the template, a cardiac rhythm management device may mistakenly classify these sensed complexes as a mismatch and even possibly as a tachyarrhythmia.

SUMMARY

The present invention is directed toward template formation methods for use in cardiac rhythm management devices. The template formation methods of the present invention provide for creating a robust template to compare with sensed cardiac complexes. In an illustrative embodiment, the present invention is used to form templates having a template data set and template alignment parameters for use in aligning captured signals with the template data set prior to comparing the template data set to captured signals.

An illustrative embodiment includes a method of cardiac signal analysis comprising sensing a first cardiac event, configuring template parameters for analysis of the first cardiac event, defining a first sensed signal for the first cardiac event using the template parameters, sensing a second cardiac event, defining a second sensed signal for the second cardiac event using the template parameters, and comparing the second sensed signal to the first sensed signal to determine whether the first sensed signal and template parameters are suitable for defining a cardiac event template. In another embodiment, the illustrative method is performed such that the step of configuring template parameters includes selecting a rule for identifying a fiducial point, wherein the rule is selected from among a set of rules, the rule is selected in light of the characteristics of the first cardiac event, and the rule for identifying a fiducial point becomes one of the template parameters. In a further embodiment, the step of configuring template parameters further includes selecting a number of samples of the first sensed signal around the fiducial point, wherein the configuration of samples around the fiducial point becomes one of the template parameters. The step of selecting a number of samples may include identifying the start and end of a cardiac event. For some embodiments, the set of rules includes an amplitude rule related to the relative amplitudes of peaks in the sensed signal, and a location rule related to the location of a peak in the sensed signal.

Another illustrative embodiment includes a method of cardiac signal analysis including forming a template for cardiac event comparisons, the step of forming a template comprising sensing a first cardiac event, identifying a first fiducial point in the first cardiac event using a set of rules, sensing a second cardiac event, identifying a second fiducial point in the second cardiac event using the set of rules, determining whether the first fiducial point and second fiducial point were identified using the same rule, and, if not, discarding the first cardiac event.

In yet another embodiment, a method of cardiac signal analysis comprises sampling a signal using electrodes implanted in a patient's torso for capturing cardiac signals, defining a first sensing window around a first fiducial point to capture a QRS segment, observing the definition of the first sensing window to create template parameters, defining a second sensing window around a second fiducial point using the template parameters, and comparing data in the first sensing window to data in the second sensing window to verify whether to define a valid template using the template parameters.

Another embodiment includes a method of cardiac signal template formation comprising receiving a first cardiac signal from implanted electrodes, selecting a fiducial point in the first cardiac signal, forming a template around the fiducial point, and verifying the template by receiving a second cardiac signal and using the template to compare the second cardiac signal to the first cardiac signal.

DETAILED DESCRIPTION OF THE DRAWINGS

The following detailed description should be read with reference to the drawings, in which like elements in different drawings are numbered identically. The drawings, which are not necessarily to scale, depict selected embodiments and are not intended to limit the scope of the invention. Those skilled in the art will recognize that many of the examples provided have suitable alternatives that may be utilized.

The present invention is generally related to implantable cardiac treatment systems that provide therapy for patients who are experiencing particular arrhythmias. The present invention is directed toward detection architectures for use in cardiac rhythm devices. In particular, the present invention is suited for implantable cardiac treatment systems capable of detecting and treating harmful arrhythmias. Although the detection architecture is intended primarily for use in an implantable medical device that provides defibrillation therapy, the invention is also applicable to cardiac rhythm devices (including external devices) directed toward anti-tachyarrhythmia pacing (ATP) therapy, pacing or other cardiac stimulation techniques, and other cardiac rhythm devices capable of performing a combination of therapies to treat rhythm disorders.

To date, implantable cardiac treatment systems have been either epicardial systems or transvenous systems. For example, transvenous systems can be implanted generally as shown inFIG. 1B. However, as further explained herein, the present invention is also adapted to function with a subcutaneous implantable cardiac treatment system as shown inFIG. 1A.

FIG. 1Aillustrates a subcutaneously placed implantable cardiac treatment system, in particular, an implantable cardioverter/defibrillator (ICD) system. In this illustrative embodiment, the heart10is monitored using a canister12coupled to a lead system14. The canister12may include an electrode16thereon, while the lead system14connects to sensing electrodes18,20, and a coil electrode22that may serve as a shock or stimulus delivery electrode as well as a sensing electrode. The various electrodes define a number of sensing vectors V1, V2, V3, V4. It can be seen that each vector provides a different vector “view” of the heart's10electrical activity. The system may be implanted subcutaneously as illustrated, for example, in U.S. Pat. Nos. 6,647,292 and 6,721,597, the disclosures of which are both incorporated herein by reference. By subcutaneous placement, it is meant that electrode placement does not require insertion of an electrode into a heart chamber, in or on the heart muscle, or the patient's vasculature.

FIG. 1Billustrates a transvenous ICD system. The heart30is monitored and treated by a system including a canister32coupled to a lead system34including atrial electrodes36and ventricular electrodes38. A number of configurations for the electrodes may be used, including placement within the heart, adherence to the heart, or disposition within the patient's vasculature.

FIG. 2depicts a template formation system40in accordance with an illustrative embodiment of the present invention. The template formation system40can be used to create and store multiple static and/or dynamic templates. Static templates are cardiac complexes that are captured previously in time and stored for reference by the device. Alternatively, dynamic templates are cardiac complexes that are continuously or periodically captured and/or updated.

The template formation system40of the present invention generally comprises a multi-stage data analysis—signal collection42, fiducial point selection44, pre-template formation46, template optimization48, and template verification50. Sections of the multi-stage data analysis, however, may operate autonomously, as will be discussed in detail below. As such, a particular process in the template formation system40may be bypassed or may function independently in the device's overall detection architecture.

The system, in an illustrative embodiment, not only identifies NSR signals for comparison to sensed events, it also defines and re-defines the sensing parameters (for example, fiducial point selection, window size, and/or window/fiducial point alignment). These signals and parameters can then be used for making comparisons with a sensed cardiac signal to determine whether the signal is NSR.

The processes within the template formation system40may additionally create or modify a template to accommodate for morphological changes in the patient's cardiac complex. For example, the ultimately formed template may be continually updated to adapt to certain morphological changes in the sensed cardiac complex. As such, the template formation system40of the present invention is adaptive and this adaptive characteristic may be automated.

The template formation system40is initiated by collecting a cardiac signal42. The cardiac signal may be collected using any suitable capture method. This sensed cardiac complex is then processed for proper alignment. A method for repetitive and reliable alignment of a collected signal enhances the accuracy when comparing sensed signals to a stored template. In some embodiments, the step of collecting the cardiac signal42may include a signal certification process such as that illustrated in co-pending U.S. patent application Ser. No. 10/858,598, filed Jun. 1, 2004, now U.S. Pat. No. 7,248,921, and entitled METHOD AND DEVICES FOR PERFORMING CARDIAC WAVEFORM APPRAISAL, the disclosure of which is incorporated herein by reference.

In several embodiments of the present invention, a fiducial point for alignment is generally established using a preferred peak of the sensed cardiac complex. The fiducial point may be selected manually for each patient, or alternatively, the fiducial point may be selected using a rule-based method. In preferred embodiments, the fiducial point is selected by analyzing the repetitive nature of peaks on ‘n’ consecutive complexes. In one embodiment of the present invention, the fiducial point selection process44is based on the results of the most recently sensed cardiac complex and the three (3) cardiac complexes previous to the most recently sensed complex. Alternative embodiments may base the fiducial point selection process44on the repetitive nature of as many as 20 consecutive complexes to as few as an ongoing beat to beat determination.

A preferred fiducial point selection process44implements a set of rules to choose the most appropriate peak for alignment in a cardiac complex. In preferred embodiments, the fiducial point selection process44is based on an amplitude rule and a location rule. Additionally, due to the nature of the fiducial point selection process44rules, while the R-wave will often be chosen since it is frequently associated as the most striking phase deflection observed in a cardiac complex, the R-wave is not necessarily selected as the fiducial point for alignment in any given cardiac complex.

The first rule used by the illustrative fiducial point selection process44is the amplitude rule. This rule sets the fiducial point on the peak (either positive or negative) of the QRS cardiac complex having the greatest relative amplitude. The amplitude rule is set forth as:If the positive peak amplitude >2 times the negative peak amplitude, then fiducial point selection is on the peak of the positive phase deflection—“positive amplitude”;If the negative peak amplitude >2 times the positive peak amplitude, then fiducial point selection is on the peak of the negative phase deflection—“negative amplitude”;If neither the positive peak nor the negative peak satisfies the amplitude rule, then the location rule, set forth below, controls.

The relative amplitudes for the positive and negative peaks are measured from the patient's isoelectric line52—illustrated inFIG. 3. The isoelectric line represents a signal lacking significant detected phase deflection, i.e. a detected signal level that does not indicate cardiac activity and provides a baseline for signal analysis. The fiducial point selection process44then determines the largest positive and negative phase deflections from the isoelectric line52. In the present example, the amplitude of the largest positive phase deflection is shown as54. Similarly, the amplitude of the largest negative phase deflection is shown as56. The relative amplitudes of both the positive phase deflection54and negative phase deflection56are then assessed. If the relative amplitude of the positive phase deflection is greater than two times the relative amplitude of the negative phase deflection, the fiducial point selection is suggested to be on the positive amplitude peak.

In the present example, the fiducial point selection process is established by the repetitive nature of four consecutive cardiac complexes. Cardiac complexes58,60,62and64each demonstrate a positive peak amplitude greater than two times (2×) its corresponding negative peak amplitude. After the fourth consecutive cardiac complex64, the fiducial point selection process establishes the positive peak as the fiducial point for alignment based on the amplitude rule. The triangles shown inFIG. 3represent points where the amplitude rule has been met in four consecutive complexes. Additionally, each triangle signifies an established fiducial point for template alignment.

FIG. 4shows fiducial point selection of a negative peak based on the amplitude rule. In the present example, the fiducial point selection process is established by the repetitive nature of a sensed cardiac complex and the previous three sensed cardiac complexes (four consecutive cardiac complexes). Cardiac complexes68,70,72and74each demonstrate a negative peak amplitude greater than two times (2×) its corresponding positive peak amplitude. Specifically, the amplitude of the largest negative phase deflection56is assessed to be two times the relative amplitudes of the positive phase deflection54. After the fourth consecutive cardiac complex74, the fiducial point selection process establishes the negative peak as the fiducial point for alignment based on the amplitude rule. The triangles shown inFIG. 4represents a point where the amplitude rule has been met for four consecutive complexes. Additionally, each triangle signifies an established fiducial point for template alignment.

The second rule used by the illustrative peak alignment process is the location rule. This rule is premised on setting the fiducial point on the peak of the first significant phase deflection (either positive or negative) occurring in time within the ventricular cardiac complex. In certain embodiments, the location rule is considered when the amplitude rule cannot be established. Alternate embodiments utilize the location rule without deference to the amplitude rule. The location rule is set forth as:If a significant positive phase deflection precedes a significant negative phase deflection in a cardiac complex, then fiducial point selection is on the peak of the positive phase deflection—“positive location”;If a significant negative phase deflection precedes a significant positive phase deflection in a cardiac complex, then fiducial point selection is on the peak of the negative phase deflection—“negative location”.

FIG. 5shows an illustrative fiducial point selection of a positive peak based on the location rule. In the present example, the fiducial point selection process is established by the repetitive nature of four consecutive cardiac complexes. Cardiac complexes78,80,82and84each show a significant positive phase deflection before a significant negative phase deflection in the cardiac complex. After the fourth consecutive cardiac complex84, the fiducial point selection process establishes the peak of the positive phase deflection as the fiducial point for alignment based on the location rule. The triangles shown inFIG. 5represent points where the location rule has been met in four consecutive complexes. Additionally, each triangle signifies an established fiducial point for template alignment.

FIG. 6shows an illustrative fiducial point selection of a negative peak based on the location rule. The fiducial point selection process inFIG. 6is established by the repetitive nature of four consecutive cardiac complexes. Cardiac complexes88,90,92and94each show a significant negative phase deflection before a significant positive phase deflection in the cardiac complex. After the fourth consecutive cardiac complex94, the fiducial point selection process establishes the peak of the negative phase deflection as the fiducial point for alignment based on the location rule. The triangles shown inFIG. 6represent a point where the location rule has been met for four consecutive complexes. Additionally, each triangle signifies an established fiducial point for template alignment.

In certain embodiments where the fiducial point selection process requires more than one cardiac complex to establish a fiducial point, the process may require each of the cardiac complexes assessed to adhere to the same rule (amplitude or location) before establishing a fiducial point for alignment. More particularly, each cardiac complex analyzed and used for establishing a fiducial point must adhere to the same one of the four possible rule bases: positive amplitude, negative amplitude, positive location, or negative amplitude.

In alternative embodiments, the fiducial point selection process may require all of the cardiac complexes assessed to establish the same fiducial point (i.e., the same positive peak) regardless of which rule was used. In an illustrative embodiment, the fiducial point selection process is established by the repetitive nature of three consecutive cardiac complexes. Two of the three cardiac complexes may establish the fiducial point on the positive peak using the positive amplitude rule base. The remaining cardiac complex may establish the same fiducial point on the complex's positive peak, however, using the positive location rule and not the amplitude rule. While not using the same rule, all three cardiac complexes indicate the same fiducial point, and as such, are indicated for submission to template verification, as referred to inFIG. 2.

In certain circumstances, a notch is observed in the cardiac signal's QRS segment.FIG. 7depicts a cardiac signal possessing a notch96in the QRS segment. A notch in a cardiac signal normally fails to affect the fiducial point selection process. This is observed because a predominant peak usually exists amongst the peaks forming the notch. Thus, the fiducial point selection process will generally select the predominant peak. In instances where one peak does not stand out over the other peak (as is depicted inFIG. 7), or when the predominant peak frequently changes from cardiac complex to cardiac complex, a potential for confusion in the fiducial point selection process may arise. In embodiments possessing such problematic notch segments, a notch analysis process may be used to assure the proper fiducial point selection for alignment.

In an illustrative notch analysis process, a notch is presumed to exist if the distance (in time) between the two peaks98is more than approximately 20 msec and/or if the difference in peak amplitudes100is less than approximately 115 μV. These values may vary in several embodiments depending upon the placement and design of sensing electrodes, as well as the expected characteristics of notched QRS peaks for a given patient. If these conditions are not met, it is presumed that a predominant peak does exist, that the fiducial point selection process will identify the predominant peak, and so the illustrative notch analysis process is skipped. However, if these conditions are met, then the cardiac signal is presumed to possess a notch requiring further analysis for proper fiducial point selection.

The illustrative notch analysis process identifies the peaks in the signal, and determines which peak has been initially identified as the fiducial point. If the first peak occurring in time is identified as the fiducial point, then the notch analysis is complete. If the second peak occurring in time is identified as the fiducial point, then the notch analysis process forces the fiducial point onto the first peak of the notch occurring in time.

Once the fiducial point is selected, the pre-template is then formed.FIG. 8is an illustrative embodiment of a pre-template102. The pre-template102is populated with a number of samples taken at a sampling frequency which form a pre-template data set. In the illustrative embodiment, the disposition of the pre-template data set within the pre-template is determined by template alignment parameters including the fiducial point selection explained above and the placement and masking steps further discussed below.

In an illustrative embodiment, the fiducial point104is placed at the center of the pre-template102. In preferred embodiments, a number of samples ‘n’ are established to the left of the fiducial point104, and ‘n’ samples are also established to the right of the fiducial point104. For example, some embodiments of the present invention utilize forty-one (41) samples sampled at 256 Hz, corresponding to approximately 160 msec. In an illustrative embodiment, twenty (20) samples are established to the left of the fiducial point104and another twenty (20) samples are established to the right of the fiducial point104. The forty-one (41) samples form a pre-template window106in which the relevant portion of a cardiac signal will be analyzed. In alternative embodiments, the number of samples ‘n’ populated on either side of the center of the pre-template102may differ.

From this initially formed pre-template window106, the boundaries of the cardiac complex's QRS segment are sought.FIG. 8shows a pre-template window106that includes a QRS segment as well as extraneous portions of a sensed cardiac signal. In this instance, it is desired to optimize the formed pre-template102by narrowing the pre-template window106to comprise mostly the QRS segment and reduce extraneous portions of the cardiac signal. The first step in this process is to identify the beginning and end of the QRS segment.

In one embodiment of the present invention, the observation of monotonic segments is used to estimate the beginning and end of the QRS segment. A monotonic segment is a signal segment of consecutive samples in which the sensed amplitude changes in the same direction or stays the same. For example, a series of consecutive samples in which each successive sample is greater than or equal to (in amplitude) the previous sample would be an increasing monotonic segment. Similarly, a series of consecutive samples in which each successive sample is less than or equal to (in amplitude) the previous sample would be a decreasing monotonic segment. One method for observing monotonic segments is by determining the zero crossing points of the first derivative of the cardiac complex signal.

In this embodiment, an arithmetic operation is performed on the initial pre-template102to identify the cardiac complex's monotonic segments—as indicated by the zero crossing points of the first derivative of the cardiac complex signal.FIG. 9shows the pre-template window106depicted inFIG. 8after all of the monotonic segments are identified in the cardiac complex. Each diamond indicates the beginning/end of a monotonic segment. An arithmetic operation then identifies the largest monotonic segment (in terms of change of amplitude) in the initial pre-template102before the fiducial point104. This sample is noted as “QRS begin”108. The arithmetic operation further identifies the largest monotonic segment (in terms of change of amplitude) in the initial pre-template102after the fiducial point104. This sample is noted as “QRS end”110. QRS begin and QRS end estimate the boundaries for the cardiac complex's QRS segment in this embodiment.

The use of monotonic segments is further useful for eliminating errors in calculating QRS segment length with cardiac complexes having a notch in their QRS segment.FIG. 10illustrates a cardiac complex possessing a notch. Since the arithmetic operation of the illustrative embodiment identifies the largest monotonic segment (in amplitude) in the initial pre-template102before the fiducial point104and after the fiducial point104, most notches will not affect the algorithm's ability to find the desired QRS begin and QRS end. As depicted inFIG. 10, the relative monotonic segment amplitudes within the notch are smaller than the amplitudes of the monotonic segments at either end of the QRS segment. Therefore, the notch generally does not affect the estimated measurement of the QRS segment.

Alternative methods known in the art may also be utilized to estimate the beginning and end of the cardiac complex's QRS segment. The use of monotonic segments to estimate the QRS segment is merely illustrative, and various embodiments of present invention are not limited to this particular aspect of the illustrative embodiment.

After the QRS segment has been identified, the pre-template102is then optimized for performance—process46inFIG. 2. Optimization includes, but is not limited to, masking the pre-template window106to include the most relevant samples in the cardiac complex, as well as offset adjustment.

One method for template optimization is to narrow or mask the pre-template window106to include only those samples indicative of the QRS segment. In patients with wide QRS segments, optimization by removal of some samples is not indicated. For example, in the above illustrative embodiment, if a patient has a QRS segment longer than 160 msec (or 41 samples), the patient's QRS segment exceeds the initially formed pre-template window106. Thus, the patient's identified QRS begin108is the first sample within the pre-template window106and the identified QRS end110is the last sample within the pre-template window106, even though the patient's actual QRS segment may extend beyond the confines of the formed pre-template window106. An example of a wide QRS segment that exceeds the size of the pre-template window106is shown inFIG. 11. Masking the pre-template window106is not indicated in these instances.

In contrast, the pre-template window106may be masked when the QRS segment is less than the pre-template's window106. For example, and as depicted inFIG. 12, suppose a patient's QRS begin108is at the fourth sample within the pre-template window106. Similarly, suppose the patient's QRS end110occurs on the thirty-fifth sample within the pre-template window106. Thus, the patient's QRS segment is thirty-two (32) samples long. The other nine (9) samples included in the original pre-template window106are generally not useful for analysis, and may introduce undesired effects if included in the final template. Therefore, the bounds of the pre-template102may be masked to form a masked pre-template window114that only includes the actual QRS segment—between QRS begin108and QRS end110. In this example, the pre-template window106would be masked to the 32 samples representing the estimated QRS segment. Specifically, the pre-template bounds are masked so that the masked pretemplate window114begins on sample4and ends on sample35, thereby eliminating extraneous samples112from the masked pre-template window114.FIG. 13depicts the observed masked pre-template window114after the masking process. Such narrowing or masking, while useful in some embodiments, is not required by the present invention.

If desired, a minimum duration for the masked pre-template window114may be defined. In one embodiment of the present invention, the minimum masked pre-template window114is approximately 100 msec (25 samples at 256 Hz). In patients having narrow QRS segments (less than approximately 100 msec), the allowable masked pre-template window114may still include some extraneous samples with the QRS segment for these patients. For example, as depicted inFIG. 14, if the QRS begin108is on sample twelve (12) and the QRS end110occurs on sample twenty-nine (29), then the width of the QRS segment is eighteen (18) samples. This QRS segment width is smaller than the illustrative minimum for the masked pre-template window114of twenty-five (25) samples. To mask the QRS segment to the minimum boundary allowable, the difference is first calculated between the masked pre-template window's minimum (25 samples) and the estimated QRS segment width (eighteen (18) samples in this example). This difference is seven (7) samples. The difference is then split in half and added equally (or as equally as possible) to both sides of the estimated QRS segment length. Thus, the optimized masked pre-template window114in this example would include the actual QRS segment116with three (3) additional samples preceding the QRS begin108and four (4) additional samples following the QRS end110.

There are other instances where the pre-template window106does not include the complete QRS segment. An example of such an instance is when the sample indicating the QRS begin108or QRS end110occurs on the first or last sample within the initially formed pre-template window106. In some embodiments, this gives rise to an assumption that the actual QRS begin108or QRS end110is not accurately captured and that the actual QRS begin108or QRS end110occurs sometime outside the boundaries of the initially formed pre-template window106. An example of a pre-template window106where the last sample within the pre-template window is also the QRS end110is depicted inFIG. 15.

InFIG. 15, a pre-template window106is populated with samples 1 through 41. The first sample appears near the vertical axis midpoint of the template window. In contrast, the last sample (sample 41) appears near the bottom of the template window's vertical axis. As the samples move along the horizontal axis from sample 1, the samples gradually increase in height until reaching the QRS begin108for the cardiac complex segment. The remainder of the pre-template window106contains most, but not all, of the QRS segment. The remainder of the QRS segment not captured within the boundaries of the pre-template window106is shown as116. In such an instance, the entire QRS segment was not properly captured through the pre-template window106formation process. Some embodiments of the present invention resolve this issue through an offset adjustment.

The offset adjustment process first identifies which side of the QRS segment was not properly captured. As described above and depicted inFIG. 15, the QRS begin108is sample eight (8) and the perceived QRS end111is sample forty-one (41). This generally indicates that the true QRS end110actually occurs at a point later in time and was not captured using the initial settings for forming the pre-template window106. When it is indicated that the true QRS end100was not properly captured, a number of samples will precede the QRS begin108. These leading samples are called the “residue”118. InFIG. 15, the residue consists of the first seven (7) samples preceding the QRS begin108. Since the samples constituting the residue118relay little information regarding the QRS segment itself, these samples may be discarded and replaced by samples that do represent the QRS segment but which were omitted through the initial pre-template window formation process. The process for shifting the pre-template window106in one direction is called offset. The effect of the offset process, in the present example, is to allow the pre-template window106to start ‘n’ number of residue samples later to ensure that the true QRS end110is captured.

In a preferred embodiment, the sample representing the QRS begin108plus the immediately preceding sample (QRS begin −1), or the QRS end110plus the immediately following sample (QRS end +1), along with the samples therebetween, are retained. The remaining samples comprise the residue118. In alternative embodiments, the QRS begin108or the QRS end110, plus some ‘n’ number of samples preceding or following, is retained and the remaining samples comprises the residue118. In yet alternative embodiments, just the QRS begin108or QRS end110is kept and the remaining samples are considered residue.

FIG. 16illustrates the offset process on the cardiac complex depicted inFIG. 15. Specifically,FIG. 16depicts the formation of an offset pre-template window120to recapture the cardiac complex's true QRS end110. As described above,FIG. 15shows that there are eight (8) residue samples118leading the QRS begin108. These residue samples118are eliminated and QRS begin108is forced to be the first sample in a newly formed offset pre-template window120. This adjustment is graphically depicted inFIG. 16. Thus, the offset pre-template window120starts at the QRS begin108and now ends eight (8) samples later than it initially did when the pre-template window106was initially formed. The result of this shift permits the newly formed offset pre-template window120to recapture the cardiac complex's true QRS end110. Thus, the offset pre-template window120comprises the entire QRS segment including both the true QRS begin108and the true QRS end110.

In preferred embodiments, after the offset adjustment process, the corrected template window is further optimized by masking the bounds of the offset template—as described above.

The parameters used in defining the optimized pre-template window are, in an illustrative example, described as the template parameters. The template parameters describe how the template data set is defined and aligned within the template. These parameters, including the manner of fiducial point selection, offset (if any) and masking (if any) provide template parameters indicating how the template can be used in making future comparisons. The template parameters may be used as described in copending U.S. patent application Ser. No. 10/999,274, filed Nov. 29, 2004, entitled METHOD AND APPARATUS FOR BEAT ALIGNMENT AND COMPARISON, which is filed on Nov. 29, 2004 even date herewith, is assigned to the assignee of the present invention; the disclosure of the application is also incorporated herein by reference. However, in the illustrative embodiment, prior to using the template (including its associated template parameters and template data set) for future comparisons to sensed signals, the template data set is verified for validity.

Once the pre-template is optimized by defining its sample window characteristics, including but not limited to masking and offset adjustment, the data in optimized pre-template is verified for its validity—process50inFIG. 2. The verification of optimized pre-template validity provides a check on both the template parameters and the template data set. In preferred embodiments, validity must be established before the optimized pre-template is stored as the final template, or as one template among several for use in comparing to subsequently sensed cardiac signals.FIG. 17illustrates the template verification process50for an optimized pre-template.

The optimized pre-template130is initially stored in a buffer. The device then senses a subsequent cardiac complex132using the optimized parameters set for the optimized pre-template130. Cardiac complex132is then compared to the stored optimized pre-template130. In a preferred embodiment, an arithmetic operation similar to correlation is performed to determine the similarity between130and132. An illustrative arithmetic operation includes correlation waveform analysis, which returns a result between −1 and 1, and which can be scaled using a number of linear, non-linear, and hybrid scaling methods as noted in co-pending U.S. application Ser. No. 10/856,084 filed May 27, 2004 and entitled METHOD FOR DISCRIMINATING BETWEEN VENTRICULAR AND SUPRAVENTRICULAR ARRHYTHMIAS, the disclosure of which is incorporated herein by reference.

In an illustrative embodiment, a correlation waveform analysis is performed and then scaled to a percentage value between 0–100%, with negative correlations given a 0%, and positive scores linearly scaled between 0–100%. If the similarity score between the subsequent cardiac complex132and the optimized pre-template130is greater than a specified threshold, the subsequent cardiac complex132is averaged with the optimized pre-template130. In certain embodiments of the present invention, the threshold for comparison is specified at 80%. Alternative threshold levels may be set without deviating from the spirit and scope of the invention. Additionally, in certain embodiments, the cardiac complex that is compared to the optimized pre-template130is not averaged after comparison. If the similarity score does not surpass the specified threshold, then the optimized pre-template130is discarded and the entire template formation process is restarted.

In certain embodiments, if the comparison threshold value is exceeded, then the verification process is repeated with another incoming cardiac complex, for example cardiac complexes134,136and138. The device captures the cardiac complex134using the parameters set for the averaged optimized pre-template (130+132) and performs a further comparison between the cardiac complex134and the averaged optimized pre-template (130+132). Again, alternative embodiments may compare the newly sensed cardiac complex134to the initially stored optimized pre-template130. In the present illustrative example, the comparison score between the cardiac complex134and the averaged optimized pre-template (130+132) is 85%. Since this score is greater than the comparison threshold of 80%, the verification process is continued.

The verification process is repeated at least this one additional time in some embodiments of the present invention. In a preferred embodiment, this process is iterated until four (4) consecutive cardiac complexes exceed the threshold level for comparison with either the initially stored optimized pre-template130, or the averaged optimized pre-template (130+132+134+136). If at any time during the process the similarity score does not surpass the specified threshold, then the optimized pre-template is discarded and the template formation process is restarted in its entirety until a verified template is created.

The template is verified after completing the specified number of iterations for the verification process. In the present illustrative embodiment, the comparison scores to the averaged optimized pre-template for cardiac complexes132,134,136and138were 85%, 89%, 84% and 84%, respectively. Each of these comparison scores exceeded the comparison threshold set for the present example. Thus, the optimized pre-template is verified and the pre-template is considered the final template, thereby completing the template formation process. The formed template can then be used to observe and characterize incoming sensed cardiac signals.

FIGS. 18A–18Cfurther illustrate a template verification step. As shown inFIG. 18A, a sampled signal is placed into a pre-template template having a fiducial point which is defined using the amplitude rule. The fiducial point is placed as sample s21, with 20 samples on either side making up the pre-template template window. QRS start and end points are identified at s10and s33, respectively. The signal and its parameters are referred to as an optimized pre-template. Next, the signal is masked using QRS +/− 1 rules, such that the optimized pre-template is as shown by the box, extending from sample s9to s34. The optimized pre-template is then stored until verified.

Turning toFIG. 18B, another sampled signal is captured and the optimized pre-template parameters fromFIG. 18Aare used to define the signal window. In particular, the amplitude rule is used to select a fiducial point and place it at sample s21, and the sample is masked to only include samples s9to s34. As can be seen, the captured QRS segment inFIG. 19Bis not accurately masked, as the QRS signal ends at s35, outside the signal window, and the QRS start occurs one sample later than would be desired. However, the overall shape generally resembles that ofFIG. 18A, and a correlation of the two signals could be calculated to yield a score above a defined threshold such as 0.8 or 80% correlation. Thus the signal inFIG. 18Bcould be retained for averaging with that ofFIG. 18Ato further characterize the optimized pre-template. Alternatively, the data may not be averaged and the signal in the optimized pre-template ofFIG. 18Aused in further analysis. In another alternative, the verification provided by the signal inFIG. 18Bcould be defined as sufficient to store that ofFIG. 18Aas a template for comparison.

Turning toFIG. 18C, a third sampled signal is captured for comparison to the signal in18A. The first step here is to identify the fiducial point. However, it can be seen that there are two positive peaks X and Y which are near one another. Neither peak qualifies for the amplitude rule, as each has nearly the same amplitude. Therefore the location rule would have to be used to select the fiducial point. In an illustrative embodiment, this fact alone would be enough to discard the signal and/or discard the template formed using the signal ofFIG. 18A, as the same rule sets could not be used to define the fiducial point.

In other embodiments, the sampled signal ofFIG. 18Cmay still be used for template verification even though a different fiducial point rule is used. Under such an embodiment, the signal fromFIG. 18Cmay still cause rejection of the template formed using the signal shown inFIG. 18A. More particularly the signals inFIG. 18AandFIG. 18Care poorly correlated, as it can be seen that the signal to the left of the fiducial point s21is lower, while the signal to the right of the fiducial point s21is higher inFIG. 19Cthan inFIG. 18A. If the correlation falls below a defined level, then the template is discarded. In a further embodiment, a beat validation process may be used to assure that a sensed noisy cardiac event, or simply a noise signal, does not reach the template formation steps, preventing template verification due to the likely low correlation of such a non-validated signal. Some example beat validation processes are shown in co-pending U.S. patent application Ser. No. 10/858,598, filed Jun. 1, 2004, now U.S. Pat. No. 7,248,921, and entitled METHOD AND DEVICES FOR PERFORMING CARDIAC WAVEFORM APPRAISAL, the disclosure of which is incorporated herein by reference.

FIG. 19is a block diagram for an illustrative template formation process. The process200begins by defining a number of sensing parameters, as shown at202. The sensing parameters may include sampling, window and fiducial point characteristics. Next, a template is filled with data using the sensing parameters, as shown at204. A validation step follows, as noted at206. The validation step206may include, for example, comparison to successive samples. If validated, the template and its associated sensing parameters are retained as shown at208. If the template and its associated sensing parameters cannot be validated, then they are discarded as shown at210.

The present invention, in some embodiments, is also embodied in devices using operational circuitry including select electrical components provided within the canister12(FIG. 1A) or canister32(FIG. 1B). In such embodiments, the operational circuitry may be configured to enable the above methods to be performed. In some similar embodiments, the present invention may be embodied in readable instruction sets such as a program encoded in machine or controller readable media, wherein the readable instruction sets are provided to enable the operational circuitry to perform the analysis discussed in the above embodiments. Further embodiments may include a controller or microcontroller adapted to read and execute the above methods. These various embodiments may incorporate the illustrative methods shown above, for example.

The following illustrative embodiments are explained in terms of operational circuitry. The operational circuitry may be configured to include such controllers, microcontrollers, logic devices, memory, and the like, as selected, needed, or desired, for performing the method steps of which each is adapted and configured.

The present invention, in an illustrative apparatus embodiment, includes an implantable cardioverter/defibrillator comprising a lead electrode assembly including a number of electrodes, and a canister housing operational circuitry. The illustrative apparatus embodiment may be configured wherein the lead electrode assembly is coupled to the canister, and the operational circuitry is configured to perform steps of discriminating between cardiac rhythms of a patient's heart which are appropriate for therapy, the steps including: sensing a first cardiac event; configuring template parameters for analysis of the first cardiac event; defining a first sensed signal for the first cardiac event using the template parameters; sensing a second cardiac event; defining a second sensed signal for the second cardiac event using the template parameters; and comparing the second sensed signal to the first sensed signal to determine whether the first sensed signal and template parameters are suitable for defining a cardiac event template.

The operational circuitry may, in another embodiment, be configured such that the step of configuring template parameters includes selecting a rule for identifying a fiducial point, and the rule is selected from among a set of rules, the rule is selected in light of the characteristics of the first cardiac event, and the rule for identifying a fiducial point becomes one of the template parameters. In yet another embodiment, the step of configuring template parameters further includes selecting a number of samples of the first sensed signal around the fiducial point, and the configuration of samples around the fiducial point becomes one of the template parameters. In another embodiment, the operational circuitry is configured such that the step of selecting a number of samples includes identifying the start and end of a cardiac event. In on embodiment, the operational circuitry is configured such that the cardiac event is a QRS complex. In some embodiments, the operational circuitry is configured such that the set of rules includes an amplitude rule related to the relative amplitudes of peaks in the sensed signal. The set of rules may include a location rule related to the location of a peak in the sensed signal. In yet another embodiment, the operational circuitry is configured such that the set of rules includes a location rule related to the location of a peak in the sensed signal.

In yet another embodiment, the operational circuitry is configured such that the set of rules includes a notch rule related to identifying a notched cardiac signal, wherein the notch rule includes analysis of whether there are multiple peaks within a predefined range of one another in the cardiac signal. The operational circuitry may be configured such that the notch rule selects the first peak in time if there are multiple peaks within the predefined range. In another embodiment, the operational circuitry may be configured such that the step of configuring template parameters further includes selecting a number of samples of the first sensed signal around a fiducial point in the first sensed signal; wherein the configuration of samples around the fiducial point becomes one of the template parameters. The operational circuitry, in an illustrative embodiment, is configured such that samples are selected using the following steps: first, a number of samples are observed on either side of the fiducial point; next, it is determined whether a desired QRS segment begins and ends within the number of samples; and the number of samples on either side of the fiducial point is adjusted to capture the QRS segment and exclude at least some samples not corresponding to the desired QRS segment. Another illustrative embodiment includes one wherein the operational circuitry is configured such that the step of configuring template parameters includes observing whether a notched QRS complex is likely, and, if so, adjusting the template parameters to assure that a repeatably detectable fiducial point is chosen.

Another embodiment includes an implantable cardioverter/defibrillator comprising a lead electrode assembly including a number of electrodes and a canister housing operational circuitry; wherein: the lead electrode assembly is coupled to the canister; and the operational circuitry is configured to perform steps of discriminating between cardiac rhythms of a patient's heart which are appropriate for therapy. The steps may include sampling a signal using the lead electrode assembly while implanted in a patient's torso in locations chosen for capturing cardiac signals; defining a first sensing window around a first fiducial point to capture a QRS segment; observing the definition of the first sensing window to create template parameters; defining a second sensing window around a second fiducial point using the template parameters; and comparing data in the first sensing window to data in the second sensing window to verify whether to define a valid template using the template parameters. The operational circuitry may be configured such that the step of defining a first sensing window includes identifying a fiducial point by selecting a rule from among a set of rules in light of the characteristics of the QRS segment in the first sensing window, wherein the rule selected for identifying a fiducial point becomes one of the template parameters. Further, the operational circuitry may be configured such that the step defining a first sensing window around a first fiducial point includes identifying the start and end of a cardiac event. If desired, the cardiac event may be a QRS complex.

In another embodiment, the operational circuitry is configured such that the set of rules includes an amplitude rule related to the relative amplitudes of peaks in the sampled signal, and a location rule related to the location of a peak in the sampled signal. In yet another embodiment, the operational circuitry is configured such that the step of defining a first sensing window includes selecting a number of samples around a fiducial point, wherein the configuration of samples around the fiducial point becomes one of the template parameters. The operational circuitry may be configured such that the samples are selected using the following steps: a fiducial point is selected; then a number of samples are observed on either side of the fiducial point; then it is determined whether a desired QRS segment begins and ends within the number of samples; and the number of samples on either side of the fiducial point is adjusted to capture the QRS segment and exclude at least some samples not corresponding to the desired QRS segment.

In yet another embodiment, the operational circuitry is configured such that the step of defining a first sensing window includes observing whether a notched QRS complex is likely, and, if so, adjusting the template parameters to assure that a repeatably detectable fiducial point is chosen.

An illustrative embodiment may include an implantable cardioverter/defibrillator comprising a lead electrode assembly including a number of electrodes and a canister housing operational circuitry, wherein: the lead electrode assembly is coupled to the canister; and the operational circuitry is configured to perform steps of discriminating between cardiac rhythms of a patient's heart which are appropriate for therapy. The steps of discriminating may include forming a template using at least the steps of: sensing a first cardiac event; identifying a first fiducial point in the first cardiac event using a set of rules; sensing a second cardiac event; identifying a second fiducial point in the second cardiac event using the set of rules; determining whether the first fiducial point and second fiducial point were identified using the same rule; and, if not, discarding the first cardiac event.

Another illustrative embodiment includes an implantable cardioverter/defibrillator comprising a lead electrode assembly including a number of electrodes and a canister housing operational circuitry, wherein the lead electrode assembly is coupled to the canister and the operational circuitry is configured to perform steps of discriminating between cardiac rhythms of a patient's heart which are appropriate for therapy. The discriminating steps may include forming a template using at least the steps of receiving a first cardiac signal from the lead electrode assembly, selecting a fiducial point in the first cardiac signal, forming a template around the fiducial point, and verifying the template by receiving additional cardiac signals and using the template to compare the additional cardiac signals to the first cardiac signal. In another embodiment, the operational circuitry is configured such that the step of selecting a fiducial point includes identifying a fiducial point by selecting a rule from among a set of rules in light of the characteristics of first cardiac signal, wherein the rule selected for identifying a fiducial point becomes one of the template parameters. The operational circuitry may be configured such that the step forming a template around the fiducial point includes identifying the start and end of a cardiac event. In another embodiment, the operational circuitry may be configured such that the set of rules includes an amplitude rule related to the relative amplitudes of peaks in the cardiac signal. The set of rules may further include a location rule related to the location of a peak in the cardiac signal. In another embodiment, the operational circuitry is configured such that the set of rules includes a location rule related to the location of a peak in the cardiac signal.

In another embodiment, the operational circuitry is configured such that the step of forming a template includes selecting a number of samples around the fiducial point, wherein the configuration of samples around the fiducial point becomes one of the template parameters. The operational circuitry may be configured such that the samples are selected using the following steps: a number of samples are observed on either side of the fiducial point; it is determined whether a desired QRS segment begins and ends within the number of samples; and the number of samples on either side of the fiducial point is adjusted to capture the QRS segment and exclude at least some samples not corresponding to the desired QRS segment. In yet another embodiment, the operational circuitry is configured such that the step of selecting a fiducial point includes observing whether a notched QRS complex is likely, and, if so, adjusting the template parameters to assure that a repeatably detectable fiducial point is chosen.

Numerous characteristics and advantages of the invention covered by this document have been set forth in the foregoing description. It will be understood, however, that this disclosure is, in many aspects, only illustrative. Changes may be made in details, particularly in matters of shape, size and arrangement of parts without exceeding the scope of the invention. The invention's scope is defined, of course, in the language in which the claims are expressed.