Using an autoencoder in the design of an anomaly detector for smart manufacturing