Latent feature reconstruction for unsupervised anomaly detection