A smartphone app combined with hi-tech collars aims to let dog owners tell when Fido is chasing a squirrel, stressed out or just getting a belly rub.