<?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>machine learning Archives - United InfoLytics</title>
	<atom:link href="https://unitedinfolytics.com/tag/machine-learning/feed/" rel="self" type="application/rss+xml" />
	<link>https://unitedinfolytics.com/tag/machine-learning/</link>
	<description>Your Data, In Focus and Purpose-Aligned</description>
	<lastBuildDate>Fri, 02 Feb 2024 17:06:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://unitedinfolytics.com/wp-content/uploads/2022/02/cropped-favicon-32x32.png</url>
	<title>machine learning Archives - United InfoLytics</title>
	<link>https://unitedinfolytics.com/tag/machine-learning/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Machine Learning &#038; Finding What You Seek</title>
		<link>https://unitedinfolytics.com/2022/08/18/machine-learning-finding-what-you-seek/</link>
		
		<dc:creator><![CDATA[Peter VanWylen]]></dc:creator>
		<pubDate>Thu, 18 Aug 2022 21:17:08 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Binary Prediction]]></category>
		<category><![CDATA[machine learning]]></category>
		<guid isPermaLink="false">https://unitedinfolytics.com/?p=815</guid>

					<description><![CDATA[<p>This is one of a series of posts that covers machine learning and its applications. The goal is to discuss the similarities between human and machine learning processes—and to use this understanding to think productively about wins and losses in any endeavor or sphere of life. We will start with talking about how exactly machine [&#8230;]</p>
<p>The post <a href="https://unitedinfolytics.com/2022/08/18/machine-learning-finding-what-you-seek/">Machine Learning &#038; Finding What You Seek</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This is one of a <a href="/tag/machine-learning/">series of posts</a> that covers machine learning and its applications. The goal is to discuss the similarities between human and machine learning processes—and to use this understanding to think productively about wins and losses in any endeavor or sphere of life. We will start with talking about how exactly machine &#8220;learning&#8221; actually learns. I have mostly removed all jargon, and I&#8217;ve replaced it with everyday language as these concepts are truly accessible to anyone like this. If you find this post interesting or helpful, do check out the rest of the series.</p>



<p>One note: I use the words algorithm and model a fair bit below. You can think of the <em>algorithm</em> as the procedure used to approach a learning task. The <em>model</em> is the trained state of the algorithm after it works through some training data. A model potentially gets updated in some way each time the algorithm gets new data to learn from. The model is the sum total of the algorithm&#8217;s <em>current </em>learning towards the task at hand.</p>



<p>Similar to a human mind without experience, a machine-learning algorithm without training data to learn from is not very useful.</p>



<h2 class="wp-block-heading">You Be The Machine</h2>



<p>To start, I&#8217;m going to give you a very quick learning task that is something we might ask a computer to work on. I will have you work on classification of images. Are you ready? You&#8217;ve got this! First your training dataset:</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="512" src="https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-1024x512.jpg" alt="" class="wp-image-818" srcset="https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-1024x512.jpg 1024w, https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-300x150.jpg 300w, https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-768x384.jpg 768w, https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-1536x767.jpg 1536w, https://unitedinfolytics.com/wp-content/uploads/2022/08/training-data-2048x1023.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption class="wp-element-caption">A simple training dataset from which an ML algorithm can learn</figcaption></figure>



<p>Pretend you are the computer. You are given a set of 8 training images each with a label. Look at each of the images as if you&#8217;ve never seen these things before; try to learn what a cat is and what a dog is. Note that one good thing about this dataset is that we are teaching the computer that cats and dogs come in a variety of colors/patterns and that these aren&#8217;t the defining aspects of the thing. In training a real model, we might give the computer 50 to 50,000 examples of each instead of 4 each, but you get the idea. Now that you have trained yourself on these 8 images, I have a question for you: what are the things in each of the following two images? Before you answer based on your years of lived experience, I want you to attempt to answer as if the only training you have on dogs and cats is the above 8 images.</p>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="768" src="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-1024x768.jpg" alt="" class="wp-image-820" srcset="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-1024x768.jpg 1024w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-300x225.jpg 300w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-768x576.jpg 768w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-1536x1152.jpg 1536w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-alexandru-rotariu-733416-2048x1536.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow">
<figure class="wp-block-image size-large"><img decoding="async" width="1956" height="1467" src="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited.jpg" alt="" class="wp-image-844" srcset="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited.jpg 1956w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited-300x225.jpg 300w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited-1024x768.jpg 1024w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited-768x576.jpg 768w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-247937-edited-1536x1152.jpg 1536w" sizes="(max-width: 1956px) 100vw, 1956px" /></figure>
</div>
</div>



<p>If you answered &#8220;dog&#8221; for the first one, great! You have earned your keep as a machine learning algorithm. If you answered &#8220;dog&#8221; for the second one, I think there&#8217;s a chance you cheated and used your life experience instead of just the training data! Look again, and you&#8217;ll clearly see that in some ways, the second image looks more like the 4 cats in the training images above. In the training data, all the cats have ears that stand up, they are all sitting upright, and each of the pictures shows their whole body including legs. But each of our training images for the dogs shows just a dog face—no legs, no body.</p>



<p>If you answered &#8220;cat&#8221; for the second image, I would say that you did your job just fine and there&#8217;s nothing wrong with you as a machine learning algorithm. What&#8217;s wrong is the fact that our training dataset was very small and lopsided—and thus it biased you, the machine, to think that any furry creature sitting down on its hind legs with pointy ears is a cat. Given that the face in the second image is definitely more doglike than catlike, the model could also be inconclusive saying something like &#8220;30% chance of dog, 60% chance of cat, 10% neither.&#8221; The facial structure has it thinking it&#8217;s somewhat doglike, but the ears and the pose has it thinking more catlike.</p>



<p>Before reading on, I have a question for you: what can you do without writing a line of code to get the algorithm working better to identify cats and dogs in a variety of positions, angles, etc.?</p>



<h2 class="wp-block-heading">More Data is Good, Diverse Data is Better</h2>



<p>You have now learned one of the first pitfalls of machine learning: an algorithm&#8217;s ability to label things or predict things is only as good as the training data it is fed. This is honestly true of human learning as well. If you are only exposed to a small slice of the world&#8217;s people or the world&#8217;s geography, your ability to understand and transfer what you&#8217;ve learned to people and places outside of your slice is limited.</p>



<p>Whenever I&#8217;m working with a machine learning algorithm, I tend to be exceptionally interested in the nature of the mistakes that it makes. I don&#8217;t spend a lot of time celebrating the 95% of things that it handled correctly; I spend my time looking closely at the 5% of things it got wrong, and I think through the main ways I might improve the machine&#8217;s performance so that it makes fewer mistakes:</p>



<ol class="wp-block-list">
<li>Change the algorithm(s) used.</li>



<li>Work on ways to code some hints to give the algorithm a leg up on understanding the data—essentially formulas that give it some of the human understanding we have. These hints are called features, and this creative coding work is called &#8220;feature engineering.&#8221;</li>



<li>Work on gathering a larger and more diverse training dataset.</li>
</ol>



<p>The first two of these are beyond the scope of this article and get a bit technical, but the third one is easy to understand. If we were to give the machine 100 images labeled as cats and 100 images labeled as dogs, it would almost certainly be more skilled at classification than it is with 4 of each. That said, if I still only provide training examples of cats sitting on hind legs and only have dogs&#8217; faces instead of their whole bodies, my algorithm remains limited in its experience and is still limited in its ability to generalize what it has &#8220;learned&#8221; to a wider variety of situations. It&#8217;ll only be truly good at differentiating between sitting cats and the faces of dogs. It would be a more accurate classifier if trained on a reasonably wide set of animal positions, breeds, and backgrounds. Even if I only have time to give it a handful more dog images and cat images, it&#8217;ll learn the most and improve the most if those new images added to the training data are diverse. To learn more about AI that struggles in situations outside of its training, see <a href="https://arstechnica.com/information-technology/2022/11/new-go-playing-trick-defeats-world-class-go-ai-but-loses-to-human-amateurs/">this article on tricks that can beat the best Go-playing AI algorithms</a>.</p>



<p>Admittedly most readers are more likely to be interested in using AI to rank potential customers or classify data in databases rather than classifying images of pets. The principles are the same, however, and building a diverse training set will be important for any business use of machine learning.</p>



<h2 class="wp-block-heading">Getting philosophical on finding what you seek</h2>



<p>In machine learning, it turns out that the most valuable training examples are those that are confusing or are outright surprises to the algorithm when it first sees them. To use human language, most algorithms seek to minimize the &#8220;cognitive dissonance&#8221; the model &#8220;feels&#8221; with regards to new confusing cases. The technical term for this is &#8220;minimizing the loss&#8221; but essentially you can think of it like this: the model changes most when it encounters a training example that is most surprising or most contrary to its current model of the task at hand. It changes significantly in order to ensure it would have a higher chance of success next time if presented with a similar image and asked to classify it.</p>



<p>If you train the algorithm on an additional 100 cat pictures and for all 100 it would have already known they were cats, it might improve just a bit in its abilities but not remarkably. If instead you give it just 20 additional cat pictures and 5 of them were surprises where the algorithm would have initially said, &#8220;not a cat,&#8221; this additional training data or experience is very impactful and will improve the accuracy of the model significantly—or at least it&#8217;ll decrease the model&#8217;s overconfidence.</p>



<p>The same is true in life. Your understanding of the world is most improved by new information that you didn&#8217;t expect, and it only improves slowly when given additional information that already squares with your understanding of the world. This is why scientists often say that they long for surprises in their experimental data. Data that goes exactly opposite your working model forces you to think and learn a lot more than data that confirms what you already think.</p>



<h2 class="wp-block-heading">Binary Classification—and when &#8220;no&#8221; leads to &#8220;yes&#8221;</h2>



<p>Whether it comes to finding the right person to hire, the right next job, the winning needles in a haystack of data, it turns out that closed doors, failures, and mistakes are exceptionally valuable. It turns out that the &#8220;nos&#8221; in life are the key to the next &#8220;yes.&#8221; It&#8217;s not just a cliche: closed doors are key to finding the open ones and failure truly is only failure if you fail to learn from it.</p>



<p>I was recently working on a machine learning model that does binary classification, which is a fancy way of saying that it looks at a spreadsheet and for each row it tries to figure out if it&#8217;s a &#8220;yes&#8221; or a &#8220;no&#8221; based on what it has learned from other rows that are known to be &#8220;yeses&#8221; or &#8220;nos&#8221;. The model was working better than I had initially hoped, and it was identifying needles in a very large haystack of data that experts were missing with traditional non-ML search and labeling algorithms. I was thrilled that it was working so well, and I then decided to see how it would do labeling on a slightly wider set of real-world data. Since I was also working on creating a training dataset from scratch, I would manually review its predictions on new examples; upon manual review, I would add it to the training dataset with the confirmed label.</p>



<p>Right after I started throwing a wider set of data at it, it was performing absolutely horribly and was mislabeling things constantly. I had asked it to extrapolate only slightly outside of the training dataset, so I thought it would be no big deal, but it was. I manually reviewed perhaps 40 examples in a row that it thought were in the &#8220;yes&#8221; category but all of them were actually &#8220;no.&#8221; I started looking at my code to see it I had somehow broken it—after all, it had been working quite well the day before.</p>



<p>It turns out that nothing was broken. I stuck with it and kept saying, &#8220;actually that&#8217;s a no&#8221; to heaps of things that it was labeling as a &#8220;yes.&#8221; The model started to learn. The next day it was back to finding needles in a haystack with great success. It was only then that I realized that the key to getting back to winning was a whole bunch of mistakes that I fed back into the system so it would learn from them.</p>



<h2 class="wp-block-heading">Getting started</h2>



<p>Whether you are trying to see if machine learning can transform your work, or just reading for the purpose of growing your data skills, be encouraged that the each &#8220;no&#8221; in life and in machine learning will help you clarify where to be looking for the next &#8220;yes.&#8221; If you want some consulting as you get started with machine learning, you want a complete outsourced solution for it, or even if you just want to ask questions to see if there is potential return on investment from machine learning in your line of work, then answer is certainly &#8220;yes&#8221;—I&#8217;d love to talk. <a href="https://calendly.com/united-infolytics/30min" target="_blank" rel="noreferrer noopener">Set up a time today</a>.</p>



<p>Admittedly, image classification or distinguishing between cat pictures and dog pictures is probably not a critical goal for your work. There are so many other things that machine learning can do well, and in many business applications the examples being learned and later predicted are actually rows from a spreadsheet or a database. See <a href="https://unitedinfolytics.com/2022/08/18/machine-learning-for-process-and-organizational-transformation/">this earlier post</a> for a wider explanation of the types of tasks ML can do well.</p>



<p> </p>
<p>The post <a href="https://unitedinfolytics.com/2022/08/18/machine-learning-finding-what-you-seek/">Machine Learning &#038; Finding What You Seek</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Machine Learning for Process and Organizational Transformation</title>
		<link>https://unitedinfolytics.com/2022/08/18/machine-learning-for-process-and-organizational-transformation/</link>
		
		<dc:creator><![CDATA[Peter VanWylen]]></dc:creator>
		<pubDate>Thu, 18 Aug 2022 17:10:29 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[machine learning]]></category>
		<guid isPermaLink="false">https://unitedinfolytics.com/?p=786</guid>

					<description><![CDATA[<p>Almost everyone has heard of artificial intelligence and machine learning. We all know that somehow the suggestions we see on streaming services or e-commerce sites are somehow calculated using algorithms and not manually curated by humans in cubicles. You might also know that in many cases job-seekers&#8217; resumes, applications, and cover letters are read and [&#8230;]</p>
<p>The post <a href="https://unitedinfolytics.com/2022/08/18/machine-learning-for-process-and-organizational-transformation/">Machine Learning for Process and Organizational Transformation</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Almost everyone has heard of artificial intelligence and machine learning. We all know that somehow the suggestions we see on streaming services or e-commerce sites are somehow calculated using algorithms and not manually curated by humans in cubicles. You might also know that in many cases job-seekers&#8217; resumes, applications, and cover letters are read and screened by AI before they even get in front of a human. How exactly these things work is hidden from us, but we know they are powerful and assume they are somehow &#8220;beyond&#8221; us or only for organizations with massive budgets.</p>



<p>Today, the technology behind these algorithms is accessible to even smaller businesses and organizations, and it gives a real advantage to those who leverage it. In this post, you&#8217;ll get an accessible overview of how machine learning works. I also hope you&#8217;ll have the beginnings of some ideas for transformation of your work using these tools. I&#8217;ll intentionally avoid jargon and replace some technical terms with everyday language—you can learn more about the jargon and field-specific terminology in the <a href="https://unitedinfolytics.com/tag/machine-learning/">other machine learning posts</a>.</p>



<h2 class="wp-block-heading">Learn How it Works—In Under a Minute</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="428" src="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2-1024x428.jpg" alt="" class="wp-image-813" srcset="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2-1024x428.jpg 1024w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2-300x125.jpg 300w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2-768x321.jpg 768w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2-1536x642.jpg 1536w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-pixabay-414579-2.jpg 2000w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>While the math and algorithms are complex, understanding the process is actually pretty easy:</p>



<ol class="wp-block-list"><li>A human defines the task for the computer by describing the goal (see below) and possibly also selecting an algorithm. Depending on the tool used, this could be a few minutes of clicking in an AutoML tool or it could be writing code that leverages existing widely-used algorithms.</li><li>The algorithm is given a <em>training dataset</em> to learn from. This could be a database of pictures alongside text labels of the photos or it could simply be a database or spreadsheet of rows and columns. In the same way that humans learn from taking in the world and from experience, this dataset is the &#8220;experience&#8221; you want the computer to look at and learn from. After training, the algorithm will have &#8220;learned&#8221; something from the training data and be ready to apply it to new things. This learning is actually just tweaking a bunch of numbers that often start as zeroes in the algorithm&#8217;s initial framework. The numbers are picked so as to best &#8220;fit&#8221; the &#8220;experience&#8221; of the training dataset.</li><li>We apply the algorithm in its post-training &#8220;learned state&#8221; to some real-world examples that we didn&#8217;t let the computer learn from during its initial training. We intentionally held back some real-world examples so the computer couldn&#8217;t cheat and simply <em style="letter-spacing: 0.2px;">memorize</em><span style="letter-spacing: 0.2px;"> the answer for each and every example we initially gave it. That&#8217;s not intelligence nor is it even artificial intelligence—that&#8217;s simply having a good memory. We need to find out at this stage if it has learned something that can be </span><em style="letter-spacing: 0.2px;">generalized</em><span style="letter-spacing: 0.2px;"> to new situations or if it is actually pretty worthless when it comes to things it hasn&#8217;t yet seen.</span></li><li>If everything is satisfactory, the trained algorithm can begin to be applied to business or organizational processes—ultimately to working smarter instead of simply working harder.</li></ol>



<p>Essentially, this is not all that different from the way we as humans learn about the world. We are constantly processing and reprocessing our cumulative experience to date in order to be ready to understand things we haven&#8217;t seen yet and to make predictions. Interestingly, just as humans can have bias, overconfidence and other similar cognitive blind spots, machine learning has analogous traps and there are important best practices for avoiding and working past them. One of the fantastic rewards from understanding machine learning is the insights it can give us into understanding the process of our own human learning, the reasons we sometimes get things very wrong, and the experiences most likely to propel us quickly to a better and more accurate understanding of the world.</p>



<h2 class="wp-block-heading">A Real-World Example</h2>



<p>Suppose you have 5,000 people who have indicated preliminary interest in what you provide: products, services, education, etc. You may have gotten these names from a form on your website or from people stopping by your booth at a conference/event, or they may be people who have purchased, attended events, or volunteered in the past. Suppose you need 200 people to take a specific action in order to hit your goals. The action could be a purchase, enrollment, commitment, etc. One way to achieve this goal is to blast out an email to all 5,000 people once a week and see what happens. If that only gets you to 75 people, how do you close the gap between 75 and your goal of 200? The natural thing might be to pick up the phone and start calling to build personal connection, explain what you provide, and explain the advantages you offer. Based on past trends, you know that 1 in 20 people you talk to will go to the next step and take the action you are hoping for. You&#8217;re going to need to call 2,500 people because if you get 1 in 20, you&#8217;ll get 125 from that 2,500, and you&#8217;ll close your gap from 75 to the goal of 200. (For more on this kind of math, see the <a href="/2022/04/26/operations-goals-are-data-goals-using-funnels-to-hit-targets/">blog post on funnels</a>.) It will take you eighteen 8-hour work days to call 2,500 people on the list and you&#8217;ll be done. Have fun! Have fun? Let&#8217;s be honest: it&#8217;s going to take more than eighteen days because you&#8217;re not going to enjoy all that cold calling, and you&#8217;re going to want to do it in 2-hour chunks rather than 8-hour chunks.</p>



<p>One day two of calling, you realize that perhaps some of the names on the list are somewhat more likely to be the people you&#8217;re looking for. You run an analysis on past data and you find that people who gave their name at an event and already had a brief conversation in person are 30% more likely to take the next step you&#8217;re hoping for compared to people who just filled out a web form. This is great news—after crunching some numbers you estimate that if you call these event attendees first, you&#8217;re only going to have to call 2,000 names on the list instead of 2,500 in order to hit your goal of 125 more people.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="600" src="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-1024x600.jpg" alt="" class="wp-image-807" srcset="https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-1024x600.jpg 1024w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-300x176.jpg 300w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-768x450.jpg 768w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-1536x901.jpg 1536w, https://unitedinfolytics.com/wp-content/uploads/2022/08/pexels-monstera-5849580-2048x1201.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Time is money, after all. Work smarter and you&#8217;ll have greater impact in less time.</figcaption></figure>



<p>Enter machine learning: let&#8217;s take your earlier insight about some people being more likely to proceed compared to others and put it on steroids. It turns out that the predictors of someone being more interested, more likely to take the desired action are <em>multifactorial</em>, which is another way of saying that a number of different things are predictors. In a sales database your predictors might include having made a prior purchase, having spent more than 20 minutes on the website, having asked a question via website chat, proximity to your physical location (ZIP code), and a host of other things. In a prospective student database, it might include number of prior email clicks, how they found out about your school, whether they have responded to prior text messages, whether they have an in progress application, etc.</p>



<p>With machine learning, you create a training dataset and give it to the algorithm. First you filter your database for training data: people who have been in the system long enough that you know whether they were a &#8220;yes&#8221; or a &#8220;no&#8221;. Someone who has purchased or enrolled in the past is a &#8220;yes&#8221; and someone who indicated interest but has become stale (no longer reading emails, no recent website visits) is a &#8220;no&#8221; because we don&#8217;t think they are ever going to become a &#8220;yes&#8221;. Someone who only indicated interest a month ago isn&#8217;t part of the training dataset at all because you don&#8217;t know if they are going to ultimately be a &#8220;yes&#8221; or a &#8220;no&#8221;. Then you figure out what data you have on these people, and you give the algorithm all the fields you believe might be associated with or predictive of someone taking the next step you are hoping for. These possible predictor columns are called <em>features</em>, and there&#8217;s one final column which is the &#8220;yes&#8221; or &#8220;no&#8221; column that is ultimately what you want the computer to learn to predict. If you want to think statistics, the feature columns are sort of like the independent variables and the yes/no column is the dependent variable and we want the computer to learn to predict the likelihood of a &#8220;yes&#8221; from all the other information we have on a person. ML has a number of advantages over classical statistics and logistic regression, especially if the goal is all that matters and you aren&#8217;t trying to write up a research paper on the topic.</p>



<p><em>Note that in situations involving employment or enrollment, you absolutely want to leave out of the algorithm anything that would introduce bias. Leave out columns like date of birth, age, gender, race, ethnicity, and income if you have that data. Leave out anything that might be reasonably associated with these because your algorithm may will bring unacceptable bias into its predictions this way.</em> In sales settings, this is less of a big deal because how you prioritize marketing and outreach is up to you. In settings where you are offering an <em>opportunity</em> like employment or education, you really need to make sure your algorithm doesn&#8217;t end up disadvantaging people based on demographics.</p>



<h2 class="wp-block-heading">Real-World Outcomes</h2>



<p>I&#8217;ve worked on problems very similar to the example above multiple times, and each time machine learning has been able to create and validate a predictor that really helps focus the time-consuming personal outreach on the people most likely to be interested. Here&#8217;s an example of the results from one such analysis:</p>



<ol class="wp-block-list"><li>The algorithm identifies the top 150 of 5,000 people as being 1-in-4 likelihood to take the desired action. Compare that to the overall 1-in-20 likelihood. Call these 150 people, and you&#8217;re likely to have 37 people taking the desired next step in no time.</li><li>The algorithm identifies the next 900 people on the priority list as being 1-in-9 likelihood to take the desired action—still way better than 1 in 20.</li><li>The algorithm identifies the remaining ~4,000 people as being 1-in-35 likelihood to take the desired action.</li></ol>



<p>If you&#8217;ve heard of the Pareto principal before, this should remind you of the <a href="https://www.forbes.com/sites/kevinkruse/2016/03/07/80-20-rule/?sh=702f1b963814" target="_blank" rel="noreferrer noopener">80/20 rule</a>. What this ultimately means is that in a few hours of machine learning work, you&#8217;ve cut your expected workload from 2,500 calls to just 942 calls. It&#8217;s your choice: you can spend 146 hours calling 2,500 people or you can spend 2-3 hours building a satisfactory machine learning model and then spend 55 hours calling 942 people.</p>



<p>There&#8217;s also some psychological momentum your team will have when most of the people you talk to on the phone are really interested and 1 in 4 take the next step you&#8217;re hoping for versus only getting 1 in 20. It makes the call campaign<em> fun and encouraging</em> instead of annoying. And you end up not wasting the time of people who aren&#8217;t all that likely to be interested in what you offer (the 1-in-35 people referenced above). Everybody wins. You can also use machine learning to figure out who gets mailed promotional material given that is not free like an email blast is. Use your mailing budget the best possible way and have a greater proportion of your material actually read and considered rather than immediately trashed upon arrival.</p>



<p>One final note: if your ML solution or ML consultant is ability to provide you with explanability data, you&#8217;ll also get some indication of which variables matter most in prediction an outcome. While not absolutely essential, the insights from this usually spawn productive strategy discussions.</p>



<h2 class="wp-block-heading">Getting Started</h2>



<p>If working smarter sounds great, the good news is that it&#8217;s never been easier to get started. More and more databases and platforms are coming with some basic machine learning tools built in. For one example and a sense of the effort involved, read the blog post on Salesforce&#8217;s AutoML product, <a href="/2021/12/13/a-review-of-salesforce-einstein-prediction-builder/">Einstein Prediction Builder</a>. At least half of widely-used CRM platforms have something like this although each goes by a different name and is of different quality and capabilities. There&#8217;s a real chance that you&#8217;re already using a platform that has the possibility of basic integrated machine learning pipelines. There&#8217;s still a learning curve to it, but built-in tools like this can be a real advantage even if you need some initial consulting to get it set up or to train your team.</p>



<p>Even if the cloud platforms you currently use don&#8217;t have anything built in, there are integration tools that can get you running with machine learning regardless of your current technology platforms—even if your current dataset is as basic as a spreadsheet. You can also test the water at relatively low cost with a one-time offline machine learning analysis of your database. Get all your records/contacts &#8220;scored&#8221; with a one-week turnaround, and then work through the list to see for yourself the ROI potential in your industry before going all the way to a live and integrated ML pipeline. United InfoLytics is <a href="https://calendly.com/united-infolytics/30min" target="_blank" rel="noreferrer noopener">ready to talk</a> about consulting solutions that fit your budget and are sure to provide near-term ROI and cost savings.</p>



<h2 class="wp-block-heading">Further Reading: Types of Machine Learning Tasks</h2>



<p>Artificial intelligence and machine learning both aim to approximate the ways that humans approach certain learning tasks. Without going into the <a href="https://blogs.nvidia.com/blog/2016/07/29/whats-difference-artificial-intelligence-machine-learning-deep-learning-ai/" target="_blank" rel="noreferrer noopener">difference between AI and ML</a>, you can rest assured that this is not about creating a machine that approximates or exceeds the whole of human intelligence but instead to use learning algorithms to get computers teach themselves to become good at a <em>specific task</em> that a human has defined in advance. It turns out it&#8217;s often better and easier to write computer code that teaches a computer to teach itself than it is to write code where the programmer directly teaches the computer all the human knowledge that applies to the task at hand. The most common types of machine learning tasks include:</p>



<ul class="wp-block-list"><li><strong>CLASSIFICATION</strong>: answering the question &#8220;which is this?&#8221; or &#8220;what is this?&#8221; You give it a photo, it returns &#8220;dog&#8221; or &#8220;cat&#8221; or &#8220;banana.&#8221; Or you give it a the name, length, actors, producer of a movie and it predicts the category &#8220;thriller&#8221; or &#8220;drama.&#8221; Many algorithms go further and return probabilities of the different classification labels such as &#8220;99% chance it&#8217;s a dog but 0.7% chance a cat and 0.3% something else.&#8221;</li><li>BINARY CLASSIFICATION is a special case of classification where there are only two possible responses. It answers something similar to &#8220;is this a yes or is this a no?&#8221; Every transaction you attempt to make with your credit card goes through a lightning-fast binary classification system that returns, &#8220;legitimate&#8221; or &#8220;fraudulent&#8221; in a few milliseconds. More often it&#8217;ll return a percent chance of a transaction being fraudulent rather than just a simple &#8220;yes&#8221; or &#8220;no.&#8221; In sales or enrollment, you can using use binary classification to predict the chance that each outstanding sales contact or each prospective applicant will ultimately purchase or enroll.</li><li><strong>REGRESSION:</strong> Estimating or predicting an unknown number using known information. This could be predicting a student&#8217;s end of year test score or estimating the market value of a home using known data about the student or the home. The main difference from classification is the output being a <strong>number</strong> not a label or probability of a label.</li><li><strong>CLUSTERING:</strong> Identifying similar records in a database, grouping things by similarity. I realize this may sound a bit like classification above but the key here is that we aren&#8217;t coming up with labels that coherently describe the class of things in human language—we&#8217;re just saying that they are similar. Clustering is one approach to the recommendation engines like you&#8217;re used to in online shopping or streaming sites. These sites generally don&#8217;t need to be able to put a precise label on a grouping of things as just knowing they are similar is enough to recommend them.</li><li><strong>FORECASTING:</strong> Look at what has happened in the past and where things are right now and predict at regular intervals what will happen in the future. Think weather forecasting or predicting the movement of the price of a stock.</li></ul>



<p>These are all things that you and I can do with our human intelligence. Why bring a computer into it when we can do it ourselves? The advantages of machine learning are that it can do these tasks very quickly and sometimes even more accurately than the average human can. The speed factor means we can accomplish more with less effort and not spend time doing work that a computer can do for us. The accuracy advantage, which is not guaranteed but is often possible, means that the computer ultimately gets better than most humans at a very specific task. Even if the algorithm turns out to be 5% <em>less accurate</em> than a human, the speed with which it can approach its work makes it all worthwhile, and the algorithm can refer the situations that it is less confident about to a human for manual examination.</p>
<p>The post <a href="https://unitedinfolytics.com/2022/08/18/machine-learning-for-process-and-organizational-transformation/">Machine Learning for Process and Organizational Transformation</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A review of Salesforce Einstein Prediction Builder</title>
		<link>https://unitedinfolytics.com/2021/12/13/a-review-of-salesforce-einstein-prediction-builder/</link>
		
		<dc:creator><![CDATA[Peter VanWylen]]></dc:creator>
		<pubDate>Tue, 14 Dec 2021 00:55:03 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AutoML]]></category>
		<category><![CDATA[Binary Prediction]]></category>
		<category><![CDATA[Einstein Prediction Builder]]></category>
		<category><![CDATA[machine learning]]></category>
		<category><![CDATA[Salesforce]]></category>
		<guid isPermaLink="false">https://unitedinfolytics.com/?p=520</guid>

					<description><![CDATA[<p>Salesforce isn&#8217;t exactly known for AI or Machine Learning (see Gardner magic quadrant), but they are working at it. I was pleased when in 2020 I discovered their Einstein Prediction Builder, which is (of course) an additional charge, but is available for basic usage for free. Any current Salesforce customer can use their &#8220;Try Einstein&#8221; [&#8230;]</p>
<p>The post <a href="https://unitedinfolytics.com/2021/12/13/a-review-of-salesforce-einstein-prediction-builder/">A review of Salesforce Einstein Prediction Builder</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Salesforce isn&#8217;t exactly known for AI or Machine Learning (see <a href="https://www.h2o.ai/gartner-magic-quadrant/">Gardner magic quadrant</a>), but they are working at it. I was pleased when in 2020 I discovered their Einstein Prediction Builder, which is (of course) an additional charge, but is available for basic usage for free. Any current Salesforce customer can use their &#8220;Try Einstein&#8221; program to see what is possible and actually do some real work with it too. Even if you don&#8217;t want to pay, you can start using Prediction Builder to model up to 10 different prediction tasks. As of date of writing (Early 2023), you can only have one turned on and active at any given time, meaning the free level of this service only allows one prediction to be populating predictions onto objects in <strong>real time</strong> as they are created or modified in the system. If you currently use Salesforce, read on to learn more. If not, United InfoLytics can still help you with your Machine Learning and Predictive Analytics needs across other platforms as well.</p>



<p>TL/DR Summary: there&#8217;s a bit of a learning curve to ML but you owe it to yourself to try it using a simple and affordable AutoML tool like this either by setting it up yourself (read carefully below) or <a href="https://unitedinfolytics.com/contact/">getting our team to help you</a> set up a prediction for you ensuring best practices in independent variable selection, training dataset filtering etc.</p>


<div class="wp-block-image">
<figure class="alignright size-full is-resized"><img loading="lazy" decoding="async" width="736" height="478" src="https://unitedinfolytics.com/wp-content/uploads/2021/12/Screen-Shot-2021-12-14-at-9.48.16-AM.png" alt="" class="wp-image-537" style="width:298px;height:194px" srcset="https://unitedinfolytics.com/wp-content/uploads/2021/12/Screen-Shot-2021-12-14-at-9.48.16-AM.png 736w, https://unitedinfolytics.com/wp-content/uploads/2021/12/Screen-Shot-2021-12-14-at-9.48.16-AM-300x195.png 300w" sizes="(max-width: 736px) 100vw, 736px" /></figure>
</div>


<h2 class="wp-block-heading">Types of Predictions</h2>



<p>What sorts of predictions is Einstein Prediction Builder capable of? Basically there are two types of predictions: a binary (yes/no or true/false) prediction or predicting a number through regression (this option is currently in beta). For the binary predictions, it involves making a prediction of the relative probability of an event occurring. For those using Salesforce in sales, this would often be the chance of a given lead making a purchase, or the chance of a quote becoming a deal. Basically it involves looking at a Salesforce object (Lead, Contact, Account, Opportunity, etc.) and making a prediction of the probability of an event occurring, usually a desired outcome like a student enrolling or a customer making another purchase. For the second type or prediction, it involves making a prediction of a number like total sales over the next 12 months across all current customers. This is a bit fancier because each prediction is a number (can be negative or positive, large or small) instead of the binary predictions being a relative probability between 0 and 100. Regression can be used to predict sales of $100 or $100,000 all using the same prediction builder.</p>



<h2 class="wp-block-heading">Review of Einstein Prediction Builder</h2>



<p><meta charset="utf-8">There are some things that Salesforce clearly got right with this product. Even if you don&#8217;t have any specific AI or machine learning training, you can get started with this, and it mostly works even if there are a few bugs you may encounter. In a sense, they might have one of the more user-friendly user interfaces for getting your feet wet in predictive analytics. And if you&#8217;re already on Salesforce, there&#8217;s no reason not to give it a try. Your data is already in the system, and there are no flat files to export and re-import into another machine learning system, no APIs or data exchange to set up. Give yourself 2 hours to play with it and you might create something really useful! Or if you don&#8217;t have the two hours, <a href="https://unitedinfolytics.com/contact/">let United InfoLytics do it for you</a>! With minimal investment, you may end up with a really useful system that helps you focus your efforts on the accounts and contacts that are most likely to purchase, enroll, participate, give, etc.</p>



<p>Basically the process for setting up a binary prediction is:</p>



<ol class="wp-block-list">
<li><strong>Pick an object you want to make predictions on. </strong>All the fields you want to reference must be on this object, and currently you cannot reference related objects. If you need to reference a related object, create a formula field that pulls in this data first.</li>



<li><strong>Define the training set. </strong>This is the data that we now know the answer to: which ones were a &#8220;yes&#8221; and which ones were ultimately a &#8220;no&#8221; or a &#8220;not yet.&#8221; Tell it which accounts, contacts, leads, or opportunities are &#8220;water under the bridge&#8221; such that we have a &#8220;yes&#8221; or a &#8220;no&#8221; or some reasonable estimate on this. You would want to, for example, exclude a lead from the training dataset if it came in over the last 60 days. We shouldn&#8217;t call a new lead that came in yesterday a &#8220;no&#8221; just because they haven&#8217;t purchased yet!</li>



<li><strong>Define a &#8220;yes&#8221; and a &#8220;no&#8221;.</strong> For many, this will be whether there was a sale or not. Help Salesforce know what criteria define a &#8220;yes&#8221; and they&#8217;ll assume all the others in the training set are &#8220;no&#8221;.</li>



<li><strong>Tell Salesforce which fields to use to make predictions.</strong> This is possibly the most tricky step, and it&#8217;s also the most important. You should include anything that you think might be reasonably likely to predict the outcome in some small way. You should be careful not to include things like race, ethnicity, gender, etc. if the prediction needs to be equitable and not learn biases from the training data.</li>



<li><strong>Think carefully about excluding fields that allow in some hindsight bias. </strong>Most important in the prior step is that you must <strong>avoid hindsight bias</strong> by excluding any fields that are in some way linked to a salesforce object taking the desired outcome. Let&#8217;s say that phone number is not generally gathered on most of your inquiry forms whereby new leads and contacts come into the system, but the phone number is always gathered as part of the sale process. If you allow prediction builder to use the phone number field to make predictions, it&#8217;ll do a very funny thing: it&#8217;ll say that the most powerful predictor of someone making a purchase is whether they provided their phone number vs. leaving it blank! But think carefully here: it&#8217;s not actually true. The fact that they made a purchase is what caused them to enter their phone number and not the other way around. My rule of thumb here is simple: include fields that are usually gathered prior to the desired outcome occurring and exclude any fields that are rarely or only sometimes collected but later fully populated after the desired outcome.</li>



<li><strong>Hit go and grab some coffee.</strong> Once you are done defining your prediction, it&#8217;s time to let the machine do some &#8220;learning.&#8221; This is basically where the machine learning algorithms start working looking at all the training data where you supplied a &#8220;yes&#8221; or a &#8220;no&#8221; and developing a model for which other fields predict the desired outcome being more or less likely. Right now, the algorithms it currently uses are (I believe) just Logistic Regression and Random Forest. It tries them both and figures out which one does a better job on the data! It may take 30 minutes to several hours for it to finish the learning process. Just go and start another task and occasionally come back to refresh and check whether it has completed.</li>



<li><strong>Check the prediction scorecard.</strong> Salesforce has made a pretty easy to understand prediction scorecard that&#8217;ll help you avoid the two main problems you may encounter: a prediction that&#8217;s too good and a prediction that&#8217;s no good at all. If your prediction comes back <em>too good</em>, changes are high that you&#8217;ve allowed Salesforce to use a field that is tainted with the hindsight bias discussed above. If your prediction comes back pretty bad, you&#8217;ve either defined the machine learning problem poorly, or you&#8217;ve not given it the features that are most likely to be helpful and predictive, or your prediction problem just isn&#8217;t amenable to the data you currently have in your system and living on that object. Sometimes feature engineering here is helpful, like pulling in summary or calculated fields off of other objects. By adding a few additional &#8220;features&#8221; to your prediction, you may get better performance that starts to make your prediction worth using in real life to prioritize leads, contacts, and accounts for focused follow-up, calls, emails and other outreach.</li>



<li><strong>When satisfied, turn on the prediction!</strong> If your scorecard comes back good, check to make sure that the features it says are good predictors make sense to you as meaningful predictors in your experience in the field you are working in. Anything that seems bogus might just need to be removed from the prediction. Once you&#8217;re happy, turn on the prediction and go get some more coffee. Slowly, it&#8217;ll start filling in predictions on all records that you&#8217;ve asked it to predict upon. Once this is complete, you can begin to act based on these predictions. One great way to start is with a list view or report that sorts records from highest to lowest probability of taking the desired outcome. Then start working the list (make those calls, send some text messages and emails) to see if the prediction plays out in real life. One interesting experiment here is to call the top 20 people on the list and the bottom 20 on the list. Hopefully you&#8217;ll see a significant difference in interest and likelihood of taking the desired actions between the top 20 and the bottom 20. If so, you&#8217;ve proven it works and you should start using this prediction across all your business processes where you are unable to evenly reach out to all contacts and you need to spend more time, effort and money on some over others. While mass email is cheap, phone calls are not. Send mass email to all your contacts—but save your phone calls for the people most likely to convert!</li>
</ol>



<h2 class="wp-block-heading">Caveats and Bugs</h2>



<p>In a short time of working with the system, I encountered two bugs / shortcomings:</p>



<ol class="wp-block-list">
<li>There is an undocumented issue where Prediction Builder is unable to &#8220;see&#8221; any records that haven&#8217;t been modified in the last two years. There is literally no reference to this in their documentation, and I had to go through a very long series of back and forth messages over a month for the problem to get escalated to someone who finally figured out that this was &#8220;intended behavior.&#8221; They said they would update the documentation on this, but honestly this is indicative of a very immature product if they think that all the training data should necessarily be from the last two years, and they don&#8217;t even document this &#8220;feature.&#8221;</li>



<li>Sometimes you can have a working prediction in the system and go in to tweak some small thing (add or remove a feature column or restrict the training dataset in some way) and at the end it refuses to save your changes giving you an error message. The error message doesn&#8217;t make sense and there&#8217;s also no way to resolve it. All you can do is leave the page. Every time this has happened to me (2-3 times) I&#8217;ve lost all my work on a given prediction. They are unable to recover your work, and basically you have to start over on defining the nature of the prediction problem, the positive case, the negative case, the features to use in the prediction, etc. This to me is again a marker of this product being immature. I have high hopes that someday everyone using Salesforce intelligently will be using this tool, but maybe right now it&#8217;s only a chance to get your feet wet and start imagining what is possible with AI/ML across your Salesforce database. I certainly wouldn&#8217;t pay for it yet.</li>
</ol>



<h2 class="wp-block-heading">Technical Details for ML Professionals</h2>



<p>If you&#8217;re a machine learning professional, you will likely be a bit disappointed by some simplifications of the product. For example, you cannot pick a scoring function for the AutoML process. I honestly don&#8217;t even know what it is as currently implemented. You cannot get any sort of area under curve for model evaluation or comparison. You cannot even see what the second best performing model was or what the hyperparameters were. That having been said, you <strong>can</strong> use your ML knowledge to quickly and efficiently get something built and <strong>into production</strong> in an hour of active work plus the necessary coffee breaks while the model is trained and scored. This is better than can be said for many other machine learning pipelines! If your company or your client is using Salesforce, it&#8217;s worth a try as the investment is very low and the return on investment possibly very high in terms of increased sales with decreased effort.</p>
<p>The post <a href="https://unitedinfolytics.com/2021/12/13/a-review-of-salesforce-einstein-prediction-builder/">A review of Salesforce Einstein Prediction Builder</a> appeared first on <a href="https://unitedinfolytics.com">United InfoLytics</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
