Motion tracking is performed with a thermal pattern within a patient. A pattern of different temperature is created in tissue, such as warming up tissue in a checkerboard pattern. The temperature pattern is used over time to track motion of the tissue. The tracked motion may be used to treat the tissue throughout at least part of a periodic cycle.