SlideShare a Scribd company logo
1 of 21
Download to read offline
@L_Tron_CTA: A Friendly Bot with
an Eye on Chicago’s ‘L’
Ben Carls
The Chicago Transit Authority (CTA)
operates the ‘L’ (elevated)
• Overwhelming amount of
data exists for describing
the system
• CTA Twitter account is
still operated by a person
in a control room
• Could we do better?
ATwitter bot sends out timely information
Pulls data from
sources
Analyzes data,
finds what’s
important
Creates sentence
and posts it to
Twitter
Famous examples
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Wealth of structured data exists for the ‘L’
amongst other things in Chicago
Okay! Okay! Most of this is irrelevant! How do I
quickly find out what actually matters?
What kinds of events impact train travel and are
worth mentioning? Chicago Cubs’ games?
Daily ridership for Addison Stop
(Red), right where the Chicago
Cubs play
Random forest modeling ridership
showed baseball mattered, bot tweets it
Trained on 2011-2013, tested on 2014-2015
Here used day of the week
and day of the year as
features
Random forest modeling ridership
showed baseball mattered, bot tweets it
Trained on 2011-2013, tested on 2014-2015
Here used day of the week,
day of the year, and if there
was a Cubs game that day
as features
‘L’ Tron works 24/7 on an EC2 instance
Find what the
person wants
Compare data
to timetable and
look for delays
Search for other events
(e.g. baseball), compare
to ridership model
Thread 1: Every 5 minutes
Query CTA
server for data
via API
Thread 2: Someone talks to ‘L’ Tron
Look for data
from Thread 1 to
respond with
What should I tweet to my audience?
Find a line delay > 5 minutes?
No
Is there a baseball game?
Yes
No
Does the system look
okay?
No
Yes
Yes
Tweet it out!
Tweet it out!
Tweet it out!
Tweet it out!
Following from Thread 1:
Language generation starts with a large,
human-written corpus
"[route_name] line trains on their way toward [destination] are running roughly [delay_minutes] [minute_s]
late.”
"[route_name] line trains on their way toward [destination] have fallen roughly [delay_minutes] [minute_s]
behind schedule.”
"[route_name] line trains on their way to [destination] are running roughly [delay_minutes] [minute_s]
late.”
"[destination] headed [route_name] line trains have fallen roughly [delay_minutes] [minute_s] behind
schedule.”
"[destination] bound [route_name] line trains are running roughly [delay_minutes] [minute_s] behind
schedule.”
"[destination] bound [route_name] line trains have fallen roughly [delay_minutes] [minute_s] behind
schedule.”
Each tweet template is categorized for a particular use case
A template is chosen at random and filled
in as needed
"[destination] bound [route name] line
trains are running about
[delay_minutes] [minute_s] behind
schedule."
”O’Hare bound Blue line trains are
running about 12 minutes behind
schedule."
If a delay of 12 minutes is found on the O’Hare bound Blue
line, those details are inserted into the template
‘L’ Tron - CTA is alive and tweeting!
I lived here
I worked here
High-resolution imaging detectors for particles and 3D data visualizations
Looking for the Higgs boson at Fermilab

More Related Content

Similar to Ben carls l_tron

Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, RedditMaking Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Lucidworks
 

Similar to Ben carls l_tron (16)

PivotBillions: Analyzing 1.5 Billion Rows of NYC Taxi Data
PivotBillions: Analyzing 1.5 Billion Rows of NYC Taxi DataPivotBillions: Analyzing 1.5 Billion Rows of NYC Taxi Data
PivotBillions: Analyzing 1.5 Billion Rows of NYC Taxi Data
 
Sabr
SabrSabr
Sabr
 
My Favourite Food Essay In French
My Favourite Food Essay In FrenchMy Favourite Food Essay In French
My Favourite Food Essay In French
 
Toward a parliamentary domain model
Toward a parliamentary domain modelToward a parliamentary domain model
Toward a parliamentary domain model
 
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, RedditMaking Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
Making Reddit Search Relevant and Scalable - Anupama Joshi & Jerry Bao, Reddit
 
IJCAI 2015 Presentation: Did you know?- Mining Interesting Trivia for Entitie...
IJCAI 2015 Presentation: Did you know?- Mining Interesting Trivia for Entitie...IJCAI 2015 Presentation: Did you know?- Mining Interesting Trivia for Entitie...
IJCAI 2015 Presentation: Did you know?- Mining Interesting Trivia for Entitie...
 
Keeping Governments Accountable with Open Data Science: Extracting and Analyz...
Keeping Governments Accountable with Open Data Science: Extracting and Analyz...Keeping Governments Accountable with Open Data Science: Extracting and Analyz...
Keeping Governments Accountable with Open Data Science: Extracting and Analyz...
 
Machine-In-The-Loop for Knowledge Discovery
Machine-In-The-Loop for Knowledge DiscoveryMachine-In-The-Loop for Knowledge Discovery
Machine-In-The-Loop for Knowledge Discovery
 
Generating Storylines (Literature Survey)
Generating Storylines (Literature Survey)Generating Storylines (Literature Survey)
Generating Storylines (Literature Survey)
 
Writing Paper Pdf. Free Stationery And Writing Pap
Writing Paper Pdf. Free Stationery And Writing PapWriting Paper Pdf. Free Stationery And Writing Pap
Writing Paper Pdf. Free Stationery And Writing Pap
 
You Don’t Want to Build a Serverless Monolith - Danilo Poccia - Codemotion Am...
You Don’t Want to Build a Serverless Monolith - Danilo Poccia - Codemotion Am...You Don’t Want to Build a Serverless Monolith - Danilo Poccia - Codemotion Am...
You Don’t Want to Build a Serverless Monolith - Danilo Poccia - Codemotion Am...
 
Mashups and data portals where next? (spatial@gov)
Mashups and data portals where next? (spatial@gov)Mashups and data portals where next? (spatial@gov)
Mashups and data portals where next? (spatial@gov)
 
How To Write The Best College Essay Ever - Alexwrirter.We
How To Write The Best College Essay Ever - Alexwrirter.WeHow To Write The Best College Essay Ever - Alexwrirter.We
How To Write The Best College Essay Ever - Alexwrirter.We
 
Module 9: Natural Language Processing Part 2
Module 9:  Natural Language Processing Part 2Module 9:  Natural Language Processing Part 2
Module 9: Natural Language Processing Part 2
 
Web technology: Web search
Web technology: Web searchWeb technology: Web search
Web technology: Web search
 
High School Life Vs. College Life Compare And Contra
High School Life Vs. College Life Compare And ContraHigh School Life Vs. College Life Compare And Contra
High School Life Vs. College Life Compare And Contra
 

Recently uploaded

原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
pwgnohujw
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
siskavia95
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
ppy8zfkfm
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
yulianti213969
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
dq9vz1isj
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 

Recently uploaded (20)

原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024Northern New England Tableau User Group (TUG) May 2024
Northern New England Tableau User Group (TUG) May 2024
 
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
Identify Rules that Predict Patient’s Heart Disease - An Application of Decis...
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital AgeCredit Card Fraud Detection: Safeguarding Transactions in the Digital Age
Credit Card Fraud Detection: Safeguarding Transactions in the Digital Age
 
Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(WashU毕业证书)圣路易斯华盛顿大学毕业证成绩单本科硕士学位证留信学历认证
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 

Ben carls l_tron

  • 1. @L_Tron_CTA: A Friendly Bot with an Eye on Chicago’s ‘L’ Ben Carls
  • 2. The Chicago Transit Authority (CTA) operates the ‘L’ (elevated) • Overwhelming amount of data exists for describing the system • CTA Twitter account is still operated by a person in a control room • Could we do better?
  • 3. ATwitter bot sends out timely information Pulls data from sources Analyzes data, finds what’s important Creates sentence and posts it to Twitter
  • 5. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 6. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 7. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 8. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 9. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 10. Wealth of structured data exists for the ‘L’ amongst other things in Chicago
  • 11. Wealth of structured data exists for the ‘L’ amongst other things in Chicago Okay! Okay! Most of this is irrelevant! How do I quickly find out what actually matters?
  • 12. What kinds of events impact train travel and are worth mentioning? Chicago Cubs’ games? Daily ridership for Addison Stop (Red), right where the Chicago Cubs play
  • 13. Random forest modeling ridership showed baseball mattered, bot tweets it Trained on 2011-2013, tested on 2014-2015 Here used day of the week and day of the year as features
  • 14. Random forest modeling ridership showed baseball mattered, bot tweets it Trained on 2011-2013, tested on 2014-2015 Here used day of the week, day of the year, and if there was a Cubs game that day as features
  • 15. ‘L’ Tron works 24/7 on an EC2 instance Find what the person wants Compare data to timetable and look for delays Search for other events (e.g. baseball), compare to ridership model Thread 1: Every 5 minutes Query CTA server for data via API Thread 2: Someone talks to ‘L’ Tron Look for data from Thread 1 to respond with
  • 16. What should I tweet to my audience? Find a line delay > 5 minutes? No Is there a baseball game? Yes No Does the system look okay? No Yes Yes Tweet it out! Tweet it out! Tweet it out! Tweet it out! Following from Thread 1:
  • 17. Language generation starts with a large, human-written corpus "[route_name] line trains on their way toward [destination] are running roughly [delay_minutes] [minute_s] late.” "[route_name] line trains on their way toward [destination] have fallen roughly [delay_minutes] [minute_s] behind schedule.” "[route_name] line trains on their way to [destination] are running roughly [delay_minutes] [minute_s] late.” "[destination] headed [route_name] line trains have fallen roughly [delay_minutes] [minute_s] behind schedule.” "[destination] bound [route_name] line trains are running roughly [delay_minutes] [minute_s] behind schedule.” "[destination] bound [route_name] line trains have fallen roughly [delay_minutes] [minute_s] behind schedule.” Each tweet template is categorized for a particular use case
  • 18. A template is chosen at random and filled in as needed "[destination] bound [route name] line trains are running about [delay_minutes] [minute_s] behind schedule." ”O’Hare bound Blue line trains are running about 12 minutes behind schedule." If a delay of 12 minutes is found on the O’Hare bound Blue line, those details are inserted into the template
  • 19. ‘L’ Tron - CTA is alive and tweeting!
  • 20. I lived here I worked here
  • 21. High-resolution imaging detectors for particles and 3D data visualizations Looking for the Higgs boson at Fermilab