If you see the blue lights in your rear view mirror there are certain things that you should do and certain things you should not do. Firstly, it is very important to remain calm. Do not drive erratically, do not immediately pull over and do not take too long to pull over. Secondly, do not get out of the vehicle. Thirdly, in a calm manner roll down your window and have your license and registration at the ready. If you do the above, you will already be in good stead with the officer or trooper.
If the officer or trooper asks why you think he pulled you over, it is my opinion, that you should not admit any guilt, nor make any excuses (i.e. I am sorry I was speeding, but I am late to pick up my son from soccer practice.)
Be very courteous and professional with the officer or trooper. You do not necessarily need to be robotic, however, and if you feel you can use your personality to garner favor, I would not advise against that.