Mehran Sahami
Mehran Sahami is an Iranian-American computer scientist at Stanford and one of the inventors of email spam-filtering technology. In 1998, he coauthored "A Bayesian Approach to Filtering Junk E-Mail" with David Heckerman, Eric Horvitz and Susan Dumais, and he completed a Stanford PhD supervised by Daphne Koller in 1999. After working as a senior research scientist at Google from 2002 to 2007, he joined the Stanford faculty in 2007, served as associate chair for education until 2022, and founded the EAAI symposium on AI education in 2010. With Rob Reich and Jeremy Weinstein, he co-wrote System Error: Where Big Tech Went Wrong and How We Can Reboot, which the three discussed at a Stanford book talk in October 2021. Since 2023, he is Tencent Chair of Stanford's Computer Science Department, and his recent work includes a randomized trial of GPT-4 chat in an online coding class, published at L@S 2025.
- Now at
- Stanford University
- Works
- 132
- Citations
- 12,875
- h-index
- 31
Publication numbers from OpenAlex, as of 22 October 2026.
Timeline
-
1992–1999
A Stanford PhD with Daphne Koller
The Iranian-American computer scientist earns a Bachelor of Science at Stanford in 1992 and a PhD there in 1999, with research supervised by Daphne Koller. His thesis is titled Using Machine Learning to Improve Information Access.
-
July 1998
A Bayesian junk e-mail filter
In July 1998, he coauthors "A Bayesian Approach to Filtering Junk E-Mail" with David Heckerman, Eric Horvitz and Susan Dumais for the AAAI Workshop on Learning for Text Categorization. The paper casts junk-mail filtering as a decision-theoretic problem, pairing probabilistic learning with differential misclassification costs, and argues that the technology is mature enough for deployment.
-
2001–2007
Senior research scientist at Google
After his PhD, he works for several years as a senior engineering manager at Epiphany. From 2001 to 2006, he also teaches in Stanford's computer science department as a lecturer, and from 2002 to 2007 he is a full-time senior research scientist at Google, where Sergey Brin recruits him in the company's start-up days. He is one of the inventors of email spam-filtering technology and holds over 20 patents on web search, recommendation engines in social networks and email spam filtering.
-
2007–2022
Associate chair for education
He joins Stanford's computer science faculty in 2007 and consults part-time at Google until 2010. As associate chair for education from 2007 to 2022, he leads the redesign of the undergraduate curriculum from a large core to a smaller core with specialization tracks, and he teaches the introductory programming course taken by nearly 1,500 students per year.
-
2009–2010
A text-mining book and EAAI
In 2009, he and Ashok Srivastava publish Text Mining: Classification, Clustering, and Applications with Chapman and Hall/CRC, a book on statistical methods for classifying and clustering text. He founds the Symposium on Educational Advances in Artificial Intelligence (EAAI) in 2010 and serves as its first chair; the AAAI-sponsored meeting covers teaching AI and using AI in education.
-
2014–2019
CS2013 and ACM honours
He co-chairs the ACM/IEEE-CS joint task force on Computer Science Curricula 2013, which creates international guidelines for college computer science programs. In 2014, ACM gives him its Presidential Award for his leadership of the three-year effort to produce CS2013, and in 2019 ACM names him a Distinguished Member.
-
2021
Co-writing System Error
He co-writes System Error: Where Big Tech Went Wrong and How We Can Reboot with Stanford political scientists Rob Reich and Jeremy Weinstein. The book explores how the tech industry's fixation on optimization and efficiency erodes privacy and reinforces prejudice, and the three authors discuss it at a Stanford book talk in October 2021.
-
As of October 2026
Chair of Stanford computer science
He becomes chair of Stanford's Computer Science Department in 2023 and is its Tencent Chair, as well as the James and Ellenor Chesebrough Professor and a faculty affiliate of the Institute for Human-Centered Artificial Intelligence (HAI). With Chris Piech, Emma Brunskill and others, he coauthors a randomized controlled trial of GPT-4 chat access for 5,831 students in an online coding class, published at L@S 2025. In the 2026–27 academic year, he teaches Ethics, Public Policy, and Technological Change and Programming Methodology (CS 106A).
Career
- Since 2001Stanford UniversityLecturer, Faculty member
- 2002–2010GoogleSenior research scientist, Consultant
- EpiphanySenior engineering manager
Education
- 1999Stanford UniversityBachelor of Science; PhD
Most-cited works
- Supervised and Unsupervised Discretization of Continuous Features
- Toward optimal feature selectionWith Daphne Koller
- Inductive learning algorithms and representations for text categorizationWith David Heckerman and John C. Platt
- A Bayesian Approach to Filtering Junk E-MailWith David Heckerman and Eric Horvitz
- Deep Knowledge Tracing
Sources and credits
Photo: We have no published photo of Mehran Sahami yet. Send us a free-licensed photo.
- Mehran Sahami - Wikipedia
- A Bayesian Approach to Filtering Junk E-Mail - Microsoft Research
- Mehran Sahami
- Mehran Sahami - Bangalore Literature Festival (BLF)
- James and Ellenor Chesebrough Professor, School of Engineering; Tencent Chair, Computer Science Department, Stanford University | Aspen Ideas
- Mehran Sahami's Profile | Stanford Profiles
- Mehran Sahami - CHM
- Text Mining: Classification, Clustering, and Applications
- SIGCSE Members named 2019 ACM Distinguished Members
- 'System Error, Live!': Stanford experts take on Big Tech in book talk
- About | Computer Science
- The GPT Surprise: Offering Large Language Model Chat in a Massive Coding Class Reduced Engagement but Increased Adopters Exam Performances





