Late Night Eating Help!

I have been doing this for what seems like a while. And it is hit and miss, and I believe it is why I don't see a consistant weight loss. I would say about 5 out of the 7 days of the week, I wake up in the middle of the night and binge eat. I have no idea why I do it. Any suggestion to help stop this craziness?