Command Recognition On Intermittently-Powered Devices