Sounds like a job for a neural net. If people would log all what they eat and how they feel. If the neural net had access to all the components of the foods they are inputting, surely with enough data a pattern would emerge of what common component in what they eat is correlated with worse symptoms.