?????????

had my period Sept.22-Oct.4 (13 days) then spotted Oct.12-13 & began my period again on the 14-18, anybody know why? 
yes I am sexually active & have unprotected sex. I was on depo Feb.18,2016 but it been wore off so it could be the shot.