<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://nasirlukman.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://nasirlukman.github.io/" rel="alternate" type="text/html" hreflang="en" /><updated>2026-11-26T16:53:15+00:00</updated><id>https://nasirlukman.github.io/feed.xml</id><title type="html">Earth.etc</title><subtitle>Remote sensing and geospatial data science blog by Muhamad Nasir Lukman: hyperspectral imaging, radar, and machine learning for mining, forest, and environmental monitoring.
</subtitle><entry><title type="html">Watching an Open-Pit Mine From Space: Growth, Active Fronts, and Ground Movement</title><link href="https://nasirlukman.github.io/blog/2026/mine-monitoring/" rel="alternate" type="text/html" title="Watching an Open-Pit Mine From Space: Growth, Active Fronts, and Ground Movement" /><published>2026-11-20T20:36:10+00:00</published><updated>2026-11-20T20:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/mine-monitoring</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/mine-monitoring/"><![CDATA[<p>For the past few weeks, I’ve been building a monitoring system for an open-pit mine in Indonesia. Mapping a mine from space is not new; I have written about it <a href="https://nasirlukman.github.io/blog/2025/illegal-mining/">before</a>. Most mine maps, though, answer only one question: <em>how big is the mine?</em> Once you start talking to the people who actually run (or oversee) a mine, the questions become more specific. What changed this month? Where are they actually digging right now? And is the ground they are <em>not</em> touching staying put?</p>

<p>So instead of a single map, I ended up with four layers, each answering one of those questions. All of them are built from free satellite data: Landsat and Sentinel-2 (as <a href="https://hls.gsfc.nasa.gov/">HLS</a>), Sentinel-1 radar, ALOS PALSAR-2 ScanSAR, and interferometric products from <a href="https://hyp3-docs.asf.alaska.edu/">ASF HyP3</a>. This post walks through them one by one.</p>

<h2 id="1-the-annual-map-how-big-is-the-mine">1. The Annual Map: How Big Is the Mine?</h2>

<p>The foundation is an annual land cover map. For every year from 2015 to 2025, I built a yearly stack on a 30 m grid: medians of optical bands and indices from HLS, Sentinel-1 backscatter statistics, and PALSAR-2 L-band backscatter. A Random Forest model trained on labeled points then classifies each pixel as forest/other, mining, water, built-up, or vegetation clearing. A bit of post-processing (majority filter, removing tiny speckles) cleans up the result.</p>

<p>Combining sensors matters here. Optical data tells bare ground apart from vegetation very well, but the tropics are cloudy, so some years have big gaps. Radar sees through clouds and adds information about surface roughness and structure, which helps to separate, for example, a fresh clearing from an actual mine pit.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_17_annual_land_cover.webp" class="img-fluid rounded" width="100%" height="auto" alt="Animation from 2015 to 2025. Left: yearly median HLS true color image of an open-pit mine surrounded by forest. Right: the land cover map of the same year, with the mine in brown on a pale green background, water in blue and built-up in dark gray. The mine grows from a small patch in the south-west to a large complex." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Yearly HLS true color composite (left) and the land cover map (right), 2015 to 2025.
</div>

<p>The mine grew from about <strong>200 ha in 2015 to 1,440 ha in 2025</strong>, roughly seven times bigger in ten years (Figure 2). The growth is not constant: it accelerated after 2022, with around 250 ha opened per year between 2022 and 2024.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_annual_area-480.webp 480w,/assets/img/post_17_annual_area-800.webp 800w,/assets/img/post_17_annual_area-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_annual_area.webp" class="img-fluid rounded" width="100%" height="auto" alt="Line chart of the mine area per year from 2015 to 2025, rising from 201 ha to 1,440 ha, with steeper growth after 2022." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Mine area per year from the annual land cover maps.
</div>

<p>Mines don’t only grow, though. Looking closely at the animation, some parts of the mine turn green again over the years. Counting them takes a bit of care, because a classifier can easily flicker between “mine” and “vegetation” from one year to the next. So I only counted a pixel as revegetated if it was mine for at least two years in a row, and then vegetation for at least two years in a row. These pixels really are greening: their NDVI goes from about 0.5 to about 0.7 within two years. That is still below the surrounding forest (around 0.85), so this is young vegetation. Unfortunately, from space, planted reclamation and natural regrowth look the same.</p>

<p>Between 2017 and 2024, about <strong>195 ha</strong> of mine land turned green again, with a peak of 41 ha in 2024 (Figure 3). For comparison, about 1,600 ha were opened in the same period, so roughly one hectare turns green for every eight hectares opened. The 2025 bar is provisional: we need the 2026 map to know whether it stays green.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_annual_revegetation-480.webp 480w,/assets/img/post_17_annual_revegetation-800.webp 800w,/assets/img/post_17_annual_revegetation-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_annual_revegetation.webp" class="img-fluid rounded" width="100%" height="auto" alt="Bar chart of mine land turning green again per year: 9 ha in 2017, 19 in 2018, 27 in 2019, 31 in 2020, 20 in 2021, 28 in 2022, 20 in 2023 and 41 in 2024, about 195 ha in total. The 2025 bar, 56 ha, is hatched and marked provisional." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Mine land turning green again per year (reclamation or natural regrowth). A pixel counts if it was mine for at least two years and then vegetation for at least two years; 2025 cannot be confirmed yet.
</div>

<h2 id="2-the-monthly-update-what-changed-this-month">2. The Monthly Update: What Changed This Month?</h2>

<p>An annual map is great for the big picture, but a mine can open tens of hectares in a single month. For 2025, I took the 2024 annual map as a starting point and updated it image by image: every Sentinel-1 acquisition (every 12 days) and every HLS image with enough clear sky.</p>

<p>The rules are deliberately simple:</p>

<ol>
  <li>
    <p><em>Evidence of a new opening</em>: a bare-ground look in an optical image (NDVI drops, the bare soil index rises), or a drop in radar backscatter (VH) that is still there 12 days later.</p>
  </li>
  <li>
    <p><em>New mining</em>: within 600 m of the existing mine, with two bare optical looks, or one bare look plus a confirmed radar drop. Farther away, the same evidence is called <em>vegetation clearing</em> instead.</p>
  </li>
  <li>
    <p><em>Unconfirmed opening</em>: evidence that is not confirmed yet. If the evidence disappears (the area turns green again), the candidate is simply removed.</p>
  </li>
  <li>
    <p><em>Water</em>: pits filling up and ponds drying out are followed too, because water hides what is going on underneath.</p>
  </li>
</ol>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_17_monthly_maps.webp" class="img-fluid rounded" width="100%" height="auto" alt="Monthly animation for 2025 showing the mine in brown, unconfirmed openings in purple, vegetation openings in ochre, water in blue and buildings in dark gray on a pale green vegetation background. New openings appear at the mine edges through the year." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Monthly map updates for 2025. Purple patches are openings that are not confirmed yet; ochre patches are vegetation clearings far from the mine.
</div>

<p>In 2025, the system found about <strong>300 ha of new mining</strong> (Figure 5). The months are not equal, and part of that is the weather rather than the mine. There was not a single clear optical image from January to March (rainy season). Radar kept seeing the changes, and they appear as <em>unconfirmed</em> openings in the animation, but they had to wait for the first clear optical look in April to be confirmed. That is a good part of the big April bar. July was the busiest month.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_monthly_new_mining-480.webp 480w,/assets/img/post_17_monthly_new_mining-800.webp 800w,/assets/img/post_17_monthly_new_mining-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_monthly_new_mining.webp" class="img-fluid rounded" width="100%" height="auto" alt="Bar chart of new mining per month in 2025: zero from January to March, 88 ha in April, 40 in May, 31 in June, 97 in July, then between 2 and 18 ha per month until December. About 298 ha in the year." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Confirmed new mining per month in 2025.
</div>

<p>How good is it? I checked an earlier version of the detector visually, patch by patch: about 86% of the new-mining patches were correct, or 99% by area, because the wrong ones were mostly small fragments at the mine edges. Good enough for monthly reporting.</p>

<h2 id="3-active-vs-inactive-front-where-are-they-actually-digging">3. Active vs. Inactive Front: Where Are They Actually Digging?</h2>

<p>Here is something the mine area alone does not tell you. A 1,600 ha mine is not 1,600 ha of digging. Large parts are old benches, waste dumps, haul roads or areas waiting for the next phase. So where is the actual activity?</p>

<p>For this, I used <strong>InSAR coherence</strong>. A simple way to think about it: each radar pixel has a sort of “fingerprint”, and coherence measures how much that fingerprint changed between two Sentinel-1 passes 12 days apart. Bare ground that nobody touches keeps its fingerprint (coherence around 0.9). Ground that is dug, dumped or driven over loses it (around 0.3, the same as forest, where the leaves never stop moving). So, inside the mine, <em>low coherence = active</em>.</p>

<p>Of course, it is not that simple. Rain between the two dates also destroys coherence, everywhere. To deal with that, each 12-day pair is rescaled between two references: stable forest (0) and the undisturbed part of the mine (1). Pairs where even the undisturbed mine lost its coherence are thrown away; that was 5 of the 31 pairs in 2025. Areas that look vegetated in optical images, or very dark in radar (ponds, radar shadow), are excluded too, because there low coherence means something else.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_17_active_inactive.webp" class="img-fluid rounded" width="100%" height="auto" alt="Monthly animation for 2025 of the mine split into active front in vermilion and inactive front in brown, with water in blue and built-up in dark gray on a pale green background. Active patches move around the pits from month to month; a haul road stays active." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 6. Active (vermilion) and inactive (brown) parts of the mine, month by month in 2025.
</div>

<p>Only <strong>12 to 29% of the mine is active in any given month</strong> (Figure 7), between about 160 ha in January and 460 ha in October. The active patches move around from month to month, which is exactly what you would expect from a mine moving its working faces. A nice sanity check: the main haul road connecting the pits is active in every single month of the year.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_active_inactive_chart-480.webp 480w,/assets/img/post_17_active_inactive_chart-800.webp 800w,/assets/img/post_17_active_inactive_chart-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_active_inactive_chart.webp" class="img-fluid rounded" width="100%" height="auto" alt="Stacked bar chart per month of 2025: active front in vermilion at the bottom and inactive front in brown on top. The total mine grows from 1,322 to 1,618 ha; the active share ranges from 12% in January to 29% in October." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 7. Active and inactive front per month. The label is the share of the mine that is active.
</div>

<p>I have not validated this layer against ground data yet, so take the exact numbers with a pinch of salt. The patterns, though, look very plausible.</p>

<h2 id="4-ground-movement-is-the-idle-ground-stable">4. Ground Movement: Is the Idle Ground Stable?</h2>

<p>This is the part I’m most excited about. The same radar pairs carry another piece of information: the <em>phase</em> of the signal. The phase difference between two passes measures the change in distance between the ground and the satellite, and one full color cycle in an interferogram is only 2.8 cm. In principle, this lets us measure ground movement of a few centimeters from a satellite almost 900 km away.</p>

<p>In practice, it only works where the ground keeps its fingerprint, so I only used the part of the mine that was <strong>never active in 2025</strong> (about 520 ha). The steps are:</p>

<ol>
  <li>
    <p><em>Throw away the rainy pairs</em> (the same 5 as before).</p>
  </li>
  <li>
    <p><em>Remove the atmosphere, as far as possible</em>: humidity also delays the radar signal, differently on every date. For each pair, a plane and the median over the area are removed, so all values are relative to the idle mine as a whole.</p>
  </li>
  <li>
    <p><em>Average all 26 remaining pairs</em> into one rate per pixel, in cm/month, together with its uncertainty (typically about 0.3 cm/month).</p>
  </li>
  <li>
    <p><em>Keep only what is clearly real</em>: a movement is significant when it is at least twice its own uncertainty and at least 0.5 cm/month.</p>
  </li>
</ol>

<p>But is it real, or just the weather? Real movement keeps its direction, while weather changes from date to date. So I split the year in two halves and computed the movement from January–June and July–December separately: the same spots move the same way in both halves (correlation of 0.69). Weather alone would give a correlation close to zero.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_ground_movement_map-480.webp 480w,/assets/img/post_17_ground_movement_map-800.webp 800w,/assets/img/post_17_ground_movement_map-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_ground_movement_map.webp" class="img-fluid rounded" width="100%" height="auto" alt="Map of the average ground movement in 2025 in centimeters per month, on the parts of the mine that were never active. Red areas move away from the satellite (settling), blue areas move towards it. Significant areas are outlined. The parts of the mine that were active at some point in the year are shown in light gray." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 8. Average ground movement in 2025 in the never-active part of the mine. Red: away from the satellite (settling). Blue: towards the satellite. Outlined: significant movement. Gray: parts of the mine that were active at some point in the year (not measured).
</div>

<p>More than half of the idle mine is stable within ±0.5 cm/month. But there are two clear groups of movement (Figure 9):</p>

<ul>
  <li>
    <p><strong>About 84 ha are settling</strong> at around 1 cm/month, about 11 cm over the year. And they are slowing down: around 1.4 cm/month from January to March, down to about 0.5 cm/month at the end of the year. That is the typical behavior of waste dumps or backfill compacting after they were placed. A few hectares settle faster than 2 cm/month; those are the spots I would ask a geotechnical engineer to look at.</p>
  </li>
  <li>
    <p><strong>About 51 ha move towards the satellite</strong> at a similar pace. This one needs careful interpretation, because “towards the satellite” does <em>not</em> necessarily mean the ground is rising. Sentinel-1 on this track looks westward and down, so ground sliding eastward, for example down an east-facing dump slope, also moves towards the satellite. It could also be the floor of a recently excavated pit rebounding after the weight above it was removed. Interestingly, 70% of these areas were first mined in 2022–2024, so this is young ground.</p>
  </li>
</ul>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_ground_movement_series-480.webp 480w,/assets/img/post_17_ground_movement_series-800.webp 800w,/assets/img/post_17_ground_movement_series-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_ground_movement_series.webp" class="img-fluid rounded" width="100%" height="auto" alt="Line chart of cumulative ground movement through 2025: the settling areas reach about -11 cm and the towards areas about +10 cm by the end of the year, both curving slightly flatter over time; the rest of the never-active mine stays near 0." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 9. Cumulative movement through 2025 for the significant settling areas, the significant "towards" areas, and the rest of the never-active mine. Dotted lines cross the pairs lost to rain.
</div>

<p>There are important limitations here. With only one viewing direction, I cannot separate vertical from horizontal movement. All values are relative to the idle mine, so if the whole area is settling slowly, that part is invisible. And without ground survey data (prisms or GPS), this remains a well-supported hypothesis rather than a measurement. Adding the ascending Sentinel-1 orbit, which looks eastward, would separate vertical from east–west movement, and that is probably the next step.</p>

<h2 id="closing-thoughts">Closing Thoughts</h2>

<p>What I like about this exercise is how much more a mine “says” once you look at it with different sensors and at different time scales. The annual map shows how big it is. The monthly update shows what is new. Coherence shows where the activity actually is. And the phase shows whether the ground that is left alone is really stable. Each layer answers a question the previous one cannot.</p>

<p>All of this runs on free and open data, on a normal workstation. Ten years ago, centimeter-scale ground movement monitoring of a mine was something you would buy from a specialized company, if you could afford it at all. Today, the main bottleneck is no longer data or computing power, but careful interpretation: knowing what the signal can and cannot tell you, and being honest about it.</p>]]></content><author><name></name></author><category term="Geoscience" /><category term="Environment" /><category term="mine-monitoring" /><category term="insar" /><category term="sar" /><category term="sentinel-1" /><category term="land-cover" /><category term="machine-learning" /><category term="indonesia" /><summary type="html"><![CDATA[Mapping an open-pit mine's growth, monthly changes, active fronts, and centimeter-scale ground movement (InSAR) using only free satellite data.]]></summary></entry><entry><title type="html">Comparing Tanager-1 and EnMAP Hyperspectral Imagery for Mineral Mapping</title><link href="https://nasirlukman.github.io/blog/2026/tanager-1-enmap-comparison/" rel="alternate" type="text/html" title="Comparing Tanager-1 and EnMAP Hyperspectral Imagery for Mineral Mapping" /><published>2026-09-04T21:36:10+00:00</published><updated>2026-09-04T21:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/tanager-1-enmap-comparison</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/tanager-1-enmap-comparison/"><![CDATA[<p>Hyperspectral satellites are becoming increasingly available for geological and mineralogical applications. With more sensors providing imagery across the VNIR and SWIR regions, we now have more opportunities to observe the same geological targets using different instruments.</p>

<p>Because hyperspectral sensors differ in their spectral resolution, spectral sampling, signal-to-noise characteristics, spatial resolution, and acquisition conditions, it is interesting to examine how these differences affect the information that can be extracted from the same geological target. These differences may have limited impact when looking at broad spectral patterns, but can become important when trying to detect relatively small absorption features or subtle differences in their wavelength positions.</p>

<p>Recently, as part of my participation in the <a href="https://learn.planet.com/2026-Tanager-Open-Data-Competition.html">Tanager Open Data Competition</a>, I started working with Tanager-1 data and decided to compare it with EnMAP over the same geological target. The objective is not to perform a controlled sensor calibration or validation, but rather to explore how the two sensors represent the same mineralogical target and whether differences in their characteristics become apparent during spectral analysis and mineral mapping.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_tanager_enmap_sateellite-480.webp 480w,/assets/img/post_19_tanager_enmap_sateellite-800.webp 800w,/assets/img/post_19_tanager_enmap_sateellite-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_tanager_enmap_sateellite.webp" class="img-fluid rounded" width="100%" height="auto" alt="Illustration of the Tanager-1 and EnMAP satellites in orbit." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Tanager-1 and EnMAP satellites
</div>

<p>To make the comparison as reasonable as possible, I first needed to identify areas where open-access observations from both satellites overlap. I then further screened the candidate overlaps based on factors that could influence the measurements, including spatial overlap, temporal separation, solar elevation, viewing geometry, and cloud conditions. These filters cannot completely remove the effects of different acquisition conditions, but they help reduce some of the external factors that could otherwise complicate the comparison.</p>

<h2 id="study-area-selection">Study Area Selection</h2>

<p>The first challenge was finding suitable observations. A direct comparison between two satellite sensors is not as simple as finding two images covering the same location. Ideally, the observations should have a sufficiently large spatial overlap, relatively small temporal separation, similar illumination conditions, and similar viewing geometry.</p>

<p>This is particularly important for hyperspectral data because the spectrum measured by a sensor is not controlled by the material alone. Surface moisture, illumination, viewing geometry, atmospheric conditions, and small differences in the location represented by corresponding pixels can all affect the observed reflectance.</p>

<p>For this comparison, I prepared a function that scans the Tanager-1 and EnMAP STAC APIs to identify spatially overlapping observations and tabulates the results together with relevant acquisition metadata. The function can rapidly screen a large number of candidate observations based on their spatial and temporal relationships, while also calculating the actual overlapping area between acquisitions.</p>

<p>The resulting overlaps can then be filtered based on cloud cover, solar elevation, viewing geometry, and temporal separation. Finally, the candidate areas are inspected using interactive maps to identify overlaps containing interesting geological or mineralogical targets.</p>

<p>One of the most interesting overlaps was located near Salt Lake City, Utah, USA (Figure 2). The selected area contains exposed surfaces associated with a small mining and disposal facility. These bright and relatively bare surfaces provide useful targets for hyperspectral analysis because they are less affected by vegetation than the surrounding areas and contain potentially diagnostic mineral spectral features.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_disposal_area-480.webp 480w,/assets/img/post_19_disposal_area-800.webp 800w,/assets/img/post_19_disposal_area-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_disposal_area.webp" class="img-fluid rounded" width="100%" height="auto" alt="High-resolution imagery of a disposal facility north of the Bingham Canyon Mine, Utah, USA." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Selected study area at a disposal facility north of the Bingham Canyon Mine, Utah, USA. Bingham Canyon is one of the largest and deepest open-pit mines in the world.
</div>

<p>The selected Tanager-1 and EnMAP observations were acquired approximately 19 days apart. While the dates are not identical, the selected observations have relatively similar acquisition geometries, with a difference of about 5° in solar elevation and 3° in viewing geometry (Table 1). These criteria were used during the overlap screening to reduce differences caused by illumination and observation geometry. The remaining temporal difference may still introduce some variation in surface conditions, but the selected observations provide a reasonably comparable basis for exploring how the two sensors represent the same geological target.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_overlap_table-480.webp 480w,/assets/img/post_19_overlap_table-800.webp 800w,/assets/img/post_19_overlap_table-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_overlap_table.webp" class="img-fluid rounded" width="100%" height="auto" alt="Acquisition metadata of the selected Tanager-1 and EnMAP overlap." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Table 1. Metadata of the selected Tanager-1 and EnMAP overlap.
</div>

<p>Both datasets were processed to surface reflectance and subjected to basic quality masking, including handling of missing pixels and masking of cloud, cloud shadow, and cirrus pixels (Figure 3).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_overlalp_coverage-480.webp 480w,/assets/img/post_19_overlalp_coverage-800.webp 800w,/assets/img/post_19_overlalp_coverage-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_overlalp_coverage.webp" class="img-fluid rounded" width="100%" height="auto" alt="Overlap between Tanager-1 and EnMAP coverage in the western part of the Salt Lake City area, Utah, USA." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Overlap between Tanager-1 and EnMAP coverage in the selected study area. The red box indicates the disposal area selected for spectral comparison.
</div>

<h2 id="comparing-the-spectra">Comparing the Spectra</h2>

<p>Rather than trying to compare hundreds of bands at once, I first compared individual spectra from corresponding pixels within the overlapping area of Tanager-1 and EnMAP.</p>

<p>The easiest way to start comparing hyperspectral images is to look at the spectra directly. For this initial exploration, I developed a simple Python workflow in a Jupyter Notebook using <em>ipyleaflet</em> to interactively explore the imagery. By clicking on the map, the corresponding spectra from both sensors are extracted and plotted together. This provides a simple way to inspect the general spectral shape across the study area and identify any obvious differences between the two datasets. Figure 4 shows several example spectra sampled from the study area.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_spectra_sample-480.webp 480w,/assets/img/post_19_spectra_sample-800.webp 800w,/assets/img/post_19_spectra_sample-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_spectra_sample.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of ten sampled Tanager-1 and EnMAP spectra." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Ten selected sample locations and their spectral comparison.
</div>

<p>The comparison shows that the spectra from both sensors are highly similar. Both sensors reproduce the general spectral response of the surface, and the main mineralogical features are recognizable in both datasets. In the VNIR, the absorption features around ~400, ~600, and ~900 nm are consistent with iron-oxide minerals, particularly goethite. In the SWIR, the absorption feature around ~2200 nm is associated with Al-OH minerals, with the distinctive doublet in this region being characteristic of kaolinite.</p>

<p>The overall albedo, or spectral brightness, was also broadly similar between the two sensors. Some differences in brightness were visible for individual pixels, which could be related to differences in solar illumination, viewing geometry, and local topography. These effects are expected when comparing observations acquired by different sensors and are difficult to completely separate from sensor-related differences.</p>

<p>Since the disposal area appears to have a relatively homogeneous surface composition, as indicated by the similar spectral shapes across the sampled pixels, I also calculated the mean spectrum for the entire area and compared the two sensors (Figure 5). This provides a more representative view of the overall spectral response while reducing some of the pixel-level variability.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_spectra_in_disposal_area-480.webp 480w,/assets/img/post_19_spectra_in_disposal_area-800.webp 800w,/assets/img/post_19_spectra_in_disposal_area-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_spectra_in_disposal_area.webp" class="img-fluid rounded" width="100%" height="auto" alt="Individual pixel spectra and the average spectrum of the disposal area from Tanager-1 and EnMAP." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Average and individual spectra within the selected disposal area from Tanager-1 and EnMAP imagery.
</div>

<p>The most noticeable difference is that the Tanager-1 spectra generally appeared smoother, while the EnMAP spectra showed considerably more spectral variation, particularly around the 900–1000 nm region. To quantify this observation, I calculated spectral roughness using the variance of the first spectral derivative.</p>

<p>The first derivative emphasizes rapid changes between adjacent wavelengths. Therefore, its variance provides a simple measure of high-frequency spectral variation, or spectral roughness. I calculated this metric separately for different spectral regions to determine whether the difference was consistent across the spectrum. The results are shown in Table 2.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_spectra_roughness_table-480.webp 480w,/assets/img/post_19_spectra_roughness_table-800.webp 800w,/assets/img/post_19_spectra_roughness_table-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_spectra_roughness_table.webp" class="img-fluid rounded" width="100%" height="auto" alt="Table of spectral roughness in the lower, middle, and upper ranges of the spectrum, represented by the variance of the first derivative as a proxy for noise." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Table 2. Spectral roughness represented by the variance of the first derivative as a proxy for noise
</div>

<p>As shown in Table 2, noise levels are generally higher at shorter wavelengths. Tanager-1 consistently exhibits smoother, less noisy spectra compared to EnMAP across all spectral windows. This contrast is most significant in the VNIR range, where the spectral roughness of EnMAP is approximately an order of magnitude (10x) higher than that of Tanager-1.</p>

<p>Beyond spectral roughness, the depth of individual absorption features can also be examined quantitatively. To do this, the relevant wavelength regions were isolated, and continuum removal was applied to the spectra of pixels within the selected polygon. Continuum removal normalizes the local spectral background, allowing the position, depth, and shape of individual absorption features to be compared between Tanager-1 and EnMAP using a common baseline.</p>

<p>The continuum-removed spectra for the VNIR and SWIR regions from both sensors are presented in Figure 6. The distributions of the measured absorption depths are shown as histograms in Figure 7.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_continuum_removed_spectra-480.webp 480w,/assets/img/post_19_continuum_removed_spectra-800.webp 800w,/assets/img/post_19_continuum_removed_spectra-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_continuum_removed_spectra.webp" class="img-fluid rounded" width="100%" height="auto" alt="Continuum-removed spectra for the VNIR and SWIR regions. Each arrow shows the deepest absorption feature of interest related to goethite (VNIR) and kaolinite (SWIR)." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 6. Continuum-removed spectra for the VNIR and SWIR regions. Each arrow shows the deepest absorption feature of interest related to goethite (VNIR) and kaolinite (SWIR).
</div>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_feature_depth_histogram-480.webp 480w,/assets/img/post_19_feature_depth_histogram-800.webp 800w,/assets/img/post_19_feature_depth_histogram-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_feature_depth_histogram.webp" class="img-fluid rounded" width="100%" height="auto" alt="Histograms displaying the distribution of absorption feature depths for goethite and kaolinite in the study area." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 7. Histograms displaying the distribution of absorption feature depths for goethite and kaolinite in the study area.
</div>

<p>Following continuum removal, the depth of the diagnostic absorption features was measured for both sensors. For the primary kaolinite feature around ~2200 nm, the absorption was generally deeper in Tanager-1. In contrast, the secondary kaolinite feature around ~2165 nm was slightly deeper in EnMAP. These differences may be related to differences in the exact band center positions and spectral bandwidths of the two sensors, which can affect how individual absorption features are sampled.</p>

<p>For the goethite-related absorption features, Tanager-1 also generally recorded deeper absorptions, with the exception of the broad feature around ~950 nm. This is also the wavelength region where the EnMAP spectra showed the greatest spectral variation (Figure 5 and Table 2). The increased spectral roughness in this region can therefore influence the continuum-removed feature depth and make the EnMAP measurement less stable. The apparent difference in feature depth around ~950 nm should consequently be interpreted with caution rather than as evidence of a stronger absorption in the EnMAP data.</p>

<h2 id="additional-analysis-minimum-wavelength-mapper">Additional Analysis: Minimum Wavelength Mapper</h2>

<p>During the spectral data exploration in the Salt Lake City, Utah study area, I observed that the deepest Al-OH absorption feature in the Tanager-1 spectra occasionally shifted between approximately 2206.2 and 2211.2 nm. Such subtle shifts in Al-OH absorption features are well documented and can provide useful information about mineral composition. Variations in the position of these features are related to changes in the chemical and structural environment of the mineral lattice, and can therefore be useful for identifying subtle compositional variations within hydrothermal alteration zones.</p>

<p>This shift was not readily observable in the corresponding EnMAP spectra, potentially due to differences in spectral sampling and resolution. This raised the question of whether the two sensors provide sufficient spectral information to capture and map these subtle wavelength variations. A comparison using the Minimum Wavelength Mapper (MWM) therefore provides a useful next step in the evaluation.</p>

<p>However, the Salt Lake City study area is a mining stockpile with highly mixed and disturbed materials, making it less suitable for demonstrating subtle mineralogical wavelength variations. For this part of the analysis, I therefore shifted the study area to Cuprite, Nevada, a well-established benchmark site for hyperspectral mineral mapping.</p>

<p>The overlapping Cuprite scene had already been identified during the initial dataset query but was excluded by the geometric filtering because of a substantial difference in solar zenith angle between the two acquisitions. The Tanager-1 and EnMAP observations were acquired approximately six months apart, resulting in different seasonal and illumination conditions. These differences make the scene less suitable for the detailed pixel-level comparison performed at the Salt Lake City site, but it remains useful for testing whether both sensors can capture and map subtle absorption wavelength variations.</p>

<p>The MWM analysis was performed using the open-source <a href="https://github.com/wimhbakker/hyppy"><em>HypPy</em></a> software suite rather than within the Jupyter Notebook workflow. MWM isolates a specified absorption region and uses a second-order polynomial fitted to the three deepest spectral points to estimate the minimum of the absorption feature. This allows the position of an absorption feature to be estimated at a sub-band level, rather than being restricted to the center wavelength of an individual sensor band.</p>

<p>I applied MWM to the 2150–2220 nm range to investigate subtle variations in the Al-OH absorption feature and to the 800–1000 nm range to examine variations in the Fe-related absorption feature. The resulting wavelength maps from Tanager-1 and EnMAP are presented in Figure 8.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_19_minnimum_wavelength_mapper-480.webp 480w,/assets/img/post_19_minnimum_wavelength_mapper-800.webp 800w,/assets/img/post_19_minnimum_wavelength_mapper-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_19_minnimum_wavelength_mapper.webp" class="img-fluid rounded" width="100%" height="auto" alt="Minimum Wavelength Mapper results for the Cuprite study area across the 800–1000 nm and 2150–2220 nm wavelength ranges, comparing EnMAP (left) and Tanager-1 (right)" onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 8. Minimum Wavelength Mapper results for the Cuprite study area across the 800–1000 nm and 2150–2220 nm wavelength ranges, comparing EnMAP (left) and Tanager-1 (right).
</div>

<p>In the SWIR, Tanager-1 demonstrates a higher sensitivity to subtle sub-band shifts within the Al-OH absorption feature. The Tanager-1 imagery shows a broad spatial gradient in the mapped wavelengths, ranging from approximately 2160 nm (cyan) to over 2210 nm (magenta). In contrast, the EnMAP result is considerably flatter, dominated by patches around ~2200 nm (orange) and ~2170 nm (green), with less clearly defined spatial variation.</p>

<p>The contrast between the two sensors is even more pronounced in the VNIR (800–1000 nm). The EnMAP result does not show a coherent spatial pattern and is instead highly speckled, which is likely related to the strong spectral noise observed in this wavelength region. In contrast, Tanager-1 resolves a distinct spatial pattern, with shorter absorption wavelengths in the northeast (yellow, ~925 nm) transitioning toward longer wavelengths in the southeast (red, ~950 nm). Although the pattern appears relatively subdued, this is expected given the shallow and broad nature of the iron-oxide absorption feature.</p>

<p>The observed wavelength variation may reflect changes in the iron-oxide mineral assemblage, potentially indicating a transition between goethite- and hematite-dominated materials. However, this interpretation should be treated as indicative rather than definitive, as wavelength position alone is insufficient to distinguish these minerals reliably. A more detailed mineralogical interpretation would require comparison with reference spectra and, ideally, field or laboratory measurements.</p>

<p>Overall, these results suggest that Tanager-1 is better able to resolve subtle absorption-wavelength variations in this dataset. Its finer spectral sampling and comparatively lower spectral roughness appear to provide greater sensitivity to sub-band shifts, particularly in the VNIR where the EnMAP data are strongly affected by spectral noise. This demonstrates a potential advantage of Tanager-1 for mineral mapping applications where subtle variations in absorption position are important.</p>

<h2 id="remarks">Remarks</h2>

<p>Overall, both Tanager-1 and EnMAP captured the main spectral and mineralogical characteristics of the study area and demonstrated their capability for detailed mineral mapping. Tanager-1 showed an advantage in its smoother spectra and apparent ability to resolve finer spectral variations and subtle absorption-wavelength shifts. However, this does not indicate that Tanager-1 is generally superior to EnMAP. The differences observed here may also reflect the specific acquisition conditions and sensor characteristics. Further comparisons across different sites, datasets, and field measurements are needed to assess how consistent these results are and to validate their mineralogical significance.</p>]]></content><author><name></name></author><category term="Geoscience" /><category term="hyperspectral" /><category term="mineral-mapping" /><category term="tanager" /><category term="enmap" /><summary type="html"><![CDATA[A preliminary comparison of Tanager-1 and EnMAP for mineral mapping: spectral similarity, spectral roughness, absorption feature depth, and wavelength shifts.]]></summary></entry><entry><title type="html">From GEDI Footprints to Wall-to-Wall Canopy Height Maps</title><link href="https://nasirlukman.github.io/blog/2026/canopy_height_model/" rel="alternate" type="text/html" title="From GEDI Footprints to Wall-to-Wall Canopy Height Maps" /><published>2026-07-05T16:36:10+00:00</published><updated>2026-07-05T16:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/canopy_height_model</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/canopy_height_model/"><![CDATA[<h1 id="introduction">Introduction</h1>

<p>One of the biggest challenges in forest monitoring is measuring canopy height over large areas. Airborne LiDAR provides highly accurate measurements, but acquiring LiDAR data is expensive, time-consuming, and difficult to scale over large regions.</p>

<p>To overcome this limitation, NASA launched the <a href="https://gedi.umd.edu/">Global Ecosystem Dynamics Investigation (GEDI)</a> mission in 2018. Unlike most Earth observation missions, GEDI is not mounted on a satellite. Instead, it is attached to the <a href="https://www.eoportal.org/satellite-missions/iss-gedi#eop-quick-facts-section">International Space Station (ISS)</a> (Figure 1), allowing it to collect LiDAR measurements of forests around the world.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
    <img src="/assets/img/post_18_GEDI_on_ISS.jpeg" class="img-fluid rounded" width="100%" height="auto" alt="GEDI LiDAR instrument mounted on the International Space Station." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. GEDI instrument mounted on the International Space Station
</div>

<p>GEDI is a full-waveform LiDAR, meaning it records the entire returned laser signal rather than just a few discrete returns. This allows it to measure the vertical structure of forests with remarkable accuracy.</p>

<p>The downside is that GEDI does not produce a continuous, wall-to-wall map of the Earth’s surface. Instead, it collects measurements only along the ISS orbital tracks, resulting in millions of highly accurate footprints separated by large gaps.</p>

<p>A common solution is to use the GEDI footprints as training data and satellite imagery as predictor variables. Once the model learns the relationship between the two, it can be applied to every pixel to generate a continuous canopy height map.</p>

<p>In this post, I compare two different approaches:</p>

<ul>
  <li>Traditional remote sensing features derived from Sentinel-1, Sentinel-2, and ALOS PALSAR.</li>
  <li>Google AlphaEarth Embeddings, which are learned representations from a satellite foundation model.</li>
</ul>

<p>I also compare several machine learning algorithms to see which combination performs best.</p>

<h1 id="meet-gedi">Meet GEDI</h1>

<p>Before using GEDI as training data, it’s worth taking a moment to understand how it actually works. Unlike Sentinel-2, which records reflected sunlight, or Sentinel-1, which measures microwave backscatter, GEDI actively sends laser pulses toward the Earth’s surface.</p>

<p>When a laser pulse reaches a forest, the first reflections come from the top of the canopy. Some of the remaining energy continues downward, interacting with branches, understory vegetation, and eventually the ground. Rather than recording only a single return, GEDI records the entire returned waveform, capturing how much energy is reflected at different heights within the forest.</p>

<p>Figure 2 shows an example of a GEDI waveform. The vertical axis represents height relative to the ground, while the horizontal axis shows the strength of the returned signal. Each peak corresponds to a large amount of reflected laser energy. In this example, the upper peak represents reflections from the forest canopy, while the lower peak corresponds to the ground return. The shaded area between these peaks contains information about the vertical distribution of vegetation, including leaves, branches, and understory.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_18_example_gedi_full_waveform_profile-480.webp 480w,/assets/img/post_18_example_gedi_full_waveform_profile-800.webp 800w,/assets/img/post_18_example_gedi_full_waveform_profile-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_18_example_gedi_full_waveform_profile.webp" class="img-fluid rounded" width="100%" height="auto" alt="Example of GEDI full waveform profile representing the forest structure." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Example of a GEDI L1B full waveform profile capturing forest vertical structure within a ~25-meter circular ground footprint. The y-axis represents relative distance (meters) from the instrument's recording window, and the x-axis represents the return signal amplitude (ADC counts).
</div>

<p>From this waveform, GEDI derives several structural metrics. One of the most commonly used is RH95, which represents the height at which 95% of the cumulative returned laser energy has been reached, measured relative to the ground return. Because RH95 is usually very close to the top of the canopy, it is widely used as a proxy for canopy height and serves as the target variable in this study.</p>

<p>The measurements are remarkably accurate, but they come with one important limitation. Since GEDI is mounted on the International Space Station, it only samples the Earth’s surface along the ISS orbital tracks. Instead of producing a continuous canopy height map, GEDI provides millions of individual footprints separated by large gaps (Figure 3). This is where machine learning becomes useful: by learning the relationship between GEDI measurements and satellite imagery, we can estimate canopy height for the areas between the footprints.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_18_LC-480.webp 480w,/assets/img/post_18_LC-800.webp 800w,/assets/img/post_18_LC-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_18_LC.webp" class="img-fluid rounded" width="100%" height="auto" alt="Example of GEDI footprints over the study area with a land cover map as the basemap." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Example of GEDI footprints over the study area with a land cover map as the basemap.
</div>

<h1 id="models-and-datasets">Models and Datasets</h1>

<p>To estimate canopy height across the entire study area, GEDI footprints were used as the reference canopy height measurements, while satellite data served as the predictor variables. In this experiment, I compared two different input datasets.</p>

<p>The first uses <a href="https://deepmind.google/blog/alphaearth-foundations-helps-map-our-planet-in-unprecedented-detail/">Google AlphaEarth Embeddings</a>, which are learned representations generated by a foundation model trained on large amounts of satellite imagery.</p>

<p>The second uses a more conventional feature stack consisting of <a href="https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1">Sentinel-1</a>, <a href="https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-2">Sentinel-2</a>, <a href="https://www.eorc.jaxa.jp/ALOS-2/en/about/palsar2.htm">ALOS PALSAR</a>, together with several commonly used spectral indices.</p>

<p>Before training the models, the GEDI dataset underwent several preprocessing steps. First, I filtered the data to retain only high-quality footprints, removing observations flagged as low quality or having unreliable height estimates. Since the distribution of canopy heights was uneven across different vegetation types, I then performed stratified binning based on both land cover and RH95. This ensured that the training and testing datasets contained a representative range of land cover classes and canopy heights.</p>

<p>Using these samples, I evaluated five regression models:</p>

<ul>
  <li><a href="https://en.wikipedia.org/wiki/Linear_regression">Linear Regression</a></li>
  <li><a href="https://en.wikipedia.org/wiki/Support_vector_machine">Support Vector Regression (SVR)</a></li>
  <li><a href="https://en.wikipedia.org/wiki/Random_forest">Random Forest</a></li>
  <li><a href="https://en.wikipedia.org/wiki/XGBoost">XGBoost</a></li>
  <li><a href="https://en.wikipedia.org/wiki/Multilayer_perceptron">Artificial Neural Network (ANN)</a></li>
</ul>

<p>To ensure a fair comparison, every model used exactly the same training and testing split, generated with the same random seed. The only variables that changed between experiments were the input features and the regression model itself, allowing the performance differences to be attributed directly to those factors.</p>

<p>This setup provides a fair comparison between traditional remote sensing features and foundation model embeddings.</p>

<h1 id="results">Results</h1>
<p>Across every machine learning model, the AlphaEarth Embeddings consistently outperformed the traditional satellite features (Table 1, Figure 4).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_18_accuracy_table-480.webp 480w,/assets/img/post_18_accuracy_table-800.webp 800w,/assets/img/post_18_accuracy_table-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_18_accuracy_table.webp" class="img-fluid rounded" width="100%" height="auto" alt="Table comparing RMSE, MAE, and R² of five machine learning methods for canopy height estimation using AlphaEarth Embeddings and Sentinel-1, Sentinel-2, and ALOS PALSAR features." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Table 1. Quantitative performance metrics for canopy height (RH95) validation. Models are evaluated using Spatial Cross-Validation RMSE (CV RMSE), Test RMSE, Test MAE, and Test R² across two distinct input feature sets: AlphaEarth Embeddings and a multi-sensor combination (Sentinel-1 + Sentinel-2 + ALOS PALSAR). Bold values indicate the optimal performance metrics achieved for each dataset tier.
</div>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_18_rmse_plot-480.webp 480w,/assets/img/post_18_rmse_plot-800.webp 800w,/assets/img/post_18_rmse_plot-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_18_rmse_plot.webp" class="img-fluid rounded" width="100%" height="auto" alt="Scatter plots comparing observed versus predicted forest canopy height (RH95) across five machine learning architectures: Linear Regression, Support Vector Regression (SVR), Random Forest (RF), XGBoost, and Artificial Neural Networks (ANN). The top row displays performance using AlphaEarth Embeddings, while the bottom row displays performance using a conventional multi-sensor baseline (Sentinel-1 + Sentinel-2 + ALOS PALSAR). The red dashed line indicates the 1:1 line of perfect agreement, with individual test set RMSE and R² values noted in each panel." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Scatter plots comparing observed versus predicted forest canopy height (RH95) across five machine learning architectures: Linear Regression, Support Vector Regression (SVR), Random Forest (RF), XGBoost, and Artificial Neural Networks (ANN). The top row displays performance using AlphaEarth Embeddings, while the bottom row displays performance using a conventional multi-sensor baseline (Sentinel-1 + Sentinel-2 + ALOS PALSAR). The red dashed line indicates the 1:1 line of perfect agreement, with individual test set RMSE and R² values noted in each panel.
</div>

<p>The best result was achieved using XGBoost with AlphaEarth Embeddings, producing the lowest RMSE and the highest R² among all tested models.</p>

<p>Using this best-performing model, I generated a continuous canopy height map for the study area (Figure 5).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_18_tree_height-480.webp 480w,/assets/img/post_18_tree_height-800.webp 800w,/assets/img/post_18_tree_height-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_18_tree_height.webp" class="img-fluid rounded" width="100%" height="auto" alt="Canopy height map of the study area generated with XGBoost and AlphaEarth Embeddings." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Canopy height model (CHM) of the study area. Cross-referencing this model with the land cover map in Figure 3 indicates that palm plantations exhibit the lowest canopy heights due to their relative youth, followed closely by shrublands. In contrast, the mature acacia plantations reach heights of nearly 20 meters, while the isolated forest patch in the center exhibits the highest canopy values, topping out at approximately 20 meters.
</div>

<h1 id="discussion">Discussion</h1>

<p>One of the clearest findings from this experiment is that the choice of input features had a much larger impact than the choice of machine learning algorithm. While XGBoost achieved the best overall performance, every regression model benefited from replacing the traditional remote sensing features with AlphaEarth Embeddings. This suggests that the information contained in the input representation is more important than squeezing out marginal improvements by trying different regression algorithms.</p>

<p>A likely explanation is that the embeddings already encode much of the information that we usually try to engineer manually. In a traditional remote sensing workflow, we spend considerable effort selecting spectral bands, calculating vegetation indices, adding SAR backscatter, texture measures, and other handcrafted variables. Foundation models approach the problem differently. Instead of relying on manually designed features, they learn a compact representation from enormous collections of satellite imagery. Although these embeddings are not specifically trained for canopy height estimation, they appear to capture landscape characteristics that are strongly related to vegetation structure.</p>

<p>The strong performance of XGBoost is also not particularly surprising. Tree-based ensemble methods have long been one of the most reliable choices for tabular remote sensing data. They naturally model nonlinear relationships, require relatively little feature scaling, and are robust to redundant or correlated variables. When combined with high-quality embeddings, XGBoost seems able to extract the remaining information needed to predict canopy height.</p>

<h2 id="on-the-data-leakage-question">On the Data Leakage Question</h2>

<p>One topic that often comes up when using AlphaEarth Embeddings for canopy height estimation is the possibility of data leakage.</p>

<p>The concern stems from the fact that the AlphaEarth Foundations model was pretrained using multiple Earth observation datasets, including GEDI RH metrics. If the downstream task also uses GEDI footprints as the training and validation labels, it raises an important question: is the model being evaluated on information it has already seen during pretraining?</p>

<p>Unfortunately, Google DeepMind does not disclose exactly which GEDI observations were used during pretraining. Because of this lack of information, it is difficult to determine whether there is any overlap between the GEDI footprints used in this study and those used to train the foundation model. As a result, I think it is more conservative to assume that some degree of overlap may exist rather than assuming there is none.</p>

<p>That said, this issue mainly affects canopy height models generated for years that overlap with the foundation model’s pretraining period. AlphaEarth Foundations was released in 2025 and was pretrained using historical Earth observation data available before then. Once pretrained, however, the model generates embeddings for new years using only satellite imagery (e.g., Sentinel-1, Sentinel-2, and Landsat) without requiring new GEDI observations.</p>

<p>This means that if the embeddings are generated for imagery acquired after the pretraining period, the model has never seen the corresponding GEDI measurements because they did not yet exist during training. In those cases, the risk of leakage is substantially reduced, making post-2025 canopy height mapping a much cleaner evaluation of the foundation model’s ability to generalize.</p>

<p>Ultimately, this question cannot be answered conclusively without more details about the foundation model’s pretraining dataset.</p>

<h1 id="closing-thoughts">Closing Thoughts</h1>

<p>GEDI has fundamentally changed our ability to map forest structure from space. By combining its accurate but sparse LiDAR measurements with wall-to-wall satellite imagery, we can now generate continuous canopy height maps at regional scales.</p>

<p>This experiment also reflects a broader shift in remote sensing. Instead of spending most of our effort designing handcrafted features, foundation model embeddings are beginning to provide powerful general-purpose representations that work across many downstream tasks. While questions around pretraining and data leakage still deserve careful attention, these models have the potential to simplify remote sensing workflows and push the accuracy of many applications even further.</p>

<p>I’m excited to see how these foundation models evolve over the next few years—and whether they eventually become the default starting point for Earth observation analysis.</p>]]></content><author><name></name></author><category term="Environment" /><category term="canopy-height" /><category term="forest-monitoring" /><category term="gedi" /><category term="lidar" /><category term="foundation-models" /><category term="machine-learning" /><summary type="html"><![CDATA[Comparing traditional Sentinel-1, Sentinel-2, and ALOS PALSAR features with Google AlphaEarth Embeddings for canopy height modeling using GEDI LiDAR.]]></summary></entry><entry><title type="html">Operational Near-Real-Time Forest Disturbance Alerts with Sentinel-1 Radar</title><link href="https://nasirlukman.github.io/blog/2026/forest-disturbance-alert-system/" rel="alternate" type="text/html" title="Operational Near-Real-Time Forest Disturbance Alerts with Sentinel-1 Radar" /><published>2026-07-04T16:36:10+00:00</published><updated>2026-07-04T16:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/forest-disturbance-alert-system</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/forest-disturbance-alert-system/"><![CDATA[<h1 id="introduction">Introduction</h1>
<p>Forest disturbance is one of the earliest indicators of deforestation and forest degradation. Detecting these changes quickly is important for conservation, carbon projects, law enforcement, and sustainable land management. The sooner a disturbance is detected, the sooner field verification and mitigation actions can be taken.</p>

<p>In practice, the terms forest disturbance alerts and deforestation alerts are often used interchangeably. Here, however, I make a subtle distinction between the two.</p>

<p>A deforestation alert system focuses on detecting abrupt and substantial changes in forest cover that are highly indicative of land-clearing activities. These systems are generally designed to identify events that are very likely to represent permanent forest loss.</p>

<p>A forest disturbance alert system, on the other hand, also aims to detect more subtle changes in forest structure. These disturbances may result from selective logging, small-scale clearing, small road development, early stages of deforestation, etc. Because the goal is to detect changes as early as possible, disturbance monitoring typically requires higher detection sensitivity. The trade-off is that it is also more susceptible to noise and false positives, making careful filtering and validation essential.</p>

<p>Optical satellites such as <a href="https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-2">Sentinel-2</a> and <a href="https://science.nasa.gov/mission/landsat/">Landsat</a> have become the standard for forest monitoring, but they suffer from one major limitation in tropical regions: cloud cover. Radar satellites, particularly <a href="https://www.esa.int/Applications/Observing_the_Earth/Copernicus/Sentinel-1">Sentinel-1</a>, overcome this problem by providing observations regardless of weather or daylight, making them ideal for operational near-real-time monitoring.</p>

<h2 id="why-build-another-alert-system">Why Build Another Alert System?</h2>

<p>Several excellent <a href="https://data.globalforestwatch.org/datasets/gfw::integrated-deforestation-alerts/about">global deforestation alert</a> products already exist. One of the most notable is the Radar for Detecting Deforestation <a href="https://www.wur.nl/en/research/products-services/radd-forest-disturbance-alert">(RADD)</a> alert system, which provides global near-real-time disturbance alerts based on Sentinel-1 data. So why develop another system?</p>

<p>Global products are designed to work reasonably well everywhere. Local systems, however, can be optimized for a specific region and integrated with local datasets that are unavailable to global products. This allows:</p>

<ul>
  <li>tuning detection thresholds for local forest conditions,</li>
  <li>integrating locally developed land cover maps,</li>
  <li>masking known non-forest areas more accurately,</li>
  <li>incorporating local deforestation risk information, and</li>
  <li>adapting the balance between sensitivity and false alarms.</li>
</ul>

<p>The goal is not to replace global alerts, but to build a system that is better suited for operational monitoring within a specific landscape.</p>

<h1 id="my-previous-approach">My Previous Approach</h1>

<p>I previously developed a <a href="https://nasirlukman.github.io/blog/2025/sentinel1-change-detection/">Sentinel-1 forest disturbance monitoring workflow</a> based on long radar time series.</p>

<p>That approach relied on extensive preprocessing for every satellite overpass, including speckle reduction and corrections for seasonal variation before detecting anomalies.</p>

<p>Although the method produced reliable results, it had two important limitations:</p>

<ul>
  <li>it was computationally expensive, making large-scale operational deployment difficult, and</li>
  <li>the heavy temporal smoothing reduced sensitivity to small or early disturbances.</li>
</ul>

<p>This motivated me to explore a lighter and more operational approach.</p>

<h1 id="current-methodology">Current Methodology</h1>

<p>The current system follows the general framework of the <a href="https://iopscience.iop.org/article/10.1088/1748-9326/abd0a8">RADD algorithm</a>. Instead of modeling the entire radar time series, it uses a <a href="https://en.wikipedia.org/wiki/Bayesian_inference">Bayesian</a> approach that updates the probability of forest disturbance as new Sentinel-1 observations become available. This greatly reduces computational cost while remaining suitable for continuous monitoring over large areas.</p>

<p>Since my focus is regional rather than global monitoring, I introduced several modifications.</p>

<h2 id="1-harmonic-baseline-to-capture-wet-and-dry-season-conditions">1. Harmonic Baseline to Capture Wet and Dry Season Conditions</h2>

<p>A two-year rolling baseline is used to model the expected radar backscatter for each pixel. For every new observation, a harmonic function is fitted to the previous two years of Sentinel-1 data to capture the seasonal variation associated with wet and dry conditions (Figure 1).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_harmonic_baseline-480.webp 480w,/assets/img/post_17_harmonic_baseline-800.webp 800w,/assets/img/post_17_harmonic_baseline-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_harmonic_baseline.webp" class="img-fluid rounded" width="100%" height="auto" alt="Graph showing two years of Sentinel-1 VH backscatter data for a forest pixel and the fitted harmonic baseline." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Fitted harmonic baseline for a single forest pixel as an example
</div>

<p>By explicitly modeling these seasonal fluctuations, the system can distinguish normal environmental variability from genuine forest disturbance. This reduces false alerts that would otherwise occur during transitions between the wet and dry seasons, when changes in soil and vegetation moisture naturally affect radar backscatter.</p>

<h2 id="2-spatial-prior-based-on-deforestation-risk">2. Spatial Prior Based on Deforestation Risk</h2>

<p>Rather than using a static prior probability, the Bayesian model uses a spatially varying prior derived from a deforestation risk map that I developed previously.</p>

<p>The risk model incorporates factors such as:</p>

<ul>
  <li>distance to roads</li>
  <li>distance to rivers and waterways</li>
  <li>distance to forest edges</li>
  <li>historical deforestation</li>
</ul>

<p>Areas with higher baseline risk therefore require less evidence before being flagged as potential disturbances, while remote intact forests require stronger evidence.</p>

<h2 id="3-dynamic-land-cover-masking">3. Dynamic Land Cover Masking</h2>

<p>The alert system is also integrated with my <a href="https://nasirlukman.github.io/blog/2025/satellite-embeddings/">annual national land cover model</a> (Figure 2).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_17_land_cover-480.webp 480w,/assets/img/post_17_land_cover-800.webp 800w,/assets/img/post_17_land_cover-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_17_land_cover.webp" class="img-fluid rounded" width="100%" height="auto" alt="Snippet of the national land cover model showing various land cover classes in Kalimantan, Borneo." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Snippet of land cover map integrated with the alert system. This land cover map is automatically updated every year to make sure that the system always uses the latest land cover data.
</div>

<p>Instead of relying on a fixed forest mask, the system uses an updated land cover map each year, allowing it to adapt to changing landscapes while reducing alerts over non-forest areas.</p>

<h2 id="4-class-specific-parameter-tuning">4. Class-Specific Parameter Tuning</h2>

<p>Different land cover classes exhibit different radar variability.</p>

<p>Rather than applying a single detection threshold everywhere, I use land-cover-specific parameters to adjust:</p>

<ul>
  <li>expected radar noise</li>
  <li>detection sensitivity</li>
  <li>alert confidence thresholds</li>
</ul>

<p>This makes the system more sensitive where genuine disturbances are expected while reducing false positives in naturally noisy environments.</p>

<h1 id="results">Results</h1>

<p>Example results are presented in Figure 3 below. The new framework is substantially lighter computationally than my previous implementation while improving sensitivity to small forest disturbances. Integrating spatial risk information and dynamic land cover masks also reduces false alarms compared with a uniform detection strategy.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_17_12_days_alert.webp" class="img-fluid rounded" width="100%" height="auto" alt="Animation of Sentinel-1 forest disturbance alerts from 2023 to 2025 showing the expansion of palm oil plantations into the surrounding forests." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Animation of the forest disturbance alert from 2023 to 2025 showing the rapid expansion of palm oil plantations into the surrounding forests from late 2023 to the end of 2025.
</div>

<p>The alerts were visually validated using Planet Monthly Basemaps and show good agreement with observed forest disturbances, suggesting that the system is capable of producing timely and reliable alerts.</p>

<p>Without additional post-processing, the resulting alert map does not produce perfectly clean deforestation patches. However, this is not a failure of the system. The objective of the system is not to generate accurate deforestation polygons or estimate deforested area. Instead, it is intended to provide early, reliable alerts that can trigger further investigation or field verification. Delineating the final extent of disturbance can be handled in a separate mapping workflow.</p>

<h1 id="future-outlook">Future Outlook</h1>

<p>The current system is limited by the revisit frequency of a single Sentinel-1 orbit, resulting in updates approximately every 12 days. While this is sufficient for many monitoring applications, there is significant potential to reduce the time between observations.</p>

<p>One promising direction is to integrate additional radar missions such as NISAR and Biomass, both expected to become operational around late 2026 or early 2027. Combining observations from multiple SAR satellites would substantially increase observation frequency while preserving the all-weather capability of radar monitoring.</p>

<p>Another opportunity is to fuse radar-based alerts with optical observations from Sentinel-2 and Landsat. Although optical imagery is frequently affected by cloud cover in tropical regions, it provides complementary information whenever cloud-free observations are available. Combining evidence from both radar and optical sensors could improve both detection confidence and temporal coverage.</p>

<p>If these satellite constellations are successfully integrated, it may become possible to receive new observations almost every day in many regions, enabling much faster detection and verification of forest disturbances.</p>

<p>Global forest alert systems have transformed the way we monitor forests. However, there is still considerable value in developing regional systems that can leverage local datasets, local knowledge, and application-specific tuning.</p>

<p>For organizations managing protected areas, carbon projects, or concession monitoring, these local adaptations can produce alerts that are both more sensitive and more operationally useful than a one-size-fits-all global solution.</p>]]></content><author><name></name></author><category term="Environment" /><category term="forest-monitoring" /><category term="deforestation" /><category term="change-detection" /><category term="sentinel-1" /><category term="sar" /><category term="bayesian" /><summary type="html"><![CDATA[Building a lightweight regional Sentinel-1 early warning system that combines Bayesian change detection with deforestation risk maps and dynamic land cover.]]></summary></entry><entry><title type="html">Satellites, Stats, and SEZs: Did the Mandalika MotoGP Circuit Transform Southern Lombok?</title><link href="https://nasirlukman.github.io/blog/2026/satellites-stats-and-SEZs/" rel="alternate" type="text/html" title="Satellites, Stats, and SEZs: Did the Mandalika MotoGP Circuit Transform Southern Lombok?" /><published>2026-06-06T16:36:10+00:00</published><updated>2026-06-06T16:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/satellites-stats-and-SEZs</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/satellites-stats-and-SEZs/"><![CDATA[<h1 id="the-promise-of-mega-infrastructure">The Promise of Mega-Infrastructure</h1>

<p>When governments invest in mega-infrastructure projects, they are making a bet that strategic physical interventions can accelerate regional economic growth. By directing large amounts of capital into transportation networks, utilities, and public facilities, policymakers aim to transform underdeveloped regions into engines of investment, employment, and productivity.</p>

<p>In southern Lombok, this vision was realized through the development of the Mandalika tourism area and the Mandalika MotoGP Circuit. Plans to develop southern Lombok as a priority tourism destination had been under discussion since at least 2010. The effort gained momentum in 2016 with the formal establishment of the Mandalika Special Economic Zone (SEZ), an initiative designed to transform a largely agricultural and relatively isolated coastal region into an internationally recognized tourism hub.</p>

<p>A year later, the government announced that the SEZ would host Indonesia’s first MotoGP circuit. Construction soon began, culminating in the completion of the Mandalika International Street Circuit in 2021. The track hosted its first MotoGP race in 2022, placing southern Lombok on the global motorsport stage.</p>

<p>With several years now having passed since the first race, an important question emerges: has the massive public investment delivered measurable regional development benefits?</p>

<p>This article examines that question using a decade of open geospatial and socio-economic data. By combining satellite observations, crowdsourced geographic information, and official demographic statistics, we can assess whether the Mandalika project generated detectable changes in economic activity, infrastructure growth, commercial development, and population dynamics across southern Lombok.</p>

<h1 id="data-and-proxies-measuring-development-from-space">Data and Proxies: Measuring Development from Space</h1>
<p>Measuring regional development is surprisingly difficult. Traditional socio-economic indicators often suffer from two major limitations. First, official statistics are typically published with significant delays, making it difficult to assess recent changes. Second, many economic activities in developing regions occur outside formal reporting systems. Small family businesses, roadside vendors, local warungs, and informal service providers often form a substantial part of the local economy but remain largely invisible in government records.</p>

<p>To overcome these limitations, this analysis combines multiple open geospatial and demographic datasets spanning 2015–2025. Each dataset captures a different dimension of development, allowing us to observe economic activity, physical expansion, commercial growth, and demographic change from complementary perspectives.</p>

<p>The analysis is conducted across multiple spatial scales. First, we compare Pujut Subdistrict—the location of the Mandalika Special Economic Zone (SEZ)—against other subdistricts in Central Lombok Regency to assess whether development trends in Pujut differ from the broader region. Second, we examine village-level patterns within Pujut itself to identify how the impacts of the Mandalika development are distributed across local communities. This multi-scale approach allows us to evaluate both regional and localized development dynamics over the past decade.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_administrative-480.webp 480w,/assets/img/post_15_administrative-800.webp 800w,/assets/img/post_15_administrative-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_administrative.webp" class="img-fluid rounded" width="100%" height="auto" alt="Subdistrict- and village-level administrative map of the Mandalika study area in Central Lombok." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Administrative boundaries at the subdistrict and village levels in the study area.
</div>

<h2 id="viirs-nighttime-lights-a-proxy-for-economic-activity">VIIRS Nighttime Lights: A Proxy for Economic Activity</h2>

<p>Nighttime light intensity has become one of the most widely used remote sensing indicators for measuring economic activity.</p>

<p>The data originates from the Visible Infrared Imaging Radiometer Suite (VIIRS), carried aboard the Suomi NPP and NOAA satellite missions. Its Day/Night Band (DNB) sensor is capable of detecting extremely low levels of illumination, ranging from urban lighting networks to isolated infrastructure developments.</p>

<p>Raw nighttime observations are affected by clouds, moonlight, atmospheric conditions, and temporary light sources such as fires. To reduce these effects, this study uses annual VIIRS Nighttime Lights composites produced by the Earth Observation Group (EOG). These products aggregate observations throughout the year while filtering transient sources and background noise, leaving only stable human-generated illumination.</p>

<p>Because lighting intensity is closely linked to electrification, energy consumption, infrastructure utilization, and commercial activity, nighttime lights provide a valuable proxy for localized economic development.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_viirs_night_light-480.webp 480w,/assets/img/post_15_viirs_night_light-800.webp 800w,/assets/img/post_15_viirs_night_light-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_viirs_night_light.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of 2015 and 2025 VIIRS nighttime light data in Pujut Subdistrict." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. VIIRS nighttime light intensity of Pujut Subdistrict from 2015 to 2025. The red star indicates the year of the first MotoGP race at the Mandalika International Street Circuit.
</div>

<h2 id="built-up-area-mapping-a-proxy-for-physical-development">Built-Up Area Mapping: A Proxy for Physical Development</h2>

<p>Economic growth is often accompanied by visible changes in the physical landscape. New roads, hotels, commercial facilities, and residential developments leave a measurable footprint that can be detected from space.</p>

<p>To monitor these changes, this study uses satellite imagery from the European Space Agency’s Sentinel-1 and Sentinel-2 missions.</p>

<p>Sentinel-2 provides high-resolution multispectral observations of the Earth’s surface, capturing information across visible, near-infrared, and shortwave infrared wavelengths. Sentinel-1 complements these observations with Synthetic Aperture Radar (SAR) measurements, which are capable of penetrating cloud cover and are highly sensitive to the geometric characteristics of buildings and other man-made structures.</p>

<p>A machine learning model was trained to recognize built-up areas from the combined satellite observations, allowing the automated mapping of buildings, roads, and other developed surfaces across the study region.</p>

<p>Annual built-up area maps were generated for the 2015–2025 period, enabling us to track how physical development expanded over time. By comparing changes before and after the construction of the Mandalika circuit, we can observe whether major infrastructure investments were accompanied by broader patterns of land development.</p>

<p>While built-up area does not directly measure economic output, it provides a useful indicator of long-term capital investment and physical infrastructure growth. Sustained increases in built-up extent often reflect the construction of new facilities, transportation networks, tourism infrastructure, and supporting urban services.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_build_up-480.webp 480w,/assets/img/post_15_build_up-800.webp 800w,/assets/img/post_15_build_up-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_build_up.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of 2015 and 2025 built-up area extent in Pujut Subdistrict." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Built-up area extent of Pujut Subdistrict from 2015 to 2025. The red star indicates the year of the first MotoGP race at the Mandalika International Street Circuit.
</div>

<h2 id="openstreetmap-history-tracking-commercial-expansion">OpenStreetMap History: Tracking Commercial Expansion</h2>

<p>Infrastructure alone does not create economic value. The presence of businesses and commercial services provides another important indicator of regional development.</p>

<p>For this purpose, the analysis utilizes historical records from OpenStreetMap (OSM), the world’s largest crowdsourced geospatial database. Rather than relying on a single map snapshot, we query the OpenStreetMap History API, which preserves the complete editing history of mapped features. This allows us to reconstruct when businesses and points of interest were first added to the database and track how commercial activity evolved over time.</p>

<p>The analysis focuses on three categories that are particularly relevant to tourism-driven development:</p>

<ul>
  <li>Hotels</li>
  <li>Restaurants and cafés</li>
  <li>Retail shops</li>
</ul>

<p>Tracking the growth and spatial distribution of these establishments provides insight into how commercial activity has expanded around the Mandalika development area. Unlike traditional business registries, OpenStreetMap often captures both formal enterprises and smaller informal businesses that play an important role in local economies.</p>

<p>One important limitation should be noted: OpenStreetMap reflects both real-world development and mapping activity. Increases in mapped businesses may partly result from greater participation by contributors. Nevertheless, when interpreted alongside satellite observations and other independent datasets, OSM provides a valuable signal of commercial expansion and economic transformation.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_commercial_building-480.webp 480w,/assets/img/post_15_commercial_building-800.webp 800w,/assets/img/post_15_commercial_building-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_commercial_building.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of 2015 and 2025 total commercial buildings in Pujut Subdistrict from OpenStreetMap." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Total commercial buildings (hotels, restaurants, cafés, and retail shops) in Pujut Subdistrict from 2015 to 2025. The red star indicates the year of the first MotoGP race at the Mandalika International Street Circuit.
</div>

<h2 id="bps-demographic-data-the-human-baseline">BPS Demographic Data: The Human Baseline</h2>

<p>Satellite imagery can reveal changes in infrastructure and economic activity, but development ultimately affects people.</p>

<p>To capture demographic trends, this study incorporates population statistics from Badan Pusat Statistik (BPS), Indonesia’s national statistical agency. These data provide official population estimates at the subdistrict level throughout the study period.</p>

<p>Population data serves as an important baseline for interpreting observed changes. If infrastructure expansion and economic growth are occurring simultaneously with population increases, the evidence for broader regional transformation becomes stronger. Conversely, substantial physical investment without corresponding demographic change may suggest a more limited local impact.</p>

<p>Together, these four datasets provide complementary perspectives on development, enabling a multi-dimensional assessment of how the Mandalika project has reshaped southern Lombok over the past decade.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_population-480.webp 480w,/assets/img/post_15_population-800.webp 800w,/assets/img/post_15_population-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_population.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of 2015 and 2025 total population of Pujut Subdistrict from Statistics Indonesia (BPS)." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Total population of Pujut Subdistrict from 2015 to 2025. The red star indicates the year of the first MotoGP race at the Mandalika International Street Circuit.
</div>

<h1 id="the-macro-view-subdistrict-divergence">The Macro View: Subdistrict Divergence</h1>

<p>Our first analytical checkpoint examines development at the subdistrict level. To assess whether the Mandalika project altered the trajectory of regional growth, we isolated Pujut Subdistrict (where Mandalika is located) and compared it against the combined average of all other subdistricts in Central Lombok Regency.</p>

<p>To quantify this effect, we applied a Difference-in-Differences (DiD) regression framework using two indicators: VIIRS nighttime lights as a proxy for economic activity and built-up area as a measure of physical development.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_subdistrict_control-480.webp 480w,/assets/img/post_15_subdistrict_control-800.webp 800w,/assets/img/post_15_subdistrict_control-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_subdistrict_control.webp" class="img-fluid rounded" width="100%" height="auto" alt="Comparison of nighttime light and built-up area trends in Pujut and other subdistricts of Central Lombok." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 6. Ten-year comparison (2015–2025) of economic activity and physical development trends between Pujut Subdistrict and other subdistricts in Central Lombok, measured using VIIRS nighttime lights and satellite-derived built-up area estimates.

</div>

<h2 id="regression-results">Regression Results</h2>

<p><em>VIIRS Nighttime Lights</em></p>

<ul>
  <li>For nighttime lights, Pujut Subdistrict consistently exhibited significantly higher levels of economic activity than the average of other subdistricts in Central Lombok. The estimated difference is 3.93 units and is highly statistically significant (p &lt; 0.001).</li>
  <li>The additional change in Pujut after 2021, relative to the change experienced by other subdistricts, is estimated at 0.36 units. However, this effect is not statistically significant (p = 0.361), suggesting no clear evidence of an extra post-2021 acceleration.</li>
</ul>

<p><em>Built-Up Area</em></p>

<ul>
  <li>For built-up area, Pujut also maintained significantly higher levels of physical development than the rest of Central Lombok throughout the study period. The estimated difference is 4.22 units and is highly statistically significant (p &lt; 0.001).</li>
  <li>The additional increase in Pujut after 2021, relative to other subdistricts, is estimated at 0.25 units, but this effect is not statistically significant (p = 0.581), indicating no strong evidence of a distinct post-2021 boost in development.</li>
</ul>

<p><em>Interpretation</em></p>

<p>At first glance, the time-series trends appear to suggest that the opening of the Mandalika circuit in 2021 triggered a sharp divergence between Pujut and the rest of Central Lombok. However, the regression results tell a more nuanced story.</p>

<p>The interaction term (the component that measures whether Pujut experienced an additional growth acceleration after 2021) is statistically insignificant for both nighttime lights and built-up area. In other words, the data do not provide strong evidence that the completion of the circuit itself created a distinct post-2021 jump relative to neighboring subdistricts.</p>

<p>By contrast, the standalone Pujut coefficient is strongly positive and highly significant across both indicators. This suggests that Pujut had already established a substantially different development trajectory long before the first MotoGP race was held.</p>

<p>The findings are consistent with the broader timeline of the Mandalika project. Large-scale land acquisition, road construction, supporting infrastructure development, and public investment began several years before the circuit became operational. From a regional perspective, the economic and physical transformation of Pujut appears to have been underway well before the first motorcycle entered the starting grid.</p>

<p>The implication is important: if Mandalika generated regional growth, much of that impact likely occurred during the development and construction phase rather than after the circuit opened to international racing events.</p>

<h1 id="the-micro-view-village-level-dynamics">The Micro View: Village-Level Dynamics</h1>

<p>While the subdistrict-level analysis revealed that Pujut diverged from the rest of Central Lombok years before the first MotoGP race, an important question remains: how was this growth distributed across local communities?</p>

<p>To answer this, we moved from the subdistrict scale to the village scale. For each village, we calculated the distance between its geographic centroid and the Mandalika International Street Circuit. This allows us to examine how development changes as we move away from the project’s economic core.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_distance_decay-480.webp 480w,/assets/img/post_15_distance_decay-800.webp 800w,/assets/img/post_15_distance_decay-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_distance_decay.webp" class="img-fluid rounded" width="100%" height="auto" alt="Spatial decay coefficients showing how development indicators change with increasing distance from the Mandalika International Street Circuit" onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 7. Spatial decay coefficients showing how development indicators change with increasing distance from the Mandalika International Street Circuit. Hotels and restaurants exhibit the strongest distance effects, indicating a highly localized tourism economy, while built-up area, population, retail activity, and nighttime lights display broader regional spillover patterns.
</div>

<p>Tourism-oriented businesses display the strongest distance effect. Restaurant and café density declines by approximately 16.5% for every kilometer away from the circuit, while hotel density declines by 14.6% per kilometer. These are by far the steepest coefficients observed in the dataset.</p>

<p>In contrast, indicators associated with broader regional development exhibit much weaker decay rates. Built-up area declines by only 3.7% per kilometer, retail shops by 6.9%, while population and nighttime lights show relatively modest spatial gradients.</p>

<p>The result suggests that Mandalika operates through two distinct development channels. The first is a tourism enclave concentrated around the coastal SEZ area. High-end hospitality investments, including hotels and tourism-oriented restaurants, remain tightly clustered around the circuit and nearby beaches. The second is a broader regional spillover effect. Physical development, local commerce, and human activity extend much further inland, indicating that some benefits of the project reach communities beyond the immediate tourism zone.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_buildings-480.webp 480w,/assets/img/post_15_buildings-800.webp 800w,/assets/img/post_15_buildings-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_buildings.webp" class="img-fluid rounded" width="100%" height="auto" alt="Growth of tourism accommodations and commercial shops across three distance bands from the Mandalika Circuit" onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 8. Growth of tourism accommodations and commercial shops across three distance bands from the Mandalika Circuit: the Epicenter (0–5 km), Transit Corridor (5–12 km), and Rural Periphery (12+ km). Hotel development remains concentrated near the circuit, while retail activity expands more broadly into surrounding communities, suggesting stronger local economic spillovers.
</div>

<p><strong>Where did growth actually occur?</strong> The distance-band analysis provides a more intuitive view of these patterns. Hotel development is overwhelmingly concentrated within the 0–5 km epicenter surrounding the circuit. By 2025, this zone contains more than seventy registered accommodations, while the transit corridor and rural periphery remain largely unchanged.</p>

<p>Retail growth follows a different trajectory. Although the epicenter experiences the strongest expansion, commercial shops also increase within the transit corridor and, to a lesser extent, the rural periphery. This suggests that local businesses are more capable of capturing indirect economic opportunities generated by tourism-related development.</p>

<p>Perhaps most importantly, both figures show that the majority of growth occurred between the project’s announcement in 2016 and the circuit’s completion in 2021. Hotel construction, commercial expansion, and physical development accelerated rapidly during the construction phase before transitioning into a slower, more mature growth pattern after the circuit became operational.</p>

<p>This finding echoes the results from the previous section. The economic transformation associated with Mandalika appears to have been driven not only by tourism activity itself, but also by the massive wave of investment and construction that preceded the first race.</p>

<h1 id="discussion-and-synthesis">Discussion and Synthesis</h1>

<p>When the regional trends, village-level patterns, and temporal analyses are viewed together, a consistent picture emerges: Mandalika functions simultaneously as a localized tourism enclave and a broader regional development catalyst.</p>

<p>On one hand, tourism-related investments remain highly concentrated around the Special Economic Zone and the coastal corridor. Hotels and restaurants exhibit the strongest distance-decay effects in the analysis, indicating that high-end hospitality capital remains closely tied to the beach-front tourism economy.</p>

<p>On the other hand, the benefits of the project are not confined entirely to the coast. Physical development, commercial shops, population growth, and nighttime economic activity display much weaker spatial decay. This suggests that the infrastructure investments supporting the SEZ, like roads, utilities, transportation links, and public services, have influenced a much wider area than the tourism zone itself.</p>

<p>Perhaps the most important finding concerns timing. Across multiple indicators, the strongest period of growth occurred during the construction phase rather than after the circuit became operational. The years between 2017 and 2020 saw rapid expansion in built-up areas, commercial activity, and local economic development. By comparison, the post-2021 period is characterized by continued growth, but at a slower and more stable pace.</p>

<p>This suggests that a substantial portion of Mandalika’s economic impact was generated not by the MotoGP events themselves, but by the large-scale investments required to build the project. Land acquisition, construction activities, supporting infrastructure, and associated economic opportunities appear to have produced the most significant development effects.</p>

<p>Taken together, the evidence challenges the common perception that large tourism developments are either complete successes or isolated enclaves. In Mandalika’s case, both dynamics are visible at the same time. Tourism capital remains concentrated near the coast, yet the supporting infrastructure has helped connect inland communities to new commercial opportunities and physical development.</p>

<p>The Mandalika experience therefore highlights an important lesson for regional development policy: the long-term impact of a mega-project may depend as much on the infrastructure built around it as on the headline attraction itself.</p>]]></content><author><name></name></author><category term="Other" /><category term="socioeconomics" /><category term="night-lights" /><category term="openstreetmap" /><category term="causal-inference" /><category term="indonesia" /><summary type="html"><![CDATA[Using a decade of nighttime lights, built-up maps, OpenStreetMap, and census data to assess how the Mandalika MotoGP Circuit reshaped southern Lombok.]]></summary></entry><entry><title type="html">The Economic Footprint of Indonesian Palm Oil</title><link href="https://nasirlukman.github.io/blog/2026/palm-economic-value/" rel="alternate" type="text/html" title="The Economic Footprint of Indonesian Palm Oil" /><published>2026-04-11T20:36:10+00:00</published><updated>2026-04-11T20:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/palm-economic-value</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/palm-economic-value/"><![CDATA[<h2 id="humble-beginnings">Humble Beginnings</h2>
<p><strong>Elaeis guineensis</strong>, also known locally as <em>kelapa sawit</em>, is arguably the most successful immigrant in Indonesian history. Native to West Africa, it arrived in the Dutch East Indies in the mid-19th century as four seedlings planted in the <a href="https://lovelybogor.com/blog/2018/09/22/palm-oil-monument-in-bogor-botanical-gardens/">Bogor Botanical Gardens</a> for scientific study.</p>

<p>From those four ancestors, palm oil cultivation spread until it defined the Indonesian landscape. Cultivation spread from the estates of Sumatra to the vast reaches of Papua, forming a unique symbiosis with human ambition. At the entrance of my office building is a quote by the poet <a href="https://grist.org/article/hass/">Robert Hass</a>: <em>“All lands dream of becoming a forest.”</em> It is a beautiful sentiment, but ironic when contrasted with the dream of many landowners in Indonesia’s lowlands: to turn their land into a palm plantation.</p>

<p>If you drive through the lowlands of Sumatra or Kalimantan, the horizon is rarely anything but palm oil plantations. Today, Indonesian palm oil plantations cover millions of hectares, an area larger than many European nations!</p>

<h2 id="conquering-the-nation">Conquering the Nation</h2>
<p>My remote sensing model estimates approximately <strong>15 million hectares</strong> of palm oil plantations in Indonesia (Figure 1). While some official estimates lean toward 16–17 million, my model is intentionally conservative; it specifically captures mature, healthy stands across both industrial estates and smallholder plots, filtering out areas of high uncertainty or early-stage growth that do not yet contribute to the national Gross Production Value.</p>

<p>To put that in perspective: considering standard plantation spacing, there are more than <strong>2 billion palm oil trees</strong> alive in Indonesia right now. They vastly outnumber the human population. They are probably the most prevalent large organism in the country. Essentially, they are the winners in the game of life.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_16_palm_plantation-480.webp 480w,/assets/img/post_16_palm_plantation-800.webp 800w,/assets/img/post_16_palm_plantation-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_16_palm_plantation.webp" class="img-fluid rounded" width="100%" height="auto" alt="Map of the extent of productive oil palm plantations in Indonesia in 2025." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Productive oil palm plantations in Indonesia in 2025
</div>

<p>But this dominance is not without <a href="https://theicct.org/publication/ecological-impacts-of-palm-oil-expansion-in-indonesia/?gad_campaignid=22639629046">consequence</a>. The expansion of oil palm has been closely linked to large-scale deforestation, particularly in Sumatra and Kalimantan, where lowland forests have been systematically converted into monoculture landscapes. In many cases, this transformation involves peatland drainage, releasing significant amounts of stored carbon and increasing vulnerability to fire. What emerges is a system that is highly efficient economically, but one that comes at the cost of ecological complexity, biodiversity, and long-term landscape resilience.</p>

<h2 id="estimating-annual-gross-production-value-of-crude-palm-oil-cpo">Estimating Annual Gross Production Value of Crude Palm Oil (CPO)</h2>
<p>We can map palm oil from space quite well. What we don’t see directly is its economic value. I wanted to estimate the actual Gross Production Value (GPV) of this landscape at a national level. Because we are dealing with a country as large as Indonesia, we cannot be exact. Instead, we use a probabilistic model. We admit that we do not know some parameters for sure, such as the specific yields or the 2025 price, and define them as ranges based on our best estimates. These are our priors. By running thousands of simulations, we account for the full spectrum of possible outcomes.</p>

<h3 id="the-bayesian-formulation">The Bayesian Formulation</h3>

<p>To do this, we can’t consider all palm plantations in Indonesia to be identical. We have to account for the reality that not all hectares are created equal. To simplify, we divide the palm plantations into three distinct management tiers:</p>

<ol>
  <li>
    <p>Independent Smallholders: The frontier farmers with the highest variability.</p>
  </li>
  <li>
    <p>Plasma Smallholders: Farmers supported by company partnerships.</p>
  </li>
  <li>
    <p>Industrial Estates: The high-efficiency, high-yield engines of the industry.</p>
  </li>
</ol>

<p>To estimate the total value, each component is treated as uncertain rather than fixed. The national Gross Production Value (\(V\)) is the sum of the production from each management tier (\(i\)), multiplied by the global price (\(P\)). Mathematically, the relationship for each tier is:</p>

\[GPV_{i} = A \cdot s_{i} \cdot Y_{i} \cdot ER_{i} \cdot f_{i} \cdot P\]

<p><strong>Where:</strong></p>

<ul>
  <li><strong>\(A\)</strong>: Total national palm oil area (hectares).</li>
  <li><strong>\(s_{i}\)</strong>: The share of total area belonging to tier \(i\) (Independent, Plasma, or Estate).</li>
  <li><strong>\(Y_{i}\)</strong>: Average Fresh Fruit Bunch (FFB) yield (tons/ha).</li>
  <li><strong>\(ER_{i}\)</strong>: Extraction Rate (the efficiency of turning fruit into CPO).</li>
  <li><strong>\(f_{i}\)</strong>: A management/spatial correction factor (accounting for tree health and age).</li>
  <li><strong>\(P\)</strong>: The market price of CPO (USD per ton).</li>
</ul>

<p>By defining each of these as a probability distribution (e.g., \(Y_{i} \sim \text{Normal}(\mu, \sigma)\)), the model iterates through thousands of possible scenarios to find the most likely national total.</p>

<h3 id="parameters-and-assumptions">Parameters and Assumptions</h3>

<p>The table below outlines the specific priors used in the 2025 simulation. These values are derived from a combination of BPS (Statistics Indonesia) historical data, industry benchmarks, and market trends.</p>

<table>
  <thead>
    <tr>
      <th style="text-align: left">Parameter</th>
      <th style="text-align: left">Management Tier</th>
      <th style="text-align: left">Prior Distribution / Range</th>
      <th style="text-align: left">Assumption Logic</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="text-align: left"><strong>Yield (\(Y\))</strong></td>
      <td style="text-align: left">Independent</td>
      <td style="text-align: left">\(\text{Normal}(13, 4)\)</td>
      <td style="text-align: left">High variance due to varied seed quality.</td>
    </tr>
    <tr>
      <td style="text-align: left"> </td>
      <td style="text-align: left">Plasma</td>
      <td style="text-align: left">\(\text{Normal}(17, 3)\)</td>
      <td style="text-align: left">Improved yields through company support.</td>
    </tr>
    <tr>
      <td style="text-align: left"> </td>
      <td style="text-align: left">Industrial</td>
      <td style="text-align: left">\(\text{Normal}(23, 2)\)</td>
      <td style="text-align: left">High-input, consistent industrial management.</td>
    </tr>
    <tr>
      <td style="text-align: left"><strong>Extraction (\(ER\))</strong></td>
      <td style="text-align: left">Independent</td>
      <td style="text-align: left">\(\text{Uniform}(0.18, 0.22)\)</td>
      <td style="text-align: left">Lower efficiency in smallholder milling links.</td>
    </tr>
    <tr>
      <td style="text-align: left"> </td>
      <td style="text-align: left">Plasma</td>
      <td style="text-align: left">\(\text{Normal}(0.23, 0.01)\)</td>
      <td style="text-align: left">Standardized mill processing.</td>
    </tr>
    <tr>
      <td style="text-align: left"> </td>
      <td style="text-align: left">Industrial</td>
      <td style="text-align: left">\(\text{Normal}(0.245, 0.01)\)</td>
      <td style="text-align: left">Optimized industrial-scale extraction.</td>
    </tr>
    <tr>
      <td style="text-align: left"><strong>Adjustment (\(f\))</strong></td>
      <td style="text-align: left">All Tiers</td>
      <td style="text-align: left">\(\text{TruncatedNormal}\)</td>
      <td style="text-align: left">Corrects for non-productive/young trees. Derived empirically from the actual distribution of Landsat NDVI of palm oil plantations at national scale</td>
    </tr>
    <tr>
      <td style="text-align: left"><strong>Price (\(P\))</strong></td>
      <td style="text-align: left">Global</td>
      <td style="text-align: left">\(\text{Lognormal}(\ln(950), 0.15)\)</td>
      <td style="text-align: left">Reflects CPO price volatility for 2025.</td>
    </tr>
  </tbody>
</table>

<p>Figure 2 below visualizes the priors for our model parameters. The tight distribution for Industrial Estates reflects a highly standardized, high-input machine designed for maximum output. Conversely, the wide spread of the Independent Smallholder prior captures the reality of a frontier economy, where factors like seed quality, infrastructure access, and local management create a massive range of performance. By defining these ranges, we try to reduce bias by acknowledging the structural diversity in how different palm oil plantations are managed.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_16_prior-480.webp 480w,/assets/img/post_16_prior-800.webp 800w,/assets/img/post_16_prior-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_16_prior.webp" class="img-fluid rounded" width="100%" height="auto" alt="Prior distributions of the model parameters (yield, extraction rate, adjustment factor, and CPO price) for each management tier." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Prior distributions of the model parameters
</div>

<h3 id="result">Result</h3>

<p>When we aggregate these hectares across the entire 15 million hectare footprint, we get the big picture. The model estimates a national Gross Production Value for 2025 with a mean of approximately USD 55 billion (Figure 3). The 95% credible interval suggests that even under conservative estimates, the value is unlikely to drop below USD 35 billion, while high yields and prices could push it toward USD 80 billion. This is the economic weight of those ~2 billion trees.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_16_Annual_CPO_GPV_estimate-480.webp 480w,/assets/img/post_16_Annual_CPO_GPV_estimate-800.webp 800w,/assets/img/post_16_Annual_CPO_GPV_estimate-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_16_Annual_CPO_GPV_estimate.webp" class="img-fluid rounded" width="100%" height="auto" alt="Posterior distribution of the annual crude palm oil Gross Production Value estimate for Indonesia in 2025." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. Annual CPO GPV estimate for Indonesia in 2025
</div>

<p>Breaking the results down per hectare reveals three distinct economic profiles. As shown in Figure 4, independent smallholders generate around USD 2,200/ha/year, plasma smallholders USD 3,458, and industrial estates USD 5,315. These values serve as practical benchmarks when comparing the economic performance of oil palm against alternative land-use systems.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_16_benchmark_per_ha_per_year_per_classification-480.webp 480w,/assets/img/post_16_benchmark_per_ha_per_year_per_classification-800.webp 800w,/assets/img/post_16_benchmark_per_ha_per_year_per_classification-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_16_benchmark_per_ha_per_year_per_classification.webp" class="img-fluid rounded" width="100%" height="auto" alt="Benchmark Gross Production Value per hectare per year for independent smallholder, plasma, and industrial estate oil palm plantations." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Benchmark GPV per hectare per year by plantation type
</div>

<h2 id="closing-a-plausible-alternative">Closing: A Plausible Alternative</h2>
<p>A system generating ~USD 55 billion a year is not easily replaced. By mapping these values, we now understand what we gain by sacrificing biodiversity and optimizing a unique, complex, and diverse landscape for a single species at scale. Any alternative land use competing with palm oil must either match this level of economic output, or clearly justify why it falls short.</p>

<p>With this baseline in place, the real work begins: testing whether more sustainable, less extractive land-use systems can compete under current market conditions.</p>]]></content><author><name></name></author><category term="Environment" /><category term="palm-oil" /><category term="land-use" /><category term="bayesian" /><category term="indonesia" /><summary type="html"><![CDATA[Mapping Indonesia's oil palm with remote sensing and a Bayesian model to estimate palm oil's gross production value as a benchmark for alternative land use.]]></summary></entry><entry xml:lang="id"><title type="html">Pertambangan di Pulau-Pulau Kecil Indonesia</title><link href="https://nasirlukman.github.io/blog/2026/tambang-pulau-kecil/" rel="alternate" type="text/html" title="Pertambangan di Pulau-Pulau Kecil Indonesia" /><published>2026-03-07T20:36:10+00:00</published><updated>2026-03-07T20:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2026/tambang-pulau-kecil</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2026/tambang-pulau-kecil/"><![CDATA[<p>Beberapa bulan yang lalu, aktivitas pertambangan nikel di Pulau Gag menjadi sorotan publik. Kasus ini mulai viral setelah aksi protes <a href="https://www.greenpeace.org/indonesia/siaran-pers/63070/aktivis-greenpeace-aksi-di-konferensi-nikel-internasional/">Greenpeace Indonesia</a> di Konferensi Nikel Internasional di Jakarta pada Juni tahun lalu. Tentu, tudingan soal pelanggaran hukum dan kerusakan lingkungan membutuhkan investigasi mendalam dan data lapangan. Namun, ada satu aspek yang relatif mudah untuk diinvestigasi: aktivitas pertambangan di pulau-pulau kecil.</p>

<p>Kegiatan pertambangan di pulau kecil memiliki potensi melanggar UU PWP3K No. 27/2007 juncto UU PWP3K No. 1/2014. Putusan MK No. 35/PUU-XXI/2023 mempertegas bahwa pertambangan di pulau kecil termasuk kegiatan berbahaya luar biasa (<em>abnormally dangerous activity</em>), karena pulau-pulau kecil memiliki daya dukung terbatas, dan aktivitas tambang di sana dapat menimbulkan kerusakan permanen <a href="https://www.tempo.co/politik/begini-aturan-penambangan-di-pulau-pulau-kecil-1673629">[1]</a>, <a href="https://apakabar.co.id/news/putusan-mk-nomor-35-puu-xxi-2023-koral-gkp-keliru-menafsirkan/">[2]</a>.</p>

<p>Kegiatan pertambangan di pulau kecil seharusnya dapat terdeteksi dengan cukup baik dan mudah dengan menggunakan citra penginderaan jauh dan analisis GIS. Di post kali ini, saya ingin membagikan sedikit hasil riset tipis-tipis saya mengenai topik ini.</p>

<h1 id="pulau-kecil">Pulau Kecil</h1>
<p>Pertama kita butuh definisi tentang pulau kecil. Berdasarkan UU PWP3K No. 1/2014, pulau kecil merupakan pulau dengan luas ≤ 2.000 km². Indonesia, sebagai salah satu negara kepulauan terbesar di dunia, memiliki ribuan pulau. Berdasarkan data batas provinsi dari Badan Informasi Geospasial <a href="https://geoportal.big.go.id/#/">(BIG)</a>, terdapat setidaknya 19.249 pulau di Indonesia.</p>

<p>Jika kita menghapus pulau &gt; 2.000 km² dan pulau &lt; 1 km² (karena kemungkinan aktivitas tambang di pulau sangat kecil relatif rendah), tersisa 1.622 pulau kecil (Gambar 1). Jumlah ini masih cukup banyak, tetapi memungkinkan sebagai titik awal untuk analisis citra satelit lebih mendetail.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_small_islands-480.webp 480w,/assets/img/post_15_small_islands-800.webp 800w,/assets/img/post_15_small_islands-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_small_islands.webp" class="img-fluid rounded" width="100%" height="auto" alt="Peta pulau-pulau kecil di Indonesia yang ditampilkan dengan latar Google Basemap." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Gambar 1. Pulau-pulau kecil ditandai dengan warna oranye. Peta dasar menggunakan Google Basemap.
</div>

<h1 id="aktivitas-pertambangan-di-pulau-pulau-kecil">Aktivitas Pertambangan di Pulau-Pulau Kecil</h1>
<p>Setelah batas pulau kecil ditentukan, citra satelit dapat dianalisis untuk mendeteksi keberadaan tambang dan menghitung total area tambang dari tahun ke tahun (Gambar 2). Pada tahun 2020, diperkirakan terdapat sekitar 25.000 hektare bukaan tambang di pulau kecil. Beberapa tambang masih aktif, sementara sebagian lain sudah tidak beroperasi dan tidak direklamasi. Status perizinan tambang juga bervariasi, ada yang resmi dan ada pula yang tanpa izin. Dalam analisis ini, perbedaan status-status tersebut tidak dibedakan dan semuanya dihitung sebagai bukaan tambang.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_total_area_per_year-480.webp 480w,/assets/img/post_15_total_area_per_year-800.webp 800w,/assets/img/post_15_total_area_per_year-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_total_area_per_year.webp" class="img-fluid rounded" width="100%" height="auto" alt="Grafik yang menunjukkan tren luas bukaan tambang di pulau-pulau kecil di Indonesia selama 30 tahun, sejak 1990 hingga 2020." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Gambar 2. Grafik yang menunjukkan total luas bukaan tambang di pulau-pulau kecil di Indonesia dari tahun 1990 hingga 2020. Hasil estimasi luasan bersifat indikatif berdasarkan analisis data digital dan belum diverifikasi secara manual.
</div>

<p>Sebagian besar pertambangan di pulau kecil berkaitan dengan nikel, terutama di Sulawesi Tenggara, Maluku Utara, dan Papua Barat Daya, serta bauksit di Kepulauan Riau. Selain dua komoditas tersebut, terdapat pula beberapa komoditas lain dengan luas bukaan yang relatif lebih kecil, yaitu: timah di Bangka Belitung, batubara di Kalimantan Utara, dan bijih besi di Kalimantan Selatan (Gambar 3).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_15_example_per_commodity-480.webp 480w,/assets/img/post_15_example_per_commodity-800.webp 800w,/assets/img/post_15_example_per_commodity-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_15_example_per_commodity.webp" class="img-fluid rounded" width="100%" height="auto" alt="Beberapa contoh citra satelit resolusi tinggi untuk pertambangan di pulau kecil. Contoh dari beberapa komoditas tambang yang berbeda seperti bauksit, nikel, timah, batubara, dan bijih besi." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Gambar 3. Contoh citra satelit resolusi tinggi (Google Basemap Mosaic) yang menampilkan bukaan tambang di beberapa pulau kecil dengan berbagai komoditas: (1) Nikel – Pulau Gei, (2) Batubara – Pulau Bunyu, (3) Bijih Besi – Pulau Sebuku, (4) Timah – Pulau Lepar, (5) Bauksit – Pulau Kas.
</div>

<p>Gambar 3 menunjukkan betapa parahnya imbas kegiatan pertambangan di beberapa pulau kecil di Indonesia. Contoh paling mencolok terlihat di Pulau Kas, di mana lebih dari 90% wilayah pulau telah menjadi bukaan tambang bauksit. Aktivitas pertambangan diperkirakan berhenti sejak 2014, namun tidak ada kegiatan reklamasi atau pemulihan pasca-tambang. Padahal sebelumnya, pulau ini merupakan kawasan hutan. <a href="https://ombudsman.go.id/perwakilan/news/r/pwkmedia--ombudsman-curigai-dana-pemulihan-lingkungan-hilang-tambang-bauksit-tinggalkan-luka-di-karimun">Ombudsman</a> juga menduga dana pemulihan lingkungan yang seharusnya diberikan perusahaan kepada pemerintah menghilang entah ke mana.</p>

<p>Pertambangan bauksit di Kepulauan Riau secara umum telah berlangsung setidaknya sejak 1990-an. Provinsi ini unik karena seluruh daratannya termasuk pulau kecil, dan sejak lama dikenal sebagai penghasil berbagai komoditas tambang strategis seperti bauksit, timah, dan granit. Sekitar 40% total bukaan tambang di pulau kecil Indonesia berada di provinsi ini. Artinya, sejak tahun 2007 seharusnya sudah dilakukan kajian khusus terkait aktivitas pertambangan di provinsi ini sebagai tindak lanjut dari terbitnya UU PWP3K No. 27/2007. Namun kenyataannya, luasan bukaan tambang di pulau-pulau kecil terus bertambah setidaknya hingga 2020.</p>

<p>Sementara itu, pertambangan nikel di pulau kecil di Sulawesi Tenggara dan Maluku Utara bisa dibilang relatif baru. Meski sudah ada tambang sejak awal 2000-an, ekspansi signifikan baru terjadi mulai 2018 di Sulawesi Tenggara dan 2020 di Maluku Utara.</p>

<p>Selain analisis untuk mendeteksi bukaan tambang dan menghitung luasnya tiap tahun, animasi perubahan bentang alam per tahun juga dapat dibuat menggunakan data <a href="https://science.nasa.gov/mission/landsat/">LANDSAT</a>. Ini membantu memahami bagaimana aktivitas tambang mengubah lanskap pulau-pulau kecil sejak 1990-an hingga saat ini. Gambar 4 dan 5 menunjukkan perubahan bentang alam Pulau Malamala dan Pulau Pakal di Maluku Utara dari tahun 1995 hingga 2025, memperlihatkan seberapa cepat tambang dapat mengubah sebagian besar bentang alam pulau kecil.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_15_pulau_malamala.webp" class="img-fluid rounded" width="100%" height="auto" alt="Animasi citra satelit Landsat multi-temporal di Pulau Malamala, Maluku Utara, yang menunjukkan perkembangan aktivitas pertambangan nikel." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Gambar 4. Animasi perubahan bentang alam Pulau Malamala dari tahun 1995 hingga 2025.
</div>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_15_pulau_pakal.webp" class="img-fluid rounded" width="100%" height="auto" alt="Animasi citra satelit Landsat multi-temporal di Pulau Pakal, Maluku Utara, yang menunjukkan perkembangan aktivitas pertambangan nikel." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Gambar 5. Animasi perubahan bentang alam Pulau Pakal dari tahun 1995 hingga 2025.
</div>

<h1 id="penutup">Penutup</h1>
<p>Setelah keributan di dunia maya terkait aktivitas penambangan di Pulau Gag, pemerintah mencabut izin beberapa perusahaan, namun PT Gag Nikel dikecualikan dengan dalil yang kurang <a href="https://www.tempo.co/politik/mengapa-pemerintah-tak-cabut-izin-pt-gag-nikel-di-raja-ampat--1673941">jelas</a>. Di daerah lain, bisa jadi ada pengecualian serupa yang dapat mengizinkan aktivitas pertambangan di pulau-pulau kecil. Namun, pengecualian seperti ini tidak boleh menjadi norma. Sebagaimana dinyatakan Mahkamah Konstitusi, aktivitas pertambangan di pulau kecil termasuk <em>abnormally dangerous activity.</em> Pulau Kas menjadi contoh ekstrem, di mana lebih dari 90% luas pulau telah rusak akibat pertambangan dan bentang alamnya sudah sangat sulit untuk dikembalikan ke kondisi awal.</p>

<p>Analisis sederhana ini menunjukkan tren penting: luas bukaan tambang di pulau-pulau kecil terindikasi terus meningkat, meski UU PWP3K 2007 memberikan batasan yang tegas mengenai aktivitas tersebut. Lebih dari itu, terlihat juga indikasi bahwa sebagian tambang yang ditinggalkan tidak direklamasi. Kecolongan di masa lalu karena sulitnya pengawasan pulau kecil yang tersebar luas dan terpencil seharusnya tidak lagi menjadi alasan. Dengan citra satelit yang semakin banyak dan mudah diakses, sistem pemantauan <em>near-real-time</em> skala nasional seharusnya bisa diwujudkan. Yang terpenting kini adalah <em>political will</em> untuk menegakkan undang-undang dan memastikan pengelolaan pulau kecil berlangsung dengan lebih bertanggung jawab.</p>]]></content><author><name></name></author><category term="Geoscience" /><category term="Environment" /><category term="OSINT" /><category term="mining-compliance" /><category term="small-islands" /><category term="landsat" /><category term="gis" /><category term="indonesia" /><summary type="html"><![CDATA[Melacak luas bukaan tambang di pulau-pulau kecil Indonesia sejak 1990 dengan analisis GIS dan citra satelit, dari nikel di Maluku Utara hingga bauksit di Kepri.]]></summary></entry><entry><title type="html">Satellite Embeddings and the Rise of Foundation Models in Earth Observation</title><link href="https://nasirlukman.github.io/blog/2025/satellite-embeddings/" rel="alternate" type="text/html" title="Satellite Embeddings and the Rise of Foundation Models in Earth Observation" /><published>2025-11-07T23:36:10+00:00</published><updated>2025-11-07T23:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2025/satellite-embeddings</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2025/satellite-embeddings/"><![CDATA[<p>Remote sensing has a feature engineering problem. For years, building good land cover models meant spending enormous effort designing spectral indices, texture metrics, and temporal features. Satellite embeddings may change that.
A few months ago, Google DeepMind released <a href="https://medium.com/google-earth/ai-powered-pixels-introducing-googles-satellite-embedding-dataset-31744c1f4650">Google Satellite Embeddings</a>, a large dataset designed to provide general-purpose representations of the Earth’s surface.</p>

<p>Just hours after the announcement, I read the white paper and started testing the data myself. I was genuinely impressed. Soon after, I attended the <a href="https://earthoutreachonair.withgoogle.com/events/geoforgood25-singapore">Geo for Good 2025 Summit</a> in Singapore, where the dataset was introduced and demonstrated in person.</p>

<p>To be clear, the idea of building foundation models from Earth observation data is not new. Several research groups have already developed foundation models from satellite imagery to better represent Earth’s surface. Some open-source models, such as <a href="https://github.com/IBM/terramind">TerraMind</a>, have also been available for some time.
What makes Google’s embeddings different is not the concept itself, but the scale, consistency, accessibility, and the integration of multiple satellite sensors used to produce them.</p>

<p>There are already many technical explanations of how these embeddings are produced (e.g., their <a href="https://arxiv.org/abs/2507.22291">white paper</a>), so I won’t repeat them here.
A simple way to think about embeddings is “PCA on steroids.” They transform raw satellite imagery into a compact representation that preserves useful information while making patterns easier for machines to learn.
Unlike PCA, these features are learned by deep neural networks and can capture complex relationships in the data, including spatial context and temporal patterns. The downside is that these representations lose their physical meaning and become harder for humans to interpret. In a sense, are we <a href="https://bmiddleton1.substack.com/p/the-ouroboros-effect-how-ai-threatens">sacrificing knowledge for power</a>?</p>

<p>Recently, I started working on a rather ambitious project: building an annual nationwide land use/land cover (LULC) model for Indonesia.
The idea is simple: draw a polygon anywhere in the country, choose a year, and the system automatically generates a land cover map for that area.</p>

<p>The model aims for detailed classification, covering major agricultural commodities such as oil palm, acacia, coffee, and rubber, along with several forest types and other land cover classes.</p>

<p>Before satellite embeddings were available, I built my <a href="https://nasirlukman.github.io/blog/2025/OBIA-LULC/">land cover model</a> using a combination of multispectral and radar datasets, combined with additional feature engineering including spectral and textural feature extraction, followed by dimensionality reduction, image segmentation, and then supervised classification. This approach works reasonably well, but it requires a lot of effort and starts to become prohibitively expensive when the area is very large (i.e., national/regional scale).</p>

<p>Using Google Satellite Embeddings, I can skip most of these steps, and training and inference start to become feasible over very large areas. The model also produced maps with high overall accuracy, reasonably clean class boundaries, and consistent performance over time.</p>

<p>This suggests that the embeddings already capture much of the spectral, spatial, and temporal information that we normally try to engineer manually, allowing relatively simple pixel-based machine learning models to perform much better.</p>

<p>Below is an example of my model in action:</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_14_classification_result-480.webp 480w,/assets/img/post_14_classification_result-800.webp 800w,/assets/img/post_14_classification_result-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_14_classification_result.webp" class="img-fluid rounded" width="100%" height="auto" alt="Google basemap, Google Satellite Embeddings false-color composite, and land use/land cover classification results for a patch of land in Borneo." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Example of the classification result on a small patch of land in Borneo (Google basemap on top, Google Satellite Embeddings false-color composite in the middle, and land use/land cover classification result at the bottom). 
</div>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_14_accuracy_assesment-480.webp 480w,/assets/img/post_14_accuracy_assesment-800.webp 800w,/assets/img/post_14_accuracy_assesment-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_14_accuracy_assesment.webp" class="img-fluid rounded" width="100%" height="auto" alt="Table showing the accuracy metrics (precision, recall, F1 score, and support) for each land cover class." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Accuracy metrics. The overall accuracy (OA) is 0.85.
</div>

<h2 id="looking-ahead">Looking Ahead</h2>

<p>Satellite embeddings are only an early glimpse of a broader shift toward foundation models for Earth observation. A growing number of organizations, including research institutes, space agencies, and major technology companies, are now investing heavily in building large-scale models trained on vast archives of satellite imagery.</p>

<p>These models aim to learn general representations of the Earth’s surface, which can then be reused across many downstream tasks such as land cover mapping, crop monitoring, environmental monitoring, and change detection. Instead of designing task-specific features for every new project, practitioners will increasingly rely on pretrained representations and focus on building lightweight models on top of them.</p>

<p>As these foundation models continue to improve, incorporating more sensors, longer time series, and richer data sources, they will likely reshape how remote sensing workflows are built. Much of the traditional effort spent on feature engineering and data preprocessing may gradually shift toward model adaptation, evaluation, and domain-specific interpretation.</p>

<p>For the remote sensing community, this represents a significant change. Capabilities that once required large teams, specialized infrastructure, and extensive engineering may soon become accessible to smaller research groups, startups, and individual scientists.</p>]]></content><author><name></name></author><category term="Environment" /><category term="foundation-models" /><category term="land-cover" /><category term="machine-learning" /><category term="google-earth-engine" /><category term="indonesia" /><summary type="html"><![CDATA[Evaluating Google Satellite Embeddings (AlphaEarth) for large-scale land cover classification in Indonesia, and what foundation models mean for remote sensing.]]></summary></entry><entry><title type="html">From Arrays to Graphs: Different Ways to Represent Image Data in Remote Sensing</title><link href="https://nasirlukman.github.io/blog/2025/image-data-representation/" rel="alternate" type="text/html" title="From Arrays to Graphs: Different Ways to Represent Image Data in Remote Sensing" /><published>2025-07-12T23:36:10+00:00</published><updated>2025-07-12T23:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2025/image-data-representation</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2025/image-data-representation/"><![CDATA[<h1 id="introduction">Introduction</h1>

<p>In the geospatial and remote sensing world, image files are typically referred to as raster files. These files store images in pixels, where each pixel is located at a specific row and column position and stores a single value representing intensity or reflectance. This structure resembles a 2D matrix or array. If each pixel is associated with multiple values (like in multispectral or hyperspectral data), they are stored across different bands, which are essentially multiple aligned layers, each representing one variable.</p>

<p>These raster files are always accompanied by metadata, which includes the coordinate system, pixel resolution, and the coordinates of a reference point in the image (typically the top-left corner). With this information, we can geolocate each pixel. Raster data is typically stored in .tif files, and when geospatial metadata is included, the file is referred to as a GeoTIFF. This format is widely supported and convenient for storing remote sensing data.</p>

<p>More modern formats like <a href="https://cogeo.org/">Cloud Optimized GeoTIFFs (COGs)</a> allow for efficient workflows in cloud-based environments, which is crucial considering the rapidly increasing volume of satellite imagery. Still, at their core, these files follow the same basic structure: an array of pixel values.</p>

<p>As users of the data, we have the freedom to represent and structure it in different ways, depending on the needs of our analysis. Alternative representations can open up new ways of thinking about image analysis and allow us to apply analytical methods that may not work well with standard raster formats. In this post, we’ll discuss different ways to think about and structure our image data, and how these representations support different types of analysis.</p>

<p>For this example, we’ll use a small image patch with three bands to simplify the visualizations. We downsample this small patch of forest and grassland into a 5×5 pixel image, so the total shape is 5×5×3.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_resample-480.webp 480w,/assets/img/post_13_resample-800.webp 800w,/assets/img/post_13_resample-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_resample.webp" class="img-fluid rounded" width="100%" height="auto" alt="Satellite imagery from Planet showing a patch of forest and grassland, downsampled to 5x5 pixels for simplicity in the data representation example." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. The example image. For simplicity, we resample this image to 5 by 5 pixels and only use the RGB bands, resulting in an array with a shape of 5x5x3. 
</div>

<h1 id="1-data-cube">1. Data Cube</h1>
<p>The most natural way to represent multiband image data is probably as an array. Our previous image can be visualized as a 5×5×1 array like this:</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_composite-480.webp 480w,/assets/img/post_13_composite-800.webp 800w,/assets/img/post_13_composite-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_composite.webp" class="img-fluid rounded" width="100%" height="auto" alt="RGB composite image visualized as 5x5x1 voxels." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. The same image visualized as 5x5x1 voxels, where the three RGB bands are reduced into one color composite band.
</div>

<p>In this case, the displayed pixel values, which are shown as colors, are not the original data but a composite of the RGB bands. Behind the scenes, the raw data is a stack of three 5×5 grids, where each layer represents the intensity of red, green, and blue light respectively. Since human eyes perceive light in these wavelengths, we see a combination of them as color. This RGB composite is helpful for visualization, as it compresses information in a way we can easily interpret. However, this compression also leads to some information loss. That’s why, for image analysis, we usually work with the raw, uncompressed form.</p>

<p>In raw form, the image is a 5×5×3 array. For the computer, this is just a structured sequence of numbers. But it helps us to imagine it as a cube, where the horizontal plane represents the x and y coordinates, and the vertical axis represents the intensity in each spectral band (in this case, red, green, and blue).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_datacube-480.webp 480w,/assets/img/post_13_datacube-800.webp 800w,/assets/img/post_13_datacube-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_datacube.webp" class="img-fluid rounded" width="100%" height="auto" alt="5x5x3 voxel representation of the raw image array, often referred to as a data cube. Each band, representing the intensity of red, green, and blue light respectively, is stacked together." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. The same image visualized as 5x5x3 voxels of the raw data. This is often referred to as a data cube.
</div>

<p>This 3D structure is often referred to as a tensor. Representing data in this way is useful if we want to apply linear algebra or use models that rely on spatial and spectral structure. For example, in deep learning, <a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">convolutional neural networks (CNNs)</a> apply a series of convolution operations (visualized as yellow-lined voxels in Figure 4) to extract spatial and spectral features from the image. These filters slide over the image with the goal of capturing shapes, textures, and color combinations that define particular classes or objects.</p>

<p>This approach is very powerful and currently forms the state of the art in image analysis. However, it comes with limitations, especially the need for large labeled datasets and substantial computational power.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
    
    <img src="/assets/img/post_13_convolution_anim.webp" class="img-fluid rounded" width="100%" height="auto" alt="Simplified animation of how a convolutional layer in a CNN works." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Animated example of how a convolutional layer moves through the image to capture complex spatial and spectral patterns.
</div>

<h1 id="2-spatially-flattened-matrix">2. Spatially Flattened Matrix</h1>

<p>Some machine learning algorithms like <a href="https://scikit-learn.org/stable/modules/svm.html">SVM</a>, <a href="https://scikit-learn.org/stable/modules/ensemble.html#forest">Random Forest</a>, and <a href="https://xgboost.readthedocs.io/en/stable/tutorials/model.html">XGBoost</a> do not take spatial patterns into account. They treat each pixel independently and classify them based only on their spectral signatures.</p>

<p>If we’re using such methods, or any approach that works on a pixel-by-pixel basis, then maintaining the spatial relationship between pixels is unnecessary. Instead, we can restructure the image as a 2D array, where each column represents an individual pixel, and each row represents a spectral band.</p>

<p>The computer will interpret this as just another structured collection of numbers, though with a simpler 2D format.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
    <img src="/assets/img/post_13_pixelwise_classification_anim.gif" class="img-fluid rounded" width="100%" height="auto" alt="Simplified animation of how a typical pixel-by-pixel classifier such as Random Forest, SVM, or XGBoost moves from one pixel to the next, treating each pixel as an individual vector in feature space." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Animated example of how a typical machine learning classifier moves from one pixel to another in the spatially flattened matrix, treating each pixel as a vector.
</div>

<p>This representation allows the classifier to treat each column as a feature vector, and move from one pixel to another without worrying about their positions. It’s efficient and works well when spatial context isn’t critical.</p>

<h1 id="3-collection-of-vectors-in-feature-space">3. Collection of Vectors in Feature Space</h1>

<p>In the previous example, we already treated each pixel as a vector, but we still thought of it mainly as numerical data. In this section, we look at how visualizing each pixel as a geometric object can be useful.</p>

<p>Using the same image, we now represent each pixel as a vector from the origin in RGB space.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_vectors-480.webp 480w,/assets/img/post_13_vectors-800.webp 800w,/assets/img/post_13_vectors-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_vectors.webp" class="img-fluid rounded" width="100%" height="auto" alt="Image pixels represented as vectors in feature space. This representation is useful for geometric analysis of the data, which is the basis of the Spectral Angle Mapper (SAM), K-means clustering, and Principal Component Analysis (PCA)." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 6. In this representation, each pixel is visualized as a vector from the origin (0,0,0) to its data coordinate in RGB feature space.
</div>

<p>This allows us to evaluate similarity between pixels based on the angle between vectors, also known as angular distance (I’ve discussed this in more detail <a href="https://nasirlukman.github.io/blog/2024/distance/">here</a>). Pixels with the same color but different brightness will have the same direction (0° angular distance), and only differ in magnitude. This is particularly useful in remote sensing, where terrain and illumination changes can cause variations in brightness. Using the <a href="https://step.esa.int/main/wp-content/help/versions/9.0.0/snap-toolboxes/org.esa.s2tbx.s2tbx.spectral.angle.mapper.ui/sam/SAMProcessor.html">Spectral Angle Mapper (SAM)</a> method, these brightness differences can be ignored.</p>

<p>This geometric interpretation of pixel vectors is also useful for other analytical methods like <a href="https://en.wikipedia.org/wiki/K-means_clustering">K-means clustering</a> and <a href="https://pro.arcgis.com/en/pro-app/3.3/tool-reference/spatial-analyst/how-principal-components-works.htm">Principal Component Analysis (PCA)</a>, both of which are based on geometric analysis of pixels in feature space.</p>

<h1 id="4-graphs">4. Graphs</h1>
<p>Another way to represent an image is as a graph. A graph consists of nodes and edges. Each node represents a pixel and stores its spectral information. Edges represent connections between pixels, and each edge has a weight that reflects the similarity between the connected pixels.</p>

<p>We have flexibility in how we define these graphs. In this example, I use the pixel’s spatial coordinates for node positions. Each node connects to its 8 neighbors (horizontal, vertical, and diagonal), and the edge weight is calculated based on both spatial distance and spectral similarity (i.e., pixels that are closer to each other and have similar colors/spectra have the lowest weight).</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_spatial_graph-480.webp 480w,/assets/img/post_13_spatial_graph-800.webp 800w,/assets/img/post_13_spatial_graph-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_spatial_graph.webp" class="img-fluid rounded" width="100%" height="auto" alt="Image represented as a graph in spatial space. Each node is located at the pixel's geographic coordinates and contains all of its spectral information, and each edge is weighted by spatial closeness and spectral similarity." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 7. Graph representation of the image in spatial space.
</div>

<p>Even with this simple setup, we can already capture the spatial and spectral structure of the image. For example, superpixel clustering can be done by cutting edges based on weight thresholds. More complex methods like graph-based deep learning also become possible with this structure.</p>

<p>In remote sensing, Object-Based Image Analysis (OBIA) is often used for tasks like land cover classification. OBIA captures both spatial and spectral patterns and is widely used because it’s less demanding than deep learning but still effective. Typically, clustering algorithms like <a href="https://developers.google.com/earth-engine/apidocs/ee-algorithms-image-segmentation-snic">SNIC</a> are used first, followed by supervised classification methods like Random Forest or SVM applied to each cluster.</p>

<p>I think OBIA could be more naturally implemented using a graph-based approach, where clustering and classification happen simultaneously in a unified framework. However, I haven’t explored this idea in depth myself.</p>

<p>We can also define the graph purely in feature space, where nodes are pixels and edge weights are the Euclidean distance between spectral vectors. This structure makes it easy to apply unsupervised classification methods that group pixels based on spectral similarity, much like K-means.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_13_spectral_graph-480.webp 480w,/assets/img/post_13_spectral_graph-800.webp 800w,/assets/img/post_13_spectral_graph-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_13_spectral_graph.webp" class="img-fluid rounded" width="100%" height="auto" alt="Image represented as a graph in feature space. Each node is located in feature space according to its feature values, and each edge is weighted by Euclidean distance." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 8. Graph representation of the image in feature space.
</div>

<h1 id="takeaways">Takeaways</h1>

<p>The way we represent image data can influence how we think about and analyze it. Whether we treat the image as a cube, a flat table, a set of vectors, or a graph, each perspective opens different possibilities and supports different types of methods. In practice, we often move between these representations depending on the task. Some problems require spatial context, some don’t, and some benefit from looking at geometry in feature space.</p>

<p>In this post, I simplified the image to just a few pixels and three bands so we can still visualize and reason about it in 3D space. In real-world remote sensing, however, we often work with millions of pixels and possibly hundreds of spectral bands, making direct visualization impossible. That’s why it’s helpful to build an intuitive understanding using simple 3D examples first. Once we grasp the core ideas in a space we can see, it becomes much easier to generalize those concepts mathematically to higher-dimensional data where we rely entirely on abstract reasoning and computation.</p>

<p>Personally, I find that understanding the data representation used in each analytical method helps us think more clearly about how the method works, and also gives us the ability to adjust our analysis according to our needs. Instead of just following a fixed workflow, we can be more intentional in how we prepare and structure our data. This flexibility becomes especially important as we deal with more complex remote sensing problems, where no single representation fits all use cases.</p>]]></content><author><name></name></author><category term="Other" /><category term="machine-learning" /><category term="deep-learning" /><category term="object-based-classification" /><category term="image-analysis" /><summary type="html"><![CDATA[A practical overview of image data structures in remote sensing (data cubes, flattened matrices, feature-space vectors, and graphs) and what each enables.]]></summary></entry><entry><title type="html">Revisiting NDFI: A Flexible Index for Forest Monitoring and Beyond</title><link href="https://nasirlukman.github.io/blog/2025/ndfi/" rel="alternate" type="text/html" title="Revisiting NDFI: A Flexible Index for Forest Monitoring and Beyond" /><published>2025-06-28T23:36:10+00:00</published><updated>2025-06-28T23:36:10+00:00</updated><id>https://nasirlukman.github.io/blog/2025/ndfi</id><content type="html" xml:base="https://nasirlukman.github.io/blog/2025/ndfi/"><![CDATA[<h1 id="introduction">Introduction</h1>

<p>The <a href="https://registry.verra.org/app/projectDetail/VCS/5085">Tond Tenga Project</a> in Burkina Faso was the <a href="https://esgnews.com/verra-registers-first-carbon-project-under-icvcm-approved-methodology/">first</a> verified Afforestation, Reforestation, and Revegetation (ARR) project under <a href="https://verra.org/methodologies/vm0047-afforestation-reforestation-and-revegetation-v1-1/">VM0047</a>. As part of their biomass stocking index methodology, they use the Normalized Difference Fraction Index (NDFI), calculated from Landsat 8 and 9 Operational Land Imager (OLI) scenes. This caught my interest and motivated me to revisit the method. In this blog, I’ll write down my notes and key takeaways, both for my own reference and for others who want to understand the core ideas behind the NDFI.</p>

<p>At first glance, the name sounds similar to other well-known remote sensing indices like NDVI or NDWI. But unlike those indices, NDFI isn’t a simple equation applied to standard satellite bands. In fact, I think NDFI in remote sensing should be seen more as a general concept or approach in feature engineering, rather than a fixed index. Let’s unpack that in more detail.</p>

<h1 id="a-quick-look-at-spectral-mixture-analysis-sma">A Quick Look at Spectral Mixture Analysis (SMA)</h1>

<p>NDFI was originally developed to map forest canopy damage caused by selective logging and fires in the Amazon, introduced by <a href="https://www.sciencedirect.com/science/article/abs/pii/S0034425705002385">Souza et al. (2005)</a>. It’s based on a method called spectral mixture analysis (SMA), or spectral unmixing. It is something I’ve written about multiple times on this blog. But for completeness, let’s go over a quick refresher.</p>

<p>SMA starts from a classic remote sensing problem: a single pixel often contains multiple objects. For example, take the pixel shown in the image below:</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_mixture_example-480.webp 480w,/assets/img/post_12_mixture_example-800.webp 800w,/assets/img/post_12_mixture_example-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_mixture_example.webp" class="img-fluid rounded" width="100%" height="auto" alt="Illustration of how a single pixel can contain multiple objects of interest, and how the reflected light captured by the satellite sensor is a mixture of each object's reflectance." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 1. Illustration of how one pixel can contain multiple objects of interest, and how what the satellite captures is actually a mixed reflectance signal of each individual object. 
</div>

<p>Within that one 10 x 10 m pixel, we have two tree crowns, some grassy ground, and part of a dirt road. In SMA, these individual components are called endmembers. From spectroscopy, we know that different materials reflect and absorb light in different ways; this behavior across wavelengths is what we call a spectral signature.</p>

<p>Trees, grass, and soil each have their own characteristic spectral signatures. In multispectral or hyperspectral images, these differences let us distinguish one endmember from another. But when several endmembers are mixed within a single pixel, the resulting spectral signal is a mixed spectrum, and that makes it harder to classify the pixel using a simple “match-the-spectrum” approach.</p>

<p>SMA becomes useful for two main reasons. First, because a mixed pixel hides the original spectral signature of each object, it becomes hard to classify each pixel directly using traditional approaches. SMA helps us make sense of that mix. Second, sometimes we want to get more detailed information than what the resolution of the image allows. For example, we might want to estimate the tree canopy cover inside a single pixel, even if that pixel covers 10 or 30 meters on the ground. SMA lets us break down that pixel and estimate the proportion of each endmember inside it.</p>

<p>SMA typically assumes a linear mixing model, where each endmember’s spectral signature is multiplied by its area fraction, and then summed. In matrix notation, we can write it as:</p>

\[\mathbf{y} = \mathbf{E} \mathbf{a}\]

<p>where \(\mathbf{y}\) is the mixed spectrum that the sensor captures, \(\mathbf{E}\) is the endmember spectra matrix where each column represents a single endmember spectrum, and \(\mathbf{a}\) is the area fraction vector, which sums to one.</p>

<p>In most SMA workflows, we assume that the endmember spectra \(\mathbf{E}\) are known. We won’t go into how to extract the endmembers here, but common approaches include using spectral libraries, manually selecting the purest pixels, or applying automated methods like N-FINDR, which I’ve explained in more detail <a href="https://nasirlukman.github.io/blog/2024/nfindr/">here</a>.</p>

<p>The main goal is to solve for the vector \(\mathbf{a}\), which gives us the area fraction of each endmember inside the pixel. This is usually done by solving a constrained optimization problem (non-negative, sum-to-one constraints). You can refer to the equation I used in my earlier post <a href="https://nasirlukman.github.io/blog/2024/distance/">here</a>.</p>

<p>Now, is the linear mixing assumption reasonable? 
This assumption holds true if we assume a completely flat and smooth surface, as illustrated in the image below.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_simple_mixture-480.webp 480w,/assets/img/post_12_simple_mixture-800.webp 800w,/assets/img/post_12_simple_mixture-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_simple_mixture.webp" class="img-fluid rounded" width="100%" height="auto" alt="Illustration of the surface assumption under which the linear mixing model holds. On a completely flat and smooth surface, each light ray hits only one object before it is reflected and captured by the sensor, so what the sensor captures is simply a linear combination of each object's spectral signature weighted by its area proportion." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 2. Illustration of flat and smooth surface conditions where linear mixing holds true.
</div>

<p>In this scenario, each light ray from the sun (\(\mathbf{R}_0\)) interacts with only one object before reflecting into the sensor. In this case, both \(\mathbf{R}_1\) and \(\mathbf{R}_2\) are pure reflectances (endmember’s spectral signature) of object 1 and object 2, respectively. What the sensor receives is simply a linear combination of these reflectances weighted by their respective area fractions.</p>

<p>However, real-world surfaces are obviously more complex. For example, consider the next image, which better reflects a realistic, vegetated surface:</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_complex_mixture-480.webp 480w,/assets/img/post_12_complex_mixture-800.webp 800w,/assets/img/post_12_complex_mixture-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_complex_mixture.webp" class="img-fluid rounded" width="100%" height="auto" alt="More realistic condition of a vegetated Earth surface. In this case, each light ray hits multiple objects before being reflected to the sensor. This complex interaction between light and multiple objects causes the mixture to deviate from the linear model." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 3. A more realistic illustration of a vegetated Earth surface
</div>

<p>Due to the complex condition of the real surface, light doesn’t just bounce off one object. It often reflects multiple times between different objects before reaching the sensor. For instance, in the image above, \(\mathbf{R}_1\) is the normal reflectance from the ground, which will be equal to the ground spectral signature. Then we have \(\mathbf{R}_2\), which is the reflectance from the tree trunk. But here, the light hitting the trunk isn’t direct sunlight anymore; it has already been reflected off the ground. So if we have a reference endmember spectrum for tree bark, it will not be equal to \(\mathbf{R}_2\), because the endmember spectrum was measured assuming direct sunlight as the source. Finally, \(\mathbf{R}_3\) becomes even more complex, as it involves light that has already been reflected multiple times. These multi-bounce interactions are why the signal the sensor receives doesn’t follow a simple linear mixture of the endmember spectra. The assumption breaks down when multiple scattering effects become significant.</p>

<p>I bring this up because I think it is important to be aware of the limitations of this approach and to acknowledge that there are methods that try to model this more realistically. For example, <a href="https://link.springer.com/chapter/10.1007/978-3-319-04126-1_19">bilinear mixing models</a> have been shown to perform better in vegetated areas. I also discussed a more physics-based nonlinear model in my earlier research on <a href="https://nasirlukman.github.io/blog/2024/bayes-unmixing/">mineral mixtures</a>.</p>

<p>That being said, modeling the precise interaction of light and matter on Earth’s surface is, for most practical purposes, nearly impossible. And once you go down that path, it’s easy to over-engineer the problem and fall into a rabbit hole: adding tons of complexity for only marginal performance gains.</p>

<p>It helps to remember that each time light reflects, it loses intensity. So usually, the strongest contribution to the final signal is from the first object the light hits. For a lot of real-world remote sensing tasks, the linear model gives a good enough approximation. If it doesn’t, then it’s time to explore something more complex.</p>

<h1 id="ndfi">NDFI</h1>

<p>After a long (but necessary) introduction about SMA, now it’s time to talk about NDFI itself.</p>

<p>In the original paper, the authors used Green Vegetation (GV), Non-Photosynthetic Vegetation (NPV), Soil, and Shadow as their endmembers. Since their goal was to detect selectively logged and burned forests, these were the classes they considered useful. The underlying idea is that undisturbed forest has a high proportion of GV, while disturbed forest has more NPV and Soil. So in the original implementation, NDFI grouped all green vegetation into a single GV class.</p>

<p>However, when we apply regular spectral unmixing in forested areas, we run into a common problem: shadows. Forest canopies often cast strong shadows, which can dominate parts of the spectral signal and throw off the GV proportion. To correct for this, the original method normalized the GV fraction by the proportion of non-shadow in the pixel:</p>

\[GV_{\text{Shade}} = \frac{GV}{1 - \text{Shade}}\]

<p>After this correction, they calculated the normalized difference between the corrected GV and the combined NPV + Soil fraction using this equation:</p>

\[\text{NDFI} = \frac{GV_{\text{shade}} - (NPV + Soil)}{GV_{\text{shade}} + NPV + Soil}\]

<p>This simple adjustment makes a big difference. By correcting GV for shade and structuring the index around the key land cover fractions, NDFI performs very well for what it was originally designed to do.</p>

<p>However, if we want to use NDFI for a different purpose, for example as a predictor for above-ground biomass (AGB), then a critical adaptation of the index may be useful. Intuitively, I think separating trees from grass or shrubs would be helpful, since they have very different biomass, even though both are green vegetation.</p>

<p>The main concept of NDFI still holds. What changes is the definition of the endmembers and how we combine them in the index. For instance, in a biomass mapping application, we may want to compute the proportion of tree cover relative to all other land cover types (grass, shrub, NPV, soil, etc.). That way, NDFI becomes more aligned with the information we care about.</p>

<p>And of course, endmember selection is flexible. Different ecoregions may require different class definitions depending on which surface types are important—or which ones can be safely ignored.</p>

<h1 id="example-ndfi-in-tropical-forest-using-sentinel-2">Example: NDFI in Tropical Forest Using Sentinel-2</h1>

<p>Let’s use Sentinel-2 imagery to look at a tropical rainforest area in Borneo as an example. Below is the RGB image of the area, along with the NDFI result. The NDFI here is computed using Tree, Grass, Soil, and Shadow as the endmembers. The endmember spectra were extracted manually from the image.</p>

<p>There are some buildings visible, but I didn’t include them as endmembers since they’re irrelevant for this analysis. I also couldn’t find a convincing candidate for NPV in this area, so I excluded it. Therefore, the NDFI in this example is calculated by comparing the shadow-corrected Tree fraction with the sum of Grass and Soil fractions.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_rgb_and_ndfi-480.webp 480w,/assets/img/post_12_rgb_and_ndfi-800.webp 800w,/assets/img/post_12_rgb_and_ndfi-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_rgb_and_ndfi.webp" class="img-fluid rounded" width="100%" height="auto" alt="RGB composite of Sentinel-2 imagery over a tropical forest in Borneo (left) and the NDFI result showing the fraction of shadow-corrected tree cover compared to soil and grass (right)." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 4. Sentinel-2 RGB image on the left, and the NDFI result on the right.
</div>

<p>A high NDFI value (shown in red) indicates a higher proportion of tree canopy inside a pixel, which usually suggests denser forest. Areas in yellow or orange still have tree canopy dominance, but are less dense. Regions in green to blue have minimal or no tree cover.</p>

<p>Even visually, we can already see that this image helps distinguish dense forest, which likely has higher AGB, from sparser or degraded forest. In the context of a stocking index, the next step would be to explore the relationship between this NDFI output and AGB modeled from field measurements.</p>

<p>It’s also important to point out that generating NDFI requires us to first compute the fractional abundance of each endmember from the spectral unmixing. This intermediate result can be useful on its own. For instance, the Soil fraction alone is quite effective at highlighting small roads, which can be a valuable input layer for downstream tasks like road detection using deep learning.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_soil_fractions-480.webp 480w,/assets/img/post_12_soil_fractions-800.webp 800w,/assets/img/post_12_soil_fractions-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_soil_fractions.webp" class="img-fluid rounded" width="100%" height="auto" alt="Spectral unmixing result showing the soil fraction inside every pixel of the image, useful as an input for deep learning road detection models." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 5. Soil fraction as an intermediate result in the NDFI computation. This image is also useful if the goal is to detect small dirt roads, for example. Notice the small dirt road to the west of the main road, previously hardly visible in the original RGB image.
</div>

<p>And for standard visualization purposes, it’s also useful to combine the fraction layers into a false-color composite to visualize how different land cover types are distributed spatially.</p>

<div class="row mt-3">
    <div class="col-sm mt-3 mt-md-0">
        



<figure>
  <picture>
    <!--
      See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
      https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
    -->
    
      
        <!-- Pre-generated responsive WebP versions (name-480/800/1400.webp) -->
        <source class="responsive-img-srcset" srcset="/assets/img/post_12_false_color-480.webp 480w,/assets/img/post_12_false_color-800.webp 800w,/assets/img/post_12_false_color-1400.webp 1400w," sizes="95vw" type="image/webp" />
      
    
    <img src="/assets/img/post_12_false_color.webp" class="img-fluid rounded" width="100%" height="auto" alt="False-color composite combining the soil, tree, and grass fraction layers from spectral unmixing of Sentinel-2 imagery over a tropical forest in Borneo." onerror="this.onerror=null; $('.responsive-img-srcset').remove();" />
  </picture>

  
</figure>

    </div>
</div>
<div class="caption">
    Figure 6. False-color composite combining the soil, tree, and grass fractions. This visualization helps make the spatial distribution of land cover types easier to interpret for human analysis.
</div>

<h1 id="my-takeaway">My Takeaway</h1>

<p>I was doing some quick research on above-ground biomass when I stumbled back upon this method. While thinking more carefully about it, and while writing this post, I realized a few important general takeaways about doing remote sensing analysis.</p>

<p>First, it’s tempting to just take some well-known equation, apply it to our data, and call it a day. On the other extreme, we might overthink the physics and math behind the problem, end up overengineering the solution, and spend a lot of time, effort, and money, only to gain marginal improvements in the final result.</p>

<p>Ideally, we should aim for something in between. We invest time early on to build a solid understanding of the fundamentals, clarify the real goal of the analysis, and consider the available resources. Then we design a solution that balances practicality, accuracy, and efficiency.</p>

<p>In the end, good remote sensing work is not just about applying the right method, but about applying the right level of thinking about the goal, the problem, the solution, and the constraints.</p>]]></content><author><name></name></author><category term="Environment" /><category term="spectral-unmixing" /><category term="forest-monitoring" /><category term="biomass" /><category term="sentinel-2" /><summary type="html"><![CDATA[A practical look at the Normalized Difference Fraction Index (NDFI): its spectral unmixing roots, forest monitoring origins, and use for biomass mapping.]]></summary></entry></feed>