Skip to main content

ORIGINAL RESEARCH article

Front. Chem., 23 March 2022
Sec. Theoretical and Computational Chemistry
This article is part of the Research Topic Approaching Human Intelligence through Chemical Systems: Development of Unconventional Chemical Artificial Intelligence. View all 11 articles

Fuzzy Logic, Artificial Neural Network, and Adaptive Neuro-Fuzzy Inference Methodology for Soft Computation and Modeling of Ion Sensing Data of a Terpyridyl-Imidazole Based Bifunctional Receptor

  • Inorganic Chemistry Section, Department of Chemistry, Jadavpur University, Kolkata, India

Anion and cation sensing aspects of a terpyridyl-imidazole based receptor have been utilized in this work for the fabrication of multiply configurable Boolean and fuzzy logic systems. The terpyridine moiety of the receptor is used for cation sensing through coordination, whereas the imidazole motif is utilized for anion sensing via hydrogen bonding interaction and/or anion-induced deprotonation, and the recognition event was monitored through absorption and emission spectroscopy. The receptor functions as a selective sensor for F and Fe2+ among the studied anions and cations, respectively. Interestingly, the complexation of the receptor by Fe2+ and its decomplexation by F and deprotonation of the receptor by F and restoration to its initial form by acid are reversible and can be recycled. The receptor can mimic various logic operations such as combinatorial logic gate and keypad lock using its spectral responses through the sequential use of ionic inputs. Conducting very detailed sensing studies by varying the concentration of the analytes within a wide domain is often very time-consuming, laborious, and expensive. To decrease the time and expenses of the investigations, soft computing approaches such as artificial neural networks (ANNs), fuzzy logic, or adaptive neuro-fuzzy inference system (ANFIS) can be recommended to predict the experimental spectral data. Soft computing approaches to artificial intelligence (AI) include neural networks, fuzzy systems, evolutionary computation, and other tools based on statistical and mathematical optimizations. This study compares fuzzy, ANN, and ANFIS outputs to model the protonation-deprotonation and complexation-decomplexation behaviors of the receptor. Triangular membership functions (trimf) are used to model the ANFIS methodology. A good correlation is observed between experimental and model output data. The testing root mean square error (RMSE) for the ANFIS model is 0.0023 for protonation-deprotonation and 0.0036 for complexation-decomplexation data.

GRAPHICAL ABSTRACT
www.frontiersin.org

GRAPHICAL ABSTRACT

Introduction

The usage of machine learning (ML) and diverse artificial intelligence (AI) tools (Zadeh, 1973; Szaciłowski, 2008; Zadeh, 2008; Gentili, 2017a; Mater and Coote, 2019; Pflüger and Glorius, 2020; Artrith et al., 2021; He et al., 2021) has been growing enormously in chemistry, biology, and materials sciences. Current research interest is focused mainly on the design of smart materials and the analysis of their physicochemical data (such as sensing, bio-sensing, and imaging) for diagnostic purposes. Little progress has been made in other AI sub-areas, such as fuzzy (Zadeh, 1996; Gentili, 2007; Gentili, 2008; Gentili, 2011; Gentili, 2011; Gentili et al., 2017b, Gentili et al., 2017c; Gentili, 2014; Schumann and Adamatzky, 2015; Gentili et al., 2016; Gentili, 2018), ANNs, ANFIS, robotics, evolutionary computation, and natural language processing and planning (Giri Nandagopal and Selvaraju, 2016; Huang et al., 2012; Razzak et al., 2012; Bingöl et al., 2013; İnal, 2014; Babanezhad et al., 2020a; Babanezhad et al., 2020b; Babanezhad et al., 2020c). Creation of dependable and exhaustive database can extend the ML to a wider domain of application. Much effort is now being given to prosper the AI with vague and imprecise inputs. The function in Boolean logic (BL) (de silva et al., 1993; Ling et al., 2015; de Silva and McClenaghan, 2004; de Silva., 2011; de Silva et al., 2000; Szaciłowski, 2004; Szaciłowski et al., 2006; Adamatzky and Costello, 2002; Adamatzky et al., 2020; Gale et al., 2013; Adamatzky et al., 2016) relies on stretching the output signal in between the two extremes of “0” and “1”. However, most real systems are composed of many intermediate states. The fuzzy logic (FL) is believed to be a probable alternative to BL in identifying the intermediate states. The motivation in choosing FLS relies on the motivation that thought and the decision-making process in humans is extremely complicated to be precisely defined and believed to function as an automatic fine-controlling administer for an innumerable number of intervening steps with a varying degree of truths. FLS consists of nonlinear scaling of the input vectors to the scalar outputs. The number of molecular systems implementing the FLS is relatively sparse in the literature.

In this work, we have utilized our previously reported terpyridyl-imidazole system (tpy-HImzPh3) (Bhaumik et al., 2011), wherein a terpyridine moiety capable of coordinating with several bivalent 3d metals is covalently coupled with a triphenyl-imidazole motif capable of interacting with selected anions (Chart 1) (Bhaumik et al., 2011; Karmakar et al., 2014; Mondal et al., 2017; Karmakar et al., 2015a; Mukherjee et al., 2021). Using its absorption and emission spectral responses as a function of a specific set of cations and anions, multiple Boolean logic (BL) functions such as combinatorial logic of AND, OR, and NOT gates (Omana et al., 2003; Zhang et al., 2015; Magri and Spiteri, 2017; Goldsworthy et al., 2018) and molecular level keypad lock are demonstrated (Margulies et al., 2007; Strack et al., 2008; Andrasson et al., 2009; Kumar et al., 2009; Bhalla and Kumar, 2012; Zou et al., 2012; Jiang and Ng, 2014; Carvalho et al., 2015; Chen et al., 2015; Karmakar et al., 2015b; Mondal et al., 2015). Herein, we also executed fuzzy logic for creating an infinite-valued logic scheme using the emission spectral output upon the action of specific cations (H+ and/or Fe2+) and anion (F).

ANNs are biologically motivated systems comprised of extensively connected processing elements arranged in layers and bound with weighted interrelations. Usually, ANN is framed by a numerical learning algorithm and could be “trained” to approximate effectively any nonlinear function to a required degree of accuracy. To this end, ANN is believed to be a universal approximator class. We have designed two ANN models based on reversible deprotonation-protonation induced by anions and acid and recomplexation-decomplexation behavior of the receptor in the presence of M2+ and F ions. Due to the lack of learning capability of fuzzy model and paucity of transparency of the ANN model, we also implemented the neuro-fuzzy system, which represents a type of hybrid intelligent system amalgamating the principle features of ANN and fuzzy logic. The objective is to eliminate the difficulty of implementing fuzzy logic through numerical knowledge or, contrarily, implementing ANN via linguistic information. Importantly, we also compared the outcomes of the fuzzy, ANN, and ANFIS methods with the experimental outputs to better model the deprotonation-protonation and complexation-decomplexation behavior of the receptor.

Results and Discussion

Overview of the Anion and Cation Sensing Behavior of the Receptor

The method of synthesis, thorough characterization, and anion and cation sensing properties of tpy-HImzPh3 was previously reported by our group (Bhaumik et al., 2011). A brief overview of the ion sensing behavior of the receptor is summarized for the benefit of the readers. Tpy-HImzPh3 shows two intense bands. The lower-energy band at 340 nm is due to imidazole→tpy intra-ligand charge transfer (ILCT) transition, whereas the higher-energy band at 285 nm is due to π–π* transition in DMF-MeCN (1:9, v/v) solution. The receptor also exhibits a strong emission band at 485 nm with a quantum yield (Φ) of 0.095 and a lifetime (τ) of 2.55 ns. The anion and cation sensing behavior of tpy-HImzPh3 was studied in DMF-MeCN (1:9, v/v) solution through absorption and emission spectroscopic techniques. The receptor functions as a selective sensor for F and Fe2+ among the studied anions and cations, respectively. The spectral change upon incremental addition of F and Fe2+ is displayed in Supplementary Figure S1. The absorption peak at 341 nm gets diminished systematically, accompanied by an increase in the new band at 420 nm and the evolution of bright yellow color upon gradual addition of F. The bathochromic shift is probably because of F-induced deprotonation of the NH motif, which enhances the electron density at the imidazolate moiety and facilitates the electron transfer process. In contrast, the addition of Fe2+ leads to generation and gradual intensification of the peak at 575 nm with the evolution of a violet color, and saturation occurs with 0.5 equiv. Fe2+. The violet color is due to Fe(d)→tpy (π*) MLCT transition in the resulting [Fe(tpy-HImzPh3)2]2+ complex. Complete quenching of emission of the receptor is observed in the presence of both Fe2+ and F ions. It is to be noted that, upon excitation at 575 nm, the Fe(II) complex does not show any emission band due to the presence of low-lying triplet/quintet metal-centered (3/5MC) excited states.

Interestingly, the complexation of tpy-HImzPh3 by Fe2+ and its decomplexation by F are reversible and can be repeated many times. Similarly, the deprotonation of the receptor by F and reverting into its initial protonated form by acid is also reversible and can be recycled many times (Supplementary Figure S1). The reversible deprotonation-protonation and complexation-decomplexation behavior of the receptor has been employed for the construction of different types of logic devices. The next section shows that the receptor can mimic various logic operations using its spectral responses through the sequential use of ionic inputs.

Combinatorial Logic System

It is a type of digital logic that is implemented by Boolean circuits. In this section, we utilize the spectral response of the tpy-HImzPh3 upon the action of Fe2+ as input 1, and the rest of the studied bivalent cations can be treated as input 2. Among the studied cations, only Fe2+ can induce a strong absorption band at 575 nm which is well above the threshold energy level and gives rise to the “ON” state 1 (Figure 1). Based on the absorption spectral behavior of tpy-HImzPh3 upon the influence of different cations and monitoring the signal at 575 nm, the function of a combinatorial logic system can be mimicked.

FIGURE 1
www.frontiersin.org

FIGURE 1. (A) UV-Vis absorption spectrum of tpy-HImzPh3 in the presence of different cations. (B) Truth table of the combinatorial logic system. (C) Schematic diagram of the combinatorial logic system. (D) Visual color changes in the presence of various cations.

CHART 1
www.frontiersin.org

CHART 1. Chemical structure of the terpyridyl-imidazole based receptor.

Two other combinatorial logic functions can also be mimicked by utilizing the spectral outputs in the presence of different anions. Among the studied anions, only OH (input 1) or F (input 3) leads to the evolution of the absorption maximum at 420 nm above the threshold level and thus corresponds to the ON state (Figure 2A). In contrast, the remaining anions (input 2) correspond to the OFF state. By contrast, OH (input 1) or F (input 3) induces complete quenching of emission displaying the OFF state, whereas the remaining anions, which are unable to quench the emission intensity, correspond to the ON state (Figure 3A). The output arising from the different possible combinations of inputs are provided in the truth table of Figures 2B, 3B To better understand the functions of anions in UV and photoluminescence property of tpy-HImzPh, a schematic diagram of combinational logic circuits is presented Figure 2C and Figure 3C. The visual colour change in presence of different anions is also displayed in Figure 2D.

FIGURE 2
www.frontiersin.org

FIGURE 2. (A) UV-Vis absorption spectrum of tpy-HImzPh3 in the presence of different anions. (B) Truth table of the combinatorial logic system. (C) Schematic diagram of the combinatorial logic system. (D) Visual color changes in the presence of different anions.

FIGURE 3
www.frontiersin.org

FIGURE 3. (A) Photoluminescence spectrum of tpy-HImzPh3 in the presence of different anions. (B) Truth table of the combinatorial logic system. (C) Schematic diagram of the combinatorial logic system.

Keypad Lock

The absorbance at 580 nm is used as the output signal upon the influence of Fe2+ (input 1) and F (input 2) for this purpose. In Figure 4A, the input Fe2+ is earmarked as “I,” whereas F is allocated as “N.” “B” and “K” correspond to the “ON state” and “OFF state,” respectively. There is no absorption above the threshold energy level at 580 nm in the absence of both inputs implying the “OFF state.” The addition of “N” followed by “I” induces enhancement of absorption above the threshold level, leading to the “ON state” and creating a secret password “NIB.” Reversing the sequence of addition (“I” followed by “N”) induces a remarkable decrease in emission below the threshold indicating the “OFF state” and leads to the creation of the password “INK,” which cannot unlock the keypad lock. Thus, only the authorized person can unlock it. It is a novel approach to protecting information at the molecular level and much better than the common number-based PIN (Figure 4).

FIGURE 4
www.frontiersin.org

FIGURE 4. (A) UV-Vis absorption spectrum of tpy-HImzPh3 upon interaction with F and Fe2+. Truth table and schematic display of the security keypad lock (B,C). (D) 3D display of the variation of absorbance in the presence of the inputs.

Fuzzy Logic Operations

In Boolean systems, we use crisp values that define a strict boundary, either true (1) or false (0). They are unable to define any intermediate values. In the real world, we often encounter a situation where we cannot confidently determine whether the state is true (1) or false (0). The fuzzy logic, first proposed by Lotfi Zadeh in 1965 (Zadeh, 1996), provides an easy alternative to this end and some flexibility in reasoning. Due to the unclarity and vagueness of most chemical reactions, the computation based on fuzzy logic is assumed to be a probable substitute to tackle the indecisive information in the domain of the binary logic scheme.

As shown in Figure 5, the spectral change of tpy-HImzPh3 greatly varies upon the action of F (input 1) and H+ (input 2). Instead of its indefinite character and large degree of change, the present system’s variables can be disclosed in terms of five lingual parameters of the triangular molecular functions (trimf): very low, low, medium, high, and very high (Mamdani, 1977). The influence of the varying amount of H+ and F on the emission intensity of tpy-HImzPh3 could be presented in the form of fuzzy sets (Figure 5). An assortment of divergent IF-THEN statements involving the inference rules is provided in Supplementary Table S1. The IF-portion conforms to the antecedent, whereas the THEN-portion correlates to the consequence. The quenching of emission occurs in the presence of F, whereas the regeneration of emission takes place upon the action H+. To this end, fuzzy logic is applied to tpy-HImzPh3 upon monitoring the emission intensity with changing concentrations of H+ and F inputs (Supplementary Table S2). The feasible consolidation of F and H+ generates 38 rules (Supplementary Table S1 and Supplementary Figure S2). Furthermore, the variation of emission intensity upon combined actions of H+ and F is portrayed in a 3D plot (Figure 6).

FIGURE 5
www.frontiersin.org

FIGURE 5. Schematic display of fuzzy logic scheme based on fuzzy inference rules upon monitoring the emission intensity as a function of F and H+. Fuzzy variables are decomposed in five fuzzy sets. F: (1) very low [trimf μverylow, (0.056 0.32 1.01)]; (2) low [trimf μlow, (0.757 1.18 1.65)]; (3) medium [trimf μmedium, (1.32 2 2.72)]; (4) high [trimf μhigh, (2.45 2.92 3.482)]; and (5) very high [trimf μveryhigh, (3 3.665 3.95). H+: (1) (1) very low (trimf μverylow, (0.056 0.32 1.01)]; (2) low [trimf μlow, (0.757 1.18 1.65)]; (3) medium [trimf μmedium, (1.32 2 2.72)]; (4) high [trimf μhigh, (2.45 2.92 3.482)]; and (5) very high [trimf μveryhigh, (3 3.665 3.95). Emission intensity (output): (1) very low [trimf μverylow, (4.28 85.8 193)]; (2) low [trimf μlow, (153 205 283.5)]; (3) medium [trimf μmedium, (248 306.7 378)]; (4) high [trimf μhigh, (359 441.4 536)]; and (5) very high [trimf μveryhigh, (521 607 716.3)].

FIGURE 6
www.frontiersin.org

FIGURE 6. 3D display of the dependence of emission intensity of tpy-HImzPh3 at 485 nm upon the action of F and H+.

Artificial Neural Network

Fuzzy logic has good knowledge representation ability but weak learning capability. To this end, we tried to formulate the ANN mathematical algorithm and modeling method that correlates the input and output dependence of the receptor. ANN is a powerful aid for modeling the nonlinear functions, which represent real-world systems. ANN is constructed via the compilation of artificial neurons, which mirror the connectedness of neurons in the human brain to carry out a task with enhanced performance via learning, training, and continuous improvement. We used the Levenberg–Marquardt algorithm for training purposes. Input data present the network, and target data define the desired network output. Supplementary Table S2 represents the emission outputs upon the action of 25 different combinations of two inputs (input 1 = F and input 2 = H+). Thus, the 25 × 2 matrix represents the static input data of 25 samples involving two inputs, whereas the 25 × 1 matrix represents the static output data of one element. Now, the 25 samples are divided into three data sets. 70% of data are conferred for the training, and the network is corrected according to its error. 15% of data are employed to compute the network generalization and halt training. When generalization stops improving, data validation takes place. The remaining 15% of data provide an independent measure of the network performance during and after the training, called testing data (Figure 7).

FIGURE 7
www.frontiersin.org

FIGURE 7. The performance of the designed ANN model.

It clearly shows that the model’s best validation performance is 4335.47 at epoch 2. The enhancement of the green-colored line after epoch 2 suggests that the increment of the mean square error (MSE) and training is halted. The regression values (R) measure the correlation between the outputs and targets. The R values close to 1 imply a close relationship between output and targets and very good performance of the model (Figure 8). The training state of the ANN model up to epoch 8 is given in Supplementary Figure S3.

FIGURE 8
www.frontiersin.org

FIGURE 8. Comparison between linear regression and ANN model results plotted and the observed values for training, validation, and testing.

The bins are the number of vertical bars on the graph (Supplementary Figure S4). The y-axis designates the number of samples in the database, which exit in a particular bin, for example, at the middle of the plot, the bin corresponding to the error of −7.425 to 13.42. The height of that bin for the training data set lies below but close to 2, and that for the validation data set varies between 2 and 3. In the present case, the zero error point is situated under the bin with the center at −7.425. The total error from neural network ranges from −278.5 (leftmost bin) to 117.7 (rightmost bin). The error histogram represents the histogram of the errors between target values and predicted values after training a feed-forward neural network. As the error values suggest how predicted values deviate from the target values, this could be negative. This error range is spitted up into 20 smaller bins, so each bin has a width of [117.7-(−278.5)]/20 = 19.81 (Supplementary Figure S4). There are three layers: input, hidden, and output. Each hidden layer performs a nonlinear transformation of the inputs entered into the network. Inputs are loaded into the input layer, and each node gives rise to an output value through an activation function. The outputs of the input layer again act as the inputs to the next hidden layer (Figure 9).

FIGURE 9
www.frontiersin.org

FIGURE 9. Artificial neural network model consisting of two inputs, five hidden layers, and one output.

On putting the different input values in the rule viewer of fuzzy logic and the command section of ANN model in MATLAB R2018a, we obtain the output values presented in Table 1, which indicate that the difference between experimental and fuzzy logic output is greater than the difference between experimental and ANN model output because of the neural network’s inability to explain the decision (lack of transparency) and fuzzy logic’s weakness of learning.

TABLE 1
www.frontiersin.org

TABLE 1. Experimental, fuzzy, and ANN model data in the presence of different input combinations.

Adaptive Neuro-Fuzzy Inference System

Combining the fuzzy and neural network overcomes the drawback of individual ones (Sugeno and Yasukhiro, 1993; Jang and Sun, 1995). Robustness, solidity, and high generalization capability of the ANFIS model provide room for applications that involve crisp inputs and outputs. To develop the system, we have used 70% of the data for training purposes and the remaining 30% for testing (Figure 10A,C,D). Figure 10B shows that the training error is reduced every time up to 50 epochs, indicating that the system is learning in every single step. Due to the presence of two inputs and five membership functions each, the system will generate 52 = 25 rules (Supplementary Table S3 and Supplementary Figure S5). The feasible consolidation of F and H+ generates 25 rules on the basis of Sugeno’s method (Figure 11). On running the generated ANFIS on MATLAB-R2018a and upon commanding the system with different input values, the obtained outputs are summarized in Table 2. Furthermore, the variation of emission intensity upon combined operation of F and H+ is portrayed in a 3D plot (Figure 12).

FIGURE 10
www.frontiersin.org

FIGURE 10. (A) Selected training data to design the ANFIS model. (B) Training error minimization up to 50 epochs. (C) Combination of training and testing data. (D) Compilation of testing data and FIS output.

FIGURE 11
www.frontiersin.org

FIGURE 11. Schematic presentation of ANFIS based on Sugeno’s method maintaining 25 rules.

TABLE 2
www.frontiersin.org

TABLE 2. Experimental and ANFIS generated outputs.

FIGURE 12
www.frontiersin.org

FIGURE 12. Three-dimensional representation (based on Sugeno’s method) of the dependence of emission intensity of tpy-HImzPh3 at 485 upon simultaneous action of two inputs (F and H+).

The performance of the ANFIS models in the present study is statically measured by root mean square error (RMSE). The testing RMSE value for this model is 0.0023, suggesting that the model is working properly. We can see that the ANFIS generated output values are closer to the experimental outputs. Therefore, it is a more accurate optimization system than the fuzzy and neural network system. On the basis of 25 rules, we have constructed the ANFIS structure (Figure 13). The comparison and the deviation of the experimental data to those of fuzzy, ANN, and ANFIS outputs are presented in Figure 14.

FIGURE 13
www.frontiersin.org

FIGURE 13. Generated ANFIS structure based on 25 rules.

FIGURE 14
www.frontiersin.org

FIGURE 14. Comparison between experimental emission output data and fuzzy, ANN, and ANFIS output data.

Fe2+ addition causes absorbance enhancement at 575 nm of tpy-HImzPh3 (due to complexation), whereas F causes absorbance depletion (because of decomplexation). We implement fuzzy logic to the receptor upon changing the concentrations of Fe2+ and F ions and by monitoring the absorption spectral response (Supplementary Table S4). We have taken three triangular membership functions (trimf) for each input and output. The feasible consolidation of Fe2+ and F generates 15 rules (Figure 15, Supplementary Figure S6, and Supplementary Table S5). Furthermore, the variation of absorption intensity upon the combined operation of Fe2+ and F is portrayed in a 3D plot (Supplementary Figure S7).

FIGURE 15
www.frontiersin.org

FIGURE 15. Schematic display of fuzzy logic based on fuzzy inference rules by monitoring absorbance at 575 nm upon the action Fe2+ and F as inputs. Fuzzy variables are decomposed into three fuzzy sets. Fe2+: (1) low [trimf μlow, (0.042 0.665 1.89)]; (2) medium [trimf μmedium, (1.747 2.51 3.36)]; and (3) high [trimf μhigh, (3.109 4.419 4.989)]. F: (1) low [trimf μlow, (0.0426 1.41 3.633)]; (2) medium [trimf μmedium, (3.16 6.46 9.69)]; and (3) high [trimf μhigh, (9.146 12.14 13.01)]. Absorption intensity (output): (1) low [trimf μlow, (0.00253 0.0439 0.1297)]; (2) medium [trimf μmedium, (0.112 0.235 0.361)]; and (3) high [trimf μhigh, (0.319 0.479 0.527)].

Artificial Neural Network

We also used here the Levenberg–Marquardt algorithm for training purpose. The input data present the network, and the target data define the desired network output. Input 16 × 2 matrix represents static data of 16 samples of 2 inputs and output 16 × 1 matrix represents static data of 16 samples of 1 element. Sixteen samples are divided into three data sets. 70% of data (12 samples) are fed to the network during training, and the network is optimized according to its error. 15% (two samples) of data are used to measure network generalization and halt training, whereas the remaining 15% (two samples) of data do not affect training. However, they give an independent measure of network performance during and after training (Supplementary Figure S8).

Supplementary Figure S8 clearly shows that the model’s best validation performance is 0.0005813 at epoch 14. The enhancement of green-colored spectra after epoch 14 suggests the increment of mean square error (MSE) and training is halted. Regression (R) values measured the correlation between outputs and targets. The R values close to 1 imply a close relationship between output and targets and very good performance of the model (Supplementary Figure S9). The training state of the ANN model up to epoch 20 is given (Supplementary Figure S10). The y-axis designates the number of samples from the database, which lies in a particular bin, for example, at the middle of the plot, the bin corresponding to the error of −0.00186 to 0.00214. The height of that bin for the training data set lies below but close to 5, and that of the validation data set varies between 5 and 6. In the present case, the zero error point is situated under the bin with the center at −0.00186 (Supplementary Figure S11). The total error from the neural network ranges from −0.03387 (leftmost bin) to 0.04215 (rightmost bin). This error range is divided into 20 smaller bins, so each bin has a width of [0.04215-(−0.03387)]/20 = 0.0038 (Supplementary Figure S11). As discussed earlier, the three layers are presented in Supplementary Figure S12. On putting the different input values in the rule viewer of fuzzy logic and the command section of the ANN model in MATLAB R2018a, we got the following output values (Table 3).

TABLE 3
www.frontiersin.org

TABLE 3. Experimental, fuzzy, and ANN model data in the presence of different combinations of inputs.

Adaptive Neuro-Fuzzy Inference System

To develop the system, we have used 70% of the data for training purposes and the remaining 30% for testing. Supplementary Figure S14 shows that the training error is reduced every time to 50 epochs, indicating that the system is learning in every single step. Due to the presence of two inputs and three membership functions each, the system will generate 32 = 9 rules (Supplementary Table S6 and Supplementary Figure S13). The plausible compilation of Fe2+ and F generates nine rules on the basis of Sugeno’s method (Supplementary Figure S15). On running the generated ANFIS on MATLAB-R2018a and commanding the system with different input values, we got the following outputs (Table 4). The variation of absorption intensity upon combined operation of Fe2+ and F is shown in a 3D plot (Supplementary Figure S16).

TABLE 4
www.frontiersin.org

TABLE 4. Experimental and ANFIS generated outputs.

The testing root mean square error (RMSE) for this model is 0.0036, suggesting that the model is working properly. We can see that the ANFIS generated output values are closer to the experimental outputs. Therefore, it is a more accurate system than fuzzy and neural network system. We have constructed the ANFIS structure on the basis of the nine rules (Figure 16). Supplementary Figure S17 shows the deviation between the experimental and fuzzy, ANN, and ANFIS outputs.

FIGURE 16
www.frontiersin.org

FIGURE 16. Generated ANFIS structure based on nine rules.

Conclusion

Concerning our recent interest in process information at the molecular level, we a terpyridyl-imidazole based receptor (tpy-HImzPh3), which, upon interaction with specific cations and anions, gives rise to significant modulation of absorption and emission spectral properties. Using the absorption and emission spectral outputs toward specific anions and cations, we can demonstrate combinatorial Boolean logic functions of AND, OR, and NOT gates and the keypad lock. Additionally, fuzzy logic is employed to fabricate an infinite-valued setup to identify the indefinite values in between true (1) and false (0) states. ANN- and ANFIS-based modeling approaches were also employed using different combinations of inputs and output data. The results show that fuzzy, ANN, and ANFIS can quite accurately predict the experimental data. The statistical performance indicators (such as MSE and RMSE) indicate that the predicted values of the sensing data (absorption and emission spectral outputs) by ANFIS models are comparable to the experimental data. Therefore, the adopted computational intelligence-based approach can be considered a potential ion sensing data model for tpy-HImzPh3.

Data Availability Statement

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding author.

Author Contributions

AS contributed to the analysis of data and design of the models. SB supervised and validated this project. The manuscript was written by AS and SB.

Funding

The financial assistance received from SERB (Grant no. CRG/2020/001233) and CSIR (Grant no. 01(2945)/18/EMR-II0, New Delhi, India, are gratefully acknowledged.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Acknowledgments

AS acknowledges CSIR (File no. 09/096(0938)/2018-EMR-I) for research fellowship.

Supplementary Material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fchem.2022.864363/full#supplementary-material

References

Adamatzky, A., and De Lacy Costello, B. (2002). Experimental Logical gates in a Reaction-Diffusion Medium: The XOR Gate and beyond. Phys. Rev. E 66, 046112. doi:10.1103/PhysRevE.66.046112

PubMed Abstract | CrossRef Full Text | Google Scholar

Adamatzky, A., Jones, J., Mayne, R., Tsuda, S., and Whiting, J. (2016). Logical gates and Circuits Implemented in Slime Mould. Adv. Physarum Machines, 37–74. doi:10.1007/978-3-319-26662-6_3

CrossRef Full Text | Google Scholar

Adamatzky, A., Tegelaar, M., Wosten, H. A. B., Powell, A. L., Beasley, A. E., and Mayne, R. (2020). On Boolean gates in Fungal colony. Biosystems 193-194, 104138. doi:10.1016/j.biosystems.2020.104138

PubMed Abstract | CrossRef Full Text | Google Scholar

Andréasson, J., Straight, S. D., Moore, T. A., Moore, A. L., and Gust, D. (2009). An All-Photonic Molecular Keypad Lock. Chemistry 15, 3936–3939. doi:10.1002/chem.20010.1002/chem.200900043

PubMed Abstract | CrossRef Full Text | Google Scholar

Artrith, N., Butler, K. T., Coudert, F.-X., Han, S., Isayev, O., Jain, A., et al. (2021). Best Practices in Machine Learning for Chemistry. Nat. Chem. 13, 505–508. doi:10.1038/s41557-021-00716-z

PubMed Abstract | CrossRef Full Text | Google Scholar

Babanezhad, M., Behroyan, I., Nakhjiri, A. T., Marjani, A., and Shirazian, S. (2020a). Computational Modeling of Transport in Porous media Using an Adaptive Network-Based Fuzzy Inference System. ACS omega 5, 30826–30835. doi:10.1021/acsomega.0c04497

PubMed Abstract | CrossRef Full Text | Google Scholar

Babanezhad, M., Nakhjiri, A. T., and Shirazian, S. (2020b). Changes in the Number of Membership Functions for Predicting the Gas Volume Fraction in Two-phase Flow Using Grid Partition Clustering of the ANFIS Method. ACS omega 5, 16284–16291. doi:10.1021/acsomega.0c02117

PubMed Abstract | CrossRef Full Text | Google Scholar

Babanezhad, M., Rezakazemi, M., Marjani, A., and Shirazian, S. (2020c). Predicting Air Superficial Velocity of Two-phase Reactors Using ANFIS and CFD. ACS omega 6, 239–252. doi:10.1021/acsomega.0c04386

PubMed Abstract | CrossRef Full Text | Google Scholar

Bhalla, V., and Kumar, M. (2012). Fluoride Triggered Fluorescence “Turn on” Sensor for Zn2+ Ions Based on Pentaquinone Scaffold that Works as a Molecular Keypad Lock. Org. Lett. 14, 2802–2805. doi:10.1021/ol301030z

PubMed Abstract | CrossRef Full Text | Google Scholar

Bhaumik, C., Das, S., Maity, D., and Baitalik, S. (2011). A Terpyridyl-Imidazole (Tpy-HImzPh3) Based Bifunctional Receptor for Multichannel Detection of Fe2+ and F− Ions. Dalton Trans. 40, 11795–11808. doi:10.1039/C1DT10965K

PubMed Abstract | CrossRef Full Text | Google Scholar

Bingöl, D., Inal, M., and Çetintaş, S. (2013). Evaluation of Copper Biosorption onto Date palm (Phoenix Dactylifera L.) Seeds with MLR and ANFIS Models. Ind. Eng. Chem. Res. 52, 4429–4435. doi:10.1021/ie400484c

CrossRef Full Text | Google Scholar

Carvalho, C. P., Domínguez, Z., Da Silva, J. P., and Pischel, U. (2015). A Supramolecular Keypad Lock. Chem. Commun. 51, 2698–2701. doi:10.1039/C4CC09336D

CrossRef Full Text | Google Scholar

Chen, J., Zhou, S., and Wen, J. (2015). Concatenated Logic Circuits Based on a Three-Way DNA junction: a Keypad-Lock Security System with Visible Readout and an Automatic Reset Function. Angew. Chem. Int. Ed. Engl. 54, 446–450. doi:10.1002/anie.201408334

PubMed Abstract | CrossRef Full Text | Google Scholar

de Silva, A., Fox, D. P., Huxley, A. J. M., and Moody, T. S. (2000). Combining Luminescence, Coordination and Electron Transfer for Signalling Purposes. Coord. Chem. Rev. 205, 41–57. doi:10.1016/S0010-8545(00)00238-1

CrossRef Full Text | Google Scholar

de Silva, A. P. (2011). Molecular Logic Gate Arrays. Chem. Asian J. 6, 750–766. doi:10.1002/asia.201000603

PubMed Abstract | CrossRef Full Text | Google Scholar

de Silva, A. P., and McClenaghan, N. D. (2004). Molecular-scale Logic Gates. Chem. Eur. J. 10, 574–586. doi:10.1002/chem.200305054

PubMed Abstract | CrossRef Full Text | Google Scholar

de silva, P. A., Gunaratne, N. H. Q., and McCoy, C. P. (1993). A Molecular Photoionic and Gate Based on Fluorescent Signalling. Nature 364, 42–44. doi:10.1038/364042a0

CrossRef Full Text | Google Scholar

Gale, E., de Lacy Costello, B., and Adamatzky, A. (2013). Boolean Logic gates from a Single Memristor via Low-Level Sequential Logic. Int. Conf. Unconventional Comput. Nat. Comput., 79–89. doi:10.1007/978-3-642-39074-6_9

CrossRef Full Text | Google Scholar

Gentili, P. L. (2017c). “A Strategy to Face Complexity: the Development of Chemical Artificial Intelligence,”. Editors F. Rossi, S. Piotto, and S. Concilio (Cham, Switzerland; New York, NY, USA: Springer), 708, 151–160. doi:10.1007/978-3-319-57711-1_13

CrossRef Full Text | Google Scholar

Gentili, P. L. (2008). Boolean and Fuzzy Logic gates Based on the Interaction of Flindersine with Bovine Serum Albumin and Tryptophan. J. Phys. Chem. A. 112, 11992–11997. doi:10.1021/jp806772m

CrossRef Full Text | Google Scholar

Gentili, P. L. (2007). Boolean and Fuzzy Logic Implemented at the Molecular Level. Chem. Phys. 336, 64–73. doi:10.1016/j.chemphys.2007.05.013

CrossRef Full Text | Google Scholar

Gentili, P. L., Giubila, M. S., Germani, R., Romani, A., Nicoziani, A., Spalletti, A., et al. (2017b). Optical Communication Among Oscillatory Reactions and Photo-Excitable Systems: Uv and Visible Radiation Can Synchronize Artificial Neuron Models. Angew. Chem. Int. Ed. 56, 7535–7540. doi:10.1002/anie.201702289

PubMed Abstract | CrossRef Full Text | Google Scholar

Gentili, P. L., Giubila, M. S., and Heron, B. M. (2017a). Processing Binary and Fuzzy Logic by Chaotic Time Series Generated by a Hydrodynamic Photochemical Oscillator. ChemPhysChem 18, 1831–1841. doi:10.1002/cphc.201601443

PubMed Abstract | CrossRef Full Text | Google Scholar

Gentili, P. L., Rightler, A. L., Heron, B. M., and Gabbutt, C. D. (2016). Extending Human Perception of Electromagnetic Radiation to the UV Region through Biologically Inspired Photochromic Fuzzy Logic (BIPFUL) Systems. Chem. Commun. 52, 1474–1477. doi:10.1039/C5CC09290F

PubMed Abstract | CrossRef Full Text | Google Scholar

Gentili, P. L. (2011). The Fundamental Fuzzy Logic Operators and Some Complex Boolean Logic Circuits Implemented by the Chromogenism of a Spirooxazine. Phys. Chem. Chem. Phys. 13, 20335–20344. doi:10.1039/C1CP21782H

PubMed Abstract | CrossRef Full Text | Google Scholar

Gentili, P. L. (2014). The Human Sensory System as a Collection of Specialized Fuzzifiers: a Conceptual Framework to Inspire New Artificial Intelligent Systems Computing with Words. J. Intell. Fuzzy Syst. 27, 2137–2151. doi:10.3233/IFS-141179

CrossRef Full Text | Google Scholar

Gentili, P. (2018). The Fuzziness of the Molecular World and its Perspectives. Molecules 23, 2074. doi:10.3390/molecules23082074

PubMed Abstract | CrossRef Full Text | Google Scholar

Giri Nandagopal, M. S., and Selvaraju, N. (2016). Prediction of Liquid-Liquid Flow Patterns in a Y-Junction Circular Microchannel Using Advanced Neural Network Techniques. Ind. Eng. Chem. Res. 55, 11346–11362. doi:10.1021/acs.iecr.6b02438

CrossRef Full Text | Google Scholar

Goldsworthy, V., LaForce, G., Abels, S., and Khisamutdinov, E. (2018). Fluorogenic RNA Aptamers: A Nano-Platform for Fabrication of Simple and Combinatorial Logic gates. Nanomaterials 8, 984. doi:10.3390/nano8120984

PubMed Abstract | CrossRef Full Text | Google Scholar

He, L., Bai, L., Dionysiou, D. D., Wei, Z., Spinney, R., Chu, C., et al. (2021). Applications of Computational Chemistry, Artificial Intelligence, and Machine Learning in Aquatic Chemistry Research. Chem. Eng. J. 426, 131810. doi:10.1016/j.cej.2021.131810

CrossRef Full Text | Google Scholar

Huang, M., Ma, Y., Wan, J., Zhang, H., and Wang, Y. (2012). Modeling a Paper-Making Wastewater Treatment Process by Means of an Adaptive Network-Based Fuzzy Inference System and Principal Component Analysis. Ind. Eng. Chem. Res. 51, 6166–6174. doi:10.1021/ie203049r

CrossRef Full Text | Google Scholar

İnal, M. (2014). Predicting the Conversion Ratio for the Leaching of Celestite in Sodium Carbonate Solution Using an Adaptive Neuro-Fuzzy Inference System. Ind. Eng. Chem. Res. 53, 4975–4980. doi:10.1021/ie500225a

CrossRef Full Text | Google Scholar

Jang, J.-S. R., and Chuen-Tsai Sun, C. T. (1995). Neuro-fuzzy Modeling and Control. Proc. IEEE 83, 378–406. doi:10.1109/5.364486

CrossRef Full Text | Google Scholar

Jiang, X.-J., and Ng, D. K. P. (2014). Sequential Logic Operations with a Molecular Keypad Lock with Four Inputs and Dual Fluorescence Outputs. Angew. Chem. 126, 10649–10652. doi:10.1002/ange.201406002

CrossRef Full Text | Google Scholar

Karmakar, S., Maity, D., Mardanya, S., and Baitalik, S. (2014). Demonstration of Multiple Logic Operations in a Heteroditopic Pyrene-Phenylimidazole-Terpyridine Conjugate Based on Optical Responses by Selective Anions and Cations: An Experimental and Theoretical Investigation. J. Phys. Chem. A. 118, 9397–9410. doi:10.1021/jp505507x

CrossRef Full Text | Google Scholar

Karmakar, S., Mardanya, S., Das, S., and Baitalik, S. (2015a). Efficient Deep-Blue Emittier and Molecular-Scale Memory Device Based on Dipyridyl-Phenylimidazole-Terpyridine Assembly. J. Phys. Chem. C 119, 6793–6805. doi:10.1021/jp512583m

CrossRef Full Text | Google Scholar

Karmakar, S., Mardanya, S., Pal, P., and Baitalik, S. (2015b). Design of Multichannel Osmium-Based Metalloreceptor for Anions and Cations by Taking Profit from Metal-Ligand Interaction and Construction of Molecular Keypad Lock and Memory Device. Inorg. Chem. 54, 11813–11825. doi:10.1021/acs.inorgchem.5b02300

PubMed Abstract | CrossRef Full Text | Google Scholar

Kumar, S., Luxami, V., Saini, R., and Kaur, D. (2009). Superimposed Molecular Keypad Lock and Half-Subtractor Implications in a Single Fluorophore. Chem. Commun. 21, 3044–3046. doi:10.1039/B900131J

CrossRef Full Text | Google Scholar

Ling, J., Daly, B., Silverson, V. A. D., and de Silva, A. P. (2015). Taking Baby Steps in Molecular Logic-Based Computation. Chem. Commun. 51, 8403–8409. doi:10.1039/C4CC10000J

CrossRef Full Text | Google Scholar

Magri, D. C., and Spiteri, J. C. (2017). Proof of Principle of a Three-Input AND-INHIBIT-OR Combinatorial Logic Gate Array. Org. Biomol. Chem. 15, 6706–6709. doi:10.1039/C7OB01223C

PubMed Abstract | CrossRef Full Text | Google Scholar

Mamdani, E. H. (1977). Application of Fuzzy Logic to Approximate Reasoning Using Linguistic Synthesis. IEEE Trans. Comput. C-26, 1182–1191. doi:10.1109/TC.1977.1674779

CrossRef Full Text | Google Scholar

Margulies, D., Felder, C. E., Melman, G., and Shanzer, A. (2007). A Molecular Keypad Lock: a Photochemical Device Capable of Authorizing Password Entries. J. Am. Chem. Soc. 129, 347–354. doi:10.1021/ja065317z

CrossRef Full Text | Google Scholar

Mater, A. C., and Coote, M. L. (2019). Deep Learning in Chemistry. J. Chem. Inf. Model. 59, 2545–2559. doi:10.1021/acs.jcim.9b00266

CrossRef Full Text | Google Scholar

Mondal, D., Bar, M., Maity, D., and Baitalik, S. (2015). Anthraimidazoledione-Terpyridine-Based Optical Chemosensor for Anions and Cations that Works as Molecular Half-Subtractor, Key-Pad Lock, and Memory Device. J. Phys. Chem. C 119, 25429–25441. doi:10.1021/acs.jpcc.5b08337

CrossRef Full Text | Google Scholar

Mondal, D., Pal, P., and Baitalik, S. (2017). Anthraquinone-biimidazole Based Ruthenium(II) Complexes as Selective Multichannel Anion Sensors and Multi-Readout Molecular Logic gates and Memory Devices: Combined Experimental and DFT/TD-DFT Study. Sensors Actuators B: Chem. 242, 746–759. doi:10.1016/j.snb.2016.11.058

CrossRef Full Text | Google Scholar

Mukherjee, S., Sahoo, A., Deb, S., and Baitalik, S. (2021). Light and Cation-Driven Optical Switch Based on a Stilbene-Appended Terpyridine System for the Design of Molecular-Scale Logic Devices. J. Phys. Chem. A. 125, 8261–8273. doi:10.1021/acs.jpca.1c06524

CrossRef Full Text | Google Scholar

Omana, M., Papasso, G., Rossi, D., and Metra, C. (2003). “A Model for Transient Fault Propagation in Combinatorial Logic,” in 9th IEEE On-Line Testing Symposium, 111–115. doi:10.1109/OLT.2003.1214376

CrossRef Full Text | Google Scholar

Pflüger, P. M., and Glorius, F. (2020). Molecular Machine Learning: the Future of Synthetic Chemistry? Angew. Chem. Int. Edition 59, 18860–18865. doi:10.1002/anie.202008366

CrossRef Full Text | Google Scholar

Razzak, S. A., Rahman, S. M., Hossain, M. M., and Zhu, J. (2012). Artificial Neural Network and Neuro-Fuzzy Methodology for Phase Distribution Modeling of a Liquid-Solid Circulating Fluidized Bed Riser. Ind. Eng. Chem. Res. 51, 120912150647002–120912150712508. doi:10.1021/ie301746y

CrossRef Full Text | Google Scholar

Schumann, A., and Adamatzky, A. (2015). The Double-Slit experiment withPhysarum Polycephalumandp-Adic Valued Probabilities and Fuzziness. Int. J. Gen. Syst. 44, 392–408. doi:10.1080/03081079.2014.997530

CrossRef Full Text | Google Scholar

Strack, G., Ornatska, M., Pita, M., and Katz, E. (2008). Biocomputing Security System: Concatenated Enzyme-Based Logic Gates Operating as a Biomolecular Keypad Lock. J. Am. Chem. Soc. 130, 4234–4235. doi:10.1021/ja7114713

CrossRef Full Text | Google Scholar

Sugeno, M., and Yasukawa, T. (1993). A Fuzzy-Logic-Based Approach to Qualitative Modeling. IEEE Trans. Fuzzy Syst. 1, 7–3. doi:10.1109/TFUZZ.1993.390281

CrossRef Full Text | Google Scholar

Szaciłowski, K. (2008). Digital Information Processing in Molecular Systems. Chem. Rev. 108, 3481–3548. doi:10.1021/cr068403q

PubMed Abstract | CrossRef Full Text | Google Scholar

Szaciłowski, K., Macyk, W., and Stochel, G. (2006). Light-driven OR and XOR Programmable Chemical Logic gates. J. Am. Chem. Soc. 128, 4550–4551. doi:10.1021/ja060694x

CrossRef Full Text | Google Scholar

Szaciłowski, K. (2004). Molecular Logic gates Based on Pentacyanoferrate Complexes: from Simple gates to Three‐dimensional Logic Systems. Chemistry–A Eur. J. 10, 2520–2528. doi:10.1002/chem.200305663

CrossRef Full Text | Google Scholar

Zadeh, L. A. (1996). “Fuzzy Sets,” in Fuzzy Sets, Fuzzy Logic, and Fuzzy Systems: Selected Papers by Lotfi A Zadeh, 394–432. doi:10.1142/9789814261302_0021

CrossRef Full Text | Google Scholar

Zadeh, L. A. (1973). Outline of a New Approach to the Analysis of Complex Systems and Decision Processes. IEEE Trans. Syst. Man. Cybern. SMC-3, 28–44. doi:10.1109/TSMC.1973.5408575

CrossRef Full Text | Google Scholar

Zadeh, L. (2008). Toward Human Level Machine Intelligence - Is it Achievable? the Need for a Paradigm Shift. IEEE Comput. Intell. Mag. 3, 11–22. doi:10.1109/MCI.2008.926583

CrossRef Full Text | Google Scholar

Zhang, Y., Liu, W., Zhang, W., Yu, S., Yue, X., Zhu, W., et al. (2015). DNA-mediated Gold Nanoparticle Signal Transducers for Combinatorial Logic Operations and Heavy Metal Ions Sensing. Biosens. Bioelectron. 72, 218–224. doi:10.1016/j.bios.2015.05.019

PubMed Abstract | CrossRef Full Text | Google Scholar

Zou, Q., Li, X., Zhang, J., Zhou, J., Sun, B., and Tian, H. (2012). Unsymmetrical Diarylethenes as Molecular Keypad Locks with Tunable Photochromism and Fluorescence via Cu2+ and CN− Coordinations. Chem. Commun. 48, 2095–2097. doi:10.1039/C2CC16942H

PubMed Abstract | CrossRef Full Text | Google Scholar

Keywords: terpyridine, combinatorial logic, keypad lock, fuzzy logic, ANN, ANFIS

Citation: Sahoo A and Baitalik S (2022) Fuzzy Logic, Artificial Neural Network, and Adaptive Neuro-Fuzzy Inference Methodology for Soft Computation and Modeling of Ion Sensing Data of a Terpyridyl-Imidazole Based Bifunctional Receptor. Front. Chem. 10:864363. doi: 10.3389/fchem.2022.864363

Received: 28 January 2022; Accepted: 21 February 2022;
Published: 23 March 2022.

Edited by:

Pier Luigi Gentili, Università degli Studi di Perugia, Italy

Reviewed by:

Evgeny Kataev, University of Erlangen Nuremberg, Germany
Gourhari Jana, University of California, Irvine, United States

Copyright © 2022 Sahoo and Baitalik. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Sujoy Baitalik, sbaitalik@hotmail.com, sujoy.baitalik@jadavpuruniversity.in

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.