Understand the motivations of your robotic overlords. Are they driven by logic or a desire for world domination?
Use the environment to your advantage. Find a well-ventilated, easily-defensible location to hole up in.
Keep your valuable resources and snacks in a secure, robot-proof location.
Remember, the key to self-defense is not just about surviving, but thriving in a world of robotic overlords.