Analysis of image semantics based on LDA

Source: Internet
Author: User

The LDA here refers to latent Dirichlet Allocation (hidden Dirichlet distribution), rather than linear discriminant analysis (linear discriminant analyses), which is a topic generation model, and the latter is a discriminant model, The discriminant model used in this experiment is not the latter, but the SVM discriminant model, which is a LIBSVM toolkit developed and designed by Professor Linzhiren (Lin Chih-jen) of Taiwan University. Experimental Flow: First use the Densesift algorithm to select the appropriate description features from the picture, each picture to take the appropriate amount of patches, each block with 128-dimensional vector representation; establish a bow (word bag) Model: K-means Clustering of Densesift extracted eigenvectors , each class represents a word and is normalized to create a dictionary; The LDA model is established on the basis of the dictionary representation image, and the image-subject matrix is obtained using the Gibbs sampling algorithm, and the subject vector is used instead of the original image dictionary representation. The SVM support vector machine is trained with the corresponding tag, and the test set is identified using the trained SVM classifier, and the contrast experiment is carried out using different SVM kernel functions. Use spatial Pyramid matching algorithm to optimize and then classify, compare with bow model

For details, please refer to the article link:
Image semantic analysis based on LDA reference:

Establish image bow Dictionary representation and spatial Pyramid matching optimization reference:
Bag of Words/bag of features MATLAB source Release | Alternate links
One with bow| Pyramid BOW+SVM matlab Demo for image Classification | Alternate links
The LDA implementation draws on the gibbslda++ toolkit:
gibbslda++: A/C + + implementation of latent Dirichlet Allocation lda learning materials: Reading note:parameter estimation fo R text Analysis and LDA Learning summary LDA must-read data july-Popular Understanding LDA topic Model July Algorithm-topic model video LDA Understanding and source code Analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.