Near infrared spectroscopy (NIR) was applied to discriminate the roots of salvia miltiorhiza Bunge (Danshen for short) and Salvia yunnanensis C. H. Wright (Zidanshen for short) by means of principal component analysis (PCA), improved and simplified K nearest neighbors (IS-KNN). Furthermore, an