Smoke detection in video surveillance: A MoG model in the wavelet domain