This study provides a rapid method for quantification of mineral oil in rapeseed oil using near-infrared spectroscopy. The data were processed by direct orthogonal signal correction (DOSC), successive projections algorithm (SPA), partial least squares, an