Near Infrared spectroscopy (NIRS) has been widely used in the discrimination (classification) of pharmaceutical drugs. In real applications, however, the class imbalance of the drug samples, i.e., the number of one drug sample may be much larger than