Abstract
In optical sensing, signal demodulation often degrades fine spectral data, particularly in spectroscopic measurements affected by Doppler noise, aliasing, and circuit noise. Existing algorithms often fall short in addressing these issues effectively, as they either necessitate complex parameter tuning and extensive expertise or are limited to handling simple spectral signals. To address these challenges, this study proposes an adaptive spectral extraction algorithm combining Variational Mode Decomposition (VMD) and Savitzky-Golay (SG) filtering. The algorithm optimizes parameters through an innovative adaptation strategy. By analyzing key parameters such as SG frame length, order, and VMD mode number, it leverages signal time-domain and frequency spectrum information to adaptively determine the optimal VMD modes and SG order, ensuring effective noise suppression and feature preservation. Validated through simulations and experiments, the method significantly enhances spectral signal quality by restoring absorption peaks and eliminating manual parameter adjustments. This work provides a robust solution for improving measurement accuracy and reliability in optical sensing instrumentation, particularly in applications involving complex spectral analysis.