Insomnia comes from eating a high carb, sugar-filled, starchy food diet. The link has been proven with studies.

The way you currently eat, it's virtually assured you'll have trouble sleeping.

"sugar and refined carbohydrates can interfere with sleep. Eating a diet high in sugar and refined carbohydrate and eating irregularly can cause a reaction in the body that triggers the “fight or flight” part of the nervous system, causing wakefulness."

Lisa Shea, Low Carb and Video Games Editor
Low Carb Forum