Skip Navigation
Megan Garber

Megan Garber - Megan Garber is a staff writer at The Atlantic. She was formerly an assistant editor at the Nieman Journalism Lab, where she wrote about innovations in the media.

Ranking the Members of the U.S. Senate (According to Their Smiles)

By Megan Garber
Jan 25 2012, 7:45 AM ET Comment

Al Franken is the saddest senator, science says.

senate_smiles_full.png

We judge our elected representatives on lots of things: voting record, message consistency, rhetorical ability, charisma. Given all the pageantry of politics, though, it's sort of shocking that it hasn't occurred to us to judge them on the thing that pretty well sums up everything else: their facial expressions.

Well, okay, maybe that's not the best way to judge them. But it's a funny way. And, courtesy of mandatory congressional portraits and some open APIs, we now have a tool to do it. Dan Nguyen, a developer/journalist at ProPublica, made use of Sunlight Labs' Congress API, The New York Times' Congress API, and Face.com's facial detection algorithm to gather senators' images; to size the images to consistency; to break down the images according to "face coordinates"; and then to use those coordinates to determine the relative smiliness of each senator's photo. 

In particular, Nguyen took advantage of faces.detect, Face.com's facial recognition feature, which measures proportionality within images and identifies "shapes proportional to the average human face and containing such inner shapes as eyes, a nose, and mouth in the expected places." 

Thus geometricized, an image breaks down, in part, to something like this:

senate_smile_api.png

The Face.com API, crucially for Nguyen's analysis, also returns tags that include, in addition to geometric information about the faces in question, attributes concerning those faces -- including "gender, is wearing glasses, and is smiling." From there, Nguyen was able to rank the senators on a scale of Frown to Upside-Down.  

The results?


senate_smiles_smiley.png

And: 

senate_smiles_ambig.png

And: 

senate_smiles_unsmile.png

Aw. Al Franken. 

The project, its obvious and tremendous civic significance aside, is actually, Nguyen says, a teaching tool, a fun way of explaining and experimenting with the Ruby programming language. But it's also kind of hilariously revealing. (See: "Lieberman, Joe.") And, more to the point, it's a good reminder of the fantastic things that can be done when you combine open APIs with a healthy dose of programming knowledge and an even healthier dose of creativity.

All images: Dan Nguyen, using images provided by Sunlight Labs' Congress API.



Presented by

More at The Atlantic

Sleigh Bells' Positive Rock For Sleigh Bells, Style Is the Point
GOP Debate Preview: Much at Stake in Arizona What's at Stake in Tonight's GOP Debate
False Recovery 2.0: It's Beginning to Look a Lot Like 2011 False Recovery 2.0: It's Beginning to Look a Lot Like 2011
The Future of 'Glee': Reasons for Hope, Reasons for Dread What's Next For 'Glee'?
That Was Not the GOP Debate Rick Santorum Needed Santorum's Unhappy Night in Mesa

Join the Discussion

After you comment, click Post. If you’re not already logged in you will be asked to log in or register.
blog comments powered by Disqus
Special Report
The Civil War National Portrait Gallery The Civil War
A 150th-anniversary commemorative issue, with Atlantic work by Mark Twain, Harriet Beecher Stowe, Frederick Douglass, and others. Read more ›
View All Correspondents

The Biggest Story in Photos

More From Carnival 2012

Feb 22, 2012

Subscribe Now

SAVE 59%! 10 issues JUST $2.45 PER COPY

Facebook

Newsletters

Sign up to receive our free newsletters

(sample)

(sample)

(sample)

(sample)