Husband mood swings

My husband here for the past two years has had major mood swings anything that I dont do perfect for him now he gets mad goes to our room and lays on the bed everytime now we dont ever yell at each ither or call each other names and our kids never know if we are mad at each other but these mood swings are putting me in bad moods and I am normally a very happy person one of his mood swings for example we got a new truck and he wanted to to detail it well I live in texas I did not want to go out side and take seats and all out to detail this truck well he got mad went to the room and didnt speak to me the rest of the day I have tried talking to him about it and everything any one have any advice?