Why Machine Learning is Important to the City of Boston
In a more and more data-driven world, public organisms are no strangers to the trends of Big Data, Artificial Intelligence and Machine Learning, nor are they immune to the challenges these trends pose.
The use of machine learning is valuable to local governments because it allows them to tackle old problems in new, more efficient ways, driving operational efficiencies through process improvement, while simultaneously unveiling the potential to tackle problems that up until now were not on the table. The first category, old problems new solutions, tends to correspond to automation without learning (e.g. report pipelines), while the latter category, new frontiers, involves learning from data (e.g. traffic prediction through video processing).  Where can machine learning be applied to municipal governance? The potential seems unlimited: a recent McKinsey Global Institute study on Smart Cities categorizes 5 potential fields of application of machine learning in local governments: Energy & Waste Management, Security, Healthcare, Economic Development, and Mobility. The study estimates that unleashing the potential of machine learning in cities could lead to an improvement of 10-30% in some key quality-of-life metrics (e.g. commute time saved, emissions averted, or crime incidents prevented). 
What the City of Boston is Doing to Incorporate Machine Learning
Mayor Walsh mandated the creation of the Citywide Analytics Team in 2015 to “bring the power of data to everything that we do […] Soon, you won’t have to fumble for quarters to pay the parking meter”.  The City has come a long way since, creating the position of Chief Data Officer and growing the team from the initial 6 members to 18 by the end of 2017 . The Analytics Team maintains an open data portal that provides public access to more than 140 city datasets and regularly sponsors “hackathons”, inviting collaboration from the academic community as well as the general public in addressing city problems in innovative ways. 
Initial efforts were focused on structuring the different data available in the city and the launch of City Score, a balance scorecard that aims at exhaustively providing KPIs for city performance.  While none of these efforts are machine-learning-specific activities, both the availability of the data and its correct understanding are critical tasks that precede any successful machine learning implementation, and Boston began taking advantage of that data availability.
Currently, Citywide Analytics continues to work with the different departments to identify areas where to apply machine learning techniques to drive efficiencies and ultimately improve quality of life in the city. A concrete example of an early machine learning project that saw immediate and measurable gains for the city arose from addressing the challenge of food-borne disease.
Health Inspections in Boston: a Case Study
Traditionally, restaurant health inspections have been carried out essentially at random, resulting in wasted time at compliant restaurants and potentially missed public health risks that endanger constituents. The City of Boston partnered with DrivenData to address inspections more intelligently by using machine learning to predict where violations were most likely to occur, using data from previous violations, constituent complaints, and reviews on Yelp. The result, RHIPA (the Risk-based Health Inspection Prediction Algorithm), allowed inspectors to catch 25% more health code violations than before, as of 2017. 
Figure 1: Boston’s health inspection hotspots 
Challenges and Recommendations
Apart from technical problems such as the construction and maintenance of big data lakes that enable the City’s data scientists to carry on their analysis, management must focus their efforts in overcoming two key challenges.
First, the Citywide Analytics team currently works on a reactive, bottom-up manner to serve city departments on a quasi-first-come first-serve basis. This approach might be preventing the city from developing a top-down strategy, which would involve an exhaustive pipeline of projects, appropriately prioritized based on city needs and potential impact.
Second, talent retention appears to be a big problem the city must address. Andrew Thierrault, former Chief Data Officer, left the city government to join Facebook as a Data Science Manager in the Spring of 2018 . Jascha Franklin-Hodge, former Chief Information Officer who launched the City Analytics team in 2015 also left the organization earlier in 2018 . As of November 2018, both positions are filled with interim officers, suggesting the City is struggling to find replacements. 27% of team members listed in the 2017 Year Report no longer list Citywide Analytics as their current employer on LinkedIn.
How can Citywide Analytics transition from the current reactive-to-demand model to an operating model aligned with a compelling analytics vision that is consistent with the city’s strategy? How does the 4-year horizon that constrains City leaders impact the development of a new operating model? Can the City attract and retain the best talent or should it be resigned to seeing their best people leave to big tech companies?
 A. Fedyk, “How to Tell If Machine Learning Can Solve Your Business Problem,” Harvard Business Review, 25 November 2016.
 McKinsey Global Institute, “Smart Cities: Digital Solutions for a More Livable Future,” McKinsey & Company, 2018.
 M. M. J. Walsh, State of the City Address, January 2015, Boston, 2015.
 Citywide Analytics Team, “2017 Year in Review,” City of Boston, Boston, 2017.
 “Analyze Boston,” [Online]. Available: https://data.boston.gov/about. [Accessed 13 November 2018].
 A. Therriault, Boston’s Citywide Analytics Team, Boston: Social Innovations Journal, 2016. Available: http://socialinnovationsjournal.org/teline-v-videos/51-videos/2265-andrew-therriault-boston-s-citywide-analytics-team. [Accessed 13 November 2018].
 Driven Data, “Using Yelp Reviews to Flag Restaurant Health Risks,” Driven Data, [Online]. Available: http://drivendata.co/case-studies/using-yelp-reviews-to-flag-restaurant-health-risks/. [Accessed 12 November 2018].
 Driven Data, “Announcing the Results of Our Keeping It Fresh Competition,” 11 November 2015. [Online]. Available: http://drivendata.co/blog/keeping-it-fresh-results/. [Accessed 13 November 2018].
 C. Wood, “statescoop.com,” 14 May 2018. [Online]. Available: https://statescoop.com/boston-data-chief-andrew-therriault-heads-to-facebook/. [Accessed 11 November 2018].
 C. Wood, “statescoop.com,” 19 December 2017. [Online]. Available: https://statescoop.com/boston-cio-jascha-franklin-hodge-moves-on/. [Accessed 11 November 2018].