Machine learning techniques for the optimization of joint replacements