Brown spotting

I'm due doe my period in about five days and yesterday afternoon I had just a little bit of brown spotting. I've read about implantation bleeding but don't know if they're related. Any insight?