I wouldn't use anything that could be grabbed by a passing vehicle's passenger. It would need to be a breakaway type, but sturdy enough to withstand the usual wind and jolts while riding.
On the other hand, a proximity detector that launched Silly String or orange dye packs on brush-bys... maybe.