Cat Bites

H
So my almost one year old kitty Malone has been biting me, seemingly out of nowhere for the past few months. WHY IS HE DOING THIS? He's my only cat, and he does spend at least 9 hours alone each day because I work, but sometimes he hangs with my dog. But I can usually sense he's going to bite, because his pupils get huge and he starts to stare. I try to show him I'm not interested in him when he's like that, but either way he does it. Sometimes it's light and bearable and sometimes it really hurts! What can I do to get him to stop?