3. Seeking attention
If you're avoiding your dog for a long time, they might Resort to excessive barking to get your attention. You might see the same behavior even when you're yelling at your dog to be quiet. So, make sure that you give the quality time of your day's schedule to your dog so that they do not Resort to barking, simply to get your attention.
In this process, it will be difficult for you to be quiet and wait for the dog to learn because they might start barking even harder to get your attention. This is known as extinction burst, and it takes time for them to learn the lesson and improve their behavior. So, be patient, and if needed, you can even use a good set of ear plugs so that your work isn't disturbed entirely.
It is a fact that dogs start barking excessively when they are overly excited, and they wish to express their enthusiasm. In this case, it will be difficult for you to train them with regards to self-control behavior but that is important, and your dog should learn the same. Rewarding works in this case but do not be entirely dependent on it because if it does not work, things can turn out to be even worse for you.