During her freshman year, Stephanie Tena, a 16-year-old programmer, was searching the internet for coding programs and came across a website for an organization called AI4All, which runs an artificial-intelligence summer camp for high-schoolers. On the site, a group of girls her age were gathered around an autonomous car in front of the iconic arches of Stanford’s campus. “AI will change the world,” the text read. “Who will change AI?”Tena thought maybe she could. She lives in a trailer park in California’s Salinas Valley; her mom, a Mexican immigrant from Michoacán, picks strawberries in the nearby fields.* Tena has long black hair, a cheery, high-pitched voice, and an unflappably professional bearing: She refers to other students as “my peers” and her mentors as “notable professors,” and she has nailed the language of the scientific method (“My hypothesis was proven incorrect”). She had been coding for a couple of years, ever since attending a programming club at the local community college when she was still in junior high. “I prefer science over history,” she says. The summer after the 8th grade, she had flown to Los Angeles for a coding boot camp run by the supermodel Karlie Kloss, (who had gotten interested in coding after taking a class herself), where she had learned some programming languages and developed a website. She saved up for more than a year, both her allowance and her pay from working at a bubble-tea shop, and bought a new MacBook.But even as Tena applied, and was accepted, to the AI4All program on a full scholarship, she knew little about artificial intelligence. Nor was she fully aware of AI4All’s reason for existing: While women make up only a quarter of computer scientists, their numbers appear to be even smaller in the AI field in particular. While there are no government statistics on the percentage of women in AI, women at the Annual Conference on Neural Information Processing Systems (NIPS), the AI field’s top conference, made up only 17 percent of attendees last year. The percentage of women has risen for the last four years, and NIPS is considering changing the anatomically evocative conference title “in the context of diversity issues,” according to its website.Artificial intelligence is considered the major driver of what’s known as the fourth industrial revolution (after the steam engine, electricity and mass production, and the digital eras), with major tech companies like Google, Facebook, Amazon, and Microsoft realigning around it. Algorithms are driving ever more real-world decisions: helping doctors detect cancer; suggesting who should be released from jail, interviewed for a job, or get a loan. While some high-profile technologists, such as Elon Musk, have expressed fears that AI could become an existential threat to humanity, others in the field have identified a more immediate concern: far from some God-like omniscience, AI can be as biased and fallible as the humans who build it. AI has already made embarrassing mistakes, like when Google Photos auto-tagged pictures of two black people as gorillas earlier this year because the algorithm, it seems, wasn’t good at correctly labeling some non-white faces. An Uber self-driving car killed a pedestrian in Arizona. While women were fighting for full sexual agency in the real world, mostly male roboticists were creating AI-enhanced mostly female sexbots. Bringing people like Stephanie Tena into artificial intelligence is not simply important for the tech industry; in a world increasingly driven by algorithms, it’s important for all of us.In 2014, Fei-Fei Li, an associate professor at Stanford, started brainstorming about how to widen the pipeline with Olga Russakovsky, an advisee at Stanford, who was a research assistant in the AI sub-field known as computer vision, which involves analyzing images. Russakovsky now teaches at Princeton. In 2015, they held the first summer camp on the Stanford campus (then called Stanford Artificial Intelligence Laboratory’s Outreach Summer Program or SAILORS), a two-week immersion program for girls in the basics of artificial intelligence. Eventually, Li, Russakovsky, and Rick Sommer, who runs Stanford’s pre-college summer programs, created a nonprofit with a board of advisors from academia, nonprofits, and the industry, and funding from the likes of Melinda Gates and Autodesk. They hired Tess Posner, who had led initiatives aimed at getting more diversity into the digital economy, to be the CEO. “A lot of the perception of AI is that it’s so hard to do and exclusive and you need to be a genius,” says Posner. “And this program is helping to break that narrative and say this is really for anyone and has applications for helping people.” This summer, AI4All will take place on six campuses in the United States and Canada—some campuses focusing on girls, and others on students of color and low-income students.The first summer, Li recalls, the students lit up when, in the middle of a dense computer-science lecture, she described a project in which she and colleagues had used computer vision to track hand hygiene practices among staff at a Stanford hospital, so as to minimize the spread of infections. “Even though they’re only 14 or 15 years old,” she says, “they’re passionate about making a difference in using whatever they learned.” One alumna went on to work with Li on a project using computer vision to assess a surgeon’s operating skill; the resulting paper won best paper at a top AI conference. Another started a hackathon for female high-school students.The program was in its second summer, last June, when Tena’s sister dropped her off at Stanford. Tena walked into a room of girls who hailed from Silicon Valley, other areas of the country, and as far away as Pakistan. She was one of very few bilingual Spanish speakers, and the only one from the agricultural regions of California. She was a little intimidated when she learned other girls already knew the Java and Python programming languages—“They had a little bit of a head start”—but she plunged into the curriculum. She was inspired that Li had come to the United States at the age of 16 without knowing English and had risen to become a top AI researcher; along with teaching at Stanford, Li is now a Google executive. Tena also loved the finer points of campus life, namely, the tater tots at the university cafeteria. By the end of two weeks, Tena and a group of teammates were programming a mini-autonomous car.Tena left the program with an awareness not only of AI but of the way in which the field threatens to shut out people from communities like hers. “ If there’s a project going on, and the majority of the people in the project are of one race or one gender, you’re not really able to have the perspective of others, so it will be tailored or targeted towards one specific group,” she says. When she returned to Salinas, she started an AI club at the local public junior high. She walks over each Monday afternoon to teach the basics of Java—which, while once so foreign to her, has become the one she’s most skilled at—and about major figures like Alan Turing, and the process for coding websites. The composition of her club, as she calculates it, is more than half girls, and more than three-quarters racial minorities. In her own public high school, she is one of only a few females in the school’s inaugural advanced-placement computer-science class. “I have an A,” she says.0