Infection, inflammation, and metabolic disorders early in life could increase the chances of developing depression and psychosis during adulthood.