The invention belongs to the field of
sugar detection, and particularly relates to a litchi
sugar detection method based on
machine learning, and the method comprises the steps of complete information collection, priori
knowledge learning,
feature fusion, litchi model updating, litchi
reflection spectrum scanning and recording, preprocessing,
interpretability analysis and model output. According to the scheme, litchis automatically roll before passing through a detection area by adopting the rotating roller, and cameras are respectively mounted at different angles of the front and rear sections of the rotating roller and the left and right sides of the conveying belt, so that errors caused by single-angle shooting are reduced, and the
sugar detection accuracy is improved; according to the scheme, a nondestructive, rapid and low-cost near-
infrared spectral imaging technology is adopted, near-
infrared wavelengths are screened according to the importance of the
wavelength to a sugar detection result, redundant information is removed, features contributing to detection and grading are extracted, an interpretable
artificial intelligence technology is adopted, and the design of a return model is optimized.