Learning from bacterial locomotion in complex media for robotic design and medical devices | Synapse