<?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 Behzad Valipour Shokouhi on Medium]]></title>
        <description><![CDATA[Stories by Behzad Valipour Shokouhi on Medium]]></description>
        <link>https://medium.com/@bvsh?source=rss-92edc205fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RQhWSX0zhyIggWLh4v8evw@2x.jpeg</url>
            <title>Stories by Behzad Valipour Shokouhi on Medium</title>
            <link>https://medium.com/@bvsh?source=rss-92edc205fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:29:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bvsh/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[Using Docker to Overcome Geospatial Package Challenges and Implementing It in HPC (Part 1)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://bvsh.medium.com/using-docker-to-overcome-geospatial-package-challenges-and-implementing-it-in-hpc-part-1-c41ba099854e?source=rss-92edc205fa------2"><img src="https://cdn-images-1.medium.com/max/919/1*tVweIExV1KqQmvDUIzeO0Q.png" width="919"></a></p><p class="medium-feed-snippet">When I first started using Docker images, I wondered how I could apply them to my geospatial work to make my workflow smoother. This&#x2026;</p><p class="medium-feed-link"><a href="https://bvsh.medium.com/using-docker-to-overcome-geospatial-package-challenges-and-implementing-it-in-hpc-part-1-c41ba099854e?source=rss-92edc205fa------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://bvsh.medium.com/using-docker-to-overcome-geospatial-package-challenges-and-implementing-it-in-hpc-part-1-c41ba099854e?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/c41ba099854e</guid>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Sun, 12 Jan 2025 19:12:41 GMT</pubDate>
            <atom:updated>2025-01-12T19:18:01.490Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Advanced Gap-Filling Techniques for Satellite Imagery]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://bvsh.medium.com/advanced-gap-filling-techniques-for-satellite-imagery-1ae5886368bb?source=rss-92edc205fa------2"><img src="https://cdn-images-1.medium.com/max/600/1*bVZQbn2V-bztYspLyq685A.png" width="600"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://bvsh.medium.com/advanced-gap-filling-techniques-for-satellite-imagery-1ae5886368bb?source=rss-92edc205fa------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://bvsh.medium.com/advanced-gap-filling-techniques-for-satellite-imagery-1ae5886368bb?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ae5886368bb</guid>
            <category><![CDATA[image-processing]]></category>
            <category><![CDATA[geospatial-data]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Tue, 05 Nov 2024 11:53:31 GMT</pubDate>
            <atom:updated>2024-11-05T11:53:31.783Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Breath of the Future: Unraveling Milan’s Air Quality with Spatiotemporal Machine Learning…]]></title>
            <link>https://bvsh.medium.com/breath-of-the-future-unraveling-milans-air-quality-with-spatiotemporal-machine-learning-b1b3ce9fa330?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1b3ce9fa330</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[spatio-temporal]]></category>
            <category><![CDATA[geospatial-data-science]]></category>
            <category><![CDATA[geospatial-intelligence]]></category>
            <category><![CDATA[air-pollution]]></category>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Wed, 07 Feb 2024 15:25:13 GMT</pubDate>
            <atom:updated>2024-02-07T15:58:28.778Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jIhMroKpIULFE7xLiCopg.png" /><figcaption><em>Image from: </em><a href="https://www.agenzianova.com/en/news/milan-smog-beyond-the-limits-for-55-percent-of-children/"><em>Agenzia Nova</em></a></figcaption></figure><h3>Breath of the Future: Unraveling Milan’s Air Quality with Spatiotemporal Machine Learning (Introduction)</h3><p>In the bustling metropolis of Milan, where history seamlessly intertwines with modernity, the air we breathe tells a profound tale. As urbanization progresses, so does the challenge of managing air quality, with particulate matter (PM2.5) emerging as a critical indicator of environmental health. In this era of advanced data science, the fusion of spatiotemporal modeling and machine learning offers a beacon of hope for predicting and mitigating the impact of air pollution. This article embarks on a journey to develop a cutting-edge spatiotemporal machine-learning model to forecast PM2.5 levels in the heart of Milan.</p><p>Part 1: Setting the Stage — <strong>Environment Setup and Data Collection</strong></p><p>Before delving into the intricacies of machine learning, understanding the environment and collecting relevant data is paramount. In the forthcoming article, we will explore the meticulous process of setting up the data collection infrastructure in Milan. From strategically placing sensors across the metropolitan area to integrating real-time and historical datasets, this initial step lays the foundation for robust spatiotemporal modeling.</p><p>Part 2: Unraveling Patterns — <strong>Data Wrangling and Exploratory Data Analysis</strong></p><p>With a treasure trove of data at our disposal, the next challenge is to unravel its secrets. The second article in this series will dive into the world of data wrangling and exploratory data analysis (EDA). Discovering hidden patterns, handling missing values, and gaining insights into the temporal and spatial dynamics of PM2.5 concentrations are pivotal steps in preparing the data for the machine-learning journey.</p><p>Part 3: Crafting the Canvas — <strong>Feature Engineering, Extraction, and Selection</strong></p><p>Building an effective spatiotemporal machine-learning model requires crafting meaningful features. The third installment of our series will focus on feature engineering, extracting relevant features from diverse datasets, and employing rigorous feature selection techniques. This step is crucial for enhancing the model’s ability to capture the intricate relationships between various environmental variables and PM2.5 levels.</p><p>Part 4: The Art of Prediction — <strong>Model Development and Tuning</strong></p><p>Armed with a curated dataset and refined features, the fourth article will guide you through the intricate process of model development. We will explore spatiotemporal machine learning algorithms tailored to predict PM2.5 levels in Milan. Additionally, we will delve into the nuances of hyperparameter tuning to optimize model performance and ensure accurate predictions.</p><p>Part 5: <strong>Gazing into the Future — Inference and Prediction</strong></p><p>The final chapter of our series will unfold the culmination of our efforts. We will delve into the practical application of the developed spatiotemporal machine learning model, making predictions and drawing inferences that can guide policymakers, environmentalists, and citizens in the quest for cleaner air in Milan.</p><p>Join me on this exciting expedition as we combine data science with environmental stewardship, unraveling the complex tapestry of air quality in Milan with the power of spatiotemporal machine learning. All the code will be shared in the GitHub repository</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1b3ce9fa330" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancement of MODIS NIDVI to 10m resolution using U-Net]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://bvsh.medium.com/enhancement-of-modis-nidvi-to-10m-resolution-using-u-net-53c8b8982670?source=rss-92edc205fa------2"><img src="https://cdn-images-1.medium.com/max/2600/1*lO_Qbis5PEYwe7_BOw-ZlQ.png" width="3055"></a></p><p class="medium-feed-snippet">The normalized difference vegetation index (NDVI), introduced in the 1970s, has powerful applications in land management, food security&#x2026;</p><p class="medium-feed-link"><a href="https://bvsh.medium.com/enhancement-of-modis-nidvi-to-10m-resolution-using-u-net-53c8b8982670?source=rss-92edc205fa------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://bvsh.medium.com/enhancement-of-modis-nidvi-to-10m-resolution-using-u-net-53c8b8982670?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/53c8b8982670</guid>
            <category><![CDATA[sentinel-2]]></category>
            <category><![CDATA[unet]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[sentinel-1]]></category>
            <category><![CDATA[geospatial-intelligence]]></category>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Sun, 04 Sep 2022 14:30:10 GMT</pubDate>
            <atom:updated>2022-09-04T15:03:21.429Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Patch-wise Land Cover Classification using Sentinel-2 Satellite and Deep Learning]]></title>
            <link>https://bvsh.medium.com/patch-wise-land-cover-classification-using-sentinel-2-satellite-and-deep-learning-c4d10c4fd9eb?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4d10c4fd9eb</guid>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 14:10:13 GMT</pubDate>
            <atom:updated>2022-09-04T15:57:54.557Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Growing population, urban sprawl, changes in land cover, and land use result in an increased need for systematic and accurate land cover and land use information. Highly accurate information on land cover and land use is essential for decision-makers, urban planners, mapping of ecosystem services, deforestation analysis, detection of land cover changes, and many others. Satellite imagery is recognized as one of the most important data sources for land cover mapping, monitoring the dynamics of the land cover changes at local, regional, national, and global scales. (<a href="https://www.mdpi.com/2072-4292/14/4/989/htm">Link</a>)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-znvlDlBMgFjRqew.jpg" /><figcaption>Europe land-cover mapped in 10 m resolution (<a href="https://www.esa.int/ESA_Multimedia/Images/2020/03/Europe_land-cover_mapped_in_10_m_resolution#.Yvfq6O9qcA8.link">Link</a>)</figcaption></figure><p>For this project, I followed the tutorial from the book titled ‘<a href="https://books.google.ch/books/about/Deep_Learning_for_Remote_Sensing_Images.html?id=PrfvDwAAQBAJ&amp;printsec=frontcover&amp;source=kp_read_button&amp;hl=en&amp;redir_esc=y#v=onepage&amp;q&amp;f=false"><em>Deep Learning for<br>Remote Sensing Images with Open Source Software</em></a><em>’, however, decided to use </em>Registry of Open Data on <a href="https://registry.opendata.aws/">AWS</a> to download the Sentinel-2 images, and the ground truth dataset is available in the Github <a href="https://github.com/remicres/otbtf_tutorials_resources">repo</a></p><h3><strong>Download Sentinel-2 images</strong></h3><p>As mentioned before, to download the S2 satellite data I used Registry of Open Data on <a href="https://registry.opendata.aws/">AWS</a>. The following steps are required:</p><ol><li>Install AWS command line <a href="https://aws.amazon.com/cli/">https://aws.amazon.com/cli/</a></li><li>Go to the related website <a href="https://registry.opendata.aws/sentinel-2-l2a-cogs/">https://registry.opendata.aws/sentinel-2-l2a-cogs/</a></li><li>Use the following command to have access to the data in the S3 bucket:</li></ol><pre>aws s3 ls --no-sign-request s3://sentinel-cogs-inventory/</pre><p>4. The datasets are in Military Grid Reference System (MGRS) Coordinates, therefore, to find the related code for AIO use the following website: <a href="https://mappingsupport.com/p2/coordinates-mgrs-gissurfer-maps.html">https://mappingsupport.com/p2/coordinates-mgrs-gissurfer-maps.html</a></p><p>It is possible to visualize the thumbs in QGIS using the following instruction on YouTube: <a href="https://youtu.be/OWlem1MJiwY">https://youtu.be/OWlem1MJiwY</a></p><p>The required image for this study is located in the following path:</p><pre>aws s3 ls --no-sign-request s3://sentinel-cogs/sentinel-s2-l2a-cogs/54/S/UE/2019/5/S2A_54SUE_20190508_0_L2A/</pre><p>After being sure that it is correct and what you are looking for, you can download the directory of data to the local machine using the following code:</p><pre>aws s3 cp --no-sign-request s3://sentinel-cogs/sentinel-s2-l2a-cogs/54/S/UE/2019/5/S2A_54SUE_20190508_0_L2A/ --recursive</pre><p>or you can download the B04, B03, B02, and B08 separately to your machine as follows:</p><pre>aws s3 cp --no-sign-request s3://sentinel-cogs/sentinel-s2-l2a-cogs/54/S/UE/2019/5/S2A_54SUE_20190508_0_L2A/B04.tif B04.tif</pre><h3><strong>Data Pre-Processing</strong></h3><p><strong><em>Normalization Sentinel-2 data</em></strong></p><p>Data normalization is a fundamental pre-processing step. In most machine learning frameworks, parameters are often defaulted to be suited for centered reduced distributions and values within the [1; +1] range. For the current dataset, we normalized all remote sensing images channels with their<br>maximum value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UPXH9CNh9YoWgjz-AmmgDA.png" /></figure><p><strong><em>Sampling</em></strong></p><p>There are two ground truth images as follows:</p><ul><li>terrain_truth_epsg32654_A.tif</li><li>terrain_truth_epsg32654_B.tif</li></ul><p>Each includes 6 classes (0: &quot;Water&quot;, 1: &quot;Golf course&quot;, 2: &quot;Park and grassland&quot;, 3: &quot;Buildings&quot;, 4: &quot;Forest&quot;, 5: &quot;Farm&quot;). The first one was used for training and the second one was for validation and test. At first, it is required to generate random sample points inside each class, for this purpose, I used the <em>sample </em>function in the <a href="https://stevenpawley.github.io/Pyspatialml/"><em>Pyspatialml </em></a>package. 500 patches with 16x16 Px size were generated for each class, so in total there were 3000 sample patches that each covered 160x160 m in the ground.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*IHx3UfF-CM89NLmZl3Zy3g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*fkDCNrMMYqDC5OER_kYQVA.png" /></figure><p>The same approach was conducted for the second ground truth image, however, later on, 10% of the data was used for test and the rest for validation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*v-eqlQAkQDKfDECMvFeTsw.png" /></figure><h3>Data Loader</h3><p>The data loader design relies on two packages including Rasterio, and GeoPandas. This way, it is possible to extract the data exactly from the image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ONzSM_6DNa8zi4kfb3PPsg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*2mlP09UxalaOaWfovIZ26g.png" /><figcaption>The result of the data loader was printed</figcaption></figure><h3><strong>Design Model</strong></h3><p>One simple CNN and one FCN was designed as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sKNFEsCBwdsroPvWNFU4ZA.png" /><figcaption>Simple CNN model</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wu_eYiThna8u1aPQgu6UmA.png" /><figcaption>FCN architecture for patch-wise classification</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGQDFR-mvpA1JVfN6Otmmg.png" /><figcaption>FCN architecture in Pytorch</figcaption></figure><h3>Training &amp; Validation</h3><p>After designing the model architecture, I used the <a href="https://www.pytorchlightning.ai/">Pytorch Lightening</a> framework to train and validation. Augmentation was considered during training to create a variety. Cross Entropy was used as a Loss function and monitoring overall accuracy for early stopping and, the model checkpoint was considered.</p><p>Since the number of samples is only 3000, therefore I decided to implement modeling in different Batch sizes to see which one model can learn better. In the end, three versions of the models were trained based on model architecture and Baych size as follows:</p><ul><li>Simple CNN, Batch size 8</li><li>FCN, Batch size 8</li><li>FCN, Batch size 2</li></ul><h3>Result</h3><p>The result shows that as the Batch size is smaller it can reach better accuracy in small Epoch numbers. It is because weights are changing regularly so it can get better values. On the other hand, FCN had better results compared to simple CNN which was expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBdMZb8i5sLp6BrC0bGteQ.png" /><figcaption>Validation accuracy for 3 models (V1: Orange, V2:Blue, V3: Red )</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V5zJVDCKJ8dX7cjiL64sXA.png" /><figcaption>Validation loss for 3 models (V1: Orange, V2:Blue, V3: Red )</figcaption></figure><p>The statistical metrics based on test data show 75% overall accuracy, 75%, and 74% weighted average for recall and precision, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*eyXNQCo8zz_KS966-hQrvQ.png" /><figcaption>Statistical metrics for the best model</figcaption></figure><p>Except for Park and grassland class, the rest of the classes have reasonable accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*k7TY5-cTPhXvJejAmaQNFQ.png" /><figcaption>Confusion Metrics for the best model</figcaption></figure><h3>Inference</h3><p>I implement the inference on the small AOI for visualization purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*LbLapjYsmPXhs9aNL9sTbA.gif" /><figcaption>The result of Inference</figcaption></figure><p><strong><em>Code: </em></strong><a href="https://github.com/behzad89/Patch_wise_Land_Cover_Classification">https://github.com/behzad89/Patch_wise_Land_Cover_Classification</a></p><p><strong>References</strong></p><p>Waśniewski, Adam, Agata Hościło, and Milena Chmielewska. “Can a Hierarchical Classification of Sentinel-2 Data Improve Land Cover Mapping?.” <em>Remote Sensing</em> 14.4 (2022): 989.</p><p><a href="https://pytorch.org/">https://pytorch.org/</a></p><p><a href="https://www.pytorchlightning.ai/">https://www.pytorchlightning.ai</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4d10c4fd9eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wind Turbines Classification using Satellite Images]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://bvsh.medium.com/wind-turbines-classification-using-satellite-images-944b62356c06?source=rss-92edc205fa------2"><img src="https://cdn-images-1.medium.com/max/684/1*6hNFdSNnIZBvFIoI70SKtw.png" width="684"></a></p><p class="medium-feed-snippet">wind energy today offers one of the most economical sources of electricity in most countries across the world and is a major factor in&#x2026;</p><p class="medium-feed-link"><a href="https://bvsh.medium.com/wind-turbines-classification-using-satellite-images-944b62356c06?source=rss-92edc205fa------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://bvsh.medium.com/wind-turbines-classification-using-satellite-images-944b62356c06?source=rss-92edc205fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/944b62356c06</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[pytorch-lightning]]></category>
            <category><![CDATA[geospatial-intelligence]]></category>
            <dc:creator><![CDATA[Behzad Valipour Shokouhi]]></dc:creator>
            <pubDate>Wed, 03 Aug 2022 13:28:01 GMT</pubDate>
            <atom:updated>2022-09-04T15:44:38.292Z</atom:updated>
        </item>
    </channel>
</rss>