An Autoencoding Method for Detecting Counterfeit Coins