Implantable cardiac stimulator with automatic gain control and bandpass filtering in feedback loop

Abstract: An implantable cardiac stimulator for detecting and treating cardiac arrhythmias includes a sense amplifier (25) responsive to sensed cardiac signals for detecting and distinguishing normal and abnormal cardiac activity within the sensed signals. The sense amplifier includes an automatic gain control amplifier (60), a filter (70) and quad comparator (80) having a pair of signal channels for processing the sensed signals according to different frequency bandpass characteristics to establish sensing thresholds, margins and signal gain. The sense amplifier has a feedback loop (65) containing a microprocessor (68) which implements preselected algorithms in conjunction with the outputs of the quad comparator to variably adjust the amplifier gain and to programmably control the sensing margin.

Description: The present invention relates generally to implantable cardiac stimulators such as pacemakers and defibrillators or combinations thereof, and more particularly to automatic gain control for such implantable devices for the purpose of enhancing the capability of the device to sense an arrhythmia for which therapy is to be applied. Arrhythmias are variations in heart rate from the normal sinus rate range of approximately 60 to 120 beats per minute (bpm) prevalent in healthy adult humans with normally functioning hearts. Bradycardia is characterized by rates below 60 bpm, whereas for tachycardia the rates generally range upwardly from 120 bpm. Typically, tachycardia is experienced as a result of such factors as physical stress (exercise), emotional stress (excitement), consumption of alcoholic or caffeinated beverages, ingestion of certain drugs such as nicotine, and so forth. The heart rate of a healthy person will gradually return to the sinus rate after removal of the tachycardia-inducing factor(s). However, arrhythmias require special medical treatment. For example, fibrillation is a high rate arrhythmia (tachyarrhythmia) characterized by completely uncoordinated contractions of sections of conductive cardiac tissue of the affected chamber of the heart, resulting in a complete loss of synchronous contraction of the overall mass of tissue. As a consequence, the chamber ceases to pump blood effectively and, in the case of ventricular fibrillation, the lack of oxygenated blood to the tissues will lead to death within minutes. Implantation of a cardiac pacemaker has been a typical procedure of choice for treatment of bradycardia patients. The pacemaker pulse generator is implanted in a pouch beneath the skin in the patient's chest and delivers electrical impulses to electrodes positioned at the patient's heart via one or more catheter leads, to stimulate the heart to beat at a desired rate in the normal sinus range. Cardiac pacing has also found increasing usage in the management of tachyarrhythmias. In essence, the heart may be artificially stimulated at a faster than normal pacing rate to terminate a tachycardia or to suppress premature atrial or ventricular contractions which could otherwise lead to supra-ventricular or ventricular tachycardia, flutter, or fibrillation. The pulses delivered to the heart for pacing therapy need only be of sufficient magnitude to stimulate the excitable myocardial tissue in the immediate vicinity of the pacing electrode. More recently, the automatic defibrillator has been proposed for implantation in cardiac patients prone to suffer ventricular tachycardia and/or fibrillation. The device is adapted to shock the heart with electrical pulses of considerably higher energy content than is delivered in pacing pulses. Upon detecting fibrillation, one or more high energy "counter-shocks" are applied to the heart to overwhelm the chaotic contractions of individual tissue sections and re-establish organized spreading of action potential from cell to cell of the myocardium, thereby restoring the synchronized contraction of the mass of tissue. In general, prior art implantable defibrillators have been implemented to detect fibrillation from the patient's electrogram waveform and/or the absence of a "mechanical" function such as rhythmic contractions or pulsatile arterial pressure, and, in response, to deliver a fixed therapy typically consisting of one or more shocking pulses of preset waveform and energy content. For example, detection of fibrillation activity by monitoring the electrogram signal has been achieved with conventional sense amplifier configurations involving fixed sense margin, fixed or selectively adjusted gain and fixed bandpass characteristics. This type of detection tends to neglect the characteristic differences between QRS complexes and fibrillation waveforms. Fibrillation waveforms are characterized by erratic amplitude modulated sinusoids of relatively low frequency in a narrow band (3-12 Hz). On the other hand, QRS complexes have relatively constant amplitude, sharp peaks with significant high frequency content and thus a broader frequency spectrum. The published European patent Application No. 0253505 discloses an improved medical device for treating ventricular tachycardia and defibrillation, which uses sophisticated techniques for detecting and distinguishing the arrhythmia from normal high rates, and a hierarchical approach to the aggressiveness and delivery of therapies to terminate the arrhythmia. The functions of bradycardia and anti-tachycardia pacing-type therapies, and cardioversion and debifrillation shock-type therapies, are integrated to provide a coordinated approach to the management and treatment of ventricular arrhythmias. A significant aspect of that approach is to provide flexible sequencing among the therapies, with appropriate regard to hemodynamic tolerance (or intolerance) of the patient to the detected arrhythmia, and sophisticated detection of arrhythmias together with means for distinguishing those episodes for which treatment is required (such as re-entrant tachycardias) from those which are not associated with cardiac or other disease (such as exercise-generated sinus tachycardias). A multiplicity of hierarchical detection algorithms and therapeutic modalities are selectively available to the physician to detect and treat classes of ventricular tachycardia according to their respective positions in the heart rate continuum, and thus according to hemodynamic tolerance or intolerance of the patient to the tachycardia, with backup capabilities of defibrillation and bradycardia pacing for cardiac arrhythmias, including post-shock bradycardia. In an embodiment described in the 0253505 application, the cardiac stimulator permits selective partitioning of the heart rate continuum into a plurality of contiguous tachycardia classes of progressively higher rate ranges, the lowest and highest of these classes being bounded respectively by regions of the continuum denoting sinus rate and fibrillation. Each of the rate ranges and the latter regions may be programmed by the physician, as may be necessary to meet the particular needs of the patient's disorder and the flexibility of the therapy regimens to be prescribed. The hierarchical detection system employed in the stimulator for detecting cardiac episodes indicative of arrhythmia and for distinguishing between normal and abnormal tachycardias among the detected episodes uses criteria of greater or lesser stringency depending on the location of the episode in the rate continuum. The device permits programming of the various detection criteria for tachycardias and fibrillation, and includes plural combinations of basic detection criteria in each category. The arrhythmia detection system disclosed in that application also utilized signal processing including amplification with automatic gain control and bandpass filtering according to the present invention, for enhancing sensitivity to the differences between the electrical and physical characteristics of sinus rhythms and arrhythmia waveforms. It should be noted that the prior art has suggested the analysis of waveform morphology for fibrillation detection. Moreover, it is known to use automatic gain control in defibrillation systems. A principal object of the present invention, however, is the provision of a stimulator employing a method for arrhythmia detection which recognizes and takes advantage of the characteristic differences between sinus rhythm and arrhythmias, including those mentioned above, utilizing automatic gain control and bandpass filtering in a feedback loop. Another significant object of the present invention is to provide an implantable cardiac stimulator utilizing automatic gain control in interaction with arrhythmia detection, as well as with special bandpass characteristics and bradycardia pacing. A further important object of the present invention is to provide an approach for dealing with interactions between gain and pacing in an implantable stimulator device capable of treating bradyarrhythmias as well as tachyrythmias. Yet another object of the invention is to provide an implantable stimulator device which implements the foregoing objectives in treating tachycardia and fibrillation, and which is adapted also to treat post-shock bradycardia. Still another object of the present invention is to provide in a stimulator a cardiac arrhythmia detection system and method employing automatic gain control in conjunction with bandpass filtering in a feedback loop, wherein the margin of sensitivity to the various waveforms encountered varies to enhance the capability and speed of detection of the arrhythmias of interest, such that an appropriate therapy is quickly applied to return the heart to normal sinus rhythm. Accordingly, the invention provides an implantable cardiac stimulator for detecting cardiac arrhythmias by analysing electrical signals produced by the heart, comprising: heart stimulating means sensing means responsive to electrical activity of the heart and adapted to produce electrical signals representative of electrical activity of the heart, said sensing means comprising an amplifier with a gain which is adjustable; signal processing means comprising: a filter for attenuating low frequency signals in said electrical signals, a first signal path connected to a comparator for detecting a signal having a magnitude greater than a sensing target, a second signal path connected to a second comparator for detecting a peak signal amplitude greater than a gain control target, a second filter in said second signal path for attenuating very low frequency signals and for increasing a sensing margin in the absence of high frequency signals, said sensing margin being a ratio peak signal amplitude-to-sensing target level, said second filter being a bandpass filter; processor means responsive to said signal processing means for adjusting said gain of said amplifier according to the amplitude of each sensed event relative to at least one of said targets and for analysing sensing target crossings; characterised by said processor means avoiding analysis of electrical signals produced by the heart to determine whether an arrhythmia is present after delivery of therapy to the heart until the gain has been adjusted both up and down at least once. Accordingly, the sense amplifier of the cardiac stimulator is provided with automatic gain control (AGC) as well as bandpass filtering and comparison of sensed signal (sensed event) amplitudes against selected target levels in a system and method for detecting cardiac arrhythmias. Interactions between gain, bandpass and pacing are utilized in a manner not found in prior art techniques employed to detect and treat cardiac arrhythmias. In essence, the invention addresses bandpass filtering and its effect on sensing margin; varies the sensing margin with the shape of the waveform under analysis; minimizes noise and T wave sensing while QRS complexes are present; and maximizes sensing of fibrillation waveforms in the face of widely varying amplitudes. The AGC amplifier includes an amplifier section having a gain that may be altered as often as necessary to maintain a set of predefined conditions, a set of bandpass amplifiers with different characteristics for AGC and sense target comparators, and a dual set of comparators to convert the processed analog information into digital information to be used by a microprocessor for making decisions about the need for changes in the gain of the amplifier and sensing activity. The present invention takes advantage of the differences between waveforms or signals representative of cardiac arrhythmias and those indicative of normal sinus rhythm to provide rapid detection. For example, differences in the characteristics of fibrillation waveforms and standard QRS complexes include wide and frequent variation in the amplitude of a fibrillation. Off-set to a gain to assure sensing over the necessarily wide amplitude range of interest (e.g., 0.3 mv to tens of millivolts), the device could sense and respond to false signals including the unwanted noise signals which are often present in the absence of fibrillation at typically low amplitude levels (e.g. T-waves). Accordingly, it is a more specific object of the invention to provide a cardiac stimulator capable of automatic delivery of defibrillating therapy with a fibrillation detection method, in which signal amplification with automatic gain control and bandpass filtering is utilized for reliably sensing wide and frequent amplitude variation of fibrillation waveforms. Another significant object of the present invention is to provide a stimulator with automatic gain control in the signal analysis path for fibrillation detection, to avoid falsely sensing noise signals as fibrillation and consequent undesirable delivery of unnecessary defibrillating shocks to the patient. An important aspect of the invention is a set of bandpass amplifiers that produce different bandpass characteristics between peak and sensing comparator targets. Without the differential bandpass characteristic, the sensing margin would be the same for all electrogram waveforms, regardless of their frequency content. In such a system there is a difficult tradeoff between the large sensing margin that would achieve reliable sensing of erratic fibrillation waveforms and a small sensing margin that would sense QRS complexes but reject T-waves. With the addition of the differential bandpass characteristic, fibrillation waveforms (which do not contain the higher frequency components that are characteristic of QRS complexes) are selectively enhanced at the sensing target. This selective enhancement provides the higher sensing margin required to reliably sense this erratic signal. But by not enhancing the higher frequency signal components of QRS complexes, the lower margin needed to reject T-waves is still obtained. The above and still further objects, features and attendant advantages of the present invention will become apparent from a consideration of the following detailed description of a presently preferred embodiment, taken in conjunction with the accompanying drawings, in which: FIG. 1 is a block circuit diagram of the therapy generator of an implantable cardiac stimulator, utilizing a sense amplifier having AGC, bandpass filters and quad comparators according to the presently preferred embodiment; FIG. 2 is a more detailed circuit diagram of the microprocessor and sense amplifier portion of the therapy generator circuit of FIG. 1; FIG. 3 is a schematic circuit diagram of the AGC amplifier section of the sense amplifier; FIG. 4 is a schematic circuit diagram of the bandpass amplifier section of the sense amplifier; FIG. 5 is a schematic circuit diagram of the quad comparator section of the sense amplifier; and FIGS. 6 through 9 are waveforms useful for describing the operation of the sense amplifier according to the presently preferred embodiment. The invention herein will be described in the environment of an implantable cardiac stimulator of the type disclosed in the 253505 application, but it is not limited to that usage and it will be understood as this description progresses that the invention may be utilized as well in more restricted anti-tachycardia pacemakers or bradycardia pacemakers. The therapy generator (FIG. 1) unit of the stimulator (akin to the pulse generator unit of an implantable pacemaker) is adapted to detect preselected aspects of the patient's cardiac activity, and to respond to arrhythmias by generating and managing the delivery of pacing and shock therapies. It will be evident, then, that despite its name the therapy generator does more than simply generate therapies, just as the pulse generator of a pacer does more than simply generate pulses; and in particular that the generator incorporates circuitry for sensing cardiac activity. Among other things, the generator has a self-contained power source, and is assembled and housed in a metal case which is inert to body tissue and fluids. Lead/electrode assemblies for use in sensing cardiac activity and delivering the respective pacing and shock impulses to the patient's heart are separably connectable to the therapy generator, in a manner analogous to leads of a cardiac pacemaker. Together, then, the therapy generator and the lead/electrode assemblies constitute the cardiac stimulator. The therapy generator includes a digital control section for storing and executing software instructions and for storing and processing the data for all digital functions of the device (aside from those functions which, for purposes of conserving memory capacity, are readily consigned to an external programmer unit). Digital functions of the device may include the physician-programmable aspects, such as provision for programming rate boundaries to selectively partition the rate continuum, desired therapy structures and delivery sequences, and detection and redetection algorithms; and, as well, the various processing, timing, switching, control and other functions, all of which are described in detail in the 253505 application and many of which need not be repeated here inasmuch as they are not essential to an understanding of the present invention. The therapy generator also includes an analog system portion for functions including those of the present invention involving monitoring of the patient's ECG signal information over each cardiac cycle and enhancing that signal information while reducing noise and other interference through signal filtering and automatic gain control. Other analog functions of the generator include developing the respective impulse waveforms to be delivered for the pacing and shock therapies, transmitting data between the device and external units such as the programmer and transtelephonic monitoring equipment, and protecting against overloads. Also included are the battery cells, and voltage regulation and priority power sequencing section, for supplying power to the other sections of the overall generator. With reference now to FIG. 1, a central microprocessor and associated memory section 10 of the therapy generator processes and stores the data for rate boundaries within the heart rate continuum, therapy structures, detection algorithms, and other features. Bidirectionally coupled to microprocessor/memory section 10 is a programming and data transmission section 14 for transmitting data to and from the external programmer and/or to receiving and monitoring equipment, via the antenna 17. A crystal oscillator 20 is electrically coupled to section 10 to provide precise timing signals for system operation. A reed switch 22 allows limited external control by the patient of physician-selected programmable functions, by means of placing an external magnet (not shown) in proximity to the switch for actuation thereof. A sense amplifier section 25 of the present invention, described in detail below, is coupled to the microprocessor/memory section 10 to furnish electrogram signal information and to receive control signals from the microprocessor. The sense amplifier also supplies electrogram signal information directly to data transmission section 14 for telemetry to the external monitoring equipment. A quad comparator within sense amplifier 25 serves as the link to convert electrogram, sense signal information from sensing electrode(s) (not shown) attached to the patient's heart into digital information for use by the microprocessor. The microprocessor 10 is disposed in the feedback loop of the sense amplifier 25 for automatic gain control. The sense amplifier 25 enhances the electrogram signals to enable tracking the rapidly varying amplitude, of fibrillation signals. Preferably, the sense amplifier 25 has a range of gain of the order of 30:1. As will be explained in more detail below, AGC with bandpass filtering is employed to provide the dual function of reducing the amplitude of signals outside the frequency band of interest, and further amplifying the relatively low frequency (e.g., fibrillation) signals in the absence of normal R-waves. The power source section 28 of the therapy generator includes high rate battery cells, a voltage regulator and a priority power sequencer none of which are shown and all of which are conventional. The cells are capable of delivering sufficient energy to charge capacitors (not shown) in the output high voltage section 40 within a period of 20 seconds or less. The voltage regulator circuit provides voltage reduction (division) depending on the number and connection of cells employed, to improve power source efficiency. The priority power sequencer assures that adequate power is made available to essential circuit functions, including the control logic, during periods of high current drain on the cells, such as during charge-up of the high voltage capacitors in preparation for delivery of defibrillating shocks. A pacing section 31 in the therapy generator includes a voltage multiplier and output section (neither of which is shown and both of which are conventional). The multiplier scales up the regulated supply voltage from power source section 28 by multiples of one, two or three. The output section provides output switching from this scaled voltage to deliver pacing stimuli to the patient's heart via the pacing electrodes (not shown), in the manner of a pulse generator, under the control of the microprocessor 10. An analog rate limit circuit 35 controllably limits the pacing rate, to prevent pacemaker runaway in the event of failure of the crystal oscillator circuit 20. The microprocessor 10 automatically disables the rate limiter 35 whenever high rate pacing pulses are required to be delivered, such as for a burst pacing therapy. The leads (not shown) for the pacing and sensing electrodes (also not shown) are electrically monitored by an isolation/protection circuit 37 to protect low voltage, low power components of the cardiac stimulator from being subjected to the high voltages of the defibrillating shocks generated by the stimulator or applied by an external defibrillator that might be used in the course of emergency medical procedures on the patient. The cardioverter/defibrillator shock therapy portion of the therapy generator includes an isolated high voltage generator and output section 40, in which an oscillator charges output capacitors to the required level through an isolation transformer, under the control of the microprocessor. A low power analog-to-digital (A/D) converter in section 40 monitors the voltage on the capacitors to assure a microprocessor setting of the desired high voltage output level according to the programmed content of the shock therapy. Monitoring of the capacitor voltage provides the microprocessor with a measure of the residual charge on the capacitors, after delivery of each output pulse, by which to estimate the amount of energy consumed in the delivery for lead impedance measurement. In addition, the A/D converter input circuit may be switched by the microprocessor for connection to the power source section 28 to monitor the battery voltage, and thereby determine the present condition of the cells. Output section 40 also contains level shifters and isolation transformers (not shown) to convert the microprocessor-supplied low level logic control signals to the control signal levels required to drive the output switches of that section. The switches are of low "on" impedance and capable of handling the high voltages and currents being generated to control the delivery and polarity of each output pulse. A short circuit protection circuit may be employed to open the output circuit in the event that the current therethrough rises above a predetermined level, to prevent destructive capacitor discharge into a very low impedance if, for example, the defibrillator patch electrodes were shorted. Sense amplifier 25 and its relationship to the microprocessor 10 are illustrated in greater detail in FIG. 2. The ECG waveform components detected by the sensing electrodes (not shown) are applied to an AGC amplifier 60 via an input circuit 63. The gain of amplifier 60 is automatically controlled by a feedback loop 65 containing a portion 68 of the microprocessor/memory section 10 (FIG. 1). The electrogram signals processed by AGC amplifier 60 are further enhanced by a filter section 70 having a primary high gain bandpass amplifier 73 to amplify signals within the band. The output of amplifier 73 is split and applied to separate bandpass amplifiers 75 and 76, the former being digitally controlled by microprocessor portion 68. The output derived from amplifier and filter stages 60 and 70 is applied to a quad comparator 80 (to be described in greater detail below with reference to FIG. 5), comprising a set of sensing target comparators 82 and a set of peak target comparators 83, 85, which develop three inputs to the microprocessor in the feedback loop. The primary purpose of the inventive system is to track the signals of interest. The sense amplifier with AGC, filter and feedback system of the present invention is implemented to solve the difficult problem of sensing the low frequency, varying amplitude which is characteristic of ventricular fibrillation. It will be recognized that under ordinary circumstances a loss of sensing may be indicative of fibrillation, requiring that the gain of the sense amplifier be increased to enable better detection. If, however, the loss of sensing is attributable, for example, to intermittent heart block rather than to fibrillation, a return of sense signal likely would be over-amplified, with a consequent serious perturbation of the entire system. The system of FIG. 2 provides dual signal paths or channels having different bandpass characteristics. The signal path through amplifier 75 to the sense comparators 82 determines the sensing point and the signal path through amplifier 76 to the AGC comparators 83 portion is part of the feedback loop that includes the microprocessor 68, which determines the gain of AGC amplifier 60. The sensing margin is defined as the ratio of peak signal size at the inputs to inner comparators 82 and their sensing threshold. A ratio greater than one must be chosen in order to avoid loss of sensing as a consequence of a reduction in signal amplitude. For example, the use of a 2-to-1 margin would mean that the signal amplitude would have to be reduced by one-half to lose sensing. The goal of the AGC system is to maintain a preset sensing margin. For a given threshold level on the sensing comparator, this may be achieved by adjusting the gain of the AGC amplifier so that the peak voltage seen by the sensing comparators remains more or less constant. The microprocessor 68 samples the output of the peak comparators 83 on a cycle by cycle basis. In essence, if the waveform peak exceeds the threshold of the AGC the microprocessor 68 will reduce the gain a small amount. If the waveform peak does not exceed the threshold of the AGC it will increase the gain a small amount (the increase/decrease decision process will be discussed in more detail later). The bandpass of the signal path to the sensing comparator is shaped so that frequencies below 25 Hz are attenuated. This give the desirable effect of attenuating the lower frequency T-wave relative to the QRS complex. However, it has the undesirable effect of attenuating fibrillation signals. But the bandpass of the signal path to the AGC comparator is shaped so that the frequencies in the 3 to 12 HZ range are attenuated even more than they are in the signal path to the sensing comparator. The AGC system will compensate for the attenuation of a fibrillation signal by increasing the gain of the AGC amplifier. However, because the fibrillation signal to the AGC comparator is attenuated more than the signal to the sensing target, after the microprocessor has increased the gain the AGC voltage that appears at the sensing comparator will be higher than the AGC voltage that appears at the sensing comparator when QRS complexes are being sensed. Thus the margin is higher when a fibrillation waveform is present. With respect to pacing interaction, in the case of a bradycardia patient the gain setting must be appropriate to allow sensing of subsequent fibrillation. Also, the T-wave window must be set to sense T-waves evoked by the pacemaker. In this particular case, the gain is adjusted by the microprocessor so that the T-wave is at approximately the level of the sensing target. The assumptions are that evoked T-waves are larger than intrinsic T-waves, and that the QRS complex is much larger than T-waves. Such a gain is reasonably sufficient to sense fibrillation or a QRS complex. Referring to FIG. 3, AGC amplifier 60 of the sense amplifier section 25 provides initial bandpass filtering by means of a circuit consisting of resistors 110 and 111 and capacitors 112 and 113. The AGC amplifier gain is controlled by varying the gate voltage of an N-channel junction field effect transistor (JFET) 100 which acts as a voltage controlled input resistor to a non-inverting amplifier 101. The microprocessor 68 (FIG. 2) controls the on/off duty cycle of switches 103 and 104, to set the gate voltage of JFET 100 by charging and discharging capacitor 106 to a voltage between V+ and V c . This technique is used to obtain a gain range of 30:1 as determined by the resistance of resistor 107 and the on impedance of JFET 100. Resistor 115 allows proper biasing of the JFET circuit. Although switches 103 and 104 are schematically depicted as mechanical devices in the AGC amplifier circuit of FIG. 3 and in some of the other circuit diagrams, it will be understood that in practice electronic switches (such as field effect transistors) typically would be employed. Turning now FIG. 4, the output of the AGC amplifier section 60 is supplied to bandpass amplifier section 70 of sense amplifier 25. Section 70 has a programmable sensing margin feature and special bandpass characteristics which aid in tracking the variable amplitude fibrillation signal. The overall bandpass amplifier includes two active bandpass filter amplifiers 130 and 131, a programmable gain DC amplifier 135, and a passive high pass filter comprising capacitor 137 and resistor 138. This circuit reduces the amplitude of the signal components outside the frequency band of interest, and increases the sensing margin for the low frequency fibrillation signals. The microprocessor 68 sets the magnitude of resistance 140, and therefore can set the gain of DC amplifier 135 and, thus, the gain to the sensing target comparators separately from the gain to the AGC target comparators. In this manner, the sensing margin (which is proportional to the ratio between the sensing and AGC targets) is programmable, being selectable by the microprocessor. Alternatively, the effective ratio of the targets (and, therefore, the sensing margin) could be programmably changed by varying the gain of bandpass filter amplifier 131 through changes of the value of resistor 142, or by changing the target reference voltages themselves. The quad comparator 80 of sense amplifiers 25 is shown in Fig. 5, and an exemplary input signal and logic outputs of the comparator are illustrated in Fig. 6. The comparator has two comparator pairs comprising sensing target comparators 150 and AGC target comparators 151. The logic outputs L₁ and L₂ (upper and lower, respectively) of the sensing target comparators are used by the microprocessor as valid sense input signals. The logical "or" (L₃, either positive or negative) of the AGC target comparators is used by the microprocessor to evaluate the need for increasing or decreasing the AGC amplifier gain. The sensing targets represent a sensing threshold, and the AGC targets represent a sensed signal peak amplitude target. In the Figure 6 illustration, the positive and negative threshold values are equal for the AGC and sensing target comparators. This will result if the values of the positive input V₂ and the negative input V₁ (see Figure 5) are equal. V SENSE and V AGC reflect the comparator threshold inputs in their relationship to the comparator input signal. During sinus rhythm, the amplitude of the QRS complex dictates the gain setting of the AGC amplifier because of the relatively large amplitude, and high frequency content of the QRS. The same situation exists during sensing of a tachycardia. However, in the presence of a lower frequency fibrillation signal there is nearly a doubling of the sensing margin, because of the bandpass filters 141 and 143 (Fig. 4), thereby permitting more reliable tracking of the variable amplitude fibrillation signal. In this respect, it will be recognized that the series resistance-capacitance path in parallel with the resistance path or each of circuits 141 and 143 provides an input impedance to the respective operational amplifiers 130 and 131 such that the gain at high frequencies will be more than the gain at low frequencies. Thus, the frequency plot for the input signal to the AGC targets constitutes a bandpass (FIG. 7) which will pass QRS complexes faithfully, while T-waves will be relatively attenuated to minimize double sensing. Fibrillation signals will be passed accurately, although relatively attenuated, but will boost the gain of the AGC to over-compensate. By way of an example of operation, in the presence of a QRS complex which is being monitored by the sense amplifier with its sensing and AGC targets, the microprocessor 68 seeks to maintain the gain in such a way that the peak of the signal in the QRS complex approximately crosses the AGC target, as shown in FIG. 8. Such gain maintenance is achieved in the following manner. Any signal that crosses the sensing targets is considered to be a sense event. If a sense event occurs in a cardiac cycle, then sometime after it is sensed (which may, for example, occur during the refractory period, although the precise time is not significant) a flag is checked which indicates whether or not the AGC target was crossed by that sense event. If the AGC target was crossed, it is an indication that the gain is too high and should be decreased. At that point, the microprocessor decreases the gain. In the presently preferred embodiment, the gain is decreased by a certain percentage. As an alternative, however, the gain may be decreased by a fixed amount. The microprocessor also counts cycles in which sense events have occurred but there has been no crossing of the AGC target. If two consecutive cycles are detected in which the sensing target is crossed but the AGC target is not, the microprocessor recognizes that the gain is too low and must be increased. Here again, the increase may be effected as a fixed percentage or a fixed amount. If a fixed amplitude QRS complex is detected, a repeated pattern of alternately increasing and decreasing the sense amplifier gain takes place, controlled by the microprocessor in the previously described manner. When the gain is increased, the signal crosses the AGC target. The gain is then decreased,is maintained low for two cycles, and is then increased again, all as consequence of the fixed amplitude of the incoming signal and the operation of the AGC, filter and comparator circuits in conjunction with the microprocessor. This process is referred to as "dithering" in which the peak amplitude is dithered around the threshold of the AGC comparator in the presence of normal sensed activity. In essence, the amplitude of the sensed amplified signal is increased and decreased by small amounts in such a way that the peak of the signal is approximately at the level of the AGC target. Dither flags are "set" or cleared at various times during the performance of the AGC decision process. Two flags are utilized, one of which is set when a detected event crosses the AGC target and changes the gain, and the other of which is set when two consecutive sensed events fail to cross the AGC target. These are referred to as "dither up" and "dither down," respectively. If, for example, the patient is in fibrillation, the detected signal is very small and the gain of the sense amplifier is very high. After delivery of shock therapy and consequent defibrillation, the detected cardiac signal now appears to be very large because the gain of the amplifier is no longer appropriate. The desire is to avoid rate counting any target crossings to determine whether an arrythmia is present until the gain has been restored to an appropriate level. A determination is made that the gain is appropriate when the dither flags are "set," which may, for example, take place when the gain is increased. At that point, the detection system is locked into the signal. Upon setting of both bits the dither criterion is achieved, and valid tachycardia detection or fibrillation detection may then validly proceed. The situation, and the need to reestablish the appropriate gain, will change only after a pace event or after an anti-tachycardia therapy. Consideration must be given to the manner in which the gain is to be adjusted during bradycardia pacing, where, for example, a lack of sensed events may be attributable to either a slow heart rate or an inadequate gain setting of the sense amplifier. To determine which of these is responsible, sensing of the relatively lower frequency post-pace T-waves is performed. If no T-wave is sensed at the sensing target comparators in a preset time window following a pace event, the AGC gain is increased. This is continued until the amplitude of a T-wave exceeds the sensing target and is thereby sensed, as indicated in FIG. 9, or until the previously undetected heart rhythm is sensed. The major differences between the gain control based on post-pace T-waves and the gain control based on QRS and fibrillation signals are the time window and that the T-wave amplitudes are controlled about the sensing target rather than the AGC target. This tends to assure that the amplifier gain is not set too high in the event that an intrinsic QRS signal is sensed; that is, to avoid double sensing of QRS followed by a T-wave. In the case of bradycardia, then, the sense amplifier will see pace events instead of a QRS complex. If capture is achieved, a T-wave will follow each pace event. It is known that T-waves are of lower amplitude than QRS complexes, and that post-paced T-waves are of greater amplitude than intrinsic T-waves. The invention takes advantage of these characteristics in that the window indicated in FIG. 9 is opened a predetermined delay interval after a pace -- for example, an interval of 200 to 400 milliseconds after the pace -- and a T-wave is looked for during the window period. If a T-wave is sensed, the gain is adjusted by microprocessor control to dither the amplitude of that wave around the sensing target, as shown in FIG. 9, in a manner corresponding to that previously described for dithering about the AGC target. The assumption is made that after a pace event the patient's heart may be in fibrillation or bradycardia (or the gain may be too low). If the gain is set to just barely sense something in the window period, and fibrillation is present, there generally will be signals which occur after the T-wave window and before the next pace. In that case, it is recognized that the next cycle will not be a pace cycle, and there is no need to look for a T-wave. A different algorithm is followed to reduce the time required to detect defibrillation in these circumstances. If, after two consecutive paces nothing is sensed in the T-wave interval, the gain is increased by a relatively large amount (i.e., the sensitivity of the sense amplifier is considerably increased) in an attempt to detect a fibrillation signal. The process is repeated if, after increasing the gain, there is still no detection of a T-wave or fibrillation following two consecutive paces. In this way, the gain undergoes rapid change to seek some kind of signal. The programmable maximum gain is nominally the maximum gain of the device. In the presently preferred embodiment, maximum gain can be programmed such that the device is sufficiently sensitive to detect signals as low as 0.3 to 0.5 millivolts. For bradycardia pacing, the AGC and sense targets are set to two-to-one because the area of interest is the relationship between the QRS and the T-wave. However, in situations where one morphology of waveform may be present for a while and an abrupt shift may take place to another morphology, a greater sense margin is required. With the above considerations in mind, the following AGC algorithms are implemented in the presently preferred embodiment of the invention: 1. Reduce gain by a small amount after one high gain sense event. Increase gain by a small amount after two sequential low gain sense events, and each subsequent low gain sense event. The rationale for an initial ratio of two low gain sense events to increase gain to one high gain event to decrease gain is that, in so doing, the very high R-waves are allowed to dominate the AGC adjustment until the R-waves are dithering about the AGC target. In that case, if the sense margin is correctly set, T-waves should not be sensed. Equivalently, the margin must be set so that an R-wave and its T-wave cannot both be sensed as low gain events. However, the requirement of two sequential low gain sense events makes the gain increase portion of this algorithm somewhat erratic in the presence of fibrillation, because of the possibility that a run of two sequential low gain sense events may not be found in fibrillation. For example, the sequence might be high gain/low gain/no-sense, followed by a bradycardia pace. 2. For a bradycardia pace event: (a) if a T-wave crossed the AGC target (in the T-wave window), decrease the gain by a small amount; (b) if a T-wave crossed the sensing target but not the AGC target, and there has been a step increase in gain but there has not yet been an R-wave sense event, decrease the gain by a small amount; (c) if a T-wave has not crossed the sensing target, increase the gain by twice the "small decrease" amount; (d) if there are two sequential brady pace/no T-wave events, increase the gain by a large step and clear the dither flags, and step increase the gain again on each following consecutive brady pace/no T-wave event. A T-wave may not be sensed after a brady pace event for any of the following reasons: (i) the T-wave did not exceed the sensing target, (ii) the pacing took place during fibrillation, (iii) a fusion beat was followed by an abnormal T-wave, (iv) there was a failure to capture, or (v) there was a failure of the sensing system. 3. If brady pacing causes a step increase in gain, clear the dither flags. Double the incremental step size used to increase and decrease the gain on R-wave events until the gain dithers. The rationale here comes from dog studies in which fusion beats were found to produce waveforms with abnormally small post-pace T-waves, thereby causing step increases in gain which, in turn, resulted in serious over-amplification. Therefore, in the presently preferred embodiment, the dither flags are cleared after a step increase in gain, and rhythm classification is not resumed until the gain has dithered which will not occur until any over-amplification has been corrected. Because this tends to increase fibrillation detection time, which is contrary to the reason for the step increase in gain, the incremental step size is doubled when the dither flags are cleared. Thereby, the search time is decreased without leading to significant under- or over-sensing. 4. After an anti-arrhythmic therapy, clear the dither flags. In all cases, do not attempt to classify the cardiac rhythm until the gain has increased (i.e., as a result of two sequential low gain events). The rationale here is that rhythm classification probably should not begin until the gain is locked on the event but, since this can inordinately lengthen the time for detection of fibrillation, a reasonable compromise is to commence classification as soon as it can be ascertained that the system is not over-amplified, which is after two consecutive low sense events. 5. If gain is driven to the maximum by R-wave sensing and the R-wave has not yet crossed the AGC target, set the dither flags. If gain is driven to the minimum by any sequence of events, set the dither flags. 6. If noise is sensed during quiet time, and the noise crossed the AGC target, reduce the gain by a small amount. If the noise does not cross the AGC target, do not adjust the gain. 7. If a programmable number of consecutive gain decreases occur, then inhibit rhythm classification until a gain increase occurs. This reduces the likelihood of inappropriate detection due to over-amplification of rhythms which change spontaneously or due to external influences (e.g. cardioversion). Although a presently preferred embodiment of the invention has been described herein, it will be apparent to those skilled in the field to which the invention pertains that the variations and modifications of the disclosed embodiment may be implemented.

Claims: An implantable cardiac stimulator for detecting cardiac arrhythmias by analysing electrical signals produced by the heart, comprising: heart stimulating means (31,40); sensing means (60) responsive to electrical activity of the heart and adapted to produce electrical signals representative of electrical activity of the heart, said sensing means (60) comprising an amplifier with a gain which is adjustable; signal processing means (70) comprising: a filter (141) for attenuating low frequency signals in said electrical signals, a first signal path (75) connected to a comparator (150) for detecting a signal having a magnitude greater than a sensing target, a second signal path (76) connected to a second comparator ( 151) for detecting a peak signal amplitude greater than a gain control target, a second filter (143) in said second signal path for attenuating very low frequency signals and for increasing a sensing margin in the absence of high frequency signals, said sensing margin being a ratio peak signal amplitude-to-sensing target level, said second filter (143) being a bandpass filter; processor means (68) responsive to said signal processing means for adjusting said gain of said amplifier according to the amplitude of each sensed event relative to at least one of said targets and for analysing sensing target crossings; characterised by said processor means (68) avoiding analysis of electrical signals produced by the heart to determine whether an arrhythmia is present after delivery of therapy to the heart until the gain has been adjusted both up and down at least once. The implantable cardiac stimulator according to Claim 1 wherein said processor means (68) increases said gain if a signal from a sensed event does not exceed said gain control target in two successive cardiac cycles. The implantable cardiac stimulator according to Claim 2 wherein said processor means (68) decreases gain if a signal from a sensed event exceeds said gain control target in a cardiac cycle. The implantable cardiac stimulator according to any of Claims 1 through 3, the processor means (68) further controlling said gain after a pace event in the heart. The implantable cardiac stimulator according to Claim 4 wherein said processor means comprise timing means for defining a time window after a pace event, and wherein said processor means adjust gain upon detection of a signal crossing said sensing target or said gain control target during said window. The implantable cardiac stimulator according to Claim 5 wherein if a signal crossing the sensing target is not detected in the time window after two successive pace events, gain is increased by a large step and rate counting of target crossings to determine whether an arrhythmia is present is avoided until gain has thereafter been adjusted both up and down at least once. The implantable cardiac stimulator according to any of the preceding claims further comprising means (40) for defibrillating the heart.

Inventors: BAKER ROSS G JR, CALFEE RICHARD V, HALUSKA EDWARD A, WHISTLER STEPHEN J, BAKER, ROSS G., JR., CALFEE, RICHARD V., HALUSKA, EDWARD A., WHISTLER, STEPHEN J.
Applicants: INTERMEDICS INC, INTERMEDICS INC.
Application year: 1989
Main classification: A61N1
IPC codes: A61N1, A61B5