This invention provides a method and
system for detecting impurities in
flunarizine hydrochloride raw material. The detection method includes: acquiring the original chromatographic
signal, performing empirical mode
decomposition for denoising and baseline optimization to obtain a baseline-corrected and denoised chromatogram; determining the
signal-to-
noise ratio based on the energy relationship between
noise and
signal in preprocessing, determining the optimal analytical scale through a preset function, determining the number of chromatographic peak components by screening ridges through
continuous wavelet transform, and extracting initial
model parameters; establishing a
mathematical model for the
convolution of a standard
Gaussian function and a modified
Logistic distribution function for each component peak, using a trust-region reflection
algorithm for nonlinear iterative fitting, with the objective function containing a least-squares residual term and a weighted regularization term; after the objective function converges, obtaining the optimal
model parameters, and calculating the integral area of each
impurity component peak to determine its content.