-
1:
Load RF dataset
-
2:
Define the inputs and the outputs
-
3:
Pre-process the data
-
4:
Encoding the outputs with respect to the inputs
-
5:
Split the data into : training (70%) and testing (30%) sets
-
6:
Define the input variables and find the optimal parameters using
-
7:
Records
-
8:
Train the system on by calling procedure
-
9:
Test the system by using and evaluate the required metrics
-
10:
-
11:
procedureClassifier()
-
12:
Use the optimal parameters for KNN and XGBoost
-
13:
Use ensemble learning based on KNN and XGBoost
-
14:
Train and fit the classifier using
-
15:
Predict the test samples
-
16:
end procedure
-
17:
-
18:
procedureHierarchicalApproach()
-
19:
from will pass the first to specify the availability of the UAV (2 classes: 0-No UAV, 1-UAV)
-
20:
if
then
-
21:
-
22:
go to end procedure and return the predicted class ()
-
23:
else
-
24:
will pass the second to specify the type of the UAV (3 classes: 0-Bebop UAV, 1-AR UAV, 2-Phantom3 UAV)
-
25:
if
then
-
26:
-
27:
go to end procedure and return the predicted class: Phantom3 UAV ()
-
28:
else
-
29:
if
then
-
30:
will pass the third to specify the mode of the Bebop UAV (4 classes: 0-ON (), 1-Hovering (), 2-Flying (), 3-Recording ())
-
31:
if
then
-
32:
-
33:
go to end procedure and return the predicted class: Bebop UAV with ON mode ()
-
34:
else if
then
-
35:
-
36:
go to end procedure and return the predicted class: Bebop UAV with Hovering mode ()
-
37:
else if
then
-
38:
-
39:
go to end procedure and return the predicted class: Bebop UAV with Flying mode ()
-
40:
else
-
41:
-
42:
go to end procedure and return the predicted class: Bebop UAV with Recording mode ()
-
43:
end if
-
44:
else
-
45:
will pass the fourth to specify the mode of the AR UAV
(4 classes: 0-ON (), 1-Hovering (), 2-Flying (), 3-Recording ())
-
46:
if
then
-
47:
-
48:
go to end procedure and return the predicted class: AR UAV with ON mode ()
-
49:
else if
then
-
50:
-
51:
go to end procedure and return the predicted class: AR UAV with Hovering mode ()
-
52:
else if
then
-
53:
-
54:
go to end procedure and return the predicted class: AR UAV with Flying mode ()
-
55:
else
-
56:
-
57:
go to end procedure and return the predicted class: AR UAV with Recording mode ()
-
58:
end if
-
59:
end if
-
60:
end if
-
61:
end if
-
62:
Return predicted class () and processing time ()
-
63:
end procedure