9.5 Least-Squares Digital Filters

Slides:



Advertisements
Similar presentations
P M V Subbarao Professor Mechanical Engineering Department
Advertisements

Classification and Prediction: Regression Via Gradient Descent Optimization Bamshad Mobasher DePaul University.
Chapter 6 Numerical Interpolation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Calibration & Curve Fitting
Least-Squares Regression
The Wavelet Tutorial: Part3 The Discrete Wavelet Transform
1 CS 551/651: Structure of Spoken Language Lecture 8: Mathematical Descriptions of the Speech Signal John-Paul Hosom Fall 2008.
Unit 4: Modeling Topic 6: Least Squares Method April 1, 2003.
V. Space Curves Types of curves Explicit Implicit Parametric.
Applications The General Linear Model. Transformations.
CMLab 1 Some basic Applications of Digital filters : Least-square fitting of polynomials Given M data points (t m, u m ), m=1,2,…,M wish to fit (approximate)
Write the equation for transformation of.
Write the equation for transformation of.
Instrument Components Signal Generator (Energy Source) Analytical Signal Transducer Signal Processor Display Can you identify these components in the following.
Chapter 8 Curve Fitting.
SUPA Advanced Data Analysis Course, Jan 6th – 7th 2009 Advanced Data Analysis for the Physical Sciences Dr Martin Hendry Dept of Physics and Astronomy.
6/4/2016© 2009 Raymond P. Jefferis III Lect Geographic Information Processing Attribute Plotting Extracting data features Calculating derivatives.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Polynomials, Curve Fitting and Interpolation. In this chapter will study Polynomials – functions of a special form that arise often in science and engineering.
EEE 431 Computational Methods in Electrodynamics
Miguel Tavares Coimbra
Physics 114: Lecture 13 Probability Tests & Linear Fitting
PATTERN COMPARISON TECHNIQUES
Part 5 - Chapter
Polynomial Functions and Their Graphs
Chapter 3 Techniques of Differentiation
Polynomial Functions.
3.1 Higher Degree Polynomial Functions and Graphs
Functions and Their Graphs
FE Exam Tutorial
Copyright © Cengage Learning. All rights reserved.
Polynomial Functions.
Ch 2.1: Linear Equations; Method of Integrating Factors
Chapter 22.
UNIT II Analysis of Continuous Time signal
Trigonometric Identities
Fitting Curve Models to Edges
Polynomial Functions and Modeling
Interpolation and Pulse Compression
Bell ringer Simplify the following expressions as much as you can!
Collaborative Filtering Matrix Factorization Approach
Section 8.2 Functions.
Least Squares Fitting A mathematical procedure for finding the best-fitting curve to a given set of points by minimizing the sum of the squares of the.
Inverse Kinematics 12/30/2018.
6.2 Grid Search of Chi-Square Space
Using Factoring To Solve
3.1 Sums of Random Variables probability of z = x + y
5.2 Least-Squares Fit to a Straight Line
5.4 General Linear Least-Squares
7.2 Even and Odd Fourier Transforms phase of signal frequencies
3.3 Experimental Standard Deviation
6.6 The Marquardt Algorithm
Chapter 3: Polynomial Functions
8.5 Modulation of Signals basic idea and goals
Polynomial Functions.
9.3 Analog-to-Digital Conversion
8.3 Frequency- Dependent Impedance
9.4 Enhancing the SNR of Digitized Signals
8.6 Autocorrelation instrument, mathematical definition, and properties autocorrelation and Fourier transforms cosine and sine waves sum of cosines Johnson.
Preliminaries 0.1 THE REAL NUMBERS AND THE CARTESIAN PLANE 0.2
SKTN 2393 Numerical Methods for Nuclear Engineers
4.3: Polynomial Functions
Splash Screen.
Tutorial 4 Techniques of Differentiation
Objectives Graphing Basic Polynomial Functions
Tutorial 3 Applications of the Derivative
16. Mean Square Estimation
More Nonlinear Functions and Equations
Solving Equations Containing Trinomials
Presentation transcript:

9.5 Least-Squares Digital Filters objective is to fit sections of the data to a polynomial using least-squares choice of polynomial centering the data and convolution derivation of a 5-point quadratic filter Mathcad program to generate filters noise reduction vs. filter type and length smoothing Johnson noise non-smoothing of interference noise smoothing and simultaneous differentiation 9.5 : 1/12

Objective objective the noise is known to have a normal pdf, but the signal frequencies are unknown a least-squares-based technique can be used that fits a section of the measured data to a polynomial the entire data set is smoothed by fitting successive sections of the data to the same polynomial choice of polynomial any polynomial can be chosen, however, it should be capable of matching the slope, curvature, inflection points, and positions of maxima and minima a straight line can match only the slope of the data a quadratic equation can match the slope and curvature a cubic equation can match the slope, curvature and inflection points of the data - however, the cubic equation being odd will shift the location of peaks the quartic equation is the first that possesses all the desired traits 9.5 : 2/12

Operational Considerations centering the filter least squares filters work by convolution the filter has an odd number of elements and is centered about the data point being smoothed for smoothing only the intercept is computed centering simplifies the calculation by eliminating odd powers of the independent variable because of the elimination of odd powers, the quadratic and cubic filters are identical, and the quartic and quintic filters are identical fitting procedure math is exactly like the Fourier transform filters the result of each step of multiplication, summing and normalizing is the least squares intercept for the polynomial after each step the filter is moved one element further along the data vector and the process repeated for a filter length of N+1 elements, the first N/2 and last N/2 data points are not smoothed 9.5 : 3/12

Demonstration of Filtering The figure shows the least squares smoothing operation for a quadratic filter of length 5. The magenta-colored arrows show the first and last points that can be smoothed. The left comb shows the set of points involved with smoothing the sixth point. The blue line is the least squares quadratic fit to the five data points (red). The second comb is smoothing the 16th point. Again, the blue line is the least squares quadratic fit. 9.5 : 4/12

Five-Point Quadratic Filter (1) Write out the initial, un-weighted least squares equations for a quadratic. Solve by using determinants and simplify since odd powers of x go to zero with centered data. 9.5 : 5/12

Five-Point Quadratic Filter (2) Decompose the determinant using standard rules for a 33. With a 5-point convolute the x-axis values are -2, -1, 0, +1 and +2. This makes Sx2 = 10 and Sx4 = 34. Plugging these sums and the remaining x-values into the above equation yields the following equation. Thus the convolute would be the vector [-3, 12, 17, 12, -3] with a normalization factor of 35. 9.5 : 6/12

Mathcad Generation of Filters 9.5 : 7/12

Signal-to-Noise Enhancement The following standard deviations assume that s = 1 for the unsmoothed data. For this case a computed first derivative would have s = 21/2 and a computed second derivative would have s = 61/2. Values <1, 21/2, or 61/2 enhance the SNR. Filter Output Length 5 7 9 11 13 15 17 19 21 Quadratic smooth 0.697 0.577 0.505 0.455 0.418 0.389 0.365 0.345 0.328 dy/dx 0.316 0.189 0.129 0.095 0.074 0.060 0.050 0.042 0.036 d2y/dx2 0.535 0.218 0.114 0.068 0.045 0.031 0.023 0.017 0.013 Quartic --- 0.753 0.646 0.528 0.489 0.459 0.433 0.411 0.512 0.338 0.246 0.152 0.125 0.106 0.091 0.926 0.443 0.256 0.164 0.113 0.082 0.061 0.048 For a fixed-length filter the quadratic always provides a better SNR enhancement than the quartic. However, the quadratic distorts the waveform more than the quartic. Also note that small increases in filter length, e.g. 15 to 21, do not appreciably improve the SNR. To improve the SNR by 10, a quadratic filter would need a length of 225. 9.5 : 8/12

Smoothing Johnson Noise The filter came from "Smoothing and Differentiation of Data by Simplified Least Squares Procedures," Abraham Savitzky and Marcel J. E. Golay, Analytical Chemistry, 36, 1627 (1964). The SNR has improved by a factor of 2.6. 9.5 : 9/12

Smoothing with Interference Noise The least squares polynomial does not remove interference noise because it can adjust the coefficients to follow curved data. 9.5 : 10/12

Smoothing and Taking a Derivative The least squares filter shown in the upper graph takes the derivative of the signal in addition to smoothing. The result, shown in the bottom graph is the smoothed derivative of the noisy spectrum in slide 9. Although the result seems to have too much noise, the calculated standard deviation yields 1.5×10-3. The predicted value is 0.05 (noise)×0.028 (filter) = 1.4×10-3. Usually the derivative of noise is more noise, making this filter special! 9.5: 11/12

Transfer Functions For a graphic presentation of transfer functions for different order and types of filters see, K. R. Betty and G. Horlick, Analytical Chemistry, 49, 351 (1977). The spectral transfer function is dominated by convolution with the sinc function produced by filter length truncation. As expected, first derivative filters produce odd spectral transfer functions. 9.5 : 12/12