Multilayer background modeling under occlusions for spatio-temporal scene analysis