Hi,
This is 
irritable bowel syndrome and initially dietary modification like regular meal pattern; avoidance of large meals, diet low in food like wheat, barley, rye, onion, leek, white part of spring onion, garlic, shallots, beetroot, fennel, peas, chicory, pistachio, cashews, legumes, lentils, and chickpeas is important. 
Also exclude foods that increase 
flatulence (eg, beans, onions, celery, carrots, raisins, bananas, apricots, prunes, Brussels sprouts, 
wheat germ, pretzels, and bagels), alcohol, and caffeine.  Increase physical activity composed of  20 to 60 minutes of moderate to vigorous activity three to five days per week. 
Hope I have answered your query. Let me know if I can assist you further. 
Regards,
Dr. Sagar Makode