From the series: Introduction to Machine Learning
Seth DeLand, MathWorks
Get an overview of unsupervised machine learning, which looks for patterns in datasets that don’t have labeled responses. You’d use this technique when you want to explore your data but don’t yet have a specific goal, or you’re not sure what information the data contains. It’s also a good way to reduce the dimensionality of your data.
Most unsupervised learning techniques are a form of cluster analysis. Clustering algorithms fall into two broad groups:
This video uses examples to illustrate hard and soft clustering algorithms, and it shows why you’d want to use unsupervised machine learning to reduce the number of features in your dataset.
Unsupervised machine learning looks for patterns in datasets that don’t have labeled responses.
You’d use this technique when you want to explore your data but don’t yet have a specific goal, or you’re not sure what information the data contains.
It’s also a good way to reduce the dimension of your data.
As we’ve previously discussed, most unsupervised learning techniques are a form of cluster analysis, which separates data into groups based on shared characteristics.
Clustering algorithms fall into two broad groups:
For context, here’s a hard clustering example:
Say you’re an engineer building cell phone towers. You need to decide where, and how many, towers to construct. To make sure you’re providing the best signal reception, you need to locate the towers within clusters of people.
To start, you need an initial guess at the number of clusters. To do this, compare scenarios with three towers and four towers to see how well each is able to provide service.
Because a phone can only talk to one tower at a time, this is a hard clustering problem.
For this, you could use k-means clustering, because the k-means algorithm treats each observation in the data as an object having a location in space. It finds cluster centers, or means, that reduce the total distance from data points to their cluster centers.
So, that was hard clustering. Let’s see how you might use a soft clustering algorithm in the real world.
Pretend you’re a biologist analyzing the genes involved in normal and abnormal cell division. You have data from two tissue samples, and you want to compare them to determine whether certain patterns of gene features correlate to cancer.
Because the same genes can be involved in several biological processes, no single gene is likely to belong to one cluster only.
Apply a fuzzy c-means algorithm to the data, and then visualize the clusters to see which groups of genes behave in similar ways.
You can then use this model to help see which features correlate with normal or abnormal cell division.
This covers the two main techniques (hard and soft clustering) for exploring data with unlabeled responses.
Remember though, that you can also use unsupervised machine learning to reduce the number of features, or the dimensionality, of your data.
You’d do this to make your data less complex – especially if you’re working with data that has hundreds or thousands of variables. By reducing the complexity of your data, you’re able to focus on the important features and gain better insights.
Let's look at 3 common dimensionality reduction algorithms:
In this video, we took a closer look at hard and soft clustering algorithms, and we also showed why you’d want to use unsupervised machine learning to reduce the number of features in your dataset.
As for your next steps:
Unsupervised learning might be your end goal. If you’re just looking to segment data, a clustering algorithm is an appropriate choice.
On the other hand, you might want to use unsupervised learning as a dimensionality reduction step for supervised learning. In our next video we’ll take a closer look at supervised learning.
For now, that wraps up this video. Don’t forget to check out the description below for more resources and links.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .Select web site
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.