The invention discloses an XRF
metal detection and
analysis method for soil heavy
metal pollution, and relates to the technical field of detection, and the method comprises the following steps: S1, collecting a main peak energy value, an X-
ray intensity value and a main peak
full width at half maximum value of each
metal element; s2, selecting out indication elements, obtaining an X-
ray intensity value ratio, and collecting a PH value and a
water content mean value of the detected soil; s3, constructing a multi-output regression model based on the multi-layer
perceptron network; s4, generating a predicted distribution value of each valence
state distribution by using a multi-output regression model; and S5, when the target detection soil is marked as unknown
pollution, returning to the step S2 to replace the indication element, and then re-executing detection. Compared with the prior art, the method has the advantages that XRF in-situ detection is combined with a
machine learning
algorithm for modeling, complicated extraction and color development steps in traditional valence state analysis are avoided, second-level valence
state prediction is realized, and the method has the advantages that the cost and the use threshold are reduced, and the soil heavy
metal pollution detection efficiency is obviously improved.