Next Article in Journal
Cognitive Radio Strategy Combined with MODCOD Technique to Mitigate Interference on Low-Orbit Satellite Downlinks
Next Article in Special Issue
A Multichannel Conflict-Free Mac Protocol for Enhancing RPMA Scalability
Previous Article in Journal
A Comparative Analysis of Various Machine Learning Algorithms to Improve the Accuracy of HbA1c Estimation Using Wrist PPG Data
Previous Article in Special Issue
SCAP SigFox: A Scalable Communication Protocol for Low-Power Wide-Area IoT Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Quality-of-Service-Aware Service Composition Method in the Internet of Things Using a Multi-Objective Fuzzy-Based Hybrid Algorithm

by
Marzieh Hamzei
1,
Saeed Khandagh
2 and
Nima Jafari Navimipour
3,4,*
1
Department of Computer Engineering, Tabriz Branch, Islamic Azad University, Tabriz 51376-53515, Iran
2
Electrical Engineering Department, Tabriz Branch, University of Applied Sciences and Technology, Tabriz 51376-53515, Iran
3
Department of Computer Engineering, Faculty of Engineering and Natural Sciences, Kadir Has University, 34083 Istanbul, Turkey
4
Future Technology Research Center, National Yunlin University of Science and Technology, Douliou 64002, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(16), 7233; https://doi.org/10.3390/s23167233
Submission received: 7 June 2023 / Revised: 6 August 2023 / Accepted: 10 August 2023 / Published: 17 August 2023
(This article belongs to the Special Issue Adaptive Resource Allocation for Internet of Things and Networks)

Abstract

:
The Internet of Things (IoT) represents a cutting-edge technical domain, encompassing billions of intelligent objects capable of bridging the physical and virtual worlds across various locations. IoT services are responsible for delivering essential functionalities. In this dynamic and interconnected IoT landscape, providing high-quality services is paramount to enhancing user experiences and optimizing system efficiency. Service composition techniques come into play to address user requests in IoT applications, allowing various IoT services to collaborate seamlessly. Considering the resource limitations of IoT devices, they often leverage cloud infrastructures to overcome technological constraints, benefiting from unlimited resources and capabilities. Moreover, the emergence of fog computing has gained prominence, facilitating IoT application processing in edge networks closer to IoT sensors and effectively reducing delays inherent in cloud data centers. In this context, our study proposes a cloud-/fog-based service composition for IoT, introducing a novel fuzzy-based hybrid algorithm. This algorithm ingeniously combines Ant Colony Optimization (ACO) and Artificial Bee Colony (ABC) optimization algorithms, taking into account energy consumption and Quality of Service (QoS) factors during the service selection process. By leveraging this fuzzy-based hybrid algorithm, our approach aims to revolutionize service composition in IoT environments by empowering intelligent decision-making capabilities and ensuring optimal user satisfaction. Our experimental results demonstrate the effectiveness of the proposed strategy in successfully fulfilling service composition requests by identifying suitable services. When compared to recently introduced methods, our hybrid approach yields significant benefits. On average, it reduces energy consumption by 17.11%, enhances availability and reliability by 8.27% and 4.52%, respectively, and improves the average cost by 21.56%.

1. Introduction

The Internet of Things (IoT) is a network that connects various pervasive objects, such as smartphones, sensors, actuators, and Radio Frequency Identification (RFID) tags, through the Internet [1,2,3,4]. It bridges the gap between the physical and virtual worlds, becoming essential to everyday life [5,6,7]. This dynamic network infrastructure possesses self-configuring capabilities facilitated by standard and interoperable communication protocols [8,9,10,11,12]. To enable connectivity, various communication technologies are employed in this field, including Near-Field Communication (NFC), Wireless Sensor Networks (WSN), Long-Term Evolution (LTE), Radio Frequency Identification (RFID), and others [13,14,15,16]. Components like wireless sensor networks, RFID, data acquisition, actuator networks, and managerial control are integral aspects of the IoT [17]. The connected objects collect data and share information about their operations [18,19]. Advancements in Information Technology (IT) have led to rapid IoT development, allowing its implementation in diverse fields such as agriculture, industry, the military, home monitoring, and more [20,21].
Cloud computing has revolutionized access to vast resources, offering easy and instant availability [22,23,24]. Combined with the IoT, this integration enhances the virtual resource infrastructure and available services [25,26,27,28]. By merging the cloud and IoT, both platforms can mutually benefit. On the one hand, IoT can leverage the cloud’s extensive capabilities, addressing its technological limitations in storage, processing, and communication. The cloud’s limitless potential compensates for these shortcomings. IoT enables the cloud to dynamically access real-world objects and extend its application to a broader range of scenarios [29]. Moreover, the emergence of fog computing has addressed the need to process IoT data in edge networks closer to IoT sensors [30,31,32,33,34]. This approach reduces inherent delays in cloud data centers and facilitates the discovery of improved services [35].
Huge amounts of data are passed over the Internet every day [36]; therefore, we need to find a way to merge these data and services to meet the needs of customers. Service composition in the IoT can benefit from both fog and cloud computing, each with its own advantages and disadvantages. Fog computing, a decentralized architecture that enables computation closer to the data source, reduces latency, and improves overall performance [37,38]. It is particularly suitable for real-time applications like video analytics and those requiring high levels of security and privacy [39,40]. On the other hand, cloud computing, a centralized architecture reliant on remote servers, is useful for applications with extensive storage and processing requirements without immediate response times. Therefore, the choice between fog and cloud computing for IoT service composition hinges on the application’s specific needs. If low latency, high security, and real-time processing are crucial, fog computing becomes the better choice. However, cloud computing is more suitable when extensive storage, processing power, and scalability are required. In some instances, a combination of both fog and cloud computing may provide the optimal solution to balance performance, security, and scalability requirements. IoT devices typically exhibit heterogeneous and dynamic embedded characteristics, with each device responsible for individual atomic services [41]. With the growing number of connected IoT objects, the selection of web services becomes crucial in addressing user requests [42,43]. In cases where a single service cannot handle user requests, multiple services need to be composed to operate IoT-based system applications [44,45]. Therefore, integrating services provided by IoT devices is necessary. Energy consumption is a critical concern, particularly because most IoT smart devices rely on batteries for power [46,47]. Combining IoT and composite services is essential to ensuring battery longevity and meeting user requirements while optimizing energy consumption. In service composition, replacing energy-intensive intelligent devices with more efficient alternatives that offer the same functionality and QoS level is essential. Selecting the best web services to create an optimal composite service is a challenging NP-complete problem [48,49]. A fuzzy-based hybrid algorithm combines ACO and ABC methods to address this. This hybrid approach evaluates QoS parameter values and energy consumption to achieve an optimal solution for IoT service composition. The proposed algorithm models IoT service composition as a multi-objective optimization problem with the primary goal of optimizing QoS parameters for the composite service. To narrow down the solution search domain, candidate services are pre-selected to meet users’ QoS requirements and determine the optimal composite service. The service composition problem is then transformed into finding an optimal path with specific QoS requirements within a directed acyclic graph, representing possible service connections and interactions. To find the best solution for the service composition problem, the hybrid algorithm combines the strengths of ACO and ABC. These two algorithms provide different approaches for solving similar problems, and the hybrid approach aims to leverage their advantages to achieve an optimal solution. The optimization process focuses on simultaneously reducing energy consumption and optimizing QoS parameters. The primary objective is twofold: first, to minimize energy consumption by reducing the resources utilized during the execution of composed services; and second, to optimize QoS parameters such as reliability, response time, and other performance metrics. By addressing both aspects, the algorithm seeks to create efficient and high-performing composite services for IoT applications. The optimization process of the developed IoT service composition methods takes into account both energy consumption and QoS parameters simultaneously, ensuring an efficient and high-quality composition of services.
The main contributions and novelties of the developed IoT service composition methods can be summarized as follows:
  • Integration of cloud, fog, and IoT: The proposed methods aim to integrate cloud computing, fog computing, and IoT technologies to leverage their respective advantages. This integration enhances the virtual resource infrastructure and available services. By combining these technologies, IoT devices can benefit from the unlimited resources and capabilities of the cloud while reducing latency and processing data at the edge networks through fog computing. The novelty lies in combining these technologies to create a more efficient and scalable service composition approach.
  • Fuzzy-based hybrid algorithm: The developed IoT service composition methods employ a fuzzy-based hybrid algorithm, which is a novel approach in the field. This algorithm combines the ACO and ABC algorithms. The methods can handle the uncertainty and imprecision inherent in IoT environments by integrating fuzzy logic into the algorithm. The fuzzy-based hybrid algorithm considers multiple QoS parameters simultaneously, leading to improved optimization and selection of services.
The organization of the rest of the paper is as follows: Section 2 provides an explanation of related works in the field. In Section 3, the proposed method is presented. Section 4 covers the experiment results. Finally, Section 5 discusses the conclusion and future work.

2. Related Work

In this section, we review some recent studies investigating service composition mechanisms in the context of IoT.
Asghari, Rahmani [41] proposed a privacy-aware service composition technique. They employed a hybrid evolutionary algorithm and an IoT-based conceptual model to optimize various Quality of Service (QoS) parameters in the service composition process. The hybrid algorithm, SFLA-GA, combines a Genetic Algorithm (GA) and a Shuffled Frog Leaping Algorithm (SFLA). The fitness value, representing the aggregation of different QoS factors, is optimized using this method. Simulation results showed that SFLA-GA outperformed other contemporary algorithms. One of the strengths of this method is its focus on privacy awareness in cloud-IoT service composition as well as QoS optimization. However, it lacks consideration for energy, security, and lightweight encryption.
Sefati and Navimipour [50] proposed an approach to optimize Quality of Service (QoS) for service composition in the IoT. They combined an Ant Colony Optimization (ACO) algorithm with a hidden Markov model to address the service composition issue. The method employed Markov clustering based on differentiating operators, which were repeatedly applied to the network to identify clusters. This process involves increasing edge values within clusters while decreasing edge values between clusters. These operators are faster, simpler, and more natural for clustering, making them suitable for various applications. The evaluation of QoS in this research was accomplished via the ACO algorithms, which helped to find an appropriate path. The primary focus of this approach was on achieving high reliability and availability. However, energy efficiency was not a major consideration in their work.
Souri and Ghobaei-Arani [51] proposed a service composition method specifically designed for cloud manufacturing and Industrial IoT applications. The significance of this approach lies in its applicability to industrial settings. The method utilized a formal verification strategy based on a Labeled Transition System (LTS) to evaluate the proposed solution. Moreover, the Whale Optimization Algorithm (WOA) was employed to enhance Quality of Service (QoS) for cloud services. The verification process focused on ensuring reachability factors, deadlock-free conditions, verification time, and memory usage based on different cloud providers and various Linear Temporal Logic (LTL) properties. Despite the achievements in formal verification and QoS improvement using WOA, the proposed algorithm had some drawbacks. The WOA exhibited slow convergence, a tendency towards local optima, and lower accuracy compared to other optimization algorithms. Additionally, the energy consumption aspect was not adequately addressed in their approach. This service composition method for cloud manufacturing and IoT applications is notable for its industrial relevance and formal verification approach. However, improvements are needed to address the WOA’s limitations and include energy consumption considerations in the optimization process.
Moreover, Chai, Du [46] presented an algorithm for IoT service composition that aimed to achieve better QoS while considering energy efficiency. The proposed algorithm combined QoS-aware service composition with a fast energy-centered algorithm, FSCA-EQ, utilizing a hierarchical optimization method. First, the algorithm selected candidate services with better QoS using a Customer Relationship Management (CRM) approach. Subsequently, the relative dominance concept was employed to determine the highest-quality service from the pool of candidate services. The results demonstrated that the proposed method achieved better energy consumption, selection time, and overall optimality. However, a limitation of this approach was that it did not account for the dynamic characteristics of the IoT. As a consequence, the service selection process for energy efficiency needed to be rerun frequently, resulting in a high computational cost. The proposed algorithm combined QoS-awareness and energy optimization effectively. Nevertheless, the lack of consideration for the IoT’s dynamic nature led to increased computational expenses due to frequent service selection reruns.
Ibrahim, Rashid [52] proposed an energy-aware mechanism to enhance mobile cloud service composition. The approach utilized a hybrid algorithm based on the Shuffled Frog Leaping Algorithm (SFLA) and Genetic Algorithm (GA), called SFGA, to optimize service composition based on multiple quality measurement parameters: cost, energy, and response time. By employing the SFGA algorithm, service selection was performed faster, and the overall service composition process was carried out more effectively regarding service cost and response time. The proposed method outperformed existing approaches, increasing the likelihood of service composition with minimal reaction time, energy consumption, and cost for mobile cloud components, as evidenced by testing results. However, it is worth noting that this approach did not consider other important IoT parameters, such as reliability and availability. While the method excelled in energy-aware service composition, it did not address other critical aspects that are essential in IoT applications.
Jian, Li [53] proposed a strategy for optimizing QoS-based service composition in edge computing. They combined Multi-Objective Particle Swarm Optimization (MPSO) and the Bird Swarm Algorithm (BSA) to enrich the search information throughout the optimization process and avoid getting trapped in local optima. The results demonstrated that their proposed method outperformed other papers considered in the research in terms of providing a better solution for achieving the global optimal QoS value for edge services. The algorithm ensured high reliability and low execution time, making it a strong choice for QoS-based service composition in edge computing applications. However, it is important to note that the algorithm did not consider energy consumption and availability during optimization. While the proposed method focused on QoS optimization, it did not address energy efficiency and service availability, which are crucial considerations for edge computing and IoT applications.
Guzel and Ozdemir [45] proposed a multi-objective IoT service composition framework designed for fog-based IoT environments. This framework aims to generate service composition strategies that consider Quality of Service (QoS), energy consumption, and fairness. The task is treated as a multi-objective optimization problem to obtain effective composition techniques for IoT applications. A generic QoS model was developed and integrated into the framework to handle the diversity and ever-changing characteristics of the IoT domain. The application requests were divided into time windows, and each window was optimized using the defined optimization model. The optimization method focused on reducing energy consumption, minimizing the repeated use of the same IoT services, and minimizing the number of broken Service Level Agreements (SLAs). The test findings showed a trade-off between energy consumption and fairness goals. The architecture tended to prioritize IoT services with low energy consumption, driven by the energy consumption goal. However, this approach did not consider scalability, which is a crucial aspect for IoT systems that may need to accommodate a growing number of devices and users. In summary, Guzel and Ozdemir’s multi-objective IoT service composition framework for fog-based IoT environments provides composition strategies considering QoS, energy consumption, and fairness. The use of a generic QoS model allows adaptability to diverse IoT characteristics. However, the framework does not address scalability, which could be a limitation in scenarios with increasing IoT device and user numbers.
Naseri and Navimipour [54] introduced a hybrid method that combines an agent-based approach with the Particle Swarm Optimization (PSO) algorithm for efficient service composition in cloud computing. The method identifies relevant Quality of Service (QoS) parameters and selects the best services based on a fitness function. The results demonstrated the effectiveness of this approach in reducing resource usage and waiting time and optimizing resource allocation via the efficient composition of independent services into composite services. This can lead to cost savings and improved resource utilization. The hybrid PSO algorithm showcased promising results compared to other algorithms, suggesting its efficiency in finding suitable composite services. This can ultimately enhance performance and service quality in cloud computing environments. However, it is worth noting that the agent-based method used for service composition might lack a clear mechanism for combining resources. The PSO algorithm was incorporated to address this limitation, which may introduce additional complexity to the overall system. The proposed hybrid method for cloud service composition effectively combines an agent-based approach with the PSO algorithm to optimize resource usage and waiting time. Although it enhances the composition process, integrating the PSO algorithm may add complexity to the system. The proposed method demonstrates promising results in finding the right composite services for cloud computing environments.
Chen, Wang [55] introduced an optimal objective for web service composition selection, incorporating the concept of QoS satisfaction degree. The authors proposed the use of a genetic algorithm to solve this problem and provided test results that demonstrated the feasibility and effectiveness of their proposed solution. By considering the subjective feelings of users, the proposed model aimed to enhance users’ satisfaction and experience during web service composition selection. The utilization of a genetic algorithm in their approach offers a robust and efficient method to address the multi-objective optimization problem, potentially leading to improved solutions. Their research primarily focused on QoS satisfaction as the main objective for web service composition selection. It is important to note that the effectiveness and feasibility of the proposed solution may vary depending on the specific context and the range of services available. Different scenarios and diverse sets of web services may influence the results.
Ullah, Ali [56] proposed an energy optimization strategy for the smart grid integrated with renewable energy sources to minimize operational costs and carbon emissions. To handle the uncertainty of solar and wind energy sources, probability density functions are used to predict their behavior. Demand response programs involving residential, commercial, and industrial consumers were introduced with incentive-based payment packages to optimize energy consumption. The optimization model employed a Multi-Objective Genetic Algorithm (MOGA) to solve the energy optimization problem. The simulations compared the proposed MOGA-based model with an existing one that utilized the Multi-Objective Particle Swarm Optimization algorithm, showing better performance in reducing operational costs and carbon emissions. The proposed strategy effectively integrated solar and wind energy sources into the smart grid, enabling better utilization of renewable energy and reducing dependence on fossil fuels. The use of probability density functions for predicting the behavior of solar and wind energy sources helped handle the inherent uncertainty in renewable energy generation, leading to more accurate and reliable optimization results. The proposed energy optimization strategy based on MOGA demonstrates the potential to optimize smart grids’ operational costs and carbon emissions when integrated with renewable energy sources. Addressing computational complexity and conducting real-world validation will be essential for practical deployment and ensuring the model’s effectiveness under diverse operating conditions.
Ullah, Khan [57] proposed a new Demand-Side Management (DSM) strategy for the day-ahead scheduling problem in smart grids with high wind energy integration. The strategy aimed to optimize a tri-objective problem by minimizing operating costs, pollution emissions, and load curtailment costs while ensuring coordination between wind turbine output power and demand. The model used the Monte Carlo simulation for wind energy prediction to account for the uncertainty of wind energy. The DSM strategy involved real-time pricing and incentives, forming a hybrid demand response program (H-DRP). The optimization technique used to solve the tri-objective smart grid scheduling problem was a multi-objective genetic algorithm that incorporated a decision-making mechanism to find the optimal solution. The simulation results demonstrated the successful optimization of the objective functions using the proposed model. The integrated DSM strategy, distributed energy resources, and H-DRPs lead to environmental benefits by minimizing pollution emissions and economic benefits by reducing operating costs.
Ali, Ullah [58] introduced the demand-side management (DSM) strategy in a smart grid to optimize energy management by involving distributed energy resources and considering different types of consumers. The day-ahead scheduling problem was solved using a multi-objective wind-driven optimization algorithm to optimize operational cost, pollution emissions, load curtailment cost, and coordination between wind energy generation and shiftable loads. The model also considered consumer behavior and the probabilistic nature of wind energy forecasting using probability distribution functions. Simulation results showed that the proposed model effectively reduced operational costs and pollution emissions. Through day-ahead scheduling with multi-objective optimization, the DSM strategy enables efficient energy management by simultaneously considering various objectives. The model’s implementation reduced operational costs for the utility grid, particularly when involving distributed energy resources such as wind turbines, diesel generators, and energy storage systems. Including multi-objective optimization and probabilistic modeling makes the proposed approach more complex to implement and understand, potentially requiring specialized expertise. Overall, the advantages of the proposed DSM-based multi-objective day-ahead scheduling model outweighed the potential disadvantages. However, further research, testing, and real-world implementation are necessary to fully validate its applicability and performance in different smart grid scenarios.
Hafeez, Wadud [59] focused on meeting the increasing electrical energy demand in IoT-enabled residential buildings and proposed an energy management strategy using the Wind-driven Bacterial Foraging Algorithm (WBFA). The strategy aimed to optimize the power usage of smart appliances and participate in demand response (DR) programs to manage energy consumption efficiently. Simulations demonstrated that the WBFA-based strategy outperformed benchmark algorithms regarding energy consumption, cost of electricity, peak-to-average ratio, and user comfort. The study concluded that employing price-based DR programs, particularly the Time-of-Use Price-based DR program, yields favorable outcomes for consumers and Distribution System Operators. Future research directions include extending energy management to coordinate with power grids, renewable energy sources, energy storage, and electric vehicles (EVs) for prosumers (consumers who generate and sell energy). The study suggested using machine learning to explore fog and cloud-based energy management, hybrid generation systems, and intelligent forecasting, additionally proposing innovative energy management models for cloud computing and integrating time- and power-flexible appliances to provide economical and sustainable solutions. The WBFA-based strategy optimized the power usage of smart appliances, leading to increased energy efficiency and effective energy utilization in IoT-enabled residential buildings. By participating in demand response (DR) programs and scheduling power usage during off-peak hours, consumers can benefit from lower electricity costs, saving money on their utility bills. The proposed WBFA-based energy management strategy offered several advantages, including energy efficiency, cost reduction, and peak load management. However, there are challenges, such as complexity, compatibility issues, and potential reliability concerns. Careful planning, education, and addressing technological limitations are essential to maximizing the benefits and overcoming the disadvantages of this approach.
A summary of the related works is presented in Table 1.

3. Proposed Method

This section outlines the proposed method for solving the service composition problem in the context of IoT. Section 3.1 presents the system model; Section 3.2 is about the service composition model; Section 3.3 is about the energy model; and Section 3.4 is about fuzzification. In Section 3.5, a hybrid algorithm is presented.

3.1. System Model

This section introduces the proposed composition strategy for a fog-/cloud-based IoT environment, where the architecture combines the advantages of fog and cloud computing to create a more efficient data handling system. The architecture is designed such that fog computing operates at the network’s edge, enabling real-time data processing and analysis. In contrast, cloud computing is utilized for storing and analyzing large volumes of data over an extended period. The fog layer, comprising small, low-power devices located near the data source, is responsible for real-time data processing and analysis. These devices can be programmed to take specific actions based on the results of their analysis. On the other hand, the cloud layer consists of larger, more powerful servers typically situated in centralized data centers, handling more complex data processing tasks such as machine learning and big data analytics. The combination of fog and cloud computing offers various benefits, including reduced latency and improved response times through real-time processing at the fog layer and the ability to handle more resource-intensive tasks using the cloud layer’s storage and processing capabilities. This architecture enhances data processing and analysis, improving organizations’ performance, efficiency, and scalability. Moreover, it also leads to cost reduction and enhanced security. The proposed technique adopts a three-tier architecture comprising IoT, fog, and cloud layers (Figure 1) [60,61]. The IoT layer encompasses sensors and smart nodes, like computers and cell phones, forming the Internet of Things layer. The fog layer between the cloud and the IoT smart nodes contains fog colonies. Sensors at the lower layer collect diverse information and send data packets to the fog layer. Here, fog nodes intelligently accept and process all requests. Depending on whether they rely on real-time applications, queries are either handled within the fog layer or sent to the top layer, the cloud layer. By adopting this three-tier architecture, the proposed technique aims to optimize data processing and analysis within the IoT environment, promoting efficient decision-making and intelligent service composition.

3.2. Service Composition Model

In the context of the IoT, IoT nodes serve as encapsulated IoT services and are categorized into specific service classes based on their functionalities [62]. The services in the IoT service composition fall into two distinct categories: Concrete services (Cs) and Abstract services (As) [46]. As is also called an abstract service class. Cs, or atomic services, represent invocable services provided by IoT components. Cs can be described by two attributes: non-functional features and functional characteristics. Functional attributes pertain to the specific functions offered by a service, while non-functional attributes encompass quality-of-service (QoS) aspects such as response time, reliability, cost, and energy profiles for services operating on battery-powered devices, among others. Figure 2 illustrates the fundamental process of IoT service composition [46]. In a composite service, atomic services can be interconnected using various structural patterns. There are six types of composition structure patterns that a single composite service can comprise: sequential, AND split (Fork), XOR split (Conditional), Loop, AND join (Merge), and XOR join (Trigger) [63,64]. Here, only the sequential model is considered. However, it is worth noting that other models can be simplified or transformed into sequential models using existing approaches, as mentioned in [65].
In the IoT, each object has the capability to offer multiple specific services. Some IoT services may provide the same functionality but exhibit different Quality of Service (QoS) performance levels. Therefore, evaluating QoS parameters becomes essential to differentiate between services. In this paper, service composition is approached at a high level, considering the sequence of services as a workflow. QoS in the context of IoT services encompasses various non-functional characteristics of an application, such as throughput, response time, availability, security, and reliability. Service providers may offer some QoS values while the users determine others. QoS is user-dependent, meaning different users may have varying requirements for attributes like availability, response time, reliability, resource costs, packet loss rate, etc. For the assessment of services, four QoS properties have been selected in this paper:
(1)
Availability: This represents the percentage of time a service is accessible during a specific time interval.
(2)
Reliability: Refers to the percentage of a service’s capability to perform correctly without errors or failures.
(3)
Cost: This denotes the price a user pays to obtain the required service.
(4)
Energy: This represents the energy a service consumes during its operation.
As Table 2 outlines, the paper employs specific QoS aggregation functions for each attribute to evaluate the proposed dynamic service composition scheme. By applying these QoS values, the scheme can effectively determine the optimal service composition based on users’ requirements and preferences, taking into account factors like availability, reliability, cost, and energy consumption.
Since there is a major distinction in the QoS index range and estimation unit, combining diverse QoS indexes directly when the objective function is calculated is impossible. In order to map the four aggregated QoS right into a global value, the Simple Additive Weighting (SAW) approach is used. Given that the minimization objective function is considered in this paper, the positive and negative normalization formulations are shown in (1) and (2), respectively [54]. In the two equations below, the ith attribute value of the concrete service is represented by Cs.Qi. The highest and the lowest values of the ith attribute among all the concrete services in the service candidate set are represented by Q m a x i and Q m i n i respectively.
N C s . Q i = { Q m a x i c s . Q i Q m a x i Q m i n i 1   Q m a x i Q m i n i   Q m a x i = Q m i n i
N C s . Q i = { c s . Q i Q m i n i   Q m a x i Q m i n i 1   Q m a x i Q m i n i   Q m a x i = Q m i n i
The fitness function influences the algorithm’s convergence and the search for an optimal solution. The fitness of an individual solution is calculated using the formula below [66]:
Fitness = i = 1 4 W i Q i  
Wi indicates the weight value of the ith QoS attribute of one atomic service, 0 W 1 , i = 1 4 W i = 1 . Qi indicates the ith QoS aggregation attribute value of the solution.

3.3. Energy Model

The amount of energy consumed in IoT service composition greatly affects devices hosting the candidate service. Each candidate service must possess a parameter representing its energy consumption. This parameter allows the composer to select services with a better energy-saving effect. The energy profile of concrete service EproFile(Csij) is a composition of the following variables [46]:
The autonomy of the service SA(Csij) is defined as the energy level of the device that hosts this service:
SA(Csij) = CE(Csij) − ET(Csij)
In this equation, CE(Csij) describes the current energy level of the battery-powered device that hosts service Csij. ET(Csij) means the energy threshold of the battery-powered device that can host service Csij.
The energy consumption EC(Csij) for running a concrete service Csij is constant and can be calculated according to the equation below:
EC(Csij) = ECR(Csij) × RT(Csij)
In this equation, RT(Csij) means the average running time of service Csij, and ECR(Csij) means the energy consumption rate.
Therefore, the following equation is proposed for the energy profile EproFile(Csij) in the service Csij.
E P r o F i ( C s i j ) = E C ( C s i j ) S A ( C s i j )
A low amount of energy profile means that the IoT device hosting the service Csij has a relatively long service life. Consequently, the following equation is proposed for the energy profile of composite services CEProFile(x):
C E P r o F i ( x ) = i = 1 n E P r o F i l e ( x i )
In this equation, xi is the ith component in the composite service selected from the abstract service class.

3.4. Fuzzification

Many industries and scholars utilize fuzzy logic since it can operate in artificial systems when automated decision-making is required [67]. Mamdani and Assilian [68] have introduced the fuzzy logic controller, which is currently considered one of the most critical applications of fuzzy set theory [69]. Some of its relevant characteristics are fuzzy rules, linguistic variables, and fuzzy sets. A fuzzy set is a group of objects characterized by a membership function ranging between 0 and 1 [70]. In this process, the variable type utilized is words rather than numbers called linguistic variables (e.g., fast, medium, and slow) [71]. The values employed to describe linguistic variables are called terms, and their collection is called a term set. Fuzzy rules (IF-THEN) are utilized to evaluate the situations. Following the fuzzification phase, crisp inputs are converted to linguistic variables, the fuzzy rules assess them, and the outputs are created. The linguistic values from the outputs are converted to crisp values during the defuzzification stage. The fuzzy inference engine proposed in this paper has one output and four inputs. All inputs are described according to the same membership functions in Figure 3. These inputs are normalized availability, reliability, cost, and energy. In order to define the high and low terms, trapezoidal-shaped functions are utilized, whereas triangular-shaped functions are employed for the medium term, as can be seen in Figure 3. The Mamdani inference system with a centroid of area defuzzification strategy is employed for our fuzzy engine. In this strategy, the pheromone for the ant is determined by the output value of the fuzzy inference system (Figure 4). IF-THEN fuzzy rules employ fuzzy sets to create output in the inference system. A fuzzy system can play a significant role in service composition in the IoT by providing intelligent decision-making capabilities. Fuzzy systems in service composition in the IoT enable handling uncertainty, incorporate context-awareness, support decision-making processes, and facilitate service matching and optimization. By leveraging fuzzy logic techniques, IoT systems can dynamically and intelligently compose services to meet specific requirements and adapt to changing conditions flexibly and robustly. The advantages of using a fuzzy-based hybrid algorithm that combines the ABC and ACO algorithms in service composition in IoT include handling uncertainty, flexible fitness evaluation, dynamic parameter tuning, context-aware decision-making, improved optimization, and enhanced performance and scalability. These advantages enable the algorithm to generate more robust, adaptive, and high-quality service compositions, aligning them with IoT environments’ diverse requirements and dynamic nature. Some advantages of using a fuzzy-based hybrid algorithm that combines the ABC and ACO algorithms for service composition in IoT:
  • Handling Uncertainty: IoT environments often involve uncertain and imprecise information due to varying data quality, incomplete knowledge, and ambiguous conditions. Fuzzy logic, employed in the hybrid algorithm, allows for representing and reasoning with imprecise and uncertain data. It enables the algorithm to handle uncertainty in evaluating service quality attributes, decision-making, and optimization, resulting in more robust and adaptable service compositions.
  • Flexible Fitness Evaluation: The fuzzy-based hybrid algorithm allows flexible fitness evaluation by considering multiple quality attributes simultaneously. The fuzzy system, integrated into the hybrid algorithm, utilizes membership functions and fuzzy rules to evaluate the suitability and relevance of IoT services based on attributes such as availability, reliability, cost, and energy. This comprehensive evaluation leads to more accurate fitness assessments by considering various factors relevant to service composition in the IoT.
  • Dynamic Parameter Tuning: The hybrid algorithm combines the strengths of the ABC and ACO algorithms. The fuzzy system enhances this combination by facilitating dynamic parameter tuning based on the problem context and performance feedback. Fuzzy rules are employed to adjust algorithm parameters such as pheromone evaporation rate, colony size, and exploration-exploitation balance. This adaptability enables the algorithm to navigate the search space effectively and optimize the service composition process.
  • Context-Aware Decision-Making: The fuzzy system integrated into the hybrid algorithm enables context-aware decision-making. The algorithm can adapt its decision-making process by considering contextual factors such as user preferences, environmental conditions, and resource constraints. Fuzzy inference mechanisms assess the importance and relevance of different decision criteria, allowing for more intelligent and personalized service composition in IoT scenarios.
  • Improved Optimization: The hybrid algorithm, with the fuzzy system, provides enhanced optimization capabilities. Fuzzy optimization techniques can be employed to refine and optimize the service compositions generated by the algorithm. These techniques explore different combinations of services, adjust parameters, and optimize resource allocations to achieve near-optimal solutions. The hybrid algorithm can effectively balance trade-offs, handle constraints, and consider user preferences during optimization by leveraging fuzzy logic.
  • Enhanced Performance and Scalability: The combination of the ABC and ACO algorithms, empowered by the fuzzy system, can lead to improved performance and scalability in service composition for IoT. The fuzzy-based hybrid algorithm allows for efficient exploration of the search space, exploitation of the best solutions, and dynamic adaptation to changing conditions. It can handle complex and large-scale IoT environments effectively, providing more efficient and scalable service compositions.
Figure 3. Input fuzzy sets (availability, reliability, cost, and energy).
Figure 3. Input fuzzy sets (availability, reliability, cost, and energy).
Sensors 23 07233 g003
Figure 4. Output fuzzy sets (pheromone).
Figure 4. Output fuzzy sets (pheromone).
Sensors 23 07233 g004

3.5. Hybrid Algorithm

In 2005, Abd-Alsabour and Randall [72] introduced the so-called ABC, an intelligent swarm algorithm. There are three types of bees in the colony. They are Onlooker Bees (OBees), Employed Bees (EBees), and scout bees. At first, the food source positions are created (N). Each food source is devoted to an employed bee. Having exploited the food sources, EBees send the nectar amount information to OBees. Subsequently, OBees initiate the exploitation of food sources, giving priority to those with higher quality. When a source is depleted, scouts start to search for a new food source. However, the nectar information is, in fact, the quality of the available food source solution. The number of food sources and the population of EBees and OBees are equal.
In the early 1990s, Dorigo and his colleagues proposed ACO [73]. This algorithm consists of real ants’ coordinated behavior and their self-organizing principles to find a solution for complex combinatorial optimization problems. Ants are considered social insects that can find the shortest route between the nest and the food source through pheromone updates, evaporation, and path construction. The ABC algorithm and the ACO algorithm are both metaheuristic optimization algorithms that can be used to solve a wide range of complex problems. Here are some disadvantages of both algorithms:
  • Slow convergence: ABC and ACO algorithms can converge slowly, especially when dealing with complex problems with a large search space. This can result in longer optimization times and may be unacceptable in some applications.
  • Premature convergence: Both algorithms can suffer from premature convergence, where the algorithm gets stuck in a local optimum and cannot find the global optimum. This can result in suboptimal solutions and may require additional optimization runs to obtain better solutions.
  • Parameter sensitivity: The ABC and ACO algorithms have several parameters that need to be set, and their values can significantly affect the algorithm’s performance. Setting these parameters can be challenging, and incorrect values can lead to poor optimization results.
  • Inability to handle constraints: Both algorithms are not well-suited for problems with constraints, as they do not provide an explicit mechanism for handling them. This can result in infeasible solutions, which may not be useful in some applications.
  • Limited memory: Both algorithms do not store the previous search history, which can limit their ability to explore the search space efficiently. This can result in inefficient searches and longer optimization times.
Hybrid algorithms combine two or more optimization techniques to enhance the algorithm’s overall performance. ACO and ABC are two optimization techniques successfully used in solving various optimization problems. Here are some advantages of using a hybrid algorithm:
  • Improved global search: The hybrid approach can combine the strengths of both the ACO and ABC algorithms to improve global search. ACO is good at exploring the search space, while ABC exploits good solutions. By combining the two approaches, the hybrid algorithm can better balance exploration and exploitation, resulting in better optimization results.
  • Faster convergence: The hybrid algorithm can converge faster than the individual algorithms since it can take advantage of the strengths of both algorithms. This can result in shorter optimization times, which can be important in many applications.
  • Robustness: The hybrid algorithm can be more robust than the individual algorithms since it can handle a wider range of optimization problems. This is because the hybrid algorithm can adapt to different problem characteristics, taking advantage of the strengths of both the ACO and ABC algorithms.
  • Better handling of constraints: The hybrid algorithm can handle constraints better than individual algorithms since ACO has a mechanism for handling constraints. This can result in more feasible solutions, which can be important in many applications.
  • Flexibility: The hybrid algorithm can be easily customized to suit different optimization problems by adjusting the parameters of the individual algorithms. This can make it a more versatile approach for solving different optimization problems.
Due to too many intensifications by the OBees, ABC’s convergence is accompanied by a delay, and on the other hand, ACO during intensification has stagnation. Ants create the initial set of solutions, and the routes are handed over to bees for exploitation to tackle these issues in the proposed AC-ABC hybrid algorithm. The advantages of the ACO and ABC algorithms are hybridized and synergized in the proposed algorithm. In the proposed algorithm, ants create paths that combine optimal services. These services are, in fact, the initial food sources for the bee colony. When sources are given to ABC, the EBees search the services, their neighborhoods, and the information sent to the OBees. The OBees tend to be the food source with higher quality (fitness), so solutions with higher fitness will have more chances of being selected by the OBees. Then the scout bees replace the exhausted food sources with new, random ones. Bee-optimized food sources are given to ants as their path to updating pheromones based on a fuzzy inference system. In the next iteration, ants will tend to follow paths with more pheromones. Finally, the algorithm will halt when it reaches a predetermined number of iterations. The comprehensive explanation of the suggested algorithm and the equations included are considered below:
Step 1: Initialize the algorithm parameters. In this step, the necessary parameters for the algorithm are set, such as the number of ants, the number of iterations, the evaporation rate of pheromones, and any other parameters specific to the problem being solved (Number of iterations: 100, number of ants: 20, α = 0.6, β = 0.4, evaporation rate of pheromones: 0.2).
Step 2: Normalize QoS Values. The QoS values, which represent the performance attributes of candidate services, are normalized to a common scale. This step ensures that the QoS values can be compared and combined effectively.
Step 3: The Qscore is calculated for each of the candidate services for each task [66]. Qscore is a measure of the quality of a candidate service based on its QoS attributes. The Qscore is calculated using a weighted sum of the QoS attribute values, multiplying each attribute by a corresponding weight. The weights determine the relative importance of each attribute.
Q score = i = 1 4 W i Q i
Wi denotes the weight value of the ith QoS attribute of one atomic service, 0 W i   1 , i = 1 4 W i = 1 . Qi denotes the ith QoS attribute value. Four in (8) is considered as the number of the parameters that should be optimized.
Step 4: The probability of selecting ij path by ant k is calculated due to the pheromone and service’s score [74]. The probability of selecting a particular path (combination of services) by an ant is calculated based on the pheromone level on the path and the Qscore of the services in the path. The pheromone level determines the attractiveness of the path, while the Qscore reflects the quality of the services. The influence of pheromones and Qscore is controlled by positive parameters, alpha (α) and beta (β), respectively.
P i j k = { τ i j α   Q s c o r e   i j β m ϵ N i k   τ i m α   Q s c o r e   i m β   j ϵ N i k 0   o t h e r w i s e
where α and β are positive numbers to determine the influence of pheromones and quality of the candidate services, respectively. τ i j is the amount of pheromone on path ij. N i k is the set of possible neighborhoods that ant k could pass through them.
Step 5: The probability values of services are entered into a roulette wheel selection, and a service is selected for each task. The probability values calculated in the previous step are used to perform roulette wheel selection. Each ant selects a service for each task based on these probabilities. This selection process ensures that services with higher probabilities (higher pheromones and Qscore) are more likely to be selected.
Step 6: The paths created by the ants are given to the EBees as the initial solutions. The paths created by the ants, which represent solutions, are passed to the EBees as their initial solutions. The EBees will further explore and improve these solutions.
Step 7: EBees receive solutions and start to look for a neighboring food source by “neighborhood search” or “local search” based on Equation (10) [75,76]. The EBees started to carry out a local search to improve the solutions they received. They perform a neighborhood search or local search for each task. This search involves evaluating the QoS parameters of the selected service and creating a virtual service based on these parameters. The most similar service to the virtual service in the same task is found using the Euclidean distance.
Q i j = Q i j + ϕ ( Q i j Q k j )
φ is a random number between [0, 1]. Q is one of the QoS parameters in the selected service i in task j. K is a randomly chosen number k ∈ {1, 2,..., n} (I ≠ k). N is the total number of services in task j. For instance, the reliability component R i j is calculated by:
R i j = R i j + ϕ ( R i j R k j )
After calculating all four parameters in this way, we get a QoS vector ( A i j , R i j , C i j , E i j ). These parameters represent a virtual service, and the most similar service to the virtual service in the same task should be found. In order to find the most similar service, we use Euclidean distance, as in (12), between the virtual service V i j and candidate services S i j   in the same task. Our answer is the service with the smallest distance with the virtual service. This method is called the Approximate-Mapping local search method [77].
D ( S i j   , V i j ) = ( A i j A i j ) 2 + ( R i j R i j ) 2 +   ( C i j C i j ) 2 + ( E i j E i j ) 2
Finally, the EBees compare the fitness of the original service against the obtained service and choose the better service for the next time’s local search.
Step 8: In this step, OBees are devoted to solutions for the local search based on probabilities given from solutions’ fitness. Solutions with better fitness have more chances of being selected. The probabilities are calculated by the following equation and are given to the roulette wheel to select solutions [75]:
P i = f i t i n = 1 S N f i t n
f i t i   is equal to the fitness of ith solution I ∈ {1, 2, …, SN} chosen by EBees. SN is the total number of EBees in the population.
OBees carry out a local search on the selected solutions. The local search is carried out like the EBees local search in Step 7. If the fitness of the new solution is better than that of the old solution, the new one is replaced with the old one.
Step 9: If the fitness of a path cannot improve after a certain number, this path is deleted, and scout bees create a new path.
Step 10: The solution returns from the bee colony to the ant colony, and the pheromone is updated based on the fuzzy module; evaporation updates are carried out using the (14) [78]. After the EBees and OBees have performed their local searches, the solutions are returned to the ant colony. In this step, the pheromone levels on the paths are updated based on a fuzzy inference system. This system takes into account the fitness of the solutions and adjusts the pheromone levels accordingly. Additionally, evaporation updates are performed to decrease pheromone levels gradually.
τ i j   ( t + 1 )   ( 1 ρ ) × τ i j ( t )
0 <  ρ ≤ 1 is the evaporation rate of the pheromone.
Step 11: Go back to step 3 until the predetermined number of runs is attained. The pseudo-code (Algorithm 1) of the method and flowchart (Figure 5) is illustrated as follows:
Algorithm 1: Proposed Method:
Initialized the algorithm’s parameters
While (the termination condition is reached)
For ant = 1: population
  Lunch an ant to construct a solution
   For task = 1: the number of tasks
    Calculation of the probability of each service
     Selecting a service by a roulette wheel
   End for
 End for
 The paths are given to EBees as initial solutions
While (the termination condition is reached)
 EBees start to carry out the local search for solutions
 Onlooker Bees select solutions based on their probability of local search
 Scout Bees create a new solution instead of the solution that has not been improved
End while
 EBees solution returns to ant colony optimization
 Pheromones are updated based on the fuzzy system
 Evaporation update is carried out
End while

4. Experiment Results

This section describes the simulation tools, the data set, and the results obtained.

4.1. Simulation Tools and Dataset

The simulation is carried out utilizing a CPU core i7 2.4 GHz (4GByte RAM). The simulator program is Matlab R2017a. Matlab is used to simulate metaheuristic algorithms in many papers [46,79], and it is known as one of the best tools. Unfortunately, there are no multiple datasets available on the service composition in IoT domains, and the available datasets are confined to three datasets, QWS [80], WS-DREAM [81], and OWLS-Xplan [82], and datasets that are generated randomly. We considered the QWS dataset [83], similar to the work of some other scholars [41,84], to approve and validate our theory. The QWS dataset comprises a set of QWS measurements for 2507 service implementations. To tackle the issue of QoS value fluctuation during service runtime in dynamic IoT environments, QoS values are updated randomly after each service iteration by multiplying each QoS value with a random number [0.9, 1.1]. The energy model proposed in [85] can be studied to become acquainted with battery-operated objects’ energy consumption. This paper assumes that every device possesses a maximum battery charge (Cmax) and an initial charge (Cinitial). The amount of Cmax is 1500 mA.h, and Cinitial is randomly created in the range of 0.7 Cmax to 1.0 Cmax. Furthermore, if any device’s energy level drops below Cthroud (0.3 Cmax), the device will no longer provide any services and will not contribute to the composition process. In addition, a specific amount of power is consumed in every run, and this value is subtracted from the battery level of the device providing services.

4.2. Obtained Results

The three strategies presented in the articles [46,54,55]. are compared with our proposed method. Our method, a fuzzy-based hybrid algorithm with ACO-ABC, leverages fuzzy logic and optimization techniques to find an optimal service composition based on various QoS factors. Fuzzy logic enables handling uncertainty and imprecise information, while the ACO-ABC optimization approach aims to strike a balance between exploration and exploitation in the search space. This algorithm effectively considers multiple QoS factors simultaneously and finds a trade-off solution. In contrast, the FSCA-EQ approach [46] adopts a hierarchical optimization approach. It employs the compromise ratio method (CRM) to pre-select services that meet the user’s QoS requirements. The optimal service is then chosen based on relative dominance, considering energy profiles, QoS attributes, and user preferences. However, the FSCA-EQ approach for IoT service composition has some disadvantages, including:
  • Limited consideration of dynamic user demands: One of the drawbacks of the FSCA-EQ approach is its lack of explicit consideration for dynamic user demands. As user requirements change over time, the approach may not adapt effectively, potentially leading to suboptimal service composition.
  • Complexity of hierarchical optimization: The hierarchical optimization mechanism used in FSCA-EQ adds complexity to the service composition process. Managing and implementing this hierarchical approach can become challenging, especially when dealing with numerous IoT components and services.
  • Lack of flexibility in service selection: FSCA-EQ relies on the relative dominance concept for selecting the optimal service in the composite service. While it considers energy profiles, QoS attributes, and user preferences, this approach may limit the flexibility of service selection. It could overlook certain services that, although not dominant, could contribute to a more optimal composition.
  • Limited adaptation to changing IoT environments: The FSCA-EQ approach may face difficulties in adapting to dynamic changes in the IoT environment. As the IoT landscape evolves, new services may become available or existing ones may become obsolete. FSCA-EQ may not effectively handle such changes and might require manual adjustments or updates to its selection criteria.
  • Potential bias in service selection: The use of relative dominance and specific selection criteria in FSCA-EQ may introduce biases in the service composition process. Depending on how these criteria are defined and weighted, certain services or attributes may receive preferential treatment, potentially leading to imbalanced or suboptimal composite services.
Naseri and Navimipour [54] presented a new hybrid method for efficient service composition in cloud computing. The primary objective is to select suitable services based on QoS parameters while optimizing resource allocation. The proposed method combines an agent-based approach with the PSO algorithm to compose services and identify the best services based on a fitness function. However, some potential disadvantages of this approach for service composition in cloud computing could include:
  • Complexity and implementation challenges: Implementing a hybrid method that combines agent-based approaches with optimization algorithms like PSO can be complex [86]. Developing and deploying the algorithm effectively may require specialized expertise and resources.
  • Challenges in the distribution factor of importance: The method may face challenges when the distribution factor of importance is significant. In such cases, where the distribution of data centers is crucial, the method’s performance may be affected.
  • Lack of adaptability to dynamic environments: The proposed method may struggle to adapt to dynamic changes in the cloud environment, such as varying workloads, service availability, or QoS requirements. It may not possess real-time adaptation capabilities, limiting its responsiveness to dynamic service composition needs.
  • Sensitivity to fitness function and parameters: The effectiveness of the hybrid method heavily relies on the design and selection of the fitness function and parameter values. The algorithm’s performance may vary significantly depending on the chosen metrics and their weights, requiring careful tuning and experimentation.
One potential disadvantage of the method proposed by Chen, Wang [55] is its focus on a specific aspect of web service composition selection, primarily centered around QoS satisfaction degree as the primary objective. Some potential disadvantages of this approach for service composition include:
  • Limited scope: The method concentrates on optimizing QoS satisfaction degree as the primary objective, which might overlook other essential considerations, such as energy efficiency, cost-effectiveness, or security. Ignoring these factors could lead to suboptimal service compositions in scenarios where different aspects are equally critical.
  • Domain specificity: The effectiveness and feasibility of the proposed solution could vary depending on the specific context and the range of web services available. The genetic algorithm’s performance and adaptability might differ based on the characteristics and diversity of the available services, making it less suitable for certain application domains.
  • Algorithm parameter tuning: Genetic algorithms often require careful parameter tuning to achieve optimal results. The effectiveness of the proposed approach could be sensitive to the selection of genetic algorithm parameters, making it crucial to fine-tune these settings for each application scenario.
  • Computational complexity: Genetic algorithms can be computationally intensive, especially when dealing with a large number of web services and complex service composition scenarios. As the size of the search space increases, the time and resources required for optimization may become significant.
  • Limited multi-objective consideration: While the genetic algorithm is used for multi-objective optimization, the method primarily focuses on QoS satisfaction degree as the primary objective. It may not handle other competing objectives or trade-offs effectively, potentially limiting the range of service composition solutions [87,88].
  • Lack of real-world validation: Although the authors present test results indicating the feasibility and effectiveness of their solution, a comprehensive real-world validation might be necessary to assess the method’s performance and generalizability across diverse scenarios and user preferences.
The fuzzy-based hybrid algorithm with ABC and ACO offers several advantages over using PSO and GA for optimization tasks, especially in the context of service composition. Here are some key advantages:
  • Handling uncertainty: Fuzzy logic, which is incorporated into the fuzzy-based hybrid algorithm, allows for handling uncertainty and imprecise information. In service composition, where QoS parameters and user preferences may be ambiguous, fuzzy logic can provide better decision-making capabilities by considering linguistic variables and fuzzy rules. PSO and GA, on the other hand, do not inherently address uncertainty in the optimization process.
  • Comprehensive exploration and Exploitation: The hybrid nature of the fuzzy-based algorithm combines both ABC and ACO techniques. ACO is excellent at exploring the solution space to find optimal paths, while ABC excels at exploitation to refine the solutions found. This combination allows the algorithm to conduct a more comprehensive search, potentially leading to better-quality solutions compared to PSO and GA, which may focus more on exploration or exploitation alone.
  • Efficient convergence: The fuzzy-based hybrid algorithm’s ability to exploit the strengths of both ABC and ACO algorithms can result in more efficient convergence. By leveraging the synergistic effects of the two techniques, the algorithm may find optimal solutions more quickly, especially for complex optimization problems like service composition.
  • Consideration of multiple QoS factors: The fuzzy-based hybrid algorithm can effectively handle multiple QoS factors simultaneously, considering their interdependencies. This careful consideration of various QoS parameters ensures a more balanced and optimal composition of services. PSO and GA may face challenges in efficiently managing multiple objectives in the optimization process.
  • Better adaptability: The fuzzy-based hybrid algorithm with ABC and ACO may exhibit better adaptability to dynamic changes in the optimization landscape. As service requirements or constraints change, the algorithm can adjust its search strategy more effectively compared to PSO and GA, which may require more manual parameter tuning.
  • Reduced sensitivity to parameters: The fuzzy-based approach typically involves fewer parameters requiring tuning than PSO and GA. This reduces the algorithm’s sensitivity to parameter settings and simplifies optimization.
  • Increased robustness: The hybridization of ABC and ACO techniques adds robustness to the fuzzy-based algorithm. Combining two complementary approaches makes the algorithm less likely to get trapped in local optima, leading to more robust and globally optimal solutions.
Four important parameters of the quality of services, such as availability, reliability, energy, and cost, are considered. The results validate that the proposed method has great performance. We utilized 10, 30, 50, 70, and 100 service classes (each class is related to a task) with 50 candidate services to assess the quality of service in simulation tests. Figure 6 and Figure 7, respectively, represent the logarithm (base 10) of the results obtained for the real value of availability and reliability parameters. As can be seen, in all three parameters mentioned, the proposed method has achieved good results. In Figure 8, the figure for the cost parameter of the proposed approach is smaller than that of other algorithms. When the number of requests goes up, this parameter declines dramatically. The reason for this issue is rooted in the optimal selection of services in the proposed algorithm. In our research, two scenarios to evaluate the energy parameter are considered. In the first one (Figure 9), the proposed method, considering both the energy profile and QoS (cost, availability, and reliability) in the selection process, is compared with the same method considering either the energy profile or QoS. In Figure 10, which illustrates the second scenario, the energy parameter in the proposed method is compared with the mentioned algorithms [46,54,55]. As shown in Figure 9, the amount of the energy consumed by the method when both energy and QoS are considered is close to that of when energy is only considered, and it is just between 12% and 28% higher than that. In addition, the energy consumption of the proposed method when both energy and QoS are considered is from 42% to 68% lower than that when QoS is only considered.. Table 3 shows the improvement percentages of energy, cost, reliability, and availability in the proposed method (both QoS and energy are considered) compared with the same parameters in FSCA-EQ, GA, and PSO.

5. Conclusions and Future Work

This section discusses the accomplishments and summary of the paper, along with future investigation tips for IoT in various fields. The importance of IoT in pervasive computing is undeniable, as embedded devices are increasingly prevalent in all aspects of life, even interpersonal interactions. These devices generate data that need to be processed and combined to extract meaningful insights. This paper presents a novel fuzzy-based hybrid algorithm that combines an ACO algorithm and an ABC algorithm for IoT service composition. Initially, the service composition problem is transformed into finding an optimal path with specific QoS requirements in a directed acyclic graph. The hybrid algorithm effectively leverages the strengths of both the ACO and ABC algorithms to obtain the optimal solution. The analysis and experiments demonstrate that this hybrid approach outperforms the individual ACO and ABC algorithms in terms of efficiency and flexibility. Our algorithm efficiently combines IoT services based on their QoS, surpassing the ant colony and bee colony optimization algorithms, and effectively fulfills user requests. Additionally, the proposed method exhibits better reliability, availability, and cost-effectiveness. Given IoT deployments’ increasing complexity and scale, our research opens up new possibilities for QoS-aware service composition, leading to enhanced user experiences, improved system reliability, and sustainable IoT ecosystems.
However, some unresolved issues and intriguing areas still require further investigation. Presently, no mechanism addresses all aspects related to IoT service composition. While some methods consider QoS parameters such as reliability, response time, and convergence time, others ignore these critical factors. It is essential to evaluate additional quality criteria to enhance service composition performance. Furthermore, inter-service dependencies and conflicts are significant concerns in QoS-aware service composition, but only a few papers focus on addressing these issues. In some IoT-based service composition scenarios, service selection for each task occurs independently of other tasks, leading to potential conflicts and inefficiencies. Future research should explore incorporating different QoS parameters and addressing inter-service dependencies and conflicts to further enhance service composition methods in IoT applications. By addressing these challenges, we can create more robust and efficient IoT systems to meet the ever-growing demands of users and applications.
However, it is essential to acknowledge that technological constraints can challenge the service composition process. The selection of services in a composition heavily depends on various restrictions, such as time and location. Unfortunately, many IoT researchers have not thoroughly explored inter-service dependencies and conflicts. As such, the current study has some limitations that need to be addressed.
  • Scalability: The proposed algorithm’s scalability is not explicitly addressed. As the number of devices and services in the IoT ecosystem grows, the algorithm’s ability to handle larger-scale compositions may become a limitation. It is crucial to consider the method’s performance and efficiency when dealing with a large number of IoT devices and services.
  • Real-world Deployment: The practical aspects of implementing the proposed approach in real-world IoT systems are not discussed. It would be valuable to address the compatibility, interoperability, and deployment challenges that may arise when integrating cloud and fog computing infrastructures.
For future research, the following directions can be considered:
  • Extension of QoS Parameters: Future work could focus on expanding the QoS parameters considered in the service composition process. Investigating additional metrics related to service quality, such as security [89,90], privacy [91,92], and network bandwidth, would provide a more comprehensive evaluation and improve the performance of the service composition method.
  • Inter-Service Dependencies and Conflicts: Addressing inter-service dependencies and conflicts in IoT service composition should be a priority. Developing techniques or algorithms that explicitly handle conflicts between service compositions and address the challenges posed by inter-service dependencies would be beneficial.
  • Real-World Implementation and Performance Evaluation: Testing the proposed method via implementation in a real IoT application would provide valuable insights into its practicality and performance in a realistic setting.
  • Edge Computing Optimization: Considering the emerging paradigm of edge computing, future work could explore optimizations that leverage the potential of processing IoT applications at the edge networks near the devices. Investigating how the proposed service composition method can be enhanced or adapted for edge computing environments would be valuable.
  • Combination of the applied algorithm with some powerful techniques: In many cases, the hybrid algorithms have delivered good results. Therefore, we can combine the proposed algorithm with some other algorithms, such as the greedy algorithm [93,94,95], active subspace random optimization [96], neural networks [97], and deep/federated/machine learning [98,99,100].
Finally, the main novelty and impact of the current research are:
  • Comparison with state-of-the-art methods: To assess the impact and novelty of the research, a detailed comparison of the proposed hybrid algorithm for service composition with recently introduced methods is necessary. This analysis would help determine the advancements and improvements achieved by the proposed approach.
  • Integration of fog computing: The proposed cloud-/fog-based service composition approach acknowledges the emergence of fog computing as a paradigm to process IoT applications at the edge networks. Assessing the benefits and performance enhancements achieved via this integration would further highlight the novelty of the research.

Author Contributions

Conceptualization, M.H.; Methodology, S.K.; Validation, N.J.N.; Resources, M.H. and S.K.; Data curation, S.K.; Writing—original draft, M.H.; Supervision, N.J.N.; Project administration, N.J.N. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data are reported in the paper.

Conflicts of Interest

There is no conflict of interest.

References

  1. Goumagias, N.; Whalley, J.; Dilaver, O.; Cunningham, J. Making sense of the internet of things: A critical review of internet of things definitions between 2005 and 2019. Internet Res. 2021, 31, 1583–1610. [Google Scholar] [CrossRef]
  2. Chen, P.; Liu, H.; Xin, R.; Carval, T.; Zhao, J.; Xia, Y.; Zhao, Z. Effectively detecting operational anomalies in large-scale iot data infrastructures by using a gan-based predictive model. Comput. J. 2022, 65, 2909–2925. [Google Scholar] [CrossRef]
  3. Cao, B.; Gu, Y.; Lv, Z.; Yang, S.; Zhao, J.; Li, Y. RFID reader anticollision based on distributed parallel particle swarm optimization. IEEE Internet Things J. 2020, 8, 3099–3107. [Google Scholar] [CrossRef]
  4. Min, H.; Fang, Y.; Wu, X.; Lei, X.; Chen, S.; Teixeira, R.; Zhu, B.; Zhao, X.; Xu, Z. A fault diagnosis framework for autonomous vehicles with sensor self-diagnosis. Expert Syst. Appl. 2023, 224, 120002. [Google Scholar] [CrossRef]
  5. Kumar, P.; Kumar, R.; Gupta, G.P.; Tripathi, R.; Jolfaei, A.; Islam, A.N. A blockchain-orchestrated deep learning approach for secure data transmission in IoT-enabled healthcare system. J. Parallel Distrib. Comput. 2023, 172, 69–83. [Google Scholar] [CrossRef]
  6. Ma, X.; Dong, Z.; Quan, W.; Dong, Y.; Tan, Y. Real-time assessment of asphalt pavement moduli and traffic loads using monitoring data from Built-in Sensors: Optimal sensor placement and identification algorithm. Mech. Syst. Signal Process. 2023, 187, 109930. [Google Scholar] [CrossRef]
  7. Pan, S.; Lin, M.; Xu, M.; Zhu, S.; Bian, L.-A.; Li, G. A low-profile programmable beam scanning holographic array antenna without phase shifters. IEEE Internet Things J. 2021, 9, 8838–8851. [Google Scholar] [CrossRef]
  8. Liu, Y.; Wang, J.; Yan, Z.; Wan, Z.; Jäntti, R. A Survey on Blockchain-based Trust Management for Internet of Things. IEEE Internet Things J. 2023, 10, 5898–5922. [Google Scholar] [CrossRef]
  9. Cao, K.; Ding, H.; Wang, B.; Lv, L.; Tian, J.; Wei, Q.; Gong, F. Enhancing physical-layer security for IoT with nonorthogonal multiple access assisted semi-grant-free transmission. IEEE Internet Things J. 2022, 9, 24669–24681. [Google Scholar] [CrossRef]
  10. Jiang, H.; Xiao, Z.; Li, Z.; Xu, J.; Zeng, F.; Wang, D. An energy-efficient framework for internet of things underlaying heterogeneous small cell networks. IEEE Trans. Mob. Comput. 2020, 21, 31–43. [Google Scholar] [CrossRef]
  11. Xiao, Z.; Shu, J.; Jiang, H.; Min, G.; Chen, H.; Han, Z. Perception task offloading with collaborative computation for autonomous driving. IEEE J. Sel. Areas Commun. 2022, 41, 457–473. [Google Scholar] [CrossRef]
  12. Cao, B.; Zhao, J.; Lv, Z.; Yang, P. Diversified personalized recommendation optimization based on mobile data. IEEE Trans. Intell. Transp. Syst. 2020, 22, 2133–2139. [Google Scholar] [CrossRef]
  13. Kour, V.P.; Arora, S. Recent developments of the internet of things in agriculture: A survey. IEEE Access 2020, 8, 129924–129957. [Google Scholar] [CrossRef]
  14. Jamshed, M.A.; Ali, K.; Abbasi, Q.H.; Imran, M.A.; Ur-Rehman, M. Challenges, applications, and future of wireless sensors in Internet of Things: A review. IEEE Sensors J. 2022, 22, 5482–5494. [Google Scholar] [CrossRef]
  15. Cao, B.; Wang, X.; Zhang, W.; Song, H.; Lv, Z. A many-objective optimization model of industrial internet of things based on private blockchain. IEEE Netw. 2020, 34, 78–83. [Google Scholar] [CrossRef]
  16. Liu, G. A Q-Learning-based distributed routing protocol for frequency-switchable magnetic induction-based wireless underground sensor networks. Futur. Gener. Comput. Syst. 2023, 139, 253–266. [Google Scholar] [CrossRef]
  17. Liu, G. Data collection in mi-assisted wireless powered underground sensor networks: Directions, recent advances, and challenges. IEEE Commun. Mag. 2021, 59, 132–138. [Google Scholar] [CrossRef]
  18. Shao, Z.-L.; Huang, C.; Li, H. Replica selection and placement techniques on the IoT and edge computing: A deep study. Wirel. Networks 2021, 27, 5039–5055. [Google Scholar] [CrossRef]
  19. Hamzei, M.; Navimipour, N.J. Toward efficient service composition techniques in the internet of things. IEEE Internet Things J. 2018, 5, 3774–3787. [Google Scholar] [CrossRef]
  20. Sadhu, P.K.; Yanambaka, V.P.; Abdelgawad, A. Internet of Things: Security and Solutions Survey. Sensors 2022, 22, 7433. [Google Scholar] [CrossRef]
  21. Kumar, P.; Gupta, G.P.; Tripathi, R. Toward design of an intelligent cyber attack detection system using hybrid feature reduced approach for iot networks. Arab. J. Sci. Eng. 2021, 46, 3749–3778. [Google Scholar] [CrossRef]
  22. Dai, X.; Xiao, Z.; Jiang, H.; Alazab, M.; Lui, J.C.S.; Min, G.; Dustdar, S.; Liu, J. Task offloading for cloud-assisted fog computing with dynamic service caching in enterprise management systems. IEEE Trans. Ind. Inform. 2022, 19, 662–672. [Google Scholar] [CrossRef]
  23. Liu, Q.; Yuan, H.; Hamzaoui, R.; Su, H.; Hou, J.; Yang, H. Reduced reference perceptual quality model with application to rate control for video-based point cloud compression. IEEE Trans. Image Process. 2021, 30, 6623–6636. [Google Scholar] [CrossRef] [PubMed]
  24. Darbandi, M. Proposing new intelligent system for suggesting better service providers in cloud computing based on Kalman filtering. HCTL Int. J. Technol. Innov. Res. 2017, 24, 1–9. [Google Scholar]
  25. Zhang, J.; Qu, G. Physical unclonable function-based key sharing via machine learning for IoT security. IEEE Trans. Ind. Electron. 2019, 67, 7025–7033. [Google Scholar] [CrossRef]
  26. Shen, H.; Zhang, M.; Wang, H.; Guo, F.; Susilo, W. A cloud-aided privacy-preserving multi-dimensional data comparison protocol. Inf. Sci. 2020, 545, 739–752. [Google Scholar] [CrossRef]
  27. Liu, H.; Yuan, H.; Hou, J.; Hamzaoui, R.; Gao, W. Pufa-gan: A frequency-aware generative adversarial network for 3d point cloud upsampling. IEEE Trans. Image Process. 2022, 31, 7389–7402. [Google Scholar] [CrossRef]
  28. Darbandi, M. Kalman filtering for estimation and prediction servers with lower traffic loads for transferring high-level processes in cloud computing. HCTL Int. J. Technol. Innov. Res. 2017, 23, 10–20. [Google Scholar]
  29. Wang, T.; Yang, Q.; Shen, X.S.; Gadekallu, T.R.; Wang, W.; Dev, K. A privacy-enhanced retrieval technology for the cloud-assisted internet of things. IEEE Trans. Ind. Inform. 2021, 18, 4981–4989. [Google Scholar] [CrossRef]
  30. Ramzanpoor, Y.; Shirvani, M.H.; GolSorkhTabar, M. Energy-aware and Reliable Service Placement of IoT applications on Fog Computing Platforms by Utilizing Whale Optimization Algorithm. J. Adv. Comput. Eng. Technol. 2021, 7, 67–80. [Google Scholar]
  31. Cao, B.; Sun, Z.; Zhang, J.; Gu, Y. Resource allocation in 5G IoV architecture based on SDN and fog-cloud computing. IEEE Trans. Intell. Transp. Syst. 2021, 22, 3832–3840. [Google Scholar] [CrossRef]
  32. Dai, X.; Xiao, Z.; Jiang, H.; Alazab, M.; Lui, J.C.S.; Dustdar, S.; Liu, J. Task co-offloading for d2d-assisted mobile edge computing in industrial internet of things. IEEE Trans. Ind. Inform. 2022, 19, 480–490. [Google Scholar] [CrossRef]
  33. Cao, B.; Fan, S.; Zhao, J.; Tian, S.; Zheng, Z.; Yan, Y.; Yang, P. Large-scale many-objective deployment optimization of edge servers. IEEE Trans. Intell. Transp. Syst. 2021, 22, 3841–3849. [Google Scholar] [CrossRef]
  34. Xiao, Z.; Shu, J.; Jiang, H.; Lui, J.C.S.; Min, G.; Liu, J.; Dustdar, S. Multi-objective parallel task offloading and content caching in D2D-aided MEC networks. IEEE Trans. Mob. Comput. 2022, 1–16. [Google Scholar] [CrossRef]
  35. Darbandi, M. Proposing New Intelligence Algorithm for Suggesting Better Services to Cloud Users based on Kalman Filtering. J. Comput. Sci. Appl. 2017, 5, 11–16. [Google Scholar]
  36. Zenggang, X.; Mingyang, Z.; Xuemin, Z.; Sanyuan, Z.; Fang, X.; Xiaochao, Z.; Yunyun, W.; Xiang, L. Social similarity routing algorithm based on socially aware networks in the big data environment. J. Signal Process. Syst. 2022, 94, 1253–1267. [Google Scholar] [CrossRef]
  37. Guerrero, C.; Lera, I.; Juiz, C. Genetic-based optimization in fog computing: Current trends and research opportunities. Swarm Evol. Comput. 2022, 72, 101094. [Google Scholar] [CrossRef]
  38. Wang, S.; Sheng, H.; Zhang, Y.; Yang, D.; Shen, J.; Chen, R. Blockchain-empowered distributed multi-camera multi-target tracking in edge computing. IEEE Trans. Ind. Inform. 2023, 1–10. [Google Scholar] [CrossRef]
  39. Saini, K.; Kalra, S.; Sood, S.K. An Integrated Framework for Smart Earthquake Prediction: IoT, Fog, and Cloud Computing. J. Grid Comput. 2022, 20, 1–20. [Google Scholar] [CrossRef]
  40. Kumar, P.; Tripathi, R.; Gupta, G.P. P2IDF: A privacy-preserving based intrusion detection framework for software defined Internet of Things-fog (SDIoT-Fog). In Proceedings of the 2021 International Conference on Distributed Computing and Networking, Nara, Japan, 5–8 January 2021. [Google Scholar]
  41. Asghari, P.; Rahmani, A.M.; Javadi, H.H.S. Privacy-aware cloud service composition based on QoS optimization in Internet of Things. J. Ambient. Intell. Humaniz. Comput. 2020, 13, 5295–5320. [Google Scholar] [CrossRef]
  42. Hosseinzadeh, M.; Tho, Q.T.; Ali, S.; Rahmani, A.M.; Souri, A.; Norouzi, M.; Huynh, B. A hybrid service selection and composition model for cloud-edge computing in the internet of things. IEEE Access 2020, 8, 85939–85949. [Google Scholar] [CrossRef]
  43. Arellanes, D.; Lau, K.-K. Evaluating IoT service composition mechanisms for the scalability of IoT systems. Futur. Gener. Comput. Syst. 2020, 108, 827–848. [Google Scholar] [CrossRef]
  44. Kashyap, N.; Kumari, A.C.; Chhikara, R. Multi-objective Optimization using NSGA II for service composition in IoT. Procedia Comput. Sci. 2020, 167, 1928–1933. [Google Scholar] [CrossRef]
  45. Guzel, M.; Ozdemir, S. Fair and energy-aware IoT service composition under QoS constraints. J. Supercomput. 2022, 78, 13427–13454. [Google Scholar] [CrossRef]
  46. Chai, Z.-Y.; Du, M.-M.; Song, G.-Z. A fast energy-centered and QoS-aware service composition approach for Internet of Things. Appl. Soft Comput. 2020, 100, 106914. [Google Scholar] [CrossRef]
  47. Razaque, A.; Jararweh, Y.; Alotaibi, B.; Alotaibi, M.; Almiani, M. Hybrid energy-efficient algorithm for efficient internet of things deployment. Sustain. Comput. Inform. Syst. 2022, 35, 100715. [Google Scholar] [CrossRef]
  48. Seghir, F. FDMOABC: Fuzzy Discrete Multi-Objective Artificial Bee Colony approach for solving the non-deterministic QoS-driven web service composition problem. Expert Syst. Appl. 2020, 167, 114413. [Google Scholar] [CrossRef]
  49. Safaei, A.; Nassiri, R.; Rahmani, A.M. Enterprise service composition models in IoT context: Solutions comparison. J. Supercomput. 2021, 78, 2015–2042. [Google Scholar] [CrossRef]
  50. Sefati, S.; Navimipour, N.J. A QoS-Aware Service Composition Mechanism in the Internet of Things Using a Hidden-Markov-Model-Based Optimization Algorithm. IEEE Internet Things J. 2021, 8, 15620–15627. [Google Scholar] [CrossRef]
  51. Souri, A.; Ghobaei-Arani, M. Cloud manufacturing service composition in IoT applications: A formal verification-based approach. Multimedia Tools Appl. 2021, 81, 26759–26778. [Google Scholar] [CrossRef]
  52. Ibrahim, G.J.; Rashid, T.A.; Akinsolu, M.O. An energy efficient service composition mechanism using a hybrid meta-heuristic algorithm in a mobile cloud environment. J. Parallel Distrib. Comput. 2020, 143, 77–87. [Google Scholar] [CrossRef]
  53. Jian, C.; Li, M.; Kuang, X. Edge cloud computing service composition based on modified bird swarm optimization in the internet of things. Clust. Comput. 2018, 22, 8079–8087. [Google Scholar] [CrossRef]
  54. Naseri, A.; Navimipour, N.J. A new agent-based method for QoS-aware cloud service composition using particle swarm optimization algorithm. J. Ambient. Intell. Humaniz. Comput. 2018, 10, 1851–1864. [Google Scholar] [CrossRef]
  55. Chen, M.; Wang, Q.; Sun, W.; Song, X.; Chu, N. GA for QoS satisfaction degree optimal Web service composition selection model. In Proceedings of the 2019 6th International Conference on Behavioral, Economic and Socio-Cultural Computing (BESC), Beijing, China, 28–30 October 2019; pp. 1–4. [Google Scholar] [CrossRef]
  56. Ullah, K.; Ali, S.; Khan, T.A.; Khan, I.; Jan, S.; Shah, I.A.; Hafeez, G. An optimal energy optimization strategy for smart grid integrated with renewable energy sources and demand response programs. Energies 2020, 13, 5718. [Google Scholar] [CrossRef]
  57. Ullah, K.; Khan, T.A.; Hafeez, G.; Khan, I.; Murawwat, S.; Alamri, B.; Ali, F.; Ali, S.; Khan, S. Demand side management strategy for multi-objective day-ahead scheduling considering wind energy in smart grid. Energies 2022, 15, 6900. [Google Scholar] [CrossRef]
  58. Ali, S.; Ullah, K.; Hafeez, G.; Khan, I.; Albogamy, F.R.; Haider, S.I. Solving day-ahead scheduling problem with multi-objective energy optimization for demand side management in smart grid. Eng. Sci. Technol. Int. J. 2022, 36, 101135. [Google Scholar] [CrossRef]
  59. Hafeez, G.; Wadud, Z.; Khan, I.U.; Khan, I.; Shafiq, Z.; Usman, M.; Khan, M.U.A. Efficient energy management of IoT-enabled smart homes under price-based demand response program in smart grid. Sensors 2020, 20, 3155. [Google Scholar] [CrossRef]
  60. Ghaferi, E.; Malekhosseini, R.; Rad, F.; Bagherifard, K. A clustering method for locating services based on fog computing for the internet of things. J. Supercomput. 2022, 78, 13756–13779. [Google Scholar] [CrossRef]
  61. Tiwari, M.; Maity, I.; Misra, S. FedServ: Federated Task Service in Fog-Enabled Internet of Vehicles. IEEE Trans. Intell. Transp. Syst. 2022, 23, 20943–20952. [Google Scholar] [CrossRef]
  62. Sun, M.; Zhou, Z.; Wang, J.; Du, C.; Gaaloul, W. Energy-efficient IoT service composition for concurrent timed applications. Futur. Gener. Comput. Syst. 2019, 100, 1017–1030. [Google Scholar] [CrossRef]
  63. Yu, T.; Zhang, Y.; Lin, K.-J. Efficient algorithms for web services selection with end-to-end qos constraints. ACM Trans. Web 2007, 1, 6. [Google Scholar] [CrossRef]
  64. Wu, Q.; Zhu, Q. Transactional and QoS-aware dynamic service composition based on ant colony optimization. Futur. Gener. Comput. Syst. 2012, 29, 1112–1119. [Google Scholar] [CrossRef]
  65. Zeng, L.; Benatallah, B.; Ngu, A.; Dumas, M.; Kalagnanam, J.; Chang, H. QoS-aware middleware for web services composition. IEEE Trans. Softw. Eng. 2004, 30, 311–327. [Google Scholar] [CrossRef]
  66. Song, Y.; Gong, Y. Web service composition on IoT reliability test based on cross entropy. Comput. Intell. 2020, 36, 1650–1662. [Google Scholar] [CrossRef]
  67. Van Broekhoven, E.; De Baets, B. Monotone Mamdani–Assilian models under mean of maxima defuzzification. Fuzzy Sets Syst. 2008, 159, 2819–2844. [Google Scholar] [CrossRef]
  68. Mamdani, E.; Assilian, S. An experiment in linguistic synthesis with a fuzzy logic controller. Int. J. Hum.-Comput. Stud. 1999, 51, 135–147. [Google Scholar] [CrossRef]
  69. Li, Y.; Tong, S. Adaptive fuzzy output-feedback stabilization control for a class of switched nonstrict-feedback nonlinear systems. IEEE Trans. Cybern. 2016, 47, 1007–1016. [Google Scholar] [CrossRef]
  70. Rad, D.; Rad, G.; Maier, R.; Demeter, E.; Dicu, A.; Popa, M.; Alexuta, D.; Floroian, D.; Mărineanu, V.D. A fuzzy logic modelling approach on psychological data. J. Intell. Fuzzy Syst. 2022, 43, 1727–1737. [Google Scholar] [CrossRef]
  71. Zadeh, L.A. The Role of Fuzzy Logic in Modeling, Identification and Control, in Fuzzy Sets, Fuzzy Logic, and Fuzzy Systems: Selected Papers by Lotfi A Zadeh; World Scientific: Singapore, 1996; pp. 783–795. [Google Scholar]
  72. Abd-Alsabour, N.; Randall, M. Feature selection for classification using an ant colony system. In Proceedings of the 2010 Sixth IEEE International Conference on e-Science Workshops, Brisbane, Queensland, 7–10 December 2010. [Google Scholar]
  73. Dorigo, M.; Birattari, M.; Stutzle, T. Ant colony optimization. IEEE Comput. Intell. Mag. 2006, 1, 28–39. [Google Scholar] [CrossRef]
  74. Zannou, A.; Boulaalam, A.; Nfaoui, E.H. Relevant node discovery and selection approach for the Internet of Things based on neural networks and ant colony optimization. Pervasive Mob. Comput. 2021, 70, 101311. [Google Scholar] [CrossRef]
  75. Kefayat, M.; Ara, A.L.; Niaki, S.N. A hybrid of ant colony optimization and artificial bee colony algorithm for probabilistic optimal placement and sizing of distributed energy resources. Energy Convers. Manag. 2015, 92, 149–161. [Google Scholar] [CrossRef]
  76. Özdemir, D.; Dörterler, S.; Aydın, D. A new modified artificial bee colony algorithm for energy demand forecasting problem. Neural Comput. Appl. 2022, 34, 17455–17471. [Google Scholar] [CrossRef]
  77. Min, X.; Xu, X.; Wang, Z. Combining von neumann neighborhood topology with approximate-mapping local search for ABC-based service composition. In Proceedings of the 2014 IEEE International Conference on Services Computing, Anchorage, AK, USA, 17–19 November 2014; pp. 187–194. [Google Scholar] [CrossRef]
  78. Ragmani, A.; Elomri, A.; Abghour, N.; Moussaid, K.; Rida, M. An improved hybrid fuzzy-ant colony algorithm applied to load balancing in cloud computing environment. Procedia Comput. Sci. 2019, 151, 519–526. [Google Scholar] [CrossRef]
  79. Gao, J. Green Energy Strategic Management for Service of Quality Composition in the Internet of Things Environment. Complexity 2020, 2020, 6678612. [Google Scholar] [CrossRef]
  80. Al-Masri, E.; Mahmoud, Q.H. Qos-based discovery and ranking of web services. In Proceedings of the 2007 16th International Conference on Computer Communications and Networks, Honolulu, Hawaii, 13–16 August 2007. [Google Scholar]
  81. Zheng, Z.; Lyu, M.R. Ws-dream: A distributed reliability assessment mechanism for web services. In Proceedings of the 2008 IEEE International Conference on Dependable Systems and Networks With FTCS and DCC (DSN), Anchorage, AK, USA, 24–27 June 2008. [Google Scholar]
  82. Klusch, M.; Gerber, A.; Schmidt, M. Semantic Web Service Composition Planning with OWLS-Xplan, Agents and the Semantic Web. In Proceedings of the 2005 AAAI Fall Symposium Series, Arlington, VA, USA, 4–6 November 2005. [Google Scholar]
  83. Al-Masri, E.; Mahmoud, Q.H. Investigating web services on the world wide web. In Proceedings of the 17th International Conference on World Wide Web, Beijing, China, 21–25 April 2008. [Google Scholar]
  84. Ko, I.-Y.; Ko, H.-G.; Molina, A.J.; Kwon, J.-H. SoIoT: Toward a user-centric IoT-based service framework. ACM Trans. Internet Technol. (TOIT) 2016, 16, 1–21. [Google Scholar] [CrossRef]
  85. Furthmüller, J.; Waldhorst, O.P. Energy-aware resource sharing with mobile devices. Comput. Netw. 2012, 56, 1920–1934. [Google Scholar] [CrossRef]
  86. Xu, X.; Lin, Z.; Li, X.; Shang, C.; Shen, Q. Multi-objective robust optimisation model for MDVRPLS in refined oil distribution. Int. J. Prod. Res. 2021, 60, 6772–6792. [Google Scholar] [CrossRef]
  87. Cao, B.; Li, M.; Liu, X.; Zhao, J.; Cao, W.; Lv, Z. Many-objective deployment optimization for a drone-assisted camera network. IEEE Trans. Netw. Sci. Eng. 2021, 8, 2756–2764. [Google Scholar] [CrossRef]
  88. Cao, B.; Zhao, J.; Yang, P.; Gu, Y.; Muhammad, K.; Rodrigues, J.J.P.C.; de Albuquerque, V.H.C. Multiobjective 3-D topology optimization of next-generation wireless data center network. IEEE Trans. Ind. Inform. 2019, 16, 3597–3605. [Google Scholar] [CrossRef]
  89. Yao, Y.; Shu, F.; Li, Z.; Cheng, X.; Wu, L. Secure Transmission Scheme Based on Joint Radar and Communication in Mobile Vehicular Networks. IEEE Trans. Intell. Transp. Syst. 2023, 1–11. [Google Scholar] [CrossRef]
  90. Cao, B.; Zhao, J.; Gu, Y.; Fan, S.; Yang, P. Security-Aware Industrial Wireless Sensor Network Deployment Optimization. IEEE Trans. Ind. Inform. 2019, 16, 5309–5316. [Google Scholar] [CrossRef]
  91. Qiao, F.; Li, Z.; Kong, Y. A Privacy-Aware and Incremental Defense Method Against GAN-Based Poisoning Attack. IEEE Trans. Comput. Soc. Syst. 2023, 1–14. [Google Scholar] [CrossRef]
  92. Jiang, H.; Wang, M.; Zhao, P.; Xiao, Z.; Dustdar, S. A utility-aware general framework with quantifiable privacy preservation for destination prediction in LBSs. IEEE/ACM Trans. Netw. 2021, 29, 2228–2241. [Google Scholar] [CrossRef]
  93. Lu, C.; Zheng, J.; Yin, L.; Wang, R. An improved iterated greedy algorithm for the distributed hybrid flowshop scheduling problem. Eng. Optim. 2023, 1–19. [Google Scholar] [CrossRef]
  94. Ni, Q.; Guo, J.; Wu, W.; Wang, H. Influence-based community partition with sandwich method for social networks. IEEE Trans. Comput. Soc. Syst. 2022, 10, 819–830. [Google Scholar] [CrossRef]
  95. Ni, Q.; Guo, J.; Wu, W.; Wang, H.; Wu, J. Continuous influence-based community partition for social networks. IEEE Trans. Netw. Sci. Eng. 2021, 9, 1187–1197. [Google Scholar] [CrossRef]
  96. Zhang, J.; Tang, Y.; Wang, H.; Xu, K. ASRO-DIO: Active subspace random optimization based depth inertial odometry. IEEE Trans. Robot. 2022, 39, 1496–1508. [Google Scholar] [CrossRef]
  97. Zheng, Y.; Lv, X.; Qian, L.; Liu, X. An optimal bp neural network track prediction method based on a ga–aco hybrid algorithm. J. Mar. Sci. Eng. 2022, 10, 1399. [Google Scholar] [CrossRef]
  98. Yao, Y.; Zhao, J.; Li, Z.; Cheng, X.; Wu, L. Jamming and Eavesdropping Defense Scheme Based on Deep Reinforcement Learning in Autonomous Vehicle Networks. IEEE Trans. Inf. Forensics Secur. 2023, 18, 1211–1224. [Google Scholar] [CrossRef]
  99. Han, S.; Ding, H.; Zhao, S.; Ren, S.; Wang, Z.; Lin, J.; Zhou, S. Practical and Robust Federated Learning With Highly Scalable Regression Training. IEEE Trans. Neural Netw. Learn. Syst. 2023, 1–15. [Google Scholar] [CrossRef] [PubMed]
  100. Liu, X.; Shi, T.; Zhou, G.; Liu, M.; Yin, Z.; Yin, L.; Zheng, W. Emotion classification for short texts: An improved multi-label method. Humanit. Soc. Sci. Commun. 2023, 10, 1–9. [Google Scholar] [CrossRef]
Figure 1. System Architecture.
Figure 1. System Architecture.
Sensors 23 07233 g001
Figure 2. The QoS composition process of IoT.
Figure 2. The QoS composition process of IoT.
Sensors 23 07233 g002
Figure 5. Flowchart of the proposed method.
Figure 5. Flowchart of the proposed method.
Sensors 23 07233 g005
Figure 6. Availability for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Figure 6. Availability for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Sensors 23 07233 g006
Figure 7. Reliability for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Figure 7. Reliability for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Sensors 23 07233 g007
Figure 8. Cost for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Figure 8. Cost for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Sensors 23 07233 g008
Figure 9. Energy consumption for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Figure 9. Energy consumption for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Sensors 23 07233 g009
Figure 10. Energy consumption for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Figure 10. Energy consumption for 10, 30, 50, 70, and 100 service classes with 50 candidate services.
Sensors 23 07233 g010
Table 1. Summary of related works.
Table 1. Summary of related works.
ReferenceMethodology StrengthsLimitations
Asghari, Rahmani [41]Hybrid algorithm (GA + SFLA)
  • Privacy-aware service composition
  • Computational model for privacy level
  • Scalability
  • Improved user satisfaction
  • Lack of consideration for energy, security, and lightweight encryption
  • Complexity in implementation
  • Computational overhead
  • Parameter tuning
  • Limited real-world data validation
Sefati and Navimipour [50]ACO algorithm + Hidden Markov model
  • Flexible service composition
  • Efficient cost reduction
  • Robustness and reliability
  • Inefficiency in energy optimization
  • Computational complexity
  • Parameter tuning
  • Limited validation
  • Scalability issues
  • Overfitting
Souri and Ghobaei-Arani [51]Formal verification + Whale Optimization Algorithm
  • Flexibility
  • Scalability
  • Resource efficiency
  • Slow convergence
  • Algorithm complexity
  • Data privacy and security concerns
  • Overhead and latency
  • Lack of energy consumption consideration
Chai, Du [46]Hierarchical optimization
  • Composite service flexibility
  • Resource efficiency
  • Real-time decision making
  • High computational cost
  • Limited details on implementation
  • Scalability challenges
  • Algorithm complexity
Ibrahim, Rashid [52]Shuffled Frog Leaping Algorithm (SFGA)
  • Faster service selection
  • Effective composition in service cost and response time
  • Improved connectivity
  • Enhanced productivity
  • Convenience
  • Lack of consideration for reliability, availability, and other important IoT parameters
  • Privacy and security risks
  • Dependency on infrastructure
  • Information overload
Jian, Li [53]Modified Bird Swarm Optimization Algorithm (MBSA)
  • Improved global search ability
  • Efficient execution time
  • Multi-objective optimization
  • Enriched diversity
  • Computational complexity
  • Scalability
  • Lack of guaranteed optimality
Guzel and Ozdemir [45]NSGA-II-based model
  • Energy consumption optimization
  • Fairness among IoT services
  • Time window optimization
  • Improved energy efficiency without QoS degradation
  • Computational complexity
  • Scalability challenges
Naseri and Navimipour [54]Agent-based + PSO
  • Resource optimization
  • Scalability
  • Reduced waiting time
  • Improved performance
  • Complexity of the hybrid method
  • Limited distribution factor handling
Chen, Wang [55]Genetic Algorithm
  • Enhanced service quality
  • Multi-objective optimization
  • Time efficiency
  • Scalability challenges
  • Local optima traps
Ullah, Ali [56]Multi-Objective Genetic Algorithm + Demand response programs
  • Carbon emission reduction
  • Renewable energy integration
  • Multi-objective optimization
  • Uncertainty management
  • Implementation costs
  • Complexity in DRP participation
  • Scalability issues
  • Data privacy and security
Ullah, Khan [57]Multi-Objective Genetic Algorithm + Decision-Making Mechanism
  • High flexibility
  • Multi-objective optimization
  • Non-dominated solutions
  • Computational complexity
  • Data privacy and security concerns
  • Communication and control overhead
Ali, Ullah [58]Multi-Objective Wind-Driven Optimization
  • Energy efficiency
  • Reduced operational costs
  • Adaptability and scalability
  • Complexity
  • Sensitivity to input data
  • Limited flexibility
  • High implementation costs
Hafeez, Wadud [59]Wind-Driven Bacterial Foraging Algorithm
  • Energy efficiency
  • Cost reduction
  • User comfort
  • Reliability concerns
  • Complexity
  • Limited compatibility
Table 2. QoS aggregation functions for composite services.
Table 2. QoS aggregation functions for composite services.
QoS AttributesAggregation Function
Availabilityqa (S) = i = 1 n q a (si)
Reliabilityqr(S) = i = 1 n q r (si)
Costqc (S) = i = 1 n q c (si)
Energyqe (S) = i = 1 n q e (si)
Table 3. The improvement percentage.
Table 3. The improvement percentage.
AvailabilityReliabilityCostEnergy
The Proposed Method Compared to FSCA-EQ5.02%4.22%9.68%10.33%
The Proposed Method Compared to GA7.14%5.89%25.60%23.55%
The Proposed Method Compared to PSO12.68%3.45%29.48%17.46%
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

Hamzei, M.; Khandagh, S.; Jafari Navimipour, N. A Quality-of-Service-Aware Service Composition Method in the Internet of Things Using a Multi-Objective Fuzzy-Based Hybrid Algorithm. Sensors 2023, 23, 7233. https://doi.org/10.3390/s23167233

AMA Style

Hamzei M, Khandagh S, Jafari Navimipour N. A Quality-of-Service-Aware Service Composition Method in the Internet of Things Using a Multi-Objective Fuzzy-Based Hybrid Algorithm. Sensors. 2023; 23(16):7233. https://doi.org/10.3390/s23167233

Chicago/Turabian Style

Hamzei, Marzieh, Saeed Khandagh, and Nima Jafari Navimipour. 2023. "A Quality-of-Service-Aware Service Composition Method in the Internet of Things Using a Multi-Objective Fuzzy-Based Hybrid Algorithm" Sensors 23, no. 16: 7233. https://doi.org/10.3390/s23167233

APA Style

Hamzei, M., Khandagh, S., & Jafari Navimipour, N. (2023). A Quality-of-Service-Aware Service Composition Method in the Internet of Things Using a Multi-Objective Fuzzy-Based Hybrid Algorithm. Sensors, 23(16), 7233. https://doi.org/10.3390/s23167233

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