The nearest-neighbor yarn neps prediction model based on gray correlation designed in this paper predicts that the relative error of the yarn neps indicator data set is basically within 10%, and the average relative error and the root mean square error are very low.