A method of estimating concentration of a blood compound may include: removing a baseline drift from Near-Infrared (NIR) spectroscopy data to obtain drift-free spectral features; obtaining a set of global features based on the drift-free spectral features; and estimating the concentration of the blood compound by regression using the set of global features.