Waste heat, artificial intelligence and new directives promote energy efficiency