当前位置:网站首页>[feature extraction] feature selection of target recognition information based on sparse PCA with Matlab source code
[feature extraction] feature selection of target recognition information based on sparse PCA with Matlab source code
2022-06-26 06:54:00 【Matlab scientific research studio】
1 brief introduction
Bag-of-words (BoW) methods are a popular class of object recognition methods that use image features (e.g. SIFT) to form visual dictionaries and subsequent histogram vectors to represent object images in the recognition process. The accuracy of the BoW classifiers, however, is often limited by the presence of uninformative features extracted from the background or irrelevant image segments. Most existing solutions to prune out uninformative features rely on enforcing pairwise epipolar geometry via an expensive structure-from- motion (SfM) procedure. Such solutions are known to break down easily when the camera transformation is large or when the features are extracted from low- resolution low-quality images. In this paper, we propose a novel method to select informative object features using a more efficient algorithm called Sparse PCA. First, we show that using a large-scale multiple-view object database, informative features can be reliably identified from a high- dimensional visual dictionary by applying Sparse PCA on the histograms of each object category. Our experiment shows that the new algorithm improves recognition accuracy compared to the traditional BoW methods and SfM methods. Second, we present a new solution to Sparse PCA as a semidefinite programming problem using Augmented Lagrange Multiplier methods. The new solver outperforms the state of the art for estimating sparse principal vectors as a basis for a low-dimensional subspace model. The source code of our algorithms will be made public on our website.
2 Part of the code
clc;T = 5; % Number of trials to average run times overdimensions = [10 50 100 150 200 250 300 350 400 450 500];ALMTimes = zeros(length(dimensions), T);DSPCATimes = zeros(length(dimensions), T);ALMPrec = zeros(length(dimensions), T);DSPCAPrec = zeros(length(dimensions), T);for i = 1:length(dimensions)% Initialize parameters ****************n=dimensions(i); p = 1; % Dimensionratio=1; % "Signal to noise" ratio% rand('state',25); % Fix random seedfor j = 1:T% Form test matrix as: rank one sparse + noisetestvec=rand(n,p);testvec = testvec - ones(n,1)*mean(testvec);numZero = n - floor(0.1*n);randInd = randperm(n); randInd1 = randInd(1:numZero); randInd2 = randInd(numZero+1:end);testvec(randInd1,:) = 0;testvec=ratio*testvec; % + rand(n,p);testvec = testvec/norm(testvec);A = testvec*testvec'/p;lambda = max(1e-5,min(diag(A))*0.5);%(min(diag(A)) + max(diag(A)))/2;tstartDSPCA = tic;[x1, DSPCAIter] = DSPCA(A, lambda);tstopDSPCA = toc(tstartDSPCA);DSPCAPrec(i,j) = norm(abs(x1) - abs(testvec));tstartALM = tic;[x, ALMIter] = SPCA_ALM(A, lambda);tstopALM = toc(tstartALM);ALMPrec(i,j) = norm(abs(x) - abs(testvec));ALMTimes(i,j) = tstopALM;DSPCATimes(i,j) = tstopDSPCA;fprintf('\n [dim,trial] = [%i, %i]: [DSPCA time, SPCA-ALM time] = [%0.4f %0.4f]\t[DSPCA Iter, SPCA-ALM Iter] = [%i, %i]',n, j, tstopDSPCA, tstopALM, DSPCAIter, ALMIter);endfprintf('\n');endfprintf('\n');ALMTimes = mean(ALMTimes,2);DSPCATimes = mean(DSPCATimes,2);ALMPrec = mean(ALMPrec,2);DSPCAPrec = mean(DSPCAPrec,2);figurehold onplot(dimensions, DSPCATimes, '-bx', 'linewidth', 2)plot(dimensions, ALMTimes, '-ro', 'linewidth', 2)legend('DSPCA', 'SPCAALM');xlabel('Dimension (n)');ylabel('Compute time (sec)');title('Time comparison of DSPCA and SPCAALM')figurehold onplot(dimensions, DSPCAPrec, '-gx', 'linewidth', 2)plot(dimensions, ALMPrec, '-mo', 'linewidth', 2)legend('DSPCA', 'SPCAALM');xlabel('Dimension (n)');ylabel('Error');title('Precision comparison of DSPCA and SPCAALM')
3 Simulation results


4 reference
[1] Naikal N , Yang A Y , Sastry S S . Informative feature selection for object recognition via Sparse PCA[C]// International Conference on Computer Vision. IEEE, 2011.
About bloggers : Good at intelligent optimization algorithms 、 Neural networks predict 、 signal processing 、 Cellular automata 、 The image processing 、 Path planning 、 UAV and other fields Matlab Simulation , relevant matlab Code problems can be exchanged by private letter .
Some theories cite network literature , If there is infringement, contact the blogger to delete .
边栏推荐
- The four cores of the browser: Trident, gecko, WebKit, blink
- 【图像融合】基于梯度能量、局部能量、 PCA三种融合规则实现MRI-CT图像融合附matlab代码
- 数据湖架构之Hudi编译篇
- How to set MySQL triggers is a simple tutorial for novices
- Judgment of SQL null value
- 3.pyinstaller module introduction
- shell 输入验证仅限字母数字
- Open source demo| you draw and I guess -- make your life more interesting
- When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space
- 闭包问题C# Lua
猜你喜欢
![[golang] time related](/img/10/56c0031e11677a91a50cda7d8a952f.png)
[golang] time related

【图像检测】基于Itti模型实现图像显著性检测附matlab代码

Mysql delete in 不走索引的

MySQL基础用法01

C nuget offline cache package installation

Turris omnia: an open source router technology favored by hackers
![[004] [stm32] MDK project configuration and commissioning](/img/a8/9817cdbbce557a92739de494490706.jpg)
[004] [stm32] MDK project configuration and commissioning

Analyse d'un problème classique

专业课-代码题记录

SecureCRT运行SparkShell 删除键出现乱码的解法
随机推荐
Research Report on market supply and demand and strategy of Chinese amyl cinnamaldehyde (ACA) industry
If you meet a female driver who drives didi as an amateur, you can earn 500 yuan a day!
Global and Chinese silicon carbide monocrystal furnace market survey and future production and marketing demand analysis report 2022-2027
unity之EasyAR使用
Web technology sharing | webrtc recording video stream
China polyimide film market demand and future investment risk outlook report 2022-2027
SQL基础
【图像分割】基于最大主曲率实现视网膜眼底图像中的血管提取附matlab代码
How to make the main thread wait for the sub thread to execute before executing
China's wind farm operation industry's "fourteenth five year plan" planning direction and investment risk prediction report 2022-2027
Phantom star VR equipment product details II: dark battlefield
Research Report on market supply and demand and strategy of China's pallet scale industry
Fmt Must the result of println (true) be true?
Market development status analysis and investment risk outlook report of China's battery industry 2022-2027
【图像检测】基于形态学实现图像目标尺寸测量系统附matlab代码
Six stones Management: exaggerating the achievements, whether the parties themselves know
在公司逮到一个阿里10年的测试开发,聊过之后大彻大悟...
Marketing skills: compared with the advantages of the product, it is more effective to show the use effect to customers
SQL 查询语句
Decision tree learning notes