<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Teerathap Yaisungnoen on Medium]]></title>
        <description><![CDATA[Stories by Teerathap Yaisungnoen on Medium]]></description>
        <link>https://medium.com/@teerathap?source=rss-d030247c0dd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*4tm-VNUHng8gWYRfKuk5Qg.png</url>
            <title>Stories by Teerathap Yaisungnoen on Medium</title>
            <link>https://medium.com/@teerathap?source=rss-d030247c0dd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:59:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@teerathap/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Measuring a Hot City From 700 Kilometres Up]]></title>
            <link>https://medium.com/@teerathap/measuring-a-hot-city-from-700-kilometres-up-7463e0d629bc?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7463e0d629bc</guid>
            <category><![CDATA[bangkok]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[urban-planning]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Sun, 06 Dec 2026 02:16:01 GMT</pubDate>
            <atom:updated>2026-12-06T02:16:01.496Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What Landsat thermal data can tell you about urban heat, and the three things it cannot</em></p><p>Walk from a park into a car park in Bangkok at noon and you do not need a satellite to know which is hotter. But if you want to know which neighbourhoods run hottest, how much a new green space helps, or where to plant trees first, you need a map. Landsat’s thermal sensor is the most common way people make one.</p><p>It is a powerful tool. It is also easy to overread.</p><h3>What the sensor measures</h3><p>Landsat 8 and 9 carry a thermal infrared instrument, TIRS. Its band 10 measures emitted radiation around 10.6 to 11.2 micrometres. From that, after correcting for the atmosphere and the emissivity of the surface, you get land surface temperature.</p><p>The USGS distributes this ready made in its Collection 2 Level 2 surface temperature product, so you do not have to do the physics yourself. With two satellites in orbit, you get a look at the same place roughly every eight days, cloud permitting.</p><h3>1. It is surface temperature, not air temperature</h3><p>This is the big one. Land surface temperature is how hot the skin of the ground is: the roof, the asphalt, the leaf, the water. On a sunny afternoon, a dark roof can be far hotter than the air a person breathes at street level.</p><p>Surface heat and air heat are related, and hot surfaces do warm the air above them. But the map shows roofs, not people. A neighbourhood with hot rooftops and shaded streets can feel cooler on the ground than its thermal map suggests.</p><h3>2. The pixel is coarser than it looks</h3><p>Landsat products come at 30 m, but band 10 is actually sensed at 100 m and resampled. A 30 m thermal pixel is a smoothed version of a coarser measurement. You can rank districts and large blocks with confidence. Comparing two adjacent buildings is beyond what the sensor actually resolved.</p><h3>3. It only sees one time of day</h3><p>Landsat passes over in the mid morning, local time. You see the city at around 10 in the morning, on clear days only. Urban heat islands are often strongest at night, when concrete and asphalt release the heat they stored during the day while parks cool down. A daytime satellite cannot see that part of the story.</p><p>For night time patterns, people turn to other sources: ECOSTRESS on the International Space Station, which passes at varying times of day, or coarser sensors like MODIS with night overpasses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XThVj6Jdecyhp5XOGSCJAg.jpeg" /><figcaption>A daytime satellite catches one moment of a daily cycle and misses the night, when built surfaces stay warm. Illustrative, diagram by the author.</figcaption></figure><h3>Emissivity, quietly</h3><p>To turn radiation into temperature, you need to know how efficiently each surface emits. Water and vegetation are close to perfect emitters, metal roofs are not. The Landsat product uses a global emissivity database derived from ASTER. Where that database has gaps, the temperature product has gaps too, and for surfaces like corrugated metal the correction is less certain.</p><h3>Using it well</h3><p>Thermal maps are at their best for comparisons: this district versus that one, this summer versus last summer, before versus after a new park. They are weakest when used as a stand in for what people actually experience.</p><p>Pair them with air temperature from weather stations where you can. Use many clear scenes instead of one. And when you show a heat map to a city planner, say clearly that it shows how hot surfaces were at mid morning on clear days. That is still a very useful thing to know.</p><h4>References</h4><ul><li>USGS, Landsat Collection 2 Level 2 Science Products. <a href="https://www.usgs.gov/landsat-missions/landsat-collection-2-level-2-science-products">https://www.usgs.gov/landsat-missions/landsat-collection-2-level-2-science-products</a></li><li>USGS EROS, Landsat 8 to 9 OLI/TIRS Collection 2 Level 2 archive. <a href="https://www.usgs.gov/centers/eros">https://www.usgs.gov/centers/eros</a></li><li>NASA JPL, ECOSTRESS mission. <a href="https://ecostress.jpl.nasa.gov/">https://ecostress.jpl.nasa.gov</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7463e0d629bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Closed Loop #3: Feedforward]]></title>
            <link>https://medium.com/@teerathap/closed-loop-3-feedforward-a296121f5866?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a296121f5866</guid>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[control-system]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Sat, 05 Dec 2026 21:21:29 GMT</pubDate>
            <atom:updated>2026-12-05T21:21:29.303Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Feedback can only fix a problem after it shows up. Feedforward acts on the cause while it is still on its way. The third piece in a series about what control engineering teaches about running product and engineering work.</em></p><p>The last piece ended with a distinction. Some of what pushes a product off course is noise, and the right response to noise is a calmer loop. Some of it is real, lasting, and visible before it arrives: a season, a contract change, a dependency that is about to be retired. Turning up the feedback gain is the wrong answer to those. Control engineering has a separate tool for them, and it is one of the most practical ideas in the field. It is called feedforward.</p><p>This piece explains what feedforward is, shows with a small simulation how much it buys even when the model behind it is rough, and then spends most of its time on the condition that decides whether it works at all: whether you see the disturbance early enough. As always, it ends with where the comparison stops working.</p><h3>Feedback always arrives second</h3><p>A feedback controller looks at the error, the gap between what you want and what you measure. That is its strength. It does not need to know why the gap exists, it just closes it. It is also its limit. A feedback controller cannot do anything until the error exists, which means the disturbance has to hurt the output before the controller even notices it. Add the delay from the last piece, the time between acting and seeing the effect, and a feedback loop is always at least one delay behind whatever pushed it.</p><p>A car with cruise control shows this well. Cruise control holds speed with feedback. When the car starts climbing a hill, the speed drops, the controller sees the drop, and it opens the throttle. The car slows down first and recovers afterwards. A good human driver does something different. They see the hill coming and press the accelerator a little as the road starts to rise, so the speed barely changes. The driver is not reacting to an error. They are reacting to the cause of a future error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dQz52a6kqM68_A9l6AIqRg.png" /><figcaption>Feedback waits for the speed to drop. A driver looks up the road. Diagram by the author.</figcaption></figure><p>That is feedforward: measure the disturbance itself, predict what it will do to the output, and act to cancel it before the output moves.</p><h3>The structure</h3><p>In a block diagram, feedforward is a second path into the plant. The usual feedback path is still there. The new path starts from a sensor on the disturbance and goes through a feedforward controller that adds its action to the feedback controller’s action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWYMvVcGVDZiGEgqQOwU_w.png" /><figcaption>Measure the disturbance and act before it reaches the output. The yellow box is the part people decide. Diagram by the author.</figcaption></figure><p>The ideal feedforward controller comes straight out of the algebra. If the disturbance d reaches the output through a path G_d, and your action u reaches it through the plant G_p, then the output is</p><pre>y = G_p · u + G_d · d</pre><p>and choosing the feedforward part of u as</p><pre>u_ff = − ( G_d / G_p ) · d</pre><p>makes the two terms cancel. In the simplest case, where both paths have the same dynamics, this reduces to a single number: the ratio of how strongly the disturbance moves the output to how strongly your action does. That is called static feedforward, and in industry it is often all that is used.</p><p>A classic example is the water level in a steam boiler drum. Feedback on the level alone works badly, because when steam demand jumps the level behaves in a confusing way before it settles. The common fix, known as three element control, adds the steam flow as a feedforward signal. When more steam leaves, more feedwater is sent in straight away, without waiting for the level to drift.</p><h3>Feedforward does not need to be perfect</h3><p>The obvious worry is that feedforward depends on a model, and models are wrong. The useful answer is that feedforward does not work alone. It handles the bulk of the disturbance, and feedback cleans up whatever the model got wrong.</p><p>Here is a simulation of that. The plant is the same first order system as in the last piece, with a time constant of 4 and a delay of 1, now under PI feedback control. At t = 5 a step disturbance arrives through a path with the same dynamics. The chart compares three cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vm5JKQ7M19iSS1BEVI3LGQ.png" /><figcaption>Even a rough feedforward removes most of the hit. Simulated. Diagram by the author.</figcaption></figure><p>With feedback alone, the output is pushed 0.34 away from target before the controller brings it back. With a perfect feedforward model, the disturbance is cancelled and the output does not move at all. The interesting case is in between: a feedforward whose gain is 30 percent wrong. The peak drops from 0.34 to about 0.10, and the total accumulated error, the area under the curve, drops from 2.0 to 0.6. A model that is noticeably wrong still removes about 70 percent of the damage, because the part it gets right is handled early, and the part it gets wrong is small enough for feedback to deal with calmly.</p><p>That split of labour is the whole design. Feedforward is fast and blind. Feedback is slow and honest. Each covers the other’s weakness.</p><h3>You have to see it coming early enough</h3><p>This is the part that decides whether feedforward is possible at all, and it carries over to product work almost directly.</p><p>Look again at the ideal feedforward, −G_d / G_p. If your own action reaches the output more slowly than the disturbance does, that ratio contains something impossible. Suppose the disturbance path has a delay θ_d and your plant has a delay θ_p that is longer. The ratio then includes a term e^(+s·(θ_p − θ_d)), which is a prediction of the future by θ_p − θ_d. No real controller can do that. In plain words: if the disturbance reaches the output faster than your action can, and you only see the disturbance when it starts, you will always be late.</p><p>The simulation shows it. Keep the plant delay at 1 but make the disturbance arrive through a path with a delay of only 0.5. A perfect feedforward that sees the disturbance only when it starts still leaves a peak of about 0.12, because its correction lands half a time unit too late. Let it see the same disturbance 0.5 time units earlier and the peak goes back to zero. The model did not improve. Only the lead time changed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6hHwrr3nSNjsUZ1qpq8VMg.png" /><figcaption>You need to see it coming earlier than your own delay. Diagram by the author.</figcaption></figure><p>So the requirement is simple to state. Feedforward works when the lead time, how early you can see a disturbance, is longer than your own delay, how long it takes for your response to take effect. When the lead time is shorter, the best feedforward in the world arrives after the damage, and you are back to feedback.</p><p>In product terms your delay is the same one as before: deciding, building, reviewing, releasing, and people actually using the change. If that takes three weeks, a problem you learn about one week ahead is not a feedforward opportunity. It is an incoming error. That changes where effort should go. Teams often try to improve feedforward by building better forecasts, which is the model. The lead time is frequently the cheaper lever: finding out earlier, from a source closer to the cause.</p><h3>Disturbances that arrive on a calendar</h3><p>Satellite products have one of the clearest examples I know. Optical satellites such as Sentinel-2 cannot see through cloud. Over much of Thailand the wet season runs roughly from May to October, and clear optical views become rare for months. A monitoring product that depends only on optical imagery will see its output degrade every year at about the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-DCcaxHimCorw3KAjN4pLw.png" /><figcaption>Some disturbances arrive on a calendar. Diagram by the author.</figcaption></figure><p>Handled with feedback alone, that looks like users noticing gaps in June, a fix being designed in July, and something arriving in August. Handled with feedforward, it looks like a radar fallback, because radar sees through cloud, being ready before the season starts. The disturbance is the same. The lead time is a whole year, which is longer than almost any delivery delay, so there is no excuse to meet it with feedback.</p><p>Many disturbances in product work are like this once you look for them. Budget and procurement cycles happen on known dates. Data providers announce changes and retirement dates for their services in advance. Holidays reduce how much a team can deliver and change when clients reply. A dependency publishes release notes before it ships. Each of these is a signal you can measure early, with a reasonably predictable effect on your output. Each one is a place where waiting for the error is a choice, not a necessity.</p><p>A useful exercise is to go through the problems a team has fought in the last year and sort them into two groups. The first group could not have been seen before they hurt. Feedback is the right tool for those, and the previous pieces were about doing that well. The second group could have been seen, often weeks or months earlier, and was handled with feedback anyway because nobody owned the sensor. The second group is usually larger than people expect.</p><h3>Where feedforward goes wrong</h3><p>Feedforward has failure modes of its own, and they are the opposite of feedback’s.</p><p>It acts on prediction, so it is only as good as the signal. Feedforward on a weak signal is acting on rumour. A team that reorganises its roadmap every time a competitor hints at a feature is running feedforward on noise, which combines the cost of high gain with the false confidence of having a reason.</p><p>It is open loop. Feedforward never checks whether its action worked. If the model drifts, for example because a client’s procurement process changed and the old calendar no longer applies, feedforward keeps applying the old correction confidently. This is why it is never used alone in control systems, and why a plan built on forecasts still needs the measurement and review habits described in the first piece.</p><p>And it can crowd out feedback. A team that is proud of its forecasting can start to treat measured results as less important than the plan. That is the open loop roadmap from the first piece, wearing better clothes.</p><h3>Where the comparison breaks</h3><p>In a boiler, the disturbance does not know you are measuring it. In business, many disturbances are other people, and they react to what you do. If you prepare early for a client’s expected request, the preparation itself can change what they ask for. The paths G_d and G_p are not independent the way the algebra assumes.</p><p>The signals are also softer. A flow meter on a steam line gives a number. An announced deprecation date, a budget calendar or a rumour about a competitor carries uncertainty that is hard to quantify, and deciding how much to act on it is a judgement, not a ratio.</p><p>And the cost of acting early is real in a way that a valve does not feel. Preparing for a season that turns out mild, or a change that is postponed, spends time that could have gone elsewhere. In control systems feedforward is nearly free once the sensor exists. In teams it competes for the same people as everything else, so it should go to disturbances that are both predictable and expensive.</p><p>So the question I take from feedforward is short: for each thing that keeps hurting us, could we have seen it earlier than it takes us to respond? If yes, the fix is a sensor and an owner, not a faster reaction.</p><h3>Next</h3><p>The next piece is about what happens when a controller asks for more than the system can deliver: saturation, and the problem known as integrator windup, which has a very recognisable equivalent in teams that keep a backlog of promises they cannot meet.</p><p><em>Diagrams by the author.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a296121f5866" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Hotspot Is Not a Burned Area]]></title>
            <link>https://medium.com/@teerathap/a-hotspot-is-not-a-burned-area-6026d8440e22?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/6026d8440e22</guid>
            <category><![CDATA[wildfires]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[thailand]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[air-pollution]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Sat, 05 Dec 2026 11:16:01 GMT</pubDate>
            <atom:updated>2026-12-05T11:16:01.426Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What fire satellites actually see during northern Thailand’s haze season</em></p><p>Every year from roughly February to April, northern Thailand fills with smoke. Chiang Mai regularly ranks among the most polluted cities in the world during those weeks. Every year, news reports quote hotspot counts from satellites: tens of thousands of detections, sometimes framed as tens of thousands of fires.</p><p>The counts are real and useful. But a hotspot is a specific kind of measurement, and treating it as “a fire” or “an area burned” leads to wrong conclusions about where the smoke comes from and what to do about it.</p><h3>What a hotspot is</h3><p>Active fire products like the ones in NASA’s FIRMS system come from thermal infrared channels on polar orbiting satellites, mainly MODIS and VIIRS. A pixel is flagged when it is significantly hotter than its surroundings in the middle infrared, after screening out things like sun glint and hot bare ground.</p><p>The VIIRS active fire product works at about 375 m, a big improvement over MODIS at 1 km. It can pick up fires much smaller than the pixel, because a small patch of very hot flame raises the pixel’s average temperature enough to stand out.</p><p>So a hotspot means: at the moment the satellite passed, something in this pixel was burning hot enough to be detected. That is all.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PM65VkRu8UX4GEBHM5eVlg.jpeg" /><figcaption>Northern Thailand and its neighbours on 28 March 2023. Red dots are VIIRS active fire detections, under a thick layer of smoke. Image: NASA Worldview, Suomi NPP/VIIRS.</figcaption></figure><h3>What it is not</h3><p><strong>Not a count of fires.</strong> One large fire can trigger many adjacent hotspots. Many small fires in one pixel trigger one.</p><p><strong>Not the area burned.</strong> A 375 m pixel is about 14 hectares. A hotspot in it might be a single burning rice stubble pile or a forest fire filling the whole pixel. The number says nothing about how much was burned.</p><p><strong>Not continuous.</strong> The satellites pass a few times a day. A field burned between passes, especially a quick agricultural burn that is over in an hour, can be missed completely.</p><p><strong>Not always visible.</strong> Thick smoke and cloud can hide fires beneath them, which is a bitter irony during the worst haze days.</p><h3>For area, you need burned area methods</h3><p>To estimate how much land actually burned, you look at the scar rather than the flame. The usual approach compares images before and after the fire using the Normalized Burn Ratio, which contrasts near infrared and shortwave infrared. Healthy vegetation is bright in near infrared, while burned ground is bright in shortwave infrared. The difference between before and after, called dNBR, highlights burned surfaces.</p><p>Global products like MODIS MCD64A1 provide this at around 500 m. With Sentinel-2 at 20 m in the shortwave bands, you can map individual burned fields and forest patches. Recent studies in Chiang Mai have done exactly that for agricultural burning, which coarse global products tend to underestimate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ctaXRsTrBsxLluNbLAB7lQ.jpeg" /><figcaption>An active fire detection versus a burned area map from before and after images. Diagram by the author.</figcaption></figure><h3>Why the distinction matters</h3><p>Haze policy in northern Thailand often turns on attribution. How much smoke comes from agricultural burning versus forest fires? How much from across the border in Myanmar and Laos? Which districts should get attention first?</p><p>Hotspot counts alone tilt those answers. They favour fires that are hot and long lasting enough to be caught at overpass time, and they cannot tell a small field burn from a large forest fire. Combining active fire detections with burned area maps, land cover, and wind and smoke transport gives a much fairer picture.</p><p>None of this makes hotspot data less valuable. The Thai Forest Fire Control Division has used it operationally for years, and field validation campaigns found the detections reliable. It is a fast alarm. Just remember that an alarm and a damage report are different things.</p><h4>References</h4><ul><li>NASA Earthdata, FIRMS helps Thai officials manage fire and smoke haze. <a href="https://www.earthdata.nasa.gov/learn/articles/firms-helps-thai-officials-manage-fire-smoke">https://www.earthdata.nasa.gov/learn/articles/firms-helps-thai-officials-manage-fire-smoke</a></li><li>Schroeder, W. et al. (2014). The New VIIRS 375 m active fire detection data product. Remote Sensing of Environment.</li><li>Giglio, L. et al. (2018). The Collection 6 MODIS burned area mapping algorithm and product. Remote Sensing of Environment.</li><li>Key, C. H. and Benson, N. C. (2006). Landscape Assessment: ground measure of severity, the Composite Burn Index, and remote sensing of severity, the Normalized Burn Ratio. USDA Forest Service.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6026d8440e22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ground Truth Is a Product Too]]></title>
            <link>https://medium.com/@teerathap/ground-truth-is-a-product-too-22f0783cf264?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/22f0783cf264</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[agriculture]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[data-labeling]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Sat, 05 Dec 2026 02:11:01 GMT</pubDate>
            <atom:updated>2026-12-05T02:11:01.436Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to collect field labels that a satellite model can actually learn from</em></p><p>Every remote sensing project eventually sends someone into the field with a phone, a GPS and a list of points. They come back with a spreadsheet of labels. The model trains on it. And then, months later, someone discovers that a good share of those labels were wrong for reasons that had nothing to do with the person who collected them.</p><p>Field data is usually treated as a chore you do before the real work. I think it deserves the same design effort as the model, because the model can never be better than it.</p><h3>The location problem</h3><p>A typical phone GPS is good to a few metres in open sky, and worse under trees or between buildings. A Sentinel-2 pixel is 10 metres. If you stand at the edge of a field and record a point, there is a decent chance it falls on the bund, the road or the next field.</p><p>Simple rules help a lot. Stand well inside the field, not at the edge. Record the field boundary as a polygon where you can, rather than a single point. And when you train, sample pixels from the interior of the polygon, away from the edges.</p><h3>The time problem</h3><p>A label is true on the day you collected it. The satellite image you pair it with was taken on another day. For a forest, a few weeks do not matter. For rice, a few weeks is the difference between flooded bare field and dense green canopy.</p><p>Record the date, and try to collect close to a satellite overpass. When that is impossible, write down the crop stage, not just the crop type. “Rice, about 40 days after transplanting” is far more useful than “rice.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPTC1nMcOa4uSLN2gT-hPw.jpeg" /><figcaption>Two quiet sources of label error: the gap between visit and overpass, and GPS error near a field edge. Diagram by the author.</figcaption></figure><h3>The definition problem</h3><p>What counts as “cassava”? A field that was cassava last season and is now bare? A field with cassava intercropped with something else? A plot that is half harvested?</p><p>If two people on the same team would label the same field differently, your dataset has noise built in before anyone touches a model. Write a one page label guide with photos of edge cases, and make everyone use it. It feels bureaucratic. It saves weeks.</p><h3>The sampling problem</h3><p>Teams naturally collect where it is easy: along roads, near villages, in fields whose owners are friendly. The result is a dataset that is excellent at describing roadside fields and weak everywhere else. Models trained on it inherit that bias, and a random validation split will not reveal it, because the test points have the same bias.</p><p>Stratify your sample by the things that matter: region, land cover class, distance from road. And keep some points aside, collected far from the training sites, purely for testing.</p><h3>What to record, every time</h3><p>Beyond the label itself, the extras that turn a point into usable ground truth:</p><ul><li>Location, plus an accuracy estimate if the device gives one</li><li>Date and time</li><li>Crop stage or condition, not just class</li><li>Photos in at least two directions, with the compass heading</li><li>Field size and whether it is uniform</li><li>Who collected it, so you can trace systematic errors later</li></ul><p>Most of this takes seconds per point with a decent form app. Leaving it out costs much more later.</p><h3>Why it is a product</h3><p>Good ground truth outlives the project that created it. A well documented set of labelled fields from a region can train the next model, validate a new sensor, or check a competitor’s map. A messy one gets thrown away and collected again.</p><p>Treat it like something you will ship: versioned, documented, with known quality. The model is the visible part. The labels are the foundation it stands on.</p><h4>References</h4><ul><li>Olofsson, P. et al. (2014). Good practices for estimating area and assessing accuracy of land change. Remote Sensing of Environment.</li><li>ESA, Sentinel-2 user guide (spatial resolution by band). <a href="https://sentinels.copernicus.eu/">https://sentinels.copernicus.eu</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22f0783cf264" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Closed Loop #2: Too Much Gain]]></title>
            <link>https://medium.com/@teerathap/closed-loop-2-too-much-gain-528a13d03932?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/528a13d03932</guid>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[control-system]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 21:01:50 GMT</pubDate>
            <atom:updated>2026-12-04T21:01:50.235Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why a team that reacts hard to every message ends up swinging back and forth, and why the fix is often to respond less, not more. The second piece in a series about what control engineering teaches about running product and engineering work.</em></p><p>The last piece ended with a promise to write about gain. It is the idea from control theory I reach for most often at work, because the failure it describes is so common and so easy to mistake for good behaviour. A team that changes course the moment a client sounds unhappy looks responsive. A team that keeps changing course every week, in both directions, looks busy. In control terms both can be the same loop, running with more gain than its delay allows.</p><p>This piece explains what gain is, why delay turns a responsive loop into an oscillating one, what a gain margin tells you, and what you can do about it in a team without becoming deaf to the people you serve. As before, it ends with where the comparison stops working.</p><h3>The shower problem</h3><p>Control courses often start with a shower. The hot and cold mixing happens at the tap, but the water you feel comes out of a head at the end of a long pipe. The water on your skin left the tap a few seconds ago.</p><p>So you step in and it is cold. You turn the knob towards hot. Nothing changes, because the hot water is still travelling up the pipe. You turn it further. Still cold. You turn it all the way. Then the first hot water arrives, followed by all the hotter water you asked for while you were waiting, and now it is scalding. You swing the knob back towards cold, and the whole thing repeats in the other direction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Syfn15-5vGleM9pDuO40nA.png" /><figcaption>The shower problem. Diagram by the author.</figcaption></figure><p>Nothing in the shower is broken. The pipe is doing exactly what pipes do, and the person is reacting sensibly to what they feel. The oscillation comes from the combination: a delay between action and effect, and a response that is too strong for that delay. Take away either one and the swinging stops. A shower with no pipe can be adjusted as hard as you like. A person who turns the knob a little and waits will get there on a long pipe too, just more slowly.</p><p>That combination is the subject of this whole piece.</p><h3>What gain means</h3><p>The simplest controller multiplies the error by a constant:</p><pre>u(t) = K · e(t)</pre><p>K is the gain. It says how much action you take per unit of error. In a team, the error is the gap between what users need and what they are getting, and the action is how much the plan changes. A team running at low gain hears a complaint, notes it, and adjusts a little. A team running at high gain rewrites the sprint after one phone call.</p><p>Gain is not bad. It is what makes a loop respond at all, and more of it buys two real things. The loop reacts faster, and for a simple plant it gets closer to the target. As the last piece showed, a proportional controller on a first order plant with unit gain settles with an error of</p><pre>e_ss = 1 / (1 + K)</pre><p>so raising K from 1 to 4 shrinks the leftover gap from half the target to a fifth. That is why teams drift towards high gain. It feels responsive, it often looks good in the first week, and the costs arrive later and in a form that is hard to trace back to the cause.</p><h3>Delay turns responsiveness into oscillation</h3><p>To see the cost, here is a small simulation. The plant is a first order system with a time constant of 4 and a pure delay of 1, which is a standard textbook model for many real processes. The controller is proportional only, and the chart shows how the output responds to a step in the target for four values of K.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GV_zngo-49_F1eIeme61bw.png" /><figcaption>More gain, faster reaction, then oscillation. Simulated. Diagram by the author.</figcaption></figure><p>At K = 1 the loop is calm and slow, and it stops at half the target. At K = 3 it rises much faster, overshoots by about 26 percent, and settles at 0.75. At K = 6 it overshoots by close to 90 percent and rings for a long time before it calms down. A little above 6.9 the swings stop shrinking and start growing. That loop is unstable. It will never settle, no matter how long you wait.</p><p>The mechanism is the shower again. The controller acts on the error it can see, but the error it can see is one delay old. By the time a correction arrives at the output, the situation has already changed, partly because of the earlier corrections still on their way. With low gain each correction is small enough that being late does not matter much. With high gain the late corrections pile on top of each other and push the output past the target, and the controller then reacts to that with an equally strong correction in the other direction.</p><p>The limit can be calculated. A loop like this starts to oscillate when, at the frequency where the total phase lag around the loop reaches 180 degrees, the loop gain is one or more. For this plant the phase lag is</p><pre>φ(ω) = − arctan(ω·τ) − ω·L</pre><p>with τ = 4 and L = 1. Setting φ = −180° gives ω ≈ 1.72, and the gain that makes the loop magnitude exactly one at that frequency is</p><pre>K_u = √(1 + (ω·τ)²) ≈ 6.9</pre><p>The oscillation at that limit has a period of 2π/ω, about 3.7 time units, a few times the delay. That detail is worth keeping. A loop on the edge of instability swings with a period set mostly by its own delay, not by anything happening outside it.</p><p>In product work the delay is the time from a decision to seeing its effect: building the change, reviewing it, releasing it, people actually using it, and their reaction coming back to whoever decides. In many teams that is weeks, not hours. In satellite products it can be longer, because some effects only show up after the next clear image or the next growing season. A team that swings between priorities every few weeks is often swinging at a period set by its own feedback delay.</p><h3>Gain margin</h3><p>Engineers do not usually run a loop right at the edge. They ask how far away from the edge they are. The gain margin is the factor by which you could multiply the gain before the loop starts to oscillate:</p><pre>GM = K_u / K,     GM_dB = 20 · log10(K_u / K)</pre><p>For the simulated plant, running at K = 2 gives a gain margin of about 3.5, or roughly 11 dB. Running at K = 6 gives about 1.16, barely more than 1 dB, which matches the long ringing in the chart. A common rule of thumb in control design is to keep the gain margin at least 2, about 6 dB, together with a phase margin somewhere between 30 and 60 degrees. The exact numbers matter less than the habit of asking how much headroom you have.</p><p>The more useful picture for teams is what happens to that headroom when the delay changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wENFHUtJ6rTvZZZuDgZfXw.png" /><figcaption>The longer the delay, the less gain you can afford. Diagram by the author.</figcaption></figure><p>Holding the time constant at 4 and doubling the delay from 1 to 2 drops the limit from about 6.9 to about 3.8. Nothing about the controller changed. The same people reacting with the same strength now sit much closer to the edge, only because feedback takes longer to come back.</p><p>This is the case I find most useful to recognise in practice. Picture a team whose release cycle slowed from weekly to monthly, perhaps because the product grew, or because a client added an approval step. If the team keeps reacting to every signal as hard as it did when it shipped weekly, it has lost most of its margin without anyone changing their behaviour. From the inside it feels as if the work has become chaotic for no reason.</p><p>There are formal tuning rules that make the relationship explicit. One widely used family, the SIMC rules published by Skogestad in 2003, sets the proportional gain for a first order plant with delay θ and time constant τ as</p><pre>K_c = τ / ( k · (τ_c + θ) )</pre><p>where k is the plant gain and τ_c is the closed loop speed you ask for. A common choice is τ_c = θ, which gives K_c = τ / (2θ) for a unit gain plant. For the simulated plant that is K = 2, which, with proportional action alone, overshoots by about 7 percent and settles calmly. The shape of the formula is the lesson: the gain you can afford is proportional to how slow the plant is and inversely proportional to how long you wait for feedback.</p><h3>What too much gain looks like in a team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9uUXFFcVDBHcWqrhQNx2Nw.png" /><figcaption>React to every message at full strength and the team zigzags. Diagram by the author.</figcaption></figure><p>Picture a planning meeting on Monday where one client’s email moves a feature to the top of the sprint. On Wednesday a different stakeholder raises a concern and the feature moves back down. The following week the first client follows up and it moves up again. Each change is reasonable when you look at it alone. Together they produce a team that starts work, stops it, and starts it again, while the thing the client actually wanted sits roughly where it was.</p><p>A few signs tend to show up together. Priorities flip in a rhythm of a few weeks. There is a lot of work started and not much finished. The last message received carries more weight than the ten before it. And people begin to wait a few days before starting anything new, in case it changes. That last sign is the cruel one, because waiting adds delay to the loop, and more delay at the same gain makes the swinging worse.</p><p>High gain also amplifies noise. A single message is partly signal and partly noise: one person’s mood that day, a misunderstanding, a problem that would have resolved itself. A loop that multiplies every message by a large K passes that noise straight into the plan. In a control system the same thing happens with a noisy sensor and an aggressive controller. The actuator chatters, wears out, and the output gets worse rather than better.</p><h3>Turning the gain down without going deaf</h3><p>Lowering gain does not mean ignoring people. It means changing how strongly and how quickly a single signal moves the plan. There are several ways to do that, and they are not equivalent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RphjZgbyFg_su6eLwEvulw.png" /><figcaption>Ways to turn the gain down without going deaf. Diagram by the author.</figcaption></figure><p><strong>Filter the sensor.</strong> Act on several signals that agree rather than on the loudest single one. If the noise in independent signals is uncorrelated, averaging n of them reduces its variance by a factor of n. In a team that might mean asking whether a request has come from more than one user, or whether usage data says the same thing a client said on a call.</p><p><strong>Use a deadband.</strong> Below a certain size, an error is written down but does not change the plan. This is not the same as ignoring it. As the last piece argued, a recorded small error is exactly what an integral term needs. It gets fixed when it keeps coming back, not when it first appears.</p><p><strong>Batch the decisions.</strong> Decide at fixed points instead of continuously. The twice a week review I described in the last piece is partly a gain decision: signals that arrive between reviews are collected, and the plan changes only at the review. Batching has a cost, because it adds on average half a review interval of delay, so the interval has to be short compared with how fast the work moves.</p><p><strong>Limit the rate.</strong> Cap how much the plan can change in one cycle. For example, at most one change in top priority per review. A rate limit lets the loop follow a real, lasting shift in direction while stopping it from jumping back and forth on every message.</p><p><strong>Shorten the delay.</strong> This is the only one of the five that raises the gain you can afford instead of lowering the gain you use. Smaller releases, a rough output shown to a client before it is polished, a quick check of the result on real data rather than waiting for a report. Each of these moves the feedback closer to the decision, and the margin chart shows how much room that buys.</p><p>One more distinction is worth making. Some disturbances are not noise at all. A client changes the scope of a contract, a data source is discontinued, the rainy season starts. These are real, lasting changes, and you can often see them coming. Responding to them by turning up the feedback gain is the wrong tool. Control engineering has a better one, feedforward, which acts on a known disturbance directly instead of waiting for it to show up as error. That is the subject of the next piece.</p><h3>Where the comparison breaks</h3><p>People are not a plant, and the analogy has limits that are easy to forget.</p><p>Low gain can look like not listening. A filter or a deadband that is invisible from the outside feels to a client like being ignored. In a team the batching has to be communicated: when their input will be considered, and what will happen to it. A control loop does not need to explain itself to the plant. A product team does.</p><p>A team does not have a single gain. Different people respond with different strength to the same signal, and the loudest responder often sets the team’s effective gain. Lowering gain is partly a matter of agreeing who decides and when, which is closer to organisational design than to control design.</p><p>Teams also saturate. There is only so much work a group can absorb in a week. A high gain controller driving a saturated actuator causes its own problems, including one called integrator windup, which deserves a piece of its own.</p><p>And sometimes high gain is right. Early in a product, when nobody knows what the plant looks like and prototypes give feedback within days, a team should react strongly to what it learns. The delay is short and the margin is large. The mistake is keeping the same reflexes once the product is bigger, the releases are slower, and the delay has grown.</p><p>So the question I find most useful is not whether a team is responsive enough. It is whether its response is matched to how long it takes to see the effect of what it does.</p><h3>Next</h3><p>The next piece is about feedforward: acting on a disturbance you can see coming, instead of waiting for it to become an error.</p><p><em>Diagrams by the author.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=528a13d03932" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Closed Loop #1: Product Development Is a Feedback Loop]]></title>
            <link>https://medium.com/@teerathap/closed-loop-1-product-development-is-a-feedback-loop-f1050d8a7802?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1050d8a7802</guid>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[systems-thinking]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 20:22:45 GMT</pubDate>
            <atom:updated>2026-12-04T20:22:45.274Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I build products the way I would tune a controller. This is the first piece in a series about what control engineering teaches about running product and engineering work.</em></p><p>I study control systems at university and I lead product and engineering at a geospatial AI company. For a while I kept those two lives apart. One had transfer functions, Bode plots and stability margins. The other had roadmaps, client calls and release dates. At some point I noticed that I was using the first to make decisions in the second, without saying so out loud. When a team kept changing direction every week, I thought of a loop with too much gain. When a project drifted quietly for two months, I thought of a system running open loop. When a small problem never went away, I thought of steady state error.</p><p>This series writes that habit down. Each piece takes one idea from control engineering, states it properly, shows what it looks like in product work, and then says where the comparison stops working. The last part matters. A metaphor that is pushed too far becomes a way to sound clever rather than a way to think clearly, and people who know control theory will notice.</p><p>This first piece is about the basic shape of the thing: the feedback loop.</p><h3>Most roadmaps run open loop</h3><p>An open loop system acts on a plan and never checks the result. A toaster with a timer is open loop. It heats for two minutes whether the bread is pale or on fire. Open loop control works well when the system is predictable and nothing disturbs it. It fails quietly when either of those assumptions breaks, because nothing in the loop notices.</p><p>A lot of product planning is open loop. Picture a team that writes a quarterly roadmap, breaks it into tickets, and spends twelve weeks executing those tickets faithfully. Every week they report progress against the plan. The plan was reasonable when it was written. But the client’s priorities shifted in week three, a data source changed format in week five, and the feature everyone agreed on in January turns out, in March, to solve a problem users no longer have. Nobody did anything wrong. The team measured how well it was following the plan, not whether the plan was still pointing at the right outcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ypdTKIoCvESSzkCjk1k1-Q.png" /><figcaption>A roadmap running open loop, in three panels. Diagram by the author.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-YF75PmoWggwTeF45VeCeQ.png" /><figcaption>Open loop plans and hopes. Closed loop plans, measures and corrects. Diagram by the author.</figcaption></figure><p>A closed loop system measures its output, compares it with what it wanted, and uses the difference to decide what to do next. A thermostat is closed loop. It does not care how long the heater has been on. It cares about the gap between the room and the setpoint. That gap is the whole point.</p><h3>The loop, labelled in product terms</h3><p>The standard block diagram has five parts, and each has a reasonably honest equivalent in product work.</p><p>The <strong>reference</strong> r is what you want the output to be. In product work it is the outcome a user needs, stated as something observable: a farmer gets a field alert within a day of a real change, an analyst can produce a report in ten minutes instead of a morning. It is not a feature list. Features are what you do, not what you want.</p><p>The <strong>plant</strong> is the thing being controlled. In product work it is the product together with the people using it, because the outcome only exists where the two meet. A feature that works perfectly and is never used produces no output.</p><p>The <strong>controller</strong> is whatever decides the next action from the error. In a team that is the set of decisions about what to build, fix, cut or postpone. Usually a few people, a planning meeting and a backlog.</p><p>The <strong>sensor</strong> measures the output. In product work: usage data, support requests, client feedback, field visits, logs, and the results of actually running the thing.</p><p><strong>Disturbances</strong> are everything outside the loop that pushes the output around: a client changing scope, the rainy season hiding half your satellite images, a budget cut, a new regulation.</p><p>The error is the difference between what you want and what you measure:</p><pre>e(t) = r(t) − y(t)</pre><p>and the controller’s job is to turn that error into action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQtKWdwbg7cXEQ0Uw_csiA.png" /><figcaption>The product loop in control terms. The yellow box is where people decide. Diagram by the author.</figcaption></figure><h3>The sensor matters more than the controller</h3><p>Control textbooks spend most of their pages on controller design, which can give the impression that the controller is where the difficulty lives. In practice, a mediocre controller with a good sensor usually beats an excellent controller with a bad one. If the measurement is biased, the loop will drive the real output confidently to the wrong place and report that everything is on target.</p><p>Product teams fall into this all the time, and the failure is hard to see from inside. If the only sensor is a dashboard of page views, the loop will optimise page views. If the only sensor is whoever speaks loudest in meetings, the loop will optimise for that voice. If the only sensor is the team’s own sense that the feature works, the loop has no sensor at all, just a controller agreeing with itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NvvaFXLSVc_DmJE4j5zmWw.png" /><figcaption>A stuck sensor and a confident controller. Diagram by the author.</figcaption></figure><p>This is why, in my own work, the definition of done is that someone ran the thing for real and looked at what came out. For a data pipeline that means opening the output on a map, not trusting a green status. It is the cheapest way I know to keep the sensor honest. A loop is only as good as the thing that closes it.</p><h3>PID, in plain language</h3><p>The most common controller in industry is the PID controller. Its output is the sum of three terms:</p><pre>u(t) = Kp·e(t)  +  Ki·∫ e(τ) dτ  +  Kd·de/dt</pre><p>Each term reacts to the error in a different way, and each has a recognisable equivalent in how teams respond to problems.</p><p>The <strong>proportional</strong> term reacts to how big the gap is right now. Large gap, large response. Most teams run mostly proportional: the louder the problem today, the more attention it gets today.</p><p>Proportional control alone has a well known weakness. For a simple first order plant with unit gain, a proportional controller with gain Kp settles at</p><pre>y_ss = Kp / (1 + Kp),     e_ss = 1 / (1 + Kp)</pre><p>With Kp = 4, the output stops at 0.8 of the target and stays there. Raising the gain shrinks the gap but never closes it, and in a real system with delay, raising it too far makes the loop oscillate. In team terms: reacting harder to today’s problems gets you most of the way, but a residue of unsolved issues remains, and pushing harder starts to cause its own trouble.</p><p>The <strong>integral</strong> term accumulates error over time. A small gap that persists for weeks builds up until it demands action. This is what removes the steady state error. In team terms it is memory: a record of the things that keep going slightly wrong, so that a problem too small to win any single week’s priority still gets fixed eventually. A lessons log, a list of recurring incidents, a habit of asking “what bit us again this month” are all integral action.</p><p>The <strong>derivative</strong> term reacts to how fast the error is changing. It acts early, before the gap is large, and it damps overshoot. In team terms it is reading trends: support tickets about one feature doubling week on week, a data source that has been late three times in a row, latency creeping up. Acting on the slope rather than the level is how you avoid the crisis instead of responding to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ug10zkG86MIuJLVFK0emRg.png" /><figcaption>P, I and D as three people on a team. Diagram by the author.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HymTCMaIHjFH9mTOO9OKpQ.png" /><figcaption>Step response of a simple plant under P, PI and PID control. Diagram by the author.</figcaption></figure><p>The chart is a simulation of a first order plant with a small delay, nothing more. P alone stalls at 0.8. Adding integral action reaches the target but overshoots. Adding derivative action keeps the integral benefit and cuts the overshoot. The point is not the exact numbers. It is that each term fixes a different failure, and a team that only has one of them will show that failure.</p><h3>How often you look is a design decision</h3><p>Digital controllers do not see the output continuously. They sample it. The sampling theorem says that to capture a signal faithfully you need to sample at more than twice its highest frequency:</p><pre>f_s &gt; 2·f_max</pre><p>Sample slower than that and something worse than missing detail happens. The fast variation folds into a slow, false pattern, which is called aliasing. A system that swings up and down every ten days, checked once a month, can look like a smooth upward line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PfMeScLL2H216B39jWNsXQ.png" /><figcaption>The same signal sampled twice a week and once a month. Illustrative data. Diagram by the author.</figcaption></figure><p>Teams sample too. A monthly review cannot see anything that changes faster than every two months, and it may report a calm trend over a system that is actually swinging. Sampling much faster than the system changes has the opposite cost: daily status meetings on a project that moves weekly mostly measure noise, and they train people to react to it.</p><p>I run reviews twice a week and write a short log of decisions after each one. Twice a week is fast enough to catch changes in projects that move on a scale of one to two weeks, and slow enough that each meeting has something real to look at. The written log matters as much as the meeting, because a sample that is not recorded cannot feed an integral term.</p><h3>Where the comparison breaks</h3><p>It would be dishonest to stop here, because the analogy has real limits.</p><p>Teams are not linear. Doubling the pressure does not double the output, and past a point it reduces it. Teams are not time invariant either. They learn, so the same input next quarter produces a different response than it did this quarter. That is mostly good news, and no PID controller has it.</p><p>The reference is not fixed. In a thermostat the setpoint comes from outside the loop. In product work, what users need changes partly because of what you ship. The loop can move its own target.</p><p>And the plant includes people who have their own goals and their own controllers. Clients, users and teammates are not passive. Treating them as a block in a diagram is useful for thinking about timing and feedback, and harmful if it becomes how you think about them.</p><p>So I use the loop as a lens, not a model. It is good at one question: when something keeps going wrong, is the problem in the sensor, the controller, the timing, or the disturbance? That question alone has saved me from a lot of wrong fixes.</p><h3>Next</h3><p>The next piece is about gain: why a team that reacts strongly to every client email ends up oscillating, what a gain margin means in practice, and why the fix is often to respond less, not more.</p><p><em>Diagrams by the author.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1050d8a7802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ceremony Should Scale With Risk]]></title>
            <link>https://medium.com/@teerathap/ceremony-should-scale-with-risk-a99b9618455f?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a99b9618455f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 19:54:54 GMT</pubDate>
            <atom:updated>2026-12-04T19:54:54.392Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I run software work with AI coding agents, and why I finally wrote it down</em></p><p>AI coding agents are fast, confident and tireless, and on anything bigger than a small fix they fail in ways that are remarkably predictable. They start writing code before the problem is pinned down, and then build the wrong thing well. They try to do everything at once and leave a codebase that half works. They grade their own work and declare it done because it “should work”. They overbuild, adding approval workflows, role hierarchies and extra services that a small team will never use. And they forget. The mistake that cost an afternoon last week comes back next week, because nothing about it survived the end of the conversation.</p><p>None of these failures are unique to machines. They are the same failures junior engineers make, and that senior engineers make when they are tired. What is different with agents is the speed. An agent can produce in an hour what used to take a person a week, which means it can also produce a week’s worth of wrong direction in an hour. The bottleneck moves from writing code to deciding what should be written, checking that it does what was asked, and making sure each piece of work leaves the next one easier rather than harder.</p><p>I lead product and engineering at a geospatial AI company. Our work is satellite data pipelines, APIs that serve map layers and time series, web and mobile applications for people who make decisions in the field, and the machine learning that sits between them. Over the past year and a half, across agriculture, water, energy and environmental products, I have been building with agents every day. The habits in this piece came out of that work. For a long time they lived in my head and in the corrections I typed into chat windows. Recently I wrote them down as a small set of agent skills, so that the agent loads the procedure instead of waiting for me to repeat it. This article is about the thinking behind them.</p><h3>Size the work before deciding how much process it deserves</h3><p>The first habit is the one that makes everything else affordable. A typo fix and a new data platform should not get the same ceremony. If every task goes through a full requirements document, a design review and a sign off, people (and agents) learn to route around the process, and the process dies. If no task gets any of it, the large ones fail expensively. So every task is sized first, and the size decides how much gets written down and how many times a human has to say yes.</p><p>I use three sizes. A small task takes less than half a day, touches a handful of files and changes no schema or public API. It gets a one line plan in the chat, the work, and evidence that it works. A medium task takes one to five days, usually a new endpoint, table, page or pipeline step. It gets one short spec that states the problem, the acceptance criteria, the design notes and the tasks, and that spec is approved before any code is written. A large task runs longer than a week, spans several components or involves more than one person. It gets requirements first, approved on their own, and only then a design and a task list, approved again. When the size is unclear, the rule is to pick the bigger one. Overdocumenting a medium task costs an hour. Underdocumenting a large one can cost a month.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwcmEh7rhCF__333hVhWaA.png" /><figcaption>Same pipeline, different weight: what gets written, who reviews and who signs, by task size. Diagram by the author.</figcaption></figure><p>What I like about this rule is that it turns an argument about process into a question about risk. Nobody has to defend paperwork in the abstract. The question is only how expensive this particular task would be to get wrong, and the answer sets the amount of structure.</p><h3>Put humans only where mistakes cannot be taken back</h3><p>The second habit is about where people stand in the pipeline. In my experience the instinct of most organisations, and most agents when asked to design a workflow, is to add approval steps everywhere. Every stage gets a reviewer and every role gets a sign off. It feels safe and it is mostly theatre, because approvals that happen dozens of times a day stop being read.</p><p>I keep exactly four human gates. The first is approval of the spec, once for a medium task and twice for a large one, because this is where the cheapest correction happens: changing a sentence in a spec costs minutes, changing a built system costs days. The second is merging to the main branch and deploying to production. The third is any production database migration or deletion of data. The fourth is any spending beyond the agreed budget, whether cloud resources or paid APIs. Everything else the agent decides, does and reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zrHghKWY7u72bU_W8BtQA.png" /><figcaption>Four places a person signs. Everything else the agent decides, does and reports. Diagram by the author.</figcaption></figure><p>The logic is the same one I wrote about recently for satellite alert pipelines. Automate every step where a later step can catch the mistake, and put a person only where a mistake costs something you cannot take back. A wrong variable name is caught by tests. A wrong cloud mask on one pass is corrected by the next pass. A dropped production table is not corrected by anything. When the gates are few and sit at the irreversible points, the person at each gate actually reads what they are approving, which is the whole point of having them.</p><p>There is a quieter benefit too. When I ask for approval, the request arrives in one message: what changes, what could go wrong, how to roll it back, and how it will be verified. Writing that message is itself a check. If the agent cannot state the rollback in two lines, the change is not ready.</p><h3>Done means a command was run and the result was observed</h3><p>The third habit is the one I enforce most strictly. A task is not done because the code looks right, because the agent says it should work, or because the tests that the agent wrote for itself pass. A task is done when someone ran it for real and recorded what they saw.</p><p>What “for real” means depends on the change. For a user interface it means opening the page at phone width and at desktop width, clicking through the main flow, and checking the empty, loading and error states, because those are the states that break in front of users. For an API it means calling every new or changed endpoint, including at least one bad input, and checking the status codes and the response shape. For a data pipeline it means running it on a small reference area and date, then opening the output on a map or in a table and checking row counts, value ranges and the coordinate reference system. For a database change it means applying the migration, rolling it back, and applying it again. For a bug fix it means a regression test that fails on the old code and passes on the new.</p><p>Geospatial work makes this habit especially important, because so many of its failures are silent. A raster in the wrong projection still renders. A pipeline that processed zero tiles still exits cleanly. A scale factor applied twice still produces numbers, just wrong ones. The code runs, the logs look normal, and the map is subtly nonsense. The only defence I know is to look at the output every time and to make empty output a loud failure rather than a quiet success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y97HZ-z5pSmlceCnfjiUoA.png" /><figcaption>Three silent failures every geospatial pipeline eventually meets. Diagram by the author.</figcaption></figure><p>This habit also changes the language of status reports. Instead of “implemented the endpoint”, the report says which command was run and what came back. It is a small shift in wording and a large shift in trust.</p><h3>Separate the maker from the checker</h3><p>The fourth habit follows from an uncomfortable observation: models, like people, rate their own output too kindly. An agent that has just spent an hour reasoning its way to a solution will read its own code with that reasoning in mind and fill the gaps without noticing them. So the author never has the last word.</p><p>After the author has verified the change by running it, a second reviewer looks at it, and that reviewer sees only three things: the spec with its acceptance criteria, the diff, and the verification log. It does not see the author’s reasoning, because the reasoning is exactly what would bias it. The review happens in two passes. The first checks compliance with the spec, criterion by criterion, each marked met, partly met or not met with evidence, and it also flags anything that was built without being asked for. Only when that pass is clean does the second pass look at quality, in order of how expensive each kind of problem is to miss: correctness and edge cases first, then security, then data and geospatial correctness, then performance, then tests, then simplicity and readability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mc78xHveED8UoZRrgDMXuQ.png" /><figcaption>The reviewer sees the spec, the diff and the verification log, never the author’s reasoning. Diagram by the author.</figcaption></figure><p>Findings come back with a severity and a concrete failure scenario, not a vague concern. “This might have issues with large inputs” is not a finding. “Loading the full raster into memory will exceed the container limit for any tile above this size, here is the input that shows it” is. The same discipline applies in the other direction. Reviewers can be wrong, so each finding is verified before code is changed, and each one gets an answer: fixed, not a problem with evidence, or deferred with a ticket.</p><p>For small tasks I accept self verification with evidence, because the cost of a second reviewer outweighs the risk. For medium tasks there is one fresh review at the end. For large tasks there is a review per task, because errors compound when later tasks build on earlier ones.</p><h3>Keep state in files, and make every task leave the next one easier</h3><p>The fifth habit is about memory. A conversation with an agent is a poor place to keep anything important. Contexts fill up, sessions end, and long work gets interrupted. So everything that matters lives in the repository: the spec and its task list, a progress log, the decisions that were made, and the lessons that were learned. An agent that starts fresh, or a person who joins late, rebuilds the picture from files rather than from someone’s recollection.</p><p>This matters most for long builds. For large tasks I can run the build as a loop in which every iteration starts with an empty context, reads the progress log and the list of acceptance criteria, runs a start and smoke check, picks exactly one unfinished feature, writes a failing test for it, makes it pass, verifies it end to end, commits, appends to the log and exits. The next iteration starts clean. The list of criteria is fixed. An iteration may mark a criterion as passing once it has the evidence, but it may not edit or delete criteria, which removes the temptation to make a test pass by changing what the test means. The loop stops on its own and writes down why when all criteria pass, when the same feature has failed three times in a row, when the next step reaches a human gate, when the budget is spent, or when the spec contradicts itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WjBf5bvb12GtwK14-Hdcjg.png" /><figcaption>One iteration of the build loop. State lives in the repository, not in the context window. Diagram by the author.</figcaption></figure><p>The other half of this habit is learning. After each piece of work ships, the agent spends a few minutes writing down what cost time or nearly broke something, phrased as a rule rather than a story, with a date. Decisions that someone might later question get a short decision record: the context, the options with their trade offs and costs, what was chosen, and when to revisit it. If the way to run or deploy the project changed, the project’s instructions are updated. And if a review finds the same problem twice, the fix is not a reminder, it is a new check in the review list or a lint rule, so the problem cannot come back quietly. The next spec starts by reading all of this. Over months, that is the difference between a team that gets faster and a team that keeps paying for the same lessons.</p><h3>Right size the output, not just the process</h3><p>One failure deserves its own section because agents are particularly prone to it: overbuilding. Ask an agent to design a system and it will often design one for a large enterprise, with approval chains between roles that in reality are held by the same person, permission tiers nobody needs yet, multiple services where one would do, and plugin frameworks for a second user who does not exist.</p><p>So every spec, including ones produced by another agent, goes through a right size check. Cut approval workflows between roles held by one person, role hierarchies without a current need, extra services, multi region deployment and abstractions that have only one user. Keep tests, an audit log where the data matters, and a rollback path. When an agent has overbuilt, it gets a short corrective instruction that restates the team size, the time target and the monthly cost ceiling, and asks for the revised spec only. It is a surprisingly effective prompt, because most overbuilding comes from the agent not knowing the constraints, not from a desire to build big.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NycaUSXbxkoXve5ExUf3uQ.png" /><figcaption>The right size check: cut by default, keep what protects data and lets you undo. Diagram by the author.</figcaption></figure><p>The same thinking applies to the default technology stack. A small team should run one well understood stack and deviate only with a written reason. Every new component is something someone has to operate at two in the morning.</p><h3>Why write it down as skills</h3><p>For a long time I carried all of this as habit and enforced it by correction. It worked while I was in every conversation. It stops working the moment the team grows, the moment someone else drives the agent, or the moment I am the bottleneck because every task waits for me to say the same five things.</p><p>Writing the procedure down as agent skills solves a problem that is really about delegation, not about tooling. A way of working that exists only in one person’s head cannot be handed over, cannot be reviewed, and cannot be improved by anyone else. Once it is written, the agent loads the right part at the right moment: the entry skill sizes the task and applies the shared rules, and the stage skills for spec, build, review and ship carry the detail for each step. A new engineer reads the same files the agent reads. When something in the process turns out to be wrong, the fix is a change to a file that everyone uses, not a new reminder that only some people heard.</p><p>It also makes the system honest about its own cost. Each skill is short on purpose, because process that cannot fit on a page will not be followed. If a step cannot be justified by a failure it prevents, it does not belong in the file.</p><h3>The principles, in one place</h3><p>If I had to compress the whole system into five lines, they would be these. Ceremony scales with risk, but approval never disappears for the steps that cannot be undone. Evidence beats claims, so done means a command was run and the result was observed. The maker and the checker are different, and the checker sees the spec and the diff, not the reasoning. State lives in files, so work survives context resets and people joining late. And every unit of work should make the next one easier, which means the lessons are written where the next run will read them.</p><p>None of these ideas are new on their own. Spec driven development, test first loops, independent review and keeping a decision log all have long histories, and much recent writing on long running agent harnesses points the same way. What changed for me was not discovering the ideas but accepting that, with agents doing most of the typing, these habits are no longer good practice for careful teams. They are the job.</p><p><em>Diagrams by the author.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a99b9618455f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software You Cannot Walk Over and Reboot]]></title>
            <link>https://medium.com/@teerathap/software-you-cannot-walk-over-and-reboot-e1a587ab2a29?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1a587ab2a29</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[satellite-technology]]></category>
            <category><![CDATA[reliability-engineering]]></category>
            <category><![CDATA[space]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 11:11:01 GMT</pubDate>
            <atom:updated>2026-12-04T20:47:15.548Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What working on CubeSat flight software teaches you about building any system that has to look after itself</em></p><p>I led the flight software work for a student CubeSat team. Most of what I learned there had nothing to do with space and everything to do with a single uncomfortable fact: once the thing is in orbit, nobody can walk over and press the reset button.</p><p>That constraint changes how you write code. And after moving on to ground systems, data pipelines and products, I keep finding that the same habits make everything else more reliable too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JWFnwwQC7AfqUmUe41wh1w.png" /><figcaption>The reset button is a long way up. Diagram by the author.</figcaption></figure><p>On the ground we take recovery for granted. A server misbehaves, someone logs in, restarts a process, maybe power cycles a machine. A satellite offers none of that. Between passes it is alone, and during a pass the link is slow, short and sometimes unreliable. Everything that would normally be a human action has to be designed in as an automatic one, and every automatic action has to be safe to take when the software itself is confused.</p><h3>Assume you will lose contact</h3><p>A small satellite in low Earth orbit is in view of a given ground station for only a few minutes per pass, a handful of passes a day. The rest of the time, it is on its own.</p><p>So the software has to answer, at every moment, the question “what should I do if nobody tells me anything?” That usually means a safe mode: a minimal, well tested state where the satellite keeps its power positive, keeps its radio listening, and stops doing anything optional. Every other mode should be able to fall back to it.</p><p>The ground equivalent is any service that depends on another service. If the upstream API disappears for six hours, does your pipeline crash, retry forever, or degrade gracefully and tell someone?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qyj9yktugVEpn9qTAjjRow.jpeg" /><figcaption>A typical small satellite mode diagram, with safe mode as the place everything falls back to. Simplified, diagram by the author.</figcaption></figure><h3>A state machine you can draw on one page</h3><p>Flight software is usually structured as explicit states with explicit transitions. Boot, detumble, safe, nominal, payload operations. Each transition has a condition you can write down and test.</p><p>This sounds rigid, and it is. That is the point. When something goes wrong, you can look at telemetry, see which state the system was in, and know exactly which transitions were possible. Compare that to a web service where behaviour emerges from a dozen flags and timers that nobody has ever drawn on a whiteboard.</p><h3>Watchdogs, because you will have bugs</h3><p>A watchdog is a hardware timer that resets the computer unless the software regularly tells it “I am still alive.” If the code hangs, the timer expires and the system reboots into a known state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uQQzE-txt8l6VzcUw65-_Q.png" /><figcaption>A watchdog timer resets the system when the software stops checking in. Diagram by the author.</figcaption></figure><p>The timing is a design decision with two failure modes. If the timeout is too short, normal slow operations, a long flash write or a busy period, trip a reset that was not needed, and the system reboots itself into a loop. If it is too long, a real hang leaves the satellite doing nothing useful for that whole time. The usual answer is to kick the watchdog only from a point in the code that proves the main loop is making progress, not from an interrupt that keeps running even when everything else is stuck. A watchdog fed by a timer interrupt detects nothing.</p><p>The lesson is not “write perfect code.” It is “assume your code will get stuck and design the recovery in advance.” On the ground, health checks that restart a stuck worker, idempotent jobs that can safely run twice, and timeouts on every network call are the same idea.</p><h3>Telemetry first, features later</h3><p>You cannot fix what you cannot see. On a satellite, downlink bandwidth is tiny and precious, so you have to decide carefully what to report: temperatures, voltages, current state, error counters, the last few events before a reset.</p><p>The discipline of choosing a small set of signals that tell you whether the system is healthy is useful everywhere. Most product dashboards I have seen have too many charts and not enough answers to “is it working right now, and if not, since when?”</p><h3>Test like you fly</h3><p>The most painful failures happen at the boundaries: the first time a real sensor is connected, the first time the clock rolls over, the first time two subsystems start at once. Flight teams try to test the exact configuration that will fly, on the actual hardware, in the actual sequence.</p><p>For data products, that means testing on real data from the real region, with the real gaps and clouds and missing files, not just on the clean sample that made the demo look good.</p><h3>The habit that transfers</h3><p>If I had to compress all of it into one sentence: design for the moment when you are not watching. Satellites force that discipline on you. Everything else lets you get away without it, right up to the day it doesn’t.</p><p>None of these ideas are exotic. Safe modes, state machines, watchdogs, telemetry and testing on the real configuration are standard practice in embedded and aerospace work. What changes when you carry them into ground software is mostly attitude: you stop assuming that a person will be there to notice and fix things, and you start writing the code for the hours when nobody is.</p><h4>References</h4><ul><li>NASA, CubeSat 101: Basic Concepts and Processes for First Time CubeSat Developers. <a href="https://www.nasa.gov/cubesats">https://www.nasa.gov/cubesats</a></li><li>ESA Academy, CubeSat programme resources. <a href="https://www.esa.int/Education/CubeSats_-_Fly_Your_Satellite">https://www.esa.int/Education/CubeSats_-_Fly_Your_Satellite</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1a587ab2a29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Counting Fishing Boats by Their Lights]]></title>
            <link>https://medium.com/@teerathap/counting-fishing-boats-by-their-lights-bf5be8397af3?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf5be8397af3</guid>
            <category><![CDATA[fisheries]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[oceans]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Fri, 04 Dec 2026 02:41:01 GMT</pubDate>
            <atom:updated>2026-12-04T20:46:16.737Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How the VIIRS Day/Night Band finds vessels from 800 km up, and where it stops working</em></p><p>If you look at the Gulf of Thailand from space on a clear night, you see two kinds of light. The warm orange glow of Bangkok and the coast. And, scattered across the water, thousands of hard white and green points that do not belong to any city.</p><p>Those are fishing boats. Squid fleets hang powerful lamps over the side to draw plankton and small fish to the surface, and the squid follow. The lamps are bright enough to be picked up by a satellite in polar orbit, and that turns out to be one of the most useful datasets we have for understanding what happens at sea after dark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZYc7dqToH7gH54hS_vdJQ.png" /><figcaption>From orbit, a boat with lamps is one bright pixel. Diagram by the author.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q7-1_wkZfEbCM07ByJCqpg.jpeg" /><figcaption>Thailand, Cambodia and southern Vietnam on 7 March 2021, seen by the VIIRS Day/Night Band. Bangkok is top left. The scattered dots over the Gulf of Thailand and the Andaman Sea are fishing boats. Image: NASA Worldview, Suomi NPP VIIRS.</figcaption></figure><h3>The sensor</h3><p>VIIRS flies on the Suomi NPP and NOAA-20 satellites, and on NOAA-21. Most of its bands are ordinary optical and thermal channels. One of them, the Day/Night Band, is unusual. It is built to work across a huge range of light levels, from full daylight down to moonlight reflected off clouds, which is what lets it see a lit boat in the middle of a dark ocean.</p><p>The satellites cross the equator at about 1:30 in the morning local time, so every night you get roughly one snapshot of each region. The Day/Night Band pixel is about 750 m across. That is the most important number in this article, because it explains almost every limitation below.</p><h3>From bright pixel to boat</h3><p>A lit boat is far smaller than a 750 m pixel, so it never shows up as a boat. It shows up as a single pixel, or a small cluster, that is much brighter than the dark water around it. Detection is therefore a spike detection problem: find local peaks that stand out from the background.</p><p>A 750 m pixel covers a little over half a square kilometre. A small fishing boat is perhaps 15 to 25 metres long. The boat fills a tiny fraction of the pixel, and the only reason it registers at all is that its lamps are enormously brighter than the dark sea around it. In other words the detector is not looking for a boat. It is looking for a pixel whose radiance is improbably high given its neighbourhood.</p><p>A common way to express that is a local contrast test. Estimate the background mean μ_bg and spread σ_bg from the pixels in a ring around the candidate, then flag the candidate if</p><pre>z = ( L − μ_bg ) / σ_bg  &gt;  k</pre><p>where L is the candidate’s radiance and k is a threshold chosen to keep false alarms rare. The real VBD processing is more elaborate than this, with sharpness tests and separate handling of each noise source, but the core question is the same: is this pixel a spike, or just part of the background?</p><p>The Earth Observation Group, first at NOAA and now at the Colorado School of Mines, built the VIIRS Boat Detection product (VBD) around this idea, led by Chris Elvidge. It started in Indonesia and the Philippines, where both governments used it to monitor fishing grounds, closures and protected areas, and it has since been extended to much larger areas.</p><p>The hard part is not finding bright pixels. It is rejecting the ones that are not boats:</p><ul><li><strong>Lightning</strong> inside storm clouds produces brief flashes that look like point sources.</li><li><strong>Gas flares and oil platforms</strong> are fixed, bright and permanent.</li><li><strong>Moonlight</strong> on clouds raises the background and hides weaker sources.</li><li><strong>Energetic particles</strong> hitting the detector, especially over the South Atlantic Anomaly, create bright single pixel noise.</li><li><strong>Coastal glow</strong> from cities bleeds into nearshore pixels.</li></ul><p>Each of these needs its own filter, and the quality of a boat detection product is mostly the quality of its false positive rejection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F7IuFsDaTnd8g1dZYrAoFQ.jpeg" /><figcaption>How a lit boat goes from one bright pixel to a dark fleet detection. Diagram by the author.</figcaption></figure><h3>Why it matters: the dark fleet</h3><p>Large vessels are supposed to broadcast their position through AIS, and many fishing fleets report through VMS. Small boats often don’t, and some boats switch off on purpose.</p><p>Lights are hard to switch off if your catch depends on them. When Global Fishing Watch matched VIIRS detections against AIS and VMS in the northwest Indian Ocean, they found that more than 85 percent of the light detections came from vessels not broadcasting either. Elvidge has estimated that worldwide, VIIRS sees somewhere between ten and twenty thousand boats a night that are not on AIS or VMS.</p><p>For fisheries management, that is a different picture of where effort is going. For anyone who works with small scale fishers, it is also a reminder that most of the activity at sea is invisible to the systems built for large ships.</p><h3>Where it stops working</h3><p>The method is clever, and it is also narrow. Knowing the limits is what keeps you from overselling it.</p><p><strong>It only sees boats that light up.</strong> Light luring fisheries, squid and some purse seiners, are visible. A gillnetter working in the dark is not. VBD is a census of lit boats, not of boats.</p><p><strong>Clouds still win.</strong> The Day/Night Band is an optical sensor. Under thick cloud you get nothing, and in the monsoon that can mean weeks of gaps.</p><p><strong>One pixel, many boats.</strong> At 750 m, several boats close together merge into one detection. Counts in dense fleets are lower bounds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_p7LTRA1AyDNjj0EAq55ug.png" /><figcaption>Several boats inside one pixel become one detection. Diagram by the author.</figcaption></figure><p><strong>One look per night.</strong> A boat that lights up at 10 p.m. and heads home before the overpass never appears.</p><p><strong>Brightness is not size.</strong> A brighter pixel might be a bigger boat, more lamps, a clearer atmosphere or two boats side by side. Turning radiance into vessel class is possible only with care and ground data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*myJ2mA7daXt8vSWyceSzvQ.jpeg" /><figcaption>Fishing boat lights far out in the Arabian Sea, picked up by the VIIRS Day/Night Band. Image: NASA Earth Observatory / Lauren Dauphin, using VIIRS data from Suomi NPP.</figcaption></figure><h3>Using it well</h3><p>The most useful thing I’ve seen done with this data is to combine it rather than trust it alone. VIIRS tells you where lit activity is concentrated. AIS tells you which of those are known large vessels. Radar from Sentinel-1 can see boats regardless of lights or clouds, though only every few days and only boats big enough to reflect strongly. Each source covers a gap the others have.</p><p>And then there is the question from the first article in this series, the one fishers actually ask: not where everyone else is, but where to go tonight. Night lights describe where the fleet went. Whether they can help predict where the fish will be is a harder problem, and a more interesting one.</p><h4>References</h4><ul><li>Elvidge, C. D. et al. (2015). Automatic Boat Identification System for VIIRS Low Light Imaging Data. Remote Sensing.</li><li>Elvidge, C. D. et al. (2025). Global mapping of offshore lighting structures from VIIRS. Earth System Science Data 17, 579. <a href="https://essd.copernicus.org/articles/17/579/2025/">https://essd.copernicus.org/articles/17/579/2025/</a></li><li>Earth Observation Group, VIIRS Boat Detection (VBD). <a href="https://payneinstitute.mines.edu/eog/viirs-boat-detection-vbd">https://payneinstitute.mines.edu/eog/viirs-boat-detection-vbd</a></li><li>NASA Earth Observatory, Arabian Night Lights. <a href="https://science.nasa.gov/earth/earth-observatory/arabian-night-lights-148307">https://science.nasa.gov/earth/earth-observatory/arabian-night-lights-148307</a></li><li>Global Fishing Watch, Using bright lights to reveal the dark fleet. <a href="https://globalfishingwatch.org/">https://globalfishingwatch.org</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf5be8397af3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading a Rice Season From Radar]]></title>
            <link>https://medium.com/@teerathap/reading-a-rice-season-from-radar-40b63eee7f3a?source=rss-d030247c0dd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/40b63eee7f3a</guid>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[satellite-imagery]]></category>
            <category><![CDATA[agriculture]]></category>
            <category><![CDATA[food-security]]></category>
            <category><![CDATA[synthetic-aperture-radar]]></category>
            <dc:creator><![CDATA[Teerathap Yaisungnoen]]></dc:creator>
            <pubDate>Thu, 03 Dec 2026 11:11:01 GMT</pubDate>
            <atom:updated>2026-12-04T20:44:58.560Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why the backscatter curve of a paddy field has a shape you can recognise, and where that shape breaks</em></p><p>Rice is the crop that optical satellites struggle with most. It grows in the wet season, under the clouds, in fields that start as standing water. If you want to know when farmers planted, how far along the crop is, or how many hectares are in the ground this season, you usually end up using radar.</p><p>The good news is that rice has one of the clearest radar signatures of any crop. Once you know what to look for, you can almost read the season off a single pixel’s time series.</p><h3>The V shape</h3><p>Follow a transplanted rice field through a season in Sentinel-1 VH backscatter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_qVmsmscYMeobRDolGlrQw.png" /><figcaption>What the radar sees as a rice season goes on. Diagram by the author.</figcaption></figure><p>Before planting, the field is bare or stubble. The surface is rough, so some energy scatters back. Backscatter is moderate.</p><p>Then the field is flooded and the seedlings go in. Calm water reflects the radar pulse away from the satellite, and the young plants are too small to matter. Backscatter drops sharply. This is the bottom of the V, and it is the most useful moment in the whole curve, because it tells you roughly when the crop was established.</p><p>As the plants grow, the canopy gets denser and taller. The radar wave starts bouncing around inside it, and between stems and water. Backscatter climbs steadily for several weeks.</p><p>Around heading and ripening, the curve flattens or wobbles. Then harvest removes the canopy and the value drops again.</p><p>Many published rice mapping methods are built directly on that shape: a flooding dip followed by a steady rise.</p><p>A simple way to turn that into numbers is to look for three features in each pixel’s VH series: the minimum during the planting window, the steepest rise after it, and the amplitude between the two. If the minimum is low enough to mean standing water, the rise is steep enough to mean a growing canopy, and the amplitude is large enough to stand out from speckle, the pixel is a rice candidate. The date of the minimum is an estimate of when the crop was established. None of this needs a deep model, which is part of why the approach has lasted for decades, from early ERS-1 studies in the 1990s to methods built on Sentinel-1 today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BFnx1hCtJ6zj2llXwmCP7A.jpeg" /><figcaption>The VH backscatter of a transplanted rice field through one season. Idealised shape, diagram by the author.</figcaption></figure><h3>Why VH and not VV</h3><p>Both polarisations show the flooding dip. VH, the cross polarised channel, responds more to volume scattering inside a canopy, so it tracks the growth phase more cleanly. VV is more affected by the water surface and by wind ruffling it. Many methods use both, sometimes the ratio between them, but VH is often the main signal for growth.</p><h3>Where the textbook curve breaks</h3><p><strong>Direct seeding.</strong> Not every farmer transplants. Direct seeded fields may never have a long, deep flooding phase, so the dip is shallow or missing. A method that requires a clear V will undercount them.</p><p><strong>Water management.</strong> Alternate wetting and drying, where fields are drained and reflooded to save water, adds extra dips and bumps in the middle of the season. That is good agronomy. It also confuses simple curve fitting.</p><p><strong>Two or three crops a year.</strong> In irrigated parts of central Thailand, fields can carry more than one rice crop a year, and neighbouring fields are rarely in sync. A twelve day revisit can miss a short flooding phase entirely. That was the situation for most of 2022 to 2024, when only one Sentinel-1 satellite was flying, and those years sit inside many rice time series. Sentinel-1C, launched in December 2024, brought the revisit back down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zJfU2jwq23bG5kCyCvVYFg.png" /><figcaption>A short dip can fall between two passes. Idealised curve. Diagram by the author.</figcaption></figure><p>The chart shows the same point in a more general form. Any feature shorter than the revisit interval can fall between two passes. A twelve day revisit cannot reliably see anything that lasts less than about twelve days. That is the sampling problem in its simplest form, and it is why the move back to a six day revisit matters more for rice than the headline number suggests.</p><p><strong>Incidence angle.</strong> The same field looks brighter or darker depending on the viewing angle of each orbit. Mixing orbits without normalising for this adds noise that looks like crop change.</p><h3>What the curve is good for</h3><p>Even with those caveats, a radar time series can answer questions that matter in practice: which fields are rice this season, roughly when they were planted, and whether a region is ahead of or behind its usual calendar. Those are the inputs for crop area estimates, irrigation planning and early warnings about a late or failed season.</p><p>What it is not good for, on its own, is yield. Backscatter tracks structure, not grain. For yield you need more: optical data when the clouds allow it, weather, and above all ground data from fields where someone actually measured the harvest.</p><h4>References</h4><ul><li>Auto-RMVPF: Automated rice mapping using V shaped phenological features from Sentinel-1 time series (2023). Remote Sensing 15(11), 2785.</li><li>Monitoring rice growth status in the Mekong Delta, Vietnam using Sentinel-1 (2020). Journal of Applied Remote Sensing 14(1), 014518.</li><li>Kurosu, T. et al. (1995). Monitoring of rice crop growth from space using the ERS-1 C band SAR. IEEE Transactions on Geoscience and Remote Sensing 33(4).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40b63eee7f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>