They're called hypnic jerks and typically occur during the onset of N1 sleep.

Anything else you'd like to know, while I'm here?