AI-TASFIS: An Approach to Secure Vehicle-to-Vehicle Communication

ABSTRACT VANET provides communication between vehicles. VANET nodes are highly dynamic. Therefore, it is essential to increase the stability of the communication between nodes. The cluster head and cluster node provide stable communication between vehicles. Vehicle communications are being challenged by factors such as security, confidential communication, and severe delay. This work proposes an Artificial Intelligence (AI)-based Sugeno fuzzy inference system to overcome these issues. The proposed secure trust-based cluster techniques are less complex, with lesser communication delays, lower overhead, and more efficient in accurately locating trusted nodes for communication. Vehicular Ad hoc Networks (VANET) should send data between vehicles and use traffic safety indicators using an Enhanced Cluster-based routing protocol. AI-TASFIS is Artificial Intelligence-based Trust Authentication Sugeno fuzzy inference system that uses ANFIS-based Sugeno Fuzzy inference systems to calculate the node weights for choosing trusted cluster head and cluster member that reduces malicious attacks like Black Hole Attacks, Wormhole attacks, and Timing Attacks while transferring data packets. Simulation results show that the proposed Artificial Intelligence (AI)-based Sugeno fuzzy inference system provides network security, reduces end-to-end delay, and increases packet delivery ratio and throughput.


Introduction
With the increase in intelligent cities, the demand for intelligent journey traffic tracking and congestion management, the primary traits of smart cities, is also increasing. The increase in visitor congestion and the inefficiency of wireless conversation systems for site visitor control have started the idea of Intelligent Transportation Systems (ITS). Using VANET, one could achieve ITS essential dreams, along with congestion control, visitor safety, effective use of infrastructure, and secure vehicle-to-vehicle communication. The vehicle installed in an ad hoc community improves and integrates the Wi-Fi conversation era, sensible transportation systems, and automobile manufacturing technology.
These are considered unique subdivisions of Mobile Ad-Hoc Networks (MANETs) and automobile nodes with unique characteristics and requirements.
VANET is a group of cell organizations and (roadside unit) corporations working together to alternate essential statistics regarding avenue conditions and other vehicles. Routing is necessary for the robust operation of VANET, and overall network performance is intently related to it. The achievement of VANET relies upon the reliability of sending messages from the supply node to the target node. In addition, real-time sharing of embedded information and road protection services is considered a crucial part of the routing process, supplying passengers with the necessary records to make safety selections.
Fuzzy is commonly known for its capacity to cope with complex and misguided problems, and it is by far the most promising era in this dynamic and challenging situation. On the other hand, significant quantities of statistics in the delivery device are critical for distributing facts. Effective use of dense records requires powerful methods of historic processing statistics, including Machine Learning (ML). There are two types of fuzzy inference systems: the Mamdani fuzzy inference system and the Sugeno fuzzy inference system. The first introduced system was Mamdani fuzzy logical system, combining linguistic control rules derived from experienced human operators to form a control system. In the Mamdani system, the output of each rule is a fuzzy set. On the other hand, Sugeno FIS uses a weighted average to calculate the sharp output. Figure 1 describes the impact of a malicious node in the communication zone of VANET. If a malicious node is present, this node can induce a heavily congested network, inject a false message into the stream, and intentionally drop the packet. Machine Learning system and an artificial intelligence (AI)- e2145636-3508 based fuzzy inference system use multiple indicators of neighboring vehicles and fuzzy logic to determine which vehicle is at the best no-traffic shortest path and which vehicle is the trusted vehicle to transfer data packets. The node with the minimum distance, speed, progression, and angular deflection from the current forward node to the target is selected as the next hop. However, the protocol only considers the vehicle's current condition when making a decision and does not consider the impact of the decision. Based on our Fuzzy rule, a trusted cluster head and a trusted cluster member are only allowed to do the communication. Adaptive neuro-fuzzy inference systems are used to select secure and trusted cluster head and cluster members for broadcasting safety messages and the shortest path is selected for transferring emergency-based messages.
The main contribution of the paper includes • Adaptive neuro-fuzzy inference system (ANFIS) is used to select a trusted cluster head and cluster member. • The input parameters are trained in ANFIS so that malicious nodes are blocked at the initial stage of communication. • Sugeno fuzzy inference is used for the transmission of emergency-based messages in VANET by analyzing the transmission range, weight of the node and hop count which makes faster transmission of messages. • Enhanced cluster-based routing protocols are used to provide high packet delivery ratio, reduce delay, high throughput, and to provide secure and trusted communication between nodes.

Related Works
Lin et al. (2020) proposed a paper on vehicle assistance repeaters in complex communication situations and supported land-based communications. A UAV subnet needs to focus on existing work routing protocol and not efficiently use UAV and its flexibility. Lu et al. (2020) proposed an article on the authentication program that protects against malicious marginal attackers and aims to send deceptive signals to attack the VANET. Shah et al. (2018) discussed that the authentication system uses the channel status of the environmental radio signal shared by the mobile device. It uses reinforcement learning to select its service margin (e.g., vehicle-fitted unit), authentication method, and parameters along the same trajectory. Cárdenas et al. (2021) proposed a paper where a network of vehicles that has groups of vehicles connected wirelessly is called a transient network. Clustered networking is an era designed to enhance the verbal exchange functionality of an automobile network. Shu et al. (2021) discussed that each cluster has a cluster head (CH), which is used to maintain the whole group, and all conversation is completed through CH. In other phrases, inter-cluster and intra-cluster communication are used between vehicle nodes. Maalej et al. (2018) discussed that routing protocols designed for automotive networks must be flexible and adapt to such networks inherent dynamic network behaviors. Therefore, assertive automobile communication will enhance overall driving performance and reduce unforeseen troubles. According to Wu et al. (2015), a Vehicle Ad hoc Network (VANET) permits intelligent traffic systems to provide various beneficial services but is susceptible to many intrusions. Fukuoka et al. (2019) discussed the Intrusion Detection System (IDS), which mitigates safety threats by detecting abnormal community behavior of nodes. However, the cutting-edge IDS answers most effective exist to stumble on typical community pastimes on the neighborhood subnet and not at the VANET. Hung et al. (2019) provided a handy solution that includes multi-technique item detection, authentication, and mapping which are primarily based on stereo camera frame, point scanning, V2 V (Vehicle-2-Vehicle), and primary safety records transmission fusion. Najib and Moh (2020) discussed on existing multi-hop broadcast protocol automobile ad hoc networks that are no longer considered a way to alter the transmission parameters of the community environment. According to Zhou et al. (2018), along with the diffusion surroundings that determine the channel errors fee, the size of the records packet payload also has a first-rate impact on the data packet loss price. Method of evaluating the network conduct of a brief wireless network is based totally on information switch movement evaluation. Arafat and Moh (2019) discussed that for the safe and dependable operation of future self-sufficient cars, a Vehicle-To-Vehicle (V2 V) communication network is required. According to Li et al. (2019), however, Vehicle to Infrastructure (V2I) communication remains needed due to the scaling issues of completely self-regulating networks. To address these provider challenges to a point, the Vehicle Ad hoc Network (VANET) has been an exquisite way to enhance car offerings and programs by equipping vehicles with wireless and processing abilities. Tang et al. (2019) discussed on Unnamed Aerial Vehicles (UAVs) that are broadly utilized in numerous navy and civilian applications and offerings. Nodes regularly omit a few broadcast messages at the institution key. Yang et al. (2020) discussed that establishing and maintaining an end-to-end connection in a Vehicle Ad Hoc Network (VANET) is challenging due to the high mobility of vehicles, dynamic vehicle spacing, and varying vehicle density. Vehicle motion forecasting can meet these challenges by providing enhanced average VANET performance based on greater route planning and consistent service availability. Hossain et al. (2020) discussed that the Vehicle ad hoc Network (VANET) is designed to aid the quickest development variety of automobiles. In this regard, it is hoped that every V2 V customer will use larger bands to generate directional, increase the spatial reuse price, and synchronize transmission. Nie et al. (2019) proposed that the Vehicle Ad hoc Network (VANET) is expected to play a crucial role in lowering street injuries and visitor congestion. Large quantities of records need to be exchanged to ensure this role. Fatemidokht et al. (2021) discussed that in the early degrees of VANET, several research issues want to be addressed, including protection and security problems due to open wireless networks in city programs. Khan et al. (2019) discussed that detecting VANET anomalies is particularly tricky as the VANET architecture has been modified compared to the conventional Wi-Fi network. Ghaleb et al. (2020) discussed the improved movement of motors and common connectivity disruptions that make routing a difficult task in these networks. Therefore, there are numerous issues and obstacles in developing a robust routing protocol that satisfies delays in the web. An et al. (2019) proposed a non-linear control system design is carried out, summarizing the concepts in radio connection analysis. An, Liu, and Wen (2017) discussed the Fuzzification-rule intersection of rule pairs that never occurs was discovered using a new event-sharing theory. According to Mendel, Chimatapu, and Hagras (2020), fuzzification can reduce, increase, or decrease the number of second-tier rule partitions, all of which depend on the systematic micro engraving of state space. The practical application of multi-dimensional models and restructuring reduces computational overlays in the linear non-structural analysis. Alolaiyan et al. (2019) proposed a paper on fuzzy sets, Pacification is a step of data preprocessing, and there is little research into using fuzzy rough sets. Ajayi, Babahaji, and Aghdam (2021) proposed a simple opacity method that derives a fuzzy distinction from the most essential features selection application cuts.

Proposed Work
Vehicle Ad hoc Network (VANET) is one of the most promising technologies in the intelligent transportation system that provides traffic safety. A trustbased accreditation program for selecting an authenticated and trusted cluster-based vehicular ad hoc networking has been proposed in this paper. Cluster vehicles are used to increase the reliability of communication. Trust is a grouping of direct and indirect acceptance nodes, and the cluster head is selected based on its estimated trust.
To provide secure and reliable communication, Artificial Intelligence (AI)based Trust Authentication Sugeno Fuzzy inference systems are proposed in which rules are framed according to specific scenarios and parameters. The adaptive transformation of the rotation security broadcast is realized through the simulation of the proposed Artificial Intelligence (AI)-based Trust Authentication Sugeno Fuzzy inference systems. The NS3.34 simulator is used to show performance improvements in packet delivery ratio, end-toend delays, packet loss rates, and throughput. Figure 2 describes the proposed block diagram for a vehicle-to-vehicle communication which is based on the Sugeno fuzzy inference system included with the adaptive neuro-fuzzy inference system. Initially, the cluster head and cluster node are formed by calculating the weight of the node using ANFIS. The vehicle node with the highest weight is selected as the cluster head and vehicles traveling in the same locality are selected as the cluster node. The weight of the particular node is framed by the Sugeno Fuzzy inference system IF-THEN rules. The defuzzified output is the weight of the node. Next, nodeto-node secure data transfer is initiated by TASFIS for emergency messages that need to be transmitted immediately. The Sugeno Fuzzy Inference system is used to select a genuine node for emergency data transfer. Section 3.1 gives a brief explanation of the ANFIS model.

Adaptive Neuro-Fuzzy Inference System Model for VANET
The Adaptive neuro-fuzzy inteference system (ANFIS) is a Takagi Sugenotype fuzzy system with a neural learning network. These structures use Artificial Neural Networks (ANN) and fuzzy logic. ANFIS analyses the node weights training in the neural network and evaluates the Sugeno fuzzy inference system that results in the accurate learning and fine-tuning function of membership function parameters based on linguistic and numerical functions.
If two rules are used, then If-Then rules are used in the ANFIS structure is given as e2145636-3512 Figure 3 shows that there are five layers in the ANFIS architecture. The five layers contain adaptive nodes, the other layers contain fixed nodes. X and Y are inputs, A 1 and B 1 are linguistic variables, p 1 ; q 1 . r 1 are consequent parameters.
Layer 1: First layer membership function as node function with the adaptive parameters for every node i where X is input values, O 1 i is fuzzy variable membership function, A i is adaptive parameters.
Layer 2: In this layer of each node called the fixed node, it is performed based Sugeno fuzzy model Layer 3: In the fixed node calculates each node weights (speed, energy, time) or strength,W i Layer 4: Each node i =, is an adaptive value with node function Layer 5: Fixed particular node calculates overall output as the summation of all input values from layer Updated premise and result values to reduce errors based on the ANFIS algorithm where A and B are set of inputs to apply an artificial neural network-based FIS functionally equivalent to a diffusion inference system, one can apply all the typical neural network training algorithms. In the proposed work, cluster head and cluster member are selected using the Adaptive Fuzzy Neuro-Fuzzy Inference system.

Cluster Head Formation
In the cluster formation with VANET, the nodes are split into smaller groups of mobile vehicles equipped with computing and network equipment. Each collection of the group has a cluster head (CH) who is responsible for all management and coordination tasks of the cluster. The VANET clustering algorithm combines an AI algorithm with an Adaptive neuro-fuzzy inference technique to make clustering more stable and efficient. Figure 4 depicts the block diagram for the formation of cluster head and cluster node selection. Weight-based clustering has been developed to meet these challenges. Vehicles traveling within the same road section, speed, energy, trust, distance between nodes, and angular deflection of the vehicle node are considered suitable for selecting the cluster head. The cluster head is the node selected based on the node weight. The inputs are trained using ANFIS and based on trained parameters crisp weight is got at the output layer. This node with the highest weight is selected as a cluster head.

Algorithm Steps Cluster Head Formation:
Algorithm −1: Cluster Head Formation Fuzzified Input: Vehicle speed, node energy, trust factor of the node, angular deflection of the node, the distance between the nodes. Defuzzified output: Weight of the node Step1: Vehicles are initially grouped as a cluster to make stable and efficient communication. Cluster head candidates are chosen by estimating the distance between the nodes, energy, speed, angular deflection, and trust as the input parameter.
Step2: These Inputs are trained using an Adaptive neuro-fuzzy inference system to give a weighted average output.
Step3: The nodes with higher weight are considered as a cluster head.
Step4: If Node x and Node y have the same weight for getting elected as a cluster head then for the election of the cluster head Trust factor is considered. Trust factors for nodes x and y are compared. If Node y has a higher trust factor, then node y is selected as a CH.
Step5: The Node with a high weight and Trust factor is given a higher priority for becoming a CH In the proposed work for the selection of the cluster head, five parameters are taken as the input with three membership functions each. These fuzzified inputs are given to the Sugeno Fuzzy inference system. IF-THEN rules are framed using AND Connectors. Then ANFIS models are trained using the rules framed. For the selection of the cluster head, five inputs are used with the three membership functions hence there were 243 rules framed for electing the    Table 2 shows the calculation of the weight factor. Number of IF-THEN rules framed = 3 5 = 243 rules. Figures 5 and 6 show the highway constraint of the network topology, and the vehicle naturally moves in groups on the road with distance and speed. These factors cause the development of VANET clustering algorithms to reduce bandwidth usage and give high efficiency and reliability to VANET communication.

Selection Parameter for the Formation of the Cluster Member
The vehicles will be in a distributed ad hoc structure at the initial stage. The ANFIS model chooses the cluster head based on the node's weight. These cluster heads are chosen to decrease the bandwidth usage and increase the efficiency of the communication network.
After the selection of the cluster head, cluster members are selected. Road side unit sends the CH Vehicle identity to all the other nodes, then the nodes traveling on the same roadside send the message to the CH requesting to join as a cluster member. Now cluster head checks the distance of the node from its location, the speed of the vehicle, Node energy, and the Trust factor of the node. Each node is trained using ANFIS. Here, for selecting a cluster member, four inputs are given with three membership functions, and 81 rules are framed for selecting a cluster member. After getting trained using ANFIS, higher weights nodes are selected as a cluster member, and the node with the low weight is rejected from the communication link. Cluster member is a node that joins the cluster head. Each node joining the cluster head should be adequately validated.

Algorithm −2 : Cluster Member Formation
Fuzzified Input: Distance of the node from CH, Mobility of the joining node, Node trust factor, energy of the node Defuzzified output: Weight of the node Step 1: The Cluster head candidates are chosen based on the high weight factor of the node.
Step 2: Next step is to select a cluster member. Cluster members are chosen based on the selected input parameter.
Step 3: Four input parameters are given to the Sugeno fuzzy inference block. The input parameter is specified with their membership function as Low, Medium, High, Step 4: After training this input with Sugeno ANFIS, the weight of each node is calculated.
Step 5: The node with the highest weight factor is chosen as the cluster member, medium weight may be chosen by analyzing the trust factor of the node, low weight nodes are blocked by joining the cluster head node.
Step 6: Now Cluster candidates or members are chosen for each cluster head.

Node-to-Node Trust Authentication for Packet Transmission
After the cluster head selection, the vehicle node sends the message to the cluster head to become its cluster member. The cluster head should allow only the nodes which come under its covering range, it should only accept the trusted node, not the malicious node The trustworthiness estimation is done by the cluster head (CH) for selecting the cluster member.

Steps for trust-based authentication
Step 1: Initially, the Vehicles are formed as a cluster.
Step 2: Each node is estimated with a trust degree.
Step 3: In each cluster, CH is selected based on the node weight Step 4: Vehicles are followed by validators within each cluster.
Step 5: Trustworthiness levels of vehicles with abnormal malicious attacks as verified by CH Step 6: Unusual nodes with low trust are isolated by CA Step 7: Node-to-node authentication is further increased by calculating the weight of the node based on the input parameters Node energy, mobility, and trust degree calculated.
Step 8: End the process Initially, it transfers the key pairs and permits would be distributed to the formal nodes that wanted to join the ad-hoc network. It can enter the key manually or by secure transmission protocol to protect the vehicle transmitting the information. A private key (symmetric key) is only one secret key and the certificate can be used to communicate with other vehicles on the VANET. The vehicle communicates with CA via RSU (Roadside Unit). After cluster head and cluster member selection the nodes can either transfer the data inside its cluster or with another cluster. When data are transmitted from one node to another then node-to-node trust authentication should be carried out. Where T-Trust degree, T dtd , is the direct trust degree. The authentication node will submit its identity and certificate to the received node. The authentication node first checks the Certified Authority (CA) with the cluster head public key. It challenges the node by sending the private key to the destination to check the corresponding public key.
This selection of CH and CM efficiently transfers broadcasted messages with a minimum delay. Every vehicle consists of an on-board unit that connects with other nodes using DSRC -dedicated short-range communication protocol. The message format in VANET can be divided into two types as basic safety messages and emergency-driven messages. Basic safety messages include anti-crash warnings, pedestrian crossing, etc. The emergency message alerts the driver that there is an accident ahead and chooses an alternate path when providing a way to an ambulance. When some vehicle users have been stalked, emergency-type messages are forwarded to other users to seek attention from the genuine user to get help. Figure 7 describes the block diagram of the secure data transfer using TASFIS. The Trust Authentication Sugeno fuzzy inference system is used in VANET to select a safe route for transferring emergency-driven messages. Based on the Trust Authentication Sugeno fuzzy algorithm, the node weight, transmission range, and hop count is taken with three membership function each. The Sugeno method has developed a systematic approach to generating fuzzy rules from a particular input/output dataset. Trust Authentication Sugano type FIS calculates weighted average output. IF-THEN rules used in TASFIS help the node user to select the optimal and safest path to transfer the emergency data packets. In TASFIS, minimum rules are only framed using Sugeno fuzzy inference system to get crisp output. Table 3 shows the rules framed for secure data transfer from one node to another node.

Enhanced Cluster-Based Routing Protocol
In the proposed work, packet transmission is done based on the designed algorithm. Cluster heads are elected based on the average speed a node maintains, the distance of the node from its cluster member, angular deflection, trust metrics, and the energy of the node. The parameters are trained using an adaptive neuro-fuzzy inference system to select the best and trusted node as a cluster head responsible for transferring secure messages to other nodes. After the cluster head cluster member is formed, it is again trained using ANFIS and ensured that only a trusted node joins the cluster head. If a node wants to leave and join the other cluster, it can leave the network and join the other cluster head by sending a request message. Packets are transmitted within its cluster head and member. This cluster head and cluster member communication of the network increases the efficiency of the network, reduces traffic delay of the network, increases node lifetime reduces the bandwidth usage of the network.

Result and Discussion
The proposed work is done using Network Simulator-3.34 and experimental results are analyzed. The proposed protocol AI-TASFIS(ECRP) is Artificial Intelligence-Trust Authentication Sugeno Fuzzy inference system with Enhanced Cluster-based Routing protocol performance are analyzed and compared with the existing routing protocol. Fahad and Ali (2020) proposed a paper on Fuzzy-based multiobjective routing protocol in VANET and compared routing algorithms such as the Optimized fuzzy Ad-hoc ondemand Distance Vector (OFAODV), Fuzzy Ad-hoc On-demand Distance Vector (FAODV), and AODV routing protocol [26]. The proposed method is compared with the existing method in performance measures such as throughput, packet delivery ratio, End-to-End Delay, and Packet loss ratio. Table 4 shows the simulation parameter used.

Throughput:
Throughput is defined as the total number of packets received at the destination to the time taken.

End-to-End Delay (s):
End-to-end delay refers to the sum of all delays in the link caused by intermediate nodes -the total time taken by a packet to reach from a sender to receiver vehicle. It is computed as the sum of all communication delays.

Packet delivery ratio (%):
The packet delivery ratio is defined as the ratio of the total packets received at the destination to the total packets generated at the source node.

PDR in%
Packet loss ratio (%):  Packet loss ratio is defined as the ratio of the number of lost packets to the received packets.

PLR in% ð Þ ¼ Number of lost Packet Number of received Packet
� 100 Tables 5 and 6 show the performance analysis of throughput, packet delivery ratio, packet loss ratio, and end-to-end delay of existing and proposed approach. Figures 8-11 show the performance analysis of throughput, packet delivery ratio, end-to-end delay, and packet loss ratio. respectively. The proposed algorithm AI TASFIS(ECRP) is compared with the existing protocol OFAODV, FAODV, and AODV. When compared to the existing algorithm. AI TASFIS(ECRP) provides a high packet delivery ratio of 95%, lower End-to-End delay of 0.16s, high throughput of 732.310 kbps, and less packet loss ratio of 5%

Conclusion
Vehicle Ad Hoc Network (VANET) and its support services are essential to an intelligent transportation system. Fuzzy packages are suitable for approximate reasoning, and estimates can be used to make conclusions when information is incomplete or uncertain. Artificial Intelligence-based Sugeno Fuzzy Inference System (AI-TASFIS) has the knowledge and experience of experts in the design of regulatory systems. The process by which a set of Fuzzy control rules defines input/output relations. Artificial Intelligence calculates a vehicle's reliability based on its trust metrics. AI-TASFIS concentrates both on emergency and basic safety messages. The simulation results show the effectiveness of the proposed method.
In the proposed Artificial Intelligence-based Sugeno Fuzzy Inference System (AI-TASFIS) analysis, the packet delivery ratio is 95%, delay performance is 0.16 s, throughput performance is 732.311 kbps, and packet delivery ratio is 95%. By adopting AI technology, the effectiveness of the proposed can be further improved.

Disclosure statement
No potential conflict of interest was reported by the author(s).

Funding
The author(s) received no specific funding for this study.

Data Availability
All the data used are mentioned in the manuscript itself.