Dogs often deny their owners because they don't spend enough time with them. They need to spend more time with them, interact with them and feed them, so that they will think you are the master.
The owner can also give the dog a name and feed it while calling its name every time. When walking or playing with dogs, you can often call their names, which will enhance your feelings.
If the owner often beats and scolds the dog, causing it to be afraid of the owner, then the dog will disown the owner. Therefore, the owner should correct the way of educating the dog, stop treating it violently and cultivate more feelings with it.