The invention provides a tomato
shelf life prediction method based on a hyperspectral and RGB
imaging technology. The tomato
shelf life prediction method comprises the following steps: S1, obtaining a hyperspectral image and an
RGB image of a tomato sample; s2, preprocessing the hyperspectral image to obtain hyperspectral
feature data; s3, extracting color
feature data and
texture feature data of the
RGB image; s4, splicing the data obtained in the steps S2 and S3, performing
standardization processing, and dividing the data into a
training set, a
test set and a
verification set; s5, constructing an MLP model; screening the target
feature set; s6, training the MLP model to obtain a tomato
shelf life identification model; s6, obtaining a hyperspectral image and an
RGB image of the detected tomato, performing preprocessing, and screening data according to the target
feature set; and S7, splicing the screened color
feature data,
texture feature data and hyperspectral feature data of the detected tomatoes, inputting the spliced data into the tomato shelf life recognition model for recognition, and outputting the shelf life of the detected tomatoes. According to the invention, the accuracy of tomato shelf life identification is improved.