i had a few accidents like yourself and took me just under a year to get medical advice as i felt too embarrassed about it. For me it turned out to be inflammatory bowel disease sounds worse than it really is. Its just like IBS and i have to take buscopan wich has helped me loads with bowel movements. Since being on buscopan for the last 2 weeks ive not once had an accident.
Go to your gp he/she will probalbly take some blood and a stool sample from you to check for any infections that may be in your tummy area then you will know for sure