SlideShare a Scribd company logo
1 of 10
Download to read offline
Signal Filtering
Zidan Sohil
ELTE
Sohil Zidan
Savitzky-Golay Filter
● Introduction
● Polynomial fitting
● Generating Configurations
Outline
Signal Filtering 2
Sohil Zidan
Savitzky-Golay Filter
● A moving polynomial fit can be numerically handled in exactly the same way as a
weighted moving average filter
● reduce high frequency noise in a signal due to its smoothing properties and reduce low
frequency signal (e.g., due to offsets and slopes) using differentiation
Introduction
Signal Filtering 3
Sohil Zidan
Savitzky-Golay Filter
● A moving polynomial fit can be numerically handled in exactly the same way as a
weighted moving average filter
● reduce high frequency noise in a signal due to its smoothing properties and reduce low
frequency signal (e.g., due to offsets and slopes) using differentiation
● Applicable to:
○ Equally spaced data values
○ Sampling space
○
○ The non-causal filter replaces each data value fi by a linear combination gi of itself
and some number of nearby neighbors,
○ : number of left points to the data point i (earlier)
○ : number of right points (later)
Introduction
Signal Filtering 4
Sohil Zidan
Savitzky-Golay Filter
● As a starting point consider a moving average window with cn=1/(nL+nR)
● The idea behind SGF is to approximate the underlying function with the moving window
not by a constant, but by a polynomial or higher order, typically quadratic or quartic
● For each point fi we least-squares fit a polynomial to all nL+nR+1 in the moving window
and then get gi to be the value of that polynomial at position i.
● When we move on to the next point fi+1, we do a whole new least-squares fit using a
shifted window… laborious job !
Introduction
Signal Filtering 5
Sohil Zidan
Savitzky-Golay Filter
● The goal is to fit a polynomial of degree M in z:
z=-nL, …,nR: n point equally spaced
● To the values
● g0 will be the value of the that polynomial at z=0, namely a0
● : is a Vandermonde Matrix,
z=-nL, …,nR: n point equally spaced
j=0, …,M
Polynomial Fitting 1/2
Signal Filtering 6
Sohil Zidan
Savitzky-Golay Filter
● Goal: fit the polynomial …. Eq(1)
● The normal equations for the vector of in terms of the vector of is in matrix
notation:
● Or
… Eq(2)
● For :
○ a certain window size m
○ and polynomial degree A is known
then we can compute coefficients of f which are known as convolution coefficients C
● No we get the and from the Eq(1) with the center point z = 0
Polynomial Fitting 2/2
Signal Filtering 7
Sohil Zidan
Savitzky-Golay Filter
● We get
● Savitzky and Goaly computed some configuration and put it into a table
● For
○ window size= 5
○ cubic polynomial degree M = 3 we get the following
smoothed value
Generating Configurations
Signal Filtering 8
Sohil Zidan
Savitzky-Golay Filter
● Values other than the center ?
● All can be computed using Eq(2)
● Then using Eq(1) we can create a smoothed value of any point of the equally-spaced
points set
● The red line:
○ the local polynomial being used to
fit a subset of the data.
● The smoothed values are shown as circles.
Conclusion
Signal Filtering 9
Sohil Zidan
● https://aip.scitation.org/doi/pdf/10.1063/1.4822961
● https://en.wikipedia.org/wiki/Savitzky%E2%80%93Golay_filter
● https://www.weisang.com/en/documentation/loessandlowessalgorithm_en/
● https://www.ltu.se/cms_fs/1.36192!/file/E0005E_Lecture06_Transforms-version4.pdf
● https://en.wikipedia.org/wiki/Vandermonde_matrix
● http://www.statistics4u.info/fundstat_eng/cc_filter_savgol_math.html
● https://pubs.acs.org/doi/10.1021/ac60214a047
References
Signal Filtering 10

More Related Content

What's hot

DIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABDIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABPrashant Srivastav
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filterA. Shamel
 
7.Active Filters using Opamp
7.Active Filters using Opamp7.Active Filters using Opamp
7.Active Filters using OpampINDIAN NAVY
 
Dss
Dss Dss
Dss nil65
 
Basics of Analogue Filters
Basics of Analogue FiltersBasics of Analogue Filters
Basics of Analogue Filtersop205
 
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptxCapoLedezma
 
Introduction to Digital Signal Processing
Introduction to Digital Signal ProcessingIntroduction to Digital Signal Processing
Introduction to Digital Signal Processingop205
 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsAmr E. Mohamed
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filtersNaila Bibi
 
1.introduction to signals
1.introduction to signals1.introduction to signals
1.introduction to signalsINDIAN NAVY
 

What's hot (20)

DIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLABDIGITAL SIGNAL PROCESSING BASED ON MATLAB
DIGITAL SIGNAL PROCESSING BASED ON MATLAB
 
Adaptive filter
Adaptive filterAdaptive filter
Adaptive filter
 
Active Filter (Low Pass)
Active Filter (Low Pass)Active Filter (Low Pass)
Active Filter (Low Pass)
 
convolution
convolutionconvolution
convolution
 
7.Active Filters using Opamp
7.Active Filters using Opamp7.Active Filters using Opamp
7.Active Filters using Opamp
 
Dss
Dss Dss
Dss
 
Basics of Analogue Filters
Basics of Analogue FiltersBasics of Analogue Filters
Basics of Analogue Filters
 
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx
1. FILTROS ELECTRÓNICOS PASIVOS(ATP).pptx
 
Introduction to Digital Signal Processing
Introduction to Digital Signal ProcessingIntroduction to Digital Signal Processing
Introduction to Digital Signal Processing
 
Multirate DSP
Multirate DSPMultirate DSP
Multirate DSP
 
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time SignalsDSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
DSP_2018_FOEHU - Lec 02 - Sampling of Continuous Time Signals
 
Digital Filters Part 1
Digital Filters Part 1Digital Filters Part 1
Digital Filters Part 1
 
FILTER BANKS
FILTER BANKSFILTER BANKS
FILTER BANKS
 
High pass filter
High pass filterHigh pass filter
High pass filter
 
Design of Filters PPT
Design of Filters PPTDesign of Filters PPT
Design of Filters PPT
 
Design of digital filters
Design of digital filtersDesign of digital filters
Design of digital filters
 
Speech Signal Processing
Speech Signal ProcessingSpeech Signal Processing
Speech Signal Processing
 
Pll ppt
Pll pptPll ppt
Pll ppt
 
1.introduction to signals
1.introduction to signals1.introduction to signals
1.introduction to signals
 
Signal Filtering
Signal FilteringSignal Filtering
Signal Filtering
 

Similar to Signal filtering - savitzky-golay

Module iv sp
Module iv spModule iv sp
Module iv spVijaya79
 
6-Digital filters (FIR).ppt
6-Digital filters (FIR).ppt6-Digital filters (FIR).ppt
6-Digital filters (FIR).pptHarshGajjar24
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignAmr E. Mohamed
 
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.pptDIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.pptdebeshidutta2
 
Digital filters (FIR).ppt
Digital filters (FIR).pptDigital filters (FIR).ppt
Digital filters (FIR).pptDevipriyaS21
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingrkumarankit06875
 
Introduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.pptIntroduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.pptdebeshidutta2
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignAmr E. Mohamed
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lectureKhalaf Gaeid Alshammery
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignAmr E. Mohamed
 
Overlay Stitch Meshing
Overlay Stitch MeshingOverlay Stitch Meshing
Overlay Stitch MeshingDon Sheehy
 
Communication system lec5
Communication system  lec5Communication system  lec5
Communication system lec5ZareenRauf1
 
communication system Chapter 2
communication system Chapter 2communication system Chapter 2
communication system Chapter 2moeen khan afridi
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)tamil arasan
 

Similar to Signal filtering - savitzky-golay (20)

DSP-UNIT-V-PPT-1.pptx
DSP-UNIT-V-PPT-1.pptxDSP-UNIT-V-PPT-1.pptx
DSP-UNIT-V-PPT-1.pptx
 
Module iv sp
Module iv spModule iv sp
Module iv sp
 
Filters.pdf
Filters.pdfFilters.pdf
Filters.pdf
 
lecture_37.pptx
lecture_37.pptxlecture_37.pptx
lecture_37.pptx
 
6-Digital filters (FIR).ppt
6-Digital filters (FIR).ppt6-Digital filters (FIR).ppt
6-Digital filters (FIR).ppt
 
Light effect
Light effectLight effect
Light effect
 
DSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter DesignDSP_FOEHU - Lec 11 - IIR Filter Design
DSP_FOEHU - Lec 11 - IIR Filter Design
 
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.pptDIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
DIGITAL FILTER SPECIFICATIONS AND MATHEMATICS.ppt
 
Digital filters (FIR).ppt
Digital filters (FIR).pptDigital filters (FIR).ppt
Digital filters (FIR).ppt
 
Shading in OpenGL
Shading in OpenGLShading in OpenGL
Shading in OpenGL
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
Asymptotic notation
Asymptotic notationAsymptotic notation
Asymptotic notation
 
Introduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.pptIntroduction, concepts, and mathematics of IIR filters.ppt
Introduction, concepts, and mathematics of IIR filters.ppt
 
DSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter DesignDSP_FOEHU - Lec 10 - FIR Filter Design
DSP_FOEHU - Lec 10 - FIR Filter Design
 
Design of sampled data control systems part 2. 6th lecture
Design of sampled data control systems part 2.  6th lectureDesign of sampled data control systems part 2.  6th lecture
Design of sampled data control systems part 2. 6th lecture
 
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter DesignDSP_2018_FOEHU - Lec 07 - IIR Filter Design
DSP_2018_FOEHU - Lec 07 - IIR Filter Design
 
Overlay Stitch Meshing
Overlay Stitch MeshingOverlay Stitch Meshing
Overlay Stitch Meshing
 
Communication system lec5
Communication system  lec5Communication system  lec5
Communication system lec5
 
communication system Chapter 2
communication system Chapter 2communication system Chapter 2
communication system Chapter 2
 
Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)Filter- IIR - Digital signal processing(DSP)
Filter- IIR - Digital signal processing(DSP)
 

Recently uploaded

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 

Recently uploaded (20)

The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 

Signal filtering - savitzky-golay

  • 2. Sohil Zidan Savitzky-Golay Filter ● Introduction ● Polynomial fitting ● Generating Configurations Outline Signal Filtering 2
  • 3. Sohil Zidan Savitzky-Golay Filter ● A moving polynomial fit can be numerically handled in exactly the same way as a weighted moving average filter ● reduce high frequency noise in a signal due to its smoothing properties and reduce low frequency signal (e.g., due to offsets and slopes) using differentiation Introduction Signal Filtering 3
  • 4. Sohil Zidan Savitzky-Golay Filter ● A moving polynomial fit can be numerically handled in exactly the same way as a weighted moving average filter ● reduce high frequency noise in a signal due to its smoothing properties and reduce low frequency signal (e.g., due to offsets and slopes) using differentiation ● Applicable to: ○ Equally spaced data values ○ Sampling space ○ ○ The non-causal filter replaces each data value fi by a linear combination gi of itself and some number of nearby neighbors, ○ : number of left points to the data point i (earlier) ○ : number of right points (later) Introduction Signal Filtering 4
  • 5. Sohil Zidan Savitzky-Golay Filter ● As a starting point consider a moving average window with cn=1/(nL+nR) ● The idea behind SGF is to approximate the underlying function with the moving window not by a constant, but by a polynomial or higher order, typically quadratic or quartic ● For each point fi we least-squares fit a polynomial to all nL+nR+1 in the moving window and then get gi to be the value of that polynomial at position i. ● When we move on to the next point fi+1, we do a whole new least-squares fit using a shifted window… laborious job ! Introduction Signal Filtering 5
  • 6. Sohil Zidan Savitzky-Golay Filter ● The goal is to fit a polynomial of degree M in z: z=-nL, …,nR: n point equally spaced ● To the values ● g0 will be the value of the that polynomial at z=0, namely a0 ● : is a Vandermonde Matrix, z=-nL, …,nR: n point equally spaced j=0, …,M Polynomial Fitting 1/2 Signal Filtering 6
  • 7. Sohil Zidan Savitzky-Golay Filter ● Goal: fit the polynomial …. Eq(1) ● The normal equations for the vector of in terms of the vector of is in matrix notation: ● Or … Eq(2) ● For : ○ a certain window size m ○ and polynomial degree A is known then we can compute coefficients of f which are known as convolution coefficients C ● No we get the and from the Eq(1) with the center point z = 0 Polynomial Fitting 2/2 Signal Filtering 7
  • 8. Sohil Zidan Savitzky-Golay Filter ● We get ● Savitzky and Goaly computed some configuration and put it into a table ● For ○ window size= 5 ○ cubic polynomial degree M = 3 we get the following smoothed value Generating Configurations Signal Filtering 8
  • 9. Sohil Zidan Savitzky-Golay Filter ● Values other than the center ? ● All can be computed using Eq(2) ● Then using Eq(1) we can create a smoothed value of any point of the equally-spaced points set ● The red line: ○ the local polynomial being used to fit a subset of the data. ● The smoothed values are shown as circles. Conclusion Signal Filtering 9
  • 10. Sohil Zidan ● https://aip.scitation.org/doi/pdf/10.1063/1.4822961 ● https://en.wikipedia.org/wiki/Savitzky%E2%80%93Golay_filter ● https://www.weisang.com/en/documentation/loessandlowessalgorithm_en/ ● https://www.ltu.se/cms_fs/1.36192!/file/E0005E_Lecture06_Transforms-version4.pdf ● https://en.wikipedia.org/wiki/Vandermonde_matrix ● http://www.statistics4u.info/fundstat_eng/cc_filter_savgol_math.html ● https://pubs.acs.org/doi/10.1021/ac60214a047 References Signal Filtering 10