Miscarriage would usually involve heavy bleeding. Since you already had your period 3 weeks before you saw the brownish bleeding, chances are that it isn't a miscarriage, since that's very little window period to get pregnant, but probably something to do with hormones being messed up. Could be stress, lack of sleep, antibiotics, etc. can you go to a gynecologist if it persists?