Construction of a High-Pass Digital Filter From a Low-Pass Digital Filter

Similar documents
Design and responses of Butterworth and critically damped digital filters

BCA 618 Biomechanics. Serdar Arıtan Hacettepe Üniversitesi. Spor Bilimleri Fakültesi. Biyomekanik Araştırma Grubu

A Lower Transition Width FIR Filter & its Noise Removal Performance on an ECG Signal

Biomechanical Instrumentation Considerations in Data Acquisition ÉCOLE DES SCIENCES DE L ACTIVITÉ PHYSIQUE SCHOOL OF HUMAN KINETICS

Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Infinite Impulse Response Filters

The Calculation of grms. QUALMARK: Accelerating Product Reliability WHITE PAPER

Fill in the following worksheet-style pages. A colored pen or pencil works best. The procedure is:

Homework Assignment 07

Design of IIR Digital Filters with Flat Passband and Equiripple Stopband Responses

Active Filter Design Techniques

Response spectrum Time history Power Spectral Density, PSD

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

Fundamentals of Time- and Frequency-Domain Analysis of Signal-Averaged Electrocardiograms R. Martin Arthur, PhD

A New Method of Emission Measurement

Low Pass Filter Introduction

Measurement System for Acoustic Absorption Using the Cepstrum Technique. Abstract. 1. Introduction

Interface Electronic Circuits

LECTURER NOTE SMJE3163 DSP

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District DEPARTMENT OF INFORMATION TECHNOLOGY DIGITAL SIGNAL PROCESSING UNIT 3

Laboratory Assignment 5 Amplitude Modulation

Chapter 2 Analog-to-Digital Conversion...

SIGMA-DELTA CONVERTER

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

EDL Group #3 Final Report - Surface Electromyograph System

Design IIR Filters Using Cascaded Biquads

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling)

Module 1: Introduction to Experimental Techniques Lecture 2: Sources of error. The Lecture Contains: Sources of Error in Measurement

DETERMINATION OF CUTTING FORCES USING A FLEXURE-BASED DYNAMOMETER: DECONVOLUTION OF STRUCTURAL DYNAMICS USING THE FREQUENCY RESPONSE FUNCTION

Introduction to Op Amps By Russell Anderson, Burr-Brown Corp

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

IEEE TRANSACTIONS ON COMMUNICATIONS, VOL. 50, NO. 12, DECEMBER

CL Digital Control Kannan M. Moudgalya

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Homework Assignment 06

Using the isppac 80 Programmable Lowpass Filter IC

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

(i) Sine sweep (ii) Sine beat (iii) Time history (iv) Continuous sine

Electric Circuit Theory

ELECTROMYOGRAPHY UNIT-4

PYKC 7 Feb 2019 EA2.3 Electronics 2 Lecture 13-1

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods

FYS3240 PC-based instrumentation and microcontrollers. Signal sampling. Spring 2017 Lecture #5

SHOCK AND VIBRATION RESPONSE SPECTRA COURSE Unit 17. Aliasing. Again, engineers collect accelerometer data in a variety of settings.

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Designing a 960 MHz CMOS LNA and Mixer using ADS. EE 5390 RFIC Design Michelle Montoya Alfredo Perez. April 15, 2004

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Basics of Digital Filtering

Preliminary study of the vibration displacement measurement by using strain gauge

Dynamic thresholding for automated analysis of bobbin probe eddy current data

Keysight Technologies Pulsed Antenna Measurements Using PNA Network Analyzers

Fourier Theory & Practice, Part I: Theory (HP Product Note )

SECTION 6: ROOT LOCUS DESIGN

Resonance in Circuits

Design of Accelerometer Pre-regulation Circuit and Performance Analysis of the Key Components

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

Advanced Measurements

ActiveLowPassFilter -- Overview

CHAPTER 3 ANALOG SIGNAL CONDITIONING

An Efficient Zero-Loss Technique for Data Compression of Long Fault Records

Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

Section 5.2 Graphs of the Sine and Cosine Functions

Basic Signals and Systems

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

Lab 4 Digital Scope and Spectrum Analyzer

DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

Signals, sampling & filtering

FOURIER analysis is a well-known method for nonparametric

Veröffentlichungen am IKFF PIEZOELECTRIC TRAVELLING WAVE MOTORS GENERATING DIRECT LINEAR MOTION

DSP Filter Design for Flexible Alternating Current Transmission Systems

Analysis of Fast Fading in Wireless Communication Channels M.Siva Ganga Prasad 1, P.Siddaiah 1, L.Pratap Reddy 2, K.Lekha 1

Measurement Techniques

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

Validation & Analysis of Complex Serial Bus Link Models

DIGITAL FILTERING OF MULTIPLE ANALOG CHANNELS

PHYS225 Lecture 15. Electronic Circuits

Signal Processing for Digitizers

A Low-Cost Programmable Arbitrary Function Generator for Educational Environment

SHAKER TABLE SEISMIC TESTING OF EQUIPMENT USING HISTORICAL STRONG MOTION DATA SCALED TO SATISFY A SHOCK RESPONSE SPECTRUM

This manuscript was the basis for the article A Refresher Course in Control Theory printed in Machine Design, September 9, 1999.

A.C. FILTER NETWORKS. Learning Objectives

Improving ECG Signal using Nuttall Window-Based FIR Filter

Test Your Understanding

ENGINEERING STAFF REPORT. The JBL Model L40 Loudspeaker System. Mark R. Gander, Design Engineer

AD8232 EVALUATION BOARD DOCUMENTATION

CHAPTER 7 INTERFERENCE CANCELLATION IN EMG SIGNAL

Changing the sampling rate

Theoretical 1 Bit A/D Converter

Laboratory Assignment 1 Sampling Phenomena

Texas Components - Data Sheet. The TX53G1 is an extremely rugged, low distortion, wide dynamic range sensor. suspending Fluid.

An active filter offers the following advantages over a passive filter:

Subtractive Synthesis without Filters

Lab 2: Designing a Low Pass Filter

Signal Processing. Naureen Ghani. December 9, 2017

Pulse Code Modulation (PCM)

Lecture 2 Analog circuits. Seeing the light..

Digital Signal Processing of Speech for the Hearing Impaired

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

Do all accelerometers behave the same? Meggitt-Endevco, Anthony Chu

Dual FET-Input, Low Distortion OPERATIONAL AMPLIFIER

Transcription:

TECHNICAL NOTES JOURNAL OF APPLIED BIOMECHANICS, 1994,10, 374-381 Q 1994 by Human Kinetics Publishers, Inc. Construction of a High-Pass Digital Filter From a Low-Pass Digital Filter Stephen D. Murphy and D. Gordon E. Robertson To remove low-frequency noise from data such as DC-bias from electromyograms (EMGs) or drift from force transducers, a high-pass filter was constructed from a low-pass filter of known characteristics. A summary of the necessary steps required to transform the low-pass digital were developed. Contaminated EMG and force platform data were used to test the filter. The high-pass filter successfully removed the low-frequency noise from the EMG signals. The high-pass filter was then cascaded with the low-pass filter to produce a band-pass filter to enable simultaneous high- and low-frequency noise reduction. The smoothing of displacement signals prior to time differentiation is essential to remove high-frequency artifacts. Higher frequencies become amplified during the differentiation process (see Winter, 1990). To remove highfrequency noise, low-pass digital filters are frequently used. A similar situation occurs when low-frequency noise is present in a signal that needs to be integrated. Even a relatively small bias error, upon integration, can become the dominant component of the signal. The solution is a high-pass filter, which removes the low-frequency interference and leaves the higher frequencies unaffected. Digital high-pass filters are rarely used in biomechanics. These filters could be valuable when low-frequency noise, such as amplifier drift, occurs during electromyography (EMG), accelerometry, or dynamometry. The goal of this research was to develop a high-pass digital filter using the same software already developed for performing low-pass digital filtering, since most biomechanics researchers already possess such technology. Pezzack, Norman, and Winter (1977) showed that the process of digitally filtering cinefilm coordinate data to remove high-frequency noise and then applying finite differences was an appropriate solution for obtaining segmental kinematics. More detail on the construction of the low-pass filter used by Pezzack et al. can be found in Rader and Gold (1967) and Winter (1990). Barr and Chan (1986) constructed low-pass, high-pass, band-pass, and band-stop digital filters based on a transformation from an analog low-pass filter. Barr and Chan's approach did not take advantage of the current knowledge that exists regarding the construction of low-pass digital filters to build high-pass digital filters. A high-pass digital filter can be constructed from a low-pass digital Stephen D. Murphy and D. Gordon E. Robertson are with the School of Human Kinetics, University of Ottawa, Ottawa, ON Canada KIN 6N5.

High-Pass Digital Filter 375 filter by means of a transformation. A brief presentation of this derivation, as well as applications of the high-pass digital filter follows. For a more detailed description of the theory behind this approach, consult the text by Oppenheim and Schafer (1989), who developed the principles upon which this transformation is made, but who did not provide a specific example with validation of its effects. Theory The general Nth order digital filter is a recursive equation of the form (Hamming, 1977) N N Therefore, a second order (N = 2) digital filter is written Yn = aoxn + alxn-l + W n-2 + b,y,-t + b2yn-2. Let the known low-pass digital filter have the following transfer function: To get the corresponding high-pass digital filter let (Oppenheim & Schafer, 1989) where and q, = angular velocity of low-pass filter (radls), wp = angular velocity of highpass filter (radls), and T = sampling interval (seconds). Expanding and regrouping the constants into the same form as (Equation 1) yields the high-pass filter with the following coefficients:

376 Murphy and Robertson Before the coefficients for the low-pass filter can be calculated, a suitable low-pass cutoff frequency must be chosen. Since the high-pass cutoff frequency is given and the low-pass cutoff frequency can be chosen arbitrarily based on a, set a = 0 and solve for a&,. Choosing a = 0 simplifies the calculations of the high-pass filter coefficients (see Equation 3) and Equation 2 implies that qqt + Q,~T = a. Solving for wp gives qp = (IT- @,T)/T. Since researchers usually deal with frequencies rather than angular velocities, recall that mq = 27tfhp- Perform a similar substitution for ol, and simplify to get To summarize, use the following steps to build a high-pass digital filter: 1. After selecting the desired cutoff frequency for the high-pass filter, use Equation 4 to calculate the associated low-pass filter's cutoff frequency,.hq. 2. Next, compute the low-pass filter's coefficients (Ai and Bj) using the usual equations. We recommend a zero-lag, Butterworth, critically damped filter as presented by Winter (1990) (for suitable equations, see below). 3. Then by letting a = 0 in Equation 3, the new coefficients, a, and bi, for the high-pass digital filter will be 4. Finally, filter the data using the same equation as for the low-pass filter but using the coefficients, ai and bj, instead of Ai and Bi. As an example, the following steps were used to construct a high-pass filter from the critically damped, Butterworth, low-pass zero-lag filter as described by Winter (1990). First, assume that the researcher has sampled the data at a frequency, f,. Using Equation 4, the associated low-pass cutoff frequency is Note that the cutoff frequency, j,, must be less than one half the sampling rate, f,; otherwise, an aliasing error will occur due to violation of the sampling theorem. Second, determine the cutoff frequency of the associated low-pass filter (see Winter, 1990): o, = tan [n(f;&)]. Third, correct for the number of filter passes of the critically damped, zero-lag filter (Robertson, Barden, & Dowling, 1992). The corrected cutoff is where n is the number of filter passes. In the case of a zero-lag filter where the data are passed (cascaded) through the filter twice (once in the forward direction and once in the backwards direction) n will be 2. Fourth, compute the low-pass filter coefficients. Let Kl = 203,* and K1 = Then, the low-pass coefficients are as follows:

High-Pass Digital Filter Fifth, from Equation 5 above, the high-pass coefficients are a, = A, a, = -Al, a2 = A,, b, = -B,, and b2 = B2. Finally, filter the data by running them through the filter first in the forwards direction and then in the reverse direction. This will produce a zero-lag filter with a roll-off of fourth order (i.e., -24 db/ octave). The equation of the filter is yi = a,gi + alxi-~ + a24-~ + blyi-i + boi-2, where, 4 are the raw data and yi are the filtered data. Methods Four applications of the high-pass digital filter demonstrate its usefulness in removing low-frequency noise. In the first two applications, a high-pass filter was constructed and applied to two 6-second samples of EMG from a series of flexor digitorurn longus muscle contractions. ~ ach signal was collected at approximately 2100 Hz. The first EMG had a DC-bias of 0.13 mv added while the second sample had a drift of 0.42 mv/s added. The third application was a vertical force history that was collected from a piezoelectric force platform (Kistler Model 9865B) with the "time constant" option set (Bioware Version 2.0, Kistler Corp.) to produce drift. This is similar to using the "long" time constant on the older Kistler Model 9261A force platforms. The subject stood on the platform and performed a series of deepknee bends. In the fourth application, a digitally constructed signal containing 0.1, 1.O, and 10.0 Hz sine waves, all with unity amplitude, was constructed. Low-pass and high-pass filters were designed in the same manner as above. The multifrequency signal was both high-pass and low-pass filtered and then was filtered with both the high-pass and low-pass filters providing a band-pass filter. Results and Discussion Figure 1 shows the frequency response of the high-pass filter. Notice that this filter is very flat in the pass band. This is a property of Butterworth filters, which are designed to be optimally flat in the pass band. In Figure 2, a raw EMG signal with a DC-offset is displayed. Below it in the same figure is the signal after applying a high-pass filter with a cutoff frequency of 1.0 Hz. The filter successfully removed the bias from the signal without adversely influencing the amplitudes of the high-frequency components. Note that the closely dotted line in the middle of this and the following figures are the zero voltage levels. Both curves have the same scaling factor, which is displayed to the right beside each curve. The time-axis scaling is displayed in the bottom right-hand side of each figure. Figure 3 shows a similar EMG that had "drift" present. The lower curve was filtered at 1.0 Hz, which completely removed the drift but left the EMG amplitudes unaffected. These results demon-

uoswqo~ pue Ayd~n~

High-Pass Digital Filter 3 79 Figure 3 - Effects of a high-pass filter on an EMG signal with "drift." strate the usefulness of a high-pass filter for removing unwanted low-frequency noise from EMG signals. In Figure 4 a vertical force history with drift due to using a piezoelectric force platform (Kistler) with a low time constant is shown. After 12 seconds, the apparent body weight of the subject dropped from 717 N to 633 N. After running the data through a high-pass filter with a 0.5 Hz cutoff the body weight line was reduced to zero. This was expected because a high-pass filter acts like ac-coupling and so the dc-offset produced by the subject's body weight was removed from the signal, as shown by the middle curve in Figure 4. The lower curve shows the force signal after the body weight of 717 N was added back. This signal very closely matches the original signal, except that the drift due to the low time constant has been removed. Notice that there is a slight artifact present in the first second of the filtered signal. This is due to the "warm-up" that is needed before the filter functions correctly. These effects can be reduced by having lead-in data to allow the filter time to settle. Figure 5 shows the results of both high-pass and low-pass filtering a signal containing 0.1, 1.0, and 10.0 Hz sine waves. The top curve is the raw data, the second curve shows the data high-pass filtered with a 0.5 Hz cutoff, and the third curve shows the effects of low-pass filtering at 5.0 Hz. The bottom curve demonstrates the effects of cascading the data through a 0.5 Hz high-pass filter followed by a 5.0 Hz low-pass filter. Examining the second and bottom curves shows that the low frequency 0.1 Hz signal is no longer present. Its signal amplitude has been reduced to 3% of its original amplitude. The higher frequency 10 Hz signal has also been reduced (to 12%) in the third and bottom curves, but is still visible in the filtered signals. Lowering the low-pass filter's cutoff would

-leu%!s p3!8!p dauanbaq -!Jlnur e jo %u!ja~g ssed-pueq pue bssed-~ol bssed-qs!q jo spa333 - s a~n%!& uosllaqo~ pue Ayd~nw 08E

High-Pass Digital Filter 381 reduce the 10 Hz signal more, but the amplitude of the 1.0 Hz signal will also be reduced. Again, notice that these filters do require time to reach their specified operating characteristics. In the case of zero-lag filters, extra leading and trailing data are required (see Smith, 1989). References Barr, R.E., & Chan, E.K.Y. (1986). Design and implementation of digital filters for biomedical signal processing. Journal of Electrophysiological Techniques, 13,73-93. Hamming, R.W. (1977). Digitalfilters. Englewood Cliffs, NJ: Prentice Hall. Oppenheim, A.V., & Schafer, R.W. (1989). Discrete-time signal processing. Englewood Cliffs, NJ: Prentice Hall. Pezzack, J.C., Norman, R.W., & Winter, D.A. (1977). An assessment of derivative determining techniques used for motion analysis. Journal of Biomechanics, 10, 377-382. Rader, C.M., & Gold, B. (1967). Digital filtering design techniques in the frequency domain. Proceedings of leee, 55, 149-171. Robertson, D.G.E., Barden, J., & Dowling, J. (1992). In Proceedings of the Second North American Conference on Biomechanics. Kingston, ON: Canadian Society for Biomechanics, Queen's University. Smith, G. (1989). Padding point extrapolation techniques for the butterworth digital filter. Journal of Biomechanics, 22, 967-972. Winter, D.A. (1990). Biomechanics and motor control of human movement. Toronto, ON: Wiley. Acknowledgment For technical assistance, we wish to thank Dr. Tyseer Aboulnasr of the Department of Electrical Engineering, University of Ottawa.