@odiousness,
I feel sometimes it is a combination of everything, in some way like a matrix combining physiology, psychology, environment, society, culture, genes, what you ate for breakfast... That sort of thing. But individually speaking it seems hardest to discern what triggers what mood sometimes.