In this paper, through the analysis of the mid infrared spectrum data of Chinese medicinal materials, we establish a mathematical model to classify the given Chinese medicinal materials, analyze the characteristics and differences of the medicinal materials from different places, and identify the origin of the medicinal materials. Based on the near-infrared and mid infrared data, we identify the origin of a kind of medicinal material. Moreover, according to the near infrared spectrum data of several medicinal materials, we identify the classification and origin of medicinal materials.