Rhythmic movement disorder
Rhythmic movement disorder (RMD) is a neurological disorder characterized by repetitive movements of large muscle groups immediately before and during sleep often involving the head and neck. It was independently described first in 1905 by Zappert as jactatio capitis nocturna and by Cruchet as rhythmie du sommeil.
Source: Wikipedia — Rhythmic movement disorder (CC BY-SA 4.0)