{'fraction_non_alphanumeric': 0.01770890979524073, 'fraction_numerical': 0.0, 'mean_word_length': 5.527075812274369, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Baseline Correction Algorithm Based on Catastrophe Point Detection and Lipschitz Exponent's Analysis

In order to quantitatively analyze the proportions of independent components in mixtures, it is necessary to extract line spectra corresponding to those components from the spectrum signal of some mixture and evaluate the amplitude of the spectral lines. Multiple factors cause the drift and tilt of a spectrum signal’s baseline, such as environment noises, instrument bias, and sample size, which affect the identification and quantitative analysis of the line spectra superimposed on the baseline. Therefore, the baseline of a spectrum signal should be removed before the line spectra are identified. A baseline correction algorithm based on Catastrophe Point detection and Lipschitz exponent’s analysis is proposed in this paper. With the algorithm, the strong spectral lines are identified and removed, and then the spectral baseline is evaluated without the interference of strong spectrum signals. First, catastrophe points are located based on the local modulus maxima theory of wavelet coefficients. Second, according to the Lipschitz exponent theory, the strong spectral peaks’ regions are identified and removed by a smoothing filter. Then the slowly varying spectrum is segmented adaptively and fitted by the least square fitting method. After the segments are attached and the boundaries are smoothed, the baseline of the spectrum is acquired and extracted finally. The algorithm is more accurate than classical ones because identifying the baseline is implemented after strong peaks are removed, so their influences to baseline extracting are eliminated. The results of experiments show that the algorithm is accurately performed for the spectrum signal of a gas mixture, [Formula: see text].