Psychiatry

A pateint presented with sho lasting episodic behavioural changes which includes agitation & dream like state with thrashing movements of his limbs. He does not recall of these episodes & no precipitating factor is likely. The most likely diagnosis is-