1 / 45

Tutorial On Fuzzy Clustering

Tutorial On Fuzzy Clustering. Jan Jantzen Technical University of Denmark jj@oersted.dtu.dk. Abstract. Problem: To extract rules from data Method: Fuzzy c-means Results: e.g., finding cancer cells. Cluster (www.m-w.com).

pules
Télécharger la présentation

Tutorial On Fuzzy Clustering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tutorial On Fuzzy Clustering Jan Jantzen Technical University of Denmark jj@oersted.dtu.dk

  2. Abstract • Problem: To extract rules from data • Method: Fuzzy c-means • Results: e.g., finding cancer cells

  3. Cluster (www.m-w.com) • A number of similar individuals that occur together as a: two or more consecutive consonants or vowels in a segment of speech b: a group of houses (...) c: an aggregation of stars or galaxies that appear close together in the sky and are gravitationally associated.

  4. Cluster analysis (www.m-w.com) • A statistical classification technique for discovering whether the individuals of a population fall into different groups by making quantitative comparisons of multiple characteristics.

  5. Vehicle Example

  6. 3500 Lorries 3000 2500 Sports cars 2000 Weight [kg] 1500 Medium market cars 1000 500 100 150 200 250 300 Top speed [km/h] Vehicle Clusters

  7. 3500 Lorries 3000 2500 Sports cars 2000 Weight [kg] 1500 Medium market cars 1000 500 100 150 200 250 300 Top speed [km/h] Terminology Object or data point feature space label cluster feature feature

  8. Example: Classify cracked tiles

  9. 475Hz 557Hz Ok? -----+-----+--- 0.958 0.003 Yes 1.043 0.001 Yes 1.907 0.003 Yes 0.780 0.002 Yes 0.579 0.001 Yes 0.003 0.105 No 0.001 1.748 No 0.014 1.839 No 0.007 1.021 No 0.004 0.214 No Table 1: frequency intensities for ten tiles. Tiles are made from clay moulded into the right shape, brushed, glazed, and baked. Unfortunately, the baking may produce invisible cracks. Operators can detect the cracks by hitting the tiles with a hammer, and in an automated system the response is recorded with a microphone, filtered, Fourier transformed, and normalised. A small set of data is given in TABLE 1 (adapted from MIT, 1997).

  10. Algorithm: hard c-means (HCM) (also known as k means)

  11. Plot of tiles by frequencies (logarithms). The whole tiles (o) seem well separated from the crackedtiles (*). The objective is to find the two clusters.

  12. Place two cluster centres (x) at random. • Assign each data point (* and o) to the nearest cluster centre (x)

  13. Compute the new centre of each class • Move the crosses (x)

  14. Iteration 2

  15. Iteration 3

  16. Iteration 4 (then stop, because no visible change) Each data point belongs to the cluster defined by the nearest centre

  17. M = 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 • The membership matrix M: • The last five data points (rows) belong to the first cluster (column) • The first five data points (rows) belong to the second cluster (column)

  18. Membership matrixM cluster centre i cluster centre j data point k distance

  19. c-partition All clusters C together fills the whole universe U Clusters do not overlap A cluster C is never empty and it is smaller than the whole universe U There must be at least 2 clusters in a c-partition and at most as many as the number of data points K

  20. Objective function Minimise the total sum of all distances

  21. Algorithm: fuzzy c-means (FCM)

  22. Each data point belongs to two clusters to different degrees

  23. Place two cluster centres • Assign a fuzzy membership to each data point depending on distance

  24. Compute the new centre of each class • Move the crosses (x)

  25. Iteration 2

  26. Iteration 5

  27. Iteration 10

  28. Iteration 13 (then stop, because no visible change) Each data point belongs to the two clusters to a degree

  29. M = 0.0025 0.9975 0.0091 0.9909 0.0129 0.9871 0.0001 0.9999 0.0107 0.9893 0.9393 0.0607 0.9638 0.0362 0.9574 0.0426 0.9906 0.0094 0.9807 0.0193 • The membership matrix M: • The last five data points (rows) belong mostly to the first cluster (column) • The first five data points (rows) belong mostly to the second cluster (column)

  30. Fuzzy membership matrixM Fuzziness exponent Point k’s membership of cluster i Distance from point k to current cluster centre i Distance from point k to other cluster centres j

  31. Fuzzy membership matrixM Gravitation to cluster i relative to total gravitation

  32. I i2 i1 U R1 R2 Electrical Analogy Same form as mik

  33. Fuzzy Membership o is with q = 1.1, * is with q = 2 1 Membership of test point 0.5 0 1 2 3 4 5 Data point Cluster centres

  34. Fuzzy c-partition All clusters C together fill the whole universe U. Remark: The sum of memberships for a data point is 1, and the total for all points is K Not valid: Clusters do overlap A cluster C is never empty and it is smaller than the whole universe U There must be at least 2 clusters in a c-partition and at most as many as the number of data points K

  35. Example: Classify cancer cells Normal smear Severely dysplastic smear Using a small brush, cotton stick, or wooden stick, a specimen is taken from the uterin cervix and smeared onto a thin, rectangular glass plate, a slide. The purpose of the smear screening is to diagnose pre-malignant cell changes before they progress to cancer. The smear is stained using the Papanicolau method, hence the name Pap smear. Different characteristics have different colours, easy to distinguish in a microscope. A cyto-technician performs the screening in a microscope. It is time consuming and prone to error, as each slide may contain up to 300.000 cells. Dysplastic cells have undergone precancerous changes. They generally have longer and darker nuclei, and they have a tendency to cling together in large clusters. Mildly dysplastic cels have enlarged and bright nuclei. Moderately dysplastic cells have larger and darker nuclei. Severely dysplastic cells have large, dark, and often oddly shaped nuclei. The cytoplasm is dark, and it is relatively small.

  36. Possible Features • Nucleus and cytoplasm area • Nucleus and cyto brightness • Nucleus shortest and longest diameter • Cyto shortest and longest diameter • Nucleus and cyto perimeter • Nucleus and cyto no of maxima • (...)

  37. Classes are nonseparable

  38. moderate Ok light Ok severe Hard Classifier (HCM) A cell is either one or the other class defined by a colour.

  39. moderate Ok light Ok severe Fuzzy Classifier (FCM) A cell can belong to several classes to a Degree, i.e., one column may have several colours.

  40. 1.5 1 0.5 Output1 0 -0.5 -1 -1.5 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Input Function approximation Curve fitting in a multi-dimensional space is also called function approximation. Learning is equivalent to finding a function that best fits the training data.

  41. 2 1 0 -1 -2 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1 0.8 0.6 0.4 0.2 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Approximation by fuzzy sets

  42. Procedure to find a model • Acquire data • Select structure • Find clusters, generate model • Validate model

  43. Conclusions • Compared to neural networks, fuzzy models can be interpreted by human beings • Applications: system identification, adaptive systems

  44. Links • J. Jantzen: Neurofuzzy Modelling. Technical University of Denmark: Oersted-DTU, Tech report no 98-H-874 (nfmod), 1998. URL http://fuzzy.iau.dtu.dk/download/nfmod.pdf • PapSmear tutorial. URL http://fuzzy.iau.dtu.dk/smear/ • U. Kaymak: Data Driven Fuzzy Modelling. PowerPoint, URL http://fuzzy.iau.dtu.dk/tutor/ddfm.htm

  45. Exercise: fuzzy clustering (Matlab) • Download and follow the instructions in this text file: http://fuzzy.iau.dtu.dk/tutor/fcm/exerF5.txt • The exercise requires Matlab (no special toolboxes are required)

More Related