Abstract
Discovery of interesting paths and regions in spatio-temporal data sets is important to many fields such as the earth and atmospheric sciences, GIS, public safety and public health both as a goal and as a preliminary step in a larger series of computations. This discovery is usually an exhaustive procedure that quickly becomes extremely time consuming to perform using traditional paradigms and hardware and given the rapidly growing sizes of today’s data sets is quickly outpacing the speed at which computational capacity is growing. In our previous work (Prasad et al., 2013a) we achieved a 50 times speedup over sequential using a single GPU. We were able to achieve near linear speedup over this result on interesting path discovery by using Apache Hadoop to distribute the workload across multiple GPU nodes. Leveraging the parallel architecture of GPUs we were able to drastically reduce the computation time of a 3-dimensional spatio-temporal interest region search on a single tile of normalized difference vegetative index for Saudi Arabia. We were further able to see an almost linear speedup in compute performance by distributing this workload across several GPUs with a simple MapReduce model. This increases the speed of processing 10 fold over the comparable sequential while simultaneously increasing the amount of data being processed by 384 fold. This allowed us to process the entirety of the selected data set instead of a constrained window.
Introduction: The Challenge of Spatio-Temporal Data Mining
In fields like climatology and public health, researchers often need to find "interesting" regions—areas where a specific variable (like vegetation density) changes significantly over a certain period. This is known as Spatio-Temporal Region Discovery.
The challenge is that these searches are exhaustive. An "interesting" region could be any size, at any location, over any time interval. Naive algorithms for this task have a staggering computational complexity of $O(M^4 N^4 T^2)$ for an $M \times N$ grid over $T$ time steps. As satellite datasets grow into the terabyte and petabyte range, traditional sequential processing simply cannot keep up. Researchers were previously forced to look at tiny windows of data (e.g., $200 \times 300$ pixels) because processing a full map tile was computationally impossible in a reasonable timeframe.
Methodology
The authors built upon two existing algorithms: SEP (for 1D path discovery) and PCW (for 2D region discovery). Their core contribution lies in parallelizing these for GPUs and distributing them via MapReduce.
Lookup Tables (Prefix Sums)
To avoid repeated scanning, the algorithms pre-compute a "lookup table" (a columnar prefix sum). This allows the "interestingness" of any sub-region to be calculated in $O(1)$ time rather than $O(N)$.
GPU Parallelization (CUDA)
The authors implemented a "segmented scan" approach on the GPU. They focused on three CUDA best practices: minimizing thread branching, coalescing memory access to maximize bandwidth, and utilizing shared memory within thread blocks. By moving the search to the GPU, the authors effectively reduced the theoretical complexity of the discovery phase from $O(M^2 N^2 T^2)$ to $O(M N T^2)$ by assigning a thread to every possible starting position.
MapReduce Integration
They used Apache Hadoop to distribute the workload. Because each time interval or map tile can be processed independently, the problem is "embarrassingly parallel." They used JCUDA (Java bindings for CUDA) to allow Hadoop compute nodes to launch kernels on local GPUs. To handle the "Small Files" problem in HDFS, the authors used Sequence Files, which bundle many small images into one large binary file, optimizing disk I/O.
Datasets
The study utilized NDVI (Normalized Difference Vegetative Index) data, which measures vegetation "greenness" from space:
- GIMMS Dataset: 20 years of data covering Africa ($1152 \times 1152$ images).
- MODIS Dataset: 12 years of data ($4800 \times 4800$ map tiles). The framework enabled processing of full $4800 \times 4800$ tiles, a significant leap from the $200 \times 300$ subsets used in prior sequential work.
Results and Performance Analysis
The most important insight was that the MapReduce + GPU combo provides near-linear speedup. Adding more GPU-equipped nodes directly translates to a proportional decrease in processing time, making the system future-proof for even larger datasets.
- Single GPU Performance: Achieved a 50x speedup over sequential processing for path discovery.
- Multi-GPU Scaling: Using a MapReduce model with 4 GPUs reduced the processing time for a full MODIS map tile from 193.83 seconds (1 GPU) to 52.48 seconds (4 GPUs).
- Data Throughput: The system increased the amount of data that could be processed simultaneously by 384-fold compared to previous state-of-the-art sequential implementations.
Conclusion
The integration of GPU acceleration with the MapReduce model effectively addresses the computational bottlenecks of spatio-temporal data mining. While the elimination phase for 2D regions remains a priority for future work, the current framework demonstrates significant scalability. Future work will focus on expanding the framework to process multiple map tiles across even larger geographic areas simultaneously.
Summary updated