ArticleslgStudy

computer science

Fuzzy clustering

Fuzzy clustering is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Fuzzy clustering rather than just read about it. In short: Fuzzy clustering (also referred to as soft clustering or soft k-means) is a form of clustering in which each data point can belong to more than one cluster. Clustering or cluster analysis involves assigning data points to clusters such that items in the same cluster are as similar as possible, while items belonging to different clusters are as dissimilar as possible.

Fuzzy clustering — main illustration
Fuzzy clustering — illustration

Key takeaways

  • Fuzzy clustering belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Fuzzy clustering to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Fuzzy clustering from memory before moving on to harder problems.

Reference excerpt

Fuzzy clustering (also referred to as soft clustering or soft k-means) is a form of clustering in which each data point can belong to more than one cluster. Clustering or cluster analysis involves assigning data points to clusters such that items in the same cluster are as similar as possible, while items belonging to different clusters are as dissimilar as possible. Clusters are identified via similarity measures. These similarity measures include distance, connectivity, and intensity. Different similarity measures may be chosen based on the data or the application.

Comparison to hard clustering In non-fuzzy clustering (also known as hard clustering), data are divided into distinct clusters, where each data point can only belong to exactly one cluster. In fuzzy clustering, data points can potentially belong to multiple clusters. For example, an apple can be red or green (hard clustering), but an apple can also be red AND green (fuzzy clustering). Here, the apple can be red to a certain degree as well as green to a certain degree. Instead of the apple belonging to green [green = 1] and not red [red = 0], the apple can belong to green [green = 0.5] and red [red = 0.5]. These value are normalized between 0 and 1; however, they do not represent probabilities, so the two values do not need to add up to 1.

Membership Membership grades are assigned to each of the data points (tags). These membership grades indicate the degree to which data points belong to each cluster. Thus, points on the edge of a cluster, with lower membership grades, may be in the cluster to a lesser degree than points in the center of cluster.

Fuzzy C-means clustering One of the most widely used fuzzy clustering algorithms is the Fuzzy C-means clustering (FCM) algorithm.

History Fuzzy c-means (FCM) clustering was developed by J.C. Dunn in 1973, and improved by J.C. Bezdek in 1981.

General description The fuzzy c-means algorithm is very similar to the k-means algorithm:

Choose a number of clusters. Assign coefficients randomly to each data point for being in the clusters. Repeat until the algorithm has converged (that is, the coefficients' change between two iterations is no more than ε, the given sensitivity threshold) : Compute the centroid for each cluster (shown below). For each data point, compute its coefficients of being in the clusters.

Centroid Any point x has a set of coefficients giving the degree of being in the kth cluster wk(x). With fuzzy c-means, the centroid of a cluster is the mean of all points, weighted by their degree of belonging to the cluster, or, mathematically, ck=∑xwk(x)mx∑xwk(x)m, where m is the hyper- parameter that controls how fuzzy the cluster will be (Where the fuzzier cluster means the cluster is less clear, and a data point can belong to multiple clusters at the same time.). The higher it is, the fuzzier the cluster will be in the end.

Algorithm The FCM algorithm attempts to partition a finite collection of n elements X={𝐱1,...,𝐱n} into a collection of c fuzzy clusters with respect to some given criterion. Given a finite set of data, the algorithm returns a list of c cluster centres C={𝐜1,...,𝐜c} and a partition matrix W=wi,j∈[0,1],i=1,...,n,j=1,...,c, where each element, wij , tells the degree to which element, 𝐱i, belongs to cluster 𝐜j. The FCM aims to minimize an objective function:

J(W,C)=∑i=1n∑j=1cwijm‖𝐱i−𝐜j‖2, where:

wij=1∑k=1c(‖𝐱i−𝐜j‖‖𝐱i−𝐜k‖)2m−1.

Comparison to K-means clustering K-means clustering also attempts to minimize the objective function shown above, except that in K-means, the membership values are either zero or one, and cannot take values in between, i.e. wij∈{0,1}. In Fuzzy C-means, the degree of fuzziness is parametrized by m∈(1,∞), where a larger m results in fuzzier clusters. In the limit m→1, the memberships, wij , converge to 0 or 1, and the Fuzzy C-means objective coincides with that of K-means. In the absence of experimentation or domain knowledge, m is commonly set to 2. The algorithm minimizes intra-cluster variance as well, but has the same problems as 'k'-means; the minimum is a local minimum, and the results depend on the initial choice of weights.

Implementation There are several implementations of this algorithm that are publicly available.

Related algorithms Fuzzy C-means (FCM) with automatically determined for the number of clusters could enhance the detection accuracy. Using a mixture of Gaussians along with the expectation-maximization algorithm is a more statistically formalized method which includes some of these ideas: partial membership in classes.

Example To better understand this principle, a classic example of mono-dimensional data is given below on an x axis.

This data set can be traditionally grouped into two clusters. By selecting a threshold on the x-axis, the data is separated into two clusters. The resulting clusters are labelled 'A' and 'B', as seen in the following image. Each point belonging to the data set would therefore have a membership coefficient of 1 or 0. This membership coefficient of each corresponding data point is represented by the inclusion of the y-axis.

In fuzzy clustering, each data point can have membership to multiple clusters. By relaxing the definition of membership coefficients from strictly 1 or 0, these values can range from any value from 1 to 0. The following image shows the data set from the previous clustering, but now fuzzy c-means clustering is applied. First, a new threshold value defining two clusters may be generated. Next, new membership coefficients for each data point are generated based on clusters centroids, as well as distance from each cluster centroid.

As one can see, the middle data point belongs to cluster A and cluster B. the value of 0.3 is this data point's membership coefficient for cluster A .

Applications and Extensions Clustering problems have applications in surface science, biology, medicine, psychology, economics, and many other disciplines. Fuzzy c-means has been extended in various ways (Gustafson-Kessel, Gath-Geva, possibilistic c-means, kernel-based fuzzy c-means, and partially provided centroids fuzzy c-means.

… excerpt ends here. Continue reading the full article.

Illustrations

Fuzzy clustering illustration
Fuzzy clustering illustration
Fuzzy clustering: Image segmented by fuzzy clustering, with the original (top left), clustered (top right), and membership map (bottom)
Image segmented by fuzzy clustering, with the original (top left), clustered (top right), and membership map (bottom)

Worked examples

Example 1 — a first encounter with Fuzzy clustering

Start with the simplest possible case. Write down what Fuzzy clustering claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Fuzzy clustering before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Fuzzy clustering ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Fuzzy clustering

In research
Fuzzy clustering appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Fuzzy clustering in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Fuzzy clustering is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cluster analysis algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Fuzzy clustering outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Fuzzy clustering” →

How to study Fuzzy clustering in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Fuzzy clustering means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Fuzzy clustering out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Fuzzy clustering in simple terms?

Fuzzy clustering (also referred to as soft clustering or soft k-means) is a form of clustering in which each data point can belong to more than one cluster. Clustering or cluster analysis involves assigning data points to clusters such that items in the same cluster are as similar as possible, whil…

Why does Fuzzy clustering matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Fuzzy clustering?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Fuzzy clustering.

Tags

  • Cluster analysis algorithms

Keep exploring