Evaluation of Internal Cluster Validity Indices for Selecting the Number of K-Means Clusters in Sentinel-2 Imagery

Authors

Keywords:

K-means, Cluster number selection, Internal cluster validity, Sentinel-2, LUCAS

Abstract

Selecting the number of clusters is a central methodological decision in unsupervised analysis of multispectral imagery. This study evaluated the Silhouette coefficient, Calinski-Harabasz index, Davies-Bouldin index, and gap statistic for K-means clustering of harmonised Sentinel-2 Level-2A growing-season composites. Three 50 × 50 km study windows in Spain and Cyprus were analysed using two feature representations: six surface-reflectance bands and the same bands augmented with NDVI, MNDWI, NBR, and BSI. Candidate solutions containing 2-12 clusters were compared with an aggregated LUCAS Copernicus 2018 reference legend using V-measure, assessed for stability across 20 fits to 80% pixel subsamples, and examined with a chance-corrected eight-neighbour agreement coefficient. Silhouette selected two clusters in all six window-by-feature combinations. Calinski-Harabasz selected two clusters in five combinations, whereas Davies-Bouldin produced interior minima in two. The gap statistic did not satisfy its one-standard-error stopping rule within the evaluated range. The V-measure optimum varied among 2, 4, 6, 7, and 11 clusters, and no internal criterion matched it in every combination. The maximum V-measure ranged from 0.213 to 0.590. The three compactness-and-separation criteria had similar median agreement losses (0.115-0.127), but losses varied substantially among windows and reached 0.286. The adjusted Rand index identified the same agreement optimum as V-measure in five of six combinations. Stability was generally high but showed pronounced local reductions in two index-selected solutions. At matched cluster numbers, adding spectral indices increased local neighbour agreement in 27 of 33 comparisons. For the examined scenes, internal validity alone did not consistently identify the partition with the highest thematic agreement. Index curves, thematic agreement, and subsampling stability should therefore be considered together when selecting the number of clusters.

References

[1] M. Drusch et al., “Sentinel-2: ESA's optical high-resolution mission for GMES operational services,” Remote Sens. Environ., vol. 120, pp. 25–36, May 2012, doi: 10.1016/j.rse.2011.11.026.

[2] N. Gorelick, M. Hancher, M. Dixon, S. Ilyushchenko, D. Thau, and R. Moore, “Google Earth Engine: Planetary-scale geospatial analysis for everyone,” Remote Sens. Environ., vol. 202, pp. 18–27, Dec. 2017, doi: 10.1016/j.rse.2017.06.031.

[3] D. Phiri and J. Morgenroth, “Developments in Landsat land cover classification methods: A review,” Remote Sens., vol. 9, no. 9, p. 967, Sep. 2017, doi: 10.3390/rs9090967.

[4] T. Blaschke, “Object based image analysis for remote sensing,” ISPRS J. Photogramm. Remote Sens., vol. 65, no. 1, pp. 2–16, Jan. 2010, doi: 10.1016/j.isprsjprs.2009.06.004.

[5] A. K. Jain, “Data clustering: 50 years beyond K-means,” Pattern Recognit. Lett., vol. 31, no. 8, pp. 651–666, Jun. 2010, doi: 10.1016/j.patrec.2009.09.011.

[6] J. MacQueen, “Some methods for classification and analysis of multivariate observations,” in Proc. 5th Berkeley Symp. Math. Statist. Probab., vol. 1, Berkeley, CA, USA, 1967, pp. 281–297.

[7] S. P. Lloyd, “Least squares quantization in PCM,” IEEE Trans. Inf. Theory, vol. 28, no. 2, pp. 129–137, Mar. 1982, doi: 10.1109/TIT.1982.1056489.

[8] A. M. Ikotun, A. E. Ezugwu, L. Abualigah, B. Abuhaija, and J. Heming, “K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data,” Inf. Sci., vol. 622, pp. 178–210, Apr. 2023, doi: 10.1016/j.ins.2022.11.139.

[9] D. Arthur and S. Vassilvitskii, “k-means++: The advantages of careful seeding,” in Proc. 18th Annu. ACM-SIAM Symp. Discrete Algorithms (SODA), New Orleans, LA, USA, 2007, pp. 1027–1035.

[10] M. E. Celebi, H. A. Kingravi, and P. A. Vela, “A comparative study of efficient initialization methods for the k-means clustering algorithm,” Expert Syst. Appl., vol. 40, no. 1, pp. 200–210, Jan. 2013, doi: 10.1016/j.eswa.2012.07.021.

[11] G. W. Milligan and M. C. Cooper, “An examination of procedures for determining the number of clusters in a data set,” Psychometrika, vol. 50, no. 2, pp. 159–179, Jun. 1985, doi: 10.1007/BF02294245.

[12] M. Halkidi, Y. Batistakis, and M. Vazirgiannis, “On clustering validation techniques,” J. Intell. Inf. Syst., vol. 17, no. 2–3, pp. 107–145, Dec. 2001, doi: 10.1023/A:1012801612483.

[13] O. Arbelaitz, I. Gurrutxaga, J. Muguerza, J. M. Pérez, and I. Perona, “An extensive comparative study of cluster validity indices,” Pattern Recognit., vol. 46, no. 1, pp. 243–256, Jan. 2013, doi: 10.1016/j.patcog.2012.07.021.

[14] A. M. Ikotun, F. Habyarimana, and A. E. Ezugwu, “Cluster validity indices for automatic clustering: A comprehensive review,” Heliyon, vol. 11, no. 2, p. e41953, Jan. 2025, doi: 10.1016/j.heliyon.2025.e41953.

[15] P. J. Rousseeuw, “Silhouettes: A graphical aid to the interpretation and validation of cluster analysis,” J. Comput. Appl. Math., vol. 20, pp. 53–65, Nov. 1987, doi: 10.1016/0377-0427(87)90125-7.

[16] T. Caliński and J. Harabasz, “A dendrite method for cluster analysis,” Commun. Statist. Theory Methods, vol. 3, no. 1, pp. 1–27, 1974, doi: 10.1080/03610927408827101.

[17] D. L. Davies and D. W. Bouldin, “A cluster separation measure,” IEEE Trans. Pattern Anal. Mach. Intell., vol. PAMI-1, no. 2, pp. 224–227, Apr. 1979, doi: 10.1109/TPAMI.1979.4766909.

[18] R. Tibshirani, G. Walther, and T. Hastie, “Estimating the number of clusters in a data set via the gap statistic,” J. R. Stat. Soc. Ser. B Stat. Methodol., vol. 63, no. 2, pp. 411–423, May 2001, doi: 10.1111/1467-9868.00293.

[19] H. Li, S. Zhang, X. Ding, C. Zhang, and P. Dale, “Performance evaluation of cluster validity indices (PECVI) on multi/hyperspectral remote sensing datasets,” Remote Sens., vol. 8, no. 4, p. 295, Apr. 2016, doi: 10.3390/rs8040295.

[20] M. Gagolewski, M. Bartoszuk, and A. Cena, “Are cluster validity measures (in)valid?,” Inf. Sci., vol. 581, pp. 620–636, Dec. 2021, doi: 10.1016/j.ins.2021.10.004.

[21] U. von Luxburg, “Clustering stability: An overview,” Found. Trends Mach. Learn., vol. 2, no. 3, pp. 235–274, 2010, doi: 10.1561/2200000008.

[22] A. Ben-Hur, A. Elisseeff, and I. Guyon, “A stability based method for discovering structure in clustered data,” in Proc. Pacific Symp. Biocomputing, vol. 7, Lihue, HI, USA, 2002, pp. 6–17.

[23] T. Lange, V. Roth, M. L. Braun, and J. M. Buhmann, “Stability-based validation of clustering solutions,” Neural Comput., vol. 16, no. 6, pp. 1299–1323, Jun. 2004, doi: 10.1162/089976604773717621.

[24] C. Hennig, “Cluster-wise assessment of cluster stability,” Comput. Statist. Data Anal., vol. 52, no. 1, pp. 258–271, Sep. 2007, doi: 10.1016/j.csda.2006.11.025.

[25] R. d'Andrimont et al., “LUCAS Copernicus 2018: Earth-observation-relevant in situ data on land cover and use throughout the European Union,” Earth Syst. Sci. Data, vol. 13, no. 3, pp. 1119–1133, Mar. 2021, doi: 10.5194/essd-13-1119-2021.

[26] R. d'Andrimont et al., “Harmonised LUCAS in-situ land cover and use database for field surveys from 2006 to 2018 in the European Union,” Sci. Data, vol. 7, p. 352, Oct. 2020, doi: 10.1038/s41597-020-00675-z.

[27] G. M. Foody, “Status of land cover classification accuracy assessment,” Remote Sens. Environ., vol. 80, no. 1, pp. 185–201, Apr. 2002, doi: 10.1016/S0034-4257(01)00295-4.

[28] P. Olofsson, G. M. Foody, M. Herold, S. V. Stehman, C. E. Woodcock, and M. A. Wulder, “Good practices for estimating area and assessing accuracy of land change,” Remote Sens. Environ., vol. 148, pp. 42–57, May 2014, doi: 10.1016/j.rse.2014.02.015.

[29] M. Main-Knorn, B. Pflug, J. Louis, V. Debaecker, U. Müller-Wilm, and F. Gascon, “Sen2Cor for Sentinel-2,” in Proc. SPIE 10427, Image Signal Process. Remote Sens. XXIII, Warsaw, Poland, 2017, Art. no. 1042704, doi: 10.1117/12.2278218.

[30] J. W. Rouse, R. H. Haas, J. A. Schell, and D. W. Deering, “Monitoring vegetation systems in the Great Plains with ERTS,” in Proc. 3rd ERTS Symp., NASA SP-351, Washington, DC, USA, 1974, vol. 1, pp. 309–317.

[31] H. Xu, “Modification of normalised difference water index (NDWI) to enhance open water features in remotely sensed imagery,” Int. J. Remote Sens., vol. 27, no. 14, pp. 3025–3033, Jul. 2006, doi: 10.1080/01431160600589179.

[32] C. H. Key and N. C. Benson, “Landscape assessment (LA): Sampling and analysis methods,” USDA Forest Service, Rocky Mountain Res. Station, Fort Collins, CO, USA, Gen. Tech. Rep. RMRS-GTR-164-CD, 2006, pp. LA-1–LA-55.

[33] A. Rikimaru, P. S. Roy, and S. Miyatake, “Tropical forest cover density mapping,” Trop. Ecol., vol. 43, no. 1, pp. 39–47, 2002.

[34] F. Pedregosa et al., “Scikit-learn: Machine learning in Python,” J. Mach. Learn. Res., vol. 12, pp. 2825–2830, Nov. 2011.

[35] A. Rosenberg and J. Hirschberg, “V-measure: A conditional entropy-based external cluster evaluation measure,” in Proc. Joint Conf. Empirical Methods Natural Lang. Process. Comput. Natural Lang. Learn. (EMNLP-CoNLL), Prague, Czech Republic, 2007, pp. 410–420.

[36] L. Hubert and P. Arabie, “Comparing partitions,” J. Classification, vol. 2, no. 1, pp. 193–218, Dec. 1985, doi: 10.1007/BF01908075.

[37] J. Cohen, “A coefficient of agreement for nominal scales,” Educ. Psychol. Meas., vol. 20, no. 1, pp. 37–46, Apr. 1960, doi: 10.1177/001316446002000104.

[38] B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York, NY, USA: Chapman & Hall, 1993.

Downloads

Published

2025-10-23

Issue

Section

Original Researches

How to Cite

Evaluation of Internal Cluster Validity Indices for Selecting the Number of K-Means Clusters in Sentinel-2 Imagery. (2025). Advanced Remote Sensing, 5(1), 21-34. https://yakarm.com/journals/arsej/article/view/377