- Research
- Open Access

# GMVP: gradient magnitude and variance pooling-based image quality assessment in sensor networks

- Zhong Zhang
^{1}and - Shuang Liu
^{1}Email author

**2016**:15

https://doi.org/10.1186/s13638-015-0477-0

© Zhang and Liu. 2015

**Received:**24 August 2015**Accepted:**2 November 2015**Published:**12 January 2016

## Abstract

In this paper, we focus on image quality assessment (IQA) in sensor networks and propose a novel method named gradient magnitude and variance pooling (GMVP). The proposed GMVP follows a two-step framework. In this first step, we utilize gradient magnitude to compute the local quality, which is efficient and responsive to degeneration when the images are transmitted by sensor networks. In the second step, we propose a weighted pooling operation, i.e., variance pooling, which explicitly considers the importance of different local regions. The variance pooling operation assigns different weights to local quality map according to the variance of local regions. The proposed GMVP is verified on two challenging IQA databases (CSIQ and TID 2008 databases), and the results demonstrate that the proposed GMVP achieves better results than the state-of-the-art methods in sensor networks.

## Keywords

- Sensor networks
- Image quality assessment
- Variance pooling
- Gradient magnitude

## 1 Introduction

There are three kinds of IQA models in terms of the availability of a reference image: full reference (FR) models where the pristine reference image is available, reduced reference (RR) models where only a small fraction of reference information is available, and no reference (NF) models where the reference image is unavailable. This paper only discusses FR-IQA models which can be widely used to evaluate the performance of image transmission system, e.g., sensor networks, by measuring the quality of their output images. Generally speaking, FR-IQA models can be classified into two types. The first one is built under a bottom-up framework [3–5] which simulates the various processing stages in the visual pathway of human visual system (HVS), including just noticeable differences [6], visual masking effect [7], etc. Nevertheless, HVS is too intricate to construct an accurate bottom-up FR-IQA framework. The second one constructs a top-down framework [8–11] which designs to model the overall function of HVS according to some global assumption. Recent studies [8, 9] have demonstrated the effectiveness of these kinds of methods, and thus, many approaches follow the top-down framework. The structural similarity (SSIM) [12], as a representative approach of top-down model, is based on the assumption that HVS is highly adapted to extract the structural information from the visual scene, and thus, a measurement of SSIM should provide a good approximation of image quality. The improvements of SSIM, for example, multi-scale structural similarity (MS-SSIM) [13], three-component weighted SSIM (3-SSIM) [14], and information-weighted SSIM [15] also employ the same assumption and achieve better results than original SSIM. Moreover, information fidelity criteria (IFC) [16] and visual information fidelity (VIF) [17] regard HVS as a communication channel. The subjective image quality is predicted by computing how much the information in the reference image is preserved in the transmitted one.

In this paper, we propose a novel FR-IQA model named gradient magnitude and variance pooling (GMVP) for testing sensor networks. First, we utilize gradient magnitude, i.e., Sobel filter, to compute the local quality, which is responsive to artifacts introduced by compression, blur or additive noise, etc. In addition, natural images usually have diverse local structures which reflects the degree of importance of different local regions. Based on the consideration, we propose a novel pooling operation, i.e., variance pooling, which assigns different weights according to the variance of local regions. Our method is verified on two challenging IQA databases, and the experimental results demonstrate that the proposed GMVP achieves higher prediction accuracy than that of previous methods on image quality assessment.

The rest of this paper is organized as follows. We present the proposed GMVP in Section 2, including Sobel similarity and variance pooling. Section 3 shows the experimental results which outperform the state-of-the-art methods on the two publicly IQA databases. Finally, in Section 4, we conclude this paper.

## 2 Gradient magnitude and variance pooling

### 2.1 Sobel similarity

Many gradient-based FR-IQA approaches utilize a similarity function to calculate gradient similarity [8, 10, 20]. In addition to gradient magnitude, these approaches also adopt other similarity features, for example, luminance similarity and structural similarity. Zhang et al. [8] combined phase congruency, which is a dimensionless measure of the significance of a local structure, with gradient magnitude. However, the computation of phase congruency is time consuming.

*x*) and vertical (

*y*) directions using Sobel filters is calculated by

*ri*) and transmitted image (

*ti*) are filtered by Sobel operator, and then the gradient magnitudes of

*ri*and

*ti*at location (

*m,n*) are calculated by

*g*

_{ ri }(

*m,n*) and

*g*

_{ ti }(

*m,n*) are the gradient magnitudes of

*ri*and

*ti*at location (

*m,n*), respectively. ⊗ denotes the convolution operation. With the gradient magnitude images

*g*

_{ ri }and

*g*

_{ ti }, the Sobel similarity map (SSM) is computed by

where *T* is a positive constant. The SSM reflects the similarity between the reference image and transmitted image. Specifically, when *g*
_{
ri
}(*m,n*) and *g*
_{
ti
}(*m,n*) are the same, the *S*
*S*
*M*(*m,n*) is the maximal value 1.

*SSM*are shown in Fig. 3. The first and second columns denote reference and transmitted images, respectively. The third and fourth columns are the gradient magnitudes of reference and transmitted images, respectively. The last column indicates the Sobel similarity map which is the input of pooling stage.

### 2.2 Variance pooling

*SSM*via pooling operation. The most commonly used pooling operation is average pooling, i.e., averaging all the

*SSM*values as the final quality score. However, this pooling operation equally treats each

*SSM*value, i.e., each

*SSM*value is assigned the same weight 1 regardless of what the local structure is. It fails to capture the local contrast information in the reference image. Figure 4 b shows the variance map of the 3×3 region of Fig. 4 a. From this figure, we can see that the local regions with high contrast contain much structure information, and therefore, they should contribute more to evaluate the image quality. In order to exploit the local contrast information of the reference image, we define the variance of a local region as a weight in the pooling stage

where \(\theta (m,n)=\frac {1}{R+1}\sum _{p=m-R}^{m+R}\sum _{q=n-R}^{n+R}ri(p,q)\) is the mean value of reference image *ri* at location (*m,n*), and *R* is the radius of the local region. Here, we set *R* to 1, i.e., we calculate the weight in a 3×3 local region. Furthermore, the pooling weight *w* should be normalized using the maximum value of *w*.

*w*and

*SSM*are complementary. Their joint distribution can better characterize the difference between reference image and transmitted image. The final quality score is computed by

Note that the higher quality score, the higher image transmission quality.

## 3 Experimental results

### 3.1 Experimental setup

We verify the proposed GMVP on two publicly available databases: CSIQ database [33] and TID2008 database [34]. It should be noted that we consider the distortion images as transmitted images because the images will degenerate when they are transmitted by sensor networks. The CSIQ database consists of 886 transmitted images and 30 reference images. The transmitted images contains six types of distortions at five different distortion levels. Concretely, the six types of distortions involve JPEG compression, JPEG 2000 compression, Gaussian blur (GB), additive white noise (AWN), additive pink Gaussian noise (APGN), and global contrast decrements (GCD). The TID 2008 database has 1700 transmitted images and 25 reference images with 17 kinds of distortions at 4 levels. Note that each image in the IQA databases has been assessed by human beings under controlled conditions and then assigned a quantitative quality score: mean opinion score (MOS) or difference MOS (DMOS).

For fair comparison, we employ three commonly used criteria to evaluate the proposed GMVP. The first criterion is the Pearson linear correlation coefficient (PLCC) between MOS and the objective scores after nonlinear regression. The second criterion is the Spearman rank-order correlation coefficient (SROCC) which measures the prediction monotonicity of an IQA approach. The last one is the root-mean-square error (RMSE) between MOS and the objective scores. We adopt the nonlinear regression proposed in [35].

### 3.2 Performance comparison

Performance of the proposed GMVP and other methods on the CSIQ database

Performance of the proposed GMVP and other methods on the TID2008 database

## 4 Conclusions

This paper proposes a novel FR-IQA approach named GMVP to overcome the limitation of traditional average pooling operation. For computational efficiency, we adopt the Sobel filter to compute the local quality map. Then, we explicitly consider the local contrast information of reference images in the pooling stage. To this end, the variance of a local region is defined as a weight which is utilized to reflect the importance of local regions. The experimental results on CSIQ and TID 2008 databases show that the proposed GMVP achieves better results than previous approaches in testing sensor networks.

## Declarations

### Acknowledgements

This work is supported by the National Natural Science Foundation of China under Grant No. 61401309, No. 61501327, and No. 61401310, Natural Science Foundation of Tianjin under Grant No. 15JCQNJC01700, and Doctoral Fund of Tianjin Normal University under Grant No. 5RL134 and No. 52XB1405.

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## Authors’ Affiliations

## References

- Q Liang, X Cheng, S Huang, D Chen, Opportunistic sensing in wireless sensor networks: theory and application. IEEE Trans. Comput.
**63**(8), 2002–2010 (2014).MathSciNetView ArticleGoogle Scholar - L Zhao, Q Liang, Hop-distance estimation in wireless sensor networks with applications to resources allocation. EURASIP J. Wirel. Commun. Netw., 1–8 (2007). (Article ID 084256).Google Scholar
- Z Wang, A Bovik, Modern image quality assessment. Synth. Lect. Image, Video, and Multimed. Process.
**2**(1), 1–156 (2006).View ArticleGoogle Scholar - W Lin, C Kuo, Perceptual visual quality metrics: a survey. J. Vis. Commun. Image Represent.
**22**(4), 297–312 (2011).View ArticleGoogle Scholar - L Zheng, S Wang, Q Tian, Coupled binary embedding for large-scale image retrieval. IEEE Trans. Image Process.
**23**(8), 3368–3380 (2014).MathSciNetView ArticleGoogle Scholar - J Lubin, in Proceedings of International Broadcasting Convention. A human vision system model for objective picture quality measurements, (1997), pp. 498–503.Google Scholar
- J Ross, H Speed, Contrast adaptation and contrast masking in human vision. Proc. R. Soc. Lond. Ser. B Biol. Sci.
**246**(1315), 61–70 (1991).View ArticleGoogle Scholar - L Zhang, L Zhang, X Mou, D Zhang, Fsim: a feature similarity index for image quality assessment. IEEE Trans. Image Process.
**20**(8), 2378–2386 (2011).MathSciNetView ArticleGoogle Scholar - G Chen, C Yang, S Xie, in Proceedings of IEEE International Conference on Image Processing. Gradient-based structural similarity for image quality assessment, (2006), pp. 2929–2932.Google Scholar
- D Kim, H Han, R Park, Gradient information-based image quality metric. IEEE Trans. Consum. Electron.
**56**(2), 930–936 (2010).View ArticleGoogle Scholar - G Cheng, J Huang, C Zhu, Z Liu, L Cheng, in Proceedings of IEEE International Conference on Image Processing. Perceptual image quality assessment using a geometric structural distortion model, (2010), pp. 325–328.Google Scholar
- Z Wang, A Bovik, H Sheikh, E Simoncelli, Image quality assessment: from error visibility to structural similarity. IEEE Trans. Image Process.
**13**(4), 600–612 (2004).View ArticleGoogle Scholar - Z Wang, E Simoncelli, A Bovik, in Proceedings of IEEE Asilomar Conference on Signals, Systems and Computers. Multiscale structural similarity for image quality assessment, (2003), pp. 1398–1402.Google Scholar
- C Li, A Bovik, in Proceedings of IS&T/SPIE Electronic Imaging. Three-component weighted structural similarity index, (2009).Google Scholar
- Z Wang, Q Li, Information content weighting for perceptual image quality assessment. IEEE Trans. Image Process.
**20**(5), 1185–1198 (2011).MathSciNetView ArticleGoogle Scholar - H Sheikh, A Bovik, GD Veciana, An information fidelity criterion for image quality assessment using natural scene statistics. IEEE Trans. Image Process.
**14**(12), 2117–2128 (2005).View ArticleGoogle Scholar - H Sheikh, A Bovik, Image information and visual quality. IEEE Trans. Image Process.
**15**(2), 430–444 (2006).View ArticleGoogle Scholar - L Zhang, L Zhang, X Mou, D Zhang, in Proceedings of IEEE International Conference on Image Processing. A comprehensive evaluation of full reference image quality assessment algorithms, (2012), pp. 1477–1480.Google Scholar
- L Zheng, S Wang, Q Tian, Lp-norm IDF for scalable image retrieval. IEEE Trans. Image Process.
**23**(8), 3604–3617 (2014).MathSciNetView ArticleGoogle Scholar - A Liu, W Lin, M Narwaria, Image quality assessment based on gradient similarity. IEEE Trans. Image Process.
**21**(4), 1500–1512 (2012).MathSciNetView ArticleGoogle Scholar - C Li, A Bovik, Content-partitioned structural similarity index for image quality assessment. Signal Process. Image Commun.
**25**(7), 517–526 (2010).View ArticleGoogle Scholar - W Xue, L Zhang, X Mou, A Bovik, Gradient magnitude similarity deviation: a highly efficient perceptual image quality index. IEEE Trans. Image Process.
**23**(2), 684–695 (2014).MathSciNetView ArticleGoogle Scholar - Z Wang, X Shang, in Proceedings of IEEE International Conference on Image Processing. Spatial pooling strategies for perceptual image quality assessment, (2006), pp. 2945–2948.Google Scholar
- N Murray, F Perronnin, in Proceedings of IEEE Conference on Computer Vision and Pattern Recognition. Generalized max pooling, (2014), pp. 2473–2480.Google Scholar
- L Zheng, S Wang, Z Liu, Q Tian, Fast image retrieval: query pruning and early termination. IEEE Trans. Multimed.
**17**(5), 648–659 (2015).View ArticleGoogle Scholar - Z Zhang, C Wang, B Xiao, W Zhou, S Liu, Attribute regularization based human action recognition. IEEE Trans. Inf. Forensics and Security.
**8**(10), 1600–1609 (2013).View ArticleGoogle Scholar - Z Zhang, C Wang, B Xiao, W Zhou, S Liu, Cross-view action recognition using contextual maximum margin clustering. IEEE Trans. Circ. Syst. Video Technol.
**24**(10), 1663–1668 (2014).View ArticleGoogle Scholar - A Moorthy, A Bovik, Visual importance pooling for image quality assessment. IEEE J Sel. Top. Signal Proc.
**3**(2), 193–201 (2009).View ArticleGoogle Scholar - Y Tong, H Konik, F Cheikh, A Tremeau, Full reference image quality assessment based on saliency map analysis. J Imaging Sci. Tech.
**54**(3), 1–14 (2010).View ArticleGoogle Scholar - J Park, K Seshadrinathan, S Lee, A Bovik, Video quality pooling adaptive to perceptual distortion severity. IEEE Trans. Image Process.
**22**(2), 610–620 (2013).MathSciNetView ArticleGoogle Scholar - S Coleman, B Scotney, S Suganthan, Multi-scale edge detection on range and intensity images. Pattern Recog.
**44**(4), 821–838 (2011).MATHView ArticleGoogle Scholar - E Nezhadarya, R Ward, in Proceedings of IEEE International Conference on Image Processing. An efficient method for robust gradient estimation of RGB color images, (2009), pp. 701–704.Google Scholar
- E Larson, D Chandler, Most apparent distortion: full-reference image quality assessment and the role of strategy. J Electron. Imaging.
**19**(1), 1–21 (2010).Google Scholar - N Ponomarenko, V Lukin, A Zelensky, K Egiazarian, M Carli, F Battisti, Tid2008-a database for evaluation of full-reference visual quality assessment metrics. Adv. Mod. Radioelectron.
**10**(4), 30–45 (2009).Google Scholar - Video quality experts group and others, in Final Report from the Video Quality Experts Group on the Validation of Objective Models of Video Quality Assessment, Phase II (FR_TV2), (2003).Google Scholar