Rice is a staple crop in China. Controlling rice pests and diseases is important to safeguard its sustainable production, in which classification and identification of rice planthoppers plays an important part. While there has been an increased interest over the past few years in image-classification of the rice planthoppers, currently, this method is not automatic and susceptible to faulty recognition and low efficiency. To circumvent these shortcomings, a sparse-representation image-based classification method was proposed based on the K-SVD and OMP. A field insect collection device was used to collect insect images, in which a high-pressure mercury lamp was used to attract the insects to the collection workbench based on their phototaxis characteristics. A PLC was mounted on the top of the three-phase adjustment device to control high-definition industrial cameras to take images of the insects. The images were then segmented using the maximum inter-class variance method (OTSU threshold segmentation method) to extract the image of the insects. Overall, 1186 single insect images were obtained from the field experiment. Two insect characteristics were selected as initial over-complete dictionary and they were extracted from 500 images. K-SVD dictionary learning algorithm was used to iteratively update the over-complete dictionary of the rice planthopper image features and the number of iterations was set at 500. 200 images of the rice planthoppers were selected as the original input comparing images, and 150 and 50 images of the rice and non-rice planthopper were used as testing and verifying sets respectively. The appropriate sparsity is an important factor for improving efficiency and accuracy, and the errors of the testing images was calculated from the OMP algorithm when the sparsity was 6, 12 and 18 respectively. Comprehensive analysis of the errors and convergence rate showed that the optimal sparsity was 12. Finally, classification features of the rice and non-rice planthoppers were sparsely reconstructed in line with the updated reconstruction dictionary, and the reconstruction error was calculated for the sparsity of 12. Hundreds of experiments revealed that the classification threshold of 0.1 was quick and effective to classify the rice and non-rice planthopper. Using the same experimental data, we compared the proposed method with the traditional image-based classification algorithms, SVM and BP neural network. The results showed that the accuracy and classification speed were 65.5% and 0.5 frames/s respectively for SVM, and 78.0% and 1.0 frames/s respectively for the BP neural network. In contrast, the proposed method improved the accuracy to 93.7% and the classification speed to 6.0 frames/s. [ABSTRACT FROM AUTHOR]