Text this: Efficient control of spider-like medical robots with capsule neural networks and modified spring search algorithm