There's plenty of science behind Sleepio, now available on iOS 8, but it's an animated professor that brings users back for weekly sessions.
When Peter Hames complained to doctors about his insomnia, they responded by pulling out a prescription pad. Then came the inevitable: more sleeping pills.