Abstract
The global food crisis has significantly impacted Indonesia's national food sector. This study employs time series clustering, a robust data mining technique, to interpret complex temporal patterns in commodity prices. By utilizing Dynamic Time Warping (DTW) and the K-Means algorithm, the research categorizes ten strategic food commodities based on their price movements from 2020 to 2023. The analysis identifies five optimal clusters influenced by seasonal variations and government policies. These insights provide a foundation for developing targeted price stabilization policies and enhancing food security.
Introduction
Indonesia faces substantial food price volatility driven by a combination of climate change (El Niño/La Niña), the COVID-19 pandemic, and geopolitical tensions such as the Russia-Ukraine war. These factors contribute to inflation and threaten national food security. Traditional economic analyses often struggle with the non-linear and time-shifted nature of price movements. This paper addresses the challenge by grouping commodities based on their behavioral patterns rather than simple categories, allowing for a more nuanced understanding of market pressures.
Methodology
The researchers developed a sophisticated analytical pipeline to process high-dimensional time series data consisting of 157 weekly observations for ten strategic commodities.
The core of the methodology involves:
- Dynamic Time Warping (DTW): A measure used to find the optimal alignment between sequences by "warping" the time axis, accounting for lags in price responses.
- K-Means Clustering with DBA: The K-Means algorithm was adapted using DTW Barycenter Averaging (DBA) to update cluster centroids effectively.
- Principal Component Analysis (PCA): Used to reduce the dimensionality of the data, facilitating clearer clustering and visualization.
- Normalization: Min-Max normalization was applied to ensure that absolute price differences (e.g., Beef vs. Chili) did not bias the clustering results.
Key Results and Discussion
The application of the Elbow Method determined that five clusters provided the most accurate representation of price trends among the ten commodities studied.
The resulting clusters revealed non-intuitive groupings:
- Cluster 1: Cooking Oil, Red Chili, Rice.
- Cluster 2: Granulated Sugar, Beef.
- Cluster 3: Chicken Meat, Cayenne Pepper.
- Cluster 4: Garlic and Shallots.
- Cluster 5: Chicken Eggs.
The analysis distinguished between relatively stable commodities (Cluster 4) and those highly sensitive to seasonal demand and external shocks (Clusters 2 and 3). For instance, grouping staples like Rice and Cooking Oil with Red Chili suggests these items are influenced by shared macroeconomic factors or interconnected supply chain pressures.
Conclusion and Policy Implications
The study demonstrates that a "one-size-fits-all" approach to price stabilization is inadequate. Instead, the Indonesian government should implement cluster-specific interventions. Establishing a real-time market monitoring system based on these identified clusters would allow for preemptive action. For example, a price spike in one "bellwether" commodity within a cluster could serve as an early warning for others in the same group, enabling more effective and timely policy responses to ensure sustainable economic growth and food security.
Summary updated