Create a new user, and boot from it. If the problem goes way, it is a software issue related to the particular user you normally use.
If the problem continues, you still need to trouble shoot if it is caused by the OS, a particular software, or hardware related.
Look into the Activity monitor and Console for clues, what is running when the problem happens?
What is the error message that you get?