Questions tagged [fuzzy-c-means]

Fuzzy clustering algorithms are used in cluster analysis which is "fuzzy" in the same sense as fuzzy logic.

https://en.wikipedia.org/wiki/Fuzzy_clustering

44 questions
1
vote
2 answers

Problem with Ruining c-mean clustering on my data in R program

For this data how to fix this problem > x=data.frame(c(v1="a" ,"b" ,"c" ,"d" ,"e"), + v2=c(97 ,90 ,93 ,97 ,90), + v3=c( 85 ,91 ,87 ,91 ,93)) > library(e1071) > f <- cmeans(x, 2) Error in cmeans(x, 2) : NA/NaN/Inf in foreign function call (arg 1) In…
zhyan
  • 261
  • 4
  • 14
1
vote
2 answers

Fuzzy C-means clustering in ImageSegmentation.jl

I am trying to cluster different regions of an image using Fuzzy C-means clustering with ImageSegmentation.jl using ImageSegmentation, Images fl = load("flower.jpg") fuzzy_fl = fuzzy_cmeans(fl,3,2) It gives an error like this: MethodError: no…
1
vote
0 answers

Calculate the distances from a center point to all points and choosing the point which is the furthest in R?

I'm new to R and I want to implement the following algorithm: Step 1. Pick one of the dataset points randomly as the center of the first cluster Step 2. For the next cluster, find the point with maximum distance to the center of the previous…
Muhammed Eltabakh
  • 375
  • 1
  • 10
  • 24
1
vote
0 answers

cmeans {e1071} vs. fanny {cluster}

I was trying to do fuzzy k-means clustering with a dataset of dimension 15'000 x 7. I first tried the function fanny and it took R almost 7 hours to get a result (I also tried other parameters but it's always slow; with a sample of 5'000 rows it…
Vanessa
  • 33
  • 1
  • 6
1
vote
2 answers

effect of ligting on image segmentation in matllab

I'm trying to do a segmentation task on the below picture. I'm using fuzzy c-means with some minimal pre-processing. The segmentation will have 3 classes: background(the blue region), meat(the red region) and fat(the white region). The background…
Saam
  • 385
  • 1
  • 3
  • 12
1
vote
1 answer

Save image that has been segmented in matlab

I would like to know how can we save an image that has been segmented (using fuzzy c-means method) in MATLAB where the end product are images of each cluster group. I would like to save the images to use later.
1
vote
0 answers

Fuzzy c-means and using specific cluster values

Say that I want to use specific cluster center values in the fcm function? Can I assign the cluster center values while running the fcm function? Thanks.
Simplicity
  • 47,404
  • 98
  • 256
  • 385
1
vote
2 answers

a simple/practical example of fuzzy c-means algorithm

I am writing my master thesis on the subject of dynamic keystroke authentication. To support ongoing research, I am writing code to test out different methods of feature extraction and feature matching. My current simple approach just checks if the…
fin
  • 242
  • 3
  • 7
0
votes
0 answers

Why is Fuzzy CMeans compute time varying widely for m?

I am running a cmeans analysis on a series of 20k document embeddings, with the number of clusters set to 400. For m (fuzziness parameter) from 2-4, the algorithm completes in hours, however for m <1.5 it is taking days? I am struggling to…
osckt
  • 11
  • 1
0
votes
0 answers

Why is Fuzzy C means better than K means in business point of view?

Like fuzzy c means is better as it shows the membership of the data points to any cluster but how to explain this point to a non technical person? I tried finding advantages of fuzzy c means over k means but I couldn't find the way to explain it to…
0
votes
0 answers

Which parameters are involved for the following Fuzzy C -Means clustering algorithm

How can I describe the parameters for the fuzzy c-means clustering algorithm? import numpy as np from fcmeans import FCM my_model = FCM(n_clusters=12) my_model output: FCM(n_clusters=12, max_iter=150, m=2.0, error=1e-05, random_state=None,…
Pranab
  • 379
  • 3
  • 11
0
votes
0 answers

How to implement Fuzzy-C Means Clustering on superpixels?

I have a colored image with size 512x512x3. I have used OpenCV's SLIC superpixel segmentation technique to create superpixels from my image as follows: img = cv2.imread("C://Users//Dell//Desktop//myimage.jpg") slic =…
0
votes
0 answers

Fuzzy clustering in python

I am trying to make documents fuzzy clustering. The idea is to get a membership score for each document into each cluster. I have computed the TF-IDF matrix for the entire corpus and then, and I have attempted to use the cmeans clustering from…
MARCO LAGALLA
  • 227
  • 5
  • 12
0
votes
1 answer

How to use Fuzzy c means for grey scale image processing in Python?

I have 512 * 512 grey scale image.I want to use fcm. But I can not get the fuzzy clusered array after using the code below.As given image is S * N then the fuzzy clustered matrix must be S * N.S means number of features,N means number of dataset.But…
Alena
  • 1
0
votes
1 answer

Fuzzy C means in python for brain tumor detection

I found this code on GitHub and i try to understand the behavior of functions.I tried to compare this code with the formulas (from p. 6 of this paper): I cannot find where this formulas are implemented into the code.Can anyone help me to explain…