Using CNN
Using CNN
Using CNN
Abstract— In image processing, it is essential to detect and Fig. 1 make it challenging to detect, identify, and correctly
track air targets, especially UAVs. In this paper, we detect the localize them ]2[. because of high variability among the
flying drone using a fisheye camera. In the field of diagnosis and objects of a similar kind, object detection in the physical
classification of objects, there are always many problems that environment is an onerous duty, furthermore changes in
prevent the development of rapid and significant progress in appearance, illumination, and perspective reduce the
this area. During the previous decades, a couple of advanced efficiency of a detector. Most of the detectors perform
classification methods such as convolutional neural networks ineffectively within the case of changes to the scale and
and support vector machines have been developed. In this study, distortion]2[.
the drone was detected using three methods of classification of
convolutional neural network (CNN), support vector machine Classifications can be divided into available and
(SVM), and nearest neighbor. The outcomes show that CNN, advanced categories. General classification methods include
SVM, and nearest neighbor have total accuracy of 95%, 88%, Maximum likelihood classification (MLC) and Minimum
and 80%, respectively. Compared with other classifiers with the distance classification (MDC). Advanced classifications,
same experimental conditions, the accuracy of the convolutional artificial neural networks (ANNs), Decision trees, support
neural network classifier is satisfactory. vector machines, and object-oriented classifications can also
be mentioned ]3[ .
Keywords—Drone Detection; Bird Detection; Classification;
Convolutional Neural Network; Support Vector Machine; Nearest In general, the classification is done in several stages in
Neighbor such a way that first the required data, which are called train
data, are collected in various ways. then the selected
I. INTRODUCTION classification algorithm is applied to these images, and the
whole Images are classified Then the accuracy of the desired
With the fast advancement within the field of unmanned classification can be examined using test data ]3[.
vehicles and innovation utilized to build them, the number of
drones produced for military, commercial, or recreational The remains of the paper are as follows: In Section II, it
purposes increments pointedly as time passes. This presents a brief of related work. Section III, shows the
circumstance presents urgent protection and security dangers proposed methods. Analysis of the simulation results is
when cameras or weapons are appended to the drones. Thus, presented in Section IV. Then, some conclusions are
detection of the position and properties, similar to speed and discussed in Section V.
track, of drones before an undesirable happening, has gotten
to be vital]1[.
Speed and move capability of drones, their similarity to
birds in appearance when seen from a distance, as shown in
II. RELATED WORK In Fig. 2, using the 16-NN rule, the point denoted by a
The author of [4] proposed a drone detection solution black dot is classified into the class of the blue points. Out of
based on the Radio Frequency (RF) emitted during the live the sixteen nearest neighbors, five are red, and eleven are
communication session between the drone and its controller blue. The circle indicates the area within which the sixteen
using a Deep Learning (DL) technique, namely, the nearest neighbors lie]11[ .
Convolutional Neural Network (CNN). Mejias et al. used
morphological pre-preparing and Hidden Markov Model
channels to distinguish and track small unmanned vehicles
]5[.
In [6], the authors presented a comprehensive review of
the literature, addressing the concept of drone detection
through object detection and classification using Machine
Learning technologies. Essentially, the application of machine
learning facilitate the drone detection in a binary classification
model as “drone” or “no drone”. However, some research in
the literature goes beyond the traditional classification to a
multiclass classification which identifies drone types.
Fig. 2. 16- Nearest Neighbor
Goke et al. utilized cascaded boosted classifiers with some
local highlight descriptors ]7[. Using a Doppler radar system, B. Support Vector Machine
Michael et al. [8] detected a flying drone in which data would
be gathered by a two-channel Doppler radar and used for In a variety of situations, we need to categorize the
Range-Doppler-azimuth processing. In [9], the drone is information we have. In machine learning, this is called
detected using a convolutional neural network by audio classification. A support vector machine (SVM) is a set of
signals received by the microphone. Because the drone's monitoring algorithms that analyzes data. In SVM, some
harmonic properties are different from objects such as labeled data must be used to classify information ]12[. In
motorcycles, etc. that make similar noises, it has used the general, data in two-dimensional space is separated by a line
Short-Time Fourier Transform (STFT) to extract features. In in three-dimensional space by a plane, and in n-dimensional
[10], drone is detected using frequency-modulated continuous space by a hyperplane.
wave (FMCW) radar system. The system uses antennas with The Support vector is closest data to the decision
a frequency band of 11 to 11.15 GHz to produce a linear wave boundary, and margin is also the distance of the support
of sawtooth antennas with a gain of 33.7dBi. Metal holes are vectors to the decision boundary. The goal is maximize the
used between and on both sides of the antenna to minimize distance of the support vectors from the decision boundary.
path interference. In this method, the drone is detected at a Relation (1) represent the decision boundary equation that w
distance of more than 500 meters. is slope and b is bias of line. The purpose of determining w
There are several methods for detecting Drones. In this and b is not only to classify the data correctly but also to have
article, machine learning strategies such as, Convolutional the decision distance as far as possible with the support
Neural Network (CNN), K-Nearest Neighbor (KNN), Support vectors which is expressed mathematically in equation (2)
Vector Machine (SVM) are utilized and then compared. and (3) ]3[
wt 𝑥+b=0 (1)
III. METHODS
As mentioned in this article, machine learning strategies
such as, convolutional neural network, support vector +1 ,if xt ∈c1 (2)
machine, and nearest neighbor, have been utilized to detect x=(xt ,yt ) yt = { }
-1 ,if xt ∈c2
drones. In this segment, the presentation of the proposed
methods will be inspected. The characteristics of the layers
used in CNN will also be stated.
wt 𝑥 𝑡 +b ≥+1 ,for yt =+1 (3)
{ t 𝑡 }
w 𝑥 +b ≥-1 ,for yt = -1
A. K-Nearest Neighbor
The k-nearest neighbor is an optimization issue to
discover the nearest dots in metric spaces. The nearest X is a point on the decision boundary, and w is vector
neighbor algorithm is used as the first classification model for determine slope ]13[ . Thus, by finding w and b, the
because this model is simple and is robust against a set of decision boundary equation can be obtained.
noisy data and is also useful and applicable for a large data
set. It is the form that assigns data that does not belong to a
category to the group that has the most data around
anonymous data.
2020 6th Iranian Conference on Signal Processing and Intelligent Systems (ICSPIS)
TP+TN (6)
Accuracy=
TP+FP+FN+TN
TP (7)
Sensitivity=
TP+FN
TP (8)
Precision=
TP+FP
Table II shows the classification test using the test data.
Fig. 4. Flowchart of the proposed drone detection algorithm As it turns out, convolutional neural network classifiers
perform better in drone detection than other classifiers.
C. Operation of Classification
According to Fig. 5.a, in exceptional cases such as the TABLE II. COMPARISON RESULTS OF THE CLASSIFIERS
drone being halfway, since it is very similar to a bird, even
the CNN algorithm is not able to detect the drone and Classifier
Sensitivity Precision Accuracy
misidentifies the bird . Fig. 5.b, because the two birds are )%( )%( )%(
very close to each other, the KNN classifier misdiagnoses
the drone but is correctly identified by CNN and SVM. As CNN 93 97 95
shown in Table II, KNN performs worse than SVM and
CNN . SVM 91 86 88
KNN 94 74 80
a b
Fig. 5. Examples of undetectable samples
2020 6th Iranian Conference on Signal Processing and Intelligent Systems (ICSPIS)
Table III shows that the more convolutional layers and REFERENCES
Epoch, the more accurate the diagnosis, but the more time is [1] C. Aker and S. Kalkan, "Using deep networks for drone detection," in
needed for training. It should be noted that this increase will 2017 14th IEEE International Conference on Advanced Video and
improve performance to some extent, will not have much Signal Based Surveillance (AVSS), 2017, pp. 1-6.
effect on program performance. [2] M. Saqib, S. D. Khan, N. Sharma, and M. Blumenstein, "A study on
detecting drones using deep convolutional neural networks," in 2017
14th IEEE International Conference on Advanced Video and Signal
TABLE III. COMPARISON RESULTS OF CNN BASED ON THE Based Surveillance (AVSS), 2017, pp. 1-5.
NUMBER OF LAYERS [3] A. Richards J., Remote sensing digital image analysis, fifth ed.
springer, 2013 p. 494
two Conv layer four Conv layer
[4] S. Al-Emadi and F. Al-Senaid, "Drone Detection Approach Based on
CNN Properties Radio-Frequency Using Convolutional Neural Network," 2020 IEEE
60 Epoch 80 Epoch International Conference on Informatics, IoT, and Enabling
Technologies (ICIoT), Doha, Qatar, 2020, pp. 29-34, doi:
10.1109/ICIoT48696.2020.9089489.
Time 9min, 56 sec 14 min, 28sec [5] L. Mejias, S. McNamara, J. Lai, and J. Ford, "Vision-based detection
and tracking of aerial targets for UAV collision avoidance," in 2010
IEEE/RSJ International Conference on Intelligent Robots and Systems,
Accuracy (%) 85 95 2010, pp. 87-92.
[6] B. Taha and A. Shoufan, "Machine Learning-Based Drone Detection
and Classification: State-of-the-Art in Research," in IEEE Access, vol.
7, pp. 138669-138682, 2019, doi: 10.1109/ACCESS.2019.2942944.
The specifications of the system with which the above
[7] G. U. o. F. Gokc ¨ ¸e, E. S¸ ahin, and S. Kalkan. , "Vision-Based
results are obtained are as follows: Detection and Distance Estimation of Micro Unmanned Aerial
Vehicles," 2015.
[8] M. Jian, Z. Lu, and V. C. Chen, "Drone detection and tracking based
• Intel Core i5-4200M (2.5GHZ) on phase-interferometric Doppler radar," in 2018 IEEE Radar
• 2 GB DDR3 L Memory Conference (RadarConf18), 2018, pp. 1146-1149.
• 1TB HDD [9] Y. Seo, B. Jang, and S. Im, "Drone Detection Using Convolutional
Neural Networks with Acoustic STFT Features," in 2018 15th IEEE
For example, Fig. 6 shows a video frame in which the International Conference on Advanced Video and Signal Based
drone is correctly separated from the birds. Surveillance (AVSS), 2018, pp. 1-6.
[10] Park and S. Park, "Configuration of an X-band FMCW radar targeted
for drone detection," in 2017 International Symposium on Antennas
and Propagation (ISAP), 2017, pp. 1-2.
[11] S. Theodoridis and K. Koutroumbas, "Pattern recognition," Academic
Press, 2009.
[12] R. Fernández, Marcos, José, "Computer vision for Pedestrian detection
using Histograms of Oriented Gradients," 2014.
[13] A. Keshavarz, Qasemian Yazdi,'' A fast vector machine-based backup
algorithm for classifying hyperspectral images using spatial
correlation'', Electrical Engineering and Computer Engineering Iran, in
Fig. 6. Drone Detection Using CNN Persian
[14] M. A. a. P. L. Bartlett, Neural network learning: Theoretical
foundations. Cambridge university press, 2009.
V. CONCLUSION [15] N. Dalal, "Finding People in Images and Videos," 07/17 2006.
Today, drones are used for various purposes. These [16] K. Mihreteab, M. Iwahashi, and M. Yamamoto, "Crow birds detection
include goals such as protection, passage to small areas, using HOG and CS-LBP," in 2012 International Symposium on
Intelligent Signal Processing and Communications Systems, 2012, pp.
espionage uses, and so on. The small size and low noise of 406-409.
the drone make its role more critical. Therefore, drone
[17] X. Li, Z. Huang, F. Wang, X. Wang, and T. Liu, "Toward
detection has also become important for security issues. In Convolutional Neural Networks on Pulse Repetition Interval
this paper, the proposed algorithm has two stages of training Modulation Recognition," IEEE Communications Letters, vol. 22, no.
and testing. In the training phase, the properties of all the 11, pp. 2286-2289, 2018.
images used were extracted, and a convolutional neural
network was trained using these properties. Then, in the next
step of experiment, the input image was classified by a
trained system. Therefore, the confusion between some
similar parts of the drone and the bird was eliminated using
the convolutional neural network classification model. The
convolutional neural network model improves the efficiency
in comparison of the support vector machine and the nearest
neighbor in detecting similar parts of the two objects.