Research on Filters

26
Research on Filters: Big Picture Overview Name: Preston Hoang

Transcript of Research on Filters

Page 1: Research on Filters

Research on Filters: Big Picture Overview

Name: Preston Hoang

Page 2: Research on Filters

Research Questions

• What are the effects of the Park McClellan filter on the amplitude and phase data?

• Are there any other alternative filters that provide more accuracy / efficiency pertaining to the above?– iFilter

• How does the iFilter correspond to data sets that have already been processed?

• How do we characterize the stability of the iFilter?• How do we quantitatively assess signal quality based

on autocorrelation data?

Page 3: Research on Filters

Assessing the Park McClellan Filter

• Experiment #1: Test one sinusoidal signal, change one variable at a time (amplitude or frequency), include a time-gap at the beginning or end– Keep frequency constant (frequency = 0.15Hz), change

amplitude – Keep amplitude constant (amplitude = 0.01), change

frequency• Perform a Hilbert transformation for both the original

and filtered signal, then report the area under the curve and the max amplitude of the original and filtered signal

Page 4: Research on Filters

Assessing the Park McClellan Filter

Page 5: Research on Filters

Conclusion of Experiment #1

• The area under the curve and the average amplitude appear to increase for the filtered signal, independent of amplitude or frequency changes

• The percent errors for both appear to remain around 10 – 15%

Page 6: Research on Filters

Assessing the Park McClellan Filter

• Experiment #2: Introduce three different signals – each with frequencies, amplitudes, and phase data

• 1 Hz - with amplitude 3 and 0 degree phase shift• 2.5 Hz – with amplitude 5.5 and 20 degree phase shift• 4 Hz – with amplitude 8 and 65 degree phase shift

• Combine these signals, run through a band pass filter at a specific frequency, then compare the envelope and phase of the constituent signal after applying the Hilbert transformation

Page 7: Research on Filters

Assessing the Park McClellan Filter

Page 8: Research on Filters

Assessing the Park McClellan Filter

Page 9: Research on Filters

Conclusion of Experiment #2

• The filter can generally extract the amplitudes of the constituent signals within the ballpark range.

• The filter can extract phase data from constituent signals in the middle area, but it is not accurate toward the beginning / end of the signal itself.– Likely: when the filter starts to attenuate /

increase the signal power

Page 10: Research on Filters

Efficiency Standpoint

• ParkMclellan FIR Filter: takes 120 to 240 seconds to run a filter for a specific frequency• Inefficient – as each patient data has multiple breathing frequencies to

be processed• Multiple patients

• What filter is available out there that would improve the efficiency and the accuracy of extracting amplitude and phase data?– iFilter 4 Tom O’Haver, Professor Emeritus of Chemistry and

Biochemistry (U of Maryland)– Used in 75 papers, patents, and theses covering multiple scientific and

engineering fields (e.g. industrial, engineering, military, medical etc.)

Page 11: Research on Filters

Testing the iFilter

• Experiment #3 and 4: Perform the same set of experiments that were done the Park McClellan on the iFilter– Experiment #3 see Experiment #1– Experiment #4 see Experiment #2

Page 12: Research on Filters

Testing the iFilter

Page 13: Research on Filters

Testing the iFilter

Page 14: Research on Filters

Testing the iFilter

Page 15: Research on Filters

Conclusions for Experiment #3 and #4

• Experiment #3: The iFilter appears to reduce the percent error for the area under the curve and the average amplitude to < 1%– Independent of frequency or amplitude changes

• Experiment #4: The filter can extract the amplitudes much more accurately than the Park McClellan FIR filter– Similar to the FIR filter, this one can extract phase data from

constituent signals in the middle area, but it gets less accurate toward the beginning / end of the signal itself.

– Error rates for phase data at the beginning / end is less severe for this filter than the FIR filter

• Takes approximately 2.5 to 5 seconds to band pass a specific frequency for the iFilter

Page 16: Research on Filters

Testing the iFilter

• Experiment #5: All the previous patient’s data has already been processed by the Park McClellan Filter. Are there any differences when the raw data is processed again by the iFilter?

Page 17: Research on Filters

Patient 370 (Phase Difference)

Page 18: Research on Filters

Conclusion of Experiment #5

• Side-by-side comparisons show similar values for both the iFilter and the Park McClellan Filter for all patients (tumor and normal).

• Minor gaps – perhaps we need to find a way to assess signal quality?

Page 19: Research on Filters

Autocorrelation

• Experiment #6: Based on prior experience, one can use filtering and autocorrelation to assess the quality of the signal. Is there a quantitative metric by which we can discern a good or a bad signal from breast cancer patient data sets?

Page 20: Research on Filters

Autocorrelation

Page 21: Research on Filters

Autocorrelation

Page 22: Research on Filters

Conclusion of Experiment #6

• Results from Patient 370 are suggestive that this could be used to assess the quality of signal (see Excel File).

• One of the most reliable indicators of discerning a good and a bad signal is the percent error between the autocorrelation periodicity and the expected periodicity.

• Guaranteed good signal: <10% error, <0.25 std. dev.

Page 23: Research on Filters

iFilter Stability

• Experiment #7: To further validate the data that was processed, what happens if we shift the center of the band pass filter by a certain amount? What happens if we increase or decrease the width of the band pass filter, keeping the center constant?

Page 24: Research on Filters

iFilter Stability

0.1 0.15 0.2 0.25-60

-40

-20

0

20

40

60

80

Breathing frequencies

D-O

-2% shift

-1% shift

Original+1% Shift

+2% Shift

Page 25: Research on Filters

iFilter Stability

0.1 0.15 0.2 0.25-100

-50

0

50

100

150

200

Breathing frequencies

D-O

width = 0.01

width = 0.015

width = 0.025width = 0.035

width = 0.040

Page 26: Research on Filters

Conclusion of Experiment #7

• Most points agree with one another (general trend), regardless of changing the widths or centers

• More erratic if you change the width, especially if you have the value to a low number

• Implications: the patient may not breath at the exact value you may specify