The determination coefficients R 2 of the correction modes are 0.987 and 0.986 for protein and fat respectively, and the root mean square errors RMSEC are 0.385 and 0.419 respectively. By selecting the appropriate spectral bands, the correction models of protein and fat were established with partial least squares algorithm using Unscrambler 9.7 Chemometrics software. Abstract The method based on miniature near-infrared spectrometer combined with Y fiber optic probe to detect the protein and fat in milk powder by diffuse reflectance spectroscopy in the wavelength range of 900~1 700 nm was proposed.