<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Predictive machine learning Archives | KAISPE</title>
	<atom:link href="https://www.kaispe.com/tag/predictive-machine-learning/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kaispe.com/tag/predictive-machine-learning/</link>
	<description>Your Digital Transformation Partner</description>
	<lastBuildDate>Sun, 20 Nov 2022 12:18:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>

<image>
	<url>https://www.kaispe.com/wp-content/uploads/2022/01/cropped-k-32x32.png</url>
	<title>Predictive machine learning Archives | KAISPE</title>
	<link>https://www.kaispe.com/tag/predictive-machine-learning/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Agriculture Water Irrigation &#8211; Predictive Analytics Using Microsoft Azure ML</title>
		<link>https://www.kaispe.com/agriculture-water-irrigation-predictive-analytics-using-microsoft-azure-ml/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Thu, 12 Sep 2019 08:55:50 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Agriculture water irrigation]]></category>
		<category><![CDATA[Azure IoT]]></category>
		<category><![CDATA[Azure ML]]></category>
		<category><![CDATA[Predictive machine learning]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=833</guid>

					<description><![CDATA[<p>In today’s world water Irrigation / shortages are a major problem in many developed and developing countries in the world. In a serious threat, it often leads to the emergence [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/agriculture-water-irrigation-predictive-analytics-using-microsoft-azure-ml/">Agriculture Water Irrigation &#8211; Predictive Analytics Using Microsoft Azure ML</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In today’s world water Irrigation / shortages are a major problem in many developed and developing countries in the world. In a serious threat, it often leads to the emergence of a food crisis. Due to scarcity the increase in water volume is critical to the need for available water management.</p>
<p>To improve water management practices and maximize water productivity, In the current situation, models to predict future water requirements based on data mining techniques can be useful.</p>
<p>In this section we will be walking-through an experiment in Azure Machine Learning Studio that will help us to predict future water requirements based on data mining technique.</p>
<p>In order to achieve our goal, we will be using <strong>Two Class Decision Forest </strong> for our solution that comes with Azure Machine Learning Studio. Please note that the data we collected for this experiment was through KAISPE Agriculture Remote Monitoring solution using Azure IoT.</p>
<p>So, in the first step we will upload the dataset on Azure Machine Learning Studio in the CSV file format, where it contains historical data composed of attributes on various weather parameters such as <strong>Temperature, Humidity, Soil Moisture, phLevel, Rainfall</strong> and<strong> Wind speed </strong>combined with <strong>Crop Type </strong>and<strong> Water Usage</strong>.</p>
<p>First, open Azure Machine Learning home page and Click <strong>+NEW</strong> at the bottom of the window</p>
<ul>
<li>Select <strong>DATASET</strong> .</li>
<li>Select <strong>FROM LOCAL FILE</strong>.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class=" wp-image-834 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/1.png" alt="" width="582" height="120" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/1.png 1432w, https://www.kaispe.com/wp-content/uploads/2019/09/1-300x62.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/1-1024x211.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/1-768x158.png 768w" sizes="(max-width: 582px) 100vw, 582px" /></p>
<p>In the <strong>Upload a new dataset</strong> dialog, click Browse, and find the <strong>KSP-Irrigation-Data.csv </strong>file you created.</p>
<p><img decoding="async" class="wp-image-835 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/2.png" alt="" width="368" height="347" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/2.png 630w, https://www.kaispe.com/wp-content/uploads/2019/09/2-300x283.png 300w" sizes="(max-width: 368px) 100vw, 368px" /></p>
<p>Now in the next step we will create an experiment in Machine Learning Studio that uses the dataset you uploaded. So, click <strong>+NEW</strong> at the bottom of the window and Select <strong>EXPERIMENT</strong>, and then select “Blank Experiment”.</p>
<p><img decoding="async" class=" wp-image-836 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/3.png" alt="" width="523" height="165" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/3.png 1432w, https://www.kaispe.com/wp-content/uploads/2019/09/3-300x94.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/3-1024x323.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/3-768x242.png 768w" sizes="(max-width: 523px) 100vw, 523px" /></p>
<p>Select the default experiment name at the top and rename it to <strong>Predictive Water Irrigation Experiment </strong>and in the module palette to the left of the experiment page, expand <strong>Saved Datasets</strong>. Find the dataset you created under <strong>My Datasets</strong> and drag it onto the canvas.</p>
<p><img decoding="async" class=" wp-image-837 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/4.png" alt="" width="539" height="154" /></p>
<p>Now let’s prepare the data by using <strong>Select Columns in Dataset</strong> which is useful if you want to reduce the size of the dataset by deleting unwanted columns.</p>
<p><img decoding="async" class=" wp-image-838 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/5.png" alt="" width="538" height="163" /></p>
<ul>
<li>Search and drag <strong>Select Columns in Dataset,</strong> and in the <strong>Properties </strong>pane to the right page, click <strong>Launch column selector </strong>and select the following columns:</li>
</ul>
<p><img decoding="async" class=" wp-image-839 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/6.png" alt="" width="547" height="278" /></p>
<p>In addition, we will be using <strong>Filter Based Feature Selection </strong>which will help us to identifies the column with the strongest predictive power in the input dataset.</p>
<ul>
<li>Search and drag <strong>Filter Based Feature Selection</strong> and in the <strong>Properties </strong>pane to the right page, click <strong>Launch column selector </strong>and select the following target column and feature scoring method:</li>
</ul>
<p><img decoding="async" class=" wp-image-840 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/7.png" alt="" width="569" height="123" /></p>
<p>Now, we&#8217;ll use our data for both training the model and testing it by splitting the data into separate training and testing datasets.</p>
<ul>
<li>Search and drag <strong>Split Data </strong>onto the canvas and connect to the last<strong> Select Columns in Dataset.</strong></li>
<li>Click <strong>Split Data </strong>and in the <strong>Properties </strong>pane to the right of the canvas and set it to 0.75. In this way, we will use 75% of the data to train the model and 25% of the data for testing.</li>
</ul>
<p><img decoding="async" class=" wp-image-841 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/8.png" alt="" width="574" height="140" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/8.png 1837w, https://www.kaispe.com/wp-content/uploads/2019/09/8-300x73.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/8-1024x249.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/8-768x187.png 768w, https://www.kaispe.com/wp-content/uploads/2019/09/8-1536x374.png 1536w" sizes="(max-width: 574px) 100vw, 574px" /><br />
In the next step we will be applying <strong>Two Class Decision Forest </strong>machine learning algorithm which is most suitable for our <strong>Predictive Water Irrigation Experiment</strong>.</p>
<ul>
<li>Expand the Machine Learning category in the module palette on the left side of the canvas</li>
<li>Expand Initialize Model. This shows several types of modules that can be used to initialize machine learning algorithms.</li>
<li>For this experiment, we are selecting the <strong>Two Class Decision Forest </strong>under the <strong>Classification</strong> and drag it to the experimental canvas.</li>
</ul>
<p><img decoding="async" class=" wp-image-842 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/9.png" alt="" width="584" height="166" /></p>
<p>So, in the next step we will find and drag the <strong>Train Model</strong> module to the experiment canvas.</p>
<ul>
<li>Connect the output of the <strong>Two Class Decision Forest </strong>module to the left input of the Train Model module</li>
<li>Connect the training data output (left port) of the Split Data module to the right input of the Train Model module.</li>
</ul>
<p><img decoding="async" class="wp-image-843 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/10.png" alt="" width="560" height="282" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/10.png 1202w, https://www.kaispe.com/wp-content/uploads/2019/09/10-300x151.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/10-1024x515.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/10-768x387.png 768w" sizes="(max-width: 560px) 100vw, 560px" /></p>
<p>Click the Train Model module, click <strong>Launch column selector</strong> in the <strong>Properties</strong> pane, and then select the <strong>waterUsage</strong> column. <strong>waterUsage </strong>is the value that our model is going to predict.</p>
<p><img decoding="async" class="wp-image-844 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/11.png" alt="" width="561" height="278" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/11.png 1129w, https://www.kaispe.com/wp-content/uploads/2019/09/11-300x149.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/11-1024x507.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/11-768x380.png 768w" sizes="(max-width: 561px) 100vw, 561px" /></p>
<p>Now let’s <strong>Run</strong> the experiment so, we can have a trained model that can be used to score new Irrigation data to make Water Usage predictions.</p>
<p><img decoding="async" class="wp-image-845 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/12.png" alt="" width="552" height="212" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/12.png 1477w, https://www.kaispe.com/wp-content/uploads/2019/09/12-300x115.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/12-1024x394.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/12-768x295.png 768w" sizes="(max-width: 552px) 100vw, 552px" /></p>
<p>Now that we have trained the model with 75% of the data, we can use it to score the other 25% of the data to understand the function of our model.</p>
<ul>
<li>Search and drag the <strong>Score Model </strong>module to the experiment canvas.</li>
<li>Connect the output of the <strong>Train Model </strong>module to the left input port of Score Model.</li>
<li>Connect the test data output (right port) of the <strong>Split Data </strong>module to the right input port of Score Model.</li>
</ul>
<p><img decoding="async" class=" wp-image-846 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/13.png" alt="" width="561" height="237" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/13.png 1475w, https://www.kaispe.com/wp-content/uploads/2019/09/13-300x127.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/13-1024x432.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/13-768x324.png 768w" sizes="(max-width: 561px) 100vw, 561px" /></p>
<p>Let’s<strong> Run</strong> the experiment and view the output of the Score Model module by clicking on the output port of the Score Model, then select <strong>Visualize</strong>. The output shows the predicted value of the price and the known value in the test data.</p>
<p><img decoding="async" class="wp-image-847 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/14.png" alt="" width="547" height="378" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/14.png 1057w, https://www.kaispe.com/wp-content/uploads/2019/09/14-300x207.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/14-1024x706.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/14-768x530.png 768w" sizes="(max-width: 547px) 100vw, 547px" /></p>
<p>Now as we are on the final stage to test the quality of the results.  We will select the <strong>Evaluate Model</strong> module and drag it to the experimental canvas, then connect the output of the <strong>Score Model</strong> module to the left input of the Evaluate Model. The final experiment should look like this:</p>
<p><img decoding="async" class=" wp-image-848 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/15.png" alt="" width="587" height="266" /></p>
<p>In the next step we will be Running our experiment to <strong>Visualize</strong> the output of our <strong>Evaluate Model.</strong></p>
<p><img decoding="async" class=" wp-image-849 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/16.png" alt="" width="506" height="416" /></p>
<p>In addition, we will be using <strong>Cross-Validate Model </strong>which is an important technique commonly used in machine learning to assess the variability of data sets and the reliability of any model trained using that data.</p>
<ul>
<li>Search and drag <strong>Cross-Validate Model </strong>and in the <strong>Properties </strong>pane to the right page, click <strong>Launch column selector </strong>and select the following label column:</li>
</ul>
<p><img decoding="async" class=" wp-image-850 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/17.png" alt="" width="584" height="210" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/17.png 1826w, https://www.kaispe.com/wp-content/uploads/2019/09/17-300x107.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/17-1024x367.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/17-768x275.png 768w, https://www.kaispe.com/wp-content/uploads/2019/09/17-1536x550.png 1536w" sizes="(max-width: 584px) 100vw, 584px" /></p>
<p>Now <strong>Run</strong> the experiment to See the results for a description of the report.</p>
<p><img decoding="async" class="wp-image-851 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/09/18.png" alt="" width="525" height="366" srcset="https://www.kaispe.com/wp-content/uploads/2019/09/18.png 1027w, https://www.kaispe.com/wp-content/uploads/2019/09/18-300x209.png 300w, https://www.kaispe.com/wp-content/uploads/2019/09/18-1024x715.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/09/18-768x536.png 768w" sizes="(max-width: 525px) 100vw, 525px" /></p>
<p>I hope you found this blog post helpful. If you have any questions, please feel free to contact me muhammad.ahmad@kaispe.com</p>
<p>The post <a href="https://www.kaispe.com/agriculture-water-irrigation-predictive-analytics-using-microsoft-azure-ml/">Agriculture Water Irrigation &#8211; Predictive Analytics Using Microsoft Azure ML</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
