Transform Techniques Mark Stamp Transform Techniques.

Slides:



Advertisements
Similar presentations
Time Series II.
Advertisements

Fourier Transforms and Their Use in Data Compression
Applications in Signal and Image Processing
DFT/FFT and Wavelets ● Additive Synthesis demonstration (wave addition) ● Standard Definitions ● Computing the DFT and FFT ● Sine and cosine wave multiplication.
Intro to Spectral Analysis and Matlab. Time domain Seismogram - particle position over time Time Amplitude.
SURF: Speeded-Up Robust Features
Wavelets (Chapter 7) CS474/674 – Prof. Bebis.
Computer Graphics Recitation 6. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
1 Audio Compression Techniques MUMT 611, January 2005 Assignment 2 Paul Kolesnik.
Computer Graphics Recitation 7. 2 Motivation – Image compression What linear combination of 8x8 basis signals produces an 8x8 block in the image?
Time-Frequency and Time-Scale Analysis of Doppler Ultrasound Signals
Biomedical signal processing: Wavelets Yevhen Hlushchuk, 11 November 2004.
Wavelet Transform 國立交通大學電子工程學系 陳奕安 Outline Comparison of Transformations Multiresolution Analysis Discrete Wavelet Transform Fast Wavelet Transform.
Short Time Fourier Transform (STFT)
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Wavelet Transform A very brief look.
Paul Heckbert Computer Science Department Carnegie Mellon University
Wavelet Transform. What Are Wavelets? In general, a family of representations using: hierarchical (nested) basis functions finite (“compact”) support.
Multi-Resolution Analysis (MRA)
Introduction to Wavelets
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Fourier Transforms Revisited
ENG4BF3 Medical Image Processing
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
GCT731 Fall 2014 Topics in Music Technology - Music Information Retrieval Overview of MIR Systems Audio and Music Representations (Part 1) 1.
Wavelets: theory and applications
WAVELET TUTORIALS.
The Story of Wavelets.
Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain Digital Image Processing Chapter # 4 Image Enhancement in Frequency Domain.
Transforms. 5*sin (2  4t) Amplitude = 5 Frequency = 4 Hz seconds A sine wave.
The Wavelet Tutorial Dr. Charturong Tantibundhit.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 19.
Image Enhancement in the Frequency Domain Spring 2006, Jen-Chang Liu.
1 Chapter 5 Image Transforms. 2 Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post Processing Scaling.
Lecture 9 Fourier Transforms Remember homework 1 for submission 31/10/08 Remember Phils Problems and your notes.
Wavelet-based Coding And its application in JPEG2000 Monia Ghobadi CSC561 final project
Advanced Digital Signal Processing
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
ECE472/572 - Lecture 13 Wavelets and Multiresolution Processing 11/15/11 Reference: Wavelet Tutorial
1 Using Wavelets for Recognition of Cognitive Pattern Primitives Dasu Aravind Feature Group PRISM/ASU 3DK – 3DK – September 21, 2000.
“Digital stand for training undergraduate and graduate students for processing of statistical time-series, based on fractal analysis and wavelet analysis.
CE Coding and Transformations Sept - Nov 2010.
7- 1 Chapter 7: Fourier Analysis Fourier analysis = Series + Transform ◎ Fourier Series -- A periodic (T) function f(x) can be written as the sum of sines.
Haar Wavelet Analysis 吳育德 陽明大學放射醫學科學研究所 台北榮總整合性腦功能實驗室.
The Wavelet Tutorial: Part2 Dr. Charturong Tantibundhit.
Fourier Transform.
Fourier and Wavelet Transformations Michael J. Watts
The Story of Wavelets Theory and Engineering Applications
By Dr. Rajeev Srivastava CSE, IIT(BHU)
Computer Graphics & Image Processing Chapter # 4 Image Enhancement in Frequency Domain 2/26/20161.
G52IIP, School of Computer Science, University of Nottingham 1 Image Transforms Basic idea Input Image, I(x,y) (spatial domain) Mathematical Transformation.
Lecture 4-1CS251: Intro to AI/Lisp II Where did that edge go? April 29th, 1999.
The Frequency Domain Digital Image Processing – Chapter 8.
CH#3 Fourier Series and Transform 1 st semester King Saud University College of Applied studies and Community Service 1301CT By: Nour Alhariqi.
Short Time Fourier Transform (STFT) CS474/674 – Prof. Bebis.
Wavelets (Chapter 7) CS474/674 – Prof. Bebis. STFT - revisited Time - Frequency localization depends on window size. –Wide window  good frequency localization,
Singular Value Decomposition and its applications
Wavelet Transform Advanced Digital Signal Processing Lecture 12
Advanced Computer Graphics
Introduction to Transforms
Spectral Analysis Spectral analysis is concerned with the determination of the energy or power spectrum of a continuous-time signal It is assumed that.
Fourier and Wavelet Transformations
Multi-resolution analysis
CSCE 643 Computer Vision: Thinking in Frequency
Introduction To Wavelets
Wavelet transform Wavelet transform is a relatively new concept (about 10 more years old) First of all, why do we need a transform, or what is a transform.
Wavelet Transform Fourier Transform Wavelet Transform
Govt. Polytechnic Dhangar(Fatehabad)
Chapter 15: Wavelets (i) Fourier spectrum provides all the frequencies
Wavelet Analysis Objectives: To Review Fourier Transform and Analysis
Presentation transcript:

Transform Techniques Mark Stamp Transform Techniques

Intro Signal can be viewed in… Many types of transformations Time domain  usual view, raw signal Frequency domain  transformed view Many types of transformations Fourier transform  most well-known Wavelet transform  some advantages Transform Techniques

Intro Fourier and wavelet transforms are reversible From time domain representation to frequency domain, and vice versa Fourier transform is in terms of functions sin(nx) and cos(nx) Wavelet can use a wide variety of different “basis” functions Transform Techniques

Fourier Series Generally, we can write f(x) in terms of series of sin(nx) and cos(nx) Exact, but generally need infinite series Finite sum usually just an approximation Coefficients on sin(nx) and cos(nx) tell us “how much” of that frequency May not be obvious from function Can be very useful information Transform Techniques

Fourier Series For example, consider sawtooth function: s(x) = x / π The graph is… Transform Techniques

Sawtooth Function 1 term of Fourier series 2 terms 3 terms 4 terms Transform Techniques

Fourier Transform A function f(x) is usually viewed in the “time domain” Transform allows us to also view it in “frequency domain” What does this mean? See next slide… Why might this be useful? Again, reveals non-obvious structure Transform Techniques

Time vs Frequency Function f(x) written as sums of functions ansin(nx) and bncos(nx) Coefficients (amplitudes) an and bn Tell us “how much” of each frequency Transform Techniques

Time vs Frequency Time domain Frequency domain Frequency domain view gives us info about the function More complicated the signal, less obvious the frequency perspective may be Transform Techniques

Time vs Frequency Time domain in red What does blue tell us? Frequency domain in blue What does blue tell us? Dominant low frequency Some high frequencies Note that blue tells us nothing about time… I.e., we do not know where frequencies occur Transform Techniques

Speech Example Frequency domain info used to extract important characteristics  Time domain signal  Sonogram Transform Techniques

Fourier Transform Many different transforms exist So, why is Fourier so popular? Fast, efficient algorithms Fast Fourier Transform (FFT) Apply transform to entire function? May not be too informative, since we lose track of where frequencies occur Usually, want to understand local behavior Transform Techniques

Global vs Local Function can change a lot over time… Global frequency info not so useful Local frequency info is much better Transform Techniques

Global vs Local Use Short Time Fourier Transform (STFT) for each window Note that windows can overlap Transform Techniques

Window Size How big should the window be? Small? May not have enough freq info Big? May not have useful time info about right too small too big Transform Techniques

Window Size Looks like ideal case would be windows that match frequency Bigger windows for low frequency areas Smaller windows for high frequency The bottom line? Too big of window gives good frequency resolution, but poor time resolution Too small of window gives good time resolution, but poor frequency resolution Transform Techniques

Uncertainty Principle Cannot have accurate frequency and time resolution simultaneously Form of Heisenberg Uncertainty Principle So, this is something we must deal with Since it’s the law! (of physics…) Is there any alternative to STFT? Yes, “multiresolution analysis” What the … ? Transform Techniques

Windowing Revisited Window in STFT is really a function Selects f(x) within current window “Window function” is essentially 1 within current window, 0 outside of it For wavelets, “windows” much fancier Like Windows 95 vs Windows 7… Effect is to filter based on frequencies Can mitigate some of the problems inherent in the uncertainty principle Transform Techniques

Fourier Transform In Fourier transform, frequency resolution, but no time resolution frequency time Transform Techniques

Short Time Fourier Trans. In STFT, time resolution via windowing frequency time Transform Techniques

Wavelet Transform Time resolution based on frequency frequency time Transform Techniques

Wavelet Recall that Fourier analysis is based on sin(nx) and cos(nx) functions Wavelet analysis based on wavelets Duh! But, what is a wavelet? A small wave, of course… “Wave”, so it oscillates (integrates to 0) “Small”, meaning acts like finite window Transform Techniques

Wavelets Many different wavelet functions to choose from Select a “mother” wavelet or basis Form translations and dilations of basis Examples include Haar wavelets (piecewise constant) Daubechies wavelets …and many others Transform Techniques

Haar: Translation & Dilation 1 1 1 1 1 1 -1 -1 -1 Transform Techniques

Advantages of Wavelets Wavelet basis is local Unlike Fourier basis of sine and cosine Local, implies better time resolution Basis functions all mutually orthogonal Makes computations fast Fourier basis also orthogonal, but requires “extreme cancellation” outside window In effect, “windowing” built in to wavelet basis Wavelets faster to compute than FFT A recursive paradise… Transform Techniques

Disadvantage of Wavelets Approximation with Haar functions… For example, sine function is trivial in Fourier analysis, not so easy with Haar Transform Techniques

Wavelets: Bottom Line Fourier ideal wrt frequency resolution But sine/cosine bad wrt time resolution Wavelets excels at time resolution Since basis functions finite (compact) support, and employ translation/dilation In effect, filters by frequency and time Complicated mathematics But fairly easy to implement and use Transform Techniques

Discrete Transforms In practice, apply transforms to discrete time series, a0,a1,a2,… We assume ai = f(xi) for unknown f(x) Discrete transforms are very fast FFT is O(n log n) Fast wavelet transform is O(n) Discrete transforms based on some fancy linear algebra Transform Techniques

Transform Uses Speech processing Image/video processing Compression Construct sonogram (spectrogram) Speech recognition Image/video processing Remove noise, sharpen images, etc., etc. Compression And many, many more… Transform Techniques

What About Malware Detection? We measure some characteristic of a exe file to obtain series a0,a1,a2,… Compute wavelet transform and… Filter out high frequency “noise” (i.e., insignificant variations) And segment file based on where the significant changes occur Ironically, transform used to pinpoint significant changes wrt time Transform Techniques

Malware Detection Example Compute entropy measurement using ai = entropy(Bi) for i = 0,1,2,…,n Where Bi is block of i consecutive bytes Computed on (overlapping) “windows” “Window” here not same as in transform Apply discrete transform to a0,a1,… Find significant changes in entropy Use resulting sequence for scoring Transform Techniques

References R. Polikar, The wavelet tutorial A. J. Jerri, Introduction to Wavelets G. Strang, Wavelet transforms versus Fourier transforms, Bulletin of the American Mathematical Society, 28:288-305, 1993 Transform Techniques