Related Experiment Video
Updated: Jan 10, 2026

Large-scale Reconstructions and Independent, Unbiased Clustering Based on Morphological Metrics to Classify Neurons in Selective Populations
Published on: February 15, 2017
Comparison of K-Means and Hierarchical Clustering Methods for Buffalo Milk Production Data
Lucia Trapanese1, Giovanna Bifulco1, Matteo Santinello1
1Department of Veterinary Medicine and Animal Production, University of Naples Federico II, 80137 Naples, Italy.
K-means clustering effectively grouped Italian Mediterranean buffalo using test-day records, outperforming hierarchical clustering. This data-driven approach can enhance herd management strategies by identifying distinct animal groups.
Area of Science:
- Animal Science
- Data Science
- Agricultural Management
Background:
- Effective herd management relies on understanding animal variations.
- Clustering algorithms offer potential for data-driven grouping of livestock.
Purpose of the Study:
- To evaluate K-means and hierarchical clustering for grouping Italian Mediterranean buffalo.
- To determine if data-driven groupings can improve herd management strategies.
Main Methods:
- Utilized routinely collected test-day records from three Italian Mediterranean buffalo herds.
- Applied K-means and hierarchical clustering algorithms to combined and individual herd datasets.
- Assessed clustering performance using silhouette scores, Davies-Bouldin Index (DBI), and Calinski-Harabasz Index (CHI).
Main Results:
- K-means clustering consistently outperformed hierarchical clustering across all datasets.
- K-means identified two clusters in most datasets, with one herd yielding three clusters.
- Days in milk, milk yield, age, and lactation stage were key factors differentiating clusters.
Conclusions:
- K-means clustering is a superior method for grouping buffalo based on test-day data.
- Identified animal subgroups can inform targeted herd management practices.
- This approach supports data-driven decision-making for improved buffalo production.
Related Concept Videos
Kruskal-Wallis Test
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...
One-Way ANOVA: Equal Sample Sizes
Different sample means can result in different values for the variance estimate: variance between samples. This is because the variance between samples is calculated as the product of the sample size and the variance between the...
Microsoft Excel: Finding Central Tendency, Skew, and Kurtosis
Mean: The arithmetic average of all data points. It is calculated by adding all the values together and dividing by the number of values. The mean is sensitive to extreme values (outliers).
Median: The middle value when the data points are arranged in ascending or descending...
One-Way ANOVA: Unequal Sample Sizes
Statistical Methods to Analyze Parametric Data: ANOVA
One-way ANOVA is applied when a single independent variable or factor is scrutinized. It compares...

