<?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 Amini.ai on Medium]]></title>
        <description><![CDATA[Stories by Amini.ai on Medium]]></description>
        <link>https://medium.com/@aminitech?source=rss-3744f86e0ffc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*x0TaEFgs1njBnfFq7bQk7g.png</url>
            <title>Stories by Amini.ai on Medium</title>
            <link>https://medium.com/@aminitech?source=rss-3744f86e0ffc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 15 Nov 2026 06:45:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aminitech/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[Self-Supervised Representation Learning on Remote Sensing Pixel Time Series with Patch-Based…]]></title>
            <link>https://medium.com/the-sovereign-stack/self-supervised-representation-learning-on-remote-sensing-pixel-time-series-with-patch-based-1a48024ae3cf?source=rss-3744f86e0ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a48024ae3cf</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Amini.ai]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 07:50:55 GMT</pubDate>
            <atom:updated>2026-07-30T10:03:15.863Z</atom:updated>
            <content:encoded><![CDATA[<h3>Self-Supervised Representation Learning on Remote Sensing Pixel Time Series with Patch-Based Masking</h3><p><em>January 2025, Amini</em></p><h3><strong>Summary</strong></h3><p>We build on the channel-independence and patch-segmentation concepts introduced by <a href="https://arxiv.org/pdf/2211.14730"><strong>PatchTST</strong>,</a> adapting them to remote-sensing pixel time series for self-supervised representation learning. In our approach, each spectral band/index (e.g., Red, NDWI) is treated as a univariate sequence, split into “patch tokens,” then processed by a ~600k-parameter Transformer. We randomly mask a substantial fraction of these patch tokens and train the model to reconstruct the missing segments, capturing both short sub-seasonal dynamics within each patch and multi-month context across the entire time series.</p><p><strong>In this blog, we discuss:</strong></p><ol><li>Patch-based masking for remote-sensing pixel time series,</li><li>Experimental results on Uasin Gishu County, covering land-cover classification and anomaly detection,</li><li>Future directions, including<strong> </strong>foundation-scale training and integration of additional sensors modalities.</li></ol><h3><strong>Method Overview</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7OWwZlBGP1fBwYo8iTnyg.png" /><figcaption><strong><em>Figure 1: PatchTST architecture</em></strong></figcaption></figure><p><strong>Pixel-Time-Series Setup</strong></p><p>Let {x1(m).…xL(m)} represent a univariate time series for spectral channel m (e.g., the Red band in Sentinel-2). For biweekly composites, L≈26 data points per year, but L can grow to hundreds of time steps when spanning multiple years. Our goal is to learn an embedding function Φ mapping each pixel-level sequence to a latent representation that captures meaningful spatial-temporal semantics.</p><p><strong>Patch-Based Segmentation &amp; Channel Independence</strong></p><p>To reduce computational overhead while incorporating local temporal context, each univariate series is divided into patches of length P, typically with stride S≤P. For instance, P=16 and S=8 might produce about L/S patch tokens in a length-L sequence. Next, instead of early channel fusion, each channel (Red, NIR, NDWI, etc) is processed independently via the same Transformer encoder. This approach <strong>avoids mixing different noise profiles across channels</strong>, promotes <strong>parameter efficiency </strong>and helps learn<strong> universal time-series representations</strong> more effectively.</p><p><strong>Masked Autoencoding Objective</strong></p><p>We randomly mask ~ 40% of the patch tokens in each channel by replacing them with mask tokens. A 600K parameter transformer encoder then processes both unmasked and masked patches, producing patch-level embeddings of shape (X, n_patches, embedding_size). This patch-wise representation enables the model to<strong> capture local sub-seasonal patterns</strong> within each patch as well as broader <strong>multi-season context across patches</strong>. Finally, a lightweight projection head reconstructs only the masked patches under a mean-squared error (MSE) loss, ensuring the model integrates global temporal information rather than just relying on short-range interpolation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*WJcFioTkEDKjHvHh9BT6cQ.png" /></figure><h3><strong>Experiments</strong></h3><h4><strong>Dataset &amp; Preprocessing</strong></h4><p>We tested this approach on Sentinel-2 biweekly composites over 4 years from Uasin Gishu County, Kenya, a region known for its diverse land-cover types and environmental conditions. The preprocessing steps included:</p><ul><li><strong>Composite Formation</strong>: For each biweekly interval, multiple Sentinel-2 acquisitions are merged. Cloud masks are applied, median reflectance computed, and data converted to a pixel time series format for temporal processing.</li><li><strong>Spectral Channels</strong>: A set of 10 spectral bands/indices <strong>[‘Green’, ‘Blue’, ‘Red’, ‘NIR’, ‘SWIR1’, ‘SWIR2’, ‘NDMI’, ‘NDWI’, ‘CI’, ‘NDVI’]</strong> is used to form a comprehensive multi-spectral pixel time series used for pretraining.</li><li><strong>Data Splits</strong>: We use spatial splits for training, validation, and test sets, minimizing overlap to ensure that the model generalizes to unseen regions.</li><li><strong>Land-Cover Labels (Weak Labels)</strong>: To evaluate the effectiveness of the learnt embeddings, we leverage ESRI LULC data as “weak labels” in a downstream classification task. Although these labels are not a perfect ground truth, their broad coverage and easy availability make them practical for experimentation. By accepting some degree of label noise, we can still gauge how well the embeddings separate high-level land-cover categories (e.g., water vs. vegetation vs. built-up areas).</li></ul><h4><strong>Results &amp; Discussion</strong></h4><p><strong>Pretraining Dynamics &amp; Reconstruction Performance</strong></p><p>The ~600k-parameter model converges smoothly under the masked-autoencoder objective, demonstrating a strong ability to reconstruct missing patches. Over the course of training, the training loss steadily declines (from ~0.1715 to ~0.0232), while validation loss stabilizes around 0.0864 –0.0211 signifying limited overfitting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hJRXR7Uy_jaW2H5sOMytig.png" /><figcaption><strong><em>Figure 2: Train &amp; validation losses</em></strong></figcaption></figure><h4><strong>Land Cover Classification &amp; Confusion Matrix</strong></h4><p>To evaluate the effectiveness of the learned representations, we leverage the pretrained transformer’s frozen weights to extract patch-level embeddings. These embeddings are averaged across the patch dimension to obtain a single global representation for each pixel’s temporal sequence. The resulting fixed-dimensional vectors are then fed into a linear classifier trained to<strong> </strong>distinguish five land cover classes derived from ESRI LULC labels: water, trees, crops, built area, and rangeland.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sr8qVl7KiWSDjTt2SeZimw.png" /><figcaption><strong><em>Figure 3: LULC Confusion Matrix</em></strong></figcaption></figure><p>Despite the class imbalance in our test set and label noise that might be inherent in the ESRI dataset, diagonal dominance from the confusion matrix indicates the model’s learnt representations effectively distinguish these major land-cover types.</p><h4><strong>Anomaly Detection in Maize Fields</strong></h4><p>To further evaluate the quality of the learned representations, we conducted an anomaly detection experiment focusing on maize field pixels from this <a href="https://ecaas.pula.io/"><strong>dataset</strong></a><em>.</em> We first extracted 128-dimension embeddings for each pixel by aggregating the patch-based representations from the pre-trained transformer. These embeddings were then used to train an<strong> Isolation Forest algorithm</strong>, which identifies anomalous patterns labelled as “-1” and normal temporal behaviours labelled as “1”.<strong> </strong>The figure below shows a 2D PCA visualization of the embeddings:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8sc2j97O6snDFkkly5XMg.png" /><figcaption><strong><em>Figure 4: PCA Visualization of anomaly detection on maize fields</em></strong></figcaption></figure><h3><strong>Conclusion &amp; Future Directions</strong></h3><p>Overall, we’ve shown that patch-based masking stands as a flexible and powerful method for self-supervised representation learning on remote-sensing pixel time series, balancing both <strong>computational efficiency </strong>and<strong> local scale dynamics </strong>that are critical for real -world earth observation challenges. While our present experiment focuses on a single county, we are actively developing a foundation scale training pipeline targeting a larger geographic scope and additional sensor modalities. We will share our findings. In the meantime, we invite you to explore our pretrained model<strong> </strong>, trained on Uasin Gishu County on <a href="https://huggingface.co/AminiTech/Amini_FM_V0"><strong>Hugging Face</strong></a> and share any feedback you may have through <strong>our </strong><a href="https://join.slack.com/t/aminicommunity/shared_invite/zt-2ri694lo4-7BeI4ofgqR6He8ZgQKJ1Gg"><strong>Community Channel</strong></a>.</p><p><a href="https://shorturl.at/IeaFA"><strong>Read &amp; Download our Research Paper</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a48024ae3cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-sovereign-stack/self-supervised-representation-learning-on-remote-sensing-pixel-time-series-with-patch-based-1a48024ae3cf">Self-Supervised Representation Learning on Remote Sensing Pixel Time Series with Patch-Based…</a> was originally published in <a href="https://medium.com/the-sovereign-stack">The Sovereign Stack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning and Earth Observation — A Beacon of Hope for a Climate-Resilient Africa]]></title>
            <link>https://medium.com/the-sovereign-stack/machine-learning-and-earth-observation-a-beacon-of-hope-for-a-climate-resilient-africa-c47494397bf6?source=rss-3744f86e0ffc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c47494397bf6</guid>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[earth-observation]]></category>
            <category><![CDATA[africa]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Amini.ai]]></dc:creator>
            <pubDate>Tue, 20 Jun 2023 12:09:00 GMT</pubDate>
            <atom:updated>2026-08-03T10:29:56.697Z</atom:updated>
            <content:encoded><![CDATA[<h3>Machine Learning and Earth Observation — A Beacon of Hope for a Climate-Resilient Africa</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*yYsG54vnTvux-kWavPnW9g.png" /><figcaption>Source: <a href="https://eo.dhigroup.com/news-room/satellite-based-catch-crop-monitoring-cap/">https://eo.dhigroup.com/news-room/satellite-based-catch-crop-monitoring-cap/</a></figcaption></figure><p>Climate change and variability continue to exert immense pressure on the African continent. As recorded by the Intergovernmental Panel on Climate Change (IPCC), <a href="https://www.ipcc.ch/report/ar6/wg2/chapter/chapter-9/">Africa’s contribution is among the lowest of historical greenhouse gas (GHG) emissions</a> responsible for human-induced climate change, yet it remains the most vulnerable continent in the face of climate change.</p><p>This change, coupled with Africa’s high dependence on climate-sensitive sectors such as agriculture, poses significant challenges to livelihoods, food security, and socio-economic development. However, the advent of machine learning (ML) and earth observation (EO) technologies offers a glimmer of hope, providing data-driven solutions that foster resilience and adaptability.</p><h4>Fostering Climate Resilience in Agriculture</h4><p>Agriculture is the backbone of many African economies, providing livelihoods for a significant proportion of the population. More than 60 percent of the population of sub-Saharan Africa is smallholder farmers, and about 23 percent of sub-Saharan Africa’s GDP comes from agriculture. <a href="https://www.mckinsey.com/industries/agriculture/our-insights/winning-in-africas-agricultural-market">According to a report by McKinsey</a>, agriculture accounts for about 23% of Africa’s GDP and about 60% of its jobs. However, due to the sector’s reliance on rainfall and changing weather patterns, climate change poses a significant threat to agriculture and, by extension, food security.</p><p>ML and EO can predict weather patterns with increased accuracy, aiding farmers in making informed decisions regarding planting and harvesting times. For example, satellite-based remote sensing can provide real-time information on soil moisture, crop health, and weather conditions. This information is crucial for smallholder farmers who rely on rain-fed agriculture.</p><p>Through these technologies, crop yields can also be predicted more accurately. A <a href="https://www.sciencedirect.com/science/article/pii/S2211912422000335?ref=pdf_download&amp;fr=RR-2&amp;rr=7d7abc5b4da99e8e">study conducted by a group of researchers including the Climate Hazards Center, Department of Geography, University of California et al</a> has indicated that machine learning algorithms showed an impressive accuracy rate of over 85% in some regions. Such predictive capabilities could significantly enhance food security and contribute to economic stability in the region. It allows for better planning, from predicting potential food shortages to providing valuable data for agricultural policy development.</p><p>Another aspect of climate resilience in agriculture is the ability to monitor and adapt to land use changes. Africa is experiencing rapid urbanization, which often comes at the expense of agricultural lands. EO technologies can track these changes, allowing for more effective land use planning and helping ensure that agricultural productivity is not undermined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EWxkq6SPUVBs6vak4XPvaw.png" /><figcaption><a href="https://scitechdaily.com/lasering-in-on-corn-fields-from-the-international-space-station/">Figure 2: Detecting corn (Yellow) vs other crops(green) using satellite imagery</a></figcaption></figure><p>Furthermore, ML and EO can also play a vital role in pest and disease management, a challenge exacerbated by climate change. By identifying signs of pest infestations or disease outbreaks early, preventative measures can be implemented promptly, thereby protecting crop yields and the livelihoods of farmers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*C5H2sT7FdNa_AhZR7FvS3g.jpeg" /><figcaption><a href="https://www.malteser-international.org/en/current-issues/natural-disasters/locust-infestation.html">Figure 3: Locust outbreak in East Africa</a></figcaption></figure><h4>Biodiversity Protection</h4><p>Biodiversity plays a vital role in ensuring the overall health of the planet and has a direct impact on human lives. However, the biodiversity crisis we are facing is as alarming as the climate crisis. The African continent is home to a wealth of biodiversity, including approximately <a href="https://reliefweb.int/report/world/african-rainforests-continue-face-challenges">30% of the planet’s remaining rainforest</a>, such as the Congo Basin, the second-largest rainforest in the world.</p><p>Through EO technology, changes in land cover — a significant driver of biodiversity loss — can be detected and analyzed in real-time. This allows for rapid responses to threats such as deforestation, illegal logging, and encroachment. For example, the United Nations has shown that <a href="https://www.unodc.org/unodc/frontpage/2022/November/countering-forest-loss-in-africa-through-anti-corruption-mechanisms.html">Africa loses 3.9 million hectares of forest per year</a>, a trend that can be combated more effectively with the use of these technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*b1AkbqsdCqVPbOXMwHtWlw.png" /><figcaption><a href="https://blog.openforests.com/remote-sensing-for-forest-landscapes/">Figure 4: Forest cover analysis using satellite imagery</a></figcaption></figure><p>Additionally, machine learning and earth observation technologies provide powerful tools for monitoring and conserving biodiversity. Satellite imagery, combined with machine learning algorithms, can track changes in ecosystems, identify threats to endangered species, and monitor protected areas’ effectiveness. This provides invaluable data for crafting and implementing effective conservation strategies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*UW1T7LoMInvI2wZWeEl3kg.jpeg" /><figcaption><a href="https://blog.maxar.com/earth-intelligence/2019/a-new-wildlife-surveying-technique-using-satellite-imagery-and-machine-learning-to-detect-and-monitor-elephants">Figure 5: Elephants aggregated around and walking to a water hole in Addo Elephant National Park, South Africa.</a></figcaption></figure><p>Natural disasters such as droughts, floods, and cyclones are becoming increasingly frequent and intense due to climate change, posing a significant threat to African communities. Timely and effective disaster management can reduce these impacts, saving lives, and preserving livelihoods. Here too, machine learning and earth observation technologies can be of immense value. By analyzing historical and real-time data, ML algorithms can be used to predict the likelihood of natural disasters, providing crucial early warnings to communities at risk.</p><p>Once a natural disaster has occurred, ML and EO can also aid in damage assessment and recovery efforts. Satellite imagery can quickly provide an overview of the affected areas, identifying infrastructure damage, flooded areas, or landslides. Machine learning algorithms can then process this data, aiding in the efficient allocation of resources where they are most needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*_u7e4w50hEh48YGhvC-x5Q.png" /><figcaption><a href="https://www.washingtonpost.com/climate-environment/2022/11/16/nigeria-floods-climate-change-attribution/">Figure 6: Floods in Malawi January 2023</a></figcaption></figure><h4>Conclusion</h4><p>In this transformative landscape, startups like <a href="https://www.amini.ai/">Amini</a> are taking the lead. Amini has established itself as the single source of truth for African environmental data, addressing the critical issue of Africa’s environmental data scarcity. Through a holistic solution that harnesses AI and space technologies, Amini aims to bridge this data gap, foster economic inclusivity for farmers, and enhance supply chain resilience across the continent and beyond.</p><p>Significant investments, policy support, and capacity building remain essential to fully exploiting the potential of these technologies. Leveraging these powerful tools can enable us to mitigate the impacts of climate change, fostering a more resilient and sustainable future for Africa. As the African proverb says, “Tomorrow belongs to the people who prepare for it today.” By acting now and embracing the transformative potential of these technologies, we can prepare for and secure a resilient tomorrow for Africa. The promise of this future depends on the actions we take today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c47494397bf6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-sovereign-stack/machine-learning-and-earth-observation-a-beacon-of-hope-for-a-climate-resilient-africa-c47494397bf6">Machine Learning and Earth Observation — A Beacon of Hope for a Climate-Resilient Africa</a> was originally published in <a href="https://medium.com/the-sovereign-stack">The Sovereign Stack</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>