Using AI to Generate Images for Public Works – Post 2

water color sketch of a water valve
AI-generated image of a water valve

In the first post on this topic I introduced the Midjourney AI tool which can be used to generate images. In this post, I’ll talk about a few more image generating tools I have tried. The first is Canva. This tool is fairly easy to use; however, you will need to make a free account to access it.

If you decide to try Canva and visit their site, you will find a lot going on there because Canva does a lot more than just generate images from text. To find the AI tool on their site, you can click “Apps” and when the next screen comes up look for “Text to Image.” Once you click that a box pops up asking if you want to use this in a new design or existing design. You can click “use in a new design.” If you do this, you’ll see they offer a drop down with a long list of items from which you can choose. When I am creating an image I usually want a 512 x 512 pixel image, so I choose “Custom Size.” If you make this same choice, you can indicate your image size and then click the button “Create New Design.”

screenshot of the Canva text to image app
Screen shot of the Canva Text to Image App

Next, you should see a screen like the one shown in the image above. There is an area on the right with the blank canvas and a small input area where you can type the description of what I want. Initially I tried “a person putting their garbage can at the edge of the road.” For the style I left it at “None.” After a short time, the image below is what it generated which wasn’t quite what I had hoped for. A person is only in one of the images, and the can is actually in the road.

Four images of a blue garbage can sitting in the road. One image has a woman in a red shirt and black pants crouching down near the can.
AIi-generated image of a garbage can along a road from Canva

So I tried again this time choosing the “Dreamlike” style. The images generated were a little closer to what I was looking for, but the person was a small child in two of them, and the one with an adult did not look realistic. Here is how it came out:

four images showing garbage cans in the road. A small child in standing near a can in two of them while a woman is near one in another
AI-generated image of a garbage can from Canva

After not really getting what I was looking for I tried a different image. This time I typed “a stream winding through a field of grass and trees.” I left the style at “none.” The image generated which I included below turned out close to what I had envisioned. Although if I wanted to use this to illustrate a stream in my area, I would need to try again and add text to indicate no mountains.

four images showing a stream winding through a field of grass with some trees. Three images have mountains in the background and the remaining one has a waterfall.
AI-generated image of a stream from Canva

Another image generating AI often talked about is DALL-E 2. This AI is brought to you by OpenAI – the same organization which offers ChatGPT. Just like with Canva, you will need an account to try out DALL-E 2. Once you log in, this is how the site looks:

Screen shot of the DALLE2 site
DALL-E 2 Website

In the prompt line I typed in the same text I tried with Canva: “a person putting their garbage can at the edge of the road.” DALL-E 2 generated four images, the same number produced by Midjourney and Canva. What I really like about the images generated by DALL-E 2 is they download with a DPI resolution of 300. The other tools download at a smaller size, and I always have to bring them into my image editing software to upsize them. Also, almost all of the images generated by DALL-E 2 were close to what I was looking for. I added below the one that I thought was best.

image of a brown garbage can at the side of the road with someone's arm resting on top of it. There is a car in the background.
AI-generated image of a garbage can by DALL-E 2

And just for fun, here’s another image I generated on DALL-E 2 a while ago using the following text: “a red fire hydrant van gogh style,”

an image of a red fire hydrant
AI-generated image of a fire hydrant by DALL-E 2

Of the two tools discussed here, I had better results with DALL-E 2. Plus there is the added bonus of not having to process the images in an image-editing software to get them to the resolution I need. Both were free to use, although Canva has some terms of use you may want to check out if you are using the images you create on their site for work.

Share

Can AI Help Fix a Water Main Break?

Robot in orange suit standing on a wet road looking down with cars parked on the side of the road

Maybe you’ve heard about AI, and maybe you haven’t, but odds are you most likely will. There are many types of AI tools being developed. One example is ChatGPT, a text-based tool providing answers to questions in a conversational manner. Since ChatGPT launched late last year, it seems everyone is discussing Artificial Intelligence (AI) and what it means to society. Being in public works, I can’t help but wonder about all the impacts to our industry

So today I thought about using the ChatGPT tool to see if it could help me figure out how to fix a water main break. After all, this is a common issue that comes up in public works, and I was curious to see how AI would respond. Could AI take the place of that wise, seasoned employee? Based on its advice I wouldn’t be ready to send it out to the jobsite just yet. Here’s how the conversation went:

My input: How do i fix a water main break?

ChatGPT’s answer: Fixing a water main break typically requires the expertise of a professional plumber or water utility company. It can be a complex and potentially dangerous task that requires specialized equipment and training.

Here are some general steps that may be involved in fixing a water main break:

  1. Shut off the water supply: The first step is to turn off the water supply to the affected area. This may involve turning off a valve or shutting off the main water supply to the entire property.
  2. Locate the break: The next step is to locate the break in the water main. This can be done by observing signs of water damage or by using specialized equipment, such as listening devices or cameras, to pinpoint the location.
  3. Excavate the area: Once the break has been located, the affected area will need to be excavated to expose the damaged section of pipe. This may involve digging a trench or using other methods, depending on the location and accessibility of the break.
  4. Repair or replace the pipe: Depending on the extent of the damage, the pipe may need to be repaired or replaced. This can involve cutting out the damaged section and replacing it with a new piece of pipe or using specialized equipment to seal the break.
  5. Test the repair: After the repair has been made, the water supply should be turned back on and the system tested to ensure that there are no leaks or other issues.

It is important to note that these are general steps and that the specifics of the repair process may vary depending on the location and nature of the water main break. In any case, it is recommended that you consult with a professional plumber or water utility company to ensure that the repair is done safely and effectively.

My assessment: The AI gave a fairly simple explanation. To be fair, I didn’t give it a lot of detail regarding my expectations for its answer – I just asked a question. And I’ve found that being more detailed in your expectations for the output can make a big difference in the response. However, even with the simple steps provided by ChatGPT, I thought it left out a few critical items. So I followed up:

My input 2: In general that is good, but I think you should add a step where you call for utility locates before digging. That is really important. You should also add to the testing section a note about the need to test for water quality before allowing people to drink the water after the repair.

ChatGPT’s answer 2: You are absolutely right. Before excavating the area, it is important to call the local utility locating service to identify any underground utility lines that may be present in the vicinity of the repair site. This helps prevent accidental damage to other utility lines during the excavation process, which could result in further disruptions to utility services, property damage, or even personal injury.

Additionally, after the repair has been made and the water supply turned back on, it is important to test the water quality before allowing people to drink or use the water. Water quality testing can help ensure that the water is safe and free from contaminants that could be introduced during the repair process. This testing may involve taking samples of the water and sending them to a laboratory for analysis, or using on-site water testing equipment to check for things like chlorine levels, pH balance, and other parameters.

Thank you for bringing these important points to my attention.

My assessment: The AI was very accepting of my suggestions and polite in its response readily incorporating the information. I also liked that in its first response it emphasized the need to consult a professional. I’m going to keep testing out the tools, and as I do, I’ll try to share some of it in future posts. I’m also interested to see what others are doing with AI to help support public works and government work so reach out if you want to share!

Share

April is National Safe Digging Month

Yes construction can and does take place all year long. But in the Midwest where frost can get down to about three to five feet, activity tends to drop off as winter sets in. We typically use this time indoors to plan for next year’s projects, and as the robins show up and warmer breezes blow in, we start setting up project schedules for the year. But as we kick things into gear, we want to remember the importance of calling for utility locates before we sink any shovels into the jobsite. To help promote this important step in the construction process, the Common Ground Alliance launched its annual support of National Safe Digging Month.

You can check out their website for resources and graphics that you may be able to use for your operations. And if you are a community, you may be able to use some of the graphics to promote calling before digging with your residents. It’s surprising how easy it can be to hit utilities sometimes doing things you wouldn’t even think would cause a problem. I was on a jobsite once where the contractor was securing the site at the end of the day. One of the workers was pounding in metal fence posts to hold up the orange construction fencing around the site. He pounded one right through a communication cable. Some of the crew ended up having to stay until the utility could repair the cable. The worst part of it was after he broke it, he noticed the line had been marked – he had pounded the pole right into the orange line. He most likely didn’t think pounding a metal fence post could break it like digging could. It was a good lesson to me that before you do anything in an area of a locate where you are putting something in the ground, you need to locate that utility first or move away from it if possible.

National Safe Digging Month logo showing someone planting a tree with a shovel.
Share

Free and Online Access to Building Codes

Did you know anyone with access to the internet can check out current building codes at the International Code Council (ICC) website? It’s true! I am really excited about this because when I first started in the industry, I only had access to the physical books, and I always thought how much easier things would be if I could use and refer people to a digital version.

Well now we all can – building professionals and property owners and renters – basically everyone. All you have to do is visit the ICC website at https://codes.iccsafe.org/codes and check out any of the 15 codes they offer along with other related publications. They even have different years of the code available. Of course they offer a subscription service with more features which is probably something a building professional would be more interested in than a property owner.

When you get to the site, you can filter the codes in the menu on the left which you can see in the image on this page. You can also go to a specific year by clicking the drop down at the top and choosing the year and version of code. To view a code which shows up in the display, just hover over the graphic of the title and when you see “View as Basic” click on it. The site will take you to the code. You can check out different sections of the code by clicking on the list of sections on the left of the screen.

One important thing to keep in mind is even though the codes are there for free for us to read, they are still under copyright. So in accessing and using them we need to make sure we don’t infringe on the ICC copyright.

Share

Building Safety Month Kick-off

Well it’s here! Building Safety Month – a month to promote pretty much what it says: BUILDING SAFETY. And because all of us need to spend time in buildings or some sort of shelter, Building Safety Month is really for everyone. This year, the International Code Council (ICC) which sponsors the campaign has established four themes for each of the following four weeks:

Week 1, May 1 to May 8: Energy and Innovation

Week 2, May 9 to May 15: Building Safety Careers

Week 3, May 16 to 22: Disaster Preparedness

Week 4, May 23 to 31, Water Safety

Whether you are in the building industry or a related field or not, I hope to offer information and resources throughout the month for all of us. And if you are in the field, you can stop by the ICC Building Safety Month website to download toolkits, proclamations, and other materials to promote the month in your communities.

Share

A Short Story of Catastrophic Land Subsidence and Jonas’ Lake

The other day a colleague told me about a bean field in Polk county, Minn., which catastrophically dropped 25 feet. After watching the video I noticed the land was located near a river, and the video points out that the land also seems to be pushing into the river. It made me wonder if some types of geographical features I had thought developed gradually over time instead occasionally occur all at once as this did. And now will this sunken area present to the river a path through which a new meander of the river may be created?

Then today in reading the history of Richland county, Ohio, I came across another story of a catastrophic drop in land which occurred in 1846 in an area about seven miles east of Mansfield. The area is now covered by several acres of water and is called Sites Lake – a small lake lying close to and north and east of the much larger Charles Mill Lake. But according to the history, Sites lake, which used to be called Uncle Jonas’ Lake, was at one time only about an acre in size. The story explains that the area around the lake, amounting to about eight acres, was very flat and rimmed with “hills of gentle slope.” So the owner of the property, who was the Uncle Jonas after which the lake was named, decided he would drain the lake and recover an extra acre of farm ground. To achieve this goal, he cut a ditch through the only break in the hills lying around the flat acreage so the water could drain from the lake to the “Black Swamp” which lay to the east. He completed his work on July 25, 1846, and successfully lowered the water level by eight feet.

Imagine Jonas’ surprise when instead of gaining more flat, dry land, he found the flat area around his lake had dropped and became flooded with water. Only the tops of trees could be seen and eventually over time even these too sunk out of sight increasing the size of the lake to six acres. Neighbors from miles around reported feeling a “quake and tremble” at the time the land catastrophically sank. Then, through the years, the land continued sinking until eventually the lake reached a size of eight to nine acres.

Later in the 1900s work was done to significantly develop the area around Uncle Jonas’ Lake. Today it is dwarfed by the much larger Charles Mill Lake which, according to the Charles Mill Lake website, is 1350 acres in size.

Google map view of Mansfield Ohio and Charles Mill Lake to the east.
A map showing Charles Mills Lake which is located about seven miles east of Mansfield, Ohio. Uncle Jonas’ Lake is one of the smaller lakes lying just to the north and east of Charles Mills Lake. Uncle Jonas’ Lake is now called Sites Lake. Source: Google Maps.
This map shows the location of Uncle Jonas’ Lake, now called Sites Lake, just north and east of Charles Mill Lake in Section 15 in Mifflin Township. Source: National Map.
Share