Machine Learning for Background Estimation in Multispectral Imagery