<!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>Functional Size Measurement for Energy Needs early Estimation in Autonomous Drones</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hassan Soubra</string-name>
          <email>hassan.soubra@estaca.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Toufik Azib</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>ESTACA</institution>
          ,
          <addr-line>Montigny-le-Bretonneux 78180</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>18</fpage>
      <lpage>20</lpage>
      <abstract>
        <p>A drone, or more formally known as an unmanned aerial vehicle (UAV), is a type of aircraft that is not designed to carry humans. Where in their early ver-sions, drones were often controlled remotely by a human operator; they have re-cently become fully or partially autonomous. Today, there is massive growth in the use of drones in a wide range of applications: military, aerial photography, search and rescue operations, in the field of agriculture, to name a few. The em-bedded software used in autonomous drones must perform in real-time, allowing the drone to interact with its environment. The Internet of drones (IoD) was born when drones were interconnected via a network allowing them to coordinate. Functional size measurement (FSM), a powerful tool for managing software pro-jects, provides an objective and quantitative base for management decisions. In this paper, we discuss work in progress on COSMIC functional size for estimat-ing energy consumption of drones as an illustration of the potential benefit of us-ing FSM in the context of IoD.</p>
      </abstract>
      <kwd-group>
        <kwd>COSMIC</kwd>
        <kwd>Unmanned Aerial Vehicle</kwd>
        <kwd>Internet of Drones (IoD)</kwd>
        <kwd>FSM</kwd>
        <kwd>Energy consumption</kwd>
        <kwd>Pixhawk Autopilot</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        A new era of UAV is emerging today: autonomous drones. These autonomous drones
are no longer controlled by a human operator and they have a growing number of
applications: in defense, transportation, photography, communication, agriculture,
disaster mitigation and environment preservation [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Real-time embedded software (RTES)
and embedded energy sources are what makes autonomous drones possible. RTES
allows the drones to perform certain missions and coordinate in the context of IoD.
Naturally, the capacity of the source of energy should be sufficient for the drone to operate
a particular mission. Different types of missions have different power con-sumptions.
Energy constraints are very important in the context of UAVs [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. COSMIC Software
functional size can be used for a number of purposes in domains where real-time
embedded software is omnipresent [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]: to obtain system related technical indicators early
in the design phase (e.g. processor load, network load, etc.). It can also be used to
estimate development effort, manage project scope changes, measure productivity,
benchmark and normalize quality and maintenance ratios. The COSMIC method is accepted
as an International Standard: ISO/IEC 19761 Software Engineering – COSMIC – A
functional size measurement method.
      </p>
      <p>
        Among the many challenges facing autonomous drones today is energy consumption
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. In fact, there are several types of energy sources that can be embedded in an
autonomous drone.
      </p>
      <p>This paper presents a work in progress on an estimation process, using COSMIC
FSM, to predict energy consumption early in the project specification requirements
phase.</p>
      <p>The paper is organized as follows. Section 2 presents a literature review of energy
consumption estimation. Section 3 presents an overview of COSMIC. Section 4
presents our work in progress including the experimental set-up. Section 5 presents our
conclusions and a discussion of our work in progress.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Related Work on Energy Consumption Estimation</title>
      <p>This section presents related work on methods or processes tackling energy estimation
in the context of autonomous drones and the RTES domain generally.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] an energy-aware path planning algorithm for UAV is proposed. The algorithm
is based on an energy model derived from real measurements, and it is aimed to
minimize energy consumption while satisfying coverage and resolution.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] a study on flight mission planning of battery-operated autonomous drones,
considering autonomous recharging is presented.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], a review various aspects of work on Li-ion battery prognostics and health
monitoring is presented. The study summarizes the techniques, algorithms and models
used for state-of-charge (SOC) estimation, current/voltage estimation, capacity
estimation and remaining-useful-life (RUL) prediction.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] an electromotive force (EMF) model is proposed to estimate state of charge
(SOC) of a power battery.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] an architecture of a framework which enables secure end-to-end and reliable
data transfer for heterogeneous mobile terminals by also describing and modeling its
power demand, with the aim of achieving a robust and reliable ubiquitous data transfer
service also minimizing the overall battery consumption in such devices has been
proposed.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] a research study evaluates complexity of proper security implementation in
embedded devices possessing different constrains: limited memory, limited processing
power and limited energy consumption. It has identified a relation between additional
instructions processing against energy consumption.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], energy and time related characteristics of widely used cryptographic
algorithms for data-sensitive embedded real-time systems are analyzed. In addition, a
multidimensional analysis framework that reveals power, speed, and unit energy cost of
cryptographic algorithms is proposed.
      </p>
      <p>The literature review shows no work proposed on energy consumption estimation
early in the design phase.
3</p>
    </sec>
    <sec id="sec-3">
      <title>COSMIC Overview</title>
      <p>
        COSMIC [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] provides a standardized method for measuring the functional size of
software from both Management Information Systems and real-time domains.
COSMIC is considered a second-generation FSM and has been accepted as an
International Standard (ISO/IEC 19761, Software Engineering – COSMIC – A functional
size measurement method).
      </p>
      <p>In COSMIC, a functional process is a set of data movements representing an
elementary part of FUR for the software being measured. The set is unique within the FUR
and is defined independently of any other functional process. A functional process may
have only one triggering Entry. Each functional process begins processing on receipt
of a data group moved by the triggering Entry data movement of the func-tional
process. The set of all data movements of a functional process is the set need-ed to meet
its FUR for all possible responses to the triggering Entry. According to COSMIC,
software functionality is embedded within the functional flows of data groups. Data flows
can be characterized by four distinct types of movement. Two types (Entries (E) and
Exits X)) between the functional user FU and a COSMIC func-tional process allow the
exchange of data with a functional user across a boundary. Two other types (Reads (R)
and Writes (W) between a COSMIC functional process and the persistent storage allow
exchange of data with the persistent storage hard-ware. The measurement result
corresponds to the functional size of the FUR of the software measured, and is expressed in
COSMIC Function Points (or CFP).
4
4.1</p>
    </sec>
    <sec id="sec-4">
      <title>Work in Progress</title>
      <p>Approach
To estimate energy consumption early in the design phase, our research is divided into
five steps:
1.</p>
      <p>Hardware: Design and assemble an autonomous drone platform. The
drone must be able to support different types of energy sources (e.g.
batteries, supercapacitors, etc.).
2. Software: Create different mission profiles for the autonomous drone and
implement them.
3. FSM: Measure the COSMIC functional size of each mission profile.
4. Energy needs: Observe the energy consumption for each mission profile
and for each energy source.
5. Estimation: Use the measurement results in step 3 and 4 to build energy
consumption estimation models for new mission profiles.
Step 1 of our research has been realized. An autonomous drone has been assembled at
ESTACA (Fig.2) using the following modules:
 DJI F550 Flame Wheel E305 Kit ARF V2 + NAZA M-LITE GPS + Landing</p>
      <p>Legs: Chassis and GPS.
 Pixhawk PX4 2.4.6: autopilote module.
 Turnigy Graphene 2700mAh 4S 65C Lipo Pack w/ XT60U: energy source
 FrSky X8R 8/16CH Full Duplex: Telemetry (for safety reasons).</p>
      <p>As shown in Fig.2, the drone is designed to support different energy sources. Fig.2
also shows the drone in the langing process.</p>
      <p>
        The drone has been tested using a pilot mission programmed using QGroundControl
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. QGroundControl provides flight control and vehicle setup for PX4 powered
vehicles. QGroundControl enables mission planning for autonomous flight.
QGroundControl will be used to define the mission profiles in step 2 of our methodology.
Today, there is massive growth in the use of autonomous drones for different
applications. Energy constraints are very important in the context of UAVs.
      </p>
      <p>This paper described work in progress towards energy needs estimation early in the
mission-planning phase for UAV or drones.</p>
      <p>The steps of a method for estimation energy needs using FSM has been described.
Then, a drone has been designed and assembled at ESTACA in order to verify the
feasibility of the method proposed. We are currently continuing to work on defining new
mission profiles for the drone, before starting both the FSM and the energy
con-sumption measurement processes. Later we will map the results and create estimation models
for power consumption for future missions.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This work would not be possible without the contribution of two ESTACA stu-dents:
Nathan BAILET and Antoine CASABIANCA. We are grateful to them for designing,
assembling and testing the drone.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. FLOREANO,
          <string-name>
            <surname>Dario et</surname>
            <given-names>WOOD</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Robert</surname>
            <given-names>J</given-names>
          </string-name>
          .
          <article-title>Science, technology and the future of small autonomous drones</article-title>
          .
          <source>Nature</source>
          ,
          <year>2015</year>
          , vol.
          <volume>521</volume>
          , no 7553, p.
          <fpage>460</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Di</given-names>
            <surname>Franco</surname>
          </string-name>
          , Carmelo, and
          <string-name>
            <given-names>Giorgio</given-names>
            <surname>Buttazzo</surname>
          </string-name>
          .
          <article-title>"Energy-aware coverage path planning of UAVs." Autonomous Robot Systems and Competitions (ICARSC), 2015 IEEE International Confer-ence on</article-title>
          .
          <source>IEEE</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Soubra</surname>
            , Hassan, and
            <given-names>Alain</given-names>
          </string-name>
          <string-name>
            <surname>Abran</surname>
          </string-name>
          .
          <article-title>"Functional size measurement for the internet of things (IoT): an example using COSMIC and the arduino open-source platform</article-title>
          .
          <source>" Proceedings of the 27th International Workshop on Software Measurement and 12th International Conference on Software Process and Product Measurement. ACM</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Choi</surname>
            , Youngmin, and
            <given-names>Paul M.</given-names>
          </string-name>
          <string-name>
            <surname>Schonfeld</surname>
          </string-name>
          .
          <article-title>Drone Deliveries Optimization with Battery Energy Constraints</article-title>
          . No.
          <volume>18</volume>
          -
          <fpage>02726</fpage>
          .
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Di</given-names>
            <surname>Franco</surname>
          </string-name>
          , Carmelo, and
          <string-name>
            <given-names>Giorgio</given-names>
            <surname>Buttazzo</surname>
          </string-name>
          .
          <article-title>"Energy-aware coverage path planning of UAVs." Autonomous Robot Systems and Competitions (ICARSC), 2015 IEEE International Confer-ence on</article-title>
          .
          <source>IEEE</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. TSENG,
          <string-name>
            <surname>Chien-Ming</surname>
            ,
            <given-names>CHAU</given-names>
          </string-name>
          , Chi-Kin,
          <string-name>
            <given-names>ELBASSIONI</given-names>
            ,
            <surname>Khaled</surname>
          </string-name>
          , et al.
          <article-title>Flight tour planning with recharging optimization for battery-operated autonomous drones</article-title>
          .
          <source>arXiv preprint arXiv:1703.10049</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Zhang, Jingliang, and
          <string-name>
            <given-names>Jay</given-names>
            <surname>Lee</surname>
          </string-name>
          .
          <article-title>"A review on prognostics and health monitoring of Li-ion battery</article-title>
          .
          <source>" Journal of Power Sources</source>
          <volume>196</volume>
          .15 (
          <year>2011</year>
          ):
          <fpage>6007</fpage>
          -
          <lpage>6014</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. WU,
          <string-name>
            <surname>Tie-zhou et</surname>
            <given-names>HU</given-names>
          </string-name>
          ,
          <article-title>Li-ping</article-title>
          .
          <source>Study of SOC estimation algorithm of power battery based on UKF. Power Electronics</source>
          ,
          <year>2014</year>
          , vol.
          <volume>48</volume>
          , no 4, p.
          <fpage>23</fpage>
          -
          <lpage>26</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Castiglione</surname>
          </string-name>
          ,
          <string-name>
            <surname>Arcangelo</surname>
          </string-name>
          , et al.
          <article-title>"An energy-aware framework for reliable and secure end-toend ubiquitous data communications." Intelligent Networking and Collaborative Systems</article-title>
          (IN-CoS),
          <source>2013 5th International Conference on. IEEE</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Krumins</surname>
          </string-name>
          ,
          <source>Ingus. "Security Impact on Embedded System Performance."</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Jiang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Wei</surname>
          </string-name>
          , et al.
          <article-title>"Measurement-based research on cryptographic algorithms for em-bedded real-time systems</article-title>
          .
          <source>" Journal of Systems Architecture</source>
          <volume>59</volume>
          .10 (
          <year>2013</year>
          ):
          <fpage>1394</fpage>
          -
          <lpage>1404</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <source>COSMIC Measurement Manual Version 4.0</source>
          .1,
          <string-name>
            <given-names>Common</given-names>
            <surname>Software Measurement</surname>
          </string-name>
          In-ternational Consortium,
          <year>2015</year>
          . http://cosmic-sizing.org
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>13. http://qgroundcontrol.com/</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>