I would try to start it up in "Safe Mode" and see if it happens while in there. While you can't run most apps in there, it will help you determine if it is hardware or not. If it doesn't happen in "Safe Mode" then it is likely not hardware but software. I would then check the device for bad apps, virus, malware, etc.
To get into "Safe Mode" please do the following.
1. First turn off the tablet.
2. Next press and hold "Power" until you see the manufacturers logo on the screen, then release the power button.
3. "Quickly" press "Volume Down" and hold it for few seconds until you see the message "Safe mode: ON" or something similar.
4. If you wanted disable it, simply repeat the steps above, and you should see "Safe Mode: OFF" rather...