<!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>Towards a Real-time Mitigation of High Temperature while Drilling using a Multi-agent System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yazan Mualla</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amro Najjar</string-name>
          <email>najjar@cs.umu.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Robin Vanet</string-name>
          <email>robin.vanet@telecom-st-etienne.fr</email>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Olivier Boissier</string-name>
          <email>olivier.boissier@emse.fr</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stephane Galland</string-name>
          <email>stephane.gallandg@utbm.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Computer Science Department, Umea University</institution>
          ,
          <addr-line>Umea</addr-line>
          <country country="SE">Sweden</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>LE2I</institution>
          ,
          <addr-line>Univ. Bourgogne Franche-Comte, UTBM, F-90010 Belfort</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Univ. Lyon, IMT Mines Saint-Etienne, CNRS, Laboratoire Hubert Curien UMR 5516</institution>
          ,
          <addr-line>F-42023 Saint-Etienne</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Univ. Lyon, IMT Mines Saint-Etienne</institution>
          ,
          <addr-line>F-42023 Saint-Etienne</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In oil eld wells, while drilling for several kilometers below surface, high temperature damages the drilling tools. This costs money and time for tripping operations to change the damaged tool. Existing temperature mitigation techniques have several drawbacks including a long response time, analogue signal issues and human intervention. In this work, we empower the down-hole tools with a coordination mechanism to mitigate high temperature in soft real time by controlling a down-hole actuator through a voting process. The tools are represented by agents that control the sensors and actuators embedded in these tools. To implement the proposed system properly, a model of the drilling domain is constructed with all drilling mechanics and parameters, along with the well trajectory and temperature equations taken into consideration. The proposed model is implemented and tested using AgentOil, a multi-agent-based simulation tool, and the results are evaluated. Furthermore, the requirements of a real-time temperature mitigation system for Oil&amp;Gas drilling operations are identi ed and the constraints of such systems are analyzed.</p>
      </abstract>
      <kwd-group>
        <kwd>cyber-physical system</kwd>
        <kwd>multi-agent-based simulation</kwd>
        <kwd>high temperature drilling wells</kwd>
        <kwd>oil and gas drilling process</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>a composition of several drilling tools with various functionalities, searching for
natural resources. Once found, they will be produced and re ned for public use.</p>
      <p>While drilling, temperature increases with depth in a speci c rate. High
temperature damages the tools, which costs time for tripping operations to change
the damaged tool apart from the cost of the damaged tool itself. When these
tripping operations are not planned, the time spent is called Non-Productive
Time (NPT). With the intention to monitor the status of tools, sensors are
attached to them in order to read temperature, in which the use of Cyber Physical
Systems (CPS) concepts is important. Moreover, investing in technologies to
manage and mitigate high temperature showed to be cheaper than investing in
a technology to withstand high temperature.</p>
      <p>In most of the existing systems, temperature mitigation is executed by the
eld engineer up-hole (several kilometers above the down-hole tools) after data
about high temperature is sent from the down-hole tools. This mitigation relies
on mud cooler to cool the drilling mud, the latter will be in contact with
downhole tools. However, this process su ers from the following three aws:</p>
      <p>First, existing wells rely on analogue telemetry to undertake the
communication between tools down-hole and eld engineer up-hole. However, analogue
telemetry has the following couple of drawbacks:
(i) Long response time: the time for data to be sent up-hole, and for the impact
of the cooled mud to reach the tools down-hole. In deep wells (more than
1km), analogue telemetry bandwidth will be low (less than 1bit=second), as
mud pulse speed is 1kilometer=second [27].
(ii) Signal issues: the analogue signal is unreliable in extreme drilling conditions
like high temperature, as it maybe become noisy and sometimes even lost.
Second, the e ectiveness of the up-hole actuator (mud cooler) in high
temperature conditions may become ine cient (even in maximum power). Third, in
existing operations, the monitoring, problem detection, and decision making are
undertaken by humans. This makes the process error-prone, unresponsive, and
fault-tolerant.</p>
      <p>To overcome these aws, we propose a Multi-Agent System (MAS)
empowering the down-hole tools with a coordination mechanism to mitigate high
temperature autonomously in soft real time by controlling a down-hole actuator
through a voting process. The system allows to convert the drilling process into
an automatic CPS using MAS. In this system, the agents represent the
downhole drilling tools, and each agent is aware of the temperature speci cations of
its tool and it controls the sensors and actuators embedded in its tool. Moreover,
the agents react to data read by sensors attached to them, by triggering a voting
cycle to send commands a down-hole actuator (bit controller) aiming at
mitigating high temperature. Thus, the proposed system allows down-hole tools to
handle the situation and take actions without the intervention of up-hole entities
when the eld agent is not aware of the situation down-hole. Drilling
mechanics along with the well trajectory and temperature equations needed in drilling
operations are modeled in the system as the environment where the agents
interact. A tool agent votes to start the actuator in a speci c power level as per
its temperature speci cations and the current temperature, and an overall single
decision is aggregated as per the votes of all tools. We have implemented several
known voting rules to aggregate the votes.</p>
      <p>
        One of the challenges in oil eld automated applications according to [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] is
that there is a huge complexity associated with managing an asset operating in
the Oil&amp;Gas industry. Simulation environments provide a convenient alternative
to test such applications. Therefore, the proposed model is implemented and
tested using AgentOil, a multi-agent-based simulation tool of the drilling process
in oil elds [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], and the results are evaluated, discussed and validated. They show
that the down-hole tools agents are capable of autonomously mitigating high
temperature down-hole. This increases the life cycle of down-hole tools allowing
them to drill deeper as shown in the results.
      </p>
      <p>This work is organized as follows: Section 2 investigates the state-of-the-art
about the MAS and CPS applications in Oil&amp;Gas industry and about voting
systems with a short background knowledge about the drilling tools and
technologies. Section 3 discusses the proposed system. Section 4 evaluates the
proposed system and discusses the results. Section 5 presents a real-time analysis
for drilling agents. Section 6 draws conclusions and states the future work.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Background</title>
      <p>Since this work proposes a system for controlling drilling tools, Section 2.1
introduces a short background knowledge about the drilling tools and technologies.
Next, Section 2.2 discusses the literature of CPS and MAS in the Oil&amp;Gas
industry. Later, Social choice theory, and particularly voting systems as coordination
mechanisms, are studied in Section 2.3. Finally, a discussion about the real-time
compliance for MAS and CPS is provided in Section 2.4.
2.1</p>
      <sec id="sec-2-1">
        <title>Drilling Tools and Technologies</title>
        <p>The Bore-hole Assembly (BHA) is a set of drilling tools with embedded
electronics used to drill the well (or bore-hole). Following are the main components
from bottom to top of the BHA (Figure 1):
{ Bit: It is used to crush and cut rocks, hence drill;
{ Rotary Steerable System (RSS): It is designed to direct the drilling
process with continuous Rotation per Minute (RPM) of the bit. In addition,
it reacts to the steerable conditions and adjusts the position of the BHA;
{ Logging While Drilling (LWD): It measures in real time -while
drillingthe formation characteristics. Formation &amp; evaluation sensors are embedded
in these tools that measure data and give logs related to the drilled formation;
{ Measurements While Drilling (MWD): It embeds steering &amp; direction
sensors that read data to determine the position and direction of the tool
compared to the Earth magnetic and gravity elds. Additionally, it includes
the modulator responsible for transmitting collected data from all tools in
the BHA. Data transmission methods may vary from drilling company to
another, but the main method involves transmitting data to the surface as
pressure pulses in the mud system (analogue signal) which may witnesses
signi cant delay to reach the surface up-hole. Moreover, successful data
decoding up-hole is highly dependent on the signal-to-noise ratio.</p>
        <p>
          All tools are powered by two sources: 1. From the MWD, as it includes a
turbine that generates power from the ow of drilling mud. 2. From a battery
in the tool itself, when the ow of mud is stopped to add a new drilling tool
to the BHA. All tools have repair &amp; maintenance embedded sensors in them,
which give the status of the tool and measure the temperature that our system
is mitigating. Finally, all tools have electronic boards that enable programming
them up-hole as per the needed requirements of measurements, and hence, the
proposed model can be programmed in these boards.
The role of CPS in the industrial domain has been discussed thoroughly in the
literature [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. It has been stated that there is a need for new models, designs
and applications [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]. Recent research works proposed to increase the
interaction among artifacts of the system since the existing systems are not enough
[
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. In particular, they discussed the principles of predictive manufacturing
system as a strategy to allow manufacturing industry to increase competitiveness
through a highly transparent manufacturing process. However, they just stated
the principles of what the model should be without implementation.
        </p>
        <p>
          Other research works discussed how, by utilizing advanced information
analytics, networked machines will be able to perform more e ciently,
collaboratively and resiliently in soft real time. They speci cally proposed a uni ed
5-level architecture as a guideline for the implementation of CPS [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. However,
the proposed architecture did not consider the fact that entities in the system
may have di erent concerns and speci cations even though they are concerned
with the overall goal of the system.
        </p>
        <p>
          Most of the work in the MAS domain in Oil&amp;Gas industry is still theoretical
and conceptual. However, there are rare concrete applications. For instance,
in [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ], the authors discuss the scalability of oil eld production con gurations,
and present a novel application of multi-agent systems to facilitate intelligent
multi objective control for maturing Oil&amp;Gas elds. Moreover, most of the work
has concentrated on the supply chain and management aspects [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. They
overlooked the role of engineering in the drilling and production process of oil eld
wells. For instance, the potential of tools or equipments failing if being run out
of their speci cations.
2.3
        </p>
      </sec>
      <sec id="sec-2-2">
        <title>Voting Rules</title>
        <p>
          In the domain of MAS, voting systems are an active area of research that enables
decentralized decisions [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. Agents are likely to represent di erent stakeholders
with their own aims and objectives. This means that the most plausible design
strategy for an agent is to maximize its individual utility [26]. When di erent
agents have di erent preferences within a MAS, it is desirable to have a
mechanism enabling the agents within the system to make a collective decision. Often,
agents are competitive and have independent goals or perspectives. Nevertheless,
they need to be reconciled and to come to a consensus [20]. Each agent expresses
its preferences of the possible decisions, and a voting system aggregates these
preferences to determine the collective decision [21]. Therefore, a voting
system provides an e cient way to make a socially collective decision while taking
individual preferences into account [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ].
        </p>
        <p>Voting rules are de ned to handle the voting process considering some
properties like Anonymity (votes do not disclose the voters), Neutrality (each candidate
is treated the same) [21]. Voting rules vary in types and processes, hence in what
follows, we present the most used rules in the MAS literature:
1. Plurality: Voters cast a single vote, and the candidate with most votes wins.
2. Borda count: Each voter ranks the candidates in order as per her
preference. This ordering contributes points to each candidate based on the
position that she is ranked by the voter. In other words, if there are m
candidates, it contributes m 1 points to the candidate ranked rst, m 2
points to the second, and so on. Accordingly, the winner is the one with the
highest points [24].
3. Single Transferable Vote (STV): This rule requires up to m 1 rounds.</p>
        <p>
          In each round, the candidate with the lowest plurality score is eliminated
and votes for that candidate will be transferred to the remaining candidates
in the next round [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Due to the rounds, it takes signi cant time. Therefore,
it is not suitable for real-time applications, such as the one under study.
4. Condorcet: This rule elects, if applicable, the candidate that would win a
majority of the vote in all of the head-to-head voting against each of the other
candidates, whenever there is such a candidate, it is called the Condorcet
winner.
2.4
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Real-time Compliance For MAS and CPS</title>
        <p>
          Real-time compliance has been identi ed as a key feature for MAS [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] and
CPS [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. In particular, in [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ], the authors showed that, while MAS demonstrated
useful capabilities in regulating interactions among CPS components, most of
the existing MAS architectures employ negotiation protocols lacking real-time
compliance. Therefore, the authors conclude that existing negotiation protocols
are not ready to face the strong real-time constraints which characterize the CPS.
        </p>
        <p>
          In a later contribution [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], the authors show that most of the existing MAS
environments in the literature rely on traditional general-purpose scheduling
algorithms. This makes them unable to enforce the compliance with strict timing
constraints. Thus, it is not possible to provide any guarantees about the system
behavior in the worst-case scenario.
        </p>
        <p>This section presented the related work in the domains of MAS and CPS as
an application in Oil&amp;Gas industry, and it discussed the real-time compliance
for MAS and CPS. Additionally, a survey of the most used voting systems in
such applications are presented. Next section will discuss the proposed system.
3</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Contribution</title>
      <p>This work proposes that tools down-hole mitigate high temperature autonomously
in soft real time with a decentralized collective decision. Notably, it takes
advantage of the current infrastructure allowing for communication between these
tools, as they all send measured/logged data to the MWD in order to send them
up-hole. Additionally, there is one actuator down-hole in the RSS, which is the
bit controller. It is responsible for controlling the bit rotation, that a ects the
speed. Reducing the speed means delaying the time to reach higher temperature.
Although this leads to slower drilling, it mitigates the temperature raise, thereby
save the tools from failure allowing them to drill deeper. Section 3.1 analyzes
the drilling mechanics and parameters. Section 3.2 discuses the multi-agent and
voting architecture of the system. In addition, the proposed voting system is
presented and explained.
3.1</p>
      <sec id="sec-3-1">
        <title>Drilling Mechanics Model</title>
        <p>In the literature of Oil&amp;Gas domain, there is no concrete model of the drilling
process and operations. Such model should include the drilling and temperature
equations needed to implement and evaluate the system properly. In this section,
concepts from the drilling terminology discussed in our model are introduced.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Measured Depth and True Vertical Depth</title>
        <p>Measured Depth (MD) is the length of the well-bore, while True Vertical
Depth (TVD) is the vertical distance from the surface until the bit. TVD is
particularly important in determining the down-hole temperature. Measured with
accelerometers in MWD, inclination is the deviation from vertical, irrespective
of compass direction, expressed in degrees. It is relating MD with TVD using the
Pythagorean equation. TVD calculation equation using average angle method is
shown in Equation 1.</p>
        <p>T V D =</p>
        <p>M D</p>
        <p>Where: M D = measured depth between two readings in di erent depths;
I1 = inclination at upper reading; I2 = inclination at lower reading. Assuming
the Azimuth direction is not changing, T V Dnew will be calculated as: T V Dnew =
T V Dold + T V D.</p>
      </sec>
      <sec id="sec-3-3">
        <title>Temperature Gradient</title>
        <p>
          The rate of increase in temperature per unit depth in Earth is called
Temperature Gradient, a.k.a. Geothermal Gradient. Although it is location dependent,
it averages at 30 C /kilometer [15 F /kilofeet] [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. It increases drastically around
volcanic areas or with the presence of radioactive materials in the formation [22].
The most accurate way to get the down-hole tool temperature is by measuring
it with a temperature sensor. Alternatively, it can be estimated by adding the
surface temperature to the product of the depth and the geothermal gradient as
shown in Equation 2.
        </p>
        <p>DownHoleT emp = Surf aceT emp + T V D
GeothermalGradient
(2)</p>
      </sec>
      <sec id="sec-3-4">
        <title>Drilling parameters</title>
        <p>Set by the eld engineer, drilling parameters are used to control the drilling
process. Mainly, we focus in our model on three essential parameters:
{ Force: represented by Weight-on-Bit (WOB) applied to the drill-string, and
it is only controlled up-hole.
{ Rotation: represented by Revolutions-per-Minute (RPM) of the drill-string,
and it is controlled up-hole but can also be altered down-hole in our system.
{ Flow rate: which is the mud aw rate circulating inside the drill-string to
cool down the tools and carry cuttings resulted from the drilling process.
Other conditions a ecting the drilling process are bit type (roller cones, diamond,
etc.), bit characteristics (cutting structure, dullness on drilling rate, rate of tooth
wear and bearing life, etc.) and the size of the hole. However, they do not change
through out the drilling run, hence we did not consider them in our model.</p>
        <p>The speed of drilling process or the Rate of Penetration (ROP) as a function
of several parameters is shown in (Equation 3) [19].</p>
        <p>W OB</p>
        <p>ROP = K ap r (3)</p>
        <p>Where K: Formation factor, is a constant related to formation hardness;
W OB: function of WOB; r: function of RPM; aP : function of ow rate and bit
characteristics (for detailed information, c.f. [19]).</p>
      </sec>
      <sec id="sec-3-5">
        <title>The Multi-Agent and Cyber-Physical Architecture</title>
        <p>Based on the BHA components (Section 2.1) in existing oil eld wells, we propose
in our model the use of MAS in Oil&amp;Gas drilling operations (Figure 2), with
the intention to convert it to a CPS application. Consequently, this will include
using intelligent agents instead of humans.</p>
        <p>In Figure 2 down-hole, we represent each programmable down-hole tool in
the BHA (MWD, LWD and RSS) with an agent. This agent is responsible for the
sensors and actuators embedded in the tool. Each tool has di erent sensors that
are used to measure three di erent kinds of data: Steering &amp; direction data,
repair &amp; maintenance data, and formation evaluation data. Only the MWD
agent controls the modulator which is responsible for the communication with
eld engineer up-hole. Likewise, only the RSS agent controls the bit controller
that changes the rotation of bit, which is the actuator concerned by the voting
down-hole.</p>
        <p>In Figure 2 up-hole, the eld agent is replacing the eld engineer. This agent
is responsible for controlling the drilling process by changing drilling parameters
when needed to drill ahead and reach the total depth. Additionally, it controls
the up-hole actuator (mud cooler) that is responsible for cooling the mud, which
will be in contact with all tools.</p>
        <p>Even though controlling the rotation speed is not implemented yet down-hole,
we argue that, the infrastructure to do so is present in the RSS. The bene t of
decreasing the rotation of bit is to slow down drilling and delay reaching a high
temperature zone.</p>
        <p>All voting rules that use several rounds to determine the winner are not
suitable in this real-time application since they take time to conclude a result.
Therefore, we implemented in our system those that use only one round.
However, these voting rules have the drawback of not supporting the Condorcet
consistency criterion. Therefore, we also included the implementation of the
Condorcet rule.</p>
        <p>The decision to activate the bit controller as well as to choose the needed
power level is based on the achieved e ciency in mitigating high temperature
with a lower cost, i.e. if the bit controller power level 40% is enough, then there
is no need to choose the 100% power level. The current temperature of the tool is
read by a sensor attached to the tool. It will be compared with the temperature
speci cation level, and if it reaches this level, the tool reacts by initiating a
voting cycle to start the bit controller.</p>
        <p>The vote represents the desired bit controller power level which is determined
as per the temperature speci cation levels of each tool. The vote has to be from
a discrete set of candidates of bit controller power levels, which is f0, 20, 40, 60,
80, 100g.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Evaluation and Results</title>
      <p>
        AgentOil [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ], a multi-agent-based simulation tool of the drilling process in
oilelds, was used to evaluate the proposed system. AgentOil is implemented using
RePast simphony [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], a multi-agent simulation environment, as it has signi
cant operational and executional features [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. The evaluation is performed as
follows. First, Section 4.2 assesses the e ectiveness of the proposed system by
comparing the results obtained when the proposed system enabled with results
obtained when the system is disabled. Second, Section 4.3 analyzes in detail the
behavior of our system throughout the whole run in soft real time. Before listing
the experiments performed, Section 4.1 states the initial parameters of these
experiments.
4.1
      </p>
      <sec id="sec-4-1">
        <title>Initialization and Parameters</title>
        <p>We have used a laptop with the following features to conduct experiments with
the simulation: Processor: Intel Core i5-2520M; CPU: 2.50GHz; RAM: 8GB;
OS: Windows 7 Ultimate 64-bit. The simulation runs for one drilling run, and
all parameters have initial values that the user can change if needed before
the simulation starts. Once the simulation starts, all tool agents and actuators
(down-hole and up-hole) are created and set accordingly in the environment. We
set a simulation tick to be corresponding to one minute. Thus, the results will
be normalized as speed is given in meter=minute.</p>
        <p>Every tick, drilling mechanics and parameters are updated to calculate the
ROP (Equation 3). The agents measure M D, and compute their T V D from it
(Equation 1). Then, they calculate the current temperature as per the TVD,
geothermal gradient, and surface temperature (Equation 2). Once they have
their temperatures, the decision model in each tool is considered, and requests
for starting actuators are sent accordingly to mitigate high temperature either
to start the mud cooler up-hole when reaching the danger level of the tool, or to
start the bit controller when reaching the critical level.</p>
        <p>A simulation run can end either successfully (reaching total depth) or
unsuccessfully (with a tool failure). On the one hand, if both mitigation measures
up-hole and down-hole were insu cient, a tool fails and a tripping operation
is needed to change the BHA. This means NPT for the whole system.
Consequently, the simulation ends with a message saying which tool failed and with
what temperature along with the corresponding depth. On the other hand, if
no failure happens, and the RSS reaches the total depth, the simulation ends
and a message is displayed explaining how much time it took to drill the well.
Each experiment has been conducted tens of times and an average has been
concluded. In each experiment, we have used a xed number of agents to
normalize the results, as follows: Up-hole: one eld agent and one up-hole actuator
agent; Down-hole: one MWD agent, three LWD agents, one RSS agent and one
down-hole actuator agent.
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>The E ectiveness of the Proposed System</title>
        <p>Figure 3 shows the results in terms of time and depth of running the simulation
with the proposed system (colored curves) and without it (gray curve). We have
averaged the results for di erent values of xed WOB (the x-axis). Figure 3
(left) illustrates the time elapsed before failure (in other words, how much time
the tools survived in high temperature environment). Correspondingly, Figure
3 (right) plots the depth before failure (in other words, how much depth was
drilled before failure), which is the main goal of drilling a well. In both gures,
three voting rules were examined: Condorcet (in green), Plurality (in red), Borda
count (in blue).</p>
        <p>From Figure 3 (left), it can be noticed that all colored curves are above the
gray curve, which means that all runs of the proposed system (with di erent
voting rules) are better than simulation runs without enabling the proposed
system. This result should be taken relatively, as more time means a longer delay
before reaching the goal, and hence more money spent. Therefore, it should not
be considered alone without the impact on depth before failure. Figure 3 (right)
shows that the colored curves are below the gray curve (signi cantly with high
WOB). For example the green curve (Condorcet rule) has drilled with 30k lbf
WOB till approximately 4356 m which is 16 m more than what the gray curve
(without enabling the proposed system) has drilled. Even though this di erence
in depth drilled may seem insigni cant, it is vital in extreme drilling conditions
because drilling 16 m at a deep depth takes hours in such conditions, and each
hour a large amount of money is being spent to operate the drilling rig and pay
for various services.
In this experiment, we investigate the behavior of the proposed system in
simulation ticks to analyze the impact in mitigating high temperature in soft real
time. All runs are done with xed WOB: 10k lbf. In this experiment, a chart
of temperature of one of the tools throughout the simulation is presented. In
which, the x-axis represents time (simulation ticks), and the left y-axis
represents temperature in degC.</p>
        <p>As seen from Figure 4, for this drilling run, the starting position was 3000 m,
and the temperature corresponding for this depth was 99 degC. This explains the
beginning of the left y-axis. The blue curve represents the actual temperature
mitigated by the system, while the red curve represents the temperature if no
mitigation is done, hence, the temperature increases linearly in time while drilling
with xed WOB. We can easily notice that, compared with the red curve, the
blue curve witnesses considerable drops throughout the simulation run.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Discussion</title>
      <p>
        The aim of the CPS proposed in this article is to make a step forward towards
a real-time temperature mitigation system for Oil&amp;Gas drilling applications.
However, as been shown in recent studies in the literature, real-time compliance
is one of the most di cult challenges confronting the application of MAS in CPS.
In particular, Calvaresi et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] ascribed the absence of real-time compliance
in MAS systems to some of the fundamental elements of these systems such
as agent internal scheduler, and the communication and negotiation protocols.
Therefore, upgrading these elements individually is not su cient to achieve
realtime compliance. To overcome these limitations, the authors in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] sketch a
blue-print for a solution allowing for real-time compliance of MAS.
      </p>
      <p>In time-critical environments such as Oil&amp;Gas drilling operations, real-time
compliance is a primordial element. However, since this work has been
implemented in Repast, it cannot overcome the limitations imposed by this
multiagent simulation environment. That being said, within the aforementioned
limitations, this works tries to address the real-time compliance by relying on a
voting system with a single-round voting rule. This choice is explained as follows.
First, typically, decentralized decision making problems can be solved with
techniques like Distributed Constraint Satisfaction Problems (DisCSP) [28], these
solutions are time-consuming and cannot comply to a time-critical application
such as Oil&amp;Gas drilling. Second, voting systems are very e cient when it comes
to small preference aggregation of choosing between a discrete set of candidates.</p>
      <p>Yet, this paper presents a work-in-progress. Other real-time compliance
aspects will be addressed such as requirement to initiate a voting, the voting time
window, and the delay before the actuators are activated will be studied and
addressed. Furthermore, the communication delay is another considerable factor
that should be taken into account in order to enhance the real-time compliance.</p>
      <p>Existing technologies in materials engineering are currently being tested for
drilling in the temperature of 200 degC. Several materials are used for these tests
from plastic-encapsulated electronics on a plastic board, to ceramic-encapsulated
electronics on a plastic board, to ceramic and metal components (no plastics)
[23]. Yet, beyond this temperature, there is a need for a mitigation process to
handle the temperature instead of a material to withstand the temperature.</p>
      <p>Figure 5 illustrates an example of the requirements of the real-time system
we plan to build. In this example, there are 4 agents: one MWD, two LWDs,
one RSS, and one actuator (bit controller). The temperature that damages the
tools is 200 degC, and the RSS reaches the critical temperature of 195 degC.
Although any tool can reach the critical temperature, there are two worst case
scenarios when either the MWD or the RSS faces high temperature, as the
communication time between down-hole tools in these cases will be maximized
to send the requests to other tools, due the fact that the tools are connected
in sequence. Therefore, in this example, we chose one of these two worst case
scenarios. The time window in which the system should react to mitigate the
temperature is T imeW indow = t(DamageT emp) t(CriticalT emp) = 5 to 10
minutes where t(x) represents the time when the tool reaches the temperature
x.
While drilling, high temperature damages the down-hole tools, and the
existing mitigation process is insu cient, due to the physical distance and the fact
that the communication is analogue between the down-hole tools and the eld
engineer up-hole that controls the existing mitigation process. Most of the
exciting works proposing to use MAS in Oil&amp;Gas are conceptual, with no concrete
application of MAS in the engineering aspect.</p>
      <p>In the proposed system, The tools agents react to high temperature and
socialize to mitigate this high temperature autonomously down-hole and in soft
real time. Voting rules have di erent pros and cons, so we have implemented
several voting rules in our voting system (Plurality, Borda count and Condorcet).
LWD
1
LWD
2
RSS
B
it
Legend
R4 S4</p>
      <p>V3
R3 S3</p>
      <p>V2
R2 S2
V1</p>
      <p>DT</p>
      <p>A1</p>
      <p>A2
Voting Time</p>
      <p>Decision Apply Action
Time (start actuator)</p>
      <p>Time for the effect to
take place</p>
      <p>Time
Tool Agent</p>
      <p>Process</p>
      <p>Actuator
The results of the performed experiments show that the system mitigates high
temperature by delaying the damage and allowing the tools to drill deeper.
Finally, we discussed the requirements of a real-time temperature mitigation
system for Oil&amp;Gas drilling operations, and we have analyzed the constraints of
such system.</p>
      <p>Starting the actuator slows down the drilling, which means more time to
reach the target, i.e. higher cost for the whole drilling process. On the other
hand, not starting the actuator in case of high temperature damages the tools,
i.e. NPT due to tripping operations to change the BHA. Therefore, there will
be a need to update the tool agent decision model with a utility function to
accommodate the trade-o .</p>
      <p>Acknowledgements: This work is partially supported by the Wallenberg AI,
Autonomous Systems and Software Program (WASP) funded by the Knut and Alice
Wallenberg Foundation.</p>
      <p>This work is partially supported by the Region Bourgogne Franche-Comte (RBFC,
France) project UrbanFly 20174-06234/06242.
19. Osgouei, R.E., Ozbayoglu, M.: Rate of penetration estimation model for directional
and horizontal wells. In: 16th International Petroleum and Natural Gas Congress
and Exhibition of Turkey (2007)
20. Rosenschein, J., Procaccia, A.: Voting in cooperative information agent scenarios:
use and abuse. Cooperative Information Agents X pp. 33{50 (2006)
21. Rossi, F., Venable, K.B., Walsh, T.: A short introduction to preferences: between
arti cial intelligence and social choice. Synthesis Lectures on Arti cial Intelligence
and Machine Learning 5(4), 1{102 (2011)
22. Sanders, R.: Radioactive potassium may be major heat source in earth's core. UC</p>
      <p>Berkeley News. Retrieved pp. 02{28 (2007)
23. Schlumberger: High temperature drilling operations. Tech. rep., Schlumberger:
Oileld Services (2015)
24. Shoham, Y., Leyton-Brown, K.: Multiagent systems: Algorithmic, game-theoretic,
and logical foundations. Cambridge University Press (2008)
25. The UK Oil &amp; Gas industry association: Oil &amp; Gas UK Economic Report 2017,</p>
      <p>ISBN: 1903004942. Tech. rep., OIL&amp;GASUK (2017)
26. Von Neumann, J., Morgenstern, O.: Theory of games and economic behavior.</p>
      <p>Princeton university press (2007)
27. Xiushan, L., Shushan, H., Zhengchao, Z.: Hydrodynamic equations model
mudpulse telemetry transmissions. Oil &amp; gas journal 101(3), 47O49 (2003)
28. Yokoo, M.: Distributed constraint satisfaction: foundations of cooperation in
multiagent systems. Springer Science &amp; Business Media (2012)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Al</given-names>
            <surname>Meshabi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.O.</given-names>
            ,
            <surname>Khazindar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.M.</given-names>
            ,
            <surname>Orenstein</surname>
          </string-name>
          ,
          <string-name>
            <surname>H.</surname>
          </string-name>
          , et al.:
          <article-title>Attitude of collaboration, real-time decision making in operated asset management</article-title>
          .
          <source>In: SPE Intelligent Energy Conference and Exhibition. Society of Petroleum Engineers</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baheti</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gill</surname>
          </string-name>
          , H.:
          <article-title>Cyber-physical systems</article-title>
          .
          <source>The impact of control technology 12</source>
          ,
          <volume>161</volume>
          {
          <fpage>166</fpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Conitzer</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Endriss</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>Computational social choice</article-title>
          .
          <source>Multiagent</source>
          systems pp.
          <volume>213</volume>
          {
          <issue>283</issue>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Calvaresi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Appoggetti</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lustrissimi</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marinoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sernani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schumacher</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>Multi-agent systems' negotiation protocols for cyberphysical systems: Results from a systematic literature review</article-title>
          .
          <source>In: Proceedings of the 10th International Conference on Agents and Arti cial Intelligence</source>
          ,
          <source>ICAART</source>
          <year>2018</year>
          , Volume
          <volume>1</volume>
          ,
          <string-name>
            <surname>Funchal</surname>
          </string-name>
          , Madeira, Portugal, January
          <volume>16</volume>
          -
          <issue>18</issue>
          ,
          <year>2018</year>
          . pp.
          <volume>224</volume>
          {
          <issue>235</issue>
          (
          <year>2018</year>
          ). https://doi.org/10.5220/0006594802240235, https://doi.org/10.5220/ 0006594802240235
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Calvaresi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marinoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lustrissimini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Appoggetti</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sernani</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoni</surname>
            ,
            <given-names>A.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schumacher</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buttazzo</surname>
          </string-name>
          , G.:
          <article-title>Local scheduling in multi-agent systems: getting ready for safety-critical scenarios</article-title>
          .
          <source>In: 15th European Conference on MultiAgent Systems (EUMAS)</source>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Calvaresi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marinoni</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sturm</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schumacher</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buttazzo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>The challenge of real-time multi-agent systems for enabling iot and cps</article-title>
          .
          <source>In: Proceedings of the International Conference on Web Intelligence</source>
          . pp.
          <volume>356</volume>
          {
          <fpage>364</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Collier</surname>
          </string-name>
          , N.:
          <article-title>Repast: An extensible framework for agent simulation</article-title>
          .
          <source>The University of Chicago's Social Science Research</source>
          <volume>36</volume>
          ,
          <year>2003</year>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Conitzer</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sandholm</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Common voting rules as maximum likelihood estimators</article-title>
          .
          <source>arXiv preprint arXiv:1207.1368</source>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Jellison</surname>
            ,
            <given-names>M.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hall</surname>
            ,
            <given-names>D.R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Howard</surname>
            ,
            <given-names>D.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hall</surname>
            <given-names>Jr</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>H.T.</given-names>
            ,
            <surname>Long</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.C.</given-names>
            ,
            <surname>Chandler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.B.</given-names>
            ,
            <surname>Pixton</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.S.</surname>
          </string-name>
          , et al.:
          <article-title>Telemetry drill pipe: enabling technology for the downhole internet</article-title>
          .
          <source>In: SPE/IADC drilling conference. Society of Petroleum Engineers</source>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Julian</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Botti</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Developing real-time multi-agent systems</article-title>
          .
          <source>Integrated Computer-Aided Engineering</source>
          <volume>11</volume>
          (
          <issue>2</issue>
          ),
          <volume>135</volume>
          {
          <fpage>149</fpage>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Krogh</surname>
            ,
            <given-names>B.H.</given-names>
          </string-name>
          :
          <article-title>Cyber physical systems: the need for new models and design paradigms</article-title>
          .
          <source>Presentation Report</source>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Lang</surname>
          </string-name>
          , J.:
          <article-title>Logical preference representation and combinatorial vote</article-title>
          .
          <source>Annals of Mathematics and Arti cial Intelligence</source>
          <volume>42</volume>
          (
          <issue>1</issue>
          ),
          <volume>37</volume>
          {
          <fpage>71</fpage>
          (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lapira</surname>
          </string-name>
          , E.:
          <article-title>Predictive factories: the next transformation</article-title>
          .
          <source>Manufacturing Leadership Journal</source>
          <volume>20</volume>
          (
          <issue>1</issue>
          ),
          <volume>13</volume>
          {
          <fpage>24</fpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bagheri</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kao</surname>
            ,
            <given-names>H.A.</given-names>
          </string-name>
          :
          <article-title>A cyber-physical systems architecture for industry 4.0-based manufacturing systems</article-title>
          .
          <source>Manufacturing Letters</source>
          <volume>3</volume>
          ,
          <issue>18</issue>
          {
          <fpage>23</fpage>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Marcellino</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sichman</surname>
          </string-name>
          , J.:
          <article-title>Oil industry supply chain management as a holonic agent based distributed constraint optimization problem</article-title>
          .
          <source>In: Proc. International Workshop on Arti cial Intelli-gence and Logistics AILog@ ECAI</source>
          . pp.
          <volume>19</volume>
          {
          <issue>24</issue>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Mikkelsen</surname>
            ,
            <given-names>L.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>J rgensen</surname>
            ,
            <given-names>B.N.</given-names>
          </string-name>
          :
          <article-title>Application of multi-agent systems in o shore oil and gas production</article-title>
          .
          <source>In: Proceedings of IADIS Multi Conference on Computer Science and Information Systems</source>
          . pp.
          <volume>158</volume>
          {
          <issue>163</issue>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Mualla</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bai</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Galland</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nicolle</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Comparison of agent-based simulation frameworks for unmanned aerial transportation applications</article-title>
          .
          <source>In: 7th International Workshop on Agent-based Mobility</source>
          ,
          <article-title>Tra c and Transportation Models, Methodologies and Applications</article-title>
          . Procedia Computer Science, Elsevier (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Mualla</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vanet</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Najjar</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boissier</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Galland</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>AgentOil: a multiagent-based simulation of the drilling process in oil elds</article-title>
          .
          <source>In: 16th International Conference on Practical Applications of Agents and Multi-Agent Systems</source>
          . Springer (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>