Next Article in Journal
Spatial and Temporal Changes of Groundwater Storage in the Quaternary Aquifer, UAE
Next Article in Special Issue
Assessing Water Quality by Statistical Methods
Previous Article in Journal
An Assessment of Groundwater Recharge at a Regional Scale for Sustainable Resource Management: Province of Alicante (SE Spain)
Previous Article in Special Issue
Integrated Framework for Detecting the Areas Prone to Flooding Generated by Flash-Floods in Small River Catchments
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Computing the Beta Parameter in IDW Interpolation by Using a Genetic Algorithm

by
Alina Bărbulescu
1,
Cristina Șerban
2,* and
Marina-Larisa Indrecan
2
1
Department of Civil Engineering, Transilvania University of Brașov, 5 Turnului Street, 900152 Brașov, Romania
2
Department of Mathematics and Computer Science, Ovidius University of Constanta, 124 Mamaia Av., 900527 Constanta, Romania
*
Author to whom correspondence should be addressed.
Water 2021, 13(6), 863; https://doi.org/10.3390/w13060863
Submission received: 14 January 2021 / Revised: 22 February 2021 / Accepted: 20 March 2021 / Published: 22 March 2021
(This article belongs to the Special Issue Assessing Water Quality by Statistical Methods)

Abstract

:
This article proposes a new approach for determining the optimal parameter (β) in the Inverse Distance Weighted Method (IDW) for spatial interpolation of hydrological data series. This is based on a genetic algorithm (GA) and finds a unique β for the entire study region, while the classical one determines different βs for different interpolated series. The algorithm is proposed in four scenarios crossover/mutation: single-point/uniform, single-point/swap, two-point/uniform, and two-point swap. Its performances are evaluated on data series collected for 41 years at ten observation sites, in terms of mean absolute error (MAE) and mean standard error (MSE). The smallest errors are obtained in the two-point swap scenario. Comparisons of the results with those of the ordinary kriging (KG), classical IDW (with β = 2 and the optimum beta found by our algorithm), and the Optimized IDW with Particle Swarm Optimization (OIDW) for each study data series show that the present approach better performs in 70% (80%) cases.

1. Introduction

Evaluating and predicting the effects of atmospheric factors dynamics, like precipitation and temperature, are of major importance for human activity, especially for zones with arid or rainy climates. Since water scarcity impacts billions of people worldwide, it is important to assess the water resources availability at ungauged locations [1]. Spatial interpolation methods are utilized for estimating the values of environmental variables using data recorded at neighbor locations. The most utilized approaches are classified as deterministic, geostatistical, and combined (or hybrid) [2,3]. The Inverse Distance Weighting (IDW) is a deterministic (mechanical) technique. The attribute values of any pair of points are related to each other, their similarity being inversely proportional to the distance between the two locations [4,5].
Since IDW does not involve advanced computational knowledge, researchers widely utilized it for spatial interpolation problems. Different authors presented comparable IDW performances with other spatial interpolation methods [6,7,8,9,10,11]. In [6,7], it is shown that IDW provided better or comparative results as ordinary kriging (OK) in the spatial interpolation of precipitation in Taiwan and Norfolk Island. Ly et al. [8] reported that OK and IDW provided the smallest root mean squared error in a study concerning the daily rainfall at the catchment scale in Belgium. Dong et al. [9] found that Ordinary CoKriging (OCK) performed better than OK and IDW when interpolating daily rainfall in a river basin from China. IDW, Thiessen Polygons Method (TPM), and kriging have been evaluated against the Most Probable Precipitation Method (MPPM) on annual, monthly, seasonal, and annual monthly maximum precipitation series from ten stations of 41 data [10]. IDW over performed TPM and OK, but underperformed MPPM. Chen et al. [11] proposed an improved regression-based scheme (PCRR) that was superior to IDW and multiple linear regression (MLR) interpolation methods on data from the mesoscale catchment of the Fuhe River.
Even if the classical IDW (with the value of the parameter β = 2) was successfully employed for a long period for spatial interpolation problems, being easy to use, improving its performances was targeted by scientists. For example, Lu and Wong [4] proposed the weights’ modification depending on the neighboring locations’ distribution density around the unsampled place. Golkhatmi et al. [12] introduced altitude as a new variable in the IDW interpolation (keeping β = 2) and reported good results in the case study.
Another direction is finding the best β. This is an optimization problem by itself, targeted by many scientists [13,14,15,16,17,18,19]. For example, Noori et al. [13] employed IDW for estimating the distribution of precipitation in Iran, the value of the parameter (β) being recursively searched in the interval (1, 5], increasing its value each time. However, this grid-search procedure is time-consuming for small step sizes [5]. To avoid this drawback, Mei et al. [14] designed and implementing parallel adaptive inverse distance weighting (AIDW) interpolation algorithms by using the graphics processing unit (GPU) for accelerating the parameter finding. Gholipour et al. [15] propose a hybridization of IDW with a harmony search, which improves the convergence rate and reduces the search time.
In the same idea, hybrid methods have been proposed. Zhang et al. [16] combined Support Vector Machines (SVM) with IDW obtaining the SVM residual IDW, obtaining superior results by comparison to IDW and OK for the spatial interpolation of the multi-year average annual precipitation in the Three Gorges Region basin. Nourani et al. [17] used a two-stage framework for spatial interpolation of precipitation, employing, in the first stage, three artificial intelligence models that generate the input for the second stage, where they utilize IDW for spatial interpolation. Bărbulescu et al. [18] proposed a Particle Swarm Optimization approach (called OIDW) for finding a single β in IDW interpolation of maximum annual precipitation from the Dobrogea region (Romania). Chang et al. [19] applied a genetic algorithm (GA) to find the optimal distances between the gauged stations to minimize the estimation errors in IDW. Still, based on our knowledge, no attempt to optimize the choice of β parameter of IDW using a GA has been made so far.
On the other hand, GAs are widely used for solving real-life problems. For example, Ratnam et al. [20] improved seasonal air temperature forecasts using a genetic algorithm. Nasseri et al. [21] presented an optimized scenario for rainfall forecasting using a genetic algorithm coupled with an artificial neural network using rainfall hyetograph of recording rain gauges in the Upper Parramatta catchment (Sydney, Australia). Using the ability of GAs to search complex decision spaces, Sen and Ôztopal [22] utilized such an algorithm for optimizing the classification of rainy and non-rainy day occurrences using atmospheric data (temperature, humidity, dew point, vertical velocity). Heat conduction and control problems have also been solved by utilizing GAs [23,24].
In this context, this article proposes a new approach that optimizes the finding of the beta parameter of IDW. This is based on a genetic algorithm and finds a unique β for the entire study region, while the classical one determines different βs for different interpolated series. The algorithm is proposed in four scenarios crossover/mutation: single-point/uniform, single-point/swap, two-point/uniform, and two-point swap. Comparisons of its performances with those of the classical IDW (with β = 2 and the optimal beta found in our algorithm), ordinary kriging, and two versions of the optimized IDW by using Particle Swarm Optimization (OIDW) are also provided.

2. Methodology and Data Series

2.1. IDW Interpolation

The study problem is estimating a variable’s values at ungagged locations employing the same variable’s known values, registered at the neighboring observation sites [18]. In terms of mathematics, one can formulate the problem as follows. Given a set of spatial data of a variable z at n observation sites, s 1 ,   ,   s n determine the same variable’s values at the study site,   s 0 .
The IDW interpolation formula is:
z s 0 ^ = i = 1 n 1 / d s 0 ,   s i β i = 1 n 1 / d s 0 ,   s i β   z s i ,   β > 1
where z s 0 ^   is the value computed for the site s 0 , z s i is the value recorded at the site s i , d s 0 ,   s i is the distance between   s 0 and   s i , and β is a parameter whose value is either given or determined by different optimization methods. In the original algorithm, β = 2 [25,26].
The interpolation quality depends on β   which is generally determined after running a grid search. The time spent for finding the parameters is inverse proportional with the step of the grid.

2.2. Genetic Algorithms

A genetic algorithm (GA) is a metaheuristic method inspired by natural selection laws that try to find optimal solutions to complex problems to which deterministic approaches usually cannot find a good result. The genetic operators, selection, crossover, and mutation establish a balance between the exploration and exploitation of the search space [27,28]. Exploration means that the algorithm searches for new solutions in new regions, while exploitation refers to making refinement to existing solutions to improve their quality. A function called fitness measures the quality of the solutions, which are represented by chromosomes.
A GA starts with a population of some random chromosomes and (by applying the principle of ’survival of the fittest’) produces multiple generations by selecting in each one the fittest individuals for breeding. The mutation is then applied to increase the population diversity. Along with the generations, better individuals, i.e., better approximations to the solution, are obtained. The process continues until the fittest individual (the optimal solution) is found or the maximum number of generations is reached.
Using a genetic algorithm to solve a problem means finding the representation of the problem’s solutions (encoding of the chromosomes), the fitness function, and the genetic operators. A chromosome is a feasible solution to the problem. In our case, a chromosome represents a real value of the parameter a ≤ β ≤ b. Thus, we apply a value encoding and get a binary string with the length l, calculated using the following formula (the default encoding of real values to binary strings):
2l− 1 < (ba) ∗ 10z < 2l
where z represents the given number of β’s decimals. In this study, l = 9 bits.
The decimal value, val, of the binary chromosome representation, is computed by (3). We get the real value of a chromosome (β) by applying (4).
val = (β − a) × (2l 1)/(ba)
or
β = a + val × (ba)/(2l − 1)
The fitness function controls the possibility of individuals’ reproduction. The better chromosome is (i.e., the better fitness is), the more likely it is to be selected for breeding the next generation. Since our goal is to minimize the error between the results obtained by the spatial interpolation and those recorded at the meteorological stations, the fitness function will record the mean standard error (MSE) between the known data and those computed by IDW. A GA performs best when a feasible solution maximizes the fitness function. Hence, we apply one of the most commonly adopted fitness mapping (inversion scaling), which does not alter the minimum location, but converts a minimization problem to an equivalent maximization one.
We use the mean standard error and mean absolute deviation (MAE) to evaluate the GA’s performance. The lowest the MAE or MSE is, the better the algorithm performs.
Genetic operators are used for producing new generations of individuals with more diverse properties. There are three operators, selection, crossover, and mutation, which can set and, most of the time, find a good ratio between exploration and exploitation of the search space.
A selection operator determines the best individuals’ regions that will exchange information to create a new generation. In this paper, the roulette wheel selection method [27] is used.
A crossover operator combines two or more parents to generate one or two offspring. It implements the idea that a swap of information between good individuals will generate an even better one. In this paper, the single-point crossover and the two-point crossover are used to create new offspring [29].
A mutation operator randomly modifies chromosomes with a given probability, pm, called mutation rate, leading to an increased population’s structural diversity. Thus, a mutation operator facilitates the recovery of genetic material lost during the selection step and exploring new solutions. Here we used the uniform mutation [27] (one gene is randomly chosen and its value is modified) and swap mutation [27] (two positions on the chromosome are randomly selected, and their values are interchanged).
One may configure several control parameters in a genetic algorithm to achieve a balance between exploration and exploitation. If the population size is large, the search space is more explored than when the population size is small [28]. However, the runtime of the algorithm would increase. If crossover and mutation rates are high, the search will explore much of the solutions space, but there is a high chance of missing good solutions, the GA acting more like a random search. If crossover and mutation rates are low, the search space remains unexplored, and in this case, the GA resembles the hill-climbing algorithms. Therefore, we investigated the influence of the population size, crossover rate, mutation rate, and stop condition on the GA results. We performed each test ten times and averaged the results to increase their precision (as suggested in the literature). We implemented two crossover operators and two mutation operators to find the ones which are best suited for our problem. We also ran several tests for each pair of operators to see the relationship between the control parameters and the fitness value. Details are presented in the following sections.

2.3. New Approach for Estimating Beta

The genetic algorithm we implemented is presented in the following.
Input: The distances between stations and the precipitation series recorded at these stations.
Output: The optimal parameter value of β
 Begin
  • Generate a random population of n individuals represented as binary strings of length l = 9
  • Compute the fitness function
    • Select some chromosomes for crossover operation (the number of selected individuals is defined by the crossover rate)
    • Apply one of the crossover operators described in 2.2 to generate two new offspring
    • Copy the remaining chromosomes (that were not recombined) to the next generation
  • Select a few chromosomes for the mutation (the number of selected individuals is defined by the mutation rate)
  • If the number of generations is reached, then stop, else go to step 2
End
For a better understanding, a flowchart of the procedure of determination of the beta parameter is presented in Figure 1.
In order to find the best parameters settings for our problem, we fine tune our algorithm, which means creating several GA variants to test and find the best one, by slightly changing of GA parameters (population size, number of generations, crossover and mutation rates). We change only one parameter at a time, and try out several evolutionary literature-based test values. For example, for the crossover rate, the most used values in applications are in interval [0.6,1), whereas the mutation rate should be less than 10%. We run these GA variants on our problem, accept that parameter value at which the GA performs best, and continue to the next GA parameter, and so forth, to the last one. More precisely, to select the best population size, stop condition, and crossover rate the following steps are done.
Step 1.
We start with predefined values for the stop condition (10 generations), crossover rate (0.75), and mutation rate (0.015). Then, we vary the population size and compute the values of the fitness function. For each pair of operators (single-point/uniform, single-point/swap, two-point/uniform, two-point/swap), we chose the optimal population size to be the lowest value from which population growth does not significantly influence the modification of the fitness value.
Step 2.
With the population value determined at Step 1, the crossover rate, and the mutation rate kept at the same values as in Step 1, we run the algorithm to determine the best number of generations.
Step 3.
With the number of individuals determined at Step1, the number of generations determined at Step 2, and the mutation kept at the same value as in Step 1, we run the algorithm using different crossover rates, to determine the best crossover rate.
Step 4.
To find the best mutation rate, we set the best parameters from the previous steps and run the algorithm with different mutation rates.
Step 5.
The algorithm is run in each scenario with the new parameters determined in the previous steps.
Although the complexity of GAs has a probabilistic convergence time [30], the settings of our genetic algorithm are not complex, and, based on the experimental results that show that it converges in a short time, we may state that the best convergence time is logarithmic, O(log(n)), whereas the worst is linear, O(n). In the Results and Discussion, we present the recorded execution time (in seconds), which shows that the algorithms stop in short time for each test we did.

2.4. Data Series

Dobrogea is a region covering a surface between the Romanian Littoral of the Black Sea, the lower Danube River, and the Danube Delta, situated in the southeast part of Romania and characterized by long droughts periods. Records show the absence of precipitation for 4–6 months per year after 1961, which affects agricultural activities. Researchers analyzed precipitation and temperature evolution in this zone, especially after 2010, to mitigate the drought effects [31,32,33].
The data we are working with is formed by the maximum annual precipitation series recorded during a period of 41 years at 10 main meteorological stations from the Dobrogea region (Figure 2).

3. Results and Discussion

Firstly, we ran several tests to find the settings of control parameters that are most likely to produce the best results. We started with predefined values from the literature [27,28] for the stop condition (10 generations), crossover rate (0.75), and mutation rate (0.015). Then, we varied the population size (from 10 to 80, with a step of 5) and computed the fitness function’s corresponding values, run time, and β. Table 1 shows the relationship between the fitness value and population size.
For each pair of operators (single-point/uniform, single-point/swap, two-point/uniform, two-point/swap), we chose the optimal population size to be the lowest value from which population growth does not significantly influence the modification of the fitness value. This is 45, 40, 30, and 35 individuals, respectively, and the fitness function value is 0.0317. The corresponding β values obtained in the four scenarios are 1.256, 1.372, 1.308, and 1.336, respectively. These results are highlighted in Table 1.
Since we used a predefined number of generations as the stop condition, in the second stage, we had to determine its optimal value. To find it, for each pair of operators, we ran tests with several values of the number of generations, the population size previously estimated (45, 40, 30, 35, respectively—Table 1), keeping the mutation rate set to 0.015, and the crossover rate set to 0.75. Table 2 and Figure 3 show that the fitness value does not improve after a certain number of generations (which is the optimal number of generations).
Based on the highest fitness value, the optimum number of generations determined was nine for the single-point/uniform mutation scenario, whereas, for the other scenarios, the number of generations was five. The corresponding β-values obtained are 1.228, 1.242, 1.122, and 1.362, respectively (highlighted in Table 2, together with the fitness and beta values). Since in our algorithm, β is represented by a chromosome, and several genetic operators have been used, different chromosomes (β) could produce the same fitness value.
The next step is the determination of the optimal crossover rate. For this aim, we ran the algorithm in each scenario with different values of the crossover rate (from 0.6 – value suggested in the literature to 0.95, with a step of 0.05), the population size and number of generations previously determined (45, 40, 30, and 35 individuals, respectively; 9, 5, 5, 5 generations, respectively), and the mutation rate kept to 0.015. We chose the optimal crossover rate for each pair of operators to be the value that gives the best (highest) fitness.
From Table 3 it results that the best crossover rates are 0.8 when using a single-point/uniform scenario, 0.6 for single-point/swap, 0.75 for two-point/uniform, and 0.7 for two-point/swap. These values correspond to the highlighted sequences of values in Table 3.
The last step was the determination of the best mutation rate. Therefore, we analyzed the impact the mutation rate has on the GA’s results. We considered the population size, the number of generations, and the crossover rates we established in previous stages, and we performed new tests aiming at detecting the value of the mutation rate. For example, for single-point uniform mutation, we took the population size = 45, the number of generations = 9, the crossover rate = 0.80, and ran the tests for a mutation rate from 0.02 to 0.1, with a step size of 0.01. For each pair of operators, we search the optimal mutation rate for which the fitness value evolves to a maximum along with the generations. Table 4 contains the values of the fitness function obtained after running the algorithm in the four scenarios, with different mutation rates. For example, in Table 4a we present the values of the fitness function obtained for each generation (from 1 to 9) and the mutation rates from 0.02 to 0.1, in the single-point crossover/uniform mutation scenario. The highest fitness value is obtained after nine generations in the single-point crossover/uniform mutation, with a mutation rate of 0.06 (the sixth column–the highlighted values).
In the single-point crossover/swap mutation (Table 4b), the highest fitness value is 0.0315, obtained after 5 generations, with a mutation rate of 0.08 (the eighth column of Table 4b). For the two-point crossover/uniform mutation and two-point crossover/swap mutation (Table 4c,d), the best mutation rates are 0.04 and 0.05, respectively, and the corresponding value of the fitness function is 0.0313 (contained in the highlighted columns—the fourth and the fifth, respectively).
After setting the optimal parameters, determined in the previous stages, we finally ran the algorithm to determine the optimum beta parameters. Table 5 summarizes the parameters used to implement the proposed genetic algorithm (columns 2–5), the fitness function obtained after running the algorithm with these parameters (column 6), the execution time (column 7), and the value obtained for the IDW’s parameter (last column).
Remark that the values of β are different when using different scenarios, even if the fitness value is the same. This is due to the specifics of the individuals’ selection and operations in GAs.
The lowest execution time (0.6188) is obtained when using the single-point/swap scenario and the highest one (10.5875 s) when using a two-point/swap procedure. Even if in the two-point/uniform case, the population size and the number of generations are the smallest, the execution time is high (the second-highest).
Table 6 contains the MSE and MAE for each station and the average (the last row of the table) computed after running the algorithm in each scenario. Comparing the MSEs in the two-point/swap and single-point/uniform (single-point/swap, and two-point/uniform) scenario, they are smaller in 70% (70%, 70%) cases, so our algorithm, in two-point/swap scenario, performs better in 70% cases compared to the other three scenarios. The MSEs’ averages (31.5874, 31.5306, 31.5188, 31.5153) are comparable, the smallest being obtained in the two-point/swap scenario, followed by the third one.
Comparing the MAEs in the two-point/swap and single-point/uniform (single-point/swap, and two-point/uniform) scenario, they are smaller in 80% (80%, 80%) cases, so our algorithm, in two-point/swap scenario, performs better in 80% cases compared to the other three scenarios. The MAEs’ averages (23.6352, 23.5542, 23.5308, 23.5228) are comparable, the smallest being obtained in the two-point/swap scenario, followed by the third one.
The corresponding values computed for beta in the best two cases are 1.042 (in two-point/swap) and 1.064 (in two-point/uniform).
For comparison reasons, we performed the classical IDW, with β = 2 (the value used in most applications) and β = 1.042. The MAE and MSE values computed for each station are presented in Table 7.
Comparing the MSEs in the two-point/swap algorithm (Table 6, column 8) with those from the IDW with β = 2 (Table 7 column 2), they are smaller in 70% cases (the first four stations, the sixth, eighth, and ninth), so our algorithm performs better in 70% cases. Comparing the MSEs in the two-point/swap algorithm with those from the IDW with β = 1.042 (Table 7 column 4), they are smaller in 60% cases (the second, third, fourth, sixth, eighth, and ninth stations), so our algorithm better performs in 60% cases.
In terms of the average MSEs, that in the two-point/swap approach is smaller than those of the IDW (β = 2), IDW (β = 1.042), and slightly higher than in KG (Table 7, the last column). Still, our approach is preferable against KG since it is difficult to determine the kriging parameters, requiring special knowledge of geostatistics.
The MAEs in the two-point/swap algorithm are smaller than those from the IDW with β = 2, in 80% cases (all, but the first and sixth station), and comparable for the first station.
The MAEs in the two-point/swap algorithm are smaller than those from the IDW (β = 1.042), they in 60% cases (all, but the first and sixth station), and comparable for the first station.
The average MAE in the two-point/swap approach (23.5228) is significantly smaller than those in the IDW with β = 2 (26.90), and IDW with β = 1.042 (26.08).
From the computational viewpoint, the highest computational time in our experiment was 10.5875 (in the two-point scenario), while in the grid search to estimate beta with 3 decimals takes 60 seconds for each series, so, a total of 60*10 stations = 600 seconds, which is 56.67 times higher than in our approach.
The last two columns of in Table 7 contains the MSE in the optimized IDW, denoted by OIDW [18], in two scenarios, as described in [18]—with different beta, found using a Particle Swarm Optimization (PSO) approach (column 7), or with a single best beta found by the same approach.
In term of MSE, our GA algorithm (Table 7, column 8) performs better that OIDW (Table 7, columns 7 and 8) in 80% of cases. Therefore, we can say that a significant improvement of the interpolation performances are obtained, that may reflect in the water management policy.

4. Conclusions

In this article, we presented a new approach to finding the beta parameter in IDW, using a GA implemented in four scenarios. The settings of this GA were optimized for finding the best fitness function and, by consequence, the best parameter beta, for all the study sites, not only for some of them.
It is shown that the algorithm proposed here performs better (in all scenarios) than the classical one (with β = 2 and β = 1.042) in terms of average MSE and MAE. When compared the MSEs and MAEs for the individual stations, the following results are obtained:
  • In IDW with β = 2, MSE is smaller only for Hârșova, Mangalia, and Sulina, compared to the GA with a two-point swap.
  • In IDW with β = 2, MAE is smaller only for Adamclisi and Mangalia, compared to the GA with a two-point swap.
  • In IDW with β = 1.042, MSE is smaller than in GA (with two-point/swap) only for Adamclisi, Mangalia, and Sulina.
  • In IDW with β = 1.042, MAE is smaller than in GA with a two-point swap only for Adamclisi, Cernavoda, and Mangalia.
The algorithm performs faster than the classical IDW, for which the running time on the same problem is 60s for each interpolated data series (so 600s for all ten series). It is easy to be implemented and used and can be applied to similar problems only by changing the input data.
Compared with other artificial intelligence methods used for finding beta (OIDW) our approach shows superior performances in 80% of cases.
Another advantage is that our algorithm provides a single beta for all the stations, optimizing the interpolation.
The results obtained in all four GA’s scenarios are comparable. Since the execution time is the highest in the best scenario (Table 5), the other alternatives can be successfully used for the spatial interpolation when the number of series or the number of records per station is very high.

Author Contributions

Conceptualization, A.B. and C.Ș.; methodology, A.B. and C.Ș.; software, C. Ș. and M.-L.I.; validation, A.B. and C.Ș.; writing—review and editing, A.B., C.Ș. and M.-L.I., visualization, C.Ș. and M.-L.I.; supervision, A.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bărbulescu, A.; Popescu-Bodorin, N. History-based long-term predictability of regional monthly fuzzy data. Stoch. Environ. Res. Risk A 2019, 33, 1435–1441. [Google Scholar] [CrossRef]
  2. Li, J.; Heap, A.D. Spatial interpolation methods applied in the environmental sciences: A review. Environ. Modell. Softw. 2014, 53, 173–189. [Google Scholar] [CrossRef]
  3. Li, J.; Heap, A.D.; Potter, A.; Daniell, J.J. Application of machine learning methods to spatial interpolation of environmental variable. Environ. Modell. Softw. 2011, 26, 1647–1659. [Google Scholar] [CrossRef]
  4. Lu, G.Y.; Wong, D.W. An adaptive inverse-distance weighting spatial interpolation technique. Comput. Geosci. 2008, 34, 1044–1055. [Google Scholar] [CrossRef]
  5. Maleika, W. Inverse distance weighting method optimization in the process of digital terrain model creation based on data collected from a multibeam echosounder. Appl. Geomat. 2020, 12, 397–407. [Google Scholar] [CrossRef]
  6. Hsieh, H.H.; Cheng, S.J.; Liou, J.Y.; Chou, S.C.; Siao, B.R. Characterization of spatially distributed summer daily rainfall. J. Chin. Agr. Eng. 2006, 52, 47–55. [Google Scholar]
  7. Dirks, K.N.; Hay, J.E.; Stow, C.D.; Harris, D. High resolution studies of rainfall on Norfolk island part II: Interpolation of rainfall data. J. Hydrol. 1998, 208, 187–193. [Google Scholar] [CrossRef]
  8. Ly, S.; Charles, C.; Degré, A. Geostatistical interpolation of daily rainfall at catchment scale: The use of several variogram models in the Ourthe and Ambleve catchments, Belgium. Hydrol. Earth Sys. Sci. 2011, 15, 2259–2274. [Google Scholar] [CrossRef] [Green Version]
  9. Dong, X.H.; Bo, H.J.; Deng, X.; Su, J.; Wang, X. Rainfall spatial interpolation methods and their applications to Qingjiang river basin. J. China Three Gorges Univ. 2009, 31, 6–10. [Google Scholar]
  10. Bărbulescu, A. A new method for estimation the regional precipitation. Water Resour. Manag. 2016, 30, 33–42. [Google Scholar] [CrossRef]
  11. Chen, T.; Ren, L.; Yuan, F.; Yang, X.; Jiang, S.; Tang, T.; Zhang, L. Comparison of Spatial Interpolation Schemes for Rainfall Data and Application in Hydrological Modeling. Water 2017, 9, 342. [Google Scholar] [CrossRef] [Green Version]
  12. Golkhatmi, N.S.; Sanaeinejad, S.H.; Ghahraman, B.; Pazhand, H.R. Extended modified inverse distance method for interpolation rainfall. Int. J. Eng. Invent. 2012, 1, 57–65. [Google Scholar]
  13. Noori, M.J.; Hassan, H.; Mustafa, Y.T. Spatial estimation of rainfall distribution and its classification in Duhok governorate using GIS. J. Water. Resour. Protect. 2014, 6, 75–82. [Google Scholar] [CrossRef] [Green Version]
  14. Mei, G.; Xu, L.; Xu, N. Accelerating Adaptive IDW Interpolation Algorithm on a Single GPU. R. Soc. Open Sci. 2017, 4, 170436. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Gholipour, Y.; Shahbazi, M.M.; Behnia, A.R.A.S.H. An improved version of Inverse Distance Weighting metamodel assisted Harmony Search algorithm for truss design optimization. Latin Am. J. Solids Struct. 2013, 10, 283–300. [Google Scholar] [CrossRef] [Green Version]
  16. Zhang, X.; Liu, G.; Wang, H.; Li, X. Application of a hybrid interpolation method based on support vector machine in the precipitation spatial interpolation of basins. Water 2017, 9, 760. [Google Scholar] [CrossRef] [Green Version]
  17. Nourani, V.; Behfar, N.; Uzelaltinbulat, S.; Sadikoglu, F. Spatiotemporal precipitation modeling by artificial intelligence-based ensemble approach. Environ. Earth Sci. 2020, 79, 6. [Google Scholar] [CrossRef]
  18. Bărbulescu, A.; Băutu, A.; Băutu, E. Particle Swarm Optimization for the Inverse Distance Weighting Distance method. Appl. Sci. 2020, 10, 2054. [Google Scholar] [CrossRef] [Green Version]
  19. Chang, C.L.; Lo, S.L.; Yu, S.-L. The parameter optimization in the inverse distance method by genetic algorithm for estimating precipitation. Environ. Monit. Assess. 2006, 117, 145–155. [Google Scholar] [CrossRef]
  20. Ratnam, J.V.; Dijkstra, H.A.; Doi, T.; Morioka, Y.; Nonaka, M.; Behera, S.K. Improving seasonal forecasts of air temperature using a genetic algorithm. Sci. Rep. 2019, 9, 12781. [Google Scholar] [CrossRef] [Green Version]
  21. Nasseri, M.; Asghari, K.; Abedini, M.J. Optimized scenario for rainfall forecasting using genetic algorithm coupled with artificial neural network. Expert Syst. Appl. 2008, 35, 1415–1421. [Google Scholar] [CrossRef]
  22. Sen, Z.; Ôztopal, A. Genetic algorithms for the classification and prediction of precipitation occurrence. Hydrol. Sci. J. 2001, 46, 255–267. [Google Scholar] [CrossRef]
  23. Kadri, M.B.; Khan, W.A. Application of Genetic Algorithms in Nonlinear Heat Conduction Problems. Sci. World J. 2014, 2014, 451274. [Google Scholar] [CrossRef]
  24. Reddy, C.S.; Balaji, K. A Genetic Algorithm (GA)-PID Controller for Temperature Control in Shell and Tube Heat Exchanger. IOP Conf. Ser. Mater. Sci. Eng. 2020, 925, 012020. [Google Scholar] [CrossRef]
  25. Shepard, D. A Two-Dimensional Interpolation for Irregularly Spaced Data Function. In Proceedings of the 1968 ACM National Conference, New York, NY, USA, 27–29 August 1968; Blue, R.B., Rosenberg, A.M., Eds.; Association for Computing Machinery: New York, NY, USA, 1968; pp. 517–523. [Google Scholar]
  26. Lafitte, P. Traité d’Informatique Geologique; Masson: Paris, France, 1972. [Google Scholar]
  27. Sivanandam, S.N.; Deepa, S.N. Introduction to Genetic Algorithms; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  28. Haupt, R.L.; Haupt, S.E. Practical Genetic Algorithms; John Wiley & Sons Inc.: New York, NY, USA, 1998. [Google Scholar]
  29. Umbarkar, A.J.; Sheth, P.D. Crossover Operators in Genetic Algorithms: A Review. ICTACT J. Soft. Comp. 2015, 6, 1083–1092. [Google Scholar]
  30. Oliveto, P.S.; Witt, C. Improved time complexity analysis of the simple genetic algorithm. Theor. Comput. Sci. 2015, 605, 21–41. [Google Scholar] [CrossRef] [Green Version]
  31. Bărbulescu, A. Models for temperature evolution in Constanța area (Romania). Rom. J. Phys. 2016, 61, 676–686. [Google Scholar]
  32. Bărbulescu, A.; Deguenon, J. About the variations of precipitation and temperature evolution in the Romanian Black Sea Littoral. Rom. Rep. Phys. 2015, 67, 625–637. [Google Scholar]
  33. Bărbulescu, A.; Maftei, C.; Dumitriu, C.S. The modelling of the climateric process that participates at the sizing of an irrigation system. Bull. Appl. Comput. Math. 2002, 2048, 11–20. [Google Scholar]
Figure 1. The procedure flow chart. nGen represents the maximum number of generations.
Figure 1. The procedure flow chart. nGen represents the maximum number of generations.
Water 13 00863 g001
Figure 2. Maximum annual precipitation series.
Figure 2. Maximum annual precipitation series.
Water 13 00863 g002
Figure 3. The impact of the number of generations on fitness value in (a) single-point/uniform, (b) single-point/swap, (c) two point/uniform, (d) two point /swap scenarios.
Figure 3. The impact of the number of generations on fitness value in (a) single-point/uniform, (b) single-point/swap, (c) two point/uniform, (d) two point /swap scenarios.
Water 13 00863 g003
Table 1. The impact of population size on the GA accuracy. The best results are highlighted.
Table 1. The impact of population size on the GA accuracy. The best results are highlighted.
ScenarioSingle Point/UniformSingle Point/SwapTwo-Point/UniformTwo-Point/Swap
Pop. SizeFitnessTime (s)βFitnessTime (s)βFitnessTime (s)βFitnessTime (s)β
100.03110.3002.5280.03120.31562.3160.03130.35002.1860.03160.36251.580
150.03130.46251.5000.03150.46881.6120.03130.47192.1540.03160.47811.568
200.03140.60621.8620.03150.60311.7420.03160.63751.5140.03090.6752.886
250.03150.80311.7660.03150.81251.3460.03150.79061.7720.03130.79692.092
300.03160.93751.5940.03150.90941.7080.03170.95631.3080.03150.95311.758
350.03161.06561.5380.03161.06251.5420.03171.11251.3820.03171.1001.336
400.03161.28131.4940.03171.21881.3720.03171.28131.2980.03161.24371.620
450.03171.43121.2560.03161.36871.3820.03171.40941.2080.03171.47811.212
500.03171.67811.4800.03171.57811.1280.03171.53751.3080.03171.55941.274
550.03171.69061.3240.03161.83751.5520.03171.69381.1320.03161.7001.720
600.03171.81561.6900.03171.8501.2580.03171.87501.1220.03171.84691.192
650.03171.96251.2120.03161.97811.5100.03172.01561.2940.03172.09381.246
700.03172.17811.2480.03172.20621.0560.03172.22501.2000.03172.16561.210
750.03172.24371.3060.03172.30621.1260.03172.34061.2620.03172.36871.282
800.03172.44061.1620.03162.44691.3820.03172.45001.3200.03172.58441.306
Table 2. The impact of the number of generations on the GA performance. The best results are highlighted.
Table 2. The impact of the number of generations on the GA performance. The best results are highlighted.
ScenarioSingle Point/UniformSingle Point/Swap
Crossover RatePop. SizeNo. GenFitnessTime (s)βPop. SizeNo. GenFitnessTime (s)β
0.64590.03161.24691.4764050.03170.62191.242
0.654590.03161.23441.3724050.03170.60941.170
0.74590.03161.24691.264050.03170.61561.310
0.754590.03161.28751.5504050.03170.60941.174
0.84590.03171.25001.2284050.03170.60941.344
0.854590.03171.25631.0644050.03170.60001.148
0.94590.03171.23131.5564050.03160.61251.408
0.954590.03171.25631.3864050.03160.60941.192
ScenarioTwo-Point/UniformTwo-Point/Swap
Cross RatePop. SizeNo. GenFitnessTime (s)βPop SizeNo. GenFitnessTime (s)β
0.63050.03160.45941.4243550.03160.56251.538
0.653050.03150.47501.9643550.03160.55941.578
0.73050.03160.47191.5643550.03170.53441.362
0.753050.03170.45941.1223550.03170.53131.252
0.83050.03170.45621.5323550.03170.53751.208
0.853050.03170.46881.4003550.03170.53131.348
0.93050.03170.46881.3263550.03170.54691.124
0.953050.03160.45311.4063550.03170.54691.274
Table 3. The impact of crossover rate on the GA accuracy. The best results are highlighted.
Table 3. The impact of crossover rate on the GA accuracy. The best results are highlighted.
ScenarioSingle-Point/UniformSingle-Point/Swap
Crossover RatePop. SizeNo. GenFitnessTime (s)βPop. SizeNo. GenFitnessTime (s)β
0.64590.03161.24691.4764050.03170.62191.242
0.654590.03161.23441.3724050.03170.60941.170
0.74590.03161.24691.264050.03170.61561.310
0.754590.03161.28751.5504050.03170.60941.174
0.84590.03171.25001.2284050.03170.60941.344
0.854590.03171.25631.0644050.03170.60001.148
0.94590.03171.23131.5564050.03160.61251.408
0.954590.03171.25631.3864050.03160.60941.192
Two-Point/UniformTwo-Point/Swap
Cross RatePop. SizeNo. GenFitnessTime (s)βPop SizeNo. GenFitnessTime (s)β
0.63050.03160.45941.4243550.03160.56251.538
0.653050.03150.47501.9643550.03160.55941.578
0.73050.03160.47191.5643550.03170.53441.362
0.753050.03170.45941.1223550.03170.53131.252
0.83050.03170.45621.5323550.03170.53751.208
0.853050.03170.46881.4003550.03170.53131.348
0.93050.03170.46881.3263550.03170.54691.124
0.953050.03160.45311.4063550.03170.54691.274
Table 4. The impact of mutation rate on the GA accuracy. The best results are highlighted.
Table 4. The impact of mutation rate on the GA accuracy. The best results are highlighted.
a. Single-Point Crossover/Uniform Mutation
Mutation Rate
Gener.0.020.030.040.050.060.070.080.090.1
10.03070.03090.03090.03090.03080.03090.03100.03090.0309
20.03090.03100.03100.03100.03100.03090.03100.03100.0309
30.03090.03100.03100.03100.03100.03100.03110.03120.0309
40.03100.03110.03120.03100.03100.03110.03120.03120.0309
50.03100.03130.03120.03110.03120.03120.03120.03130.0309
60.03110.03130.03120.03110.03120.03120.03120.03130.0309
70.03110.03130.03130.03110.03120.03120.03120.03130.0309
80.03120.03130.03130.03110.03130.03120.03110.03120.0310
90.03130.03130.03130.03110.03140.03130.03110.03120.0312
b. Single-Point Crossover/Swap Mutation
Mutation Rate
Gener.0.020.030.040.050.060.070.080.090.1
10.03080.03090.0310.03090.03090.03090.03090.03080.0308
20.03080.03110.0310.03090.03080.03090.03110.03110.0310
30.03080.03120.03120.03090.03080.0310.03110.03110.0310
40.03090.03120.03120.0310.03100.0310.03120.03120.0311
50.03080.03130.03130.0310.03100.03110.03150.03120.0311
c. Two-Point Crossover/Uniform Mutation
Mutation Rate
Gener.0.020.030.040.050.060.070.080.090.1
10.03080.03080.03090.03080.03090.03110.03110.03080.0308
20.03090.03090.0310.03090.03090.0310.03130.03090.0309
30.03110.03090.03110.03110.03090.03110.03130.03110.0309
40.03110.03080.03120.03090.0310.0310.0310.03110.0308
50.03110.03080.03130.03120.0310.03120.03120.03110.0308
d. Two-Point Crossover/Swap Mutation
Gener.0.020.030.040.050.060.070.080.090.1
10.03080.03090.03110.03080.03080.0310.03090.03090.0309
20.03090.0310.03120.0310.03110.0310.0310.0310.0308
30.03080.0310.03110.03120.03090.0310.03110.0310.0309
40.0310.03110.03120.03130.03080.03090.03110.03120.0310
50.03110.0310.03120.03130.03090.0310.03110.03130.0309
Table 5. The control parameters settings for the GA.
Table 5. The control parameters settings for the GA.
Crossover/MutationPop. SizeNo. of Gen.Crossover RateMutation RateFitnessTime (s)β
Single-Point/Uniform4590.80.060.03171.24371.318
Single-Point/Swap4050.60.080.03170.61881.124
Two-Point/Uniform3050.750.040.03177.56871.064
Two-Point/Swap3550.70.050.031710.58751.042
Table 6. MSEs and MAEs in GA. The best results are highlighted.
Table 6. MSEs and MAEs in GA. The best results are highlighted.
StationSingle-Point/UniformSingle-Point/SwapTwo-Point/UniformTwo-Point/Swap
MSEMAEMSEMAEMSEMAEMSEMAE
Adamclisi36.230027.053636.163927.04736.137227.044036.126427.0436
Cernavoda22.975516.486122.722116.262822.668216.229022.652916.2254
Constanta28.845317.019528.927317.243728.960117.308628.973117.3311
Corugea21.010115.813021.013215.783621.041915.777021.056115.7744
Harsova39.458726.246239.800426.264739.915126.271039.958126.2731
Jurilovca24.536720.359124.480520.280624.465820.260624.460720.2534
Mangalia36.430227.170336.381527.049036.366127.004036.360526.9864
Medgidia26.878621.804426.512421.570426.387421.482226.339621.4471
Tulcea33.591726.237833.551026.117033.534826.079133.528326.0667
Sulina45.917138.162445.753837.923145.711537.852445.697237.8272
Average31.587423.635231.530623.554231.518823.530831.515323.5228
Table 7. MSE and MAE in the classical IDW for β = 2 and β = 1.042. MSE in ordinary kriging (KG).
Table 7. MSE and MAE in the classical IDW for β = 2 and β = 1.042. MSE in ordinary kriging (KG).
StationIDW (β = 2)IDW (β = 1.042)KG *OIDW **OIDW *
MSEMAEMSEMAEMSEMSEMSE
Adamclisi36.3227.0335.7326.9632.7332.418428.5774
Cernavoda23.7817.3328.0315.8823.4022.918922.6820
Constanta37.2927.8035.8327.0930.2230.324930.1713
Corugea35.6727.6934.3426.5222.4822.406222.3283
Hârșova37.9528.0635.5127.1635.0335.628135.2566
Jurilovca34.8927.8934.3527.3123.0424.101823.9813
Mangalia35.6526.8635.0326.8142.7342.042941.9517
Medgidia35.8927.4134.8926.8222.5822.380922.3073
Tulcea38.5529.8436.1528.1943.5444.020443.4118
Sulina36.9929.0435.6228.0334.4733.084433.0501
Average35.3026.9034.5526.0831.0230.9330.37
* Results from [18], Table 2; ** Results from [18], Table 1.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bărbulescu, A.; Șerban, C.; Indrecan, M.-L. Computing the Beta Parameter in IDW Interpolation by Using a Genetic Algorithm. Water 2021, 13, 863. https://doi.org/10.3390/w13060863

AMA Style

Bărbulescu A, Șerban C, Indrecan M-L. Computing the Beta Parameter in IDW Interpolation by Using a Genetic Algorithm. Water. 2021; 13(6):863. https://doi.org/10.3390/w13060863

Chicago/Turabian Style

Bărbulescu, Alina, Cristina Șerban, and Marina-Larisa Indrecan. 2021. "Computing the Beta Parameter in IDW Interpolation by Using a Genetic Algorithm" Water 13, no. 6: 863. https://doi.org/10.3390/w13060863

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