A Probabilistic Quality Representation Approach to Deep Blind Image Quality Prediction
Hui Zeng, Lei Zhang, Alan C. Bovik
I Introduction
With the explosion of visual media data, huge amounts of digital images are generated, stored, processed and transmitted every day. During these different stages, the images can undergo diverse, often multiple distortions, arising from under-/over-exposure, various blurs, noise corruption, compression artifacts, and so on. Developing algorithms that can automatically monitor the perceptual quality of images is not only crucial to improve user experience, but also important for the design of image processing algorithms and devices, such as digital cameras . In many practical applications, it is very hard, if not impossible, to obtain a reference image of the image to be assessed, making powerful full-reference and reduced-reference image quality assessment (IQA) methods inapplicable. Thus it has become increasingly important to develop effective no-reference, or more practically, blind IQA (BIQA) methods which can predict image quality without any additional information.
BIQA methods aim to predict the scalar quality score of the image in a manner that is consistent with human opinions. Most existing BIQA methods follow the flowchart shown in Fig. 1. Classical BIQA methods typically first extract some handcrafted features (e.g., derived from natural scene statistics models) to represent the distorted image, and then train a regression model (e.g., by support vector regression (SVR)) to map the feature representations to subjective quality scores. An obvious limitation of those BIQA methods is that the handcrafted features may not be powerful enough to adequately represent complex image structures and distortions, and therefore, to predict perceptual image quality accurately enough. Recently, deep learning techniques have achieved great successes in solving various image recognition and processing problems . The remarkable capability of deep neural networks to learn discriminative features provides a very promising option for addressing the challenging BIQA task. Several attempts have been made to apply deep learning technology to the BIQA tasks, yet clear successes have been elusive. The main reason for this is that the success of deep learning relies heavily on large-scale annotated data, like the image recognition oriented ImageNet dataset ; unfortunately, for the task of BIQA, there do not yet exist any databases containing sufficient quantities of training images which have associated human subjective quality scores.
Since the subjective scoring of images quality is very expensive and cumbersome, existing IQA databases can only provide very limited numbers of images on which subjective quality scores have been collected. Indeed, the most popular and representative legacy IQA databases, such as LIVE IQA , CSIQ and TID2013 , generally contain no more than 3,000 distorted images, usually generated from no more than 30 source images, hence they can only include very limited degrees of content variations, implying a poor representation of the high dimensional image space. In this direction, the authors of created a database of about 1200 authentically distorted natural images that is much larger in content variations and distortion types. We will refer to this LIVE In-the-Wild Image Quality Challenge Database as “LIVE Challenge.” By conducting an online crowdsourced picture quality study, they obtained more than 350,000 human subjective scores on these images. Even this number of training samples is inadequate to train a robust deep model having millions of parameters. However, given the unprecedented number of picture contents and the very wide diversity of distortions and combinations of distortions, LIVE Challlenge presents a difficult test even for pre-trained very deep learned IQA models .
Researchers have also used a variety of data augmentation methods to generate more training samples . The most popular data augmentation method is to extract a huge number of small image patches to train patch-based models. This technology has proven very effective on several synthetically distorted image quality databases which simulate clearly defined homogeneous, single impairments . Unfortunately, the perceptual qualities of local image patches generally differ from each other and from the perceived quality of the entire image, especially for complex authentic distortions which are often not homogeneous. Other data augmentation methods, such as generating proxy quality scores using full-reference IQA methods to replace or supplement human opinions , or using ranked image pairs , cannot be applied on practical BIQA applications where reference image information is not available.
Towards making progress on this problem, we have attempted to develop better ways to train a robust deep BIQA model using only a limited number of annotated images. Our approach to this problem exploits the fact that the perceptual qualities of real-world images are highly subjective, and a given authentically distorted image may be assigned very different quality scores by different human subjects. For example, the average standard deviation of the subjective scores of the images in the LIVE Challenge database is 19.27 on a Mean Opinion Score (MOS) scale of . Heretofore, this property has not been discussed or utilized, likely since the simpler, legacy databases of singular, synthetic distortions contain much tighter ranges of reported quality opinions, as might be expected. Hence, existing learning-based BIQA methods have only used the MOS to represent image quality when training regression models, ignoring the potentially useful and predictive information contained in the distributions of perceptual quality opinion scores.
Thus we have developed and describe here a new image quality representation scheme that captures the distributions of the often diverse subjective opinions of images. Since the original subjective opinions assigned to each image are generally unavailable, we propose a probabilistic quality representation (PQR) that we use to approximately describe the subjective score distribution of each image. As described in detail further in Sec. III, we do this by first defining a set of quality “anchors,” then transform each original scalar MOS into a vectorized PQR, based on the distance between the MOS value and each quality anchor value. By using the PQR to augment the subjective information contained in the training samples, we are able to define a more robust loss function to use when training deep BIQA models. The results of our experiments show that this strategy not only speeds up the training process, but also make it possible to achieve much higher prediction accuracy than widely used scalar quality score regression methods.
II Related work
Existing BIQA methods can be conveniently divided into two categories: classical regression based models and more recent deep learning based methods. In classical regression based BIQA methods, a set of handcrafted features usually are extracted first to capture quality-related aspects of a set of distorted training images, then, a regression model is learned that maps the image representations onto scalar quality scores. Along this line, Moorthy et al. proposed a two-step framework called BIQI, and used it to create the first BIQA model based on a model of natural scene statistics (NSS). BIQI operates by using a support vector classifier (SVC) to first identify the likely distortion types, then a trained SVR model to predict the distortion-specific image quality. The BRISQUE model developed by Mittal et al. computes the scene statistics of locally normalized luminance coefficients expressed in the spatial domain, then uses them as input to train an SVR to make quality predictions. Tang et al. employed three sets of low level features (natural image statistics, texture measures and blur/noise measures) to train an SVR model on each group of features. Liu et al. computed spatial and spectral image entropies under an NSS model to train an SVR to make quality predictions. Ye et al. employed a codebook based image representation using soft-assignment and max-pooling techniques, and used it to train a linear SVR model to map the code-words onto subjective scores. Ghadiyaram et al. proposed the FRIQUEE model, which exploits a bag of NSS features feeding an SVR that was trained to perform image quality prediction.
Recently, a few deep learning based methods have been developed to solve the BIQA problem, achieving promising performance on the legacy IQA databases. Similar to classical methods, these deep models operate by mapping distorted images or image patches onto scalar quality scores. Kang et al. trained a shallow CNN model to perform BIQA, where small image patches are fed into a 5 layer CNN using a score regression loss. Tang et al. introduced a semi-supervised rectifier neural network that conducts BIQA. They first trained two layers of restricted Boltzmann machines (RBMs) based on a set of hand-crafted features, then fine-tuned the pre-trained model on human labels using a kernel regression function. To alleviate the overfitting problem, Kim et al. first pre-trained a model on a large number of image patches with proxy quality labels generated by a state-of-the-art full-reference method, then aggregated the feature vectors of image patches into image level representations to predict image-wise quality scores. Although there are some differences in the training strategies used, all of the deep methods mentioned above learn to directly regress the scalar quality scores.
Since existing IQA databases contain insufficient numbers of images, data augmentation is currently necessary to train a deep BIQA model. The most popular data augmentation strategy is to extract a huge number of small image patches in order to train a patch-based quality prediction model. This technique has proven effective on legacy IQA databases containing synthetic distortions. However, the quality scores of small image patches can vary greatly across an image owing to spatial inhomogeneities of both content and of authentic distortions. Since human judgements of image patch qualities are exceedingly difficult to obtain, replacements for human scores have been considered. Several authors have employed state-of-the-art full-reference IQA algorithms to generate proxy scores on many image patches. An obvious limitation of this technique is the requirement of reference image, which is not usually available. Ma et al. proposed to train a deep BIQA model using a large number of ranked image pairs. However, in this case, the rank order is also difficult to know in practical applications where no reference image is available.
Here, we define a new path to the “deep IQA problem” by defining a new way to represent perceptual image quality, which we call probabilistic quality representation (PQR). It is based on the observation that different human viewers may experience different perceptions of the quality of distorted images. While it is often believed that people generally agree with respect to the quality of a picture, this may become less true as the distortions become more variable and authentic. This suggests that image quality could be represented as a (vectorized) probability, instead of as a scalar quantity. The idea is to embody richer image quality information in the PQR, making it possible to train a more stable deep BIQA model even while using a limited number of training samples.
III Proposed method
We begin by first briefly outlining the limitations of existing deep BIQA methods, and then we motivate and describe the PQR framework. This leads to a probabilistic representation of distorted images and the deep BIQA model training process.
Without loss of generality, we will only consider the patch-wise training (with a fixed patch size such as ) although our method could easily be applied on a whole-image basis. Given a database with subjective scores, patch-wise training methods extract image patches for data augmentation. Denote by the training set, where is the quality score of the -th training sample and is the total number of training samples. In prior patch-based methods, is usually inherited from the MOS values assigned to whole images. The few existing deep BIQA methods mostly employ the following objective function to learn a regression model:
where is a deep model with parameter , which takes the training sample as input, and when trained, outputs a scalar quality prediction. Usually the squared Euclidean distance (i.e. ) is employed in Eq. (1) because of its easy optimization.
The objective function (Eq. (1)) is thus used to optimize a deep model having millions of parameters to map high-dimensional input image data onto scalar quality scores . However, as mentioned before, existing IQA databases are only able to provide very limited numbers of images that are supplied with subjective quality scores. As pointed out in , obtaining subjective image quality scores is a more difficult and time-consuming task than, for example, ImageNet class labels . Without enough labeled training samples, it is hard to train a stable, convergent deep model , and a model trained on a small dataset may not generalize well to unseen data. Extracting a huge number of small patches from a limited number of images is one way to partly alleviate the data shortage, but it requires the use of proxy patch quality scores in the absence of subjective patch labels. Using whole-image subject scores as proxy patch labels can improve training stability to some extent, but it also introduces the issue of quality bias, since the true subjective qualities of image patches are quite inhomogeneous over space, and can differ greatly from the subjective reports of whole-image quality, especially those afflicted by real-world, authentic distortions. The use of full-reference IQA predictions computed by engines like FSIM , MS-SSIM , or VIF as proxy patch scores is also fraught, since these models are also imperfect. Moreover, they require references patches, implying that they may only be used to a deep model on synthetic distortions. The use of proxy subjective scores generated by no-reference IQA algorithms like BRISQUE or similar models is also highly questionable. While these models can be trained on authentically distorted images like those in LIVE Challenge, the use of a very shallow model to train a deep model in highly questionable. Overall, the benefits brought by patch based data augmentation have not been significant.
In order to train a more robust deep BIQA model, even when only using a limited set of training samples, we propose the use of a new probabilistic quality representation (PQR) model that can be used to enrich the subjective information associated with each training sample, thereby endowing a more informative loss function. The subjective quality of a given image cannot be adequately described by a single scalar value, because the intra-subjective opinions of any distorted image may vary widely, especially for inhomogeneous authentic distortions that may co-exist in complex combinations. Moreover, the empirical distribution of subjective opinions, whether recorded or not, may vary both within the span of an image as well as across images. Thus it would be useful to have available a informative probabilistic representation of possible perceptual quality levels.
A visual flow diagram illustrating the framework of our approach is shown in Fig. 2. Given a training database, we first define or deduce a set of quality “anchors” that lie within the score range, then transform the scalar quality scores into a PQR vector via a transformation function . A transformation function is simultaneously learned, which accurately converts a vector PQR back to a scalar quality score. Given the PQRs of a set of training samples as inputs, an end-to-end CNN model can be trained. During the testing stage, the trained CNN model outputs a PQR vector descriptive of input image, which can then be mapped to a scalar quality score using the learned function .
III-B Probabilistic Quality Representation (PQR)
We define three key components of our proposed PQR: the quality anchors, probabilistic representation mapping and the reverse mapping to scalar scores.
Quality anchors. The first step is to find quality anchors that fall within the overall range of quality scores. The quality anchors are intended to serve as a discrete set of model score realizations shared by all images, onto which a model probabilistic representation can be defined. There are many ways to define the anchors. The simplest is to divide the numerical range of possible subjective scores into a small number of equally spaced intervals. For example, one could partition the subjective quality range into five Likert-type levels representing “bad,” “poor,” “fair,” “good,” and “excellent” . These natural divisions may already be available as part of the subjective dataset being used. We divide the score range, typically or , into equal bins, then define the midpoints of the bins as the quality anchors. This approach is unsupervised, and does not require using any information from the training data.
Supervised methods, which utilize information from the overall per-image subjective data of a database, can also be used to determine the quality anchors. Since the per-image quality scores are scalar values, the optimal Lloyd-Max quantization scheme is a good candidate. A Lloyd-Max quantizer applied to a training corpus of per-image subjective quality scores will find an optimal set of quality anchors representing all of the training samples by minimizing the mean-square quantization error. Specifically, given a set of training scores and a fixed number of quantization levels , the Lloyd-Max quantizer finds the optimal decision boundaries and quality anchors minimizing:
While this approach is not based on patch scores (although it could be were they available), it does utilize the scores taken over a substantial (training) portion of an entire subjective quality dataset, and may be viewed as broadly representative of the subjective quality distribution of that dataset.
Probabilistic representation. Given a set of quality anchors, the scalar quality scores are then mapped into vectorized PQRs; that is, each image is assigned a set of probabilities of the quality anchors. The PQR is designed under the following two constraints: 1) Given an image with assigned MOS , define a set of probabilities associated with the anchors , such that is large when the Euclidean distance is small, and decreases monotonically with increasing distance; 2) The per-image anchor probabilities sum to 1. A simple and effective function is the soft-mapping function :
where is the probability that the -th training sample belongs to the -th quality anchor, and is a scaling constant. In our implementations, we normalized to the range on all examined databases, and determined a common value of over all databases. The PQR mapping (Eq. (3)) is motivated in a similar way as soft-assignment methods that are commonly used in clustering algorithms . The squared Euclidean distance is convenient but not necessary; we also tested other distance metrics, including the -norm distance, but found that the final quality prediction results depend little on this choice.
Reverse mapping. By transforming the scalar image quality score into a PQR vector, a deep BIQA model is learned which will output PQR vectors descriptive of perceptual image quality. This probabilistic description is of great interest and may be used in a variety of ways, e.g., to train a more robust deep BIQA model. Since the basic evaluation criteria (e.g., SRCC and PLCC) of modern BIQA models are generally computed on produced scalar quality predictions, it is desirable to be able to re-map the output PQR vectors back to scalar quality scores. This is a vector to scalar transform problem, which we solve by learning a regression function that maps PQR vectors back to scalar quality scores, specifically, by minimizing the following error function:
where is the vector form of . This reverse mapping is a relatively simple regression task (with independent variables and dependent variable) that is easily and accurately solved using a linear SVR model. We have found the average absolute error of this minimization to be smaller than 0.01 on a MOS scale of ) for reasonable choices of and , which are the only model parameters other than those defining the deep network.
III-C Training the Deep BIQA Model
Loss function. Given the PQR vectors of an adequate set of training samples, we are able to train a deep BIQA model to conduct image quality prediction. As we will show, the enriched probabilistic quality descriptions contained in the PQR vectors lead to more robust quality predictions, even without a very large corpus of labeled training data. Since the transformed probabilities lie in the range $\mathbf{\widetilde{q}}_{n}\mathbf{\widetilde{q}}_{n}\mathbf{q}_{n}$ are probability distributions, it is a natural and effective choice to minimize the Kullback-Leibler (KL) divergence between these two probability distributions:
Since the target probability distribution is fixed, minimizing the KL divergence is identical to minimizing the cross-entropy [36, Chap. 6.9]. Our final loss function is then:
Training deep BIQA models using our proposed PQR model exploits some attractive optimization properties that are not shared by traditional scalar quality regression. As mentioned, the PQR supplies much richer information descriptive of the subjective opinions of the training samples. This increased information richness when training and applying the deep BIQA models leads to increased accuracy. Further, the use of the softmax cross-entropy loss enforces stronger constraints on the highly flexible deep CNN models that we deploy, thereby accelerating and stabilizing the training process, while also supplying better generalization capability.
During the testing stage, the PQR prediction vector of each image patch is re-mapped to a scalar quality score using the learned function in Eq. (4). Finally, the scalar quality scores over all of the image patches are pooled, yielding a whole-image quality prediction score. Here, we simply average the patch scores (average pooling), obtaining exceptional performance in doing so. However, there is ample scope for improving the pooling process, especially given the rich set of probabilistic spatial quality representations that are still available in the form of patch PQR predictions. One can easily envision adding additional output layers to optimize the many-to-one pooling function.
CNN models. We fine tuned several well-known pre-trained deep CNN architectures on the IQA databases to evaluate the efficacy of our proposed PQR model. For a more comprehensive evaluation, we also trained a shallow CNN network using smaller image patches, and compared its performance with that of the deep CNN networks.
Specifically, we finetune two well-known deep CNN networks, AlexNet and ResNes50 Other popular CNN architectures, such as GoogLeNet and the VGG models , lie between these two models in terms of their depth and complexity. Hence we did not evaluate the performance of PQR on them.. Both of these models were first pre-trained on the ImageNet database, to conduct an image classification task, ostensibly learning very general image feature representations that can be transferred, with additional training, to conduct picture quality prediction. The specific configurations of the pre-trained networks can be found in the original papers. The image input sizes are constrained to for AlexNet and for ResNet50. To enable fine-tuning, we replaced the last fully-connected (FC) layers of each pre-trained network with a new FC layer, followed by the loss function layer. To alleviate overfitting, we add a single dropout layer with dropout rate equal to 0.5 immediately before the last FC layer.
Since many existing BIQA methods train a shallow CNN model using small image patches, we also evaluated our proposed PQR method using a shallow CNN model (hereafter referred to as S_CNN). The overall configuration of S_CNN is shown in Fig. 3. It consists of 5 convolutional (conv) layers followed by a single FC layer and takes RGB image patches as input. All of the conv-layers employ filters of size with stride 1, except for the last conv-layer, which uses filters. Each conv-layer is followed by a max-pooling layer and a rectified linear unit (ReLU) activation layer. All of the max-pooling layers use kernels with stride 2. After each downsampling, the number of filters in the conv-layer is doubled. No padding is used throughout the network in order to reduce the number of parameters. The dropout layer is placed just before the FC layer. The final S_CNN model requires the optimization of only 0.9 million parameters, as compared with AlexNet (62 millions) and ResNet50 (26 millions).
IV Experiments
We tested the PQR model on four representative IQA databases: LIVE Challenge , LIVE IQA , CSIQ and TID2013 . A summary of these databases is reported in Table I. The LIVE Challenge database is currently the largest IQA database along several important dimensions, including the number of distinct image contents (nearly 1,200, as compared to less than 3 dozens in the other databases) and the diversity of distortions and distortion combinations, which are essentially as numerous as the contents. It is also the only database to contain authentic, real-world distortions, since the images were captured by a wide variety of mobile camera devices, by numerous photographers, under highly diverse conditions. More than 350,000 subjective scores were collected via an online crowdsourced human study. MOS is provided for all the images in LIVE Challenge.
LIVE IQA, which was first introduced in 2003, was the first successful public-domain IQA database. It contains 29 reference images and 779 distorted ones, each impaired by one of four levels of five types of synthetic distortions: JPEG2000 (JP2K) compression, JPEG compression, additive white noise (WN), Gaussian blur (GB) and simulated fast fading channel distortion (FF). The differential Mean Opinion Scores (DMOS) of all of the distorted images are provided. The CSIQ database consists of 866 distorted images, simulated on 30 reference images. Six synthetic distortion types were used: JPEG, JP2K, WN, GB, additive pink Gaussian noise, and global contrast decrements. The DMOS is provided for all distorted images. The TID2013 database contains the largest number of distorted images (3,000), synthetically generated on 25 reference images using 24 synthetic distortion types, each at five degradation levels. The MOS of all the distorted images is provided.
IV-B Experimental Setup
When fine tuning the pre-trained AlexNet and ResNet50 models, we randomly extracted 50 image crops (of sizes for AlexNet and for ResNet50) from each training image, except on TID2013, we extracted 25 crops per image since this database contains more distorted images. All of the image crops inherited the PQR of the source image. The fine-tuning process iterated for 20 epochs, using a batch size of 256 for AlexNet, and 10 epochs with a batch size of 64 for ResNet50. The learning rate was set to be a logarithmically spaced vector in the interval [1e-3,1e-4] for both modelsThis setting follows the example in the MatConvNet toolbox .. When training S_CNN, we extracted 500 image patches (of size ) per image on each database (except 250 patches on TID2013). The network parameters of S_CNN were initialized using the method proposed in , and the training process was allowed to iterate for 40 epochs using a batch size of 1024. The learning rate was set to be a logarithmically spaced vector in the interval [1e-2,1e-3].
In the testing stage, we extracted overlapped image patches at a fixed stride (64 for the fine tuned deep models and 32 for the shallow S_CNN model) from each testing image. Denser crops were not found to bring obvious improvements in our experiments. The PQR prediction vector of each image crop was mapped to a scalar quality score using the pre-trained linear SVR model. Average pooling was used to output a final whole-image quality score.
Two metrics, Spearman’s rank correlation coefficient (SRCC) and Pearson’s linear correlation coefficient (PLCC), were used to evaluate the performances of the learned BIQA models. On each database, we randomly divided the samples into a training set and a testing (or validation) set without overlap in image content. All the experiments were repeated 10 times and the median SRCC and PLCC were reported as the final results. The MatConvNet toolbox was used to train the CNN models on a PC equipped with a GTX 1080Ti. The SVR model was trained using the LIBSVM toolbox .
IV-C Selection of Parameters β𝛽\beta and M𝑀M
There are two free parameters in the PQR model: the smoothing parameter and the anchor quantization level in Eq. (3). We selected the two parameters via experimental evaluation on the four databases. On each database 60% of the images were used for training, 20% of the images were used for validation, and the remaining 20% of images were used for evaluation. We only used the AlexNet for the parameter selection study, since the PQR is independent of the CNN model used. The optimized values of and were then applied to all of the CNN models in the experiments.
We first tested the effects of varying the smoothing parameter . We evenly partitioned the quality range to determine the quality anchors and fixed . Ten different choices of were tested on a log scale: , and evaluated on the validation set, with the results shown in Fig. 4. As can be seen, the choice of substantially affects the final quality prediction performance. As is increased, both the SRCC and PLCC rise, then plateau and then usually decline. Setting to a small value results in poor accuracy, because small values of cause the probabilities to become evenly distributed, making it difficult to distinguish perceptual quality levels. Choosing a very large would eventually cause each image to have only one none-zero quality level. The best choice of varies slightly over the different databases, but delivers uniformly excellent performance and is consequently used in all the following experiments.
We then evaluated the influence of the quality anchor quantization parameter , for both uniform and Lloyd-Max quantization. We computed the achieved SRCC and PLCC of the PQR-based deep BIQA model for all integer values of in , and reported the results in the plots in Fig. 5. To conserve space, we only plotted the SRCC curves, since the PLCC curves exhibit a very similar trend. From Fig. 5 we make the following observations. First, uniform quantization yields performance in parallel with Lloyd-Max except at very low densities, where both approaches suffered (). Second, the performance is stable for within , although the best choice of varies slightly with database. These results show that the PQR-based deep BIQA method is highly robust to the choice and density of quality anchors. Thus, in all the following experiments, we used uniform quantization with quality anchors.
IV-D Comparison Against Scalar Regression
Next we compared the performances of deep BIQA models trained on PQR against commensurate models trained on traditional scalar quality representation (SQR) in regards to both convergence speed and prediction accuracy. For fair comparison, all settings except for the loss function were held constant across all models. On each database, 80% of the images were used for training and the remaining 20% of the images were used for testing. For the AlexNet and ResNet50 models, the median SRCC values and the corresponding standard deviations across 10 repetitions for each training epoch are shown in Figs. 6(a) and 6(b), respectively. Fig. 6(c) shows the results of S_CNN, where the standard deviations are not plotted to make the curves more distinguishable. The best median SRCC and PLCC values among all epochs are reported in Table II. We did not compare the converged values of the two loss functions because they are in different units.
We can immediately make the following observations regarding the results shown in Fig. 6 and Table II. First, the BIQA models trained using our proposed PQR model significantly outperform the BIQA models trained by the traditional SQR model on all the three CNN architectures. This convincingly shows that our proposed PQR model is a very effective new tool for deep BIQA model learning. Secondly, under the same settings, the BIQA model training using the PQR model converges much faster than the SQR model, especially in regards to fine tuning the deep models, where we found that the PQR-based model converges within no more than 3 epochs on all of the databases.The fast convergence of our PQR model was not caused by the learning rate, which was the same for both the PQR and SQR models. Indeed, the mean-squared loss function used in the SQR model is much more fragile than the softmax cross-entropy loss used in the PQR model. We have observed that increasing the learning rate for the SQR model can cause the training process to oscillate or even fail to converge, whereas our PQR model can handle a much wider range of learning rates. Finally, our method results in a much smaller standard deviation of prediction performance on most of the databases (except for TID2013), which strongly suggests that the probabilistic representation is much more robust and stable than directly regressing the deterministic scalar quality scores using the mean squared error loss. All of the trained BIQA models have standard deviations of performance exceeding 0.1 on the TID2013 database (e.g., the SRCC of ResNet50 using PQR varies from 0.6 to 0.9 over the 10 repetitions). This behavior may be caused by peculiarities of the database, which contains a variety of rare or unrealistic distortions.
IV-E Comparison Among Different CNN Models
A very interesting observation can be made on Table II: that the S_CNN trained from scratch can achieve performance that is competitive, or even superior to that achieved by the two pre-trained deep CNN models (AlexNet and ResNet50) on the three legacy databases, but much worse than the two deep models on the LIVE Challenge.
This divergence in performance can likely be explained in terms of the different characteristics of the databases. The legacy databases (notably LIVE IQA and CSIQ) contain a limited variety of synthetic distortion types and degradation levels, which have been homogeneously applied in isolation to a small number of source images. Because of this, the mapping from perceptual quality degradation to quality scores is relatively easy to learn, even by a shallow CNN model. Moreover, the greater degree of spatial distortion homogeneity makes it possible to leverage small image patches when training a shallow CNN model, because they are more representative of the distortions afflicting the whole image. Several previous methods have demonstrated the effectiveness of using patch-wise training as a method of data augmentation on the legacy synthetic distortion databases . However, the LIVE Challenge and TID2013 databases are both very difficult. LIVE Challenge contains many highly diverse contents that are authentically distorted in many complex combinations and degrees. These complex, real-world multi-distortions are often quite inhomogeneous. LIVE Challenge is simply too complex for a shallow CNN model to be able to achieve good performance. Blindly assessing the quality of real-world distortions is a very difficult problem that appears to require either much more data or innovations in network design.
Deep CNN models pre-trained on target problem like the ImageNet classification task can generalize well to other image recognition and processing tasks . However, the transferability of a network depends on the degrees of statistical similarity between the training data and target data . Since both ImageNet and LIVE Challenge consist of natural images afflicted with authentic distortions, it is natural to infer that models pre-trained on ImageNet can transfer well to task on the LIVE Challenge database. By contrast, the three legacy databases are composed of images algorithmically modified by synthetic distortions, many of which are exotic, rare, or even unlikely. It follows that the statistics of the images in these databases are very different from those in ImageNet, hence the transferability of models pre-trained on ImageNet is greatly reduced, especially on TID2013.
IV-F Comparison with Other BIQA methods
We also compared the proposed PQR-based model against existing BIQA methods on the four databases. Since the split of training and testing sets will affect prediction accuracy, for a fair comparison, we re-ran the source codes of the DIIVINE , CORNIA , BRISQUE , NIQE , IL-NIQE , HOSA and FRIQUEE-ALL models using the same training and testing splits as we used for the PQR model.We will release the randomly generated training and testing splits for all databases as well as our implementations of all the competing models. Since both NIQE and IL-NIQE do not require any training, we directly evaluated them on the testing sets. For the other learning based methods, we used the source codes provided by the authors to extract features, and re-trained an SVR model using the RBF kernel (except for CORNIA and HOSA, which used the linear SVR) for each split. For the two-step DIIVINE model, we skipped the first step of identifying distortion types, and instead directly trained the SVR model using the extracted features. The parameters of the SVR were optimized for each method on each database. The median SRCC and PLCC over 10 random rounds are reported in Table III. To save space, we only report the standard deviations of the competing methods on the LIVE Challenge database. For those methods whose source codes are not provided by the authors, or could not be readily used to re-train the model, we simply reported the results provided in the original papers.
From Table III, it can be observed that our probabilistic deep BIQA model achieves standout results on the LIVE Challenge database. When using ResNet50, it outperforms the previous best results (obtained by FRIQUEE-ALL) by more than 0.15 in regards to both SRCC and PLCC. This again demonstrates that fine tuning pre-trained deep models using the PQR model is an effective way to improve automatically generated predictions of the perceptual quality of images suffering from difficult authentic distortions. It is also evident that the performance of ResNet50 is better than that of AlexNet in most cases, which indicates that using more powerful pre-trained deep models can lead to better performance. Our PQR-based deep BIQA model also achieves standout results on the other databases.
IV-G Cross Database Evaluations
In our final reported series of experiments, we conducted cross database evaluations to compare the generalizabilities of the learned PQR and SQR based models using the three studied CNN architectures. In each case, one of the four databases was used for training, then the learned models were tested on the other three databases. The SRCC results are reported in Table IV.
From Table IV it may be observed that, although PQR delivers improved cross database evaluation performance relative to SQR in most cases, the achieved cross database prediction performance is usually poor. Specifically, the models trained on the LIVE Challenge database achieve unsatisfactory results on all the synthetic databases, and vice versa. The best cross database results are obtained between the LIVE IQA and CSIQ databases, whose distortion compositions are very similar. The poor cross database evaluation performance between LIVE Challenge and the three synthetic distortion databases is a common problem for all of the studied deep BIQA methods.
V Conclusion and Discussion
We were able to train deep BIQA models using our probabilistic quality representation (PQR) to accurately predict image quality, while achieving faster convergence with a greater degree of stability. By imposing probabilistic constraints on the learned prediction mapping, we essentially regularize the learning process. Our extensive experiments on existing IQA databases demonstrated that deep models trained using PQR were able to achieve the uniformly best quality prediction accuracy, especially on the LIVE Challenge database, which is composed of real-world images degraded by complex, multiple authentic distortions. In our view, this is largely a by-product of the fact that AlexNet and ResNet50 were trained on real-world images containing authentic distortions. It was found that deep models trained on synthetic databases did not perform very well on LIVE Challenge; and vice versa. This suggests that image quality prediction models trained on synthetic databases may not necessarily be expected to perform well in real-world practice. Since this is the bona fide goal of IQA algorithm design (rather than performing well on a given database), we begin to wonder about the ultimate value of using simulated distortions, at least in isolation, as training vehicles.