Data Smoothing D. Gordon E. Robertson, PhD, FCSB.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Filtering Signal Processing.2
All about noisy time series analysis in which features exist and long term behavior is present; finite boundary conditions are always an issue.
Comparison Of Impact And Shock Attenuation Between Full- suspension And Front Suspension Bicycles J. P. Roy, B.Sc. D. G. E. Robertson, Ph.D. Biomechanics.
Nonrecursive Digital Filters
Time-Domain Signals, Filtering, and the Overlap Problem
Chapter-3-1CS331- Fakhry Khellah Term 081 Chapter 3 Data and Signals.
Chap 4 Image Enhancement in the Frequency Domain.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
TRANSMISSION FUNDAMENTALS Review
Analog Data Processing with BioProc3 Part Two EMG Analysis Techniques.
Techniques in Signal and Data Processing CSC 508 Fourier Analysis.
EE 4272Spring, 2003 Chapter 3 Data Transmission Part II Data Communications Concept & Terminology Signal : Time Domain & Frequency Domain Concepts Signal.
Chapter 3 Data and Signals
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Data Transmission Slide 1 Continuous & Discrete Signals.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Data, Signal.
Module 3.0: Data Transmission
3.1 Chapter 3 Data and Signals Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fourier Analysis D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics University of Ottawa.
Measurement and Instrumentation Dr. Tayab Din Memon Assistant Professor Dept of Electronic Engineering, MUET, Jamshoro. ACTIVE FILTERS and its applications.
Advanced Operational Amplifier applications
AGC DSP AGC DSP Professor A G Constantinides 1 Digital Filter Specifications Only the magnitude approximation problem Four basic types of ideal filters.
Electromyography: Recording D. Gordon E. Robertson, Ph.D. Biomechanics Laboratory, School of Human Kinetics, University of Ottawa, Ottawa, CANADA.
Chapter 25 Nonsinusoidal Waveforms. 2 Waveforms Used in electronics except for sinusoidal Any periodic waveform may be expressed as –Sum of a series of.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Chapter 5 Frequency Domain Analysis of Systems. Consider the following CT LTI system: absolutely integrable,Assumption: the impulse response h(t) is absolutely.
1-1 Basics of Data Transmission Our Objective is to understand …  Signals, bandwidth, data rate concepts  Transmission impairments  Channel capacity.
1 Business Telecommunications Data and Computer Communications Chapter 3 Data Transmission.
Analog Data Processing with BioProc3 Part One Data Analysis and Smoothing.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
Dr. Richard Young Optronic Laboratories, Inc..  Uncertainty budgets are a growing requirement of measurements.  Multiple measurements are generally.
Data Smoothing and Noise Removal D. Gordon E. Robertson, PhD, FCSB School of Human Kinetics, Faculty of Health Sciences.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Interpolation and Pulse Shaping
Time Series Data Analysis - I Yaji Sripada. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn What are Time Series? How to.
Introduction Gait initiation is a temporary movement between upright posture and steady-state gait. The activation of several postural muscles has been.
Filtering. What Is Filtering? n Filtering is spectral shaping. n A filter changes the spectrum of a signal by emphasizing or de-emphasizing certain frequency.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
Digital Image Processing CSC331 Image Enhancement 1.
ANSS/NSMP STRONG- MOTION RECORD PROCESSING AND PROCEDURES Christopher D. Stephens and David M. Boore US Geological Survey Menlo Park, CA COSMOS/NSF International.
Chapter 2 Signals and Spectra (All sections, except Section 8, are covered.)
Chapter 7 Finite Impulse Response(FIR) Filter Design
Physical Layer PART II. Position of the physical layer.
2011 COURSE IN NEUROINFORMATICS MARINE BIOLOGICAL LABORATORY WOODS HOLE, MA Introduction to Spline Models or Advanced Connect-the-Dots Uri Eden BU Department.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Introduction Much research has examined the biomechanical aspects of gait on level surfaces. Yet little information is available on the characteristics.
Figure 3. Ball acceleration during flight between bounces after various types of filtering Figure 1. Golf ball bounce digitized. Green line raw data, teal.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
Op amp 2 Active Filters.
Electromyography E.M.G..
Series & Parallel Resonance Passive Filter
Amity School of Engineering & Technology 1 Amity School of Engineering & Technology DIGITAL IMAGE PROCESSING & PATTERN RECOGNITION Credit Units: 4 Mukesh.
Introduction to Data Analysis and Processing Technology Enhanced Inquiry Based Science Education.
Professor A G Constantinides 1 Digital Filter Specifications We discuss in this course only the magnitude approximation problem There are four basic types.
Prof. Brian L. Evans Dept. of Electrical and Computer Engineering The University of Texas at Austin EE445S Real-Time Digital Signal Processing Lab Spring.
CS 591 S1 – Computational Audio -- Spring, 2017
(4) Filters.
Smoothing Serial Data.
QRS Detection Linda Henriksson 1.
J McClellan School of Electrical and Computer Engineering
POLYPHASE IIR FILTER.
Fundamentals Data.
LINEAR-PHASE FIR FILTERS DESIGN
Smoothing Serial Data.
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Interpolation and Pulse Shaping
Chapter 7 Finite Impulse Response(FIR) Filter Design
Chapter 7 Finite Impulse Response(FIR) Filter Design
Presentation transcript:

Data Smoothing D. Gordon E. Robertson, PhD, FCSB

Issues What is a waveform; what is signal; what is noise? What types of noise can contaminate a waveform? What techniques are available? How to decide on the best technique? Which is the best data smoothing technique? Removing high frequency noise (most common). Removing low frequency noise and DC offsets. Removing noise spikes. How to prevent phase distortion. How to prevent end-point transients.

What is a Waveform? A waveform is any time-varying or spatial-varying series of related data. –W(t) It can be a known mathematical function (e.g., sine wave) –W(t) = a sin (2  f t +  ) generalized sine wave with frequency f (cycles per second), amplitude a (arbitrary units) and phase lag  (radians). or a series of data sampled at regular or irregular known intervals. –W(t) = a(t) can contain both signal (information) and/or noise

What is a Signal? A signal is the information carried in a waveform or a physical quantity that can carry information. It is the portion of the waveform that carries the desired information of the researcher. In mathematical waveforms there is typically only signal in the waveform. In data sampled from electronic or other devices there is always some part of a waveform that is not signal, called noise.

What is Noise? Noise is the part of a waveform that is not signal! unwanted error in a waveform Noise can be random (white) or have a statistical distribution Noise can be due to interference from another signal (called cross-talk) or induced by physical devices near the medium carrying the waveform (e.g., electric motors, radiation, power cords, radio waves). Noise can occur at random intervals (e.g., bumping of electrodes, power surges, floor impacts nearby) or regular (50/60 Hz line interference) or irregular intervals (e.g., ECG or EEG interference of EMGs). Noise may have frequencies inside or outside the frequency range of the signal (if outside, filtering can effectively reduce the noise).

Examples of Noise in an EMG signal an impact spike 60 Hz noise heart rate detected

What Techniques are Available? Moving averages (e.g., Chapman) Curve (spline) fitting and interpolation (e.g., Wood & Jennings 1979, Felkel 1951, Woltring 1986) Digital filtering (e.g., Winter et al., 1974) Fourier reconstruction (e.g., Hatze 1981)

Moving Averages Very simple and easy to implement Usually have time lags Unweighted and weighted averaging are possible Will always attenuate peaks and valleys even if they are valid Need to select a window width (n), usually an odd number –MAV(t i ) =

Moving Averages rectified EMG (1010 Hz sampling rate) averaged EMG (moving average, 51 points)

Curve Fitting and Splines If signal has a known mathematical function (e.g., line, parabola, exponential function) then a “best fit” criterion may be used to extract the true signal from the waveform Piecewise polynomials (splines) may be used to fit curves of long duration that cannot be fitted by a single function, such as a polynomial. Spline functions do not require equally time intervals in the waveform and therefore may be used to fit gaps in data files.

Curve Fitting and Splines Vaughan’s golf ball data with and without noise (±0.1) and fitted polynomial of order 2.

Digital Filtering Used on data that have been sampled with fixed time intervals. Types: –low-pass, high-pass, band-pass, band stop and notch (single or small band-stop filter, useful for AC interference) Designs: –Butterworth (optimally flat in bandpass), critically-damped, Chebyshev etc. (sharper cutoffs), Generalized Cross- validation (GCV also called Woltring filter, 1986) Problems: –Noise spikes alter a localized period in the signal –Phase distortion (usually phase-lags occur) –Does not reduce size of data file

Fourier Reconstruction Once a Fourier series has been extracted from a waveform many cycles may be created Requires signal to be cyclic or made cyclic with “windowing” functions (Hamming, Blackman, Cosine bell etc.) Can reduce a complex signal to a very few number of coefficients Problems: –Noise spikes can significantly alter overall cyclic pattern –Can distort signal in unpredictable ways

How to Decide on the Best Technique? Visually compare original noisy signal with smoothed signal (Pezzack et al. 1977). Smooth signal should pass through middle of the noisy waveform without distorting peaks and valleys. Evaluate smoothing technique against known mathematical functions (e.g., Robertson & Dowling 2003) Evaluate smoothing technique against published data (e.g., Wood & Jennings 1979; Hatze 1981; Lanshammar 1982; vs. Pezzack et al. 1977) Evaluate residuals mathematically (e.g., Jackson 1979; Winter et al. 1984). Simulation (Walker 1998, Nagano et al. 2003)

Removing High Frequency Noise Essential for data that are to be doubly-differentiated (computing acceleration from displacement data) Low-pass filtering is the most common (Winter 1974, Pezzack et al. 1978) Need to select an appropriate cutoff and roll-off (filter order) Critically-damped may be better for rapid transients (Robertson & Dowling 2003) Butterworth filters have better roll-offs Zero-lag can be achieved by filtering forwards and backwards

Removing Low Frequency Noise Essential for doubly-integrating data (e.g., integrating force to obtain displacement) Bias removal is critical High-pass filters (Murphy & Robertson 1992) End-point problems need to be considered (pad with means, zeros, reflexively, e.g., Smith 1989, Walker 1998)

Removing Noise Spikes Low-pass filtering may not be effective, perhaps use higher order, Butterworth filter Interpolate across spike or artefact Moving median (use smallest window possible)

How to Prevent Phase Distortion Centrally weighted moving averages Filter in both directions (Winter et al.1974) Zero-lag filters (b-splines, Woltring 1986)

How to Prevent End-point Transients Collect extra data before and after critical period Padding points –zeros –means –reflexive (Smith 1989) –linear extrapolation (Vint & Hinrichs 1996) Windowing functions are useful for Fourier analysis

References Felkel, E. 0. (1951) Determination of acceleration from displacement-time data. Prosthetic Devices Research Project, Institute of Engineering Research, University of California, Berkeley, Series 11, 16. Hatze, H. (1981) The use of optimally regularised Fourier series for estimating higher-order derivatives of noisy biomechanical data. Journal of Biomechanics, 14: Jackson, K.M. (1979) Fitting of mathematical functions to biomechanical data. IEEE Transactions on Biomedical Engineering, BME-26(2): Lanshammar, H. (1982) On practical evaluation of differentiation techniques for human gait analysis. Journal of Biomechanics, 15: Murphy, S.D. & Robertson, D.G.E. (1992) Construction of a high-pass digital filter. Proceedings of NACOB II, Chicago, Pezzack, J.C.; Winter, D.A. & Norman, R.W. (1977) An assessment of derivative determining techniques used for motion analysis. Journal of Biomechanics, 10:

References cont’d Robertson, D.G.E. & Dowling, J.J. (2003) Design and responses of Butterworth and critically damped digital filters. Journal of Electromyography and Kinesiology, 13(6): Smith, G. (1989) Padding point extrapolation techniques for the Butterworth digital filter. Journal of Biomechanics, 22: Vint, P.F. and Hinricks, R.N. (1996) Endpoint error in smoothing and differentiating raw kinematic data: an evaluation of four popular methods. Journal of Biomechanics, 26: Winter, D.A.; Sidwall, H.G and Hobson, D.A. (1974) Measurement and reduction of noise in kinematics of locomotion. Journal of Biomechanics, 7: Woltring, H.J. (1986) A Fortran package for generalized cross-validatory spline smoothing and differentiation. Advances in Engineering Software, 8: Wood G.A. and Jennings, L.S. (1979) On the use of spline functions for data smoothing. Journal of Biomechanics, 12: Wood, G. (1982) Data smoothing and differentiation procedures in biomechanics. Exercise and Sport Sciences Reviews, 10: