Abstract
Clustering techniques are used for finding suitable groupings of samples belonging to a given set of data. There is no knowledge a priori about these data. Therefore, such set of samples cannot be considered as a training set, and classification techniques cannot be used in this case. The k-means algorithm is one of the most popular algorithms for clustering [103]. It is one of the most used algorithms for data mining, as it has been placed among the top 10 algorithms for data mining in [237].
The k-means algorithm partitions a set of data into a number k of disjoint clusters by looking for inherent patterns in the set. The parameter k is usually much smaller than the dimension of the set of samples, and, in general, it needs to have a predetermined value before using the algorithm. There are cases where the value of k can be derived from the problem studied. For instance, in the example of the blood test analysis (see Section 1.1), the aim is to distinguish between healthy and sick patients. Hence, two different clusters can be defined, and then k = 2. In other applications, however, the parameter k may not be defined as easily. In the example of separating good apples from bad ones (see Section 1.1), images of apples need to be analyzed. The set of apple images can be partitioned in different ways. One partition can be obtained by dividing apples into two clusters, one containing apples with defects and another one containing good apples. In this case k = 2. However, defective apples can be classified based on the degree of the defect. For instance, if the apples have a defect which is not very visible, then these apples could be sold with a lower price. Therefore, even defective apples can be grouped in different clusters. In this case, k shows the number of defects that are taken into consideration. When there is uncertainty on the value of the parameter k, a set of possible values is considered and the algorithm is carried out for each of the values. The best obtained partition in clusters can then be considered.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2009 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Mucherino, A., Papajorgji, P.J., Pardalos, P.M. (2009). Clustering by k-means. In: Data Mining in Agriculture. Springer Optimization and Its Applications, vol 34. Springer, New York, NY. https://doi.org/10.1007/978-0-387-88615-2_3
Download citation
DOI: https://doi.org/10.1007/978-0-387-88615-2_3
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-88614-5
Online ISBN: 978-0-387-88615-2
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)