Method and system for detecting content in a media stream
The system uses neural networks to analyze media streams, detecting boundaries and classifying content types within media streams, addressing the challenge of identifying supplemental content and enhancing media device capabilities.
Patent Information
- Application Number
- JP2024514649
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-11
- Filing Date
- 2022-09-06
- Publication Date
- 2024-09-12
AI Technical Summary
Media devices struggle to identify and differentiate between primary and supplemental content within media streams, such as advertisements, due to a lack of embedded identification information, hindering authentication and additional functionality.
A system and method using machine learning models, particularly convolutional and recurrent neural networks, to analyze media streams, detect boundaries between content types, and classify segments as primary or supplemental content based on video and audio features, with additional validation through time intervals and metadata analysis.
Effectively identifies and tracks supplemental content within media streams, enabling enhanced media device functionality like content recognition, reporting, and user interaction.
Smart Images

Figure 2024533267000001
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001]
[0001] This patent application claims the benefit of priority to U.S. Provisional Patent Application No. 63 / 241,446, filed September 7, 2021, which is incorporated by reference in its entirety into this specification for all purposes. [Technical field]
[0002]
[0002] This disclosure relates generally to detecting content types corresponding to content within a media stream, and more specifically, to various means for detecting and identifying content within a media stream. [Background technology]
[0003]
[0003] Media devices display various types of media from various sources. The media device uses the identity of the media source or the displayed content for authentication, security, to enable auxiliary functions of the media device, etc. For some media sources (e.g., cable boxes, over-the-air (OTA), streaming services, etc.), the media device may simply receive a media stream including audiovisual data to present the media. As a result, the media device may not receive the identity of the content to be displayed. Even when the media can be identified, the media stream often includes other types of content embedded within the media that may not be related to the identified content and thus remain unidentified. For example, one or more advertisements may be included in the media stream for display at various intervals during the presentation of a movie. The media device may be able to identify the movie (e.g., through metadata embedded in the movie media, broadcast channel, etc., or received from a content delivery network, broadcast network, etc.), but the identity of the advertisement or other media is not displayed during the playback of the movie, thereby preventing the media device from implementing authentication, security, and / or other functions. Summary of the Invention
[0004]
[0004] Systems and techniques (e.g., methods or processes) for detecting content in a media stream are described herein. An illustrative method may include receiving a media stream, defining a set of media segments from the media stream, where each media segment represents a portion of the media stream, identifying a first media segment of the set of media segments representing a first boundary and a second media segment of the set of media segments representing a second boundary, generating a prediction for at least one media segment of the set of media segments corresponding to whether the at least one media segment corresponds to a particular content type, determining based on the first boundary, the second boundary, and the prediction that a subset of the set of media segments including a media segment between the first media segment and the second media segment corresponds to the particular content type, and transmitting an indication that the subset of the set of media segments corresponds to the particular content type.
[0005]
[0005] An illustrative system may include one or more processors and a non-transitory computer-readable medium storing instructions that, when executed by the one or more processors, cause the one or more processors to perform any of the methods previously described.
[0006]
[0006] A non-transitory computer-readable medium for detecting content in a media stream is described herein. An illustrative non-transitory computer-readable medium may store instructions that, when executed by one or more processors, cause the one or more processors to perform any of the methods as previously described.
[0007]
[0007] These illustrative examples are mentioned not to limit or define the present disclosure, but to aid in its understanding. Additional embodiments are discussed in the detailed description and further description is provided therein.
[0008]
[0008] The features, embodiments, and advantages of the present disclosure will be better understood upon reading the following detailed description with reference to the accompanying drawings. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 illustrates a block diagram of an example media identification system 100 for identifying a content type corresponding to content displayed in a media stream, according to an aspect of the present disclosure. [Diagram 2]
[0010] 1 illustrates a block diagram of an example neural network configured to predict boundaries or specific content types within a media stream, in accordance with an aspect of the present disclosure. [Diagram 3]
[0011] 1 illustrates a block diagram of an example AI processor configured to detect media in a media stream, according to an aspect of the present disclosure. [Figure 4]
[0012] FIG. 1 illustrates a block diagram of an example training system configured to train an AI processor to detect media in a media stream, according to an aspect of the disclosure. [Diagram 5]
[0013] 1 illustrates a block diagram of an example media identification system configured to detect a media type of media in a media stream and identify the media, in accordance with an aspect of the present disclosure. [Figure 6]
[0014] 1 illustrates example boundaries within a media stream in accordance with an aspect of the present disclosure. [Figure 7]
[0015] 1 illustrates an example process flow during execution of an AI processor configured to detect the media type of media in a media stream, according to an aspect of the present disclosure. [Figure 8]
[0016] 1 illustrates an example output from an AI processor detecting a particular media type of media in a media stream, according to an aspect of the present disclosure. [Figure 9]
[0017] Illustrates an example execution of an AI processor on an audio component of a media stream in accordance with an aspect of the present disclosure. [Figure 10]
[0018] 1 illustrates a flowchart of an example process for detecting a media type of media in a media stream according to an aspect of the disclosure. [Figure 11]
[0019] Illustrates an example computing device architecture of an example computing device capable of implementing various techniques described herein, according to aspects of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010]
[0020] The present disclosure includes systems and methods for detecting content embedded within a media stream. A media device may display a media stream (e.g., received from a set-top box, over-the-air (OTA), internal or external memory, etc., from a streaming service, a cable network or a content delivery network, etc.), which may include a sequence of multiple types of content. For example, a media stream may include primary content, such as a video (e.g., a movie), and additional content (referred to herein as supplemental content, which may include content related to the primary content, advertisements, or other supplemental content) embedded within the media stream. For example, the supplemental content may be dispersed at set intervals within the media stream. Although a media device may receive or detect an identification of the primary content being displayed using metadata associated with the media stream, user input (e.g., a request to receive a media stream, etc.), or the like, the media device may not receive an identification of the supplemental content embedded within the media stream. The media device may use other processes, such as those described herein, to distinguish the primary content from the supplemental content embedded in the media stream and to identify the supplemental content.
[0011]
[0021] For example, according to aspects described herein, a media device may first distinguish a portion of a media stream that corresponds to primary content from a portion of the media stream that corresponds to other content. In one illustrative example, a media device may process a media stream to identify a boundary in the media stream that indicates a transition from primary content to supplemental content or from supplemental content to primary content. The boundary may correspond to a set of frames that includes a transition from the current content being displayed (e.g., primary content, supplemental content, etc.) to a blank frame (e.g., a frame having an average pixel value of about 0, a frame having an average pixel value of about 255, a frame having an average pixel value that is predetermined to be considered a blank frame, etc.), followed by a transition from the blank frame to subsequent content of the media stream to be displayed (e.g., supplemental content, primary content, etc.). In some cases, the boundary may be a single frame (e.g., a blank frame). In other cases, the boundary may include a transition to and a transition from a blank frame.
[0012]
[0022] In some cases, a media device may detect boundaries by first generating a sequence of media segments, each of which represents a portion of a media stream. The media device may perform a boundary detection process that assigns to each media segment a label indicating the presence (or absence) of a boundary in that media segment. The boundary detection process may evaluate characteristics of each media segment (e.g., the video frames, audio components, etc. of the media segment) to determine a probability that the media segment includes a boundary. For example, when evaluating a video frame, the media device may compare pixel values of one or more adjacent video frames to identify one or more blank frames, video frames corresponding to a fade-to-black (e.g., a sequence of video frames having decreasing average pixel values, where the last video frame has an average pixel value of about 0), video frames corresponding to a fade-from-black (e.g., a sequence of video frames having increasing average pixel values, where the first video frame has an average pixel value of about 0), combinations thereof, or the like, which may correspond to a boundary. The media device may generate the probability based on a confidence associated with detecting the blank frame, the fade-to-black, the fade-from-black, and / or the like. In another example, the media device may process the audio content to detect boundaries (e.g., via frequency analysis, amplitude analysis, spectral analysis, etc.) The media device may generate a probability based on a confidence associated with detecting the boundary.
[0013]
[0023] Alternatively or additionally, the media device may use a machine learning system or model (e.g., a neural network such as a convolutional neural network (CNN), a recurrent neural network (RNN), or other type of machine learning system or model) to generate a probability that a media segment includes a boundary. For example, the neural network may process the media or any portion thereof (e.g., a combined video and audio component, a video component, or an audio component) to determine the probability of a boundary being present in the media segment.
[0014]
[0024] If the probability associated with a detected boundary (e.g., detected using any of the methods described above) is greater than a threshold probability, the media device labels the media segment as including a boundary. If the probability is less than the probability threshold, the media device labels the media segment as not including a boundary.
[0015]
[0025] The media device may then classify a content type corresponding to the content of the media stream that is between the two boundaries. Content type categories include, but are not limited to, primary content (e.g., content selected by a user of the media device, such as a movie, a television program, music, etc.), supplemental content (e.g., content interspersed or embedded within the primary content, such as, but not limited to, commercials, pop-ups, advertisements, watermarks, etc.), or the like. The media device may use features of the displayed content to determine the content type. Once a boundary is detected, the media device may compare features extracted from the media stream before and after the boundary to determine whether the displayed content has transitioned to a different content. Examples of features may include, but are not limited to, average pixel value, average brightness, difference between the current average pixel value and the average pixel value of one or more frames displayed before the boundary, difference between the current brightness value and the brightness value of one or more frames displayed before the boundary, audio volume, audio frequency, change in audio volume, change in audio frequency, metadata embedded in the media stream, or the like.
[0016]
[0026] In some instances, the media device may use a machine learning system or model (e.g., a neural network such as a convolutional neural network (CNN), a recurrent neural network (RNN), or other type of machine learning system or model) to identify the content type. The machine learning system or model may generate a probability indicating whether a media segment located between the boundaries corresponds to a particular content type category. The media device may derive a single probability from the probabilities of the media segment for use in determining the content type. For example, the media device may generate an average probability from the set of probabilities. If the average probability is greater than a threshold probability, the media device may determine that the media segment between the two boundaries includes content that corresponds to a particular content type category output from the machine learning system or model. If the single probability is less than the probability threshold, the media device may determine that the media segment between the two boundaries includes content that does not correspond to the supplemental content.
[0017]
[0027] In some instances, the media device may use the time interval between each successive pair of boundaries to further refine the determination of the content type category. The primary content may be displayed for a longer time interval than the supplemental content type embedded in the primary content. Some content type categories include content that is presented for a standard time interval. For example, a commercial may be presented between about 30 seconds and 2 minutes. If the time interval between the two boundaries is greater than a threshold time interval (e.g., 2 minutes), the media device may determine that the detection of content corresponding to a non-primary content type category may be a false positive. The threshold time interval may be selected based on user input, an expected maximum duration of the supplemental content expected to be embedded in the primary content, a machine learning system or model (e.g., one of the machine learning systems or models described above or a different machine learning system or model), a statistical analysis of past time intervals of supplemental content in this or other media streams (e.g., regression analysis, etc.), a combination thereof, or the like.
[0018]
[0028] The media device may store the content type identification information and / or report the content type identification information to one or more remote servers. The media device or remote server may then identify content of the media segments determined to be of the supplemental content type. In some cases, the identification information of the content may be determined by an automated content recognition (ACR) process, for example, by comparing aspects of the content to a reference database of identified content. If the aspects of the content match an entry in the reference database, the entry may be used to identify the content. In some cases, the aspects of the content may include one or more frames, pixel data extracted from one or more frames, cue points, audio data, and / or the like.
[0019]
[0029] Once identified, content corresponding to the supplemental content type can be tracked by the media device and / or a remote server. The remote server may generate reports indicating the amount of instances a particular content was presented by a media device, the amount of media devices that presented the particular content, demographic information associated with media devices that displayed the particular content, and / or the like. In some instances, identifying the content may enable additional functionality of the media device. For example, upon identifying a particular content, the media device may be configured to present related content, present additional information related to the particular content (e.g., information about products / services, actors, production personnel, sets, or settings, etc.), replace the content to be presented with supplemental content, provide a user interface to a user of the media device related to the particular content, and / or the like.
[0020]
[0030] FIG. 1 illustrates a block diagram of an illustrative media identification system 100 for identifying a content type corresponding to content displayed in a media stream, according to an aspect of the disclosure. The media identification system 100 can detect and identify specific media within a media stream. In some cases, the media identification system can be one or more devices (e.g., computing devices, servers, databases, etc.) that receive media streams and report identification information of specific media within those media streams. For example, the media identification system can be positioned along a signal path between a content source (content delivery network, media server, media network, media database, etc.) and a media device to identify media being presented to the media device. A media device can include any device configured to directly display media (e.g., television, mobile device, computing device, etc., etc.) or a device configured to enable another device to directly display media (e.g., set-top box, or the like). In other cases, the media identification system 100 can be a component within a media device (e.g., a set-top box, a display device such as a television, etc.) or another device. In still other instances, the media identification system 100 may operate within a cloud environment as a distributed set of processes operating on any of one or more devices within the cloud environment.
[0021]
[0031] The media identification system 100 may receive media through the media interface 104. The media stream may be the received media 108, which may include one or more devices or networks that distribute the media (e.g., the Internet, a content delivery network, a broadcast television network, a cable television network, a satellite television network, etc.). The media may be transmitted using a protocol that may be selected by a particular media source. As a result, some media streams may be transmitted in a different protocol than other media streams. For example, broadcast television transmitted over the air (OTA) may be transmitted in a different format and protocol than cable television. The media interface 104 may include a set of interfaces configured to receive incoming media streams in various protocols and convert the media streams, if necessary, to a protocol that can be utilized by other components of the media identification system 100. The media interface 104 may detect the particular protocol being used by a media source (e.g., the media 108) and identify a particular interface within the media interface 104 to receive the media stream.
[0022]
[0032] The media interface 104 may store portions of the received media stream in the media cache 112 before outputting the portions to other components of the media identification system 100. For example, the media cache 112 may operate as a buffer to ensure that the media identification system 100 stores enough of the media stream to detect and identify the media of the media stream. In another case, the media cache 112 may operate as a load balancer that stores received portions of multiple streams to reduce the load on other components of the media identification system 100. The received portions of the media stream may then be processed at a later time or at a more efficient rate. Media may be stored in the media cache 112 to improve the operation of the media interface 104 (e.g., machine learning models or the like), to test the received media stream (e.g., for integrity of the processed media stream, error detection, error correction, etc.), to perform additional processing on the media stream, combinations thereof, or the like.
[0023]
[0033] The media interface 104 may output a portion of the received media stream to the video / audio decoder 116, which may be configured to decode the media of the media stream. For example, the media stream may be encoded for transmission to a remote media device. The encoding may include formatting the media stream, applying a compression algorithm, etc. The video / audio decoder 116 may include one or more codecs configured to decode data that was encoded using a similar corresponding codec. The video / audio decoder 116 may analyze the media and / or separated video and audio components of the media stream. The video / audio decoder 116 may then identify a codec configured to decode the media stream and / or the video and audio components.
[0024]
[0034] The video / audio decoder 116 may store the codec in a database of codecs. The database may store codecs that may be frequently used by a media source. The video / audio decoder 116 may query the database to identify a specific codec for decoding a particular media stream (and / or separate video or audio components). If the query returns a null result (e.g., a specific codec could not be identified), the video / audio decoder 116 may resend the query to an external device or network, which may retrieve the specific codec for the video / audio decoder 116. The video / audio decoder 116 may output the decoded media stream to an artificial intelligence (AI) processor 120.
[0025]
[0035] The AI processor 120 may run using the decoded media (e.g., a video component of the media, an audio component of the media, a combined audio / video, a component of the media, etc.) to detect the media type in the media stream. For example, the AI processor 120 may distinguish between movies, commercials or other advertisements, television programs, supplemental content, etc. The AI processor 120 may detect the media type using one or more machine learning models. For example, the AI processor 120 may use a neural network, such as a convolutional neural network, a recurrent neural network, a recurrent convolutional neural network, combinations thereof, or the like. In some instances, the AI processor 120 may include a processing pipeline of machine learning models.
[0026]
[0036] The processing pipeline may include a media sampler that can define media segments from the decoded media stream. The media sampler may output a set of media segments, where each media segment corresponds to a portion of the decoded media stream. Each media segment may correspond to a predetermined time interval of the media stream. For example, each media segment may correspond to a 500 millisecond portion of the media stream. In some cases, the media sampler may define a set of media segments from a media stream that includes the entire media stream. For example, each individual 500 millisecond portion of the media stream may correspond to a media segment of the set of media segments. In other cases, the media sampler may identify portions of the decoded media for defining media segments to reduce the amount of media segments defined by the media sampler. For example, the media sampler may analyze the decoded media stream to identify certain portions of the decoded media stream that are likely to include a particular media type, a different media type than a previous set of media segments, characteristics of interest, etc.
[0027]
[0037] In some cases, a media segment from the set of media segments may represent a unique portion of the decoded media stream. For example, a first media segment may correspond to a portion of the decoded media stream between t=0 and t=0.5, and a next media segment may correspond to a portion of the decoded media stream between t=0.5 and t=1. In other cases, the media segments may be defined from overlapping time intervals. For example, a first media segment may correspond to a portion of the decoded media stream between t=0 and t=0.5, and a next media segment may correspond to a portion of the decoded media stream between t=0.1 and t=6. The set of media segments may be transformed into the frequency domain using a Fourier transform or the like. In those cases, the AI processor 120 may define a window size attribute (e.g., a predetermined time interval length) and a step size attribute (e.g., corresponding to a time interval between the start of one media segment and the start of a subsequent media segment). The window size and step size attributes may be received from user input, from a remote server, by the AI processor 120 (e.g., based on accuracy metrics of a machine learning model within the AI processor 120, or the like).
[0028]
[0038] The AI processor 120 may convert the media segment from the time domain to the frequency domain. In some cases, the AI processor 120 may perform a Fourier transform (or a fast Fourier transform, or the like). The Fourier transform may be used to identify sinusoidal frequencies and phase content of the media segment. The converted media segment may be represented by a spectrogram.
[0029]
[0039] Alternatively, instead of defining media segments and transforming the media segments to the frequency domain, the AI processor 120 may perform a short-time Fourier transform (STFT). The STFT may be a discrete process that performs the previously described functions of defining media segments and transforming them to the frequency domain. The STFT may receive as input a media stream and a window value (e.g., a predetermined time interval). The STFT may then define a media segment from the decoded media stream that corresponds to the window value and output a spectrogram representation of the media segment. In particular, the STFT may use a short-term power spectrum of the components of the media stream (e.g., audio, video, etc.) based on a linear cosine transform of the logarithmic power spectrum on a nonlinear mel scale of frequency. The STFT may output mel-frequency cepstral (MFC) coefficients in addition to the spectrographic representation of the media segment.
[0030]
[0040] The AI processor 120 may pass each transformed media segment as an input to a first machine learning model to generate a feature vector for the media segment. In some cases, the first machine learning model may be a neural network, such as a concurrent neural network, that outputs a two-dimensional or three-dimensional feature vector from the spectrogram. The neural network may include three or more layers: an input layer, one or more hidden layers, and an output layer. In some cases, the neural network may be a convolutional neural network. The output of the neural network may be a feature set for each frequency of the media segment in the frequency domain. The feature set may be added to the spectrogram output to generate a tensor (e.g., a feature vector) with an additional dimension added to the MFC coefficients. The tensor corresponds to a frequency-specific, time-specific feature set from the media segment being processed.
[0031]
[0041] The AI processor 120 may process the feature vector using one or more additional machine learning models, each configured to generate a different output. For example, the AI processor 120 may include a second machine learning model configured to detect boundaries (e.g., transitions such as content changes) within a media segment from the feature vector and a third machine learning model configured to detect a content type of the media segment. In some instances, the second and third machine learning models may be recurrent neural networks, such as long-short term memory (LSTM) models. The LSTM model is configured to consider a time series input (e.g., media segments corresponding to a predetermined time interval of the decoded media stream) when generating the output.
[0032]
[0042] The second and third machine learning models may be configured to receive input in a particular format. For example, an LSTM model may be configured to receive a two-dimensional input. Since the output of the first machine learning model is a three-dimensional feature vector, the AI processor 120 may unfold and reshape the three-dimensional feature vector to form a two-dimensional feature vector that can be passed as input to the second and third machine learning models (e.g., to generate a feature vector in a format suitable for the second and third machine learning models). The three-dimensional feature vector may be unfolded by stacking the third dimension of the feature vector onto the second dimension of the feature vector (e.g., adding a feature of the third dimension of frequency to each frequency feature set). The unfolded feature vector is then reshaped in strides of a particular length (e.g., a predetermined time interval or window value as previously described). The unfolded feature vector may be two-dimensional, which may be represented as an x-dimension and a y-dimension, where the x-dimension (representing time) includes k values.
[0033]
[0043] The unfolded and reshaped feature vector may then be passed as input to a second and a third machine learning model. The second and third machine learning models may be configured to detect boundaries and media types (respectively). In some instances, the second and third machine learning models may be LSTM models. The LSTM model may include two or more layers of LSTM cells with forward and backward propagation. In some instances, the LSTM model may include two or more layers of LSTM cells with forward and backward propagation. n The LSTM may include 64 cells, where n may be determined based on user input, past runs of the LSTM model, another machine learning model, features extracted or derived from the decoded media stream, or a combination thereof. In one example, the LSTM may include 64 cells. In another example, n may be based on features extracted from the media segment that correspond to the amount of frequencies represented by the reshaped feature vector.
[0034]
[0044] A cell of an LSTM model may receive three or more inputs that may be processed by the cell to generate an output. For example, an LSTM may receive a state input corresponding to the state of the LSTM based on a previously executed process of the cell, a hidden layer input based on the output of a previous cell, and a current input (e.g., the set of features of a feature vector at the i-th position in the x-dimension). The cell processes the current input and hidden layer input, generates a hidden layer output, and determines whether and how to modify the state input. The cell then outputs the updated state input and hidden layer output to the next cell. 2 n After the th cell, the state output from the last cell and the hidden layer may be passed through the output layer to generate a predicted output. The predicted output may be passed through a softmax algorithm to represent the predicted output as a value between 0 and 1.
[0035]
[0045] The AI processor 120 may then determine whether the decoded media stream contains a particular media type by evaluating predictions generated by one or more machine learning models. If the AI processor 120 includes a single additional machine learning model (e.g., a machine learning model configured to detect a particular content type from a feature vector), the AI processor 120 may determine whether a particular content type is detected when a predetermined amount of consecutive predictions from the machine learning model average to a value greater than a threshold. The AI processor 120 may output an indication that a particular media type was detected and may indicate a time interval within the media stream during which the particular media type was present.
[0036]
[0046] If the AI processor 120 includes two additional machine learning models (e.g., a second machine learning model configured to detect boundaries in the decoded media stream and a third machine learning model configured to detect a particular content type within the decoded media stream), the AI processor 120 may identify a time interval between two sequential boundaries. Each boundary may be detected based on a probability output from the second machine learning model being greater than a first threshold. The AI processor 120 may then determine whether an average of the probabilities from the third machine learning model output over the time interval between the sequential boundaries is greater than a threshold. If so, the AI processor 120 may indicate that media corresponding to the particular content type has been detected and output a time interval in the media stream during which media corresponding to the particular content type was presented.
[0037]
[0047] AI processor 120 may output each detection of media corresponding to a particular content type to content database 124. In some instances, AI processor 120 may output an indication that media corresponding to a particular content type was detected, an indication of a time interval within the media stream during which media corresponding to a particular content type was presented, an identification of the media corresponding to a particular content type, an isolated instance of the media corresponding to a particular content type from the media stream, a portion of the media corresponding to a particular content type from the media stream (e.g., a video frame and audio segment, a video frame pixel representation, or a pixel representation of the media corresponding to a particular content type, etc.).
[0038]
[0048] 2 illustrates a block diagram of an example neural network configured to predict boundaries or specific content types within a media stream, according to aspects of the disclosure. Neural network 200 may be a recurrent neural network configured to process time series input. The input may include a two-dimensional feature vector derived from the media stream, an audio component of the media stream, a video component of the media stream, or other components of the media stream. The neural network may include an input layer 204, a first hidden layer 208, a second hidden layer 212, and an output layer 216. In some instances, the neural network may include additional hidden layers beyond those illustrated by neural network 200.
[0039]
[0049] In a recurrent neural network configuration, the neural network 200 may include feedback whereby an output from a hidden layer may be passed to a previous hidden layer of the neural network 200. For example, the hidden layer 212 may pass feedback 220a and 220b to the previous hidden layer 208. The feedback 220a and 220b may enable the neural network 200 to retain past information when processing time information. For example, processing time series data such as audio data, feature vectors corresponding to time t may be processed by the neural network 200. The neural network learns from processing the feature vectors using backwards propagation through time, which modifies weights of previous layers of the neural network based on output error values. As shown, the neural network may use feedback 220a and 220b to modify weights of nodes in previous layers (e.g., hidden layer 208). The backwards propagation through time may also adjust weights of input values processed during previous iterations (e.g., from the feature vector input at time t-1). In some instances, the neural network 200 may also use gradient descent to improve the accuracy of the node weights. Gradient descent may use local minima (e.g., in a neighborhood of a node) to determine node weights and / or adjustments to the node weights. The recurrent neural networks described herein may use backpropagation, backpropagation through time, gradient descent, gates (e.g., enabled by nodes of a long-short-term memory network), and / or other learning processes to improve the accuracy, training, training time, etc. of the network.
[0040]
[0050] FIG. 3 illustrates a block diagram of an example AI processor configured to detect media in a media stream, according to an aspect of the disclosure. The AI processor 120 may receive a media input 304. The media input may include, but is not limited to, a media stream, a portion of a media stream, a component of a media stream (e.g., a video component, an audio component, other components, and / or the like), metadata associated with the media input, or combinations thereof. In some cases, the media stream may include one or more media (e.g., audio and / or video) presented within a communication channel configured for presentation by a device. Examples of media streams include, but are not limited to, broadcast television channels, cable television channels, Internet media, and / or the like. Because a media stream may include different types of media, the AI processor 120 may be used to detect the content type of the media included in the media stream. In some cases, the AI processor 120 may be further configured to identify the content (e.g., using automatic content recognition, or the like).
[0041]
[0051] The AI processor 120 may process the media input 304 using an STFT 308. The STFT 308 may define a set of media segments from the media input. If the media stream is continuous, the STFT 308 may continuously generate media segments for the set of media segments. The STFT 308 may then transform the set of media segments into the frequency domain (e.g., using a Fourier-based transform, or the like).
[0042]
[0052] The AI processor 120 may pass the media segments to the feature extractor 316 to extract features that may be passed as input to the machine learning models 324a and 324b. In some cases, the feature extractor may be an automated process that derives features from the attributes and characteristics of each media segment. In other cases, the feature extractor may be a machine learning mode. For example, the feature extractor 316 may be a neural network, such as a convolutional neural network, that may process the media segments and output a set of features or a feature vector. A neural network may include three or more layers: an input layer, one or more hidden layers, and an output layer. In a convolutional neural network configuration, the neural network may include a kernel that is used to convolve the input to the nodes of the neural network. In some cases, the kernel may be a 3×3 kernel. In other cases, the kernel may be any size, including the size of a single row or a single column.
[0043]
[0053] The feature extractor 316 may output a set of features or a feature vector. In some cases, the output may not be compatible with the next processing layer (e.g., neural networks 324a and 324b). For example, the feature extractor may output a three-dimensional feature vector, while the next processing layer may be configured to receive two-dimensional input. The feature vector generator 320a may receive input from the feature extractor 316 and generate a feature vector that is compatible with the next processing layer of the AI processor 120. For example, the feature vector generator 320a may unfold and reshape the three-dimensional feature vector to form a two-dimensional feature vector (e.g., or otherwise generate a feature vector in a format suitable for the neural networks 324a and 324b). The three-dimensional feature vector may be unfolded by stacking the third dimension of the feature vector onto the second dimension of the feature vector (e.g., adding the third dimension feature of each frequency to the feature set at that frequency). The unfolded feature vector may then be reshaped in strides of a particular length (e.g., the length of a given time interval or media segment, or the like). The unfolded feature vector may be two-dimensional, which may be represented as an x dimension and a y dimension, where the x dimension (representing time) includes k values and each value along the x dimension (e.g., from x=0 to x=k) corresponds to a set of features in the y dimension.
[0044]
[0054] The feature vectors generated by feature vector generator 320a may be passed as input to neural network 324a, and the feature vectors generated by feature vector generator 320b may be passed as input to neural network 324b. In some cases, the feature vectors generated by feature vector generator 320a and feature vector generator 320b may be the same (e.g., nearly identical). In other cases, the feature vectors generated by feature vector generator 320a and feature vector generator 320b may be different based on neural network 324a and neural network 324b, respectively. For example, the input feature vectors may be different because neural network 324a may be trained to predict whether a media segment contains a boundary and neural network 324b may be trained to predict the content type of the content of the media segment. The difference may be minor (e.g., the inclusion of the exclusion of one or more features, or the like).
[0045]
[0055] Each feature vector may be passed to neural networks 324a and 324b, respectively. Neural networks 324a and 324b may be neural networks configured to process time series inputs. For example, neural networks 324a and 324b may be recurrent neural networks, such as, but not limited to, long-short-term memory networks. Neural networks 324a and 324b may be the same or different types of neural networks. Neural network 324a may be configured to predict the presence of a boundary in the media segment from which the input feature vector was derived. The prediction may be a probability that such a boundary exists. The probability may be represented by a value between 0 and 1, a percentage between 0 and 100, and / or the like. The boundary may correspond to a context transition in the media stream, such as, for example, a transition from a first media type (e.g., a movie, etc.) to a second media type (e.g., an advertisement, etc.) or from the second media type to the first media type. The neural network 324b may be configured to predict a content type for the content of the media segment. The prediction may be a label (e.g., of the content type), a probability that a particular content type is present, and / or the like.
[0046]
[0056] The AI controller 328 may receive the outputs from the neural networks 324a and 324b and determine when a particular content type is detected. The AI controller 328 may determine when a boundary is detected from the probabilities output from the neural network 324a and when a particular content type is detected from the probabilities output from the neural network 324b. In some examples, the AI controller 328 may define a first threshold, which may be used to determine when the boundary probability output from the neural network 324a indicates a boundary. The AI controller 328 may define a second threshold, which may be used to determine when the content type probability output from the neural network 324b indicates a particular content type. In other cases, the first and second thresholds may be predefined, determined by a machine learning model (e.g., any of the neural networks previously described, or the like), by user input, and / or the like. The first and second thresholds may be static (e.g., unchanging) or dynamic (e.g., may change after each execution of the AI processor 120). In one example, the first threshold may be set at a probability of 85-95% and the second threshold may be set at a probability of 55-65%.
[0047]
[0057] The AI controller 328 may determine that a particular content type of content is present in the media stream by first detecting two boundaries. The AI controller 328 may determine a first media segment in the set of media segments that includes the boundary (e.g., based on the feature vector corresponding to the media segment that generates a probability greater than a first threshold) and a second media segment in the set of media segments that includes the boundary. The boundaries may be contiguous (e.g., there is no boundary between them), but may not necessarily be adjacent (e.g., at least one media segment is located between the first media segment and the second media segment). The AI controller 328 may then determine whether a content type probability corresponding to a subset of media segments output from the neural network 324b and located between the first media segment and the second media segment in the set of media segments is greater than a second threshold. In some instances, the AI controller 328 may determine that a particular media type is detected in the media stream when each probability (e.g., the probability generated from each media segment in the subset of media segments). In other cases, the AI controller 328 may determine that a particular media is detected in the media stream when the average of the probabilities of the subset of media segments is greater than a second threshold. In still other cases, the AI controller 328 may determine that a particular media is detected in the media stream when the median or mode of the subset of media segments is greater than a threshold.
[0048]
[0058] The AI controller 328 may then output an indication that the media stream contains content of a particular content type. In some cases, the output may include additional data associated with the content, such as, but not limited to, an identification of a timing offset indicating where in the media stream the content is located, an identification of the content (e.g., via automatic content recognition, manual content recognition, and / or the like), information corresponding to actors in the content, information corresponding to production personnel (e.g., director, editor, producer, etc.), information corresponding to the creation of the content (e.g., setting, set, filming location, etc.), combinations thereof, or the like. In some cases, the output may also include a representation of the content (e.g., a portion of the media stream that contains the content).
[0049]
[0059] FIG. 4 illustrates a block diagram of an example training system 400 configured to train an AI processor to detect media in a media stream, according to an embodiment of the disclosure. The training system 400 may train one or more neural networks of the AI processor 120. The training system may use a training supervisor 404 to manage the training of each neural network. The training supervisor may include one or more sets of hyperparameters for each neural network. Each set of hyperparameters may be based on a neural network type, a learning type, an algorithm, etc. Each hyperparameter may include one or more values (e.g., epochs, loss function, node weight adjustments, etc.) that may control the learning process of the corresponding machine learning model.
[0050]
[0060] The training supervisor may receive training data from the database 408. The database 408 may include one or more local or remote databases that store past media streams, media segments corresponding to past media streams, labels for media segments (e.g., indicating the presence of boundaries and / or the content type of the media segment, etc.), feature vectors corresponding to the media segments, combinations thereof, or the like. The database 408 may store data associated with each run of the AI processor 120 for future training (e.g., reinforcement learning, etc.) or retraining. In some cases, the database 408 may store manually-generated and / or procedurally-generated training data. The manually-generated and / or procedurally-generated data may be based on past media streams or current media streams that the neural network of the AI processor 120 is configured to process. The training supervisor 404 may organize the training data in the database 408 into sets of training data sets for training, reinforcement learning, retraining, and / or the like.
[0051]
[0061] The training supervisor 404 may receive test data from a test data cache 412. The test data cache may store test data usable by the training supervisor 404 or the AI processor 120 to determine the status of the training process, the accuracy of the neural network being trained, to generate labels for supervised learning, and / or the like. The test data cache 412 may include data generated and / or derived from past training data, manually generated training data, and / or procedurally generated training data from the database 408. In some instances, the test data cache 412 may also include data received from one or more remote devices (e.g., a content delivery network, a server, a database, a computing device, a media device, and / or the like).
[0052]
[0062] The training supervisor may manage the training of the neural network of the AI processor 120 by passing each training data set to the AI processor 120. The AI processor 120 may process the data set (e.g., generate media segments, extract features, generate feature vectors, and / or the like) and begin training the neural network. The output of each training iteration (e.g., each input passed to the neural network) may be passed from the AI processor 120 to the training supervisor 404 along with a control signal (e.g., indicative of the training that was performed for that iteration, such as, but not limited to, output accuracy, node weights, etc.). The training supervisor 404 may analyze the output and control data to determine that a subsequent iteration of training should be performed. In some cases, the training supervisor may use a test data cache 412 to test the output and / or the control data. In other cases, the training supervisor 404 may perform a coverage analysis on the training data, the output, and / or the control data to ensure that the training data is sufficient to train the neural network and / or to identify the next training data to use for the next iteration of training. The neural network may be training for a predetermined amount of iterations and / or until a predetermined output accuracy is reached.
[0053]
[0063] The training supervisor 404 may use supervised learning, unsupervised learning, self-supervised learning, and / or reinforcement learning. In supervised learning, each training input may include a label corresponding to an expected output. The neural network adjusts the internal weights of the nodes based on the difference between the output generated by the neural network and the label. In unsupervised or self-supervised learning, the training data may not be labeled. The neural network may learn by analyzing the structure (e.g., correlations, etc.) of the training data. The analysis may be fed back into the neural network to adjust the internal weights of the nodes.
[0054]
[0064] In some cases, the neural network may be further trained using reinforcement learning. Reinforcement learning uses the output of the neural network and a desired outcome (e.g., expected output, or the like). For example, the output of the neural network may be evaluated by a third neural network, user input, or the like. The output and evaluation may be passed as feedback to the neural network to further adjust the node weights of the neural network. Reinforcement learning may occur during training of the neural network, during normal operation of the neural network (e.g., after a second neural network has been trained), during retraining of the neural network, etc.
[0055]
[0065] FIG. 5 illustrates a block diagram of an example media identification system configured to detect a media type of media in a media stream and identify the media, according to an aspect of the disclosure. The media identification system 500 may include the media identification system 100 of FIG. 1. For example, the media identification system 100 may include the media interface 104, the media 108, the media cache 112, the video / audio decoder 116, the AI processor 120, and / or the content database 124. The media identification system 500 may be configured to identify content corresponding to a particular media type detected by the AI processor 120. For example, when the AI processor 120 detects that content in the media stream corresponds to a particular content type, the AI processor 120 sends an indication thereof to the content database 124. The indication may include information associated with the content and / or the content type.
[0056]
[0066] The content database 124 may send an indication to an automatic content recognition (ACR) 504. The ACR 504 may match the content with reference content in a content reference database 508. If the ACR 504 identifies a matching reference content, an identifier of the reference content may be assigned to the content. The ACR 504 may then send the identifier of the content back to the content database 124 for storage or subsequent processing. In some cases, the ACR 504 may also send an indication that the identified content has been presented. The indication that the identified content has been presented may include information associated with the media device that presented the content. The information may include, but is not limited to, hardware / software information of the media device, demographic information associated with a user of the media device, other information associated with a user of the media device, etc.
[0057]
[0067] FIG. 6 illustrates an example of a media segment 600 of a media stream including a boundary, according to aspects of the disclosure. The media segment 600 includes a portion of a media stream. The media segment 600 may include one or more video frames (as shown) and / or audio components corresponding to one or more video frames. The media segment 600 includes a boundary indicating a change from a first content to a second content. For example, video frame 604 represents content associated with a car. Video frame 604 may also represent content associated with that car. The average pixel value of video frame 608 may be lower (e.g., darker) than video frame 604 due to the upcoming boundary video frame 612. Video frame 612 has an average pixel value of about 0 (e.g., black) and may be a boundary corresponding to an empty video frame not representing any content. Video frames 608 and 612 correspond to a fade-to-black process in which one or more video frames transition from content (e.g., video frames 604 and 608) to the boundary.
[0058]
[0068] The next video frame (e.g., video frame 616) has an average pixel value similar to video frame 608 and may represent the next content in the media stream (e.g., a forest scene). Video frames 612 and 616 represent a fade-from-black process in which one or more video frames transition from a boundary to content (e.g., video frames 616 and 620). The last video frame of the media segment (e.g., video frame 620) may represent new content.
[0059]
[0069] Media segment 600 includes five frames as shown. Additionally, a media segment may include any number of video frames and / or corresponding audio. In some cases, a media segment may include a set of video frames and / or corresponding audio corresponding to milliseconds of a media stream. In other cases, an AI processor (such as, for example, AI processor 120 of FIGS. 1-5), a user, and / or another component or device may determine a window value that determines the amount of video frames and / or corresponding audio to include in a media segment. The value may correspond to an amount of video frames, a time interval length, or the like.
[0060]
[0070] The media segments may be defined such that each media segment may include video frames and / or corresponding audio that are not included in other media segments defined from the media stream. For example, a first media segment may include video frames 604-620, such that video frames 604-620 may not appear in any other media segments. Alternatively, media segments may be defined to overlap, such that a portion of a video frame and / or corresponding audio of a media segment may be included in a previous media segment and / or a subsequent media segment. For example, a first media segment may include video frames 604-612, a second media segment may include video frames 612-620, a subsequent media segment may start at video frame 620, and so on. A step value may be received indicating a time interval between when a first media segment may start and when a next media segment may start. The step value may be less than or equal to a window value. When the step value is less than the window value, the media segments may overlap. When the step value is equal to the window value, the media segments may not overlap. In some cases, the step value may be greater than the window value. In those cases, each media segment may start at some time after the end of the preceding media segment in the media stream, so that a portion of the media stream may not be represented by a media segment. The time interval between the end of a media segment and the start of a subsequent media segment (which may not be represented by a media segment) may be equal to the difference between the window value and the step value.
[0061]
[0071] FIG. 7 illustrates an example process flow during execution of an AI processor configured to detect a media type of media in a media stream according to an aspect of the disclosure. A media component 704 may be received and processed by an AI processor (e.g., AI processor 120 as previously described, etc.). A media component may include, but is not limited to, a media stream, a portion of a media stream, a component of a media stream (e.g., a video component, an audio component, one or more other components, and / or the like), metadata associated with a media component, a combination thereof, or the like. In some instances, a media stream may include various content presented within a communication channel configured for presentation by a device (e.g., a computing device, a display device, a media device, and / or the like). Examples of media streams include, but are not limited to, broadcast television channels, cable television channels, Internet media, and / or the like.
[0062]
[0072] The AI processor may process the media component 704 using the STFT 708. The STFT 708 may define a set of media segments from the media component 704 in the frequency domain. The media component 704 may be in the time domain, such that each discrete instance of the media component 704 corresponds to a time point in the media stream. The STFT 708 may define a set of media segments from the media component 704, where each media segment corresponds to a contiguous portion of the media component within a time interval (e.g., a window value).
[0063]
[0073] In some instances, the set of media segments may represent non-overlapping portions of the entire media composition 704. For example, if the window value is set to 500 milliseconds, a first media segment may correspond to media of the media stream from T=0 ms to T=500 ms, a next media segment may correspond to media of the media stream from T=500 ms to T=1000 ms, and so the set of media segments does not exclude a portion of the media composition 704.
[0064]
[0074] In other cases, the AI processor defines a step value that indicates the distance between the start of a first media segment and the start of a next media segment. When the step value is smaller than the window value, the media segments may overlap. For example, with a window value of 500 ms and a step value of 100 ms, the first media segment may correspond to a portion of the media component 704 from T=0 ms to T=500 ms, and the next media segment may correspond to a portion of the media component 704 from T=100 ms to T=600 ms. The step size may be predetermined based on the input, based on a previous execution of the process of FIG. 10, based on a previous execution of one or more machine learning models (such as any of the machine learning models described herein), based on other machine learning models, and / or the like. In these cases, the step value may be less than or equal to the window value.
[0065]
[0075] In other cases, the step value may be less than, equal to, or greater than the window value. When the step value is greater than the window value, the set of media segments may not include the entire media component 704. For example, a first media segment may correspond to media of the media stream from T=0 ms to T=500 ms, and a next media segment may correspond to media of the media stream from T=750 ms to T=1250 ms. The computing device may skip a portion of the media stream between each media segment (e.g., the portion of the media component 704 from T=501 ms to T=749 ms in the previous example). The time interval between each media segment may be predetermined based on the input, based on a previous execution of the process of FIG. 10, based on a previous execution of one or more machine learning models (described with respect to blocks 1012 and 1016), based on other machine learning models, and / or the like.
[0066]
[0076] Once the set of media segments is defined, STFT 708 may then transform the set of media segments into the frequency domain (e.g., using a Fourier-based transform, or the like). STFT 708 may operate on a portion of the media component, the entire media component, continuously (e.g., on continuously received media), and / or the like.
[0067]
[0077] The AI processor may generate a feature vector for each media segment using a machine learning model. For example, the AI processor may use the neural network 712 to generate one or more feature vectors for each media segment of the set of media segments. The neural network may be a convolutional neural network that includes at least three layers, for example, an input layer, one or more hidden layers, and an output layer. The neural network may include kernels that are used to convolve the input to the nodes of the neural network. In some cases, the kernels may be 3×3 kernels. In other cases, the kernels may be any size, including the size of a single row or a single column.
[0068]
[0078] The output from the neural network 712 may be a three-dimensional feature vector 716. The feature vector 716 may, in some examples, include a time dimension, a frequency dimension, and a channel dimension (e.g., features per time and frequency). The AI processor may determine whether the feature vector 716 is in a format compatible with the next processing layer (e.g., the neural network 732). If the feature vector 716 is not compatible, the AI processor may modify the format of the feature vector 716 into a compatible format. For example, the AI processor may determine that the next processing layer may be configured to receive two-dimensional input. The three-dimensional feature vector may be modified into a two-dimensional format that can be input to the next processing layer.
[0069]
[0079] Modifying the feature vector 716 into a two-dimensional feature vector may include unfolding and reshaping the feature vector 716. The feature vector 716 may be unfolded by stacking a third dimension of the feature vector onto the second dimension of the feature vector (e.g., adding to the feature set at each frequency the third dimension features of that frequency). The unfolded feature vector may then be reshaped in strides of a particular length (e.g., the length of a given time interval or media segment, or the like). The result of the unfolded and reshaped feature vector 716 is a feature vector 720, which includes two dimensions, a time dimension and a frequency dimension.
[0070]
[0080] Alternatively or additionally, dimensionality reduction may be performed on feature vector 716 or feature vector 720. Examples of dimensionality reduction processes include, but are not limited to, principal component analysis, discriminant analysis, or the like. Dimensionality reduction may operate to transform feature vector 716 or feature vector 720 into a lower dimensional space while retaining as many predictive features as possible.
[0071]
[0081] The stride may be extracted from the feature vector 720 and passed to the neural network 732. The stride may correspond to a portion of the feature vector 720, such as a set of features over a particular length (e.g., a time interval). The particular length may be predetermined, selected by user input, based on past runs of the neural network 732, based on an accuracy metric of the neural network 732, based on the output of an optimization function that analyzes the change in the output of the neural network 732 when varying the length, based on other machine learning models, and / or the like. As shown, the stride 724 may be extracted from the feature vector 720 and passed to the neural network 732.
[0072]
[0082] The neural network 732 may be configured to predict the presence of a boundary in the time slices and / or feature vectors 720. The neural network 732 may also be configured to predict a content type of the content represented by the time slices and / or feature vectors 720. Alternatively, the neural network may include two or more neural networks. A first neural network may be configured to predict the presence of a boundary in the time slices and / or feature vectors 720, and a second neural network may be configured to predict a content type of the content represented by the time slices and / or feature vectors 720. The neural networks may be of the same type trained using the same, similar, or different training data sets, or may be of different types. In some instances, the neural network may be a recurrent neural network, such as a long short-term memory network. The neural network 732 outputs one or more probabilities, such as a first probability that a boundary exists and a second probability that the content type corresponds to a particular content type. The probabilities may be represented by values between 0 and 1, percentages between 0 and 100, and / or the like. In a multiple neural network configuration, each neural network may be trained to generate a corresponding probability. Alternatively, the neural network 732 may output a single value representing the first probability and the second probability.
[0073]
[0083] The LSTM network described herein may be a two-layer neural network, the first layer of which includes a set of nodes. The set of nodes may include any amount of nodes determined by past runs of the neural network described herein, training data, a media stream, a feature vector 720, a stride length, an amount of strides extracted from the feature vector 720, user input, or the like. In some examples, the set of nodes may include 64 nodes. Each node may include a dedicated neural network. Each node may process a different portion of the feature vector 720. For example, a sequence of nodes may process a corresponding sequence of strides from the feature vector 720.
[0074]
[0084] LSTM nodes may include gates that may control how data is input to, stored in, and / or output from the node. For example, LSTM node 728 may receive a current long-term memory (e.g., derived data retained from execution of each cell preceding this cell), a previous hidden state (e.g., output from a previous node), and / or input data at this current time step. LSTM node 728 may use a first gate to weight bits of the current long-term memory. The weights may cause a portion of the current long-term memory to be "forgotten" (e.g., weighted lower to reduce its influence on the output of this node, the output of the LSTM network, and the processing of future nodes). The LSTM network may then use an input gate that uses the previous hidden state and input data to determine what information from the previous hidden state and input data should be added to the current long-term memory. The LSTM network may then use an output gate that generates a new hidden state for the next node in the LSTM network and determines the degree to which the long-term memory is updated. Each gate may include a sigmoid and / or hyperbolic tangent function that activates a neural network configured to perform the operations described above. The output from the final node of the LSTM may be an output layer (e.g., a linear layer, etc., etc.) that converts the output from the final node into a prediction.
[0075]
[0085] The long-term memory may be passed through a sequence of nodes of the LSTM network, with each node weighting the data received in the long-term memory, determining whether to add additional data to the long-term memory, and updating the data in the long-term memory before being passed to the next node of the LSTM network. As a result, the long-term memory allows the LSTM network to learn from previous inputs of a time series dataset. For example, when processing a sequence of media segments, the long-term memory allows the LSTM to use data from the first input (e.g., the first media segment in the sequence) when processing the last input (e.g., the last media segment in the sequence).
[0076]
[0086] The output from the neural network 732 may include output features 7 derived from the LSTM network. In some instances, the output features 736 may include an n-member vector z of K features (e.g., real numbers). K may be equal to the amount of nodes in the LSTM network. In an LSTM configuration with 64 nodes, K may be equal to 64. The n-member vector may be passed as an input to a softmax process 740. The softmax process may normalize z into a probability distribution consisting of K probabilities proportional to an exponential function of the number of inputs. The output of the softmax process may be a vector z' with K features, where the features in z' range from 0 to 1 and sum to 1. Each feature in z' may be interpreted as a probability.
[0077]
[0087] Standard (unit) softmax function σ:R K →[0,1] K is defined by the following formula:
[0078]
number
[0079]
[0088] The softmax process iterates over each element z of the input vector z. iThese values are normalized by applying a standard exponential function to and dividing by the sum of all these exponential functions. This normalization ensures that the components of the output vector σ(z) sum to 1. The softmax output z′ may be a set of probabilities for each stride 724 of the feature vector 720. A single probability may be derived from the set of probabilities for each stride. The single probability may represent the output of the neural network 732. For example, a neural network configured to predict the presence of a boundary and / or a stride in the feature vector 720 may output a probability that a boundary exists. A neural network configured to predict the content type of the content represented by the feature vector 720 and / or the stride extracted from the feature vector 720 may output a probability that the content corresponds to a particular content type.
[0080]
[0089] 8 illustrates an example output from an AI processor detecting a particular media type of media in a media stream according to an aspect of the disclosure. The output 800 of the AI processor may include two or more probabilities for each media segment. For example, the output for each media segment may include an identification of a time interval 804 of the media stream represented by the media stream, a first probability 808 corresponding to whether the media segment contains content of a particular content type, and a second probability 812 corresponding to whether the media segment contains a boundary. The time interval 804 of each media segment may be 500 milliseconds of the media stream.
[0081]
[0090] The AI processor may first identify a first media segment that includes a first boundary and a second media segment that includes a second boundary. The AI processor may identify the first media segment having a second probability 812 greater than a first threshold (such as 85%, but the first threshold may be selected by other means such as user input, past runs of the AI processor, a machine learning model described herein, etc.) and the second media segment having a second probability 812 greater than the first threshold. The AI processor may then identify a subset of media segments (e.g., as shown by 816a and 816b) located between the first media segment and the second media segment, and process the first and / or second probabilities of the subset of media segments. For example, the AI processor may determine whether the average of the first probabilities 808 of the media segments between 816a and 816b is greater than a second threshold (e.g., 60%, although the second threshold may be selected by other means such as user input, past runs of the AI processor, a machine learning model described herein, etc.). If the average probability of the first probabilities 808 of the subset of media segments is greater than the second threshold, the AI process determines that the subset of media segments includes content of a particular content type. Alternatively, the AI processor may determine whether the median or mode of the subset's probabilities is greater than the second threshold to determine whether the subset of media segments includes content of a particular content type.
[0082]
[0091] The AI processor may output an indication that content corresponding to a particular content type was detected (or presented by a media device), an identification of a time offset indicating the location of the content within the media stream, an identification of a media segment within the subset of media segments, an identification of the subset of media segments, the media stream, information associated with the media device that presented the content or its user (e.g., hardware components, software components, demographic information, etc.), a timestamp indicating the time the content was presented, a timestamp indicating the time the AI processor detected the content, any combination thereof, or the like.
[0083]
[0092] 9 illustrates an example execution of an AI processor on an audio component of a media stream, according to an aspect of the disclosure. The audio component 904 may be time series data that can be represented (as shown) as pressure over time. The audio component 904 may be a media stream, or a component of a media stream that includes additional components (e.g., video, etc.). The audio component 904 may be processed by the AI processor to determine the presence of content that corresponds to a particular content type (e.g., advertisements, movies, television programs, music, etc.).
[0084]
[0093] The AI processor may first generate a sequence of media components 908 from the audio component 904. Each media component may correspond to a portion of the audio component 904 that spans a particular time interval (e.g., referred to as a window length) of the audio component 904. In some cases, each media component 908 may represent a unique portion of the audio component 904, such that the media components may include non-overlapping portions of the audio component 904. In other cases, the media components may include overlapping portions of the audio component 904. In those cases, the AI processor may include a step value that indicates the time interval between the start of a first media segment and the start of the next media segment. When the step value is smaller than the window value, the media segments may overlap. When the step value is equal to the window value, the media segments may not overlap, but may cover the entire audio component 904. When the step value is larger than the window value, there may be gaps between each media segment that may not be processed by the AI processor. A step value larger than the window value may reduce the amount of media segments defined for the audio component 904 (or media stream) to be processed by the AI processor, at the expense of precision (e.g., one of the gaps may contain a boundary that may be missed by the AI processor).
[0085]
[0094] The media segments may be transformed into the frequency domain by a transform 912. In some cases, the transform may be a Fourier-based transform (e.g., a Fourier transform, a fast Fourier transform, a short-time Fourier transform, or the like). The transformed media segments may then be input to the LSTM network 908. The LSTM network 908 may be a two-layer neural network. The first layer may include a sequence of nodes 916. In some cases, the amount of nodes 916 in the sequence of nodes 916 may correspond to the amount of media segments defined from the audio component 904. Each node 916 may process a media segment of the sequence of media segments and generate a first output of features stored in stored features 920, a second output that is passed to the next node in the sequence of nodes 916, and a third output that represents a long-term memory of the LSTM 908. The long-term memory may be accessible to each node 916 in the sequence. While processing the media segment, each node 916 may add, remove, and / or update data in the long-term memory. By the time the last node in the sequence processes the last media segment in the sequence of media segments, the long-term memory may store data representing that the LSTM network 908 has learned to process the preceding media segment.
[0086]
[0095] The stored features 920 stores the probabilities output from each node 916 of the LSTM network 908. The probabilities may correspond to a first probability that the media segment contains a boundary and a second probability that the media segment contains content corresponding to a particular content type. The first probability may be generated by the first LSTM network 908 and the second probability may be generated by a second LSTM network 908 (having a similar or same structure and operation but with a different configuration and / or training). Alternatively, the first and second probabilities may be generated by the same LSTM network 908. Each node 916 may output the first and second probabilities for the media segment processed by that node.
[0087]
[0096] The output of the final node and stored features 920 may be used to generate an output prediction 924. The AI processor may first identify a first media segment and a second media segment that each include a boundary. A media segment may be determined to include a boundary when a boundary probability output from the node that processed the media segment is greater than a first threshold. The AI processor may identify a subsequence of media segments that corresponds to a media segment in the sequence positioned between the first media segment and the second media segment. The AI processor may then determine that an average of the content probabilities (e.g., the probability that the content of the media segment corresponds to a particular content type) of the subsequence of media segments is greater than a second threshold. If so, the prediction output 924 may indicate that the subsequence of media segments includes content of the particular content type. If the average of the probabilities is less than the threshold, the prediction output 924 may indicate that the subsequence of media segments does not include content of the particular content type.
[0088]
[0097] FIG. 10 illustrates a flowchart of an example process for detecting a media type of media in a media stream according to an aspect of the disclosure. At block 1004, a media stream may be received by a computing device. In some instances, the computing device may be a media device such as a display device (e.g., a television, a monitor, etc.), a set-top box (e.g., receiving cable television, satellite television, Internet-based streaming media, etc.), a desktop or laptop computer, a mobile device (e.g., a smartphone, a personal digital assistant, etc.), a radio, a server, and / or the like. In one example, the computing device may be a television, such as a smart television, that may be configured to present media to a user. The computing device may receive the media stream in real-time (as the media is being transmitted from a media source) or from a storage device (e.g., a local or remote memory, one or more databases, and / or the like). The media stream may include a video component and / or an audio component.
[0089]
[0098] At block 1008, the computing device may define a set of media segments, where each media segment may represent a portion of the media stream. The computing device may define the set of media segments by sampling the media stream. In some cases, the computing device may store a predetermined portion of the media stream in memory (e.g., a cache or other local memory, etc.) as the media stream is received by the computing device. The computing device may then sample the portion of the media stream stored in memory. In other cases, the computing device may sample the media stream in real time as the media stream is received by the computing device.
[0090]
[0099] Each media segment may represent a portion of the media stream or a component thereof within a particular time interval. For example, each media segment may represent a portion of the media stream, an audio component of a portion of the media stream, a video component of a portion of the media stream, another component of a portion of the media stream, or the like. The particular time interval may be selected based on input from a previous execution of the process of FIG. 10, from a previous execution of one or more machine learning models (described in connection with blocks 1012 and 1016), from other machine learning models, and / or the like. In some examples, the particular time interval may be 500 milliseconds of the media stream. In other examples, the particular time interval may be 8 seconds. The particular time interval may be any time interval.
[0091]
[0100] The set of media segments may represent discrete sequential portions of a media stream. In some instances, the set of media segments may represent non-overlapping portions of an entire media stream. For example, if a particular time interval is set to 500 milliseconds, a first media segment may correspond to media of the media stream from T=0 milliseconds to T=500 milliseconds, and a next media segment may correspond to media of the media stream from T=500 milliseconds to T=1000 milliseconds. The computing device may define the set of media segments such that the media segments represent an entire media stream and the media segments do not overlap.
[0092]
[0101] In other cases, the computing device may define a set of media segments such that the media segments cover a portion of the media stream. For example, a first media segment may correspond to media of the media stream from T=0 ms to T=500 ms, and a next media segment may correspond to media of the media stream from T=750 ms to T=1250 ms. The computing device may skip a portion of the media stream between each media segment. The time interval between each media segment may be predetermined based on the input, based on a previous execution of the process of FIG. 10, based on a previous execution of one or more machine learning models (described with respect to blocks 1012 and 1016), based on other machine learning models, and / or the like.
[0093]
[0102] In still other cases, the computing device may define the set of media segments such that the media segments overlap based on a step size. For example, for a particular time interval of 500 ms and a step size of 100 ms, a first media segment may correspond to media of the media stream from T=0 ms to T=500 ms, and a next media segment may correspond to media of the media stream from T=100 ms to T=600 ms. The step size may be predetermined based on the input, based on a previous execution of the process of FIG. 10, based on a previous execution of one or more machine learning models (described in connection with blocks 1012 and 1016), based on other machine learning models, and / or the like.
[0094]
[0103] The computing device may perform a transform to convert the set of media segments from the time domain to the frequency domain. For example, the computing device may perform a Fourier transform (e.g., but not limited to, a Fast Fourier Transform, or the like). Alternatively, the computing device may perform a Short-Time Fourier Transform (STFT). The STFT may be a process that outputs a set of media segments in the frequency domain. Since the STFT process may provide similar functionality, the computing device may define a set of media segments and perform the STFT process instead of converting the media segments to the frequency domain. The STFT process may receive as input a media stream (or a portion thereof) and one or more of an indication of a particular time interval, an indication as to whether the media segments overlap, an indication as to whether a time interval gap occurs between each media segment, and the like.
[0095]
[0104] At block 1012, the computing device may identify a first media segment of the set of media segments that represents a first boundary and a second media segment of the set of media segments that represents a second boundary. The computing device may derive one or more feature vectors for each media segment of the set of media segments. In some examples, the computing device may run a first machine learning model using the media segments as inputs. The first machine learning model may be, but is not limited to, a neural network, a recurrent neural network such as, but not limited to, a long-short-term memory, a concurrent neural network, a naive Bayes classifier, a support vector machine, combinations thereof (e.g., ensemble models, adversarial networks, etc.), or the like.
[0096]
[0105] The first machine learning model may output one or more two-dimensional or three-dimensional feature vectors based on the media segments. The first machine learning model may be trained using past media segments using unsupervised learning or supervised learning. When using supervised learning, each past media segment may include one or more labels (e.g., features, feature vectors, etc.). The first machine learning model may use the labels to determine which features to extract from the input media segments.
[0097]
[0106] If the feature vector output from the first machine learning model is not compatible with a subsequent processing stage (e.g., another machine learning model that may be used to generate predictions using the feature vector), the feature vector may be further converted into a form usable by the next processing stage. For example, the output of the first machine learning model may be a three-dimensional feature vector, and the next processing stage (e.g., a second machine learning model) may be configured to receive a two-dimensional feature vector. Converting the three-dimensional feature vector into a two-dimensional feature vector may include unfolding and reshaping the three-dimensional feature vector to form a two-dimensional feature vector. The three-dimensional feature vector may be unfolded by stacking features in a third dimension of the feature vector onto a second dimension of the feature vector (e.g., stacking features in the z dimension onto features in the y dimension, or the like in an x, y, z three-dimensional space). The unfolded feature vector may then be reshaped in strides of a particular length (e.g., a predetermined time interval or window value as previously described). The unfolded and reshaped feature vector may be a two-dimensional representation of the three-dimensional feature vector.
[0098]
[0107] The one or more feature vectors may be passed as input to a second machine learning model configured to predict the presence of a boundary within the media segment from which the one or more feature vectors were derived. The second machine learning model may output a probability that the input feature vector contains a boundary. If the probability is greater than a threshold (such as, but not limited to, 80%, 90%, or the like), the computing device may determine that a boundary is present in the media segment corresponding to the input feature vector. The threshold may be predetermined, learned over time (e.g., by the second machine learning model, other machine learning models, or the like), selected based on user input, and / or the like.
[0099]
[0108] The second machine learning model may be a neural network configured to process time series data, such as, but not limited to, a recurrent neural network, a deep learning neural network, a long-short-term memory network, or the like. In some instances, the second machine learning model may include other types of machine learning models, such as a naive Bayes classifier, a support vector machine, a regression-based model, a decision tree, or the like. The second machine learning model may be trained using past media segments in supervised learning or self-supervised learning. In supervised learning, each training input may include a label corresponding to an expected output. The second machine learning model adjusts the internal weights of the nodes based on the difference between the output generated by the second machine learning model and the expected output. In self-supervised learning, the training data may be unlabeled. The second machine learning model may learn by analyzing the structure (e.g., correlation, etc.) of the training data. The analysis may be fed back into the second machine learning model to adjust the internal weights of the nodes.
[0100]
[0109] In some cases, the second machine learning model may be further trained using reinforcement learning. Reinforcement learning uses the output of the machine learning model and a label or value to determine the accuracy of the output. For example, the output of the second machine learning model may be evaluated by a third machine learning model, a user input, or the like. The output and evaluation may be passed as feedback to the second machine learning model to further adjust the node weights of the second machine learning model. Reinforcement learning may occur during training of the machine learning model, during normal operation of the second machine learning model (e.g., after the second machine learning model is trained), during retraining of the second machine learning model, etc.
[0101]
[0110] The second machine learning model may be configured to detect the presence of a boundary in the media segment. The boundary may correspond to one or more frames forming a context transition in the media stream, such as, for example, a transition from a first media type (e.g., a movie, etc.) to a second media type (e.g., an advertisement, etc.) or from a second media type to a first media type. The second machine learning model may continue to process the set of media segments until the second machine learning model detects a first media segment that represents a first boundary and a second media segment that represents a second boundary. Alternatively, the second machine learning model may continue to process the media segments until there are no more media segments to process (e.g., the set of media segments is empty and / or the media stream ends).
[0102]
[0111] In some examples, other processes (e.g., in addition to or instead of the second machine learning model) and / or users may also be used to detect a first media segment that represents a first boundary and a second media segment that represents a second boundary. In those examples, the other processes may include processes that analyze video frames, audio, or components thereof to determine the presence of a boundary. For example, a boundary may be detected in detecting one or more adjacent video frames having an average pixel value that is about 0 (e.g., black), in detecting adjacent video frames having a large variation in average pixel values (e.g., a video frame having an average pixel value of about 0 adjacent to a video frame having an average pixel value greater than a threshold), in detecting combinations thereof, or the like. Audio may be similarly analyzed to detect boundaries. For example, frequency and / or amplitude analysis of the audio component of a media stream may indicate the presence of a boundary by detecting a variation in frequency and / or amplitude (e.g., volume) between adjacent time segments that is greater than a threshold.
[0103]
[0112] At block 1016, the computing device may generate, for at least one media segment of the set of media segments, a prediction corresponding to whether the at least one media segment corresponds to a particular content type. The computing device may predict a media type corresponding to a media segment of the set of media segments using one or more feature vectors derived from the media segment (e.g., the same input passed to the second machine learning model). In some examples, the second computing device may use a third machine learning model (e.g., a recurrent neural network such as, but not limited to, a neural network, a long-short-term memory, a concurrent neural network, a naive Bayes classifier, a support vector machine, etc.) configured to predict a media type of the input feature vector. The third machine learning model may be of the same or different type as the second machine learning model. The third machine learning model may output a probability that the input feature vector corresponds to a particular content type. If the probability is greater than a threshold (such as, but not limited to, 55%, 60%, 65%, or the like), the computing device may determine that the media segment corresponding to the input feature vector includes content of the particular content type. The threshold value may be predetermined, learned over time (e.g., by a third machine learning model or other machine learning models, etc.), selected based on user input, and / or the like.
[0104]
[0113] The third machine learning model may be trained using supervised learning or self-supervised learning, as previously described in connection with the second machine learning model of block 1012. In supervised learning, the third machine learning model may be trained using past media segments and labels corresponding to expected outputs (e.g., indications of media types corresponding to training inputs). In some examples, the second machine learning model and the third machine learning model may be trained using the same training data set. In those examples, when supervised learning is used, the labels corresponding to the training data sets may be different. For example, a label assigned to the second machine learning model may correspond to whether a given training input includes a boundary (or not), and a label assigned to the third machine learning model may correspond to the media type of the given training input.
[0105]
[0114] At block 1020, the computing device determines, based on the first boundary, the second boundary, and the prediction, that a subset of the set of media segments including a media segment between the first media segment and the second media segment corresponds to a particular content type. In some instances, the computing device may use an output of the third machine learning model to determine that the subset of the set of media segments corresponds to a particular content type. For example, if the third machine learning model outputs a probability greater than a threshold for each of the one or more adjacent media segments, the computing device may determine that the one or more media segments correspond to a particular content type.
[0106]
[0115] The computing device may use the output of the second machine learning model together with the output of the third machine learning model to improve the accuracy of the determination that one or more media segments correspond to a particular content type. For example, the computing device may use the second machine learning model to identify a subset of media segments of a set of media segments positioned between two boundaries (e.g., media segments between a first media segment representing a first boundary and a second media segment representing a second boundary). The computing device may then determine whether the output probability of each media segment of the subset of media segments from the third machine learning model is greater than a threshold (e.g., the threshold of the third machine learning model described in block 1016). In some instances, the computing device may use an average of the probabilities of the subset of media segments. For example, if the average of the probabilities output by the third machine learning model for the subset of media segments is greater than a threshold (such as, but not limited to, 55%, 60%, 65%, or the like), the computing device may determine that the subset of media segments corresponds to a particular content type. In other cases, the computing device may use a minimum probability, a maximum probability, a median, a mode, a range, a combination thereof, or the like. For example, the computing device may use a range and a maximum value. If the range is below a threshold (e.g., indicating low variability) and the maximum value is greater than the threshold value (or the minimum value is greater than the threshold value), it can be determined that the subset of media segments corresponds to a particular content type.
[0107]
[0116] In some cases, the computing device may use a time threshold in addition to the output from the second and third machine learning models. For example, some content types may have a limited presentation time. For example, an advertisement may be displayed for a threshold time interval of 0 to 2 minutes. The computing device verifies the indication that the subset of media segments corresponds to a particular content type by determining the time interval between the first media segment and the second media segment. If the time interval is greater than the threshold time interval, the indication may be considered a false positive. In that case, the determination by the computing device may be discarded and / or used by the third machine learning model for reinforcement learning.
[0108]
[0117] Alternatively or additionally, the computing device may use a threshold time interval when identifying the first media segment representing the first boundary and the second media segment representing the second boundary. For example, the computing device may identify the first and second media segments as media segments that are separated from each other in the media stream by no more than a threshold time interval and have a probability of indicating a boundary greater than a threshold (of block 1012). For example, the computing device may identify media segments that represent boundaries that are within a threshold time interval from each other in the media stream. If the media segments that represent boundaries are separated by more than the threshold time interval, the computing device may continue processing until such a media segment is detected.
[0109]
[0118] At block 1024, the computing device may transmit an indication that a subset of the set of media segments corresponds to a particular content type. The transmission may be addressed to a remote device, such as, but not limited to, a content database, a server, an automatic content recognition system, and / or the like. Alternatively or additionally, the transmission may be addressed to a local component of the media device, such as, but not limited to, a local non-volatile memory, a local database, a cache memory, and / or the like. In some instances, the transmission may include a subset of the media segments (e.g., a portion of the media stream that corresponds to a particular content type).
[0110]
[0119] In response to receiving the indication, media corresponding to the subset of the media segments may be identified. For example, an automatic content recognition system (and / or a manual recognition system) may be used to identify content corresponding to the subset of the media segments. The identification information may include an identifier for the content (e.g., name, title, serial number, etc.), information associated with the content (e.g., product, company, actors, production personnel, set, setting, metadata, trivia, etc.), and / or the like. The identifier (and / or information associated with the content) may be transmitted to a computing device, a media device configured to display the content and / or media stream, a database configured to store an indication that the content has been displayed, and / or the like. The transmission may include information associated with the media device that displayed or presented the content, such as demographic information, software / hardware components of the media device, user information, and / or the like.
[0111]
[0120] FIG. 11 illustrates an example computing device according to aspects of the disclosure. For example, the computing device 1100 may implement any of the systems or methods described herein. In some cases, the computing device 1100 may be a component of or included within a media device. The components of the computing device 1100 are shown in electrical communication with each other using a connection 1106, such as a bus. The example computing device architecture 1100 includes a processor (e.g., CPU, processor, or the like) 1104 and a connection 1106 (e.g., bus, or the like) configured to couple the components of the computing device 1100, such as, but not limited to, a memory 1120, a read only memory (ROM) 1118, a random access memory (RAM) 1116, and / or a storage device 1108, to a processing unit 1110.
[0112]
[0121] The computing device 1100 may include a cache 1102 of high-speed memory directly connected to, in close proximity to, or integrated within the processor 1104. The computing device 1100 may copy data from the memory 1120 and / or the storage device 1108 to the cache 1102 for faster access by the processor 1104. In this manner, the cache 1102 may provide performance improvements that avoid delays while the processor 1104 waits for data. Alternatively, the processor 1104 may access data directly from the memory 1120, the ROM 817, the RAM 1116, and / or the storage device 1108. The memory 1120 may include multiple types of homogenous or heterogeneous memory (e.g., but not limited to, magnetic, optical, solid state, etc.).
[0113]
[0122] The storage device 1108 may include one or more non-transitory computer readable media, such as volatile and / or non-volatile memory. The non-transitory computer readable media may store instructions and / or data accessible by the computing device 1100. The non-transitory computer readable media may include, but are not limited to, a magnetic cassette, a hard disk drive (HDD), a flash memory, a solid-state memory device, a digital versatile disk, a cartridge, a compact disk, a random access memory (RAM) 1125, a read-only memory (ROM) 1120, combinations thereof, or the like.
[0114]
[0123] The storage device 1108 may store one or more services, such as service 1 1110, service 2 1112, and service 3 1114, that are executable by the processor 1104 and / or other electronic hardware. The one or more services include instructions executable by the processor 1104 to perform operations, such as any of the techniques, steps, processes, blocks, and / or operations described herein, to control the operation of devices in communication with the computing device 1100, to control the operation of the processing unit 1110 and / or any dedicated processors, combinations thereof, or the like. The processor 1104 may be a system on a chip (SOC) that includes one or more cores or processors, buses, memory, clocks, memory controllers, caches, other processor components, and / or the like. Multi-core processors may be symmetric or asymmetric.
[0115]
[0124] The computing device 1100 may include one or more input devices 1122, which may represent any number of input mechanisms, such as a microphone, a touch-sensitive screen for graphical input, a keyboard, a mouse, motion input, speech, media devices, sensors, combinations thereof, or the like. The computing device 1100 may include one or more output devices 1124 that output data to a user. Such output devices 1124 may include, but are not limited to, media devices, projectors, televisions, speakers, combinations thereof, or the like. In some instances, a multimodal computing device may enable a user to provide multiple types of inputs for communicating with the computing device 1100. The communication interface 1126 may be configured to manage user inputs and computing device outputs. The communication interface 1126 may also be configured to manage communications (e.g., establish connections, receive / send communications, etc.) with remote devices through one or more communication protocols and / or through one or more communication mediums (e.g., wired, wireless, etc.).
[0116]
[0125] Computing device 1100 is not limited to the components shown in Figure 11. Computing device 1100 may include other components not shown and / or components shown may be omitted.
[0117]
[0126] The term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing, or transporting instruction(s) and / or data. Computer-readable media may include non-transitory media on which data may be stored in a form excluding carrier waves and / or electronic signals. Examples of non-transitory media may include, but are not limited to, magnetic disks or tapes, optical storage media such as compact disks (CDs) or digital versatile disks (DVDs), flash memory, memory or memory devices. A computer-readable medium may store code and / or machine-executable instructions, which may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, or the like.
[0118]
[0127] Some portions of this description describe examples in terms of algorithms and symbolic representations of operations on information. These operations, while described functionally, computationally, or logically, may be implemented by computer programs or equivalent electrical circuits, microcode, or the like. Furthermore, configurations of operations may be referred to as modules, without loss of generality. The described operations and their associated modules may be embodied in software, firmware, hardware, or any combination thereof.
[0119]
[0128] Any of the steps, operations, or processes described herein may be performed or implemented using one or more hardware or software modules, alone or in combination with other devices. In some examples, a software module may be implemented using a computer-readable medium that stores computer program code, which may be executed by a processor to perform some or all of the steps, operations, or processes described.
[0120]
[0129] Some examples may relate to an apparatus or system for performing some or all of the described steps, operations, or processes. The apparatus or system may be specially constructed for the required purposes and / or it may comprise a general-purpose computing device selectively activated or reconfigured by a computer program stored in the memory of the computing device. The memory may be or may include a non-transitory tangible computer-readable storage medium, or any type of medium suitable for storing electronic instructions, which may be coupled to a bus. Furthermore, any computing system referred to herein may include a single processor or multiple processors.
[0121]
[0130] Although the subject matter has been described in detail with respect to certain examples, it will be appreciated that those skilled in the art, upon achieving the foregoing understanding, may easily produce modifications, variations, and equivalents to such embodiments. Numerous specific details have been set forth herein to provide a thorough understanding of the claimed subject matter. However, those skilled in the art will appreciate that the claimed subject matter may be practiced without these specific details. In other instances, methods, apparatus, or systems that would be known by those skilled in the art have not been described in detail so as not to obscure the claimed subject matter. Thus, the present disclosure is presented for purposes of example and not limitation, and does not exclude the inclusion of such modifications, variations, and / or additions to the subject matter as would be readily apparent to those skilled in the art.
[0122]
[0131] For clarity of explanation, in some instances, the disclosure may be presented as including individual functional blocks, including functional blocks comprising devices, device components, method steps or routines embodied in software, or a combination of hardware and software. Additional functional blocks other than those shown in the drawings and / or described herein may be used. For example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form so as not to obscure the embodiments in unnecessary detail. In other instances, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail to avoid obscuring the embodiments.
[0123]
[0132] Each example may be described herein as a process or method, which may be depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. In addition, the order of operations may be rearranged. A process is terminated when the operations are completed, but may have additional steps that are not shown. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to a return of the function to a calling function or a main function.
[0124]
[0133] The processes and methods according to the examples described above can be implemented using computer-executable instructions stored on or otherwise available from a computer-readable medium. Such instructions can include, for example, instructions and data that cause or otherwise configure a general purpose computer, a special purpose computer, or a processing device to perform a certain function or group of functions. A portion of the computer resources used can be accessible over a network. The computer-executable instructions can be, for example, binaries, intermediate format instructions such as assembly language, firmware, source code, etc.
[0125]
[0134] Devices implementing the methods and systems described herein may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, the program code or code segments (e.g., computer program product) to perform the necessary tasks may be stored in a computer-readable or machine-readable medium. The program code may be executed by a processor, which may include one or more processors such as, but not limited to, one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated circuits or discrete logic circuits. Such processors may be configured to perform any of the techniques described in this disclosure. The processor may be a microprocessor, a conventional processor, a controller, a microcontroller, a state machine, or the like. A processor may also be implemented as a combination of computing components (e.g., a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration). Thus, the term "processor," as used herein, may refer to any of the aforementioned structures, any combination of the aforementioned structures, or any other structure or apparatus suitable for implementing the techniques described herein. The functionality described herein may also be embodied in a peripheral device or an add-in card. Such functionality may also be implemented on a circuit board among different chips or different processes executing in a single device, as further examples.
[0126]
[0135] The following examples illustrate various aspects of the present disclosure. As used hereinafter, any reference to a series of examples should be understood as a reference to each of those examples disjunctively (e.g., "Examples 1-4" should be understood as "Examples 1, 2, 3, or 4").
[0127]
[0136] Example 1: A method comprising: receiving a media stream; defining from the media stream a set of media segments, where each media segment represents a portion of the media stream; identifying a first media segment of the set of media segments representing a first boundary and a second media segment of the set of media segments representing a second boundary; generating, for at least one media segment of the set of media segments, a prediction corresponding to whether the at least one media segment corresponds to a particular content type; determining based on the first boundary, the second boundary, and the prediction, that a subset of the set of media segments including a media segment between the first media segment and the second media segment corresponds to the particular content type; and facilitating a transmission including an indication that the subset of the set of media segments corresponds to the particular content type.
[0128]
[0137] Example 2: The method of example(s) 1, wherein identifying the first media segment representing the first boundary and the second media segment representing the second boundary is performed by a machine learning model.
[0129]
[0138] Example 3: The method of example (s) 1 or 2, wherein identifying a first media segment representing a first boundary and a second media segment representing a second boundary includes generating a set of feature vectors from the set of media segments using a convolutional neural network, the set of feature vectors being usable to identify the first boundary and the second boundary.
[0130]
[0139] Example 4: The method of any one of Examples 1 to 3, wherein at least one feature vector of the set of feature vectors is reshaped into a two-dimensional representation of features of the at least one feature vector.
[0131]
[0140] Example 5: The method of any one of Examples 1 to 4, wherein generating the prediction comprises running a recurrent neural network using at least one media segment of the set of media segments.
[0132]
[0141] Example 6: The method of any one of Examples 1 to 5, wherein defining the set of media segments includes generating spectrograms from the media segments, and the set of media segments is defined from the spectrograms.
[0133]
[0142] Example 7: The method according to any one of examples 1 to 6, wherein a media segment of the set of media segments corresponds to an audio component of a media stream.
[0134]
[0143] Example 8: The method of any one of Examples 1 to 7, further comprising determining an identity of content of a subset of the set of media segments.
[0135]
[0144] Example 9: The method of any one of Examples 1 to 8, wherein identifying the first media segment representing the first boundary and the second media segment representing the second boundary is performed by a recurrent neural network.
[0136]
[0145] Example 10: A system comprising one or more processors and a machine-readable storage medium storing instructions that, when executed by the one or more processors, cause the one or more processors to perform an operation described in any one of examples 1-9.
[0137]
[0146] Example 11: A machine-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to perform the operations described in any one of example(s) 1-9.
[0138]
[0147] In the foregoing description, aspects of the disclosure have been described with reference to specific examples thereof, but those skilled in the art will recognize that the disclosure is not limited thereto. Thus, while illustrative examples of the disclosure have been described in detail herein, it should be understood that the inventive concept may be embodied and used in various other ways, and the appended claims are intended to be construed to include such variations. The various features and aspects of the disclosure described above may be used individually or in any combination. Moreover, the examples may be utilized in any number of environments and applications other than those described herein without departing from the broader spirit and scope of the disclosure. The disclosure and drawings are therefore to be considered illustrative and not restrictive.
[0139]
[0148] The various exemplary logic blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, firmware, or a combination thereof. To clearly illustrate this interchangeability of hardware and software, the various exemplary components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in various ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
[0140]
[0149] Unless otherwise indicated, it is recognized that throughout this specification, discussions utilizing terms such as "processing," "calculating," "computing," "determining," and "identifying" or similar terms refer to the actions or processes of a computing device, such as one or more computers or one or more similar electronic computing devices, that manipulate or transform data represented as physical electronic or magnetic quantities in the memory, registers, or other information storage devices, transmission devices, or media devices of a computing platform. The use of "adapted to" or "configured to" herein is intended as open and inclusive language that does not exclude devices adapted or configured to perform additional tasks or steps. Additionally, the use of "based on" is intended to be open and inclusive in that a process, step, calculation, or other action that is "based on" one or more enumerated conditions or values may in fact be based on additional conditions or values other than the enumerated conditions or values. The headings, lists, and numbering contained herein are for ease of explanation only and are not intended to be limiting.
[0141]
[0150] The foregoing detailed description of the present technology has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the present technology to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The described embodiment was chosen to best explain the principles of the present technology, its practical application, and to enable those skilled in the art to utilize the present technology in various embodiments and with various modifications suitable for the particular use contemplated. It is intended that the scope of the present technology be defined by the claims(s).
Claims
1. 1. A method comprising: Receiving a media stream; defining a set of media segments from said media stream, each media segment representing a portion of said media stream; identifying a first media segment of the set of media segments that represents a first boundary and a second media segment of the set of media segments that represents a second boundary; generating, for at least one media segment of the set of media segments, a prediction corresponding to whether the at least one media segment corresponds to a particular content type; determining, based on the first boundary, the second boundary, and the prediction, that a subset of the set of media segments, including a media segment between the first media segment and the second media segment, corresponds to the particular content type; facilitating a transmission including an indication that the subset of the set of media segments corresponds to the particular content type; A method comprising:
2. The method of claim 1 , wherein identifying the first media segment representing a first boundary and the second media segment representing a second boundary is performed by a machine learning model.
3. The method of claim 2 , wherein the machine learning model is a recurrent neural network.
4. Identifying the first media segment representing a first boundary and the second media segment representing a second boundary comprises:
2. The method of claim 1 , comprising generating a set of feature vectors from the set of media segments using a convolutional neural network, the set of feature vectors usable to identify the first boundary and the second boundary.
5. The method of claim 4 , wherein at least one feature vector of the set of feature vectors is reshaped into a two-dimensional representation of features of the at least one feature vector.
6. Defining the set of media segments comprises: The method of claim 1 , further comprising generating a spectrogram from the media segments, the set of media segments being defined from the spectrogram.
7. determining an identity of the content of the subset of the set of media segments; The method of claim 1 further comprising:
8. 1. A system comprising: one or more processors; A machine-readable storage medium storing instructions; the instructions, when executed by the one or more processors, cause the one or more processors to: Receiving a media stream; defining a set of media segments from said media stream, each media segment representing a portion of said media stream; identifying a first media segment of the set of media segments that represents a first boundary and a second media segment of the set of media segments that represents a second boundary; generating, for at least one media segment of the set of media segments, a prediction corresponding to whether the at least one media segment corresponds to a particular content type; determining, based on the first boundary, the second boundary, and the prediction, that a subset of the set of media segments, including a media segment between the first media segment and the second media segment, corresponds to the particular content type; facilitating a transmission including an indication that the subset of the set of media segments corresponds to the particular content type; A system that causes a system to perform an operation including:
9. 10. The system of claim 8, wherein identifying the first media segment representing a first boundary and the second media segment representing a second boundary is performed by a machine learning model.
10. The method of claim 9 , wherein the machine learning model is a recurrent neural network.
11. Identifying the first media segment representing a first boundary and the second media segment representing a second boundary comprises:
10. The system of claim 8, further comprising generating a set of feature vectors from the set of media segments using a convolutional neural network, the set of feature vectors usable to identify the first boundary and the second boundary.
12. The system of claim 11 , wherein at least one feature vector of the set of feature vectors is reshaped into a two-dimensional representation of features of the at least one feature vector.
13. Defining the set of media segments comprises: The system of claim 8 , further comprising generating a spectrogram from the media segments, the set of media segments being defined from the spectrogram.
14. The operation includes: The system of claim 8 , further comprising determining an identity of content of the subset of the set of media segments.
15. 1. A machine-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to: Receiving a media stream; defining a set of media segments from said media stream, each media segment representing a portion of said media stream; identifying a first media segment of the set of media segments that represents a first boundary and a second media segment of the set of media segments that represents a second boundary; generating, for at least one media segment of the set of media segments, a prediction corresponding to whether the at least one media segment corresponds to a particular content type; determining, based on the first boundary, the second boundary, and the prediction, that a subset of the set of media segments, including a media segment between the first media segment and the second media segment, corresponds to the particular content type; facilitating a transmission including an indication that the subset of the set of media segments corresponds to the particular content type; A machine-readable storage medium for causing the computer to perform operations including:
16. 20. The machine-readable storage medium of claim 15, wherein identifying the first media segment representing a first boundary and the second media segment representing a second boundary is performed by a machine learning model.
17. The method of claim 16 , wherein the machine learning model is a recurrent neural network.
18. Identifying the first media segment representing a first boundary and the second media segment representing a second boundary comprises:
16. The machine-readable storage medium of claim 15, further comprising generating a set of feature vectors from the set of media segments using a convolutional neural network, the set of feature vectors usable to identify the first boundary and the second boundary.
19. Defining the set of media segments comprises: The machine-readable storage medium of claim 15 further comprising generating a spectrogram from the media segments, the set of media segments being defined from the spectrogram.
20. The operation includes: determining an identity of the content of the subset of the set of media segments; 20. The machine-readable storage medium of claim 15, further comprising:
Citation Information
Patent Citations
Recording / reproducing device, reproducing device, and method and program for adjusting volume automatically
JP2007053510A
Apparatus and method for analyzing a content stream containing content items
JP2008527940A
Video analysis apparatus and program
JP2010130563A
Scene variation point model learning device, scene variation point detection device and programs thereof
JP2018120362A
Systems and methods for semantically classifying shots in video
US20090208106A1
