K means clustering in ECG Signal
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(3 个)
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 个评论
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
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
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
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 Center 和 File Exchange 中查找有关 ECG / EKG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!