Feature Selection and Extraction

Reference:

Pattern recognition, by Sergios Theodoridis, Konstantinos Koutroumbas (2009)

Slides of CS4220, TUD

The Peaking Phenomenon (5.3)

More features ⟹ ? \stackrel{?}{\Longrightarrow} ? Better performance

  • If the corresponding PDFs are known, the Bayesian error goes down with more features. We can perfectly discriminate the two classes by arbitrarily increasing the number of features.
  • If the PDFs are unknown and the associated parameters must be estimated using a finite training set, then we must try to keep the number of features to a relatively low number.

In practice, for a finite N N N, by increasing the number of features one obtains an initial improvement in performance, but after a critical value further increase of the number of features results in an increase of the probability of error. This phenomenon is also known as the peaking phenomenon.

在这里插入图片描述

What feature subset to keep? ⟹ \Longrightarrow Feature selection / extraction

  • Feature selection: select d d d out of p p p measurements
  • Feature extraction: map p p p measurements to d d d measurements

在这里插入图片描述

What do we need?

  • Criterion functions, e.g., error, class overlap, information loss…
  • Optimization or “search” algorithms to find mapping for given criterion

Class Separability Measures (5.6)

Divergence

Let us recall our familiar Bayes rule. Given two classes ω 1 \omega_1 ω1 and ω 2 \omega_2 ω2 and a feature vector x \mathbf x x, we select ω 1 \omega _1 ω1 if
P ( ω 1 ∣ x ) > P ( ω 2 ∣ x ) P(\omega_1|\mathbf x)>P(\omega_2|\mathbf x) P(ω1x)>P(ω2x)
The classification error probability depends on the difference between P ( ω 1 ∣ x ) P(\omega_1|\mathbf x) P(ω1x) and P ( ω 2 ∣ x ) P(\omega_2|\mathbf x) P(ω2x), hence the ratio P ( ω 1 ∣ x ) / P ( ω 2 ∣ x ) P(\omega_1|\mathbf x)/P(\omega_2|\mathbf x) P(ω1x)/P(ω2x) can convey useful information concerning the discriminatory capabilities associated with an adopted feature vector x \mathbf x x. Alternatively, the same information resides in the ratio
ln ⁡ p ( x ∣ ω 1 ) p ( x ∣ ω 2 ) ≡ D 12 ( x ) \ln \frac{p(\mathbf x|\omega_1)}{p(\mathbf x|\omega_2)}\equiv D_{12}(\mathbf x) lnp(xω2)p(xω1)D12(x)
Since x \mathbf x x takes different values, it is natural to consider the mean value over class ω 1 \omega_1 ω1 (because x \mathbf x x is classified to class ω 1 \omega_1 ω1), that is
D 12 = ∫ − ∞ + ∞ p ( x ∣ ω 1 ) ln ⁡ p ( x ∣ ω 1 ) p ( x ∣ ω 2 ) d x (DV.1) D_{12}=\int_{-\infty}^{+\infty} p(\mathbf x|\omega_1)\ln \frac{p(\mathbf x|\omega_1)}{p(\mathbf x|\omega_2)}d\mathbf x\tag{DV.1} D12=+p(xω1)lnp(xω2)p(xω1)dx(DV.1)
Similar arguments hold for class ω 2 \omega_2 ω2, and we define
D 21 = ∫ − ∞ + ∞ p ( x ∣ ω 2 ) ln ⁡ p ( x ∣ ω 2 ) p ( x ∣ ω 1 ) d x (DV.2) D_{21}=\int_{-\infty}^{+\infty} p(\mathbf x|\omega_2)\ln \frac{p(\mathbf x|\omega_2)}{p(\mathbf x|\omega_1)}d\mathbf x\tag{DV.2} D21=+p(xω2)lnp(xω1)p(xω2)dx(DV.2)
The sum
d 12 = D 12 + D 21 (DV.3) d_{12}=D_{12}+D_{21}\tag{DV.3} d12=D12+D21(DV.3)
is known as the divergence and can be used as a separability measure for the classes ω 1 , ω 2 \omega_1,\omega _2 ω1,ω2, with respect to the adopted feature vector x \mathbf x x.

For a multiclass problem, the divergence is computed for every class pair ω i , ω j \omega_i,\omega_j ωi,ωj
d i j = D i j + D j i = ∫ − ∞ + ∞ [ p ( x ∣ ω i ) − p ( x ∣ ω j ) ] ln ⁡ p ( x ∣ ω i ) p ( x ∣ ω j ) d x (DV.4) d_{ij}=D_{ij}+D_{ji}=\int_{-\infty}^{+\infty}[p(\mathbf x|\omega_i)-p(\mathbf x|\omega_j)]\ln \frac{p(\mathbf x|\omega_i)}{p(\mathbf x|\omega_j)}d\mathbf x \tag{DV.4} dij=Dij+Dji=+[p(xωi)p(xωj)]lnp(xωj)p(xωi)dx(DV.4)
and the average class separability can be computed using the average divergence
d = ∑ i = 1 M ∑ j = 1 M P ( ω i ) P ( ω j ) d i j (DV.5) d=\sum_{i=1}^M\sum_{j=1}^MP(\omega_i)P(\omega_j)d_{ij}\tag{DV.5} d=i=1Mj=1MP(ωi)P(ωj)dij(DV.5)
If the components of the feature vector are statistically independent, then it can be shown that
d i j ( x 1 , x 2 , ⋯   , x l ) = ∫ − ∞ + ∞ [ p ( x ∣ ω i ) − p ( x ∣ ω j ) ] ∑ r = 1 l ln ⁡ p ( x r ∣ ω i ) p ( x r ∣ ω j ) d x = a ∑ r = 1 l ∫ − ∞ + ∞ [ p ( x r ∣ ω i ) − p ( x r ∣ ω j ) ] ln ⁡ p ( x r ∣ ω i ) p ( x r ∣ ω j ) d x r = ∑ r = 1 l d i j ( x r ) (DV.6) \begin{aligned} d_{ij}(x_1,x_2,\cdots,x_l)&=\int_{-\infty}^{+\infty}[p(\mathbf x|\omega_i)-p(\mathbf x|\omega_j)]\sum_{r=1}^{l}\ln \frac{p(x_r|\omega_i)}{p(x_r|\omega_j)}d\mathbf x \\ &\stackrel{a}{=}\sum_{r=1}^{l}\int_{-\infty}^{+\infty}[p(x_r|\omega_i)-p(x_r|\omega_j)]\ln \frac{p(x_r|\omega_i)}{p(x_r|\omega_j)}dx_r\\ &=\sum_{r=1}^{l}d_{ij}(x_r) \end{aligned}\tag{DV.6} dij(x1,x2,,xl)=+[p(xωi)p(xωj)]r=1llnp(xrωj)p(xrωi)dx=ar=1l+[p(xrωi)p(xrωj)]lnp(xrωj)p(xrωi)dxr=r=1ldij(xr)(DV.6)
where = a \stackrel{a}{=} =a is due to
∫ − ∞ + ∞ ⋯ ∫ − ∞ + ∞ p ( x ∣ ω i ) − p ( x ∣ ω j ) d x 1 ⋯ d x r − 1 d x r + 1 ⋯ d x l = p ( x r ∣ ω i ) − p ( x r ∣ ω j ) \int_{-\infty}^{+\infty}\cdots\int_{-\infty}^{+\infty}p(\mathbf x|\omega_i)-p(\mathbf x|\omega_j)dx_1\cdots dx_{r-1}dx_{r+1}\cdots dx_l=p(x_r|\omega_i)-p(x_r|\omega_j) ++p(xωi)p(xωj)dx1dxr1dxr+1dxl=p(xrωi)p(xrωj)
Assuming now that the density functions are Gaussians N ( μ i , Σ i ) \mathcal N(\boldsymbol \mu_i,\boldsymbol \Sigma_i) N(μi,Σi) and N ( μ j , Σ j ) \mathcal N(\boldsymbol \mu_j,\boldsymbol \Sigma_j) N(μj,Σj), respectively, the computation of the divergence is simplified, and it is not difficult to show that
d i j = 1 2 t r a c e { Σ i − 1 Σ j + Σ j − 1 Σ i − 2 I } + 1 2 ( μ i − μ j ) T ( Σ i − 1 + Σ j − 1 ) ( μ i − μ j ) (DV.7) d_{ij}=\frac{1}{2}\mathrm{trace}\{\boldsymbol \Sigma_i^{-1}\boldsymbol \Sigma_j+\boldsymbol \Sigma_j^{-1}\boldsymbol \Sigma_i-2I \}+\frac{1}{2}(\boldsymbol \mu_i-\boldsymbol \mu_j)^T(\boldsymbol \Sigma_i^{-1}+\boldsymbol \Sigma_j^{-1})(\boldsymbol \mu_i-\boldsymbol \mu_j)\tag{DV.7} dij=21trace{ Σi1Σj+Σj1Σi2I}+21(μiμj)T(Σi1+Σj1)(μiμj)(DV.7)
It can be seen that a class separability measure cannot depend only on the difference of the mean values; it must also be variance dependent. If the covariance matrices of the two Gaussian distributions are equal, then the divergence is further simplified to
d i j = ( μ i − μ j ) T Σ − 1 ( μ i − μ j ) d_{ij}=(\boldsymbol \mu_i-\boldsymbol \mu_j)^T\boldsymbol \Sigma^{-1}(\boldsymbol \mu_i-\boldsymbol \mu_j) dij=(μiμj)TΣ1(μiμj)
which is nothing other than the Mahalanobis distance between the corresponding mean vectors. This has a direct relation with the Bayes error, which is a desirable property for class separation measures.


Chernoff Bound and Bhattacharyya Distance

The minimum attainable classification error of the Bayes classifier for two classes ω 1 , ω 2 \omega_1,\omega_2 ω1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值