Artificial intelligence can help to predict how well patients with hip osteoarthritis will be able to walk again after an operation.