Exploring movement optimization for a cyborg cockroach with machine learning