<?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>Azure ML Archives | KAISPE</title>
	<atom:link href="https://www.kaispe.com/tag/azure-ml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kaispe.com/tag/azure-ml/</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>Azure ML Archives | KAISPE</title>
	<link>https://www.kaispe.com/tag/azure-ml/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Student Churn Prediction using Microsoft Azure Machine Learning</title>
		<link>https://www.kaispe.com/student-churn-prediction-using-microsoft-azure-machine-learning/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Mon, 09 Mar 2020 06:29:14 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Azure ML]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[student churn]]></category>
		<category><![CDATA[student churn prediction]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=1201</guid>

					<description><![CDATA[<p>In an study with different schools, teachers shared how high attrition rates affect classroom learning and culture. An unstable living environment may cause students to be often late, missing classes [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/student-churn-prediction-using-microsoft-azure-machine-learning/">Student Churn Prediction using Microsoft Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In an study with different schools, teachers shared how high attrition rates affect classroom learning and culture. An unstable living environment may cause students to be often late, missing classes or changing schools, although teachers say they try to reduce distractions, such as using mindfulness technology in academic classes however student churn is still a problem that exists.</p>
<p>As a technology solution provider, our focus is to help schools reducing the drop out rate using technology.  For this purpose, we will be using Machine Learning (AI) to predict the student churn and identify dropout students at an early stage.</p>
<p>We will be walking-through an experiment on Azure Machine Learning Studio that will help us to predict future student churn predictions.</p>
<p>In order to achieve our goal, we will be using <strong>Two Class Decision Forest </strong>algorithm for our solution that comes with Azure Machine Learning Studio. We will be using sample data for this experiment.</p>
<p>So, in the first step we will upload the data on Azure Machine Learning Studio in the CSV file format, where it contains historical data composed of attributes on various parameters such as:</p>
<ul>
<li>School Id</li>
<li>Student Id</li>
<li>Gender</li>
<li>Subject marks</li>
<li>Students performance</li>
<li>Guardian</li>
<li>Internet</li>
<li>Number of absences</li>
<li>Lack of awareness</li>
<li>School performance</li>
<li>Establishment year</li>
<li>Health protected</li>
<li>Continue or Drop<strong> (Target feature)</strong></li>
</ul>
<ul>
<li>First, open Azure Machine Learning home page and Click <strong>+NEW</strong> at the bottom of the window</li>
<li>Select <strong>DATASET</strong></li>
<li>Select <strong>FROM LOCAL FILE</strong></li>
</ul>
<p><img fetchpriority="high" decoding="async" class=" wp-image-1205 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/dataset.png" alt="" width="534" height="111" srcset="https://www.kaispe.com/wp-content/uploads/2020/03/dataset.png 1914w, https://www.kaispe.com/wp-content/uploads/2020/03/dataset-300x62.png 300w, https://www.kaispe.com/wp-content/uploads/2020/03/dataset-1024x212.png 1024w, https://www.kaispe.com/wp-content/uploads/2020/03/dataset-768x159.png 768w, https://www.kaispe.com/wp-content/uploads/2020/03/dataset-1536x318.png 1536w" sizes="(max-width: 534px) 100vw, 534px" /></p>
<p>In the <strong>Upload a new dataset</strong> dialog, click Browse, and find the <strong>studentChurnPrediction.csv </strong>file you created.</p>
<p><img decoding="async" class=" wp-image-1212 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/uploaddata.png" alt="" width="328" height="306" /></p>
<p>Now in the next step we will create an experiment in Machine Learning Studio that uses the data 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-1207 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/experiment.png" alt="" width="521" height="164" /></p>
<p>Select the default experiment name at the top and rename it to <strong>KAISPE Student Churn Prediction </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-1214 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/selectdataset-1.png" alt="" width="413" height="216" /></p>
<p>Now let’s prepare and clean the data by using <strong>Select Columns in Dataset</strong> and <strong>Clean Missing Data</strong> module which is useful if you want to clean and reduce the size of the data by deleting unwanted columns.</p>
<p><img decoding="async" class=" wp-image-1204 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/clean_prepare_data.png" alt="" width="443" height="234" /></p>
<p>In addition, we will be using <strong>Edit metadata </strong>module<strong> </strong>which will help us to select categorical column in our dataset.</p>
<ul>
<li>Search and drag <strong>Edit Metadata </strong>and in the <strong>Properties </strong>pane to the right page, click <strong>Launch column selector </strong>and select the following categorical columns and make categorical.</li>
</ul>
<p><img decoding="async" class=" wp-image-1203 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/categorical.png" alt="" width="470" height="277" srcset="https://www.kaispe.com/wp-content/uploads/2020/03/categorical.png 584w, https://www.kaispe.com/wp-content/uploads/2020/03/categorical-300x177.png 300w" sizes="(max-width: 470px) 100vw, 470px" /></p>
<p>Now, we’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> Edit Metadata </strong>module<strong>.</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-1210 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/splitdata.png" alt="" width="551" height="148" /></p>
<p>In the next step we will be applying <strong>Two Class Decision Forest </strong>machine learning algorithm which is most suitable for our <strong>KAISPE Student Churn Prediction </strong>experiment.</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>algorithm 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-1211 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/train_model.png" alt="" width="414" height="328" /></p>
<p>After successfully we have trained our model with 75% of the data, we can use it to score and evaluate model to check the other 25% of the data to understand the function of our model.</p>
<p>Now, we will be Running our experiment to <strong>Visualize</strong> the output of our <strong>Score</strong> and<strong> Evaluate </strong>the model<strong>.</strong></p>
<p><img decoding="async" class=" wp-image-1208 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/score.png" alt="" width="441" height="291" /></p>
<p><img decoding="async" class=" wp-image-1206 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2020/03/evaluate.png" alt="" width="425" height="376" srcset="https://www.kaispe.com/wp-content/uploads/2020/03/evaluate.png 830w, https://www.kaispe.com/wp-content/uploads/2020/03/evaluate-300x266.png 300w, https://www.kaispe.com/wp-content/uploads/2020/03/evaluate-768x680.png 768w" sizes="(max-width: 425px) 100vw, 425px" /></p>
<p>I hope you found this blog post helpful. If you have any questions, please feel free to contact info@kaispe.com.</p>
<p>The post <a href="https://www.kaispe.com/student-churn-prediction-using-microsoft-azure-machine-learning/">Student Churn Prediction using Microsoft Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Microsoft Power BI and Azure Machine Learning</title>
		<link>https://www.kaispe.com/microsoft-power-bi-and-azure-machine-learning/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Sun, 19 Jan 2020 07:34:36 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Azure ML]]></category>
		<category><![CDATA[azure ml studio]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[Power BI]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=1143</guid>

					<description><![CDATA[<p>Azure Machine Learning is a platform on which data scientists can develop machine learning models to meet complex business challenges. So, here we have Power BI to discover all behind [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/microsoft-power-bi-and-azure-machine-learning/">Microsoft Power BI and Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Azure Machine Learning is a platform on which data scientists can develop machine learning models to meet complex business challenges. So, here we have <strong>Power BI</strong> to discover all behind the scenes to interact users as well as business analysts in much easier and faster way.</p>
<p>In today’s blog we will discover some useful insights about using a created model on <strong>Azure Machine Learning Studio</strong> and call that model in our power bi so we have data in power bi and use that API as a tool for machine learning.</p>
<p>Before we move any further let me remind you that there are various options to consume machine learning in power bi but for this blog post we will only be covering couple of them.</p>
<p>So, first we will be covering Microsoft Standard to invoke an <strong>Azure Machine Learning Studio (classic)</strong> model into Power BI. Here the following steps you can follow to invoke a machine learning model into power bi:<br />
1- create an Azure ML model if you don&#8217;t already have a model and publish it.<br />
2- Next we have to access  Azure Machine Learning model from power bi, To do that we have to get a <strong>Reader</strong> role from <strong>Azure subscription</strong>.<br />
3- Now we have to create a <strong>Dataflow</strong> in power bi whom you granted access to Azure Machine Learning Model. After you signed in:<br />
&#8211; create a workspace and navigate to a workspace on your dedicated capacity that has<br />
the AI preview enabled and Select <strong>Add new entities</strong>.<br />
&#8211; Upload the dataset <strong>Text/CSV File</strong> as our data source<br />
4- In the last step we will apply insights from Azure Machine Learning model, navigate to <strong>AI Insights</strong> button in the ribbon, and from Azure Machine Learning Models folder navigate to the Azure ML models to which you&#8217;ve been granted access are listed as Power Query functions with a prefix AzureML.</p>
<p>To invoke an Azure Machine Learning model, we will specify our input parameters such as (timestamp, air pressure, angular speed, piston speed and piston vibration). In last step, select <strong>Invoke </strong>to view the preview of the Azure ML model&#8217;s output as a new column in the entity table.</p>
<p>Now, we can also consume a machine learning webservice in power bi which is much easier to integrate for free. To achieve the task, we have to follow these steps:<br />
1- You should have an Azure Machine Learning model and deployed as a webservice.<br />
2- Import the dataset from your local computer and navigate to the query editor<br />
3- next we need to navigate to the Run R script where we connect our Azure Machine Learning model with Power BI. For the following step you have to have the following credentials from Azure Machine Learning Studio workspace: (1) workspace Id (2) Authentication token (3) Service name. Next hit the <strong>OK</strong> button to view the result in output column.</p>
<p>I hope you found this blog post helpful. If you have any questions, please feel free to contact info@kaispe.com.</p>
<p>The post <a href="https://www.kaispe.com/microsoft-power-bi-and-azure-machine-learning/">Microsoft Power BI and Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>KAISPE Azure Machine Learning PoC Offering is now available on Microsoft Marketplace</title>
		<link>https://www.kaispe.com/kaispe-azure-machine-learning-poc-offering-is-now-available-on-microsoft-marketplace/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Thu, 16 Jan 2020 17:07:48 +0000</pubDate>
				<category><![CDATA[News]]></category>
		<category><![CDATA[azure machine learning]]></category>
		<category><![CDATA[Azure ML]]></category>
		<category><![CDATA[azure ml poc]]></category>
		<category><![CDATA[azure ml services]]></category>
		<category><![CDATA[azure ml studio]]></category>
		<category><![CDATA[ml proof of concept]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=1147</guid>

					<description><![CDATA[<p>NEW YORK, January 16, 2020– KAISPE is pleased to announce that customers and partners can now avail our one week Proof of Concept offering for Microsoft Azure Machine Learning implementation. [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/kaispe-azure-machine-learning-poc-offering-is-now-available-on-microsoft-marketplace/">KAISPE Azure Machine Learning PoC Offering is now available on Microsoft Marketplace</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>NEW YORK, January 16, 2020– KAISPE is pleased to announce that customers and partners can now avail our one week Proof of Concept offering for Microsoft Azure Machine Learning implementation. This will particularly help customers who want to practically see how Azure Machine Learning can help them fulfilling the Predictive Maintenance requirements for their business assets. More details are <a href="https://azuremarketplace.microsoft.com/en-us/marketplace/consulting-services/kaispellc.kaisp_ml_poc?tab=Overview">available</a> on Microsoft Azure Marketplace.</p>
<p>At KAISPE, we pride ourselves on our innovation, expertise, and our continued commitment to ensuring delivery of the highest quality products to our customers. As a Microsoft Certified Partner, we provide solutions backed by industry best practices and standards. We are Microsoft Co-Sell partner and have strong presence on Microsoft marketplaces with our remarkable apps and services.</p>
<p>To learn more, visit <a href="https://www.kaispe.com/">https://testing.kaispe.com</a> or call (315) 791-4472. Connect with us on <a href="https://twitter.com/kaispe_">Twitter</a>, <a href="https://www.linkedin.com/company/kaispe">LinkedIn</a>, and <a href="https://www.facebook.com/Kaispe-226720541143041">Facebook</a>.</p>
<p>The post <a href="https://www.kaispe.com/kaispe-azure-machine-learning-poc-offering-is-now-available-on-microsoft-marketplace/">KAISPE Azure Machine Learning PoC Offering is now available on Microsoft Marketplace</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Water Irrigation Experiment Using Microsoft Azure Machine Learning</title>
		<link>https://www.kaispe.com/water-irrigation-experiment-using-microsoft-azure-machine-learning/</link>
		
		<dc:creator><![CDATA[jdkaispe]]></dc:creator>
		<pubDate>Wed, 02 Oct 2019 04:29:49 +0000</pubDate>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Azure ML]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[water irrigation AI]]></category>
		<guid isPermaLink="false">https://www.kaispe.com/?p=870</guid>

					<description><![CDATA[<p>Hi, As we all know water irrigation is the foundation of global agricultural productivity, enabling farmers to buffer crops to cope with the risks of rainfall variability and drought. However, [&#8230;]</p>
<p>The post <a href="https://www.kaispe.com/water-irrigation-experiment-using-microsoft-azure-machine-learning/">Water Irrigation Experiment Using Microsoft Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi,</p>
<p>As we all know water irrigation is the foundation of global agricultural productivity, enabling farmers to buffer crops to cope with the risks of rainfall variability and drought. However, freshwater supplies to irrigated agriculture are increasingly constrained by increased demand for water from other sectors, changes in water supply due to climate change and increased awareness of the impact of irrigation on the environment.</p>
<p>To address these challenges, Machine learning technology plays an important role in water irrigation system. According to study by applying machine learning in agriculture it enhances the water irrigation system which helps us to use the water in efficient manner and reduces water waste.</p>
<p>So, In the last blog we created a model that predicts the future water requirements based on a given data using <strong>Two Class Decision Forest</strong>. Now, in today’s experiment we will try to improve our solution to get better insights of Water Irrigation system Using Microsoft Azure Machine Learning.</p>
<p>First, we need to collect data to build a training dataset. We choose the attributes that have significant influence on crop water usage and the data for which are available throughout the whole cropping seasons. Please note that the data we collected for this experiment was through KAISPE Agriculture Remote Monitoring solution using Azure IoT.</p>
<p>Here we have the example of a training dataset:</p>
<p><span style="font-size: 11.0pt; line-height: 107%; font-family: 'Calibri',sans-serif;"><img decoding="async" class="wp-image-876 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog0-1.png" alt="" width="578" height="179" srcset="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog0-1.png 1347w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog0-1-300x93.png 300w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog0-1-1024x317.png 1024w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog0-1-768x238.png 768w" sizes="(max-width: 578px) 100vw, 578px" /></span></p>
<p>Our training dataset contains historical data composed of attributes on various weather parameters Temperature, Humidity, Rainfall, Wind speed, Soil Moisture, phLevel combined with Crop Type and Water Usage.</p>
<p>Next, the method or technique we use to predict water usage in this experiment is <strong>Decision Forest Regression</strong>. So, what is <strong>Decision Forest Regression</strong> and how decision forests work in regression tasks, lets take a look into it:</p>
<p>Building a number of trees called a forest, instead of a single tree. It does so in order to extract more patterns and logic rules. It basically uses the same approach of a single tree building algorithm.</p>
<p>Decision trees have these advantages:</p>
<ul>
<li>They are very effective in both calculation and memory usage during training and prediction.</li>
<li>They can represent non-linear decision boundaries.</li>
<li>They perform integrated feature selection and classification, and are resilient in the presence of noisy features.</li>
</ul>
<p>The regression model consists of a set of decision trees. Each tree in the regression decision forest outputs a Gaussian distribution as a prediction. Perform aggregation on the collection of trees to find the Gaussian distribution of the combined distribution of all the trees closest to the model. For more information: <a href="https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/decision-forest-regression">https://docs.microsoft.com/en-us/azure/machine-learning/studio-module-reference/decision-forest-regression </a></p>
<p>Here we have the example of a multiple decision trees from our dataset:</p>
<p><img decoding="async" class="wp-image-873 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog2.png" alt="" width="360" height="285" srcset="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog2.png 447w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog2-300x238.png 300w" sizes="(max-width: 360px) 100vw, 360px" /><img decoding="async" class="wp-image-872 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog1.png" alt="" width="370" height="292" srcset="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog1.png 460w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog1-300x237.png 300w" sizes="(max-width: 370px) 100vw, 370px" /></p>
<p>&nbsp;</p>
<p>Now, in order to evaluate the performance of our data pre-processing techniques we build training dataset which we divide into two parts training(70%) and testing(30%). A <strong>Decision Forest Regression</strong> algorithm is applied on the training dataset, it is then applied on testing dataset to check the prediction accuracy of unseen records. Before we evaluate our model, let see the score model to see what our model has scored.</p>
<p><img decoding="async" class="wp-image-874 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog4.png" alt="" width="449" height="312" srcset="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog4.png 1012w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog4-300x208.png 300w, https://www.kaispe.com/wp-content/uploads/2019/10/mlblog4-768x534.png 768w" sizes="(max-width: 449px) 100vw, 449px" /></p>
<p>&nbsp;</p>
<p>Finally, the performance of the model on the dataset is evaluated by prediction accuracy. Here we have the result that has performed the best with the accuracy of <strong>95%</strong>.</p>
<p><img decoding="async" class="wp-image-875 aligncenter" src="https://www.kaispe.com/wp-content/uploads/2019/10/mlblog5.png" alt="" width="637" height="199" /></p>
<p>&nbsp;</p>
<p>So, if you can see the given output has <strong>Coefficient of Determination</strong> (which also known as R square) is 0.95, <strong>Mean Absolute Error</strong> is 0.07, <strong>Root Mean Squared Error </strong>is 0.28, <strong>Relative Absolute Error </strong>is 0.07 and in last <strong>Relative Squared Error </strong>which is 0.04.</p>
<p>For better understanding of the result lets take a look into it:</p>
<p><strong>Coefficient of Determination -&gt; </strong>It can directly indicate the excellent performance of our model. In more technical terms, we can define it as a &#8220;determination coefficient&#8221; which is a measure of the variance of the response variable &#8220;y&#8221;, which can be predicted using the predictor &#8220;x&#8221;.</p>
<p><strong>Mean Absolute Error -&gt; </strong>It is usually used when the performance is measured on continuous variable data. It gives a linear value, which averages the weighted individual differences equally. <strong>The lower the value, better is the model&#8217;s performance.</strong></p>
<p><strong>Root Mean Squared Error -&gt; </strong>In this metric also, lower the value, better is the performance of the model.</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/water-irrigation-experiment-using-microsoft-azure-machine-learning/">Water Irrigation Experiment Using Microsoft Azure Machine Learning</a> appeared first on <a href="https://www.kaispe.com">KAISPE</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<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 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>
