Terahertz spectroscopy has multivariable and produces large volumes of data. Principal component analysis(PCA) is a statistics analysis method of dimensionality reduction of