Automatic recognition of train tail signs using CNNs