This book chapter presents three predictive models, based on artificial neural networks, to determine the percolation temperature of different AOT microemulsions in the presence of different additives (crown ethers, glymes, and polyethylene glycols), which were developed in our laboratory by different authors. An artificial neural network model has been developed for each additive. The models developed, multilayer perceptron, were implemented with different input variables (chosen among the variables that define the packing or its chemical properties) and different intermediate layers. The best model for crown ethers has a topology of 10-8-1, for glymes the selected topology is 5-5-1, and for polyethylene glycol, the best topology was 5-8-8-5-1. The selected models are capable of predicting the electrical percolation temperature with good adjustments in terms of the root mean square error (RMSE), presenting values below 1°C for glymes and polyethylene glycols. According to these results, it can be concluded that the models presented good predictive capacity for percolation temperature. Nevertheless, the adjustments obtained for the crown ethers model indicate that it would be convenient to study new input variables, increase the number of cases, and even use other training algorithms and methods.
- electrical percolation
- artificial neural
- crown ethers
- polyethylene glycols
Microemulsions can be considered as the mixture of three, even four, basic components; two of these components have different polarity, while the third component, surfactant, gives the system thermodynamic stability (the presence of another surfactant, cosurfactant, facilitates the self-organization of the system is often needed) . The authors affirm that as a result of this mixture, a microheterogeneous dynamic structure is obtained, with a continuous phase, constituted by the main solvent, in which microdroplets of a different phase are integrated (composed of the other solvent limited by surfactant molecules). By presenting two different hydrophobicity environments, microemulsions can be used as solvents for substances of different polarity .
Attending to Moldes et al. , the microemulsions show a low conductivity (10−9–10−7 Ω−1‧cm−1) [2, 3] and this remains stable while the temperature is below a specific value . However, when the temperature reaches a certain value, the conductivity increases violently [1, 4, 5]. The point in which this event occurs is called percolation threshold . This behavior is determined by the rigidity of the surfactant film that is determined by the way in which the surfactant molecules fit one with another and the presence of other substances, for example, additives [1, 6, 7]. It has been reported that the presence of additives in AOT microemulsions, for example, glymes and polyethylene glycols, facilitates the percolation and as a result reduces the percolation threshold [1, 2, 8], due to that additive are incorporated in the surfactant film and reduces their rigidity and the stabilizing forces .
This book chapter focuses on different artificial neural network (ANN) models developed in our laboratory to determine the percolation temperature of AOT/iC8/H2O microemulsions under the influence of three different additives, crown ethers  and linear polyethers (glymes and polyethylene glycols) .
ANNs are a modeling tool to capture complex relationships between input and output data . ANNs are formed by interconnected artificial neuronal units  that simulate the biological neuron function, that is, use the input data in conjunction with a synaptic weight to generate an output response . ANN models can provide good results in different fields such as: (i) in geology, to predict lithology in the subsurface ; (ii) in computing to schedule energy tasks in cloud data centers ; and (iii) in agricultural sciences to estimate Proctor parameters in soils  or in food technology to control the aging time in red wine , inter alia.
Nevertheless, the procedure to obtain a good prediction model is basically by trial and error, by varying the hidden layers’ number and the input variables, the training cycles, among others . According to this, ANN models require a lot of time analysis and computing power.
2. Material and methods
The crown ethers, glymes, and polyethylene glycols microemulsions databases used by Moldes et al. [1, 9] were in part compiled from the bibliography [2, 8, 18, 19]. The microemulsions have been prepared by weight [2, 8, 9, 18, 19] using reactants provided by Sigma-Aldrich [1, 2, 8, 9, 18, 19] and Fluka [1, 2, 8, 18, 19], and the percolation temperature has been determined by conductivity (with a Crison GPL conductivimeter) [2, 8, 18, 19].
All these microemulsions’ composition remained constant with [AOT] = 0.5 mol·dm−3 (according to the total microemulsion volume) and W = [H2O]/[AOT] = 22.2 [1, 2, 8, 9, 18, 19].
The crown ethers database (97 cases) was divided into two groups. The first group, training group (78 cases), was used to develop each prediction model, and a second group, validation group (19 cases), was used to choose the best model developed . The glymes database (43 cases) was divided into the training group (32 cases) and the validation group (11 cases) . Finally, for the polyethylene glycols database (82 cases), 68 cases were for the training group and 14 cases for the validation group .
2.1 Artificial neural networks
All models used a multilayer perceptron-type architecture composed of three different types of layers. The first layer is called input layer in which the data are received; the next layer/layers, called intermediate layer(s) (intended to process the information and transmit it to the following layers); and finally the output layer where all treated data are received and the predicted value is generated.
The general learning process of a neural network (shown below) is described in detail in the original papers [1, 9]. Data are presented to the neural network as a vector where
Then, the data are distributed to the first intermediate layer where, in each artificial neuron, two mathematical operations were carried out. These two processes are performed by the propagation function (Eq. (2)) and the activation function Eq. (3), where
During the training, the predicted value (obtained in the output neuron) is compared to the real value and the error is calculated.
This error is used in the next step to modify some parameters within the neural network and to try to improve the predicted value in the next neural cycle. This process is repeated according to the parameters established by the operator of the neural network and the training ends. Once the training is finished, the reservation data for validation are used to choose the best model developed according to the statistics used.
Achieving a satisfactory model is a trial and error process in which the operator of the neural network must develop different models, for example, using different architectures (varying the number of neurons in the input layer and the intermediate layers). To establish a reasonable number of models, different approaches can be used to limit it. In the three models discussed here, the test range (
2.2 Statistical parameters and software use
Different statistical parameters can be used to check the model’s adjustments. In our department, two of the most important are usually used: (i) the determination coefficient (R2) (used to determine the correlation between the experimental and the predicted values) and (ii) the root mean square error (RMSE) (Eq. (5)),
where is the percolation temperature; the superscripts
All ANN models were developed with commercial software from Neural Planner Software [1, 9].
3. Results and discussion
According to Moldes et al. , temperature leads to electric percolation in microemulsions due to the transfer of charge and mass between collided microdroplets. This transfer is effective when microdroplets collide with enough energy (effective collisions) and a structural reorganization of the surfactant layers of the microdroplets occurs producing a pore through which the exchange of mass and load occurs .
An increase in temperature increases the possibility of effective collisions between microdroplets, so that facilitates the phenomenon. Certainly, a modification on the surfactant film interactions can cause a reduction, or an increase, in the effective collisions. This effect can be caused by the presence of additives in the microemulsion [1, 9].
3.1 Percolation temperature in crown ethers
Moldes et al.  report that crown ethers capture ions and transfer them to the surfactant film where decrease the repulsions between the surfactant’s head groups in the surfactant film. This results in a stabilization of the structure and, consequently, the effective collisions between microdroplets decrease. For this reason, the percolation threshold increases because more energy is required to produce effective collisions between microdroplets, with this effect being predominant at low additive concentration .
In addition to this, Moldes et al. state that crown ethers can interact with the surfactant film causing destabilization, making the film less rigid, which facilitates effective collisions and favors the electric percolation . This effect is given at high concentrations of additive [9, 18, 19].
3.2 Percolation temperature in glymes and polyethylene glycols
According to Dasilva-Carbalhal et al., glymes are considered as simply acyclic analogues from the group indicated above, the crown ethers, and can exhibit less cation affinity than their cyclic corresponding . The glymes would be linked to the polar surfactant head group in AOT film, taking the place of water molecules in the hydration sphere [1, 2]. Due to the polar groups of the molecules would be located in the microdroplet aqueous core, the surfactant film reduces its rigidity, facilitating, and therefore, increasing the number of effective collisions and the percolation threshold will be achieved at lower temperatures .
Polyethylene glycols have a similar effect due to the molecule acting as a bridge between microdroplets and thus facilitating the percolation process [1, 2, 8, 20].
3.3 Artificial neural networks for crown ethers
To develop this neural model, Moldes et al.  selected different input variables to predict the percolation temperature, which was chosen for being related to the molecule’s structure and its nature. The input variables were: (i) additive concentration -[Additive]-, (ii) log P, (iii) molecular mass -Mm−, (iv) maximum number of bonds between rings -BM−, (v) minimum number of bonds between rings -Bm−, (vi) number of atoms that conforms a ring in a crown ether -Aring−, (vii) number of heteroatoms -AH−, (viii) number of oxygen atoms -nº O-, (ix) number of nitrogen atoms -nº N-, (x) number of benzene rings in the molecule -nº benz- .
The additive concentration supplies information about the influence of different quantities of additive . Log P (partition coefficient between water and 1-octanol) provides information about the polarity (hydrophobicity) of a substance; finally, the other variables could provide information about molecular structure .
All these variables were also chosen, based on the knowledge obtained in previous works [21, 22, 23], and with the purpose to find which are the most important variables to determine the percolation temperature and develop a general model to be able to determine it with any type of additive .
As stated above, the trial and error method was used to determine the best artificial neural network. The best model developed by Moldes et al. , according to validation group, was the model with ten neurons in the first layer (input), eight neurons in the intermediate layer (hidden) and one neuron in the output layer (i.e., presents an architecture of 10-8-1) (Figure 2).
The selected ANN model presents, for the validation group, a determination coefficient around 0.724 . Although this value is not very high, the root mean square error must be taken into account because it gives an idea of the deviation from the experimental value of the validation cases. In this sense, it can be seen that the RMSE is slightly greater than 1.1°C . This value can be considered valid due to it being close to the limit of 1°C, which is, in our opinion, the barrier to the use of an ANN model. In Figure 3, the predicted values versus the experimental values of percolation temperature for validation group are shown (blue triangle). It can be seen, taking as reference the line with slope 1, that several points are far from the ideal prediction. It is these points that cause the RMSE in the validation group to exceed the threshold value of 1°C.
The ANN 10-8-1 presents, for the training group, a determination coefficient around 0.933 and RMSE of 1.625°C . In Figure 4, the predicted values versus the experimental values of percolation temperature for training group are shown (blue triangle). It can be seen that different points are far from the ideal prediction, especially in the range 30–35°C.
The most important input variables to predict the percolation temperature of crown ethers are the additive concentration, the number of benzenes, and log P .
According to the values obtained for the training group and the validation group, it can be said that the model developed could be used for the prediction of the percolation temperature. However, taking into account the RMSE values and the dispersion presented by some of the training and validation cases, it could be concluded that the model developed by Moldes et al.  should be improved to get the RMSE value to fall below 1, in both groups.
3.4 Artificial neural networks for glymes
Moldes et al.  selected for this ANN model different input variables based on the knowledge obtained in the previous works [9, 21, 22, 23]. In this case, the variables used by Moldes et al.  were: (i) additive concentration -[Additive]- and (ii) log P were used for being one of the most important variables in the previous model . The variables (iii) molecular mass -Mm− and (iv) the number of oxygen in the molecule -nº O- were used because they had also been taken into account in the crown ethers model. Finally, (v) number of carbon atoms -nº C- (which had already been used in a previous model , and had shown good results) was taken into account.
Authors reported that the best model, taking into account the results of the validation group, is the model constituted by five, five and one neurons in the input, hidden and output layer, respectively (architecture 5-5-1, Figure 5) .
The selected model presents for validation group a determination coefficient with a value of close to 0.988 . This high value corresponds to an RMSE value around 0.750°C  and it is considered a very good adjustment because it is below the reference error set at 1°C. For the training group, the selected neural network also has good adjustments, both in terms of R2 (0.999) and the associated RMSE value (below 0.200°C) .
These good adjustments, both in determination coefficient and in the root mean square error, can be seen in Figures 3 and 4, where the predicted and experimental values for the validation and training groups are compared. It can be seen that for both the training and the validation, the points fit almost perfectly to the line with slope 1, except, perhaps, a point in the validation group (bottom left of graph 3) where a point that deviates slightly can be seen.
3.5 Artificial neural networks for polyethylene glycols
The last model proposed by Moldes et al.  is a neural network model with 5-8-8-5-1 architecture, that is, five input variables in the first layer; three hidden layers with 8, 8, and 5 neurons; and an output layer with one neuron, the percolation temperature (Figure 6).
The variables used were the same as those used in the model developed to predict the percolation temperature in glymes, that is: (i) additive concentration -[Additive]-, (ii) log P, (iii) molecular mass -Mm−, (iv) the number of oxygen in the molecule -nº O- and (v) the number of carbon atoms -nº C- .
This model provides a good determination coefficient (0.990) with an RMSE below 1°C for validation group . This good fit for the validation group can also be observed for the training group (Figures 3 and 4). In these figures, it can be seen how data fit perfectly (R2 of 0.999 ) to the slope line 1, with all points falling over the line. For the validation group, two points are observed outside but with a very small distance.
Once again, the RMSEs are below 1°C, which can be considered satisfactory, so that, the network could be used to determine the percolating temperature of polyethylene glycols.
Analyzing the results obtained by the authors, it can be verified that the most important input variable for the determination of the percolation temperature is the concentration of additive followed by log P. Attending to Moldes et al. , similar behavior is observed for both models regarding the importance of the variables. In these two models, the importance of the additive concentration clearly exceeds the importance of log P. All input variables remain in a range of similar importance for glymes and polyethylene glycols.
This behavior seems to indicate that the additive concentration and log P should be input variables to be taken into account whenever a percolation temperature prediction model is designed.
As stated earlier, the most important input variables for the crown ether model are additive concentration, benzene number, and log P; so, the idea of developing a single model to predict the percolation temperature of these types of substances should include necessarily these three variables.
Given the results obtained by the authors, it can be seen that the models developed to predict the temperature of percolation in glymes and polyethylene glycols present very good results; however, the predictability for the model developed for crown ethers offers more humble results.
The works collected in this book chapter are about prediction tools for percolation temperature under the presence of crown ethers, glymes, and polyethylene glycols as additives.
The predictive models were developed based on artificial neural networks and according to the data provided by Moldes al. [1, 9]: (i) the best model to predict the percolation temperature in crown ethers is a model with an architecture of 10-8-1 that presents for validation dataset an RMSE around 1.1°C, (ii) for glymes the architecture selected is 5-5-1, and (iii) for polyethyleneglycol the best architecture was 5-8-8-5-1. The last two models present a root mean square error under 1°C, which demonstrates its good performance and improves the model developed for crown ethers.
Taking into account the importance of the variables used for each of the models developed by the authors, it can be concluded that the inclusion of the additive concentration and log P should be required for any general model that may arise in the future.
To finish, it would be interesting to try the development of a joint model using the variables with the greatest importance of the models developed in our laboratory; it also would be very convenient to improve the new model with the inclusion of new experimental cases, new input variables, other training algorithms, and even including different machine learning models such as random forest, support vector machines, among others.
M. Alonso-Ferrer thanks the University of Vigo for his contract supported by FEADER 2018/002B (Xunta de Galicia, Consellería de Medio Rural, project “Desarrollo de modelos de predicción de origen en vinos de denominaciones de origen gallegas”). Gonzalo Astray thanks the University of Vigo for his contract supported by “Programa de retención de talento investigador da Universidade de Vigo para o 2018” budget application 0000 131H TAL 641.
Moldes ÓA, Cid A, Montoya IA, Mejuto JC. Linear polyethers as additives for AOT-based microemulsions: Prediction of percolation temperature changes using artificial neural networks. Tenside, Surfactants, Detergents. 2015; 52(4):264-270
Dasilva-Carbalhal J, García-Río L, Gómez-Díaz D, Mejuto JC, Pérez-Lorenzo M. Influence of glymes upon percolative phenomena in AOT-based microemulsions. Journal of Colloid and Interface Science. 2005; 292(2):591-594
Eastoe J, Robinson BH, Steytler DC, Thorn-Leeson D. Structural studies of microemulsions stabilised by aerosol-OT. Advances in Colloid and Interface Science. 1991; 36:1-31
Eicke H-F, Borkovec M, Das-Gupta B. Conductivity of water-in-oil microemulsions: A quantitative charge fluctuation model. The Journal of Physical Chemistry. 1989; 93(1):314-317
Feldman Y, Kozlovich N, Nir I, Garti N. Dielectric relaxation in sodium bis(2-ethylhexyl)sulfosuccinate-water-decane microemulsions near the percolation temperature threshold. Physical Review E. 1995; 51(1):478-491
García-Río L, Leis R, Mejuto JC, Peña ME, Iglesias E. Effects of additives on the internal dynamics and properties of water/AOT/isooctane microemulsions. Langmuir. 1994; 10(6):1676-1683
García-Río L, Hervés P, Mejuto JC, Pérez-Juste J, Rodríguez-Dafonte P. Effects of alkylamines on the percolation phenomena in water/AOT/isooctane microemulsions. Journal of Colloid and Interface Science. 2000; 225(2):259-264
Arias-Barros SI, Cid A, García-Río L, Mejuto JC, Morales J. Influence of polyethylene glycols on percolative phenomena in AOT microemulsions. Colloid & Polymer Science. 2010; 228(2):217-221
Moldes ÓA, Cid A, Astray G, Mejuto JC. Percolative behavior models based on artificial neural networks for electrical percolation of AOT microemulsions in the presence of crown ethers as additives. Tenside, Surfactants, Detergents. 2014; 51(6):533-540
Azizi A, Abbaspour-Gilandeh Y, Nooshyar M, Afkari-Sayah A. Identifying potato varieties using machine vision and artificial neural networks. International Journal of Food Properties. 2016; 19(3):618-635
Dawson CW, Wilby RL. Hydrological modelling using artificial neural networks. Progress in Physical Geography. 2001; 25(1):80-108
Wu H, Tian L, Chen B, Jin B, Tian B, Xie L, et al. Verification of imported red wine origin into China using multi isotope and elemental analyses. Food Chemistry. 2019; 301:125137
Kamenski A, Cvetković M, Kolenković Močilac I, Saftić B. Lithology prediction in the subsurface by artificial neural networks on well and 3D seismic data in clastic sediments: A stochastic approach to a deterministic method. GEM - International Journal on Geomathematics. 2020; 11(1):8
Sharma M, Garg R. An artificial neural network based approach for energy efficient task scheduling in cloud data centers. Sustain Comput Informatics Syst. 2020; 26:100373
Bayat H, Asghari S, Rastgou M, Sheykhzadeh GR. Estimating proctor parameters in agricultural soils in the Ardabil plain of Iran using support vector machines, artificial neural networks and regression methods. Catena. 2020; 189:104467
Astray G, Mejuto JC, Martínez-Martínez V, Nevares I, Alamo-Sanza M, Simal-Gandara J. Prediction models to control aging time in red wine. Molecules. 2019; 24(5):826
Iglesias-Otero MA, Fernández-González M, Rodríguez-Caride D, Astray G, Mejuto JC, Rodríguez-Rajo FJ. A model to forecast the risk periods of Plantago pollen allergy by using the ANN methodology. Aerobiologia (Bologna). 2015; 31(2):201-211
Dasilva-Carvalhal J, Fernández-Gándara D, García-Río L, Mejuto JC. Influence of aza crown ethers on the electric percolation of AOT/isooctane/water (w/o) microemulsions. Journal of Colloid and Interface Science. 2006; 301(2):637-643
Dasilva-Carvalhal J, García-Río L, Gómez-Díaz D, Mejuto JC, Rodríguez-Dafonte P. Influence of crown ethers on the electric percolation of AOT/isooctane/water (w/o) microemulsions. Langmuir. 2003; 19(15):5975-5983
Mehta SK, Sharma S. Temperature-induced percolation behavior of AOT reverse micelles affected by poly(ethylene glycol)s. Journal of Colloid and Interface Science. 2006; 296(2):690-699
Cid A, Astray G, Manso JA, Mejuto JC, Moldes OA. Artificial intelligence for electrical percolation of aot-based microemulsions prediction. Tenside, Surfactants, Detergents. 2011; 48(6):477-483
Montoya LA, Astray G, Cid A, Manso JA, Moldes OA, Mejuto JC. Influence prediction of small organic molecules (Ureas and Thioureas) upon electrical percolation of AOT-based microemulsions using artificial neural networks. Tenside, Surfactants, Detergents. 2012; 49(4):316-320
Moldes ÓA, Astray G, Cid A, Iglesias-Otero MÁ, Morales J, Mejuto JC. Percolation threshold of AOT microemulsions with n-alkyl acids as additives prediction by means of artificial neural networks. Tenside, Surfactants, Detergents. 2013; 50(5):360-368