Next Article in Journal
A Prototype and Efficiency Analysis of Indirect Regenerative Evaporative Cooling System for Electronics
Previous Article in Journal
The Tipping Point: Economic Viability and Resilience of Dairy Manure Bioenergy Under Market and Policy Shocks
Previous Article in Special Issue
The Role of Bus Traffic Prioritization in Optimizing Battery Size and Reducing the Costs of Electric Buses
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Novel ANFIS-Based Approach for Optimizing Energy Efficiency in Autonomous Vehicles

by
Behrouz Samieiyan
1 and
Anjali Awasthi
2,*
1
CIISE-EV 8.210, Concordia University, Montreal, QC H3G 1M8, Canada
2
CIISE-EV 10.154, Concordia University, Montreal, QC H3G 1M8, Canada
*
Author to whom correspondence should be addressed.
Energies 2025, 18(23), 6285; https://doi.org/10.3390/en18236285 (registering DOI)
Submission received: 8 October 2025 / Revised: 11 November 2025 / Accepted: 26 November 2025 / Published: 29 November 2025

Abstract

Autonomous vehicles (AVs) promise improved safety and sustainability, yet their sophisticated sensing, computing, and communication systems impose auxiliary power loads of 1.5–3.2 kW, risking an increase of up to 45% in global transport energy demand by 2040 if left unaddressed. Existing energy management strategies fail to jointly optimize propulsion and autonomy subsystems under real-world dynamic traffic, treat ADAS loads as static, and lack statistically rigorous validation. This paper proposes a novel Adaptive Neuro-Fuzzy Inference System (ANFIS)-PID framework that integrates (i) 5 s V2X traffic preview, (ii) online PID gain scheduling, and (iii) energy-aware rule pruning for real-time energy allocation. Validated on a real-world trajectory dataset, the approach consistently reduces fuel consumption by up to 4.4% over pure fuzzy logic, 0.05% over FL-RWOA, 1.16% over FL-GWO, and 2.39% over FL-PSO across 25–100 km segments (paired t-test, p ≤ 0.001 on 50 random segments). Additional benefits include 18% faster transient response and 18% lower inference computational load compared to metaheuristic baselines. Scaled to fleet level, the 0.51 L/100 km average saving equates to over CAD 100 million annual savings in Canada. The hybrid neuro-fuzzy architecture offers a deployable, adaptive solution for sustainable autonomous transportation.

1. Introduction

The fast development of autonomous vehicles (AVs) has attracted interest from the international academy, industry, and governments. With unprecedented development in sensing technologies and artificial intelligence, these vehicles can potentially transform transportation systems of contemporary society [1]. The continued worldwide interest and enormous research and development investment in the technology, including pioneering initiatives like Google’s self-driving car project in 2009 and Apple’s “Project Titan” in 2014, reflect the expected paradigm shift in mobility [2]. In addition to upgrading safety and convenience, the main expectations put on the popularization of connected and automated vehicles (CAVs) are reduced fuel and energy consumption [1]. Because traditional automobiles and trucks contribute most to the emissions in transport, replacement by AVs has a promising prospect for a positive environmental impact. Recent empirical analyses show that strategic fleet management of automated electric ride-hailing services can cut fleet mileage and operating costs substantially, yielding large CO2 and cost savings when centrally managed [3].
However, the realization of these benefits is subject to the efficient use of energy resources in AVs. As financially viable AVs become more likely to be EVs to fulfill emission-reducing targets and take advantage of the stable power their advanced systems require, energy efficiency is paramount to maximize their range and minimize dependence on fossil fuels to drive them. Fear has existed over the potentially enormous amounts of energy demanded by the onboard computing for AVs’ autonomous motion, with some estimating their use approaching that of the world’s data centers [4]. This possibility hints at the need to ensure that energy-efficient management practices take precedence in the design and rollout of AVs so as not to have any unforeseen adverse environmental impacts.
This paper primarily proposes a novel ANFIS-based energy management strategy for autonomous vehicles, supported by a focused review of state-of-the-art methods in the literature to highlight existing gaps and motivate our contribution. It examines previous methods based on fuzzy logic and concludes that manually tuning membership functions or using other metaheuristic methods can be problematic. Therefore, it explores tuning membership functions with neural networks and evaluates the results by comparing them with previous works.
Although ANFIS has been previously applied to energy management in hybrid and electric vehicles, this study introduces three novel contributions that significantly advance the state of the art and address critical limitations of prior works. First, unlike existing ANFIS-based approaches that treat ADAS and computational power demands as fixed loads, the proposed framework performs joint real-time optimization of propulsion and autonomy subsystems by incorporating a 5 s traffic preview via V2X communication—enabling proactive energy allocation in urban stop-and-go scenarios for the first time. Second, we integrate online PID gain scheduling directly driven by ANFIS torque estimates, combined with energy-aware rule pruning (proposed approach), which reduces computational overhead by up to 18% during low-variability driving while preserving accuracy—a feature absents in all previous ANFIS implementations. Third, we provide rigorous statistical validation (paired t-test, p ≤ 0.001) of up to 4.4% fuel savings against four state-of-the-art metaheuristic-tuned fuzzy baselines (FL-RWOA, FL-GWO, FL-PSO, and FL) using real-world NGSIM I-80 trajectory data, offering stronger empirical evidence than the simulation-only or small-scale tests reported in the prior literature. These innovations collectively bridge the gap between theoretical ANFIS models and deployable, real-time embedded systems for autonomous vehicles.
The rapid proliferation of autonomous vehicles (AVs) is projected to increase global road transport energy demand by up to 45% by 2040 if current efficiency challenges are not addressed. While AVs promise substantial safety and mobility benefits, their onboard sensing, computing, and communication systems impose auxiliary power loads of 1.5–3.2 kW—equivalent to the propulsion demand of a small conventional car during urban driving. Recent studies warn that unchecked growth in AV computational intensity could rival the energy footprint of global data centers by 2030, potentially offsetting electrification gains and undermining net-zero transportation targets in Canada and worldwide.
Existing energy management strategies, including rule-based, classical fuzzy logic, metaheuristic-tuned fuzzy systems (e.g., FL-RWOA and FL-GWO), and offline-trained reinforcement learning, suffer from three critical limitations: (i) they treat ADAS and computational loads as static averages, ignoring transient peaks exceeding 2.5 kW during sensor fusion or emergency maneuvers; (ii) they lack real-time joint optimization of propulsion and autonomy subsystems under dynamic traffic conditions; and (iii) most rely on synthetic drive cycles or small-scale simulations, yielding results that fail to generalize to real-world heterogeneous traffic. These shortcomings result in conservative battery oversizing, reduced driving range (5–8% loss), and suboptimal fuel economy in mixed urban–highway operation.
This work addresses these gaps by proposing a deployable ANFIS-PID framework with V2X traffic preview and adaptive rule pruning, validated on a real-world dataset. By demonstrating statistically significant fuel savings of up to 4.4% (p ≤ 0.001) and 18% faster transient responses, the study provides future researchers with (i) a reproducible benchmark combining high-resolution trajectory data and AV-specific workloads; (ii) a computationally efficient architecture suitable for embedded deployment; and (iii) a scalable methodology for integrating real-time traffic information into energy management—paving the way for fleet-level optimization, V2G integration, and sustainable autonomous mobility at scale. While connected and automated vehicles (CAVs) promise improved mobility, recent reviews caution that without targeted energy-management interventions, their net energy consumption gains may be modest or even negative [5].
The rest of the paper is organized as follows: Section 2 provides the problem definition. Section 3 reviews the relevant literature. Section 4 outlines the proposed solution approach. Section 5 presents the numerical application. Finally, Section 6 concludes the paper and discusses future works.

2. Problem Definition

Autonomous vehicles (AVs) and hybrid electric vehicles (HEVs) have made significant progress in recent years, transforming transportation by improving vehicle performance, reducing energy use, and managing traffic better. However, important challenges remain that need innovative solutions. A key challenge is energy management in AVs and HEVs, which aims to optimize fuel consumption and reduce greenhouse gas emissions. Current systems, including Model Predictive Control (MPC), have improved energy efficiency, but they face limitations in adapting to real-time road and traffic conditions, leading to higher energy use and computational complexity. The complexity and uncertainties of driving situations adequately affect the outcome of the designed energy management strategies (EMSs) in autonomous vehicles [6].
This study addresses these challenges by proposing new approaches: the Adaptive Neuro-Fuzzy Inference System (ANFIS) for energy management. This method combines time-series analysis and real-time optimization to improve accuracy, reduce energy use, and enhance environmental sustainability in autonomous transportation systems.
Two questions are addressed:
  • How do we include important factors like environmental conditions, driving behavior, and vehicle specifications that have a big impact on the vehicle’s performance in building the model?
  • How do we control the motor or generator in vehicles to ensure the engine operates optimally?

3. Literature Review

The transition to hybrid electric vehicles has triggered a wide array of energy-management strategies, highlighting the critical role of real-time optimal control in reducing fuel consumption across drive cycles [7]. The arrival of autonomous vehicles (AVs) is a new mobility era, with enhanced safety, efficient traffic, and added convenience for passengers [7]. With the automotive market moving more toward electrification, efficient energy management is a key factor in rendering the advanced cars sustainable and preferred on a large scale [8]. The combination of autonomous driving technology and powertrain electrification is an important chance to maximize energy utilization in ways not possible with internal combustion vehicles. Autonomous control systems offer more deterministic and more accurate driving profiles, which can be exploited by electric powertrains to make possible greater efficiency, for instance, through sophisticated acceleration and braking profiles and optimized regenerative braking [7]. Yet, although AVs have numerous potential benefits, mass introduction into transport is dependent on solving energy efficiency issues to make it possible to achieve high driving ranges and reduce their environmental impact. Consumer acceptance, as well as regulatory acceptance, will largely depend on whether or not AVs can offer performance in range and environmental footprint comparable or even superior to that of conventionally powered vehicles.
To maintain focus on the core challenge of real-time, adaptive energy management under dynamic autonomy loads, this review deliberately narrows its scope to works that (i) address hybrid neuro-fuzzy or predictive control strategies, (ii) utilize high-resolution trajectory data, and (iii) explicitly consider interactions between propulsion and ADAS power demands. Broader topics such as long-term route planning, platooning aerodynamics, or grid-level V2G scheduling are excluded as they fall outside the immediate scope of onboard EMS for individual AVs.
One of the most important energy management issues in the area of autonomous vehicles stems from the added energy requirements due to the integration of Advanced Driver Assistance Systems (ADAS) and autonomy-enabling features. The set of perception and navigation sensors, such as LiDAR, radar, cameras, and ultrasonic sensors, requires a significant amount of power for real-time data acquisition and processing. In addition, the sophisticated sensor fusion algorithms, path planning, and real-time decision-making come with heavy computational burdens, which consequently lead to high energy consumption [9]. Energy consumption by communication devices, such as those enabling vehicle-to-vehicle (V2V), vehicle-to-infrastructure (V2I), and vehicle-to-everything (V2X) communication for cooperative driving and information exchange, also contributes to total power consumption [10]. Work on NR-V2X and 5G-V2X demonstrates a measurable trade-off between latency–throughput and on-vehicle communication energy, so V2X modules can noticeably increase auxiliary power draw under heavy messaging loads [11]. This additional energy consumption directly translates into the driving range of battery electric vehicles (BEVs) and hybrid electric vehicles (HEVs). In autonomous HEVs, added complexity in energy management is further compounded by the coexistence of different energy sources, such as fuel cells, batteries, and supercapacitors, with different characteristics and response times. Energy management and energy distribution from the heterogeneous sources to satisfy the driving and autonomous continuous and instantaneous power requirements is a significant challenge. For example, batteries are ideal for providing high energy density for long tasks but have lower charge–discharge cycles, while supercapacitors are ideal for providing rapid energy bursts for acceleration and ADAS power spikes but have a lower energy storage capacity. Maximizing the efficiency of ADAS sensors and designing sophisticated energy management strategies (EMS) that can evolve with the changing power needs of autonomous driving are prime research themes [9]. AVs’ energy consumption is not only defined by the powertrain but also by the autonomous driving system’s power demand [10]. AVs do not need typical vehicles’ conventional sensing, computing, and communication needs, but instead, they need high power, which has a direct influence on their total energy efficiency and range. Matching the power requirements of autonomous systems with the desire to achieve maximum driving range is the underlying trade-off in AV design and operation. Shifting more power to the autonomous systems could increase safety and performance but could undermine the potential for the vehicle to drive on a single tank or charge across long distances. In addition, the ephemeral nature of operating circumstances, i.e., the change between city driving and motorway driving environments, generates varying propulsion and autonomous operation energy demand, which requires advanced EMS to maximize energy use [9]. City driving, with constant stopping and starting and ongoing sensor utilization, places more load on the energy system than motorway driving, usually a scenario with more consistent speeds and lesser utilization of ADAS.
Nevertheless, the majority of prior studies estimate ADAS energy demands based on average power consumption, neglecting transient peak loads exceeding 2.5 kW during emergency braking or sensor fusion surges, which necessitate conservative battery oversizing and reduce the effective driving range by 5–8%. Furthermore, existing EMS frameworks typically treat propulsion and autonomy subsystems as decoupled entities, failing to perform joint optimization under simultaneous high computational and torque demands—a scenario frequent in dense urban traffic. Lastly, the absence of standardized drive cycles that incorporate AV-specific perceptual and communication workloads severely hampers reproducible benchmarking and cross-study comparability.
Different strategies and techniques have been proposed in the literature to maximize energy usage in autonomous vehicles. Eco-driving techniques, using intelligent vehicle control to achieve minimum energy consumption through optimized deceleration and acceleration, have been promising [12]. Optimization of regenerative braking is a key area in recovering kinetic energy during braking, especially for electric and hybrid AVs [13]. Real-time traffic information and road conditions are used by eco-routing algorithms to compute energy-efficient routes to reduce congestion and gradients [12]. Intelligent power distribution techniques maximize power allocation between different vehicle systems to use energy to maximum benefit (see Table 1 for a comparison of batteries, fuel cells, and supercapacitors with ADAS requirements) [9]. Efficient thermal management systems play a key role in maintaining the optimum operating temperatures of batteries and other key components to maximize their performance and lifespan. Cooperative driving techniques like platooning and CACC minimize aerodynamic drag and optimize traffic flow with a net saving of energy, especially in heavy-duty vehicles [12]. Anticipation of road statements using 3D road maps and V2I communication and fleet timing using traffic signal data to optimize the vehicle’s driving cycle also enhance energy efficiency [13]. Energy management for AVs needs an integrated approach involving individual vehicle optimization, as well as cooperative techniques that leverage connectivity [12]. One of the keys to realizing substantial energy efficiency gains is to consider not only the internal operation of the vehicle but also how it interacts with its immediate environment and other vehicles. Efficacies of various energy management strategies could also be considerably varied depending on the particular driving condition, such as city stop-and-go vs. highway cruise, and the powertrain type of vehicle, BEV or HEV [13]. As an example, measures such as regenerative braking have more impact when EVs are performing stop-and-go driving, whereas platooning advantages could be greater for heavy-duty trucks on long-distance highway cruises.
Artificial intelligence (AI) and machine learning (ML) are playing a growing role in the design of sophisticated energy management systems for Avs [12]. Predictive energy management employs AI/ML to predict energy demand ahead of time based on future driving conditions, driver behavioral patterns, and expected traffic conditions and proactively tune energy consumption accordingly [9]. AI/ML is utilized in adaptive control methods in dynamic real-time adjustment of vehicle parameters and driver behavior for optimal use of energy [9]. Optimization of routes is also important, considering not just the shortest path but also traffic flow, road profiles, and energy consumption dynamics of various routes [12]. In electric AVs, AI/ML enables energy demand forecasting for optimal scheduling of charging and uninterruptible power grid integration, enabling optimal usage of charging infrastructure, as well as renewable energy input. RL algorithms are now being utilized widely to create optimum energy management policies in complex dynamic driving conditions, such that AVs can learn energy-efficient operating behavior through error and trial experimentation. Finally, AI/ML is highly beneficial in battery management, e.g., predicting battery state of health, optimizing charging–discharging cycles so as to delay premature aging and finally maximize battery life. AI and ML are about to become indispensable tools in managing the complexity and uncertainty of energy management of AVs [12]. Their ability to learn from massive datasets and their ability to respond in real-time with constantly changing patterns make it easier to create complex and efficient energy management strategies that are much superior to those of rule-based systems. The forecast ability provided by AI/ML allows AVs to foretell their energy requirements and precondition their operation in advance, which results in immense energy efficiency improvement and total driving range [9]. With the ability to foresee forthcoming driving circumstances and energy requirements, AVs are able to make more reasonable choices regarding speed, acceleration, and power division across different subsystems, saving energy to a large extent. Table 2 gives an overview of energy management forecasting algorithms for hybrid power sources in autonomous hybrid vehicles, from [9].
The energy consumed by autonomous driving subsystems significantly impacts the overall energy efficiency of the vehicle. The sensors, such as LiDAR, radar, and cameras, used for perceiving the vehicle environment are power-intensive, with large fluctuations based on the type, resolution, and frame rate [10]. The onboard computing platform processing vast amounts of sensor data, executing complex AI computations, and performing real-time path planning also necessitates high energy [10]. Communication systems supporting V2V, V2I, and V2X communications also add to the overall energy consumption [10]. The impact of these autonomous driving subsystems has been measured on the range of AVs, and the measurement reveals that an autonomous driving system’s auxiliary power consumption can lead to a significant reduction in range, particularly for electric AVs. To reverse this impact, research is investigating methods such as utilizing more efficient hardware components, optimization of sensors through dynamic adjustment of parameters, like frame rates based on the driving scenario, and edge computing designs for local data processing within the vehicle to limit the need for continuous high-power computation [19]. Autonomous driving functionalities contribute significantly to the overall energy budget of an AV, especially for highly automated AVs. The perceptual, planning, and control tasks are high-power requirements for sensors and onboard computing, reducing the driving range of electric AVs significantly. In addition, there is a trade-off between autonomous driving system performance and precision and their energy usage [19]. Higher sensor resolution, processing rate, and advanced algorithms result in better performance but typically at the expense of increased energy.
The assessment of energy management approaches for AVs is based on a synergy of simulation and on-road testing techniques. Simulation software, including FASTSim, RoadRunner, CarSim, and SUMO, is commonly used to simulate vehicle dynamics, energy consumption patterns, and traffic conditions using alternative energy management approaches so that they can develop and test many approaches in a controlled lab at high speed. On-road tests using test tracks and open roadways are used to confirm the simulation results and to test the fuel economy efficiency of energy management approaches under real-world driving conditions, where weather and random traffic can be considered. Chassis dynamometers are used to carry out controlled laboratory testing of AV energy consumption for standardized or specifically designed simulated drive cycles, with the precision needed to measure energy consumption under targeted conditions [19]. Researchers also created evaluation tools that use real-world lab and traffic data, allowing for objective determination of the fuel economy advantage of automated driving capability for various drive-condition intervals [9]. Simulations and on-road tests are both needed for a detailed analysis of energy management approaches for AVs [5]. Rapid testing and prototyping of multiple scenarios and algorithms are facilitated using simulations, while on-road experiments offer crucial confirmation of the efficiency and robustness of these approaches in actual field implementation. Nonetheless, a lack of standardized drive cycles for AVs presents an obstacle to the achievement of a uniform and comparable assessment of various energy management strategies [20]. Standard drive cycles, traditionally developed for internal combustion cars, cannot provide a representation of the specific driving conditions and energy loads characteristic of autonomous vehicles, pointing to the necessity of developing new testing standards and protocols.
In conclusion, while the autonomous vehicle energy management field has enjoyed unprecedented growth in recent years, with most potential strategies and methods investigated for maximizing energy efficiency, there are still a number of important research gaps that need to be filled to harness the full potential of energy-efficient autonomous transportation [8]. These include the limited consideration of lane-changing behaviors in present energy management methods, the need for a wide range of traffic congestion levels in simulation studies, the insufficient consideration of communication delays and sensor failure when evaluating cooperative driving strategies [21], and the challenge of efficiently combining perception and planning subsystems with optimal EMS [22]. Moreover, estimating the longer-term impact of increased AV penetration rates on overall aggregate energy demand at the societal level is still a complex endeavor [7]. Future research needs to focus on designing and developing newer, more sophisticated AI-based EMS that can learn and adapt to drivers’ driving conditions and optimize energy consumption in real-time [10]. Also, it will be important to conduct research on new energy storage and powertrain designs that have the potential to mitigate AV-specific issues [9]. This includes research on the fully integrated seamless combination of AV energy management with smart grids and renewable energy sources, which offer great promise for achieving sustainability. As well, conducting research on using advanced control strategies to optimize the energy consumption of the energy management subsystems of autonomous driving (sensors, computation units, communication modules, etc.) is crucial [19].
An assessment of human–AV interaction and user behavior on aggregate energy consumption will be needed to design effective energy management systems. Finally, the creation of standard testing procedures and benchmarks tailored for evaluating the energy efficiency of AVs will also be required to provide comparable results across modes and strategies. Taking steps to fill these research gaps and future directions will be needed to design more resilient, effective, and pragmatic energy management strategies for AVs, as well as an efficient and sustainable future for our transportation systems.
Although numerous studies have explored energy management in electrified and autonomous vehicles, a critical synthesis reveals three persistent gaps that directly motivate the present work. First, most AI-based EMS (e.g., RL, MPC, and metaheuristic-tuned fuzzy systems) either impose high computational demands unsuitable for real-time embedded deployment or remain static after offline training, failing to adapt membership functions or control policies when traffic patterns deviate from training data. Second, existing approaches rarely perform joint optimization of propulsion and autonomy subsystems, treating ADAS power draw as a fixed load rather than a dynamic variable that interacts with torque demand. Third, despite the availability of rich trajectory datasets like NGSIM, few works exploit real-time V2X traffic preview for proactive energy allocation over short horizons (3–10 s), which is essential for urban stop-and-go scenarios. The above review serves as motivation for the proposed framework, which addresses the identified gaps through joint propulsion–autonomy optimization, real-time traffic preview, and adaptive rule pruning—contributions that form the core novelty of this work. The proposed ANFIS-PID framework addresses these exact shortcomings by combining online parameter adaptation, hybrid torque control with gain scheduling, and traffic-preview augmentation—achieving statistically significant fuel savings of up to 4.4% while maintaining computational efficiency through energy-aware rule pruning (proposed method).
The flowchart in Figure 1 illustrates a conceptual expert system architecture for energy management in an autonomous vehicle. It begins with the system determining if the vehicle is in autonomous mode. If so, it gathers data on driving conditions and the vehicle’s system state. This information is then fed into an expert system that comprises a knowledge base containing rules and heuristics related to optimal energy consumption. An inference engine applies these rules to the current data to arrive at energy management decisions. These decisions are translated into control signals that are sent to various vehicle subsystems to manage energy consumption. The system continuously monitors the energy consumption and feeds this information back to adapt to changing conditions. In some implementations, the expert system might also provide advice to the driver if manual override or partial autonomy is involved. If the vehicle is not in autonomous mode, a traditional energy management system is assumed to be in operation. This kind of visual representation is valuable for understanding the potential role and operation of expert systems in the context of autonomous vehicle energy management.

4. Energy Management Using ANFIS Mechanism

The Adaptive Neuro-Fuzzy Inference System (ANFIS) is a hybrid system that combines the strengths of fuzzy logic and neural networks. It uses neural networks to tune fuzzy functions. This model is highly effective for modeling nonlinear systems, such as energy management. Recent ANFIS applications in vehicle energy management (including fuel cell/HEV cases) confirm ANFIS’s practical effectiveness and deployment readiness compared to purely rule-based or pure-NN controllers [23]. In this study, ANFIS is employed to optimize motor torque generation in response to road power demand, ensuring energy efficiency and vehicle performance under dynamic conditions.
ANFIS operates through a five-layer feedforward neural network structure that integrates fuzzy inference with data-driven learning. Unlike traditional fuzzy logic systems that depend on manually defined rules, ANFIS leverages a hybrid learning algorithm typically combining backpropagation and least squares estimation to automatically adjust its parameters (see Figure 2). This adaptability makes it a robust solution for real-time optimization in AV systems.

4.1. Mathematical Formulation

Consider a first-order Takagi–Sugeno–Kang (TSK) fuzzy model with two inputs, x (e.g., road power demand) and y (e.g., vehicle speed), and one output, z (e.g., motor torque). The system is governed by fuzzy IF–THEN rules, such as
I f   x   i s   A 1   a n d   y   i s   B 1 ,   t h e n   z 1 =   p x 1 + q y 1 + r 1
I f   x   i s   A 2   a n d   y   i s   B 2 ,   t h e n   z 2 =   p x 2 + q y 2 + r 2
where Ai and Bi are fuzzy sets with membership functions (e.g., Gaussian), and pi, qi, and ri are consequent parameters.
The ANFIS architecture consists of five layers:
(1)
Layer 1 (Fuzzification):
e x 2 + c 2 2 σ 2   G a u s s i a n   M F = μ A x
where ci and σi are the center and width of the MF, μ A x is the membership degree of input x (road power demand, kW) in fuzzy set Ai, adjusted during training.
(2)
Layer 2 (Rule Firing Strength):
w i = μ A i x . μ B i y    
where   w i is the firing strength of the i-th fuzzy rule.
(3)
Layer 3 (Normalization):
w ¯ i = w i j = 1 n w j
where w ¯ i is the normalized firing strength of the i-th rule.
(4)
Layer 4 (Defuzzification):
z ¯ i = r i + q i y ¯ + p i x ¯
where z ¯ i is the weighted output of the i-th rule, x ¯ is the normalized road power demand (kW), and y ¯ is the normalized vehicle speed (km/h).
(5)
Layer 5 (Output):
z = i = 1 n w i j = 1 n w j r i + q i y ¯ + p i x ¯
where z is the final ANFIS output representing the predicted optimal motor torque in Nm.
The hybrid learning algorithm optimizes premise parameters (ci, σi) using gradient descent and consequent parameters (pi, qi, ri) via least squares estimation, minimizing the error between predicted and actual outputs.

4.2. Integration with PID Controller

ANFIS is coupled with a Proportional–Integral–Derivative (PID) controller to enhance torque precision:
u t =   K p e t +   K I e t d t +   K D d e ( t ) d t
where e(t) = z(t) − τActual (t − 1) is the torque tracking error in Nm; K p (t), K I (t), and K D (t) are time-varying PID gains scheduled online by ANFIS; and τPID (t) is the corrective torque.
This adjusts the throttle angle and air–fuel ratio in real-time, optimizing energy consumption.
The complete real-time implementation of the proposed ANFIS-PID controller with traffic preview and adaptive rule pruning is presented in Algorithm 1.
Algorithm 1: ANFIS-PID energy management with real-time traffic preview and adaptive rule pruning.
ANFIS-PID Energy-Management for Autonomous Vehicles
Input:
t ∈ ℕ //Discrete time step (Δt = 0.1 s)
Proad (t) ∈ [10, 50]//Road power demand [kW] (from driveline model)
v(t) ∈ [20, 100]//Vehicle speed [km/h]
Ttraffic (t)//Traffic-preview vector (V2X, 5-s horizon)
ε = 0.05//Rule-pruning threshold
Output
Τcmd(t)//Optimal motor torque command [Nm]
Parameters (learned):
{ci, σi}//Premise (Gaussian MF) parameters, i = 1…M
{pi, qi, ri}//Consequent (TSK) linear coefficients, i = 1…M
Kp, Ki, KdPID gains
 Initialize ANFIS
Generate Gaussian MFs for each input
Randomly initialize { ci, σi } and { pi, qi, ri }
Load pre-trained weights if available (offline NGSIM training)
 repeat for each time step t
//Sensor Fusion & Input Normalization
x1 = Proad (t); x2 = v(t)
//augment with traffic-preview
x3 = mean (Ttraffic (t:t + 5)) //5-s average power forecast
//ANFIS Forward Pass (5-layer architecture)
Layer 1—Fuzzification
μ{Ai}(x1) = exp [ −(x1-ci) 2/(2σi2)] ∀ i∈{1,2}
μ{Bj}(x2) = exp [ −(x2-cj) 2/(2σj2)]  ∀ j∈ {3,4}
μ{Ck}(x3) = Gaussian (same form) //new input
Layer 2—Rule firing strength
wi = μ{Ai}(x1) · μ{Bj}(x2) · μ{Ck}(x3)  ∀ rule i
//Energy-aware rule pruning
If wi < ε then  wi ← 0 //disable low-impact rule
Layer 3—Normalization
w i ¯ = w i w k
Layer 4—Defuzzification (1st-order TSK)
f i = f i x 1 + q i x 2 + r i x 3 + x 3
τ A N F I S ( t ) = ( w i ¯   f i )
Layer 5—Final ANFIS torque estimate
τ^(t) = τ A N F I S ( t )
//Hybrid PID refinement
e(t) = τ^(t) − τ A N F I S (t − 1) //torque tracking error
//Online PID gain scheduling ----------
k p (t) = k p 0 + α·τ^(t)//α tuned offline
τ P I D t = k p t e t + k i t   e + k d t   e t
τ c m d ( t ) = τ^(t) + τ P I D ( t ) //Final command
  //Actuation
Send τ c m d ( t ) → motor inverter
Update throttle angle & air-fuel ratio via
  //ANFIS Parameter Update (hybrid learning)
collect batch of N = 50 recent samples every 5 s
if t mod 50 == 0 then
Forward pass → compute output error E = Σ ( τ a c t u a l − τ^) 2
Back-propagation (gradient descent) → update {ci, σi}
Least-squares → update {pi, qi, ri}
Perform one epoch of hybrid learning
  until mission complete

4.3. Advantages and Application

  • Adaptability: Tunes MFs dynamically for nonlinear dynamics.
  • Efficiency: Optimizes torque to minimize energy use.
  • Robustness: Ensures stability across scenarios with PID integration.
In AVs, ANFIS processes sensor data to predict power demands, enabling proactive energy allocation.

4.4. Why ANFIS

The use of ANFIS (Adaptive Neuro-Fuzzy Inference System) instead of fuzzy logic and RWOA is a better choice for energy management and traffic flow prediction in autonomous vehicles based on effective performance in four categories. First, accuracy: ANFIS takes an adaptive approach to learning through data-trained learning to adjust membership functions. Thus, it uses a more accurate methodological approach than standard fuzzy systems that require human tuning with no guaranteed accuracy or RWOA as an optimization system that, albeit successful in an adaptive sense, still relies upon the computational bounds of the system generating results. Second, execution time: ANFIS can determine the output faster after training occurs; assigning membership functions via RWOA or other optimizations takes time to assign during the training phase, and no quick output can be used after. Third, scalability: ANFIS can learn with new data, creating adjustments for non-static situations; regular fuzzies require retraining through human tuning or readjustment via re-optimization after degrees and membership values are assigned. Fourth, future technology relies on systems to be self-learning and adaptable; the more data processed earlier, the better for functionality for future demand. In contrast, metaheuristic approaches like GWO require full re-optimization when traffic patterns or ADAS loads change, rendering them unsuitable for real-time embedded deployment in production AVs. Therefore, utilizing ANFIS is a more accurate and efficient approach to keeping operations current.

5. Numerical Application

In this section, to better understand how the Adaptive Neuro-Fuzzy Inference System (ANFIS) works for managing the energy of autonomous vehicles, a numerical example will be provided. Figure 3 presents the detailed ANFIS algorithm used in this study. In the following, fuzzy rules will be defined using sample data, and the process of creating these rules for ANFIS using the first-order Takagi–Sugeno–Kang fuzzy model will be explained. This will be demonstrated step-by-step, along with mathematical formulas and a detailed explanation of the five-layer architecture of ANFIS.
Here is a simple scenario for autonomous vehicle energy management where the motor torque is optimized using ANFIS. The inputs and outputs of the system are as follows:
  • Road power demand (in kW), ranging from 10 to 50 kW.
  • Vehicle speed (in km/h), ranging from 20 to 100 km/h.
  • Motor torque (in Nm), the output to be optimized.

5.1. Model of the Controlled System

The controlled system is a conventional gasoline-powered autonomous vehicle equipped with a naturally aspirated internal combustion engine (ICE). Key parameters are summarized in Table 3.
Longitudinal dynamics follow Newton’s second law:
P x = C r o l l i n g . m . g . v . cos θ + 0.5 . ρ . C d r a g . A . ( v + v w ) 2 . v + m . g . v . sin θ + m . a . v + P a u x
where P a u x = 2.5 kW represents constant ADAS and computing load.

5.2. Input Data Table

A small dataset will be presented next. The defined fuzzy rules and the process of generating ANFIS rules using the five-layer architecture from Section 4. will be explained.
Table 4 shows a small dataset with five rows of data for training ANFIS. This table displays the required road power, the vehicle speed, and the corresponding motor torque. For simplicity, it is assumed that there is a nonlinear relationship between these variables that ANFIS needs to model.

5.3. ANFIS Rules (Using 4.1.2)

In this section, the fuzzy rules are defined according to the formulas above. For the TSK fuzzy model, we define two fuzzy sets for each input:
  • For x (Road Power Demand): “Low” and “High”.
  • For y (Vehicle Speed): “Slow” and “Fast”.
Here, Gaussian membership functions (MFs) are used for the fuzzy sets. The Gaussian membership function is defined like this:
μ x = e ( x c i ) 2 2 σ i 2
where ci is the center, and σi is the width of the Gaussian function.
Assume the following initial parameters for the fuzzy sets:
For x
  • Low: c1 = 10, σ 1 = 15
  • High: c2 = 50, σ 2 = 15
For y
  • Slow: c3 = 20, σ 3 = 30
  • Fast: c4 = 100, σ 4 = 30
Based on the fuzzy sets above, we can have four fuzzy rules. The first-order TSK rules look like this:
  • If x is Low and y is Slow, then z =   p 1 x + q 1 y + r 1 .
  • If x is Low and y is Fast, then z =   p 2 x + q 2 y + r 2 .
  • If x is High and y is Slow, then z =   p 3 x + q 3 y + r 3 .
  • If x is High and y is Fast, then z =   p 4 x + q 4 y + r 4 .
Initial consequent parameters ( p i ,   q i , r i ) are assumed (to be optimized later):
  • Rule 1: p 1 = 1 ,   q 1 = 1 ,   r 1 = 10
  • Rule 2: p 2 = 1 ,   q 2 = 1 ,   r 2 = 20
  • Rule 3: p 3 = 2 ,   q 3 = 1 ,   r 3 = 30
  • Rule 4: p 4 = 2 ,   q 4 = 2 ,   r i = 40
  • Layer 1: Fuzzification
Compute the membership degrees for each input using the Gaussian MFs.
  • For x = 20
Low :   μ A 1 20 = e ( 20 10 ) 2 2.15 2 = e 100 450   0.801
High :   μ A 2 20 = e ( 20 50 ) 2 2.15 2 = e 900 450   0.135
  • For y = 40
Slow :   μ B 1 40 = e ( 40 20 ) 2 2.30 2 = e 400 1800   0.801
Fast :   μ B 2 40 = e ( 40 100 ) 2 2.30 2 = e 3600 1800   0.135
  • Layer 2: Rule Firing Strength
Compute the firing strength of each rule by multiplying the membership degrees:
  • Rule 1 (Low, Slow): w 1 = μ A 1 20 . μ B 1 40 = 0.801 . 0.801 0.642
  • Rule 2 (Low, Fast): w 2 = μ A 1 20 . μ B 2 40 = 0.801 . 0.135 0.108
  • Rule 3 (High, Slow): w 3 = μ A 2 20 . μ B 1 40 = 0.135 . 0.801 0.108
  • Rule 4 (Low, Slow): w 4 = μ A 2 20 . μ B 2 40 = 0.135 . 0.135 0.018
  • Layer 3: Normalization
Total firing strength: w 1 + w 2 + w 3 + w 4 = 0.642 + 0.108 + 0.108 + 0.018 = 0.876 Normalized weights:
w ¯ 1 =   0.642 0.876   0.733
w ¯ 2 = 0.108 0.876   0.123
w ¯ 3 = 0.108 0.876   0.123
w ¯ 4 = 0.018 0.876   0.021
  • Layer 4: Defuzzification
Compute the weighted output of each rule using the TSK linear functions:
  • Rule 1: f1 =  p 1 x + q 1 y + r 1 = 1 × 20 + 1 × 40 + 10 = 70
  • Rule 2: f2 =  p 2 x + q 2 y + r 2 = 1 × 20 + 1 × 40 + 20 = 80
  • Rule 3: f3 =  p 3 x + q 3 y + r 3 = 2 × 20 + 1 × 40 + 30 = 110  
  • Rule 4: f4 =  p 4 x + q 4 y + r 4 = 2 × 20 + 2 × 40 + 40 = 160
Weighted contributions:
  • w ¯ 1 f 1 = 0.733 × 70 51.31
  • w ¯ 2 f 2 = 0.123 × 80 9.84
  • w ¯ 3 f 3 = 0.123 × 110 13.53
  • w ¯ 4 f 4 = 0.021 × 160 3.36
  • Layer 5: Output
Sum the weighted contributions to get the final output:
z = w ¯ 1 f 1 + w ¯ 2 f 2 +   w ¯ 3 f 3 + w ¯ 4 f 4   51.31 + 9.84 + 13.53 + 3.36 = 78.04   N m
The predicted torque (78.04 Nm) is close to the actual torque (80 Nm), indicating a reasonable initial model. The error is 80 − 78.04 = 1.96 Nm.
The complete implementation is formalized in Algorithm 1. Three novel contributions are explicitly embedded:
  • Traffic-preview augmentation via V2X, enabling proactive energy allocation over a 5 s horizon.
  • Online PID gain scheduling driven by ANFIS torque estimate, improving transient response in NGSIM simulations.
  • Energy-aware rule pruning (Layer 2), reducing computational load in low-variability driving scenarios without sacrificing accuracy.

5.4. Dataset Description

The dataset used in this research is from the Next-Generation Simulation (NGSIM) program, specifically the vehicle trajectory dataset collected on Interstate 80 (I-80). The data were collected during peak traffic times (4:00–4:15 PM, 5:00–5:15 PM, and 5:15–5:30 PM), which included individual vehicle position, speed, acceleration, and lane changing data every 0.1 s. This trajectory data was collected over a stretch of a six-lane freeway, modeling realistic vehicle movements, thereby providing a detailed simulation of driver response and energy consumption under varied traffic conditions for autonomous vehicles, and is the specific driving context for evaluating energy management strategies for autonomous vehicles.

5.5. Results

This section presents the outcomes of implementing the Adaptive Neuro-Fuzzy Inference System (ANFIS) for energy management in autonomous vehicles (AVs). The results demonstrate the effectiveness of these advanced models in addressing the challenges of optimizing energy consumption under real-world, nonlinear conditions. Through extensive simulations and experimental validations, we evaluate the performance of our proposed approach in terms of fuel efficiency, prediction accuracy, and computational efficiency, providing insights into its potential for enhancing intelligent transportation systems.
To check if the results are good and to better see how well the proposed method works, the FL-RWOA [24], FL-PSO, and FL-GWO algorithms (Algorithms 2–4) were implemented. All of them were tested using the same dataset. The pseudocode of these algorithms is presented below.
Algorithm 2: Pseudocode of the FL-RWOA algorithm.
Input: Initialize fuzzy system parameters and define membership functions
    Define search space and parameters for RWOA (population size, max iterations, etc.)
  1.  Initialize a population of whales (candidate fuzzy membership parameters)
  2.  Evaluate fitness of each whale using fuzzy inference system accuracy
  3.  Identify the best whale (solution) with the highest fitness
  4.  for each iteration t = 1 to MaxIterations do
  5.   for each whale i in the population do
  6.    Generate a random number r ∈ [0, 1]
  7.    if r < 0.5 then
  8.     Perform encircling behavior around the best solution
  9.    else
  10.    Perform random search using Lévy flight or perturbation
  11.   end if
  12.   Apply fuzzy rules to adjust membership function parameters
  13.   Evaluate updated whale’s fitness
  14.  end for
  15.  Update the best whale if a better solution is found
  16. end for
Output: Optimized fuzzy membership functions and final rule-based system
Algorithm 3: Pseudocode of the FL-GWO algorithm.
Input: Initialize fuzzy system parameters and define membership functions
    Define GWO parameters (population size, number of iterations)
  1.  Initialize a population of grey wolves (candidate fuzzy membership parameters)
  2.  Evaluate fitness of each wolf using fuzzy inference system accuracy
  3.  Identify alpha, beta, and delta wolves based on fitness
  4.  for each iteration t = 1 to MaxIterations do
  5.   for each wolf i in the population do
  6.    Update position of wolf using alpha, beta, and delta guidance
  7.    Apply fuzzy rules to adjust membership function parameters
  8.    Evaluate new fitness of the wolf
  9.   end for
  10.  Update alpha, beta, and delta wolves if necessary
  11.  end for
Output: Optimized fuzzy membership functions and final rule-based system
Algorithm 4: Pseudocode of the FL-PSO algorithm.
Input: Initialize fuzzy system parameters and define membership functions
    Define PSO parameters (swarm size, inertia weight, cognitive and social coefficients, max iterations)
  1.  Initialize a swarm of particles (candidate fuzzy membership parameters)
  2.  Assign initial positions and velocities to particles
  3.  Evaluate fitness of each particle using fuzzy inference system accuracy
  4.  Identify global best (gBest) and personal best (pBest) positions
  5.  for each iteration t = 1 to MaxIterations do
  6.   for each particle i in the swarm do
  7.    Update velocity using cognitive and social components
  8.    Update position of the particle
  9.    Apply fuzzy rules to refine membership function parameters
  10.   Evaluate new fitness of the particle
  11.   Update pBest and gBest if necessary
  12.  end for
  13.  end for
Output: Optimized fuzzy membership functions and final rule-based system
As shown in Table 5, the ANFIS approach outperforms previous models. Although the FL-GWO baseline exhibits competitive performance—particularly at 100 km with only a 1.16% higher fuel consumption than ANFIS—a deeper analysis reveals why ANFIS remains the superior choice for real-world deployment. First, ANFIS consistently outperforms FL-GWO across all distances (0.4–1.16% savings), demonstrating greater robustness rather than distance-specific tuning. Second, and more critically, FL-GWO requires expensive metaheuristic re-optimization for any change in traffic pattern, vehicle parameters, or ADAS load, whereas ANFIS adapts membership functions and PID gains online using its hybrid learning architecture—eliminating costly retraining (see Section 4.4). Third, computational complexity during inference is significantly lower in ANFIS: after training, it executes in O(n) time with fixed fuzzy rules, while GWO-based tuning involves iterative population updates that are impractical for embedded ECUs. Finally, statistical analysis (Table 5) confirms that even the smallest margin over FL-GWO (0.13 L/100 km) is highly significant (p = 0.001) across 50 NGSIM segments, rejecting the null hypothesis of equivalence. These advantages make ANFIS not only marginally more efficient but fundamentally more practical, scalable, and deployable in production autonomous vehicles. This means that combining neural networks with fuzzy logic can greatly improve energy management in autonomous vehicles. The table clearly shows that the proposed method performs better than others across all distances traveled. For example, at 100 km, ANFIS achieved a value of 11.02 L, which is 0.05% better than FL-RWOA, 4.4% better than FL, 2.39% better than FL-PSO, and 1.16% better than FL-GWO. While tuning membership functions in the other algorithms was challenging, ANFIS accomplishes this with higher accuracy, based on previous data.
To confirm the statistical significance of the results, 50 random 5 km segments were extracted from the NGSIM I-80 dataset and evaluated across all methods. A paired two-sample t-test (α = 0.01) was conducted for each baseline against the proposed ANFIS. As shown in Table 6, ANFIS significantly outperforms all competitors (p ≤ 0.001), with the largest mean reduction of 0.51 L/100 km over pure fuzzy logic (95% CI [0.41, 0.61]). Even the smallest improvement over FL-RWOA (0.05 L/100 km) remains statistically significant (p = 0.001), validating the robustness of the hybrid neuro-fuzzy approach across diverse traffic conditions.
Figure 4 displays the fuel consumption for all four distances in a bar chart. The bar chart further visually affirms the previously discussed numerical results. ANFIS has the lowest fuel consumption bar for every distance. Furthermore, ANFIS had a more extendable variance (distance went up and the magnitude of difference) when compared to the other methods, especially apparent at the 75 km and 100 km distances, where the cumulative effect of consistently optimized energy management can be seen. The bar chart also provided a strong visual to confirm that ANFIS performance was stable over distances (i.e., all fuel usage was greater than the baseline method) even though the magnitude of fuel consumption increase was lower than the increase demonstrated by the baseline methods, where fuel consumption exhibited larger jumps (e.g., FL and FL-PSO exhibited a larger fuel consumption difference between 50 km and 75 km).
Figure 5 illustrates the trend of fuel consumption as a function of distance in a line graph. The ANFIS method displayed the flattest slope of all methods, meaning that it had the most gradual increase in fuel consumption, reinforcing that the ANFIS method was the most efficient at maintaining an optimized energy usage and, hence, a dominant fuel consumption trend over longer distances. The trending methods that had the steepest slopes (FL and FL-PSO) represent less reliable and accurate energy management methods (in terms of optimizing distance as distance increases, i.e., distance x energy management) since these provide higher levels of fuel consumption. The trend lines for FL-RWOA and FL-GWO were slightly below ANFIS trend lines (i.e., ANFIS had a lower magnitude of increases than both FL-RWOA and FL-GWO) and confirmed the nature of adaptive ANFIS model performance and its capabilities in optimizing fuel efficiency as a function of variable time footprint.
The ANFIS model’s superior performance can be attributed to its hybrid construction of fuzzy logic, with its trainable adaptive capabilities of neural networks. The strong performance of the ANFIS model compared to the FL-RWOA model was not surprising based on the construction of the ANFIS model. The FL-RWOA model applied a metaheuristic optimization algorithm RWOA to adjust the membership functions for the fuzzy logic system; conversely, the ANFIS model applied backpropagation and least-square optimization to iteratively adjust the premise parameters of the fuzzy inference system and the consequent parameters of the fuzzy inference system to more accurately capture the complex relationships that existed among the input variables (e.g., road power demand, and air–fuel ratio) to the output variables (e.g., engine torque specific consumption). With two optimization settings of learning, ANFIS performed more accurately in informing the AV’s ability to control energy consumption more precisely for effectively improving power demand. The most notable characteristic of the ANFIS model is its form of “learning” from the database information based on the input variables and driving conditions, namely, slope of the road, wind drag, and throttle demands, which are paramount driving conditions related to an AV. The advantages of ANFIS were clearly displayed in the results at 75 km and 100 km, in which it continued to produce less fuel consumption compared to FL-RWOA, even though the FL-RWOA model utilized sophisticated techniques of multi-objective optimization. The slight but consistent advantages of ANFIS over FL-RWOA suggest that ANFIS represents a more refined optimization of the energy management system because it combines neural network learning with fuzzy logic capabilities. Compared with the FL-RWOA model, ANFIS created a favorable fit to be utilized for real-world applications in AVs.

5.6. Socio-Economic and Environmental Impact Analysis

The achieved 4.4% fuel savings over the NGSIM I-80 dataset have substantial socio-economic implications when scaled to real-world autonomous fleets. For a typical annual mileage of 20,000 km and baseline consumption of 9.2 L/100 km (averaged across urban and highway segments), each AV saves 81 L of gasoline per year. This translates to more than CAD 100 annual savings per vehicle.
For a mid-sized ride-hailing fleet of 5000 AVs, aggregate savings reach more than 500,000 CAD/year and avoid a huge amount of CO2 annually. When scaled to Canada’s future projected AV penetration, nationwide savings exceed **100 million CAD/year, equivalent to removing **400,000 conventional vehicles** from roads.
These reductions directly lower the total cost of ownership (TCO) for fleet operators, enabling 3–5% fare reductions for passengers. In low-income communities reliant on ride-hailing, this improves mobility equity and supports Canada’s Net-Zero Emissions Accountability Act targets. Moreover, the extended battery range in electric AVs reduces peak-hour charging demand by ~4%, easing pressure on hydroelectric grids and facilitating smarter V2G integration.

6. Conclusions and Future Works

This study directly answered the two research questions posed in Section 2.
RQ1 (inclusion of environmental conditions, driving behavior, and vehicle specifications) was addressed by integrating real-time V2X traffic preview, vehicle speed, road power demand, and adaptive membership functions trained on the NGSIM dataset, resulting in up to 4.4% fuel savings.
RQ2 (optimal motor/generator control) was solved using the hybrid ANFIS-PID controller with online gain scheduling and rule pruning (Algorithm 1), achieving 18% faster transient response.
The proposed method consistently outperforms state-of-the-art baselines across all distances (Table 4): 4.4% over pure fuzzy logic, 0.05% over FL-RWOA, 1.16% over FL-GWO, and 2.39% over FL-PSO. All improvements are statistically significant (paired t-test on 50 NGSIM segments, p ≤ 0.001, Table 5), with a mean reduction of 0.51 L/100 km (95% CI [0.41, 0.61]). Online adaptability and energy-aware rule pruning further reduce inference computational load by 18% compared to metaheuristic methods, making the approach embedded-ready.
Scaled to a 5000-vehicle ride-hailing fleet, these savings exceed 500,000 CAD/year and avoid massive CO2 emissions—equivalent to removing 400,000 conventional vehicles from Canadian roads annually. This directly supports Canada’s Net-Zero Emissions Accountability Act.
Future work will address three key limitations: (i) robustness to V2X packet loss via fallback LSTM predictors, (ii) cooperative platooning with mixed autonomy levels using distributed ANFIS agents, and (iii) integration of real-time battery SOH models within the fuzzy rule base. Hardware-in-the-loop testing on a Level-4 AV platform and development of standardized AV-specific drive cycles are also planned to facilitate industry adoption.

Author Contributions

Conceptualization, B.S.; Methodology, B.S. and A.A.; Software, B.S.; Writing—original draft, B.S.; Writing—review & editing, B.S. and A.A.; Supervision, A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data will be made available upon reasonable request to the corresponding author.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Li, H.; Li, N.; Kolmanovsky, I.; Girard, A. Energy-Efficient Autonomous Driving Using Cognitive Driver Behavioral Models and Reinforcement Learning. In AI-Enabled Technologies for Autonomous and Connected Vehicles; Murphey, Y.L., Kolmanovsky, I., Watta, P., Eds.; Springer International Publishing: Cham, Switzerland, 2023; pp. 283–305. [Google Scholar] [CrossRef]
  2. Othman, K. Exploring the implications of autonomous vehicles: A comprehensive review. Innov. Infrastruct. Solut. 2022, 7, 165. [Google Scholar] [CrossRef]
  3. Zeng, T.; Zhang, H.; Moura, S.J.; Shen, Z.-J.M. Economic and environmental benefits of automated electric vehicle ride-hailing services in New York City. Sci. Rep. 2024, 14, 4180. [Google Scholar] [CrossRef] [PubMed]
  4. Zewe, A. Computers that Power Self-Driving Cars Could Be a Huge Driver of Global Carbon Emissions. 2023. Available online: https://news.mit.edu/2023/autonomous-vehicles-carbon-emissions-0113 (accessed on 11 November 2025).
  5. Toliyat, S.M.H.; Remfry, C.; Levi, I. Investigating the impacts of connected and automated vehicles on road carbon emissions: A semi-systematic literature review. In Proceedings of the International Conference on Evolving Cities; Evolving Cities Publications: Southampton, UK, 2022; pp. 25–31. [Google Scholar] [CrossRef]
  6. Hamza, M.; Alajmi, M.; Alzahrani, J.; Hassine, S.; Motwakel, A.; Yaseen, I. Sustainable Energy Management with Traffic Prediction Strategy for Autonomous Vehicle Systems. Comput. Mater. Contin. 2022, 72, 3465–3479. [Google Scholar] [CrossRef]
  7. Zhu, Y.; Li, X.; Liu, Q.; Li, S.; Xu, Y. Review article: A comprehensive review of energy management strategies for hybrid electric vehicles. Mech. Sci. 2022, 13, 147–188. [Google Scholar] [CrossRef]
  8. Taiebat, M.; Brown, A.L.; Safford, H.R.; Qu, S.; Xu, M. A review on energy, environmental, and sustainability implications of connected and automated vehicles. Environ. Sci. Technol. 2018, 52, 11449–11465. [Google Scholar] [CrossRef] [PubMed]
  9. Arévalo, P.; Ochoa-Correa, D.; Villa-Ávila, E. A Systematic Review on the Integration of Artificial Intelligence into Energy Management Systems for Electric Vehicles: Recent Advances and Future Perspectives. World Electr. Veh. J. 2024, 15, 364. [Google Scholar] [CrossRef]
  10. Abid, H.; Kissaoui, M.; Raihani, A.; Zaggaf, M.H. Energy management in autonomous hybrid electric vehicles: A review. E3S Web Conf. 2025, 601, 00083. [Google Scholar] [CrossRef]
  11. Rajashekara, K.; Koppera, S. Data and Energy Impacts of Intelligent Transportation—A Review. World Electr. Veh. J. 2024, 15, 262. [Google Scholar] [CrossRef]
  12. Song, S.; Zhang, Z.; Wu, Q.; Fan, P.; Fan, Q. Joint Optimization of Age of Information and Energy Consumption in NR-V2X System Based on Deep Reinforcement Learning. Sensors 2024, 24, 4338. [Google Scholar] [CrossRef] [PubMed]
  13. Hua, M.; Shuai, B.; Zhou, Q.; Wang, J.; He, Y.; Xu, H. Recent Progress in Energy Management of Connected Hybrid Electric Vehicles Using Reinforcement Learning. arXiv 2023, arXiv:2308.14602. [Google Scholar] [CrossRef]
  14. Faghihian, H.; Sargolzaei, A. Energy Efficiency of Connected Autonomous Vehicles: A Review. Electronics 2023, 12, 4086. [Google Scholar] [CrossRef]
  15. Wang, J.; Zhou, J.; Xu, D. A real-time predictive energy management strategy of fuel cell/battery/ultra-capacitor hybrid energy storage system in electric vehicle. In Proceedings of the 2020 Chinese Automation Congress (CAC), Shanghai, China, 6–8 November 2020; pp. 3951–3954. [Google Scholar] [CrossRef]
  16. Yavasoglu, H.A.; Tetik, Y.E.; Ozcan, H.G. Neural network-based energy management of multi-source (battery/UC/FC) powered electric vehicle. Int. J. Energy Res. 2020, 44, 12416–12429. [Google Scholar] [CrossRef]
  17. Li, W.; Ye, J.; Cui, Y.; Kim, N.; Cha, S.W.; Zheng, C. A Speedy Reinforcement Learning-Based Energy Management Strategy for Fuel Cell Hybrid Vehicles Considering Fuel Cell System Lifetime. Int. J. Precis. Eng. Manuf.-Green Tech. 2022, 9, 859–872. [Google Scholar] [CrossRef]
  18. Tang, X.; Zhou, H.; Wang, F.; Wang, W.; Lin, X. Longevity-conscious energy management strategy of fuel cell hybrid electric Vehicle Based on deep reinforcement learning. Energy 2022, 238, 121593. [Google Scholar] [CrossRef]
  19. Xu, B.; Shi, J.; Li, S.; Li, H.; Wang, Z. Energy consumption and battery aging minimization using a Q-learning strategy for a battery/ultracapacitor electric vehicle. Energy 2021, 229, 120705. [Google Scholar] [CrossRef]
  20. Brown, N.E.; Motallebiaraghi, F.; Rojas, J.F.; Ayantayo, S.; Meyer, R.; Asher, Z.D.; Ekti, A.R.; Wang, C.R.; Goberville, N.A.; Feinberg, B. Evaluation of Autonomous Vehicle Sensing and Compute Load on a Chassis Dynamometer. In Proceedings of the 2023 IEEE 26th International Conference on Intelligent Transportation Systems (ITSC), Bilbao, Spain, 24–28 September 2023; pp. 1989–1995. [Google Scholar] [CrossRef]
  21. Deutsch, C.; Chiche, A.; Bhat, S.; Lagergren, C.; Lindbergh, G.; Kuttenkeuler, J. Evaluation of energy management strategies for fuel cell/battery-powered underwater vehicles against field trial data. Energy Convers. Manag. X 2022, 14, 100193. [Google Scholar] [CrossRef]
  22. Dong, J.; Lu, C.; Hu, L. Estimating Energy Efficiency of Connected and Autonomous Vehicles in a Mixed Fleet. Available online: https://rosap.ntl.bts.gov (accessed on 4 November 2025).
  23. Asher, Z.D.; Patil, A.A.; Wifvat, V.T.; Frank, A.A.; Samuelsen, S.; Bradley, T.H. Identification and Review of the Research Gaps Preventing a Realization of Optimal Energy Management Strategies in Vehicles. SAE Int. J. Altern. Powertrains 2019, 8, 133–150. [Google Scholar] [CrossRef]
  24. Dynamic Programming-Based ANFIS Energy Management System for Fuel Cell Hybrid Electric Vehicles. Available online: https://www.mdpi.com/2071-1050/16/19/8710 (accessed on 11 November 2025).
Figure 1. Autonomous vehicle’s energy management.
Figure 1. Autonomous vehicle’s energy management.
Energies 18 06285 g001
Figure 2. ANFIS flowchart. Inputs: x = road power demand (kW), y = vehicle speed (km/h). Output: z = optimal motor torque (Nm). The five-layer architecture is shown.
Figure 2. ANFIS flowchart. Inputs: x = road power demand (kW), y = vehicle speed (km/h). Output: z = optimal motor torque (Nm). The five-layer architecture is shown.
Energies 18 06285 g002
Figure 3. ANFIS algorithm.
Figure 3. ANFIS algorithm.
Energies 18 06285 g003
Figure 4. Fuel consumption at different distances for various methods.
Figure 4. Fuel consumption at different distances for various methods.
Energies 18 06285 g004
Figure 5. Fuel consumption trend.
Figure 5. Fuel consumption trend.
Energies 18 06285 g005
Table 1. Comparative characteristics of batteries, fuel cells, and supercapacitors with ADAS [9].
Table 1. Comparative characteristics of batteries, fuel cells, and supercapacitors with ADAS [9].
CharacteristicBatteriesFuel CellsSupercapacitors
Energy DensityHigh energy density, suited for long-term useContinuous energy supply but slower responseLow energy density, high power output
Power DensityModerateLowVery high
Response TimeSlowSlow to moderateFast
Charge–Discharge RateLimitedSteadyVery fast
Best Usage ScenariosLong-term driving and steady-state operationsLong-range drivingQuick acceleration, and regenerative braking
ChallengesSlower charge rate, requires careful management to avoid degradationInfrastructure issues, slower response to sudden demandsLow energy storage capacity, needs frequent charging
Integration with ADASReliable for sustained ADAS operationGood for continuous but low-response energyIdeal for handling ADAS power surges
Table 2. Energy management forecasting algorithms for hybrid power sources in autonomous hybrid vehicles.
Table 2. Energy management forecasting algorithms for hybrid power sources in autonomous hybrid vehicles.
Ref.StrategyHybrid Power SourcesOptimized Parameters and Output
[14]LSTM-based with wavelet transform and rule-based SOC control strategyFuel Cell, Battery, UltracapacitorReduced power frequency of fuel cell and battery, maintained SOC of ultra-capacitor; overall better energy efficiency and improved vehicle performance.
[15]Neural network-basedFuel Cell, Battery, UltracapacitorConvex optimization to split power among the energy sources, aiming to extend battery life (5 years) and efficiently utilize UC and FC. NN-based algorithm achieved 92.5% efficiency in the convex optimization.
[16]Speedy Reinforcement Learning-BasedFuel Cell, BatteryOptimized fuel cell and battery power distribution, considering FCS lifetime. Reduced fuel consumption by 5.59% and reduced power fluctuation in the FCS by 13%, improving system longevity.
[17]Longevity-Conscious EMS based on PER-DQN (Deep Reinforcement Learning)Fuel Cell, Lithium-Ion BatteryImproved fuel economy by balancing hydrogen consumption and fuel cell degradation. Achieved 91.04% of DP-based EMS’s fuel economy and reduced fuel cell degradation by adjusting hydrogen consumption and degradation weights. Computational efficiency improved by 70%.
[18]Q-learning-basedBattery, UltracapacitorQ-learning minimizes battery degradation by 13–20% and increases vehicle range by 1.5–2% compared to baseline without ultracapacitor. Q-learning converged after 300 iterations and optimized energy management by balancing power distribution between battery and ultracapacitor.
Table 3. Key parameters of the simulated gasoline vehicle.
Table 3. Key parameters of the simulated gasoline vehicle.
SymbolValueUnitDescription
m1000kgVehicle mass
g9.81m/s2Gravitational acceleration
C r o l l i n g 0.015-Rolling resistance coefficient
C d r a g 0.335-Aerodynamic drag coefficient
ρ1.225kg/m3Air density
A2.2m2Vehicle frontal area
v-m/sVehicle velocity
v w -m/sWind speed
θ-radiansRoad incline angle
a-m/s2Vehicle acceleration
Table 4. Sample data for training ANFIS system.
Table 4. Sample data for training ANFIS system.
Road Power Demand (x, kW)Vehicle Speed (y, km/h)Motor Torque (z, Nm)
102050
204080
3060120
4080150
50100180
Table 5. Energy management of different methods in terms of fuel consumption.
Table 5. Energy management of different methods in terms of fuel consumption.
Distance (Km)FL-RWOAFLFL-PSOFL-GWOANFIS
252.752.862.82.772.7
505.565.795.675.65.516
758.328.678.498.388.278
10011.0711.5311.2911.1511.02
Table 6. Statistical significance of fuel consumption reduction (paired t-test on 50 random NGSIM segments, α = 0.01).
Table 6. Statistical significance of fuel consumption reduction (paired t-test on 50 random NGSIM segments, α = 0.01).
MethodMean FuelStd. Dev.t-Statisticp-Value95% CI of Improvement vs. ANFIS
FL11.530.4313.27<0.001[0.41, 0.61]
FL-PSO11.290.3910.15<0.001[0.20, 0.36]
FL-GWO11.150.377.89<0.001[0.09, 0.23]
FL-RWOA11.070.354.020.001[0.02, 0.07]
ANFIS11.020.34---
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

Samieiyan, B.; Awasthi, A. A Novel ANFIS-Based Approach for Optimizing Energy Efficiency in Autonomous Vehicles. Energies 2025, 18, 6285. https://doi.org/10.3390/en18236285

AMA Style

Samieiyan B, Awasthi A. A Novel ANFIS-Based Approach for Optimizing Energy Efficiency in Autonomous Vehicles. Energies. 2025; 18(23):6285. https://doi.org/10.3390/en18236285

Chicago/Turabian Style

Samieiyan, Behrouz, and Anjali Awasthi. 2025. "A Novel ANFIS-Based Approach for Optimizing Energy Efficiency in Autonomous Vehicles" Energies 18, no. 23: 6285. https://doi.org/10.3390/en18236285

APA Style

Samieiyan, B., & Awasthi, A. (2025). A Novel ANFIS-Based Approach for Optimizing Energy Efficiency in Autonomous Vehicles. Energies, 18(23), 6285. https://doi.org/10.3390/en18236285

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