| Literature DB >> 25493625 |
Lauro C M de Paula1, Anderson S Soares1, Telma W de Lima1, Alexandre C B Delbem2, Clarimar J Coelho3, Arlindo R G Filho4.
Abstract
Several variable selection algorithms in multivariate calibration can be accelerated using Graphics Processing Units (GPU). Among these algorithms, the Firefly Algorithm (FA) is a recent proposed metaheuristic that may be used for variable selection. This paper presents a GPU-based FA (FA-MLR) with multiobjective formulation for variable selection in multivariate calibration problems and compares it with some traditional sequential algorithms in the literature. The advantage of the proposed implementation is demonstrated in an example involving a relatively large number of variables. The results showed that the FA-MLR, in comparison with the traditional algorithms is a more suitable choice and a relevant contribution for the variable selection problem. Additionally, the results also demonstrated that the FA-MLR performed in a GPU can be five times faster than its sequential implementation.Entities:
Mesh:
Year: 2014 PMID: 25493625 PMCID: PMC4262411 DOI: 10.1371/journal.pone.0114145
Source DB: PubMed Journal: PLoS One ISSN: 1932-6203 Impact factor: 3.240
Algorithm 1. Original Firefly Algorithm.
| 1. Initialize a population of fireflies |
| 2. Calculate objective function f( |
| 3. Define light absorption coefficient |
| 4. |
| 5. |
| 6. |
| 7. Light intensity |
| 8. |
| 9. Calculate the attractiveness between |
| 10. Move firefly |
| 11. |
| 12. Evaluate the new fireflies and update light intensities |
| 13. |
| 14. |
| 15. Rank the fireflies and find the current best |
| 16. |
| 17. Postprocess results |
Algorithm 2. Proposed FA-MLR.
| 1. |
| 2. |
| 3. |
| 4. Generate randomly a population of |
| 5. Compute |
| 6. Compute the number of variables used in the model |
| 7. Calculate |
| 8. If |
| 9. Move firefly |
| 10. Rank the fireflies and find the current best |
| 11. |
| 12. Postprocess results, that is, calculate the prediction error for the best firefly and visualize the selected variables indicated by it. |
Algorithm 3. Step 5 of the FA-MLR.
| 1. |
| 2. |
| 3. Obtain submatrix |
| 4. Allocate matrices |
| 5. Calculate |
| 6. |
Results of the FA-MLR, SPA-MLR, GA-MLR, PLS and BVS, in simulated data.
| Number of Variables | RMSEP | MAPE | AIC | BIC | PRESS | |
| Five variables generating | ||||||
| PLS | 4 | 1.11 | 3.7% | 1279 | 1330 | 29.29 |
| SPA-MLR | 2 | 1.05 | 3.53% | 1005 | 1020 | 26.82 |
| GA-MLR | 26 | 1.85 | 4.0% | 1981 | 2013 | 45.42 |
| BVS | 4 | 0.98 | 3.4% | 1201 | 1301 | 21.02 |
| FA-MLR | 3 | 0.97 | 3.3% | 956 | 972 | 19.98 |
| Ten variables generating | ||||||
| PLS | 4 | 1.91 | 3.5% | 1054 | 1093 | 69.05 |
| SPA-MLR | 4 | 1.75 | 3.2% | 1004 | 1021 | 61.26 |
| GA-MLR | 35 | 2.01 | 4.80% | 1791 | 1807 | 74.36 |
| BVS | 7 | 1.95 | 3.3% | 1149 | 1201 | 70.95 |
| FA-MLR | 3 | 1.67 | 3.1% | 901 | 933 | 57.5 |
Variable Selected by the Algorithms.
| Algorithm | Variables Found |
|
| |
| PLS | - |
| SPA-MLR |
|
| GA-MLR |
|
| 111, 127, 129, 136, 140, 158, 167, 174, 176, 188, 193 | |
| BVS |
|
| FA-MLR |
|
|
| |
| PLS | - |
| SPA-MLR |
|
| GA-MLR | 2, 7, 17, 17, 23, 26, 29, 32, 35, 38, |
| 71, 78, 84, | |
| BVS |
|
| FA-MLR |
|
The variables selected that were used to generating are marked with bold font.
Figure 1Behavior of average RMSEP versus .
Figure 2Behavior of RMSEP versus number of fireflies.
Figure 3Visualization of selected variables.
Results of the FA-MLR, SPA-MLR, GA-MLR, PLS and BVS.
| Number of Variables | RMSEP | MAPE | AIC | BIC | PRESS | |
| PLS | 15 | 0.21 | 1.50% | 1379 | 3630 | 10.09 |
| SPA-MLR | 13 | 0.20 | 1.43% | 45.54 | 120.58 | 9.95 |
| GA-MLR | 146 | 0.21 | 1.50% | 291.58 | 767.93 | 10.86 |
| BVS | 29 | 0.15 | 1.07% | 49.70 | 131.26 | 6.96 |
| FA-MLR | 11 | 0.09 | 0.8% | 31.45 | 96.34 | 4.08 |
Figure 4Comparison between actual and predicted concentration using the FA-MLR and the SPA-MLR.
Figure 5PRESS values for all algorithms: (a) PLS; (b) SPA-MLR; (c) GA-MLR; (d) BVS; and (e) FA-MLR.
Accuracy of regression models with artificial noise addition.
| RMSEP | MAPE | |
| PLS | 0.29 | 2.08% |
| SPA-MLR | 0.23 | 1.64% |
| GA-MLR | 0.35 | 2.51% |
| BVS | 0.21 | 1.50% |
| FA-MLR | 0.11 | 0.74% |
Figure 6Comparison of computational performance between the FA-MLR using CPU and GPU.
Computational time (seconds) for each implementation of the FA-MLR.
| Number of Fireflies | |||
| 100 | 300 | 500 | |
| FA-MLR using GPU | 69.34 | 223.56 | 355.34 |
| FA-MLR using CPU | 374.51 | 1119.63 | 1697.78 |
Computational time (seconds) for SPA-MLR, GA-MLR, PLS, BVS and FA-MLR.
| Time | |
| PLS | 2834.15 |
| SPA-MLR | 533.66 |
| GA-MLR | 372.22 |
| BVS | 315.68 |
| FA-MLR using GPU | 185.34 |
| FA-MLR using CPU | 931.45 |