# Modeling the Interaction Networks about the Climate Change on Twitter: A Characterization of its Network Structure

Authors: Mary Luz Mouronte-López; Marta Subirán
Journal: Complexity
 (2022)

---

## Abstract

This work studies the interaction networks (replying, retweeting, and quoting) that arise on Twitter in relation to such a relevant topic as climate change. We detected that the largest connected component of these networks presents low values of average degree and betweenness, as well as a small diameter compared to the total number of nodes in the network. The largest connected component of retweeting and quoting networks also exhibits very low negative assortativity. The quoting and retweeting networks have a more hierarchical structure than the replying network. We also find that the process of emergence of new links in the interaction networks can be properly modeled (with high accuracy) through a Support Vector Machine model using the embeddings provided by the Node2Vec algorithm. A Random Forest model using certain similarity measures as explanatory variables between nodes also provides high accuracy. In addition, we analyze the communities existing in each interaction network by means of the Louvain method. The cumulative probability distributions of hashtags per community are also examined.


---

## Body

## 1. Introduction

Many real systems can be characterized as graphs, where nodes symbolize objects and links represent the relations between them. The social networks, which consist of individuals and their relations and whose analysis has drawn interest from several fields, can be studied as graphs [1].Some investigations propose methods of classifying interactions on social networks according to emotions or frameworks for categorizing or comparing approaches that use social context [2–4]. Also, link prediction is a relevant matter, since it allows the identification of hidden links from the observable part of the interaction networks or the anticipation of future links from the current network topology. Pieces of research exist which carry out a comprehensive review, analyzing and discussing the state of the art of the link prediction on social networks [5]. Node-based metrics, topology-based metrics, and social-theory-based metrics are studied. Additionally, several growth models have been proposed in the literature [6, 7]. Barabási and Albert’s growth model [8] also named preferential attachment model which has been frequently utilized to generate scale-free networks and provided a foundation for understanding the mechanisms that give rise to certain properties in various real networks. There are also investigations that propose that the degree is not the only key factor in influencing the growth of scale-free networks, as also a “fitness” exists in each node which symbolizes its propensity to attract links [9, 10]. Research explains that social networks are at best weakly scale-free [11], exhibiting different characteristics. In [11], the authors describe that, considering the analyzed 251 social networks, half of them lack any direct (power law is itself a good model of the degrees) or indirect evidence (power-law distribution is not necessarily a good model of the degrees, but it is a relatively better model than alternatives) of scale-free structure (50% not scale-free), while indirect evidence is slightly less prevalent (41% superweak).This research aims to examine the interaction networks on Twitter which are concerned with climate change. In these networks, the nodes are Twitter users, and the links are the exchanges that exist between them. A total of 631,027 tweets were analyzed. The objectives of this investigation are to describe the structure and to characterize the link formation process in replying, retweeting, and quoting networks. Additionally, we aim to discover if within these networks there are communities of users with common interaction patterns. To our knowledge, this has not been done previously in relation to a matter such as climate change.


## 2. Materials and Methods

### 2.1. Overview of Used Resources

#### 2.1.1. T-Hoarder Tool

For downloading data from Twitter, the T-Hoarder tool [12] was utilized. It is a software program that is able to perform tweet crawling and data filtering and display summary information about Twitter activity on a specific topic. The tool provides two APIs (Application Programming Interfaces) to download data: the Rest API and the Streaming API. The first works in a synchronous way, with the restriction of searching for data from the previous week. The second makes it possible to carry out real-time data downloading.T-Hoarder tool is implemented in UNIX as an operating system and utilizes Python as its programming language. Using T-Hoarder, the following data can be collected for each Tweet: tweet ID, timestamp, author, text, app, author ID, followers’ author, following author, statuses author, location, URL, geolocation, name, bio, URL media, type media, and lang. A more detailed description of these fields can be found in the Supplementary Materials (availablehere) Document.A total of 839,968 tweets were downloaded from Twitter from March 2021 to May 2021.


#### 2.1.2. Software Programs

Several programs in Python [13] and R [14] were developed for the purpose of carrying out the following functionalities:(i)
Handling of the data, which was performed through R language, and pandas library in Python was used.(ii)
Network characterization and graph handling, which was performed by applying the Networkx package in Python [15] and the igraph package in R [16].(iii)
Modeling was carried out utilizing the scikit-learn and StellarGraph packages in Python. The caret, LiblineaR, and e1071 packages were also used in R. The estimation of similarities between nodes was done utilizing the link prediction package in R.(iv)
Communities using CDLIB [17].The Gephi platform was used to draw the interaction networks [18].


### 2.2. Overview of Used Methods

#### 2.2.1. Obtaining the Tweets

A total of 839,968 tweets were downloaded from Twitter utilizing the T-Hoarder tool from March to May 2021. The tweets include messages produced from Twitter users as well as their interactions (retweeting, replying, and quoting). It must be noted that only tweets in the English language are considered. For the purpose of deciding on the most appropriate keywords to filter out the tweets which are unrelated to climate change, a small group of individuals were gathered in order to perform the selection. In the cases where more than 15 keywords were proposed, they would be grouped utilizing an affinity diagram [19]. After that, the keywords would be filtered utilizing a multiple voting system. In the end, seven keywords were taken. These were global warming, greenhouse effect, climate change, climate crisis, climate disaster, climate emergency, and climate action. Both with and without spacing to consider hashtags, a total of 589,272 retweets, 94,084 replies, and 156,612 quotes were obtained. Additionally, a filtering system is executed to eliminate possible duplicates which could happen from how the data was acquired (Streaming and Rest APIs). After this, 631,027 tweets remained.


#### 2.2.2. Building the Interaction Network

We use graphs to study the interactions network on climate change on Twitter. In each tweet, node1 is the author’s ID and node2 is the user’s ID with whom this interacts. Because there are interactions with several users within the same tweet, as many links are generated as interactions exist. The types of interaction are replying, quoting, and retweeting. The generated graphs are undirected and unweighted. Based on each kind of interaction, three types of graphs are created.The main statistical network parameters are shown in Table1. These are the number of nodes and links, as well as the maximum and the mean degree. Information on the total connectivity of the network, and other data such as the number of nodes and links, as well as the size of the giant component is also included. Various characteristics of the GC are analyzed such as number of nodes and links, diameter (d), average path length (lp), average degree (<k>), betweenness centrality (<bc>), and assortativity coefficient (r). These metrics are defined as follows.(i)
The degree of a nodel, k(l), for an undirected graph, G, such as an interaction network on Twitter, is [20, 21](1)kl=∑i=1NAlj,whereAlj is the element lj of the adjacency matrix. Alj=1 if node l is connected to node j and 0 otherwise. N symbolizes the total number of nodes in the network.(ii)
The betweenness centrality of nodel in G, bcl, is [21, 22](2)bcl=∑u≠l≠w∈Gσu,wlσu,w,whereσu,w is the total number of shortest paths from node u to node w and σu,wl symbolizes the number of those paths that pass through l.(iii)
The degree assortativity [23] is defined as a Pearson correlation between the “expected degree” distribution qk and the “joint degree” distribution ej,k [23] in G. The first distribution represents the probability distribution of passing through the links of G and discovering nodes with degree k at the termination of the links. The second distribution symbolizes the probability distribution of a link having degree j on one termination and degree k on another termination.In the undirected case, the normalized Pearson coefficient ofej,k and qk provides the assortativity coefficient r of the network, which can be described as [23, 24](3)r=1σq2∑jk∈Gjkej,k−γq2.Hereγq and σq are the expected value or mean and standard deviation of qk. If a network is perfectly assortative (r  = 1), then its nodes join only with other nodes with analogous degree.(iv)
The average path length ofGlp is described as the average number of links that must be passed through the shortest path spl,j between any two pairs of nodes l and j. If it is considered that spl,j=0 when l=j; that is, if any path between l and j exists, then lp can be described as(4)lp=1N∗N−1∑l=1N∑j=1Nspl,j.(v)
The diameter ofG, d, symbolizes the length (in number of links) of the longest geodesic path between any two nodes [25].Table 1
Main structural properties of the interaction networks.
Type of interactionNumber of nodesNumber of linksMaximum degree<k >Completely connectedRetweeting294,209360,38737,8962.4NoReplying74,15246,5182751.3NoQuoting122,512121,88713,3872No


#### 2.2.3. Modeling the Interaction Network

(1) Overview of the Process. The process of link formation between pairs of nodes is modeled using two mechanisms:(i)
The first procedure uses the Node2Vec algorithm [26]. As is well known, Node2Vec is a semisupervised method for scalable feature learning in networks, which utilizes a custom graph-based objective function that uses the Stochastic Gradient Descendent method [27]. The algorithm provides a feature representation that maximizes the likelihood of preserving network neighborhoods of nodes in an s-dimensional feature space. A 2nd-order random walk approach is utilized to produce the network neighborhoods for each node [26].To generate a feature representation of links for two nodesu and v, the authors of the algorithm define a binary operator over the corresponding feature vectors fu and fv with the purpose of generating a representation gu,v such as g:V×V⟶Rs, where s is the space dimension for the pair u,v. The operators for any pair of nodes is established even if a link does not exist between them. All operators produce link embeddings that have equal dimensionality to the input node embeddings. Then, given any two nodes, named u and v, and their feature vectors, fu and fv, the operators are defined as follows:(i)
Hadamard:fu∗fv(ii)
l1:fu−fv(iii)
l2:|fu−fv2(iv)
Average:fu+fv/2(ii)
The second procedure uses certain similarity indexes. In this method, analogously to [28], we calculated local, quasi-local, and global similarity metrics between nodes. Specifically, the local measures were resource allocation [29], Leicht-Holme-Newman [30], common neighbors, cosine [31], cosine similarity on L+ [25], hub promoted [32], Jaccard [33], hub depressed [32], preferential attachment [8], and Sørensen [34]. The global similarity measures used were average commute time [25], Katz [35], L+ directly [25], matrix forest [36], and random walk with restart [37]. Finally, the following quasi-local measures of the similarity were utilized: graph distance and local path [29]. These indexes are explained in detail in the Supplementary Materials Document.As input variables, the model has either the characteristics that have been obtained for each link, through algorithm, or the similarity indexes between pairs of nodes. The output variable of the model is the mark of whether or not a link exists between a pair of nodes (its value is 1 or 0). Using supervised learning, from examples in which both the input and output variables are known, the model anticipates the value of the output for new inputs, corresponding to cases not utilized in the learning (training process).Cross validation is applied to generate the model. As an alternative of splitting the dataset into training and testing subsets, in the aforementioned mechanism,δ equal partitions of the dataset are carried out. The model is trained δ times: each time one of the partitions is chosen as a test set, and the model is trained with the remaining δ−1 folds. Each fold is utilized once as a test set. Hence, at the end, there are various predictions about the whole dataset. Because of the above, δ evaluations of any parameter PAR determining the efficiency of the model exist. This parameter can be average [28]:(5)PAR=1∂∑j=1∂PAR.In this investigation, we considerPAR, Accuracy, AUC, F1, and GMean. All these parameters are defined in Section 2.2.2.Finally, an independent evaluation of the previously indicated parameters is performed utilizing a validation set.As a dataset to which the cross-validation procedure was applied, we took an amount corresponding to 75% of the total links (t75). The same value for nonexistent links between unconnected pairs of randomly selected nodes was considered (t75). As a validation set, 25% of the total number of links (t25) was contemplated and an analogous value (t25) was taken for nonexistent links.(2) Obtaining Embeddings through Node2Vec. Node embeddings are calculated through Node2Vec in such manner that the nodes which are close in the graph remain close in the embedding space. It is a two-stage process which first involves running random walks on the graph to obtain context pairs and second uses these walks to train a Word2Vec model [26]. To compute the embeddings, we use the StellarGraph package in Python, and several parameters must be specified:(i)
p, which controls the probability in a walk of going back to the node from which one comes. Values in [0.1, 2] were taken in steps of size 0.1.(ii)
q, which manages the probability of exploring undiscovered parts of the graphs. It determines the dimensionality of Node2Vec embeddings, that is, the size of the feature vector. Values in [0.1, 2] were taken in steps of size 0.1.(iii)
num. walks, which defines the number of walks made from each node. Values in [0.1, 10] were chosen in steps of size 0.5.(iv)
walk length, which symbolizes the length of each random walk. Values in [19, 38] were chosen in steps of size 5.(v)
window size, which specifies the context window size for Word2Vec. Values in [39, 40] were selected in steps of size 1.(vi)
num iter, which represents the number of SGD iterations (epochs) to run. Values in [38, 41] were selected in steps of size 1.To optimize the hyperparameters, we calculate the closeness centrality (or nearness centrality) of all nodes inG. This parameter can be defined as(6)ηl=1fl,fl=∑j∈G−llplj.In the above formula,fl is named farness centrality. lplj symbolizes the number of links in the shortest path between nodes l and j.Considering the embeddings obtained for each nodel, according to each selected hyperparameter option, we calculate the metric ηel, which can be described as(7)ηel=1fel,fel=∑j∈G−ldelj.In the above formula, delj is the Euclidean distance between the vectors corresponding to l and j nodes. Finally, the correlation between η=ηl and ηe=ηel∇l∈G is obtained.The Pearson correlation [42] or the Spearman correlation [42] would be utilized, depending on whether η and ηe variables would exhibit a normal distribution or not. The normality of the distribution is checked utilizing the Anderson-Darling test [43] with a significance level α=0.05. The considered hypotheses are as follows:(i)
H0:  “the samples derived from a normal distribution.”(ii)
Ha: “the samples did not derive from a normal distribution.”Ifp−value≤α, H0 must be rejected and Ha is taken; otherwise H0 must be accepted.One combination of hyperparameters for which a correlation greater than 0.9 is obtained was selected. We usep = 1.0, q = 1.0, dimensions = 64, num. walks = 5, walk length = 50, window size = 10, and num iter = 1.It must be noted that if a new node is added to the network, the execution of Word2Vec is required on the whole graph to generate the new embeddings.(3) Obtaining Similarities between Nodes. As we have previously indicated, to calculate the similarity between nodes, the link prediction package in R is used. The similarity indexes are described in the Supplementary Material Document.


#### 2.2.4. Building the Model

Three models were tested: Random Forest (RF) [44], Logistic Regression (LR) [45], and Support Vector Machines (SVM) [46] model. Each model is optimized by 5-fold cross-validated grid search over a parameter grid in order to find the best parameters for each one.The link prediction package is only available in R language. As a result, we implement the model in R, if the similarity indexes are used as explanatory variables, whereas if the embeddings are obtained from Node2Vec, it is developed in Python language.In Python language, the applied hyperparameters for the RF model are as follows: number of trees in the forest (n_estimators) and minimum number of samples required to split an internal node (min_samples_split). In R, the utilized hyperparameters are as follows: number of trees in the forest (max_depth) and number of variables randomly sampled as candidates at each split (mtry) (minimal node size (min.node.size) is equal to 1). Minimal node size Gini is taken as splitting rule in both R and Python languages.For LR and SVM models, the hyperparameters are identical in R and Python languages. They are, for the LR model, the best inverse of regularization strength (Cs) and an L2 [47] penalty term (penalty). For the SVM model, the inverse of regularization strength (C) and Kernel coefficient (gamma) are utilized.(i)
RF model (Python): n_estimators: [100, 150, 300], max_depth: [3, 5, 10, None], and min_samples_split: [2, 5, 10](ii)
RF model R: num.trees: [100, 150, 300], mtry: [2, 5, 10], and max_depth: none(iii)
LR model (Python and R): Cs: [1, 5, 10, 20], penalty: [l1, l2] (caret package with ranger method, which we used to build the RF, does not allow us to specify limits formax_depth).(iv)
SVM model (Python and R): C:10−2,−1,0,12, gamma: 10−2,−1,0,12To measure the performance of the model, the following metrics are computed:(i)
Area under curve (AUC). Receiver Operating Characteristic curve (ROC) is a probability curve where each point symbolizes a true positive rate (TPR)/false positive rate (FPR) pair corresponding to a one decision threshold. TPR and FPR can be described as(8)TPR=TPTP+TN,FPR=FPTP+TN.In the above formula, TP, TN, FP, and FN symbolize the true positives, the true negatives, the false positives, and the false negatives, respectively.If ROC(t) is the function associated with the ROC curve, the area under curve (AUC) can be denoted as(9)AUC=∫01ROCtdt,The AUC allows us to estimate the performance of the classifier, establishing its ability to discriminate between classes; that is, 0 indicates that there is no link between a pair of nodes and 1 indicates that a link between a pair of nodes exists.(ii)
Accuracy, in binary classification, as the one we are dealing with, symbolizes the proportion of correct predictions (both true positives (TP) and true negatives (TN)) among the total number of cases examined. It is computed as follows [28]:(10)Accuracy=TP+TNTP+TN+FP+FN.(iii)
Sensitivity or Recall, which represents the ability of the classifier to correctly identify the positive samples (1: a link between a pair of nodes exists), can be defined as [28](11)Sensitivity=TPTP+FN.(iv)
Specificity or Selectivity, which symbolizes the ability of the classifier to identify a negative sample (there is any link between nodes), is defined as [28](12)Specificity=TNTN+FP.(v)
Precision is defined as(13)Precision=TPTP+FP.(vi)
F1 score can be interpreted as a weighted average of the precision, that is, the ability of the classifier not to label a sample as positive that is actually negative, and recall the ability of the classifier to find all the positive samples. This score is in the range [0-1] and it is defined as(14)F1=2∗Precision∗RecallPrecision+Recall.(viii)
Geometric mean measures the balance between classification performances in both the majority and minority classes. A low GMean indicates poor performance in the classification of the positive cases even if the negative cases are correctly classified. This score is defined as(15)GMean=Sensitivity∗Specificity.


#### 2.2.5. Community Analysis

According to [48], one of the more analyzed forms within large-scale networks is the modular structure. In this context, a community is a dense subnetwork, that is, a set of densely connected nodes within a larger network. These conglomerates can be revealed utilizing the information encoded in the network topology. To analyze the presence of communities in the replying, retweeting, and quoting interactions networks, various algorithms are evaluated.(1) Louvain Algorithm. This method consists of both modularity optimization and community aggregation phases. In the first stage, each node is initially allocated to a community. After that, the corresponding modularity is estimated by eliminating node l from its community and placing it in its neighbor j’s community. If a gain exists in the modularity, l is moved to this new community; otherwise, it remains in its original community. This mechanism is repeated for all nodes in the network [49].(16)ΔQ=∑in+kl,in2∗m−∑tot+kl2∗m2−∑in2∗m−∑tot2∗m2−kl2∗m2,where ∑in symbolizes the sum of all the weights of the links inside the community that l is moving into. ∑tot represents the sum of all the weights of the links to the nodes of the community to which i moves. kl is the weighted degree of l. kl,in is the sum of the weights of the links between l and other nodes in the community that l is moving into. m is the sum of the weights of all links in the network. If the network is unweighted, the weight of each of its links is 1.In a second stage, a new network is constructed in which the nodes are the communities obtained in the previous stage. The two stages are repeated until modularity cannot be increased further [49].(2) Leiden Algorithm. It is based on the Louvain method. This procedure introduces a refinement phase in addition to the modularity optimization and community aggregation phases, making it slightly more complex [50]. Analogously to the Louvain algorithm, this algorithm also begins by allocating each node to a community. After that, individual nodes are moved from one community to another to obtain a gain in modularity. The next step involves the refinement of the individual communities found in the previous step. This refined partition RP is obtained as follows.Initially, the refined partitionRP is set to a unique partition, in which each node is in its own community [50]. The algorithm then locally brings nodes together in RP: nodes that are on their own in a community in RP can be merged with a different community. It should be noted that mergers are performed only within each community of the partition obtained in the first stage. In addition, a node is joined to a community in RP only if both are sufficiently well joined to their community in the first stage [50].After the refinement step, the primary community might split into multiple subcommunities ensuring well-connected communities. After that, assembly of the community nodes is carried out based on the refined partitionRP. These steps are repeated until no more improvement can be made in terms of modularity [50].(3) Label Propagation Algorithm (LPA). It operates as follows: first, the network is initialized, so that each node is allocated a unique label. Then, every node selects a great number of neighbors, applying a label to itself. If more than one label is utilized by the same maximum number of neighbors, one of them is selected at random. After various repetitions, the identical label tends to be connected with all elements of a conglomerate [51]. LPA reaches convergence when each node has the majority label of its neighbors [52].(4) Surprise Algorithm. [39, 41, 53] The authors propose a different global performance measure which is named “Surprise” to evaluate the computation of conglomerates. They establish the community structure of a network computing the distributions of intra- and intercommunity links with a cumulative hypergeometric distribution [54]. The method assumes that a null model exists through which links between nodes emerge at random. The departure of the observed partition from the expected distribution of nodes and links into conglomerates is measured considering this null model. The following cumulative hypergeometric distribution is utilized [39]:(17)S=−log∑j=pMinM,nMj+F−Mn−jFn,where F is the maximum possible number of links in a network k2−k/2, with k being the number of nodes. n is the observed number of links, M is the maximum possible number of intracommunity links for a specific partition, and p is the total number of intracommunity links observed in that specific partition.This parameter makes it possible to estimate the exact probability of the distribution and nodes for the established communities in the network for a specific partition [53].The four aforementioned algorithms have been chosen because they have been shown to be effective in several forms of research [39, 50, 55, 56] and because, for the analyzed network, their execution is completed in a short time (less than 2 minutes), when run on a computer with the following characteristics:(i)
Processor: 11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20 GHz 2.11 GHz(ii)
RAM: 16.0 GBThree metrics are calculated to assess the performance of the community detection algorithms:(i)
Modularity [13], which evaluates the strength of divisions. A large modularity represents dense connection between nodes within communities and sparse connections between nodes located in different communities. Then the modularity Q of a partition is defined as [13](18)Q=12∗m∑lj∈GAlj−γkl∗kj2∗m∂cl,cj,wherem is the number of links, Alj is the lj element of the adjacency matrix of G, klkj are the degrees of nodes l and j, and   ∂cl,cj is a resolution parameter, which is equal to 1 if l and j are in the same community and 0 otherwise. γ is a resolution parameter. If it is lower than 1, Q inclines towards larger communities. If, on the contrary, its value is higher than 1, Q is in favor of smaller communities. A value equal to 1 is taken in this investigation.The value of modularity is in the range [−1/2, 1] for unweighted and undirected graphs [13, 58].(ii)
Performance [58].(19)PP=l,j∈E,Cl=Cj+l,j∉E,Cl≠Cjn∗n−1/2,wherel and j are nodes l and j, l,j∈E,Cl=Cj represents two nodes belonging to identical community and joined by a link, l,j∉E,Cl≠Cj represents two nodes belonging to different communities and not joined by a link, and Cl,Cj are the communities where nodes l and j are located. n is the number of nodes in G.(20)0≤PP≤1.(iii)
Coverage.It can be defined as the ratio of the number of intracommunity links by the total number of links [58].High values ofQ correspond with appropriate partitions. Consequently, the partition corresponding to its maximum value in G should be the best [58]. Therefore, to study the interaction networks, the partition provided by the method with a higher value of Q is selected but considering, at the same time, that the method allows us to obtain a good value for the performance and coverage metrics. All this is done with the smallest possible number of communities.


#### 2.2.6. Analysis of Probability Cumulative Distributions of Hashtags

We also analyze the cumulative probability distributions of hashtags for all types of interactions, globally and by community. The Kolmogorov-Smirnov test [38] with a significance level equal to 0.05 is utilized for the comparison of the distributions. The following hypotheses are considered:(i)
Null hypothesisH0: “the samples derive from the identical distribution.”(ii)
Alternative hypothesisHa: “the samples derive from different distribution.”Ifp value < 0.05 is obtained in the test, the null hypothesis must be rejected; otherwise, it must be taken.


## 2.1. Overview of Used Resources

### 2.1.1. T-Hoarder Tool

For downloading data from Twitter, the T-Hoarder tool [12] was utilized. It is a software program that is able to perform tweet crawling and data filtering and display summary information about Twitter activity on a specific topic. The tool provides two APIs (Application Programming Interfaces) to download data: the Rest API and the Streaming API. The first works in a synchronous way, with the restriction of searching for data from the previous week. The second makes it possible to carry out real-time data downloading.T-Hoarder tool is implemented in UNIX as an operating system and utilizes Python as its programming language. Using T-Hoarder, the following data can be collected for each Tweet: tweet ID, timestamp, author, text, app, author ID, followers’ author, following author, statuses author, location, URL, geolocation, name, bio, URL media, type media, and lang. A more detailed description of these fields can be found in the Supplementary Materials (availablehere) Document.A total of 839,968 tweets were downloaded from Twitter from March 2021 to May 2021.


### 2.1.2. Software Programs

Several programs in Python [13] and R [14] were developed for the purpose of carrying out the following functionalities:(i)
Handling of the data, which was performed through R language, and pandas library in Python was used.(ii)
Network characterization and graph handling, which was performed by applying the Networkx package in Python [15] and the igraph package in R [16].(iii)
Modeling was carried out utilizing the scikit-learn and StellarGraph packages in Python. The caret, LiblineaR, and e1071 packages were also used in R. The estimation of similarities between nodes was done utilizing the link prediction package in R.(iv)
Communities using CDLIB [17].The Gephi platform was used to draw the interaction networks [18].


## 2.1.1. T-Hoarder Tool

For downloading data from Twitter, the T-Hoarder tool [12] was utilized. It is a software program that is able to perform tweet crawling and data filtering and display summary information about Twitter activity on a specific topic. The tool provides two APIs (Application Programming Interfaces) to download data: the Rest API and the Streaming API. The first works in a synchronous way, with the restriction of searching for data from the previous week. The second makes it possible to carry out real-time data downloading.T-Hoarder tool is implemented in UNIX as an operating system and utilizes Python as its programming language. Using T-Hoarder, the following data can be collected for each Tweet: tweet ID, timestamp, author, text, app, author ID, followers’ author, following author, statuses author, location, URL, geolocation, name, bio, URL media, type media, and lang. A more detailed description of these fields can be found in the Supplementary Materials (availablehere) Document.A total of 839,968 tweets were downloaded from Twitter from March 2021 to May 2021.


## 2.1.2. Software Programs

Several programs in Python [13] and R [14] were developed for the purpose of carrying out the following functionalities:(i)
Handling of the data, which was performed through R language, and pandas library in Python was used.(ii)
Network characterization and graph handling, which was performed by applying the Networkx package in Python [15] and the igraph package in R [16].(iii)
Modeling was carried out utilizing the scikit-learn and StellarGraph packages in Python. The caret, LiblineaR, and e1071 packages were also used in R. The estimation of similarities between nodes was done utilizing the link prediction package in R.(iv)
Communities using CDLIB [17].The Gephi platform was used to draw the interaction networks [18].


## 2.2. Overview of Used Methods

### 2.2.1. Obtaining the Tweets

A total of 839,968 tweets were downloaded from Twitter utilizing the T-Hoarder tool from March to May 2021. The tweets include messages produced from Twitter users as well as their interactions (retweeting, replying, and quoting). It must be noted that only tweets in the English language are considered. For the purpose of deciding on the most appropriate keywords to filter out the tweets which are unrelated to climate change, a small group of individuals were gathered in order to perform the selection. In the cases where more than 15 keywords were proposed, they would be grouped utilizing an affinity diagram [19]. After that, the keywords would be filtered utilizing a multiple voting system. In the end, seven keywords were taken. These were global warming, greenhouse effect, climate change, climate crisis, climate disaster, climate emergency, and climate action. Both with and without spacing to consider hashtags, a total of 589,272 retweets, 94,084 replies, and 156,612 quotes were obtained. Additionally, a filtering system is executed to eliminate possible duplicates which could happen from how the data was acquired (Streaming and Rest APIs). After this, 631,027 tweets remained.


### 2.2.2. Building the Interaction Network

We use graphs to study the interactions network on climate change on Twitter. In each tweet, node1 is the author’s ID and node2 is the user’s ID with whom this interacts. Because there are interactions with several users within the same tweet, as many links are generated as interactions exist. The types of interaction are replying, quoting, and retweeting. The generated graphs are undirected and unweighted. Based on each kind of interaction, three types of graphs are created.The main statistical network parameters are shown in Table1. These are the number of nodes and links, as well as the maximum and the mean degree. Information on the total connectivity of the network, and other data such as the number of nodes and links, as well as the size of the giant component is also included. Various characteristics of the GC are analyzed such as number of nodes and links, diameter (d), average path length (lp), average degree (<k>), betweenness centrality (<bc>), and assortativity coefficient (r). These metrics are defined as follows.(i)
The degree of a nodel, k(l), for an undirected graph, G, such as an interaction network on Twitter, is [20, 21](1)kl=∑i=1NAlj,whereAlj is the element lj of the adjacency matrix. Alj=1 if node l is connected to node j and 0 otherwise. N symbolizes the total number of nodes in the network.(ii)
The betweenness centrality of nodel in G, bcl, is [21, 22](2)bcl=∑u≠l≠w∈Gσu,wlσu,w,whereσu,w is the total number of shortest paths from node u to node w and σu,wl symbolizes the number of those paths that pass through l.(iii)
The degree assortativity [23] is defined as a Pearson correlation between the “expected degree” distribution qk and the “joint degree” distribution ej,k [23] in G. The first distribution represents the probability distribution of passing through the links of G and discovering nodes with degree k at the termination of the links. The second distribution symbolizes the probability distribution of a link having degree j on one termination and degree k on another termination.In the undirected case, the normalized Pearson coefficient ofej,k and qk provides the assortativity coefficient r of the network, which can be described as [23, 24](3)r=1σq2∑jk∈Gjkej,k−γq2.Hereγq and σq are the expected value or mean and standard deviation of qk. If a network is perfectly assortative (r  = 1), then its nodes join only with other nodes with analogous degree.(iv)
The average path length ofGlp is described as the average number of links that must be passed through the shortest path spl,j between any two pairs of nodes l and j. If it is considered that spl,j=0 when l=j; that is, if any path between l and j exists, then lp can be described as(4)lp=1N∗N−1∑l=1N∑j=1Nspl,j.(v)
The diameter ofG, d, symbolizes the length (in number of links) of the longest geodesic path between any two nodes [25].Table 1
Main structural properties of the interaction networks.
Type of interactionNumber of nodesNumber of linksMaximum degree<k >Completely connectedRetweeting294,209360,38737,8962.4NoReplying74,15246,5182751.3NoQuoting122,512121,88713,3872No


### 2.2.3. Modeling the Interaction Network

(1) Overview of the Process. The process of link formation between pairs of nodes is modeled using two mechanisms:(i)
The first procedure uses the Node2Vec algorithm [26]. As is well known, Node2Vec is a semisupervised method for scalable feature learning in networks, which utilizes a custom graph-based objective function that uses the Stochastic Gradient Descendent method [27]. The algorithm provides a feature representation that maximizes the likelihood of preserving network neighborhoods of nodes in an s-dimensional feature space. A 2nd-order random walk approach is utilized to produce the network neighborhoods for each node [26].To generate a feature representation of links for two nodesu and v, the authors of the algorithm define a binary operator over the corresponding feature vectors fu and fv with the purpose of generating a representation gu,v such as g:V×V⟶Rs, where s is the space dimension for the pair u,v. The operators for any pair of nodes is established even if a link does not exist between them. All operators produce link embeddings that have equal dimensionality to the input node embeddings. Then, given any two nodes, named u and v, and their feature vectors, fu and fv, the operators are defined as follows:(i)
Hadamard:fu∗fv(ii)
l1:fu−fv(iii)
l2:|fu−fv2(iv)
Average:fu+fv/2(ii)
The second procedure uses certain similarity indexes. In this method, analogously to [28], we calculated local, quasi-local, and global similarity metrics between nodes. Specifically, the local measures were resource allocation [29], Leicht-Holme-Newman [30], common neighbors, cosine [31], cosine similarity on L+ [25], hub promoted [32], Jaccard [33], hub depressed [32], preferential attachment [8], and Sørensen [34]. The global similarity measures used were average commute time [25], Katz [35], L+ directly [25], matrix forest [36], and random walk with restart [37]. Finally, the following quasi-local measures of the similarity were utilized: graph distance and local path [29]. These indexes are explained in detail in the Supplementary Materials Document.As input variables, the model has either the characteristics that have been obtained for each link, through algorithm, or the similarity indexes between pairs of nodes. The output variable of the model is the mark of whether or not a link exists between a pair of nodes (its value is 1 or 0). Using supervised learning, from examples in which both the input and output variables are known, the model anticipates the value of the output for new inputs, corresponding to cases not utilized in the learning (training process).Cross validation is applied to generate the model. As an alternative of splitting the dataset into training and testing subsets, in the aforementioned mechanism,δ equal partitions of the dataset are carried out. The model is trained δ times: each time one of the partitions is chosen as a test set, and the model is trained with the remaining δ−1 folds. Each fold is utilized once as a test set. Hence, at the end, there are various predictions about the whole dataset. Because of the above, δ evaluations of any parameter PAR determining the efficiency of the model exist. This parameter can be average [28]:(5)PAR=1∂∑j=1∂PAR.In this investigation, we considerPAR, Accuracy, AUC, F1, and GMean. All these parameters are defined in Section 2.2.2.Finally, an independent evaluation of the previously indicated parameters is performed utilizing a validation set.As a dataset to which the cross-validation procedure was applied, we took an amount corresponding to 75% of the total links (t75). The same value for nonexistent links between unconnected pairs of randomly selected nodes was considered (t75). As a validation set, 25% of the total number of links (t25) was contemplated and an analogous value (t25) was taken for nonexistent links.(2) Obtaining Embeddings through Node2Vec. Node embeddings are calculated through Node2Vec in such manner that the nodes which are close in the graph remain close in the embedding space. It is a two-stage process which first involves running random walks on the graph to obtain context pairs and second uses these walks to train a Word2Vec model [26]. To compute the embeddings, we use the StellarGraph package in Python, and several parameters must be specified:(i)
p, which controls the probability in a walk of going back to the node from which one comes. Values in [0.1, 2] were taken in steps of size 0.1.(ii)
q, which manages the probability of exploring undiscovered parts of the graphs. It determines the dimensionality of Node2Vec embeddings, that is, the size of the feature vector. Values in [0.1, 2] were taken in steps of size 0.1.(iii)
num. walks, which defines the number of walks made from each node. Values in [0.1, 10] were chosen in steps of size 0.5.(iv)
walk length, which symbolizes the length of each random walk. Values in [19, 38] were chosen in steps of size 5.(v)
window size, which specifies the context window size for Word2Vec. Values in [39, 40] were selected in steps of size 1.(vi)
num iter, which represents the number of SGD iterations (epochs) to run. Values in [38, 41] were selected in steps of size 1.To optimize the hyperparameters, we calculate the closeness centrality (or nearness centrality) of all nodes inG. This parameter can be defined as(6)ηl=1fl,fl=∑j∈G−llplj.In the above formula,fl is named farness centrality. lplj symbolizes the number of links in the shortest path between nodes l and j.Considering the embeddings obtained for each nodel, according to each selected hyperparameter option, we calculate the metric ηel, which can be described as(7)ηel=1fel,fel=∑j∈G−ldelj.In the above formula, delj is the Euclidean distance between the vectors corresponding to l and j nodes. Finally, the correlation between η=ηl and ηe=ηel∇l∈G is obtained.The Pearson correlation [42] or the Spearman correlation [42] would be utilized, depending on whether η and ηe variables would exhibit a normal distribution or not. The normality of the distribution is checked utilizing the Anderson-Darling test [43] with a significance level α=0.05. The considered hypotheses are as follows:(i)
H0:  “the samples derived from a normal distribution.”(ii)
Ha: “the samples did not derive from a normal distribution.”Ifp−value≤α, H0 must be rejected and Ha is taken; otherwise H0 must be accepted.One combination of hyperparameters for which a correlation greater than 0.9 is obtained was selected. We usep = 1.0, q = 1.0, dimensions = 64, num. walks = 5, walk length = 50, window size = 10, and num iter = 1.It must be noted that if a new node is added to the network, the execution of Word2Vec is required on the whole graph to generate the new embeddings.(3) Obtaining Similarities between Nodes. As we have previously indicated, to calculate the similarity between nodes, the link prediction package in R is used. The similarity indexes are described in the Supplementary Material Document.


### 2.2.4. Building the Model

Three models were tested: Random Forest (RF) [44], Logistic Regression (LR) [45], and Support Vector Machines (SVM) [46] model. Each model is optimized by 5-fold cross-validated grid search over a parameter grid in order to find the best parameters for each one.The link prediction package is only available in R language. As a result, we implement the model in R, if the similarity indexes are used as explanatory variables, whereas if the embeddings are obtained from Node2Vec, it is developed in Python language.In Python language, the applied hyperparameters for the RF model are as follows: number of trees in the forest (n_estimators) and minimum number of samples required to split an internal node (min_samples_split). In R, the utilized hyperparameters are as follows: number of trees in the forest (max_depth) and number of variables randomly sampled as candidates at each split (mtry) (minimal node size (min.node.size) is equal to 1). Minimal node size Gini is taken as splitting rule in both R and Python languages.For LR and SVM models, the hyperparameters are identical in R and Python languages. They are, for the LR model, the best inverse of regularization strength (Cs) and an L2 [47] penalty term (penalty). For the SVM model, the inverse of regularization strength (C) and Kernel coefficient (gamma) are utilized.(i)
RF model (Python): n_estimators: [100, 150, 300], max_depth: [3, 5, 10, None], and min_samples_split: [2, 5, 10](ii)
RF model R: num.trees: [100, 150, 300], mtry: [2, 5, 10], and max_depth: none(iii)
LR model (Python and R): Cs: [1, 5, 10, 20], penalty: [l1, l2] (caret package with ranger method, which we used to build the RF, does not allow us to specify limits formax_depth).(iv)
SVM model (Python and R): C:10−2,−1,0,12, gamma: 10−2,−1,0,12To measure the performance of the model, the following metrics are computed:(i)
Area under curve (AUC). Receiver Operating Characteristic curve (ROC) is a probability curve where each point symbolizes a true positive rate (TPR)/false positive rate (FPR) pair corresponding to a one decision threshold. TPR and FPR can be described as(8)TPR=TPTP+TN,FPR=FPTP+TN.In the above formula, TP, TN, FP, and FN symbolize the true positives, the true negatives, the false positives, and the false negatives, respectively.If ROC(t) is the function associated with the ROC curve, the area under curve (AUC) can be denoted as(9)AUC=∫01ROCtdt,The AUC allows us to estimate the performance of the classifier, establishing its ability to discriminate between classes; that is, 0 indicates that there is no link between a pair of nodes and 1 indicates that a link between a pair of nodes exists.(ii)
Accuracy, in binary classification, as the one we are dealing with, symbolizes the proportion of correct predictions (both true positives (TP) and true negatives (TN)) among the total number of cases examined. It is computed as follows [28]:(10)Accuracy=TP+TNTP+TN+FP+FN.(iii)
Sensitivity or Recall, which represents the ability of the classifier to correctly identify the positive samples (1: a link between a pair of nodes exists), can be defined as [28](11)Sensitivity=TPTP+FN.(iv)
Specificity or Selectivity, which symbolizes the ability of the classifier to identify a negative sample (there is any link between nodes), is defined as [28](12)Specificity=TNTN+FP.(v)
Precision is defined as(13)Precision=TPTP+FP.(vi)
F1 score can be interpreted as a weighted average of the precision, that is, the ability of the classifier not to label a sample as positive that is actually negative, and recall the ability of the classifier to find all the positive samples. This score is in the range [0-1] and it is defined as(14)F1=2∗Precision∗RecallPrecision+Recall.(viii)
Geometric mean measures the balance between classification performances in both the majority and minority classes. A low GMean indicates poor performance in the classification of the positive cases even if the negative cases are correctly classified. This score is defined as(15)GMean=Sensitivity∗Specificity.


### 2.2.5. Community Analysis

According to [48], one of the more analyzed forms within large-scale networks is the modular structure. In this context, a community is a dense subnetwork, that is, a set of densely connected nodes within a larger network. These conglomerates can be revealed utilizing the information encoded in the network topology. To analyze the presence of communities in the replying, retweeting, and quoting interactions networks, various algorithms are evaluated.(1) Louvain Algorithm. This method consists of both modularity optimization and community aggregation phases. In the first stage, each node is initially allocated to a community. After that, the corresponding modularity is estimated by eliminating node l from its community and placing it in its neighbor j’s community. If a gain exists in the modularity, l is moved to this new community; otherwise, it remains in its original community. This mechanism is repeated for all nodes in the network [49].(16)ΔQ=∑in+kl,in2∗m−∑tot+kl2∗m2−∑in2∗m−∑tot2∗m2−kl2∗m2,where ∑in symbolizes the sum of all the weights of the links inside the community that l is moving into. ∑tot represents the sum of all the weights of the links to the nodes of the community to which i moves. kl is the weighted degree of l. kl,in is the sum of the weights of the links between l and other nodes in the community that l is moving into. m is the sum of the weights of all links in the network. If the network is unweighted, the weight of each of its links is 1.In a second stage, a new network is constructed in which the nodes are the communities obtained in the previous stage. The two stages are repeated until modularity cannot be increased further [49].(2) Leiden Algorithm. It is based on the Louvain method. This procedure introduces a refinement phase in addition to the modularity optimization and community aggregation phases, making it slightly more complex [50]. Analogously to the Louvain algorithm, this algorithm also begins by allocating each node to a community. After that, individual nodes are moved from one community to another to obtain a gain in modularity. The next step involves the refinement of the individual communities found in the previous step. This refined partition RP is obtained as follows.Initially, the refined partitionRP is set to a unique partition, in which each node is in its own community [50]. The algorithm then locally brings nodes together in RP: nodes that are on their own in a community in RP can be merged with a different community. It should be noted that mergers are performed only within each community of the partition obtained in the first stage. In addition, a node is joined to a community in RP only if both are sufficiently well joined to their community in the first stage [50].After the refinement step, the primary community might split into multiple subcommunities ensuring well-connected communities. After that, assembly of the community nodes is carried out based on the refined partitionRP. These steps are repeated until no more improvement can be made in terms of modularity [50].(3) Label Propagation Algorithm (LPA). It operates as follows: first, the network is initialized, so that each node is allocated a unique label. Then, every node selects a great number of neighbors, applying a label to itself. If more than one label is utilized by the same maximum number of neighbors, one of them is selected at random. After various repetitions, the identical label tends to be connected with all elements of a conglomerate [51]. LPA reaches convergence when each node has the majority label of its neighbors [52].(4) Surprise Algorithm. [39, 41, 53] The authors propose a different global performance measure which is named “Surprise” to evaluate the computation of conglomerates. They establish the community structure of a network computing the distributions of intra- and intercommunity links with a cumulative hypergeometric distribution [54]. The method assumes that a null model exists through which links between nodes emerge at random. The departure of the observed partition from the expected distribution of nodes and links into conglomerates is measured considering this null model. The following cumulative hypergeometric distribution is utilized [39]:(17)S=−log∑j=pMinM,nMj+F−Mn−jFn,where F is the maximum possible number of links in a network k2−k/2, with k being the number of nodes. n is the observed number of links, M is the maximum possible number of intracommunity links for a specific partition, and p is the total number of intracommunity links observed in that specific partition.This parameter makes it possible to estimate the exact probability of the distribution and nodes for the established communities in the network for a specific partition [53].The four aforementioned algorithms have been chosen because they have been shown to be effective in several forms of research [39, 50, 55, 56] and because, for the analyzed network, their execution is completed in a short time (less than 2 minutes), when run on a computer with the following characteristics:(i)
Processor: 11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20 GHz 2.11 GHz(ii)
RAM: 16.0 GBThree metrics are calculated to assess the performance of the community detection algorithms:(i)
Modularity [13], which evaluates the strength of divisions. A large modularity represents dense connection between nodes within communities and sparse connections between nodes located in different communities. Then the modularity Q of a partition is defined as [13](18)Q=12∗m∑lj∈GAlj−γkl∗kj2∗m∂cl,cj,wherem is the number of links, Alj is the lj element of the adjacency matrix of G, klkj are the degrees of nodes l and j, and   ∂cl,cj is a resolution parameter, which is equal to 1 if l and j are in the same community and 0 otherwise. γ is a resolution parameter. If it is lower than 1, Q inclines towards larger communities. If, on the contrary, its value is higher than 1, Q is in favor of smaller communities. A value equal to 1 is taken in this investigation.The value of modularity is in the range [−1/2, 1] for unweighted and undirected graphs [13, 58].(ii)
Performance [58].(19)PP=l,j∈E,Cl=Cj+l,j∉E,Cl≠Cjn∗n−1/2,wherel and j are nodes l and j, l,j∈E,Cl=Cj represents two nodes belonging to identical community and joined by a link, l,j∉E,Cl≠Cj represents two nodes belonging to different communities and not joined by a link, and Cl,Cj are the communities where nodes l and j are located. n is the number of nodes in G.(20)0≤PP≤1.(iii)
Coverage.It can be defined as the ratio of the number of intracommunity links by the total number of links [58].High values ofQ correspond with appropriate partitions. Consequently, the partition corresponding to its maximum value in G should be the best [58]. Therefore, to study the interaction networks, the partition provided by the method with a higher value of Q is selected but considering, at the same time, that the method allows us to obtain a good value for the performance and coverage metrics. All this is done with the smallest possible number of communities.


### 2.2.6. Analysis of Probability Cumulative Distributions of Hashtags

We also analyze the cumulative probability distributions of hashtags for all types of interactions, globally and by community. The Kolmogorov-Smirnov test [38] with a significance level equal to 0.05 is utilized for the comparison of the distributions. The following hypotheses are considered:(i)
Null hypothesisH0: “the samples derive from the identical distribution.”(ii)
Alternative hypothesisHa: “the samples derive from different distribution.”Ifp value < 0.05 is obtained in the test, the null hypothesis must be rejected; otherwise, it must be taken.


## 2.2.1. Obtaining the Tweets

A total of 839,968 tweets were downloaded from Twitter utilizing the T-Hoarder tool from March to May 2021. The tweets include messages produced from Twitter users as well as their interactions (retweeting, replying, and quoting). It must be noted that only tweets in the English language are considered. For the purpose of deciding on the most appropriate keywords to filter out the tweets which are unrelated to climate change, a small group of individuals were gathered in order to perform the selection. In the cases where more than 15 keywords were proposed, they would be grouped utilizing an affinity diagram [19]. After that, the keywords would be filtered utilizing a multiple voting system. In the end, seven keywords were taken. These were global warming, greenhouse effect, climate change, climate crisis, climate disaster, climate emergency, and climate action. Both with and without spacing to consider hashtags, a total of 589,272 retweets, 94,084 replies, and 156,612 quotes were obtained. Additionally, a filtering system is executed to eliminate possible duplicates which could happen from how the data was acquired (Streaming and Rest APIs). After this, 631,027 tweets remained.


## 2.2.2. Building the Interaction Network

We use graphs to study the interactions network on climate change on Twitter. In each tweet, node1 is the author’s ID and node2 is the user’s ID with whom this interacts. Because there are interactions with several users within the same tweet, as many links are generated as interactions exist. The types of interaction are replying, quoting, and retweeting. The generated graphs are undirected and unweighted. Based on each kind of interaction, three types of graphs are created.The main statistical network parameters are shown in Table1. These are the number of nodes and links, as well as the maximum and the mean degree. Information on the total connectivity of the network, and other data such as the number of nodes and links, as well as the size of the giant component is also included. Various characteristics of the GC are analyzed such as number of nodes and links, diameter (d), average path length (lp), average degree (<k>), betweenness centrality (<bc>), and assortativity coefficient (r). These metrics are defined as follows.(i)
The degree of a nodel, k(l), for an undirected graph, G, such as an interaction network on Twitter, is [20, 21](1)kl=∑i=1NAlj,whereAlj is the element lj of the adjacency matrix. Alj=1 if node l is connected to node j and 0 otherwise. N symbolizes the total number of nodes in the network.(ii)
The betweenness centrality of nodel in G, bcl, is [21, 22](2)bcl=∑u≠l≠w∈Gσu,wlσu,w,whereσu,w is the total number of shortest paths from node u to node w and σu,wl symbolizes the number of those paths that pass through l.(iii)
The degree assortativity [23] is defined as a Pearson correlation between the “expected degree” distribution qk and the “joint degree” distribution ej,k [23] in G. The first distribution represents the probability distribution of passing through the links of G and discovering nodes with degree k at the termination of the links. The second distribution symbolizes the probability distribution of a link having degree j on one termination and degree k on another termination.In the undirected case, the normalized Pearson coefficient ofej,k and qk provides the assortativity coefficient r of the network, which can be described as [23, 24](3)r=1σq2∑jk∈Gjkej,k−γq2.Hereγq and σq are the expected value or mean and standard deviation of qk. If a network is perfectly assortative (r  = 1), then its nodes join only with other nodes with analogous degree.(iv)
The average path length ofGlp is described as the average number of links that must be passed through the shortest path spl,j between any two pairs of nodes l and j. If it is considered that spl,j=0 when l=j; that is, if any path between l and j exists, then lp can be described as(4)lp=1N∗N−1∑l=1N∑j=1Nspl,j.(v)
The diameter ofG, d, symbolizes the length (in number of links) of the longest geodesic path between any two nodes [25].Table 1
Main structural properties of the interaction networks.
Type of interactionNumber of nodesNumber of linksMaximum degree<k >Completely connectedRetweeting294,209360,38737,8962.4NoReplying74,15246,5182751.3NoQuoting122,512121,88713,3872No


## 2.2.3. Modeling the Interaction Network

(1) Overview of the Process. The process of link formation between pairs of nodes is modeled using two mechanisms:(i)
The first procedure uses the Node2Vec algorithm [26]. As is well known, Node2Vec is a semisupervised method for scalable feature learning in networks, which utilizes a custom graph-based objective function that uses the Stochastic Gradient Descendent method [27]. The algorithm provides a feature representation that maximizes the likelihood of preserving network neighborhoods of nodes in an s-dimensional feature space. A 2nd-order random walk approach is utilized to produce the network neighborhoods for each node [26].To generate a feature representation of links for two nodesu and v, the authors of the algorithm define a binary operator over the corresponding feature vectors fu and fv with the purpose of generating a representation gu,v such as g:V×V⟶Rs, where s is the space dimension for the pair u,v. The operators for any pair of nodes is established even if a link does not exist between them. All operators produce link embeddings that have equal dimensionality to the input node embeddings. Then, given any two nodes, named u and v, and their feature vectors, fu and fv, the operators are defined as follows:(i)
Hadamard:fu∗fv(ii)
l1:fu−fv(iii)
l2:|fu−fv2(iv)
Average:fu+fv/2(ii)
The second procedure uses certain similarity indexes. In this method, analogously to [28], we calculated local, quasi-local, and global similarity metrics between nodes. Specifically, the local measures were resource allocation [29], Leicht-Holme-Newman [30], common neighbors, cosine [31], cosine similarity on L+ [25], hub promoted [32], Jaccard [33], hub depressed [32], preferential attachment [8], and Sørensen [34]. The global similarity measures used were average commute time [25], Katz [35], L+ directly [25], matrix forest [36], and random walk with restart [37]. Finally, the following quasi-local measures of the similarity were utilized: graph distance and local path [29]. These indexes are explained in detail in the Supplementary Materials Document.As input variables, the model has either the characteristics that have been obtained for each link, through algorithm, or the similarity indexes between pairs of nodes. The output variable of the model is the mark of whether or not a link exists between a pair of nodes (its value is 1 or 0). Using supervised learning, from examples in which both the input and output variables are known, the model anticipates the value of the output for new inputs, corresponding to cases not utilized in the learning (training process).Cross validation is applied to generate the model. As an alternative of splitting the dataset into training and testing subsets, in the aforementioned mechanism,δ equal partitions of the dataset are carried out. The model is trained δ times: each time one of the partitions is chosen as a test set, and the model is trained with the remaining δ−1 folds. Each fold is utilized once as a test set. Hence, at the end, there are various predictions about the whole dataset. Because of the above, δ evaluations of any parameter PAR determining the efficiency of the model exist. This parameter can be average [28]:(5)PAR=1∂∑j=1∂PAR.In this investigation, we considerPAR, Accuracy, AUC, F1, and GMean. All these parameters are defined in Section 2.2.2.Finally, an independent evaluation of the previously indicated parameters is performed utilizing a validation set.As a dataset to which the cross-validation procedure was applied, we took an amount corresponding to 75% of the total links (t75). The same value for nonexistent links between unconnected pairs of randomly selected nodes was considered (t75). As a validation set, 25% of the total number of links (t25) was contemplated and an analogous value (t25) was taken for nonexistent links.(2) Obtaining Embeddings through Node2Vec. Node embeddings are calculated through Node2Vec in such manner that the nodes which are close in the graph remain close in the embedding space. It is a two-stage process which first involves running random walks on the graph to obtain context pairs and second uses these walks to train a Word2Vec model [26]. To compute the embeddings, we use the StellarGraph package in Python, and several parameters must be specified:(i)
p, which controls the probability in a walk of going back to the node from which one comes. Values in [0.1, 2] were taken in steps of size 0.1.(ii)
q, which manages the probability of exploring undiscovered parts of the graphs. It determines the dimensionality of Node2Vec embeddings, that is, the size of the feature vector. Values in [0.1, 2] were taken in steps of size 0.1.(iii)
num. walks, which defines the number of walks made from each node. Values in [0.1, 10] were chosen in steps of size 0.5.(iv)
walk length, which symbolizes the length of each random walk. Values in [19, 38] were chosen in steps of size 5.(v)
window size, which specifies the context window size for Word2Vec. Values in [39, 40] were selected in steps of size 1.(vi)
num iter, which represents the number of SGD iterations (epochs) to run. Values in [38, 41] were selected in steps of size 1.To optimize the hyperparameters, we calculate the closeness centrality (or nearness centrality) of all nodes inG. This parameter can be defined as(6)ηl=1fl,fl=∑j∈G−llplj.In the above formula,fl is named farness centrality. lplj symbolizes the number of links in the shortest path between nodes l and j.Considering the embeddings obtained for each nodel, according to each selected hyperparameter option, we calculate the metric ηel, which can be described as(7)ηel=1fel,fel=∑j∈G−ldelj.In the above formula, delj is the Euclidean distance between the vectors corresponding to l and j nodes. Finally, the correlation between η=ηl and ηe=ηel∇l∈G is obtained.The Pearson correlation [42] or the Spearman correlation [42] would be utilized, depending on whether η and ηe variables would exhibit a normal distribution or not. The normality of the distribution is checked utilizing the Anderson-Darling test [43] with a significance level α=0.05. The considered hypotheses are as follows:(i)
H0:  “the samples derived from a normal distribution.”(ii)
Ha: “the samples did not derive from a normal distribution.”Ifp−value≤α, H0 must be rejected and Ha is taken; otherwise H0 must be accepted.One combination of hyperparameters for which a correlation greater than 0.9 is obtained was selected. We usep = 1.0, q = 1.0, dimensions = 64, num. walks = 5, walk length = 50, window size = 10, and num iter = 1.It must be noted that if a new node is added to the network, the execution of Word2Vec is required on the whole graph to generate the new embeddings.(3) Obtaining Similarities between Nodes. As we have previously indicated, to calculate the similarity between nodes, the link prediction package in R is used. The similarity indexes are described in the Supplementary Material Document.


## 2.2.4. Building the Model

Three models were tested: Random Forest (RF) [44], Logistic Regression (LR) [45], and Support Vector Machines (SVM) [46] model. Each model is optimized by 5-fold cross-validated grid search over a parameter grid in order to find the best parameters for each one.The link prediction package is only available in R language. As a result, we implement the model in R, if the similarity indexes are used as explanatory variables, whereas if the embeddings are obtained from Node2Vec, it is developed in Python language.In Python language, the applied hyperparameters for the RF model are as follows: number of trees in the forest (n_estimators) and minimum number of samples required to split an internal node (min_samples_split). In R, the utilized hyperparameters are as follows: number of trees in the forest (max_depth) and number of variables randomly sampled as candidates at each split (mtry) (minimal node size (min.node.size) is equal to 1). Minimal node size Gini is taken as splitting rule in both R and Python languages.For LR and SVM models, the hyperparameters are identical in R and Python languages. They are, for the LR model, the best inverse of regularization strength (Cs) and an L2 [47] penalty term (penalty). For the SVM model, the inverse of regularization strength (C) and Kernel coefficient (gamma) are utilized.(i)
RF model (Python): n_estimators: [100, 150, 300], max_depth: [3, 5, 10, None], and min_samples_split: [2, 5, 10](ii)
RF model R: num.trees: [100, 150, 300], mtry: [2, 5, 10], and max_depth: none(iii)
LR model (Python and R): Cs: [1, 5, 10, 20], penalty: [l1, l2] (caret package with ranger method, which we used to build the RF, does not allow us to specify limits formax_depth).(iv)
SVM model (Python and R): C:10−2,−1,0,12, gamma: 10−2,−1,0,12To measure the performance of the model, the following metrics are computed:(i)
Area under curve (AUC). Receiver Operating Characteristic curve (ROC) is a probability curve where each point symbolizes a true positive rate (TPR)/false positive rate (FPR) pair corresponding to a one decision threshold. TPR and FPR can be described as(8)TPR=TPTP+TN,FPR=FPTP+TN.In the above formula, TP, TN, FP, and FN symbolize the true positives, the true negatives, the false positives, and the false negatives, respectively.If ROC(t) is the function associated with the ROC curve, the area under curve (AUC) can be denoted as(9)AUC=∫01ROCtdt,The AUC allows us to estimate the performance of the classifier, establishing its ability to discriminate between classes; that is, 0 indicates that there is no link between a pair of nodes and 1 indicates that a link between a pair of nodes exists.(ii)
Accuracy, in binary classification, as the one we are dealing with, symbolizes the proportion of correct predictions (both true positives (TP) and true negatives (TN)) among the total number of cases examined. It is computed as follows [28]:(10)Accuracy=TP+TNTP+TN+FP+FN.(iii)
Sensitivity or Recall, which represents the ability of the classifier to correctly identify the positive samples (1: a link between a pair of nodes exists), can be defined as [28](11)Sensitivity=TPTP+FN.(iv)
Specificity or Selectivity, which symbolizes the ability of the classifier to identify a negative sample (there is any link between nodes), is defined as [28](12)Specificity=TNTN+FP.(v)
Precision is defined as(13)Precision=TPTP+FP.(vi)
F1 score can be interpreted as a weighted average of the precision, that is, the ability of the classifier not to label a sample as positive that is actually negative, and recall the ability of the classifier to find all the positive samples. This score is in the range [0-1] and it is defined as(14)F1=2∗Precision∗RecallPrecision+Recall.(viii)
Geometric mean measures the balance between classification performances in both the majority and minority classes. A low GMean indicates poor performance in the classification of the positive cases even if the negative cases are correctly classified. This score is defined as(15)GMean=Sensitivity∗Specificity.


## 2.2.5. Community Analysis

According to [48], one of the more analyzed forms within large-scale networks is the modular structure. In this context, a community is a dense subnetwork, that is, a set of densely connected nodes within a larger network. These conglomerates can be revealed utilizing the information encoded in the network topology. To analyze the presence of communities in the replying, retweeting, and quoting interactions networks, various algorithms are evaluated.(1) Louvain Algorithm. This method consists of both modularity optimization and community aggregation phases. In the first stage, each node is initially allocated to a community. After that, the corresponding modularity is estimated by eliminating node l from its community and placing it in its neighbor j’s community. If a gain exists in the modularity, l is moved to this new community; otherwise, it remains in its original community. This mechanism is repeated for all nodes in the network [49].(16)ΔQ=∑in+kl,in2∗m−∑tot+kl2∗m2−∑in2∗m−∑tot2∗m2−kl2∗m2,where ∑in symbolizes the sum of all the weights of the links inside the community that l is moving into. ∑tot represents the sum of all the weights of the links to the nodes of the community to which i moves. kl is the weighted degree of l. kl,in is the sum of the weights of the links between l and other nodes in the community that l is moving into. m is the sum of the weights of all links in the network. If the network is unweighted, the weight of each of its links is 1.In a second stage, a new network is constructed in which the nodes are the communities obtained in the previous stage. The two stages are repeated until modularity cannot be increased further [49].(2) Leiden Algorithm. It is based on the Louvain method. This procedure introduces a refinement phase in addition to the modularity optimization and community aggregation phases, making it slightly more complex [50]. Analogously to the Louvain algorithm, this algorithm also begins by allocating each node to a community. After that, individual nodes are moved from one community to another to obtain a gain in modularity. The next step involves the refinement of the individual communities found in the previous step. This refined partition RP is obtained as follows.Initially, the refined partitionRP is set to a unique partition, in which each node is in its own community [50]. The algorithm then locally brings nodes together in RP: nodes that are on their own in a community in RP can be merged with a different community. It should be noted that mergers are performed only within each community of the partition obtained in the first stage. In addition, a node is joined to a community in RP only if both are sufficiently well joined to their community in the first stage [50].After the refinement step, the primary community might split into multiple subcommunities ensuring well-connected communities. After that, assembly of the community nodes is carried out based on the refined partitionRP. These steps are repeated until no more improvement can be made in terms of modularity [50].(3) Label Propagation Algorithm (LPA). It operates as follows: first, the network is initialized, so that each node is allocated a unique label. Then, every node selects a great number of neighbors, applying a label to itself. If more than one label is utilized by the same maximum number of neighbors, one of them is selected at random. After various repetitions, the identical label tends to be connected with all elements of a conglomerate [51]. LPA reaches convergence when each node has the majority label of its neighbors [52].(4) Surprise Algorithm. [39, 41, 53] The authors propose a different global performance measure which is named “Surprise” to evaluate the computation of conglomerates. They establish the community structure of a network computing the distributions of intra- and intercommunity links with a cumulative hypergeometric distribution [54]. The method assumes that a null model exists through which links between nodes emerge at random. The departure of the observed partition from the expected distribution of nodes and links into conglomerates is measured considering this null model. The following cumulative hypergeometric distribution is utilized [39]:(17)S=−log∑j=pMinM,nMj+F−Mn−jFn,where F is the maximum possible number of links in a network k2−k/2, with k being the number of nodes. n is the observed number of links, M is the maximum possible number of intracommunity links for a specific partition, and p is the total number of intracommunity links observed in that specific partition.This parameter makes it possible to estimate the exact probability of the distribution and nodes for the established communities in the network for a specific partition [53].The four aforementioned algorithms have been chosen because they have been shown to be effective in several forms of research [39, 50, 55, 56] and because, for the analyzed network, their execution is completed in a short time (less than 2 minutes), when run on a computer with the following characteristics:(i)
Processor: 11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20 GHz 2.11 GHz(ii)
RAM: 16.0 GBThree metrics are calculated to assess the performance of the community detection algorithms:(i)
Modularity [13], which evaluates the strength of divisions. A large modularity represents dense connection between nodes within communities and sparse connections between nodes located in different communities. Then the modularity Q of a partition is defined as [13](18)Q=12∗m∑lj∈GAlj−γkl∗kj2∗m∂cl,cj,wherem is the number of links, Alj is the lj element of the adjacency matrix of G, klkj are the degrees of nodes l and j, and   ∂cl,cj is a resolution parameter, which is equal to 1 if l and j are in the same community and 0 otherwise. γ is a resolution parameter. If it is lower than 1, Q inclines towards larger communities. If, on the contrary, its value is higher than 1, Q is in favor of smaller communities. A value equal to 1 is taken in this investigation.The value of modularity is in the range [−1/2, 1] for unweighted and undirected graphs [13, 58].(ii)
Performance [58].(19)PP=l,j∈E,Cl=Cj+l,j∉E,Cl≠Cjn∗n−1/2,wherel and j are nodes l and j, l,j∈E,Cl=Cj represents two nodes belonging to identical community and joined by a link, l,j∉E,Cl≠Cj represents two nodes belonging to different communities and not joined by a link, and Cl,Cj are the communities where nodes l and j are located. n is the number of nodes in G.(20)0≤PP≤1.(iii)
Coverage.It can be defined as the ratio of the number of intracommunity links by the total number of links [58].High values ofQ correspond with appropriate partitions. Consequently, the partition corresponding to its maximum value in G should be the best [58]. Therefore, to study the interaction networks, the partition provided by the method with a higher value of Q is selected but considering, at the same time, that the method allows us to obtain a good value for the performance and coverage metrics. All this is done with the smallest possible number of communities.


## 2.2.6. Analysis of Probability Cumulative Distributions of Hashtags

We also analyze the cumulative probability distributions of hashtags for all types of interactions, globally and by community. The Kolmogorov-Smirnov test [38] with a significance level equal to 0.05 is utilized for the comparison of the distributions. The following hypotheses are considered:(i)
Null hypothesisH0: “the samples derive from the identical distribution.”(ii)
Alternative hypothesisHa: “the samples derive from different distribution.”Ifp value < 0.05 is obtained in the test, the null hypothesis must be rejected; otherwise, it must be taken.


## 3. Results and Discussion

### 3.1. Main Structural Properties of the Interaction Networks

Figure1 shows the graphs corresponding to replying, retweeting, and quoting interactions networks for the utilized tweets from March 11 to May 26 .Figure 1
From March 11 until May 26 in 2021 replying (a), retweeting (b), and quoting (c) interactions networks.
(a)(b)(c)Tables1 and Table 2 show the structural properties of the interaction networks from March 11 until May 26 in 2021 as well as their GC. As previously mentioned, the betweenness centrality estimates the number of times a node lies on the shortest path between other nodes. With respect to the GC, as can be observed in Table 2, the average betweenness is low (<0.008) in all analyzed networks. This means that there are few users who play an intermediation role linking other users. The average degree is also low (<2.8), as shown in Figure 2, where many nodes exist with a low degree, while only a few exhibit a high degree. Both average path length and diameter are similar in retweeting and quoting networks. However, these are much higher in the replying interaction network, demonstrating that there is worse connectivity. The connection of a network is determined by its diameter, which defines the capacity of any two nodes to interact with each other.Table 2
Main structural properties of theGC of the interaction networks.
Type of interactionNumber of nodesNumber of links<lp>d<k>Assortativity<bc>Retweeting237,968323,7736.49178242.72115−0.073570.00002Replying2,1742,19418.05216472.01840−0.216750.007851Quoting84,58198,2196.42998222.32248−0.096790.00006Figure 2
From March 11 until May 26 in 2021, cumulative probability distribution of degree in replying (a), retweeting (b), and quoting (c) interactions.
(a)(b)(c)We also analyze the k-core decomposition [59] in G, which allows us to detect specific subsets (k-cores) in the graph. These are calculated by recursively eliminating all the nodes of degree lower than k, until the degree of all remaining nodes is higher than or equal to k. Those highest values of k correspond to nodes with a higher degree and more central position in G. The k-core decomposition determines a hierarchy of nested subgraphs, in which the 1-core comprises the 2-core, which equally includes the 3-core and so on, until the highest k-core is obtained. Higher values of k imply a more relevant and central subgraph.We have identified for replying, quoting, and retweeting networks 2, 10, and 22 k-cores. For the replying network, the highest percentage of nodes is in the first k-core (94.16%). Meanwhile, in quoting and retweeting networks, the largest proportion is in the first and second k-core ((83.72/12.66%) and (76.60%/14.37%)). With respect to the percentage, the users registered 5.84% in the highest k-core for replying interaction and 0.04% in the rest of the networks. According to the above, these users that show the highest k-core have a larger relevance.


#### 3.1.1. Modeling the Replying Interactions

Link formation for each type of interaction is modeled at various time periods. This is because, particularly in retweeting and quoting networks, a high number of links exist from March to May 2021. The days on which tweets were downloaded for the periods analyzed are detailed in the Supplementary Material Document.(1) Modeling from Obtained Embeddings Using Node2Vec. Table 3 depicts the best hyperparameters for each model using Node2Vec for replying interactions from March 11 until April 10, 2021. Figure 3 shows the new interactions for that time (503 new links were formed). Tables 4 and 5 display the performance metrics for each operator and model used. According to the results, the model that exhibits a higher Accuracy is the SVM model. Specifically, operator l1 is utilized and hyperparameters are taken as C: 0.01 and gamma: 0.01. More periods of analysis are included in the Supplementary Material Document. At those times, the best model was also SVM but using the Hadamard operator, which exhibits a slight difference with respect to operator l1, hyperparameters are taken as C: 100.0 and gamma: 0.01. However, as we see later, a better Accuracy is obtained for both cases by using the similarities between nodes as explanatory variables.Table 3
Utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models for replying interaction from March 12 until April 12 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 20, penalty: l1Cs: 5, penalty: l1Cs: 20, penalty: l2Cs: 5, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 0.01, gamma: 0.01C: 0.1, gamma: 0.01C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: 3, min_samples_split: 10, n_estimators: 300max_depth: 10, min_samples_split: 2, n_estimators: 150max_depth: 5, min_samples_split: 2, n_estimators: 150max_depth: none, min_samples_split: 5, n_estimators: 1501LR_Hadamard, SVM_hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing the l2 operator; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 3
For replying interactions, new links between nodes from March 12 until April 12 in 2021.Table 4
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.968090.936170.957450.808510.968090.957450.946810.83511Acc_val0.968130.968130.972110.792830.972110.976100.956180.81275F1_tr + ts0.962020.925000.950620.775000.961540.950620.939020.81212F1_val0.968750.968500.972760.793650.972550.976560.957850.81569ROC_tr + ts0.992160.955310.952150.857140.992390.951440.952030.86089ROC_tr + ts0.988440.972000.970480.874220.988830.970600.970410.87689GMean_tr + ts0.970850.939740.963290.808000.968980.963290.953890.83995GMean_val0.967930.968060.971830.792830.971990.975900.955350.812601LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 5
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1,2.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.930850.941500.941490.94681Acc_val0.972110.948210.956180.96414F1_tr + ts0.919250.929940.929940.93902F1_val0.972550.946940.955470.96471ROC_tr + ts0.973730.984440.975200.99485ROC_ts0.979650.989210.982730.99683GMean_tr + ts0.935130.942480.942480.95389GMean_val0.971990.947910.956050.964021LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.(2) Modeling from Obtained Similarities between Nodes. For replying interactions from March 12 until April 12 in 2021, Table 6 displays the best obtained hyperparameters for each model using the similarity metrics between nodes indicated in 2.2.2. Table 7 depicts the performance metrics for each operator and model utilized. The results show that the best Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 5, and min.node.size = 1. This Accuracy is slightly higher than that achieved if the model is built using the obtained embedding applying Node2Vec. The study of other time periods has been incorporated in the Supplementary Material Document. At these times, a slightly better accuracy is obtained for the RF model with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1.Table 6
For replying interactions from March 12 until April 12 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 5; penalty: l1C: 0.1; gamma: 1num.trees = 300; mtry = 5Table 7
For replying interactions from March 12 until April 12 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.856380.936170.996Acc_val0.836000.936171F1_tr + ts0.852460.940000.99601F1_val0.827000.940001ROC_tr + ts0.954390.962470.99600ROC_ts0.836000.942051GMean_tr + ts0.855970.933990.99600GMean_val0.834380.9339911In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


#### 3.1.2. Modeling the Retweeting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 8, the best obtained hyperparameters for each model utilizing Node2Vec for retweeting interactions from May 21 until May 26 in 2021 can be observed. Table 9 and Table 10 display the performance metrics for each operator and applied model. Figure 4 displays the new interactions in the aforementioned period; 2,581 new links were built. Additional time periods have been included in the Supplementary Material Document. Similarly to what happened in the replying interaction networks, for all analyzed time intervals, the best obtained model is SVM, applying the Hadamard operator. The hyperparameters of the model vary depending on the period. Particularly, the utilized hyperparameters for the period specified above were C: 10.0 and gamma: 0.01.Table 8
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models1.
LR_HadamardLR_l1LR_l2LR_avg}textttCs: 10, penalty: l2Cs: 10, penalty: l2Cs: 5, penalty: l2Cs: 20, penalty: l1SVM_HadamardSVM_l1SVM_l2SVM_avgC: 10.0, gamma: 0.01C: 0.01, gamma: 0.01C: 1.0, gamma: 0.01C: 100.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 3001LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator.Table 9
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.974170.958680.960740.730370.979340.961780.959710.73554Acc_val0.969020.955850.961270.779240.975210.962040.958170.77769F1_tr + ts0.974920.959100.961540.732860.979630.962510.960490.74245F1_val0.968200.953620.959940.769980.974360.960830.956660.77348ROC_tr + ts0.997720.974940.975340.796000.996460.974890.975410.80181ROC_ts0.994840.976560.976420.821490.992210.976310.975650.81815GMean_tr + ts0.973750.958650.960550.730340.979270.961610.959540.73507GMean_val0.969830.955780.961840.779130.975810.962690.958680.778401LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts,represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 10
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.966940.951450.947310.96901Acc_val0.966690.948880.951200.96669F1_tr + ts0.966740.951300.946930.96945F1_val0.964670.945360.947980.96541ROC_tr + ts0.995140.986810.986720.99576ROC_ts0.9916640.985620.985200.99601GMean_tr + ts0.966960.951470.947320.96893GMean_val0.966140.947830.950310.967131LR_Hadamard, SVM_Hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 4
For retweeting interactions, new links between nodes from May 21 until May 26 in 2021.(2) Modeling from Obtained Similarities between Nodes. For retweeting interactions from May 21 until May 26 in 2021, Table 11 displays the best obtained hyperparameters for each model using the similarity metrics according to 2.2.2. In Table 12, the performance metrics for each model used can be seen. More times are described in the Supplementary Material Document. The highest Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1. This accuracy is slightly higher than the one achieved for the best model using the obtained embeddings through Node2Vec. It can be noted that this happens for all analyzed times.Table 11
For retweeting interactions from May 21 until May 26 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 20; penalty: l1C: 0.1; gamma: 10num. trees = 300; mtry = 10Table 12
For retweeting interactions from May 21 until May 26 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.916320.957020.99400Acc_val0.913950.957130.99922F1_tr + ts0.919040.957950.99401F1_val0.917470.957950.99923ROC_tr + ts0.916320.956970.99400ROC_ts0.836000.957120.99920GMean_tr + ts0.915700.956760.99400GMean_val0.912960.956930.999221In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


#### 3.1.3. Modeling the Quoting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 13, the best obtained hyperparameters for each model using Node2Vec for quoting interactions from April 12 until April 22 in 2021 are depicted. Table 14 and Table 15 show the performance metrics for each operator and model applied. Additional times are included in the Supplementary Material Document. Figure 5 shows the 12,651 new links between nodes for the aforementioned time period. The best value for the Accuracy is obtained utilizing the Hadamard operator, for the SVM model with hyperparameters max_depth: none, min_samples_split: 2, and n_estimators: 300. The SVM model using the Hadamard operator also exhibits the highest Accuracy for the rest of studied time intervals.Table 13
Utilizing the obtained embeddings for nodes and links through Node2Vec, best hyperparameters for LR, SVM, RF models, for quoting interaction April 12 until April 22 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 10, penalty: l2Cs: 10, penalty: l1Cs: 20, penalty: l1,Cs: 10, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 100.0, gamma: 0.01C: 1.0, gamma: 0.01,C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 2, n_estimators: 1501LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Table 14
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,3.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.987980.963740.969010.838530.987980.966480.967960.84275Acc_val0.985770.951780.955570.850280.986880.953360.954310.85296F1_tr + ts0.988040.963900.969320.843420.988040.966700.968330.84905F1_val0.985910.952440.956470.853700.987000.954070.955210.85819ROC_tr + ts0.996620.973970.973770.877310.996520.973730.973440.87393ROC_ts0.996710.956860.956710.878040.996480.956280.956260.87351GMean_tr + ts0.987970.963730.968960.837950.987980.966460.967890.84171GMean_val0.985730.951680.955350.849960.986830.953240.954100.852171LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2,;LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 15
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.988410.969440.970280.98714Acc_val0.985450.965060.965690.98957F1_tr + ts0.988360.969140.970020.98725F1_val0.985470.965000.965660.98966ROC_tr + ts0.999010.995890.996380.99928ROC_ts0.998640.994460.995240.99928GMean_tr + ts0.988400.969390.970240.98710GMean_val0.985460.965060.965690.989521In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Figure 5
For quoting interactions, new links between nodes from April 12 until April 22 in 2021.(3) Modeling from Obtained Similarities between Nodes. For quoting interactions from April 12 until April 22 in 2021, Table 16 depicts the best obtained hyperparameters for each model using the similarities between nodes. Table 17 displays the performance metrics for each operator and model utilized. The best accuracy is achieved for the RF model taking as hyperparameters num.trees = 150, mtry = 5, and min.node.size = 1. As in replying and retweeting interaction networks, a slightly higher accuracy than that received using the embedding calculated using Node2Vec is obtained. Other times are described in the Supplementary Material Document. For all times, a higher Accuracy for the RF model utilizing similarities as explanatory variables is also observed.Table 16
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 10; penalty: l1C: 0.1; gamma: 10num. trees = 150; mtry = 5.Table 17
For quoting interactions from April 12 until April 22 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models.
MetricsLRSVMRFAcc_tr + ts0.990880.850330.99800Acc_val0.989720.850340.99842F1_tr + ts0.990870.857450.99800F1_val0.989680.857450.99842ROC_tr + ts0.990880.852320.99800ROC_ts0,989720.850340.99840GMean_tr + ts0.990880.850020.99800GMean_val0.989720.848870.998421In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


## 3.1. Main Structural Properties of the Interaction Networks

Figure1 shows the graphs corresponding to replying, retweeting, and quoting interactions networks for the utilized tweets from March 11 to May 26 .Figure 1
From March 11 until May 26 in 2021 replying (a), retweeting (b), and quoting (c) interactions networks.
(a)(b)(c)Tables1 and Table 2 show the structural properties of the interaction networks from March 11 until May 26 in 2021 as well as their GC. As previously mentioned, the betweenness centrality estimates the number of times a node lies on the shortest path between other nodes. With respect to the GC, as can be observed in Table 2, the average betweenness is low (<0.008) in all analyzed networks. This means that there are few users who play an intermediation role linking other users. The average degree is also low (<2.8), as shown in Figure 2, where many nodes exist with a low degree, while only a few exhibit a high degree. Both average path length and diameter are similar in retweeting and quoting networks. However, these are much higher in the replying interaction network, demonstrating that there is worse connectivity. The connection of a network is determined by its diameter, which defines the capacity of any two nodes to interact with each other.Table 2
Main structural properties of theGC of the interaction networks.
Type of interactionNumber of nodesNumber of links<lp>d<k>Assortativity<bc>Retweeting237,968323,7736.49178242.72115−0.073570.00002Replying2,1742,19418.05216472.01840−0.216750.007851Quoting84,58198,2196.42998222.32248−0.096790.00006Figure 2
From March 11 until May 26 in 2021, cumulative probability distribution of degree in replying (a), retweeting (b), and quoting (c) interactions.
(a)(b)(c)We also analyze the k-core decomposition [59] in G, which allows us to detect specific subsets (k-cores) in the graph. These are calculated by recursively eliminating all the nodes of degree lower than k, until the degree of all remaining nodes is higher than or equal to k. Those highest values of k correspond to nodes with a higher degree and more central position in G. The k-core decomposition determines a hierarchy of nested subgraphs, in which the 1-core comprises the 2-core, which equally includes the 3-core and so on, until the highest k-core is obtained. Higher values of k imply a more relevant and central subgraph.We have identified for replying, quoting, and retweeting networks 2, 10, and 22 k-cores. For the replying network, the highest percentage of nodes is in the first k-core (94.16%). Meanwhile, in quoting and retweeting networks, the largest proportion is in the first and second k-core ((83.72/12.66%) and (76.60%/14.37%)). With respect to the percentage, the users registered 5.84% in the highest k-core for replying interaction and 0.04% in the rest of the networks. According to the above, these users that show the highest k-core have a larger relevance.


### 3.1.1. Modeling the Replying Interactions

Link formation for each type of interaction is modeled at various time periods. This is because, particularly in retweeting and quoting networks, a high number of links exist from March to May 2021. The days on which tweets were downloaded for the periods analyzed are detailed in the Supplementary Material Document.(1) Modeling from Obtained Embeddings Using Node2Vec. Table 3 depicts the best hyperparameters for each model using Node2Vec for replying interactions from March 11 until April 10, 2021. Figure 3 shows the new interactions for that time (503 new links were formed). Tables 4 and 5 display the performance metrics for each operator and model used. According to the results, the model that exhibits a higher Accuracy is the SVM model. Specifically, operator l1 is utilized and hyperparameters are taken as C: 0.01 and gamma: 0.01. More periods of analysis are included in the Supplementary Material Document. At those times, the best model was also SVM but using the Hadamard operator, which exhibits a slight difference with respect to operator l1, hyperparameters are taken as C: 100.0 and gamma: 0.01. However, as we see later, a better Accuracy is obtained for both cases by using the similarities between nodes as explanatory variables.Table 3
Utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models for replying interaction from March 12 until April 12 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 20, penalty: l1Cs: 5, penalty: l1Cs: 20, penalty: l2Cs: 5, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 0.01, gamma: 0.01C: 0.1, gamma: 0.01C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: 3, min_samples_split: 10, n_estimators: 300max_depth: 10, min_samples_split: 2, n_estimators: 150max_depth: 5, min_samples_split: 2, n_estimators: 150max_depth: none, min_samples_split: 5, n_estimators: 1501LR_Hadamard, SVM_hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing the l2 operator; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 3
For replying interactions, new links between nodes from March 12 until April 12 in 2021.Table 4
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.968090.936170.957450.808510.968090.957450.946810.83511Acc_val0.968130.968130.972110.792830.972110.976100.956180.81275F1_tr + ts0.962020.925000.950620.775000.961540.950620.939020.81212F1_val0.968750.968500.972760.793650.972550.976560.957850.81569ROC_tr + ts0.992160.955310.952150.857140.992390.951440.952030.86089ROC_tr + ts0.988440.972000.970480.874220.988830.970600.970410.87689GMean_tr + ts0.970850.939740.963290.808000.968980.963290.953890.83995GMean_val0.967930.968060.971830.792830.971990.975900.955350.812601LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 5
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1,2.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.930850.941500.941490.94681Acc_val0.972110.948210.956180.96414F1_tr + ts0.919250.929940.929940.93902F1_val0.972550.946940.955470.96471ROC_tr + ts0.973730.984440.975200.99485ROC_ts0.979650.989210.982730.99683GMean_tr + ts0.935130.942480.942480.95389GMean_val0.971990.947910.956050.964021LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.(2) Modeling from Obtained Similarities between Nodes. For replying interactions from March 12 until April 12 in 2021, Table 6 displays the best obtained hyperparameters for each model using the similarity metrics between nodes indicated in 2.2.2. Table 7 depicts the performance metrics for each operator and model utilized. The results show that the best Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 5, and min.node.size = 1. This Accuracy is slightly higher than that achieved if the model is built using the obtained embedding applying Node2Vec. The study of other time periods has been incorporated in the Supplementary Material Document. At these times, a slightly better accuracy is obtained for the RF model with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1.Table 6
For replying interactions from March 12 until April 12 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 5; penalty: l1C: 0.1; gamma: 1num.trees = 300; mtry = 5Table 7
For replying interactions from March 12 until April 12 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.856380.936170.996Acc_val0.836000.936171F1_tr + ts0.852460.940000.99601F1_val0.827000.940001ROC_tr + ts0.954390.962470.99600ROC_ts0.836000.942051GMean_tr + ts0.855970.933990.99600GMean_val0.834380.9339911In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


### 3.1.2. Modeling the Retweeting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 8, the best obtained hyperparameters for each model utilizing Node2Vec for retweeting interactions from May 21 until May 26 in 2021 can be observed. Table 9 and Table 10 display the performance metrics for each operator and applied model. Figure 4 displays the new interactions in the aforementioned period; 2,581 new links were built. Additional time periods have been included in the Supplementary Material Document. Similarly to what happened in the replying interaction networks, for all analyzed time intervals, the best obtained model is SVM, applying the Hadamard operator. The hyperparameters of the model vary depending on the period. Particularly, the utilized hyperparameters for the period specified above were C: 10.0 and gamma: 0.01.Table 8
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models1.
LR_HadamardLR_l1LR_l2LR_avg}textttCs: 10, penalty: l2Cs: 10, penalty: l2Cs: 5, penalty: l2Cs: 20, penalty: l1SVM_HadamardSVM_l1SVM_l2SVM_avgC: 10.0, gamma: 0.01C: 0.01, gamma: 0.01C: 1.0, gamma: 0.01C: 100.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 3001LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator.Table 9
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.974170.958680.960740.730370.979340.961780.959710.73554Acc_val0.969020.955850.961270.779240.975210.962040.958170.77769F1_tr + ts0.974920.959100.961540.732860.979630.962510.960490.74245F1_val0.968200.953620.959940.769980.974360.960830.956660.77348ROC_tr + ts0.997720.974940.975340.796000.996460.974890.975410.80181ROC_ts0.994840.976560.976420.821490.992210.976310.975650.81815GMean_tr + ts0.973750.958650.960550.730340.979270.961610.959540.73507GMean_val0.969830.955780.961840.779130.975810.962690.958680.778401LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts,represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 10
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.966940.951450.947310.96901Acc_val0.966690.948880.951200.96669F1_tr + ts0.966740.951300.946930.96945F1_val0.964670.945360.947980.96541ROC_tr + ts0.995140.986810.986720.99576ROC_ts0.9916640.985620.985200.99601GMean_tr + ts0.966960.951470.947320.96893GMean_val0.966140.947830.950310.967131LR_Hadamard, SVM_Hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 4
For retweeting interactions, new links between nodes from May 21 until May 26 in 2021.(2) Modeling from Obtained Similarities between Nodes. For retweeting interactions from May 21 until May 26 in 2021, Table 11 displays the best obtained hyperparameters for each model using the similarity metrics according to 2.2.2. In Table 12, the performance metrics for each model used can be seen. More times are described in the Supplementary Material Document. The highest Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1. This accuracy is slightly higher than the one achieved for the best model using the obtained embeddings through Node2Vec. It can be noted that this happens for all analyzed times.Table 11
For retweeting interactions from May 21 until May 26 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 20; penalty: l1C: 0.1; gamma: 10num. trees = 300; mtry = 10Table 12
For retweeting interactions from May 21 until May 26 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.916320.957020.99400Acc_val0.913950.957130.99922F1_tr + ts0.919040.957950.99401F1_val0.917470.957950.99923ROC_tr + ts0.916320.956970.99400ROC_ts0.836000.957120.99920GMean_tr + ts0.915700.956760.99400GMean_val0.912960.956930.999221In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


### 3.1.3. Modeling the Quoting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 13, the best obtained hyperparameters for each model using Node2Vec for quoting interactions from April 12 until April 22 in 2021 are depicted. Table 14 and Table 15 show the performance metrics for each operator and model applied. Additional times are included in the Supplementary Material Document. Figure 5 shows the 12,651 new links between nodes for the aforementioned time period. The best value for the Accuracy is obtained utilizing the Hadamard operator, for the SVM model with hyperparameters max_depth: none, min_samples_split: 2, and n_estimators: 300. The SVM model using the Hadamard operator also exhibits the highest Accuracy for the rest of studied time intervals.Table 13
Utilizing the obtained embeddings for nodes and links through Node2Vec, best hyperparameters for LR, SVM, RF models, for quoting interaction April 12 until April 22 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 10, penalty: l2Cs: 10, penalty: l1Cs: 20, penalty: l1,Cs: 10, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 100.0, gamma: 0.01C: 1.0, gamma: 0.01,C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 2, n_estimators: 1501LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Table 14
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,3.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.987980.963740.969010.838530.987980.966480.967960.84275Acc_val0.985770.951780.955570.850280.986880.953360.954310.85296F1_tr + ts0.988040.963900.969320.843420.988040.966700.968330.84905F1_val0.985910.952440.956470.853700.987000.954070.955210.85819ROC_tr + ts0.996620.973970.973770.877310.996520.973730.973440.87393ROC_ts0.996710.956860.956710.878040.996480.956280.956260.87351GMean_tr + ts0.987970.963730.968960.837950.987980.966460.967890.84171GMean_val0.985730.951680.955350.849960.986830.953240.954100.852171LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2,;LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 15
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.988410.969440.970280.98714Acc_val0.985450.965060.965690.98957F1_tr + ts0.988360.969140.970020.98725F1_val0.985470.965000.965660.98966ROC_tr + ts0.999010.995890.996380.99928ROC_ts0.998640.994460.995240.99928GMean_tr + ts0.988400.969390.970240.98710GMean_val0.985460.965060.965690.989521In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Figure 5
For quoting interactions, new links between nodes from April 12 until April 22 in 2021.(3) Modeling from Obtained Similarities between Nodes. For quoting interactions from April 12 until April 22 in 2021, Table 16 depicts the best obtained hyperparameters for each model using the similarities between nodes. Table 17 displays the performance metrics for each operator and model utilized. The best accuracy is achieved for the RF model taking as hyperparameters num.trees = 150, mtry = 5, and min.node.size = 1. As in replying and retweeting interaction networks, a slightly higher accuracy than that received using the embedding calculated using Node2Vec is obtained. Other times are described in the Supplementary Material Document. For all times, a higher Accuracy for the RF model utilizing similarities as explanatory variables is also observed.Table 16
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 10; penalty: l1C: 0.1; gamma: 10num. trees = 150; mtry = 5.Table 17
For quoting interactions from April 12 until April 22 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models.
MetricsLRSVMRFAcc_tr + ts0.990880.850330.99800Acc_val0.989720.850340.99842F1_tr + ts0.990870.857450.99800F1_val0.989680.857450.99842ROC_tr + ts0.990880.852320.99800ROC_ts0,989720.850340.99840GMean_tr + ts0.990880.850020.99800GMean_val0.989720.848870.998421In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


## 3.1.1. Modeling the Replying Interactions

Link formation for each type of interaction is modeled at various time periods. This is because, particularly in retweeting and quoting networks, a high number of links exist from March to May 2021. The days on which tweets were downloaded for the periods analyzed are detailed in the Supplementary Material Document.(1) Modeling from Obtained Embeddings Using Node2Vec. Table 3 depicts the best hyperparameters for each model using Node2Vec for replying interactions from March 11 until April 10, 2021. Figure 3 shows the new interactions for that time (503 new links were formed). Tables 4 and 5 display the performance metrics for each operator and model used. According to the results, the model that exhibits a higher Accuracy is the SVM model. Specifically, operator l1 is utilized and hyperparameters are taken as C: 0.01 and gamma: 0.01. More periods of analysis are included in the Supplementary Material Document. At those times, the best model was also SVM but using the Hadamard operator, which exhibits a slight difference with respect to operator l1, hyperparameters are taken as C: 100.0 and gamma: 0.01. However, as we see later, a better Accuracy is obtained for both cases by using the similarities between nodes as explanatory variables.Table 3
Utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models for replying interaction from March 12 until April 12 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 20, penalty: l1Cs: 5, penalty: l1Cs: 20, penalty: l2Cs: 5, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 0.01, gamma: 0.01C: 0.1, gamma: 0.01C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: 3, min_samples_split: 10, n_estimators: 300max_depth: 10, min_samples_split: 2, n_estimators: 150max_depth: 5, min_samples_split: 2, n_estimators: 150max_depth: none, min_samples_split: 5, n_estimators: 1501LR_Hadamard, SVM_hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing the l2 operator; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 3
For replying interactions, new links between nodes from March 12 until April 12 in 2021.Table 4
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.968090.936170.957450.808510.968090.957450.946810.83511Acc_val0.968130.968130.972110.792830.972110.976100.956180.81275F1_tr + ts0.962020.925000.950620.775000.961540.950620.939020.81212F1_val0.968750.968500.972760.793650.972550.976560.957850.81569ROC_tr + ts0.992160.955310.952150.857140.992390.951440.952030.86089ROC_tr + ts0.988440.972000.970480.874220.988830.970600.970410.87689GMean_tr + ts0.970850.939740.963290.808000.968980.963290.953890.83995GMean_val0.967930.968060.971830.792830.971990.975900.955350.812601LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 5
For replying interaction from March 12 until April 12 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1,2.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.930850.941500.941490.94681Acc_val0.972110.948210.956180.96414F1_tr + ts0.919250.929940.929940.93902F1_val0.972550.946940.955470.96471ROC_tr + ts0.973730.984440.975200.99485ROC_ts0.979650.989210.982730.99683GMean_tr + ts0.935130.942480.942480.95389GMean_val0.971990.947910.956050.964021LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.(2) Modeling from Obtained Similarities between Nodes. For replying interactions from March 12 until April 12 in 2021, Table 6 displays the best obtained hyperparameters for each model using the similarity metrics between nodes indicated in 2.2.2. Table 7 depicts the performance metrics for each operator and model utilized. The results show that the best Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 5, and min.node.size = 1. This Accuracy is slightly higher than that achieved if the model is built using the obtained embedding applying Node2Vec. The study of other time periods has been incorporated in the Supplementary Material Document. At these times, a slightly better accuracy is obtained for the RF model with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1.Table 6
For replying interactions from March 12 until April 12 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 5; penalty: l1C: 0.1; gamma: 1num.trees = 300; mtry = 5Table 7
For replying interactions from March 12 until April 12 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.856380.936170.996Acc_val0.836000.936171F1_tr + ts0.852460.940000.99601F1_val0.827000.940001ROC_tr + ts0.954390.962470.99600ROC_ts0.836000.942051GMean_tr + ts0.855970.933990.99600GMean_val0.834380.9339911In cross-validation procedure: Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


## 3.1.2. Modeling the Retweeting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 8, the best obtained hyperparameters for each model utilizing Node2Vec for retweeting interactions from May 21 until May 26 in 2021 can be observed. Table 9 and Table 10 display the performance metrics for each operator and applied model. Figure 4 displays the new interactions in the aforementioned period; 2,581 new links were built. Additional time periods have been included in the Supplementary Material Document. Similarly to what happened in the replying interaction networks, for all analyzed time intervals, the best obtained model is SVM, applying the Hadamard operator. The hyperparameters of the model vary depending on the period. Particularly, the utilized hyperparameters for the period specified above were C: 10.0 and gamma: 0.01.Table 8
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, best hyperparameters for LR, SVM, and RF models1.
LR_HadamardLR_l1LR_l2LR_avg}textttCs: 10, penalty: l2Cs: 10, penalty: l2Cs: 5, penalty: l2Cs: 20, penalty: l1SVM_HadamardSVM_l1SVM_l2SVM_avgC: 10.0, gamma: 0.01C: 0.01, gamma: 0.01C: 1.0, gamma: 0.01C: 100.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 150max_depth: 10, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 3001LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator.Table 9
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,2.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.974170.958680.960740.730370.979340.961780.959710.73554Acc_val0.969020.955850.961270.779240.975210.962040.958170.77769F1_tr + ts0.974920.959100.961540.732860.979630.962510.960490.74245F1_val0.968200.953620.959940.769980.974360.960830.956660.77348ROC_tr + ts0.997720.974940.975340.796000.996460.974890.975410.80181ROC_ts0.994840.976560.976420.821490.992210.976310.975650.81815GMean_tr + ts0.973750.958650.960550.730340.979270.961610.959540.73507GMean_val0.969830.955780.961840.779130.975810.962690.958680.778401LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts,represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 10
For retweeting interaction from May 21 until May 26 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.966940.951450.947310.96901Acc_val0.966690.948880.951200.96669F1_tr + ts0.966740.951300.946930.96945F1_val0.964670.945360.947980.96541ROC_tr + ts0.995140.986810.986720.99576ROC_ts0.9916640.985620.985200.99601GMean_tr + ts0.966960.951470.947320.96893GMean_val0.966140.947830.950310.967131LR_Hadamard, SVM_Hadamard, and RF_hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Figure 4
For retweeting interactions, new links between nodes from May 21 until May 26 in 2021.(2) Modeling from Obtained Similarities between Nodes. For retweeting interactions from May 21 until May 26 in 2021, Table 11 displays the best obtained hyperparameters for each model using the similarity metrics according to 2.2.2. In Table 12, the performance metrics for each model used can be seen. More times are described in the Supplementary Material Document. The highest Accuracy is obtained for the RF model, with hyperparameters num.trees = 300, mtry = 10, and min.node.size = 1. This accuracy is slightly higher than the one achieved for the best model using the obtained embeddings through Node2Vec. It can be noted that this happens for all analyzed times.Table 11
For retweeting interactions from May 21 until May 26 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 20; penalty: l1C: 0.1; gamma: 10num. trees = 300; mtry = 10Table 12
For retweeting interactions from May 21 until May 26 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models1.
MetricsLRSVMRFAcc_tr + ts0.916320.957020.99400Acc_val0.913950.957130.99922F1_tr + ts0.919040.957950.99401F1_val0.917470.957950.99923ROC_tr + ts0.916320.956970.99400ROC_ts0.836000.957120.99920GMean_tr + ts0.915700.956760.99400GMean_val0.912960.956930.999221In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


## 3.1.3. Modeling the Quoting Interactions

(1) Modeling from Obtained Embeddings using Node2Vec. In Table 13, the best obtained hyperparameters for each model using Node2Vec for quoting interactions from April 12 until April 22 in 2021 are depicted. Table 14 and Table 15 show the performance metrics for each operator and model applied. Additional times are included in the Supplementary Material Document. Figure 5 shows the 12,651 new links between nodes for the aforementioned time period. The best value for the Accuracy is obtained utilizing the Hadamard operator, for the SVM model with hyperparameters max_depth: none, min_samples_split: 2, and n_estimators: 300. The SVM model using the Hadamard operator also exhibits the highest Accuracy for the rest of studied time intervals.Table 13
Utilizing the obtained embeddings for nodes and links through Node2Vec, best hyperparameters for LR, SVM, RF models, for quoting interaction April 12 until April 22 in 20211.
LR_HadamardLR_l1LR_l2LR_avgCs: 10, penalty: l2Cs: 10, penalty: l1Cs: 20, penalty: l1,Cs: 10, penalty: l2SVM_HadamardSVM_l1SVM_l2SVM_avgC: 100.0, gamma: 0.01C: 100.0, gamma: 0.01C: 1.0, gamma: 0.01,C: 10.0, gamma: 0.01RF_HadamardRF_l1RF_l2RF_avgmax_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 5, n_estimators: 100max_depth: none, min_samples_split: 2, n_estimators: 300max_depth: none, min_samples_split: 2, n_estimators: 1501LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF models using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2; LR_average, SVM_average, and RF_average: LR, SVM, and RF applying the average operator.Table 14
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the LR and SVM models with operators Hadamard, l1, l2, and average1,3.
MetricsLR_HadamardLR_l1LR_l2LR_avgSVM_HadamardSVM_l1SVM_l2SVM_avgAcc_tr + ts0.987980.963740.969010.838530.987980.966480.967960.84275Acc_val0.985770.951780.955570.850280.986880.953360.954310.85296F1_tr + ts0.988040.963900.969320.843420.988040.966700.968330.84905F1_val0.985910.952440.956470.853700.987000.954070.955210.85819ROC_tr + ts0.996620.973970.973770.877310.996520.973730.973440.87393ROC_ts0.996710.956860.956710.878040.996480.956280.956260.87351GMean_tr + ts0.987970.963730.968960.837950.987980.966460.967890.84171GMean_val0.985730.951680.955350.849960.986830.953240.954100.852171LR_Hadamard, SVM_Hadamard, and RF_Hadamard: LR, SVM, and RF using the Hadamard operator. LR_l1, SVM_l1, and RF_l1: LR, SVM, and RF models using operator l1; LR_l2, SVM_l2, and RF_l2: LR, SVM, and RF models utilizing operator l2,;LR_average, SVM_average, and RF_average: LR, SVM, and RF models applying the average operator. 2In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Table 15
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained embeddings through Node2Vec, performance of the RF model with operators Hadamard, l1, l2, and average1.
MetricsRF_HadamardRF_l1RF_l2RF_avgAcc_tr + ts0.988410.969440.970280.98714Acc_val0.985450.965060.965690.98957F1_tr + ts0.988360.969140.970020.98725F1_val0.985470.965000.965660.98966ROC_tr + ts0.999010.995890.996380.99928ROC_ts0.998640.994460.995240.99928GMean_tr + ts0.988400.969390.970240.98710GMean_val0.985460.965060.965690.989521In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.Figure 5
For quoting interactions, new links between nodes from April 12 until April 22 in 2021.(3) Modeling from Obtained Similarities between Nodes. For quoting interactions from April 12 until April 22 in 2021, Table 16 depicts the best obtained hyperparameters for each model using the similarities between nodes. Table 17 displays the performance metrics for each operator and model utilized. The best accuracy is achieved for the RF model taking as hyperparameters num.trees = 150, mtry = 5, and min.node.size = 1. As in replying and retweeting interaction networks, a slightly higher accuracy than that received using the embedding calculated using Node2Vec is obtained. Other times are described in the Supplementary Material Document. For all times, a higher Accuracy for the RF model utilizing similarities as explanatory variables is also observed.Table 16
For quoting interactions from April 12 until April 22 in 2021, utilizing the obtained similarities between nodes, best hyperparameters for LR, SVM, and RF models.
LRSVMRFCs: 10; penalty: l1C: 0.1; gamma: 10num. trees = 150; mtry = 5.Table 17
For quoting interactions from April 12 until April 22 in 2021, utilizing the similarities between nodes, performance of the LR, SVM, and RF models.
MetricsLRSVMRFAcc_tr + ts0.990880.850330.99800Acc_val0.989720.850340.99842F1_tr + ts0.990870.857450.99800F1_val0.989680.857450.99842ROC_tr + ts0.990880.852320.99800ROC_ts0,989720.850340.99840GMean_tr + ts0.990880.850020.99800GMean_val0.989720.848870.998421In cross-validation procedure, Acc_tr + ts, F1_tr + ts, ROC_tr + ts, and GMean_tr + ts represent the average Accuracy, F1, ROC, and GMean. In final validation, Acc_val, F1_val, ROC_val, and GMean_val symbolize Accuracy, F1, ROC, and GMean.


## 4. Community Analysis

Tables18, 19, and 20 show a summary of the three used metrics for the evaluation of the community detection algorithms. The number of communities identified in each method is also shown. We choose the method that gives a good value for all the performance parameters considered and also provides a smaller number of communities.Table 18
For replying interaction networks from March 11 until May 26 in 2021, useful metrics for evaluation of the community detection algorithms, and number of communities identified in each.
MethodModularityPerformanceCoverageNumber of communitiesLouvain0.951590.975360.9775651LPA0.792190.994170.79979537Leiden0.952520.976250.97756537Surprise0.888170.993760.89633269Table 19
For quoting interaction networks from March 11 until May 26 in 2021, useful metrics for evaluation of the community detection algorithms, and number of communities identified in each.
MethodModularityPerformanceCoverageNumber of communitiesLouvain0.888740.958350.92848196LPA0.745470.973170.7667210138Leiden0.891860.959170.9306710138Surprise0.632400.999450.6385823940Table 20
For retweeting interactions network from March 8 until May 26 in 2021, useful metrics for evaluation of the community detection algorithms, and number of communities identified in each.
MethodModularityPerformanceCoverageNumber of communitiesLouvain0.843130.947970.89374337LPA0.693600.972070.7161827,133Leiden0.851690.948880.9004627,133Surprise0.583740.999810.5880960,301Once the candidate algorithms to be used for the community detection were analyzed and having selected one of them as the most appropriate, the probability cumulative distribution of hashtags for all interaction networks was checked, both globally and by community. Figures6–8 and 9 show the collected results. Over the total of 631,027 analyzed tweets, only 28,952 containing hashtags were identified (18,439 retweeting, 10,333 quoting, and 180 replying). All hashtags were formatted from #Word 1 Word 2….Word tw to Word 1_Word 2…._Word tw, where tw is the maximum number of words in each tweet. Those hashtags found more than 100 times in retweeting interactions were as follows: “C_O_P26,” “C_E_Ebill,” “environment,” “C_O_P26,” “C_E_E_Bill,” “Earth_Day,” “C_O_V_I_D19,” and “Clean_Delhi.” The most frequently used hashtag in replying interactions was “Climate_Brawl” which was contained 22 times. “C_O_P26,” “C_E_Ebill,” “C_O_P26,” and “C_E_E_Bill” hashtags are detected more than 100 times in quoting interactions. Figure 10 shows the word cloud representation of hashtags per interaction type.Figure 6
For replying (a), retweeting (b), and quoting (c) interactions, histograms of hashtags.
(a)(b)(c)Figure 7
For replying (a), retweeting (b), and quoting (c) interactions, cumulative distribution of hashtags.
(a)(b)(c)Figure 8
For replying (a), retweeting (b), and quoting (c) interactions, histograms of hashtags by community.
(a)(b)(c)Figure 9
For replying, retweeting, and quoting interactions, cumulative distribution of hashtags by community.Figure 10
For replying (a), retweeting (b), and quoting (c) interactions, word cloud representation of hashtags.
(a)(b)(c)


## 5. Conclusions

Climate change and its effects are a relevant topic today. This concern has been highlighted in various international initiatives such as 2030 Agenda for Sustainable Development established by the United Nations [60], the climate emergency declared by the European Parliament [40], or the Net Zero World initiative established by the United States [61]. Social networks are a good chance for people to voice their opinions. Twitter is a social network that has more than 340 million users [62], and, for this reason, the analysis of the interactions that happen on such a site can have a high relevance. We detect that the replying, retweeting, and quoting interaction networks can be appropriately described through two models:(i)
An SVM model that utilizes the embeddings provided by Node2Vec algorithm and the Hadamard operator.(ii)
An RF model that uses as explanatory variables certain metrics describing the similarities between nodes.We found the most relevant used hashtags by type of interaction and also found that the cumulative probability distributions of hashtags by community are similar. Globally, the cumulative distributions of replying and retweeting interactions exhibit a different pattern. To gain a better understanding of Twitter interactions on such a relevant issue as climate change, this investigation can be continued in several ways:(i)
An inspection of the evolution of temporal cooperation in the interaction networks can be performed using the conventional evolutionary game theory.(ii)
An analysis of the diffusion mechanisms as well as an examination of the dynamics of opinion formation can be performed. The above will make it possible to study the extent to which an opinion can be manipulated by algorithmic procedures (bots) as well as the effects that the structure of the interaction networks could have on it.



---

*Source: 8924468-2022-06-20.xml*