It's possible that he's pulling an unconsious Sherlock scan. In essance he noted that the man wasn't dead after the initial incident and worked through a series of likely scenarios based on the available information, arrived at the most likely solution and used Kaylina to warn his consious mind of the potential danger. The book 'Blink' by Malcolm Gladwell discuss this. To borrow from the man himself:
It's a book about rapid cognition, about the kind of thinking that happens in a blink of an eye. When you meet someone for the first time, or walk into a house you are thinking of buying, or read the first few sentences of a book, your mind takes about two seconds to jump to a series of conclusions. Well, "Blink" is a book about those two seconds, because I think those instant conclusions that we reach are really powerful and really important and, occasionally, really good
I'm thinking that his 'disease' is a mix of AI Sub minds seen in other sci-fi series and the techniques used in Joss Whedons 'Dollhouse'. Our heroes consious mind is currently unable to cope with it's own capabilities. So it creates sub minds (personalities) to accomplish certain goals. To make these minds more 'real' it provides them with personalities and quirks that would explain why they have the knowledge that he needs. It can only keep so many sub minds active at a time or things go haywire.
It could be something more 'Magical' but at present I am doubtful of that conclusion.