<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Pro ling Smart Contracts Interactions Tensor Decomposition and Graph Mining</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jeremy Charlier</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>So ane Lagraa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Radu State</string-name>
          <email>radu.stateg@uni.lu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>ome Francois</string-name>
          <email>jerome.francoisg@inria.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Inria Nancy-Grand Est</institution>
          ,
          <addr-line>54600 Villers-les-Nancy</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>SnT, University of Luxembourg</institution>
          ,
          <addr-line>Luxembourg L-1855</addr-line>
          ,
          <country country="LU">Luxembourg</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Smart contracts, computer protocols designed for autonomous execution on prede ned conditions, arise from the evolution of the Bitcoin's crypto-currency. They provide higher transaction security and allow economy of scale through the automated process. Smart contracts provides inherent bene ts for nancial institutions such as investment banking, retail banking, and insurance. This technology is widely used within Ethereum, an open source block-chain platform, from which the data has been extracted to conduct the experiments. In this work, we propose an multi-dimensional approach to nd and predict smart contracts interactions only based on their crypto-currency exchanges. This approach relies on tensor modeling combined with stochastic processes. It underlines actual exchanges between smart contracts and targets the predictions of future interactions among the community. The tensor analysis is also challenged with the latest graph algorithms to assess its strengths and weaknesses in comparison to a more standard approach.</p>
      </abstract>
      <kwd-group>
        <kwd>Tensor</kwd>
        <kwd>Stochastic Process</kwd>
        <kwd>Graph mining</kwd>
        <kwd>Smart Contract</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Since the appearance of Bitcoin's crypto-currency in 2009 by Nakamoto, di erent
counterparts have tried to extend Bitcoin's design beyond the currency. The most
visible is the Ethereum platform, an open source platform relying on blockchain
technology and using Ether as a crypto-currency. They implemented a protocol
relying on smart contracts for automatic exchanges without a central gatekeeper.
Originally, smart contracts have been rst mentioned by Nick Szabo in 1998. He
exposed the idea as "a computerized transaction protocol that executes the terms
of a contract [...] to satisfy common contractual conditions, minimize exceptions
[and] the need for trusted intermediaries ". Smart contracts appear as a
technology for higher transparency without the requirement of trusted intermediaries
for currency exchanges. A smart contract is a set of transactions. A transaction
has the following elds: Hash, Block height, Sender, Receiver, Amount
representing the hash of the transaction, the timestamps in terms of block height
numbers, the contract issuer, the contract recipient and the scalar value to be
transferred from the sender to the receiver, respectively. Due to the vast number
of inter-connected contracts over time, the modeling of the interactions is non
trivial and requires an e cient model to predict transactions over time.
Predicting and analyzing new contracts has important practical applications in nancial
instruments where recommendation would be based on likely future contracts
interactions.</p>
      <p>The main contribution of the paper resides in the modeling of smart contracts
interactions using a tensor approach. In addition, a novel technique consisting in
the combination of stochastic processes and tensors allows to reproduce existing
interactions and to predict future interactions over time. The tensor approach is
then challenged with state-of-the-art graph algorithms to assess its performance.</p>
      <p>To describe our methodology, section 1 presents the latest research concerning
the smart contracts and the tensors. Section 2 introduces the concepts related to
the chosen tensor decomposition and the stochastic model used for interactions
simulations. In section 3, a short description of the graph theory is suggested
and section 4 demonstrates the experiments performed on the tensor approach
and challenged with the graph analytics.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work</title>
      <p>
        Since its rst de nition by Nick Szabo, the security and the programming
patterns of the automated protocols have been highlighted. More speci cally, in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ],
the authors investigate the security on smart contracts. They underline the
possibility of manipulation of smart contracts within the Ethereum platform with
the goal of gaining pro t. They also provide a symbolic execution tool to nd
potential bugs within the running Ethereum smart contracts. In [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], the authors
quantify smart contracts use according to their application domain as well as the
common coding patterns in Ethereum. However, even with security issues raised
around automated protocols, smart contracts still o er lower transactional and
running costs. In [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], the authors explain how entities can make use of smart
contracts to gain in competitiveness and push further innovation. In [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], the
authors propose a new way of programming smart contracts with a logic-based
programming. It introduces new coding behavior with the goal of further e
ciency. Last but not least, the use of smart contracts and its extension towards
various domains also raise the question of their legal status. In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], the authors
address the new challenges and the evolution of the law following the use of the
smart contracts in the Legal Tech companies.
      </p>
      <p>
        However, analysis of the smart contracts using tensor based approach has
not yet been deeply studied among the scienti c community. Di erent
decompositions have been applied on various subjects as the survey written by Kolda and
Bader in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] exposed it. Our work concentrates on the CANDECOMP/PARAFAC
(CP) decomposition which has been presented simultaneously by Harshman et
al. in [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. It has been applied a lot in neuroscience due to the image
processing and its uniqueness property. In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], Andersen and Rayens used the CP
decomposition for functional magnetic resonance images (fMRI) data analysis in
three and four dimensions. Sen and Parhi also applied in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] CP decomposition
for fMRI processing with a novel algorithm for the extraction of the common task
signals and spatial maps from a fMRI group as rank-1 tensors. Other authors
extended the use of the CP decomposition in other domains than neuroscience:
Acar et al. in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] used for data mining, Shen et al. for Inferring network
topologies in [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] and Dinc, Ertekin and Bker applied it to the quantitative resolution
of related drug substances.
      </p>
      <p>In this paper, we propose a tensor-based approach based on the CP
decomposition on crypto-currency domain by combining the tensor decomposition to
stochastic process. This new approach allows to identify and predict smart
contracts interactions.</p>
      <p>To the best of our knowledge, this is the rst work of the tensor-based
approach combined with the stochastic variance gamma model for analyzing and
modeling smart contracts.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Tensor Analysis</title>
      <p>In this section, we present the tensor theoretical background and the tensor
decomposition used for the experiments. Finally, we describe the stochastic process
used for the predictions of the interactions.
3.1</p>
      <sec id="sec-3-1">
        <title>Tensor Description</title>
        <p>
          Notation Mathematical notations and formulation follow the notations
proposed by Kolda and Bader in [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. The notations have been reused by di erent
articles related to tensor decomposition.
        </p>
        <p>Scalars are identi ed by lowercase letters, a. Vectors and matrices are denoted
by boldface lowercase letters and boldface capital letters, respectively a and A.
The transpose of the matrix A 2 RI J is denoted by AT .</p>
        <p>Tensor De nition Let de ne a N -th multidimensional array denoted by X
such as X 2 RI1 I2 I3 ::: IN . X is called a N -way tensor. Tensors are denoted
by Euler script letters.</p>
        <p>Tensor Operations The square root of the sum of all tensor entries squared
determines the tensor norm.</p>
        <p>vu I1
jjXjj = tu X
j1=1 j2=1</p>
        <p>I2 IN
X ::: X
jN =1
xj21;j2;:::;jN
The vector outer product denoted by
matrix W2 RI J .</p>
        <p>between u2 RI and v2 RJ results in a
u</p>
        <p>2u13 2u1v1 u1v2 ::: u1vJ 3
v = uT v = 64 ... 75 v1 ::: vJ = 64 ... ... ::: ... 75
uI uI v1 uI v2 ::: uI vJ
(1)
(2)
A N -way tensor X 2 RI1 I2 I3 ::: IN is a rank one tensor if it can be written
such as</p>
        <p>X = a(1)
a(2)
a(N)</p>
        <p>The Khatri-Rao product between two matrices A2 RI K and B2 RJ K ,
denoted by A B, results in a matrix C of size RIJ K . It is the column-wise
Kronecker product.</p>
        <p>
          C = A
For the analysis of the interactions between smart contracts, the CP
decomposition is used. It has been introduced by Harshman in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] and Carroll and Chang in
[
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. It allows a tensor X 2 RI1 I2 ::: IN to be written as the sum of component
of rank-one tensors.
        </p>
        <p>X =</p>
        <p>R
X a(1)</p>
        <p>r
r=1
a(2)
r
a(N)
r</p>
        <p>
          The minimization equation min X^ jjX X^ jj with X^ the approximate tensor
constructed with matrices ai randomly initialized and X the original tensor is
solved with the Alternating Least Squares (ALS) method as presented by
Harshman in [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] and Carroll and Chang in [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. The matrices A = PrR=1 a(r1) 2 RI R,
B = PrR=1 a(r2) 2 RJ R and C = PrR=1 a(r3) 2 RI R are successively updated
according to the non-negative scheme presented by Lee and Seung in [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
8
&gt;&gt;&gt;air
&gt;
&gt;
&gt;
&lt;
        </p>
        <p>bjr
&gt;
&gt;
&gt;
&gt;
&gt;&gt;:ckr</p>
        <p>[X(1)(C
air [A(C B)T (C</p>
        <p>[X(2)(C
bjr [B(C A)T (C</p>
        <p>[X(3)(C
ckr [C(B A)T (B</p>
        <p>B)]ir</p>
        <p>B)]ir
A)]jr</p>
        <p>A)]jr
A)]kr</p>
        <p>A)]kr</p>
        <p>The non-negative algorithm plays a key role in the convergence of the
historical calibration of the parameters of the stochastic model.
3.3</p>
      </sec>
      <sec id="sec-3-2">
        <title>Stochastic Model For Interactions Predictions</title>
        <p>Interactions between smart contracts can be very discontinuous among time.
Some interactions appear for short period of time before vanishing, other
interactions are present in all time periods while some contracts never interacts. As a
consequence, a deterministic model cannot be used but a stochastic model with
jumps should be preferred.</p>
        <p>
          The Variance-Gamma (VG) model has been introduced by Madan, Carr and
Chang in [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. This stochastic model is a pure jump process. One of its main
application is in quantitative nance as illustrated by Hull in [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. The VG model
is de ned with three parameters denoted , and 2 R. represents the drift
in the Brownian motion among time. A Brownian motion, denoted by W , is
a continuous time process representing the random motion of a small particle
immersed in a uid having the same density as the particle. is the volatility
and is the variance rate of the gamma time change. The drift is represented
by !t, the gamma process by h and the process to be simulated by S.
8! = 1 ln(1
&gt;
&lt;
h = g +
pgz
with
        </p>
        <p>g
&gt;:St = S0 exp(rt + !t + h)
( t ; ); n</p>
        <p>N (0; 1)
(7)
Based on the empirical observations, no VG drift free rate could have been
identi ed. As a result, the parameter r is set to 0.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Graph Mining</title>
      <p>In this section, we present brie y the graph analytics used as a comparison of
the tensor-VG model in the experiments.
4.1</p>
      <sec id="sec-4-1">
        <title>Graph Analytics</title>
        <p>
          Centrality score measures the communication importance of a vertex. In this
paper, degree (baseline) centrality and betweenness ( ow-based) centrality have
been applied. A degree centrality represents the number of vertex neighbors and
gives a local view of the graph around each node. In a directed graph, each
vertex has an indegree and an outdegree. Let G = (V; E) 8Tx 2 V . In smart
contracts, we can distinguish between the senders and receivers. Indegree of
vertex Tx, denoted by deg (Tx), is the number of edges which are coming into
the vertex Tx. Outdegree of vertex Tx, denoted by deg+(Tx), is the number of
edges which are going out from the vertex Tx. The centrality of a sender, is based
on the amount of Ether, Ethereum crypto-currency. We measure this using the
betweenness centrality measure[
          <xref ref-type="bibr" rid="ref16">16</xref>
          ], which measures how much a given vertex
lies in the weighted shortest paths of other vertices. Let sr = rs denote the
number of shortest paths from Ts 2 V to Tr 2 V where by convention TsTs = 1.
Let TsTr (Tx) denote the number of shortest paths from Ts to Tr that some
Tx 2 V lies on:
betweenness =
        </p>
        <p>X
Ts6=Tx6=Tr</p>
        <p>TsTr (Tx)</p>
        <p>TsTr
(8)</p>
        <p>
          A bi-clique measure allows to discover common interaction between two sets
of objects in a graph. Often, bipartite graphs can be used to represent
relationships across pairs of heterogeneous data [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. A bipartite graph is partitioned
into two sets of vertices which are non-empty disjoint partitions. In bipartite
graph, there is no edge within the same partition. In smart contracts, an
interpretation of common senders to a set of receivers member's relationships is
performed by an enumeration of maximum bicliques.
        </p>
        <p>
          Maximum biclique, the largest biclique, is used as an approach to group the
senders and receivers members into groups to identify most common senders of
a set of receivers. In the experiments, the algorithm developed in [
          <xref ref-type="bibr" rid="ref18">18</xref>
          ] has been
applied.
4.2
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Link Predictions</title>
        <p>
          Link predictions methods are used to identify new connections in graphs. To
predict newer links among two entities at a later point in time, the path based
link predictions approach is applied using the SimRank algorithm presented in
[
          <xref ref-type="bibr" rid="ref19">19</xref>
          ]. It assumes that two vertices are similar if they share the common connected
vertices. Numerically, this is speci ed by de ning a score. The set of all neighbors
of vertex Tx is denoted by (Tx).
        </p>
        <p>8&gt;score(Tx; Tx) = 1
&lt;
&gt;score(Tx; Ty) =
:</p>
        <p>P
a2 (Tx)
j (Tx)j:j (Ty)j</p>
        <p>Pb2 (Ty) score(a; b)
with
= [0; 1] (9)
Finally, the SimRank corresponds to the link predictions in a bi-clique.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Experiments and Discussions</title>
      <p>This section presents the experiments and the results of the tensor and the graph
based approaches on smart contract data.
5.1</p>
      <sec id="sec-5-1">
        <title>Dataset Characteristics</title>
        <p>Smart contracts data have been collected from the Ethereum platform from 7
August 2015 to 2 March 2016. In this period of time, two millions of
transactions have been realized between 241,385 sender accounts and 359,798 receiver
accounts. A sender account is de ned as an account sending Ether, the Ethereum
crypto-currency, and a receiver account as an account receiving Ether. However,
60% of the sender contracts only send one Ether payment from August to March
and 70% of the receiver contracts only receive once. We concentrate on contracts
having the most activities, and thus we keep only the 1% most active contracts
over time. In 1% of contracts, the average of contracts by sender is 46.91 and by
receiver is 26.06. In our experiments, 459 smart contracts senders are considered
as well as 813 smart contracts receivers.
5.2</p>
      </sec>
      <sec id="sec-5-2">
        <title>Tensor Decomposition And Stochastic Simulation For</title>
      </sec>
      <sec id="sec-5-3">
        <title>Interactions Predictions</title>
      </sec>
      <sec id="sec-5-4">
        <title>Tensor Decomposition Applied to Smart Contracts A three-way topo</title>
        <p>logical tensor is built using the data from Ethereum. A value of zero means no
Ether were exchanged between a sender account and a receiver account at a
given time, and a value of one corresponds to the opposite. The rst dimension
of the tensor, denoted by I, characterizes the list of the sender accounts, the
second dimension, J , the list of the receiver accounts and the third dimension,
K, the time. Ether exchanges have been gathered in fty-two time intervals. The
size of the resulting tensor is 459 813 52.</p>
        <p>vectors associated to time dimension
+ ::: +
vectors associated
to receiver accounts</p>
        <p>Re1 Re2 Re3
Se1 1 1 1</p>
        <p>Se2 0 0 0
Se1 R1e1 R1e2 R0e3 ...1 ... =</p>
        <p>Se2 1 1 0</p>
        <p>Re1 Re2 Re3 0
r Se1 1 0 0 ... ...
eendS SSee23 01 01 01 Time
... ... ... ... ...</p>
        <p>Receiver</p>
        <p>vectors associated to sender accounts</p>
      </sec>
      <sec id="sec-5-5">
        <title>Evaluation Of Interactions Probabilities Using VG Model The VG</title>
        <p>
          model is calibrated historically with the Maximum Likelihood Estimator (MLE)
as presented in [
          <xref ref-type="bibr" rid="ref20">20</xref>
          ] based on the results of the tensor decomposition as described
in Fig. 1. The rst twenty-six time events are used for calibration and the
simulations are done on the next twenty-six time events for a comparison between
the true data and the simulated data.
        </p>
        <p>The future probabilities of Ether exchanges at maturity T are computed with
a digital function denoted by C based on the simulations of the process S.</p>
        <p>N
CT = 1 X 1S(n) K</p>
        <p>N n=1 T
(10)</p>
        <p>At maturity T , if the simulated series is equal or higher than K, then the value
of C is equal to one, otherwise the value of C is equal to 0. In our simulation, we
de ne K = 0:99 due to the numerical error from the tensor decomposition and
the calibration of the stochastic model. The number of Monte-Carlo simulations,
denoted by N , is equal to one million.</p>
      </sec>
      <sec id="sec-5-6">
        <title>Simulation of Interaction Probabilities Using CP and VG We de ne</title>
        <p>a threshold of 60% as the threshold identifying an interaction or not. At the
end of the time horizon of the simulation, if an interaction probability between
one sender and one receiver is below the threshold, it is more likely that no
interaction happen. On the opposite, if an interaction probability is higher than
the threshold, it is more likely that an interaction happen.</p>
        <p>Regarding Fig. 2a, interaction probabilities decrease over time for a given
sender and a given receiver. At the end of the simulation, the interaction
probability is around 55%. Given the threshold de nition, it is more likely no
interactions happen. The results are cross-validated with the true data that con rm
no interaction happened.</p>
        <p>Interaction Probabilities between [...]7d7be3b5 and [...]db757a10</p>
        <p>in function of Time
1.0
Interaction Probabilities between [...]e7e74d09 and [...]aedb0efb
in function of Time</p>
        <p>Similarly, for another sender and receiver extracted from the CP
decomposition in Fig. 2b, the simulation indicates that the interaction probability is 0. It
is also con rmed by the true data where no interaction have been realized.
We de ne the smart contract graph to be constructed from each transaction as
a directed graph representing semantically relevant relationships between two
vertex-entities which represent senders and receivers performing a transaction
in a smart contract. Each vertex represents a sender s and receiver r and each
edge s; r indicates that the sender s sends amount of coins to r, where s 6= r.
The data size is reduced by the representation of intermediate vertex-entities,
especially for transactions with the same senders and receivers. This is a labeled
directed graph G = (V; E; ):
{ V is the set of senders and receivers;
{ E is a set of edges in G. Assuming Ts and Tr, sender s 2 V and receiver
r 2 V , there is an edge (Ts; Tr) 2 E if and only if it exists a transaction
between Ts and Tr.
{ is a function that assigns for each edge (Ts; Tr) the average amount of
transactions lTs;Tr .</p>
        <p>The smart contract graph represents the behavior of transactions between
each vertex-entities.
Graph Mining Results According to Fig. 3c, the frequency of group sizes
follows a highly skewed distribution. There are few and very large groups using
modularity class as well as many very small bi-clique groups. 68.54% of bi-clique
groups have only three members. In modularity groups, the frequency
distribution for group membership is even more skewed. 10.78% of modularity groups
have more than 4672 members which represents 52.95% of vertices. According to
Fig. 3a, a highly skewed distribution is also observed in frequency of users' link
counts. Fig. 3b highlights the most important betweenness centrality vertices.
More than 51% of vertices have a degree lower than 10. The vertex degree can be
higher but less important, which is equivalent to lower betweenness centrality.
The betweenness centrality shows the importance of vertices or intermediate
vertices during transactions. From these experiments, bi-clique groups appear more
adequate to analyze smart contracts interactions by obtaining small groups
leading to easier analysis.
Four types of contracts have been tested. First, contracts having stable
interactions over time or contracts having no exchange over time have been chosen.
Then, two contracts, de ned as type three, have been randomly selected. Type
three contracts have an interaction at the initial time step and no interaction at
the nal time step. Finally, two contracts type four, have been selected for which
an interaction have been realized at the nal time step but not at the beginning
of the experiment.</p>
        <p>Based on the rst seven lines of the Table 1, the calibrated VG model is
able to reproduce permanent interactions over time as well as the absence of
interactions. In addition, for contracts of type three, interactions probabilities
at the nal time step are between 55% and 61%. It means there are very high
probabilities for having no interaction. For contracts of type four, interactions
probabilities at nal time step are between 81% and 99.6%. As a result, the
interactions probabilities determined by the VG model appear strongly correlated
to the actual interactions values among the data set.</p>
        <p>The graph probabilities could reproduce satisfyingly the absence of
interactions. However, two false positives have been found with the graph approach in
the illustrated sample for which no interactions have been found. One of them is
linked to contracts of type four for which the interactions are the most di cult
to predict. The other false positive is linked to permanent interactions which
is easier to model in theory. For interactions probabilities of 29%, one is a true
positive and another one is a false positive. Finally, for interactions probabilities
higher than 30%, only true positives have been found.</p>
        <p>To better compare interactions probabilities between the tensor approach
and the graph approach, a curve displaying the Area Under the Curve (AUC)
for Receiver Operating Characteristic (ROC) curve is shown on Fig 4.</p>
        <p>For an interaction threshold of 20%, all interactions probabilities higher than
20% are considered as true interactions. As a result, the Fig. 4 highlights slightly
better results for the graph approach for lower thresholds of interaction
probabilities. However, for thresholds higher than 61% the tensor approach gives
signi cantly better results. Overall, the tensor approach combined with the VG
model appears to lead to better interactions probabilities.</p>
        <p>Sender</p>
        <p>Receiver</p>
        <p>Value at Value at Interaction Prob.</p>
        <p>T = 0 T = 26 Tensor Graph
We proposed a tensor-based approach combined with the stochastic
variancegamma model for analyzing and modeling smart contracts operating over the
Ethereum blockchain platform. The approach has been challenged with graph
analysis to assess its weakness and its strengths. The tensor approach is less
e cient for detecting communities in the data, but it is more appropriate for
the modeling part since it can capture the interaction probabilities. The two
techniques complement well each other since the weakness of one technique is
the strength of the other. In addition, the accuracy of the stochastic predictions
allows to identify which contract to select for speculative investment.</p>
        <p>Our twofold future plans consist on proposing graph based link prediction
on streaming smart contract and an automated process for a calibration of the
stochastic parameters with lower dependency to the initial guess in the tensor
approach.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>This work was partially funded by HuMa, a project funded by Bpifrance and
Region Lorraine under the FUI 19 framework. It is also supported by the High
Security Lab hosted at Inria Nancy Grand Est (http://www.lhs.loria.fr).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Loi</given-names>
            <surname>Luu</surname>
          </string-name>
          ,
          <string-name>
            <surname>Duc-Hiep</surname>
            <given-names>Chu</given-names>
          </string-name>
          , Hrishi Olickel,
          <string-name>
            <given-names>Prateek</given-names>
            <surname>Saxena</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Aquinas</given-names>
            <surname>Hobor</surname>
          </string-name>
          .
          <article-title>Making smart contracts smarter</article-title>
          .
          <source>In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security</source>
          , pages
          <volume>254</volume>
          {
          <fpage>269</fpage>
          . ACM,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Massimo</given-names>
            <surname>Bartoletti</surname>
          </string-name>
          and
          <string-name>
            <given-names>Livio</given-names>
            <surname>Pompianu</surname>
          </string-name>
          .
          <article-title>An empirical analysis of smart contracts: platforms, applications, and design patterns</article-title>
          .
          <source>arXiv preprint arXiv:1703.06322</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Vincenzo</given-names>
            <surname>Morabito</surname>
          </string-name>
          .
          <article-title>Smart contracts and licensing</article-title>
          .
          <source>In Business Innovation Through Blockchain</source>
          , pages
          <volume>101</volume>
          {
          <fpage>124</fpage>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Florian</given-names>
            <surname>Idelberger</surname>
          </string-name>
          , Guido Governatori, Regis Riveret, and
          <string-name>
            <given-names>Giovanni</given-names>
            <surname>Sartor</surname>
          </string-name>
          .
          <article-title>Evaluation of logic-based smart contracts for blockchain systems</article-title>
          .
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Merit Ko~lvart, Margus Poola, and
          <string-name>
            <given-names>Addi</given-names>
            <surname>Rull</surname>
          </string-name>
          .
          <article-title>Smart contracts</article-title>
          .
          <source>In The Future of Law and etechnologies</source>
          , pages
          <volume>133</volume>
          {
          <fpage>147</fpage>
          . Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Tamara G Kolda and Brett W Bader</surname>
          </string-name>
          .
          <article-title>Tensor decompositions and applications</article-title>
          .
          <source>SIAM review</source>
          ,
          <volume>51</volume>
          (
          <issue>3</issue>
          ):
          <volume>455</volume>
          {
          <fpage>500</fpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Richard A Harshman.
          <article-title>Foundations of the parafac procedure: models and conditions for an" explanatory" multimodal factor analysis</article-title>
          .
          <year>1970</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>J Douglas</given-names>
            <surname>Carroll</surname>
          </string-name>
          and
          <string-name>
            <surname>Jih-Jie Chang</surname>
          </string-name>
          .
          <article-title>Analysis of individual di erences in multidimensional scaling via an n-way generalization of eckart-young decomposition</article-title>
          .
          <source>Psychometrika</source>
          ,
          <volume>35</volume>
          (
          <issue>3</issue>
          ):
          <volume>283</volume>
          {
          <fpage>319</fpage>
          ,
          <year>1970</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Anders H Andersen and William S</surname>
          </string-name>
          <article-title>Rayens. Structure-seeking multilinear methods for the analysis of fmri data</article-title>
          .
          <source>NeuroImage</source>
          ,
          <volume>22</volume>
          (
          <issue>2</issue>
          ):
          <volume>728</volume>
          {
          <fpage>739</fpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>Bhaskar</given-names>
            <surname>Sen</surname>
          </string-name>
          and
          <article-title>Keshab K Parhi</article-title>
          .
          <article-title>Extraction of common task signals and spatial maps from group fmri using a parafac-based tensor decomposition technique</article-title>
          .
          <source>In Acoustics, Speech and Signal Processing (ICASSP)</source>
          ,
          <year>2017</year>
          IEEE International Conference on, pages
          <volume>1113</volume>
          {
          <fpage>1117</fpage>
          . IEEE,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Evrim</surname>
            <given-names>Acar</given-names>
          </string-name>
          ,
          <article-title>Seyit Ahmet Camtepe, Mukkai S Krishnamoorthy, and Bulent Yener. Modeling and multiway analysis of chatroom tensors</article-title>
          .
          <source>ISI</source>
          ,
          <year>2005</year>
          :
          <volume>256</volume>
          {
          <fpage>268</fpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Yanning</surname>
            <given-names>Shen</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Brian</given-names>
            <surname>Baingana</surname>
          </string-name>
          , and Georgios B Giannakis.
          <article-title>Inferring directed network topologies via tensor factorization</article-title>
          .
          <source>In Signals, Systems and Computers</source>
          ,
          <year>2016</year>
          50th Asilomar Conference on, pages
          <volume>1739</volume>
          {
          <fpage>1743</fpage>
          . IEEE,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Daniel</surname>
            <given-names>D</given-names>
          </string-name>
          <string-name>
            <surname>Lee</surname>
            and
            <given-names>H Sebastian</given-names>
          </string-name>
          <string-name>
            <surname>Seung</surname>
          </string-name>
          .
          <article-title>Learning the parts of objects by non-negative matrix factorization</article-title>
          .
          <source>Nature</source>
          ,
          <volume>401</volume>
          (
          <issue>6755</issue>
          ):
          <volume>788</volume>
          {
          <fpage>791</fpage>
          ,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Dilip</surname>
            <given-names>B Madan</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peter P Carr</surname>
          </string-name>
          , and
          <string-name>
            <surname>Eric C Chang.</surname>
          </string-name>
          <article-title>The variance gamma process and option pricing</article-title>
          .
          <source>Review of Finance</source>
          ,
          <volume>2</volume>
          (
          <issue>1</issue>
          ):
          <volume>79</volume>
          {
          <fpage>105</fpage>
          ,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15. John C Hull. Options, futures, and
          <article-title>other derivatives</article-title>
          .
          <source>Pearson Education India</source>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Linton C Freeman</surname>
          </string-name>
          .
          <article-title>Centrality in social networks conceptual clari cation</article-title>
          .
          <source>Social networks</source>
          ,
          <volume>1</volume>
          (
          <issue>3</issue>
          ):
          <volume>215</volume>
          {
          <fpage>239</fpage>
          ,
          <year>1978</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Yun</surname>
            <given-names>Zhang</given-names>
          </string-name>
          , Charles A.
          <string-name>
            <surname>Phillips</surname>
            , Gary L. Rogers,
            <given-names>Erich J.</given-names>
          </string-name>
          <string-name>
            <surname>Baker</surname>
            ,
            <given-names>Elissa J.</given-names>
          </string-name>
          <string-name>
            <surname>Chesler</surname>
            , and
            <given-names>Michael A.</given-names>
          </string-name>
          <string-name>
            <surname>Langston</surname>
          </string-name>
          .
          <article-title>On nding bicliques in bipartite graphs: a novel algorithm and its application to the integration of diverse biological data types</article-title>
          .
          <source>BMC Bioinformatics</source>
          ,
          <volume>15</volume>
          (
          <issue>1</issue>
          ):
          <fpage>110</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Gabriela</surname>
            <given-names>Alexe</given-names>
          </string-name>
          , Sorin Alexe, Yves Crama, Stephan Foldes,
          <string-name>
            <surname>Peter L Hammer</surname>
            , and
            <given-names>Bruno</given-names>
          </string-name>
          <string-name>
            <surname>Simeone</surname>
          </string-name>
          .
          <article-title>Consensus algorithms for the generation of all maximal bicliques</article-title>
          .
          <source>Discrete Applied Mathematics</source>
          ,
          <volume>145</volume>
          (
          <issue>1</issue>
          ):
          <volume>11</volume>
          {
          <fpage>21</fpage>
          ,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <given-names>Glen</given-names>
            <surname>Jeh</surname>
          </string-name>
          and
          <string-name>
            <given-names>Jennifer</given-names>
            <surname>Widom</surname>
          </string-name>
          .
          <article-title>Simrank: a measure of structural-context similarity</article-title>
          .
          <source>In Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining</source>
          , pages
          <volume>538</volume>
          {
          <fpage>543</fpage>
          . ACM,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Angela</surname>
            <given-names>Loregian</given-names>
          </string-name>
          , Lorenzo Mercuri, and
          <string-name>
            <given-names>Edit</given-names>
            <surname>Rroji</surname>
          </string-name>
          .
          <article-title>Approximation of the variance gamma model with a nite mixture of normals</article-title>
          .
          <source>Statistics &amp; Probability Letters</source>
          ,
          <volume>82</volume>
          (
          <issue>2</issue>
          ):
          <volume>217</volume>
          {
          <fpage>224</fpage>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>