## A k -nearest neighbors approach to the design of radar detectors

Angelo Coluccia a, ∗ , Alessio Fascista , Giuseppe Ricci a a

- a DII, Universit` del Salento, Via Monteroni, 73100 Lecce, Italy. a

## Abstract

A k -nearest neighbors (KNN) approach to the design of radar detectors is investigated. The idea is to start with either raw data or well-known radar receiver statistics as feature vector to be fed to the KNN decision rule. In the latter case, the probability of false alarm and probability of detection are characterized in closed-form; moreover, it is proved that the detector possesses the constant false alarm rate (CFAR) property and the relevant performance parameters are identified. Simulation examples are provided to illustrate the effectiveness of the proposed approach.

Keywords: k -nearest neighbors (KNN), radar detection, constant false alarm rate (CFAR) property, generalized likelihood ratio test (GLRT)

## 1. Introduction

The problem of radar detection has received significant attention over the past decades and is still an active field of research, mostly employing

∗ Corresponding author

Email addresses:

angelo.coluccia@unisalento.it

(Angelo Coluccia),

alessio.fascista@unisalento.it (Alessio Fascista), giuseppe.ricci@unisalento.it (Giuseppe Ricci)

statistical signal processing techniques based on hypothesis testing theory. The classical detection framework has been set up by Kelly in his pioneering paper [1]. He derived the generalized likelihood ratio test (GLRT) based on the cell under test (CUT), also referred to as primary data, and a set of training or secondary data; such data are supposed to be independent and identically distributed random vectors, free of signal components, and sharing with the CUT the statistical characteristics of the noise. In [2] the performance of such a detector is assessed when the actual steering vector is not aligned with the nominal one. Later, many works have addressed the problem of enhancing either the selectivity or the robustness of GLRT-based detectors to mismatches. In particular, the adaptive matched filter (AMF) [3] is a prominent example of robust detector, while the adaptive coherence estimator (ACE, also known as adaptive normalized matched filter) [4, 5] and Kelly's detector are selective receivers, i.e., they have excellent rejection capabilities of signals arriving from directions different from the nominal one. Other detectors try to explicitly take into account rejection capabilities at the design stage, as for instance those based on the adaptive beamformer orthogonal rejection test (ABORT) [6] or related ideas [7, 8, 9, 10].

Recently, the possibility to bring tools from machine learning to the radar context has started to be investigated. For instance, support vector machines (SVM) have been proposed for the design of radar detectors: in particular, a linear SVM approach has been adopted in [11], that is able to detect small SNR signals in situations where a cell-averaging constant false alarm rate (CA-CFAR) scheme is unable. An SVM-based CFAR detector has also been proposed in [12]: it is robust in non-homogeneous environments including

multiple targets and clutter edge. Notably, SVM-based approaches are showing their effectiveness also for detection problems outside the radar domain, namely spectrum sensing [13, 14, 15]. The k -nearest neighbors (KNN) approach has been used to detect radar signals in non-Gaussian noise [16]. Therein, modified Kelly's and ACE stastistics are the entries of the feature vectors. The proposed detector is not CFAR, but its probability of false alarm ( P fa ) is not very sensitive to unknown disturbance (clutter plus thermal noise) statistics. Finally, deep learning tools have been applied to detection, classification, and waveform generation for automotive radars [17, 18, 19].

One of the main issues with the application of machine learning tools to radar detection is that it is generally very difficult to theoretically assess the performance of the resulting receivers. In this paper, we make a step towards this direction by investigating the potential of a novel family of detectors based on the KNN approach. The latter is in fact one of the simplest machine learning algorithms for classification, since it basically performs computation of distances with respect to a training set, followed by a count-based decision rule (e.g., majority); by contrast, SVM for instance requires to solve numerically an optimization problem to obtain the decision rule, which hampers its theoretical analysis. The contribution of the present paper is twofold. First, we statistically characterize the KNN detection procedure, providing general closed-form expressions for the probability of false alarm and probability of detection; second, we apply the proposed framework to the design and analysis of radar detectors based on different criteria (feature vectors). Numerical results are provided to illustrate the effectiveness of the detectors that can be obtained by the proposed approach.

The remaining of the paper is organized as follows. Sec. 2 sets up the KNN-based detection problem and provides a general characterization of the achievable performance. Sec. 3 is instead devoted to the design and analysis of radar detectors based on the proposed framework (derivation details reported in Appendix A). We conclude the paper in Sec. 4.

## 2. KNN-based detectors

## 2.1. Problem formulation

Let o ∈ O n denote the n -dimensional observation vector containing the data collected over a given space O n ; they can be in general measurements obtained through a set of sensors, information stored in a database, etc. Data are typically mapped into a lower dimensional space where some distinguishing characteristics of the observed phenomenon tend to emerge. This process is known as feature extraction and can be defined as a function F : O n → F m that maps the observation vector o ∈ O n into a feature vector x ∈ F m , i.e., x = F ( o ). As to F m , it represents the feature space, assumed to be an m -dimensional Euclidean vector space ( ‖·‖ will denote the Euclidean norm). In this context, a general two-class classification problem can be formulated as the following binary hypothesis testing problem

$$\begin{cases} \ H _ { 0 } \colon \ x \sim \mathcal { D } ^ { 0 } \\ \ H _ { 1 } \colon \ x \sim \mathcal { D } ^ { 1 } \end{cases}$$

and consists in determining whether the feature vector x is distributed according to D 0 ( H 0 hypothesis) or D 1 ( H 1 hypothesis) that in general will depend on unknown parameters. Hereafter, we use superscripts 0 and 1 to indicate data belonging to the H 0 and H 1 hypothesis, respectively. To assess

the performance of classifiers for problem (1), we will resort to the wellestablished type I and type II error metrics. More specifically, type I errors occur if the decision scheme decides for H 1 when H 0 is in force; if the H 0 hypothesis is simple, i.e., completely specified, the probability of a type I error is commonly denoted probability of false alarm ( P fa ). On the other hand, type II errors occur whenever the decision scheme decides for H 0 when H 1 is true (missed detection) and its probability is equal to 1 -P d with P d denoting the probability of detection, that is, the probability to decide for H 1 when H 1 holds true. Radar detectors are commonly designed to guarantee P d values as close as possible to one for a preassigned value of the P fa .

To derive the KNN classifier, we need a training set containing representative examples of the observed data under both H 0 and H 1 hypotheses. Without loss of generality, we assume that N T independent observations of the raw data o under both H 0 and H 1 are available. Observation vectors o 0 i (under H 0 ) are used to construct the corresponding feature vectors x 0 i , i = 1 , . . . , N T . Similarly, observation vectors o 1 i (under H 1 ) are used to construct the feature vectors x 1 i , i = 1 , . . . , N T . Accordingly, we obtain the following training set T = T 0 ∪ T 1 with

$$\bar { \mathcal { T } } ^ { 0 } = \left \{ t _ { i } ^ { 0 } = \begin{bmatrix} x _ { i } ^ { 0 } \\ 0 \end{bmatrix} \in F ^ { ( m + 1 ) \times 1 }, i = 1, \dots, N _ { T } \right \}$$

where x 0 i = [ x 0 i [1] · · · x 0 i [ m ]] T ( T denoting transposition), x 0 i [ j , j ] = 1 , . . . , m , denoting the j th feature obtained from the data under H 0 , and similarly

$$\mu _ { 0 } ^ { 1 } = \left \{ t _ { i } ^ { 1 } = \begin{bmatrix} x _ { i } ^ { 1 } \\ 1 \end{bmatrix} \in F ^ { ( m + 1 ) \times 1 }, i = 1, \dots, N _ { T } \right \}$$

with x 1 i = [ x 1 i [1] · · · x 1 i [ m ]] T . Fig. 1 shows a two-dimensional example.

Figure 1: Graphical representation of a two-dimensional feature space, with N T = 6 training data (circles and triangles) for each hypothesis. The data under test is depicted as a (blue) square, and its k = 5 nearest neighbors are enclosed in a dashed ellipse: in this example, for M = 3 the resulting decision would be H 0 . The solid (red) ellipse, conversely, groups the first k -M elements of T 0 and the first N T -M elements of T 1 , which for the specific case at hand correspond to an unfavorable realization of the event B j 1 : j k -M ; i 1 : i NT -M .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-cfbba945-4d4e-4fd3-91f4-945308eedc6e.jpg)

To implement the KNN-based decision rule, we associate to a given input more precisely, the elements of the training sample data under test o the feature vector x = [ x [1] · · · x m [ ]] T ; denoting by t i =   x i glyph[lscript] i   , i = 1 , . . . , 2 N T ,

T (the 'label' glyph[lscript] i is either 0 or 1 depending on the fact that t i belongs to T 0 or T 1 , respectively), we compute the following statistic

$$\overline { \ell } = \frac { 1 } { k } \sum _ { \{ i \colon \, } x _ { i \in N _ { k } ( x ) \} } \ell _ { i }$$

with N k ( x ) the set of the k vectors x i s closest to the test vector x according to the Euclidean norm ‖·‖ ('the k nearest neighbors of x '), as highlighted in Fig. 1. Finally, H 0 or H 1 is selected according to the decision rule

$$\bar { \ell } \stackrel { H _ { 1 } } { \leq } T$$

where T is a chosen detection threshold. Notice that, due to the fact that the glyph[lscript] i are binary digits, the test can be equivalently re-written as

$$\begin{cases} \text{ choose } \ H _ { 0 } \, \colon \text{ if } \# \, x _ { i } ^ { 1 } \in N _ { k } \left ( x \right ) \leq M \\ \text{ choose } \ H _ { 1 } \, \colon \text{ otherwise } \end{cases}$$

with M the greatest integer such that T ≥ M/k and # stands for 'the number of'. Notice also that glyph[lscript] is a discrete random variable and, hence, different values of T do not necessarily correspond to different values of P fa (for a deterministic test).

## 2.2. Performance assessment of KNN detectors

In this section, we provide closed-form analytical formulas for the P fa and the P d of the proposed KNN-based approach, which are useful to predict the achievable classification performance and offer some insights to interpret the classification process, as shown later in Sec. 3.

For future reference E [ · ] denotes the expectation operator,

$$x _ { 1 \colon k - M } ^ { 0 } = \left [ ( x _ { 1 } ^ { 0 } ) ^ { T } \ \cdots \ ( x _ { k - M } ^ { 0 } ) ^ { T } \right ] ^ { T }, \ \ x _ { 1 \colon N _ { T } - M } ^ { 1 } = \left [ ( x _ { 1 } ^ { 1 } ) ^ { T } \ \cdots \ ( x _ { N _ { T } - M } ^ { 1 } ) ^ { T } \right ] ^ { T }, \\ y = \left [ x ^ { T } \ \left ( x _ { 1 \colon k - M } ^ { 0 } \right ) ^ { T } \ \left ( x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) ^ { T } \right ] ^ { T }$$

For the case of a generic vector of features x , we have the following result.

Proposition 1. Let x ∈ F m be an m -dimensional vector of features, constructed from the data under test o ∈ O n , and T = T 0 ∪ T 1 represent a training set containing N T independent realizations under both H 0 and H 1 hypotheses, denoted as x 0 i and x 1 i , respectively, i = 1 , . . . , N T (ref. eqs. (2)(3)). The following expression holds true for the probability that the KNNbased decision statistic in eq. (4) exceeds the threshold T :

$$P ( \bar { \ell } > T ) \ & = \ 1 - \left ( \begin{array} { c c } N _ { T } \\ k - M \end{array} \right ) \left ( \begin{array} { c } N _ { T } \\ N _ { T } - M \end{array} \right ) \\ & \times \ & E _ { \boldsymbol y } \left [ I _ { \boldsymbol y } ( \boldsymbol y ) \left ( p _ { 0 } \left ( x, x _ { 1 \colon k - M } ^ { 0 } \right ) \right ) ^ { N _ { T } - k + M } \left ( p _ { 1 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \right ) ^ { M } \right ]$$

with

$$p _ { 0 } \left ( x, x _ { 1 \colon k - M } ^ { 0 } \right ) = P \left ( \left \{ \| x ^ { 0 } - x \| \geq \max _ { r \in \{ 1, \dots, k - M \} } \| x _ { r } ^ { 0 } - x \| \right \} \left | x, x _ { 1 \colon k - M } ^ { 0 } \right )$$

$$p _ { 1 } ( x, x ^ { 1 } _ { 1 \colon N _ { T } - M } ) = P \left ( \left \{ \| x ^ { 1 } - x \| \leq \min _ { r \in \{ 1, \dots, N _ { T } - M \} } \| x ^ { 1 } _ { r } - x \| \right \} \left | x, x ^ { 1 } _ { 1 \colon N _ { T } - M } \right )$$

where x 0 and x 1 are generic random variables distributed according to D 0 or D 1 , respectively (ref. eq. (1)), and I Y ( y ) is the indicator function of the set Y introduced to constrain the above probability to be nonzero only if y ∈ Y ,

$$\mathcal { Y } = \{ y \colon & \| x _ { 1 } ^ { 0 } - x \| \leq \| x _ { 1 } ^ { 1 } - x \|, \dots, \| x _ { 1 } ^ { 0 } - x \| \leq \| x _ { N _ { T } - M } ^ { 1 } - x \|, \dots, \\ & \| x _ { k - M } ^ { 0 } - x \| \leq \| x _ { 1 } ^ { 1 } - x \|, \dots, \| x _ { k - M } ^ { 0 } - x \| \leq \| x _ { N _ { T } - M } ^ { 1 } - x \| \}.$$

Proof. The proof relies on a proper decomposition of the event

$$\left \{ \# \, x _ { i } ^ { 1 } \in N _ { k } \left ( x \right ) \leq M \right \},$$

corresponding to outcomes of the underlying random experiment that lead the KNN classifier to decide for H 0 . Obviously, P glyph[lscript] ( &gt; T ) is the probability of the complementary of the above event. In formulas, the KNN classifier decides for H 0 only if the outcomes of the random experiment belong to

$$\bigcup _ { \stackrel { j _ { 1 }, \dots, j _ { k - M } \in \mathcal { N } _ { T } } { i _ { 1 }, \dots, i _ { N _ { T } - M } \in \mathcal { N } _ { T } } } \mathcal { B } _ { j _ { 1 } \colon j _ { k - M } \colon i _ { 1 } \colon i _ { N _ { T } - M } } ^ { 0 1 }$$

with

$$\mathcal { B } _ { j _ { 1 } \colon j _ { h } ; i _ { 1 } \colon i _ { N _ { T } - ( k - h ) } } ^ { 0 1 } & = \Big \{ \| x _ { j _ { 1 } } ^ { 0 } - x \| \leq \| x _ { i _ { 1 } } ^ { 1 } - x \|, \dots, \| x _ { j _ { 1 } } ^ { 0 } - x \| \leq \| x _ { i _ { N _ { T } - ( k - h ) } ^ { 1 } } ^ { 1 } - x \|, \\ & \dots, \| x _ { j _ { h } } ^ { 0 } - x \| \leq \| x _ { i _ { 1 } } ^ { 1 } - x \|, \dots, \| x _ { j _ { h } } ^ { 0 } - x \| \leq \| x _ { i _ { N _ { T } - ( k - h ) } ^ { 1 } } ^ { 1 } - x \| \Big \}$$

and N T = { 1 , . . . , N T } . In fact, the event B 01 j 1 : j h ; i 1 : i N T -( k -h ) , with h ≤ k , occurs when, given a subset of h feature vectors belonging to T 0 , indexed by j , . . . , j 1 h , and a subset of N T -( k -h ) feature vectors belonging to T 1 , indexed by i 1 , . . . , i N T -( k -h ) , each element in the first subset is closer to the test vector x than any other element in the second subset. Thus, the event defined by eq. (6), where h = k -M , is tantamount to imposing that at most M feature vectors of T 1 belongs to N k ( x ). However, the elements of the

(finite) union in eq. (6) are not mutually exclusive events. For this reason, we introduce the additional events

$$\mathcal { B } _ { j _ { 1 } \colon j _ { h } } ^ { 0 0 } = \left \{ \max _ { s \in \{ j _ { 1 }, \dots, j _ { h } \} } \| x _ { s } ^ { 0 } - x \| \leq \min _ { r \in \mathcal { N } _ { T } \{ j _ { 1 }, \dots, j _ { h } \} } \| x _ { r } ^ { 0 } - x \| \right \}$$

and

$$\mathcal { B } ^ { 1 1 } _ { i _ { 1 } ; i _ { N _ { T } - ( k - h ) } } = \left \{ \min _ { s \in \{ i _ { 1 }, \dots, i _ { N _ { T } - ( k - h ) } \} } \| x ^ { 1 } _ { s } - x \| \geq \max _ { r \in \mathcal { N } _ { T } \left \{ i _ { 1 }, \dots, i _ { N _ { T } - ( k - h ) } \right \} } \| x ^ { 1 } _ { r } - x \| \right \}.$$

As to B 00 j 1 : j h , it denotes the event that the h feature vectors belonging to T 0 and indexed by j , . . . , j 1 h , are the closest to x among all the vectors in the training set T 0 . Similarly, B 11 i 1 : i N T -( k -h ) occurs when the N T -( k -h ) feature vectors, belonging to T 1 and indexed by i 1 , . . . , i N T -( k -h ) , are the farthest from x among all the vectors in the training set T 1 . Using the above definitions, we define the event

$$\mathcal { B } _ { j _ { 1 } \colon j _ { k - M } ; i _ { 1 } \colon i _ { N _ { T } - M } } = \mathcal { B } _ { j _ { 1 } \colon j _ { k - M } ; i _ { 1 } \colon i _ { N _ { T } - M } } ^ { 0 1 } \cap \mathcal { B } _ { j _ { 1 } \colon j _ { k - M } } ^ { 0 0 } \cap \mathcal { B } _ { i _ { 1 } \colon i _ { N _ { T } - M } } ^ { 1 1 }$$

and re-write eq. (6) as the union of mutually exclusive events, i.e.,

$$\bigcup _ { \stackrel { j _ { 1 }, \dots, j _ { k - M } \in \mathcal { N } _ { T } } { i _ { 1 }, \dots, i _ { N _ { T } - M } \in \mathcal { N } _ { T } } } \mathcal { B } _ { j _ { 1 } \colon j _ { k - M } ; i _ { 1 } \colon i _ { N _ { T } - M } }.$$

To give a concrete example, in Fig. 1 we report a possible realization of the elements in the feature space that would lead the KNN detector to decide for H 0 . In general, P glyph[lscript] ( &gt; T ) can be obtained as the (unconditional) complementary probability of the union over all possible combinations that produce the event B j 1 : j k -M ; i 1 : i N T -M , namely as

$$P ( \overline { \ell } > T ) = 1 - P \left ( \bigcup _ { \substack { j _ { 1 }, \dots, j _ { k - M } \in \mathcal { N } _ { T } \\ i _ { 1 }, \dots, i _ { N _ { T } - M } \in \mathcal { N } _ { T } } } } \mathcal { B } _ { j _ { 1 } \colon j _ { k - M } ; i _ { 1 } \colon i _ { N _ { T } - M } } \right ).$$

To compute the right-hand side of the above formula, we can simply count all the possible combinations of k -M and N T -M feature vectors from T 0 and T 1 , respectively, and multiply by the probability of the event B 1: k -M ;1: N T -M =

B 01 1: k -M ;1: N T -M ∩B 00 1: k -M ∩B 11 1: N T -M (namely, by choosing the first k -M and N T -M indexes, which can be of course in any order with respect to the distance from x , as highlighted in Fig. 1 by red dotted ellipses). Then, eq. (8) can be written as

$$P ( \bar { \ell } > T ) = 1 - \left ( \begin{array} { c } N _ { T } \\ k - M \end{array} \right ) \left ( \begin{array} { c } N _ { T } \\ N _ { T } - M \end{array} \right ) P \left ( \mathcal { B } _ { 1 ; k - M ; 1 \colon N _ { T } - M } \right ).$$

The thesis follows by observing that, conditioned on y , defined in eq. (5), the above joint probability is nonzero only if y ∈ Y and can be factorized as

$$\begin{array} { c } \dashrightarrow \dashrightarrow \tau _ { 1 } \dashrightarrow \tau _ { 2 } \dashrightarrow \tau _ { 3 } \dashrightarrow \dashrightarrow \dashrightarrow \dashrightarrow \dashrightarrow \dashrightarrow \dashrightarrow \end{array} \\ P \left ( \mathcal { B } _ { 1 ; k - M ; 1 ; N _ { T } - M } | \boldsymbol y \right ) \\ & = \left [ P \left ( \left \{ \| x ^ { 0 } - x \| \geq \max _ { r \in \{ 1, \dots, k - M \} } \| x _ { r } ^ { 0 } - x \| \right \} | x, x _ { 1 ; k - M } ^ { 0 } \right ) \right ] ^ { N _ { T } - k + M } \\ & \times \left [ P \left ( \left \{ \| x ^ { 1 } - x \| \leq \min _ { r \in \{ 1, \dots, N _ { T } - M \} } \| x _ { r } ^ { 1 } - x \| \right \} | x, x _ { 1 ; N _ { T } - M } ^ { 1 } \right ) \right ] ^ { M } \\ & = \left ( p _ { 0 } \left ( x, x _ { 1 ; k - M } ^ { 0 } \right ) \right ) ^ { N _ { T } - k + M } \times \left ( p _ { 1 } \left ( x, x _ { 1 ; N _ { T } - M } ^ { 1 } \right ) \right ) ^ { M } \\ \text{where } \tau ^ { 0 } \text{ is any chosen element of } \mathcal { T } ^ { 0 } \text{ not included in } \tau ^ { 0 } \text{ } \dots \text{ if } \tau ^ { 0 } \text{ } \end{array}$$

where x 0 is any chosen element of T 0 not included in x 0 1: k -M (i.e., x 0 ∈ { x 0 k -M +1 , . . . , x 0 N T } ); analogously, x 1 is any chosen element of T 1 not included in x 1 1: N T -M (i.e., x 1 ∈ { x 1 N T -M +1 , . . . , x 1 N T } ). Thus, x 0 and x 1 are generic random vectors distributed according to D 0 and D 1 , respectively (ref. eq. (1)).

Proposition 1 allows one to analytically express P d and P fa in terms of the two probabilities p 0 and p 1 , which are related to elementary events in the feature space. This result is fully general and does not depend on the distribution of the data (features). We will show in the sequel that, given a specific feature vector, such a tool can be used to prove the CFAR property of the resulting detector, and to identify its relevant performance parameters.

Before proceeding, we provide a simple clarifying example. Suppose that the training data and the feature vector under test are complex normal with

an expected value equal to m i under H i , i = 0 1, and a scalar covariance , matrix. It follows that the hypothesis testing problem (1) becomes

$$\begin{cases} \ H _ { 0 } \colon \ x \sim \mathcal { C N } _ { m } \left ( m _ { 0 }, \sigma ^ { 2 } I _ { m } \right ) \\ \ H _ { 1 } \colon \ x \sim \mathcal { C N } _ { m } \left ( m _ { 1 }, \sigma ^ { 2 } I _ { m } \right ) \end{cases}$$

where σ 2 &gt; 0 and I m is the m × m identity matrix. Since, conditioned on x , we have that

$$x ^ { 0 } - x \sim \mathcal { C N } _ { m } \left ( m _ { 0 } - x, \sigma ^ { 2 } I _ { m } \right )$$

and

$$x ^ { 1 } - x \sim \mathcal { C N } _ { m } \left ( m _ { 1 } - x, \sigma ^ { 2 } I _ { m } \right ),$$

it turns out that the norm squared of the random variables (RVs) (10) and (11), normalized by σ 2 , are complex noncentral chi-square RVs with m degrees of freedom and noncentrality parameters ‖ m x 0 -‖ σ and ‖ m x 1 -‖ σ , respectively. In symbols, we write 1 σ 2 ‖ x 0 - ‖ x 2 ∼ C χ 2 m ( ‖ m x 0 -‖ σ ) and 1 σ 2 ‖ x 1 - ‖ x 2 ∼ C χ 2 m ( ‖ m x 1 -‖ σ ) . Thus, p 0 ( x x , 0 1: k -M ) and p 1 ( x x , 1 1: N T -M ) can be computed in terms of the corresponding cumulative distribution functions (CDFs).

## 3. Application of the KNN approach to adaptive radar detection

In this section, we demonstrate that KNN-based decision schemes can be fruitfully applied to design novel radar detectors. We recall that the wellknown problem of detecting the possible presence of a coherent return from a given CUT in range, doppler, and azimuth, is classically formulated as the following hypothesis testing problem:

$$\begin{cases} \ H _ { 0 } \colon \ z = n \\ \ H _ { 1 } \colon \ z = \alpha v + n \end{cases}$$

where z ∈ C N × 1 , n ∈ C N × 1 , and v ∈ C N × 1 denote the received vector, the corresponding noise term, and the known steering vector of the useful target echo. The noise term is commonly modeled according to the complex normal distribution with zero mean and unknown (Hermitian) positive definite matrix C , i.e., n ∼ CN N ( 0 , C ). Modeling α ∈ C has an unknown deterministic parameter returns a complex normal distribution for z under both hypotheses; the non-zero mean of the received vector under H 1 makes it possible to discriminate between the two hypotheses, namely by resorting to the GLRT.

The above classical approach led to a number of well-known receivers following the pioneering paper by Kelly [1], as recalled in Sec. 1; they exploit (in addition to the primary received signal z ) a set of secondary data r 1 , . . . , r K S , independent of z , free of signal components, and sharing with the CUT the statistical characteristics of the noise. As already observed, in this paper we want to investigate the potential of choosing between H 0 and H 1 based on a KNN classifier. For the specific radar detection problem at hand, we consider as input data the vector obtained by stacking both primary and secondary data, namely o = [ z T r T 1 · · · r T K S ] T , and define S as K S times the sample covariance matrix based on secondary data, namely

$$S = \sum _ { i = 1 } ^ { K _ { S } } r _ { i } r _ { i } ^ { H }$$

with H denoting the complex conjugate transpose. In the following we develop the KNN approach for different choices of the feature vector.

## 3.1. First approach: a solution based on a raw data

We propose to use as feature vector x the 'whitened data' under test, i.e.,

$$x = S ^ { - 1 / 2 } z.$$

Moreover, in radar detection problems it is customary to assume that signals backscattered by moving targets follow a statistical model as, for instance, the one provided in the hypotheses test (12). The availability of a model for the data introduces significant advantages in the KNN training procedure, allowing the whole training set T to be constructed artificially, without requiring any preliminary collection phase, as instead typical in the majority of machine learning problems. For the specific case at hand, we can draw N T independent realizations of the observation vector o = [ z T r T 1 · · · r T K S ] T under both H 0 and H 1 hypotheses. More precisely, the training data under H 0 , i.e., x 0 i , i = 1 , . . . , N T , are generated assuming z r , 1 , . . . , r K S ∼ CN N ( 0 , C ) with C a preassigned (i.e., a design value) covariance matrix. Similarly, the training data under H 1 , i.e., x 1 i , i = 1 , . . . , N T , are generated according to z ∼ CN N ( α , v C ), r 1 , . . . , r K S ∼ CN N ( 0 , C ), and based on a preassigned value of the nominal signal-to-noise ratio (SNR), defined as

$$\text{SNR} = | \alpha | ^ { 2 } v ^ { H } C ^ { - 1 } v.$$

The performance assessment is conducted in comparison to natural references, namely Kelly's detector, AMF, and ACE, given by

$$t _ { \text{Kellly} } ( z, S ) = \frac { | z ^ { H } S ^ { - 1 } v | ^ { 2 } } { v ^ { H } S ^ { - 1 } v \ \left ( 1 + z ^ { H } S ^ { - 1 } z \right ) },$$

$$t _ { \text{AMP} } ( z, S ) = \frac { | z ^ { H } S ^ { - 1 } v | ^ { 2 } } { v ^ { H } S ^ { - 1 } v }, \ \ t _ { \text{ACE} } ( z, S ) = \frac { | z ^ { H } S ^ { - 1 } v | ^ { 2 } } { v ^ { H } S ^ { - 1 } v \ z ^ { H } S ^ { - 1 } z },$$

respectively, with ( ) · -1 the inverse of the matrix argument and |·| the modulus of the argument variable, respectively. We estimate the P d s and the P fa over 10 3 and 10 5 trials, respectively. For simulation purposes, we assume that the nominal (but also the actual) steering vector has the form v = [1 e j 2 πν d · · · e j 2 πν d ( N -1) ] T , thus focusing on a single antenna processing, where ν d is the normalized Doppler frequency shift . The noise covariance matrix 1 is Gaussian-shaped with one-lag correlation coefficient 0.95.

We set N = 8 and K S = 16 and generate N T = 10 3 training data for each hypothesis, so obtaining T 0 and T 1 ; for T 1 we assume design parameters f d = 0 08 and SNR = 12 dB. The KNN is implemented with . k = 50 (using the Euclidean distance as metric) and the threshold is set to T = 1 2, i.e., / the algorithm chooses H 1 if at least 26 out of 50 closest data belong to T 1 .

First consider the case that the actual Doppler frequency is perfectly matched to the design value. The performance of the KNN detector is compared to AMF, Kelly's detector, and ACE in Figure 2. With the chosen parameters, we obtained P fa = 0 0048 for the KNN detector, and the threshold . setting for AMF, Kelly's detector, and ACE has been performed to guarantee the same P fa . It is apparent that the proposed approach can achieve a very high P d even for reduced SNR values, that is, it is much more powerful than the competitors, including Kelly's detector which requires more than 4 dB of SNR to achieve the same performance. The results under mismatched conditions are also interesting. In particular, Fig. 3 shows the performance for the case in which the nominal Doppler frequency is perturbed by an additive

1 ν d = f T d PRT with f d the target Doppler frequency shift and T PRT the pulse repetition time of the radar.

Figure 2: P d vs SNR under matched conditions for KNN using raw data S -1 / 2 z .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-9fd4d57e-ce04-4bfb-9286-a0d23cde8050.jpg)

Figure 3: P d vs SNR under mismatched conditions with cos 2 θ = 0 50 for KNN using raw . data S -1 / 2 z .

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-6e5e1221-1a3f-4127-8aaa-5ecd43376bb9.jpg)

term 0 4 . /N , corresponding to a cosine squared cos 2 θ = 0 50 of the angle . between the nominal steering vector v and the mismatched one p , i.e.,

$$\cos ^ { 2 } \theta = \frac { | p ^ { H } C ^ { - 1 } v | ^ { 2 } } { p ^ { H } C ^ { - 1 } p \, v ^ { H } C ^ { - 1 } v }.$$

The results show that, although the proposed KNN-based detector experiences a significant P d loss compared to the matched case, it is anyway more powerful than Kelly's detector and close to the AMF, but with the great advantage of strong detection capabilities under matched conditions. The price to pay for this excellent performance is the loss of the CFAR property. To investigate how changes in the noise distribution affect the resulting P fa , a simulation analysis assuming a different value for the one-lag correlation coefficient, now set to 0.5, is conducted. For this setup, the resulting P fa = 0 0062, meaning that the proposed detector is quite insensitive . to changes in the noise statistics, despite it does not strictly possess the CFAR property. In next section, we will show that such a property can be recovered by using a different feature vector; moreover, we will show that the same power of Kelly's detector can be obtained, but with a level of robustness or selectivity that can be controlled by tuning some design parameters.

## 3.2. Second approach: a CFAR solution based on known statistics

To come up with a CFAR detector, we propose to use a vector of features x obtained by stacking (compressed) statistics of some well-known radar detectors (among them we cite here AMF, Kelly's detector, ACE, Energy detector, W-ABORT, etc.). It is very important to notice that all the above statistics can be decomposed in terms of common statistics. To be more definite, consider the AMF and Kelly's detector given in the previous section;

they can be decomposed as [20]

$$t _ { \text{AMP} } = \frac { \tilde { t } } { \beta }, \quad t _ { \text{Kelly} } = \frac { \tilde { t } } { 1 + \tilde { t } }$$

with and

$$\beta & = \frac { 1 } { 1 + z ^ { H } S ^ { - 1 } z - \frac { | z ^ { H } S ^ { - 1 } v | ^ { 2 } } { v ^ { H } S ^ { - 1 } v } }. & & ( 1 7 ) \\. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &.. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &. &.$$

More generally, all the above listed statistics share a common dependency on both ˜ and t β , which suggests that they can be conveniently stacked to construct a feature vector x having the following structure

$$\boldsymbol x = \left [ d _ { 1 } \tilde { t } b [ 1 ] \ d _ { 2 } \tilde { t } b [ 2 ] \ \cdots \ d _ { m } \tilde { t } b [ m ] \right ] ^ { T }$$

with

$$b [ j ] = f _ { j } ( \beta ), \quad j = 1, \dots, m,$$

denoting an arbitrary (nonlinear) function of the β statistic and D = diag( d , . . . , d 1 m ) an arbitrary (nonnegative) diagonal matrix that introduces a set of additional degrees of freedom, better explained in the following.

For the specific choice of x given in (18), we have the following results.

Proposition 2. Let x = [ d tb 1 ˜ [1] d tb 2 ˜ [2] · · · d m ˜ [ tb m ] ] T be an m -dimensional feature vector constructed from the data under test o = [ z T r T 1 · · · r T K ] T and T a training set containing 2 N T independent realizations ( N T under H 0 and N T under H 1 ). The probabilities p 0 ( x x , 0 1: k -M ) and p 1 ( x x , 1 1: N T -M ) given in Proposition 1 and involved in the computation of P fa and P d can be expressed in closed-form, as shown in Appendix A. Based on them, it turns out that the P fa depends upon the SNR (14) used to generate the training data, but is otherwise independent of the actual covariance matrix C , that is, the detector

$$\tilde { t } = \frac { t _ { \text{Kelly} } } { 1 - t _ { \text{Kelly} } }$$

possesses the constant false alarm rate (CFAR) property. In addition, P d depends only upon the SNR (14) used to generate the training data, as well as on

$$S N R _ { p } = | \alpha | ^ { 2 } p ^ { H } C ^ { - 1 } p \quad a n d \quad \cos ^ { 2 } \theta = \frac { | p ^ { H } C ^ { - 1 } v | ^ { 2 } } { p ^ { H } C ^ { - 1 } p \ v ^ { H } C ^ { - 1 } v }.$$

Proof.

$$S N R _ { p } = | \alpha | ^ { 2 } p ^ { H } C ^ { - 1 } p \quad a n d \quad \cos ^ { 2 } \theta = \frac { | p ^ { n } C ^ { - 1 } v | ^ { 2 } } { p ^ { H } C ^ { - 1 } p \ v ^ { H } C ^ { - 1 } v }. \\ P r o o f. \ \text{See Appendix A}.$$

Proposition 2 shows that, although the proposed design is quite different from the traditional approach to radar detection, and specifically that based on the GLRT or other statistical hypothesis testing tools, it is still possible to obtain a receiver with desirable properties: in particular, the CFAR property allows one to obtain the same P fa irrespective of the unknown noise statistics, which is very important in practical applications. Moreover, the performance in terms of P d depends on the classical parameters SNR and cosine squared of the angle between the nominal and actual steering vector, as in most wellknown CFAR detectors (Kelly's detector, AMF, ACE, etc.).

An additional advantage of the proposed KNN-based approach is that, by acting on the choice of the statistics in the feature vector and on their relative weights given by the diagonal matrix D , it is possible to obtain a detector that is either more robust or more selective than Kelly's detector. In particular, we illustrate in the following the performance of a detector whose feature vector is composed by the Kelly's detector and AMF, i.e.,

$$x = \left [ d _ { 1 } \tilde { t } \ d _ { 2 } \frac { \tilde { t } } { \beta } \right ] ^ { T }$$

where eqs. (15), (16), and (17) have been used.

In this case, we aim at obtaining a detector that is more robust than Kelly's detector, but with limited P d loss under matched conditions. Without

Figure 4: P d vs SNR under matched conditions for a KNN fed by eq. (20).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-c5991122-4f31-480f-9167-c6a7a9de3407.jpg)

loss of generality, we set d 1 = 1 so leaving d 2 as the sole tunable parameter. Simulations are conducted as for the previous case of Sec. 3.1, but for N = 16 and K S = 32; moreover, we set d 2 = 0 7. .

Fig. 4 shows the results under matched conditions. It is apparent that the KNN detector has practically the same P d of Kelly's detector, followed by the AMF (which experiences some loss, especially at low SNR) and ACE (which experiences a loss of about 3 dB at P d = 0 9). Fig. 5 shows instead the . results under mismatched conditions, now corresponding to a cosine squared cos 2 θ = 0 46: the KNN detector tends to behave as the AMF and, hence, . it is more robust than Kelly's detector, without losing the CFAR property. This is a remarkable result, since classical CFAR detectors usually trade-off robustness for some P d loss under matched conditions.

As a further example, we illustrate in the following the performance of a detector whose feature vector is composed by the Kelly's detector and ACE,

Figure 5: P d vs SNR under mismatched conditions with cos 2 θ = 0 46, for a KNN fed by . eq. (20).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-f8b8680a-f8c7-4acc-8305-24aeecf49f31.jpg)

Figure 6: P d vs SNR under matched conditions for a KNN fed by eq. (21).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-bac552b0-8f03-4414-b60d-78dcfb140a15.jpg)

Figure 7: P d vs SNR under mismatched conditions with cos 2 θ = 0 46, for a KNN fed by . eq. (21).

![image](https://ac.marcodsn.me/arxiv-markdown-images/1908.00870v1-figure-41334f17-7ae2-4e59-b735-7a5772f6cf73.jpg)

namely [20]

$$x = \left [ d _ { 1 } \tilde { t } \ d _ { 2 } \frac { \tilde { t } } { 1 - \beta } \right ] ^ { T }.$$

In this case, the aim is to obtain a detector with intermediate performance between such two receivers, and again without loss of generality, we consider d 1 = 1 while we set d 2 = 0 8; the remaining parameters are as before. Fig. . 6 shows that the KNN-based detector has indeed intermediate performance between Kelly's detector and ACE, being almost coincident with the former until an SNR of about 11 dB, while for higher SNR it experiences the same P d loss of the latter. Also the performance under mismatched conditions are intermediate between the two, as shown in Fig. 7, thus yielding as a whole a novel detector with a behavior different from the classical receivers. This is more generally the advantage of the proposed approach, in which further compositions of the feature vector and/or tuning of the parameters can be

investigated to design detectors with innovative characteristics.

## 4. Conclusion

A novel approach to the design of radar detectors, based on the KNN algorithm, has been investigated. P fa and P d have been analytically characterized in closed-form for the general case. This result has been then used to prove the CFAR property and to identify the relevant performance parameters of a KNN-based detector having as feature vector an arbitrary number of well-known radar detection statistics. Some design examples have been reported: for instance, it is possible to obtain a detector that is as powerful as Kelly's detector (under matched conditions) while being more robust (under mismatched conditions) by considering only a two-dimensional feature vector; also, a receiver with intermediate selectivity can be obtained by changing one of such features. A further design example has been reported to illustrate the effectiveness of the idea: in particular, using raw data as feature vector, it is possible to obtain a receiver that is more powerful than Kelly's detector, though it does not possess the CFAR property. As a whole, such results reveal that novel types of radar detectors can be designed through the proposed approach, and several possibilities remain to be investigated, potentially delivering solutions that cannot be obtained through conventional design tools for radar detection.

## Appendix A

## Proof of proposition 2

In proposition 1, P glyph[lscript] ( &gt; T ) and, hence, P fa if x comes from the H 0 hypothesis, is expressed in terms of p 0 ( x x , 0 1: k -M ) and p 1 ( x x , 1 1: N T -M ) .

We will specialize the formulas for p 0 and p 1 by considering a feature vector of the form (18). To this end, it will be immediately apparent that the involved RVs are the independent random quantities ( ˜ , t β ), ( ˜ t 0 , β 0 ), ( ˜ t 1 , β 1 ), ( ˜ t 0 i , β 0 i )s, and ( ˜ t 1 i , β 1 i )s. To this end, we also notice that [20]

- · ˜ (under t H 0 ), ˜ t 0 and ˜ s t 0 i are RVs ruled by the complex central F -distribution with 1 and K -N + 1 complex degrees of freedom and are independent of β , β 0 and β 0 i s, respectively; we write, ˜ ˜ t, t 0 , t ˜ 0 i ∼ CF 1 ,K -N +1 ;
- · β , β 0 and β 0 i s are complex central beta RVs with K -N +2 and N -1 complex degrees of freedom, in symbols β, β 0 , β 0 i ∼ C β K -N +2 ,N -1 ;
- · ˜ t 1 i given β 1 i and ˜ t 1 given β 1 are ruled by a complex non-central F -distribution with 1 and K -N +1 complex degrees of freedom with noncentrality parameter δ , i.e., ˜ t 1 i , t ˜ 1 ∼ CF 1 ,K -N +1 ( δ ) with δ 2 = SNR β 1 i or δ 2 = SNR β 1 , respectively;
- · β 1 i and β 1 are complex central beta RVs with K -N + 2 and N -1 complex degrees of freedom, i.e., β , β 1 i 1 ∼ C β K -N +2 ,N -1 .

As a matter of fact, we have that

$$& \text{as a water or a.c., we have main} \\ & p _ { 0 } \left ( x, x _ { 1 ; k - M } ^ { 0 } \right ) = P \left ( \left \{ \| x ^ { 0 } - x \| \geq \max _ { r \in \{ 1, \dots, k - M \} } \| x _ { r } ^ { 0 } - x \| \right \} \left | x, x _ { 1 ; k - M } ^ { 0 } \right ) \\ & = P \left ( \left \{ \sqrt { \sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 0 } b ^ { 0 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } } \geq \max _ { r \in \{ 1, \dots, k - M \} } \| x _ { r } ^ { 0 } - x \| \right \} \left | x, x _ { 1 ; k - M } ^ { 0 } \right ) \\ & = P \left ( \left \{ \sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 0 } b ^ { 0 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } \geq c ^ { 2 } \left ( x, x _ { 1 ; k - M } ^ { 0 } \right ) \right \} \left | x, x _ { 1 ; k - M } ^ { 0 } \right ).$$

Moreover, the inequality

$$\sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 0 } b ^ { 0 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } \geq c ^ { 2 } \left ( x, x _ { 1 \colon k - M } ^ { 0 } \right )$$

can be re-written as

$$\gamma _ { 1 } ^ { 0 } ( \tilde { t } ^ { 0 } ) ^ { 2 } - 2 \tilde { t } \gamma _ { 2 } ^ { 0 } \tilde { t } ^ { 0 } + \gamma _ { 3 } ^ { 0 } \tilde { t } ^ { 2 } - c ^ { 2 } \left ( x, x _ { 1 \colon k - M } ^ { 0 } \right ) \geq 0$$

where γ 0 1 , γ 0 2 , and γ 0 3 are proper coefficients that incorporate all the elements resulting from the square and product operations. Given β 0 , the above inequality can be solved for ˜ t 0 as

$$\tilde { t } ^ { 0 } \in \begin{cases} \ ( - \infty, r _ { 1 } ) \cup ( r _ { 2 }, + \infty ), & \text{if} \quad \beta ^ { 0 } \colon \Delta _ { 0 } > 0 \\ \mathbb { R }, & \text{if} \quad \beta ^ { 0 } \colon \Delta _ { 0 } < 0 \end{cases}$$

with ∆ 0 the discriminant of the corresponding quadratic equation and r , r 1 2 , r 1 &lt; r 2 its real and distinct roots (assuming ∆ 0 &gt; 0). Obviously, r , r 1 2 are continuous functions of x x , 0 1: k -M , and β 0 . Notice also that the equation always admits a root whose real part is positive; it follows that we have to consider the cases r 1 &lt; 0 &lt; r 2 and 0 &lt; r 1 &lt; r 2 . Thus, letting I n 0 ( x x , 0 1: k -M ) = { β 0 ∈ (0 , 1) : ∆ 0 &gt; 0 , r 1 &lt; 0 } , I p 0 ( x x , 0 1: k -M ) = { β 0 ∈ (0 , 1) : ∆ 0 &gt; 0 , r 1 &gt; 0 } , and exploiting the fact that ˜ t 0 is a nonnegative

random variable, we have that

$$\text{random variable, we have that} \\ p _ { 0 } \left ( x, x _ { 1 \cdot k - M } ^ { 0 } \right ) & = \int _ { I _ { n _ { 0 } } } P \left ( \bar { t } ^ { 0 } > r _ { 2 } | x, x _ { 1 \cdot k - M } ^ { 0 }, \beta ^ { 0 } \right ) f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ & + \int _ { I _ { p _ { 0 } } } P \left ( \bar { t } ^ { 0 } \in ( 0, r _ { 1 } ) \cup ( r _ { 2 }, + \infty ) | x, x _ { 1 \cdot k - M } ^ { 0 }, \beta ^ { 0 } \right ) f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ & + \int _ { ( 0, 1 ) \langle I _ { n _ { 0 } } \cup I _ { p _ { 0 } } \} } f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ & = \int _ { I _ { n _ { 0 } } } \left ( 1 - F _ { \bar { t } ^ { 0 } } ( r _ { 2 } ) \right ) f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ & + \int _ { I _ { p _ { 0 } } } \left ( F _ { \bar { t } ^ { 0 } } ( r _ { 1 } ) + 1 - F _ { \bar { t } ^ { 0 } } ( r _ { 2 } ) \right ) f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ & + \int _ { ( 0, 1 ) \langle I _ { n _ { 0 } } \cup I _ { p _ { 0 } } \} } f _ { \beta ^ { 0 } } ( \beta ^ { 0 } ) d \beta ^ { 0 } \\ \text{where} \, F _ { \bar { t } ^ { 0 } } \text{ is the CDF of } \bar { t } ^ { 0 } \text{ while } f _ { \beta ^ { 0 } } \text{ is the PDF of } \beta ^ { 0 }. \\ \text{--} \,. \,. \,. \,.$$

where F ˜ t 0 is the CDF of ˜ t 0 while f β 0 is the PDF of β 0 .

Similarly, we have that

$$& \text{similarly, we have una} \\ & p _ { 1 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) = P \left ( \left \{ \| x ^ { 1 } - x \| \leq \min _ { r \in \{ 1, \dots, N _ { T } - M \} } \| x _ { r } ^ { 1 }, x \| \right \} | x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \\ & = P \left ( \left \{ \sqrt { \sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 1 } b ^ { 1 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } } \leq a ^ { 2 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \right \} | x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \\ & = P \left ( \left \{ \sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 1 } b ^ { 1 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } \leq a ^ { 2 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \right \} | x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \\ & \text{A} \text{ain the inequality}$$

Again, the inequality

$$\sum _ { j = 1 } ^ { m } d _ { j } ^ { 2 } \left ( \tilde { t } ^ { 1 } b ^ { 1 } [ j ] - \tilde { t } b [ j ] \right ) ^ { 2 } \leq a ^ { 2 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right )$$

can be re-written as

$$\gamma _ { 1 } ^ { 1 } \left ( \tilde { t } ^ { 1 } \right ) ^ { 2 } - 2 \tilde { t } \gamma _ { 2 } ^ { 1 } \tilde { t } ^ { 1 } + \gamma _ { 3 } ^ { 1 } - a ^ { 2 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \leq 0,$$

with γ 1 1 , γ 1 2 and γ 1 3 proper coefficients. Given β 1 , the above inequality can be solved for ˜ t 1 as

$$\tilde { t } ^ { 1 } \in \begin{cases} \ ( r _ { 3 }, r _ { 4 } ), & \text{if} \quad \beta ^ { 1 } \colon \Delta _ { 1 } > 0 \\ \emptyset, & \text{if} \quad \beta ^ { 1 } \colon \Delta _ { 1 } < 0 \end{cases}$$

with ∆ 1 the discriminant of the corresponding quadratic equation and r , r 3 4 , r 3 &lt; r 4 its real and distinct roots (assuming ∆ 1 &gt; 0). r , r 3 4 are continuous functions of x x , 1 1: N T -M , β 1 . Again, the equation always admits a root whose real part is positive; therefore, we should consider the cases r 3 &lt; 0 &lt; r 4 and 0 &lt; r 3 &lt; r 4 . Thus, letting I n 1 ( x x , 1 1: N T -M ) = { β 1 ∈ (0 , 1) : ∆ 1 &gt; 0 , r 3 &lt; 0 } , I p 1 ( x x , 1 1: N T -M ) = { β 1 ∈ (0 , 1) : ∆ 1 &gt; 0 , r 3 &gt; 0 } , and exploiting the fact that ˜ t 1 is a nonnegative random variable, it follows that

$$\text{that } t ^ { * } \text{ is a nonnegative random variable, it follows that} \\ p _ { 1 } \left ( x, x _ { 1 \cdot N _ { T } - M } ^ { 1 } \right ) & = \int _ { I _ { n _ { 1 } } } P \left ( \tilde { t } ^ { 1 } \in ( 0, r _ { 4 } ) | x, x _ { 1 \cdot N _ { T } - M } ^ { 1 }, \beta ^ { 1 } \right ) f _ { \beta ^ { 1 } } ( \beta ^ { 1 } ) d \beta ^ { 1 } \\ & + \int _ { I _ { p _ { 1 } } } P \left ( \tilde { t } ^ { 1 } \in ( r _ { 3 }, r _ { 4 } ) | x, x _ { 1 \cdot N _ { T } - M } ^ { 1 }, \beta ^ { 1 } \right ) f _ { \beta ^ { 1 } } ( \beta ^ { 1 } ) d \beta ^ { 1 } \\ & = \int _ { I _ { n _ { 1 } } } F _ { \tilde { t } ^ { 1 } | \beta ^ { 1 } } ( r _ { 4 } ) f _ { \beta ^ { 1 } } ( \beta ^ { 1 } ) d \beta ^ { 1 } \\ & + \int _ { I _ { p _ { 1 } } } \left ( F _ { \tilde { t } ^ { 1 } | \beta ^ { 1 } } ( r _ { 4 } ) - F _ { \tilde { t } ^ { 1 } | \beta ^ { 1 } } ( r _ { 3 } ) \right ) f _ { \beta ^ { 1 } } ( \beta ^ { 1 } ) d \beta ^ { 1 } \\ \text{where } F _ { \tilde { t } ^ { 1 } | \beta } \text{ is the CDF of } \tilde { t } ^ { 1 } \text{ given } \beta ^ { 1 }, \text{ and } f _ { \beta ^ { 1 } } \text{ is the PDF of } \beta ^ { 1 }. \text{ This}$$

where F ˜ t 1 | β 1 is the CDF of ˜ t 1 given β 1 , and f β 1 is the PDF of β 1 . This concludes the proof of the expressions given in the statement.

Following the lead of previous reasoning, it is also possible to determine the parameters P d depends on, also under mismatched conditions (i.e., a steering vector not aligned with the nominal one). In fact, to compute P d we suppose that x comes from a z containing signal plus noise and, in particular

$$z = \alpha p + n$$

with p not necessarily aligned with v . It follows that

$$P _ { d } & \ = \ 1 - \left ( \begin{array} { c } \lambda & \ > \\ \, N _ { T } \\ k - M \end{array} \right ) \left ( \begin{array} { c } N _ { T } \\ N _ { T } - M \end{array} \right ) \\ & \times \, E _ { y } \left [ I _ { \Psi } ( y ) \left ( p _ { 0 } \left ( x, x _ { 1 \colon k - M } ^ { 0 } \right ) \right ) ^ { N _ { T } - k + M } \left ( p _ { 1 } \left ( x, x _ { 1 \colon N _ { T } - M } ^ { 1 } \right ) \right ) ^ { M } \right ]$$

where again the ( ˜ , t β ), ( ˜ t 0 , β 0 ), ( ˜ t 1 , β 1 ), ( ˜ t 0 i , β 0 i )s, and ( ˜ t 1 i , β 1 i )s are independent random quantities. However, this time [20]

- · ˜ t 0 , t ˜ 0 i ∼ CF 1 ,K -N +1 and β , β 0 0 i ∼ C β K -N +2 ,N -1 ;
- · given β 1 or β 1 i , ˜ t 1 , t ˜ 1 i ∼ CF 1 ,K -N +1 ( δ ) with non-centrality parameter δ , where δ 2 = SNR β 1 or δ 2 = SNR β 1 i , respectively, while β , β 1 1 i ∼ C β K -N +2 ,N -1 ;
- · given β , ˜ t ∼ CF 1 ,K -N +1 ( δ ) where δ is the non-centrality parameter, with δ 2 = SNR p β cos 2 θ and SNR , cos p 2 θ defined in the statement;
- · β is a complex non-central beta RV with K -N +2 and N -1 complex degrees of freedom with non-centrality parameter δ , δ 2 = SNR sin p 2 θ , in symbols β ∼ C β K -N +2 ,N -1 ( δ ).

## References

## References

- [1] E. J. Kelly, 'An Adaptive Detection Algorithm,' IEEE Trans. Aerosp. and Electron. Syst. , Vol. 22, No. 2, Mar. 1986.
- [2] E. J. Kelly, 'Performance of an Adaptive Detection Algorithm; Rejection of Unwanted Signals,' IEEE Trans. Aerosp. and Electron. Syst. , Vol. 25, No. 2, Mar. 1989.

- [3] F. C. Robey, D. L. Fuhrman, E. J. Kelly, R. Nitzberg, 'A CFAR Adaptive Matched Filter Detector,' IEEE Trans. Aerosp. and Electron. Syst. , Vol. 29, No. 1, Jan. 1992.
- [4] E. Conte, M. Lops, G. Ricci, 'Asymptotically Optimum Radar Detection in Compound Gaussian Noise,' IEEE Trans. Aerosp. and Electron. Syst. , Vol. 31, No. 2, April 1995.
- [5] S. Kraut, L. L. Scharf, 'The CFAR adaptive subspace detector is a scaleinvariant GLRT,' IEEE Trans. Signal Process. , Vol. 47, No. 9, Sept. 1999.
- [6] N. B. Pulsone, C. M. Rader, 'Adaptive Beamformer Orthogonal Rejection Test,' IEEE Trans. Signal Process. , Vol. 49, No. 3, Mar. 2001.
- [7] G. A. Fabrizio, A. Farina, M. D. Turley, 'Spatial Adaptive Subspace Detection in OTH Radar,' IEEE Trans. Aerosp. and Electron. Syst. , Vol. 39, No. 4, Oct. 2003.
- [8] F. Bandiera, O. Besson, G. Ricci, 'An ABORT-Like Detector With Improved Mismatched Signals Rejection Capabilities,' IEEE Trans. Signal Process. , Vol. 56, No. 1, Jan. 2008.
- [9] A. Coluccia, G. Ricci, 'A Tunable W-ABORT-like Detector with Improved Detection vs Rejection Capabilities Trade-Off,' IEEE Signal Process. Lett. , Vol. 22, No. 6, Jun. 2015.
- [10] O. Besson, A. Coluccia, E. Chaumette, G. Ricci, F. Vincent, 'Generalized likelihood ratio test for detection of Gaussian rank-one signals in Gaussian noise with unknown statistics,' IEEE Trans. Signal Process. , Vol. 65, No. 4, 15 Feb. 2017.

- [11] J. E. Ball, 'Low signal-to-noise ratio radar target detection using Linear Support Vector Machines (L-SVM),' 2014 IEEE Radar Conference , Cincinnati, OH, USA, 19-23 May 2014.
- [12] L. Wang, D. Wang, C. Hao, 'Intelligent CFAR Detector Based on Support Vector Machine,' IEEE Access , Vol. 5, 16 Nov. 2017.
- [13] K.M. Thilina, K.W. Choi, N. Saquib, E. Hossain, 'Machine learning techniques for cooperative spectrum sensing in cognitive radio networks,' IEEE J. Sel. Areas in Commun. , Vol. 31, No. 11, Nov 2013.
- [14] Y. Xu, P. Cheng, Z. Chen, Y. Li, B. Vucetic, 'Mobile col- laborative spectrum sensing for heterogeneous networks: A Bayesian machine learning approach,' IEEE Trans. Signal Process. , Vol. 66, No. 21, Nov 2018.
- [15] A. Coluccia, A. Fascista, G. Ricci, 'Spectrum sensing by higher-order SVM-based detection', 27th European Signal Processing Conference (EUSIPCO 2019) , A Coru˜ na, Spain, 2-6 Sep. 2019.
- [16] A. Coluccia, G. Ricci, 'Radar detection in K-distributed clutter plus thermal noise based on KNN methods,' IEEE Radar Conference , Boston, MA, USA, 22-26 Apr. 2019.
- [17] D. Brodeski, I. Bilik, R. Giryes, 'Deep radar detectors,' IEEE Radar Conference , Boston, MA, USA, 22-26 Apr. 2019.
- [18] K. Patel, K. Rambach, T. Visentin, D. Rusev, M. Pfeiffer, B. Yang, 'Deep learning-based object classification on automotive radar spectra,' IEEE Radar Conference , Boston, MA, USA, 22-26 Apr. 2019.

- [19] J. M. Kurdzo, J. Y. N. Cho, B. L. Cheong, R. D. Palmer, 'A neural network approach for waveform generation and selection with multi-mission radar,' IEEE Radar Conference , Boston, MA, USA, 22-26 Apr. 2019.

[20] F. Bandiera, D. Orlando, G. Ricci, 'Advanced Radar Detection Schemes Under Mismatched Signal Models,' Synthesis Lectures on Signal Processing No. 8, Morgan &amp; Claypool Publishers , 2009.
Angelo Coluccia Alessio Fascista Giuseppe Ricci
A k-nearest neighbors approach to the design of radar detectors
A k-nearest neighbors (KNN) approach to the design of radar detectors is
investigated. The idea is to start with either raw data or well-known radar
receiver statistics as feature vector to be fed to the KNN decision rule. In
the latter case, the probability of false alarm and probability of detection
are characterized in closed-form; moreover, it is proved that the detector
possesses the constant false alarm rate (CFAR) property and the relevant
performance parameters are identified. Simulation examples are provided to
illustrate the effectiveness of the proposed approach.