I believe there are certain brain wave patterns that are good for sleep, and others that are bad that can make sleeping a problem initially.
Your brain switches between waves and patterns when you get into different stages of sleep I thought...