Tag Archives: Maher

Data Science: Exploring CoffeeReview.com Top Coffees

Over the past few years, I’ve transitioned my career from government-oriented management consulting to the field of advanced analytics and data science.

 

In general terms, this has required me to climb a significant learning curve in the related areas of computer programming languages and advanced statistical methods. While it has been challenging, the rewards of being able to more effectively and efficiently extract insights from various types of information/data is encouraging.

With the objective of exploring my love of specialty coffee, I chose to practice a few basic data science methods on a relatively well-known specialty coffee review website: coffeereview.com .

The goal was to apply web scraping, text analytics, segmentation, and some visualization techniques to coffee review data in order to explore correlations between price, producer country, roaster, and quality over time.

My colleague and I discussed the objective over Memorial Day weekend and set out on parallel paths to scrape review data from the website. He used a Python script to scrape the website, and I used an R script to do the same. In the end, his Python script achieved a more efficient scrape, producing a column separated variable (.csv) file that could be imported into a statistical computing software package like SPSS or R.

The website we targeted in this scrape was the 21 pages of: http://www.coffeereview.com/highest-rated-coffees/

 

From there, I cleaned up the file (using R packages such as “dplyr”, “stringr” and “sqldf” to get things to a point where we could calculate price per pound amounts and country of origin for most of the coffees reviewed. I was also able to pull down city/state location data for each of the roasters and their websites.

One of my first business questions involved the type of descriptive language used to review the website’s top-rated coffees. Where there any particular words that we could associate with the best rated coffee out there, according to coffeereview.com?

A relatively straightforward way to investigate that question is to use a Word Cloud to illustrate the words with the highest frequency of mention in individual review comments.

Most frequent words describing top rated coffees.

Most frequent words describing top rated coffees.

Clearly, if you want to appear to know the jargon for communicating your delight about a quality cup of java, you should say something like, “This coffee’s intense aroma of flowers, baker’s chocolate and fruit is only bested by its complex, rich flavor with tart tinges of acidity and a balanced, silky, syrupy, honey finish…”. Okay…so that sounds ridiculous…but you get the point.

Exploring the data

What is the range of ratings found on the top rated page?

The maximum rating any single coffee receives on this page (of highest rated coffees) is 97, while the minimum is 94. There isn’t a lot of variance. Most of the top rated coffees are rated 94, a third are 95, and the remaining15 percent are either 96 or 97. We will revisit this data later.

Distribution of Top Rated Coffees from CoffeeReview.com

Distribution of Top Rated Coffees from CoffeeReview.com

What years of ratings do we have the most robust data for in order to do more specific analysis on our variables?

We decided to drop all years prior to 2010 (which had 29 coffees reviewed that year).

year count
2014 70
2013 58
2012 40
2011 39
2015 24
2010 20
Which coffee roasters were the most frequently reviewed and top rated by coffeereview.com between 2010 and roughly six months into 2015?

JBC Coffee Roasters from Madison, Wisconsin was the favorite by far in terms of its 26 reviews on the website in the time span specified. Followed by Temple Coffee and Tea in Sacramento, CA (20) and PT’s Coffee Roasting Company in Topeka, Kansas (13). This was a surprise to me, as I have never sampled ANY coffee from these roasters and feel like I have been missing out. In order to show the table of roasters, i used the combination of R packages “RGraphics” and “gridExtra” to save some nice incremental (sets of 15) graphics.

roasters_1_15

roasters_16_30 roasters_31_45 roasters_46_60 roasters_61_73

A quick visualization of the top rated coffees by year, price per pound and origin country shows some semi-distinct segments within the data based on price alone. This led me to ponder if we could use a clustering algorithm (such as k-means using dummy variables for each country, price per pound, and rating) in order to more clearly segment particular coffees by segment. Instead of using R for this exploration, I exported the data into a .csv and imported it into SPSS to run the analysis there.

Price per pound by origin country and year ($US).

Price per pound by origin country and year ($US). United States = Hawai’i.

A five-way cluster solution seemed the most suitable for segmenting the data in a way that illustrated differences across price and producer country.

Price unreasonably drove the segmentation, as seen in this graphic.

Price unreasonably drove the segmentation, as seen in this graphic.

The segments broke out into groupings containing the following number of coffee reviews each:

Segment                       Count               $US/lb

1                                       174                   $21
2                                       8                      $121
3                                       35                    $44
4                                       1                       $243
5                                       20                    $84

Segment 1: No Geisha or Hawaiian Coffees, Espresso Blends
Segment 2: Panama and Colombian Geishas
Segment 3: Mix of Geishas, Ethiopian, and Hawaiian
Segment 4: Semeon Abay Ethiopia
Segment 5: Mid-priced Geisha, Hawaiian and Ethiopian

Interestingly, a few roasters exhibited a bit of dispersion across the segments due to the variety of awesome tasting coffees they had reviewed. Those roasters included:

PT’s Coffee Roasting Co.

5 (Seg 1)
3 (Seg 2)
3 (Seg 3)
2 were (Seg 5)

Barrington Coffee Roasting Co.

3 were (Seg 1)
4 were (Seg 3)
1 was (Seg 4)
3 were (Seg 5)

Bird Rock Coffee Roasters

6 were (Seg 1)
1 was (Seg 2)
3 were (Seg 3)
1 was (Seg 5)

Paradise Roasters

6 were (Seg 1)
1 was (Seg 2)
1 was (Seg 3)
2 were (Seg 5)

After exploring the data in this way, I wondered if 1) my approach to segmentation was appropriate 2) what the comments from these segments looked like comparatively. To answer the first question: no, but that will be the topic of my next blog post. To answer the second, let’s explore some word clouds below.

Word Cloud: Segment 1

Word Cloud: Segment 1

Word Cloud: Segment 2

Word Cloud: Segment 2

Word Cloud: Segment 3

Word Cloud: Segment 3

Word Cloud: Segment 4

Word Cloud: Segment 4

Word Cloud: Segment 5

Word Cloud: Segment 5

 

Perhaps clustering by cupping notes is a better way to segment groups…stay tuned.

Advertisement

Buzz: Starbucks Unveils High-End Roastery-Tasting Room Concept 

 

Starbucks Reserve.

Using a barrage of adjectives like super-premium, unique, reserve and small-lot, Starbucks has just announced details regarding its new “premium coffee experience” store concept, as well as its flagship “small-batch” Roastery and Tasting Room, coming to Seattle’s Capitol Hill this winter.

The company says the new roastery will be a kind of interactive coffee museum and tasting room designed to showcase the company’s “small-lot” Reserve line of coffees. It will also be the flagship for Starbucks’ new store model, which will occupy some 100 locations in strategic markets throughout the globe over the next five years.

(related: Starbucks Piloting Mobile Trucks at Three U.S. College Campuses)

Adjectives abound, but if one phrase is an elephant in this particular room, it is “Third Wave,” one many around the high-end retail industry, including this blog, has avoided using for years. But it seems particularly apt here, as the company that embodies “Second Wave”-ness rolls out its new high-end, coffee-quality-focused brand.

Starbucks itself describes the new store concept as is a kind of higher rung in “customer experience segmentation,” part of the company’s retail “evolution.” Starbucks CEO Howard Schultz went so far as to describe the new roastery and tasting room as something that will revolutionize all of specialty coffee.

(related: Drama Unfolds with the Opening of Williamsburg’s First Starbucks)

“Everything we have created and learned about coffee has led us to this moment,” he said. “The Starbucks Reserve Roastery and Tasting room is a multi-sensory experience that will transform the future of specialty coffee. We plan to take this super premium experience to cities around the world, elevating the Starbucks experience not only through these stores but across our entire business.”

Here’s more from Starbucks on the new Seattle roastery:

A first-of-its-kind union for Starbucks of coffee theatre and manufacturing, this iconic Seattle destination will allow Starbucks to double its small-batch roasting capacity and grow its Starbucks Reserve® coffee presence from 800 to 1,500 stores worldwide, by the end of FY15. More than two years in development, this unprecedented experience will allow customers to engage with Starbucks passion for coffee in a 15,000 square-foot interactive retail environment devoted to beverage innovation and excellence.

In addition to the approximately 100 new premium stores, Starbucks is also unveiling new smaller-footprint and drive-through “Express” store models, where there will be a focus on quick service and developing Starbucks’ mobile ordering platform. These stores, the company says, will “address the increase in urbanization and decentralization of retail.”

(related: Cupping at Starbucks: The Sound of Silence (and Slurps)

Including its traditional retail stores, its premium stores and its express stores, Starbucks is on track to open some 1,550 outlets globally in 2014, and plans to open 1,600 in 2015, including 300 net new locations in the U.S.

Source: Daily Coffee News, http://dailycoffeenews.com/2014/09/05/starbucks-unveils-new-dont-call-it-third-wave-concept-plans-seattle-roastery-opening/

Cafe Hounding: Echo Coffee

Echo Coffee
2902 N 68th St, Ste 135
Scottsdale, AZ 85251
Phone: (480) 422 4081

http://www.echocoffee.com
Groovy spot in Phoenix suburbs.

Kris visited this spot in December 2011 and noted that they roast coffee on site every other day in small batches.  Echo, owned by Steve Belt, opened in mid-2010 by the inspired graduate of Tempe, Arizona’s major university, Arizona State University.

Steve chatted briefly with Kris while roasting beans and briefly mentioned his origins from Portland, Oregon.  With a modern, high-ceiling, loft-like layout and a good selection of pastries – Echo is a good place to set up shop, use the free wifi, and get on with life over a delicious cup of Papua New Guinea, Cameroon, and Kenyan coffees sourced from a local importer who claims the beans are “carbon neutral.”

Make sure to check this place out if you’re stopping through!

– Cafe Hound

Cafe Hounding: Cafe Samba – Bogota, Colombia

Cafe Samba
Bogotá, Colombia
Cra 7 # 58-48
Tel: 348 1697

Unfortunately, I enjoyed Café Samba so much that I’ve barely even took a photograph of the place, though having frequented it on many occasions spanning from 2006 to 2010.

It is difficult to state what the best part of the lounge/cafe/bar located on the Septima is: the coffee products, natural juices, and cocktails are simply the best in that part of Bogotá; the moderately sized food selection is equally impressive in quality. They make the most of what they have when it comes to ambiance of the place (lounge feel even without the chic lounge budget of the Chico and Parque 93 neighborhoods). Service is superior for the price range and the couch located at the front of the shop always seemed to be reserved for me. Also, the clientele is an attractive youngish blend of professionals and students.

My favorite item on their menu would be a fresh blended non-alcoholic natural joice cocktail of Maracuya, Mango and Orange Juice mix. The quality of their coffee is above average for a country that exports the majority of their high quality beans.  They use a high quality vintage Elektra espresso machine and decent coffee roasted in country.  I imagine they could improve their coffee quality if they sourced their coffee from a better roaster.

Musically, this café makes an impression on locals and visitors alike considering the high quality sound system wired from wall-to-wall and mounted in the ceiling. The “DJ” tends to be whatever barman  has a free moment. Luckily, all have terrific taste when it comes to selecting a good playlist.

View of Bogota afternoon from front of Cafe Samba

If you make it to Colombia, Cafe Samba is well worth a stop along the way.

Mushrooms, Aromatica Tea, Fruit Drinks in 2010

– Maher Hound

Cafe Hounding: Azi’s Cafe – Washington, D.C.

1336 Ninth St. NW
Washington, D.C.
20001-4208
http://aziscafe.com/index.html

http://maps.google.com/maps/place?client=safari&rls=en&oe=UTF-8&um=1&ie=UTF-8&q=washington+dc+nw+1336+9+st&fb=1&gl=us&hnear=Washington+D.C.,+DC&cid=12196182154941226661

Azi’s Café is a wonderful place to grab a coffee and a meal in one of DC’s most diverse and dynamic neighborhoods – albeit not very commercial.  The charming owner, Azeb Desta (nicknamed Azi), hails from coffee’s disputed birthplace in the Horn of Africa.  Before opening Azi’s in 2005 she worked for eleven years in food and beverage with Ritz-Carlton hotels.

Her location at the corner of 9th and O streets is smack in the middle of a rapidly changing area of the Shaw area of DC, where an improving standard of living and an aversion to the normal “Starbucks” options appear to partially drive traffic to Azi’s Cafe. Perhaps more important, Azeb and her staff are some of the warmest and most dedicated employees in the business and their service clearly helps with customer loyalty. Furthermore, for the time being, there is very little direct competition in the immediate area.

The menu of light food fare boasts decent pastry, soup, salad and panini (the roasted turkey breast, tomato, cheddar, and garlic spread goes for $6.50) options.  Personally, I often find myself succumbing to the flavorful biscotti displayed in large glass containers in front of the cashier – it perfectly compliments a warm frothy cappuccino on a cold day.

Generally, the coffee is above average for Washington and I’ve grown fond of their cappuccinos.  They use Illy coffee and have a stand of retail Illy for sale proudly exhibited in their front window.

Having sampled an Illy espresso across town at the Illy shop at the Renaissance M Street Hotel, I was excited to see how Azi’s compared.  The coffee itself was definitely up to par, bold and complex from start to finish.  The cup they used in my case was a designer Illy cup – of my choosing – that was plenty warm from sitting atop the French-made UNIC machine. The quantity of crema was less than sufficient, though, and I would have to wager the guess that the machine could be the problem. I’ll undoubtedly try another espresso here before making a final judgment on the quality of their coffee and ability to make drinks.  It also appears that they keep a pretty steady line of customers asking for both specialty drinks and regular cups of coffee during this time of year.

I’ve never visited this locale without a pleasant and eclectic mix of music weaving through the small locale.  The southern wall is littered with a few electric sockets for those who tote laptops and have a use for their free wi-fi. Others may choose between a few tables in the middle of the shop and a couple two-seater tables squeezed in between columns with plenty of natural light on the northside of the shop (sorry, no electric plugs on this side of the shop).

Whether for a hot bowl of soup, a freshly made salad, a steamy latte or a shot of espresso – Azi’s is quickly becoming an institution in the Shaw neighborhood and – with over five years of business in this locale – Azeb Desta seems satisfied that things are going in the right direction.  Although, she thinks that the last five years have gone by quickly, and that both the neighborhood and the clientele have changed equally quickly.  Azi’s Café is one of very few businesses thriving in this section of NW and it will be interesting to see how much/little she changes in the next five years in order to maintain a successful enterprise.

Café Hound will undoubtedly continue to frequent her shop and wishes her the best in growing her business.