Abstract
Spatial clustering is an essential method for the comprehensive understanding of a region. Spatial clustering divides all spatial units into different clusters. The attributes of each cluster of the spatial units are similar, and simultaneously, they are as continuous as spatially possible. In spatial clustering, the handling of spatial outliers is important. It is necessary to improve spatial integration so that each cluster is connected as much as possible, while protecting spatial outliers can help avoid the excessive masking of attribute differences. This paper proposes a new spatial clustering method for raster data robust to spatial outliers. The method employs a sliding window to scan the entire region to determine spatial outliers. Additionally, a mechanism based on the range and standard deviation of the spatial units in each window is designed to judge whether the spatial integration should be further improved or the spatial outliers should be protected. To demonstrate the usefulness of the proposed method, we applied it in two case study areas, namely, Changping District and Pinggu District in Beijing. The results show that the proposed method can retain the spatial outliers while ensuring that the clusters are roughly contiguous. This method can be used as a simple but powerful and easy-to-interpret alternative to existing geographical spatial clustering methods.
Introduction
Spatial clustering, or "regionalization," is the process of grouping geographic units into regions that are both internally similar and spatially contiguous. However, geographers face a persistent trade-off dilemma. Following the First Law of Geography strictly—that nearby things are more related—often leads to smooth regions but "smothers" local outliers (like a high-rise in a low-density area). Conversely, focusing only on attribute similarity leads to fragmented "salt-and-pepper" maps that are difficult to interpret for regional management.
Existing methods often use location weights to force units together, but this frequently results in artificial, circular clusters that fail to capture the true shape of geographic phenomena or incorrectly merge distinct outliers into a larger group. This paper introduces a new method designed specifically for raster data to address these challenges.
Methodology
The proposed framework employs a three-step process to balance spatial integration with the protection of local anomalies:
- Initial Classification: The data is first classified non-spatially using either Natural Breaks or Head/Tail Breaks (for heavy-tailed distributions).
- Outlier Delineation via Range: A sliding window scans the grid. If the attribute Range (R) within the window exceeds a user-defined threshold, the most extreme values are "quarantined" as outliers and excluded from further spatial smoothing.
- Adaptation via Standard Deviation: For the remaining units, the algorithm checks the Standard Deviation (V). If the SD is low, the window is "infected" or adapted to a single cluster using either an "Occupying" (most frequent class) or "Averaging" (mean value class) mechanism. If the SD is high, the original classification is preserved to protect local volatility.
The "Quarantine" Mechanism
The most innovative aspect of this method is the explicit protection of outliers. By removing extreme values from the sliding window calculation before smoothing, the algorithm ensures that a single "weird" data point doesn't pull an entire neighborhood into the wrong cluster. Unlike Spatial K-means, which treats coordinates as attributes and produces circular clusters, this method's cluster shapes are determined entirely by the data's local characteristics.
Results and Evaluation
The method was evaluated using Digital Elevation Model (DEM) data from the Changping and Pinggu districts in Beijing. To rigorously test robustness, the authors manually injected extreme areas and volatility areas into the datasets.
The proposed method (NM) was compared against Spatial K-means (SKM) and Ward-like Hierarchical Clustering (WHS). In both case studies, NM correctly identified and preserved the injected outliers, whereas baseline methods either merged them into unrelated clusters or failed to form contiguous regions. Quantitatively, NM consistently outperformed baselines on the Silhouette Index and Davies-Bouldin Index across various levels of spatial integration.
Conclusion
This raster-based spatial clustering method offers a robust alternative to traditional regionalization techniques. While it currently requires some manual parameter tuning for window size and thresholds, it provides superior protection for spatial outliers without sacrificing regional contiguity. Future work will focus on automating parameter selection and extending the framework to handle multivariate spatial data.
Summary updated