Classifying images based on visual asthetics between two classes, viz, image shot by professional and image shot by non-professional has been a trend in the recent past . The recent advancements in technology and popularization of digital camera, have resulted in producing a big pool of unassessed photographs. Algorithms which can assess and grade the image, can be useful in ranking the image, and this image ranking algorithm can enhance the result of image based search engine, which can be useful in various tasks. For example, the newspaper editor may ask for a good quality photograph from a large pool of images available in the internet, regarding an incident. Also, with the growing trend of people to upload photographs in social media websites, gives rise to the necessity of an algorithm capable of finding the best quality photograph related to a specific theme.
Various parameters are found to be effective for assessing visual aesthetics to grade the artistic quality of the image 
. In this study, we have experimentally identified such parameters and introduced a multi-layer perceptron (MLP) based technique with the features extracted with the parameters, to come up with a score that measures the artistic quality of the query image. Following are the parameters used for defining asthetics of an image.
Composition: Photographic composition is the arrangement of visual elements in a photo. Photographers consider a large variety of elements like lines, shape of objects, patterns, texture etc. In artistic photography, simplicity in color composition in the photo is often encouraged . Moreover, the color arrangement and contrast along diagonal lines, curved lines in the image have effects on the artistic quality. Also, the locations of the objects in the image, influence the photographic quality.
Lighting: Lighting condition of a photograph plays a vital role in its artistic quality. The amount of light and direction of light source are important factors in measuring artistic quality of photos. Weather plays an important role in natural photography, whereas in the studio settings, direction of light source becomes an important cue for making stunning effects, as well as, enhancing 3D impression of objects using shadows. The contrast of the object also helps in emphasizing the area of interest in the photo.
Color Arrangement: Professional photographers use various techniques to control colors and use specific combinations of colors influencing specific emotions of the viewers [3, 4]. Light colors, for example blue, yellow tend to create a soothing effect, whereas cold colors like gray, red tend to create a scary effect or calming effect on the viewers. Photographers take leverage of this effects on emotions to make a photograph more expressive about the story behind the photo.
Blur: In a photograph taken by professional photograph, blur comes rarely. It actually happens because of glitches like poor equipment or a vibration in the camera or because of the quality of lens.
Contrast: Low contrast leads to poor quality of photograph. Amateur photographers tend to use poor equipment due to which they often come up with low contrast photos.
The main contribution of this paper is to introduce a MLP based model which takes all the above parameters of artistic photography into consideration, provides suitable weightage to each parameter to come up with a measure of artistic quality of the image. We applied the proposed method on a large database of annotated photographs taken by both professionals and common people . The dataset consists of seven categories of photographs, almost equaly distributed as photographs captured by professionals and common people. Figure 1 shows examples of images taken from the dataset introduced in , alongwith score provided by the proposed method. Clearly, the photographs captured by professionals secured higher value according to the proposed method, compared to the photographs captured by the common people.
The rest of this paper is organized as follows. Section III discusses the process of extracting suitable features from the images, corresponding to the above parameters. Section IV describes the proposed MLP based model to provide an effective feature combining all the parameters. The results of applying the proposed method on a large dataset is discussed in Section V, followed by conclusions and future scopes of research in Section VI. Before all these we briefly discuss the state-of-the-art in the area of photo quality assessment.
Ii Related Works
Several efforts have been made in the recent past on assessment of image quality , based on semantics. However, two class classification of photos, based on the artistic quality, is a less-explored area of research. Some of the existing methods classify the photographs and graphics [5, 12], whereas some are able to classify indoor and outdoor photographs [13, 16]. Efforts have been made in classifying photographs and paintings [11, 14]. In most of the above classification problems, image intensity based features play a vital role in classification. However, classification of photographs taken by professional photographers or common people, is a more challenging and less-studied problem, as low level intensity based features cannot differentiate between the two classes. In order to incorporate the parameters discussed in the introduction, a suitable combination of low, mid and high level image features are needed.
Luo et. al.  proposed a method for content-based photo quality assessment, where local features extracted from the interest regions of the images, are combined with the global features extrated from the whole image, to find the object-background correlation. However, some important features like blurness, brightness, etc. are ignored in the study. Zhang et. al. proposed another approach combining global and local image features to predict structural cues of the objects, for quality assessment . Lo et. al.  combined some hand crafted features extracted from the images like, dark chanel prior, edge sharpness, color distribution, etc. Position and scale of the object of interest in a photograph, is an important parameter to assess the photograph, which is ignored in . Bhattacharya et.al. proposed more sophisticated features for photo quality assessment, considering the position and scale of the object of interest, by calculating the distance of the object from the four spatial points of the image . The four spatial points determine the center location of the photo. However, the clarity of the photograph is not emphasized in .
Efforts have been made to extract several low, mid and high level image features, combine them and use SVM to test the effectiveness of the features, for photo quality assessment [21, 22]. Datta et. al. 
extracted 56 features based on human intuition and ran SVM classifier. The photo aesthetics are predicted using classification tree and linear regression. Dhar et. al. combined multiple features related to the aesthetics and built a system for predicting attractiveness of the photo based on attributes such as layout of objects in the image, contents of the image and illumination. The intution based features often ignore the low level semantics of the photographs, which are useful for the assessment of quality. To overcome the limitations of intuition-based features, some low level features like GIST, SIFT, HOG, etc. have been used to measure the photo aesthetics [23, 24]. Bag of Features (BoF) technique is applied on the low level features to assess the quality of photo in . In , the low level features are fed in to a multiclass classifier for assessing the quality. However, the handcrafted features used in [23, 24] do not cover all the parameters for photo aesthetics, as given in the Introduction. Cao et. al. proposed an adaptive learning technique to rank the photographs based on visual aesthetics and applied on face images . However, for scene images such features cannot be applicable. Efforts have been made to enhance the photo quality using seam carving technique , but ranking photographs based on aesthetic quality is still an unvisited area of research.
An efficient set of image features, combining the concepts of clarity, color combination and position and scale of the object of interest, has been proposed by Ke et. al.  and Tong et. al. . Tang et. al. combined the features of ,  and  and applied SVM classifier to classify the images into two categories: photographs taken by professional photographer and by common people . All the parameters considered for artistic evaluation of photographs are covered by the features used by . However, the main disadvantage in [1, 18, 19, 20] is that, all the features corresponding to the parameters for photo quality assessment, as discussed in the introduction, are assumed to have equal contributions to the assessment of photo. However, in reality, professional photographers suggest different priorities for the parameters. For example, image clarity should be given more priority than the light effect in the photograph . In this study, we have addressed this limitation by using the useful image features in a Multi Layer Perceptron (MLP) based framework. We train the proposed MLP based system for suitable weightage to each of the image features. Moreover, we provide a measure of quality, based on the proposed MLP based system, to rank the photos in terms of the artistic quality. Next we describe the process of feature extraction.
Iii Feature Extraction
We extract features from the photographs, to emphasize on the parameters responsible for maintening the quality of a photograph, as discussed in the introduction. These features can be helpful for bridging the gap between human perception and machine computation.
Iii-a Spatial Distribution of Edges
Simplicity in a photograph can be measured by computing the spatial distribution of the high frequency edges of an image. The background of low quality photos or snapshots are often cluttered. High frequency edges for the objects of interest are often found in professional photos since the subject of the photograph should be focused and well defined. Hence, for professional photographs, the objects of interest are expected to be around the centre of the image and the specified location around the object should have high frequency.
In order to measure such criteria to be a good photograph, we apply a Laplacian filter with on the image, and take its absolute value to ignore the direction of the gradients. For color images, mean is found across the channels after filtering each of the red, green and blue channels that are applied separately. Finally, we resize the Laplacian image size to and normalize the image sum to 1. The advantage of resizing Laplacian image size is to calculate the edge distribution in images and study the differences between high quality photos and low quality snapshots. Let and be the mean Laplacian images of the professional photos and snapshots, respectively. We use distance to measure the distance between the probe’s Laplacian image, and the mean Laplacian images.
The quality of the probe image is defined as:
where and are given by,
Measuring the area occupied by the object of interest, is a good way to measure the compactness of the spatial distribution of edges. The area of the bounding box that encloses the top percentage of the edge energy is calculated, where the value of is set to 96.04, as in .
Iii-B Color Distribution
Professional photographers often use color palette, which is an important parameter to identify the differences between photographs taken by professional photographers and non-photographers. We obtain a histogram based on the color distributions of the given photograph. The histogram is obtained by quantizing the span of intecsity values in red, blue and green channels separately, into 16 bins each. Hence, each photograph is represented by a 4096 =
bin histogram. The histogram is normalized to unit length. We apply kNN classifier to distinguish whether the probe image is more like a professional photo or a snapshot. We use L1 metric to calculate the distance between histograms, which is found to give the best result. We keep k = 5 in our study, as done in. We calculate the quality score for the photograph, with respect to color distribution as follows:
where and are the number of neighbors that are closer to professional photos and snapshots, respectively.
Iii-C Hue Count
The hue count of a photograph determines its simplicity . Most good quality photographs look more brilliant than snapshots, which is depicted by the hue count of the photographs. To measure the quality of photograph according to hue count, color images are converted to its HSV representation and pixels with brightness values in the range [0.15,0.95] are taken into consideration and saturation . A 20-bin histogram is computed on the good hue values.
Let be the maximum (peak) value of the histogram and be the set of bins with values greater than . Then,
The quality of a photo is is calculated as,
controls the noise sensitivity of the hue count and we set experimentally.
A good photograph should not be blurry at the region of interest 
. Hence, blur estimation at the region of interest of a photograph, is important for measuring its quality. Several methods have been proposed in the literature, for estimating blur of an image[15, 17]. We apply Tong et. al.’s blur estimation technique  in our study, for its simplicity. We extract the region of interest of the photograph and find the blur as follows:
We model a blurred image as the result of a Gaussian smoothing filter applied to a sharp image , i.e.,
We would like to recover the smoothing parameter given only the blurred image . The image quality would be inversely proportional to . Let us assume that the frequency distribution for all sharp photos is approximately the same. We can estimate the maximum frequency of the image
by taking its two dimensional Fourier transform and counting the number of frequencies whose power is greater than some threshold. In other words, let the two dimensional Fourier transform be denoted by
Let the set of frequencies present in be denoted by
Since the Gaussian filter is a low pass filter, the maximum frequency present in the image is equal to . Thus, we define the image quality as follows:
The parameter is introduced because a Gaussian filter does not produce a sharp cutoff of high frequencies. We experimentally set .
Iii-E Low Level Features
For photo quality assessment low level features like contrast and brightness are important. Professional photos usually have higher contrast than snapshots. First, we compute the gray level histogram , and for the red, green and blue regions respectively. Then, we compute the combined histogram , where
Professionals suggest that the exposure (brightness level) required for the subject and the background should be different . Therefore, the average brightness for the entire photo to deviate from 50 percentage gray by adjusting the exposure to be correct on the subject only. If the background is pure black or white, the deviation could be quite severe. The larger the deviation, the more likely that the photo was taken by a professional. We calculate the photo’s average brightness, . If and are the average brightness at the object of interest and background respectively, then quality measure with respect to brightness of the photo is measured as:
Next we calculate the dark chanel prior.
Iii-F Dark Channel Feature
The dark channel prior can be considered as an estimation of clarity, saturation, and hue composition. The dark channel estimation of a picture increments with how much it is obscured. A low-quality photo with dull shading gives a higher arrived at the midpoint of dull channel esteem. Moreover, extraordinary shade values provide distinctive dim channel values. So the dark channel feature additionally consolidates hue composition information.
where is a color channel of and is the neighbourhood of pixel i. We choose as a 10 * 10 local patch. To reduce the effect of brightness, we normalize the dark channel value by the sum of RGB channels. The dark channel feature of a photo is computed as the average of the normalized dark channel values in the subject areas as follows:
where is the subject area of . Next we discuss the proposed MLP based model.
Iv Proposed MLP Based Model
We apply a Multi Layer Perceptron (MLP) based supervised learning model to combine all the features extracted following SectionIII
, with proper weightage, to calculate a score for the photograph, as a measure of its artistic quality. We use a sigmoid activation function for every node, as follows:
The activation function provides the quality score for the photograph. Here, is the weighted sum of all the features extracted from the photograph, as discussed in Section III.
where is the th feature value and
is the corresponding weight. We introduce 6 neurons at the input layer, corresponding to the 6 features extracted from the image. We keep 5 neurons in the hidden layer. Figure2 describes the overall MLP based procedure. We describe the training and testing procedures for the proposed system sequencially.
For training, we start with equal weights for all the extracted features, and then update the weights in each iteration based on the feedback score. If the desired output is and the obtained output is , then we define the objective function for the MLP model as follows:
where is the number of classes (here ).
We start with an equal edge weight for all the features and use gradient descent for each edge weight in each epoch (of the 250 epochs performed) to get a weight for which the objective function is minimum. Ifis the weight of an edge during epoch then which is the updated weight after epoch is given by,
where the value of the learning rate is set as 0.1.
Let be the weight between hidden node and output node. We need to find as the update on the edge weight between the hidden and the output layers of the MLP structure. Let be the weight between input node and hidden node. Then the update of edge weight between the input and the hidden layer is given by, .
For test photographs, we calculate all the features described in Section III, and calculate the quality score using equation (15). We normalize the quality score in a scale of 1 to 10 to produce the final quality score to the test photograph. We set a threshold value on the quality score, to classify the photograph as a photograph taken by professional photographer or a common people. Next we discuss the experiments and results of applying the proposed method on a benchmark dataset.
V Experiments and Results
In this section we discuss the experiments carried out to validate the proposed method, alongwith discussions on the results obtained. We describe the dataset used, followed by a description of the experimental set up. Finally we discuss and analyze the results.
For validation of the proposed method for assessment of photo quality, we found only one publicly available dataset, which is large enough and and diverse towards the contents of the photographs. The dataset is introduced by Tang et. al. . The dataset includes 17673 images broadly classified into 7 different categories, viz., animal, architecture, human, landscape, night, plant and static, based on the visual content of the photographs. Each of the categories of photographs contains significant number of photographs of both the classes - photographs taken by professional photographers and by common people. Table I shows the distribution of 17673 images across various categories. We randomly choose approximately 70 percent of the images from each category for training and rest 30 percent we keep for testing purposes.
|Category||Taken by Professional photographers||Taken by common people|
Extracted features were normalized before providing them as input to the MLP to provide equal weightage to each of the mentioned feature. We update the weights of each feature in each iteration based on the error. For training purposes, we assume that the photographs captured by professionals are of high quality and the others are of low artistic quality, and label the photographs accordingly, as done in . We validate the proposed method on the 30% of the images of each of the seven categories, kept for testing. We classify the photographs into two categories: high quality and low quality photographs based on the quality score given by the proposed method. If the quality score is greater than a threshold , then we label the test image as a high quality image, otherwise it is a low quality image. We move the threshold value from 2 to 9 with 0.5 difference and for each case, the accuracy of the proposed method is measured. The proposed method gives the highest accuracy for . Figure 3 compares the quality scores obtained by the high quality and low quality photographs of each category, as provided by the test images. Clearly, the high quality photographs gets higher scores in general, compared to the low quality photographs of each category photographs. Next we analyze the results of the experiments.
V-C Results and Discussions
We measure the accuracy of the proposed method by calculating the percentage of correct classifications of the test photographs of the dataset. Table II shows the accuracy of the proposed method on each category of photographs separately, alongwith the overall accuracy on the whole test set. The overall accuracy of the proposed method is increased by 6% compared to , the most recent effort made to work on this specific problem. All the accuracy measures shown in Table II, are provided corresponding to .
We show the ROC curves separately for each category of photographs, in Fiure 4. The ROC curves are obtained by changing the discrimination constant. The area under the curve measured for the ROC curves drawn for different categories of photographs are given as follows: Animal 0.8138, Architecture 0.7865, Static 0.8504, Night 0.7298, Human 0.9013, Plant 0.8629 and Landscape 0.8472.
Figure 5 shows two examples of failure of the proposed method: the first one is an example of false positive (i.e., the photograph is captured by a professional photographer, but is detected as a low quality image by the proposed method) and the second photograph is an exaple of false negative (i.e., the photograph is captured by a common people, but is detected as a high quality image by the proposed method). In the first case, a portion of the object of interest (the flower) is blured, which may be the cause of getting a low quality score by the proposed method, even though the photo is captured by a professional. In the second case, the object of interest (the flower) is appeared with sharp edges and good color combination, which may be the cause of getting a high score by the proposed method.
Vi Conclusions and Future Scopes
We have proposed a technique for assessment of the artistic quality of photographs, by introducing suitable weightage to some effective visual featues extracted from the image. The proposed method can provide a quality score for the photograph. It will be a hectic task to manually label the photographs based on the results extracted. To improve the accuracy and efficiency of the grading systema semi-supervised learning technique may be applied on Multi-layer perceptron in order to accomodate the bulk data which are unlabelled but they can contribute significantly in the learning. Another potential area of future research may be extending this two-class classification system to a multi-class classification system, to categorize different qualities of photographs, which may be used for automatic photo indexing.
-  X. Tang, W. Luo and X. Wang, Content-Based Photo Quality Assessment, IEEE Trans. Multimedia, 15(8), pp.- 1930-1943, 2013.
-  Bruce Barnbaum, The Art of Photography, Rocky Nook, 2010.
-  B. Manav. Color-emotion associations and color preferences: A case study for residences. Color Research Application, 2007.
-  X.P.Gao,J.H. Xin,T.Sato, A.Hansuebsai, M.Scalzo,K. Kajiwara, S.S.Guan, J. Valldeperas, M.J. Lis, and M. Billger. Analysis of cross-cultural color emotion. Color Research Application 2007.
-  V. Athitsos, M. J. Swain, and C. Frankel. Distinguishing photographs and graphics on the world wide web. In CBAIVL, 1997.
-  K. He, J. Sun, and X. Tang. Single image haze removal using dark channel prior. IEEE Trans. on Pattern Analysis and Machine Intelligence, 33:2341–2353, 2011.
-  Peng Zhang, Wengang Zhou, Lei Wu, Houqiang Li, SOM: Semantic Obviousness Metric for Image Quality Assessment, In Proc. of CVPR, pp.- 2394-2402, 2015.
-  Kuo-Yen Lo, Keng-Hao Liu, and Chu-Song Chen, Assessment of Photo Aesthetics with Efficiency, In Proc. of ICPR, 2012.
-  S. Bhattacharya, R. Sukthankar and M. Shah, A Framework for Photo-Quality Assessment and Enhancement based on Visual Aesthetics, In Proc. of ACM Multimedia, pp.- 271-280, 2010.
-  F. Cutzu, R. Hammoud, and A. Leykin. Estimating the photorealism of images: Distinguishing paintings from photographs. In CVPR, 2003.
-  A. Hartmann and R. Lienhart. Automatic classification of images on the web. In Storage and Retrieval for Media Databases, 2002.
-  J. Luo and A. Savakis. Indoor vs outdoor classification of consumer photographs using low-level and semantic features. In Proceedings of International Conference on Image Processing, 2001.
-  S. Lyu and H. Farid. How realistic is photorealistic. IEEE Transactions on Signal Processing, 37(3), 1999.
-  G. Pavlovic and A. M. Tekalp. Maximum likelihood parametric blur identification based on a continuous spatial domain model. IEEE Transactions on Image Processing, 1(4), 1992.
-  M. Szummer and R. W. Picard. Indoor-outdoor image classification. In CBAIVL, 1998.
-  H. Tong, M. Li, H. Zhang, J. He, and C. Zhang. Blur detection for digital images using wavelet transform. In Proceedings of International Conference on Multimedia and Expo, 2004.
-  H. Tong, M. Li, H. Zhang, J. He, and C. Zhang. Classification of digital photos taken by photographers or home users. In Proceedings of Pacific Rim Conference on Multimedia, 2004.
-  Luo Wei, Xiaogang Wang, and Xiaoou Tang. "Content-based photo quality assessment." Computer Vision (ICCV), 2011 IEEE International Conference on. IEEE, 2011.
-  Ke, Yan, Xiaoou Tang, and Feng Jing. "The design of high-level features for photo quality assessment." Computer Vision and Pattern Recognition, 2006 IEEE Computer Society Conference on. Vol. 1. IEEE, 2006.
-  R. Datta, D. Joshi, J. Li, J.Z. Wang, Studying aesthetics in photographic images using a computational approach, in: Proc. of ECCV, pp. 288-301, 2006.
-  S. Dhar, V. Ordonez, T.L. Berg, High level describable attributes for predicting aesthetics and interestingness, in: Proc. of CVPR, pp. 1657-1664, 2011.
-  L. Marchesotti, F. Perronnin, D. Larlus, G. Csurka, Assessing the aesthetic quality of photographs using generic image descriptors, in: Proc. of ICCV, pp.- 1784-1791, 2011.
-  L. Zhang, M. Song, Y. Yang, Q. Zhao, C. Zhao, N. Sebe, Weakly supervised photo cropping, IEEE Trans. Multimed., 16 (1), pp.- 94-107, 2014.
-  L. Zhang, Y. Gao, Z. Roger, Q. Tian, X. Li, Fusion of multichannel local and global structural cues for photo aesthetics evaluation, IEEE Trans. Image Process., 23 (3), pp.- 1419-1429, 2014.
-  Chong Cao and Haizhou Ai, Adaptive ranking of perceptual aesthetics, Signal Processing: Image Communication, Elsevier, 39(C), pp.- 517-526, 2015.
-  Ke Lia, Bo Yana, Jun Lia and Aditi Majumder, Seam carving based aesthetics enhancement for photos, Signal Processing: Image Communication, Elsevier, 39(C), pp.- 509-516, 2015.