“…With the stricter sewage discharge standards and higher environmental quality requirements, the development of advanced test methods with the characteristics of automation, instantaneity and networking is in urgent need. 2 Recently, with the continuous progress in spectral technologies, near infrared reectance (NIR) spectral analysis has become a popular tool adopted in many elds, such as agriculture, [3][4][5] medicine, 6 petrochemical industry, 7 life sciences, [8][9][10] and environmental sciences. 11 In particular, it is extensively used in the latest advances, such as computer technology, 12 spectral technology, [13][14][15] chemometrics, 16,17 and other disciplines.…”