The first step to helping your dog overcome their fear is to identify what is causing it. Is it the noise, the movement, or the smell?
Once you know what is causing your dog's fear, you can start to desensitize them to it. This means exposing them to the vacuum in a controlled environment and rewarding them for staying calm.
Start by turning off the vacuum and letting your dog sniff it. Once they are comfortable with that, you can turn it on for a few seconds.
Gradually increase the amount of time your dog is exposed to the vacuum. You can also try moving the vacuum around so they get used to the different sounds and movements.
It takes time and patience to help your dog overcome their fear of the vacuum. Be consistent with your training and don't give up.
Positive reinforcement is the best way to train your dog. This means rewarding them for good behavior, such as staying calm when they see the vacuum.
Never force your dog to interact with the vacuum if they are scared. This will only make their fear worse.