I discovered in my early 20s that eating soy gives my severe depression and depersonalization/derealization. I cut it from my diet and noticed immediate improvement. I have done a couple tests (some purposeful and some from accidental consumption) over the years that confirmed this for me. I also discovered it extended to all legumes I've tried. One example was I had to stop eating my regular canned tuna and I just assumed it had a hidden allergen in the "vegetable broth" ingredient. Way later I checked their website and they had added a statement that the broth included peas.
I also get extreme painful bloating and GI pain from legumes (and dairy), but no conventional allergy symptoms like no swelling, itching, or hives.
Years later, I had allergy skin prick testing which showed strong reactions to all tested legumes (peanut, soy, green peas, navy bean, and lima bean) as well as a medium reaction to milk proteins, with most other foods tested (46 total) showing no reaction. This felt very vindicating despite the lack of "normal" allergy symptoms. As a sidenote, I have also always had pretty severe environmental allergies and was on allergy shots as a child and currently on them again as an adult. I also have some family history of anaphylactic peanut and nut allergies.
I've tried researching depression and allergies over the years and found very little information and often, people explicitly saying there was no connection and without a normal allergic response it was not an allergy.
There is a little bit of info out there discussing possible effects of phytoestrogens, but that would be a different type of response.
Ironically, at one point my mom was like "Oh yeah, I have a book about this" and she gave me a book she bought when we were kids called "Is this your child?" that explores how food, chemical, and environmental sensitivities may affect children's physical health, mood, learning, and behavior. That book was from 1991, and I don't know why there isn't much else out there on the topic that I've been able to find.
I guess I'm just looking for any solidarity, or other research or information on this topic. It has felt a little isolating dealing with this type of reaction that nobody has heard of or that has sometimes been outright denied over the years. I'm thankful that at least my doctors and allergists have believed me, although it's not like anything really needed to be done about it besides just avoiding those foods