Basically, the cytokene hypothesis of depression says depression = inflammation. Makes sense that IBD patients are more depressed. Chronic inflammation isn't just limited to the colon and can be in other areas of the body -- brain included.
From my own experience, I've noticed that cutting back on inflammatory foods have improved my mood. Things like saffron, curcumin and other natural remedies have also shown to be more effective than medications in alleviating depression. Exercise is a no brainer as well.
More hereThe “cytokine theory of depression” has also been supported by a large set of results in animals models. Research using these models demonstrated that alteration in the proinflammatory cytokine milieu can lead to behavioral changes overlapping with those found in depressed patients, including anhedonia, decreased activity, cognitive dysfunction, and altered sleep patterns [12]. In further support of this link, mice exposed to a chronic mild stress (CMS) protocol, which induces symptoms of depressive-like behavior, show increased levels of IL-1 in the hippocampus [13]. Furthermore, the depressive-like behavior observed after CMS can be mimicked by chronic administration of IL-1 [13] and, when mice lacking the expression of IL-1 receptor are exposed to the same CMS paradigm, the behavioral changes do not occur [13]. Interestingly, mice unable to express the receptor for TNF, one of the cytokines more consistently upregulated in depression, show decreased immobility in the forced swim test (FST), that is, decreased signs of depressive-like behavior in a test that assesses learned helplessness and is considered one of the gold standard tests to evaluate depression in rodents [14]. These observations suggest that TNF activation also mediates depressive-like behavior in mice.Best.