smartchicago / foodborne Goto Github PK
View Code? Open in Web Editor NEWManages tweets about food poisoning in Chicago and presents Open311 form for reporting incidents.
Home Page: http://foodborne.smartchicagoapps.org/
Manages tweets about food poisoning in Chicago and presents Open311 form for reporting incidents.
Home Page: http://foodborne.smartchicagoapps.org/
This is the golden spike moment.
Foodborne Blog is here: https://foodbornechicago.wordpress.com
Comment on Rails code:
Right now, the Submission model refers to a tweet_id, but does not have a true ActiveRecord relationship. At some point, we'll want to reconcile that.
Events: landing, start form, complete form
Conversion = complete form
An important component of this is to set a tracking code in the URL that is tweeted to the user, so that each has a unique ID.
I don't think it's a classifier or mongo issue. I worked with Joe to look at this tweet...
tweet.id_str:"334866148690632704"
RT @ChurrosNRainbws: I have food poisoning &My dad took apples and caramel ( my favorite) and started rubbing it in my face saying "haha look what I got" -.-
by user @Stephanaaayyy
It is labeled as "not a food poisoning tweet" in mongo. If I cut and paste that text into my classifier service, it is also labeled as "not a food poisoning tweet".
Here are some possible improvements to the /admin screen
-- Make the "Screen name" field of the admin tool, clickable to the user's Twitter page, opening in a new window
-- Display the user's Twitter short bio along with their screen name. This can be a quick piece of info to help us decide whether to tweet at the person
-- Create a view for Replied=Yes
-- Allow for the Bulk action of "Archive" rather than "Delete", so that we can view
-- List count for replies
We don't reach anybody, the City does. Should change text to "How can the City reach you?
Also change "To let you know when the City responds, we need your email. No spam, promise."
The City requires an email address for an possible followup.
Need correction in the sentence from the "About" section (3rd Paragraph, 1st Sentence) to read as follows:
"The CDPH Food Protection Division fielded 1859 complaints in 2013, leading to 174 restaurant investigations for suspected food poisoning per year."
Identify each Administrator to the Tweets they @replied to.
In Patterns, we currently have profiles building for each participant.
(example: https://patterns.smartchicagoapps.org/people/1356)
After an event takes place, we'd like to scan in documents regarding that individual (for example, their particular waiver form for the event) and have that automatically sync up with their Patterns profile (to continue building their profile in our database).
I scanned in a few waivers into Dropbox, but I'm wondering if there's a way to automatically link each document with the appropriate person in Patterns.
So we can start with a fresh stomach!
Check if Twitter user has appeared in admin interface in last 180 days. If yes, archive tweet / do not show in admin tool.
From our CUTGroup test, testers wanted to see more official representation from the City, 311, and Chicago Department of Public Health on the homepage. We are considering adding those respective logos to the home page under the text. Here is an example image:
@RaedMan - Are these the correct logos to use? Can you please provide the correct logos and the appropriate order of those for this page?
Acquire assigned Service Request Tracking Numbers from 311 corresponding to CDPH inspections resulting from submissions from FoodBorne.
We will now be using https://twitter.com/foodbornechi to manage all tweets.
Need someone at the city to approve our key for production access
On this page: http://foodborne.smartchicagoapps.org/admin/tweets, when selecting multiple items, add more bulk actions. For instance:
Classify: off-topic
Classify: not Chicago
etc
InfoVideo using infographic, voiceover and music on FoodBorneChi for embedding YouTube Video in website: http://youtu.be/RNf9XQ_25Yw or file upload as MOV or MP4.
Seems like they stopped...
From CUTGroup test findings, we want to change the language of the form to add more clarity of the process.
Instead of "How can the City reach you?" title, we should potentially use "How can the Chicago Department of Public Health reach you?"
We also want to replace the description text with "We use the City's Open311 system to directly submit your information to make a request about your food poisoning incident. The Chicago Department of Public Health requires some info for a possible follow-up."
Getting the following from Twitter:
{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}
I've got v1.1 code, I'll get it up and running ASAP (sometime today).
No food poisoning tweets until then
@RaedMan we need your logo in 73 x 73 for Twitter and other places.
It would be good to be able to subscribe to all tweets that end up here: http://food-poison-us-rails.herokuapp.com/admin
This way we could alert a team of people when something pops.
From our recent CUTGroup test, testers felt more comfortable submitting the form after reading information on the Q&A page and seeing the privacy policy. There should be a link to the privacy policy information at the bottom of the form.
From our CUTGroup test of Foodborne Chicago, testers were interested in seeing a tracker of quantitative data as a way of impact of what this site has done.
We are interested in showing the number of food inspections resulting from Foodborne prominently on the homepage.
@RaedMan - can you provide this data?
No new tweets since June 4 in the system. This seems to happen every month or so. If it's a classifier issue where everything is being labeled as junk, please let me know.
Create a pulldown menu in the admin tool (http://foodborne.smartchicagoapps.org/admin/tweets/1672/edit,for instance), with the following phrases:
Sorry to hear you're sick. We can help you by clicking on this link to file a report.
Sorry to hear you're ill. The Chicago health department can help.
Sorry to hear you're ill. The City can help by
That doesn't sound good. Let us help you here:
Where did you eat? Please let us know here:
That doesn't sound good. This might help:
Where did you eat? Report it!:
Place this between the "Text" and "Reply" boxes.
While you're at it, please reduce the height of the text fields on this page to better reflect a Twitter-like interface.
Can time zones listed with tweets classified in app be converted to show local central daylight time?
Unable to mark a participant as having attended an event
https://patterns.smartchicagoapps.org/events/1-cutgroup-2-go2school-tuesday-ux
Able to click "attended" check-box
But when I click "Export this to MailChimp," nothing happens.
No error message is delivered; the settings just won't save.
The same stats displayed at the bottom of our admin page...
Total Tweets Classified: 1896 Tweets out of 11,450,000 Total Tweets (since April 26, 2013)*
Total Tweets Replied To: 249
Total Reports Submitted: 157
If you are feeling super ambitious... maybe a graph of submissions per week over time.
Not a bug in the app, per se, but we ref this email address in the Q&A and it doesn't work.
I'll work with DXO and Kyla to rectify.
c.
Researchers may be interested in our project. Let's develop a schema for the exact types of info we want to collect and publish about the system. Here's a start:
-- Number of tweets reviewed
-- Number of tweets classified (i.e. tweets that hit the Admin tool)
-- Number of tweets replied to in Admin tool
-- Number of Twitter users who clicked/ landed/ took action (related to #5)
Identify each Administrator to the Tweets they @replied to.
Photos for the About section. @RaedMan, @cgansen, @corynissen, et al, feel free to attach yours to a comment in this thread. Mine is courtesy of Mr. @danxoneil.
This is from feedback from our CUTGroup test of Foodborne Chicago. Testers were hesitant to click because they were not familiar with smartchicagoapps.org. By changing the URL to www.foodbornechicago.org this will be aligned with the name of the site.
@srobbin - The URL already exists in the GoDaddy and can be configured with the same credentials.
We've had a few submissions recently where the restaurant address is not in Chicago. Can we grep for "Chicago" in the address and throw a popup or something if it's not there? I don't think we need to block submission if it's not there, just a warning or something.
Need different colors or some way to differentiate the random food poisoning facts from the path representing the foodborne app process.
Tweet graphic: would be nice to have this be more twitter themed. Maybe instead of a text bubble, make it a tweet authoring bubble. Maybe something like this... http://chrisheffer.files.wordpress.com/2012/11/tweet-preview.jpg or the mobile version.
Last line... "feel better since you did a good thing". Maybe include something about helping to prevent the spread of food borne diseases. "feel better that your report will help the spread of food borne diseases" or something. I'm not a good author of this kinda stuff.
Here's some more edits in MS Paint format... http://i.imgur.com/5MQ11eX.jpg Basically, like Raed said, make the arrows bigger and the other things I've mentioned above.
This is looking good.
Please answer this question for insertion into the website's Q & A section. I provided some answers to get the ball rolling.
I’m interested in the technology behind this thing. Can you tell me more?
How do you determine that a tweet came from Chicago?
There’s a number of ways we’ve trained the algorithm to think that a tweet came from Chicago:
The user gave “Chicago” as their location
The tweet was geocoded to a place in Chicago
etc, etc, etc.
In order to get more information about Foodborne when we send outbound tweets, we can use Twitter Cards in order to display an image, text, and a link to the form.
The way the Twitter Cards work is that we add metadata to the site's header, then submit the site for validation to Twitter. We'd probably just need the Summary Card (https://dev.twitter.com/docs/cards/types/summary-card) which is what most of the news websites use.
The example text is here:
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@nytimes">
<meta name="twitter:creator" content="@SarahMaslinNir">
<meta name="twitter:title" content="Parade of Fans for Houston’s Funeral">
<meta name="twitter:description" content="NEWARK - The guest list and parade of limousines with celebrities emerging from them seemed more suited to a red carpet event in Hollywood or New York than than a gritty stretch of Sussex Avenue near the former site of the James M. Baxter Terrace public housing project here.">
<meta name="twitter:image" content="http://graphics8.nytimes.com/images/2012/02/19/us/19whitney-span/19whitney-span-article.jpg">
I imagine we could set up our site like the following:
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@foodbornechi">
<meta name="twitter:creator" content="@foodbornechi">
<meta name="twitter:title" content="Foodborne Chicago">
<meta name="twitter:description" content="If you think you have food poisoning in Chicago, please complete this form. The info will be sent through the Chicago 311 service to the Chicago Department of Public Health so they can take any necessary action including sending a food inspector to that restaurant.">
<meta name="twitter:image" content="https://foodborne.smartchicagoapps.org/assets/logo-ccaea6464d2721e73bde30306ca959a1.png">
If we place that in the header, we should be able to validate it and get it going.
This would be a friendly page for residents ("how to tell if you have food poisoning or just a bad tummy ache") and restaurant people (food safety).
Could link to many resources at CDPH as well: https://webapps.cityofchicago.org/healthinspection/General_Info.jsp
Change favicon to a mini version of the site logo.
Can we include a page on the website with recent press articles relating to the project and include things like Chris's technical blog post, Dan's WBEZ interview, city of Chicago press releases, etc.?
Add the phrase "Follow @foodbornechi" with a link to https://twitter.com/foodbornechi on the top nav, after "Q&A"
From our CUTGroup test, testers wanted to see more official city representation (logos and text) to show that their information would be going to the Chicago Department of Public Health. We want to include the text "Report food poisoning to the Chicago Department of Public Health" in the header. An example image is below:
Would love to see and explain how this process works.
-- Change to 2-column format with the form on the left and the text on the right
-- Add a menu bar with
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.