I think you are suffering from Irritable Bowel syndrome (IBS).
U need to be careful while taking outside food, best to avoid.
Need to carry ur RO filtered water along with you all the time.
Avoid spicy food and junk food.
Next Steps
Get a Stool culture done...
Health Tips
U can take Prebiotics(Econorm sachet) periodically once a month for 10 days.