The invention discloses a
white spirit flavor recognition method based on
machine learning, and belongs to the technical field of food detection and
artificial intelligence. Aiming at the problems of high subjectivity of manual evaluation, low efficiency of
mass spectrometry,
noise sensitivity of a
machine learning model and the like in the prior art, the method provides a solution integrating
solvent background deduction and feature weight screening. The method specifically comprises the following steps: diluting a
white spirit sample with
methanol according to a volume ratio of 1: 10, collecting
mass spectrum data through GC-MS, and dynamically deducting a
methanol background peak; a BP neural network (GABP) optimized by a
genetic algorithm is utilized to automatically analyze a
weight coefficient of each molecular peak to
flavor classification, and key features are screened; a classification model is constructed based on XGBoost, and parameters are optimized through
cross validation, so that automatic judgment of the
flavor type, authenticity and quality of the
white spirit is realized. According to the method, through
data dimension reduction and model collaborative optimization, the
overfitting problem caused by high
noise and high redundancy of
mass spectrum data is solved, the classification accuracy is remarkably improved, and the method can be extensively applied to white spirit brand identification,
process optimization and market quality supervision.