I happen to not believe in stuff like this however. The mind (not brain) works in funny ways. Although there was no activity or consciousness for awhile, his mind might have cobbled something together when he woke up.
For me, the real question is how did he recover from something so devastating as the e.coli that was eating his brain. From time to time, "miracles" like this happen: someone should be dead from a medical problem, but makes a full recovery. So is it divine intervention or biological processes that we don't understand/can't detect?