Autoencoder-based background reconstruction and foreground segmentation with background noise estimation