The main objective of this paper is to classify four kinds of automobile lubricant by near-infrared (NIR) spectral technology and to observe whether NIR spectroscopy could be used for predicting water content. Principle component analysis (PCA) was applied to reduce the information from the spectral data and first two PCs were used to cluster the samples. Partial least square (PLS), least square support vector machine (LS-SVM), and Gaussian processes classification (GPC) were employed to develop prediction models. There were 120 samples for training set and test set. Two LS-SVM models with first five PCs and first six PCs were built, respectively, and accuracy of the model with five PCs is adequate with less calculation. The results from the experiment indicate that the LS-SVM model outperforms the PLS model and GPC model outperforms the LS-SVM model.