• Spectroscopy and Spectral Analysis
  • Vol. 42, Issue 10, 3174 (2022)
Rui-qian YE1、*, Hao HE1、1;, Peng ZHENG1、1;, Meng-xi XU2、2;, and Lei WANG1、1; *;
Author Affiliations
  • 11. School of Aerospace Engineering, Xiamen University, Xiamen 361101, China
  • 22. State Key Laboratory of Physical Chemistry of Solid Surfaces, Collaborative Innovation Center of Chemistry for Energy Materials (iChEM), College of Chemistry and Chemical Engineering, Xiamen University, Xiamen 361101, China
  • show less
    DOI: 10.3964/j.issn.1000-0593(2022)10-3174-06 Cite this Article
    Rui-qian YE, Hao HE, Peng ZHENG, Meng-xi XU, Lei WANG. A Spike Removal Algorithm Based on Median Filter and Statistic for Raman Spectra[J]. Spectroscopy and Spectral Analysis, 2022, 42(10): 3174 Copy Citation Text show less
    The distribution with the original data and middle 99% data
    Fig. 1. The distribution with the original data and middle 99% data
    Spike removal of 1-dimensional spectra with different window size and thresholda: Raw spectrum; b: Spike removal with window size 7, threshold 1×10-5; c: Spike removal with window size 3, threshold 1×10-5; d: Spike removal with window size 7, threshold 1×10-3; e: Spike removal with window size 3, threshold 1×10-3. Arbitrary offsets were applied on the spectra for better visualization
    Fig. 2. Spike removal of 1-dimensional spectra with different window size and threshold
    a: Raw spectrum; b: Spike removal with window size 7, threshold 1×10-5; c: Spike removal with window size 3, threshold 1×10-5; d: Spike removal with window size 7, threshold 1×10-3; e: Spike removal with window size 3, threshold 1×10-3. Arbitrary offsets were applied on the spectra for better visualization
    1-dimensional Raman spectra spike removal processa: Raw Raman spectrum; b: Raman Spectrum after 1-dimensional spike removal. Arbitrary offsets were applied on the spectra for better visualization
    Fig. 3. 1-dimensional Raman spectra spike removal process
    a: Raw Raman spectrum; b: Raman Spectrum after 1-dimensional spike removal. Arbitrary offsets were applied on the spectra for better visualization
    1-dimensional spectrum with artificial spikes(a): Raman spectrum after spike removal; (b): Raman spectrum with 0.1 times artificial spikes;(c): Raman spectrum with 0.2 times artificial spikes; (d): Raman spectrum with 0.3 times artificial spikes; (e): Raman spectrum with 0.4 times artificial spikes; (f): Raman spectrum with 0.5 times artificial spikes
    Fig. 4. 1-dimensional spectrum with artificial spikes
    (a): Raman spectrum after spike removal; (b): Raman spectrum with 0.1 times artificial spikes;(c): Raman spectrum with 0.2 times artificial spikes; (d): Raman spectrum with 0.3 times artificial spikes; (e): Raman spectrum with 0.4 times artificial spikes; (f): Raman spectrum with 0.5 times artificial spikes
    2-dimensional Raman image spike removal process(a): Raw Raman image; (b): Raman image after 2-dimensional spike removal
    Fig. 5. 2-dimensional Raman image spike removal process
    (a): Raw Raman image; (b): Raman image after 2-dimensional spike removal
    3-dimensional Raman data cube spike removal process(a): Raw Raman data cube; (b): Raman data cube after 3-dimensional spike removal
    Fig. 6. 3-dimensional Raman data cube spike removal process
    (a): Raw Raman data cube; (b): Raman data cube after 3-dimensional spike removal
    Input raw Raman data M, Window size W,
    Threshold θ, Dimension D;
    1 Data N=Median(M, W);
    2 Deviation E=M-N;
    3 Distribution F=Fit(middle 99% E);
    4 Value V1=F(θ), V2=F(1-θ);
    5 If E(I)<V1 or E(I)>V2
    6 Replace M(I) by N(I);
    7 Endif
    Output Data M
    Table 1. Flowchart of algorithm
    RatiosPredictedTruePercentage/%
    0.117520087.5
    0.219520097.5
    0.319720098.5
    0.419920099.5
    Table 2. 1-dimensional Raman spectra spike detection
    RatiosPredictedTruePercentage/%
    0.117420087
    0.219420097
    0.319920099.5
    Table 3. 2-dimensional Raman image spike detection
    RatiosPredictedTruePercentage/%
    0.118620093
    0.219920099.5
    Table 4. 3-dimensional Raman data cube spike detection
    Rui-qian YE, Hao HE, Peng ZHENG, Meng-xi XU, Lei WANG. A Spike Removal Algorithm Based on Median Filter and Statistic for Raman Spectra[J]. Spectroscopy and Spectral Analysis, 2022, 42(10): 3174
    Download Citation