PLEASE HELP I AM SO CONFUSED :(

My period has been regular for years... All of a sudden everything has gone wrong. My last regular period was on August 3rd .. Ended on the 10th. Nothing was unusual about that ... On the 14 I had some sexual activity but no penis involved just his fingers..( But I don't think that has anything to do with this maybe it could?) on the 21st of August I noticed that my CM had a line of fresh looking blood in it I didn't really think much of it thought it could be from all the recent physical activity I've been doing with school walking around a lot . I continued to spot that entire week brown.. Following week the spotting continued with red in it .. And then the bleeding stopped for 3 days and on Tuesday BLOOD. It wasn't spotting on the 3rd week just a light flow it was mostly when I wiped. After 5 days bleeding was over I assumed that it was my period just shorter and lighter. So after my week of no bleeding I come to find that Friday night I have brown spotting again and then another light flow.. I'm so confused this is killing me has anyone ever expirenced anything like this? I know it's hormone imbalance that's what my doctor said but but how long do these last? It's killing me as a person . If you have had something similar please let me know what happened