Machine learning methods to improve the accuracy of an articulated robot for a cyber-physical production system