Title: GAUSSIAN CONDITIONAL RANDOM FIELDS FOR CLASSIFICATION

Abstract: In this paper, a Gaussian conditional random field model for structured binary classification (GCRFBC) is proposed. The model is applicable to classification problems with undirected graphs, intractable for standard classification CRFs. The model representation of GCRFBC is extended by latent variables which yield some appealing properties. Thanks to the GCRF latent structure, the model becomes tractable, efficient, and open to improvements previously applied to GCRF regression. Two different forms of the algorithm are presented: GCRF-BCb (GCRGBC -Bayesian) and GCRFBCnb (GCRFBC -non-Bayesian). The extended method of local variational approximation of sigmoid function is used for solving empirical Bayes in GCRFBCb variant, whereas MAP value of latent variables is the basis for learning and inference in the GCRFBCnb variant. The inference in GCRFBCb is solved by Newton-Cotes formulas for one-dimensional integration. Both models are evaluated on synthetic data and real-world data. It was shown that both models achieve better prediction performance than relevant baselines. Advantages and disadvantages of the proposed models are discussed.

1. INTRODUCTION:

Increased quantity and variety of sources of data with correlated outputs, so called structured data, created an opportunity for exploiting additional information between dependent outputs to achieve better prediction performance. One of the most successful probabilistic models for structured output classification problems are conditional random fields (CRF) (Sutton & McCallum, 2006) . The main advantages of CRFs lie in their discriminatory nature, resulting in the relaxation of independence assumptions and the label bias problem that are present in many graphical models. Aside of many advantages, CRFs also have many drawbacks mostly resulting in high computational cost or intractability of inference and learning. A wide range of different approaches of tackling these problems has been proposed, and they motivate our work, too.

One of the popular methods for structured regression based on CRFs -Gausian conditional random fields (GCRF) -has the form of multivariate Gaussian distribution (Radosavljevic et al., 2010) . The main assumption of the model is that the relations between outputs are presented in quadratic form. It has convex loss function and, consequently, efficient inference and learning, and expensive sampling methods are not used.

In this paper, a new model of Gaussian conditional random fields for binary classification is proposed (GCRFBC). GCRFBC builds upon regression GCRF model which is used to define latent variables over which output dependencies are defined. The model assumes that discrete outputs y i are conditionally independent conditioned on continuous latent variables z i which follow a distribution modeled by a GCRF. That way, relations between discrete outputs are not expressed directly. Two different inference and learning approaches are proposed in this paper. The first one is based on evaluating empirical Bayes by marginalizing latent variables (GCRFBCb), whereas MAP value of latent variables is the basis for learning and inference in the second model (GCRFBCnb) . In order to derive GCRFBCb model and its learning procedure the variational approximation of Bayesian logistic regression (Jaakkola & Jordan, 2000) is generalized.

Compared to CRFs and structured SVM classifiers, the GCRFBC models have some appealing properties:

• The model is applicable to classification problems with undirected graphs, intractable for standard classification CRFs. Thanks to the GCRF latent structure, the model becomes tractable, efficient and open to improvements previously applied to GCRF regression models.

• Defining correlations directly between discrete outputs may introduce unnecessary noise to the model (Tan et al., 2010) . This problem can be solved by defining structured relations on a latent continuous variable space.

• In case that unstructured predictors are unreliable, which is signaled by their large variance (diagonal elements in the covariance matrix), it is simple to marginalize over latent variable space and obtain better results.

GCRFBC model is relying on the assumption that the underlying distribution of latent variables is multivariate normal distribution, due to that in the case when this distribution cannot be fitted well to the data (e.g. when the distribution of latent variables is multimodal) the model will not perform as well as it is expected. The proposed models are experimentally tested on both synthetic and real-world datasets in terms of predictive performance and computation time. In experiments with synthetic datasets, the results clearly indicate that the the empirical Bayes approach (GCRFBCb) better exploits output dependence structure, more so as the variance of the latent variables increases.

We also tested both approaches on real-world datasets of predicting ski lift congestion, gene function classification, classification of music according to emotion and highway congestion. Both GCRFBC models outperformed ridge logistic regression, lasso logistic regression, neural network, random forest, and structured SVM classifiers, demonstrating that the proposed models can exploit output dependencies in a real-world setting.

2. RELATED WORK:

An extensive review of binary and multi-label classification with structured output is provided in Su (2015) . A number of different studies related to graph based methods for regression can be found in the literature (Fox, 2015) . CRFs were successfully applied on a variety of different structured tasks (Cotterell & Duh, 2017; Zhang et al., 2015; Masada & Bunescu, 2017; Zia et al., 2018) and different model adaptations can be found in literature Kim (2017) ; Maaten et al. (2011) . Recently, successful unifications of deep learning and CRFs have been proposed Chen et al. (2016) ; Kosov et al. (2018) . Moreover, implementation of deep neural networks as potential functions is presented in form of structure prediction energy networks (SPEN) Belanger & McCallum (2016) ; Belanger et al. (2017) . Adaptation of normalazing flows in SPEN structure is presented in Lu & Huang (2019) .

An extensive review on topic of binary and multi-label classification with structured output is provided in Su (2015) . Large number of different studies related to graph based methods for regression can be found in the literature (Fox, 2015) . CRFs were successfully applied on a variety of different structured tasks, such as: low-resource named entity recognition (Cotterell & Duh, 2017) , image segmentation (Zhang et al., 2015) , chord recognition (Masada & Bunescu, 2017) and word segmentation (Zia et al., 2018) . The mixture of CRFs capable to model data that come from multiple different sources or domains is presented in Kim (2017) . The method is related to the well known hidden-unit CRF (HUCRF) (Maaten et al., 2011) . The conditional likelihood and expectation minimization (EM) procedure for learning have been derived there. The mixtures of CRF models were implemented on several real-world applications resulting in prediction improvement. Recently, a model based on unification of deep learning and CRF was developed by Chen et al. (2016) . The deep CRF model showed better performance compared to either shallow CRFs or deep learning methods on their own. Similarly, the combination of CRFs and deep convolutional neural networks was evaluated on an example of environmental microorganisms labeling (Kosov et al., 2018) . The spatial relations among outputs were taken in consideration and experimental results have shown satisfactory results.

The GCRF model was first implemented for the task of low-level computer vision (Tappen et al., 2007) . Since then, various different adaptations and approximations of GCRF were proposed (Radosavljevic et al., 2014) . The parameter space for the GCRF model is extended to facilitate joint modelling of positive and negative influences (Glass et al., 2016) . In addition, the model is extended by bias term into link weight and solved as a part of convex optimization. Semi-supervised marginalized Gaussian conditional random fields (MGCRF) model for dealing with missing variables was proposed by Stojanovic et al. (2015) . The benefits of the model were proved on partially observed data and showed better prediction performance than alternative semi-supervised structured models.A comprehensive review of continuous conditional random fields (CCRF) was provided in Radosavljevic et al. (2010) . The sparse conditional random fields obtained by l 1 regularization are first proposed and evaluated by Wytock & Kolter (2013) . Additionaly, Frot et al. (2018) presented GCRF with the latent variable decomposition and derived convergence bounds for the estimator that is well behaved in high dimensional regime. An adaptation of GCRF on discrete output was briefly discussed in Radosavljevic (2011) , as a part of future work. This discussion motivates our work, but our approach is different in technical aspects.

3. METHODOLOGY:

In this section we first present already known GCRF model for regression and then we propose GCRFBC model for binary classification and two approaches to inference and learning.

3.1. BACKGROUND MATERIAL:

GCRF is a discriminative graph-based regression model (Radosavljevic et al., 2010) . Nodes of the graph are variables y = (y 1 , y 2 , . . . , y N ), which need to be predicted given a set of features x.

The attributes x = (x 1 , x 2 , . . . , x N ) interact with each node y i independently of one another, while the relations between outputs are expressed by pairwise interaction function. In order to learn parameters of the model, a training set of vectors of attributes x and real-valued response variables y are provided. The generalized form of the conditional distribution P y|x, α, β is:

P y|x, α, β = 1 Z (x, α, β) exp   - N i=1 K k=1 α k y i -R k (x i ) 2 - i =j L l=1 β l S l ij (y i -y j ) 2  

(1) First sum models relations between outputs y i and corresponding input vector x i and the second one models pairwise relations between nodes. R k (x i ) represents an unstructured predictor of y i for each node in the graph and S l ij is value that expresses similarity between nodes i and j in graph l. Unstructured predictor can be any regression model that gives prediction of output y i for given attributes x i . K is the total number of unstructured predictors. L is the total number of graphs (similarity functions). Graphs can express any kind of binary relations between nodes e.g., spatial and temporal correlations between outputs. Z is a partition function and vectors α and β are learnable parameters. One of the main advantages of GCRF is the ability to express different relations between outputs by variety of graphs and ability to learn which graphs are significant for prediction. The quadratic form of interaction and association potential enables conditional distribution P (y|x, α, β) to be expressed as multivariate Gaussian distribution (Radosavljevic et al., 2010) :

EQUATION

Precision matrix Σ -1 = 2Q and distribution mean µ = Σb are defined as, respectively:

Q = K k=1 α k + N h=1 L l=1 β l S l ih , if i = j - L l=1 β l S l ij , if i = j (3) b i = 2   K k=1 α k R k (x i )   (4)

Due to concavity of multivariate Gaussian distribution, the inference task argmax y P (y|x, α, β) is straightforward. The maximum posterior estimate of y is the distribution expectation µ.

The objective of the learning task is to optimize parameters α and β by maximizing conditional log likelihood argmax α,β y logP (y|x, α, β). One way to ensure positive definiteness of the covariance matrix of GCRF is to require diagonal dominance (Strang et al., 1993) . This can be ensured by imposing constraints that all elements of α and β be greater than 0 (Radosavljevic et al., 2010) .

3.2. GCRFBC MODEL REPRESENTATION:

One way of adapting GCRF to classification problem is by approximating discrete outputs by suitably defining continuous outputs. Namely, GCRF can provide dependence structure over continuous variables which can be passed through sigmoid function. That way the relationship between regression GCRF and classification GCRF is similar to the relationship between linear and logistic regression, but with dependent variables. Aside from allowing us to define a classification variant of GCRF, this may result in additional appealing properties: (i) The model is applicable to classification problems with undirected graphs, intractable for standard classification CRFs. Thanks to the GCRF latent structure, the model becomes tractable, efficient and open to improvements previously applied to GCRF regression models. (ii) Defining correlations directly between discrete outputs may introduce unnecessary noise to the model (Tan et al., 2010) . We avoid this problem by defining structured relations on a latent continuous variable space. (iii) In case that unstructured predictors are unreliable, which is signaled by their large variance (diagonal elements in the covariance matrix), it is simple to marginalize over latent variable space and obtain better results.

It is assumed that y i are discrete binary outputs and z i are continuous latent variables assigned to each y i . Each output y i is conditionally independent of the others, given z i .

The conditional probability distribution P (y i |z i ) is defined as Bernoulli distribution:

P (y i |z i ) = Ber(y i |σ(z i )) = σ(z i ) yi (1 -σ(z i )) 1-yi (5)

where σ(•) is sigmoid function. Due to conditional independence assumption, the joint distribution of outputs y i can be expressed as:

EQUATION

Furthermore, the conditional distribution P (z|x) is the same as in the classical GCRF model and has canonical form defined by multivariate Gaussian distribution. Hence, joint distribution of continuous latent variables z and outputs y given x and θ = (α 1 , . . . , α K , β 1 , . . . , β L ) is is the general form of the GCRFBC model defined as:

EQUATION

We consider two ways of inference and learning in GCRFBC model: (i) GCRFBCb -with conditional probability distribution P (y|x, θ), in which variables z are marginalized over, and (ii) GCRF-BCnb -with conditional probability distribution P y|x, θ, µ z , in which variables z are substituted by their expectations.

3.3. INFERENCE IN GCRFBCB MODEL:

Prediction of discrete outputs y for given features x and parameters θ is analytically intractable due to integration of the joint distribution P (y, z|x, θ) with respect to latent variables. However, due to conditional independence between nodes, it is possible to obtain P (y i = 1|x, θ).

P (y i = 1|x, θ) = z σ(z i )P (z|x, θ)dz (8)

where σ(z i ) models P (y i |z). As a result of independence properties of the distribution, it holds P (y i = 1|z) = P (y i = 1|z i ), and it is possible to marginalize P (z|x, θ) with respect to latent variables z = (z 1 , . . . , z i-1 , z i+1 , . . . , z N ):

P (y i = 1|x, θ) = zi σ(z i ) z P (z , z i |x, θ)dz dz i (9)

where z P (z , z i |x, θ)dz is normal distribution with mean µ = µ i and variance σ 2 i = Σ ii . Therefore, it holds:

P (y i = 1|x, θ) = +∞ -∞ σ(z i )N (z i |µ i , σ 2 i )dz i (10)

The evaluation of P (y i = 0|x, θ) is straightforward:

P (y i = 0|x, θ) = 1 -P (y i = 1|x, θ).

The one-dimensional integral is still analytically intractable, but can be effectively evaluated by onedimensional numerical integration. The proposed inference approach can be effectively used in case of huge number of nodes, due to low computational cost of one-dimensional numerical integration.

3.4. INFERENCE IN GCRFBCNB MODEL:

The inference procedure in GCRFBCnb is much simpler, because marginalization with respect to latent variables is not performed. To predict y, it is necessary to evaluate posterior maximum of latent variable z max = argmax z P (z|x, θ), which is straightforward due to normal form of GCRF.

Therefore, it holds z max = µ z,i . The conditional distribution P (y i = 1|x, µ z,i , θ), where µ z,i is expectation of latent variable z i , can be expressed as:

EQUATION

3.5. LEARNING IN GCRFBCB MODEL:

In comparison with inference, learning procedure is more complicated. Evaluation of the conditional log likelihood is intractable, since latent variables cannot be analytically marginalized. The conditional log likelihood is expressed as:

EQUATION

L j (y j |x j , θ) = log

z j N i=1 σ(z ji ) yji (1 -σ(z ji )) 1-yji exp(-1 2 (z j -µ j ) T Σ -1 j (z j -µ j )) (2π) N/2 Σ j 1/2 dz j (13) where Y ∈ R M ×N is complete dataset of outputs, X ∈ R M ×N ×A is complete dataset of features,

M is the total number of instances and A is the total number of features. Please note that each instance is structured, so while different instances are independent of each other, variables within one instance are dependent.

One way to approximate integral in conditional log likelihood is by local variational approximation. Jaakkola & Jordan (2000) derived lower bound for sigmoid function, which can be expressed as:

EQUATION

where λ(ξ) = -1 2ξ • σ(ξ) -1 2 and ξ is a variational parameter. The Eq. 14 is called ξ transformation of sigmoid function and it yields maximum value when ξ = x. This approximation can be applied to the model defined by Eq. 13, but the variational approximation has to be further extended because of the product of sigmoid functions, such that: P (y j , z j |x j , θ) = P (y j |z j )P (z j |x j , θ) ≥ P (y j , z j |x j , θ, ξ j ) (15)

EQUATION

The Eq. 16 can be arranged in the form suitable for integration. Detailed derivation of lower bound of conditional log likelihood is presented in Appendix A. The lower bound of conditional log likelihood L(y j |x j , θ, ξ j ) is defined as:

EQUATION

where:

EQUATION

GCRFBCb uses the derivative of conditional log likelihood in order to find the optimal values for parameters α, β and matrix of variational parameters ξ ∈ R M ×N . In order to ensure positive definiteness of normal distribution involved, it is sufficient to constrain parameteres α > 0 and β > 0. The partial derivatives of lower bound of conditional log likelihood are presented in Appendix B.

For constrained optimization, the truncated Newton algorithm was used Nocedal & Wright (2006) ; Facchinei et al. (2002) . The target function is not convex, so finding a global optimum cannot be guaranteed.

3.6. LEARNING IN GCRFBCNB MODEL:

In GCRFBCnb the mode of posterior distribution of continuous latent variable z is evaluated directly, so there is no need for approximation. The conditional log likelihood can be expressed as:

EQUATION

The partial derivatives of conditional log likelihood are presented in Appendix C.

4. EXPERIMENTAL EVALUATION:

Both proposed models were tested and compared on synthetic data and real-world tasks.1 All compared classifiers were compared in terms of the area under ROC curve (AUC) and accuracy2 (ACC). Moreover, the lower bound (in case of GCRFBCb) of conditional log likelihood L Y |X, θ, µ and actual value (in case of GCRFBCnb) of conditional log likelihood L Y |X, θ of obtained values on synthetic test dataset were also reported.

4.1. SYNTHETIC DATASET:

The main goal of experiments on synthetic datasets was to examine models under various controlled conditions, and show advantages and disadvantages of each. In all experiments on synthetic datasets two different graphs were used (hence β ∈ R 2 ) and two unstructured predictors (hence α ∈ R 2 ). The results of experiments on synthetic datasets are presented in Appendix D.

It can be noticed, that in cases where norm of the variances of latent variables is small, both models have equal performance considering AUC and conditional log likelihood L Y |X, θ . This is the case when values of parameters α used in data generating process are greater or equal to the values of parameters β. This means that the information provided by unstructured predictors is more important for classifications task than the information provided by output structure. Therefore, conditional distribution P (y, z|x, θ) is concentrated around mean value and MAP estimate is a satisfactory approximation. However, when data is generated from distribution with significantly higher values of β than α, the GCRFBCb performs significantly better than GCRFBCnb.

For the larger values of variance norm, this difference is also large. This means that the structure between outputs has significant contribution to solving the classification task. It can be concluded that GCRFBCb has at least equal prediction performance as GCRFBCnb. Also, it can be argued that the models were generally able to utilize most of the information (from both features and the structure between outputs), which can be seen through AUC values. In addition, distribution of local variational parameters were analyzed during learning. It is noticed that in each epoch, the variance of this distribution is small and that the parameters can be clustered and their number significantly reduced. Therefore, it is possible to significantly lower down computational and memory costs of GCRFBCb learning procedure, but that's out of the scope of this paper. Relatively simple method for crowding detection was devised for labelling data. We assume that, if the crowding at some gate occurs, distributions of skiing times from other gates to that gate within some time window get shifted towards larger values. We model probability distribution of skiing time between two gates by the well-known parametric method of kernel density estimation (KDE) (Silverman, 2018) . The distribution shift is measured with respect to the mode of the distribution. The dataset is generated by observing shifts in time windows of 5 minutes. When the mode of the distribution of skiing times within that window is greater than the mode for the whole time-span, the instance is labeled by 1 (crowding) and otherwise, it is labeled by 0 (no crowding). In order to obtain more information from the data distribution, additional 18 features were extracted.

4.2. PERFORMANCE:

Four different unstructured predictors that were trained on each class separately were used: ridge logistic regression, LASSO logistic regression, neural network and random forest, whereas additional two unstructured predictors: decision tree and neural network were trained on all nodes together. Additionally, three structural support vector machine and two CRFs classifiers were used (Müller & Behnke, 2014) . Fully connected graph of SSVM and CRF models are defined as SSVM-full and CRF-full, whereas Chow-Liu tree method for specifying edge connections are defined as SSVMtree and CRF-tree, respectively. In the SSVM-independent model the nodes of the graph are not connected.

Six different weighted graphs were used to capture dependence structure between ski lifts (nodes):χ 2 statistics on labels of training set, mutual information between labels, correlation matrix between outputs of over-fitted neural networks, norm of difference between vectors of labels and two graphs were defined based on difference of vectors of historical labels and on differences of historical averages of skier times.

The AUC score and ACC of structured and unstructured predictors, along with the total computational time are shown in Table 1 . It can be observed that GCRFBCb and GCRBCnb outperformed unstructured and other structured predictors in all cases. Based on evaluated parameters it could be concluded that dependence structure has significant impact on overall prediction performance, even though, due to low values of norm of variance, GCRFBCb and GCRFBCnb have equal AUC scores. It can be summarized that advantages of structured models compared to unstructured are obvious, but in this particular task due to equal prediction performance and its lower computational and memory complexity, GCRFBCnb is the best choice for this specific application. The dataset used for this work consists of 100 songs from 7 different genres. The collection was created from 233 musical albums choosing three songs from each album. 8 rhythmic and 64 timbre features are extracted. The music is labeled in 6 categories of emotions: amazed-surprised, happypleased, relaxing-calm, quiet-still, sad-lonely and angry-fearful (Trohidis et al., 2008) . Total number of instances in dataset was 593. Four different weighted graphs were used: statistics on labels of training set, mutual information between labels, correlation matrix between outputs of over-fitted neural networks and norm of difference between vectors of labels. Same unstructured predictors as in ski lift congestion problem were used, along with three structural support vector machine classifiers.

The performances of models are evaluated by 10 fold cross validation. The AUC score and ACC of structured and unstructured predictors, along with the total computational time are shown in Table 2 . It can be seen that GCRFBCb has achieved the best prediction performances. The ACC of GCRFBC models are significantly better than the SSVM performances. The AUC score and ACC of GCRGBCb are higher than the best result (AUC = 0.8237) presented in original paper (Trohidis et al., 2008) . As in previous cases, computational time of GCRFBCb is significantly longer compared to GCRFBCnb and SSVM models.

4.2.3. GENE FUNCTION CLASSIFICATION:

This dataset is formed by micro-array expression data and phylogenetic profiles with 2417 genes (instances). The number of features is 103, whereas each gene is associated with the set of 14 groups (Elisseeff & Weston, 2002) . The same unstructured, structured predictors and weighted graphs, as Further studies should address extending GCRFBC to structured multi-label classification problems, and lower computational complexity of GCRFBCb by considering efficient approximations.

L j (y j |x j , θ, ξ j ) = log P (y j |x j , θ, ξ

EQUATION

B PARTIAL DERIVATIVE OF LOWER BOUND OF CONDITIONAL LOG

LIKELIHOOD:

The partial derivative of lower bound of conditional log likelihood (GCRFBCb)

EQUATION

where:

EQUATION

Similarly partial derivatives with respect to β can be defined as:

∂L j (y j |x j , θ, ξ j )

EQUATION

where:

EQUATION

)

In the same manner partial derivatives of conditional log likelihood with respect to ξ ji are: 

∂L j (

D SYNTHETIC DATASET RESULTS:

In order to generate and label graph nodes, edge weights S and unstructured predictor values R were randomly generated from uniform distribution. Besides, it was necessary to choose values of parameters α and β. Greater values of α indicate that the model is more confident about performance of unstructured predictors, whereas for the larger value of β the model is putting more emphasis on the dependence structure of output variables.

Six different values of parameters α and β were used. In the first group α and β have similar values, so unstructured predictors and dependence structure between outputs have similar importance. In the second group, α has higher values compared to β, which means that unstructured predictors are more important than the dependence structure. In the third group β has higher values than α, meaning that dependence structure is more important than unstructured predictors.

Along with the AUC and conditional log likelihood, norm of the variances of latent variables (diagonal elements in the covariance matrix) is evaluated and presented in Table 5 . In addition, the results of experiments are presented in Fig. 1 , where for different values of α and β we show differences between GCRFBCb and GCRFBCnb (a) AUC scores, (b) log likelihoods, and (c) norm of the variances of latent variables.

:

Implementation can be found at https://github.com/andrijaster/GCRFBC B NB

PyStruct package does not have option of returning SSVM and CRF confidence values for AUC evaluation

Figures and Tables:

Prediction performance and computation time of classifiers -Ski lifts congestion problem

Table content: <table><tr><td>Model</td><td colspan="3">AUC ACC Calculation time [sec]</td></tr><tr><td>GCRFBCnb</td><td colspan="2">0.831 0.749</td><td>119.554</td></tr><tr><td>GCRFBCb</td><td colspan="2">0.831 0.749</td><td>3364.326</td></tr><tr><td>Ridge logistic</td><td colspan="2">0.793 0.736</td><td>0.41</td></tr><tr><td>LASSO logistic</td><td colspan="2">0.793 0.735</td><td>1.799</td></tr><tr><td>Neural network</td><td colspan="2">0.790 0.720</td><td>151.571</td></tr><tr><td>Random forest</td><td colspan="2">0.783 0.720</td><td>7.983</td></tr><tr><td>Decision tree -together</td><td>-</td><td>0.681</td><td>8.297</td></tr><tr><td>Neural network -together</td><td>-</td><td>0.711</td><td>13.997</td></tr><tr><td>SSVM -full</td><td>-</td><td>0.622</td><td>517.412</td></tr><tr><td>SSVM -tree</td><td>-</td><td>0.615</td><td>580.475</td></tr><tr><td>SSVM -independent</td><td>-</td><td>0.635</td><td>1029.172</td></tr><tr><td>CRF -tree</td><td>-</td><td>0.745</td><td>16415.723</td></tr><tr><td>CRF -full</td><td/><td>0.740</td><td>13942.542</td></tr></table>

Prediction performance and computation time of classifiers -Music classification accordint to emotion

Table content: <table><tr><td>Model</td><td colspan="3">AUC ACC Calculation time [sec]</td></tr><tr><td>GCRFBCnb</td><td colspan="2">0.859 0.811</td><td>7.248</td></tr><tr><td>GCRFBCb</td><td colspan="2">0.860 0.813</td><td>353.328</td></tr><tr><td>Ridge logistic</td><td colspan="2">0.826 0.794</td><td>0.138</td></tr><tr><td>LASSO logistic</td><td colspan="2">0.832 0.797</td><td>0.874</td></tr><tr><td>Neural network</td><td colspan="2">0.811 0.783</td><td>98.132</td></tr><tr><td>Random forest</td><td colspan="2">0.843 0.798</td><td>2.469</td></tr><tr><td>Decision tree -together</td><td>-</td><td>0.736</td><td>0.564</td></tr><tr><td>Neural network -together</td><td>-</td><td>0.782</td><td>8.471</td></tr><tr><td>SSVM -full</td><td>-</td><td>0.755</td><td>76.817</td></tr><tr><td>SSVM -tree</td><td>-</td><td>0.795</td><td>75.93</td></tr><tr><td>SSVM -independent</td><td>-</td><td>0.784</td><td>146.867</td></tr><tr><td colspan="4">4.2.2 MULTI-LABEL CLASSIFICATION OF MUSIC ACCORDING TO EMOTION</td></tr></table>

Prediction performance and computation time of classifiers -Gene classification problem to emotion classification, were used. The 10-fold cross validation results of the classification are shown in Table3.It can be observed that both GCRFBCb and GCRFBCnb achieved significantly better results in comparison with unstructured predictors. However, neural network trained on all data together achieved the same ACC scores as GCRFBCb. The AUC of GCRFBCb has outperformed Random forest classifier by 19%, whereas SSVM -tree has better ACC compared to GCRFBCnb. It also outperformed GCRFCnb, but as expected, its computation time was longer. In addition, the computation time of CRFs models are longer compared to GCRFBCb4.2.4 HIGHWAY CONGESTIONThe E70-E75 motorway is a major transit motorway in Serbia. With 504 kilometers, it is the one the major transit motorway in Serbia. It crosses the country from north-west to south, starting at Batrovci border crossing with the Republic of Croatia and ending with Preševo border crossing with the Republic of North Macedonia.One of the biggest problems in E70-E75 motorway is high congestion that frequently occurs. One of the reasons lies in lack of open toll stations. In order to mitigate congestion problem, it is necessary to predict its occurrence and open enough toll stations. Data used in this research includes information of car entrance and exit for the year 2017. Two different sections were analyzed: Belgrade -Adaševci and Niš -Belgrade. The section Belgrade -Adaševci was analyzed for the period of January 2017, whereas section Niš -Belgrade was analyzed for the period of April -July 2017. The congestion was labeled using the similar technique based on KDE as presented in the ski lifts congestion problem. Based on raw datasets for sections Niš -Belgrade and Belgrade -Adaševci with 5,132,918 and 487,767 instances, respectively, a new dataset for section Niš -Belgrade is generated by observing shifts in time windows of 10 minutes due to large number of vehicles, whereas in the case of section Belgrade -Adaševci the shifts are observed in time windows of 20 minutes. Total numbers of instances for sections Belgrade -Adaševci and Niš -Belgrade are 50,964 and 235,872, whereas numbers of highway exits (outputs) are 6 and 18, respectively. The extracted features are similar to the ones presented in ski congestion problem. The χ 2 statistics, mutual information, correlation matrix and difference of vectors of historical labels were used to capture dependence structure, whereas the same unstructured predictors as in ski lifts congestion problem were evaluated. The classification results, validated by 10 fold cross validation, are presented in Table4.The GCRFBCnb achieved the highest AUC and ACC scores in the section Belgrade -Adaševci, whereas GCRFBCb has better prediction performance in section Niš -Belgrade. Moreover, in case of section Niš -Belgrade, GCRFBCb has worse ACC score than fully connected CRF, whereas CRF-tree outperformed GCRFBCnb in section Belgrade -Adaševci

Table content: <table><tr><td>Model</td><td colspan="3">AUC ACC Calculation time [sec]</td></tr><tr><td>GCRFBCnb</td><td colspan="2">0.775 0.766</td><td>48.167</td></tr><tr><td>GCRFBCb</td><td colspan="2">0.797 0.775</td><td>2297.727</td></tr><tr><td>Ridge logistic</td><td colspan="2">0.582 0.539</td><td>0.079</td></tr><tr><td>LASSO logistic</td><td colspan="2">0.583 0.540</td><td>0.188</td></tr><tr><td>Neural network</td><td colspan="2">0.580 0.567</td><td>70.298</td></tr><tr><td>Random forest</td><td colspan="2">0.601 0.615</td><td>5.529</td></tr><tr><td>Decision tree -together</td><td>-</td><td>0.691</td><td>1.218</td></tr><tr><td>Neural network -together</td><td>-</td><td>0.775</td><td>28.381</td></tr><tr><td>SSVM -full</td><td>-</td><td>0.771</td><td>10137.049</td></tr><tr><td>SSVM -tree</td><td>-</td><td>0.768</td><td>722.156</td></tr><tr><td>SSVM -independent</td><td>-</td><td>0.539</td><td>78.8870</td></tr><tr><td>in music according</td><td/><td/><td/></tr></table>

Prediction performance and computation time of classifiers -Highway congestion problem this paper, a new model, called Gaussian Conditional Random Fields for Binary Classification (GCRFBC) is presented. The model is based on latent GCRF structure, which means that intractable structured classification problem can become tractable and efficiently solved. Moreover, the improvements previously applied to regression GCRF can be easily extended to GCRFBC. Two different variants of GCRFBC were derived: GCRFBCb and GCRFBCnb. Empirical Bayes (marginalization of latent variables) by local variational methods is used in optimization procedure of GCFRBCb, whereas MAP estimate of latent variables is applied in GCRFBCnb. Based on presented methodology and obtained experimental results on synthetic and real-world datasets it can be concluded that both GCRFBCb and GCRFBCnb models have better prediction performance compared to the analysed structured unstructured predictors. Additionaly, GCRFBCb has better performance considering AUC score, ACC and lower bound of conditional log likelihood L Y |X, θ compared to GCRFBCnb, in cases where norm of the variances of latent variables is high. However, in cases where norm of the variances is close to zero, both models have equal prediction performance. Due to high memory and computational complexity of GCRFBCb compared to GCRFBCnb, in cases where norm of the variances is close to zero, it is reasonable to use GCRFBCnb. Additionally, the trade off between complexity and accuracy can be made in situation where norm of the variances is high.

Table content: <table><tr><td/><td/><td colspan="2">Niš -Belgrade</td><td/><td colspan="2">Belgrade -Adaševci</td></tr><tr><td/><td colspan="6">AUC ACC Calculation time [sec] AUC ACC Calculation time [sec]</td></tr><tr><td>GCRFBCnb</td><td colspan="2">0.740 0.684</td><td>344.166</td><td colspan="2">0.974 0.925</td><td>90.321</td></tr><tr><td>GCRFBCb</td><td colspan="2">0.751 0.692</td><td>13818.874</td><td colspan="2">0.956 0.895</td><td>2103.749</td></tr><tr><td>Ridge logistic</td><td colspan="2">0.716 0.681</td><td>10.73</td><td colspan="2">0.917 0.856</td><td>1.771</td></tr><tr><td>LASSO logistic</td><td colspan="2">0.716 0.680</td><td>30.12</td><td colspan="2">0.917 0.856</td><td>1.657</td></tr><tr><td>Neural network</td><td colspan="2">0.72 0.682</td><td>857.602</td><td colspan="2">0.956 0.904</td><td>125.339</td></tr><tr><td>Random forest</td><td colspan="2">0.739 0.683</td><td>209.589</td><td colspan="2">0.965 0.914</td><td>3.826</td></tr><tr><td>Decision tree -together</td><td>-</td><td>0.625</td><td>635.464</td><td>-</td><td>0.898</td><td>1.893</td></tr><tr><td>Neural network -together</td><td>-</td><td>0.664</td><td>125.441</td><td>-</td><td>0.880</td><td>16.475</td></tr><tr><td>SSVM -full</td><td>-</td><td>0.588</td><td>7637.794</td><td>-</td><td>0.739</td><td>340.806</td></tr><tr><td>SSVM -tree</td><td>-</td><td>0.588</td><td>3684.138</td><td>-</td><td>0.755</td><td>392.597</td></tr><tr><td>SSVM -independent</td><td>-</td><td>0.602</td><td>3262.208</td><td>-</td><td>0.814</td><td>704.07</td></tr><tr><td>CRF -tree</td><td>-</td><td>0.685</td><td>29749.054</td><td>-</td><td>0.88</td><td>26539.250</td></tr><tr><td>CRF -full</td><td>-</td><td>0.683</td><td>52563.972</td><td>-</td><td>0.898</td><td>25339.97</td></tr><tr><td>5 CONCLUSION</td><td/><td/><td/><td/><td/><td/></tr></table>

y j |x j , θ, ξ j ) PARTIAL DERIVATIVE OF CONDITIONAL LOG LIKELIHOOD The derivatives of the conditional log likelihood (GCRFBCnb) with respect to α and β are defined as, respectively:∂L ji (y ji |x j , θ, µ ji ) ∂α k = y ji -σ(µ ji ) ∂µ ji ∂α k (42) ∂L ji (y ji |x j , θ, µ ji ) ∂α l = y ji -σ(µ ji )∂β l and can be obtained by Eqs. 33 and 37, respectively.

Table content: <table><tr><td>where:</td><td/><td/><td/><td/><td/><td/><td/><td colspan="5"> 0 0</td><td/><td/><td>0</td><td>. . . 0</td><td></td></tr><tr><td/><td/><td/><td/><td colspan="2">∂Λ j ∂ξ ji</td><td colspan="2">=</td><td colspan="5">        0 0 . . . . . . . . . . . . 0 0</td><td/><td colspan="2">. . . ∂λ(ξji) ∂ξji . . . 0</td><td>. . . . . . 0 . . . . . . . . . . . . 0</td><td>       </td><td>(39)</td></tr><tr><td/><td/><td/><td/><td/><td colspan="6">∂σ(ξ ji ) ∂ξ ij</td><td colspan="5">= σ(ξ ji )(1 -σ(ξ ji ))</td><td>(40)</td></tr><tr><td/><td/><td colspan="3">∂λ(ξ ji ) ∂ξ ji</td><td>=</td><td colspan="4">1 2ξ ji</td><td colspan="4">∂σ(ξ ji ) ∂ξ ji</td><td>-</td><td>1 2</td><td>σ(ξ ji ) -</td><td>1 2</td><td>1 ji ξ 2</td><td>(41)</td></tr><tr><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td>∂µ ji ∂β l</td><td>(43)</td></tr><tr><td>where</td><td>∂µji ∂α k and</td><td colspan="11">∂µji ∂β l are elements of the vectors</td><td colspan="3">∂µ j ∂α k and</td><td>∂µ j</td></tr><tr><td/><td>∂ξ ji</td><td>= -</td><td>1 2</td><td colspan="3">Tr 2S j</td><td colspan="4">∂Λ j ∂ξ ji</td><td/><td colspan="4">-2 y j -</td><td>1 2</td><td>I S j</td><td>∂Λ j ∂ξ ji</td><td>S j S -1 j m j</td></tr><tr><td/><td/><td colspan="2">+ m T j</td><td>∂Λ j ∂ξ ji</td><td colspan="4">m j +</td><td colspan="3">N i=1</td><td> </td><td colspan="3">1 σ(ξ ji )</td><td>+</td><td>1 2</td><td>ξ ji</td><td>∂σ(ξ ji ) ∂ξ ji</td><td>+</td><td>1 2</td><td>σ(ξ ji ) -</td><td>3 4</td><td> </td></tr><tr><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td/><td>(38)</td></tr></table>

Peer review (iclr2020):
The authors break the double blind anonymity with the code link provided. I*ll leave how to deal with this to the meta reviewer. The authors provide a method to modify GRFs to be used for classification. The idea is simple and easy to get through, the writing is clean. The method boils down to using a latent variable that acts as a *pseudo-regressor* that is passed through a sigmoid for classification. The authors then discuss learning and inference in the proposed model, and propose two different variants that differ on scalability and a bit on performance as well. The idea of using the xi transformation for the lower bound of the sigmoid was interesting to me -- since I have not seen it before, its possible its commonly used in the field and hopefully the other reviewers can talk more about the novelty here. The empirical results are very promising, which is the main reason I vote for weak acceptance. I think the paper has value, albeit I would say its a bit weak on novelty, and I am not 100% convinced about the this conference being the right fit for this paper. The authors augment MRFs for classification and evaluate and present the results well. Can the authors intuit why random forests and neural nets dont perform as well ? It seems there are many knobs one can tune to get better performance, so I will take the presented results with a grain of salt. Also, it seems one can also use other *link* functions with MRFs (similar to link functions in generalized linear models) to not just do logistic but other possible losses as well. How about multiclass classification using softmax ? I think such generalizations would make this paper lot stronger.