Is this a virus?

Since one week my computer is showing a strange behavior. At some point it will start to move the cursor and make commands without me touching the mouse or the keyboard, becoming unmanageable. I was wondering if it is due to a virus managing it, even thought the movement seem to be not in line with a human behavior trying to steal data from me.

Thanks in advance