1 Introduction

With rapid advancements in the energy sector, increasing the efficiency of the heat transfer process has become a need of the hour. For a very long time, fluids such as water, ethylene glycol, oil, etc. have been used as heat transfer fluids (HTFs) and coolants in various industries. However, due to low thermal conductivity, these fluids have limitations in terms of how efficiently they can remove the heat. This, in turn, puts limitations on the efficiency of heat transfer systems. Although several methods can be applied to increase the heat transfer capability of a system [1, 2], the fundamental problem remains unsolved, i.e., the low heat transfer capability of fluids. This problem was solved efficiently when, for the first time, nanofluid was developed by Choi and Eastman [3]. Nanofluids are the fluids which are enhanced with nanomaterials (i.e., nanoparticles, nanotubes, nanoflakes, nanofibers). These nanomaterial-enhanced fluids due to their enhanced properties have the potential of being used as heat transfer fluids (HTFs) in a wide range of applications [4,5,6]. However, nanofluids also have some drawbacks. One such drawback is the low dispersion stability of nanomaterials in the base fluids [7, 8]. These drawbacks encouraged researchers to look for other fluids that may have the potential of being used as heat transfer fluids (HTFs).

Ionic liquid (IL), which consists of cations and anions, is a relatively new class of organic liquids that stays in liquid form at room temperature and/or have melting point below 100 °C [9]. Ionic liquids are known to have very low vapor pressure, negligible-volatility, high viscosity, and good thermal stability at high temperatures [10,11,12]. Moreover, ILs are also known for their tunable properties [12, 13]. These excellent properties of ILs have resulted into their wide applications such as catalytic [14, 15], synthesis [16], electrochemistry [17], heat transfer systems [18, 19], and energy storage [20]. It is estimated that by combining different anions and cations, over 10\(^{18}\) different ternary ILs can be formed [11].

The doping of various nanomaterial structures in ILs is a way to further enhance their properties. ILs when suspended with these nanomaterial structures are known as nanoparticle-enhanced ionic liquids (NEILs) or IoNanofluids (INFs). IoNanofluids are known to have shown better thermal conductivity, heat transfer properties, etc. when compared to conventional ILs. Hence with these improved properties of INFs, they have the potential of being used as heat transfer fluids (HTFs) [21,22,23,24,25].

Various researchers and scholars have conducted a good number of studies on the thermophysical properties of INFs. Cherecheş et al. [26] studied thermophysical properties of different aqueous INFs. The INFs were prepared by dispersing different concentrations of alumina (Al\(_{2}\)O\(_{3}\)) nanoparticles in different mixtures of water and [C\(_{2}\)mim][CH\(_{3}\)SO\(_{3}\)] ionic liquid. The value of pH for all the IoNanofluids was found to be in the 8.0–8.5 range, which indicated their good stability. The maximum enhancement of 12.9 % was reported in thermal conductivity at the conditions of 15 mass% concentration and 293.15 K temperature. Paul et al. [27] studied density, thermal conductivity, viscosity, heat capacity, and heat transfer coefficient for Al\(_{2}\)O\(_{3}\) nanoparticle-doped [C\(_{4}\)mim][NTf\(_{2}\)] ionic liquid. A strong shear thinning behavior was reported at 0.9 vol% concentration. Besides, the viscosity was also found to be significantly higher than that of the pure ionic liquid. The thermal conductivity and heat capacity enhancement of 11 % and 49 % was reported at 0.9 vol% concentration. The convective heat transfer coefficient was reported to be more for IoNanofluid. Further, enhancement in the convective heat transfer was also shown to be more for turbulent flow when compared to laminar flow.

Paul et al. [28], in another study, studied thermal conductivity, heat capacity, heat transfer performance of Al\(_{2}\)O\(_{3}\) nanoparticle (1 mass%)-enhanced [C\(_{4}\)mpyrr][NTf\(_{2}\)] and [C\(_{4}\)mim][NTf\(_{2}\)] ionic liquids. In the study, thermal conductivity enhancement of 6 % and 5 % was reported for [C\(_{4}\)mim][NTf\(_{2}\)] and [C\(_{4}\)mpyrr][NTf\(_{2}\)], respectively. Moreover, enhancement of 23 % and 20 % was reported in the heat capacity and heat transfer coefficient, respectively. Nieto de Castro et al. [2] studied thermal conductivity and heat capacity for Imidazolium and Pyrrolidinium ionic liquids enhanced with multiwalled carbon nanotubes (MWCNTs). In the study, thermal conductivity enhancement of 2 % to 9 % and heat capacity enhancement of up to 8 % was reported. Recently, Zhang et al. [22] studied thermal stability, viscosity, thermal conductivity, and specific heat capacity of graphene nanoplatelets (GNPs)-suspended [EMIm]Ac ionic liquid. The maximum viscosity and thermal conductivity enhancement of 27.7 % and 43.3 % was reported at the temperature of 373.15 K and GNP concentration of 5 mass%. The maximum reduction of 3.62 % was also reported in specific heat capacity at the same temperature and GNP concentration. Furthermore, an increase of 28.6 % was also reported in the heat transfer coefficient at 5 mass% concentration.

Wang et al. [29] studied viscosity, specific heat, and thermal conductivity of graphene and MWCNTs-enhanced [HMIM]BF\(_{4}\) ionic liquid. For a given nanomaterial concentration, enhancement in the thermal conductivity was found to be greater for graphene INF. For graphene INF, a maximum thermal conductivity enhancement of 18.6 % was reported at the conditions of 0.06 mass% concentration and 65 °C temperature. The INFs were also found to be showing lower specific heat when compared to pure ionic liquids. Moreover, specific heat was found to be lower for graphene INFs, which decreased even further as graphene loading increased. Furthermore, viscosity of the graphene-based INF was found to be higher than that of the MWCNTs-based INF. Xie et al. [30] studied thermal conductivity, density and viscosity of [EMIM][DEP] and its water solution enhanced with MWCNTs nanomaterials. A maximum thermal conductivity enhancement of 9.7 % was reported in the study. Moreover, viscosity was reported to increasing with increase in MWCNTs concentration and decreasing with increase in temperature.

MXene is a relatively new class of 2-dimensional inorganic material having many attractive properties and applications in number of fields [31]. Moreover, properties of MXene can be tuned by altering composition and morphology [31]. However, MXene is relatively unexplored in the field of nanofluids. Bao et al. [32] determined the thermophysical properties of MXene/EG nanofluid. In the study, multilayer and single-layer MXene nanomaterials were suspended in EG. They reported maximum thermal conductivity enhancement of 64.9 % for single-layer MXene at 5 vol%. Besides, viscosity of MXene-based EG nanofluid was also found to be lower than that of the graphene and MWCNTs-based EG nanofluid. Moreover, single-layer MXene nanofluid was found to be stable for a period of over 30 days. Aslfattahi et al. [33] studied the effect of MXene/silicone oil nanofluid on the performance of concentrated solar photovoltaic thermal collector. In the study, viscosity of the newly developed nanofluid was also studied. Generally, with the addition of nanoparticles, viscosity of nanofluids increases. However, in this study, viscosity of the nanofluid was found to be independent of the MXene concentration. Furthermore, at the conditions of 150 °C temperature and 0.1 mass% MXene concentration, enhancement of around 64 % was observed in the thermal conductivity. These studies reporting low viscosity and high thermal conductivity of MXene-based nanofluids coupled with good properties of MXene paves the way for developing more MXene-based nanofluids and IoNanofluids.

Most of the researchers and scholars have only presented experimental values of thermophysical and rheological properties of INFs. This increases the cost and consumes time as well. Developing models can be a good way to eliminate or reduce the need of carrying out experiments [34]. Maryam Sadi [35] developed an adaptive neuro fuzzy inference system (ANFIS) to predict the thermal conductivity and viscosity of different INFs. The temperature, nanoparticle concentration, and ionic liquid molecular weight were given as inputs to the model. The model developed for thermal conductivity and viscosity showed good performance. The values of average relative deviation (ARD) and coefficient of determination (R\(^{2}\)) for thermal conductivity model were 0.72 % and 0.9959, respectively. For viscosity model, these values were 5.1 % and 0.9934, respectively.

As presented, significant work on the experimental determination of INFs’ thermophysical and rheological properties has been done, but models available in the literature that can be used to predict the values of these properties are limited. Machine learning techniques such as artificial neural networks (ANNs), ANFIS, support vector regression (SVR) models are great tools for regression analysis which can be used to predict the thermal conductivity and viscosity of IoNanofluids. Therefore, in this work, feedforward neural network models were developed to predict the values of thermal conductivity and viscosity of MXene-based aqueous INF. To prepare the INF, MXene nanomaterial was first synthesized and then dispersed in aqueous [MMIM][DMP] ionic liquid. To develop the models, thermal conductivity and viscosity values were first determined experimentally for 0.05, 0.1, and 0.2 mass% concentration and wide range of temperature. Besides, two multiple linear regression (MLR) models were also developed in the work.

2 Materials and Method

2.1 Materials

The ionic liquid (IL) 1,3-Dimethylimidazolium dimethyl-phosphate [MMIM][DMP] with purity of \(\ge\) 98 % and density of 1.27 g/cm\(^{3}\) was supplied by Merck KGaA, Darmstadt, Germany. The MAX phase (Ti\(_{3}\)AlC\(_{2}\)) procurement was through Y.Carbon Ltd company. All the materials were used as received without any further purification. The specifications of MXene and base fluids are shown in Tables 1 and 2, respectively.

Table 1 The specifications of MXene nanomaterials
Table 2 The thermophysical and rheological properties of ionic liquid and water (at 20 °C)

The process of synthesis of MXene nanoflakes has already been described in other work of the authors [36]. In the work, performance of hybrid solar PV/T system was analyzed for MXene-aqueous IoNanofluid.

2.2 FESEM Analysis of Synthesized MXene Nanoflakes

Morphological analysis of the MXene (Ti\(_3\)C\(_2\)) nanoflakes was conducted by high-resolution FESEM (JEOL, JSM-7800F). Stacking of several MXene sheets oriented as flake structures disclose the effective exfoliation of Ti\(_{3}\)C\(_{2}\) MXene from the pre-cursor Ti\(_{3}\)AlC\(_{2}\) MAX phase. Figure 1 shows the FESEM image of the synthesized MXene nanomaterials. The size of the MXene nanoflakes was found to be less than 100 nm.

Fig. 1
figure 1

FESEM analysis of the synthesized MXene nanomaterials at 1 μm magnification

2.3 Preparation of MXene-Enhanced 1,3-Dimethyl Imidazolium Dimethyl-Phosphate Ionic Liquid (IoNanofluids)

The aqueous solution of ionic liquid was prepared with ratio of 20 vol% of [MMIM][DMP] and 80 vol% of deionized water. Firstly, 20 ml of IL was added to the beaker followed by adding 80 ml of deionized water. Acquired 100 ml of the aqueous solution of IL was weighed using microbalance (TX323L, UNIBLOC) to calculate the amount of MXene in terms of weight percentage. IoNanofluids were prepared in three different loading concentrations of 0.05 mass%, 0.1 mass%, and 0.2 mass% MXene nanoflakes. For the preparation of IoNanofluids, the pre-defined amount of MXene nanoflakes was added to the IL solution, followed by stirring for 1 h at 50 °C and 700 rpm using hot plate magnet stirrer (RCT basis). The resultant solution was probe sonicated (Fs-1200N) for 30 min with power of 70 % and on/off time of 7/3 s. Finally, a stable and well-dispersed IoNanofluid solution was prepared successfully.

2.4 Thermal Conductivity and Viscosity Measurement of IoNanofluid

The thermal conductivity measurement was performed using thermal properties analyzer. The measurement was conducted for 0.05 mass%, 0.1 mass%, and 0.2 mass% MXene concentration and 25 °C to 60 °C temperature.

The viscosity measurement was performed using Rheometer Anton Paar (MCR92). T-Ramp measurement (viscosity as a function of temperature) was performed for the aqueous solution of IL and IL/MXene IoNanofluids at different concentrations consisting of 0.05 mass%, 0.1 mass%, and 0.2 mass% in the temperature range of 19.14 °C to 50.15 °C.

Table 3 shows the details of thermal conductivity and viscosity instrument’s accuracy and uncertainty.

Table 3 The accuracy and uncertainty of thermal conductivity and viscosity measuring instrument

3 Levenberg–Marquardt Feedforward Neural Network

Artificial neural network (ANN) is a type of soft computational model inspired by the working of neurons in the brain. ANNs make use of concepts of algebra, calculus, statistics, and probability to learn the mapping between input variables and output variables. The building block of ANNs is known as neuron, where all the calculations take place. These neurons have some weights and biases associated with them. The structure of a typical ANN and neuron working is shown in Fig. 2. It shows a structure with 3 input parameters, 4 hidden neurons, and 1 output parameter. In the figure, X1, X2, and X3 are the inputs to the hidden neuron and w1, w2, and w3 are the weights associated with a hidden neuron. The sigma sign denotes the weighted sum of inputs, f denotes the activation function used, and Y represents the output of a neuron.

Fig. 2
figure 2

The structure of a typical ANN model and working of a neuron

As ANNs are not programmed to solve a specific problem only, they need to be trained for any particular problem. The training is a process of finding the values of weights and biases that reduces the error between original values and predicted values to the least possible value. Various algorithms that are used to train the neural networks are gradient descent [46], Gauss–Newton method, Levenberg–Marquardt [37], etc. Optimization algorithms such as genetic algorithm [38, 39], particle swarm optimization [40], ant colony optimization [41] are also commonly used. In this work, Levenberg–Marquardt (LM) algorithm is used. The LM algorithm can be viewed as the combination of gradient descent algorithm and Gauss–Newton algorithm. This means that when the errors are large, LM works as gradient descent algorithm, and when errors are small, it works as Gauss–Newton algorithm. The LM algorithm is faster (unlike gradient descent) and usually converges to optimum solution even if initial approximation is far from optimum solution (unlike Gauss–Newton). This algorithm is also known as least square algorithm and usually gives better performance than other optimization algorithms. In this work, the optimum topology of the models was found through trial and error method.

3.1 Data Analysis

Table 4 shows the statistical details of the experimentally obtained values of viscosity and thermal conductivity.

Table 4 The statistical details of the experimentally determined data

The table shows the value of skewness, kurtosis, and correlation coefficient with output variable. The skewness value shows the distribution of the data. A skewness value close to 0 indicates the normal distribution of the variable. Any data is said to be reasonably symmetrical if the skewness value lies between − 0.5 and 0.5. Therefore, it can be seen from the table that the distribution of all the variables is fairly symmetrical. The kurtosis value tells about the outliers in the data. The performance of neural networks is known to be affected by outliers. A normal distribution will have value of kurtosis as 3. A value greater than 3 shows the presence of outliers and a value smaller than 3 shows the absence of outliers. Therefore, it can be deduced from the table that all the variables are close to being normally distributed and have no outliers. These two statistical values (skewness and kurtosis) can help analyze the variation of errors with various variables. The correlation coefficient gives out information regarding the relationship between variables. A negative value indicates an inverse relationship; a positive value indicates a direct relationship; 0 value indicates no relationship. Also, for perfectly linearly correlated variables, the value of the correlation coefficient is either 1 or − 1. Therefore, it can be seen from the table that viscosity has near linear relationship with temperature, whereas other parameters have non-linear relationships with outputs. Further, the table also shows the minimum and maximum values of all variables. It can be seen that different variables have values in different scales. In such cases, it is a common practice to transform the variables to a common range. Hence, the data were transformed in the range of 0 to 1 by using following relation:

$$V_{{{\text{norm}}}} = \frac{{V - V_{{{\text{min}}}} }}{{V_{{{\text{max}}}} - V_{{{\text{min}}}} }}$$
(1)

where V\(_{\text{norm}}\), V, V\(_{\text{min}}\), and V\(_{\text{max}}\) represent normalized value, actual experimental value, minimum value, and maximum value of the variables.

3.2 Model Development

As stated earlier, the Levenberg–Marquardt algorithm has been used to train the models. As the thermal conductivity and viscosity values were determined for concentrations and temperatures only, the input layer and output layer contained 2 and 1 neurons, respectively.

$$\begin{aligned} k_{\text{nf}}= & {} f(\phi ,T) \end{aligned}$$
(2)
$$\begin{aligned} \mu _{\text{nf}}= & {} f(\phi ,T) \end{aligned}.$$
(3)

As stated earlier, the optimum number of neurons in the hidden layer was found through the trial and error method. The performance of the model was assessed for various activation functions such as sigmoid, hyperbolic tangent, and rectified linear. The sigmoid activation function was found to be outperforming other activation functions. Therefore, sigmoid was used to develop the model. This activation function is given as

$$\begin{aligned} Sigmoid:\;\;\;\; f(z)=\frac{1}{1+e^{-z}} \end{aligned},$$
(4)

where z represents the input to the hidden layer neurons.

The following steps were followed to reach to the optimum models:

  1. 1.

    Feeding model the normalized training data (80 % of the total data set).

  2. 2.

    Setting the number of neurons to 2.

  3. 3.

    Assessing the model performance on training data.

  4. 4.

    Assessing the model performance on testing data (normalized).

  5. 5.

    If unsatisfied performance, increasing the number of neurons.

  6. 6.

    Accessing the model performance on training data and test data.

  7. 7.

    Repeating steps 5 and 6 to get the optimum model.

In this work, three statistical parameters were used to evaluate the models’ performance. These parameters were mean square error (MSE), mean absolute error (MAE), and coefficient of determination (R\(^{2}\)). These parameters are given as follows:

$${\text{MSE}} = \frac{1}{n}\sum\limits_{{i = 1}}^{n} {(V_{e} - V_{n} )^{2} }$$
(5)
$${\text{MAE}} = \frac{1}{n}\sum\limits_{{i = 1}}^{n} | V_{e} - V_{n} |$$
(6)
$$\begin{aligned} R^{2}= & {} 1- \frac{\sum _{i=1}^{n}(V_{e}-V_{n})^{2}}{\sum _{i=1}^{n}(V_{e}-{\overline{V}}_{e})^{2}} \end{aligned},$$
(7)

where V\(_{e}\), V\(_{n}\), \({\overline{V}}_{e}\), and n represent experimental value, neural network predicted value, average of experimental value, and total number of data points, respectively.

The relative deviation (RD) between experimental values and ANN predicted values was also determined. This was calculated as follows:

$${\text{Relative}}\;{\text{Deviation}}\;(\% ) = \frac{{V_{e} - V_{n} }}{{V_{e} }} \times 100.$$
(8)

4 Results and Discussion

4.1 Experimental

4.1.1 Thermal Conductivity

Figure 3 shows the variation of thermal conductivity with temperature (25 °C to 60 °C) for various MXene concentrations (0 mass% to 0.2 mass%). As can be seen from the figure, thermal conductivity of aqueous IoNanofluid increases as temperature and MXene concentration increases. It also shows that the thermal conductivity of aqueous ionic liquid can be increased from 0.468 W/m-K to 0.848 W/m-K (approx. 81 %) by adding 0.2 mass% MXene and increasing the temperature from 25 °C to 60 °C.

Fig. 3
figure 3

Thermal conductivity of aqueous IoNanofluid for various temperatures and concentrations

The variation of thermal conductivity with temperature and concentration can be reasoned by the concept of Brownian motion and percolation effect [42, 43]. The Brownian motion is the random motion of nanoparticles suspended in the IoNanofluid, which intensifies as temperature rises. The percolation effect can be defined as a phenomenon that occurs as nanoparticle to nanoparticle distance is reduced and results in particles colliding more frequently. For IoNanofluid at low temperatures, mainly the percolation effect contributes to an increase in thermal conductivity. At high temperatures, besides the percolation effect, nanoparticles also exhibit more Brownian motion owing to more energy content. This increases the frequency of collision even more. Hence, the thermal conductivity increases as temperature and concentration increases.

Figure 4 shows the variation of thermal conductivity ratio (TCR) with temperature (25 °C to 60 °C) for various MXene concentrations (0.05 mass% to 0.2 mass%). Although thermal conductivity is increasing as the temperature is increased, thermal conductivity ratio is not following any trend with temperature. This may be attributed to the uneven rate of increment of thermal conductivity of ionic liquid and IoNanofluids. The maximum TCR of 1.48 is achieved at 0.2 % concentration and 30 °C temperature.

Fig. 4
figure 4

Thermal conductivity ratio variation with temperature for various concentrations

4.1.2 Viscosity

Figure 5 shows the variation of viscosity with temperature (19.14 °C to 50.15 °C) for various MXene concentrations (0 mass% to 0.2 mass%). As can be seen from the figure, the viscosity of aqueous IoNanofluid decreases as temperature is increased and increases as concentration is increased. The figure also shows that, for the studied concentrations, viscosity can be reduced by over 42 % by increasing the temperature from 19.14 °C to 50.15 °C.

Fig. 5
figure 5

Viscosity variation with temperature for various concentrations

The variation of viscosity of developed IoNanofluid with temperature and MXene concentration can be reasoned as follows [44, 45]:

  1. 1.

    With concentration: Viscosity is the measure of internal resistance of the liquid to flow, which is a function of intermolecular forces. As nanoparticles are solid and denser than ionic liquid, their addition in ionic liquid increases overall intermolecular interactions. Thus, with MXene addition, viscosity increases.

  2. 2.

    With temperature: Intermolecular forces are a function of temperature. As temperature increases, intermolecular forces between MXene nanomaterials decrease (as intermolecular distance increases). Thus, viscosity decreases as temperature increases.

Fig. 6
figure 6

Relative viscosity variation with temperature for various concentrations

Figure 6 shows the variation of relative viscosity (RV) with temperature (19.14 °C to 50.15 °C) for various MXene concentrations (0.05 mass% to 0.2 mass%). Unlike thermal conductivity ratio, relative viscosity can be seen to have following a trend with temperature (for all concentrations) as relative viscosity is increasing initially and then decreasing. The maximum RV of 1.145 is achieved at 0.2 % concentration and approx. 23 °C temperature.

4.2 MLR Analysis of Thermal Conductivity and Viscosity

Multiple linear regression (MLR) analysis is often considered as an important step before developing more complex ANN models. The MLR analysis helps in analyzing various things such as the dependency of output on input variables. Besides, if the relationship between output and inputs is linear (or even near linear), developing MLR is much more convenient. In point of fact, ANN models are only to be developed when relationship between inputs and output is non-linear and/or complex. Thus, MLR analysis is important to conduct before developing more complex ANN models.

The data were first divided into training data (80 %) and test data (20 %). Then the data were used as such (without normalization) to do the MLR analysis. The following relations were obtained for thermal conductivity and viscosity:

$$\begin{aligned} {\text{TC}}= & {} 0.0042407\,T+1.05339621\phi +0.38545 \end{aligned}$$
(9)
$$\begin{aligned} {\text{Viscosity}}= & {} 1.0911205\phi -0.03016966T+3.451877389 \end{aligned}.$$
(10)

To do the performance analysis of these relations obtained through MLR, indices described by Eqs. 5, 6, 7, and 8 were used. Table 5 describes the values of these indices for thermal conductivity and viscosity relation.

Table 5 The performance of the thermal conductivity and viscosity MLR model on training data and test data

From the table, it can be inferred that the MLR’s performance on thermal conductivity is poor, and is not able to give accurate thermal conductivity values. For viscosity, performance is better in comparison to thermal conductivity, but deviations are large. This shows that viscosity dependency on input variables is more linear in comparison to thermal conductivity. However, low performances of both the MLR models necessitate the development of more accurate ANN models.

4.3 ANN Modeling

After experimentally determining the thermal conductivity and viscosity of pure IL and IoNanofluid, the data were used to develop the models. The optimum model was determined on the basis of the performance of the model on the training data and testing data. On the basis of performance, model can be classified as follows [46]:

  1. 1.

    Underfit: A model is underfit when model’s performance is poor on training data as well as on test data.

  2. 2.

    Well fit: A well-fit model is a model which shows good and comparable performance on both training data and test data.

  3. 3.

    Overfit: A model is overfit when model’s performance is far better on the training data than it is on test data. In other words, model’s generalization capability is poor.

It is important to understand that the number of neurons greatly affects the generalization capability of ANN models. This makes analysis of model’s performance (on training data and test data) very important. The total number of data points determined experimentally for thermal conductivity and viscosity were 48 and 200, respectively.

4.3.1 Thermal Conductivity

Figure 7 shows the variation of mean square error (MSE) with number of neurons for thermal conductivity ANN model. As can be seen from the figure, for 2 and 3 neurons in hidden layer, the model is underfit. As the number of neurons increases from 5 to 8, model can be seen to get overfitted. This can be said because even as the error on training data is reducing, error on test data is increasing. Figure also shows that error on test data is minimum for 4 neurons in hidden layer. Therefore, the optimum model was chosen to have the structure of 2-4-1 (input neurons-hidden neurons-output neuron).

Fig. 7
figure 7

Variation of mean square error with number of neurons in hidden layer for thermal conductivity model

Figure 8 shows the comparison between actual values and values predicted by the optimum thermal conductivity ANN model. The figure shows a line equidistant from both the axes. This means that a point lying on the line is also equidistant from the axes. As can be seen from the figure, nearly all the values are lying close to the line. The figure also compares the ANN predictions for training data and test data. As can be inferred, the predictions for training data (colored in blue) are more accurate when compared to test data (colored in red). However, this is acceptable as training errors are always lower than test errors.

Fig. 8
figure 8

Comparison between experimentally acquired thermal conductivity values and their ANN predictions

Table 6 shows the value of MSE, MAE, R\(^{2}\), and absolute RD (minimum, maximum, and mean) for training data and test data. As can be seen, difference in the values of these parameters for training data and test data is marginal. On this basis, it can be said that the model is a well-fit model.

Table 6 The performance of the thermal conductivity model on training data and test data

Figure 9 shows the variation of RD with the temperature for training data (blue scatter points) and test data (red scatter points). As can be observed from the figure, there is no trend between RD and temperature. Further, maximum RD shown by model on training data is − 1.421 % at 48 °C. For testing data, maximum error is 1.644 %, which occurred at 50 °C.

Fig. 9
figure 9

The variation of relative deviation of thermal conductivity ANN model with temperature

Figure 10 shows the variation of RD with the MXene concentration for training data and test data. As can be observed, the model shows best performance for 0.2 % concentration. The model shows maximum error for pure IL (for both training data and test data). Also, both Figs. 9 and 10 show that 95.8 % of errors are in the range of ±1.5 % error.

Fig. 10
figure 10

The variation of relative deviation of thermal conductivity ANN model with MXene concentration

Figure 11 shows the histogram and kernel density estimation of relative deviation of thermal conductivity ANN model. It can be inferred from the plot that the error on most of the data points lies in ± 1 % range, and also that most errors are away from maximum error.

Fig. 11
figure 11

The histogram of the relative deviation of thermal conductivity ANN model

On comparing the values of statistical indices for ANN model and MLR model, one can infer that ANN shows a significant improvement in prediction capabilities over MLR model.

4.3.2 Viscosity

Figure 12 shows the variation of mean square error (MSE) with number of neurons for viscosity ANN model. From the figure, we can observe that for 2, 3, and 4 neurons in hidden layer, the model is underfit and shows poor performance. As the number of neurons increases, model can be seen to have showing relatively good performance. This signifies that model has started to map the relationship between inputs and output efficiently. As the number of neurons increases from 7 to 10, both training error and test error are reducing. However, as the number of neurons is increased further, the model can be seen to get slightly overfitted. Here, unlike the thermal conductivity model, the model is getting only slightly overfitted. As the error was the least at 10 neurons, the optimum model was chosen to have the structure of 2-10-1.

Fig. 12
figure 12

Variation of mean square error with number of neurons in hidden layer for viscosity model

Figure 13 shows the comparison between actual values and values predicted by the optimum viscosity ANN model. This figure also shows a line equidistant from both the axes. It can be observed from the figure that points are lying more closer to the line (when compared to thermal conductivity model). This signifies higher accuracy of the viscosity model. Also, predictions of the viscosity model on the test data can be observed to be more accurate. This signifies better generalization capability of viscosity model.

Fig. 13
figure 13

Comparison between experimentally acquired viscosity values and their ANN predictions

Table 7 shows the value of MSE, MAE, R\(^{2}\), and absolute RD (minimum, maximum, and mean) for training data and test data. Here again it can be seen that the performance of the model on the training data and test data is almost same, confirming the good generalization capability of the viscosity model.

Table 7 The performance of the viscosity model on training data and test data

Figure 14 shows the variation of RD with the temperature for training data (yellow scatter points) and test data (gray scatter points). Here also, there is no trend between RD and temperature. The maximum RD shown by the model on training data is 0.278 % at 47.08 °C. For testing data, maximum error is − 0.3246 % at the temperature of 41.56 °C.

Fig. 14
figure 14

The variation of relative deviation of viscosity ANN model with temperature

Figure 15 shows the variation of RD with the MXene concentration for training data and test data. It can be observed from the figure that model shows comparatively good performance for 0.1 % concentration. The maximum error shown for training data is 0.278 % at 0.2 % concentration, whereas maximum error shown for test data is − 0.3246 % at the same concentration. Also, both Figs. 14 and 15 show that around 96 % of errors are in the range of ± 0.25 % error.

Fig. 15
figure 15

The variation of relative deviation of viscosity ANN model with MXene concentration

Figure 16 shows the histogram and kernel density estimation of relative deviation of the viscosity ANN model. It can be seen from the plot that the maximum percentage of error lies in the range of ±0.1%. It also shows that the points lying near zero deviation are more when compared to the thermal conductivity model.

Fig. 16
figure 16

The histogram of the relative deviation of viscosity ANN model

For viscosity also, performance of ANN model is much superior when compared to the performance of the MLR model. This can be attributed to more complex algorithm employed by ANNs.

5 Conclusions

In this work, our main objective was to develop the ANN models to predict the values of thermal conductivity and viscosity of MXene-doped [MMIM][DMP] ionic liquid. Firstly, MXene nanomaterial was synthesized and then used to prepare IoNanofluid with 0.05, 0.1, and 0.2 mass% concentration. The SEM analysis revealed the size of the developed nanomaterial to be less than 100 nm. In the study, the temperature was varied from 19 °C to 60 °C. Besides ANN models, two MLR models were also developed. The findings of our investigation are as follows:

  • The experimental investigation on thermal conductivity and viscosity revealed that both temperature and concentration have a noteworthy impact on these properties. The maximum enhancement in the thermal conductivity was found to be 1.48 at 0.2 mass% concentration and 30 °C. For viscosity, maximum enhancement was 1.145 at 0.2 mass% and 23 °C temperature. Further, the investigation revealed that thermal conductivity could be increased by approximately 81 % by doping 0.2 mass% of MXene and increasing temperature to 60 °C. Moreover, viscosity could be reduced by an average of 42 % by increasing the temperature to 50.15 °C.

  • The MLR models were developed for thermal conductivity and viscosity. The values of the coefficient of determination for thermal conductivity model and viscosity model were 0.8843 and 0.9518, respectively. These values also revealed that viscosity’s dependence on inputs is more linear when compared to thermal conductivity. On analyzing other statistical indices for both the models, it was concluded that the performances of the models were not accurate enough.

  • The feedforward network was trained by the Levenberg–Marquardt algorithm. The trial and error method was used to determine the optimum neurons in the hidden layer. The optimum neurons for thermal conductivity model and viscosity model were found to be 4 and 10, respectively. With the help of statistical indices, both the models were found to be well-fit models. The values of MSE, MAE, and R for thermal conductivity and viscosity model were found to be 2.26E−05, 4.23E−03, and 0.9977; and 8.651E−06, 2.45E−03, and 0.9999, respectively. For thermal conductivity model, the maximum RD was 1.644 %, whereas for viscosity model, this figure was just − 0.3246 %. Further, 95.8 % of the errors of thermal conductivity model were in the range of ± 1 %, whereas for viscosity model, 96 % of the errors were in the range of ± 0.25 %.