Figure 4 - uploaded by José J Rieta
Content may be subject to copyright.
MSP430 simulator/debugger CYCLECOUNTER feature 

MSP430 simulator/debugger CYCLECOUNTER feature 

Source publication
Conference Paper
Full-text available
Implantable defibrillators (ICDs) use very low computational cost criteria (rate, stability and onset) offering good sensitivity for arrhythmia detection. Although, the specificity of these combined criteria decreases in difficult arrhythmia discrimination as in case of discrimination between ventricular tachycardia (VT) and supraventricular tachyc...

Context in source publication

Context 1
... classic criteria used in Implantable Defibrillators (ICDs) based on rate, stability and sudden onset calculations over electrogram (EGM), offer good sensitivity for arrhythmia detection. The requirements of these combined criteria in terms of computational cost are very low and can be implemented in ICDs without problems. Although the good sensitivity of these combined criteria, specificity decreases in difficult arrhythmia discrimination as in case of discrimination between Ventricular Tachycardia (VT) and Supraventricular Tachycardia (SVT) [1]. In these difficult cases, ICD specificity can be increased using morphological criterion based algorithms. In fact, several morphological published algorithms that enhance arrhythmia discrimination can be found [2-5]. But most of these published algorithms are developed in personal computers and cannot be used in ICDs because of computational cost requirements compared with limited ICD capabilities. A general method to determine the possibility of ICD implementation for a discrimination algorithm will be proposed. A quantitative overload ratio will be calculated in order to determine the ICD portability of a given arrhythmia discrimination algorithm. Three morphological published discrimination algorithms with increasing complexity have been selected in order to test the proposed method to determine the possibility of ICD implementation: - Time domain (complex peak area comparison) [2]. - Simplified Wavelet [3, 4]. - Frequency domain (Fourier complex spectrum analysis) [5]. Each algorithm has been reconstructed from author published information without access to original algorithm implementation. TIME DOMAIN This discrimination algorithm differentiates between VT and SVT by analysis of ventricular complexes morphology on a beat-to-beat basis in time domain. The algorithm compares a test complex to a previously stored complex template in baseline rhythm. The comparison is accomplished calculating the difference between the peak areas of the test and template complexes. The two complexes are aligned and the area of each peak is normalized (figure 1). The differences between the calculated peak areas are summed: area_dif = area of A − area of A ′ + area of B − area of B ′ + area of C − area of C ′ A template percent match score is inversely proportional to these differences: Match ( % ) = 1 ⋅ 100 area_dif If the template percent match score is greater than a programmable threshold (range 30% to 95%) for a number of programmable complexes, the discrimination algorithm indicates SVT otherwise VT. SIMPLIFIED WAVELET This discrimination algorithm differentiates between VT and SVT by analysis of ventricular tachycardia electrograms using the Wavelet transform. The algorithm is based in the fact that alteration on the morphology of the complexes, in general, is because of the change in the origin chamber. The algorithm compares the morphology of ventricular electrograms during a tachycardia with a template of electrogram morphology recorded during baseline rhythm using the Wavelet transform. A percent match score describes the degree of morphology similarity of the baseline and tachycardia electrograms (figure 2). algorithm: 1. Wavelet transform of template electrogram (recorded during baseline rhythm) is calculated and stored. 2. Ventricular tachycardia electrograms, previous to rate criterion detection, are aligned with template electrogram in time domain (peak alignment). 3. Wavelet transform of each ventricular electrogram (test EGM) is calculated in real time. 4. The percent match score is calculated for each test EGM. This score is based on the differences between the test and template electrograms Wavelet transform coefficients. Some simplifications have been adopted in the algorithm implementation to reduce computational requirements and enable real time processing: - Haar Wavelet transform has been used because they simplify computation. - The original Haar Wavelet transform has been modified defining the amplitude of all Wavelet functions to be either 1 or -1. Using these amplitude values no multiplications are needed, reducing the computational cost of the Wavelet transform implementation. - All calculated Wavelet coefficients smaller in absolute value than a programmed threshold are removed. This reduces noise and decreases computational cost. FREQUENCY DOMAIN The last discrimination algorithm differentiates between rhythms originated in the ventricle, such as ventricular fibrillation (VF) and ventricular tachycardia (VT), and rhythms originated in the atria, such normal sinus rhythm (SR) and supraventricular tachycardia (SVT). The algorithm is based in the alterations observed in the spectrum of the complexes (frequency domain) due to morphologic changes between ventricular and atrial rhythms. When the rhythm is originated in the atria and travels through the normal conduction path, the complex spectrum contains high frequency components. When the rhythm is originated in the ventricle, the high frequency components of the complex spectrum are attenuated. For the supraventricular rhythms (SR, SVT), the frequency spectrum has their maximum around 8 Hz and decrease slowly. While for ventricular rhythms (VT, VF), the spectrum is centered in lower frequencies, around 4Hz, and decreases quickly when the frequency increases. Two steps are involved in the execution of the algorithm: 1. The complex spectrum is calculated using a discrete Fourier transform (DFT). Only five coefficients are calculated corresponding to 4, 8, 12, 16 and 20 Hz spectral components. 2. The five calculated spectral components are introduced in a neural network to classify the complex as ventricular or atrial. The neural network (figure 3) has one input layer composed of 5 neurons, a hidden layer of 4 neurons and an output layer of 1 neuron. The original implementation uses an output layer of 2 neurons but, for comparison reasons, the discrimination between VT and VF has been removed. The neural network has been defined and trained using Matlab Neural Network Toolbox [6]. Remember that each algorithm has been reconstructed from author published information without access to original algorithm implementation. Because of this, differences between original and reconstructed algorithm can be found. The reconstructed algorithm is implemented in MATLAB for testing purposes. After testing the reconstructed algorithm, the MATLAB implementation is ported to C language for computational cost estimation. Although, assembler language programming produces better code in terms of optimization, C language programming has been chosen to make migration to alternative target platforms easier. The Texas Instruments MSP430 ultralow-power microcontroller family [7] has been chosen as the target platform for compilation purposes. The MSP430 architecture is optimized to achieve extended battery life in portable measurement applications. Its powerful 16-bit RISC CPU is optimized for maximum code efficiency, incorporating features specifically designed for the use of high-level languages such as C. The C language algorithm implementation is compiled for the MSP430 target using maximum optimization for speed. The compiler creates assembler output listing and instructions number (N ins ) can be counted in order to determine the cycle number (N cycles ) through the cycles per instruction (CPI) conversion constant: N cycles = N ins ⋅ CPI But this is not an easy task because in the MSP430 CPU, the cycles per instruction required for an instruction is not a constant and depends on the instruction format and the addressing mode used. Fortunately, the total cycle number can be calculated directly using the cycle counter feature of the MSP430 simulator/debugger (figure 4). Assuming a CPU clock frequency of 32.768 kHz and 5 seconds available for discrimination, the maximum allowed cycles are 163840. The three selected morphological discrimination algorithms have been analyzed with the proposed method to determine the possibility of ICD ...

Citations

... Three morphological algorithms with increasing complexity have been selected: time domain [2] (complex peak area comparison), simplified Wavelet [3][4] and frequency domain [5] (Fourier complex power spectra analysis and neural network) algorithms. The algorithms had been previously analyzed and compared in terms of computational cost [6]. ...
Conference Paper
Full-text available
Discrimination between ventricular tachycardia (VT) and supraventricular tachycardia (SVT) in implantable cardioverter defibrillators (ICDs) is still an unsolved task due to the low specificity of traditional techniques based in rate, stability and onset. Several morphological published algorithms enhance VT vs. SVT discrimination by increasing algorithm complexity. Three morphological published algorithms with increasing complexity have been selected: time domain (complex peak area comparison), simplified wavelet and frequency domain (Fourier complex power spectra analysis and neural network) algorithms. All them have been reconstructed from published information and programmed in MATLAB. The algorithms has been optimized in order to obtain an improved classification and to work in a 16-bit microcontroller platform (Texas Instruments MSP430 microcontroller). A final test of the optimized algorithms has been accomplished using a classified unipolar and bipolar electrogram (EGM) database. The configurable parameters of the algorithms have been adjusted in order to maximize sensitivity (SE), specificity (SP) and accuracy (AC)
Article
In recent decades, implantable cardioverter defibrillators (ICDs) have improved substantially, becoming the treatment of choice for patients at high risk of life-threatening arrhythmias. Nevertheless, inappropriate shock therapy for non-ventricular arrhythmias is still a problem. Extending the ICD battery lifetime demands very low power consumption, which is obtained at very low microprocessor clock frequencies. Currently, some high-performance algorithms remain beyond the computational capabilities of ICDs. Future ICDs with higher computing power will permit the implementation of computationally intensive algorithms, enhancing the discrimination performance and preventing inappropriate shock therapies. An ICD algorithm status review is presented from the point of view of signal processing techniques and their computational costs. Several examples of discrimination algorithms with increasing computational cost are analyzed. Whereas some of them are already used in commercial ICDs, other algorithms cannot be implemented yet in current ICDs. A solution based on dynamic adaptation of microprocessor power consumption to meet algorithm computational requirements is proposed. This solution allows implementation of complex discrimination algorithms in ICDs without significantly increasing the power consumption.