Automated behavioral methods and systems for treating insomnia that use passive means for determining wake/sleep states.