Probabilistic Graphical Models Part III: Example Applications
Selim Aksoy
Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr
CS 551, Fall 2015
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 1 / 38
Probabilistic Graphical Models Part III: Example Applications Selim - - PowerPoint PPT Presentation
Probabilistic Graphical Models Part III: Example Applications Selim Aksoy Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr CS 551, Fall 2015 CS 551, Fall 2015 2015, Selim Aksoy (Bilkent University) c 1 / 38
Department of Computer Engineering Bilkent University saksoy@cs.bilkent.edu.tr
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 1 / 38
◮ We will look at example uses of Bayesian networks and
◮ Alarm network for monitoring intensive care patients —
◮ Recommendation system — Bayesian networks ◮ Diagnostic systems — Bayesian networks ◮ Statistical text analysis — probabilistic latent semantic
◮ Scene classification — probabilistic latent semantic analysis ◮ Object detection — probabilistic latent semantic analysis ◮ Image segmentation — Markov random fields ◮ Contextual classification — conditional random fields CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 2 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 3 / 38
◮ Given user preferences, the system can suggest
◮ Input: movie preferences of many users. ◮ Output: model correlations between movie features.
◮ Users that like comedy, often like drama. ◮ Users that like action, often do not like cartoons. ◮ Users that like Robert De Niro films, often like Al Pacino
◮ Given user preferences, the system can predict the
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 4 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 5 / 38
◮ T. Hofmann, “Unsupervised learning by probabilistic latent
◮ The probabilistic latent semantic analysis (PLSA) algorithm
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 6 / 38
◮ PLSA uses a graphical model for the joint probability of the
◮ Suppose there are N documents having content coming
◮ The collection of documents is summarized in an N-by-M
◮ In addition, there is a latent topic variable zk associated with
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 7 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 8 / 38
◮ The generative model P(di, wj) = P(di)P(wj|di) for word
K
◮ P(wj|zk) denotes the topic-conditional probability of word wj
◮ P(zk|di) denotes the probability of topic zk observed in
◮ K is the number of topics.
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 9 / 38
◮ Then, the topic specific word distribution P(wj|zk) and the
◮ In PLSA, the goal is to identify the probabilities P(wj|zk)
◮ These probabilities are learned using the EM algorithm.
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 10 / 38
◮ In the E-step, the posterior probability of the latent variables
l=1 P(wj|zl)P(zl|di)
◮ In the M-step, the parameters are updated to maximize the
i=1 n(di, wj)P(zk|di, wj)
m=1
i=1 n(di, wm)P(zk|di, wm)
j=1 n(di, wj)P(zk|di, wj)
j=1 n(di, wj)
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 11 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 12 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 13 / 38
◮ P
◮ The PLSA model is used for scene classification by
◮ The topic (aspect) probabilities are used as features as an
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 14 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 15 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 16 / 38
◮ H. G. Akcay, S. Aksoy, “Automatic Detection of Geospatial
◮ We used the PLSA technique for object detection to model
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 17 / 38
k−means
quantization histogram
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 18 / 38
P(x|t) P(s) building s t x P(t|s)
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 19 / 38
◮ After learning the parameters of the model, we want to find
◮ This is done by comparing the object specific feature
◮ The similarity between two distributions can be measured
◮ Then, for each object type, the segments can be sorted
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 20 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 21 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 22 / 38
◮ Z. Kato, T.-C. Pong, “A Markov random field image
◮ Markov random fields are used as a neighborhood model
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 23 / 38
◮ The goal is to assign each pixel into a set of labels w ∈ Ω. ◮ Pixels are modeled using color and texture features. ◮ Pixel features are modeled using multivariate Gaussians,
◮ A first-order neighborhood system is used as the prior for
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 24 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 25 / 38
◮ The prior is modeled as
◮ Each clique corresponds to a pair of neighboring pixels. ◮ The potentials favor similar classes in neighboring pixels as
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 26 / 38
◮ The prior is proportional to the length of the region
◮ The final labeling for each pixel is done by maximizing the
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 27 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 28 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 29 / 38
◮ A. Rabinovich, A. Vedaldi, C. Galleguillos, E. Wiewiora,
◮ Semantic context among objects is used for improving
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 30 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 31 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 32 / 38
◮ A conditional random field (CRF) framework is used to
◮ Given an image I and its segmentation S1, . . . , Sk, the goal
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 33 / 38
◮ This interaction is modeled as a probability distribution
i=1 A(i)
◮ The semantic context information is modeled using context
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 34 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 35 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 36 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 37 / 38
CS 551, Fall 2015 c 2015, Selim Aksoy (Bilkent University) 38 / 38