# Real-Time Evaluation of the Improved Eagle Strategy Model in the Internet of Things
## 3 Improved Eagle Strategy
### Calculate the Service Based on Method Names
A high F-measure suggests that the clustering is accurate, and the clusters are well-defined [36]. _RE_ and _PC_ are dimensions that are frequently used in the field of text mining. The _RE_ and _PC_ values are presented in the following formula. \[PC(u,v) =\frac{x_{u,v}}{x_{v}} \tag{5}\] \[RE(u,v) =\frac{x_{u,v}}{x_{u}} \tag{6}\] \begin{table}
\begin{tabular}{l} \hline \hline
**Algorithm of Ping Response for Service Availability Using Manhattan** \\ \hline
1: _In random 2D dataset points:_ \\
2: _Select K number of clusters._ \\
3: _Select randomly initial centroid points._ \\
4: _Commutte the distance with the Manhattan distance metric of each point from selected cluster centers._ \\
5: _Steps of Manhattan distance metric:_ \\
6: _Dist1 = [points \(-\) centroid]_ \\
7: _Dist = sum(abs(Dist1))_ \\
8: _return Dist_ \\
9: _Grouping based on minimum distance._ \\
10: _If no data points need to be moved, then stop; otherwise, repeat Steps 3_ \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Algorithm of ping response for service availability using Manhattan. where \(x_{u,v}\) is the number of services of class \(u\) in cluster \(v\), \(x_{v}\) is the number of services of cluster \(v\), and \(x_{u}\) is the number of services of class \(u\). \[FM(v)=\frac{2\times PC(u,v)\times RE(u,v)}{C(u,v)\times RE(u,v)} \tag{7}\]  
where \(PC(u,v)\) is the \(PC\) of services of class \(u\) in cluster \(v\), \(RE(u,v)\) is the \(RE\) of services of class \(u\) in cluster \(v\), and \(FM\) for all clusters is calculated at (9):  
\[FM=\sum_{v}\frac{x_{v}}{x}\ max_{u}\{x(u,v)\} \tag{8}\]  
Figure 5 illustrates how WS clustering takes place. Clustering web services involves dividing the total number of web services in a collection into the right number of groups or clusters based on some similarity metric. In this research, Wordnet 3.0 was used to calculate semantic similarities. The implementation of our proposed algorithm as a WS was the next step, and it was accomplished with the help of Microsoft Visual Studio, which is also where the service selection took place. Developing a Windows workflow composition for 24 Smart Toilet microcontrollers was the final stage of the development phase. This was accomplished by utilizing the Windows Communication Foundation (WCF). The advantage of using the Eagle Strategy is discussed, where the Eagle Strategy outperforms the standard algorithms like the \"Genetic Algorithm\", \"Whale Optimization Algorithm\", \"Discrete Guided Artificial Bee Colony\", \"Hybrid Genetic Algorithm\", and \"Greedy Randomized Adaptive Search Procedure\" according to [26]. The disadvantage is its constraint in the distributed cloud environment without considering the parameter. The IES will select the service from the service repository with few conditions, considering the QoS attribute of services and selecting the correct service, as shown in Figure 6 below. The IES will be able to select the WS from a large-scale distributed cloud-based repository according to the users' requirements. The proposed method accomplishes the first objective: select the service with a lesser response time than WOA and ES. As per related works, the Eagle Strategy is proven to select the service with lower response time compared to another bio-inspired method. Therefore, the advantage and improvement of the technique is the ability to select services based on user requirements and the services' response time is fully utilized. The first objective is to emphasize the QoS attributes, which are non-functional attributes of WS. Functional attributes, focusing on the second objective, are then used to select the correct service based on user requirements. During the process of selecting a WS, the IES emphasizes both the functional and non-functional aspects of the service. Figure 5: Clustering process of WS. While the output and input sections describe the abstract message format for the solicited request and response, the method name will be a WS functionality.