In this episode Chris and Krishna talk a little about their career paths, reply to some questions from listeners about Episode 1 concerning embeddings, and profess their undying love for Google Earth Engine. Throughout this conversation, a common theme explored is the nature of the abstractions implemented in Google Earth Engine, vs the open-source ecosystem. If anyone from Google sees this: we would love more export tasks. (00:00) Introductions and career paths (08:00) Questions from Episode 1 (17:00) Geospatial platform discussion. Descartes Labs, Google Earth Engine, the Impact Observatory pipeline and more! This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit christopherren.substack.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
all right i think we're live welcome to episode number two of earth site number two here we are here we are um so we got some feedback last time that we we probably should have just introduced ourselves at least a little yeah before starting so
SPEAKER_00krishna do you want to start with an introduction and then i'll go
SPEAKER_02Sure. Let's see. I studied electrical engineering. I worked in defense and intelligence for the first nine years out of school. Various defense contractors working on DARPA projects, IARPA projects, other three-letter agencies that you might be able to guess. um radar geolocation from space um yeah digital signal
processing i mean that's what i studied in school and that's what i was interested in and i just kind of fell right into it and just stayed in that world for a super long time and um The reason I got out was partially because I wanted to see what life was like when
SPEAKER_02you could talk about what you did to the outside world. Oh, we're talking now. Yeah. And now we're really talking. But back then, I didn't say anything, really. And yeah, I think the turning point for me was when I worked on something where I realized the only time we would ever turn it on... this thing on that we had worked on was um was if we were about to go to war with another country and that was like a wow this is right this is serious so yeah out
of that i fell into uh descartes labs basically um which i think a lot of people who are listening to this probably have heard of at least a little bit um and i guess the company was founded in 2015 i joined in 2018 it was i think it was pretty small for a while i kind of joined like when they were doing a very significant expansion and they had done their first big raise i think um and yeah i uh fun fact i sat next to chris's wife yep that's how we know
each other that's how
SPEAKER_02we know each other actually um and chris and i are actually both uh We were users of the Descartes Labs platform for a long time, so I think we're going to get into that and talk about that a little bit. But that was my intro to geospatial stuff. Until then, I really had no background in remote sensing. I did have a background in machine learning and algorithm development, but all from the RF side of things. I hadn't done a ton with imagery. So yeah, after Descartes, I kind of basically was,
SPEAKER_02I bounced around a whole bunch of places, worked at impact observatory, worked at a series imaging. I'm not really going in chronological order. Um, I did a consulting thing where I, um, I did a little bit of work for sky truth, a little bit of work for a company called understory. Um, yeah, I kind of ended up, I guess I ended up working on a lot of different things and, um, And then I guess my third career now is working in news.
SPEAKER_02So now I'm a data journalist at Bloomberg News. So I do a lot of the same things I used to do when I worked in tech, but I do it for news and within the context of the newsroom. So that changes a lot of my experience. day-to-day and my timelines and things i'm specifically interested in but um but it's a lot of the same tools and techniques so i think that was very long but um that is that's me yep
pretty long pretty long pretty long i'm kind of thinking maybe i should have gone first now you should have gone first this was this was a mistake this is this was a strategic error now you have to beat four minutes i have to beat four minutes um
SPEAKER_00i'm chris uh degree in physics and a phd in material science um until my first postdoc i hadn't really written any code ever i spent a lot of time doing actually spectroscopy which is kind of relevant to what i do now of semiconductor crystals, which involved being in windowless labs for extended periods of time. So really not that great from a quality of life perspective.
SPEAKER_00I think we share that. Right, sure. Right, right. And then I did a pretty short postdoc and then went to work for a healthcare company. And this is all in the UK, right? This was in the UK, yeah, in Cambridge, analyzing patient breath data to try and detect lung cancer metabolites. Wow. So... That was pretty fun. And then I guess my big break,
I moved to the US to do a postdoc in geophysics at Los Alamos National Lab.
SPEAKER_00That was in 2018. And I think I worked on geophysical data, seismic data for about a year or two. I got to say, I didn't love it. I don't love the one-dimensional data, the squiggles. That's right. Yeah. I think definitely more of a visual person. But there was a group.
SPEAKER_02I guess the seismic stuff's more like RF in a sense.
SPEAKER_00Yes, very much so. I mean, you know, you can turn it into an image with a Fourier transform, but it's like, you know, it's not really an image, you know. Right, right, right. And at Los Alamos, there was a group called the Intelligence and Space Research Division that was actually kind of collaborating with Descartes Labs. Descartes had given them access to their platform, and they were doing some cool sort of algorithm development on
remote sensing
SPEAKER_00imagery. And they kind of lobbied... Really hard to work with that group. Offered to work for free and just, you know, please teach me how to pull imagery and run algorithms on it. And that's kind of how I started with Earth Observation. Really enjoyed it. A lot of my work at the time for the next like two or three years was definitely enabled by the Descartes Labs platform. I wouldn't have known how to pull imagery actually without it.
SPEAKER_00And then after Los Alamos... Oh, that was the Earth genome, Earthrise. That's where Krishna and I worked together on embeddings. And then I had a stint at Grow Intelligence, which was a food security startup which no longer exists. And then I think I also did some consulting... After that, for a couple places. Right, right. And now I work on weather data.
SPEAKER_00So, yeah, that's my story.
SPEAKER_02Cool. So we're extremely moderately qualified to talk about some of these topics. So moderately qualified. So we had a couple questions from last time. I wonder if we should just... We shouldn't spend a ton of time on this because I think today we wanted to talk about... you know geospatial platforms and and stuff like that but i wonder if we should go through them real quick um yeah we had one question on can you
expand more on how you generated what you call the expert embeddings one without any machine learning
SPEAKER_02um i want to say You know, I want to say I feel like we covered that one pretty well. If I had to summarize what I think those are, at least the way we did them, it was, you know, pick pick your reducers that you're going to apply to like. a time stack of imagery say a year um and pick and basically by picking your reducers you're picking the moments in time that you want to capture um so that's
in the temporal dimension like the mean the min the max um but basically pick the reducers that you think make sense for capturing relevant temporal information for your particular problem and then do the same thing in the spatial domain if you're
SPEAKER_02working in tiles and And as soon as you do that, you just apply those and those are your expert embeddings. Obviously, you know, also choose the bands that you want to use or indices which are, you know, derived from bands. But basically, that's... I don't know how else to describe it. I think that's kind of it. It really is that simple. I wonder if you should take the next piece of this, Chris, which is wanting to hear more about the change detection experiments.
SPEAKER_00Yeah. So with the change detection experiments, we also tried to do the dumbest thing that would work, I think, which is how Krishna described the expert embeddings last time. So essentially we concatenated a before vector. This could have been an expert embedding or it could have been an image net derived pre-trained embedding. And we added that to an after embedding in the same location. So instead of a single feature,
i don't know 512 dimensional vector and now you've got a single 10 24 dimensional vector right where the first 512 elements describe the before state of the change you're trying to capture and the last 512 elements describe the after state um
SPEAKER_00And we just treated that as a single embedding vector and did search and classification in that space. Right. And we had some pretty good results off of that.
SPEAKER_02Yeah. What were some of the, like, if you had to pick, like, two applications where it, like, actually worked, like, I think new CAFOs worked really well, right? Yeah.
SPEAKER_00new kfos worked really well the really cool thing about the change uh but concatenating the change is that you can easily very sort of trivially reverse the change so yeah if if you set the before state to no kfo and the after state to there is a kfo you find new kfos right if you reverse the two you find kfos that disappear that's right that's right that are getting destroyed and this applies to uh any change so uh there was you know mining in the amazon and
then if we reversed the sort of uh green to mine vector we found mines that had been abandoned where regrowth was occurring so yeah i really like that set of experiments it was really
SPEAKER_00cool cool
SPEAKER_02Um, okay, cool. We have another question. There's about, um, there are some time series embeddings like Presto or Tessera. I don't know if I'm saying that right. Say that I do monthly composite for three years and then generate embeddings from such models. Is it still applicable to generate statistical features on top of these 12 times three time series embeddings for change detection or I guess land cover application? Um,
SPEAKER_00What do you think? Wow. I mean, I don't really fully understand this question, but I would say, based on what we just described about the change detection experiments, yes, in fact, this might be overkill if you're generating 12 times 3, yeah, monthly increases. For embeddings for 12 years, I would probably say that's overkill for some sort of change detection application. Maybe not.
SPEAKER_00Maybe not. I guess it depends on how nuanced the particular thing you're trying to find is maybe. Yeah, but it's also, if you consider the dimensionality of these, I mean, that's like 12 times 3 times whatever dimensionality Presto or Tessera's embeddings are, which is, I don't know, maybe like 200 or something like that. That seems like a lot of dimensions. Yeah. So I would say you could probably get away with simplifying this. That's my opinion.
SPEAKER_00But probably there would be signal in there. Yeah, yeah.
SPEAKER_02Cool. We have one more. How should we treat embeddings for downstream tasks on top of classic ML models like the random forest? Should we perform feature selection on the embeddings, or could that degrade the performance? For example, if I choose only 10 embeddings for a particular application, should I use the same subset of embeddings in another region, or would this affect spatial transferability? My instinct here is that if you're using an embedding that's like... created from some model like you tapped into image net or
something um if you subsetted one piece of those embeddings for some application when one place and then use that same subset for another place i think that you would possibly lose a
SPEAKER_02ton of information because i don't think the information content in those embeddings is sort of like neatly ordered in a way that you can just pick out um um and i think this is different from like expert embeddings at least the way we created them which is you could like select the pieces that were like just the ndvi piece of the embedding and then use that and you would expect some semblance of repeatability in how you could apply that to another region but i don't think that's necessarily the case with um with like a machine with
like an embedding
SPEAKER_02creator for machine learning what do you think Yeah, to be honest, I've always been a bit confused about feature selection.
SPEAKER_00Like I understand from the perspective of interpretability. Okay, you want fewer ones so that it's easier to describe their interactions. And I also understand it from the perspective of storage and compute. Yeah, for sure. Okay, we really have to throw away a lot. But if you want your model to do well, I feel like you could always give it more information. And I think being afraid of overfitting... I don't know. I just feel like it's actually very easy to tell if a geospatial model is overfit
SPEAKER_00or, yeah, I would say so. And so I think you should just throw all of your embeddings in if you have them, unless you're constrained by storage or compute or interpretability. That's my feeling. I think the overfitting problem is particularly interesting for Earth observation in a way that it isn't as interesting in other domains because I almost think that
SPEAKER_02If you think that every model is overfit to some degree, and if your goal is to produce a reasonable land cover map over this place, or a good detection of CAFOs in Alabama and nowhere else, you almost don't care that it's overfit. You kind of want it to be overfit.
SPEAKER_00Yeah, that's kind of how I feel. I mean... maybe you care because next year when you redeploy the model so like spatially overfit not as much of an issue temporally maybe if you want a year over year map but even then that seems less likely to me barring any like big changes in the sensor itself yeah I kind of agree with that I think overfitting is demonized but
I kind of like when my models are a little overfit, you know, to be honest.
SPEAKER_00They look better. So, yeah. All right. Those are the questions. Those are the questions. Please send us more. Or maybe not. I don't know. Yes, please send us more. Please send us more. Yeah, you should send us more, and then we could possibly get to a point where we just only answer questions for
SPEAKER_02an episode at some point.
SPEAKER_00Oh, interesting.
SPEAKER_02But I doubt we'll ever get to that kind of listenership. Right, right. i i was wondering if you know i think we like we both worked on descartes labs we both use google earth engine we've done like other stuff um i was wondering if we could start this by me asking you what you think before we actually talk about specific platforms like what you think a platform should have in terms of features and what do you think it should enable a person to do
SPEAKER_00Oh, yeah, for sure. Interesting. I think the first thing that comes to mind when I think about a platform, from an Earth observation or geospatial perspective, is scale. Like, I would like to use a platform to deploy a model at scale or sample points at scale across a lot of different areas or geotiffs.
um so i think that's the first thing that comes to mind i think there's definitely also like a ease of use aspect like i i would like platforms to be easy and
SPEAKER_00intuitive and i say this because
SPEAKER_02Easy in what way? Easy in like writing the code or easy in something else like the abstracting away the geospatial concepts or something?
SPEAKER_00I think writing the code, like I would like there to be low cognitive burden, if that makes sense. That's something that sometimes I feel I can get in the way. I guess that relates to the abstractions, right? Like what are the fundamental units of compute and storage?
SPEAKER_02Yeah, what's the model of the platform?
SPEAKER_00Yeah, and how do I build, like, this graph of operations I want to do? And then how do I implement that? So I think that's the main thing. And I guess, like, there are things that are just... really scale so scale i think the first thing i said was scale spatially but when i think about it also scale temporally which is potentially
trickier to do by yourself yeah like co-registering like making sure your stack is co-registered and things like that yeah so so i think like scale and ease of use is maybe what what
SPEAKER_00comes to mind immediately right now yeah yeah yeah yeah what about you um i think maybe i'll try to answer this question by um by by like trying to talk through what how you would do something if you weren't using a platform like if you were just using doing it locally so if you
SPEAKER_02were interested in Like, you know, you can download a lot of data from just websites, right? So, like, the National Land Cover Dataset's a good example. It's publicly available on the USGS website, like, every year. You can download all the geotests for all the years or just a particular year that you're interested in. So if you were doing something across the United States where you were... aggregating nlcd to like counties to figure out i'm making up
some problem like figure out how rural or urban certain counties are by like tallying up built areas versus non-built areas from national from nlcd you could do that locally right like
SPEAKER_02you could grab the county shapefile from the u.s census bureau you can grab the nlcd 2024 tiff and then you can just use rasterio and geopandas to do everything right or gdoll like you pick your favorite tool you like write some code that loops through all the counties clips the thing tallies up uh The land cover classes you care about, store that off in some dictionary,
SPEAKER_02and then you can run your stats at the end and create your map. And I think that's fairly easy. But I think even that process to do locally is like... fairly high overhead maybe not with like maybe not with llms doing most of the work for you like that's a fairly simple thing i think an llm would just get that right the first time but to just contrast that with like earth like
if you were to do that same thing in earth engine i think it would be like a couple lines of code yeah grab the nlcd image collection and it's just to reduce regions with your counties with the with the like frequency counting reducer and you're export that task and you're done so it's actually even way less code to even do it in earth engine for example which is a platform compared to doing it locally and i think
SPEAKER_02like I think that's what I think of a platform is like just making some of the stuff that's very easy to talk through what you want to do. Simple to do in terms of computation. yeah that's that's interesting it is a lot easier just to do that on earth engine but i feel like nobody or maybe i'm wrong about this but i feel like the instinct is still like at least i had the instinct for a long time like oh yeah you just that's just something you can do locally you don't need a platform to do it and you don't but actually the platform makes it easier in so many ways
yeah and like the
SPEAKER_00shape files are actually already on earth engine
SPEAKER_02And if they're not, you just ingest it as an asset or you might not even have to if it's not even that big. You can just send the JSON. You can declare the feature collection dynamically and be done.
SPEAKER_00Right, or chunk it up or something. Although I will say ingesting feature collections into Earth Engine is a little bit janky.
SPEAKER_02It's a little janky. I mean, the whole ingest is a little janky.
SPEAKER_00Yeah, but it can be done. yeah um yeah that's a really good point i hadn't really thought of that and then with the llm generated code you i'm sure there would be like some edge cases that it would miss like i don't know weird county shapes or or something like that um and i feel like earth engine wouldn't miss that or it's like built to handle that
SPEAKER_02Yeah. And I think the other thing too is like, let's say you were doing this locally. You have to get a few things right that I think are non-obvious. So you have to understand something about coordinate reference systems. So if you did this entire like area-based pixel accumulation in WGS84, for example, that would not be correct. And if you...
SPEAKER_02Because you'd have to know that, oh, I need to make sure that this is in CONUS Albers or some other projection that does a good job at preserving area-based calculations. And actually in Earth Engine, you have to do that too. So you'd have to specify the CRS when you're doing the reduced regions to make sure that it's actually doing its counting correctly. Yeah. But there's definitely way less steps in Earth Engine.
SPEAKER_02You just give it the CRS and it does all the reprojection for you. And let's say you downloaded the TIFF and it's not in an equal area projection. You have to warp it with GDOL or a Rasteria or something.
SPEAKER_00Yeah. Yeah. So it's not even really about scale. Like from a starting point, we're already on the ease of use. Like it just seems like it's easier to do this operation on Earth Engine. But maybe Earth Engine is a bit special as a platform. I mean, when I think of doing this operation on the Descartes Labs platform, it's almost like it's closer to the local workflow.
SPEAKER_00It is. You just have the ability to fan it out better. For sure.
SPEAKER_02Yeah. So Descartes Labs was like the core of the platform, I would say, was raster and metadata. So these were services that were offered in the Descartes Labs. And raster is basically extremely rapid access to imagery that's cataloged in the platform in this nice Python interface. So you get NumPy arrays back over tiles of data. So the really common workflows were build tiles, build UTM tiles. There was a tiling system built into the platform. DL tiles. DL tiles.
SPEAKER_02So build UTM tiles over, like, the entire United States. Mm-hmm. grab NLCD, write very simple Python code, and then scale that with tasks. So then you parallelize the operation across all these tiles across the continental United States, store off all those results, roll them all up, be done.
SPEAKER_00Yeah. And actually, I feel like maybe when I started using it, raster and metadata had turned into scenes. Is that possible? Oh, yeah. I mean, I think scenes is just a wrapper. Yeah. It's just a wrapper where it kind of like combined. Exactly. The two where you could do the querying of the metadata kind of like stack and then the pulling of the array. Yeah. uh all using dl scenes yeah but i guess it was like over under the hood it was the same thing yeah under the hood it was just rastered metadata yep yep yep yeah and
that and i feel like that so that was the first geospatial platform i used was it
SPEAKER_02the first one you used to yeah yes and and as someone who at the same time I was using the platform, I was learning about some of these more geographic based concepts, like what is a coordinate reference system? You know, what is, what is like, you know, resolution and all that kind of stuff. And I think it did a pretty good job at abstracting a lot of that away from you because you almost, if you use DL tiles, you just immediately worked in UTM.
SPEAKER_02And so a lot of the complication was handled for you. And then And then if you were like a data scientist type person who was used to NumPy arrays, it felt extremely intuitive and the imagery access was so fast that I think it felt extremely freeing. Like imagery access never felt like the problem when you were using it. no but i actually feel it was also the first platform i touched
and i was still in academia at the time so there was a lot of just i just want the array and i just want to make my figures for my paper and i just want to run the experiment i don't like i feel like somehow ironically when i was in academia or maybe because we were
SPEAKER_00publishing more on algorithms than i don't know outcomes and impact I just never ended up picking up all that important stuff when I was using the DL platform. It wasn't until afterwards where I started understanding, oh, tiling is non-trivial. Oh, this is why there's pixels missing from the edge of every array I pull from the DL platform when I try and just pull a box.
SPEAKER_00I feel like I maybe missed out a little bit because it was just so easy.
SPEAKER_02Definitely. I think because I didn't have to think about some of the geospatial concepts as much, I think I also developed some of the more geographic understanding later using platforms like Earth Engine at first out of necessity after leaving Descartes because it didn't have access. Right. just have to do work somehow. Yeah. Turn to something. Yeah. And,
SPEAKER_02and earth engine is almost the exact opposite in some ways of, of the Descartes labs, like platform ethos anyways, which is like, yeah, you don't get any NumPy arrays back. Getting a NumPy array is a pain in the ass. And if you don't, and you're like building, instead of like get the array and go do things, it's build your graph and have no idea what's happening until you look at the end. And I think it doesn't abstract away as much because like,
SPEAKER_02you know, you're not just working in UTM and you are thinking more about... coordinate reference systems and stuff like i think yeah i think it forced me like using earth engine actually forced me to learn more of the geospatial concepts 100 and i actually think if you just well i don't know i mean it's it's backed by
SPEAKER_00google right but i was just gonna say if you if you use have used both of the these platforms it's like i would say it's a pretty it was a pretty painful transition for me yeah like especially because the error logging and export tasks at the time wasn't great i think earth engines improved that since but just like where is my array i just want my array like why do i have to why do i have to like mung around and like i just want to do a get info at every line so i can see what i'm working on so
SPEAKER_00It forces you to hold more in your head. Yes. But it sort of makes you think about the problem maybe in a way that you should be thinking about it. Right, right. I think it forces you to think about what is the right way to compose these set of operations such that it is optimal and efficient as opposed to grab the data whenever you feel like it and then do whatever you need to do on top of it and just
SPEAKER_02make it work. Yeah.
SPEAKER_00Yeah, it's like you said, sort of like the opposite, right? It's like they came at it from a Earth observation remote sensing perspective, not a data science perspective. It wasn't like, oh, we use Dask and scikit-learn and XGBoost and these are the packages we know. And we know that NumPy arrays feed into these packages. So we're just going to build the whole pipeline to get you that NumPy array. And then you can run your standard data science workflows. It's almost like they came from a perspective of like
composites and coordinate
SPEAKER_00reference systems. And how do we leverage Google's compute, but also make sure that we are still doing our geospatial operations that make sense to us and that we want to do?
SPEAKER_02And I think I'm not sure, you know, I don't know enough about the history of the Google side of like how all the platform decisions came about. Yeah. But I wonder if some of the like some of the design decisions were also around the fact that. you know it was thinking about the the overall scale of this thing in terms of like if everybody's just pulling vast amounts of numpy arrays like
at some point this thing is not going to be sustainable and so it was like almost baking in from the beginning and you know art engine still has very tight rate limits the amount of data you can get from get info the amount of parallel requests you can send at a
SPEAKER_02given time whereas with descartes labs it was like You know, just anybody could get arbitrary amounts of data and then the platform would fall over all the time. And it had, you know, I think I think this is safe to say a lot less users than Earth Engine. And so and it was like great when you were working there and you could grab sort of so much data so quickly and be annoyed that you can't do that with Earth Engine. But also, I think in some ways that makes Earth Engine kind of more
robust and because it's not just falling over all the time yeah i think it makes you like constraints create like creativity and skill right like it makes you a better user if you can't just i just remember to take art when i had access to the platform
SPEAKER_00like rasterizing these ice charts over the entire like arctic and just blasting it and and i i barely knew what rasterization was i just knew that there was like a workflows function that would do it for me yeah and and instead of sitting down there thinking about a do i need all of these ice charts and b is there a better way for me to do this it just because it was available to me i just ran it you know um and and in earth engine you're constantly bumping up
against like ah do i have to split this into different export tasks or maybe i just do uh the high volume api and i just like pull a couple regions and check it first and it really makes you think before doing something at scale because it's going to
SPEAKER_02take time yep definitely I wonder if... So that's like... I feel like that's a good breakdown of how Descartes and Earth Engine are different. I feel like we've missed the whole... stack open source ecosystem up to this point. So I think it's important to note that Descartes Labs, they ingested data within their platform. So the platform was at the time built on Google Cloud. I think now it's on some version of it's on AWS.
But anyways, there was a whole indexing process that was run on the data and there was basically copies of data of, you know, Landsat and Sentinel, all these things.
SPEAKER_02And, you know, that costs money to store. Obviously, Google does the same thing for Earth Engine. And then, you know, their stack and then the whole model of, you know, cloud-optimized geotiffs, this idea that the data already lives in some S3 bucket somewhere. We should never make a copy of it. And we should have... Open source standards that define how we access this data. And then there's different implementations of that specification.
SPEAKER_02And as long as you follow the spec and you have a service, you know, anybody can hit that stack endpoint and grab data. Yeah. yep actually before we get into that do you know if the aws open data program existed when descartes was like spinning up its platform like in 2018 2019 i don't know for sure but i want to say it was in like the really early days it must have
SPEAKER_00been i think it was early there wasn't sentinel 2 on aws Or I feel like that did happen at some point, maybe during when I was there.
SPEAKER_02Yeah. But honestly, I was just so in that world at the time that I don't have a good sense of when some of these things happened.
SPEAKER_00Yeah. Yeah. Yeah. Yeah. Because, I mean, with all of these open tools, you do need, you do still need the data somewhere, right? You need the data somewhere, yep. Yeah, and AWS is footing that bill right now.
SPEAKER_02AWS is footing that bill. And then there's, yeah, other places where data lives and there's repeatable ways to access it. And I've used some stack stuff before. Mm-hmm. I would say where I have seen a lot of that lacking, and it's possible that Planetary Computer and other platforms like that tried to...
SPEAKER_02They were built off of Stack, and the whole idea was that they were supporting the open ecosystem. But I think where they fit was with a lot of Stack services that people hosted. We had a Stack service at Impact Observatory when we were doing land cover. Mm-hmm. I think there were critical bits that weren't implemented as part of the service that I think users of other platforms take for granted.
SPEAKER_02For example, with a lot of stack endpoints is you don't get clipping over an area of interest for free, for example. Like, you might do a metadata search, and it's going to return the scenes that intersect your area of interest. And then you'll like, get links to those cloud optimized geotips. And then it's up to you at that point to like, go do things with that, right? So a mosaic operation or a clip is not like baked into that.
And so I think there's just more barriers to entry in some ways when you're hitting
SPEAKER_02some of the services. Like it's not quite as seamless. Yeah.
SPEAKER_00Yeah. If that feels more like a local workflow, right? Like I'm going to tell you where the geotiffs are, but you're going to have to pull them and then figure it out yourself.
SPEAKER_01Yeah. Yeah. I think that's right.
SPEAKER_00Yeah. Yeah. And so when you guys were doing the land cover map at I.O., had you considered earth engine as a as an option there was a bunch of stuff already happening on earth engine um but i think for business reasons there was
SPEAKER_02many reasons why we were not gonna not gonna do it on earth engine um and And I think this, you know, you, I think, have done a ton of stuff like talking about how much it costs to deploy stuff on Earth Engine, which I know less about because I have never been in a situation where I've paid for it, thankfully. Thank you, Google. But when we were making the first version of Esri land cover,
SPEAKER_02and we had a very specific mandate, like make an annual land cover map for this particular year, and it was in our interest to do that as cheaply as possible. And so I think it made a lot of sense for us to do every bit of that from scratch, like tiles across the world with the MGRS tiling system. You know, there was a unit that was producing the land cover maps and like running the unit over every one of these Sentinel-2 scenes that fell below a
certain level. And so we rolled all the compute specifically in Microsoft Azure at the time.
SPEAKER_02But this was a little bit pre-planetary computer where we had... They had ingested all the Sentinel-2 surface reflectance data, and so we had access to where those surface reflectance scenes lived in Azure Blob storage, and so that was how our whole system was built. And so it was built in the same region, the same cloud region as where all the Sentinel-2 data lived, which is like Western Europe or something like that.
SPEAKER_02And so that's where all the compute ran. And basically that's how the platform ended up scaling out. And I think all said and done, that ended up being fairly cheap for an annual run compared to what it would cost. probably almost any platform that is more general that's designed to do a number of different types of problems. Like our thing only solved one particular problem,
but it did it fairly cheaply.
SPEAKER_00Right. Yeah, that's what I was going to ask. In this context, the platform is pull Sentinel-2 data over an MGRS tile, chip it up, deploy a unit, repatch it together with Overlap. exactly and then and then save that somewhere and do and then you write out all the individual land cover predictions for every time step in the year and then you you run another process that does a you know like a weighted mode across that you know
over every tile to produce the quote-unquote final map yep and the intermediate products are like you know geotiffs cloud optimized geotiffs in blob storage yep um yeah and i feel like there's there's real value in building every piece of that from scratch like apart from just learning a lot you i think get to optimize a lot of things that make sense for your problem but you know i don't think i definitely
SPEAKER_00wouldn't call any of that a platform uh yeah i think That's really interesting. It does seem like the cheapest way to do that is just do it yourself, spot instances, compute in the same region. You get to make those decisions when you're rolling your own. Right, right, right. In Earth Engine, if you're a non-commercial user, you don't really have to worry about pricing. But if you are a commercial user,
SPEAKER_00and I think they've only had commercial users for like three years. I think they started in 2022. that bill can run up surprisingly fast. I think at Grow Intelligence, actually the first iteration was maybe on some free account because we're in the process of interacting with Google and getting the commercial accounts set up and the cloud projects and everything.
SPEAKER_00And it just never occurred to me that i was doing such a crazy thing for free um and then the bill came around and deploying a random and i was not doing this particularly effectively at the time but deploying a random forest over malaysia and indonesia to detect oil palm it was costing us like one annual run was costing us you know thousands of dollars and I had just been sort of like tweaking something,
SPEAKER_00rerunning it, tweaking something, rerunning it. And I realized like, oh, I need to now start being careful about how I'm using all of it. But I guess it kind of makes sense when, you know, if you think about it as a premium on compute and storage, right? Like that's what the platform fees are. Like a convenience fee, almost. Yeah. that at the beginning it makes a lot of sense because uh you probably value convenience in order to like get things off the ground very
quickly right but then
SPEAKER_00once everything's kind of established that convenience uh the leverage of convenience maybe goes away a little bit but you're still paying the same cost for it over time yeah like if you find the thing that's sticky that you want to do over
SPEAKER_02and over again it might not make sense to do it on earth engine once you've done it once yep yeah and actually i do want to talk about this at the time when i say i wasn't doing this right i had this i still wanted to do i still wanted the arrays you know like we were we were developing a model i wasn't sure if it was definitely going to work
SPEAKER_00and i wanted to be able to uh throw a potentially different model at the at the data the underlying data if i wanted to i mean obviously the random forest works and worked yeah and and there's the earth engine random forest implementation right which i think in hindsight i probably should have just used that and just deployed it and gotten the mask out oh so you were getting the data out and then yeah in your own wow i was getting the composites yeah i i don't know why i just felt like that was the
SPEAKER_00That's the way for me to iterate if I needed to. If I had known how strong of a signal oil pump has in Sentinel-1, I wouldn't have. But it's hard to know until you look at it. Yes. I've just spoken to so many people who had, oh, I've tried it, and we tried this, and we tried that. And it just turned out to not be that difficult of a problem, at least in the areas I was looking at. and but it's so hard to know so you like guess in some so like
if you just did an earth engine and you're coming in it for the first time you guess at some input feature space you you do this one liner that's like train random you know it's like random train or something yeah and then you just deploy it over the map you look at
SPEAKER_02it and you're like well what do i change yep yeah there's no there's not that flexibility and also i think i wanted the probabilities right i think you can i think you can get that from the earth engine output yeah you can yeah oh but it's like but i wanted to you know again none of
SPEAKER_00this is like particularly obvious It's called smile. I'm looking at it now. It's called ee.classifier.smile.randomforest.
SPEAKER_02Yeah, and then you have to set the... You have to call a different method on the classifier itself that sets the output mode to probabilities, and then you can get the probabilities out. I've gone through this a few times. This is the only reason I know this.
SPEAKER_00Yeah, yeah.
SPEAKER_02But even with the probabilities, then it's like... To design an experiment where you're doing a true input feature selection search and hyperparameter search in a way that I think many data scientists are used to setting that type of thing up in a Python environment, right? With scikit-learn, it's like you got all this nice framework for setting that up and evaluating exactly how well...
SPEAKER_02Each one of these things worked. I think doing that... Doing that in Earth Engine is... is not as clean by a long run.
SPEAKER_00No, but I think you... You could. You almost certainly could. You could. There's like this... You can get the confusion matrix out, right? Like from the trained classifier. Yeah, you can. Or something like that.
SPEAKER_02They thought of everything. That's the thing.
SPEAKER_00It's crazy. Like they really thought of like, what if we just did everything in Earth Engine? Yeah, yeah. Which I think is... maybe unnecessary and i do think they're probably moving away from that a little with vertex and being able to deploy custom models and just you know connect them straight to earth engine but i would love for the other platforms to make it as easy to deploy a pixel wise random forest on them right like a
couple lines of code
SPEAKER_00basically right right um the vertex stuff in my opinion and to be fair i haven't used the latest iterations of these from the past couple years um because i'm not in a i don't i'm not in a position where i have unfettered like access to the google cloud ecosystem like i have very specific access due to what my company allows um but the
SPEAKER_02vertex connection is extremely non-intuitive um Like to get a neural net working in Vertex and deploying in your map application is, I think, heroic levels of effort. At least it used to be.
SPEAKER_00Yeah, I think it's just a very opaque process, right? And there's like rate limits on vertex, like quarters that you have to change. And if you don't, it just fails silently. I think when it does work and you've got a model deploying, just inferencing live and you're panning around in the Earth Engine code editor or on GMAP, that is pretty cool. yeah um which is like how random forests work which is insane yeah yeah yeah it's
pretty crazy to do that to be able to do that live but i agree that i think this there must be a better way to do what they're what they're doing and i and i think
SPEAKER_00maybe for commercial users um people could just maybe bring their own compute from the Google Cloud platform. Maybe we could just give people access to the cogs that are clearly stored somewhere, and maybe charge them a little for egress and all of that. But they could bring their own compute. And that way, you kind of have the most flexibility. You're talking about them to have a little backdoor raster
implementation. yeah yeah yeah i think it would be great for google cloud you know like um i think that it would be a like a lot of people are turned off by earth engine because of uh their impression of earth engine is like writing javascript in the code editor
SPEAKER_00and actually to be honest um A lot of it is. I don't know if the LandTrender implementation by, I think it's like Justin Bratton. I hope I'm saying that right. I think that's a JavaScript repository. There's a ton of really sort of complex code that's written in JavaScript and data scientists like to work in Python. And I just feel like if we just... could allow people yeah the backdoor the raster backdoor i
don't know like why not when you're ready to deploy finally you know like just do it through that instead of via earth engine where you're paying you know this premium that maybe you don't need to pay i don't know yeah yeah i think um yeah earth engine these days for me
SPEAKER_02um has basically been a godsend um just Like, the amount of data you can crunch through in so little time. Like, no tool is better at creating extremely complex composites than Earth Engine. I don't even think it's close. And I think when you set up your graphs correctly and... you're combining multiple data sets i think where it really shines is when you're like you have some input data and you're masking it with
another yes from a derived thing from another data set and those things aren't necessarily at the same resolution god knows how they were ingested um and then and then you just keep
SPEAKER_02building and building and building like that um that's something that earth engine is exceptional at um and it's just yeah and it abstracts so much complexity for you in a way that it's actually fairly intuitive in terms of writing the code it's like yeah i just update the mask here and i reduce the resolution here and and it's like boom boom boom it's like that would be very complex to implement correctly locally The hardest part in Earth Engine is remembering if the mask is
the pixels you want
SPEAKER_00or the pixels you don't want.
SPEAKER_02I still have to check half the time.
SPEAKER_00That's a great point. This is really turning into an Earth Engine podcast. I guess it makes sense because it's the platform we like the most. Yeah, it is. the ability to do that intersection and mask by is so underrated. I think, and again, it's like coming at this from a remote sensing earth observation perspective where you're like, oh, I'll have to overlay these various layers to get my final answer. And then the opposite, which is the machine learning data science perspective,
SPEAKER_00which is I have all my features, I have all my pixels, I just need to train a big enough model or a good enough model And that will solve all my problem. I'll probably not have to do that much post-processing. I won't have to filter by land cover, all of those kinds of things. And the fact that it's so easy to intersect data sets and that Earth Engine has such a large catalog via the official Google data sets, but also the awesome, yeah, the community data sets.
SPEAKER_00It basically means that anytime you have data, If you can put it into Earth Engine, you can immediately intersect it with every other data set on Earth Engine with like two lines of code. It's just so simple. It's truly insane. Yeah, that's pretty insane. I mean, a practical example is with the oil palm map, because it was a pixel wise model and it was using Sentinel-1 features. Sometimes built areas would show up a little bit.
And when I first saw this, I was like, oh, I'm going to have to resample some points.
SPEAKER_00And then I was like, wait a minute. I'll just use a land cover map and just remove those samples. Because I know that the oil palm, even if there is like a tiny oil palm stand in this city, it's not the kind of oil palm I'm interested in. And it was just done in like less than half a day, the post process.
SPEAKER_02Yeah. And I feel like that kind of post-processing with Urchin, which is like a very Earth Engine-y thing to do, I feel like is quite... underutilized um i feel like everybody thinks that i feel like when a lot of solutions i see are are very much like this is the problem we're trying to solve and then we're trying to solve it as well as possible with x y and z techniques and this is how well we do and here's where it fails and i think yeah
SPEAKER_02when you're actually solving problems, you get to use the entire world of products that everybody has created. And like land cover maps have gotten fairly good, you know, fairly good, I would say.
SPEAKER_00Good enough.
SPEAKER_02Good enough, yeah. And I think just those types of post-processing filtering steps of like, oh, yeah, and then I can just use this other data set to then get rid of all this noise, and then I don't have to touch my model in the slightest. Um, I feel like that's usually, that's often not the instinct. The instinct is, oh, I need to, my model needs to figure this out by itself.
SPEAKER_00Yeah. I, I wonder if that's kind of like, um, the academic mindset, which is like, right. We need novelty. Yeah. And novelty is like a model that can one shot this problem. Right. Uh, even if you could solve it some other way.
SPEAKER_02And then Earth Engine just lets you so easily use the ecosystem. I think that's... Yeah, it's a huge power. And I feel like they're kind of building a moat with... with the cloud score plus stuff dynamic world right betting fields it's like they just make it easier and easier to grab data and some of this data only lives on earth engine and nowhere else yep yep so good for them it's hard good for them yeah
SPEAKER_00i think I do have some concerns about, you know, how long is this going to be free for? Yeah. Because just, you know, the pressures of commercialization and everything like that. But I just feel like... you know, there's a lot of hype around... Actually, I don't even know if there's a lot of hype. There's hype around agents. And I just feel like if someone were to build a useful agent, it's probably a geospatial agent,
it's very likely going to be Google because they have the tools set up for an agent
SPEAKER_00to do something like that. Like if it could think through reason and be like, oh, I might want to use this land cover map and intersect it with this. If you could just... do an earth engine tool call it could it could do those experiments whereas on other you know touching the array seems like a very like there's way more complexity in asking like an autonomous agent to do that operation right right
SPEAKER_02right yeah that's it that's a really good point
SPEAKER_00Yeah. Not that I know if agents are going to be a thing or not. But if they are going to become a thing, I think Google's going to do it, at least for geospatial, just because of the tooling that they've built. Totally. Yeah. Okay. Is this an hour? I don't have the time on my clean food. We're at 58 minutes. Wow. Yeah. I just have a sense. You just have an internal clock.
SPEAKER_00Do we want any closing arguments or statements?
SPEAKER_02What is my closing argument?
SPEAKER_01I don't know.
SPEAKER_00I think it's that we love Earth Engine.
SPEAKER_01Yeah. Again, if anyone from Google is listening to this, please give us more export tasks.
SPEAKER_00We would like more export tasks, please. Yeah, and I guess the general feeling is that maybe some of the other platforms are coming at this the wrong way, maybe? Or I don't know. I don't want to say the wrong way. In a way that... that that doesn't jive with me as right i think it's my way of problem solving i feel like you know we in this discussion we have had massive gaps i think partially because we haven't used a lot of the other tools as much but i
think some of it too is that when i've tried to use some of these other tools i haven't gotten anywhere
SPEAKER_02that quickly and there's there's some sense of like When a platform is kind of limited, it's almost worse than doing it all by yourself. If you can't quite do it all on the platform, but you can do some of it or a piece of it, there's something about it that makes me not want to use it because it can't get me to the result.
SPEAKER_00I think that's a good point. I think the fact that we haven't switched over to anything else since Earth Engine is probably a statement about the stickiness of Earth Engine and the non-stickiness of other platforms we've tried.
SPEAKER_02Yeah. Yeah. Yeah, I mean, and in my current role, I'm in a situation where I have to deal with more data from more places than I normally would. Because for a particular story, I'm grabbing data from here and there, and it's not cataloged anywhere, and it's just a file that lives somewhere else. Yeah. I sometimes ingest that data into Earth Engine as assets. And the ingest process is non-ideal in a lot of ways.
SPEAKER_02But it does work. And then once it's in there, you can write all the same code. But often, I just go local a lot of the time. And so I still rely a lot on local processing. So I think as much as I love Earth Engine, I still don't use it for everything. I'm still using GDOL and Rasterio all the time. yeah yeah i guess uh since people leave comments if if you have built a company on planetary computer for technical reasons have chosen this
platform over earth engine or anything else i guess we would like to hear from you yeah about your reasons about your reasoning and why that is the case um even if it's pricing that's interesting to us um for sure yeah do you have any closing thoughts
SPEAKER_00That was my closing thought. That was your closing thought. Okay. No, I think I always get the feeling that people discount Earth Engine for some reason. Well, I know the reasons. Like the code editor definitely needs a refresh. Yeah. Maybe you could write Python in it too, but we have Jupyter Notebooks now, so I guess that's not as big of an issue, and GMAP and stuff like that.
But I think there's a lot of technology being built around the array approach,
SPEAKER_00and I would encourage people to just check it out, Earth Engine, and see if it can fulfill a need because... I think it's underrated, I would say.
SPEAKER_02Still underrated to this day, huh?
SPEAKER_00I think so. Just from talking to other people, you know, people are very much in the desk and even like czars now over cogs and things like that. But I just think you can not have to think about those problems if, you know, if you don't, if there's maybe not like a latency issue or, yeah, I mean, I guess pricing can determine that as well. But we're thinking about. Right. Yeah.
SPEAKER_00Cool. All right. Well, thanks. All right. See you later. See you later.
Relevant links:Carbon Plan Open Climate Risk A Risk Professional’s Guide to Physical Risk AssessmentsClimate Risk Companies Don’t Always AgreeClimate Services: The Business of Physical Risk(00:00) Chris Struggles to...
I flew to the East Coast and drank a beer with Krishna.(00:00) Sick New Jingle (00:20) Double IPA (01:20) The Gang Struggles to Define a Platform: Metadata, Storage, Compute, APIs (11:20) The Value of a Platform (16:00)...
(00:00) Time series, Landtrendr, New Mexico, Cuba. Is medium/low-resolution imagery underrated? (15:00) Bayesian Deforestation Detection, operation-oriented algorithms and platforms (27:00) Landtrendr in the West Bank,...
No pre-prepared discussion subject this time, we just winged it. (00:00) Imagine useful geospatial models, it’s easy if you try. (08:00) Academic papers, life at the paper mill, distilled .pub for geospatial. (24:30)...
(00:00) Differences between medium-res and high-res worlds: data sizes, off-nadir imaging, co-registration issues (28:42) High-res SAR/Umbra data detour: building damage estimation in Jamaica, matching imagery up to...