Intelligent autoencoder for space-time-coding digital metasurfaces