thermal stress detection