Baseline Correction Algorithm for Raman Spectroscopy Based on Adaptive Window Spline Fitting
LIU Long1, FAN Xian-guang1, 2*, KANG Zhe-ming1, WU Yi1, WANG Xin1, 2*
1. Department of Instrumental and Electrical Engineering, School of Aerospace Engineering, Xiamen University, Xiamen 361005, China
2. Fujian Key Laboratory of Universities and Colleges for Transducer Technology, Xiamen 361005, China
Abstract:Raman spectroscopy is a non-destructive and rapid detection technology that can provide qualitative and quantitative information of the material. Therefore, it has been widely used in many fields such as medicine and chemical industry. However, the Raman spectrum suffers from the baseline drift due to the background fluorescence of the sample. Moreover, it has a serious impact on the identification of characteristic peaks of Raman spectra and the Raman imaging. At present, there are two methods to solve this problem, that is, improve the experimental methods and numerical processing. The improve the experimental methods include polarization modulation method and high frequency modulation method. However, they suffer from the disadvantages of complicated experimental equipment and difficult detection technology. The numerical processing includes polynomial fitting and wavelet transform. However, it is prone to suffer from the over and under-fitting. In order to solve this problem, we propose the baseline correction algorithm for Raman spectroscopy based on adaptive window spline fitting, which based on the existing equipment and the traditional baseline correction algorithm. Firstly, the optimal search interval of the trough value is obtained based on the peak recognition algorithm and the initial search step, and then the trough recognition algorithm is used to complete the fitting of the trough curve. Secondly, the peak position of the trough curve is obtained based on the optimal search interval and the peak recognition algorithm. Then, the adaptive rectangular window is symmetrically added at this position, in order to delete the peak, and fitting the trough curve. Thirdly, the fitting trough curve is compared with the original Raman spectrum, point by point, and taking the smaller value to fit a new trough curve. Finally, the operation above will continue until the width of the adaptive window is lower than the threshold. Afterwards, the baseline fitting of the Raman spectrum is completed. And then the baseline correction of the sample is obtained based on our algorithm and the traditional methods. It can be seen that our algorithm can effectively eliminate the baseline drift, and some weaker Raman characteristic peaks can be better remaining. Simultaneously, the over and under-fitting is avoided, and the result of baseline correction is good. Therefore, it provides reliable information on the further analysis of the Raman spectrum and the realization of the Raman imaging.
刘 龙,范贤光,康哲铭,吴 怡,王 昕. 基于自适应加窗spline曲线拟合的拉曼光谱去基线方法[J]. 光谱学与光谱分析, 2021, 41(01): 111-115.
LIU Long, FAN Xian-guang, KANG Zhe-ming, WU Yi, WANG Xin. Baseline Correction Algorithm for Raman Spectroscopy Based on Adaptive Window Spline Fitting. SPECTROSCOPY AND SPECTRAL ANALYSIS, 2021, 41(01): 111-115.
[1] Chalmers J M, Uriffiths Peter R. Handbook of Vibrational Spectroscopy (Vol 1-5). Wiley, 2003.
[2] Christoph Krafft, Gerald Steiner, Claudia Beleites, et al. Journal of Biophotonics, 2009, 2: 13.
[3] HU Xue-tao, SHI Ji-yong, LI Yan-xiao, et al(胡雪桃,石吉勇,李艳肖,等). Spectroscopy and Spectral Analysis(光谱学与光谱分析), 2019, 39(9): 2901.
[4] Arguello C A, Mendes G F, Leite R C. Applied Optics, 1974, 13(8): 1731.
[5] Bright F V, Hieftje G M. Applied Spectroscopy, 1986, 40(5): 583.
[6] Yaney P P. J. Opt. Soc. Am., 1972, 62(11): 1297.
[7] Huang Jie, Shi Tielin, Gong Bo, et al. Applied Spectroscopy, 2018, 72(11): 1632.
[8] Rehman S U, Alkanhal M A S. IET Microwaves Antennas & Propagation, 2019, 13(15): 2693.
[9] Gallo Crescenzio, Capozzi Vito, Lasalvia Maria, et al. Vibrational Spectroscopy, 2016, 83: 132.
[10] ZHU Gao-feng, ZHU Hong-qiu, QIAN Hao, et al(朱高峰, 朱红求, 钱 灏, 等). Chinese Journal of Lasers(中国激光), 2018, 46(2): 211001.
[11] Gonzalez-Vidal J J, Perez-Pueyo R, Soneira M J. Journal of Raman Spectroscopy, 2017, 48(6): 878.
[12] Bertolazzi Enrico,Bevilacqua Paolo, Frego Marco. Mathematics and Computers in Simulation, 2020, 176: 57.
[13] Chambers S D, Choi T, Park S J, et al. Journal of Geophysical Research-Atmospheres, 2017, 122(24): 13525.
[14] Ning X R, Selesnick I W, Duval L. Chemometrics and Intelligent Laboratory Systems, 2014, 139: 156.