Thermal imaging for hotspot detection