So hard to know but I have a male terrier mix. He had bladder stones which is common for the terrier breeds, especially males. He needed surgery and afterward he was put on a special Rx diet. It's been 7 years now, he's 17 and doing well, no recurrence. Believe this is diagnosed by both physicial examination and xrays. Then again, it could be behavioral.