my kid (17mth) has been doing tt every now and then.
the head banging happens when we're trying to get him to sleep and he's trying to stall. Then he'll move on to do other actions.
the head shaking is when he's tired.Im not too concerned coz he's interacting with others fine.