Stick a note through they're door, the owners might have no idea the poor dog is upset on its own.
If you haven’t noticed a change after a few weeks then contact the SPCA but theres no point wasting their time straight away if it's something the owner could take steps to fix once they know about it.