Accurate identification of coal and gangue is an important prerequisite for the effective separation of coal and gangue. The application of imaging technology combined with image processing steps (like enhancement, feature extraction, etc.) and classifier is used to identify coal and gangue, which effectively avoids the shortcomings of traditional methods (radiation, pollution, etc.). However, ordinary image detection is greatly influenced by environmental factors such as light, dust and so on. Multispectral imaging technology, as a new generation of optical non-destructive testing technology, is less affected by illumination, so we propose a new solution for the recognition of coal and gangue by using multispectral imaging. Firstly, we respectively tested the classification performance of different image feature extraction methods under GS-SVM, GA-SVM, and PSO-SVM classifiers, and selected the best feature extraction method is LBP. And then, we compared the classification effects under different wavelengths and found that the ninth wavelength works best. That is, the difference in imaging between coal and gangue at 773.776 nm is greatest. Finally, the performance of the proposed model for the identification of coal and gangue was carried out. And the highest classification accuracy can be obtained by using GS-SVM as the classifier, at which point, C = 8, g = 0.17678. The results show that multispectral imaging technology can be used for the identification of coal and gangue, and the prediction accuracy of the model combined with LBP feature extraction and GS-SVM can reach 96.25% (77/80). The conclusions could provide reference evidence for the intelligent dry selection in coal preparation plants and underground coal mine. INDEX TERMS Coal-gangue identification, multispectral imaging, feature extraction, support vector machine.