I read a story about a cat in a retirement home, who, everytime a resident was close to passing, would take up residence on the end of their bed until they died. So yes cats definitely do sense stuff I reckon.

BTW not saying you're going to cark it!