Next Article in Journal
Investigation of Surface Layer Condition of SiAlON Ceramic Inserts and Its Influence on Tool Durability When Turning Nickel-Based Superalloy
Next Article in Special Issue
FogTrust: Fog-Integrated Multi-Leveled Trust Management Mechanism for Internet of Things
Previous Article in Journal
An Efficient Hybrid CNN Classification Model for Tomato Crop Disease
Previous Article in Special Issue
Privacy and Explainability: The Effects of Data Protection on Shapley Values
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems

by
Luis H. Manjarrez
1,
Julio C. Ramos-Fernández
2,
Eduardo S. Espinoza
1,3,* and
Rogelio Lozano
1,4
1
Center for Research and Advanced Studies of the National Polytechnic Institute, Mexico City 07360, Mexico
2
Department of Mechatronics Engineering, Polytechnic University of Pachuca, Hidalgo 43830, Mexico
3
National Council for Science and Technology, Mexico City 07360, Mexico
4
HEUDIASYC CNRS, Université de Technologie de Compiègne, 60319 Compiegne, France
*
Author to whom correspondence should be addressed.
Technologies 2023, 11(1), 12; https://doi.org/10.3390/technologies11010012
Submission received: 20 December 2022 / Revised: 6 January 2023 / Accepted: 9 January 2023 / Published: 12 January 2023
(This article belongs to the Special Issue 10th Anniversary of Technologies—Recent Advances and Perspectives)

Abstract

:
An essential aspect to achieving safety with a UAV is that it operates within the limits of its capabilities, the available flight time being a key aspect when planning and executing a mission. The flight time will depend on the relationship between the available energy and the energy required by the UAV to complete the mission. This paper addresses the problem of estimating the energy required to perform a mission, for which a fuzzy Takagi–Sugeno system was implemented, whose premises were developed using fuzzy C-means to estimate the power required in the different stages of the mission. The parameters used in the fuzzy C-means algorithm were optimized using particle swarm optimization. On the other hand, an equivalent circuit model of a battery was used, for which fuzzy modeling was employed to determine the relationship between the open-circuit voltage and the state of charge of the battery, which in conjunction with an extended Kalman filter allows determining the battery charge. In addition, we developed a methodology to determine the minimum allowable battery charge level. From this, it is possible to determine the available flight time at the end of a mission defined as the flight time margin. In order to evaluate the developed methodology, a physical experiment was performed using an hexarotor UAV obtaining a maximum prediction error equivalent to the energy required to operate for 7 s, which corresponds to 2% of the total mission time.

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:
If x is A i , Then y i = a i x + b i
where the premise of the rule is formed by the input of the system x and the fuzzy set A i , and the consequent of the rule is defined as y i , a i and b i being design parameters.
The output of the T-S fuzzy system is given by
y = i = 1 M u i y i i = 1 M u i
where u i [ 0 , 1 ] indicates the degree of membership of the input x to each of the fuzzy sets A i .
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:
u i = m a x m i n x a b a , 1 , d x d c , 0
Another way to determine the fuzzy sets is through the fuzzy C-means method, which determines the membership value of x R n to a fuzzy set, from the closeness to the cluster center, defined by a vector v R n [25]. For a set of N data, grouped in M fuzzy sets, we must minimize the function
J m = k = 1 N i = 1 M ( u i k ) m x k v i 2
where m > 1 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
u i = 1 j = 1 M x i v i x i v j 2 m 1
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 X R N × n , for which the membership value U i R N corresponding to each of the M fuzzy sets A i is known, and the expected output of the fuzzy system is Y R N . It is possible to employ the least-squares method to determine the design parameters a i and b i of each of the fuzzy rules as follows [26].
Let us define the extended matrix X e as:
X e = X 1
where 1 R N is a vector of ones. Then, using the matrix X e and the membership values U i , the following matrix is formed:
X = diag ( U 1 ) X e diag ( U M ) X e
Finally, with a global approach using the X matrix, the vector of parameters for the consequents will be calculated as follows.
θ = [ ( X ) T X ] 1 ( X ) T Y
where the values obtained in the parameter vector have the following structure:
θ = a 1 b 1 a M b M
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 p i R n is proposed, which are moved through a search space to find the minimum (or maximum) of a function J ( p i ) . 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 v i at instant k is calculated as:
v i [ k ] = χ ( v i [ k 1 ] + c 1 rand ( ) ( p b i p i [ k 1 ] ) + c 2 rand ( ) ( p b g p i [ k 1 ] ) )
where χ is a velocity constraint factor, c 1 and c 2 are constants that weigh the effect of the cognitive and social components, p b i is the value of the particle that generated the minimum of that particle, and  p b g is the value of the particle that generated the global minimum among the particles. The factor χ is calculated as a function of c 1 and c 2 as:
χ = 2 | 2 ϕ ϕ 2 4 ϕ | , ϕ = c 1 + c 2 , ϕ > 4
Given the velocity of each particle, the position of each particle is updated as:
p i [ k ] = v i [ k ] + p i [ k 1 ]
In order to find the minimum of J ( p i ) , an iterative process of velocity calculation and position update of each particle is performed, in which the values of p b i and p b g are acquired. The updating of p b g 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 p b g 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 v v , positive in the downward direction; and the horizontal velocity, v h 0 . The output corresponds to the power estimation ( P ^ ) for the present state of the vehicle. Such power estimation is performed continuously as the flight develops. The value of P ^ is determined from a set of M 1 fuzzy rules of the form
If [ v v v h ] is A i , Then y i = a 1 i v v + a 2 i v v + b i
From the defined rules, the value of P ^ = y 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:
e p = P P ^
The estimation error e p will be smoothed by a moving average filter (MAF) given by:
e ˜ p = 1 j i = k j k e p
where j corresponds to the number of data samples used in the filter.
The second subsystem utilizes as input the sets of vertical velocities V v m = { v v 1 , , v v s } and horizontal velocities V h m = { v h 1 , , v h s } of the s segments that constitute the expected velocity profile for the rest of the mission, and e ˜ p . This subsystem is formed by a set of M 2 fuzzy rules of the form:
If [ v v i v h i e p ] is A i , Then y i = a 1 i v v + a 2 i v h + a 3 i e p + b i
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 P ^ m = { P ^ m 1 , , P ^ m s } .
Finally, the estimation of the energy required to complete a mission is given by
E ^ R = i = 1 s P ^ m i T i
where T i corresponds to the period during the multirotor UAV moves at velocities v v i and v h i .

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:
p i = M i m i
where M i is an auxiliary variable that allows one to define the number of clusters, and  m i is the weighting exponent associated with the particle. In order to carry out the PSO algorithm, the following cost function is proposed:
J = w 1 1 N i = 1 N | e p | + w 2 M i
where N is the number of samples in the validation set, and w 1 and w 2 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 m i parameter of the particle, it is reflected through e p .
For the first subsystem, the training data set will be composed of the vertical velocities V v = { v v 1 , , v v N } , horizontal velocities V h = { v h 1 , , v h N } , and measured power P = { P 1 , , P N } . To apply the PSO method to the subsystem, the clustering process [25] is performed with x = [ v v i v h i ] and y = P i . The number of clusters is given by M 1 = M i and the weighting exponent m 1 = m i .
Using the obtained cluster centers v i , the membership values are calculated with Equation (5) for the training set, obtaining a set U i = { u i 1 , , u i N } for each cluster. The obtained values are used in the least-squares method presented in Section 3.1.2 with X = [ V v V h ] and Y = P , to obtain the parameters of the consequent of the rule shown in Equation (13). Once the parameters of the M 1 rules have been determined, using Equation (2), the values of P ^ = { P ^ 1 , , P ^ i } are calculated for the validation set. Finally, the function (19) is calculated with the values of e p , 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 M 1 y m 1 will correspond to the last value obtained for p b g .
For the training of the second subsystem, we calculate the set E ˜ p = { e ˜ p 1 , , e ˜ p N } using Equation (15) for the values of e p 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 E p , x = [ v v i v h i e p i ] and y = P i . The training process is performed using the procedure indicated for subsystem one to obtain M 2 and m 2 , 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 ( S o C ) for practical applications [32].
On the left-hand side, a capacitor C T models the battery charge capacity, and a current source whose flow is equal to that flowing through the load at the battery terminals I b . The capacitance of C T is given by:
C T = 3600 Q B η
where Q B is the capacity of the battery expressed in A h and η is a factor that will depend on the temperature and health of the battery. The voltage at C T , whose value is between zero and one, represents the S o C of the battery and is calculated by:
S o C ( t ) = S o C ( t 0 ) 1 C T t 0 t I b ( τ ) d τ
On the right-hand side, a voltage source models the open-circuit voltage V o c as a function of the S o C . R i is the internal resistance, and the pair R d C d represents the transient behavior of the battery. The dynamics of the voltage V ˙ d on R d C d , and the battery terminal voltage V b , are given by:
V ˙ d = I b C d V d R d C d
V b = V o c ( S o C ) I b R i V d
The function between the V o c and the S o C 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 V o c ( S o C ) or S o C ( V o c ) 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 S o C

A widely used methodology for the estimation of the S o C of the battery is the use of the Kalman filter, which, unlike the Coulomb count, allows compensating the differences between the estimated initial S o C 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:
S o C [ k ] V d [ k ] x [ k ] = 1 0 0 1 Δ t R d C d A S o C [ k 1 ] V d [ k 1 ] x [ k 1 ] + Δ t C T Δ t C d B I b [ k 1 ] u [ k 1 ]
where Δ t 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:
V b [ k ] y [ k ] = V o c S o C [ k ] 1 C [ k ] S o C [ k ] V d [ k ] x [ k ] + V o c ( S o C [ k ] ) V o c S o C [ k ] S o C [ k ] R i D I b [ k ] u [ k ]
Using the terms obtained in (24) and (25), the  S o C 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 V o c S o C can be obtained from the fuzzy model for the function V o c ( S o C ) 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 S o C .
Require: P [ k 1 ] = P 0 , x ^ [ k 1 ] = x 0 , Q, R
 1:
loop
 2:
    Perform measurement of u [ k ] = I b [ k 1 ] and y = V b [ k ]
 3:
    Obtain the value of V o c S o C
 4:
    Predict the estimated state
x ^ [ k ] = A x ^ [ k 1 ] + B u [ k 1 ]
 5:
    Prediction of the covariance error
P ^ [ k ] = A P [ k 1 ] A T + B Q B T
 6:
    Calculate the Kalman gain
K = P ^ [ k ] C T ( C P ^ [ k ] C [ k ] T + D R D T ) 1
 7:
    Update the estimated state estimate with the measurement of y [ k ]
x ^ [ k ] = x ^ [ k 1 ] + K ( y [ k ] y ( x ^ [ k ] , u [ k 1 ] ) )
 8:
    Update covariance error
P [ k + 1 ] = ( I K [ k ] C ) P [ k ]
 9:
end loop

3.4.1. Relationship between Control Signals and the S o C

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 ξ d , from which an attitude reference η d is obtained, along with a thrust control signal δ T . From the previous reference, an attitude controller generates an angular velocity reference ω d . The angular velocity reference is sent to an angular velocity controller that will generate a set of control signals for the angular velocity δ p , δ q , and δ r . 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 f r is calculated as:
f r = k f ( k ω V m ) 2
where k f is the propeller force constant, k ω is the motor angular velocity constant, and V m 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]:
V m = V b u d
where u d is the duty cycle with 0 u d 1 .
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 ( δ T ) we have the behavior shown in Figure 7, where it is observed that the δ T control signal increases linearly as the voltage ( V b ) decreases.
The δ T 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 S o C of the battery, as seen in Figure 8, the minimum allowable battery voltage will determine the minimum S o C 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 P m 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:
V b δ = α 1 δ T + α 2
where V b δ is the expected battery voltage for a given δ T , and α 1 and α 2 are parameters obtained from the RSL process.
Then, using the maximum admissible value of the thrust control signal δ T m a x , the minimum admissible voltage at the battery terminals V b m i n is calculated as:
V b m i n = max { V b s , V b δ ( δ T m a x ) }
where V b s 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 V b m i n , for a value of P m , is given by:
V o c m i n = V b m i n + P m V b m i n ( R i + R d )
Therefore, the minimum charge level at which it is possible to operate the multirotor UAV under the constraints of δ T m a x is given by:
S o ^ C m i n = max { S o C s , S o C ( V o c m i n ) }
where S o C s 0 is the minimum charge at which it is desired to operate the battery.
For a defined mission whose required energy is given by E ^ R when the battery has a charge S o C 0 , the estimated charge at the end of the mission S o ^ C f is calculated as:
S o ^ C f = S o C 0 E ^ R E T
where E T is the energy stored in the battery when the battery is fully charged and is calculated by:
E T = Q B V b n o m
where V b n o m is the nominal voltage of the battery.
A mission may be considered as an achievable mission if S o ^ C f S o C m i n . If the mission is achievable, then the flight time margin t ^ m is estimated as:
t ^ m = ( S o ^ C f S o C m i n ) E T P m
In the case of a manually controlled flight, this method may be used to estimate the remaining flight time using E ^ R = 0 .

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 2 % . 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 V o c [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 V o c ( S o C ) using the parameters shown in Table 3. The second model represents the inverse function S o C ( V o c ) 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 1.01 m i 3.5 . Similarly, the search space for the number of clusters was defined to be 2 M i 20 based on the criterion for the maximum number of clusters M m a x 2 ln N presented in [44].
Figure 12 presents the value of the cost function (19) evaluated at the value of p b g 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 E ^ R and the ones measured by the Mauch HS-05-LV sensor E R . Calculating the required energy estimation error e E R = E R E ^ R , and dividing this by the average measured power value P m , 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 δ T . In Figure 16, the comparison between the recorded δ T and the function δ T ( V b ) derived from Equation (33) can be observed. As can be seen, the function obtained by the RLS process averages the behavior of δ T , so it is possible to obtain the V b for a given average δ T .
Figure 17 shows the obtained values related to the horizontal and vertical velocities, the attitude, and the estimations of the S o ^ C , S o ^ C m i n , and t ^ m from the validation flight considering a V b s = 9.6 v , S o C s = 10 % and δ T m a x = 0.78 . It is possible to see four intervals where the estimation of the S o ^ C m i n exceeds the established S o C s . 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 δ T , and consequently, it is estimated that the δ T m a x will be reached at a higher V b , so the S o ^ C m i n is higher. The value of t ^ m was computed by considering an E ^ R = 0 , in which it is possible to observe intervals where the flight time estimation decreases due to the increase in S o ^ C m i n .

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 V o c and the S o C , 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 S o C estimation, and consequently, of the flight time margin.

Author Contributions

Conceptualization, R.L. and E.S.E.; methodology, L.H.M. and E.S.E.; software, L.H.M. and J.C.R.-F.; validation, L.H.M. and J.C.R.-F.; formal analysis, L.H.M. and E.S.E.; investigation, L.H.M. and E.S.E.; resources, R.L. and E.S.E.; writing—original draft preparation, L.H.M. and E.S.E.; writing—review and editing, L.H.M., E.S.E. and J.C.R.-F.; visualization, L.H.M. and J.C.R.-F.; supervision, E.S.E. and R.L.; project administration, E.S.E. and R.L.; funding acquisition, E.S.E. and R.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was partially supported by the Mexican National Council for Science and Technology through Project 321224: National Laboratory of Autonomous Vehicles and Exoskeletons.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AcronymsDescription
EKFExtended Kalman Filter.
MAFMoving Average Filter.
PSOParticle Swarm Optimization.
RLSRecursive Least Squares.
SoCState of Charge.
T-STakagi–Sugeno.
UAVUnmanned Aerial Vehicle.
Fuzzy system variablesDescription
x, x k Input to the fuzzy system.
A i Fuzzy set.
y i Output of the fuzzy rule.
a i , b i Design parameters of the consequent fuzzy rule.
MNumber of rules of the fuzzy system.
u i Membership degree of the input x to the rule.
a , b , c , d Trapezoidal membership function characteristic points.
NNumber of elements of the data set.
J m Cost function of the fuzzy C-means algorithm.
vCenter vector of the cluster.
mWeighting exponent for fuzzy C-means.
XSet of training input data.
U i Set of membership values of the i-th rule for the set of training data set.
X e , X Auxiliary matrices for calculating of T-S consequent.
parameters.
θ Vector of parameters of the T-S rules.
PSO algorithm variablesDescription
JFunction to minimize by the PSO algorithm.
p i Position of the i-th particle.
p b i Best local of the i-th particle.
p b g Best global among all particles.
v i Velocity of the i-th particle.
χ Velocity constrain factor of the particle.
c 1 Weighting factor of the cognitive component.
c 2 Weighting factor of the social component.
ϕ Auxiliary variable for the calculation of χ .
Energy estimation system variablesDescription
P i Measured power consumption at current state.
P ^ Estimated required power at current state.
e P Estimated required power error.
v v Vertical velocity.
v h Horizontal velocity.
V v m Set of vertical velocities of the mission profile.
V h m Set of horizontal velocities of the mission profile.
T i Period during the UAV moves at a given velocity.
M i Auxiliary variable to determine the number of clusters.
e ˜ p Output of the MAF with input e p .
Battery equivalent circuit variablesDescription
C T Capacitance to model the battery capacity.
C d Capacitance to model battery transient.
R i Internal battery resistance.
R d Resistance to model battery transient.
Q B Energy stored in the battery.
η Efficiency factor of the battery.
I b Current through battery terminals.
V b Voltage on battery terminals.
V d Battery transient voltage.
V o c Open circuit battery voltage.
Flight time margin variablesDescription
ξ d Position reference.
ω d Angular velocity reference.
δ T Thrust control signal.
δ T m a x Maximum admissible value of δ T .
δ p , δ q , δ r Control signals for angular velocity.
k f Force constant of the rotor.
k ω Angular velocity constant of the rotor.
u d Duty cycle of the control signal.
V m Average voltage applied to the motor.
V b n o m Nominal voltage of the battery.
V b δ Battery voltage for a given δ t .
V o c m i n Open circuit voltage at minimum admissible S o C .
V b s Minimum admissible voltage at the battery terminals
defined by the operator.
V b m i n Minimum voltage at the battery terminals at which
it is possible to operate the UAV.
P m Average required power.
S o C s Minimum charge of the battery defined by the operator.
S o ^ C m i n Minimum battery charge at which it is possible
to operate the UAV.
S o ^ C 0 Estimated S o C at the time of flight time evaluation.
S o ^ C f Expected S o C at the end of the mission.
E ^ R Estimated required energy to mission accomplishment.
E T Energy stored in the battery when fully charged.
e E R Required energy estimation error.
t ^ m Estimated flight time margin.

References

  1. Alvarado, E. Drone Blog—UAV Market Insights. 2022. Available online: https://droneii.com/drone-publications (accessed on 25 October 2022).
  2. Yaacoub, J.P.; Noura, H.; Salman, O.; Chehab, A. Security analysis of drones systems: Attacks, limitations, and recommendations. Internet Things 2020, 11, 100218. [Google Scholar] [CrossRef]
  3. Ghasri, M.; Maghrebi, M. Factors affecting unmanned aerial vehicles’ safety: A post-occurrence exploratory data analysis of drones’ accidents and incidents in Australia. Saf. Sci. 2021, 139, 105273. [Google Scholar] [CrossRef]
  4. Henderson, I.L. Aviation safety regulations for unmanned aircraft operations: Perspectives from users. Transp. Policy 2022, 125, 192–206. [Google Scholar] [CrossRef]
  5. Lee, D.; Hess, D.J.; Heldeweg, M.A. Safety and privacy regulations for unmanned aerial vehicles: A multiple comparative analysis. Technol. Soc. 2022, 71, 102079. [Google Scholar] [CrossRef]
  6. Zhang, J.; Campbell, J.F.; Sweeney, D.C., II; Hupman, A.C. Energy consumption models for delivery drones: A comparison and assessment. Transp. Res. Part D Transp. Environ. 2021, 90, 102668. [Google Scholar] [CrossRef]
  7. Schacht-Rodrígue, R.; Ponsart, J.C.; García-Beltrán, C.D.; Astorga-Zaragoza, C.M. Analysis of energy consumption in multirotor UAV under actuator fault effects. In Proceedings of the 2019 4th Conference on Control and Fault Tolerant Systems (SysTol), Casablanca, Morocco, 18–20 September 2019; pp. 104–109. [Google Scholar]
  8. Sajid, M.; Mittal, H.; Pare, S.; Prasad, M. Routing and scheduling optimization for UAV assisted delivery system: A hybrid approach. Appl. Soft Comput. 2022, 126, 109225. [Google Scholar] [CrossRef]
  9. Ghorbel, M.B.; Rodríguez-Duarte, D.; Ghazzai, H.; Hossain, M.J.; Menouar, H. Joint position and travel path optimization for energy efficient wireless data gathering using unmanned aerial vehicles. IEEE Trans. Veh. Technol. 2019, 68, 2165–2175. [Google Scholar] [CrossRef]
  10. Singh, S.P.; Sharma, S. Genetic-algorithm-based energy-efficient clustering (GAEEC) for homogenous wireless sensor networks. IETE J. Res. 2018, 64, 648–659. [Google Scholar] [CrossRef]
  11. Lei, T.; Wang, Y.; Jin, X.; Min, Z.; Zhang, X.; Zhang, X. An Optimal Fuzzy Logic-Based Energy Management Strategy for a Fuel Cell/Battery Hybrid Power Unmanned Aerial Vehicle. Aerospace 2022, 9, 115. [Google Scholar] [CrossRef]
  12. Ferdaus, M.M.; Anavatti, S.G.; Pratama, M.; Garratt, M.A. Towards the use of fuzzy logic systems in rotary wing unmanned aerial vehicle: A review. Artif. Intell. Rev. 2020, 53, 257–290. [Google Scholar] [CrossRef]
  13. Ragab, M.; Ashary, E.B.; Aljedaibi, W.H.; Alzahrani, I.R.; Kumar, A.; Gupta, D.; Mansour, R.F. A novel metaheuristics with adaptive neuro-fuzzy inference system for decision making on autonomous unmanned aerial vehicle systems. ISA Trans. 2022, in press. [Google Scholar] [CrossRef]
  14. D’Andrea, R. Guest editorial can drones deliver? IEEE Trans. Autom. Sci. Eng. 2014, 11, 647–648. [Google Scholar] [CrossRef]
  15. Yan, H.; Chen, Y.; Yang, S.H. New energy consumption model for rotary-wing uav propulsion. IEEE Wirel. Commun. Lett. 2021, 10, 2009–2012. [Google Scholar] [CrossRef]
  16. Bauersfeld, L.; Scaramuzza, D. Range, Endurance, and Optimal Speed Estimates for Multicopters. IEEE Robot. Autom. Lett. 2022, 7, 2953–2960. [Google Scholar] [CrossRef]
  17. Abeywickrama, H.V.; Jayawickrama, B.A.; He, Y.; Dutkiewicz, E. Comprehensive energy consumption model for unmanned aerial vehicles, based on empirical studies of battery performance. IEEE Access 2018, 6, 58383–58394. [Google Scholar] [CrossRef]
  18. Prasetia, A.S.; Wai, R.J.; Wen, Y.L.; Wang, Y.K. Mission-based energy consumption prediction of multirotor uav. IEEE Access 2019, 7, 33055–33063. [Google Scholar] [CrossRef]
  19. Hong, D.; Lee, S.; Cho, Y.H.; Baek, D.; Kim, J.; Chang, N. Least-energy path planning with building accurate power consumption model of rotary unmanned aerial vehicle. IEEE Trans. Veh. Technol. 2020, 69, 14803–14817. [Google Scholar] [CrossRef]
  20. Sarkar, S.; Totaro, M.W.; Kumar, A. An intelligent framework for prediction of a uav’s flight time. In Proceedings of the 2020 16th International Conference on Distributed Computing in Sensor Systems (DCOSS), Marina del Rey, CA, USA, 25–27 May 2020; pp. 328–332. [Google Scholar]
  21. Jung, S.; Jo, Y.; Kim, Y.J. Flight time estimation for continuous surveillance missions using a multirotor UAV. Energies 2019, 12, 867. [Google Scholar] [CrossRef] [Green Version]
  22. Bershadsky, D.; Haviland, S.; Johnson, E.N. Electric multirotor UAV propulsion system sizing for performance prediction and design optimization. In Proceedings of the 57th AIAA/ASCE/AHS/ASC Structures, Structural Dynamics, and Materials Conference, San Diego, CA, USA, 4–8 January 2016; p. 0581. [Google Scholar]
  23. Klement, E.P.; Koczy, L.T.; Moser, B. Are fuzzy systems universal approximators? Int. J. Gen. Syst. 1999, 28, 259–282. [Google Scholar] [CrossRef]
  24. Barua, A.; Mudunuri, L.S.; Kosheleva, O. Why trapezoidal and triangular membership functions work so well: Towards a theoretical explanation. J. Uncertain Syst. 2013, 8, 1–6. [Google Scholar]
  25. Bezdek, J.C.; Ehrlich, R.; Full, W. FCM: The fuzzy c-means clustering algorithm. Comput. Geosci. 1984, 10, 191–203. [Google Scholar] [CrossRef]
  26. Babuška, R. Fuzzy systems, modeling and identification. Delft Univ. Technol. Dep. Electr. Eng. Control Lab. Mekelweg 1996, 4, 1–31. [Google Scholar]
  27. Kennedy, J.; Eberhart, R. Particle swarm optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, Perth, WA, Australia, 27 November 27–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  28. Eberhart, R.C.; Shi, Y. Comparing inertia weights and constriction factors in particle swarm optimization. In Proceedings of the 2000 Congress on Evolutionary Computation, CEC00 (Cat. No. 00TH8512), La Jolla Marriott Hotel, La Jolla, CA, USA, 16–19 July 2000; Volume 1, pp. 84–88. [Google Scholar]
  29. Anthony Carlisle, G.D. An Off-The-Shelf PSO. In Proceedings of the Workshop on Particle Swarm Optimization; Purdue School of Engineering and Technology: Indianapolis, IN, USA, 2001. [Google Scholar]
  30. Winkler, R.; Klawonn, F.; Kruse, R. Fuzzy c-means in high dimensional spaces. Int. J. Fuzzy Syst. Appl. (IJFSA) 2011, 1, 1–16. [Google Scholar] [CrossRef]
  31. Chen, M.; Rincon-Mora, G.A. Accurate electrical battery model capable of predicting runtime and IV performance. IEEE Trans. Energy Convers. 2006, 21, 504–511. [Google Scholar] [CrossRef]
  32. Huria, T.; Ceraolo, M.; Gazzarri, J.; Jackey, R. High fidelity electrical model with thermal dependence for characterization and simulation of high power lithium battery cells. In Proceedings of the 2012 IEEE International Electric Vehicle Conference, Greenville, SC, USA, 4–8 March 2012; pp. 1–8. [Google Scholar]
  33. Rahimi-Eichi, H.; Baronti, F.; Chow, M.Y. Modeling and online parameter identification of Li-Polymer battery cells for SOC estimation. In Proceedings of the 2012 IEEE International Symposium on Industrial Electronics, Hangzhou, China, 28–31 May 2012; pp. 1336–1341. [Google Scholar]
  34. Yu, Q.Q.; Xiong, R.; Wang, L.Y.; Lin, C. A comparative study on open circuit voltage models for lithium-ion batteries. Chin. J. Mech. Eng. 2018, 31, 1–8. [Google Scholar] [CrossRef]
  35. Shrivastava, P.; Soon, T.K.; Idris, M.Y.I.B.; Mekhilef, S. Overview of model-based online state-of-charge estimation using Kalman filter family for lithium-ion batteries. Renew. Sustain. Energy Rev. 2019, 113, 109233. [Google Scholar] [CrossRef]
  36. Terejanu, G.A. Extended Kalman Filter Tutorial; University at Buffalo: Buffalo, NY, USA, 2008. [Google Scholar]
  37. ArduPilot Dev Team. Copter Attitude Control. Available online: https://ardupilot.org/dev/docs/apmcopter-programming-attitude-control-2.html (accessed on 15 November 2022).
  38. PX4 User Guide. Controller Diagram. Available online: https://docs.px4.io/main/en/flight_stack/controller_diagrams.html (accessed on 15 November 2022).
  39. Krykowski, K.; Hetmańczyk, J. Constant current models of brushless DC motor. Sci. J. Riga Tech. Univ.-Electr. Control Commun. Eng. 2013, 3, 19–24. [Google Scholar] [CrossRef]
  40. Islam, S.A.U.; Bernstein, D.S. Recursive least squares for real-time implementation [lecture notes]. IEEE Control Syst. Mag. 2019, 39, 82–85. [Google Scholar] [CrossRef]
  41. Pei, L.; Lu, R.; Zhu, C. Relaxation model of the open-circuit voltage for state-of-charge estimation in lithium-ion batteries. IET Electr. Syst. Transp. 2013, 3, 112–117. [Google Scholar] [CrossRef]
  42. The MathWorks Inc. Generate Parameter Data for Equivalent Circuit Battery Block. Available online: https://la.mathworks.com/help/autoblks/ug/generate-parameter-data-for-estimations-circuit-battery-block.html (accessed on 28 November 2022).
  43. Pei, J.; Yang, X.; Gao, X.; Xie, W. Weighting exponent m in fuzzy C-means (FCM) clustering algorithm. In Proceedings of the Object Detection, Classification, and Tracking Technologies, Wuhan, China, 24 September 2001; Volume 4554, pp. 246–251. [Google Scholar]
  44. Yu, J.; Cheng, Q. The upper bound of the optimal number of clusters in fuzzy clustering. Sci. China Ser. Inf. Sci. 2001, 44, 119–125. [Google Scholar] [CrossRef]
Figure 1. Overview of the available energy and flight time estimation process. The system consists of three sections, energy estimation, battery-charge estimation, and flight-time-margin estimation.
Figure 1. Overview of the available energy and flight time estimation process. The system consists of three sections, energy estimation, battery-charge estimation, and flight-time-margin estimation.
Technologies 11 00012 g001
Figure 2. Trapezoidal membership function. This function is defined by four points and will have a value of 0 < u i 1 for a < x < d .
Figure 2. Trapezoidal membership function. This function is defined by four points and will have a value of 0 < u i 1 for a < x < d .
Technologies 11 00012 g002
Figure 3. Proposed system for the estimation of the required power during a flight. It is composed of two cascaded subsystems based on fuzzy clustering. The first subsystem must determine the required power for the current system velocity, and the second subsystem determines the required power for subsequent mission stages based on the expected velocities and the determined power-estimation error.
Figure 3. Proposed system for the estimation of the required power during a flight. It is composed of two cascaded subsystems based on fuzzy clustering. The first subsystem must determine the required power for the current system velocity, and the second subsystem determines the required power for subsequent mission stages based on the expected velocities and the determined power-estimation error.
Technologies 11 00012 g003
Figure 4. Equivalent circuit model with a single time constant for batteries.
Figure 4. Equivalent circuit model with a single time constant for batteries.
Technologies 11 00012 g004
Figure 5. Modeling the relationship between the V o c and S o C using a set of trapezoidal fuzzy sets.
Figure 5. Modeling the relationship between the V o c and S o C using a set of trapezoidal fuzzy sets.
Technologies 11 00012 g005
Figure 6. Control architecture employed in widely used autopilots such as PX4 or Arducopter.
Figure 6. Control architecture employed in widely used autopilots such as PX4 or Arducopter.
Technologies 11 00012 g006
Figure 7. Relationship between battery voltage and thrust control signal. For a constant flight condition, a linear relationship will be maintained between both values.
Figure 7. Relationship between battery voltage and thrust control signal. For a constant flight condition, a linear relationship will be maintained between both values.
Technologies 11 00012 g007
Figure 8. Relationship between S o C and thrust control signal. For a constant flight condition, the required δ T increases depending on the battery discharge curve.
Figure 8. Relationship between S o C and thrust control signal. For a constant flight condition, the required δ T increases depending on the battery discharge curve.
Technologies 11 00012 g008
Figure 9. Hexarotor UAV used as the case study for the estimation of the required energy.
Figure 9. Hexarotor UAV used as the case study for the estimation of the required energy.
Technologies 11 00012 g009
Figure 10. KP-184 programmable electronic load used to characterize the battery employed in the experimental platform.
Figure 10. KP-184 programmable electronic load used to characterize the battery employed in the experimental platform.
Technologies 11 00012 g010
Figure 11. Voltage and current graphs obtained from the battery characterization process.
Figure 11. Voltage and current graphs obtained from the battery characterization process.
Technologies 11 00012 g011
Figure 12. Value of the cost function used in the optimization of the power-estimation system, evaluated according to the value of the particle with the best cost of each subsystem.
Figure 12. Value of the cost function used in the optimization of the power-estimation system, evaluated according to the value of the particle with the best cost of each subsystem.
Technologies 11 00012 g012
Figure 13. Mission profile conducted by the hexarotor UAV to validate the performance of the developed energy estimation system. The blue dots represent the waypoints that defined the multirotor UAV mission during the flight. The dotted orange line is the trajectory linking 42 waypoints, and the solid blue line corresponds to the multirotor UAV trajectory.
Figure 13. Mission profile conducted by the hexarotor UAV to validate the performance of the developed energy estimation system. The blue dots represent the waypoints that defined the multirotor UAV mission during the flight. The dotted orange line is the trajectory linking 42 waypoints, and the solid blue line corresponds to the multirotor UAV trajectory.
Technologies 11 00012 g013
Figure 14. Comparison between the measurement of the energy required to complete the mission from a waypoint and the estimation obtained with the developed system.
Figure 14. Comparison between the measurement of the energy required to complete the mission from a waypoint and the estimation obtained with the developed system.
Technologies 11 00012 g014
Figure 15. Number of occurrences for the values obtained from dividing the energy estimation error by the average required power in the mission. This value can be interpreted in terms of flight time.
Figure 15. Number of occurrences for the values obtained from dividing the energy estimation error by the average required power in the mission. This value can be interpreted in terms of flight time.
Technologies 11 00012 g015
Figure 16. Comparison between the control signal δ T recorded during the validation flight and the one obtained from the inverse function of Equation (33).
Figure 16. Comparison between the control signal δ T recorded during the validation flight and the one obtained from the inverse function of Equation (33).
Technologies 11 00012 g016
Figure 17. Parameters obtained from the validation flight. From top to bottom, horizontal velocity ( v v ), vertical velocity ( v h ); roll ( ϕ ), pitch ( θ ), yaw ( ψ ) angles; estimated state of charge, S o ^ C ; minimum admissible state of charge, S o ^ C m i n ; and flight time margin, t ^ m .
Figure 17. Parameters obtained from the validation flight. From top to bottom, horizontal velocity ( v v ), vertical velocity ( v h ); roll ( ϕ ), pitch ( θ ), yaw ( ψ ) angles; estimated state of charge, S o ^ C ; minimum admissible state of charge, S o ^ C m i n ; and flight time margin, t ^ m .
Technologies 11 00012 g017
Table 1. Hexarotor specifications.
Table 1. Hexarotor specifications.
ParameterValues
Flight controllerPixhawk 2.1 Cube Black
MotorT-motor Air 2213 920KV
ESCT-motor Air 20A
PropellerT-motor 9.45 × 4.5 in
Power moduleMauch HS-050-LV
BatteryTurnigy graphene 4Ah 3S 45C
Weight1.8 kg
Dimensions55 cm × 55 cm × 23 cm
Table 2. Equivalent circuit parameters of the used battery.
Table 2. Equivalent circuit parameters of the used battery.
ParameterValue
R i 41.6 m Ω
R d 9.6 m Ω
C d 1016 F
C T 14,400 F
Table 3. Parameters of the membership functions and consequents of the rules used for the model that determines the V o c for a given S o C . The points correspond to trapezoidal membership functions, as shown in Figure 2.
Table 3. Parameters of the membership functions and consequents of the rules used for the model that determines the V o c for a given S o C . The points correspond to trapezoidal membership functions, as shown in Figure 2.
Membership Function Points
RuleabcdConsequent
1−0.2073−0.1045−0.24850.1568 V o c = 14.14 S o C + 10.76
20.00330.08870.22460.4007 V o c = 2.565 S o C + 10.71
30.17310.30550.56410.6686 V o c = 1.325 S o C + 10.83
40.55650.66680.79311 V o c = 1.827 S o C + 10.57
50.77930.83541.0771.18 V o c = 1.912 S o C + 10.69
Table 4. Parameters of the membership functions and consequents of the rules used for the model that determines the S o C for a given V o c . The points correspond to trapezoidal membership functions, as shown in Figure 2.
Table 4. Parameters of the membership functions and consequents of the rules used for the model that determines the S o C for a given V o c . The points correspond to trapezoidal membership functions, as shown in Figure 2.
Membership Function Points
ReglaabcdConsecuente
19.94810.1710.5310.77 S o C = 0.1089 V o c 1.155
210.4610.7510.9211.32 S o C = 0.1716 V o c 1.1852
311.0511.0711.5911.78 S o C = 0.8967 V o c 9.82
411.5711.8312.2112.43 S o C = 0.4059 V o c 4.109
512.2312.4312.7712.99 S o C = 0.3735 V o c 3.706
Table 5. Parameters of the first power-estimation subsystem.
Table 5. Parameters of the first power-estimation subsystem.
Number of Clusters M 1 Weighting Exponent m 1
2 1.4628
Cluster CentersConsequent Parameters
Cluster v v v h a 1 i a 2 i b i
10.00694.0424−19.011−3.5064262.2819
2−0.00221.2231−17.4258−1.5127258.4393
Table 6. Parameters of the second power-estimation subsystem.
Table 6. Parameters of the second power-estimation subsystem.
Number of Clusters M 2 Weighting Exponent m 2
21.0338
Cluster CentersConsequent Parameters
Cluster v v v h e p a 1 i a 2 i a 3 i b i
1−0.00142.0883−12.6536−15.6601−3.46440.9661260.9404
2−0.00721.458150.9937−16.694−3.36850.684277.0185
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Manjarrez, L.H.; Ramos-Fernández, J.C.; Espinoza, E.S.; Lozano, R. Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems. Technologies 2023, 11, 12. https://doi.org/10.3390/technologies11010012

AMA Style

Manjarrez LH, Ramos-Fernández JC, Espinoza ES, Lozano R. Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems. Technologies. 2023; 11(1):12. https://doi.org/10.3390/technologies11010012

Chicago/Turabian Style

Manjarrez, Luis H., Julio C. Ramos-Fernández, Eduardo S. Espinoza, and Rogelio Lozano. 2023. "Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems" Technologies 11, no. 1: 12. https://doi.org/10.3390/technologies11010012

APA Style

Manjarrez, L. H., Ramos-Fernández, J. C., Espinoza, E. S., & Lozano, R. (2023). Estimation of Energy Consumption and Flight Time Margin for a UAV Mission Based on Fuzzy Systems. Technologies, 11(1), 12. https://doi.org/10.3390/technologies11010012

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop