Enhancing unsupervised learning with correlation-based 𝑘-medoids: A case study on citrus price dynamics

Roger Arnau, Jose M. Calabuig, Nuria Ortigosa, Luiza Petrosyan, Enhancing unsupervised learning with correlation-based k-medoids: A case study on citrus price dynamics, Machine Learning with Applications, Volume 26, 2026, 100988, ISSN 2666-8270, https://doi.org/10.1016/j.mlwa.2026.100988.

Machine Learning with Applications, Volume 26, 2026, 100988

Abstract:

In this study, we propose a clustering approach based on k-medoids to detect price trend patterns of citrus products based on their prices at origin (2015-2024) in the Comunitat Valenciana (Spain). Each variety is treated as an independent observation for each combination of year and province, calculating different characteristics, including duration, variability, and linear regression parameters. The novelty lies in coupling correlation dissimilarities with k-medoid representatives and an assignment of five characteristics that preserves the structure while improving interpretability. This approach reveals a stable structure of three clusters of price variation (down, flat, up). Robustness is supported by subsample consensus (Proportion of Ambiguous Clustering, PAC, attains its minimum at k=3) and by internal indices; external validation shows a moderate but significant agreement with an independent indicator derived from official weekly reports (e.g., season-level Accuracy 0.52 or permutation p=0.001). Finally, clusters relate to economic drivers: variety group shows a moderate association, province a weak one, and continuous drivers (such as duration or price variance) differ across clusters as expected. Altogether, the approach offers a reproducible tool to monitor citrus price evolution and variations from one season to another.

Keywords: Unsupervised learning; k-medoids clustering; Agricultural price dynamics; Correlation dissimilarity

We would like to acknowledge funding from the Generalitat Valenciana (Spain) through the PROMETEO 2024 CIPROM/2023/32 grant.