Maybe, but I think due to the frustration I'm sensing from you in this question (which is quite understandable in situations like this, especially when you don't understand why this is going on), that maybe there is some other underlying problem here.
I can see how frustrating this kind of behaviour must be, but try analysing your reaction & maybe trying a different one. These things take time but if you have the patience you may find he begins to either confide in you about other issues or his behaviour may change with yours.
Patience is definitely needed, don't let him sense any anger in you, try giving him more 'positive attention' wherever you can & be calm when these incidences happen. Over time you should get some feedback or result.