I agree with LBTC about the separation anxiety...

My dog was like that.. but I personally think she got mad and wanted revenge for leaving her.. cuz she'd only do it at certain times. Prob in her mind I deserved it