Next Article in Journal
Fluorescent Sensors for the Detection of Heavy Metal Ions in Aqueous Media
Next Article in Special Issue
Dimension Reduction for Hyperspectral Remote Sensor Data Based on Multi-Objective Particle Swarm Optimization Algorithm and Game Theory
Previous Article in Journal
Improving Regional and Teleseismic Detection for Single-Trace Waveforms Using a Deep Temporal Convolutional Neural Network Trained with an Array-Beam Catalog
Previous Article in Special Issue
Estimating Spatial and Temporal Trends in Environmental Indices Based on Satellite Data: A Two-Step Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-GPU Based Parallel Design of the Ant Colony Optimization Algorithm for Endmember Extraction from Hyperspectral Images

1
Institute of Remote Sensing and Digital Earth (RADI), Chinese Academy of Sciences (CAS), Beijing 100094, China
2
China Academy of Space Technology (CAST), Beijing 100081, China
3
University of Chinese Academy of Sciences, Beijing 100049, China
4
College of Computer Science and Software Engineering, Computer Vision Research Institute, Shenzhen University, Shenzhen 518060, China
*
Author to whom correspondence should be addressed.
Sensors 2019, 19(3), 598; https://doi.org/10.3390/s19030598
Submission received: 30 November 2018 / Revised: 25 January 2019 / Accepted: 26 January 2019 / Published: 31 January 2019
(This article belongs to the Special Issue Computational Intelligence in Remote Sensing)

Abstract

:
Spectral unmixing is a vital procedure in hyperspectral remote sensing image exploitation. The linear mixture model has been widely utilized to unmix hyperspectral images by extracting a set of pure spectral signatures, called endmembers in hyperspectral jargon, and estimating their respective fractional abundances in each pixel of the scene. Many algorithms have been proposed to extract endmembers automatically, which is a critical step in the spectral unmixing chain. In recent years, the ant colony optimization (ACO) algorithm has been developed for endmember extraction from hyperspectral data, which was regarded as a combinatorial optimization problem. Although the ACO for endmember extraction (ACOEE) can acquire accurate endmember results, its high computational complexity has limited its application in the hyperspectral data analysis. The GPUs parallel computing technique can be utilized to improve the computational performance of ACOEE, but the architecture of GPUs determines that the ACOEE should be redesigned to take full advantage of computing resources on GPUs. In this paper, a multiple sub-ant-colony-based parallel design of ACOEE was proposed, in which an innovative mechanism of local pheromone for sub-ant-colonies is utilized to enable ACOEE to be preferably executed on the multi-GPU system. The proposed method can avoid much synchronization among different GPUs to affect the computational performance improvement. The experiments on two real hyperspectral datasets demonstrated that the computational performance of ACOEE significantly benefited from the proposed methods.

Graphical Abstract

1. Introduction

Hyperspectral sensors can acquire hundreds of contiguous spectral bands for the same area, which provide abundant spectral information about the surface of the Earth. Owing to the narrow band interval adopted in the hyperspectral sensors, it is difficult for sensors to improve their spatial resolution greatly. Therefore, mixed pixels, a mixture of more than one ground object in a single pixel, widely exist in hyperspectral images. The existence of mixed pixels is an intractable problem for hyperspectral data applications [1]. Spectral unmixing is an important technique for hyperspectral remote sensing image analysis [2], which decomposes the spectrum of a mixed pixel into a collection of constituent spectra (i.e., endmembers) and a set of corresponding fractions (i.e., abundances). Endmember extraction is a vital step in spectral unmixing.
A majority of studies of endmember extraction are based on the linear spectral mixture model (LSMM) [2,3]. In LSMM, the spectrum of each pixel can be approximated as a linear addition of endmember spectra according to their fractional abundances in this pixel. As shown in Equation (1), x is one spectrum with B bands; m is the endmember number; e i ( i = 1 , 2 , 3 , , m ) stands for the ith endmember spectrum of ground objects in the instantaneous field of view (IFOV); α i ( i = 1 , 2 , 3 , , m ) indicates the abundance of the ith endmember in this mixed pixel; ε is the random error.
x = i = 1 m α i e i + ε .
According to Equation (1), two constraints are generally applied in fractional abundance estimation, which are the abundance nonnegativity constraint (ANC) and abundance sum-to-one constraint (ASC), respectively defined in Equations (2) and (3) [4]. Without ASC and ANC, the problem of estimating the abundance can be solved by the least squares (LS) method. If ASC is considered, the solution is called “sum-to-one constrained least squares” (SCLS). It can be called “fully-constrained least squares” (FCLS), if both ASC and ANC are considered.
α i 0 , i
i = 1 m α i = 1
Many endmember extraction algorithms have been proposed in the past thirty years, e.g., the N-FINDR [5], the pixel purity index (PPI) [6], the vertex component analysis (VCA) [7], the automated morphological endmember extraction (AMEE) [8], the minimum volume simplex analysis (MVSA) [9], and some other new algorithms proposed recently [10,11,12,13]. Swarm intelligence algorithms in artificial intelligence were newly introduced for endmember extraction from hyperspectral images [14,15,16,17,18]. The ant colony optimization algorithm for endmember extraction (ACOEE), a representative endmember extraction method based on swarm intelligence algorithms, utilizes artificial ants to imitate the natural way ants select routes. Owing to the features such as distribution, positive feedback, global search, and stability, ACOEE can extract endmembers accurately and improve extraction precision [14]. However, one issue of ACOEE is its high computational amount, which seriously impacts its application in hyperspectral data analysis.
High-performance computing based on parallel computing architectures, especially commodity graphic processing units (GPUs), is an effective solution to these high computational complexity problems of hyperspectral endmember extraction algorithms [19,20,21,22,23,24,25,26]. Due to the low computational efficiency, many research works have been devoted to the parallel ACO algorithm based on the parallel technology of the multicore CPU, or the single GPU, or the combination of the two [27,28,29,30]. Different from these methods, the most time-consuming task in ACOEE is the calculations of the objective function, e.g., the root-mean-squared error (RMSE) between the remixed image and the original image. B. Zhang et al. [15] introduced parallel computing technology on GPUs to improve the computing performance of ACOEE, and the experiments demonstrated that the processing time of ACOEE was significantly reduced due to the parallel implementation on GPUs. However, the processing time of ACOEE on a single-GPU device (G-ACOEE) was still too high for general application. For the purpose of improving the computing power, multi-GPU systems were used in recent years. In this paper, multi-GPU parallel computing technology was utilized in order to further reduce the processing time of ACOEE, and an innovative parallel implementation based on multiple sub-ant-colonies was designed to make the best use of computing resources in the multi-GPU system. A mechanism of local pheromone was utilized in sub-ant-colonies. The strategy of pheromone updating and stop rules was expressly redesigned in the proposed algorithm. The proposed method can avoid synchronization among different GPUs to consume too much processing time. Compared with G-ACOEE, the proposed parallel algorithm not only employs the data-level parallelism, but also the task-level parallelism. The experiments demonstrated that the processing time of ACOEE was significantly reduced thanks to the proposed multi-GPU-based parallel design, and moreover, there is great potential to further enhance the searching capability of ACOEE without too much time cost.
The remainder of the paper is organized as follows. The ACOEE algorithm is briefly reviewed in Section 2. Section 3 describes an innovative multiple sub-ant-colony-based parallel design of ACOEE in a multi-GPU system. Section 4 provides an experimental analysis of the proposed method using two well-known hyperspectral datasets. Finally, Section 5 concludes with some remarks and presents several directions for future research.

2. Ant Colony Optimization Algorithm for Endmember Extraction

The ant colony optimization (ACO) algorithm is a representative swarm intelligence algorithm [31]. Ants in nature utilize a kind of chemical substance named pheromones for communication. Pheromones are released on the routes passed by moving ants when they search for food. An isolated ant can detect the pheromones on the routes and then randomly select a route based on the pheromone concentrations on the routes. Furthermore, the higher the pheromone concentration is, the more attractive the route is. As time goes on, pheromones will concentrate on the route traveled by the majority of ants; thus, this route will be chosen by more and more ants. This means that a positive feedback system is formed. On the other hand, the natural dissipation of the pheromones produces a similar, but opposite effect. If a route is less selected by ants, pheromones on this route will disappear gradually, and thus, fewer ants will select those paths. The shortest route between the ants’ nest and the food source can be found through this positive feedback system.
The ACO algorithm solves optimization problems by analysis and simulation of ant colony behavior. In an ACO algorithm, optimization problems are modeled just as natural ants searching for the shortest route between their nest and the food source, and artificial ants are utilized to imitate the procedure of natural ants selecting routes. In the environment artificial ants are living in, routes and time are both discrete. This means that a route consists of several discrete sections, and the artificial ant can select one section in a time unit. Several time units are needed for searching a route. Owing to the features such as positive feedback, distribution, and global search, the ACO algorithm for endmember extraction (ACOEE) from hyperspectral remote sensing images was proposed [14] and improved in the literature [15]. The improved ACOEE optimized the heuristic information to improve the algorithm accuracy and utilized an elitist strategy and GPUs to reduce the processing time. ACOEE also showed the capacity to find the optimal possible combination out of a set of candidate endmembers generated by other methods automatically, as well as robustness in dealing with noise and outliers [32].
With the assumption of the existence of pure pixels, extracting the endmembers’ set can be looked upon as a combinational optimization problem. In ACOEE, endmember extraction was transformed into the optimization problem by building the feasible solution space and defining the objective function. A directed graph denoted by G was constructed first to generate the solution space. Each vertex in G corresponds to a pixel in the hyperspectral image. All vertexes in G are connected. Artificial ants can release pheromones on the edges between vertexes. Assume m endmembers are to be extracted, and then, the route constructed by an artificial ant should contain m different vertexes in G. An artificial ant randomly selects vertexes according to the concentration of pheromones on edges. Each edge in G is initialized with the same concentration of pheromones at the preliminary stage. When the ant arrives at vertex v i after t 1 ( t 1 ) times of moving, the transition probability of moving from v i to the next vertex v j is defined as:
p i j ( t ) = τ i j ( t ) j a l l o w e d t τ i j ( t ) , j a l l o w e d t .
In Equation (4), a l l o w e d t indicates the set of vertexes that can be reached by this ant from v i at time t, i.e., all the pixels that have not been reached by the ant, and τ i j ( t ) is the concentration of pheromones in the edge < v i , v j > . Once all ants accomplish their tasks searching for the shortest routes, the routes will be evaluated according to the objective function. Then, pheromones on edges are updated as:
τ i j ( t + 1 ) = ρ τ i j ( t ) + Δ τ i j ( t ) ,
where ρ is the pheromones’ dissipation factor and Δ τ i j ( t ) is the pheromones released on the edge < v i , v j > at time t. Let f t and r o u t e t respectively denote the optimal objective function value of all selected routes and the corresponding route. Δ τ i j ( t ) is defined as:
Δ τ i j ( t ) = Q / f t if < v i , v j > r o u t e t 0 if < v i , v j > r o u t e t ,
where Q is a constant that controls the range of pheromone adjustments Δ τ i j ( t ) . According to a route selected by one artificial ant (i.e., m endmembers), a remixed image can be constructed by abundance estimation, and the root-mean-squared error (RMSE) between the remixed image and the original image is adopted as the objective function to evaluate the endmembers’ set. RMSE can be calculated as Equation (7), in which x i and x ^ i respectively indicate a pixel spectrum vector and its corresponding remixed vector. RMSE can evaluate the quality of selected solutions without any ground truth information. The smaller the RMSE is, the better the endmember set is. It has been demonstrated that RMSE was an effective evaluating indicator for endmember extraction [14,15,33]. Equation (6) can guarantee that the lower the objective function value is, the more released pheromones there are.
R M S E = 1 n i = 1 n x i x ^ i 2
Up to now, an iteration has been completed, and the ants begin another iteration aiming at the optimal solution. The algorithm stops when the iteration number reaches a predetermined maximum number (10,000 in the practical experiments), or the same solution is obtained in several consecutive iterations (e.g., four).

3. Multi-GPUs-Based Parallel Design of ACOEE

As a result of the increasing demand for high-performance graphic computing and deep learning computing, the computing power of graphic processing units (GPUs) has made great achievements and been widely applied for general purposes in recent years. Considering the excellent features, e.g., light weight, small size, and low cost, GPUs are widely utilized to improve the computing performance in hyperspectral data applications [19,20,21,22,23,24,34,35,36,37,38,39]. Compute unified device architecture (CUDA) (http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html), introduced by NVidia corporation, provides a development environment for creating high performance GPU-accelerated applications.
Because major transistors are devoted to data processing, GPUs are not good at controlling flow. Therefore, GPUs are generally used as a coprocessor with powerful computing capabilities in a computer system. In the context of CUDA, the tasks with a high computational amount are executed on GPUs in parallel (device), while the task of controlling algorithm flow is accomplished on the CPU (host). Due to thousands of stream processors on one GPU, GPU is capable of executing massively light-weight threads of the same program. A program executed in the GPU is called a kernel, which is executed in parallel using up to thousands of threads. In other words, multiple threads execute the same instructions, but operate on different elements of data. Considering the characteristics of GPUs, CUDA arrange threads in a form of a grid of blocks (see Figure 1).
A global memory, a shared memory, and registers constitute the memory architecture of GPU. The global memory, connected via a high-bandwidth bus to the chip of GPU, can be accessed by all threads; registers and the shared memory are the limited on-chip memory resource, which can be accessed only by a certain thread or threads in a thread block. Furthermore, threads in a block are distributed on the same stream multiprocessor and thus must share the limited registers and shared memory. The thread structure of a kernel should be designed on the basis of the computing resource of GPUs and the characteristics of algorithms.
Considering the complexity of the ACOEE, the improved ACOEE [15] maintained the basic structure of the original ACOEE (O-ACOEE), while most computing tasks of each ant were completed on the device in parallel. Aiming at taking full advantage of computing resources on the GPU, the computing tasks completed in parallel were sufficiently optimized. The processing time per iteration in ACOEE was significantly reduced as a result of the GPU-based parallel technique. The multi-GPU parallel technique is used to further improve the computing performance of ACOEE. In a computing system with multiple GPUs, the computing power increases several times compared with the system with a single GPU. However, the hardware architecture becomes more complex in a multi-GPU system, and parallel algorithm running in this system must avoid too frequent synchronization among the GPUs. Therefore, the parallel implementation of ACOEE is redesigned correspondingly in order to get an excellent computational performance.

3.1. Parallel Design Based on Multiple Sub-Ant-Colonies

The multi-GPU system provides much more computing resource than the single-GPU system, and therefore, the computing task allocation of ACOEE must be redesigned. If the tasks with a high computational amount of each ant are allocated to different GPUs, just as in the parallel implementation of ACOEE in a single-GPU system, a number of synchronous operations will happen among GPUs and the host. In synchronous operations, data transmission via PCIe bus consumes much time. Furthermore, the computational amount allocated to each GPU is so small that GPUs cannot be fully utilized. For this reason, it is not a recommended choice. In this subsection, a parallel design based on multiple sub-ant-colonies is proposed (see Figure 2).
In the proposed design, the algorithm flow is still controlled on the host, but an ant colony is equally divided into several sub-ant-colonies, searching for routes in the same directed graph. The computing tasks of sub-ant-colonies are respectively allocated to different GPUs, which means that the computing tasks of ants in a sub-ant-colony are accomplished in the same GPU. Therefore, the computing resource of each GPU is efficiently used, and the number of synchronous operations is significantly reduced. As a result, the strategy of pheromone updating and stop rules of the algorithm should be redesigned to adapt to the multiple sub-ant-colonies strategy.
1. The strategy of pheromone updating:
Pheromone, utilized in communications among ants, is a key factor of the positive feedback mechanism in ACOEE. Once ants complete searching for a route in an iteration, the amount of pheromones will be updated, and then, ants can search for better routes based on the latest pheromones on the graph in the next iteration.
The computing tasks of sub-ant-colonies are carried out on different GPUs, so the pheromone information is stored in the corresponding global memory of different GPUs. Once the pheromone data are updated on one GPU, the other sub-ant-colonies should synchronize the pheromone data on the corresponding GPUs. In a synchronization, the pheromone data are transferred from each GPU to the host via PCIe bus and then transferred back to each GPU after being updated in the host. Synchronization is a time-consuming operation. For this reason, it is not an economical choice to synchronize the pheromone information in each iteration. As a result, an innovative strategy of pheromone updating is proposed to deal with this problem.
(1)
There are two kinds of pheromones in the graph, i.e., global pheromone and local pheromone. The global pheromone is visible for all ants and can be updated by all ants. Each ant can utilize and update the local pheromone in a sub-ant-colony. The global pheromone and local pheromone are both initialized with the same value.
(2)
Ants search for routes according to the local pheromone. At the end of each iteration, the local pheromone is updated on the basis of Equation (5) and (6). f t and r o u t e t in Equation (6) respectively indicate the optimal objective function value of all selected routes searched in this sub-ant-colony and its corresponding route.
(3)
After SyncNum iterations, the local pheromone data of all sub-ant-colonies are copied to the host. The global pheromone data are updated to the mean value of the local pheromone data of different sub-ant-colonies. Then, the latest global pheromone data are copied back to each device to update the local pheromone data of all sub-ant-colonies.
(4)
If the stopping condition is not satisfied, the host will control the devices to execute the next SyncNum iterations.
In this strategy of pheromone updating, ants search for routes on the basis of the local pheromone in each sub-ant-colony, and the pheromone data are synchronized among different sub-ant-colonies at the regular time. This not only guarantees that the ants can utilize the global optimal pheromone information for searching for routes in a timely manner, but also avoids too much synchronization increasing the time consumption.
2. Stop rules of the algorithm:
In O-ACOEE, the algorithm stops when the same best solution in several consecutive iterations is obtained or the iterations number increases to the maximum number. In the proposed parallel implementation of ACOEE on the multi-GPU system, the ants exchange information with ones in the same sub-ant-colony in most iterations and can exchange information among different sub-ant-colonies every SyncNum iterations. For convenience, SyncNum iterations are also called a synchronous cycle. After a synchronous cycle, the global best solution is updated by comparing the latest local best solutions searched by all the ants. Therefore, it is designed such that the stop conditions are determined once the global best solution is updated in each synchronous cycle instead of each iteration in the proposed algorithm. If the same best solution in several consecutive synchronous cycles or the iterations number increases to a preset maximum number, the algorithm will stop, and this solution is recognized as the final global optimal solution, i.e., endmembers. The pseudocode for the proposed stop rules of MG-ACOEE is shown in Pseudocode 1.
  Pseudocode 1:
  Step 0: Initializing parameters, allocating device memory, and transferring data to devices in the host. The parameters: IterationMax (the preset iteration maximum number), ConverMax (the convergence synchronous cycle number), and SyncNum are initialized. TotalIterNum = 0; ContiConverTimes = 0.
  Step 1: For each sub-ant-colony, the local pheromone data are synchronized with the global pheromone data. IterNum = 0.
  Step 2: For each sub-ant-colony, feasible solutions are obtained by ants. The local best solution is updated through comparing the RMSE values of feasible solutions, and then local pheromone data are updated. IterNum = IterNum+1. TotalIterNum=TotalIterNum+1.
  Step 3: For each sub-ant-colony, if IterNum > SyncNum, copy the local best solution and local pheromone data to the host, and then, go to Step 4; else, go to Step 2.
  Step 4: For the host, the best solution in this synchronous cycle is obtained through comparing the local best solutions. If this solution is the same as the global best solution, ContiConverTimes=ContiConverTimes + 1; else ContiConverTimes = 0, and update the global best solution.
  Step 5: For the host, if ContiConverTimes = ConverMax or TotalIterNum = IterationMax, the algorithm stops, and the best solution in the last synchronous cycle is recognized as the final global optimal solution; else, update the global pheromone data, and go to Step 1.
These stop rules are adapted to the multiple sub-ant-colonies-based parallel implementation, and the time of determining the stopping conditions is substantially reduced in the proposed method.

3.2. Parallel Implementation of ACOEE on the Multi-GPU System

According to the design in Section 3.1, the multi-GPU technique is utilized to implement ACOEE in a parallel way, aiming at reducing the processing time per iteration in ACOEE. The parallel implementation of ACOEE on a multi-GPU system is called MG-ACOEE, while the version on a single-GPU system is named as G-ACOEE. In MG-ACOEE, the host is in charge of flow controlling, parameter initialization, data transfer, and determining stop conditions. For these sub-ant-colonies, OpenMP threads are utilized to control the task flows, and all the time-consuming tasks are implemented in the GPUs. Figure 3 shows the schematic overview of the implementation of MG-ACOEE. In Figure 3, the operations in the blue solid boxes and in the green dashed boxes are respectively executed in the host and devices (i.e., GPUs).
1. Initialization:
Firstly, the major parameters should be initialized, such as endmembers’ number, the number of sub-ant-colonies (GPUs), SyncNum, and so on. The hyperspectral image is read from the hard disk to the host memory in the following step. Then, the space on the devices’ global memory is allocated, and data are copied from the host to the devices. Compared to O-ACOEE, the device memory allocation and data transmission in MG-ACOEE consume extra overhead time. Therefore, most computing tasks are completed on the device, and thus, the addresses of device memories are passed among different kernel functions, avoiding data transmission between the host and the devices. Since the global pheromone data are visible for all ants, they are allocated and initialized in the host. The local pheromone data are initialized with the same preset constant in each GPU device by kernel UpdatePro, in which the thread number is equal to the number of candidate endmembers.
2. Iterative process of each sub-ant-colony:
As shown in Figure 3, an OpenMP thread is utilized to control the task flow of a sub-ant-colony and to launch kernels on a GPU to accomplish the time-consuming tasks of this sub-ant-colony. For example, the task flow of Sub-ant-colony 0 is controlled in the OpenMP Thread 0, in which the major computing tasks of Sub-ant-colony 0 are allocated to the GPU 0.
In this thread, the global pheromone data are firstly copied to the device to update the local pheromone data. Then, artificial ants in the sub-ant-colony search for routes (i.e., solutions or endmembers) via a kernel function executed on a GPU. In this kernel function, each ant is assigned to a block of threads to search for a route in parallel. In practice, there were m thread blocks in this kernel, and the threads’ number in each block was set to the candidate endmember number. The cuRAND library (https://developer.nvidia.com/curand) was used to generate the random floating point numbers.
Once the endmembers are selected, the following step is to calculate the objective functions of the selected endmembers. The RMSE values’ calculation of endmembers is the most time-consuming step in MG-ACOEE. In order to calculate RMSE values, the abundance fractions of pixels in the hyperspectral image should be calculated to begin with. A 1-element is added to each endmember vector due to the sum-to-one constraint in abundance inversion. A kernel function is executed to implement this procedure in parallel, in which the block number and the thread number in a block are respectively equal to the endmember number and the bands number in the hyperspectral image. This means that a block of threads is utilized for adding a 1-element to each endmember vector. Two abundance constraints are considered in this paper. If the new endmember vectors are adopted in the unconstrained least squares method to obtain the abundance fractions, the abundances obey the ASC. In this procedure, the matrix inversion is implemented by a proposed kernel function on a GPU, while the product of two matrices is calculated by the function cublasSgemm from the highly efficient cuBLAS library (https://developer.nvidia.com/cublas). If the new endmember vectors are adopted in the methods proposed in Ref. [4], the abundances obey the ASC and ANC. The kernel CUDAAbundanceNNLS is executed on a GPU to accomplish the least squares method considering the nonnegativity constraint, in which a thread is utilized to calculate the abundance vector of a pixel. There are 256 threads in a block, and the block number is correspondingly set to (MixedPixelNum + 255)/256.
The following steps are to calculate the remixed image and the residual error image, which are also implemented by functions cublasSgemm and cublasSaxpy from the cuBLAS library. A kernel function named CUDARmseFromResidualErrorMatrix is executed on the GPU to calculate the RMSE values from the residual error image. In this kernel, the thread number in a block is set to 512, and the block number is correspondingly set to (MixedPixelNum + 511)/512.
The best solution in the current iteration is selected by comparing the RMSE values after all RMSE values of endmembers are obtained. The local pheromone data are then updated on the GPU in parallel according to the best solution in the current iteration. If the iteration number is no greater than SyncNum, the next iteration starts.
3. Synchronization among different sub-ant-colonies:
After a synchronous cycle, a synchronization among different sub-ant-colonies is carried out, and then, the stop conditions of the algorithm will be checked. Once all different sub-ant-colonies have completed a synchronous cycle, the local best solutions and local pheromone data of different sub-ant-colonies are transferred from devices to the host. Then, the global best solution is obtained through comparing the local best solutions in the host. In the following step, the stop conditions will be determined. If the stop conditions are not satisfied, the mean value of local pheromone data of different sub-ant-colonies will be utilized to update the global pheromone data, and then, a new synchronous cycle for all sub-ant-colonies continues. If the stop conditions are satisfied, pixels in the latest global best solution are considered as endmembers.

4. Experiments and Discussion

In this section, experiments on real hyperspectral data are presented to evaluate the endmember extraction accuracy and parallel performance of the efficient implementation of ACOEE.

4.1. Computing Facilities and Dataset

The computer utilized in the experiments was equipped with two Intel Xeon E5-2620 CPUs, 128 GB RAM, and eight NVIDIA TITAN Xp GPUs. Table 1 shows the features of the GPUs utilized in the experiments, which were connected to the computer using the PCI-Express 2.0 bus. The experiments were performed on the Ubuntu 16.04 operating system, in which the CUDA development environment 8.0 was installed. The proposed MG-ACOEE algorithm was carried out using CUDA C language, while O-ACOEE and G-ACOEE were carried out separately using MATLAB and CUDA C for comparison purposes.
Two popular hyperspectral datasets were adopted in the experiments for evaluating the performance of the proposed algorithm (see Figure 4). The first one was the well-known Cuprite scene acquired by the Airborne Visible/Infrared Imaging Spectrometer (AVIRIS) [40]. There were several minerals in this district, such as alunite, calcite, kaolinite, and muscovite. The scene utilized in this section comprised 400 × 350 pixels, and 50 bands ranging from 1.99–2.48 μm. The other one was the Urban data captured by Hyperspectral Digital Imagery Collection Experiment (HYDICE) in October 1995, which is one of the most widely-used hyperspectral datasets for hyperspectral unmixing research [41,42,43]. The image is of size 307 × 307 , and there were 210 bands ranging from 400–2500 nm in each pixel. Due to dense water absorption and atmospheric effects, the bands 1–4, 76, 87, 101–111, 136–153, and 198–210 were removed, and 162 bands remained in these data. The main ground objects in this scene include asphalt road, grass, tree, and roof.
Aiming at reducing the size of feasible solution space, 80 pixels with the highest pixel purity index were extracted as candidate endmembers by the pixel purity index (PPI) algorithm [6]. The number of endmembers in the Cuprite dataset was first estimated by HySime [44], which provided an estimation of m = 8 endmembers. According to the literature [41,42], there are two versions of the ground truth of Urban data, which contain four and six endmembers, respectively. The number of endmembers in the Urban data was set to six in this paper. In order to reduce the computational complexity, 2000 pixels were uniformly sampled from the original hyperspectral datasets, instead of all pixels, for fully-constrained abundance inversions in ACOEE. The times in all the tables of this section are in seconds.

4.2. Endmember Extraction Accuracy and Parallel Computing Performance

The endmember extraction accuracy and parallel performance of O-ACOEE, G-ACOEE, and MG-ACOEE are compared in this section. The spectral angle distances and RMSE were adopted to evaluate endmember accuracy. Because ACOEE is a random search algorithm, the number of iterations varied with each run. Therefore, the computing performance was evaluated by the time per iteration (TPI). The mean and standard variances of the metrics over five runs for these algorithms were given in the experiments.
The ant number in these algorithms was set to 256. The number of sub-ant-colonies in MG-ACOEE, i.e., the number of GPUs, was eight. This means that the ant number in each sub-ant-colony of MG-ACOEE was 32. In MG-ACOEE, the number of iterations in a synchronous cycle, e.g., SyncNum, was set to four.
Four highly representative minerals (i.e., alunite, calcite, kaolinite, and muscovite) in the cuprite mining district were utilized for endmember accuracy comparison. Table 2 and Table 3 respectively report the spectral angle distances between USGS mineral spectra and their corresponding endmembers extracted by O-ACOEE, G-ACOEE, and MG-ACOEE with only ASC and full constraint. Asphalt road, grass, tree, and roof in the Urban data were considered for endmember extraction accuracy comparisons between the extracted endmembers and the ground truths, which are shown in Table 4 and Table 5. From the analyses of spectral angle distances and RMSE values in these tables, it could be found that the three algorithms all successfully extracted the considered endmembers in the experiments on Cuprite data and Urban data, and MG-ACOEE obtained comparable results, compared with O-ACOEE and G-ACOEE.
However, the computing performance of MG-ACOEE was superior to that of O-ACOEE and G-ACOEE in the experimental results. The total time, iteration numbers, and TPI of these three algorithms are reported in Table 6, Table 7, Table 8 and Table 9. It should be noted that the total time not only included the processing time on the host and the device, but also the time of data allocations and data transmissions. In these experiments, both the total time and TPI were greatly reduced in MG-ACOEE. Thanks to the multi-GPU features, TPIs of MG-ACOEE with only ASC or full constraint were respectively reduced 6.80- and 7.40-times for Cuprite data and 7.38- and 6.87-times for Urban data, when compared with G-ACOEE.
In summary, the parallel computing performance of MG-ACOEE was significantly improved under the premise of ensuring endmember accuracy.

4.3. Influence of Key Parameters

Key parameters in MG-ACOEE can affect the iteration number, TPI, and even the searching ability. In this subsection, more experiments of MG-ACOEE with only the ASC constraint were carried out in order to evaluate the influence of the number of GPUs (GPUsNum), the number of ants in a sub-ant-colony (AntsNum), and the number of iterations in a synchronous cycle (SyncNum).
The mean and standard variances of the RMSE, iteration number, total time, and TPI over five runs for these algorithms are given in the following experiments. For convenience, iteration number and total time were abbreviated to IN and TT.
1. Influence of GPUsNum:
In MG-ACOEE, the ant colony can be divided into more sub-ant-colonies as GPUsNum increases, if there is a certain number of ants in an ant colony. Four experiments were executed to evaluate the influence of the number of GPUs (GPUsNum), in which the number of ants in the ant colony was 256, and the GPUsNum was respectively set to 1, 2, 4, and 8. Obviously, it was G-ACOEE when the GPUsNum was equal to one. AntsNum was respectively 128, 64, and 32, when GPUsNum was 2, 4, and 8. SyncNum was set to four in these experiments.
Table 10 and Table 11 show the RMSE, IN, TT, and TPI of these experiments separately on Cuprite and Urban data. From these tables, we can observe that the total time and times per iteration significantly decreased as GPUsNum increased, while the RMSE was basically stable. This means that the computing performance of ACOEE can benefit from the proposed parallel strategy, in which multiple GPUs were utilized to accomplish the computing tasks of the subsidiary ant colonies in an ant colony.
Figure 5 reveals the speed ratios of MG-ACOEE with different GPUsNum and G-ACOEE. When the GPUsNum increased, the speed ratio correspondingly increased. However, the speed ratios could not come up to GPUsNum, due to the time cost of data synchronization among different GPUs. It also can be found that the speed ratios in the experiments of Urban data were higher than the ones in the experiments of Cuprite data. That is because there were more bands in the Urban data, and more time was spent on searching for the optimal solution instead of data synchronization.
2. Influence of AntsNum:
If the the number of sub-ant-colonies (GPUsNum) was fixed, the number of ants per sub-ant-colony (AntsNum) not only determines the total number of the ant colony, but could also impact the parallel performance of MG-ACOEE. In this subsection, GPUsNum was set to eight, and five experiments were set up to evaluate the influence of AntsNum, in which the AntsNum was respectively set to 4, 12, 20, 28, and 32. The ant numbers in the colony correspondingly were 32, 96, 160, 224, and 256. SyncNum was set to four in these experiments.
Table 12 and Table 13 report the average values and standard variances of RMSE, IN, TT, and TPI in these experiments. As AntsNum increased from 4–32, the RSME value decreased from 3.052–3.018 in the experiments on Cuprite data, which meant that the searching ability of MG-ACOEE distinctly enhanced. Since there were more ants in the colony, the computing amount searching for optimal solution accordingly increased. If the TT and TPI of MG-ACOEE with AntsNum = 4 was taken as a benchmark, Figure 6 reveals the time ratios of MG-ACOEE with different AntsNum and the benchmark. In this figure, it can be found that the TPI time ratios for Cuprite and Urban data, indicated by the TPI(Cuprite) and TPI(Urban) curves, were less than the AntsNum ratios in the MG-ACOEE with different AntsNum. For example, if AntsNum = 32, the AntsNum ratios was eight, while the TPI time ratios for Cuprite and Urban data were respectively 5.00 and 6.28. That was because the computing time searching for the optimal solution increased as AntsNum increased, while the synchronizing time cost essentially was unchanged. This also means that the percentage of synchronizing time in TT decreased accordingly. For the same reason, the TPI time ratios on Cuprite data were less than the ones on Urban data. As a result of enhanced searching ability in an iteration, less iterations were needed in MG-ACOEE with more ants in the colony to obtain the optimal solution. Therefore, TT time ratios were even less than TPI time ratios for both Cuprite and Urban data, shown by the TT(Cuprite) and TT(Urban) curves.
3. Influence of SyncNum:
In MG-ACOEE, ants in a sub-ant-colony complete SyncNum iterations in a synchronous cycle, and then, the global best solution and global pheromone data are updated and the convergence conditions checked. SyncNum represents the frequency of synchronizing operations in MG-ACOEE, which are closely related to time per iteration and the convergence rate of the algorithm.
In this subsection, six experiments were carried out to evaluate the influence of SyncNum. GPUsNum and AntsNum were separately set to eight and 32 in all the experiments, and SyncNum was respectively set to 4, 8, 16, 32, 64, and 96. In the same way, the algorithms were run five times separately on Cuprite and Urban data, and then, the average values and standard variances of RMSE, IN, TT, and TPI are reported in the Table 14 and Table 15.
The variations of TPI and IN in Cuprite and Urban experimental results also can be found in Figure 7. It was revealed that TPI slightly decreased, whereas IN considerably increased, when SyncNum increased from 4–96. This was because the synchronizing number and correlative time cost was reduced accordingly. However, it should be particularly noted that there were fewer chances to check the convergence conditions of the algorithm as SyncNum went up. Therefore, the convergence conditions were more difficult to satisfy, and IN notably increased by more than 80%; as a result, more time was spent on obtaining the optimal solutions. Thanks to the more full searching in the solution space, the RMSE values were slightly reduced in both the Cuprite and Urban experimental results.

4.4. Discussions

In the experiments on two real hyperspectral datasets, both endmember extraction accuracy and parallel performance were evaluated, and then, the influences of key parameters, i.e., GPUsNum, AntsNum, and SyncNum, were analyzed. For a colony with a fixed number of ants, the computing performance of MG-ACOEE was significantly improved owing to the multi-GPU parallel computing technology, when compared with O-ACOEE and G-ACOEE. Moreover, the advantage of MG-ACOEE on computing performance would be greater if more GPUs were utilized, while maintaining their endmember extraction accuracy. Therefore, it is proposed that GPUsNum, i.e., the number of sub-ant-colonies, should be set as big as possible in a multi-GPU computing system. If GPUsNum was fixed, total times and times per iteration did not increase linearly as AntsNum increased, because less time was utilized for data synchronization. It was a cost-efficient choice to set AntsNum = 32 in the MG-ACOEE for the reason that the RMSE of endmembers could be reduced owing to more ants used for searching for the optimal solution. In the experiments, SyncNum increasing could make the times per iteration slightly decrease and the iteration number considerably increase. Considering the lower RMSE values along with fuller searching in the solution space, SyncNum is recommended to be set to 32.
From the experimental analyses, it could be found that the RMSE values were closely related to the ant number in the colony and the iteration number. In other words, fuller searching in the solution space was conducive to obtaining higher precision endmember results. MG-ACOEE has shown high computational efficiency and has great potential to further improve the searching capability without too much time cost.

5. Conclusions

This paper proposes a multi-GPU-based parallel design to the ACOEE algorithm aiming at improving its computing performance. In order to take full advantage of the computing resource in a multi-GPU system, a parallel design based on multiple sub-ant-colonies was applied, in which the computing tasks of multiple sub-ant-colonies were allocated to different GPUs. The strategy of pheromone updating and stop rules of the algorithm was redesigned to adapt to the sub-ant-colonies. The experiments on the well-known Cuprite and Urban data demonstrated that the computational performance of ACOEE was significantly improved owing to the proposed methods, and preferable endmember extraction accuracy and parallel performance can be obtained via setting proper key parameters in MG-ACOEE.
Due to the tremendous advantage in computing performance, MG-ACOEE has the potential to improve the endmember extraction accuracy ulteriorly, which means that more GPUs and more ants will be considered to improve the searching ability of MG-ACOEE in future work. We also will focus on applying the multi-GPU parallel technology to accelerate the efficiency of other information extraction algorithms on hyperspectral remote sensing data.

Author Contributions

Methodology, J.G. and B.Z.; project administration, Z.C. and L.G.; software, Y.S. and W.Z.; validation, Y.S. and W.Z.; writing, original draft, J.G. and L.G.; writing, review and editing, B.Z. and Z.C.

Funding

This work was jointly supported by the Director Foundation for Young Scientists of Institute of Remote Sensing and Digital Earth, Chinese Academy of Sciences (research on the method and parallel implementation of endmember extraction from hyperspectral image based on the firefly algorithm), the Open Research Fund of Key Laboratory of Digital Earth Science, Institute of Remote Sensing and Digital Earth, Chinese Academy of Sciences (Grant No. 2014LDE004), the National Natural Science Foundation of China (Grant Nos. 91638201, 41571349, and 11571031), the National Key Research and Development Program of China (Grant No. 2016YFB0500304), and the Strategic Priority Research Program of the Chinese Academy of Sciences (Grant No. XDA19080302).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Song, C. Spectral mixture analysis for subpixel vegetation fractions in the urban environment: How to incorporate endmember variability? Remote Sens. Environ. 2005, 2, 248–263. [Google Scholar] [CrossRef]
  2. Bioucas-Dias, J.M.; Plaza, A.; Dobigeon, N.; Parente, M.; Du, Q.; Gader, P.; Chanussot, J. Hyperspectral unmixing overview: Geometrical, statistical, and sparse regression-based approaches. IEEE J. Sel. Top. Appl. Earth Observ. Remote Sens. 2012, 2, 354–379. [Google Scholar] [CrossRef]
  3. Keshava, N.; Mustard, J.F. Spectral unmixing. IEEE Signal Process. Mag. 2002, 1, 44–57. [Google Scholar] [CrossRef]
  4. Heinz, D.C.; Chang, C.-I. Fully constrained least squares linear spectral mixture analysis method for material quantification in hyperspectral imagery. IEEE Trans. Geosci. Remote Sens. 2001, 3, 529–545. [Google Scholar] [CrossRef]
  5. Winter, M.E. N-FINDR: An algorithm for fast autonomous spectral endmember determination in hyperspectral data. Proc. SPIE 1999, 3753, 266–275. [Google Scholar]
  6. Boardman, J.W.; Kruse, F.A.; Green, R.O. Mapping target signatures via partial unmixing of aviris data. In Proceedings of the Fifth Annual JPL Airborne Earth Science Workshop, Pasadena, CA, USA, 23–26 January 1995; pp. 23–26. [Google Scholar]
  7. Nascimento, J.M.P.; Dias, J.M.B. Vertex component analysis: A fast algorithm to unmix hyperspectral data. IEEE Trans. Geosci. Remote Sens. 2005, 4, 898–910. [Google Scholar] [CrossRef]
  8. Plaza, A.; Martinez, P.; Perez, R.; Plaza, J. Spatial/spectral endmember extraction by multidimensional morphological operations. IEEE Trans. Geosci. Remote Sens. 2002, 9, 2025–2041. [Google Scholar] [CrossRef]
  9. Li, J.; Bioucas-Dias, J.M. Minimum volume simplex analysis: A fast algorithm to unmix hyperspectral data. In Proceedings of the 2007 IEEE International Geoscience and Remote Sensing Symposium, Boston, MA, USA, 8–11 July 2008; pp. III-250–III-253. [Google Scholar]
  10. Somers, B.; Zortea, M.; Plaza, A.; Asner, G.P. Automated extraction of image-based endmember bundles for improved spectral unmixing. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2012, 2, 396–408. [Google Scholar] [CrossRef]
  11. Xiong, W.; Chang, C.-I.; Wu, C.-C.; Kalpakis, K.; Chen, H.M. Fast algorithms to implement N-FINDR for hyperspectral endmember extraction. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2011, 3, 545–564. [Google Scholar] [CrossRef]
  12. Sun, Y.; Bioucas-Dias, J.M.; Zhang, X.; Liu, Y.; Plaza, A. A new classification-oriented endmember extraction and sparse unmixing approach for hyperspectral data. In Proceedings of the 2017 IEEE International Geoscience and Remote Sensing Symposium, Fort Worth, TX, USA, 23–28 July 2017; pp. 3644–3647. [Google Scholar]
  13. Palsson, B.; Sigurdsson, J.; Sveinsson, J.R.; Ulfarsson, M.O. Hyperspectral Unmixing Using a Neural Network Autoencoder. IEEE Access 2018, 6, 25646–25656. [Google Scholar] [CrossRef]
  14. Zhang, B.; Sun, X.; Gao, L.R.; Yang, L. Endmember extraction of hyperspectral remote sensing images based on the ant colony optimization (ACO) algorithm. IEEE Trans. Geosci. Remote Sens. 2011, 7, 2635–2646. [Google Scholar] [CrossRef]
  15. Zhang, B.; Gao, J.; Gao, L.; Sun, X. Improvements in the Ant Colony Optimization Algorithm for Endmember Extraction From Hyperspectral Images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2013, 2, 522–530. [Google Scholar] [CrossRef]
  16. Zhang, B.; Sun, X.; Gao, L.R.; Yang, L. Endmember extraction of hyperspectral remote sensing images based on the discrete particle swarm optimization algorithm. IEEE Trans. Geosci. Remote Sens. 2011, 11, 4173–4176. [Google Scholar] [CrossRef]
  17. Liu, R.; Du, B.; Zhang, L. Multiobjective endmember extraction for hyperspectral image. In Proceedings of the 2017 IEEE International Geoscience and Remote Sensing Symposium, Fort Worth, TX, USA, 23–28 July 2017; pp. 1161–1164. [Google Scholar]
  18. Sun, X.; Yang, L.; Zhang, B.; Gao, L.; Gao, J. An Endmember Extraction Method Based on Artificial Bee Colony Algorithms for Hyperspectral Remote Sensing Images. Remote Sens. 2015, 12, 16363–16383. [Google Scholar] [CrossRef]
  19. Plaza, A.; Valencia, D.; Plaza, J.; Chang, C.-I. Parallel implementation of endmember extraction algorithms from hyperspectral data. IEEE Trans. Geosci. Remote Sens. Lett. 2006, 3, 334–338. [Google Scholar] [CrossRef]
  20. Plaza, A.; Du, Q.; Chang, Y.-L.; King, R.L. High performance computing for hyperspectral remote sensing. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2011, 3, 528–544. [Google Scholar] [CrossRef]
  21. Lee, C.A.; Gasster, S.D.; Plaza, A.; Chang, C.-I.; Huang, B. Recent developments in high performance computing for remote sensing: A review. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2011, 3, 508–527. [Google Scholar] [CrossRef]
  22. Wu, X.; Huang, B.; Plaza, A.; Li, Y.; Wu, C. Real-Time Implementation of the Pixel Purity Index Algorithm for Endmember Identification on GPUs. IEEE Trans. Geosci. Remote Sens. Lett. 2014, 5, 955–959. [Google Scholar] [CrossRef]
  23. Agathos, A.; Li, J.; Petcu, D.; Plaza, A. Multi-GPU Implementation of the Minimum Volume Simplex Analysis Algorithm for Hyperspectral Unmixin. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2014, 6, 2281–2296. [Google Scholar] [CrossRef]
  24. Jimenez, L.I.; Sanchez, S.; Martin, G.; Plaza, J.; Plaza, A.J. Parallel Implementation of Spatial-Spectral Endmember Extraction on Graphic Processing Units. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2017, 4, 1247–1255. [Google Scholar] [CrossRef]
  25. Jiang, H.; Chen, S.; Li, D.; Wang, C.; Yang, J. Papaya Tree Detection with UAV Images Using a GPU-Accelerated Scale-Space Filtering Method. Remote Sens. 2017, 7, 721. [Google Scholar] [CrossRef]
  26. Martel, E.; Lazcano, R.; Lopez, J.; Madronal, D.; Salvador, R.; Lopez, S.; Juarez, E.; Guerra, R.; Sanz, C.; Sarmiento, R. Implementation of the Principal Component Analysis onto High-Performance Computer Facilities for Hyperspectral Dimensionality Reduction: Results and Comparisons. Remote Sens. 2018, 6, 864. [Google Scholar] [CrossRef]
  27. Zhou, Y.; He, F.; Hou, N.; Qiu, Y. Parallel ant colony optimization on multi-core SIMD CPUs. Future Gener. Comput. Syst. 2018, 79, 473–487. [Google Scholar] [CrossRef]
  28. Zhou, Y.; He, F.; Qiu, Y. Dynamic strategy based parallel ant colony optimization on GPUs for TSPs. Sci. China Inf. Sci. 2017, 6, 068102. [Google Scholar] [CrossRef]
  29. Rey, A.; Prieto, M.; Gomez, J.I.; Tenllado, C.; Hidalgo, J. A CPU-GPU Parallel Ant Colony Optimization Solver for the Vehicle Routing Problem. In Proceedings of the International Conference on the Applications of Evolutionary Computation, Parma, Italy, 3–7 April 2018; pp. 653–667. [Google Scholar]
  30. Cekmez, U.; Ozsiginan, M.; Sahingoz, O.K. Multi-UAV Path Planning with Multi Colony Ant Optimization. In Proceedings of the International Conference on Intelligent Systems Design and Applications, Delhi, India, 14–16 December 2017; pp. 407–417. [Google Scholar]
  31. Colorni, A.; Dorigo, M.; Maniezzo, V. Distributed optimization by ant colonies. In Proceedings of the Advances in Artificial Life: 5th European Conference, ECAL’99, Lausanne, Switzerland, 13–17 September 1991; pp. 134–142. [Google Scholar]
  32. Gao, L.; Gao, J.; Li, J.; Plaza, A.; Zhuang, L.; Sun, X.; Zhang, B. Multiple Algorithm Integration Based on Ant Colony Optimization for Endmember Extraction From Hyperspectral Imagery. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2015, 6, 2569–2581. [Google Scholar] [CrossRef]
  33. Dennison, P.E.; Roberts, D.A. Endmember selection for multiple endmember spectral mixture analysis using endmember average RMSE. Remote Sens. Environ. 2003, 2, 123–135. [Google Scholar] [CrossRef]
  34. Martel, E.; Guerra, R.; Lopez, S.; Sarmiento, R. A GPU-Based Processing Chain for Linearly Unmixing Hyperspectral Images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2017, 3, 818–834. [Google Scholar] [CrossRef]
  35. Li, W.; Zhang, L.; Zhang, L.; Du, B. GPU Parallel Implementation of Isometric Mapping for Hyperspectral Classification. IEEE Trans. Geosci. Remote Sens. Lett. 2017, 9, 1532–1536. [Google Scholar] [CrossRef]
  36. Hossam, M.A.; Ebied, H.M.; Abdel-Aziz, M.H.; Tolba, M.F. Accelerated hyperspectral image recursive hierarchical segmentation using GPUs, multicore CPUs, and hybrid CPU/GPU cluster. J. Real-Time Image Process. 2018, 2, 413–432. [Google Scholar] [CrossRef]
  37. Wu, Z.; Shi, L.; Li, J.; Wang, Q.; Sun, L.; Wei, Z.; Plaza, J.; Plaza, A. GPU Parallel Implementation of Spatially Adaptive Hyperspectral Image Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2018, 4, 1131–1143. [Google Scholar] [CrossRef]
  38. Torti, E.; Fontanella, A.; Plaza, A. Parallel real-time virtual dimensionality estimation for hyperspectral images. J. Real-Time Image Process. 2018, 4, 753–761. [Google Scholar] [CrossRef]
  39. Pan, L.; Li, H.C.; Ni, J.; Chen, C.; Chen, X.D.; Du, Q. GPU-based fast hyperspectral image classification using joint sparse representation with spectral consistency constraint. J. Real-Time Image Process. 2018, 15, 1–13. [Google Scholar] [CrossRef]
  40. Green, R.O.; Eastwood, M.L.; Sarture, C.M.; Chrien, T.G.; Aronsson, M.; Chippendale, B.J.; Faust, J.A.; Pavri, B.E.; Chovit, C.J.; Solis, M.; et al. Imaging spectroscopy and the Airborne Vsible/Infrared Imaging Spectrometer (AVIRIS). Remote Sens. Environ. 1998, 3, 227–248. [Google Scholar] [CrossRef]
  41. Liu, X.; Xia, W.; Wang, B.; Zhang, L. An Approach Based on Constrained Nonnegative Matrix Factorization to Unmix Hyperspectral Data. IEEE Trans. Geosci. Remote Sens. 2011, 2, 757–772. [Google Scholar] [CrossRef]
  42. Qian, Y.; Jia, S.; Zhou, J.; Robles-Kelly, A. Hyperspectral Unmixing via L1/2 Sparsity-Constrained Nonnegative Matrix Factorization. IEEE Trans. Geosci. Remote Sens. 2011, 11, 4282–4297. [Google Scholar] [CrossRef]
  43. Zhu, F.; Wang, Y.; Xiang, S.; Fan, B.; Pan, C. Structured Sparse Method for Hyperspectral Unmixing. ISPRS J. Photogramm. Remote Sens. 2014, 2, 101–118. [Google Scholar] [CrossRef]
  44. Bioucas-Dias, J.M.; Nascimento, J.M.P. Hyperspectral subspace identification. IEEE Trans. Geosci. Remote Sens. 2008, 8, 2435–2445. [Google Scholar] [CrossRef]
Figure 1. Illustration of a grid of blocks of threads.
Figure 1. Illustration of a grid of blocks of threads.
Sensors 19 00598 g001
Figure 2. Schematic overview of the parallel design based on multiple sub-ant-colonies.
Figure 2. Schematic overview of the parallel design based on multiple sub-ant-colonies.
Sensors 19 00598 g002
Figure 3. Schematic overview of the implementation of multi-GPU ACO for endmember extraction (MG-ACOEE).
Figure 3. Schematic overview of the implementation of multi-GPU ACO for endmember extraction (MG-ACOEE).
Sensors 19 00598 g003
Figure 4. (a) False color composition of the Cuprite dataset. (b) True color composition of the Urban dataset.
Figure 4. (a) False color composition of the Cuprite dataset. (b) True color composition of the Urban dataset.
Sensors 19 00598 g004
Figure 5. Speedup ratios of MG-ACOEE with different GPUsNum and G-ACOEE.
Figure 5. Speedup ratios of MG-ACOEE with different GPUsNum and G-ACOEE.
Sensors 19 00598 g005
Figure 6. Time ratios of MG-ACOEE with different AntsNum and G-ACOEE.
Figure 6. Time ratios of MG-ACOEE with different AntsNum and G-ACOEE.
Sensors 19 00598 g006
Figure 7. Time Ratios of MG-ACOEE with different SyncNum and G-ACOEE.
Figure 7. Time Ratios of MG-ACOEE with different SyncNum and G-ACOEE.
Sensors 19 00598 g007
Table 1. Main GPU features.
Table 1. Main GPU features.
NVIDIA TITAN Xp
CUDA core3840
Boost Clock (MHz)1582
Memory Amount (GB)12
Memory Speed (Gbps)11.4
Memory Interface width (bit)384
Memory Bandwidth (GB/S)547.7
Table 2. Comparison of original (O)-ACOEE, G-ACOEE, and MG-ACOEE (abundance sum-to-one constraint (ASC)) on endmember extraction accuracy for Cuprite data.
Table 2. Comparison of original (O)-ACOEE, G-ACOEE, and MG-ACOEE (abundance sum-to-one constraint (ASC)) on endmember extraction accuracy for Cuprite data.
AlgorithmsSpectral Angle Distance (×10−2)RMSE
Alunite
GDS84
Calcite
WS272
Kaolinite
KGa-1
Muscovite
GDS107
Mean
O-ACOEE9.20 ± 1.9510.03 ± 0.349.40 ± 0.779.82 ± 1.159.61 ± 1.053.030 ± 0.016
G-ACOEE7.97 ± 1.7410.13 ± 0.269.05 ± 0.959.56 ± 0.699.18 ± 0.913.024 ± 0.012
MG-ACOEE7.19 ± 09.89 ± 0.319.79 ± 0.119.56 ± 0.699.11 ± 0.283.018 ± 0.007
Table 3. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on endmember extraction accuracy for Cuprite data.
Table 3. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on endmember extraction accuracy for Cuprite data.
AlgorithmsSpectral Angle Distance (×10−2)RMSE
Alunite
GDS84
Calcite
WS272
Kaolinite
KGa-1
Muscovite
GDS107
Mean
O-ACOEE7.27 ± 0.1810.12 ± 0.259.92 ± 0.1310.13 ± 0.609.36 ± 0.293.300 ± 0.020
G-ACOEE7.42 ± 0.4110.35 ± 0.259.53 ± 0.5210.45 ± 0.129.43 ± 0.333.295 ± 0.020
MG-ACOEE7.19 ± 010.36 ± 0.309.71 ± 0.4810.46 ± 0.139.43 ± 0.233.295 ± 0.021
Table 4. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on endmember extraction accuracy for Urban data.
Table 4. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on endmember extraction accuracy for Urban data.
AlgorithmsSpectral Angle Distance (×10−2)RMSE
Asphalt
Road
GrassTreeRoofMean
O-ACOEE19.10 ± 08.70 ± 06.92 ± 1.735.61 ± 010.08 ± 0.438.155 ± 0.018
G-ACOEE19.10 ± 08.70 ± 07.54 ± 2.795.61 ± 010.20 ± 0.708.156 ± 0.018
MG-ACOEE19.10 ± 08.70 ± 08.19 ± 1.415.61 ± 010.40 ± 0.358.142 ± 0.014
Table 5. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on endmember extraction accuracy for Urban data.
Table 5. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on endmember extraction accuracy for Urban data.
AlgorithmsSpectral Angle Distance (×10−2)RMSE
Asphalt
Road
GrassTreeRoofMean
O-ACOEE18.83 ± 08.70 ± 05.66 ± 023.70 ± 014.22 ± 010.173 ± 0.652
G-ACOEE18.83 ± 08.70 ± 05.66 ± 023.70 ± 014.22 ± 010.168 ± 0.007
MG-ACOEE18.83 ± 08.70 ± 05.66 ± 023.70 ± 014.22 ± 010.165 ± 0.007
Table 6. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on computing performance for Cuprite data.
Table 6. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on computing performance for Cuprite data.
AlgorithmsIteration NumbersTotal TimeTPI (Time per Iteration)
O-ACOEE284.0 ± 35.499259.83 ± 1468.8632.605 ± 1.140
G-ACOEE324.6 ± 50.07154.64 ± 24.120.476 ± 0.011
MG-ACOEE424.8 ± 25.3529.87 ± 1.680.070 ± 0.001
Table 7. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on computing performance for Cuprite data.
Table 7. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on computing performance for Cuprite data.
AlgorithmsIteration NumbersTotal TimeTPI (Time per Iteration)
O-ACOEE299.0 ± 28.4567,868.65 ± 9388.48226.500 ± 14.280
G-ACOEE370.0 ± 53.581991.81 ± 304.165.379 ± 0.059
MG-ACOEE444.8 ± 49.10323.73 ± 40.580.727 ± 0.012
Table 8. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on computing performance for Urban data.
Table 8. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (ASC) on computing performance for Urban data.
AlgorithmsIteration NumbersTotal TimeTPI (Time per Iteration)
O-ACOEE264.6 ± 49.3518,155.67 ± 3244.9868.616 ± 0.898
G-ACOEE271.0 ± 35.43226.07 ± 27.560.834 ± 0.008
MG-ACOEE368.0 ± 22.0541.58 ± 2.410.113 ± 0.001
Table 9. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on computing performance for Urban data.
Table 9. Comparison of O-ACOEE, G-ACOEE, and MG-ACOEE (full constraint) on computing performance for Urban data.
AlgorithmsIteration NumbersTotal TimeTPI (Time per Iteration)
O-ACOEE219.0 ± 17.2644,685.95 ± 4504.05204.142 ± 13.994
G-ACOEE226.4 ± 20.401221.10 ± 115.465.392 ± 0.034
MG-ACOEE285.6 ± 30.93225.89 ± 54.340.785 ± 0.127
Table 10. Comparison of different GPUsNum in MG-ACOEE on the parallel performance for Cuprite data. IN, iteration number; IT, total time.
Table 10. Comparison of different GPUsNum in MG-ACOEE on the parallel performance for Cuprite data. IN, iteration number; IT, total time.
GPUsNum1248
RMSE3.024 ± 0.0123.026 ± 0.0093.022 ± 0.0093.018 ± 0.007
IN324.6 ± 50.07316.8 ± 30.51368.8 ± 48.69424.8 ± 25.35
TT154.64 ± 24.1382.02 ± 7.3749.10 ± 5.5929.87 ± 1.68
TPI0.476 ± 0.0110.259 ± 0.0110.133 ± 0.0040.070 ± 0.001
Table 11. Comparison of different GPUsNum in MG-ACOEE on the parallel performance for Urban data.
Table 11. Comparison of different GPUsNum in MG-ACOEE on the parallel performance for Urban data.
GPUsNum1248
RMSE8.170 ± 0.0218.149 ± 0.0188.149 ± 0.0178.142 ± 0.014
IN271.0 ± 35.43284.8 ± 11.43312.8 ± 20.61368.0 ± 22.05
TT226.07 ± 27.56119.85 ± 5.4366.92 ± 4.2941.58 ± 2.41
TPI0.834 ± 0.0080.421 ± 0.0030.214 ± 0.0010.113 ± 0.001
Table 12. Comparison of different AntsNum in MG-ACOEE on the parallel performance for Cuprite data.
Table 12. Comparison of different AntsNum in MG-ACOEE on the parallel performance for Cuprite data.
AntsNum412202832
RMSE3.052 ± 0.0163.035 ± 0.0253.025 ± 0.0083.021 ± 0.0073.018 ± 0.007
IN594.4 ± 57.28477.6 ± 75.92411.2 ± 52.24414.4 ± 61.43424.8 ± 25.35
TT8.62 ± 0.4815.29 ± 2.2825.33 ± 3.4927.13 ± 4.3329.87 ± 1.68
TPI0.014 ± 0.0010.032 ± 0.0020.056 ± 0.0030.065 ± 0.0020.070 ± 0.001
Table 13. Comparison of different AntsNum in MG-ACOEE on the parallel performance for Urban data.
Table 13. Comparison of different AntsNum in MG-ACOEE on the parallel performance for Urban data.
AntsNum412202832
RMSE8.255 ± 0.1178.163 ± 0.0148.156 ± 0.0178.149 ± 0.0188.142 ± 0.014
IN665.6 ± 51.64524.0 ± 57.24452.0 ± 11.03390.4 ± 37.57368.0 ± 22.05
TT11.86 ± 0.9623.85 ± 2.3032.88 ± 0.7439.14 ± 3.6041.58 ± 2.41
TPI0.018 ± 00.046 ± 0.0010.073 ± 00.100 ± 0.0010.113 ± 0.001
Table 14. Comparison of different SyncNum in MG-ACOEE on the parallel performance for Cuprite data.
Table 14. Comparison of different SyncNum in MG-ACOEE on the parallel performance for Cuprite data.
SyncNum4816326496
RMSE3.018 ± 0.0073.020 ± 0.0093.015 ± 0.0083.012 ± 0.0043.012 ± 0.0023.012 ± 0.004
IN424.8 ± 25.35420.8 ± 53.69454.4 ± 21.70588.8 ± 15.68652.8 ± 74.64806.4 ± 97.9
TT29.87 ± 1.6829.61 ± 3.4831.77 ± 1.8138.68 ± 1.0243.69 ± 4.9952.84 ± 6.21
TPI0.070 ± 0.0010.070 ± 0.0010.070 ± 0.0020.066 ± 00.067 ± 0.0010.066 ± 0
Table 15. Comparison of different SyncNum in MG-ACOEE on the parallel performance for Urban data.
Table 15. Comparison of different SyncNum in MG-ACOEE on the parallel performance for Urban data.
SyncNum4816326496
RMSE8.142 ± 0.0148.142 ± 0.0148.142 ± 0.0148.141 ± 0.0138.135 ± 08.135 ± 0
IN368.0 ± 22.05411.2 ± 33.79432.0 ± 44.11499.2 ± 47.89576.0 ± 40.48672.0 ± 60.72
TT41.58 ± 2.4145.86 ± 3.4547.39 ± 4.8054.16 ± 4.8462.01 ± 4.5371.95 ± 6.27
TPI0.113 ± 0.0010.112 ± 0.0010.110 ± 0.0010.108 ± 0.0010.108 ± 0.0010.107 ± 0.001

Share and Cite

MDPI and ACS Style

Gao, J.; Sun, Y.; Zhang, B.; Chen, Z.; Gao, L.; Zhang, W. Multi-GPU Based Parallel Design of the Ant Colony Optimization Algorithm for Endmember Extraction from Hyperspectral Images. Sensors 2019, 19, 598. https://doi.org/10.3390/s19030598

AMA Style

Gao J, Sun Y, Zhang B, Chen Z, Gao L, Zhang W. Multi-GPU Based Parallel Design of the Ant Colony Optimization Algorithm for Endmember Extraction from Hyperspectral Images. Sensors. 2019; 19(3):598. https://doi.org/10.3390/s19030598

Chicago/Turabian Style

Gao, Jianwei, Yi Sun, Bing Zhang, Zhengchao Chen, Lianru Gao, and Wenjuan Zhang. 2019. "Multi-GPU Based Parallel Design of the Ant Colony Optimization Algorithm for Endmember Extraction from Hyperspectral Images" Sensors 19, no. 3: 598. https://doi.org/10.3390/s19030598

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop