Using AI to Generate Images for Public Works

globe with an image of a tree growing in the ground and birds flying and mountains in the back all in a primarily green color.

As noted in the last blog post, Can AI Help Fix a Water Main Break?, Artificial Intelligence or AI may eventually be a really useful tool for those of us working in the public works field. In this post, I’m exploring its use as a tool to generate images. This is helpful because many of us are often tasked with either developing reports, newsletters, notices, or presentations. And with copyright laws, it can sometimes be a struggle to find a non-copyrighted image we want to illustrate our writing. Some of us may be talented in creating our own graphics, but that can take a lot of time even if we have those skills.

AI can help solve many of these challenges. It can generate an image very quickly. And if the first one doesn’t quite work, we can quickly generate another one. Or we can generate a few and ask colleagues for their opinion on which is best to use.

Regarding copyright, I have seen a lot of comments online suggesting this is a problem. But a recent publication in the Federal Register by the Library of Congress U.S. Copyright Office seems to indicate at least in the United States images generated by an AI from text cannot be copyrighted. Here’s some of the findings noted in that publication:

  • In the Office’s view, it is well established that copyright can protect only material that is the product of human creativity.
  • …when an AI technology receives solely a prompt from a human and produces complex written, visual, or musical works in response, the ‘‘traditional elements of authorship’’ are determined and executed by the technology—not the human user.
  • these prompts function more like instructions to a commissioned artist—they identify what the prompter wishes to have depicted, but the machine determines how those instructions are implemented in its output.

The publication goes on to indicate if a human takes the AI-generated image and either modifies it or uses it in a creative composition that is determined to now be developed by a human, then that final work may be considered to be copyrighted. There are instructions in the publication of how to submit for registration of copyright of an AI-generated work that a human has modified.

However, I am not an attorney and would suggest running this entire question of copyright by your own legal department for verification.

If you get the green light from legal to use AI to generate images to help you at work, your next question may be where is this magical AI tool and how do I use it? Over the past few months, I have tried some AI tools that I’ll share with you starting with my favorite one below:

Midjourney: so far this has become my favorite image-generating AI. Although at first it was a little uncomfortable for me to get used to. I still find their website a little scary when it initially comes up because they have a lot of changing text that makes me immediately think I accidently clicked a site that will hack me. Also, their website is not where their AI tool is found. Instead you join their Discord group and generate images there.

So if you are not used to Discord that may also be initially uncomfortable until you get used to the interface. Fortunately I have been using Discord for a while now so that part was not so bad for me. You can access and join Discord through the Discord website, and you can download and install the Discord app on your computer from their website. From the Discord site you can search for the Midjourney Discord server. Here is the direct link: Midjourney Discord Link which should bring up the site shown in the image below. From there you can join the Midjourney Discord Server by clicking the button which says “Join Server.”

Screenshot of the Midjourney community site on Discord

Once you get to the Midjourney Discord Server, as I said it can be overwhelming if you are not used to the interface. The quickest way to try it out is to click in the column on the left on a newbies listing in one of the Newcomer Rooms. The image below shows the result of me clicking on newbies-102. It shows a running result of the images generated by Midjourney based on text people have input.

Screenshot of the Midjourney Discord Server showing images generated by the AI tool

You can see the text inputs vary from a very simple description to more complex. Midjourney wll generate four different images for each request. You can further refine a specific image by clicking the boxes underneath. The U boxes are for upscale an image while the V boxes ask the tool to vary it. I created the image at the start of this blog post in Midjourney with the following text prompt: /imagine a scene showing nature in an earth day theme using green as a predominant color. There are a lot of sites online which offer guidance on how to use the tool, and Midjourney has a Quick Start Guide where you can get more detailed information than I have included here.

I will follow up with the other AI image-generating tools I have tried in the next blog posts.

Share

Helping People Navigate Government Services

 

Navigating government services can sometimes feel like finding your way through a forest

Years ago a coworker who lived in a large city in the United States told me a story about how he needed to get a permit from the city’s building department to make improvements at his home. He said he tried for a very long time, but had no luck getting the permit in a timely manner. He felt his application had dropped into a black hole. According to him, many had the same experience. So much so that there are people who hang out at the city building offices in the hall who you can hire to advocate on your behalf with the city staff to review and issue your permit. They have a relationship with the staff and know well how to navigate the system. As soon as he hired one of these people, he got his permit.

I don’t have any personal knowledge of this situation so cannot verify my coworker’s story, although there seemed to be no reason for me not to believe it is true. Also, there have been studies showing it can be difficult for the average citizen to navigate government services or know how to work within the system to have their issues addressed in a timely manner. A few years back, GSA published this study, “Expectations and challenges, Informing the future of the Federal Front Door,” which looked at understanding the public’s overall experience interacting with government. The study revealed people primarily depend on their family and friends for help with navigating government services. They also don’t understand many of the processes involved with providing those services. While the study didn’t seem to ask if people understood which level of government delivers which services, I believe that can be an issue for people too. The study did report that sometimes people are also not sure if a service is provided by government or a private entity which leads to more misunderstanding.

So what can be done to improve people’s understanding of government services and how to best navigate the system? It seems in that one city, people have stepped in to help others, although they only do so for a fee. Instead of taking that approach, it made me wonder if it would be possible to take advantage of the knowledge and skills of retired government workers. If a non-profit organization was set up with retired government workers as members who are interested in volunteering their time, could this serve as a resource for people to turn to? There are a lot of retired folks who are looking for volunteering opportunities and the skills retired government workers bring are wide-ranging and at an advanced level.

While there is no such volunteer organization available now, I came across a site, CoachMeFree.com which seems like it could help out.  It’s a site for people who are willing to offer free coaching in a multitude of topics as well as a site for those looking for some free coaching. The site does suggest to coaches not to offer too many free sessions because if you are a professional coach, it can devalue your services. But I was thinking a lot of time average citizens who need help with government are usually only looking for help with one or two issues. So if you are an experienced government worker or one who is retired and looking for ways to help others understand and navigate government, this site might be a place where you can offer your expertise.

 

Share

The Day the FCC Took Broadband out of the Right of Way

Communications infrastructure in right of way

The use of public right of way is regulated by local or state government subject to local and state laws. Typically if a utility wants to install infrastructure in the public right of way, it must apply for and obtain a permit from the  government agency which has jurisdiction over the right of way. The installation and use of that infrastructure is then subject to the terms of that permit. Sometimes the issuance of the permit and the use is also subject to a franchise agreement negotiated between the local government and the utility. Utilities are also installed in utility easements which are designated on recorded plats of subdivisions. Private property owners typically own the underlying land which is subject to this easement. And the installation of the utillity in these easements is regulated by the local government through a permit and sometimes a franchise agreement. There have been additional regulations imposed through telecommunications acts. Often local government is restricted by these state or federal laws on the level of regulation that can be imposed on a public utility. Due to the telecommunications laws I have never heard of a use that was denied and instead have heard of court cases forcing cities to allow broadband companies to install their equipment in the right of way even when that installation was opposed by the city and the public.

Because the right of way and public utility easements are limited in area and because they are designated for public use, private parties are usually not granted permanent use of the right of way. Occasionally, limited uses are allowed such as street seating for restaurants or dog fences or sprinkler systems. In the case of use by a private entity, a legal agreement between the private entity and the local government is executed to permit the use. The local and state government has much more ability to charge fees and establish parameters for the use of public right of way when the applicant is not a utility or telecommunications company.

Keeping all that in mind, I can't help but wonder what will be the consequences of the FCC's net neutrality decision. From what I understand the premise of this action is the FCC is no longer going to define broadband companies as utilities and telecommunications. It appears instead the FCC's official position will be broadband companies are providing information services. Currently all of the major broadband companies have significant infrastructure in the right of way. Does this removal of a designation as a utility/telecommunication company mean local and state government can now regulate them as a private company? How about charge annual fees for use of the public right of way? And what about the infrastructure in public easements on private property? Is it legal for the company to keep its infrastructure in that utility easement? Can private property owners demand removal or payment? The next time a broadband company tries to install its Internet related equipment in my community, will the court again force the city to allow its installation as it did last time? Or since it's no longer a utility or telecommunication company, will the city prevail at denying the company access to the right of way?

With all the discussion online about the upcoming FCC decision, I've been surprised to see only one article touching on these issues and questions. The author of that article, "Ajit Pai's Net Neutraility Shell Game," suggested this reclassification will not take place and that this action by the FCC is only a ploy to force lawmakers into a position to concede even more power to broadband companies through additional telecommunication legislation. But if the FCC does end up moving forward with what they propose, I would expect eventually some local agency will test the legality of a broadband company's right to occupy the right of way. And if that litigation is found to have merit, permitting of right of way becomes a whole new playing field. 

Share

Do you have a permit for that Pokemon?

Pokemon Screen with PokeStops

Pokemon Screen with PokeStopsAbout five years ago I wrote a blog post about augmented reality and the concerns a city might have over its potential impacts to a community (see Adding Augmented Reality to Your Zoning Ordinance). But I had not noticed the types of issues discussed in that post actually occuring until this week after the release of the incredibly popular Pokemon Go game. If you have not yet heard about the game, it is an app you install on your phone which represents you on a map of your location and allows you to capture Pokemon who randomly spawn while you move through your environment. As with most games, you level up and collect objects as your Pokemon collection grows. There is also virtual infrastructure supporting the game such as PokeStops typically located at points of interest in a community. PokeStops gift you objects when you visit them and spin the stop on your phone. They can also be set up to attract Pokemon. Other fixed objects in the game are Pokemon Gyms where your Pokemon can battle other Pokemon.

So what is the big deal and how does this relate to zoning? The issue people are having is not only the location of the random spawns of Pokemon, but also the placement of the fixed objects, particularly the gyms. The company which owns the game makes the final determination of where these all occur – they don't need to ask permission from a property owner or the city to place their virtual objects. So there have been reports of Pokemon showing up in places that appear to be on private property, and people are trespassing to catch those Pokemon. While this might be an occasional issue with a random person showing up, the more serious problem reported appears to be with the placement of the gyms. Both the gyms and the PokeStops have the potential to attract crowds of 30 or more people at a time.People playing Pokemon

To get an idea of the concerns gyms and the resulting crowds are causing, here's a Tweet from a person who lives in a home in a renovated church on which a gym has been placed.

If you read through @boonerang's Twitter feed, you will see questions raised about impacts to property value and hours of operation. At what point do the impacts become significant enough to warrant the need for government regulation? And if regulation is imposed, will it be through permits? zoning?Right now, it appears the company is the sole decision maker on whether or not that gym remains at this person's house. While they have offered a method by which someone can report an issue with a gym, the removal is totally at their discretion. Should the local government have the ability to require its removal?

The other topic I have not yet seen explored is the potential problems with the type of virtual content. Pokemon Go is a G-rated game with cute little characters and objects. What if someone launches a more adult game with much more adult content? Someone who might tolerate a cute little Pokemon might not feel comfortable with X-rated content appearing on their property, even if it is only virtual. Should adult use zoning ordinances also apply to virtual content to ensure it does not get placed within so many feet of a school or church? And if so, how would the city regulate this and address complaints? A city employee downloading and installing something like Pokemon Go to check on placement of objects might be tolerated, but would downloading and use of something much more adult be allowed even if only used for regulatory purposes?

The world is definitely changing. And now that augmented reality has actually shown up in the form of cute little creatures, it will be interesting to see if or how cities and other government entities address the use of their virtual spaces. The legal questions which might first need to be answered are do property owners have ownership of the virtual space within the geospatial coordinates of their property and does government have the authority to regulate virtual content within the geospatial coordinates of their boundaries?

(The photos in this post show a location where people hang out to catch Pokemon. The one photo is everyone playing and the other is a screenshot showing the gym and PokeStops at this location. The pink petals around the PokeStops indicate people have placed lures there to attract more Pokemon.) 

Share

Learning New Skills at Civic Design Camp – Chicago 2015

Civic Design Camp 18F Presentation

At today's Civic Design Camp not only did I pick up a few choice bits of advice and skills to add to my civic toolbox, but I also was able to meet and network with some great people including Josh Kalov who I first met at CityCamp in Chicago back in 2010.

 

Introduction and First Session

The day started out with an introduction by Cyd Harrell, product director for Code for America, and Christopher Whitaker, brigade coordinator for the midwest region of Code for America. Whitaker is also a consultant for Smart Chicago and helps co-host Open Gov Hack Night in Chicago. After introductions, the discussion was turned over to Raphael Villas who was a Presidential Innovation Fellow and is now with 18F, a group within GSA providing digital services to the Federal government. Villas explained how he made the move from the private to public sector and showcased a few of the projects with which 18F is involved. 

Civic Design Camp 18F Presentation

These projects include:

Communicart – an online service to assist holders of Federal credit cards with purchase approvals and tracking.

MyUSA – a single sign-in service connecting citizens with the U.S. government. The project is still in Alpha, but when finished can assist in linking citizens with any application designed to accept this single sign-on.

USCIS – 18F is working on a streamlined version of the U.S. Citizenship and Immigration Services website. This new site will better direct users to the type of information they are looking for. If you visit the site, you will see it now immediately asks the user the status of their citizenship and offers possible actions or questions.

Let Girls Learn – this site provides information about the collaborative effort between the First Lady and the Peace Corps to promote learning among adolescent girls.

If you want to follow up and learn more about 18F or want to check out their code, you can visit their Github page at https://github.com/18f or their Dashboard at https://18f.gsa.gov/dashboard/.

 

Visual Design Basics

Next up was Molly McLeod who is with Code for America. She shared with us several good tips for making government documents, forms, and other media more user friendly. I kept thinking throughout her whole presentation how helpful it would be if the engineering industry was given more instruction in this area of study. Many engineers are tasked with preparing documents for use by government agencies, yet most have not had any formal instruction on writing or visual design. The lack of skills in these areas can cause a reader of those documents to either not even bother reading them because it is just too painful to fight through, or the lack of organization and disregard for the end user can leave the reader thinking the author lacks credibility. This lack of credibility can then translate to the government agency for which the document was prepared. So, to improve government documents, designers should always, before writing or preparing anything, answer the questions McLeod posed:

  • Who are your users?
  • What do they need to know?
  • What is the order they need to know it?
  • What are the action steps?

The next step is to make sure you are providing answers to the questions your users might have such as:

  • Am I eligible/is this relevant to me?
  • What info/materials do I need on hand?
  • How long will it take?
  • Key details: deadlines/when/where?

McLeod also offered content tips taken from the Field Guides to Ensuring Voter Intent. And even though the information is focused on communicating information to voters, most of the tips apply to any type of instruction given in a government document. (You can check out the guides yourself by following the link.) Below is a photo of a redesign McLeod did of her county's instructions to voters. If you visit her blog post about this topic, "Let's Respectfully Redesign Government," you can learn more about this redesign and see a side-by-side comparison of her design with the original set of instructions.

Civic Design Camp Visual Design Example

Prototyping Websites using Github Pages

Cathy Deng next showed us how she uses Github Pages to prototype websites. But the added bonus in this session were the other tools she touched on that can also be used to improve or assist in creating sites. While I've worked with website development since the early 1990s and was familiar with Github, these were all tools I have not yet used so it was great to learn about all of them and see a live demo of their features. To start, Deng showed us how to easily set up a website using Github Pages. Basically all you need is a Github account. After that you can follow the directions on the Github Pages site to set up your own website through your account. Here is a link to the very basic site I set up on my own account within only a few minutes following the example: My-Website.

Deng then showed us how we can test out changes to the site's code in Codepen. This tool, which is shown in the screenshot below, allows the user to paste code into the appropriate section – HTML, CSS,  or JS – and immediately preview how it will look in the browser.

Codepen Website Screenshot

The other tool she shared was Bootstrap Components. This site lists many of the items you might want to place on your website such as dropdowns, button groups, headers, progress bars, and many others. If you find the one you want, the code is listed so you can copy and paste it into the code for your site.

The last tool Deng brought into play was Font Awesome. This site, which is also hosted on GitHub, offers numerous vector icons that are scalable and can be added to your site. You can either download them and add them yourself, or you can copy and paste the code that links to the icon on Font Awesome. As the site indicates, "Font Awesome is fully open source and is GPL friendly." You can view Deng's final, simple site she coded during the presentation here http://cathydeng.github.io/my-website/ and access it on Github here https://github.com/cathydeng/my-website if you are interested in forking it over to your own account and experimenting with the code.

Civic User Testing Group

The final presentation I saw was given by Sonia Marziano who is with Smart Chicago and more specifically manages CUTGroup, a civic user testing group in the city of Chicago. Marziano explained how her group arranges testing of websites for developers. Their testing group consists of about 800 residents in the city representing all 50 wards and all 77 neighborhoods. Each participant in the group receives a $5 gift card for signing up and $20 each time they participate in a test.

If you visit the CUTGroup page on the Smart Chicago website, which is separate from the CUTGroup website, you'll find a listing of all the sites the group has tested so far along with very detailed reports analyzing the test results. Marziano was asked if she knew of developers using these results to assist in building better websites. While she wasn't specifically aware of anyone doing that, she did indicate there is enough detail in the write-ups that they could be used for this purpose and believed it would be a great use of the reports. For example, below is the final report from their testing of the Chicago Works for You Website (as an aside, if you haven't ever seen this site, it's worth clicking on over to check it out how Chicago reports their public works related service requests and to see the frequency at which those types of requests are received). I included this one because it focuses on public works related services. If you have a similar site, it might be helpful to read through the user group's reactions and thoughts about their experience with the site:

Marziano also shared some general, overall observations from their testing such as they found very few people click on popovers and that people don't like to have to sign up to access information. She said users will do everything possible to avoid having to share their personal information. They also realized from testing that for autotweets sent to a Twitter user based on specific terms used by that person in a Tweet, it is important to include these types of elements in the autotweet:

  • compassion
  • a question
  • an official element

So for example, if someone sends out a Tweet mentioning food poisoning in the city of Chicago, Foodborne Chicago will send an autotweet that is similar to the following:

"@twitteruser Sorry to hear you're ill. The Chicago health department can help.  https://t.co/kTBNsEJriH"

 

Final Presentations

I did miss the final presentations because I had to take off to get home in time for other commitments. However, based on posts by other attendees, it looks like the final presentations covered discussion about the Design Thinking for Libraries Website and gifs.

 

Off-line takeaways

As always in addition to the more formal presentations, I usually pick up some good stuff from others who I meet at an event. Because I was fortunate enough to sit at a table with others who are involved in the transportation industry, I learned a lot about what is going on with Chicago transportation and city business and found out about a few other websites that offer great information. Below are the sites Steve Vance, Abraham Emmanuel, and Josh Kalov shared with me:

Chicago Traffic Tracker – the benefit of this site is the regional map shown in the upper left corner. This small map gives a good overview of the congestion or traffic in an area of Chicago. It can also show how this compares to what is typical for that location and time and it can predict over a 12-hour time period how it will change.

Cook County Property Tax Portal – this site is useful if you have an address or PIN number for a parcel in Cook County. The information offered includes standard property tax information and a listing of the last few property transactions taken from the Recorder's office.

Chicago Cityscape – this site offers information about building permit and business licensing activity in the city of Chicago.

Share

Infographic of the Month – March 2014 (FEMA Flood Maps!)

This month's infographic comes from FEMA – our friendly folks who work to keep us safe and help us when there's a disaster. One of FEMA's tasks is to develop flood maps which show us where flooding is most likely to occur. There's a lot that goes into determining flood boundaries and making these maps so FEMA prepared an infographic to help us better visualize the process. Because this infographic is produced by the U.S. government, there is no copyright. Therefore, any agency or company can print this out to either create a poster to hang in an office to show people who have questions about the process or to print out and make available to citizens as handouts. 

You can always find out more about this process by visiting the FEMA website: http://www.fema.gov/blog/2014-02-21/what-goes-flood-map-infographic

 

FEMA Infographic - Flood Mapping Process

Share