Scene recognition with naive bayes non-linear learning