Skip to main content

Clustering by k-means

  • Chapter
  • First Online:
Data Mining in Agriculture

Part of the book series: Springer Optimization and Its Applications ((SOIA,volume 34))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Antonio Mucherino .

Rights and permissions

Reprints 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

Publish with us

Policies and ethics