Literature DB >> 28459832

A shallow convolutional neural network for blind image sharpness assessment.

Shaode Yu1,2, Shibin Wu1,2, Lei Wang1, Fan Jiang3, Yaoqin Xie1, Leida Li4.   

Abstract

Blind image quality assessment can be modeled as feature extraction followed by score prediction. It necessitates considerable expertise and efforts to handcraft features for optimal representation of perceptual image quality. This paper addresses blind image sharpness assessment by using a shallow convolutional neural network (CNN). The network takes single feature layer to unearth intrinsic features for image sharpness representation and utilizes multilayer perceptron (MLP) to rate image quality. Different from traditional methods, CNN integrates feature extraction and score prediction into an optimization procedure and retrieves features automatically from raw images. Moreover, its prediction performance can be enhanced by replacing MLP with general regression neural network (GRNN) and support vector regression (SVR). Experiments on Gaussian blur images from LIVE-II, CSIQ, TID2008 and TID2013 demonstrate that CNN features with SVR achieves the best overall performance, indicating high correlation with human subjective judgment.

Entities:  

Mesh:

Year:  2017        PMID: 28459832      PMCID: PMC5436206          DOI: 10.1371/journal.pone.0176632

Source DB:  PubMed          Journal:  PLoS One        ISSN: 1932-6203            Impact factor:   3.240


Introduction

A picture wins a thousand words. With the rapid pace of modern life and the massive dissemination of smart phones, digital images have been a major source of information acquisition and distribution. Since an image is prone to various kinds of distortions from its capture to the final display on digital devices, a lot of attention has been paid to the assessment of perceptual image quality [1-8]. Subjective image quality assessment (IQA) is the most straightforward. However, it is laborious and may introduce bias and errors. Comparatively, objective evaluation of visual image quality with full- or reduced-reference based methods enables impartial judgment [9-22]. These algorithms have reached high-level performance, while in most possible situations, the reference messages are not easy or impossible to acquire. Thus, no-reference or blind IQA methods are more useful in real applications [23-34]. Blind image quality assessment (BIQA) mainly consists of two steps, feature extraction (T) and score prediction (f). Before rating an image, T and f should be prepared. The former aims to select optimal features for image quality representation, while the latter builds the functional relationship between the features and subjective scores. With considerable expertise and efforts, a BIQA system can be built. As such, a test image (I) is input to the system and represented with features (T). Finally, the function f will quantify the features and figure out a numerical score (s) as the output, denoting the predicted quality of the test image. The procedure for score prediction can be formulated as follows, Blind image sharpness assessment (BISA) is studied in this paper. Among various kinds of distortions, sharpness is commonly degraded by camera out-of-focus, relative target motion and lossy image compression. It is crucial to readability and content understanding. Sharpness is inversely related to blur which is typically determined by the spread of edges in the spatial domain, and accordingly the attenuation of high frequency components. Karam et al. [35] introduced the Just Noticeable Blur (JNB) model and integrated local contrast and edge width in each edge blocks into a probability summation model. Later, they improved the model with the cumulative probability of blur detection (CPBD) [36]. Ciancia et al. [37] selected blur-related features as the input of a neural network and realized no-reference blur assessment with multi-feature classifiers. Vu et al. [38] combined two features, the high frequency content with the slope of local magnitude spectrum and the local contrast with total variation, to form the spectral and spatial sharpness (S3) index. Vu et al. [39] defined a fast image sharpness (FISH) metric which weights the log-energies of wavelet coefficients. Hassen et al. [40] explored the strength of local phase coherence (LPC) based on the observation that blur disrupts image LPC structures. Sang et al. [41, 42] used the shape of singular value curve (SVC) to measure the extent of blur, because the extent of blur results in attenuation of singular values. Bahrami and Kot [43] took account of maximum local variation (MLV) of each pixel and utilized the standard deviation of ranking weighted MLVs as the sharpness score. Li et al. [44] proposed the sparse representation based image sharpness (SPARISH) model that utilizes dictionary learning of natural image patches. Gu et al. [45] designed an autoregressive based image sharpness metric (ARISM) via image analysis in the autoregressive parameter space. Li et al. [46] presented a blind image blur evaluation (BIBLE) index which characterizes blur with discrete moments, because noticeable blur affects the moment magnitudes of images. Deep learning has revolutionized image representation and shed light on utilizing high-level features for BIQA [47, 48]. Li et al. [49] adapted Shearlet transform for spatial feature extraction and employed a deep network for image score regression. Hou and Gao [50] recast BIQA as a classification problem and used a saliency-guided deep framework for feature retrieval. Li et al. [51] took the Prewitt magnitudes of segmented images as the input of convolutional neural network (CNN). Lv et al. [52] explored the local normalized multi-scale difference of Gaussian response as features and designed a deep network for image quality rating. Hou et al. [53] designed a deep learning model trained by deep belief net and then fine-tuned it for image quality estimation. Yet it is found that some deep learning based methods need to handcraft features [49-52] or redundant operations [50, 52, 53]. This paper presents a shallow CNN to address BISA. On the one hand, several studies indicate that image sharpness is generally characterized by the spread of edge structures [35–38, 44, 46]. Interestingly, what CNN learns in the first layer are mainly edges [47, 48]. Thus, it is intuitive to design a single feature layer CNN for image sharpness estimation. On the other hand, small data sets make deep networks hard to converge which may increase the risk of over-fitting. Consequently, a shallow CNN can be well trained with limited samples [54]. To the best of our knowledge, the most similar work is Kang’s CNN [55]. The network utilizes two full-connection layers and obtains dense features by both maximum and minimum pooling before image scoring. Relatively, our network is much simpler in the architecture and more suitable for the analysis of small databases. Besides, our CNN is verified with Gaussian blurring images from four popular databases. After features are retrieved for representation of sharpness, the prediction performance of multilayer perceptron (MLP) is compared to both general regression neural network (GRNN) [56] and support vector regression (SVR) [57]. In the end, the effect of color information on our CNN and the running time are reported.

A shallow CNN

The simplified CNN consists of one feature layer and the feature layer is made up of convolutional filtering and average pooling. As shown in Fig 1, a gray-scale image is pre-processed with local contrast normalization. Then, a number of image patches are randomly cropped for feature extraction. At last, the features are as input to MLP for score prediction. By supervised learning, parameters in the network are updated and fine-tuned with back-propagation.
Fig 1

The proposed BISA system.

A gray-scale image is pre-processed with local contrast normalization and then a number of image patches are randomly cropped for CNN training, validation and final testing.

The proposed BISA system.

A gray-scale image is pre-processed with local contrast normalization and then a number of image patches are randomly cropped for CNN training, validation and final testing.

Feature extraction

Local contrast normalization

It has a decorrelating effect in spatial image analysis by applying a local non-linear operation to remove local mean displacements and to normalize the local variance [25, 58]. As in [52, 55], the local normalization is formulated as following, where, and In the equations, I(i, j) is the pixel intensity value at (i, j), is its normalized value, μ(i, j) is the mean value, σ(i, j) is the standard deviation and C is a positive constant (C = 10). Besides, [2P + 1, 2Q + 1] is the window size and P = Q = 3.

Feature representation

Each patch randomly cropped in the pre-processed image is through convolutional filtering and pooling before full connection to MLP. A feature vector of an image patch is generated and formulated as, where I is an image patch, n is the feature dimension and x is the l component of the feature vector X.

Score prediction

Multilayer perceptron (MLP)

Fig 2 illustrates an MLP with a hidden layer. The output f(X) with regard to the input feature X can be expressed as following, where f denotes an activation function, while w and b respectively stand for the weight vector and the bias vector.
Fig 2

MLP with one hidden layer.

It consists of three layers, the input layer, the hidden layer and the output layer.

MLP with one hidden layer.

It consists of three layers, the input layer, the hidden layer and the output layer.

General regression neural network (GRNN)

GRNN is a powerful regression tool based on statistical principles [56]. It takes only a single pass through a set of feature instances and requires no iterative training. GRNN consists of four layers as shown in Fig 3. Assume that m samples have been used to train the GRNN. To an input feature vector X, its output f(X) can be described as below, where Y is the weight between the i neuron in the pattern layer and the numerator neuron in the summation layer, and σ is a spread parameter. In GRNN, only σ is tunable and a larger value leads to a smoother prediction.
Fig 3

A semantic description of GRNN.

It consists of four layers, the input layer, the pattern layer, the summation layer and the output layer.

A semantic description of GRNN.

It consists of four layers, the input layer, the pattern layer, the summation layer and the output layer.

Support vector regression (SVR)

SVR is effective in handling numerical prediction in high dimension space [57, 59]. For an input X, the goal of ε-SVR is to find a function f(X) that has the maximum deviation of ε from the subjective score Y for all the training patches. The function is defined by where φ(⋅) is a nonlinear function, w is a weight vector and γ is a bias. The aim is to find w and γ from the training data such that the error is less than a predefined value of ε. The radial basis function is used as the kernel function, K(X, X) = e−, and ρ is a positive parameter that controls the radius and X is a training sample. By using a validation set to tradeoff the prediction error, ρ and ε are determined [60].

Network training

CNN is end-to-end trained by supervised learning with stochastic gradient descent. Assume there are a set of features and corresponding scores . The training aims to minimize the loss function L(w, b), which is the sum of square error between the predicted s and the subjective score Y. Using gradient descent, the relationship between the l and the (l + 1) iteration to each weight component can be described as following, where μ is the momentum that indicates the contribution of the previous weight update in the current iteration, and η denotes the learning rate.

Experiments

Images for performance evaluation

Gaussian blurring images are collected from four popular databases. LIVE-II [10] and CSIQ [61] respectively contain 29 and 30 reference images which are distorted with 5 blur levels and scored by differential mean opinion scores (DMOS). Both TID2008 [62] and TID2013 [63] have 25 references and use mean opinion scores (MOS) for scoring. Each reference image in TID2008 and TID2013 is degraded with 4 and 5 different blur levels, respectively. Fig 4 shows some representative images.
Fig 4

Example of Gaussian blurring images in four databases.

Experiment design

LIVE-II is taken as the baseline database for tuning parameters in CNN, GRNN and SVR. Blurred images in LIVE-II are portioned into 20:4:5 for training, validation and test, respectively. After that, parameters in GRNN and SVR are optimized based on learned features from CNN. In the end, about 60%, 20% and 20% blurring images in each database are randomly selected for training, validation and test, respectively. Besides Kang’s CNN [55], ten state-of-the-art BISA methods are evaluated. These methods are JNB [35], CPBD [36], S3 [38], FISH [39], LPC [40], SVC [42], MLV [43], SPARISH [44], ARISM [45] and BIBLE [46]. In the end, the running time of involved algorithms and the effect of color information on our CNN are studied.

Performance criteria

Two criteria are recommended for IQA performance evaluation by the video quality experts groups (VQEG, http://www.vqeg.org). Pearson linear correlation coefficient (PLCC) evaluates the prediction accuracy, while Spearman rank-order correlation coefficient (SROCC) measures the prediction monotonicity. Values of both criteria range in [0, 1] and higher value indicates better rating prediction. A nonlinear regression is first applied to map the predicted scores to subjective human ratings using a five-parameter logistic function as follows, where s and Q(s) are the input score and the mapped score, and q (i = 1, 2, 3, 4, 5) are determined during the curve fitting.

Software and platform

Softwares are run on Linux system (Ubuntu 14.04). The system is embedded with 8 Intel Xeon(R) CPU (3.7GHz), 16GB DDR RAM and one GPU card (Nvidia 1070). Kang’s CNN is implemented by us following the paper [55]. Both CNN models are realized with Theano 0.8.2 (Python 2.7.6) and accessible on GitHub at present for fair comparison (https://github.com/Dakar-share/Plosone-IQA). Other codes are realized with Matlab. Ten BISA methods are provided by authors and estimated without any modifications, GRNN is with the function newgrnn and SVR is from LIBSVM [59].

Result

Parameter tuning

Several parameters are experimentally determined, the patch number per image (P), the kernel number (K) and the kernel size ([K, K]) in feature extraction, and the iteration number (N) in network training. In addition, the spread parameter (σ) in GRNN and cost function (c) in ε-SVR are also studied. Note that in the network, we define the size of image patch [16 16], the learning rate η = 0.01, the bias γ = 0.1 and the momentum μ = 0.9, and other parameters are set by default.

Parameters in CNN

Fig 5 shows CNN performance when the iteration number (N) varies from 103 to 104 and the patch number per image (P) changes from 102 to 103. No much change is found after N reaches 4000. On the other side, P = 400 is a good point to tradeoff PLCC and SROCC. Therefore, we use N = 4000 and P = 400 hereafter.
Fig 5

CNN prediction performance with N or P changes.

Table 1 shows the CNN performance with regard to the kernel number (K) and the kernel size ([K, K]). When K = 16, CNN performs well, while it is unstable when K = 32. On the other hand, prediction performance of CNN is insensitive to kernel size [K, K] changes. So we define K = 16 and K = K = 7.
Table 1

CNN performance with regard to kernel number and kernel size.

Kernel number8162432
PLCC0.94440.96340.93520.9298
SROCC0.95190.95430.95040.9323
Kernel size[3 3][5 5][7 7][9 9]
PLCC0.96060.95080.96320.9319
SROCC0.96690.96840.95790.9278

Parameters in GRNN and SVR

The spread parameter (σ) in GRNN and the cost function (c) in ε-SVR are studied with learned CNN features. Fig 6 shows PLCC and SROCC values when σ or c changes. The left plot indicates that when σ = 0.01, GRNN performs the best. The right shows that PLCC and SROCC increase when log10(c) increases, while when log10(c) > 1, SROCC keeps stable. Thus, σ = 0.01 in GRNN and c = 50 in ε-SVR.
Fig 6

GRNN (left) and SVR (right) respectively perform when the spread parameter σ and the cost function c changes based on learned CNN features.

Learned CNN features

One trained kernel is visualized by using “monarch.bmp” in LIVE-II. Blurred images and their filtered results are shown in Fig 7. The top row shows Gaussian blurring images and the bottom row are images after convolutional filtering with the trained kernel. Underneath the filtered results are subjective scores, where lower scores indicate better visual quality. Compared to the relatively high-quality image (y96), fine structures vanish in low-quality images (y11 and y103).
Fig 7

One trained kernel visualized by using “monarch.bmp”.

After convolutional filtering with the trained kernel, edge structures is hard to notice in heavily blurred images (y11), while fine structures can be seen in relatively high-quality images (y96).

One trained kernel visualized by using “monarch.bmp”.

After convolutional filtering with the trained kernel, edge structures is hard to notice in heavily blurred images (y11), while fine structures can be seen in relatively high-quality images (y96).

Algorithm performance

Table 2 summarizes the PLCC values and the highest values are marked in bold face. With handcrafted features, BIBLE [46] predicts the best, followed by SPARISH [44]. For CNNs, Kang’s CNN is instable. It achieves the best performance on TID2013 and the lowest value on CSIQ. For the proposed methods, CNN features with GRNN or SVR shows advantage. In general, retrieved features with SVR reaches an average PLCC value of 0.9435, and CNN features with GRNN gets 0.9377, followed by BIBLE (0.9251) and SPARISH (0.9217). Our CNN achieves an average PLCC of 0.9184.
Table 2

Performance evaluation with PLCC on Gaussian blurring images.

LIVE-IICSIQTID2008TID2013Overall
JNB [35]0.81610.80610.69310.71150.7567
CPBD [36]0.89550.88220.82360.86200.8658
S3 [38]0.94340.91070.85420.88160.8975
FISH [39]0.90430.92310.80790.83270.8670
LPC [40]0.91810.91580.85730.89170.8957
SVC [42]0.94160.93190.85560.87620.9013
MLV [43]0.94290.92470.85830.88180.9019
SPARISH [44]0.95950.93800.88910.90040.9217
ARISM [45]0.95600.94100.84300.89540.9088
BIBLE [46]0.96220.94030.89290.90510.9251
Kang’s CNN [55]0.96250.77430.88030.93080.8875
Our CNN0.96270.92550.89770.88750.9184
CNN features + GRNN0.98570.94730.90590.91170.9377
CNN features + SVR0.97300.94160.93740.92210.9435
Table 3 shows SROCC and bolded values indicate best predication monotonicity. BIBLE [46] shows superiority over algorithms based on handcrafted features, followed by SPARISH [44] and ARISM [45]. Kang’s CNN [55] achieves the highest SROCC on Gaussian blurring images from LIVE-II and TID2013, while it gets the second lowest SROCC on images from CSIQ among all metrics. On contrary, SROCC values from our CNN methods are robust on images from different databases. Particularly, CNN features with SVR outperforms other methods on CSIQ and TID2008. Furthermore, it ranks the second and the third place on TID2013 and LIVE-II, respectively. Generally, learned CNN features with SVR reaches an average SROCC of 0.9310, which is higher than CNN features with GRNN (0.9283), BIBLE (0.9160) and other methods.
Table 3

Performance evaluation of SROCC on Gaussian blurring images.

LIVE-IICSIQTID2008TID2013Overall
JNB [35]0.78720.76240.66670.69020.7266
CPBD [36]0.91820.88530.84140.85180.8742
S3 [38]0.94360.90590.84800.86090.8896
FISH [39]0.88080.89410.78280.80240.8400
LPC [40]0.93890.90710.85610.88880.8977
SVC [42]0.93430.90550.83620.85890.8837
MLV [43]0.93120.92470.85480.87870.8974
SPARISH [44]0.95930.91410.88690.89270.9133
ARISM [45]0.95110.92610.85050.89820.9065
BIBLE [46]0.96070.91320.89150.89880.9160
Kang’s CNN [55]0.98310.78060.84960.92150.8837
Our CNN0.95790.90480.84030.83760.8852
CNN features + GRNN0.97440.92050.91630.90200.9283
CNN features + SVR0.96460.92530.91890.91350.9310

Time consumption

The time spent on score prediction of image sharpness is shown in Fig 8. Among traditional methods, several algorithms show promise in real-time image sharpness estimation, such as LPC, MLV, SVC and FISH which require less than 1 s. For CNN-based methods, both models take about 0.02 s to rate an image. It should be noted that the major time of CNN models is spent on local contrast normalization which costs about 8 s for an image. Moreover, GRNN and SVR need time after the model is well trained. Fortunately, with the help of code optimization and advanced hardware, it is feasible to accelerate these algorithms and to satisfy real time requirement.
Fig 8

The time spent on score prediction of image sharpness.

Several algorithms show promise in real-time image sharpness estimation.

The time spent on score prediction of image sharpness.

Several algorithms show promise in real-time image sharpness estimation.

Effect of color information

Chroma is an important underlying property of human vision system [64, 65] and it is highly correlated with image quality perception [30, 44]. Effect of color information on image sharpness estimation is studied with our CNN. The performance of CNN with gray and color inputs is shown in Fig 9. It is observed that chromatic information positively enhances CNN’s performance on image sharpness estimation. The improved magnitude of PLCC ranges from 0.013 (LIVE-II) to 0.040 (TID2008). Meanwhile, the improved magnitude range of SROCC is from 0.014 (CSIQ) to 0.067 (TID2008).
Fig 9

Effect of color information on our CNN.

Compared to gray-scale input, color image input positively enhances our network’s prediction metrics.

Effect of color information on our CNN.

Compared to gray-scale input, color image input positively enhances our network’s prediction metrics.

Future work

The proposed shallow CNN methods have achieved the state-of-the-art performance on simulated Gaussian blur images from four popular databases. Our future work will be to integrate handcrafted features and CNN features for improved prediction capacity. On the other hand, deeper networks will also be considered for representative features in image sharpness. In addition, with the public accessibility to the real-life blurring image databases of BID2011 [37] and CID2013 [66], it will be interesting to explore the proposed algorithm for more general and more practical applications [32, 67, 68].

Conclusion

A shallow convolutional neural network is proposed to address blind image sharpness assessment. Its retrieved features with support vector regression achieves the best overall performance, indicating high correlation with subjective judgment. In addition, incorporating color information benefits image sharpness estimation with the shallow network.
  32 in total

1.  Image quality assessment: from error visibility to structural similarity.

Authors:  Zhou Wang; Alan Conrad Bovik; Hamid Rahim Sheikh; Eero P Simoncelli
Journal:  IEEE Trans Image Process       Date:  2004-04       Impact factor: 10.856

2.  A statistical evaluation of recent full reference image quality assessment algorithms.

Authors:  Hamid Rahim Sheikh; Muhammad Farooq Sabir; Alan Conrad Bovik
Journal:  IEEE Trans Image Process       Date:  2006-11       Impact factor: 10.856

3.  Blind image quality assessment: from natural scene statistics to perceptual quality.

Authors:  Anush Krishna Moorthy; Alan Conrad Bovik
Journal:  IEEE Trans Image Process       Date:  2011-04-25       Impact factor: 10.856

4.  A no-reference image blur metric based on the cumulative probability of blur detection (CPBD).

Authors:  Niranjan D Narvekar; Lina J Karam
Journal:  IEEE Trans Image Process       Date:  2011-03-28       Impact factor: 10.856

5.  RRED indices: reduced reference entropic differencing for image quality assessment.

Authors:  Rajiv Soundararajan; Alan C Bovik
Journal:  IEEE Trans Image Process       Date:  2011-08-30       Impact factor: 10.856

6.  No-Reference Image Blur Assessment Based on Discrete Orthogonal Moments.

Authors:  Leida Li; Weisi Lin; Xuesong Wang; Gaobo Yang; Khosro Bahrami; Alex C Kot
Journal:  IEEE Trans Cybern       Date:  2015-01-29       Impact factor: 11.448

7.  Blind image quality assessment using joint statistics of gradient magnitude and Laplacian features.

Authors:  Wufeng Xue; Xuanqin Mou; Lei Zhang; Alan C Bovik; Xiangchu Feng
Journal:  IEEE Trans Image Process       Date:  2014-09-08       Impact factor: 10.856

8.  Universal blind image quality assessment metrics via natural scene statistics and multiple kernel learning.

Authors:  Xinbo Gao; Fei Gao; Dacheng Tao; Xuelong Li
Journal:  IEEE Trans Neural Netw Learn Syst       Date:  2013-12       Impact factor: 10.451

9.  Image quality assessment based on inter-patch and intra-patch similarity.

Authors:  Fei Zhou; Zongqing Lu; Can Wang; Wen Sun; Shu-Tao Xia; Qingmin Liao
Journal:  PLoS One       Date:  2015-03-20       Impact factor: 3.240

10.  Blind image blur assessment using singular value similarity and blur comparisons.

Authors:  Qing-Bing Sang; Xiao-Jun Wu; Chao-Feng Li; Yin Lu
Journal:  PLoS One       Date:  2014-09-23       Impact factor: 3.240

View more
  5 in total

1.  Segmentation of Neurons from Fluorescence Calcium Recordings Beyond Real-time.

Authors:  Yijun Bao; Somayyeh Soltanian-Zadeh; Sina Farsiu; Yiyang Gong
Journal:  Nat Mach Intell       Date:  2021-05-20

2.  A shallow deep learning approach to classify skin cancer using down-scaling method to minimize time and space complexity.

Authors:  Sidratul Montaha; Sami Azam; A K M Rakibul Haque Rafid; Sayma Islam; Pronab Ghosh; Mirjam Jonkman
Journal:  PLoS One       Date:  2022-08-04       Impact factor: 3.752

3.  One View Per City for Buildings Segmentation in Remote-Sensing Images via Fully Convolutional Networks: A Proof-of-Concept Study.

Authors:  Jianguang Li; Wen Li; Cong Jin; Lijuan Yang; Hui He
Journal:  Sensors (Basel)       Date:  2019-12-24       Impact factor: 3.576

4.  MNet-10: A robust shallow convolutional neural network model performing ablation study on medical images assessing the effectiveness of applying optimal data augmentation technique.

Authors:  Sidratul Montaha; Sami Azam; A K M Rakibul Haque Rafid; Md Zahid Hasan; Asif Karim; Khan Md Hasib; Shobhit K Patel; Mirjam Jonkman; Zubaer Ibna Mannan
Journal:  Front Med (Lausanne)       Date:  2022-08-16

5.  A consistency evaluation of signal-to-noise ratio in the quality assessment of human brain magnetic resonance images.

Authors:  Shaode Yu; Guangzhe Dai; Zhaoyang Wang; Leida Li; Xinhua Wei; Yaoqin Xie
Journal:  BMC Med Imaging       Date:  2018-05-16       Impact factor: 1.930

  5 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.