Application of Pattern Recognition to Quality Assessment of the Traditional Chinese Medicine