How old is he? Is he fixed? Are there females sround? I recently had a similar problem with my little Gunner, 6 months old. He would spend all his time outside, and when he was in, he would stare out the windows, meow, walk/run around the house like he was in stress, try to climb the walls(?), ect.
We took him to get fixed and he stopped, so your cat might be in like, male heat ( dont know what to call it). If thats not your case, try changing his food and spending a lot more time with him. If it keeps going on, take him to the vet for a check up, he might be sick.