Here's an interesting article by Fran Kohlt on Lewis Carroll and madness. I went to a much longer talk she gave to the Lewis Carroll Society on this same subject. Madness is famously a theme which threads through Carroll's work, and he was interested in psychology, which was, however, in its very early stages during his lifetime. He wasn't, sadly, in time to read the first English translations of Freud's works!