Dirty sensor / dodgy sensor???
I had a load of work done on my brakes (new discs and pads) and the day after I picked it up the ABS light stayed on for a few minutes, flickered, then went out. Since then it has behaved as expected! I put it down to a bit of dirt or something on the sensor.