The application provides a contraband detection equipment risk early warning method and
system using a cloud network end, wherein Raman spectrum data of a sample to be detected is obtained and
wavelet transform is performed to generate a feature spectrum to be matched; a
cloud server gathers non-alarm spectrum data uploaded by multiple terminals, and generates an environment background feature spectrum set by clustering; the feature spectrum to be matched is matched with a standard spectrum
library and a
background spectrum set, and based on spectrum cross-correlation,
peak shift and peak shape correlation weighted operation, a comprehensive matching
score is obtained; when the comprehensive matching
score of the feature spectrum to be matched and any
background spectrum is higher than a
background suppression threshold, an adjusted contraband comprehensive matching
score is generated; based on the adjusted contraband comprehensive matching score, a ratio of the highest score and the second highest score is calculated to determine a matching
ambiguity coefficient, and in combination with the highest score, a preset
threat level of the corresponding contraband and the matching
ambiguity coefficient, a risk early warning level is output.