touch screen problem

my touchscreen freezes every few minutes. sometimes it works after a few swipes or taps. if i stop my ride, turn the edge off and on again it works again for a while. is this a software problem or can i fix this?