1. Introduction
UAVs are a booming technology, since they represent a versatile platform for a wide range of applications. This technology has found wide acceptance in the energy, construction, and agriculture industries, where it is mainly used for mapping, inspection, photography, and filming. This situation has led to the global drone market being valued at USD 30.6 billion in 2022, and it is estimated that this could reach USD 55.8 billion by 2030 [
1]. However, these platforms are susceptible to emerging risks due to technical and operational issues, such as environmental factors, tampering, technical failures, and even cyber-attacks [
2,
3].
If we combine the continuing growth in the use of these platforms with the risks associated with their operation, it is evident that establishing safety measures in their operations is critical. This is reflected in the rules and regulations adopted worldwide, which limit the types of vehicles, along with the allowed flying zones and operating conditions [
4,
5].
One of the key factors to guarantee integrity during an operation is that the assigned tasks are aligned with the capabilities of the vehicle. The maximum reachable flight time is an essential parameter since, in order to establish a safe mission profile, in addition to the determination of the time required to complete every mission stage, a safe energy margin must be considered to allow operating for an additional amount of time to successfully complete it. This represents a safety measure against variations in energy consumption or situations not contemplated that could compromise the aircraft’s integrity, people’s security, and the environment in which the mission is carried out.
Multirotor UAVs are mostly battery-powered, and therefore, their maximum flight time depends on the available battery energy and the discharge rate. In turn, as stated in [
6], the discharge rate will depend on many factors, such as:
Vehicle design: aerodynamic design, weight, number of actuators, avionics, and energy efficiency.
Operating environment: air density, wind speed, relative wind direction.
Dynamics: speed, acceleration, and direction of motion.
Mission: payload and area of operation.
Furthermore, there are other factors that can affect the energy consumption of the system, such as rotor and hardware failures. In this scenario, the remaining faultless rotors are forced to operate in a region of lower energy efficiency [
7], reducing the available energy of the battery due to saturation phenomena in the actuators. Therefore, the information provided by the manufacturers, or that obtained from a performance test under specific conditions, should only be considered as a reference when a mission profile is established.
In this sense, predicting the behavior of the discharge rate and the available energy in a battery makes it possible to know whether the planned mission can be completed successfully, and even to anticipate whether or not it can be completed under conditions that cause unforeseen changes in consumption.
There are two main ways of estimating the energy required to complete the trajectory: (i) using mathematical models that employ the physical characteristics of the vehicle, and its operating speed [
8,
9]; or (ii) using empirical models employing regressions for a predefined data set [
10]. However, such techniques do not consider possible fluctuations in consumption that could affect the capacity to complete a mission successfully.
Fuzzy systems have been shown to be suitable for managing energy-related aspects of UAVs, as can be seen in [
11], where a fuzzy system in conjunction with the PSO algorithm was employed to manage the power supply of a hybrid-powered system, showing favorable results in fuel economy while maintaining robustness to variations in power consumption variation. In addition, fuzzy systems have been employed in other UAV-related tasks, such as in control [
12] and decision making during the mission [
13]; however, these systems have not been used for the calculation of required energy during a mission.
In order to provide a solution for energy estimation in a multirotor UAV, so that it can operate under persistent changes in the energy requirement, we developed a fuzzy-based methodology to determine the total energy required to complete a specific mission based on the vertical and horizontal velocities, the period during which it travels at those velocities, and the power-estimation error for a given state of the UAV.
The proposed methodology is based on fuzzy systems, which are some of the empirical methods. The use of Takagi–Sugeno fuzzy systems was due to their ability to recreate with adequate accuracy the existing functions among the parameters affecting energy consumption. In addition, the structure of the method allows it to be extended to include other factors that affect the energy required without major modifications to the structure. Unlike to the works presented in the literature, it has been conceived for use during the execution of the mission, and not only as a way of estimating the energy required a priori. This provides an important advantage for the safe operation of UAVs, since it not only allows one to know in advance if the mission to be performed is feasible, but also, once it is in progress, it allows one to anticipate variations in consumption that could jeopardize the operation.
In addition, a methodology was developed to determine the minimum charge level to which the battery can be brought considering the relationship between the thrust control signal and the battery voltage. This allows knowing the available flight time, and moreover, if we combine this with the estimate of the energy needed to execute a mission, we can determine the flight time during which the UAV will be able to operate with the expected remaining energy.
The main contributions of this research work are summarized as follows:
We developed a required-energy estimation system capable of adapting to persistent variations in energy consumption based on fuzzy C-means.
We propose a new methodology to determine the aircraft flight time, which to the best of our knowledge, is the first to consider the effect of the battery’s state of charge on the control signals.
The rest of the paper is organized as follows.
Section 2 presents the works related to the estimation of energy required during a flight and the estimation of flight time.
Section 3 presents the proposed methodology divided into energy estimation (
Section 3.2), state-of-charge estimation (
Section 3.3) and flight-time-margin estimation (
Section 3.4).
Section 4 shows the application of the proposed methodology in a hexarotor UAV. Finally,
Section 5 presents the conclusions and future improvements that can be applied to the proposed methodology.
2. Related Work
In the process of estimating the energy required to conduct a specific mission, three different approaches can be distinguished: (i) methods based on aerodynamic models, (ii) methods using regressions, and (iii) those based on intelligent systems. Some of the principal solutions that have been developed in the field of energy estimation are discussed below.
One of the most widely used models is presented in [
14]. This model provides a simple way to approximate the required power based on the total weight of the vehicle, its displacement speed, the efficiency in the transfer of energy from the motor to the propeller, and the drag–lift ratio of the vehicle, in addition to a term corresponding to the power consumed by the vehicle’s electronics. While this methodology provides an easy way to estimate the consumed energy, it neglects significant factors such as the wind and the air density, which could affect the vehicle’s energy consumption. Therefore, this methodology should be used with caution when determining the energy required for a specific mission.
In [
15], the authors proposed a power-estimation method wherein the vehicle motion is decomposed into its horizontal and vertical components. For each component, the required power is evaluated considering the acceleration and velocity at which it moves. The aerodynamic effect is considered assuming that the reference surface will have the characteristics of a flat plate. Although the presented model showed favorable performance in numerical simulations, it is complex to find the area affected by the airflow, which will depend on the direction of flight, and the wind speed and direction. In addition, parameters such as propeller tip speed are not available for most UAVs.
A simulation model was presented in [
16] where aerodynamic, motor, and battery models are considered. For the estimation of the torque required by each rotor, the blade element moment theory is used, from which the consumed power is determined considering the efficiency of the motor. An equivalent circuit model is used for the battery, considering that the effective capacity is determined using a correction factor as a function of the required power. Finally, the flight time is calculated by dividing the effective battery energy by the required power. This method, despite the positive relation between the measured results and those obtained by a simulation, was not conceived as a method for online energy estimation during a mission.
Regression-based estimation methods, such as the one presented in [
17], estimate the required energy based on the vehicle’s operation. The authors divided the mission phases into: the idle mode, armed, takeoff, vertical and horizontal flight, and the effect of the payload. For each of these stages, a polynomial regression was performed based on data obtained from experimental tests. Although this method provides an easy way to estimate the energy required to complete a mission, it is not able to adapt to conditions different from those of the flights in which the modeling data were obtained.
The method presented in [
18] uses a set of regressors using elastic net regression. The regressors were set up in two stages for ascent, descent, and horizontal movement. The first stage determines the time during which a maneuver will be performed, and the second stage determines the energy required based on the determined time. In the second stage, the required energy for the moments when the vehicle is in hovering flight is added. Although this method showed high accuracy in energy estimation, the method does not include a way to adapt its estimation depending on the mission performance.
The problem of the lack of adaptability to variations in consumption can also be observed in [
19], where the authors employed a deep neural network that used as inputs the velocity, acceleration, altitude, wind speed, weight, and surface of the load. Although the proposed method considers multiple variables, which increases its accuracy in energy estimation, it is also unable to adapt to changes not considered in the model’s training.
As can be seen in the literature review, data-driven energy-estimation methods, the ones using regression analysis and the ones that employ neural networks, have shown good performance for applications of energy estimation during a mission. However, it is necessary to solve the lack of adaptability of the presented techniques to conditions not considered during their training.
With respect to the flight time, it will depend on the energy required and the available energy. Some of the principal methodologies developed to determine the flight time are discussed below.
In [
20], a method is presented to estimate the flight time using regressions and deep learning, considering factors such as known flight time without load, payload, battery capacity, and the onboard computer. However, this method only allows an a priori estimation, since it does not provide a way to update the estimation during the execution of the mission.
In [
21,
22], the flight time was obtained from the division of the battery capacity by the discharge rate, where it was assumed that the available energy is known. However, there are factors that can modify the amount of usable battery energy that must be considered to provide an accurate estimation of the flight time.
Based on the above methodologies for flight time estimation, it can be observed that it is necessary to have solutions to dynamically adapt the flight time estimations considering that the usable energy may change in situations such as increasing of the payload weight, adverse weather conditions, or system failures.
3. Methods
Energy estimation for a mission is a complex problem due to the multiple factors and variables involved in the process. Nevertheless, to estimate the energy requirements is crucial to guaranteeing the feasibility and safety of a mission. Moreover, given the dynamism of the environment in which a multirotor UAV can fly, and the variations to which it may be subject either by lowered energy efficiency due to wear of its components or malfunctioning of one of its parts, it is necessary to continually reevaluate the energy required to complete the mission. In addition, the knowledge of the flight time during which the multirotor UAV can continue operating can be used in decision-making process by an autonomous system or by a human operator.
The architecture of our proposed system is depicted in
Figure 1. The system works with a methodology consisting of three parts, which are described as follows:
(i) The first part of the methodology corresponds to the estimation of the energy required in the mission once the vehicle is in flight, based on the knowledge of the horizontal and vertical velocities at which it will move along the different stages of the mission, and the time during which it will move at that velocity. To do this, we propose the use of a cascaded Takagi–Sugeno fuzzy system, using the C-means algorithm for the premise of the rules, to estimate the power required to move at a given speed. From the knowledge of the power required to move at a given velocity and the time during which it performs such action, it is possible to know the energy required for the mission. It is also proposed to use the PSO algorithm for the optimization of the parameters used in the fuzzy C-means algorithm to find a balance between the execution time of the system, which is affected by the number of clusters, and the accuracy of the system, which is affected by both the number of clusters and the weighting exponent.
(ii) The second part of the methodology consists of determining the state of charge of the battery, for which it is proposed to use an extended Kalman filter based on the equivalent circuit model of the battery, for which it is proposed to use fuzzy modeling to define the relationship between the open-circuit voltage and the state of charge.
Finally, (iii) the third part of the methodology consists of determining the flight-time margin considering the effect of the battery’s voltage change during discharge on the thrust control signal. For this stage, it is proposed to use recursive least-squares to determine the relationship between the battery voltage and the thrust control signal in order to determine the minimum voltage at which the vehicle can operate considering a maximum value for the average value of the thrust control signal. From this voltage, we determine the associated battery charge level considering also the constraints given by the operator. Finally, based on the knowledge of the energy required to complete the mission, the battery charge, and the minimum allowable charge level, we calculate the flight time margin.
The methods used in each of the stages are detailed below.
3.1. Preliminaries
A brief introduction to Takagi–Sugeno fuzzy systems with premises given by trapezoidal membership functions and using the C-means method is presented, and a way to determine the values of the consequent parameters of the fuzzy rules based on the membership values and output values of a training data set. Additionally, we present the operation of the particle swarm optimization algorithm with a constraint factor on the particle velocity.
3.1.1. Takagi–Sugeno Fuzzy Systems with Fuzzy C-Means
Takagi–Sugeno (T-S) fuzzy systems have been adopted in several applications, since they are able to approximate a function with adequate accuracy in a closed set, maintain a structure that is easy to interpret thanks to its high transparency, and maintain low computational complexity [
23]. These systems are defined by a set of
M rules in the form:
where the premise of the rule is formed by the input of the system
x and the fuzzy set
, and the consequent of the rule is defined as
,
and
being design parameters.
The output of the T-S fuzzy system is given by
where
indicates the degree of membership of the input
x to each of the fuzzy sets
.
The form of determining the degree of membership will depend on the way in which the fuzzy set is defined. One of the most common used ways to define the fuzzy set is with a trapezoidal function [
24], such as the one shown in
Figure 2.
In these sets, the level of membership is calculated as:
Another way to determine the fuzzy sets is through the fuzzy C-means method, which determines the membership value of
to a fuzzy set, from the closeness to the cluster center, defined by a vector
[
25]. For a set of
N data, grouped in
M fuzzy sets, we must minimize the function
where
is the weighting exponent, which is a design parameter that modifies the performance of the fuzzy C-means method.
The membership value used in (
4) is given by
where the optimal values of the centers
v for a given number of clusters
M and exponent
m are obtained through the iterative process presented in [
25].
3.1.2. Computation of Parameters for the Consequents in T-S Systems
Consider a set of training input data
, for which the membership value
corresponding to each of the
M fuzzy sets
is known, and the expected output of the fuzzy system is
. It is possible to employ the least-squares method to determine the design parameters
and
of each of the fuzzy rules as follows [
26].
Let us define the extended matrix
as:
where
is a vector of ones. Then, using the matrix
and the membership values
, the following matrix is formed:
Finally, with a global approach using the
matrix, the vector of parameters for the consequents will be calculated as follows.
where the values obtained in the parameter vector have the following structure:
which correspond to the design parameters required in the consequent of each of the rules.
3.1.3. Particle Swarm Optimization
The particle swarm optimization (PSO) method is a bio-inspired optimization technique that was presented in [
27]. In this method, a set of particles
is proposed, which are moved through a search space to find the minimum (or maximum) of a function
. The displacement is performed based on the best solutions found by each of the particles, which are initialized with random values within a search space.
In [
28], a variant of the original PSO method was developed to improve the convergence capabilities. In this variant, the velocity of each particle
at instant
k is calculated as:
where
is a velocity constraint factor,
and
are constants that weigh the effect of the cognitive and social components,
is the value of the particle that generated the minimum of that particle, and
is the value of the particle that generated the global minimum among the particles. The factor
is calculated as a function of
and
as:
Given the velocity of each particle, the position of each particle is updated as:
In order to find the minimum of
, an iterative process of velocity calculation and position update of each particle is performed, in which the values of
and
are acquired. The updating of
can be performed synchronously—i.e., this value is updated when the cost function for all particles has been evaluated; or it can be asynchronous, where the value of
is updated each time a new global minimum is encountered, regardless of whether the iteration has not been completed. The performance of the synchronous and asynchronous methods was evaluated in [
29], where it was shown that the asynchronous method improves the convergence speed of the method.
3.2. Estimation of the Required Energy in Flight
As discussed above, the energy consumption of a multirotor UAV depends on a wide variety of factors, and since the fuzzy C-means technique performs well for systems up to about 20 dimensions [
30], it is used in the development of the energy estimation system.
3.2.1. System for the Estimation of the Required Energy
To estimate the required energy during a mission, it is assumed that during the development of a mission with automatic navigation, the vehicle follows a series of waypoints, which consist of coordinates related to information of the flight altitude, speed, and hover time. To cover the points defined in a desired trajectory, the vehicle will move following velocity profiles, which can be decomposed into their vertical and horizontal components. Based on the behavior of the navigation algorithm used, it is possible to anticipate the velocity profile that will be present along the trajectory, and therefore, the proposed energy estimation system will use this information. It consists of two cascaded subsystems which use fuzzy clustering, as shown in
Figure 3.
The first subsystem evaluates the current state of the system, having as input the vertical velocity
, positive in the downward direction; and the horizontal velocity,
. The output corresponds to the power estimation (
) for the present state of the vehicle. Such power estimation is performed continuously as the flight develops. The value of
is determined from a set of
fuzzy rules of the form
From the defined rules, the value of
is calculated using Equation (
2). The output of the first subsystem is used in combination with the power measurement
P, obtained from the UAV sensors, to calculate the power-estimation error as:
The estimation error
will be smoothed by a moving average filter (MAF) given by:
where
j corresponds to the number of data samples used in the filter.
The second subsystem utilizes as input the sets of vertical velocities
and horizontal velocities
of the
s segments that constitute the expected velocity profile for the rest of the mission, and
. This subsystem is formed by a set of
fuzzy rules of the form:
The output of this subsystem, given by Equation (
2), corresponds to the required power to fly at the velocities defined in the different stages of the mission
.
Finally, the estimation of the energy required to complete a mission is given by
where
corresponds to the period during the multirotor UAV moves at velocities
and
.
3.2.2. Computation of the Parameters of the Power-Estimation System
The performance of the proposed subsystems for power estimation depends on the quality of the training set, the number of clusters, and the chosen fuzzy exponent (
m). There is also a trade-off between the number of clusters and the accuracy of the power estimation, since a larger number of clusters can lead to more accurate results, but, in a resource-constrained application, such as in embedded systems, it is necessary to employ algorithms with low computational cost that can be executed in a short period of time. In order to find a balance between power-estimation accuracy and speed of execution, we propose the use of the PSO method presented in
Section 3.1.3.
In this sense, the structure of the particles to be used during the optimization process is defined as follows:
where
is an auxiliary variable that allows one to define the number of clusters, and
is the weighting exponent associated with the particle. In order to carry out the PSO algorithm, the following cost function is proposed:
where
N is the number of samples in the validation set, and
and
are constants that represent the trade-off between system accuracy and execution speed. The function
indicates the value rounded to the nearest integer. Although the above function does not explicitly include the
parameter of the particle, it is reflected through
.
For the first subsystem, the training data set will be composed of the vertical velocities
, horizontal velocities
, and measured power
. To apply the PSO method to the subsystem, the clustering process [
25] is performed with
and
. The number of clusters is given by
and the weighting exponent
.
Using the obtained cluster centers
, the membership values are calculated with Equation (
5) for the training set, obtaining a set
for each cluster. The obtained values are used in the least-squares method presented in
Section 3.1.2 with
and
, to obtain the parameters of the consequent of the rule shown in Equation (
13). Once the parameters of the
rules have been determined, using Equation (
2), the values of
are calculated for the validation set. Finally, the function (
19) is calculated with the values of
, as given in (
14) between the validation set measurements and the power estimations.
The process described above is conducted for each particle until the defined maximum number of iterations is reached. The values of y will correspond to the last value obtained for .
For the training of the second subsystem, we calculate the set
using Equation (
15) for the values of
obtained from the power-estimation process of the training data set used in the first subsystem.
The training of the second subsystem is performed using the training data set of the first subsystem, extended with
,
and
. The training process is performed using the procedure indicated for subsystem one to obtain
and
, and the parameters in the consequent of each rule (
16).
3.3. Estimation of the Battery’s State of Charge
This section presents the mathematical model of the equivalent circuit used for batteries using a single time constant, proposing the use of fuzzy modeling for the relationship between the battery’s open-circuit voltage and the state of charge. After that, the estimation of the state of charge using an extended Kalman filter is addressed.
3.3.1. Equivalent Circuit Model for Batteries
An electric battery is an element that stores energy in chemical form, which can be released in a controlled way. A model that has been widely used to determine its behavior is the equivalent circuit model [
31].
Figure 4 presents the model of a single time constant, which allows studying its behavior with a suitable degree of accuracy when the objective is the estimation of the state of charge (
) for practical applications [
32].
On the left-hand side, a capacitor
models the battery charge capacity, and a current source whose flow is equal to that flowing through the load at the battery terminals
. The capacitance of
is given by:
where
is the capacity of the battery expressed in
and
is a factor that will depend on the temperature and health of the battery. The voltage at
, whose value is between zero and one, represents the
of the battery and is calculated by:
On the right-hand side, a voltage source models the open-circuit voltage
as a function of the
.
is the internal resistance, and the pair
represents the transient behavior of the battery. The dynamics of the voltage
on
, and the battery terminal voltage
, are given by:
The function between the
and the
has been approximated from a set of linear functions or polynomial functions [
33,
34]. In the present work, it is proposed to approximate such a function with a Takagi–Sugeno fuzzy model with rules of the form given in Equation (
1), as shown in
Figure 5. It can be observed that the function is segmented using trapezoidal fuzzy sets. This approximation allows having the simplicity given by a set of linear functions while maintaining the smoothness of the transitions between regions of the curve, as can be observed in polynomial approximations.
Each membership function of the set of rules defining the functions
or
is given by four points as seen in
Figure 2, whose membership value will be given by Equation (
3), and the output of the model is given by Equation (
2).
3.3.2. Estimation of the
A widely used methodology for the estimation of the
of the battery is the use of the Kalman filter, which, unlike the Coulomb count, allows compensating the differences between the estimated initial
and the real one; moreover, it presents lower vulnerability to noise in the current measurements [
35].
To implement the extended Kalman filter (EKF) [
36], Equations (
21) and (
22) are discretized using Euler’s method and grouped as follows:
where
is the sampling time interval. In Equation (
24), the terms of the battery state-space model
x,
u,
A, and
B are obtained. In addition, from the linearization of Equation (
23), we obtain:
Using the terms obtained in (
24) and (
25), the
of the battery is calculated by employing the EKF given in Algorithm 1, where
P is the covariance error matrix,
K is the estimator gain,
Q is the process noise covariance, and
R is the measurement noise covariance. The value of
can be obtained from the fuzzy model for the function
using the partial derivative of its consequent.
3.4. Estimation of Flight Time Margin
This section presents an analysis of the relationship between the battery charge and the thrust control signal, from which a methodology is developed to determine the minimum charge level at which it is possible to operate the multirotor UAV and the time for which it can operate after the end of its mission with the remaining energy.
Algorithm 1 Estimation of the . |
Require:, , Q, R |
- 1:
loop - 2:
Perform measurement of and - 3:
Obtain the value of - 4:
Predict the estimated state
- 5:
Prediction of the covariance error
- 6:
Calculate the Kalman gain
- 7:
Update the estimated state estimate with the measurement of - 8:
- 9:
end loop
|
3.4.1. Relationship between Control Signals and the
In the controller field of multirotor UAVs, a widely used architecture is the one that uses a set of cascaded controllers, as shown in
Figure 6 [
37,
38]. This architecture begins with a position controller for a reference
, from which an attitude reference
is obtained, along with a thrust control signal
. From the previous reference, an attitude controller generates an angular velocity reference
. The angular velocity reference is sent to an angular velocity controller that will generate a set of control signals for the angular velocity
,
, and
. The four control signals obtained are used by a control allocation system, also known as mixer, which will generate a set of control signals
U for each of the rotors of the multicopter.
For the operation of a multirotor UAV at a constant altitude, the thrust control signal is of a magnitude to provide the force required to compensate for the weight of the multirotor UAV, for which there is a control signal for each of the rotors. The angular velocity control signals will generate variations in the control signals of each rotor around the point required to generate the thrust force. The force generated by each rotor
is calculated as:
where
is the propeller force constant,
is the motor angular velocity constant, and
is the average voltage applied to the motor.
As can be seen in Equation (
31), for a given rotor, the force generated will depend on the average voltage applied. In turn, the average voltage applied to the rotor will be proportional to the duty cycle of the applied signal and is computed as [
39]:
where
is the duty cycle with
.
As can be seen in Equation (
32), there is a linear relationship between the duty cycle and the battery voltage. Therefore, for a given flight condition, the duty cycle will increase as the battery voltage decreases. For a normalized thrust control signal (
) we have the behavior shown in
Figure 7, where it is observed that the
control signal increases linearly as the voltage (
) decreases.
The value is minimal when the battery presents its maximum voltage, and should not exceed a maximum level, which allows one to maintain a safe operating margin for variations due to angular velocity controls.
Since the applied voltage will depend on the
of the battery, as seen in
Figure 8, the minimum allowable battery voltage will determine the minimum
at which it is safe to operate.
3.4.2. Estimation of the Flight Time Margin
The remaining flight time is approximated from the average power consumed and the usable energy in the battery. To determine the usable energy in the battery, the minimum charge level at which it is safe to operate is determined based on the expected performance of the thrust control signal.
Using a recursive least squares (RLS) [
40] process, the following relationship is determined:
where
is the expected battery voltage for a given
, and
and
are parameters obtained from the RSL process.
Then, using the maximum admissible value of the thrust control signal
, the minimum admissible voltage at the battery terminals
is calculated as:
where
is the minimum voltage at which the battery can be safely operated.
Based on the equivalent circuit model (
Figure 4), it can be seen that in the worst-case scenario, the open-circuit voltage when the terminal voltage is
, for a value of
, is given by:
Therefore, the minimum charge level at which it is possible to operate the multirotor UAV under the constraints of
is given by:
where
is the minimum charge at which it is desired to operate the battery.
For a defined mission whose required energy is given by
when the battery has a charge
, the estimated charge at the end of the mission
is calculated as:
where
is the energy stored in the battery when the battery is fully charged and is calculated by:
where
is the nominal voltage of the battery.
A mission may be considered as an achievable mission if
. If the mission is achievable, then the flight time margin
is estimated as:
In the case of a manually controlled flight, this method may be used to estimate the remaining flight time using .
4. Physical Experiments and Results
In order to evaluate the performance of the proposed methods, a series of physical experiments were carried out using a hexarotor UAV as the case of study. The experiments consisted of (i) performing discharge tests of the battery used on the hexarotor UAV in order to obtain the parameters of its equivalent circuit and the relationship between the open-circuit voltage and the state of charge; (ii) executing a series of flights to obtain information for the training process of the power-estimation system, including the optimization of its parameters; and finally, (iii) evaluating the performance of the proposed methods through a validation flight.
The hexarotor used to conduct the experiments, shown in
Figure 9, has the specifications given in
Table 1.
The power module uses an Allegro ACS758LCB-050U Hall-effect linear current sensor with a maximum capacity of 50A that is able to provide current measurements with an accuracy of . The development of the aforementioned experiments is detailed below.
4.1. Experiment 1: Battery Characterization
The battery used in this experiment was characterized at room temperature using the electronic load model KP-184 shown in
Figure 10. The characterization process consisted of performing a series of discharges at constant current. After each discharge, a relaxation period of 15 min was maintained since, after this time, each cell was meant to be within 3 mV of the
[
41]. This process was performed until an amount of energy equivalent to the nominal capacity of the battery was reached. The discharge process performed to characterize the battery is shown in
Figure 11.
The information obtained from the battery discharge test was analyzed with the process presented in [
42], which performed an optimization process using nonlinear least squares to determine the values of the equivalent circuit elements shown in
Table 2.
Based on the obtained open-circuit voltage values, two T-S fuzzy models with five rules were generated using trapezoidal membership functions. The first model represents the function
using the parameters shown in
Table 3. The second model represents the inverse function
using the parameters shown in
Table 4.
4.2. Experiment 2: Training of the Energy Estimation System
To conduct the training of the energy estimation system, we used data from a series of flights, performing various patterns of horizontal and vertical movements outdoors. The flights were performed at an altitude of 2245 m in diverse weather conditions, including winds between 3 and 8 km/h, with gusts of up to 22 km/h. The goal of this experiment was that the energy estimation system would provide an energy estimate as an average of the energy requirements of the different conditions in which it can operate.
The optimization process for obtaining the parameters was performed as indicated in
Section 3.2.2, involving a series of 100 iterations for each subsystem. According to the results presented in [
29], a set of 30 particles was used for each subsystem. Considering that the values of the exponent
m must be greater than one, and its upper limit for practical applications is given in [
43], the search space is defined by
. Similarly, the search space for the number of clusters was defined to be
based on the criterion for the maximum number of clusters
presented in [
44].
Figure 12 presents the value of the cost function (
19) evaluated at the value of
for each of the subsystems.
Table 5 presents the parameters obtained for the implementation of the first subsystem, and
Table 6 shows the parameters obtained for the implementation of the second subsystem.
4.3. Experiment 3: System Evaluation
To validate the performance of the energy estimation system, we conducted a validation flight. The mission profile consisted of a series of climb and descent maneuvers while performing increments in translation speed, as shown in
Figure 13. The flight was executed by using the PX4 system for the vehicle control and navigation.
The energy required to complete the mission was estimated from each of the waypoints that defined the trajectory.
Figure 14 shows the comparison between the required energy prediction
and the ones measured by the Mauch HS-05-LV sensor
. Calculating the required energy estimation error
, and dividing this by the average measured power value
, produces the graph shown in
Figure 15, which is interpreted in terms of flight time.
From the comparison between the required power estimation and the power use measured by the system, the maximum estimation error was found to correspond to the power required to fly for 7 s at the average power.
As part of the flight time margin estimation process, the RLS method was applied to obtain the relationship given in Equation (
33) to determine the expected voltage at the maximum allowable
. In
Figure 16, the comparison between the recorded
and the function
derived from Equation (
33) can be observed. As can be seen, the function obtained by the RLS process averages the behavior of
, so it is possible to obtain the
for a given average
.
Figure 17 shows the obtained values related to the horizontal and vertical velocities, the attitude, and the estimations of the
,
, and
from the validation flight considering a
,
and
. It is possible to see four intervals where the estimation of the
exceeds the established
. These intervals correspond to the instants after changes in the vehicle attitude in the roll, pitch, and yaw angles simultaneously, which increase the control signal
, and consequently, it is estimated that the
will be reached at a higher
, so the
is higher. The value of
was computed by considering an
, in which it is possible to observe intervals where the flight time estimation decreases due to the increase in
.
5. Conclusions and Future Work
In this research work, a new configuration for the estimation of the energy required to perform a multirotor UAV mission using fuzzy c-means was presented. This estimator was able to make predictions of the required energy with a maximum error equivalent to the energy required to fly for 7 s.
The optimization process of the clustering parameters using PSO allowed us to determine the optimal value for the weighting exponent m and the number of clusters for each subsystem. Although the proposed methodology only considers the multirotor UAV’s velocities, for which the use of two clusters per sub-system was determined, this architecture can be extended to include other parameters that affect the energy consumption of the vehicle without modifying the overall system structure, and we employed the proposed PSO-based methodology to determine the optimal system parameters.
The relationship between the state of charge of the battery and the thrust control signal was analyzed, and a methodology was presented to determine the minimum admissible charge level to operate the multirotor UAV safely. This method can be especially useful when the vehicle is operated outside the design conditions, as in the case of a failure during a mission or in environments different from those considered in its design.
With respect to the way to determine the state of charge, although the EKF-based methodology has been widely used, its use was proposed in conjunction with T-S fuzzy models for the relationship between and the , which allows combining the simplicity of linear functions with the smoothness of transitions between function segments.
Since energy estimation is a complex multiparameter-dependent problem, it is required to extend the number of input parameters to include factors such as the payload weight, operating altitude, wind speed, and relative wind direction. To generate the training set, a combination of experimental flight data and high-precision simulations were proposed so that the system could determine the energy required in situations where the vehicle has not been exposed.
It is proposed to evaluate new meta-heuristic algorithms for the optimization of the parameters of the energy estimation system, which can offer more effective alternatives in terms of execution time, which is essential if a greater number of parameters for energy estimation are to be added.
Regarding the battery parameters, it is proposed to incorporate the effect of battery health and temperature into the model to increase the accuracy of the estimation, and consequently, of the flight time margin.