<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Predicting interval time for reciprocal link creation using survival analysis</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10080638</idno>
					<idno type="doi">10.1007/s13278-018-0494-1</idno>
					<title level='j'>Social Network Analysis and Mining</title>
<idno>1869-5450</idno>
<biblScope unit="volume">8</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Vachik S. Dave</author><author>Mohammad Al Hasan</author><author>Baichuan Zhang</author><author>Chandan K. Reddy</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The majority of directed social networks, such as Twitter, Flickr and Google+, exhibit reciprocal altruism, a social psychology phenomenon, which drives a vertex to create a reciprocal link with another vertex which has created a directed link toward the former. In existing works, scientists have already predicted the possibility of the creation of reciprocal link-a task known as "reciprocal link prediction". However, an equally important problem is determining the interval time between the creation of the first link (also called parasocial link) and its corresponding reciprocal link. No existing works have considered solving this problem, which is the focus of this paper. Predicting the reciprocal link interval time is a challenging problem for two reasons: First, there is a lack of effective features, since well-known link prediction features are designed for undirected networks and for the binary classification task; hence, they do not work well for the interval time prediction; Second, the presence of ever-waiting links (i.e., parasocial links for which a reciprocal link is not formed within the observation period) makes the traditional supervised regression methods unsuitable for such data. In this paper, we propose a solution for the reciprocal link interval time prediction task. We map this problem to a survival analysis task and show through extensive experiments on real-world datasets that survival analysis methods perform better than traditional regression, neural networkbased models and support vector regression for solving reciprocal interval time prediction.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Reciprocity is a phenomenon in social psychology which mandates that people should repay voluntarily what another person has provided for them. It is different from altruism <ref type="bibr">(Anand et al. 2013)</ref> in the way that reciprocity follows from others' initial action, while altruism is a spontaneous action of gift-giving without the hope or expectation of future positive responses. There also exists another social psychology, named reciprocal altruism, which is a behavior whereby one performs an act of gift-giving with the expectation that the receiving person will act in a similar manner at a later time <ref type="bibr">(Trivers 1971</ref>). People's day-to-day activities on online social networks are filled with many examples of reciprocal altruism: we follow a friend's Twitter feed with the hope that he will follow back our feed; we like a friend's Facebook posts or her Flicker images with the expectation that she will do the same; we endorse our friends for their technical skill in LinkedIn hoping that they will return the favor in a similar manner.</p><p>However, reciprocity usually is in conflict with another social phenomenon called social stratification, which favors hierarchical arrangement of people in a society based on various factors such as power, wealth and reputation <ref type="bibr">(Hopcroft et al. 2011</ref>). This phenomenon is prevalent in online social networks as well, but in a different manner. Apparently, for such networks, the social hierarchy is reflected in various prestige metrics which rank vertices based on their topological bearings, such as PageRank and in-degree. Given this hierarchical arrangement in an online social network, people who are higher up in the hierarchy are sometimes reluctant to perform a reciprocal act for an individual who is lower in the hierarchy; they instead defer the reciprocal action to a later time, or sometimes indefinitely.</p><p>For reciprocal link creation, understanding the criteria which control the interval time and building learning models which predict the interval time are important. From a research standpoint, such studies help scientists to understand the interaction between reciprocity and social stratification phenomena. From the perspective of real-life applications in social network analysis, such prediction models enable better link suggestions, where the interval time is also factored in within the suggestion. Reciprocity, along with the interval time for reciprocal link creation, is particularly important for recommendation in online dating systems <ref type="bibr">(Xia et al. 2015)</ref>.</p><p>The majority of existing works on link prediction assume an undirected network <ref type="bibr">(Hasan and Zaki 2011;</ref><ref type="bibr"/> Valverde-Rebaza and de Andrade Lopes 2013), in which the concept of reciprocal edges does not exist. A few works consider reciprocal link prediction <ref type="bibr">(Hopcroft et al. 2011;</ref><ref type="bibr">Gong and Xu 2014)</ref> in a directed network where the prediction is binary, yielding a yes/no answer to the question of whether a reciprocal link will be created within a fixed observation window. Several other works utilize reciprocity as a tool for network compression <ref type="bibr">(Chierichetti et al. 2009</ref>) and information propagation in social networks <ref type="bibr">(Zhu et al. 2014)</ref>. Reciprocal links also influence the degree correlations in complex networks; hence, they play an important part in modeling the growth of directed social networks <ref type="bibr">(Zlati&#263; and &#352;tefan&#269;i&#263; 2009)</ref>. However, none of the existing works consider predicting the interval time for the creation of a reciprocal edge.</p><p>Extending a model which solves a binary class reciprocal link prediction problem to a model which predicts the interval time of reciprocal links is non-trivial. The major challenge for interval time prediction is that typical link prediction features for an undirected network, such as common neighbors, Jaccard's similarity and Adamic-Adar, do not have a well-defined counterpart for directed networks, which makes interval prediction a difficult task. Additionally, for generating the training data for building a prediction model, a network is observed for a finite time window, and the absence of a reciprocal link within that time window does not necessarily mean the absence of that reciprocal edge, because a reciprocal edge might have formed outside (after) the observation time window. This yields numerous right-censored data instances, for which the target variable, i.e., the reciprocal link formation time is not available. Traditional supervised regression models cannot include censored data instances in the training data and hence perform poorly in predicting reciprocal link creation time.</p><p>We explain the cases of right-censored data instances in reciprocal interval time prediction task using a toy example shown in Fig. <ref type="figure">1</ref>. In this figure we show a small part of an email communication network consisting of only three vertices representing three persons, A, B and C. Our observation period of this network has five timestamps, T1 to T5. At T1, C sends an email to B, thus creating the first of the directed links (such links are called parasocial links). At T 2 , the para- social link from A to B is created. At T3, the reciprocal link from B to C is created; thus, the interval time of this edge is T3 -T1 . At T3, another parasocial link ( B &#8594; C ) is cre- ated. More links are created in subsequent time intervals T4 and T5. At T5, we reach the end of our observation period, but the reciprocal link from C to A is yet to be created. The potential reciprocal link C &#8594; A is an instance of right-cen- sored data for which we only know that the interval time is higher than T5 -T1 ; this value, as well, can be infinity in the case that the link is never created. Either way, the exact value of the target variable for this reciprocal edge is unknown. Unfortunately, for any reasonable observation time window, a significantly large number of potential reciprocal links are censored data instances, which is the main challenge for the task of reciprocal link creation time prediction.</p><p>In this work, we present a supervised learning model for predicting the interval time for the creation of a reciprocal edge between a pair of vertices in an online social network, given that a parasocial edge already exists between the vertex pair. We study real-life networks and validate a collection of topological features that may influence the reciprocal edge creation time. Then, we design the prediction task as a survival analysis problem and propose five censored regression models. Our experimental results show that Cox regression performs better than traditional supervised learning models for reciprocal link prediction. This is an extended version of our previous paper <ref type="bibr">(Dave et al. 2017)</ref>, which is published in 11th International Conference on Web and Social Media (ICWSM).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related works</head><p>The traditional binary classification task of link prediction has received enormous attention over the years since the inception of this problem by <ref type="bibr">Liben-Nowell and Kleinberg (2003)</ref>. Over the years researchers have solved the link prediction problem for a variety of graphs-for example link prediction in homogeneous networks <ref type="bibr">(Hasan et al. 2006;</ref><ref type="bibr">Liaghat et al. 2013;</ref><ref type="bibr">Wang et al. 2017b)</ref>, link prediction in heterogeneous information networks <ref type="bibr">(Sun et al. 2011;</ref><ref type="bibr">Dong et al. 2012</ref>) and link prediction for knowledge graphs <ref type="bibr">(Dong et al. 2014;</ref><ref type="bibr">Zhang et al. 2016)</ref>. Other related problems, such as link/sign prediction and ranking in signed social network <ref type="bibr">(Song and Meyer 2015;</ref><ref type="bibr">Symeonidis and Mantas 2013</ref>) and a recommendation system using link prediction techniques <ref type="bibr">(Esslimani et al. 2011)</ref>, have also been studied.</p><p>Reciprocal link prediction is a variant of link prediction which works on directed networks. Even though the majority of social and communication graphs are directed, only a few works exist which consider predicting reciprocal links. In one of the earliest works, <ref type="bibr">Hopcroft et al. (2011)</ref> predicted reciprocal edges in a Twitter network. However, many of the features that they proposed are too specific to the Twitter dataset and do not apply to a generic directed network. <ref type="bibr">Gong and Xu (2014)</ref> compared reciprocal and parasocial link creation in Google+ and Flickr datasets and solved the reciprocal link prediction problem as an outlier detection task using one-class SVM. Authors of <ref type="bibr">(Cheng et al. 2011</ref>) compared structural differences of reciprocal links and parasocial links, and they also studied a Twitter dataset and corresponding node features to predict reciprocal links.</p><p>In another work <ref type="bibr">(Feng et al. 2014)</ref>, the authors reported that the majority of reciprocating links are created within a very short time after the creation of corresponding parasocial links. <ref type="bibr">Dumba et al. (2016)</ref> studied the structural properties of a reciprocal network and discussed user behavior patterns.</p><p>A closely related problem to reciprocal link prediction is online dating recommendation. There exist a few works that solve this problem, mainly by using traditional recommendation methods with novel feature extraction processes. For example, in <ref type="bibr">(Zhao et al. 2014</ref>) the authors modified the classical collaborative filtering method for the dating recommendation task. <ref type="bibr">Xia et al. (2015</ref><ref type="bibr">Xia et al. ( , 2016) )</ref> proposed different reciprocal score matrices and used them with collaborative filtering for recommendation. The authors in <ref type="bibr">(Tu et al. 2014)</ref> proposed an LDA (latent Dirichlet allocation)-based approach to learn latent preferences of users with two side matching-based recommendation. Recently, <ref type="bibr">Zang et al. (2017)</ref> proposed a method that extracts profile-based features, topological features and preference features from a dating social network for recommendation. All the existing works discussed so far target the binary classification problem, which predicts whether the reciprocal link will be created or not. On the other hand, our work targets the prediction of time, which is more difficult than the binary classification problem. To the best of our knowledge, there are only two works that target the time prediction problem; the first one is by <ref type="bibr">Sun et al. (2012)</ref> and the second by <ref type="bibr">Li et al. (2016)</ref>. In both of these works, the authors have extracted unique features for a DBLP-like (author paper) heterogeneous network. Y. Sun et al. proposed meta-path-based topological features and used a generalized linear model (GLM) for the prediction task. Similarly, M. Li et al. proposed a novel time difference labeled path (TDLP)-based method for the knowledge graph. Both methods are designed specifically for DBLP-like networks; hence, they are difficult to apply to other networks. On the other hand, our method is applicable to any general directed network to predict time of a reciprocal link.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Our methodology</head><p>In this section, we first define the problem of reciprocal link time prediction (RLTP). Then we present some insight of three real-world datasets that we have used in this work. Then we explain how the RLTP can be solved by using a survival analysis framework. After that we discuss different survival analysis methods which we have used for solving the RLTP problem. Finally, we provide algorithmic representation of the proposed framework. The objective of the RLTP problem is to predict the time of a reciprocal link for the given parasocial link with time. The interval time for a reciprocal link (u, v) is defined as Int(u, v) = t uvt vu . Our model for the RLTP problem actu- ally predicts Int(u, v), instead of predicting t uv (the reciprocal link creation time). Nevertheless, the reciprocal link creation time t uv can be obtained from the model by using the expres- sion t vu + Int <ref type="bibr">(u, v)</ref> . The advantage of predicting Int(u, v) instead of predicting t uv is that for predicting <ref type="bibr">Int(u, v)</ref> we do not need to use the parasocial link creation time t vu as part of input of the model, which makes the model independent of temporal bias. Thus, the supervised model of our proposed RLTP task uses only the topological features of an edge (u, v) as its covariates and the interval time <ref type="bibr">Int(u, v)</ref> as its target variable, making the model simple.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Problem formulation</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Dataset study</head><p>In this section, we discuss the datasets that we use in our study. We also provide some statistical analysis of the datasets; specifically, for each of these datasets, we provide the empirical distribution of observed interval time and its goodness of fit with known statistical distributions. For the Enron dataset, the persons (along with their rank in the company) associated with a vertex is known, so in this dataset we have also performed a qualitative study by checking for the evidences of social stratification phenomenon, which we present at the end of this section.</p><p>We used three real-world directed network datasets for our study. We selected datasets where reciprocal link creation is an important (meaningful) event; another selection criterion is that the datasets should have a sufficient number of reciprocal links to train and test the models <ref type="bibr">(Kuhnt and Brust 2014)</ref>. Our first dataset, Epinion is a trust network where a directed link from one vertex to another represents the fact that the former trusts the latter. The RLTP task for this dataset is to find the time at which a trusted person acknowledges that (s)he also holds a similar sentiment toward the other person. The dataset was collected from KONECT web page. <ref type="foot">1</ref> We have also collected two email datasets: MC-Email<ref type="foot">foot_1</ref> and Enron. Both of these datasets are email communication networks from two distinct enterprises, and for these datasets the RLTP task is to predict the response time for an email. More information on these datasets is provided in Table <ref type="table">1</ref>, where |V|, |E|, |T| and Recipro are the number of vertices, the number of edges, the number of timestamps (in days) and the reciprocity of the dataset within the observation window, respectively.</p><p>For these three datasets, we plot the histogram of the interval time for reciprocal links in log scale (Fig. <ref type="figure">2</ref>). We observed that the majority of the responses are received within a short period of time (within 10 days or less).</p><p>However, there also exist a few late responders whose reply time is much larger than the average reply time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1">Modeling interval time using parametric distribution</head><p>From the distribution plots in Fig. <ref type="figure">2</ref>, we observe that the number of reciprocal link instances reduces exponentially with the increment of the interval time (note that, y-axis is in log scale). Hence, we fit different exponential family distributions to model the time interval of reciprocal link for all three datasets. Specifically, we fit exponential distribution, normal distribution, logistic distribution, lognormal distribution, log-logistic distribution and Weibull distribution. To evaluate the goodness of fit we use the following four metrics: Kolmogorov-Smirnov (KS) statistic, Cramer-von Mises (CM) statistic, Akaike's information criterion (AIC) <ref type="bibr">(Akaike 1998</ref>) and Bayesian information criterion (BIC) <ref type="bibr">(Schwarz 1978</ref>). In Fig. <ref type="figure">3</ref>, we show the quality of fitting results. The results of BIC are very similar to AIC for all three datasets, so we did not show the results of BIC. As depicted in Fig. <ref type="figure">3</ref>, exponential, normal and logistic distributions (shown in red) have relatively high distance from empirical distribution compared to log-normal, log-logistic and Weibull distributions (shown in black). For the Enron dataset, Weibull distribution performs the best over all metrics. Similarly, for the Epinion and the MC-Email datasets  log-logistic distribution fits the best. Results of log-normal distribution are very similar to both Weibull and log-logistic distributions. Hence, we use log-normal, log-logistic and Weibull distributions for parametric survival models, which are discussed later in Sect. 3.5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2">Social stratification in Enron</head><p>One of the influencing factors for late responses to a specific user is social stratification-particularly in corporations, people tend to give quicker replies to their superior as compared to their colleagues and other juniors. We study the Enron dataset, for which the employee details are available with email communications. In the dataset, "Louise Kitchen" is a president; we observed that her email replying practice follows social stratification phenomenon. She generally takes more than 2-3 days to reply to people with lower ranking positions such as vice-president (VP), employees, etc. For example, she replied to VPs "Kevin Presto", "James Steffes" and "Fletcher Sturm" in 3, 6 and 19 days, respectively. She replied to "Sally Beck" (Chief Operating Officer) in 5 days. On the other hand, she replied to "David Delainey" (Chief Executive Officer (CEO)) on the same (0) day. Another example is "Philip Allen", who is a manager; he replied within a day to higher ranking officers such as "David Delainey" (CEO), "Barry Tycholiz" (VP), "Hunter Shively" (VP) and "Richard Shapiro" (VP). On the other hand, he took 2 to 3 days to reply to "Michael Grigsby" (manager), "Jay Reitmeyer" (employee) and "Matthew Lenhart" (employee).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Topological feature study</head><p>In online social networks, user behavior-based features are useful for solving different problems, such as link prediction (Valverde-Rebaza and de Andrade Lopes 2013), personality prediction <ref type="bibr">(Adal&#305; and Golbeck 2014)</ref>, user attribute prediction <ref type="bibr">(Tuna et al. 2016)</ref>, link sign prediction <ref type="bibr">(Shahriari et al. 2016)</ref>, prediction of positive and negative users in Twitter <ref type="bibr">(Roshanaei and Mishra 2015)</ref>, etc. Hence, we believe social (behavioral) phenomena-based topological features can contribute substantially to solve the RLTP problem. Though there are works that study and design user behavior features such as topic-specific modeling <ref type="bibr">(Bogdanov et al. 2014</ref>), a behavioral model for Facebook wall posts <ref type="bibr">(Devineni et al. 2017)</ref>, etc., we assume to have only topological information. Topological features that we use come from two different social phenomena: directed altruism and social stratification. Below we discuss them in two different sections.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.1">Directed altruism-based features</head><p>Directed altruism in social networks is described in <ref type="bibr">Leider et al. (2007)</ref>, where the authors have argued that people are more generous to friends and friends of friends than to a complete stranger. This phenomenon also reflects in people's reciprocal link creation behavior. Below, we define some topological features which quantify the directed altruism phenomena for reciprocal link prediction.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Shortest directed distance:</head><p>In our problem, one directional link (v, u) already exists, and we are predicting the creation time for the reverse link <ref type="bibr">(u, v)</ref>. Generally people are more generous to indirect friends than complete strangers. Hence, u is more likely to respond quickly to v for small value of the directed distance from u to v, i.e.,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Common in/out neighbors count:</head><p>The number of common neighbors is a frequently used topological feature for the link prediction task in undirected networks; however, for directed graphs, we have two separate features: common in-neighbors and common out-neighbors. Both of these topological features capture the idea that if a user has more common neighbors with another user, then she is more likely to reply fast. Also, more common friends increase the network flow, which is an important factor for building trust <ref type="bibr">(Leider et al. 2007</ref>) and with higher trust people tend to reply faster.</p><p>Jaccard coefficient (In/Out): The Jaccard coefficient is another widely used topological feature for undirected networks. It is the normalized version of common neighbors counts. Similar to the common neighbor count feature, this feature also split into two features due to the directed-ness of the edges. Jaccard coefficients help to predict the trust level between two nodes. Since, higher trust leads to faster response, this is a good feature for the RLTP task.</p><p>Local reciprocity: In (Gong and Xu 2014), the authors studied two local reciprocity features and they showed relative influence of both features on linking back probability. The first is acceptance local reciprocity (ALR), which is defined as:</p><p>We compute ALR for the head node (v) of the reciprocal link <ref type="bibr">(u, v)</ref>. This feature captures the tendency of node v to accept a link. The second feature is request local reciprocity (RLR), defined as:</p><p>We compute RLR for the tail node (u) of the reciprocating link <ref type="bibr">(u, v)</ref>. RLR represents the response behavior of the node u and captures its tendency to initiate a reciprocal link.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.2">Social stratification-based features</head><p>It is observed that in online social networks people behave according to their status in the network <ref type="bibr">(Hopcroft et al. 2011)</ref>. A similar behavior is observed in many real-world applications, such as the one described in Sect. 3.2 or in online dating <ref type="bibr">(Xia et al. 2013)</ref>. We have also shown evidence of social stratification in Enron dataset, specifically in connection to the RLTP task. The following topological features quantify the extent of social stratification that is practiced by the node u or v. Preferential attachment: This feature computes a value which reflects the social stratification induced rank order of a given node. The basic idea of preferential attachment is to give more weight to the higher degree nodes. Traditionally, preferential attachment has been computed for undirected networks, so we change the formula to adapt it for directed networks. For undirected graph, it is simply the product of the degrees of the node u and v. For directed graph, we take the product of the out-degree of the tail node (u) and the indegree of the head node (v) of a prospective reciprocal link (u, v). The formula is given below: Preferential Jaccard (PrefJacc) is inspired by both preferential attachment and Jaccard coefficient. It is a trade-off between two concepts-first, high degree nodes are prone to create more edges, and second, nodes prefer to connect with similar nodes (social stratification). Both these phenomena can influence reciprocal edge creation. We calculated Pref-Jacc by using the following equation:</p><p>In/out ratio: A node in the upper hierarchy has a tendency to a create reciprocal edges with other nodes at the same hierarchy level than to nodes which are at a lower hierarchy level <ref type="bibr">(Hopcroft et al. 2011</ref>). To reflect this knowledge in our model, we need to find an efficient way for comparing the hierarchy of a pair of nodes, which we compute by the ratio of their in-degrees and the ratio of their out-degrees. Higher InRatio is indicative of higher tendency of the numerator node to attract links compared to the denominator node;</p><p>similarly, higher OutRatio represents a higher tendency of the numerator node to create links compared to the denominator node. In this way, these two features capture the relative patterns of link creation and link acceptance by the pair of the vertices. For reciprocating link (u, v), we calculate InRatio and OutRatio by using the following equations:</p><p>PageRank represents the prestige of the node in the network. We use both, PageRank of u and PageRank of v as features. If PageRank(u) is lower than PageRank(v), then the node u is highly likely to respond faster to the node v.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.3">Feature analysis</head><p>To validate the strength of these features (13 in total) for predicting the interval time of reciprocal edges, we compute the Pearson's correlation of the above topological features with the interval time value for three real-life graph datasets (Table <ref type="table">1</ref>) and show the correlation values in Table <ref type="table">2</ref>. As we can see, for the MC-Emails dataset most of the features (mainly Common in , Common out , Jaccard In , Jaccard Out , Pre- fAtt and PrefJacc) have good correlation value (between 0.2 and 0.5). Similarly, for the Enron dataset the same set of features is highly related to interval time. But, for Epinion dataset the correlation values for most of the features are poor except for Common in , Common out , and PageRank(u); the worst features are InRatio, OutRatio and RLR(u). To check the influence of these features on reciprocal link creation, we also check the average linking back probability over different range of values for different features. We discuss our observation in the following paragraphs. In Fig. <ref type="figure">4</ref>, we plot our observation for two of the features: InRatio and OutRatio. Here, for each bin of InRatio, the linking back probability is calculated as a fraction of reciprocal links over all the links in that bin. Figure <ref type="figure">4</ref> clearly shows high linking back probability for higher InRatio and lower OutRatio, which is expected behavior for these features. In <ref type="bibr">(Gong and Xu 2014)</ref>, the authors provided a thorough study of some features, such as RLR(u) and ALR(v), and proved their significant influence on reciprocal link creation.</p><p>In Fig. <ref type="figure">5</ref>, we show three plots (one for each dataset) of DirectedDist vs. interval time. Within each plot we have several graphs, each representing the directed distance value between the vertices. Along the x-axis is the interval time and along the y-axis is the number of reciprocal link instances that have the corresponding interval time. For all dataset, we observe that links with small directed distance value (such as 2 or 3) can have high interval time, i.e., the reciprocal link may appear after many days; but as distance increases there are few or almost no instances of reciprocal links with high interval time. This observation may appear counterintuitive as we expect short distance to influence a short interval time. However, this observation can be explained as follows: people tend to trust other people who are within their circles, and they will ultimately create a reciprocal links with them, even if they do not do it immediately. On the other hand, for people who are outside someone's circle (having a high directed distance value, such as 4 or 5), reciprocal links will be created either in a short interval time or will not be created at all. The short interval time can be the cases when two strangers meet in-person in a social event and then mutually agree to be connected online (or trust each other). On the other hand, the negative case happens, when a stranger trusts (or sends an invite to) someone, and the second person just ignore that forever. Due to this complex relation, the correlation between directed distance and interval time is poor, yet we consider DirectedDist to be a useful feature.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.4">Correlation with low and high interval time</head><p>There are a variety of different social behaviors that influence the interval time; hence, some social-based features impact the interval time differently over a period. To understand the impact of different features over a period, we split the target variable (interval time) into lower and higher range and calculate feature correlations with lower and higher interval times separately. For this study, we calculate average interval time for each dataset and if the interval time is less or equal to average interval time we call it low interval time, otherwise, we call it high interval time. For each dataset and each feature, we calculate the correlation value between the feature and low and high interval times; these correlation values are shown in Table <ref type="table">3</ref>.</p><p>In Table <ref type="table">3</ref>, we observe that features like Common in , Common out , Jaccard In , Jaccard Out , PrefAtt and PrefJacc have high correlation with higher interval time. For the Enron dataset, some of these features ( Common in , Jaccard In and PrefJacc) are highly correlated with lower interval time as well. For the MC-Email dataset, DirectedDist, ALR(v), OutRatio and PageRank(v) have noticeable correlation with lower interval time and other two features (RLR(u) and In Ratio) are inversely correlated with lower interval time. One surprising observation for the MC-Email dataset is that PageRank(v) is the poorest feature (Table <ref type="table">2</ref>), but highly correlated with both lower and higher interval times, mainly because the feature is positively correlated for lower interval time and inversely correlated with higher interval time.</p><p>From Table <ref type="table">3</ref> we understand that for different datasets user behavior varies and hence a distinct set of features becomes influential to the interval time (especially lower interval time) of that dataset. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">Proposed methodology using survival analysis</head><p>Survival analysis is widely used in the medical domain to predict survival time or time to a specific event (such as death) for patient datasets <ref type="bibr">(Vinzamuri and Reddy 2013;</ref><ref type="bibr">Wang et al. 2017a</ref>). In the survival analysis setup, for a set of instances under observation, events happen over a time period, from which a survival model learns the temporal patterns of these events and predicts the survival time. Here, we propose a novel method to map the RLTP problem to a survival analysis task and explain survival analysis concepts from a reciprocal link creation perspective. For these concepts, we also provide suitable terminology for the RLTP problem to describe our approach clearly.</p><p>Beginning of graph expansion and study period: At the first time stamp, a given directed time-stamped network is static (initialized); the beginning of graph expansion is the second time stamp from when new links are added to the static network. Survival analysis assumes a starting time of the study, from when a model starts to observe for the events. In the RLTP problem, the beginning of graph expansion serves as the starting time of the study. For the RLTP problem, we divide the time stamps of the network into train and test time periods, and we observe the network for the reciprocal link creation till the end of the train period, so the last time stamp in the train period is considered to be the end of the study. Thus, the time window from the beginning of graph expansion to the last time stamp of train period is considered to be the study period which is the same as the train period.</p><p>Reciprocal event: For a parasocial link (v, u), if a reciprocal link (u, v) is created during the training period, we call it a reciprocal event, which is the event of interest in the RLTP problem. In the RLTP problem each parasocial link is a data instance, and time stamp of a parasocial link generation is the time when the data instance is considered into the network for study. Hence, the time stamp of a parasocial link generation is called the starting time of observation for that data instance (an ordered pair of vertices).</p><p>Ever-waiting links: We study the network for a limited time window (train period), and hence, for a set of parasocial links, the corresponding reciprocal event may not be observed before the end of the study (last time stamp of training period). We call these links ever-waiting links. Ever-waiting links carry the information that the reciprocal link creation event did not happen till the end of the train period. In the survival analysis terminology the ever-waiting links are also called censored instances; we use both of these terms interchangeably in this paper.</p><p>In a traditional regression task, ever-waiting links may either be ignored, because the target value (the interval time) for these instances are unknown, or they may be retained with an arbitrarily chosen large interval time, which is higher than the time difference between the end of the study time and the starting time of observation for that parasocial link. The first of the above approaches ignores important information; specifically, the ignored fact is that the interval time for ever-waiting links is higher than the time difference between the end of the study and the starting time of observation for that parasocial link. The second approach is simply a crude approximation of the target value. As mentioned before, the main reason to map the RLTP problem into survival regression analysis framework is to exploit the important information provided by the ever-waiting links. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Target value of survival regression model</head><p>The time difference between the starting time of observation (parasocial link generation time) and the time stamp of the reciprocal edge creation is the interval time which we want to predict in the RLTP task. For a reciprocal edge (u, v), the interval time is defined as Int(u, v), as is discussed in Sect. 3.1. In a traditional survival model, the interval time is called the life span of an instance as for these models "death" is the event of interest. Hence, survival models that predict survival time can be adopted to predict the interval time for the RLTP problem. For training the prediction model, we need a feature vector for each data instance, along with the survival time and a binary event indication value (event occurred or not). For the RLTP problem, the feature vector of a parasocial edge is i &#8712; &#8477; d , a vector of topological features (Sect. 3.3) for the i'th parasocial link in training data, where feature dimension d is 13 (number of topological features). For each parasocial links of the training period, if the reciprocal event has occurred during training period then life span of parasocial link is the interval time with the event indication value set to 1; otherwise, for ever-waiting links, the time difference between the last time stamp of training and time stamp of the parasocial link generation is the survival time with event indication value set to 0. Given this training dataset, the target value (the interval time) of test instances are predicted by using a trained survival model. We use various survival models, which we discuss in the next subsection.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Survival models for the RLTP problem</head><p>As explained in the previous section, any survival model can be adopted to solve the RLTP problem. There are two types of widely used survival models: (1) semi-parametric models and (2) parametric models. Parametric models assume that interval time follows a known statistical distribution; hence, if the interval time for a dataset follows a distribution then parametric models perform very good for the dataset compared to a semi-parametric models. However, for many real-world datasets, it is difficult to find a suitable statistical distribution that fits well to the interval time, for these datasets semi-parametric models perform better than parametric models, because semi-parametric models do not assume any underlying distribution, rather they try to learn the actual distribution from the data. As we discussed in Sect. 3.2, some of our datasets are good fit for a statistical distribution but others are not. Hence, we conduct experiments with both semi-parametric and parametric models to offer a comprehensive study of the RLTP problem. In this section, we describe these selected semi-parametric and parametric models and their adaptation for solving the RLTP problem. Broadly, all types of models try to predict the survival time of an instance in the data by modeling three functions: (1) survival function, (2) hazard function and (3) event density function. Definitions and relationship between these three functions are described below: Survival function S(t): Survival models provide a principled approach for interval time prediction by modeling a survival function, which is defined as the probability value that the reciprocal edge creation does not happen for a given parasocial link before a specified time t.</p><p>Here, T is a random variable representing the time of the reciprocal edge creation event.</p><p>Hazard function (t) is the reciprocal event rate at time t conditional on the fact that the reciprocal event has not occurred until that time t, where f(t) is the reciprocal event density function, which is given as follows:</p><p>For a given parasocial link if corresponding reciprocal link is not likely to be created at time t, then Survival function value for t is high. On the other hand, if the corresponding reciprocal link is highly likely to be created at time t then the reciprocal event density function value should be high and that leads to a higher value of the Hazard function. We can observe that both survival function and hazard function are interrelated and we can model either function for the interval time prediction. Next, we describe how semi-parametric Cox regression models the hazard function to solve the RLTP problem. Later we discuss parametric methods (BJ model and AFT models) and their approach for modeling the survival function with the help of different statistical distributions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5.1">Cox regression</head><p>Cox regression model <ref type="bibr">(Cox 1972)</ref> is the most widely used semi-parametric model for predicting the (interval) time taken for a reciprocal event to occur. The basic Cox model follows the proportional hazard assumption, for which the hazard function (t | i ) takes the following form:</p><p>where i is the (topological) feature vector of a parasocial link represented as i'th data instance in the training data and d is the dimensionality of the features. Here, 0 (t) is called</p><p>baseline hazard function, and is the model parameter which Cox regression model learns. The Cox regression is called semi-parametric because the baseline hazard function 0 (t) can be any non-negative function of time. The probabil- ity of occurrence of reciprocal event for the ith parasocial link (data instance) at time t can be represented as ratio</p><p>, where R t is the set of all instances for which the reciprocal event did not happen until t. The product of these probabilities gives the partial likelihood function:</p><p>Here N is the total number of parasocial links appeared during the training period and C i is an event indicator value, i.e., if reciprocal link for the ith parasocial link appear during training period then C i = 1 otherwise C i = 0 . The model parameter is learnt by minimizing the negative log likelihood function. If &#770; is the optimal model parameter, we have: Regularized Cox model: For complex model with high dimensional real-world datasets, over-fitting is a frequent problem. To avoid this, we need a regularization term in the objective function (Eq. 4). We observe in Sect. 3.3.3 that only a few features have a strong correlation with the target variable, so we want to use a sparse regularization model. In this work we use elastic net regularization. In literature, a Cox model with elastic net regularization is also known as Cox model with elastic net (EN) penalty <ref type="bibr">(Zou and Hastie 2005)</ref>. The penalty term P EN is: where, 0 &lt; &#120572; &#8804; 1 and with EN penalty the objective function in Eq. 4, becomes Here, &#120574; &gt; 0 is a regularization constant. For solving this optimization task, we can use the maximum partial</p><p>likelihood estimator proposed by <ref type="bibr">Cox (1972)</ref>; it uses the Newton-Raphson method to iteratively find the estimated &#770; which minimizes Eq. ( <ref type="formula">6</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5.2">Parametric models</head><p>The main idea behind a parametric model is that it assumes that the interval time follows a specific statistical distribution.</p><p>There are two ways to relate interval time and a statistical distribution: first, assume that the actual interval time for all parasocial links follows a distribution; and second, assume that the logarithm of the interval time follows a distribution. The models under the first assumption are referred to as linear regression models, and the models under later assumption are called accelerated failure time (AFT) models. Generally, parametric models use maximum likelihood estimation (MLE) approach to learn model parameters. Let's assume all the parameters of a model are represented by = ( 1 , 2 , &#8230;) T . For a given parasocial link (say ith link in the training data), if it is an ever-waiting link the corresponding survival function S(t, ) at time t (in fact, any t value during a training period) should be near to 1, and if it is not an ever-waiting link then the reciprocal event density function f (t i , ) at time t i (time of reciprocal event for the ith parasocial link) should be high (near to 1) for that link. Hence, the likelihood of all parasocial links of a training period is the product of their reciprocal event density functions or survival functions based on their state (whether the link is ever-waiting or not), i.e., ( <ref type="formula">7</ref>)</p><p>Linear regression model: The statistical linear regression with the least squares estimation is widely used for a variety of regression tasks. However, the issue with the model is that it cannot use information from ever-waiting links. For interval time prediction this issue can be handled by using a specific survival model such as the Buckley-James model (BJ model). The BJ model first estimates the interval time of training ever-waiting links using the Kaplan-Meier (KM) <ref type="bibr">(Kaplan and Meier 1958)</ref> estimation method and then by using all parasocial links from training period to train a linear model. This linear model can be trained through MLE as described above. For more practical use, <ref type="bibr">Wang and Wang (2010)</ref> proposed twin boosting method with BJ estimator, we use this method to solve the RLTP problem.</p><p>Accelerated failure time (AFT) model: An AFT model assumes that the logarithm of the interval time log(T) fol- lows a statistical distribution, and it is linearly related to the (topological) feature vectors. The general form for AFT regression model is where X is the covariate matrix of size N &#215; d where ith row of X is i , is a d dimensional coefficient vector (model parameters), ( &#120590; &gt; 0 ) is an unknown scale parameter, and is an error variable which follows a similar distribution to log(T) . For our problem, we use the three most suitable dis- tributions (see Fig. <ref type="figure">3</ref>) for interval time, the details of which are given in Table <ref type="table">4</ref>. ( <ref type="formula">8</ref>) log(T) = X &#8901; + &#8901; Table <ref type="table">4</ref> Density, survival and hazard functions for the distributions used with AFT model Here, is scale parameter and k is shape parameter for both Weibull and log-logistic distribution. For log-normal distribution is the mean (location parameter), 2 is the variance and is cumulative distribution function of normal distribution</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Distributions</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Density function Survival function Hazard function</head><p>Weibull</p><p>Log-logistic</p><p>Page 13 of 20 16</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.6">Algorithmic framework</head><p>parasocial link e &#8712; train-set, if the corresponding reciprocal link is generated during train period then interval time Int(e) (Sect. 3.1 ) is the target value with event indicator value C e = 1 ; otherwise, time difference between the link creation and end of training period acts as the target value with event indicator value C e = 0 . Similarly, we generate target values for data instance of test-set as explained in Lines 27-35 of Algorithm 1. Then, we use R libraries to train the survival models with training data and predict target values for the test data to generate the test results (test-res) and lastly we evaluate that test-res.</p><p>In Algorithm 1, we describe a general framework of our proposed method. First, we divide the time stamps of the input graph into train and test periods as mentioned in line 1 of Algorithm 1. After that we create training data instances (train-set) and test data instance (test-set) from the corresponding train and test periods (Lines 2-4). Then we calculate topological features for each parasocial link (data instance) in the train-set and test-set as described in Lines 5-10 of Algorithm 1. After that we generate target variable for each data instance (Lines 11-26), for which we observe the corresponding reciprocal link in the graph. For a</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Experiments and results</head><p>We conducted a set of rigorous experiments to demonstrate the benefit of using censored information and the superiority of proposed survival models to solve the RLTP problem. We used five proposed survival models: Cox regression model, AFT model with Weibull, log-normal and log-logistic distributions and Buckley-James (BJ) regression model. To prove the fact that the proposed survival models are better suited for solving the RLTP problem, we compared them with traditional regression models such as ridge regression (RidgeReg), lasso regression (LassoReg), feed-forward neural networks (FFNN) and support vector regression (SVR). Note that these traditional regression models cannot use censored information (ever-waiting links). We also compare proposed Cox regression model with generalized linear model (GML), which is an adopted model from <ref type="bibr">(Sun et al. 2012)</ref>.</p><p>In addition to the suitability of the proposed survival models for the RLTP problem, we also demonstrate the usability of the ever-waiting links. For that, we conducted experiments where we train the survival models without censored information and compare the performance of the models on the test dataset. We report the improvement in the performance when the ever-waiting links are used for training the survival models.</p><p>Lastly, we conduct an experiment to show that reciprocal links with short interval time contain enough information required for training the survival models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Datasets</head><p>For the experiments, we use three real-world datasets Epinion, MC-Email and Enron. We discuss these datasets in Sect. 3.2, and basic statistics of the datasets are shown in Table <ref type="table">1</ref>.</p><p>Generating a synthetic dataset for the RLTP problem is a challenging task, because in the literature most of the synthetic graph generation models try to mimic basic real-world properties such as power-law degree distribution <ref type="bibr">(Faloutsos et al. 1999)</ref>, community structures <ref type="bibr">(Leskovec et al. 2007)</ref>, etc. All these methods generate directed networks with extremely low reciprocity-generally, less than 1%. Durak et al. have proposed a synthetic network generation algorithm which also considers reciprocity (Nurcan Durak 2013). We use this algorithm for generating three synthetic graphs where the vertex count varies between 10,000 (10K) to 30,000 (30K) with increments of 10K. Edges of these synthetic networks have no time stamps; hence, we assign random time stamps between 0 to 100 to parasocial links. The time stamps of reciprocal links of these synthetic networks are selected by matching the reciprocal link interval time of the Epinion dataset through the best fit Weibull distribution.   </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Experimental setting</head><p>For our experiments, we divide the time stamps of a dataset into two non-overlapping continuous partitions, where the earlier partition is the train period and the latter is the test period. In three different experiments, we use, respectively, 60, 70 and 80% of the earlier time stamps as the train periods and the remaining time stamps as the test period. For synthetic datasets, a 70:30 split of the time stamps is used as the train and test period of our experiments. For calculating the topological features explained in Sect. 3.3 for a parasocial link (data instance), we take a snapshot of the network until the time stamp of the corresponding reciprocal link or end of the train period (whichever is earlier).</p><p>Like any other link prediction task, RLTP also suffers from the class imbalance issue, where the number of positive instances ( C i = 1) is much smaller than that of the negative instances. To alleviate this problem, we use the well-known majority undersampling <ref type="bibr">(Bunkhumpornpat et al. 2011</ref>) strategy as discussed below: all the reciprocal links generated during a train period are considered in the training data pool as positive instances and only 50% of the parasocial links generated during the same period are censored negative instances ( C i = 0) in the pool. The test data pool (and their labels) is also generated similarly from the test period. As train and test data instances need to be from their corresponding time periods, we use a modified K-fold cross-validation, where each fold contains a random subset of train and test data instances from their respective pools. For all our experiments, we used 5-fold cross validation in this manner.</p><p>For minimizing the objective function [Eq. ( <ref type="formula">4</ref>)] of censored problem formulation of RLTP, for the Cox regression model, we used cocktail algorithm <ref type="bibr">(Yang and Zou 2013)</ref> [the library is provided by the authors of <ref type="bibr">Yang and Zou (2013)</ref>]. For AFT models and BJ regression, we used Survival package 3 and Bujar package 4 , respectively, available in R. For RidgeReg, LassoReg and SVR, we used scikitlearn python library and for FFNN, we used MATLAB NN toolbox. We used TopCom indexing method <ref type="bibr">(Dave and</ref><ref type="bibr">Hasan 2015, 2016)</ref> to find shortest directed distance feature. To choose the best parameters of SVR, we used grid search, where the cost parameter C takes values from {0.0001, 0.001, 0.01, 0.1, 1.0} and Epsilon ( ) takes values from {0.0001, 0.001, 0.01, 1.0}.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Evaluation metrics</head><p>Datasets generated from directed time-stamped networks are longitudinal data, and for the RLTP problem the datasets also contain censored information. Evaluating models on these datasets using traditional evaluation metrics is not suitable, instead we use time-dependent AUC (also known as c-Index), which is widely used in longitudinal data analysis <ref type="bibr">(Pencina and D'Agostino 2004)</ref>.</p><p>For a pair of data instances, assume (y i , y j ) and (&#375; i , &#375;j ) are the target and the predicted values, respectively. The time-dependent AUC is defined as the probability of &#65533; y i &gt; &#65533; y j given y i &gt; y j . If target y i has only 2 possible values, then time-dependent AUC is the same as the popular AUC (Area Under ROC Curve) metric for classification. Similar to the AUC metric, time-dependent AUC takes values between 0 and 1, where 1 is the best possible value for this metric. Time-dependent AUC (TD-AUC) is calculated as follows:</p><p>where, N cnt is total count of ( y i ,y j ) pairs such that i = 1 (the event has occurred) and y j &gt; y i holds.</p><p>For the Cox regression model, the predicted is the hazard value and for a higher hazard value the event occurs earlier; hence, the time-dependent AUC for Cox can be calculated as:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Comparison results of survival models and regression models</head><p>We compared proposed survival models with four other traditional regression models, and our results are shown in Tables <ref type="table">6</ref> and<ref type="table">7</ref>, where columns represent different training splits and each row represents a prediction model. A horizontal bar separates the traditional regression models in the upper part and the survival-based models in the lower For the Epinion dataset, as depicted in Table <ref type="table">5</ref>, the Cox regression model performs the best with mean TD-AUC 0.7364, 0.7463 and 0.7485 for training period with 60, 70 and 80% splits of time stamps, respectively. Here, with increase in the training data we can clearly see improvement in the performance, which is an expected behavior because with more training examples the model learns better. BJ model is the next best with performance very close to the Cox model. For this model also, the mean TD-AUC improves from 0.7312 to 0.7416 as we increase the training data. Similar behavior is observed for other survival models, but the performance of the AFT models is, unfortunately, not good for the dataset. This can be attributed to the fact that AFT models make strict distribution assumptions on the data and such assumption may not be suitable for the Epinion dataset (Fig. <ref type="figure">3</ref>).</p><p>For the Epinion dataset, among the traditional regressionbased methods, ridge regression performs better than any other competing methods with mean TD-AUC in the range between 0.60 and 0.61. But, when we compare its performance over different training splits, we see that its performance does not improve as we increase the training data. The same behavior holds for other traditional regression methods, such as Lasso regression and FFNN. One possible explanation for this behavior is model under-fitting; that is, the majority of the errors in the traditional regression models are coming from the bias error, so the error does not improve much with a larger dataset which reduces variance error only. On the other hand, survival analysis-based models are more sophisticated, which enables them to design complex functions for predicting the time, thus overcoming the under-fitting issue.</p><p>For the MC-Email dataset, the overall behavior of the models is very similar to the Epinion dataset. Here again the Cox regression model performs the best with mean TD-AUC between 0.65 and 0.68 and its results are improved for larger training data. Performance of different AFT models  varies, but they all perform better than all of the traditional regression methods. In particular, AFT with log-logistic and log-normal distributions perform great and their mean TD-AUC is very close to the results of the Cox regression as shown in Table <ref type="table">6</ref>. The performance of all survival models improves as we provide more training data. On the other hand, best among the competing methods is ridge regression with a mean TD-AUC between 0.60 and 0.62. As we have discussed earlier, this model suffers from under-fitting problem.</p><p>For the Enron dataset, results are shown in Table <ref type="table">7</ref>. Here, for the training period with 60% split, Cox regression performs the best with mean TD-AUC 0.58. For the other two splits, AFT model with Weibull distribution performs the best with mean TD-AUC 0.63 and 0.59. The BJ model performs poorly compared to the other survival models with mean TD-AUC ranging from 0.52 to 0.6, but the performance of BJ model is still better than all competing regression methods for training period with 70% and 80% splits of time stamps. For this dataset, for 80% training split, none of the models have better performance than the other splits. This is due to the fact that this dataset is extremely sparse and it has only 3007 links created during 944 time stamps (Table <ref type="table">1</ref>). Hence, even the 80% split does not provide more informative training samples to perform good prediction on remaining data.</p><p>The results for synthetic networks are shown in Table 8 by using the mean TD-AUC and standard deviation metrics. As we observe the results in this table, we can easily conclude that survival models always perform better than traditional regression methods. For two datasets with 10K and 30K node instances, the AFT model with log-normal distribution performs the best among all, while for the dataset with 20K nodes the Cox regression performs the best. The performance of survival models is consistently very similar except for dataset with 20K node where Cox and BJ models clearly perform better than AFT models. Among competing methods, SVR always performs better than others. <ref type="bibr">Sun et al. (2012)</ref> proposed a method to predict link generation time in a heterogeneous network, where they design a unique feature for the task and use the feature with generalized linear model (GLM) for the prediction task. This proposed feature is designed based on meta-path (a simple path with link label information) in a heterogeneous network. We adopted this feature for a homogeneous network, and the adopted feature can be described as a number of simple paths of size k between two nodes. Counting the number of simple paths is an extremely costly operation, especially for a large dataset such as the Epinion network; hence, for this experiment, we use k upto 5, i.e., k &#8712; {2, 3, 4, 5} for all three networks, Epinion, MC-Email and Enron. We provide these homogeneous feature values to GLM (with gamma distribution) to solve the RLTP problem. For this experiment we use a 70% split of time stamps as train period and remaining 30% as test period. The results of this experiment are depicted in Fig. <ref type="figure">6</ref>, where GLM is compared with the Cox regression model all three datasets. From Fig. <ref type="figure">6</ref>, we observe that the Cox regression outperforms the GLM   model for all three datasets by noticeable margins. We believe one of the main reasons for the poor performance of the GLM-based method is that the feature proposed by <ref type="bibr">Sun et al. (2012)</ref> is carefully designed for an author paper-based heterogeneous network and its adoption in a homogeneous network is not very useful.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.1">Comparison with GLM</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Importance of ever-waiting links</head><p>We conducted experiments to show the importance of everwaiting links, and the results are depicted in Tables <ref type="table">9</ref> and<ref type="table">10</ref>. Table <ref type="table">9</ref> shows the increment in TD-AUC up to 62% in the real-world datasets, when the survival models are provided with censored information (ever-waiting links) during the training, as compared to when the models are trained without censored information. For the Epinion dataset, the increment in the results is significant (more than 27% for all models) except AFT with log-normal distribution. Similarly, for the MC-Email and the Enron datasets the increment is up to 27%, which is substantial. As shown in Table <ref type="table">10</ref>, for the synthetic datasets we also have very similar increment in the results except for the BJ model with datasets of 10K nodes. For the most part the increment in performance is high for the Cox regression and the AFT with Weibull distribution. However, for other models the increment is limited to around 10%. The modest contribution of ever-waiting links for the case of synthetic networks can be attributed to the network generation model. We used <ref type="bibr">Durak et al's model (Nurcan Durak 2013)</ref>, which selects pairs of vertices for reciprocal link creation based on only degree distribution without considering any of the social phenomena, so the features that we are using may be not very effective for the synthetic datasets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.6">Importance of reciprocal links with small interval time</head><p>For the RLTP problem, reciprocal links carry very useful information and this information is not distributed uniformly over all reciprocal links. We described in Sect. 3.2 that for most of the reciprocal links the corresponding time interval is relatively small, and very few have high time interval as depicted in Fig. <ref type="figure">2</ref>. The reciprocal links for which the corresponding time interval is equal to or less than 20% of the maximum time interval among all the time intervals of reciprocal links in the dataset are called "top 20%" reciprocal links. We trained survival models with top 20% reciprocal links (with ever-waiting links) and compared the results of these models with results of models trained with all reciprocal links (with ever-waiting links).</p><p>Results for these experiments are shown in <ref type="bibr">Figs. 7,</ref><ref type="bibr">8,</ref><ref type="bibr">9</ref>, where all red bars represent different models trained with top 20% reciprocal links and all black bars represent the same models trained using all reciprocal links. We can see that, for all three datasets, survival models trained with top 20% reciprocal links perform very similar or better to the models trained with all reciprocal links. This observation supports our argument that all reciprocal links do not carry same amount of information, but notable amounts of information lie in the reciprocal links with short interval time.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.7">Contribution of top5-features</head><p>In Sect. 3.3.3, we study correlation of different features with interval time. Through this experiment, we study the contribution of top five highly correlated features (top5features) to solve the RLTP problem. From Table <ref type="table">2</ref>, we can find these top5-features for each real-world dataset. We can see, for Epinion dataset Common in , Common out , Jaccard In , PrefAtt and PageRank(u) are highly correlated features. Similarly, for both MC-Email and Enron datasets Common in , Common out , Jaccard In , PrefAtt and PrefJacc are the top5- features (Table <ref type="table">2</ref>). For this comparison study, we prepared train and test instances similarly as described in Sect. 4.2 with 70% training split, but the difference is, here each data instance is represented by only corresponding top5-features. We use proposed survival models (Sect. 3.5) with top5-features data to solve the RLTP problem.</p><p>Table <ref type="table">11</ref> shows results for the comparison experiment with mean TD-AUC value and standard deviation for 5 independent runs. The last column in Table <ref type="table">11</ref> shows the increment in the mean TD-AUC value from top5-features data to all features data. This table clarifies the importance of the other features with lower correlation values (Table <ref type="table">2</ref>), because for both the Epinion and the MC-Email datasets the increment in the results is noticeable. But for the Enron dataset the increment is not very impressive; we believe low number of data instances and very high correlation of top5features are the main reasons for this shortcoming.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusion and future works</head><p>In this paper, we proposed a novel problem, namely reciprocal link time prediction (RLTP), which has wide applicability in email, social and other directed networks. We designed various socially meaningful topological features specifically for directed networks, which are useful to solve the RLTP problem. We mapped the RLTP problem into a survival analysis task and through experiments on three real-life network datasets, we showed that such a framework is better suited than traditional regression-based approaches for solving the RLTP problem. We demonstrated that using ever-waiting links for training adds valuable information to the prediction models. We also investigated the information contributed by the reciprocal links and showed that the majority of the required information lies in the top few percent (20%) of the reciprocal links. To the best of knowledge, this is the first study on time interval prediction for reciprocal links, which is useful to answer response time for emails or friend requests. It can also be used for recommendation in trust networks for suggesting a new connection (parasocial link) for which, the predicted response time is very small. The RLTP is a novel problem, and this is one of the earliest and comprehensive study of the problem. There do exist some opportunities to extend our work. For example, we have used basic survival analysis-based regression models, but one can study the timing patterns and design complex regression model by considering the timing patterns. Also, one can design sophisticated time-dependent topological features that carry more information to solve the RLTP problem and study different sparse prediction models to find suitable features for the prediction.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>http://konec t.uni-koble nz.de/netwo rks/.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1"><p>This is Manufacturing Company email dataset available from R. Michalski's website, https ://www.ii.pwr.edu.pl/~micha lski.</p></note>
		</body>
		</text>
</TEI>
