<?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 Ayomide Oraegbu on Medium]]></title>
        <description><![CDATA[Stories by Ayomide Oraegbu on Medium]]></description>
        <link>https://medium.com/@zionayomide?source=rss-21d34668ade4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*55BFITlbwfJbzBgQ8J5R4A.jpeg</url>
            <title>Stories by Ayomide Oraegbu on Medium</title>
            <link>https://medium.com/@zionayomide?source=rss-21d34668ade4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 20:09:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zionayomide/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[Advanced Deep Learning Techniques for Predicting Maize Crop Yield using Sentinel-2 Satellite…]]></title>
            <link>https://medium.com/codex/advanced-deep-learning-techniques-for-predicting-maize-crop-yield-using-sentinel-2-satellite-1b63ac8b0789?source=rss-21d34668ade4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b63ac8b0789</guid>
            <dc:creator><![CDATA[Ayomide Oraegbu]]></dc:creator>
            <pubDate>Sat, 06 Mar 2021 21:36:20 GMT</pubDate>
            <atom:updated>2021-04-07T00:59:42.932Z</atom:updated>
            <content:encoded><![CDATA[<h3>Advanced Machine Learning Techniques for Predicting Maize Crop Yield using Sentinel-2 Satellite Imagery</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kvdQ8lz5hgm8fO9iAz70uQ.jpeg" /></figure><h3><strong>Introduction</strong></h3><p>Prediction of within-field crop variability can support farmers to make the right decisions in different situations. The current advances in <strong>remote sensing</strong> and the <strong>availability of high resolution, high frequency, and free Sentinel-2 imageries</strong> improve the implementation of Precision Agriculture for a broader range of farmers.</p><p>The aim of this story is to create a model capable of estimating the crop-cut maize yield for fields in <strong>East Africa</strong>. Given a time series<strong> of </strong><a href="https://scihub.copernicus.eu/dhus/#/home"><strong>Sentinel 2 imagery</strong></a> and <strong>climate variables</strong>. The model would be able to assess <strong>corn (<em>Zea mays</em>) grain yield</strong> <strong>spatial variability in tons per acre. <br></strong>The Data used for this story was gotten from<strong> </strong><a href="https://zindi.africa/competitions/cgiar-crop-yield-prediction-challenge/data"><strong>Zindi</strong></a><strong>.</strong></p><h4><strong>This story investigates the use of vegetation indices (VIs) and advanced deep learning techniques in predicting maize crop yield.</strong></h4><h3><strong>Why Sentinel?</strong></h3><p>Sentinel-2 data creates new opportunities for regional, as well as global agricultural monitoring, by making it possible to view Earth in 12 spectral bands in 10–20 m spatial resolution, with global coverage and a 5-day revisit frequency and is compatible with the current and historical Landsat missions. Monitoring of soil properties and crop conditions, along with tillage activity mapping, helps researchers and farmers to assess land use, predict harvests, monitor seasonal changes, and assist in implementing policies for sustainable development. With a growing number of available satellite data sources, many of them free to use, the potential is immense <strong>(</strong><a href="https://www.sentinel-hub.com/explore/industries-and-showcases/agriculture/"><strong><em>Sentinel-hub, 2021</em></strong></a><strong><em>)</em>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jblJ2kCS9Nkt8WmZ1GO5jw.png" /></figure><h3><strong>Important Sentinel-2 Bands for Maize Crop Yield Prediction</strong></h3><p>After each model was trained and used for prediction, the feature importance of all features used for prediction was calculated. The significant sentinel-2 bands which contributed more to the accuracy of the model were discovered to be majorly Red-edge bands, especially the <strong>Red-edge 3 (Band 7)</strong>. Also, the <strong>Short wave Infrared(Band 10)</strong> also known as<strong> Cirrus</strong> and the <strong>Near infrared narrow (Band 8A) </strong>were of benefit to the prediction model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*-883q9A18AVWB2OnwbDHyA.jpeg" /></figure><h3><strong><em>Significant Vegetation Indices for Maize Crop Yield Prediction</em></strong></h3><p>I used various spectral Vegetation Indices (VI) which I discovered in the <a href="https://custom-scripts.sentinel-hub.com/custom-scripts/sentinel-2/indexdb/"><strong>Sentinel hub repository of custom scripts</strong></a>. However, out of 40 different VI, I discovered 25 were only significant with regards to predicting maize crop yield.</p><p><strong>Table 1</strong> below presents candidate VI used in estimating crop yield. The significance of these vegetation indices was identified in recent studies focusing on satellite-based estimation of crop production and yield. However, my review indicated that vegetation indices with a strong relationship to crop yield often included red-edge wavelengths or were designed to be sensitive to canopy chlorophyll content. Noticing this, I decided to use a <a href="https://github.com/Az-Ks/CGIAR_Solution_Code_To_Get_4th_Place/blob/main/CGIAR_SOLUTION_4th_Place.ipynb"><strong>function in a script</strong></a><strong> </strong>written by the<strong> </strong>Winners of the Zindi CGIAR Crop Yield Prediction Challenge<strong>.</strong> The function derives significant features from the three red-edge bands of Sentinel-2 imagery. <strong>(Note: The function is present within the code below.)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*RYUCoR3XM4yD5gNGVS7ltA.png" /><figcaption>Table 1: Significant Vegetation Indices in Predicting Maize Crop Yield</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s2YVZNi8Ft5c5S4VnmF0vQ.jpeg" /></figure><h3><strong>Importance of Climate Variables</strong></h3><p>In the dataset provided, climate variables were gotten from <a href="http://www.climatologylab.org/terraclimate.html"><strong>Terraclimate</strong></a>. <strong>TerraClimate </strong>is a dataset of monthly climate and climatic water balance for global terrestrial surfaces from 1958–2019. The <strong>TerraClimate </strong>data have monthly temporal resolution and a ~4-km (1/24th degree) spatial resolution.</p><p>The TerraClimate Variables are <strong>Maximum temperature, minimum temperature, vapor pressure, precipitation accumulation, downward surface shortwave radiation, wind-speed, Reference evapotranspiration (ASCE Penman-Montieth), Runoff, Actual Evapotranspiration, Climate Water Deficit, Soil Moisture, Snow Water Equivalent, Palmer Drought Severity Index, Vapor pressure deficit.</strong></p><p>The TerraClimate Variables used for prediction consist of the listed variables above, except the <strong>SWE(Snow Water Equivalent).</strong></p><p><strong>Note: </strong>Of all Features used for prediction, climate variables proved to be of more importance. <strong>How? …The first seven(7) important features contributing to the accuracy of the model were climate variables.</strong></p><h4><strong><em>This was achieved using the </em></strong>Feature Importance built-in the5 Xgboost algorithm<strong><em>.</em></strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*bgoykxrz890HgcJFmW5w_g.png" /><figcaption>Table 2: First Seven (7) important Climate Variables</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ldvh5hjzHbcX75LCPAEzg.jpeg" /></figure><h3><strong>Important Soil-related Features</strong></h3><p>Soil data for the competition was gotten from the<a href="https://www.isric.org/explore/soilgrids/"> <strong>ISRIC World Soil Information</strong></a>. Each asset of a soil grid data is an image with 6 bands, a band for each depth (0–5cm, 5–15cm,15–30cm,30–60cm,60–100cm,100–200cm). However, the soil data for the competition had only bands of 5 to 15cm depth.</p><p>The first four important soil-related features contributing to the accuracy of the crop yield model were <strong>Cation exchange capacity at pH7 (cec_mean or cec), Silt(silt_mean), Total Nitrogen(nitrogen_mean), and the Organic carbon density (ocd_mean).</strong></p><h3>Modeling</h3><h4><strong>Import Libraries</strong></h4><pre>import os<br>import random<br>import sklearn<br>import numpy as np<br>import pandas as pd<br>import seaborn as sns<br>import lightgbm as lgb<br>from lightgbm import LGBMRegressor<br>from matplotlib import pyplot as plt<br>from sklearn.model_selection import train_test_split<br>from sklearn.metrics import mean_squared_log_error<br>pd.set_option(‘display.max_columns’, None)<br>import math as Math<br>from sklearn.metrics import log_loss<br>from sklearn.model_selection import KFold<br>RANDOM_STATE = 42</pre><h4><strong>Function to Reduce memory usage</strong></h4><p><em>Note: The function reduces memory usage by converting the data type of each column to the barest minimum — for example, float 64 to float 16. This is because a higher data type consumes high memory compared to lower data types such as float16.</em></p><pre>def reduce_mem_usage(df, verbose=True):<br>    numerics = [&#39;int16&#39;, &#39;int32&#39;, &#39;int64&#39;, &#39;float16&#39;, &#39;float32&#39;, &#39;float64&#39;]<br>    start_mem = df.memory_usage().sum() / 1024**2    <br>    for col in df.columns:<br>        col_type = df[col].dtypes<br>        if col_type in numerics:<br>            c_min = df[col].min()<br>            c_max = df[col].max()<br>            if str(col_type)[:3] == &#39;int&#39;:<br>                if c_min &gt; np.iinfo(np.int8).min and c_max &lt; np.iinfo(np.int8).max:<br>                    df[col] = df[col].astype(np.int8)<br>                elif c_min &gt; np.iinfo(np.int16).min and c_max &lt; np.iinfo(np.int16).max:<br>                    df[col] = df[col].astype(np.int16)<br>                elif c_min &gt; np.iinfo(np.int32).min and c_max &lt; np.iinfo(np.int32).max:<br>                    df[col] = df[col].astype(np.int32)<br>                elif c_min &gt; np.iinfo(np.int64).min and c_max &lt; np.iinfo(np.int64).max:<br>                    df[col] = df[col].astype(np.int64)  <br>            else:<br>                if c_min &gt; np.finfo(np.float16).min and c_max &lt; np.finfo(np.float16).max:<br>                    df[col] = df[col].astype(np.float16)<br>                elif c_min &gt; np.finfo(np.float32).min and c_max &lt; np.finfo(np.float32).max:<br>                    df[col] = df[col].astype(np.float32)<br>                else:<br>                    df[col] = df[col].astype(np.float64)    <br>    end_mem = df.memory_usage().sum() / 1024**2<br>    if verbose: print(&#39;Mem. usage decreased to {:5.2f} Mb ({:.1f}% reduction)&#39;.format(end_mem, 100 * (start_mem - end_mem) / start_mem))<br>    return df</pre><h4><strong>Load Datasets</strong></h4><pre>#Path to Data Folder<br>link = &#39;C:/Crop Yield Prediction/&#39;</pre><pre>#Training dataframe<br>train_df = pd.read_csv(link + &#39;Train.csv&#39;)</pre><pre>#years for the test fields<br>test_field_ids_years_df = pd.read_csv(link + &#39;test_field_ids_with_year.csv&#39;) </pre><pre>#additional soil and climate information<br>add_info_df = pd.read_csv(link + &#39;fields_w_additional_info.csv&#39;) </pre><pre>#Sample Submission File<br>ss = pd.read_csv(link + &#39;SampleSubmission.csv&#39;)</pre><h4><strong>View A Satellite Imagery</strong></h4><pre>train_folder =  &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;</pre><pre>fid = train_df[&#39;Field_ID&#39;].sample().values[0]</pre><pre>fn =  train_folder + fid + &#39;.npy&#39; <br>              <br>print(f&#39;Loading {fn} as an array&#39;)</pre><pre>#Loading the data with numpy<br>arr = np.load(fn)</pre><pre>#360 bands, images 40 or 41px a side<br>print(&#39;Array shape:&#39;, arr.shape)</pre><pre>#Combine three bands for viewing<br>rgb_jan = np.stack([arr[4], arr[3], arr[2]], axis=-1)</pre><pre>#Scale band values to (0, 1) for easy image display<br>rgb_jan = rgb_jan / np.max(rgb_jan)</pre><pre>#View with matplotlib<br>plt.imshow(rgb_jan)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*KgnmrXDh9CikONtPh8i-lQ.png" /></figure><h4><strong>View false-color images for 12 months</strong></h4><pre>fig, axs = plt.subplots(3, 4, figsize=(12, 8), facecolor=&#39;w&#39;, edgecolor=&#39;k&#39;)<br>fig.subplots_adjust(hspace = .5, wspace=.001)<br>axs = axs.ravel()<br>for i  in range(12):<br>  #False colour (band 8, 4 and 3)<br>  rgb = np.stack([arr[i*30 +8], arr[i*30 + 4], arr[i*30 + 3]], axis=-1)<br>  #Scaling consistently<br>  rgb = rgb / 4000 <br>  axs[i].imshow(rgb.clip(0, 1))<br>  axs[i].set_title(str(i+1))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*stnxYMBLWaRZ625IgrJdMQ.png" /></figure><h4><strong>View the image band names</strong></h4><pre>band_names = [l.strip() for l in open(link + &#39;bandnames.txt&#39;, &#39;r&#39;).readlines()]<br>print(band_names)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfk-xULtBq53RB-hIG8aTA.png" /></figure><h3><strong>Feature Engineering Tips</strong></h3><pre><strong>1. Specify Bands of Interest and Average Center Points<br>2. Average Climate Values Over 4 Years By Each Month in Maize Season in kenya for some Climate Variables<br>3. Generate Statistics for vegetation indices covering a whole sentinel-2 imagery<br>4. Use of Significant Vegetation Indices<br>5. Generate Statistics from Vegetation Indices (Max, Min, Median)<br>6. Generate Median Features From Red Bands <br></strong></pre><p><strong><em>Note</em></strong><em>: The Python Functions below are Feature-Engineering functions.</em></p><h4><strong>Specify Bands of Interest and Average Center Points</strong></h4><pre># Center Point 20<br>def process_im_20(fid, folder=&#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;):<br>    <br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B12&#39;, &#39;S2_B11&#39;, &#39;S2_B10&#39;, &#39;S2_B9&#39;, &#39;S2_B8&#39;, &#39;S2_B8A&#39;, &#39;S2_B7&#39;, &#39;S2_B6&#39;, &#39;S2_B5&#39;,<br>                       &#39;S2_B4&#39;, &#39;S2_B3&#39;, &#39;S2_B2&#39;, &#39;S2_B1&#39;, &#39;CLIM_pr&#39;, &#39;CLIM_soil&#39;, &#39;CLIM_aet&#39;, &#39;CLIM_def&#39;, <br>                       &#39;CLIM_pdsi&#39;, &#39;CLIM_pet&#39;, &#39;CLIM_ro&#39;, &#39;CLIM_srad&#39;, &#39;CLIM_swe&#39;, &#39;CLIM_tmmn&#39;, &#39;CLIM_tmmx&#39;, <br>                       &#39;CLIM_vap&#39;, &#39;CLIM_vpd&#39;, &#39;CLIM_vs&#39;]<br>  values = {}<br>  for month in range(2, 9):<br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) # Index of these bands<br>    vs = arr[idxs, 20, 20] # Sample the im at the center point<br>    for bn, v in zip(bns, vs[0]):<br>      values[bn] = v<br>  return values</pre><pre># Center point_30_10<br>def process_im_30_10(fid, folder=&#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;):<br>    <br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B12&#39;, &#39;S2_B11&#39;, &#39;S2_B10&#39;, &#39;S2_B9&#39;, &#39;S2_B8&#39;, &#39;S2_B8A&#39;, &#39;S2_B7&#39;, &#39;S2_B6&#39;, &#39;S2_B5&#39;,<br>                       &#39;S2_B4&#39;, &#39;S2_B3&#39;, &#39;S2_B2&#39;, &#39;S2_B1&#39;, &#39;CLIM_pr&#39;, &#39;CLIM_soil&#39;, &#39;CLIM_aet&#39;, &#39;CLIM_def&#39;, <br>                       &#39;CLIM_pdsi&#39;, &#39;CLIM_pet&#39;, &#39;CLIM_ro&#39;, &#39;CLIM_srad&#39;, &#39;CLIM_swe&#39;, &#39;CLIM_tmmn&#39;, &#39;CLIM_tmmx&#39;, <br>                       &#39;CLIM_vap&#39;, &#39;CLIM_vpd&#39;, &#39;CLIM_vs&#39;]<br>  values = {}<br>  for month in range(2, 9):<br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] # Bands of interest for this month <br>    idxs = np.where(np.isin(band_names, bns)) # Index of these bands<br>    vs = arr[idxs, 30, 10] # Sample the im at the center point<br>    for bn, v in zip(bns, vs[0]):<br>      values[bn] = v<br>  return values</pre><pre># Center point_10_30<br>def process_im_10_30(fid, folder=&#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;):<br>    <br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B12&#39;, &#39;S2_B11&#39;, &#39;S2_B10&#39;, &#39;S2_B9&#39;, &#39;S2_B8&#39;, &#39;S2_B8A&#39;, &#39;S2_B7&#39;, &#39;S2_B6&#39;, &#39;S2_B5&#39;,<br>                       &#39;S2_B4&#39;, &#39;S2_B3&#39;, &#39;S2_B2&#39;, &#39;S2_B1&#39;, &#39;CLIM_pr&#39;, &#39;CLIM_soil&#39;, &#39;CLIM_aet&#39;, &#39;CLIM_def&#39;, <br>                       &#39;CLIM_pdsi&#39;, &#39;CLIM_pet&#39;, &#39;CLIM_ro&#39;, &#39;CLIM_srad&#39;, &#39;CLIM_swe&#39;, &#39;CLIM_tmmn&#39;, &#39;CLIM_tmmx&#39;, <br>                       &#39;CLIM_vap&#39;, &#39;CLIM_vpd&#39;, &#39;CLIM_vs&#39;]<br>  values = {}<br>  for month in range(2, 9):<br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] # Bands of interest for this month <br>    idxs = np.where(np.isin(band_names, bns)) # Index of these bands<br>    vs = arr[idxs, 10, 30] # Sample the im at the center point<br>    for bn, v in zip(bns, vs[0]):<br>      values[bn] = v<br>  return values</pre><h4><strong>Average Climate Varaibles Over 4 Years for each Maize Season Month in Kenya</strong></h4><pre>def average_variables(add_info_df, special_cols) : <br> <br> additional_ = pd.DataFrame()<br> climat = [‘pr’,’tmmn’,’tmmx’]</pre><pre>for month in range(2, 9): <br> for climat_ in climat :<br> features_ = []<br> for year in [2016,2017,2018,2019] :<br> features_.append(‘climate_’+str(year) + ‘_’ + str(month) + f’_{climat_}’ )<br> additional_[f’Average_for_4_Years_Variables{month-1}_{climat_}’] = add_info_df[features_].mean(axis=1)<br> <br> # Soil Columns<br> for col in special_cols : <br> additional_[col] = add_info_df[col]<br> return additional_</pre><h4><strong>Statistics for vegetation indices covering a whole sentinel-2 imagery</strong></h4><pre># SAVI<br>def get_SAVI_data(fid, folder=None) :<br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B4&#39;, &#39;S2_B8&#39;]<br>  L = 0.725<br>  values = {}<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    B08 = arr[idxs][1].astype(int)<br>    B04 = arr[idxs][0].astype(int)<br>    <br>    SAVI_arr = (B08 - B04) / (B08 + B04 + L) * (1.0 + L)<br>    values[&#39;SAVI_Max_&#39;+str(month)] = SAVI_arr.max()<br>  <br>  return values</pre><pre># EVI<br>def get_EVI_data(fid, folder=None) :<br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B4&#39;, &#39;S2_B8&#39;,&#39;S2_B2&#39;]<br>  values = {}<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    B08 = arr[idxs][1].astype(int)<br>    B04 = arr[idxs][0].astype(int)<br>    B02 = arr[idxs][2].astype(int)<br>    <br>    EVI_arr = 2.5 * (B08 - B04) / ((B08 + 6.0 * B04 - 7.5 * B02) + 1.0)<br>    values[&#39;EVI_Median_&#39;+str(month)] = np.median(EVI_arr)<br>  <br>  for month in range(12):<br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    B08 = arr[idxs][1].astype(int)<br>    B04 = arr[idxs][0].astype(int)<br>    B02 = arr[idxs][2].astype(int)<br>    <br>    EVI_arr = 2.5 * (B08 - B04) / ((B08 + 6.0 * B04 - 7.5 * B02) + 1.0)<br>    values[&#39;EVI_Max_&#39;+str(month)] = EVI_arr.max()<br>  <br>  return values</pre><pre># NDVI<br>def get_NDVI_data(fid, folder=None) :<br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B4&#39;, &#39;S2_B8&#39;]<br>  values = {}<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDVI_Median_&#39;+str(month)] = np.median(NDVI_arr)<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDVI_Min_&#39;+str(month)] = NDVI_arr.min()<br>    values[&#39;NDVI_Max_&#39;+str(month)] = NDVI_arr.max()<br> <br>  return values</pre><pre># NDWI<br>def get_NDWI_data(fid, folder=None) :<br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B8&#39;, &#39;S2_B3&#39;]<br>  values = {}<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDWI_Median_&#39;+str(month)] = np.median(NDVI_arr)<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDWI_Min_&#39;+str(month)] = NDVI_arr.min()<br>    values[&#39;NDWI_Max_&#39;+str(month)] = NDVI_arr.max()<br> <br>  return values</pre><pre># NDMI<br>def get_NDMI_data(fid, folder=None) :<br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  bands_of_interest = [&#39;S2_B11&#39;, &#39;S2_B8&#39;]<br>  values = {}<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDMI_Median_&#39;+str(month)] = np.median(NDVI_arr)<br>  <br>  for month in range(12): <br>    bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>    idxs = np.where(np.isin(band_names, bns)) <br>    <br>    NDVI_arr = (arr[idxs][1].astype(int)-arr[idxs][0].astype(int)) / (arr[idxs][1].astype(int)+arr[idxs][0].astype(int))<br>    values[&#39;NDMI_Min_&#39;+str(month)] = NDVI_arr.min()<br>    values[&#39;NDMI_Max_&#39;+str(month)] = NDVI_arr.max()<br> <br>  return values</pre><h4><strong>Vegetation Indices</strong></h4><pre>def vegetation_indices(train_sampled):<br>    <br>    # NDVI = NIR-Red/NIR+Red = Band8-Band4/Band8+Band4<br>    for i in range(2, 10):<br>        train_sampled[&#39;NDVI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B8&#39;] - train_sampled[str(i) + &#39;_S2_B4&#39;])/(train_sampled[str(i) + &#39;_S2_B8&#39;] + train_sampled[str(i) + &#39;_S2_B4&#39;])</pre><pre>    # SAVI = ((NIR - RED)/ (NIR + RED + L))*(1 + L)<br>    for i in range(2, 10):<br>        train_sampled[&#39;SAVI_Month_&#39; + str(i)] = ((train_sampled[str(i) + &#39;_S2_B8&#39;]<br>                                                  - train_sampled[str(i) + &#39;_S2_B4&#39;]) / (train_sampled[str(i) + &#39;_S2_B8&#39;]<br>                                                 + train_sampled[str(i) + &#39;_S2_B4&#39;] + 1)) * (1 + 1)</pre><pre>    # ARVI = (NIR – (2 * Red) + Blue) / (NIR + (2 * Red) + Blue)<br>    for i in range(2, 10):<br>        train_sampled[&#39;ARVI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B8&#39;]<br>                                                 -(2*train_sampled[str(i) + &#39;_S2_B4&#39;]) <br>                                                 + train_sampled[str(i) + &#39;_S2_B2&#39;]) / (train_sampled[str(i) + &#39;_S2_B8&#39;]<br>                                                 +(2*train_sampled[str(i) + &#39;_S2_B4&#39;]) <br>                                                 + train_sampled[str(i) + &#39;_S2_B2&#39;])</pre><pre>    # GCI = (NIR) / (Green) – 1<br>    for i in range(2, 10):<br>        train_sampled[&#39;GCI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B8&#39;])/(train_sampled[str(i) + &#39;_S2_B3&#39;])-1</pre><pre>    # NDWI = (NIR-SWIR)/(NIR+SWIR)<br>    for i in range(2, 10):<br>        train_sampled[&#39;NDWI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B3&#39;]<br>                                                    - train_sampled[str(i) + &#39;_S2_B8&#39;])/(train_sampled[str(i) + &#39;_S2_B3&#39;]<br>                                                                                         + train_sampled[str(i) + &#39;_S2_B8&#39;])</pre><pre>    # RVI = (NIR/RED)<br>    for i in range(2, 10):<br>         train_sampled[&#39;RVI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B8&#39;]) / (train_sampled[str(i) + &#39;_S2_B4&#39;])</pre><pre>    # OSAVI ((1.0 + 0.16) * (B08 - B04) / (B08 + B04 + 0.16))<br>    for i in range(2, 10):<br>         train_sampled[&#39;OSAVI_Month_&#39; + str(i)] = ((1 + 0.16) * (train_sampled[str(i) + &#39;_S2_B8&#39;] - train_sampled[str(i) + &#39;_S2_B4&#39;])/<br>                                                  (train_sampled[str(i) + &#39;_S2_B8&#39;] + train_sampled[str(i) + &#39;_S2_B4&#39;] + 0.16))</pre><pre>    # SLAVI = B08 / (B04 + B12)<br>    for i in range(2, 10):<br>         train_sampled[&#39;SLAVI_Month_&#39; + str(i)] =  ((train_sampled[str(i) + &#39;_S2_B8&#39;])/ (train_sampled[str(i) + &#39;_S2_B4&#39;] +  train_sampled[str(i) + &#39;_S2_B12&#39;]))</pre><pre>    # NPCRI (b4-b2)/(b4 + b2)<br>    for i in range(2, 10):<br>         train_sampled[&#39;NPCRI_Month_&#39; + str(i)] =  ((train_sampled[str(i) + &#39;_S2_B4&#39;] - train_sampled[str(i) + &#39;_S2_B2&#39;])/(train_sampled[str(i) + &#39;_S2_B4&#39;] + train_sampled[str(i) + &#39;_S2_B2&#39;]))</pre><pre>    # Soil Composition Index = (B11 - B08) / (B11 + B08)<br>    for i in range(2, 10):<br>         train_sampled[&#39;SCI_Month_&#39; + str(i)] =  ((train_sampled[str(i) + &#39;_S2_B11&#39;] - train_sampled[str(i) + &#39;_S2_B8&#39;]) / (train_sampled[str(i) + &#39;_S2_B11&#39;] + train_sampled[str(i) + &#39;_S2_B8&#39;]))</pre><pre># SARVI (1.0 + L) * (B08 - (Rr - y * (RB - Rr))) / (B08 + -(Rr - y * (RB - Rr)) + L)     # y = 0.735; Rr = 0.740; L = 0.487; RB = 0.560;<br>    for i in range(2, 10):<br>         train_sampled[&#39;SARVI_Month_&#39; + str(i)] =  (1.0 + 0.487) * (train_sampled[str(i) + &#39;_S2_B8&#39;]- (0.740 - 0.735 * (0.560 - 0.740)))/  (train_sampled[str(i) + &#39;_S2_B8&#39;] + - (0.740 - 0.735 * (0.560 - 0.740)) + 0.487)</pre><pre>    # ndmi = (b8 - b11) / (b8 + b11)<br>    for i in range(2, 10):<br>        train_sampled[&#39;NDMI_Month_&#39; + str(i)] = (train_sampled[str(i) + &#39;_S2_B8&#39;] - train_sampled[str(i) + &#39;_S2_B11&#39;])/ (train_sampled[str(i) + &#39;_S2_B8&#39;] + train_sampled[str(i) + &#39;_S2_B11&#39;])<br>        <br>    # EVI_2 = 2.5 (NIR - RED)/(NIR + C2 * Blue + l)<br>    for i in range(2, 9):<br>        train_sampled[&#39;EVI_2_Month_&#39; + str(i)] = 2.5* ((train_sampled[str(i) + &#39;_S2_B8&#39;] <br>                                                      - train_sampled[str(i) + &#39;_S2_B4&#39;])/((train_sampled[str(i) + &#39;_S2_B8&#39;]) + (2.4 * train_sampled[str(i) + &#39;_S2_B4&#39;])+1))<br>        <br>    return train_sampled</pre><h4><strong>Statistics from Vegetation Indices</strong></h4><pre>def vegetation_index_statistics(train_sampled, spectral_indices = None):<br>    for i in spectral_indices:<br>        train_sampled[f&#39;{i}_min&#39;] = train_sampled.filter(regex = f&#39;^{i}&#39;).min(axis = 1)<br>        train_sampled[f&#39;{i}_max&#39;] = train_sampled.filter(regex = f&#39;^{i}&#39;).max(axis = 1)<br>        train_sampled[f&#39;{i}_avg&#39;] = train_sampled.filter(regex = f&#39;^{i}&#39;).mean(axis = 1)<br>        train_sampled[f&#39;{i}_median&#39;] = train_sampled.filter(regex = f&#39;^{i}&#39;).median(axis = 1)<br>    return train_sampled</pre><h4><strong>Median Features from Red Bands</strong></h4><pre>def get_features_from_Bands(fid, folder=&#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train&#39;, bands=None, Band_Names=None) :<br>    <br>  fn = f&#39;{folder}/{fid}.npy&#39;<br>  arr = np.load(fn)<br>  <br>  final_values = {}<br>  for bands_idx in range(len(bands)) : <br>    bands_of_interest = bands[bands_idx]<br>    Name = Band_Names[bands_idx]<br>    values = {}<br>    for month in range(12):<br>      bns = [str(month) + &#39;_&#39; + b for b in bands_of_interest] <br>      idxs = np.where(np.isin(band_names, bns)) <br>      Relation_arr = arr[idxs][1].astype(int) / arr[idxs][0].astype(int) <br>      <br>      values[f&#39;BANDS_FEATURES_Median_{Name}_&#39;+str(month)] = np.median(Relation_arr)<br>    <br>    final_values.update(values)<br>  return final_values</pre><h3>Processing &amp; Preparation — Data &amp; Feature</h3><pre>1 Apply the<strong> Specify</strong> <strong>Bands of Interest and Average Center Points </strong>functions<br>2 Apply the <strong>Reduce Memory Usage </strong>function<br>3 Apply the <strong>Average Climate Values Over 4 Years </strong>function<br>4 Apply the<strong> Statistics for indices covering a whole sentinel-2 imagery </strong>function<br>5 Apply the <strong>Vegetation indices </strong>function<br>6 Apply the <strong>Statistic from Vegetation Indices </strong>function<br>7 Apply the <strong>Median Features from Red Band</strong> function</pre><h4>Apply<strong> Specify</strong> <strong>Bands of Interest and Average Center Points </strong>functions</h4><pre># Specify Bands of Interest and Center Point<br>train_sampled_10 = pd.DataFrame([process_im_10_30(fid) for fid in train_df[&#39;Field_ID&#39;].values])<br>train_sampled_20 = pd.DataFrame([process_im_20(fid) for fid in train_df[&#39;Field_ID&#39;].values])<br>train_sampled_30 = pd.DataFrame([process_im_30_10(fid) for fid in train_df[&#39;Field_ID&#39;].values])</pre><pre># divide the three dataframes by each other<br>train_sampled = 0<br>train_sampled = (train_sampled_10 + train_sampled_20 + train_sampled_30)/ 3</pre><h4>Apply the <strong>Reduce Memory Usage </strong>function</h4><pre>train_sampled = reduce_mem_usage(train_sampled)</pre><h4>Apply the <strong>Average Climate Values Over 4 Years</strong> function</h4><pre># Average some specific Climate Variables for Additional Data<br>special_cols = add_info_df.columns[:12] # define columns needed for averaging<br>averaging_df = average_variables(add_info_df, special_cols)</pre><pre>train_sampled[&#39;Yield&#39;] = train_df[&#39;Yield&#39;].values # Add in the field ID and yield<br>train_sampled[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values<br>train_sampled = pd.merge(train_sampled,averaging_df,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge together with train_sampled using &quot;field_id&quot;</pre><h4>Apply the <strong>Statistics for indices covering a whole sentinel-2 imagery</strong> function</h4><pre>train_EVI = pd.DataFrame([get_EVI_data(train_df[&#39;Field_ID&#39;].values[fid_idx], folder = &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;) for fid_idx in tqdm(range(len(train_df[&#39;Field_ID&#39;].values))) ])<br>train_EVI[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values</pre><pre>train_SAVI = pd.DataFrame([get_SAVI_data(train_df[&#39;Field_ID&#39;].values[fid_idx], folder = &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;) for fid_idx in tqdm(range(len(train_df[&#39;Field_ID&#39;].values))) ])<br>train_SAVI[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values</pre><pre>train_NDVI = pd.DataFrame([get_NDVI_data(train_df[&#39;Field_ID&#39;].values[fid_idx], folder = &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;) for fid_idx in tqdm(range(len(train_df[&#39;Field_ID&#39;].values))) ])<br>train_NDVI[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values</pre><pre>train_NDWI = pd.DataFrame([get_NDWI_data(train_df[&#39;Field_ID&#39;].values[fid_idx], folder = &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;) for fid_idx in tqdm(range(len(train_df[&#39;Field_ID&#39;].values))) ])<br>train_NDWI[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values</pre><pre>train_NDMI = pd.DataFrame([get_NDMI_data(train_df[&#39;Field_ID&#39;].values[fid_idx], folder = &#39;C:/Crop Yield Prediction/image_arrays_train/image_arrays_train/&#39;) for fid_idx in tqdm(range(len(train_df[&#39;Field_ID&#39;].values))) ])<br>train_NDMI[&#39;Field_ID&#39;] = train_df[&#39;Field_ID&#39;].values</pre><pre>train_sampled = pd.merge(train_sampled,train_EVI,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge train_f together with train_sampled using &quot;field_id&quot;<br>train_sampled = pd.merge(train_sampled,train_SAVI,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge train_f together with train_sampled using &quot;field_id&quot;<br>train_sampled = pd.merge(train_sampled,train_NDVI,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge train_f together with train_sampled using &quot;field_id&quot;<br>train_sampled = pd.merge(train_sampled,train_NDWI,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge train_f together with train_sampled using &quot;field_id&quot;<br>train_sampled = pd.merge(train_sampled,train_NDMI,on=&#39;Field_ID&#39;,how=&#39;left&#39;) # merge train_f together with train_sampled using &quot;field_id&quot;</pre><h4>Apply the <strong>Vegetation Indices </strong>function</h4><pre>train_sampled = vegetation_indices(train_sampled)</pre><h4>Apply the <strong>Statistics from Vegetation Indices </strong>function</h4><pre>indices = [&#39;NDVI&#39;, &#39;SARVI&#39;, &#39;SAVI&#39;, &#39;GCI&#39;, &#39;SCI&#39;, &#39;ARVI&#39;, &#39;SLAVI&#39;, &#39;RVI&#39;,&#39;OSAVI&#39;, &#39;NPCRI&#39;, &#39;NDMI&#39;, &#39;NDWI&#39;, &#39;EVI_2&#39;]</pre><pre>train_sampled = vegetation_index_statistics(train_sampled, spectral_indices= indices)</pre><h4>Apply the <strong>Median Features</strong> <strong>from Red Bands</strong> function</h4><pre>bands = [ [‘S2_B7’,’S2_B5&#39;] ,[‘S2_B7’,’S2_B6&#39;]] <br>names = [‘FEATURES_B7_B5’,’FEATURES_B7_B6&#39;] <br>train_f = pd.DataFrame([get_features_from_Bands(train_df[‘Field_ID’].values[fid_idx],bands=bands,Band_Names=names)<br> for fid_idx in tqdm(range(len(train_df[‘Field_ID’].values))) ])<br>train_f[‘Field_ID’] = train_df[‘Field_ID’].values # add the field_id to the tain_f dataframe<br>train_sampled = pd.merge(train_sampled,train_f,on=’Field_ID’,how=’left’) # merge train_f together with train_sampled using “field_id”</pre><p><strong>Note: </strong><em>Due to mathematical operations carried out on the data, there might be an occurrence of missing values. To discover if missing values are present within the data — missing values were checked for.</em></p><p><strong>Discover Missing Values — </strong>if missing values exists fill them with the most occurrent value in each column with missing value.</p><pre>def missing_zero_values_table(df):<br>        zero_val = (df == 0.00).astype(int).sum(axis=0)<br>        mis_val = df.isnull().sum()<br>        mis_val_percent = 100 * df.isnull().sum() / len(df)<br>        mz_table = pd.concat([zero_val, mis_val, mis_val_percent], axis=1)<br>        mz_table = mz_table.rename(<br>        columns = {0 : &#39;Zero Values&#39;, 1 : &#39;Missing Values&#39;, 2 : &#39;% of Total Values&#39;})<br>        mz_table[&#39;Total Zero Missing Values&#39;] = mz_table[&#39;Zero Values&#39;] + mz_table[&#39;Missing Values&#39;]<br>        mz_table[&#39;% Total Zero Missing Values&#39;] = 100 * mz_table[&#39;Total Zero Missing Values&#39;] / len(df)<br>        mz_table[&#39;Data Type&#39;] = df.dtypes<br>        mz_table = mz_table[<br>            mz_table.iloc[:,1] != 0].sort_values(<br>        &#39;% of Total Values&#39;, ascending=False).round(1)<br>        print (&quot;Your selected dataframe has &quot; + str(df.shape[1]) + &quot; columns and &quot; + str(df.shape[0]) + &quot; Rows.\n&quot;      <br>            &quot;There are &quot; + str(mz_table.shape[0]) +<br>              &quot; columns that have missing values.&quot;)<br>#         mz_table.to_excel(&#39;D:/sampledata/missing_and_zero_values.xlsx&#39;, freeze_panes=(1,0), index = False)<br>        return mz_table</pre><pre>missing_zero_values_table(train_sampled)</pre><pre># Fill with the most occurent value in each column<br>train_sampled = train_sampled.fillna(train_sampled.mode().iloc[0])</pre><h3><strong><em>Training and Testing — with Cross-Validation</em></strong></h3><h4><strong><em>The XGBoost algorithm was implemented.</em></strong></h4><h3><strong>Why XGBoost?</strong></h3><ol><li><em>Execution Speed.</em></li><li><em>Model Performance</em></li></ol><blockquote>The XGBoost is an algorithm that has recently been dominating applied machine learning and <a href="https://www.kaggle.com/competitions"><strong>Kaggle competitions</strong></a> for <a href="https://www.quora.com/What-is-structured-data-in-the-context-of-machine-learning"><strong>structured or tabular data</strong></a>. XGBoost is an implementation of gradient boosted decision trees designed for speed and performance.</blockquote><ul><li>When discussing execution speed, the XGBoost is fast. Really fast when compared to other implementations of gradient boosting.</li><li>XGBoost dominates structured or tabular datasets on classification and regression predictive modeling problems. The evidence is that it is the go-to algorithm for competition winners on the Kaggle competitive data science platform.</li></ul><pre>from sklearn.model_selection import KFold<br>import xgboost as xgb<br>from sklearn.metrics import mean_squared_error</pre><pre>X, y  = train_sampled.drop([&#39;Field_ID&#39;],axis=1), train_df[&#39;Yield&#39;]</pre><pre>kf = KFold(n_splits =5,shuffle=True,random_state=160)<br>feats = pd.DataFrame({&#39;features&#39;: X.columns}) <br>gbm_predictions = []<br>cv_score_ = 0<br>oof_preds = np.zeros((train_df.shape[0],))</pre><pre>for i,(tr_index,test_index) in enumerate(kf.split(X,y)):<br>    print()<br>    print(f&#39;######### FOLD {i+1} / {kf.n_splits} &#39;)</pre><pre>X_train,y_train = X.iloc[tr_index,:],y[tr_index]<br>    X_test,y_test = X.iloc[test_index,:],y[test_index]<br>    <br>    gbm = xgb.XGBRegressor(eval_metric = &#39;rmse&#39;,n_estimators = 2000,learning_rate = 0.001,seed=162,random_state = 162,colsample_bytree=0.65)</pre><pre>gbm.fit(X_train,y_train,eval_set = [(X_test, y_test)],early_stopping_rounds = 200,verbose=100)</pre><pre>cv_score_ += mean_squared_error(y_test, gbm.predict(X_test), squared=False) / kf.n_splits<br>    oof_preds[test_index] = gbm.predict(X_test)</pre><pre>preds = gbm.predict(test_sampled[X_train.columns])<br>    gbm_predictions.append(preds)</pre><pre>feats[f&#39;Fold {i}&#39;] = gbm.feature_importances_</pre><pre>feats[&#39;Importances&#39;] = feats.mean(axis=1)<br>print( &#39; CV RMSE : &#39;,cv_score_)<br>preds_xgb = np.average(gbm_predictions, axis=0)<br>print(preds_xgb.shape)</pre><blockquote><strong>Note: </strong><em>Other gradient boosted decision trees such as </em><a href="https://lightgbm.readthedocs.io/en/latest/"><strong><em>LightGBM </em></strong></a><em>can be implemented. However, to further improve the accuracy of the crop yield prediction model, more tricks are needed to be done to generate more significant features, and model hyperparameter tuning would also add to the predictive capability of the model.</em></blockquote><p><em>A big thank you to </em><a href="https://zindi.africa/competitions"><strong><em>Zindi </em></strong></a><em>and also to the Winners of the Zindi CGIAR Crop Yield Prediction Challenge.</em></p><p><strong><em>Do well to follow me for more updated stories on the use of Deep learning in GIS.</em></strong></p><blockquote><strong>REFERENCES</strong></blockquote><p><a href="https://www.frontiersin.org/articles/10.3389/fenvs.2020.00085/full">The Potential of Sentinel-2 for Crop Production Estimation in a Smallholder Agroforestry Landscape, Burkina Faso</a></p><p><a href="https://github.com/Az-Ks/CGIAR_Solution_Code_To_Get_4th_Place/blob/main/CGIAR_SOLUTION_4th_Place.ipynb"><strong><em>4th Place solution for the Zindi CGIAR Crop Yield Prediction Challenge</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b63ac8b0789" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/advanced-deep-learning-techniques-for-predicting-maize-crop-yield-using-sentinel-2-satellite-1b63ac8b0789">Advanced Deep Learning Techniques for Predicting Maize Crop Yield using Sentinel-2 Satellite…</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>