Not being around people does not equate to loneliness.
There are some good books on the subject. Solitude: A Return to the Self by Anthony Storr was one of the first I read and had a strong focus on psychology. For a more opinionated text, Party of One: The Loners' Manifesto by Anneli Rufus was good at building confidence in living this way.