5

Is it possible to use Conditional Random Field for MultiLabel Classification? I saw a python CRF implementation at https://pystruct.github.io/user_guide.html, but couldn't figure a way to do multilabel classification.

lostboy_19
  • 347
  • 3
  • 16
  • You may get better luck asking this question on either http://stats.stackexchange.com or http://datascience.stackexchange.com/. Be sure to check out their "How to Ask" pages first, to double check your question is on-topic there; http://stats.stackexchange.com/help/on-topic and http://datascience.stackexchange.com/help/on-topic respectively. – Matt Jun 08 '16 at 12:12

2 Answers2

1

The basic CRF doesn't support multilabel classification. However, some extensions have been explored, such as the Collective Multi-label (CML) and the Collective Multi-label with Features (CMLF). From (1):

A conditional random field (CRF) based model is presented in [21] where two multi-label graphical models has been proposed, both parameterizes label co-occurances. The Collective Multi-label (CML) classifier maintains feature accounting for label co-occurances and the Collective Multi-label with Features (CMLF) maintains parameters that correspond to features for each co-occuring label pair. Petterson et. al. recently presented another interesting generative modeling approach in a reverse manner, predicting a set of instances given the labels [39].


References:

Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
0

I encountered a modified CRF named fuzzy CRF as shown below.

enter image description here

Its mathematics is quite simple as we can see from equation 2 in the paper:

enter image description here

We just sum all the energies of the paths in the numerator, and the denominator remains the same. For inference, we can apply Viterbi or beam search.

Lerner Zhang
  • 6,184
  • 2
  • 49
  • 66