Latest / The MapScaping Podcast - GIS, Geospatial, Remote Sensing, earth observation and digital geography / AI Autocomplete for QGIS
Transcript
- 0:00Hi,Brendan.Welcometothepodcast.
- 0:02Ritrull,pleasurehavingyouwithmetoday.
- 0:04YouaretheCTOandco-founderofsomethingcalled
- 0:07BuntingLabsandIwasintroducedtoyoubyan
- 0:11acquaintedtoAliceandthereasonheintroducedmetoyou
- 0:14wasbecauseofsomereallyinterestingworkyou'redoing
- 0:17aroundAIandQGISandIguesswecouldkindof
- 0:21describeitasanauto-completeforvectorizationbut
- 0:24talkmoreaboutthatlateronjustforthetimebeingperhaps
- 0:27youcouldfillinsomegapsforus.
- 0:28Ithinkofusabriefintroduction.Whoareyouandwhatdoyoudo?
- 0:32Sure. Thanks for having me on the podcast by the way.
- 0:35So I'm Brendan. I'm the CTO at Bunting Labs and that means
- 0:40that I have been building a AI auto-complete for QGIS for
- 0:45the past year. So I wasn't originally a GIS geospatial person.
- 0:51I actually got my start kind of in open source software.
- 0:55So I originally got involved with the Node.js project which is
- 1:00in open source platform for running JavaScript on servers
- 1:05normally and that's kind of where I initially
- 1:09learned to engine or software and that really gave me my
- 1:13spark in computer science and it was only later that I went to
- 1:17MIT and ended up studying physics and computer science there
- 1:21where I got more into machine learning and I think you can
- 1:24kind of see that Bunting Labs is kind of at the intersection of
- 1:29many of these different interests of mine.
- 1:32So kind of my background in machine learning and specifically
- 1:37I studied Bayesian inference at MIT kind of led me to have this
- 1:42geospatial moment towards the later end of my college career.
- 1:45And that's actually when I was working on a consulting project
- 1:50with a real estate developer and we were more or less
- 1:55summarizing different neighborhoods in terms of their characteristics
- 1:59with statistics and with neural networks and it's more or less
- 2:04at that moment where I realized that geospatial data is
- 2:07extremely powerful and I was kind of confused as to why other people
- 2:10weren't using geospatial data more and that really set me on this path
- 2:14to discover geospatial data and kind of the intersection
- 2:18between geospatial data and machine learning and that's kind of
- 2:22where Bunting Labs came from.
- 2:23I guess the big un-unanswered question for me is why
- 2:27QGIS then? Why did you decide to build something on top of
- 2:30the platform that is QGIS?
- 2:31My familiarity has always really been with open source software.
- 2:35So when I think of software that I can contribute to and
- 2:39software that I can build an ecosystem around or contribute
- 2:43to the ecosystem in I think of GitHub and I think of repositories
- 2:46that everyone can kind of see, learn from, contribute to and build
- 2:50around and so QGIS is in many ways closer to my comfort zone than
- 2:55many of the other GIS software that are available out there.
- 2:58It's extremely easy to get started with so we basically built
- 3:01the first version of this plugin in about two weeks and I could
- 3:06do that by learning from all of the other open source plugins
- 3:11that are available and so QGIS is not just this one app that
- 3:15you download to your computer, it's really an ecosystem that everyone is
- 3:19contributing software to and enjoying as a result and so I think
- 3:23that's why I first got started with the QGIS plugin.
- 3:26And so my next question is a two-part question.
- 3:29Explain to myself and into the listness of this podcast what
- 3:33auto-complete for digitizing vectors means for you and QGIS and why
- 3:38that was a problem you wanted to solve.
- 3:40So auto-complete for factorizing in QGIS or another way to kind
- 3:47of describe it is an auto-complete for tracing maps is a addition
- 3:52to the GIS pen tool and so if you are presented with raster
- 3:58imagery of some sort so if that's a satellite image of an area
- 4:03if that's a rendered PDF of some sort of construction or architecture
- 4:10asset somewhere in the world and you need to convert that into a
- 4:14vector file with a projection and some sort of like accuracy
- 4:19you would use the pen tool to digitize that into its vector
- 4:23representation and in many conversations with GIS professionals
- 4:28we found that they essentially participated in this workflow
- 4:33extremely frequently and so they would be presented with oftentimes
- 4:37a PDF that doesn't have any kind of projection with it.
- 4:40They would need to do reference that PDF to oftentimes sub beta
- 4:45resolution and that's literally locating it in aerial imagery
- 4:49or maybe on an open stream app base map and adding control points
- 4:52until the raster layer perfectly lines up with its location in the real
- 4:58world and then they would get out their pen tool and digitize
- 5:01out lines, polygons, maybe even points that represent semantic
- 5:07shapes from that map and then they use that and then add metadata
- 5:12to those shapes and so it's not just lines in your local
- 5:17state plane these are buried utility lines and so you would add
- 5:22metadata of the diameter of that pipe or maybe these are
- 5:27literally painted lines on a highway and you are adding metadata
- 5:32that says these were last painted on 2014 August 2014
- 5:37and they will need to be painted again in August 2024
- 5:41and this kind of workflow where you would take rasters and then
- 5:45you would take a meaningful digital file format equivalent of
- 5:50them we saw all the time and so given my background we started
- 5:55imagining what this workflow would look like with AI and this is
- 5:59more or less the product of that.
- 6:01You did a great job answering both questions with one answer
- 6:05that was brilliant. So given your skill set, your experience
- 6:09and your interests, if I was you I would be I would look at this
- 6:13convert every line that I can see in that rendered image to a
- 6:17you know a vector output instead of trying to like trace lines
- 6:20individually is that a thought that crossed your mind when
- 6:23you were thinking about solving this problem.
- 6:25Yeah and I think it's really funny because my conception of how to
- 6:30solve this map digitization problem is totally different now
- 6:35than it was a year ago when I first started looking at this.
- 6:38So when Michael and I decided that map digitization was a problem that we
- 6:44would tackle we basically went to the whiteboard and I threw up my design, my
- 6:49attempted solution for what digitization with AI would look like
- 6:54and I said it's probably really easy to convert an entire map into its
- 7:00vector representation. In fact there's an entire academic field dedicated to solving it.
- 7:05If you go online and Google vectorization especially of images
- 7:09there's a lot of published research as to actually accomplish that task
- 7:13and I said this is a solved problem shortly and I can build this in two weeks.
- 7:19I said that probably 13 or 14 months ago so I totally take that back
- 7:24and the first six months of me building this was actually very similar to
- 7:29your suggested solution. I did a literature search
- 7:34and found the best performing machine learning models for converting an
- 7:39image into its vector representation and there are some really high quality
- 7:44research available online for doing that. If you take pretty much any
- 7:49image we're talking especially like logos images of the real world
- 7:54and convert it into its vector format to your eye it looks fantastic.
- 7:59It is very perfectly recreating the entire image as in SVG for example.
- 8:05But when we went to kind of our original design partners and showed them this technology
- 8:10we realized that it kind of missed the mark. It's like op-re-oriented when you see a map
- 8:16it's kind of difficult to determine which of the assets in that map are
- 8:21important to have the vector representation and so we realized that if we wanted
- 8:26to productionize this we actually had to build a semantic understanding
- 8:32of all of the features in these maps and that all of a sudden was a much more
- 8:36difficult problem because that's akin to machine reading of maps and
- 8:41understanding and when we were looking at this a year ago that seemed impossible.
- 8:46And even worse when you have extremely important assets that you want a
- 8:51high quality vector representation of you don't actually trust the
- 8:56output of a machine learning model on its first go. If you were to hand me a
- 9:01geotip and I handed you back a shape file you would actually load it into your
- 9:05GIS software choice and review it such that it's perfect such that it's two
- 9:10your standards and realizing that took about six months after six or seven
- 9:16months of working on that approach I actually went on a walk with Michael and
- 9:22I essentially came to the conclusion that I was not on a trajectory of success.
- 9:28If I interpolated my progress out I would not be successful in one or two
- 9:33years and so I essentially had to go back to the drawing board and it was only
- 9:37then with inspiration kind of from these more recent generative AI models like
- 9:42Chat GBT did I consider an AI autocomplete this was never originally going to be a
- 9:48plug-in that you run in your desktop GIS software but we realized that that was
- 9:53actually the modality that people wanted they wanted to be able to have access
- 9:57to this and immediately review its output. I think to what you're getting it is
- 10:01they wanted to be in charge they wanted to have just increase or make me more
- 10:06efficient in the work that are more really doing in that way I will trust the
- 10:10output more. Could you talk to me a little bit about how this is different from
- 10:15segment anything for example because this is kind of like you give it an image
- 10:19and it segments everything in the image and people seem to love that and it seems
- 10:23to work really really well and this reminds me of your original approach like
- 10:27give me an image and I will vectorize the whole thing could you just explain
- 10:31to me in the list is please what why these two things are different and why
- 10:35I think that would be really helpful. So segment anything is extremely powerful
- 10:41but it's powerful in a few specific characteristics the first one is that
- 10:46it's grounded in text descriptions of what you're segmenting so if you take a
- 10:51very large satellite image for example I think the best use case for segment
- 10:56anything is really satellite and aerial and you can textually describe the
- 11:01geometry that you are extracting then I think segment anything and I believe
- 11:06segment anything geospatial the package that actually implements it specifically
- 11:11for geospatial software is probably the best thing that you have and so if you
- 11:17load drone imagery that you just took and ask it to segment out the lake boundary
- 11:22that's pretty much the best thing you can get I think where our AI auto
- 11:26complete is preferable to segment anything is especially when you are
- 11:31digitizing geometries that you have a semantic understanding of but are difficult
- 11:36to textually explain or you are digitizing lines that are difficult to
- 11:42semantically extract from that map and so for example we often see a lot of
- 11:48extremely low quality maybe there's a lot of JPEG artifacts on the map maybe
- 11:52the resolution is pretty low it was originally rendered to be really low or even
- 11:57those artifacts from the original scan those are kind of maps where segment
- 12:02anything struggles it's much more difficult to get segment anything to extract
- 12:07a line of a pressure sewer such that the line is a dashed line that has
- 12:14PS intermittently interrupting the line style whereas on the other hand our
- 12:19AI auto complete because it looks at basically the line that you have already
- 12:23started it excels at just completing it. Okay the line that you have already
- 12:27started in the same way auto complete works for fun using chat gbt for
- 12:31example some people describe it as a fancy auto complete where it says okay
- 12:35your question was this the next logical token is this in the same way we see
- 12:40it auto complete in Google docs for example it looks like you're the next
- 12:44logical word is here so when you say auto complete you mean I take my pen
- 12:49or I start tracing the line and it jumps ahead of me as is looks like you're
- 12:53going on this line here and follows it along am I correct. That's exactly
- 12:57right so the way our AI auto complete works is it's a drop in replacement
- 13:03for the panel and so if you activate our plug-in in qgis and begin digitizing
- 13:09some geometry let's say for our example it was a utility line on a
- 13:14raster map once you begin digitizing that line by drawing two segments a
- 13:19small bit of that map will be sent to our inference server and it will auto
- 13:23complete 50 of the next vertices of that line and these vertices are output
- 13:28by a neural network that we've specifically trained for this job and so
- 13:32that neural network is literally looking at the pixels that you have
- 13:37already drawn so as to predict which of the map is actually semantically this
- 13:43same feature and which of those pixels it should choose as continuing
- 13:49vertices and I've realized that this problem is actually much more complex than
- 13:54I originally imagined when you and I are talking about digitizing maps
- 13:59it's extremely broad and big and it can be difficult to imagine what those
- 14:05maps actually are but the magic in AI auto complete is not that it works on
- 14:10certain maps it's that it works on your map and so when someone uploads
- 14:15into qgis a map that our AI has never seen and yet is able to
- 14:20generalize based on the hundreds of maps that we've trained it on that
- 14:25I think is the really impressive thing.
- 14:28So the I think you're the example you have on your website is amazing and one
- 14:33why I think it's amazing is that you're tracing a dash line so just to
- 14:37describe this for the list is that there's a video of yeah screen video I guess
- 14:41of you tracing or someone tracing a dash line in and QJs in which is
- 14:45incredible and you can see the auto complete working in you know being
- 14:48ahead of the pen but I think the really incredible thing is that adjacent
- 14:53to that line there is an identical line crossing over that line is
- 14:57another identical line and yet the auto complete knows that I do want
- 15:02to follow this particular one of those identical lines but to me to
- 15:07the layperson this seems like an incredibly hard problem to solve.
- 15:10So I think early on I underestimated that difficulty and I'm actually
- 15:15very fortunate that my background kind of let me push through all of the
- 15:20complexities that came with solving this problem and so I think if you
- 15:24kind of follow our journey on social media it might seem as though we
- 15:29built this in a couple of weeks and all of a sudden there's AI and QJs
- 15:34but really that's a total simplification of kind of this journey I've had
- 15:38in understanding what map digitization really meant both at a
- 15:43semantic level for the people that do it professionally but also at a
- 15:47technical level and how you could teach a computer to truly learn the
- 15:52semantic features that these people are working with and can actually
- 15:56auto complete ahead of them and so to kind of dive into what is
- 16:01surprising about this I feel like I actually have a lot of you
- 16:05know as someone who's literally looked at probably a thousand different
- 16:09maps over the course of building this AI autocomplete and I've
- 16:14actually run nearly 2000 machine learning experiments to get to
- 16:19this current AI autocomplete and experiment one I promise you to
- 16:23not perform well at all and if you are actually one of our users and you
- 16:28download QJs download our plugin and try it out you are actually
- 16:33running model 1,854 and the 1,853 models that came before that were
- 16:40bad in many ways but the main important thing is that they weren't
- 16:45able to generalize into the map that you're looking at I've realized
- 16:50that lines have so many semantic meaning that allows you to
- 16:55disambiguate between two lines say when they intersect and
- 17:00encoding that into the model has been pretty much the most important
- 17:03task that I've completed. So it hits off to you for continuing I
- 17:08think if I got no what do you say 800 or what 1,800 times I would
- 17:13be tempted to give up but you didn't. And finally you got a yes
- 17:17but my guess is also that I guess you were like during that process you
- 17:21could see that you were getting better and better and better and further
- 17:24closer and closer I should say to the goal so my guess is you had
- 17:27encouragement along the way it wasn't like hard no hard no hard no right
- 17:30that many times and then yes so but anyway that is incredible
- 17:35well done well done had talked to you but when I think about this so
- 17:39digitizing lines is very impressive but it's a step in the in the
- 17:43journey right right. Georeferencing is another part of that great
- 17:46way. Now I've got my lines not to not to throw any cold water not
- 17:50to rain on your parade or anything but now I've got my lines you've
- 17:53done a great job of that I've got my lines now they need to land
- 17:55somewhere specific on the real world in order to be useful to me and
- 17:59then I need to extract some metadata about those as well is
- 18:02the any part of this the model that you built today the experience
- 18:06that you've had the learnings long the way that overlap with
- 18:10it with maybe the next step of of Georeferencing that's a great
- 18:13so I've been working simultaneously on both of these models so
- 18:19the AI autocomplete for vectorization is something that has
- 18:24kind of crested this threshold of usefulness for most of its
- 18:30time it was not useful at all and I also have a machine
- 18:34learning model on my computer that can georeference maps as
- 18:39builds documents from architecture and construction firms you
- 18:43name it automatically but it hasn't yet pressed it this threshold
- 18:48where it can actually save someone time and it's interesting
- 18:52because these two problems while they're both grounded in maps
- 18:56they're actually totally different because the AI autocomplete is
- 19:00really about understanding the semantic nature of maps and
- 19:05the features that are depicted on them whereas georeferencing is
- 19:08actually a search problem when you're presented with a map that
- 19:13you don't know where it came from especially this is extremely
- 19:16common for consultants if you are basically asked to do
- 19:21reference this map to a sub meter accuracy you often don't know
- 19:25actually where it is at all and so you embark on this interesting
- 19:29search whether you're using Google Maps you're using
- 19:33Erion satellite imagery maybe open stream map and all of these
- 19:38other kind of data sources that can help you locate where a
- 19:42particular map is and the possibilities for that are like
- 19:46astronomical you know we're talking a chess game number of
- 19:51possible game positions that's comparable to the number of
- 19:55possible ways a map could be georeference to sub meter accuracy in
- 20:00the world right so it's actually extremely difficult especially
- 20:03when the map only has a little bit of information so if the map is
- 20:07just a picture of a building and two cross streets I can guarantee
- 20:12you there are a thousand roads in the United States with those
- 20:16street names and so what people actually do is they go through
- 20:20and page through all of these possible permutations of where
- 20:24this map could be and then they line up exactly where this building is
- 20:27and so if you imagine an AI model for georeferencing it has to do
- 20:32all of that plus more and so you're synthesizing all of these
- 20:36different datasets as to you know all of the roads in the world
- 20:40not just the US obviously all of the satellite imagery or even
- 20:46high quality high resolution aerial imagery that you can use to
- 20:50georeference in exact building outline or maybe even the curb on
- 20:55a road these are challenges that you know I've had while hand
- 20:59digitizing hand to referencing maps and building in AI model to
- 21:03do that same thing is surprisingly difficult but I think
- 21:08it's something that you know we'll be able to do in hopefully
- 21:11three months it's interesting to hear you say surprisingly
- 21:16difficult because no it doesn't surprise me at all especially
- 21:20after what you just said which makes a lot of sense but the good
- 21:24uses we have a bunch of filters normally on a map you have a name
- 21:27you might have street names you might have metadata you might
- 21:30have some coordinates in there you might have something like
- 21:33this and we can filter it down to okay I know I'm looking
- 21:37in this particular town or around this address just as an example
- 21:41and I guess to not all other datasets a great your base maps
- 21:46for digitizing against so if you've got a you know PDF as
- 21:50built of some building looking at really grainy satellite data
- 21:55is not going to be super helpful it's not going to get you we
- 21:58want to go maybe open street map would be better or another
- 22:02building layer would be better where we're talking about discrete
- 22:05objects as opposed to pixels and so we can do things to filter
- 22:09that down at least that that's my sort of experience is that
- 22:13also your experience or do you can you put some other words
- 22:15around that as someone who's tried to make this model and
- 22:18is also continuously improving it there's even more complexity
- 22:22than you could imagine we've done a few projects on like
- 22:26book to referencing maps and one of the really interesting
- 22:31parts of this challenge is things change over time and so
- 22:35we've gotten basically the equivalent of a truck load of
- 22:40of PDF maps and I've been asked to do your reference these
- 22:43and the complexity of that is like highway names change
- 22:48over time right road names change over time buildings disappear
- 22:51and appear and so when you're being at rivers like change
- 22:55direction as they flow and so when you're being asked to
- 22:58locate a map the map is actually a description of how it was
- 23:02at a certain place in time and so that's another complexity
- 23:07that you're also dealing with well yeah it's a really good point
- 23:10to talk about that trust me I hadn't thought about it either
- 23:14but you also said that you're hoping to have something working in
- 23:17three months time which just seems insane but what do your
- 23:21expectations to have working three months time what what do
- 23:24you think it is that that will be working and how will it work
- 23:27I think it's really about this threshold of human usability
- 23:30for an AI autocomplete we realized that the bar was
- 23:34that the autocompleted vertices are easy to delete in case
- 23:38they're wrong but easy to continue from in case that they're
- 23:41right so we find that a lot of our users are actually okay
- 23:44with mistakes because they can instantly repair them designing
- 23:49that into our qgs plugin has actually been a great
- 23:52boon for its usability and we're kind of looking for the same
- 23:55thing with this year referencing model it's actually of
- 23:59no cost to you to try and gerruffin something acknowledge
- 24:03even if you get an error message or acknowledge that the
- 24:07gerruffin is not as accurate as you wanted it and then go in
- 24:10there and gerruffin set yourself and so you can imagine a
- 24:13gerruffin sing button in your desktop GIS software where
- 24:16you load a raster and perhaps it doesn't have a CRS perhaps
- 24:20the ground control points are wrong and it automatically
- 24:23locates its location in the real world and aligns like
- 24:28rotates that image aligns it and gives you ground control
- 24:31points to ground it in you know in its actual location
- 24:35and that experiences what we're essentially trying to
- 24:38emulate with an a i gerruffinser wow so you would
- 24:41that that's a really interesting inside that they're already
- 24:44doing that which sounds incredible already doing that
- 24:47would save a ton of time for people and be a massive
- 24:51value add for them right and because they come into this
- 24:55task with the expected cost of gerruffin sing because
- 25:00gerruffin sing something accurately can take upwards
- 25:0320 minutes if I've had maps that go longer but let's let's say
- 25:0720 minutes as a good number because you know that it can take
- 25:11that long the cost of actually waiting 10 seconds to have an
- 25:14AI model try it first that's actually pretty good and
- 25:18so that's kind of what I have in mind as I go about building
- 25:21this model now we jump back to use it to your auto
- 25:25complete for a vectorization now that it that it's working
- 25:28you've crossed that threshold of usability that you keep
- 25:30it does that mean that as the person's using it and creating
- 25:34these results are they in a way creating labels and adding
- 25:38to the model as they do it yet yes this verticie was
- 25:41right yes this verticie was no that's wrong over here
- 25:44are they improving the model over time so not by default
- 25:47so our plugin doesn't collect any unnecessary telemetry
- 25:51so we obviously know when you've requested a like
- 25:55an auto complete but we don't track whether or not you
- 25:58keep that result we don't track whether or not you delete
- 26:02the resulting completion and we don't track whether
- 26:06or not you cut that completion at a particular point all
- 26:09these are kind of potential outcomes that could happen
- 26:12in the plugin and so we don't track any telemetry as to those
- 26:16outcomes and so we don't automatically add any
- 26:19maps to our training data set we do occasionally have
- 26:22conversations with our users where they request that we
- 26:25add their map storage training to set and on occasion
- 26:29we will go and have them hand digitized we have a GIS
- 26:33staff that helps us with that but by default that's not happening
- 26:36is that in the interests of privacy or is it because
- 26:39that data would not add any you know particular value
- 26:42to to the auto complete model in the background it is
- 26:46definitely in the interest of privacy yeah let's say
- 26:49if okay so what you're saying here is that you
- 26:52would be better for the model we could make a better model if we
- 26:55collected that data about the interest of privacy
- 26:57not I realize earlier on you said that these are
- 27:00two different problems to solve the auto complete
- 27:02is a you know a semantic problem and the the georeferencing is a
- 27:06search problem assuming that you know we didn't have to think
- 27:09about privacy issues here if you also collected data for
- 27:12that the georeferencing that people were doing could you
- 27:16also improve that over time I think you could I
- 27:19think as with most ML models that are kind of deployed
- 27:23on the internet seeing how it's actually being used in the real
- 27:26world is valuable information but at least for us we found
- 27:30that we can collect really high quality data without
- 27:34having to go into our users data and I think that's a great
- 27:39great that we've kind of found ourselves in in a great
- 27:42position to be in yeah absolutely so you sound incredibly
- 27:46talented and I'm an optimist so let's say in the next few
- 27:50hours when you've solved both these problems perfectly
- 27:53and you're ready to move on to one of the next steps in the
- 27:56process which is adding metadata now that you've solved
- 27:59the the auto complete problem you've got a model that
- 28:02works 100% of the time you've got a georeferencing model that
- 28:04works 100% of the time how will you start work on collecting
- 28:08metadata what will that look like what what will be the steps
- 28:11involved in the potential output the metadata is really
- 28:14interesting because I think it brings the semantic
- 28:18understanding of the map that someone is digitizing to a
- 28:22totally new level because when you see people extracting all
- 28:26the relevant metadata for a particular project really it's
- 28:31not at the point where you're ingesting metadata it's
- 28:35not about a particular map it's how the map fits into your
- 28:38overall project and the goal that you're trying to accomplish
- 28:41and so if you are doing construction in an area and you want to
- 28:45have a complete understanding of all the buried utility lines
- 28:49such that in the in the case that you need to actually dig
- 28:53around these and what's called daylight them which is when
- 28:56you dig exactly around them such that you can see them with
- 28:59your own eyes all of that metadata that would help you
- 29:03accomplish that day lighting process is actually your goal and
- 29:06the metadata extraction is just how you get there and so I
- 29:10think this is really where the application of multi-modal
- 29:15models can really accelerate this process it's because
- 29:19when we combine the intelligence that we can generate
- 29:24about a map along with the visual and textual data
- 29:28understanding that an LLM can provide it's only with
- 29:32that larger context that metadata extraction begins to
- 29:36make sense and so if you go in to gpt4 with vision or some of
- 29:42the other multi-modal models that are available right now
- 29:45and ask it to describe a particular feature in the image
- 29:49it is totally incapable of doing that and that's really not
- 29:53surprising this data is not in these models training data sets
- 29:57and so it's not surprising that by default you can't get
- 30:01this kind of behavior from these models that being said
- 30:04it's something that I know is possible and so I'm really
- 30:07excited to be a part of that future of making it.
- 30:10Yeah I guess what I'm trying to understand is like
- 30:13what kinds of attributes would you be able to collect?
- 30:15What kinds of metadata?
- 30:16Because for me it would make sense that maybe you could
- 30:20calculate the distance of that line just as an example.
- 30:23Maybe you could look at the color of the line that you have
- 30:26just auto completed and say well I know that that matches
- 30:29to this thing over here in the legend of my map
- 30:33if that's things and then there might be some data associated
- 30:36with that it might say water pipe, sewage pipe, I don't know
- 30:40gas pipe, that kind of thing that would be valuable data to have in there.
- 30:43Maybe I've digitized other lines maybe it could say
- 30:45well this pipe is so close to the other pipe
- 30:48maybe you could start building up this database based on the metadata
- 30:53that you're collecting about each object based on its physical characteristics
- 30:56based on whatever else is in the map.
- 30:58That is the way I would think of it but I'm sure you have other ideas.
- 31:01So in terms of metadata that a user could probably extract
- 31:06from these maps automatically a really simple example is data on a legend
- 31:12but that's not really the exciting applications.
- 31:15Data on a legend is like pretty easy to extract
- 31:17and so it's not really the level where you're saving a GIS analyst
- 31:22or a GIS technician a lot of time.
- 31:24It's really about metadata that's hidden in these maps
- 31:27and so I'm going to continue with this subsurface utility example
- 31:31even though it's kind of misleading.
- 31:33If you were to daylight barred utility lines you would do a more
- 31:38it would be a more complicated process to actually do that
- 31:41and you wouldn't do that with just QLD raster images, raster maps
- 31:45but hypothetically really important metadata to know
- 31:48if you were daylighting a particular barred utility line is actually the depth of that line
- 31:53and also the trait of the soil that it's buried in.
- 31:58These are kind of important things for the construction crews to know
- 32:02if they were to be delicately digging around a gas line
- 32:06such that it wouldn't have a dangerous utility strike
- 32:09and so that's kind of a good example in the utility space.
- 32:13We also have our users outside of architecture engineering construction.
- 32:18Another good example is actually mining and geology
- 32:20and so if you are a geologist and you are dealing with kind of a older geologic map
- 32:27that describes the deposits in an area.
- 32:31The metadata associated with those deposits can be pretty complex
- 32:37especially when the legend associated with that.
- 32:41It's not even about describing a solid color region of that map
- 32:45but rather the matching the exact stylistic look of that polygon
- 32:52to a tiny little bit in the region.
- 32:55That kind of says this is a sediment deposit of some type
- 33:00and so it's metadata like that that we would want to extract automatically
- 33:04and actually embed into shape files or geopackages such that these projects can
- 33:09be accomplished more quickly.
- 33:11Well, it looks like you have got your hands full for the next little while.
- 33:16What more generally are you surprised at the lack of AI being used in QDS for example
- 33:22or GIS tools and especially when we think of desktop tools?
- 33:26For me, this is one of the few examples that I've seen out there in the world
- 33:30where it's being embedded into the actual tool itself, into the GIS tool itself
- 33:36but maybe you've seen more, maybe you've seen less.
- 33:39I don't know but I'd really like to hear your thoughts about that.
- 33:42As an ML oriented person, I think there's a big gap between what is possible
- 33:47in desktop GIS software and what is already happening.
- 33:51So when people see large language models like ChatGPT,
- 33:56GPD for a lot of the other major developments that have been happening
- 34:01especially in terms of video generation, audio processing,
- 34:04it's clear that pretty much all complex problems
- 34:08will eventually be solved by artificial intelligence until it relates to scarcity.
- 34:14I think unless you're talking about material scarcity that is like literally the amount of food
- 34:19that's available on Earth, a lot of these problems can and will be solved by AI and ML.
- 34:25And I think it's only because we're at the beginning of this renaissance in machine learning
- 34:32that we see attention to it but everyone's talking about it and nobody is implementing it.
- 34:37I think that's the best way to kind of imagine how this renaissance is happening right now.
- 34:42Obviously open AI and these larger AI research companies are driving most of the innovation
- 34:49in terms of where AI is going.
- 34:51Meta being actually an extremely great example who created segment anything
- 34:55and is releasing a lot of this groundbreaking research publicly.
- 34:59But I think most of the opportunity that exists in machine learning today
- 35:04is actually in building domain specific models and embedding them into professionals workflows.
- 35:11So I think GIS is a really great example of this.
- 35:15You can't take an LLM even if it's memorized the entirety of the QGIS documentation
- 35:23plus all mentions of GIS online ever.
- 35:26That LLM will often not immediately accelerate a professionals workflow.
- 35:32But once you understand that these large models are doing much more than generate text,
- 35:37they're actually generating semantic understanding of what you are asking it to do.
- 35:43And then completing that task as a result.
- 35:46Once you see that semantic understanding is actually what's being accomplished here,
- 35:50you can embed semantic understanding into all programs.
- 35:55And that program can understand your overall task just as much as you do.
- 35:59And I think we will see that trend more generally within GIS, within CAD,
- 36:04within all of these kind of desktop softwares.
- 36:07And it's not just about text.complete.
- 36:09It's really about augmentation.
- 36:11If you weren't working on this problem of auto-complete with digitization of geo-referencing,
- 36:16automatic extraction of metadata,
- 36:18and thinking again about working within and on top of the QGIS platform
- 36:24and solving problems for geospatial professionals
- 36:27that were using this as the main tool, what problem would you work on?
- 36:31That's a great question.
- 36:33So pretty much all of my work so far has been around mapping the built world,
- 36:39or even the natural world.
- 36:41But an interesting opportunity for the geospatial world to move towards
- 36:47is less about mapping its current state,
- 36:51but more about imagining what's possible.
- 36:54And there's a couple of examples of startups actually doing this,
- 36:58where you take your conception of how the world is now
- 37:03and pretty much synthesize a way that the world could look in the future
- 37:08and evaluate whether or not that version is better.
- 37:11There are some really great advancements in how people are doing this
- 37:15to, for example, make the world a greener place,
- 37:19because geospatial software can literally find the optimal place to put a wind farm
- 37:27or a solar farm.
- 37:29Once you consider all the complexity that's associated with that.
- 37:32But I think it goes much deeper than just real estate development.
- 37:36It's actually about evaluating ways on a map
- 37:40that the world is a bad place and changing that in the future.
- 37:44And that's really magical.
- 37:47A fun example of that is actually when you map out the street trees in a neighborhood.
- 37:53This is especially true in the United States,
- 37:56where you have kind of large roads and not much shade.
- 38:00They don't really encourage pedestrian-friendly neighborhoods.
- 38:04But you can actually use machine learning and statistics on geospatial data
- 38:08to find the best spot to plant large trees
- 38:12and create more shade, create a better spot to walk around.
- 38:16And basically improve the nearby residents' lives.
- 38:19So I think if I wasn't building AI autocomplete for this geomorphencing,
- 38:25vectorizing and metadata extraction workflow,
- 38:28I would be working on changing what's actually in the map.
- 38:30That was a great answer.
- 38:31I think I'm going to need a few minutes to walk around the house after this interview
- 38:35and think about that.
- 38:37I appreciate it. You've really given me food for thought.
- 38:39This is also probably a great time to wrap up the conversation.
- 38:42And thank you very much for your time.
- 38:44It's much appreciated. And thank you very much for your work.
- 38:47I think it's fascinating. I think it's really interesting.
- 38:49And above all, I think it's going to be incredibly helpful to a lot of people.
- 38:53So if people want to check out what you're doing,
- 38:55where is the best place to they can go?
- 38:57Can they reach out to you? Is there a website?
- 38:59What, where can we send them?
- 39:01Yeah, thank you, Daniel.
- 39:03If you're interested in seeing what we're up to,
- 39:06you can go to our website, which is bunting labs, B-U-N-T,
- 39:10I-N-G, labs.com. And you can also follow us on Twitter at the same handle.
- 39:16Yeah, thank you so much for the opportunity to share what we're up to.
- 39:19No problem. Any time. I appreciate your work.
- 39:21And I wish you all the best in the future.
- 39:23Cheers.
- 39:24Thanks.