The invention discloses an LED classification method based on manifold learning, and the method comprises the following steps: S1, obtaining an image comprising an LED, and converting the image into agray image; S2, performing image masking on the area, except for the edge part area of the LED fluorescent glue, of the grayscale image in the step S1 to obtain a mask image; S3, performing dimensionreduction processing on the mask image obtained in the step S2 to obtain dimension reduction data; and S4, transmitting the dimension reduction data obtained in the step S3 to a classifier for classification, and obtaining LED classification of good LEDs, LEDs with large glue amount and LEDs with small glue amount. According to the method, the LED fluorescent glue edge annular image is separated,the nonlinear dimension reduction algorithm is combined to change the distribution of glue amount characteristics, the glue amount characteristics of the LED are extracted, the interference of redundant information on characteristic extraction is reduced, and the classification accuracy of a classifier is improved; and meanwhile, in the dimension reduction algorithm, a conditional probability function used in an iterative process is optimized, so that the overall time consumption of the algorithm can be reduced.