Weeknotes: 23rd November 2026
Icelandic challenges
I mentioned at the end of last week's weeknotes that for fun I'd build a habitat map of Iceland, and that off the bat it was a little obviously wrong, with glaciers appearing confidently as wetlands. This was just one of a series of spanners that the map threw into the works, so I ended up spending time trying to understand what is going on with the Iceland map and working out what I can possibly do about it.
We'll start with the glaciers-as-wetlands issue as we've already brought that one up. The root cause here is somewhat amusing, to me at least. It stems from two things:
- There a no species occurrences on glaciers, and my habitat map generation is ultimately driven by species occurrence data
- The IUCN Habitats Classification Scheme (Version 3.1) has no classification for glacier, ice, snow, etc.
So, there was no data to drive glaciers, and even if there was, we'd not be able to derive the habitat as in the habitat scheme we're targeting it doesn't exist anyway. Whilst at the rate of climate change might eventually prove this right, it is an interesting gap in the scheme. The IUCN are slowly transitioning away from the current habitats classification scheme to their newer Global Ecosystem Typology (GET), which covers a much wider range of realms in more detail - and indeed includes T6.1 Ice sheets, glaciers, and perennial snowfields. The description there gives you a clue as to perhaps why it's not in the original scheme: they're basically too cold for anything beyond micro-organisms to exist there. Still, as a habitat cartographer that doesn't help me make a map.
Looking at the two other habitat maps that I'm holding my map against we can see two different solutions to this. Jung et al classify the areas "6. Rocky Areas (e.g., inland cliffs, mountain peaks)" which I guess will eventually be true at current trajectories, but isn't true for current maps and will lead to significant over-prediction in Iceland for species Area Of Habitat (AOH) maps, Lumbierres et al has no translation from the original Copernicus land cover map, so effectively leaves these areas out, which is a better solution in my book: these areas just down't exist in the classification system we're all targeting.
However, whilst my habitat method is inspired by the Lumbierres et al approach, leaving a blank isn't going to work for me, because using the Tessera foundation model to generate the map from occurrence labels will always want to predict something for every pixel, and indeed for my original pass if we map the confidence of the predictions it was really certain about the glaciers being wetlands. This somewhat make sense, as the only labels we'd given our classifier came from species on the IUCN Redlist and their habitat preferences, and there are wetland species on Iceland, and I guess from space ice, aka solid water, is going to look a bit like it's more liquid sibling.
To solve this within our current method we need two things that we don't have:
- We need occurrences on glaciers, as my habitat map generation is ultimately driven by species occurrence data
- We need there to be a glacier category in the IUCN Habitats Classification Scheme (Version 3.1)
And so that's exactly what I made happen. The second one is easy enough: I have just added a new top level class to the scheme for my code, class 19, with the first, and I strongly suspect not the last, entry being "19.1: Glaciers". My habitat map can now have glacier pixels because they exist in my version of the scheme, and they will be happily ignored by the AOH process as no species is coded against them. This gives me the same properties as the Lumbierres et al habitat map, without needing to leave a gap. I could even publish it with those pixels removed, though I like to know what's there so in my own pipeline I'll hold on to them.
But what about the occurrence data? Currently we take species occurrence data from GBIF and eBird, and no species there will have this new habitat as one its preferences. We could take some polygon data source and create synthetic occurrences within the glacier, but I'd rather not do that, as I feel there's some nice truth to the fact that outside all of the statistical magic in the Tessera foundation model all our inputs come back to human measurements (the occurrences from citizen science data, the filtering using [Open Street Map data][osm], etc.). Instead I realised we hear all the time about people going out and taking glacier core samples and doing depth measurements, and so there must somewhere be an effective dataset of glacier occurrences I could use and treat as if glaciers were terrestrial vertebrates - and this is a reminder that whilst I occasionally look like an ecologist and I'm in fact a computer scientist and will happily make unsafe typecasts between incompatible forms of existence.
What surprised me about this approach was not that it worked, but how well Tessera did with just a few seed points. After looking around different glacial datasets I settled on the Fluctuations of Glaciers (FoG) database, being a combination of human driven data, samples taken at precise locations, and having a suitable licensing terms for including in the project. Although there is a lot of data in FoG, a lot of this is because a) it's a global dataset and b) it notes the change in dept at a location year over year, and for Iceland it turned out there were just 20 sample sites within Hofsjökull, one of the smaller glaciers in the middle of the country. But with just 20 pixels out of the 1,253,836,149 that make up Iceland we correctly identified most the glaciers within Iceland, the solid pale blue areas, with high confidence:

HabitatEntropyThe second view here is the measure of entropy, where darker colours are higher confidence. What's also good about this map is that it didn't seem to pick up any lakes or other water features as glaciers, which would have been a possible error.
The takeaway from this is less "oooh, we've solved glaciers", but I think it shows an important extensions from beyond the Lumbierres et al method that inspired my work.
When I started on the "Lumbierres et al by with Tessera" project I'd not realised that by mapping occurrences to land cover classes within the Copernicus land cover map, that team inherited all the work to go from source satellite data to a classified land cover map that the Copernicus team did. Tessera starts from similar raw inputs, but the point of the foundation model is to learn the patterns in the source data without committing them like the Copernicus map does. So this work needs to somehow fill in that training gap, which means I need to get data sources beyond just species data.
The glaciers just throw this into sharp relief, but I already knew this in a more messy way. The maps of Madagascar or Minas Gerais I've been producing clearly show problems that come from a lack of occurrence data, and although my maps validate somewhat highly, this is more due to the lack of diversity in the occurrence data in these data-deficient areas than it is that the broader map is good: I score higher than Lumbierres et al but a look at the map tells a different story. I now understand this is because of that gap between the original satellite data and the land cover map rather than I'm doing a worse job with the occurrence data than the Lumbierres et al team. The challenge is whether I can supplement the input occurrence data with outer sources of truth without compromising on the occurrence data being the key driver of habitats: the point is to build a map that reflects what the IUCN Redlist assessors see, not what is actually on the ground by some other measurement method.
That's not to say in Iceland my work is done: I found a new nemesis in the form of Cygnus cygnus, aka the Whooper Swan (it takes over top nemesis position from the woodpigeon). It turns out that Iceland has a lot of swans, so much so that an icelandic person I was asking for local insight from said you'll see a field that you think is full of sheep from afar and realise it's full of swans when you get close.
Why are swans a problem? Well, if we look at the IUCN Redlist data for the Whooper Swan we see it's habitat preferences listed as:
- 5.5 Permanent Freshwater Lakes (over 8ha) for both breeding and non-breeding season
- 14.1 Arable land for the non-breeding season
And the range is given as:

Pink is resident (both breeding and non-breeding), and the green is the breeding season (most of the non-breeding range is outside Iceland). So from this we can see that for the Swan most of Iceland is only fair game in the breeding season, and in the breeding season the only valid habitat is in permanent freshwater lakes over 8 hectares in size, and so we should see Swan occurrences in a very limited set of places in Iceland...

Basically we see swans occurring over a wide range of Iceland where the IUCN Redlist data implies they shouldn't: the swans didn't get the memo. If we zoom in on the area around Lögurinn we can see that the river (dark blue) has been correctly classified, but the land around it is being marked as lakes (light blue):

HabitatSatelliteThis is a nice caricature of a generally broader problem with species that can move, in that they will turn up where you don't expect them, but you hope statistically you can remove outliers. But in this case we have what looks to me (remember, a computer scientist, and only a pretend ecologist), like a case of limited assessment accuracy, with swans in the breeding season clearly occasionally venturing onto dry land. Until Shane sorts this out at source, I need to find another way to deal with data like this.
The obvious answer is to filter the occurrences based on lakes using Open Street Map data as I do for other areas, but I already know that OSM coverage is patchy in the same problem areas where occurrence data is patchy. To verify this assumption I compared OSM lake coverage with the HydroLAKES dataset, which is a global dataset of bodies of water over 10 hectares in size (which means it also gets artificial reservoirs). In comparison we can see:
| Region | Lakes | In OSM | Missing (under 10% covered) |
|---|---|---|---|
| UK | 2,189 | 95.9% | 3.0% |
| Iceland | 1,596 | 90.1% | 7.0% |
| Minas Gerais | 745 | 63.9% | 34.5% |
| Madagascar | 1,513 | 32.2% | 63.4% |
This actually makes a nice quantification of one of the challenges with OSM: it's really good in densely populated/affluent parts of the world, but in the places where we need it the most the coverage is quite poor at times.
So, despite my trying to limit the inputs to my habitat mapping outside of Tessera to those with human links, I think I need to accept some amount of other modelled inputs to try gain confidence otherwhere, so for now I've added HydroLAKES alongside OSM to filter occurrences for Whooper Swans in their breeding range to be only inside lakes.
Despite this we still get a lot of lake cover where we shouldn't in Iceland, and so there's another driver there I need to figure out. More on this next week!
LIFE pipeline maintenance
We have some new starters on the LIFE project, and to head of some of the questions I was getting asked, I realised I needed to do a better job at documenting some of the code, rather than relying on the old-guard having already some context. The Python AOH calculator package does have quite a bit of documentation hidden in the code, so I took the time to take the old README and the code comments and make a proper set of documentation for the package. Is it comprehensive yet? No. Is it more accessible than what was there before? Yes.
I've never used readthedocs.io before, as Yirgacheffe has its own website with the docs on, but I figured paying out of my own pocket for the domain for every Python package I make isn't that sustainable, and readthedocs.io is a very well trodden path in this domain, so hopefully helps with documentation discovery.
Related, Emilio Luz-Rucca, one of the more established PhD students on the project, filed a fantastic bug report on Yirgacheffe. He found an issue, and dug into it in enough detail that he sent me a stand alone reproduction with Python code and data to exercise the bug. It's rare I get that level of detail from a computer scientist let alone a zoologist, so a huge thanks to Emilio.
In the end it turned out that I had two bits of logic I'd implemented in different parts of Yirgacheffe without considering how they'd interact - a classic problem with any project that gets sufficiently large. What Emilio had found was that if you had two GeoTIFF files with the band names the same then you'd get the wrong answer. This is because the internal expression optimisation code is keyed in part on the layer name, which is usually the file name, but to help with debugging at some point I'd changed the logic to use the band name within the GoeTIFF as the layer name, so these two distinct files with the same internal band names looked identical 🤦 A rookie mistake, but easily fixed, particularly as I had a strong hunch from the moment I saw Emilio's reproduction code.
One never likes to have bugs in their code, but it will always happen, and so then the next best thing is to make finding and understanding them as easy as possible. This is where having lots of unit tests helps even though they didn't catch the bug: they told me where it couldn't be, so that also helped narrow down what could be going on.
POP4
I went to POP4: A climate conference for arts, culture and music, a day long conference looking at the intersection of the climate emergency and the local cultural sector. I have to confess, when I signed, I'd not realised how closely focussed on the cultural sector it would be - it turns out I wasn't alone in that misunderstanding - but it was still interesting to learn both about a different set of concerns, and just have my expectations reset a little. Despite the all white male panel in the opening session shown in the photo, the other sessions did thankfully have a more diverse set of hosts, including a strong contingent from the local city and regional authorities, and from national arts organisations.

My main takeaways were:
- A reminder that to mot people climate is carbon and energy. I've got so used to sitting in the bubble of biodiversity impacts, and I've been bought in to the energy transition for a long time (solar on house, electric vehicles, etc.) that I kinda of forget that this is still a fight we have. Like, I know it's not won, but I guess I take the whole thing as read, and so it was good for me to sit in a session where people are struggling to do the right thing on energy and looking at ways to win that battle to have a sort of complacency check on my behalf.
- There was a representative from Ecotricity Buisness there, and event organisers, and I learned that there is a secondary market for grid connections now, which was quite depressing. Basically the tl;dr seems to be that the UK national grid infrastructure can only take so much additional load at a time, so there is a queue system for say wind-farms looking to connect to the grid who will have to wait potentially years before they can join. So what happens is companies will just grab the slots and sit on them and then sell that slot to a wind-farm as it comes online. It seemed there was a different but similar process for festivals trying to get grid access. The efficiency of capitalism is always somewhat in the places we need it least it seems (to me).
- The majority energy costs for many cultural events is not in the event itself, but in the transport to and from the event, based on data from the hosts Future Yard and Liverpool council. There's an obvious challenge with many events that finish after public transport shuts down.

- There are a lot of enthusiastic and concerned people in the cultural space in the greater Liverpool area from a wide range of backgrounds. I chatted to event organisers, people who ran community spaces, and people who attend cultural events and were concerned about their impact. I had a couple of conversations with local educators and artists where we discussed how a science practitioner in this space might be able to relate collaborate on what they do.
Virtual bird watching
Seems people are buying GTA 6 to do bird watching, which reminds me of this video I meant to post a while ago on bird watching in Red Dead Redemption 2:
Not only does Wren cover what birds RDR2 gets correct and wrong, but they also highlight how there's a lot of historical content around birds being farmed almost to extinction at the time if you look for it, which normally would pass you by.
I have to confess, I have a love of video game maps, somewhat more than the actual main quest line itself, so I'm a big fan of what seems to have become the "AnyAustinification" of youtube, which is to say anthropology done semi-seriously in videogames, most notably by Any Austin:
Video games form an important liminal space in our cultural lives now, and so I think this sort of thing is really interesting. I spent a lot of time keeping up with friends and family in these virtual spaces, given that I live distant from many of both. Whilst there are more technical videos on the impressive construction details of the maps, what I like about Any Austin's videos in particular is that he covers the more human implications of the design decisions in this spaces and how they use the detail they chose to apply or not apply to give a sense of something.
I spend my day making maps by scientists, for scientists - and indeed one of the discussions I was having with artists and educators at POP4 was to try and find ways to take these maps and make them more accessible to a broader audience. For that they will need to say things in a different way or say different things than what a scientist expects, and these videos mostly remind me that that set of design decisions is harder than you'd think.
The downside of GTA with all this is that whilst Rockstar reliably make the most detailed and immersive open worlds to set their games in, they are ultimately coupled to a style of video game I don't personally find appealing, and with increasing realism find harder to ignore that side of things. Perhaps my next job I can find a way to make a biodiversity rich open world game that isn't centred around death and violence of people, but perhaps the struggle to avoid that at a more global scale? I guess the challenge is Rockstar know what most people are willing to pay for, and it probably isn't a woke version.
Was software just always too complex for humans?
That said, I assume there will be a job for me in the future, but having read Anil's latest blog post "Was software just always too complex for humans?" that is less clear. I've not properly internalised it all, but I think it's an interesting provocation and test of Betteridge's law.
As ever with a lot of these LLM/coding arguments I think the LLM is just an accelerant on an underlying problem. "Software Engineering" is one of the greatest lies ever told, and I say this as someone who has an undergraduate degree in Software Engineering rather than Computer Science (in which I have a doctorate). I know real engineers, I've seen accreditation and all the other things that goes with that. And I've seen "software engineering" - being a director of a software security product quickly tells you that what we're doing isn't engineering. There is no rigorous spec, there is no acceptance, and those of us that care make do with as much as we can lash together: unit testing, continuous integration, QA teams, etc.
LLMs/coding agents just amplify this rather than are the source of the problem, and they obviously amplify the pitfalls of this via faster exploitation. We build software beyond the limits of our capabilities to understand/manage, and we have done so willingly in the seek of other forms of success beyond correctness. This pressure isn't unique to our industry, but in most other disciplines the cost of failure was more obviously likely to kill someone so they were regulated in a way we haven't been. If you want a vibe coder just find me someone who writes pages of C by hand and doesn't write any tests.
I struggle with this in making data-science pipelines: if I get my code wrong at best I'll feel sheepish when someone points out a bug, but at worst someone will publish a paper that is wrong and perhaps that'll hurt their career, or governments will use our biodiversity analysis to make a globally impactful decision, however minor, and then we'll make the environment worse rather than better, just because I forgot to carry the two somewhere. I then look at my habitat map work and compare it with some well-put-together AI-generated habitat maps last week, which came will detailed explanations of how they were put together and validation results, and wonder what I'm doing messing around trying to understand why I've urbanised the top of the Black Cullin mountain range... and that's despite having high validation scores on my map. So perhaps the missing part of going spec heavy as Anil suggests is we first need to do a better job of acceptance, not just specification.
As I say, I've not properly thought through all of Anil's arguments, and I feel a need to push back against it somewhat, but I hope I've made it clear that I think it's an interesting thought exercise and one we as an industry do need to grapple with whether we like it or not given the CVE avalanche that is hitting us (and knowing CVEs are just one strand of failure, there are others that are happening too).
Tags: weeknotes