STM trace decoding