This invention discloses a
spectral analysis method, apparatus, device, and storage medium. It includes: acquiring raw
spectral data to be analyzed; preprocessing the raw
spectral data to obtain preprocessed
spectral data; performing multi-
peak fitting on the preprocessed spectral data using an iterative residual peak-finding
fitting algorithm to obtain a final fitted spectrum and a final residual spectrum; and generating
spectral analysis results based on the final fitted spectrum and the final residual spectrum. Preprocessing the raw spectral data effectively eliminates background interference,
cosmic ray pseudo-signals, and
random noise, improving the
signal-to-
noise ratio of the spectral data. Using the iterative residual peak-finding
fitting algorithm for multi-
peak fitting accurately identifies and fits all significant spectral peaks, avoiding underfitting and
overfitting problems, and improving the accuracy of multi-
peak fitting. The generated
spectral analysis results can accurately extract core feature indicators, and the fitting quality can be verified through residual
spectroscopy, ensuring that the analysis results are accurate and reliable, truly reflecting the structural characteristics of the material.