Can I conduct independent research and publish a paper on a H4 visa?
If by independent research, you mean that you are not being paid by anyone and are doing it on your time, then in principle it should be allowed regardless of your visa type. Whatever "hobby" you do in your personal free time is your own prerogative.