This might be related to your IBS
. Sometimes bowel loops can go into hyper-peristaltic phase.There may be underlying bowel inflammation
If there are no other symptoms except this then you can try symptomatic treatment with oral loperamide
) .This may help reducing intestinal motility and give symptomatic relief.