Taking lessons from a sea slug, study points to better hardware for artificial intelligence