Scientists are using artificial intelligence to make bionic limbs act more like natural ones.