Skip to main content
QUICK REVIEW

[Paper Review] A More Precise Elbow Method for Optimum K-means Clustering

Indra Herdiana, Maryam Kamal|ArXiv.org|Feb 2, 2025
Advanced Clustering Algorithms ResearchComputer Science6 citations
TL;DR

This paper makes the elbow method for choosing K in K-means objective by introducing an objective angle-based criterion to identify the elbow, using slopes of SSE vs. k and a derivative-inspired formula to compute the critical angle.

ABSTRACT

K-means clustering is an unsupervised clustering method that requires an initial decision of number of clusters. One method to determine the number of clusters is the elbow method, a heuristic method that relies on visual representation. The method uses the number based on the elbow point, the point closest to 90 degrees that indicates the most optimum number of clusters. This research improves the elbow method such that it becomes an objective method. We use the analytical geometric formula to calculate an angle between lines and real analysis principle of derivative to simplify the elbow point determination. We also consider every possibility of the elbow method graph behaviour such that the algorithm is universally applicable. The result is that the elbow point can be measured precisely with a simple algorithm that does not involve complex functions or calculations. This improved method gives an alternative of more reliable cluster determination method that contributes to more optimum k-means clustering.

Motivation & Objective

  • Quantify the elbow point in the SSE(k) plot using an objective geometric criterion instead of visual inspection.
  • Develop a formula to compute the angle between adjacent SSE-line segments to identify the elbow.
  • Ensure the method accounts for different graph behaviors and is universally applicable across datasets.

Proposed method

  • Model the SSE(k) plot as a piecewise-linear function formed by lines between consecutive (k, SSE(k)) points.
  • Use the angle between successive SSE-line segments to define an elbow-candidate measure tan(ψ_k) with a closed-form formula.
  • Choose the elbow as the point where tan(ψ_k) is minimized among valid k (excluding boundary cases and accounting for line-slope behavior).
  • Provide a universal implementation that uses standard arithmetic operations (no inverse trigonometric functions) for efficiency and portability.
  • Offer an alternative/theorem (Theorem 2.5) to handle cases where slope-decreasing assumptions fail by adding a condition to ignore certain corners.
  • Include pseudocode and Python examples illustrating computation of SSE, tan(ψ_k), and selection of optimal k.

Experimental results

Research questions

  • RQ1How can the elbow point in SSE(k) be identified without subjective visual inspection?
  • RQ2Can the elbow be determined using a purely geometric criterion based on angles between consecutive SSE segments?
  • RQ3How does the proposed angle-based method handle distorted or non-standard SSE plots?
  • RQ4What is the impact of ignoring certain corners on the robustness of elbow detection?
  • RQ5Is the method implementable efficiently across typical datasets and programming languages?

Key findings

  • The elbow point can be determined as the SSE(k) point where tan(ψ_k) is minimized.
  • The angle ψ_k is computed via a closed-form expression involving SSE(k−1), SSE(k), and SSE(k+1).
  • The method accounts for upward-facing corners and distortions by introducing boundary conditions and optional handling for facing-downwards corners.
  • An alternative theorem extends the method to cases where the secondary-slope condition does not hold, by incorporating an additional constraint.
  • A practical Python implementation demonstrates how to compute SSE, tan(ψ_k), and optimal k with standard arithmetic.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.