Learning Library

← Back to Library

Supervised vs Unsupervised Machine Learning

Key Points

  • Supervised machine learning uses labeled data to train models that can predict specific outcomes, such as whether factory robots need maintenance (binary classification) or which of several actions are required (multiclass classification).
  • Unsupervised machine learning discovers hidden patterns in data without predefined labels, enabling insights when no explicit outcomes are known.
  • Regression, another supervised technique, predicts continuous values (e.g., robot temperature) and can be used for monitoring and anomaly detection rather than simple yes/no decisions.
  • By feeding real‑time metrics into these models, businesses can automate maintenance scheduling, anticipate equipment failures, and optimize operational decisions.

Full Transcript

# Supervised vs Unsupervised Machine Learning **Source:** [https://www.youtube.com/watch?v=3fsy2oheRdg](https://www.youtube.com/watch?v=3fsy2oheRdg) **Duration:** 00:06:05 ## Summary - Supervised machine learning uses labeled data to train models that can predict specific outcomes, such as whether factory robots need maintenance (binary classification) or which of several actions are required (multiclass classification). - Unsupervised machine learning discovers hidden patterns in data without predefined labels, enabling insights when no explicit outcomes are known. - Regression, another supervised technique, predicts continuous values (e.g., robot temperature) and can be used for monitoring and anomaly detection rather than simple yes/no decisions. - By feeding real‑time metrics into these models, businesses can automate maintenance scheduling, anticipate equipment failures, and optimize operational decisions. ## Sections - [00:00:00](https://www.youtube.com/watch?v=3fsy2oheRdg&t=0s) **Supervised vs Unsupervised Machine Learning** - The speaker explains how labeled data enables supervised learning for prediction (e.g., robot maintenance) while unsupervised learning discovers hidden patterns without labels. - [00:03:07](https://www.youtube.com/watch?v=3fsy2oheRdg&t=187s) **Untitled Section** - ## Full Transcript
0:00Your business generates mountains of data, but are you really taking advantage of the 0:04insights that could reveal? 0:07You can use machine learning a branch of AI to analyze your data and predict future outcomes 0:13or identify hidden patterns. 0:15Today I'll cover two approaches, namely supervised and unsupervised machine learning. 0:21The big difference between the two is how the training data is labeled. 0:25As the name suggests, supervised learning needs guidance. 0:29We do this by using label data sets. 0:32A label is simply a known value that we specify on each row in the data set. 0:38It could be something as simple as a binary yes or no, a category or a score. 0:44But what if we don't have all the information needed to assign a helpful label? 0:48Well, that's when unsupervised learning comes into play. 0:52With this approach, we use machine learning to detect hidden patterns in data without 0:57our help. 0:58I think a few examples will help illustrate the big differences. 1:02Let's start with supervised machine learning. 1:05Say we run multiple factories, each with robots that need maintenance, but when exactly? 1:10Well, we know from experience that the temperature of our robots and the level of vibration affects 1:17their server schedule. 1:18So we decide to monitor those attributes. 1:21This table contains the information we've collected. 1:24The goal is to get our model to use the data to predict the label maintenance needed, yes 1:31or no. 1:32And basically, that's supervised learning. 1:34We provide labeled data, and supervised learning produces a model which can accurately predict 1:40that label. 1:41Now, when the prediction is something like yes or no maintenance needed or not needed, 1:47we call that binary classification. 1:50Then there's multiclass classification. 1:52It's a bit of a tongue twister that indicates any number of states. 1:56So in our robot example, a multiclass classification might indicate if the robot needs maintenance 2:03or not, needs replacement, or just need some rest. 2:09In other words, the multiclass approach provides more context using our binary classification 2:15model. 2:16We were able to schedule maintenance on demand by feeding real time metrics into our model 2:20and getting a simple yes or no using the multiclass classification model. 2:25We got that and we added whether we might need a replacement robot or could just give 2:31a robot a break. 2:33Another popular form of supervised machine learning is called regression. 2:35Regression is used when you want to predict a continuous value like temperature. 2:42Back to our factory. 2:43We can train a model to predict what a robot's temperature should be, given how hot it is 2:49in the factory and the robot's power consumption. 2:53With that model, we can compare the predicted temperature to the robot's actual temperature. 2:58Unlike our first example where we predicted maintenance needed or not with regression, 3:03we might use a dashboard to keep an eye on the situation. 3:07Instead of getting a predictive yes or no. 3:09Okay, now we understand the basics of supervised machine learning. 3:13Let's take a look at unsupervised machine learning. 3:15Remember, this is the approach that learns from a data set without labels. 3:20Instead, we look for patterns in the data. 3:23There are three main types of unsupervised learning. 3:26The first is called clustering, which groups unlabeled data based on similar characteristics. 3:32For example, an online store might use clustering to develop customer personas. 3:37That group people with similar buying patterns. 3:40So how is clustering helpful? 3:42Well, take a look at this dataset. 3:44Even though this is relatively small, it's still hard for the human eye to detect any 3:49patterns. 3:50Now, look at this image we produce with clustering in this 3D diagram. 3:55We've plotted out the numbers in that table. 3:58Now we can easily see clusters or spot any outliers. 4:04This has major implications for online retailers. 4:07Using this model you can tailor your user experience for each group. 4:11You can also flag customer behavior that doesn't fit any persona and could be identity fraud. 4:18The next type of unsupervised machine learning is called association. 4:23Association is used to identify relationships in the data. 4:27Picture your music streaming playlist when your platform pops up a message. 4:32Listeners who liked X also liked Y that's association. 4:38Finally, there's dimensionality reduction. 4:41It helps eliminate noisy, redundant data from unmanageable datasets. 4:46This reduction simplifies the input data before training a model. 4:51It's sort of a smart, tactical way to trim fat and actually get more accurate results 4:56with less data. 4:58Okay, so that's my brief overview of supervised versus unsupervised machine learning, but 5:04the question remains, which approach is right for you? 5:08If you want to predict outcomes and you're willing to train your model by manually labeling 5:12your data, supervised learning is your best bet. 5:16In our factory example, knowing what robots needed servicing reduced downtime with proactive 5:21and cost effective maintenance, but if you have lots of data and are struggling to identify 5:27patterns, go with unsupervised learning. 5:30It can help clear the fog that's preventing you from seeing what the data is telling you. 5:34In our simple music shopping example, grouping shared interests helped improve the customer 5:39experience and boosted sales. 5:43When you're ready to start, think of as an experiment. 5:46There are many different tools you can try. 5:48Check out the links in the description to get started. 5:50If you want more information on machine learning and other technology topics, check out the 5:55free resources available to you on developer.ibm.com If you like this video and you want to see 6:00more, please like and subscribe. 6:03If you have any questions, drop them in the comments below. 6:05[00:00:00][0.0]