The invention discloses a mobile terminal lightweight
drug taking auxiliary detection method and
system based on a face image, and the method comprises the following steps: S1, collecting a face image of a detected person through a camera, and carrying out the preprocessing operation of
face detection, background removal and face alignment; s2, designing a lightweight neural
network module, and constructing a lightweight
drug taking detection network based on the module; s3, acquiring a face
data set of a
drug addict and training a
drug addict detection network; s4, extracting face features by using the
drug taking detection network and obtaining a
classification result and a certainty degree; and S5, converting and
transplanting the
drug taking detection
network model to a mobile terminal, and constructing a mobile terminal application. According to the method, the drug addicts are detected based on the facial images, the defects that a traditional biochemical sample detection method is high in matching requirement, long in detection period, difficult to screen in a
large range and the like are overcome, meanwhile,
deep learning and lightweight thoughts are used, the
algorithm performance is effectively improved, and the method is suitable for mobile terminal application scenes,
portable application scenes and other application scenes.