is the pedal hitting anything?, also check the gears and the seatpost, if it goes away when you stand up and pedal it must be something to do with the seatpost.
also try pedaling standing up if it still does it then you can safely say it is not the seatpost