Year: 2015
Type: dissertation
Abstract: The growth of video streaming has increased noticeably through \nthe last decade. Because of it, the task of searching and recommending \nvideos is becoming more and more difficult. Whereas before \nthe existence of video streaming information retrievals was only based \non text and metadata, nowadays content-based image and video \nretrieval is starting to be researched. In order to add value and success \nto user’s searchings, it is interesting to assess the quality and \naesthetic value of the information it is retrieved. \nOn this thesis we are going to extract several motion related descriptors \nin order to aesthetically assess a car commercial database. \nThe videos in the database are extracted from YouTube and labeled \nin order to metadata provided by the website. Specifically three \nkinds of labeling are going to be used: based on quality or likes/- \ndislikes, quantity or number of views and the combination of both \nof them. Quality and quantity provide a binary labeling, and the \ncombination clusters the videos in four classes. \nAs it is usually done in computer vision, the main objective is \nsuggesting a set of descriptors and designing and providing the procedures \nfor calculating their values on the corpus of videos. These \nvalues are called descriptors, and they can be obtained by processing \nframes and handling the data got on the procedure to get specific \nnumbers. With their help it may be possible to know whether they \ngive enough information to determine the aesthetic appealing of the \nvideos. On this project we are going focus on motion descriptors. \nAs an approach to get data about the video motion, the optical \nflow is estimated between each pair of frames. To do so, a Matlab \nfriendly C++ code developed is used. This algorithm is based \non the brightness constancy assumption between two frames, leading \nto a continuous spatial-temporal function. This is discretized, linearized and the temporal factor removed by assuming only the function \nin two frames. Afterwards the zero gradient values are found using \nIterative Reweighted Least Squares (IRLS), a method which iterates \ncalculating different weights in order to find the ones fulfilling the \nzero gradient condition. From this a linear system is obtained and it \nis solved by using Successive Over-Relaxation (SOR) method, which \nis Gauss’ variant with faster convergence. \nThe optical flow algorithm needs several parameters to be set. \nBecause of the difficulty of setting these parameters automatically, \nthese values are determined by the observation of each performance \nand efficiency representing the observed motion. When the optical \nflow is calculated, we filter homogeneous texture regions, due to possible \nerror estimation induced by similar pixel values on the neighborhood. \nIn order to determine the texture level on different frame \nregions, we measure the entropy on each one, which will provide a \nmeasurement of pixel’s randomness. This is made by turning each \nframe into gray-scale and dividing them into 60 different windows. \nAfterwards, a threshold is set to determine which region will be considered \nas a low texture one. This is done considering that filtering \nexcessively could mean that the descriptors extraction will not be \nrepresentative. However, in cases with a lot of very homogeneous \nregions (e.g.: completely black) the amount of vectors discarded will \nbe high no matter what threshold is set. Then, when the region’s \nentropy is less than the threshold, it will be considered as a low texture \none and, as a consequence, its optical flow vectors will not be \ntaken into consideration. \nAfter filtering based on the texture, the first step is getting the \nangle and modulus of the movement estimated in every pixel using \nthe components got. For easy direction interpretation when getting \nthe different descriptors, the angles are nominalized according to the \n8 cardinal points. \nBy using both cardinals and modulus obtained, it is possible to estimate \napproximately which camera motion is taking place on every \nframe or shot. For this we are only taking into account those values \non the margins of each frame. Previous to the camera motion detection, \nit is necessary to apply some weights to the cardinal values \non the margins. This is done not only to give relevance to N-S-E-W about the camera motion although they do not belong to the purest \npan and tilt motion types. Adding each different weight depending \non the cardinal, we get a percentage in comparison to the ideal motion \ntype (this is, every pixel moving towards the same direction) \nwhich gives out the “amount” of movement going to each N-S-E-W \ndirection. \nThe most common shot type on the database is done by using \nfixed cameras and it is detected by setting a threshold to the mean \nmodulus of the margins of each frame, which should include those \nframes which are fixed but have some kind of movement on the margins \nbecause of the captured scene. If it is less than the mentioned \nthreshold, the frame will be considered as fixed. If not, we begin to \ndetect zoom presence. In order to do that, margins are divided into 2 \nvertical and 2 horizontal regions, and each maximum percentage cardinal \nis obtained. When detecting which type of zoom it is, we know \nthe specific directions each margin should have in theory. Starting \nfrom that, we can compare the theoretical value with the maximum \ndirection got before using weights. When 3 or 4 of the margin’s directions \ncorrespond to the theoretical pixels motion in each zoom \ntype, the current frame will be considered as one with zoom in or \nout, depending on the conditions. Considering the zoom just under \n3 conditions is not that restrictive, and this is because having just \nthose 3 conditions fulfilled is very unlikely unless we have a zoom. \nIf the zoom is not the case, we evaluate whether it is a pan or tilt \ncamera motion. Now, the maximum percentage is obtained among \nall the margins instead of dividing them into regions, because directions \nshould be the same along all the frame. If the difference of the \nmaximum value with respect to the rest of the cardinal percentages \nis greater than a threshold, and the maximum value is higher than \nanother different threshold, it will be considered pan right/left or tilt \nup/down depending on the cardinal which belongs to the maximum. \nThis is done in order to discard those maximums in non predominant \ndirections. Finally, if none of these conditions are fulfilled, the \nframe will have assigned a non-specific motion. \nOnce frame camera motion is determined, we proceed to detect \nshots on each video by computing the Sum of Absolute Differences (SAD) of the gray intensity pixels and its first and second derivatives. \nShot changes are detected when this second derivative has \na value greater than a chosen threshold. After shot detection, the \nmode camera motion type is obtained, as well as the percentage of \nframes on the shot with that value. When this percentage is greater \nthan a threshold, it is considered the shot has a predominant value \nwhich corresponds to the most present motion on the frames. \nAt this point the data computed are not at video level. This is \nwhy we need to use the data in order to obtain single values which \nrepresent each video. In order to get statistical parameters at video \nlevel, it is not possible to iterate creating a matrix with every single \nangle or modulus value, because it is highly memory and computing \ntime consuming, so it is necessary to do it sequentially. This means \ngetting single values on each frame which will be helpful when computing \nstatistical video descriptors. As angles have a circular nature, \nusing circular statistics is compulsory. For this purpose we are going \nto store only the sum of each vector component through the whole \nset of frames, as well as the sum of modulus. We also obtain the \nnumber of pixels taken into account on the operation because it will \nnot be constant due to the low texture region filtering. With these \nvalues we get everything needed to compute the mean an standard \ndeviation at video level. However, when dealing with data like camera \nmotion type through frames and shots, it is not possible to get \nmeans and standard deviations, and this is why we get the percentage \nof each motion type at shot and frame level. \nWhen data handling is done, we extract 27 different descriptors \nwhich are going to be evaluated using the three labeling methods \npreviously referred. By using machine learning algorithms provided \nby Weka, several features and classifiers are tested, getting the best \nperformance using quantity labeling and angle and modulus related \nfeatures, getting a 60% accuracy with tree classifier SimpleCart. Although \nin general descriptors performance is not remarkably good, \nby using the Experimenter tool provided by Weka, we can find out \nwhich set of features and classifiers really provide a statistically significant \nimprovement with respect to ZeroR classifier. We observe \nthat with combination labeling the accuracy is less than those in \nquality and quantity labeling. This is because combination deals binary, although it does not mean that combination labeling works \nworse than the binary ones, because its improvement with respect to&#
Author: Tirado Martín, Paloma
Institution: Universidad Carlos III de Madrid
Language: English
Subfield: Computer Vision and Pattern Recognition
Field: Computer Science
Domain: Physical Sciences
Keywords: motion descriptors, video aesthetics, optical flow, video quality assessment, content-based video retrieval, video recommendation, iteratively reweighted least squares, successive over-relaxation, video metadata, user engagement metrics, YouTube videos, descriptor evaluation, video summarization
Open Access status: green
OpenAlex ID: W7037870232
