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