Research Article

Intelligent Intrusion Detection System for VANET Using Machine Learning and Deep Learning Approaches

Algorithm 1

Attack detection and classification using ANFIS.
Input: Real-time traffic from VANET;
Output: Known and unknown attack;
1. Receives the real-time traffic from VANET environmental system;
2. Apply pre-processing to separate the header of individual data from each attacked vehicle
   , where is the total number of vehicles in VANET system.
3. Apply pre-processing to separate the header of individual data from each non-attacked vehicle , where is the total number of vehicles in VANET system.
4. For each do
5. Compute
6. End for
7. Sort the trained patterns.
8. Apply pre-processing to separate the header of individual data from each test vehicle
   , where is the total number of test vehicles in VANET system.
9. For each do
10. Compute
11. End for
12. Apply the criteria to identify the known attacks and unknown attacks using