Near Infrared Spectroscopy (NIR) is an analytical technology that utilizes the regional properties of vibrational energy absorption of material molecules to obtain spectral information of the measured sample through a spectrum analyzer in the near-infrared band. NIR spectrometers usually use components such as light sources, sample boxes, detectors, and computers, and can quickly and accurately analyze different samples. NIR spectral analysis can be used in agricultural products, food, medicine, chemical industry and other fields, and is widely used in component analysis, quality control, process monitoring and other aspects. NIR spectroscopy technology has the advantages of non-destructive, high efficiency, rapidity, and multi-element analysis capabilities, so it has received more and more attention and applications.