K means clustering in ECG Signal

조회 수: 1 (최근 30일)
lina
lina 2012년 4월 21일
Hi Everyone,
Is there anyone knows how to perform the accurate K-Means Clustering in the ECG Signal, I have tried in many different K, but look bad.
Thanks in advance, Lina

답변 (3개)

Junaid
Junaid 2012년 4월 21일
Vlfeat is one the best opensource library for many computer vision and machine learning algorithms. It has quite few clustering algorithms. I hope it will help you. VLFEAT
  댓글 수: 2
Junaid
Junaid 2012년 4월 21일
Ooops. You interested to know what should be accurate value of K ?
lina
lina 2012년 4월 22일
Hi Junaid, all what I want to do is how to define the optimum K in the ECG signal. Since ECG signal has many various values so a quite difficult to define the good K.

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2012년 4월 22일
I don't know how that would work. An ecg signal is a waveform of continuous amplitudes. Exactly why would you want to cluster it and what would the clusters mean? Why do you even think that there are clusters?
  댓글 수: 6
lina
lina 2012년 4월 22일
Savitsky-Golay filtering and Wlash-Hadamard I have a quite familiar with these two algorithms.
My background in Biomedical Imaging, the final purpose using K-Means is to implement in the 2D and 3D (image).
But I also want to try to implement it in the some 1D signal, since before I have success to implement it in the some 1D signal such as Square and Sinus signal without distortion. But the biggest problem here, again it's very difficult to define the good K in noisy ECG signal. It's very important, the bad K make not error correction I get in the results but more obviously distorted. Could you give me any idea, the better way to done with clustering of 1D noisy ECG ??
Image Analyst
Image Analyst 2012년 4월 22일
You've still not given me a good idea of what the clusters would mean. Let's say you have 4 clusters, so you're going to take a continuous voltage waveform and reduce it from infinite voltages to just 4 voltages. What is the meaning of cluster #1? I still don't get it.
Have you searched the File Exchange for ecg? My expertise is not in ecg or 1D signal analysis.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2012년 4월 22일
There is no general algorithm to determine the "best" number of clusters for k-mean clustering.
The "best" number depends upon having an extra function to decide how "good" a particular clustering is, and the assumptions in any one such function will never match all circumstances. Recall that you can get a perfect fit by using the same number of clusters as you have samples, so preferring any number of clusters smaller than that is based upon some kind of trade-off, some kind of per-cluster "cost", and that "cost" is going to differ from situation to situation.
  댓글 수: 3
Walter Roberson
Walter Roberson 2012년 4월 22일
If you had a number of different noisy versions of the _same_ ecg signal, I guess you could potentially cluster piece-wise to arrive at waypoint approximations of the original signal. But if you did have that, it would seem to make more sense to average the noisy version ?
Image Analyst
Image Analyst 2012년 4월 22일
I still don't get it. As long as the waveforms were aligned with respect to time you could just average them, like you said. With clusters you'd have just one cluster for one time point and you'd take the centroid, which is just the mean again. I don't know what else clusters could possibly represent. You can't do clusters across time or else all you'd get are clusters like "high voltages," "mid-level voltages," and "low voltages," or something like that, which is pretty useless, or at least a complicated way of arriving at that (as compared to thresholding).
I'm beginning to think she just heard about some cool algorithm called "k-means" and wanted to apply it somehow to ecg signals, regardless of whether it was applicable or appropriate or not.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 ECG / EKG에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by