If you’ve ever felt like your dog knows when you’re having a bad day, new research suggests you may be right.