If you lock the car with the remote, does it do it at that time? Will it lock and unlock by itself? Does the remote start work? If the answer is yes, it's most probably the fob battery. Change it out. If you change it and it still happens, check the car battery. Don't forget, freezing temps play...