Thermodynamics-inspired explanations of artificial intelligence