Please do not give negative ratings to perfectly valid ideas from people who are trying to help you! This is especially true when not enough information is supplied to illustrate related circumstances.
I have read about this problem in dog training books. The author talked about this kind of problem, which a number of his clients had with their own dogs. All of them were gone during the day. Being alone all day, the dog gets bored and lonely, and he decides to sleep it out. This way he's awake when his owners are home, even if they are sleeping. It sounds like he needs more attention during the day! Where do you put him to sleep? Is he in a kennel or in a separate room?