Turning itself off is one thing, but turning itself on (assuming it's been off for a while)? Are you sure you actually mean it's restarting itself on it's own?

You could try right clicking My Computer > Properties > Advanced > Startup and Recovery Settings > Untick Automatically Restart, to see if it'll tell you anything useful when it does it