My elderly dog, Frisco, is 11.3yrs old. He sometimes has a habit of scratching one long scratch on the wall, the bed, a closed door to our guestroom ( dogs are not allowed in there), while he is lying down. He'll keep that up for an hour or so when he does that. He's not being bothered by the pup at the time, sometimes it occurs when we are all sleeping, (no he does not need or want to go out because we tried getting him to go outside and he does not want to), and he is always given his Tramadol for his hip dysplasia/arthritis discomfort. He does have DM. Could it be a touch of dementia or another sign of the DM?