Commercial Detection in Mythtv Using Bayesian and Neural Networks

Commercial Detection in Mythtv Using Bayesian and Neural Networks

Commercial Detection in MythTV using Bayesian and Neural Networks Paul Turpin [email protected] University of Oklahoma, Norman, OK 73019 USA Evan Stenmark [email protected] University of Oklahoma, Norman, OK 73019 USA Abstract this paper, but a good overview can be found in (Duan et al., 2006). Flagging of commercials in TV programming in Our approach uses MythTV and its experimental detector addition to skipping these flagged sections can save to process the video file. Commercial detection indicators, the viewer considerable amounts of time and make generated by MythTV, and other characteristics of the video the television viewing experience more pleasur- are then passed into two different machine learning able. The open-source Linux media software suite, networks: a Bayesian network and a neural network (NN). The networks output whether the given section of a video is MythTV, provides a framework for recording TV a commercial or part of the show. shows and detecting commercials. Using MythTV to produce commercial detection characteristics such as blank frame detection and network logo de- 2. Problem Definition tection, we used these characteristics in our own Each of the commercial detection agents will be acting machine learning agents to provide a better com- upon previously recorded TV shows. Each of the shows has been recorded from digital over the air (OTA) broadcasts. mercial detector than MythTV©s own heuristic de- Table 1 lists shows the shows and some of of the tector. The Bayesian network obtained an average characteristics—these are the recordings that have been accuracy of 95.9% and the neural network agent analyzed. 94.4% both of which surpassed MythTV©s average In a recorded television show with a couple of minutes of accuracy of 93.5%. padding at the beginning and end, 37% on average will be 1. Introduction unwanted portions of the show. The unwanted portions are generally commercials, but they can also be the end of a Commercials have been a necessary evil when watching previous show at the beginning of the recording or the start television programming for decades. With VCRs, it is of the next show at the end of the recording. The job of possible to record and fast forward through commercials, each agent will be to analyze each recording and “mark” but the process is slow and tedious. With the advent of the which portions of the show are unwanted. The agents will Digital video recorder (DVR), TV programs are encoded in also be given recorded shows where the unwanted portions MPEG2 format and saved digitally to a hard drive. have been marked by a person. From these show the agents Skipping through advertisements in a recorded video file is will learn what portions are unwanted so that they can mark much simpler and faster than a VCR since interval time future recordings. steps can be instantly skipped with the press of a button. A considerable amount of time stands to be gained if Detecting advertisement blocks in television shows is commercials can be automatically detected and skipped. deployed in several commercial DVR set top boxes such as However, this gain would be negated if intervention must ReplayTV. There is non-free software for PCs constantly be taken to go back and view wanted portions of that have commercial detection such as BeyondTV and the show that were skipped when they should not have been Original SageTV. Additionally free software DVR programs exist Show Length Show Type Broadcast Category (minutes) such as GB-PVR, MediaPortal, and MythTV. MythTV is Type an open source media center software suite for Linux that Friends 30 Live Action Analog Comedy Smallville 60 Live Action Digital Action includes a DVR and commercial detection. Heroes 60 Live Action Digital Drama King of The Hill 30 Animated Analog Comedy Commercials can be detected using indicators from The Office 30 Live Action Digital Comedy television shows such as scene changes and detection of Bionic Woman 60 Live Action Digital Action Reaper 60 Live Action Digital Comedy network logos. Flagged portions of a video file can then be 24 60 Live Action Analog Action instantly (and automatically) skipped while viewing the Survivor: China 60 Live Action Analog Reality recording. MythTV provides framework for extracting Journeyman 60 Live Action Digital Drama these characteristics. This process is beyond the scope of Table 1: Characteristics of the shows to be analyzed o r to force skipping of unwanted portions that were not Show Name correctly marked. 3. Agent Implementation Block Four different methods will be used to analyze the Logo Block Length recordings. The first is a random agent and the second a Percent Position heuristic based method. The final two methods are (seconds) machine learning based agents one of which will use a Bayesian network approach while the other will use Neural Networks. Is Commercial 3.1 Random Agent Figure 2: The Bayesian network used to score each block. The Blue nodes The random agent uses a Markovian chain using the state represent observable values. space shown in Figure 1. The initial state is chosen at The three attributes logo percent, block length and block random with an equal probability of being either position are continuous values and are converted to discrete “commercial” or “show”. From this point on the agent value by means of a “bucket” method. Boundaries are classifies blocks of 30 frames as either commercial or show defined and the values are placed into buckets based upon based upon its current state. In between each classification which boundaries the value falls between. step the agent will transition to the other state with a probability of 0.1. This continues until the entire recording Equation 1 show the calculation of a likelihood value, L'. has been classified. When L is greater than one it is more “likely” that the block is a commercial, while when it is less than one it becomes .1 more likely that the block is show content. Equation 2 shows the result of taking the natural logarithm of both sides of the equation to get the log likelihood. In this Commercial Show version values greater than zero indicate that it is more likely that a block is a commercial while negative values indicate the opposite. We will call this L'. .1 Figure 1: State space and transition probabilities for random agent. pc,g ,t ,l , p pc∣g ,t , l , p pg , t , l ,p pc, g ,t ,l ,p L= = = 3.2 Heuristic Method (MythTV) p!c∣g ,t ,l , p p!c ,g ,t ,l , p p!c , g, t , l ,p The heuristic method used in comparison is the pg , t , l ,p pc pg∣c ,t pl∣c ,t p p∣c,t Experimental Commercial Detector as currently L= implemented in MythTV. It breaks the recording into p!c pg∣!c , tpl∣!c ,t pp∣!c ,t blocks using black frames found at multiples of common Equation 1: The likelihood (L) is based off the ratio of the probability commercial lengths and uses a combination logo presence, of a commercial (c) to the probability of not a commercial (!c) based off aspect ratio, black frame occurrences within the block and logo presence (g), show title (t), block length (l) and block position(p) block length to classify the blocks. More details can be found at the authors website (“Commercial Detection”). pc pg∣c , t lnL=ln ln p!c pg∣!c ,t 3.3 Bayesian Network Agent pl∣c , t p p∣c , t ln ln ∣ ∣ TV shows contain numerous blank frames. These are pl !c ,t p p !c ,t frames that are frames that are monochromatic; generally =L' all black, but they can be all white or other colors. Usually Equation 2: Log likelihood, L© the switch between commercial and content is delimited by either a single blank frame or a series of blank frames. The L' can also be expressed as the summation of scoring Bayesian agent works by breaking each recording into non- functions on an attribute a with value x, overlapping blocks based on these frames. Each block is pc then categorized as commercial or content using a L'=ln ∑ Sa x , p! c a ∈g , l, p conditionally weighted log likelihood algorithm based off of the Bayesian network shown in Figure 2. where pa=x∣c, t individual frame is a commercial or not. Sa x=ln . pa=x∣!c ,t The NN is similar to that given as an example by Bishop Our experimentation has shown that some attributes may be (Bishop, 2006). It is a 3 layer feed forward NN with a strong indicator that a block is commercial or content backward propagation. The input layer is weighted and while it might not be such a strong indicator for the summed into the hidden layer which takes the logistical opposite. To harness this indication without introducing sigmoid of the sum. too many false positives we transform Sa(x) into a a j=∑ xi⋅w ji conditionally weighted function S'a(x), i z j= a j S'a x=w a×Sa x , where Since the output needs to be binary, '1' for commercial and '0' for show. The output is also a logistical sigmoid function of the sum of the weighted hidden layer nodes. w wa1 if Sa x 0 a = . ak=∑ z j⋅wkj {wa2 if Sa x ≤0 j y k= ak Backpropagation is used in the NN to adjust the weights Good values for Wai are established by an analysis of a few sample shows. The weight values used by the Bayesian during training.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us