A machine learning approach to automation and uncertainty evaluation for self-validating thermocouples