key: cord-0860509-1r9f52mg authors: Savargiv, Mohammad; Masoumi, Behrooz; Keyvanpour, Mohammad Reza title: A New Random Forest Algorithm Based on Learning Automata date: 2021-03-27 journal: Comput Intell Neurosci DOI: 10.1155/2021/5572781 sha: 7282f8db3096f6c75e7179106e27d4eb46060bc0 doc_id: 860509 cord_uid: 1r9f52mg The goal of aggregating the base classifiers is to achieve an aggregated classifier that has a higher resolution than individual classifiers. Random forest is one of the types of ensemble learning methods that have been considered more than other ensemble learning methods due to its simple structure, ease of understanding, as well as higher efficiency than similar methods. The ability and efficiency of classical methods are always influenced by the data. The capabilities of independence from the data domain, and the ability to adapt to problem space conditions, are the most challenging issues about the different types of classifiers. In this paper, a method based on learning automata is presented, through which the adaptive capabilities of the problem space, as well as the independence of the data domain, are added to the random forest to increase its efficiency. Using the idea of reinforcement learning in the random forest has made it possible to address issues with data that have a dynamic behaviour. Dynamic behaviour refers to the variability in the behaviour of a data sample in different domains. Therefore, to evaluate the proposed method, and to create an environment with dynamic behaviour, different domains of data have been considered. In the proposed method, the idea is added to the random forest using learning automata. The reason for this choice is the simple structure of the learning automata and the compatibility of the learning automata with the problem space. The evaluation results confirm the improvement of random forest efficiency. Random forest is one of the methods of ensemble learning that comes under the homogeneous base learner category in terms of the type of constructive classifiers. As the name implies, all base learners are decision trees, and therefore they have a simpler structure than similar methods [1] . e random forest structure has two advantages. e first category is from a computational point of view, and the second category is from a statistical point of view. Advantages that can be considered from a computational point of view are: the random forest has the ability to deal with both regression and classification issues. e train and prediction processes in this classifier are performed at high speed, and therefore the random forest is known as one of the fast classic classifiers. Another advantage of the random forest is its ability to be used directly in high-dimensional issues [2] . e advantages of the second view of the random forest are its characteristics, namely, prioritization of features, attribution of different weight coefficients to different classes, and illustration and unsupervised learning ability. According to the literature, the random forest method is one of the most practical methods of ensemble learning. Weighting the base learners in ensemble learning is one of the main challenges in aggregating the basic classifiers in order to achieve a stronger classifier [3] . e reason for weighing base learners, or in other words, determining the impact factor for each base learner, is to increase the scalability of the data mining algorithm with the problem space. is becomes even more apparent when the environment is dynamic, and different or sometimes contradictory behaviours are observed from data in different situations. e text data environment has such an interesting behaviour that it challenges data mining algorithms. For example, placing one word on one domain may create a positive polarity, but it may also create a negative polarity on another domain. is difference in polarity is created without any change in the form of the word and without any change in the role of the word from a grammatical point of view. e word "small" in both the electronic domain and the restaurant domain has such a behaviour. is behaviour poses a major challenge to the opinion mining algorithms [4] . e classical solution in the literature to overcome this challenge is based on the use of lexical-based approaches. is approach is based on frameworks such as unigram, n-gram, aspect-based, and similar methods, and all of them are data-dependent. In addition to the urgent need for predefined data, these methods lose their efficiency if they are met with an unspecified word or metaphor in the opinion mining field. In other words, they are not compatible with the problem space. e way random forest works is that with the sequential placement of training data and feature vectors that are injected into each of the base learners, it tries to find the best subset of features, and by increasing their impact factor in the classifier, it achieves the highest performance among all the aggregated base learners [5] . However, this method is not effective in relation to data such as text, in which a word can have different polarities in different domains because, in the classification algorithm, there is no ability to adapt to the conditions of the problem space. In this paper, we intend to empower random forest with the idea of reinforcement learning and improve its efficiency. In the proposed method, learning automata is used to aggregate and weigh base learners. e way learning automata works is to receive feedback from the environment and perform one of the actions based on the type of feedback. In the learning automata, feedbacks are divided into two categories of reinforcement signals: reward signals and penalty signals. For each reinforcement signal received by the learning automata, it updates the probability of selecting the selected action in the previous step. is process continues until the probability of action selections converges to one of the actions; in other words, the best option for running in the current situation is found. In the proposed method, learning automata actions are appropriate when one of the base learners selected leads to the maximum reward that can be received from the environment. Since at each stage of learning automata execution, the learning algorithm tries to select the best option, achieving global optima in the problem space is guaranteed. is is proof of the adaptability of the proposed method. In the proposed method, the subprocess of replacing features in the feature vector is removed, and all the features in the feature vector are used. As a practical application in the field of opinion mining, if the Bag of Word (BoW) method is used to create the feature vector, the advantage of considering all the features of the feature vector will also cover cases that occur rarely. In other words, in the proposed method, the aspect of independence from the domain in the processes such as opinion mining is considered. Our contribution is summarized as follows: In this paper, a brief review of random forest in terms of application scope is given. In this paper, a learning automata-based method is proposed to improve the random forest performance. e proposed method operates independently of the domain, and it is adaptable to the conditions of the problem space. e rest of the paper is organized as follows. In Section 2, related work is introduced. Section 3 presents the introduction to learning automata. e proposed method is explained in Section 4. Section 5 includes evaluation. Discussion is given in Section 6, and finally, the conclusion and future work are described in Section 7. In this section, theories and literature on the subject of random forest are examined. e purpose of this section is to review the innovations that have been introduced around random forest in recent years. Random forest is considered as one of the methods of ensemble learning in the homogeneous ensemble learning subgroup. In the random forest, each decision tree, or in other words, each base learner, has access to a random subset of feature vectors [6] . erefore, the feature vector is defined as follows: , where p is the dimension property of the available vector for the base learner. e main goal is to find the prediction function as f(x) that predicts the Y parameter. e prediction function is defined as follows: where L is known as the loss function, and the goal is to minimize the expected value of the loss. For regression applications and classification applications, squared error loss and zero-one loss are common choices, respectively. ese two functions are defined as follows in equations (3) and (4), respectively. To create an ensemble, a set of base learners come together. If base learners are defined as follows: for regression applications, the averaging will be based on equation (6) , and for classification applications, the voting will be based on equation (7). e Random Forest pseudocode for classification applications is shown in Algorithm 1. As can be seen in Algorithm 1, in the random forest, an attempt is made to find a subset of features using the various replacements of training data and features that maximize the efficiency and accuracy of the output. is set of features is used to identify a new instance. e following is a brief review of the random forest subject literature. It should be noted that we intend to introduce the background of the subject, and this paper is not a review paper, and the presented review is a brief review and does not mention all the previous works undoubtedly. However, the authors have tried to refer to the latest and most authoritative research work published in the recent years. In the astronomy field, Markel and Bayless [7] use RF for the classification of type IA and core-collapse supernovae. Chen et al. [8] propose an approach to detect the potential signal photons by RF. In the bioinformatics, Pang et al. [9] propose a method to mitigate the computational complexity of RNA simulation software by a typical random forest. Darmawan et al. [10] propose an age estimation model in the bioinformatics field. In the economics field, Park et al. [11] propose two stages of short-term load forecasting by random forest and deep neural networks to reduce energy costs. 12 use a typical RF to solve the e-commerce product classification problem. Modeling consumer credit risk by RF is the main goal of [13] . 14 increase tree correlation by controlling the probability of placing splits along with strong predictors to deal with high-dimensional settings. Sikdar et al. [15] proposed a variable selection method based on RF to identify the key predictors of price change in amazon. In the general field, Giffon et al. [16] use the mean of orthogonal matching pursuit algorithms for calculating the weights of the linear combination for producing a linear combination of trees with minimum training error. Combining RF and generalized linear mixed models is the main idea of [17] to model clustered and longitudinal binary outcomes. Mohapatra et al. [18] optimize the random forest by use of unequal weight voting strategy. Ji et al. [19] propose a hybrid model for crowd counting by a combination of convolutional neural networks (CNN) and deep regression forest. Santra et al. [20] propose a deterministic dropout to remove unimportant connections in NN by RF. Proposing the oblique RF without explicit regularization techniques by minimizing the structural risk is the main goal of [21] . Katuwal et al. [22] use an oblique hyperplane to split the data for increasing the accuracy of the trees and reduce the depth of RF. Probst et al. [23] tune the hyper-parameters to achieve higher performance to improve the RF. Kim et al. [24] propose a method for interpreting and simplifying a black-box model of a deep RF by quantifying the feature contributions and frequency of the fully trained deep RF. Jain et al. [25] purpose dynamic weighing scheme for RF using the correlation between decision tree and data samples. In the global problem field, Stafoggia et al. [26] estimate daily particulate matter for weather forecasting by RF. Modeling the global forest area by RF is the main target of [27] . Breidenbach and Saravi [28] present research on land-subsidence spatial modeling and its assessment. Analyzing the net ecosystem carbon exchange is the goal of [29] . Prediction about the global climate problem using the index quantization ability of random forest and the optimizing ability of PSO in the NN prediction model is the main purpose of [30] . Li et al. [31] solve the class imbalance by detecting serial case pairs. Diagnosis detection and prediction of obesity in patients by RF are the main goals of [32, 33] , respectively. El-Sappagh et al. [34] use RF in the simple form for the detection of Alzheimer's disease progression. In [35] , RF is introduced as one useful machine learning tool for healthcare domain, especially for COVID-19 modeling. Khedkar et al. [36] use Patients Electronic Health Records for predicting the heart failure risks by RF. Hane et al. [37] propose a model for prediction of the dissolution behaviour of a wide variety of oxide glasses. Subudhi et al. [38] propose a method by RF to detect the ischemic stroke by a sequence of MRI images. Javadi et al. [39] propose a method to predict the immunogenic peptides of intracellular parasites. Identifying the key risk factors associated with acute rejection in organ transplantation is the main propose of [40] . In Singh et al. [41] , RF has been used as one of the classifiers to classify the covid-19 spread. Na et al. [42] propose an automatic walking mode change of the above-knee prosthesis. Clustering and predicting vital signs by RF is the goal of [43] . Zhu et al. [44] optimize the parameters of the random forest by improved fish Swarm algorithm for predicting the knee contact force. A method for identifying foreign particles for quality detection of liquid pharmaceutical products is presented by [45] . Lee and Jung [46] consider the relation between teacher attachment and student growth. 47 propose a practical method for SIF downscaling. Guanter et al. [48] present a method based on RF for predicting diabetes. Subasi et al. [49] propose a decision support system for the diagnosis of migraine by RF. Classification of the driver's stress level is the main goal of [50] . Ayata et al. [51] propose an emotion recognition algorithm from multimodal physiological signals by using the random forest as one of the machine learning methods for recognition. Zeraatpisheh et al. [52] use typical RF for producing the feature map in the industrial field. Du et al. [53] propose a rapid and accurate detection technique for pesticide detection by RF to Computational Intelligence and Neuroscience construct a quantitative detection model. Improving the performance of mapping for mineral is the main goal of reference [54] . Liu et al. [55] propose an adaptive electrical period partition algorithm for open-circuit fault detection. Software fault prediction by ensemble techniques is investigated by [56] . In [57] , the RF id is used to build a distributed energy system. A comprehensive image processing model is proposed by [58] . Ho et al. [59] uses RF to propose a framework that uses climate data to model hydropower generation. Zhou et al. [60] use RF for small and unbalanced datasets to create a risk prediction model for decisionmaking tool. Deng et al. [61] propose an authentication method for protecting high-value food products by RF. e forecast for agricultural products by RF is proposed by [62] . Jeong and Kim [63] use weighted random forest for the link prediction model. Khorshidpour et al. [64] present an approach to model an attack against classifiers with nondifferentiable decision boundary. Fusing multi-domain entropy and RF is the main goal of [65] for proposing a fault diagnosis method of the inter-shaft bearing. Analyzing the wine quality is presented by [66] . In the network field, Madhumathi and Suresh [67] develop a model to predict the future location of a dynamic sensor node in wireless communications. Fang et al. [68] propose an encrypted malicious traffic identification method. Detecting the intrusion in the network by typical RF is proposed by [69] , and intrusion detection in the network security by tuning the RF parameter of the Moth-Flame optimization algorithm is presented by [70] . In the physics field, Mingjing [71] measure and quantify the pH of soil by RF. 72 propose a model for extracting complex relationships between energy modulation and device efficiency. Zhang et al. [73] propose a model to accurately and effectively predict the UCS of LWSCC by a beetle antennae search algorithm for tuning the hyper-parameters of RF. e prediction of geotechnical parameters by typical RF is made by [74] . Creep index prediction by the RF algorithm to determine the optimal combination of variables is the main goal of [75] . In the text processing field, the comparison between RF and other classifiers is presented by [76] for finding the best classifiers in the subject literature of text classification. e random forest is used as one of the base learners of the ensemble model for fake news detection by [77] . Analyzing the reviewer's comment for sentiment analysis is the main goal of [78] . Zhang et al. [79] propose two novel label flipping attacks to evaluate the robustness of NB under noise by random forest. Recognizing newspaper text by RF is done by [80] . Madichetty and Sridevi [81] use RF as one of the classifiers for detecting the damage assessment tweets. Madasu and Elango [82] use the typical RF for feature selection for sentiment analysis. Chang et al. [83] use online customer reviews for opinion mining by RF. Text classification by simple RF is the goal of [84] . Onan and Toçouglu [85] present a method for document clustering and topic modeling on massive open online courses. Sentiment analysis of technical words in English by the Gini index for feature selection is done by [86] . Beck [87] uses ensemble learning and deep learning for sentiment classification scheme with high predictive performance in massive open online courses' reviews. Onan [88] present a deep learning based approach to sentiment analysis. is approach uses TF-IDF weighted Glove word embedding with CNN LSTM architecture. Onan and Tocoglu [89] present an effective sarcasm identification framework on social media data by pursuing the paradigms of neural language models and deep neural networks. In the tourism field, Rodriguez-Pardo et al. [90] propose a method based on simple RF for predicting the behaviour of tourists. Predicting the travel time to reduce traffic congestion is the main goal of [91] . Jamatia et al. 92 propose a method for tourist destinations' prediction. In urban planning, Baumeister et al.93 rank the urban forest characteristics for cultural ecosystem services supply by typical RF. Forecasting road traffic conditions in done by [94] . e simulation of urban space development by RF is presented by [95] . Investigating the information on a gross domestic product for the analysis of economic development is presented by [96] . Mei et al. [97] propose a method to identify the spatiotemporal commuting patterns of the transportation system. In this brief review, the mentioned references are categorized in terms of innovation and functionality. As can be seen from Table 1 , RF has a high range of applications and variations in scope. In contrast, both in Take a bootstrap sample D of size N from D. Using the bootstrap sample, D j as the training data fit a tree. (a) Start with all observations in a single node. (b) Repeat the following steps recursively for each node until the stopping criterion is met: (i) Select m predictors at random from the p available predictors. Find the best binary split among all binary splits in the predictors from step (i). Split the node into two descendant nodes using the split from step (ii). To make a prediction at a new point x. f(x) � argmax y terms of quantity and quality, their innovations are often limited to set various parameters, and there is no significant innovation in the base learner combinations. Learning Automata (LA) is one of the learning algorithms that, after selecting different actions at different times, identify the best practices in terms of responses received from a random environment. LA selects an action from the set of actions in the vector of probabilities, and this action is evaluated in the environment. By using the received signal from the environment, the LA updates the probability vector and, by repeating this process, the optimal action is gradually identified. e classification problem can be formulated as a team of LA that operates collectively to optimize an objective function [102] . In Figure 1 , the interaction of the learning automata and the environment is shown. Finding the global optimum in the solution space is another advantage of using the LA. e LA can be formally represented by the quadruple in which is the set of actions (outputs) of the LA; in other words, the set of inputs of the environment. is the set of inputs of the LA; in other words, the set of outputs of the environment. is the probability vector of the LA actions and is the learning algorithm. In LA, three different models can be defined in the environment. In the P-Model, the environment presents the values of 0 or 1 as the output. In the Q-Model, the output values of the environment are discrete numbers between 0 and 1. In the S-Model, the output of the environment is the continuous value between 0 and 1. e selected actions by the LA are updated by both the signal received from the environment and using reward and penalty functions. e amount of allocated reward and penalty to the LA action can be defined in four ways: LRP, where the number of rewards and penalties are considered the same; LRεP in which the amount of penalty is several times smaller than the reward; LRI in which the penalty amount is considered 0; and LIP, where the reward amount is considered 0 [103] . At each instant n, the action probability vector pi(n) is updated by the linear learning algorithm given in equation (13) if the chosen action ai(k) is rewarded by the environment, and it is updated according to equation (14) if the chosen action is penalized [104] . [11] , [12] , [13] Global problem [26] , [27] , [28] Healthcare [32] , [33] , [34] , [35] , [36] , [41] , [98] , [37] , [39] , [40] , [42] , [43] , [45] , [46] , [47] , [48] , [49] , [50] , [51] , Industrial [52] , [53] , [54] , [55] , [56] , [57] , [58] , [59] , [60] , [61] , [62] Network [63] , [67] , [68] , [69] , [99] , [100] Physics [71] , [72] Text processing [76] , [77] , [78] , 80 [81] , [82] , [83] , [84] Tourism [91] , [92] Urban planning [93] , [94] , [95] , [96] , [97] Innovative method Economics [14] , [15] General [16] , [17] , [18] , [19] , [101] , [21] , [22] , [23] , [24] , [25] Global problem [30] , [ Figure 1 : Interaction of learning automata with the environment. Computational Intelligence and Neuroscience , where "a" is the reward parameter, "b" is the penalty parameter, and "r" is the number of actions. e authors applied the LA in the proposed method, because: (i) e LA presents an acceptable performance in uncertain situations. (ii) e LA does search action in the probability space. (iii) e LA requires simple feedback from the environment to optimize its state. (iv) Since the LA has a simple structure, it has a simpler implementation in both software and hardware. (v) e LA is not constrained to use accuracy criteria for optimization usage. (vi) e LA is applicable in real-time usage since the LA is not involved with light computational complexity [105] . e random forest is one of the methods of ensemble learning that all constructor classifiers are same type (i.e., decision tree). erefore, the random forest is a homogeneous ensemble learning method. In this article, we intend to use the idea of reinforcement learning to increase the efficiency of random forest and add the ability to adapt to the conditions of the problem for this data mining algorithm. e details of the proposed method are described below. e method proposed in this paper is based on the idea of reinforcement learning, and it employs the learning automata to implement the idea. e learning automata is the core of the proposed method, and by receiving feedback from the environment for each action, it updates the probability selection of the actions. In the proposed method, each base learner, all of which are decision tree, are considered as learning automata actions. In the proposed method, the training data are first randomly divided into N sections. In this division, N corresponds to the number of trees we want to have in the forest. Unlike the random forest, in which the predictive model works by averaging or voting between trees, in the proposed method, the predictive model is created using learning automata, which forms the core of the algorithm. e block diagram of the proposed method is shown in Figure 2 . e preprocessing step in the proposed method is a general step, and based on what type of data the processing area is dealing with, the details of this phase are determined. In the proposed method, at first, similar to the random forest method, the training data are divided into the number of base learners and randomly injected into the base learners. e difference between this step and the similar step in the random forest is that all the features in the feature vector are given to all base learners, and the feature replacement option is removed. After the first run, the prediction models are created in the base learners and placed in a pool that is actually an interactive environment with the learning automata. e results obtained from the base learners for each new sample are given in the form of a reinforcement signal to the learning automata, which we know as the primary feedback of the environment. Depending on whether the received reinforcement signal is a reward or a penalty, the chances of selecting each of the base learners, -which they are the actions of the learning automata -are updated. It should be noted that the initial probability of selecting these actions is considered equal at the start. If we have R base learners to form the ensemble, the probability of the initial selection of each of them is equal to It is clear that the sum of the probabilities of all actions will be equal to 1. e initial probability of selecting actions is considered equal because all of them are homogeneous in terms of separating power. In the proposed method, integration of the base learners is performed by the LA. erefore, for each input in the test set, a linear LA is defined, and the action of each LA corresponds to selecting the base learners. e process of running base learners and receiving feedback from the environment continues until the probability of selecting actions converges to one of the base learners, or the number of repetitions for learning automata exceeds the predetermined limit. Once the probability of selections converges, then the result of the base learner, which has the highest probability of selection, is determined as the result of the ensemble for that particular input. In such a case, finding the global optimal is guaranteed by the algorithm, and because all the features in the feature vector are examined, rare modes are also covered, and the ability to adapt to the conditions of the problem space and independence from the domain is stabilized. In the proposed method, the random selection of subsets causes interdependence between trees. e depth of all the decision trees in the proposed method is considered equal. Each decision tree divides the training data differently at the leaf level. e pseudocode of the proposed method is shown in Algorithm 2. In the learning automata block in Figure 2 , there are two functions called the reward function and penalty function. Activation of one of these two functions is based on the type of reinforcement signal received from the environment. e received signal from the environment determines whether the result of the base learner activity or the selected action in the previous step was useful or not. If the result is useful, that 6 Computational Intelligence and Neuroscience (11) Create a dataset D t , by sampling (N/R) items, randomly with replacement from D (12) Train DT r using D t , and add to the pool (13) end//for (14) For each test sample (15) { (16) LA � new LA//Create an LA object from LA class (17) While ((LA convergences to an action) or (LA exceeds predefined iteration number)) (18) { (19) Select one of the actions at random and execute it, by the LA, Let it be α i (20) If (α i predicts the new test sample correctly) then//Update the probability of selection vector (21) p }//end while (25) }//end for (26) Return DT r (27) Classified test data � the prediction of DT r (28) End.//algorithm ALGORITHM 2: e pseudocode of the proposed method. Computational Intelligence and Neuroscience action must be rewarded or, in other words, increase the probability of its selection. e increase in the probability of the selected action is determined by the parameters "a" and "b," which are called the reward parameter and the penalty parameter, respectively. To comply with (16) , that is, the sum of the probabilities of all actions being equal to one, the probability of all other actions is reduced according to the size of the parameter "a." If the result of the selected action is not useful, that action must also be penalized. In other words, the probability of that action must be reduced. To do this, the probability of selecting that action is reduced to the size of parameter "b," and as a rewarding mode, and to observe (16) , the probability of selecting other actions is increased by the size of the parameter "b." In the proposed method, the learning automata model environment is assumed to be the P-Model, where the environment defines zero and one values as outputs. Zero means reward, and one means penalty. If the correct answer is received from the selected base learner by the LA, the action of choice will be rewarded; otherwise, it will be penalized. In order to thoroughly evaluate the efficiency of the proposed method, in this section, the details of the evaluation of the proposed method are presented separately from the data used and the experimental results. In order to evaluate the proposed method and to create an environment with the dynamic behaviour of data, different domains of applications have been selected. As mentioned in the previous sections, dynamic behaviour refers to the different results that an instance exhibits in different environmental conditions. Variety in the results of different environments is created by a specific domain. Text data are one of the most well-known types of data that exhibit such dynamic behaviour. In other words, these types of data are one of the optimal options for creating a dynamic environment, which proves the adaptability of the proposed method. e details of the selected data for the evaluation phase are shown in Table 2 . In order to evaluate the proposed method, eighteen datasets in different domains introduced in the previous section have been used. In the literature on learning automata, different modes have been considered for tuning learning automata; in this paper, three modes have been used to evaluate the proposed method. e LIP mode is not considered due to poor results. e evaluation results of each of the LRI, LRεP, and LRP modes are shown in separate figures. In order to determine the optimal value for the reward and penalty parameters, six text datasets have been selected. e reason for this choice is the high diversity in the behaviour of textual data as well as a large number of samples and a large number of features of these six datasets. In the LRI mode, the value of the penalty parameter is considered to be zero, and the results of the proposed method in this mode are shown in Figure 3 . Based on the literature on learning automata in the LRεP mode, the value of the penalty parameter is considered to be much smaller than the value of the reward parameter. e results of the proposed method are shown in the LRεP mode in Figure 4 . As mentioned in the learning automata section, in the LRP mode, the values of the penalty and reward parameters are considered equal. e results of the proposed method in this mode are also shown in Figure 5 . A comparison of the results obtained from the implementation of the proposed method in three adjustable modes for learning automata shows that the settings on the LRP mode have resulted in the highest accuracy for identification. en there are LRεP and LRI modes. In the LRεP mode, the setting a � 0.01, b � 0.01 is not considered, because these values are equal to the first values set in the LRP mode, and in order to prevent duplication of results in different tables, these settings have been removed from the LRεP mode. For this reason, the number of experiments performed on LRεP mode evaluations is one less than the other two. Considering that the settings of reward and penalty parameters in the LRP mode with the values of a � 0.5, b � 0.5 have resulted in the highest efficiency, evaluation has been done on other datasets with these settings. A comparison of the proposed method and similar approaches in the subject literature is shown in Table 3 . As can be seen in Table 3 from the point of view of accuracy, the proposed method offers better performance than the methods available in the subject literature, which indicates an improvement in the aggregation model of the base learners. is improvement is due to the use of reinforcement learning ideas of the method of aggregation of basic classifiers, which is known as base learner. e use of reinforcement learning ideas has improved the ability of the created ensemble, and it improved the ability to address issues in which data exhibit dynamic behaviour. e results of experiments performed on different data confirm the capabilities added to the random forest by the proposed method. As mentioned earlier, in the field of opinion mining, the type of text data is the most obvious data that exhibit such dynamic behaviour. erefore, the optimal values for the reward and penalty parameters have been determined in these types of data, and these settings have been used for other types of data. In addition to the accuracy criterion, other statistical criteria have been examined to evaluate the proposed method. As can be seen in Table 4 , the proposed method has shown better results in both positive and negative classes than the methods available in the literature. Among the statistical criteria, Precision (P) determines the exactness of the results obtained from the classifier, and Recall (R) determines the completeness of the results obtained from the classifier. e results obtained from the test in the mentioned statistical criteria show that the proposed method has a high performance. 8 Computational Intelligence and Neuroscience In this section, more details of the proposed method are explained along with the reasons for the need to address these details. ese include the details of the preprocessing step, tuning the learning automata parameters, as well as ranking the set of these parameters based on their performance. As explained in the proposed method section, the preprocessing step is a general step. In order for Stanford-Sentiment 140 corpus [106] Bag of word 1600000 Large dataset of movie reviews [107] Bag of word 50000 Sentence polarity dataset v1.0 [108] Bag of word 10662 Internet movie database [105] Bag of word 1400 Yelp review [105] Bag of word 598000 Amazon review [105] Bag of word 1000000 Healthcare Heart disease dataset [105] 13 200 Breast cancer dataset [105] 30 569 Arrhythmia dataset [105] 279 454 Parkinson dataset [105] 45 241 Caesarean section dataset [105] 5 81 Gene expression dataset [105] 255 801 Diabetes dataset [105] 7 765 Statlog (heart) dataset [105] 13 271 Ionosphere dataset [105] 34 352 Sonar, mines vs. rocks dataset [105] 60 208 Voice dataset [105] 20 3168 Emotions from music dataset [105] 28 592 Computational Intelligence and Neuroscience the evaluation, different data from different domains were examined. e preprocessing of textual data, along with the relevant details, is described below. It should be noted that preprocessing for other types of data, such as feature extraction, feature selection, normalization, noise removal, and other related preprocessing, has not been performed because all of them are taken as clean data from the UCI Repository [109] . And their basis for accuracy is based on previous research works that have used these data. In order to prepare textual data for the main process, the opinion mining domain is selected and the related preprocessing is as follows. e details of the preprocessing step for text data in opinion mining are shown in Figure 6 . Lemmatization. It returns the base or dictionary form of a word, which is known as the lemma. It is very similar to stemming, but it is more akin to synonym replacement. BoW creation. e bag of word creation is the latest preprocess that is performed on the text preparation. In the subject literature of the learning automata, three different modes have been defined to tune the parameters of reward and penalty. In the proposed method, in which the idea of reinforcement learning is implemented using learning automata, all three adjustable modes of the parameters of reward and penalty are examined. e results of these three modes were presented in the experimental result section. In this paper, Friedman test statistical verification is used to determine which mode and which settings are best adjustable for the reward and penalty parameters. e values set for parameters "a" and "b" are shown in Table 5 . Determining the numerical value of these parameters is based on the subject literature of learning automata. Of course, a wide variety of values can be considered for these two parameters. In this paper, an attempt has been made to tune the parameters in such a way that all the modes are considered so that they can be used to prove the efficiency of the proposed method compared to the previous methods. Friedman test statistical verification [110] is a ranking method that, the difference between the ranks assigned to each of the input samples, determines the optimal level of each option. In this paper, this verification method has been used to determine the optimal value of reward and penalty parameters as well as to compare the proposed method with the conventional methods in the subject literature of ensemble learning. e results are shown in Table 6 . As can be seen in Table 6 , there is a significant difference between the rankings of the proposed method and the rankings of the traditional methods, which indicate an improvement in the efficiency of the proposed method compared to other methods. Among the three modes considered for tuning reward and penalty parameters, it is observed that the rankings have increased in LRI, LReP, and LRP modes, respectively. In the LRP mode, where the values of the reward and penalty parameters are considered the same, the highest efficiency is also observed. ere is a significant difference between the Mean Rank of the best set of the reward and penalty parameters in the proposed method and this rank in the random forest method. e difference between the ranks is proof that the proposed method is optimal versus the traditional methods of Computational Intelligence and Neuroscience aggregating classifiers to achieve a strong classification method. To more accurately address the proposed method in terms of efficiency, LA convergence has been investigated. Figure 7 shows the convergence of LA actions for different amounts of reward and penalty variables. In most of the different settings for these two parameters, the convergence rate is high, and convergence to one of the actions usually occurs before reaching a certain number of iterations. As shown in Table 5 , convergence at a lower rate occurred in some of the other settings that scored lower on the Friedman test. 6.5. Noise Resistance. In order to more accurately evaluate the proposed method and determine the resistance of the proposed method to noise, another evaluation has been performed on the data presented in the previous section. is evaluation was performed by injecting 20% noise into clean data. e results of the evaluation on noisy data show that the proposed method, due to the use of learning automata, has high adaptability to the problem conditions, and in the presence of noise, contrary to conventional methods in the literature, the proposed method does not suffer a sharp decline, and in such conditions, it shows high efficiency compared to traditional methods. e evaluation of the proposed method in the presence of noise is shown in Figure 8 . Base learner aggregation in ensemble learning should be done in such a way that the following points are met. First point: selecting a base learner leads to the highest performance achievable in the current situation. Second point: if the situation changes due to the dynamics of the problem, the structure of the ensemble will change in such a way that it has the greatest amount of compatibility with the conditions of the new environment. erefore, in order to meet the above points and achieve an ensemble that is able to adapt to the dynamic conditions of the problem, in this paper, a new method based on the idea of reinforcement learning is proposed to integrate the base learners in the random forest. In the proposed method, learning automata is used to receive feedback from the environment and perform actions on it. e general procedure is to receive feedback from the environment, where the environment is a set of base learners that we intend to combine to achieve a better performance than individual base learners. Learning automata actions include choosing one of the base learners as the best base learner. e choice of action is based on receiving feedback from the environment. is causes the dynamic behaviour of data to be covered by using the idea of reinforcement learning. On the other hand, given that at each stage, learning automata strives to achieve the highest amount of achievable rewards, it is guaranteed to find the global optima in the problem space. Adaptability is another advantage of the proposed method compared to similar methods in the subject literature. Due to the fact that in each step learning automata operates based on environmental conditions and received feedback from the environment, the ability to adapt to the problem is met. e results of the evaluations performed in different data show that the proposed method has the ability to achieve all the desired items mentioned above. Despite the fact that, unlike the random forest mechanism, all features are injected into all base learners in the proposed method, the efficiency of the proposed method in dealing with largevolume data has not decreased, and the results are more favorable than the classical methods. e proposed method is independent of the data type and has the ability to handle any other type of data in any field. In order to substantiate this claim, and in order to evaluate the proposed method, different types of data have been chosen. However, there are no restrictions on the proposed method for dealing with different types of data. In this paper, a new method for aggregating the base learners of the random forest using learning automata is proposed. Determining the optimal value for the parameters of reward and penalty in the form of self-tuning is one of the future works that the authors intend to do. Data Availability e authors declare that all the data are available publicly at the UCI repository. Ensemble Machine Learning: Methods and Applications Multi-step forecasting for big data time series based on ensemble learning A new ensemble learning method based on learning automata Opinion mining using ensemble text hidden Markov models for text classification A cost-sensitive three-way combination technique for ensemble learning in sentiment classification Bootstrap Aggregating and Random Forest Performance of random forest machine learning algorithms in binary supernovae classification Forest signal detection for photon counting LiDAR using Random Forest Predicting RNA molecular specific hybridization via random forest Random forest age estimation model based on length of left hand bone for Asian population A two-stage industrial load forecasting scheme for dayahead combined cooling, heating and power scheduling A deep forest method for classifying e-commerce products by using title information Modelling loss given default in peer-to-peer lending using random forests e Effects Of Targeting Predictors In A Random Forest Regression Model Price Dynamics on Amazon Marketplace: A Multivariate Random Forest Variable Selection Approach Pruning Random Forest with Orthogonal Matching Trees BiMM forest: a random forest method for modeling clustered and longitudinal binary outcomes Optimization of the random forest algorithm A hybrid model of convolutional neural networks and deep regression forests for crowd counting Deterministic dropout for deep neural networks using composite random forest Oblique decision tree ensemble via twin bounded SVM Heterogeneous oblique random forest Hyperparameters and tuning strategies for random forest Interpretation and simplification of deep forest Exponentially weighted random forest A random forest approach to estimate daily particulate matter, nitrogen dioxide, and ozone at fine spatial resolution in Sweden Modelling above-ground biomass stock over Norway using national forest inventory data with ArcticDEM and Sentinel-2 data Land-subsidence spatial modeling using the random forest data-mining technique Prediction and analysis of net ecosystem carbon exchange based on gradient boosting regression and random forest Forecasting CO2 emissions in Chinas commercial department, through BP neural network based on random forest and PSO A novel random forest approach for imbalance problem in crime linkage Big data analysis and classification of biomedical signal using random forest algorithm Data mining in healthcare and predicting obesity Alzheimer's disease progression detection model based on an early fusion of cost-effective multimodal data A review of mathematical modeling, artificial intelligence and datasets used in the study, prediction and management of COVID-19 Deep Learning and Explainable AI in Healthcare Using EHR Machine learning as a tool to design glasses with controlled dissolution for healthcare applications Automated segmentation and classification of brain stroke using expectationmaximization and random forest classifier Computational modeling and analysis to predict intracellular parasite epitope characteristics using random forest technique Decision tree and random forest models for outcome prediction in antibody incompatible kidney transplantation Kalman filter based short term prediction model for COVID-19 spread A study on random forest-based estimation model for changing the automatic walking mode of above knee prosthesis Prospects of machine and deep learning in analysis of vital signs for the improvement of healthcare services Random Forest enhancement using improved Artificial Fish Swarm for the medial knee contact force prediction Deep multi-model cascade method based on CNN and random forest for pharmaceutical particle detection An Analysis of Annual Changes on the Determining Factors for Teacher Attachment with Random Forest Downscaling of solar-induced chlorophyll fluorescence from canopy level to photosystem level using a random forest model Performance evaluation of random forest with feature selection methods in prediction of diabetes Effect of photic stimulation for migraine detection using random forest and discrete wavelet transform Random forest-based approach for physiological functional variable selection for driver's stress level classification Emotion recognition from multimodal physiological signals for emotion aware healthcare systems Assessing the effects of deforestation and intensive agriculture on the soil quality through digital soil mapping Determination of chlorpyrifos in pears by Raman spectroscopy with random forest regression analysis Mapping mineral prospectivity via semi-supervised random forest NPC three-level inverter open-circuit fault diagnosis based on adaptive electrical period partition and random forest An empirical study of ensemble techniques for software fault prediction Nonlinear autoregressive and random forest approaches to forecasting electricity load for utility energy management systems Automatic recognition of SEM microstructure and phases of steel using LBP and random decision forest operator Reconstruction of multidecadal country-aggregated hydro power generation in Europe based on a random forest model Intelligent approach based on random forest for safety risk prediction of deep foundation pit in subway stations Predictive geographical authentication of green tea with protected designation of origin using a random forest model Probabilistic forecasting of crop yields via quantile random forest and Epanechnikov Kernel function Utilizing adjacency of colleagues and type correlations for enhanced link prediction Evaluation of random forest classifier in security domain Multidomain entropy-random forest method for the fusion diagnosis of inter-shaft bearing faults with acoustic emission signals Wine Quality Analysis Using Machine Learning Node Localization in Wireless Sensor Networks Using Multi-Output Random Forest Regression Against malicious SSL/TLS encryption: identify malicious traffic based on random forest Network intrusion detection system using random forest and decision tree machine learning techniques An efficient intrusion detection approach using enhanced random forest and moth-flame optimization technique A novel strategy for quantitative analysis of soil pH via laser-induced breakdown spectroscopy coupled with random forest Robust random forest based non-fullerene organic solar cells efficiency prediction Modelling uniaxial compressive strength of lightweight self-compacting concrete using random forest regression Prediction of undrained shear strength using extreme gradient boosting and random forest based on Bayesian optimization A novel hybrid surrogate intelligent model for creep index prediction based on particle swarm optimization and random forest A comparative analysis of logistic regression, random Forest and KNN models for the text classification An ensemble machine learning approach through effective feature extraction to classify fake news Sentiment analysis of a product based on user reviews using random forests algorithm Label flipping attacks against Naive Bayes on spam filtering systems Newspaper text recognition of Gurumukhi script using random forest classifier A novel method for identifying the damage assessment tweets during disaster Efficient feature selection techniques for sentiment analysis Web mining customer perceptions to define product positions and design preferences Random forest-based sarcastic tweet classification using multiple feature collection Weighted word embeddings and clustering-based identification of question topics in MOOC discussion forum posts RF-MEP: a novel Random Forest method for merging gridded precipitation products and ground-based measurements Sentiment analysis on massive open online course evaluations: a text mining and deep learning approach Sentiment analysis on product reviews based on weighted word embeddings and deep neural networks A term weighted neural language model and stacked bidirectional LSTM based framework for sarcasm identification Machine Learning for Smart Tourism and Retail Road travel time prediction method based on random forest model Rating prediction of tourist destinations based on supervised machine learning algorithms Exploring cultural ecosystem service hotspots: linking multiple urban forest features with public participation mapping data Forecasting road traffic conditions using a context-based random forest 18 Computational Intelligence and Neuroscience algorithm Multi-scenario simulation of urban land change in Shanghai by random forest and CA-Markov model GDP spatialization in Ningbo City based on NPP/VIIRS night-time light and auxiliary data using random forest regression Identifying commuters based on random forest of smartcard data A progressive random forestbased random walk approach for interactive semi-automated pulmonary lobes segmentation An empirical study to estimate the stability of random forest classifier on the hybrid features recommended by filter based feature selection technique Random forest for big data classification in the internet of things using optimal features Flat random forest: a new ensemble learning method towards better training efficiency and adaptive model size to deep forest Distributed learning automatabased scheme for classification using novel pursuit scheme Learning Automata: An Introduction, Courier Corporation Recent Advances In Learning Automata Reinforcement Learning: An Introduction Seeing stars: exploiting class relationships for sentiment categorization with respect to rating scales Learning word vectors for sentiment analysis umbs up? sentiment classification using machine learning techniques Extended and updated tables for the Friedman rank test e authors declare that there are no conflicts of interest regarding the publication of this paper.