If you are low on brake fluid it can come on while you are braking. Other than that, an ABS sensor maybe? If it comes and goes though, I'd check the fluid level first. The same thing happened to me when my RR brake line came loose (found out after taking it into Future Ford and them telling me it was because I went through "oil or something" on my dirt road

and it got all over") and I was loosing fluid.