The invention relates to a multi-level
food safety risk evaluation method based on clustering and an
entropy weight method, and belongs to the technical field of
food safety. Firstly, a Mini-batch K-means clustering
algorithm is adopted to carry out
risk level preliminary division on a sample, and automatic
risk identification of
mass sampling inspection data is realized. Then, counting risk grade frequencies of different food types according to three levels of province, city and district (county), and constructing a
frequency matrix; and then weighting the risk indexes of various foods by using an
entropy weight method, calculating comprehensive risk scores of the food types under different levels, and further aggregating to obtain the
total risk level of each region. And finally, carrying out final grading on the risk
score of each region by adopting a K-Means clustering method, and determining the
food safety risk grade of each province, city and district (county). According to the method, multi-level and data-driven accurate evaluation of food safety risks can be realized, a scientific sampling inspection decision basis is provided for supervision departments, supervision efficiency is improved,
resource allocation is optimized, and public food safety is guaranteed.