Take advanced classes in math and science, participate in STEM-related extracurricular activities, and consider internships or summer programs in STEM fields.