Automated video and audio annotation techniques

Automatic migration of commentary by calculating the similarity value between video frames and image frames solves the problem of low video data labeling efficiency, generates high-quality training data sets, improves the performance and training speed of machine learning models, and reduces costs.

CN118661202APending Publication Date: 2024-09-17GOOGLE LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202280090863.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-04
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The existing technology has problems of low data labeling efficiency and high cost in generating descriptive narration for video data. In particular, due to unclear event changes in the video, large viewpoint variability, low image quality, and different framing, the training system Scalability and availability are limited.

Method used

By using the captions of visually similar images, the computing system extracts feature vectors from the image captions addition database, calculates the similarity value between video frames and image frames, automatically migrates the captions to video frames, generates video clips and stores them In the database, manual intervention is reduced and data labeling efficiency is improved.

Benefits of technology

It achieves fast and accurate automatic labeling of large amounts of video and audio data, generates high-quality training data sets, reduces the demand for computing resources, improves the performance and training speed of machine learning models, and reduces storage and processing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118661202A
    Figure CN118661202A
Patent Text Reader

Abstract

Techniques for improving performance of video retrieval systems and audio retrieval systems are described herein. A computing system may obtain a commentated image having an associated commentator and a first video having a plurality of frames. In addition, the system may determine a feature vector of the commentated image and a feature vector of a first frame of the plurality of frames. Further, the system may calculate a similarity value between the commentated image and the first frame based on the feature vector of the commentated image and the feature vector of the first frame. Further, the system may migrate the associated commentary to the first frame based on the similarity value. The system may then generate a video segment based on the first frame. The system may also store the video segments in a video commentary addition database and index the video segments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to techniques for training machine learning models for annotating video data. More specifically, the present disclosure relates to systems and methods for generating descriptions of video frames by leveraging captions of visually similar images. Background Art

[0002] Providing descriptive captions for events in a video can be difficult, in part due to a lack of appropriate data for training such systems. In addition, labeling events in a video can require a lot of time, effort, and / or computational expenditure. For a number of reasons, labeling events in a video is often much more difficult than labeling images. First, it is unclear when a video changes from one event to another, so viewing many frames of the same event may be redundant. In addition, viewpoint variability may be greater in a video, image quality may be lower, and framing may be different than in a static photographic image, so more data is often required to identify events in a video. Partly due to these challenges in labeling videos, the cost of training a system to provide descriptive captions for events in a video may be too high. Therefore, in order to improve scalability and usability, it is necessary to improve the efficiency of data labeling, thereby improving the training of machine learning models and systems. Summary of the invention

[0003] Aspects and advantages of embodiments of the present disclosure will be set forth in part in the following description, or may be learned from the description, or may be learned through practice of the embodiments.

[0004] An example aspect of the present disclosure relates to a computer-implemented method for improving a retrieval system. The method may include obtaining, by a computing system, an image with a caption. The image with the caption may have an image and associated captions. In addition, the method may include obtaining, by a computing system, a first video from a set of videos. The first video may have multiple frames. In addition, the method may include determining, by a computing system, a feature vector of the image with the caption. In addition, the method may include determining, by a computing system, a feature vector of a first frame among multiple frames of the first video. The method may also include calculating, by the computing system, a similarity value between the image with the caption and the first frame based on the feature vector of the image with the caption and the feature vector of the first frame. Subsequently, the method may include migrating, by the computing system, the associated caption to the first frame based on the similarity value.

[0005] Another example aspect of the present disclosure relates to a computer-implemented method for improving a retrieval system. The method may include obtaining, by a computing system, a narrated image having associated narration. Additionally, the method may include obtaining, by a computing system, a first video having a plurality of frames. Additionally, the method may include determining, by a computing system, a feature vector of the narrated image. Additionally, the method may include determining, by a computing system, a feature vector of a first frame of a plurality of frames of the first video. Subsequently, the method may include calculating, by the computing system, a similarity value between the narrated image and the first frame based on the feature vector of the narrated image and the feature vector of the first frame. The method may also include marking, by the computing system, the first frame with associated narration that is similar to the associated narration of the narrated image based on the similarity value.

[0006] Another example aspect of the present disclosure relates to a computing system having one or more processors and one or more non-transitory computer-readable media that collectively store a machine learning model, a video captioning database, and instructions that, when executed by the one or more processors, cause the computing system to perform operations. The operations may include obtaining a captioned image with associated captions from an image captioning database. In addition, the operations may include obtaining a first video, the first video having a plurality of frames. In addition, the operations may include determining a feature vector of the captioned image. In addition, the operations may include determining a feature vector of a first frame of a plurality of frames of the first video. Subsequently, the operations may include calculating a similarity value between the captioned image and the first frame based on the feature vector of the captioned image and the feature vector of the first frame. The operations may also include marking the first frame with associated captions that are similar to the associated captions of the captioned image based on the similarity value.

[0007] Another example aspect of the present disclosure relates to one or more non-transitory computer-readable media that collectively store machine learning models. The operation may include obtaining a narrated image with associated narration from an image narration addition database. In addition, the operation may include obtaining a first video, the first video having a plurality of frames. Furthermore, the operation may include determining a feature vector of the narrated image. Furthermore, the operation may include determining a feature vector of a first frame among a plurality of frames of the first video. Subsequently, the operation may include calculating a similarity value between the narrated image and the first frame based on the feature vector of the narrated image and the feature vector of the first frame. The operation may also include marking the first frame with associated narration that is similar to the associated narration of the narrated image based on the similarity value.

[0008] In some cases, the method may include generating a video segment of the first video based on the first frame. In addition, the method may include storing the video segment in a video commentary addition database, the video segment being associated with the marked commentary. In addition, the method may include receiving user input from a user device. The user input may indicate a video request associated with the marked commentary. In addition, the method may include presenting the video segment on a user interface of the user device in response to receiving the user input.

[0009] In some cases, the method may include determining a matching threshold based on a number of video segments associated with the marked caption stored in the video caption addition dataset. When the similarity value exceeds the matching threshold, the first frame may be marked with the marked caption.

[0010] In some cases, the similarity value can be calculated by determining the L2 distance between the feature vector of the first frame and the feature vector of the image with the caption. In addition, an artificial neural network trained on image classification can be used to calculate the similarity value. In addition, the dot product similarity technique can be used to calculate the similarity value.

[0011] In some cases, the method may include determining, by the computing system, a feature vector of a second frame of the plurality of frames of the first video. Additionally, the method may include calculating, by the computing system, a second similarity value between the image with the narration and the second frame based on a comparison between the feature vector of the image with the narration and the feature vector of the second frame. Additionally, the method may include marking, by the computing system, the second frame with the marked narration when the second similarity value exceeds a matching threshold. Additionally, the feature vector of the second frame may be further determined based on the feature vector of the first frame.

[0012] In some cases, the plurality of frames of the first video may be generated based on a first video frame rate, and the method may further include selecting the second frame based on a reduced video frame rate, the reduced video frame rate being less than the first video frame rate.

[0013] In some cases, the first frame may include a first timestamp and the second frame may include a second timestamp. The method may also include determining a time span based on the first timestamp and the second timestamp. Additionally, the method may include generating a video segment of the first video, wherein the first video is shortened based on the time span to generate the video segment. Additionally, the method may include marking the video segment with the marked commentary.

[0014] In some cases, the method may include accessing a lookup table based on the associated narration, the lookup table having a plurality of narrations associated with the associated narration. Additionally, the method may include using the lookup table to mark the first frame with a new narration from the plurality of narrations.

[0015] In some cases, the method may include determining that a third frame of the first video does not have a narration. In addition, the method may include generating a new video based on the first video, wherein the third frame is deleted from the first video to generate the new video.

[0016] In some cases, the method may include generating, by the computing system, an audio file of the first video based on the first frame, the audio file being associated with the marked narration. Additionally, the method may include receiving user input from a user device indicating an audio request associated with the marked narration. Furthermore, the method may include outputting the audio file on a speaker of the user device in response to receiving the user input.

[0017] In some cases, the method may include obtaining, by a computing system, a set of images from an image caption adding dataset, the set of images having images with captions. Additionally, the method may include obtaining, by a computing system, a set of videos from a video repository (e.g., a public domain). The set of videos has a first video. Each video in the set of videos has a plurality of frames.

[0018] In some cases, the method may include selecting, by the computing system, a second video from the set of videos. Additionally, the method may include extracting, by the computing system, a feature vector of a new frame of the second video. Additionally, the method may include calculating, by the computing system, a new similarity value between the narrated image and the new frame based on the feature vector of the narrated image and the feature vector of the new frame. Additionally, the method may include tagging, by the computing system, the new frame with associated captions that are similar to the associated captions of the narrated image based on the new similarity value.

[0019] In another example aspect, a system is provided that includes one or more processors and a memory storing computer-readable instructions that, when executed by the one or more processors, cause the system to perform computer-implemented methods and / or method aspects, modifications thereof, combinations thereof, and / or operations as described herein.

[0020] In another example aspect, a computer program product is provided that includes computer-readable instructions that, when executed by a computing device, cause the computing device to perform a computer-implemented method and / or method aspects, modifications thereof, combinations thereof, and / or operations as any of those described herein.

[0021] Other aspects of the disclosure relate to various systems, apparatuses, non-transitory computer-readable media, user interfaces, and electronic devices.

[0022] These and other features, aspects and advantages of various embodiments of the present disclosure will be better understood with reference to the following description and appended claims.The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate example embodiments of the present disclosure and, together with the description, serve to explain the relevant principles. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] A detailed discussion of the embodiments for those skilled in the art is set forth in this specification with reference to the accompanying drawings, in which:

[0024] Figure 1A A block diagram of an example computing system is depicted according to an example embodiment of the present disclosure.

[0025] Figure 1B A block diagram of an example computing device is depicted according to an example embodiment of the present disclosure.

[0026] Figure 1C A block diagram of an example computing device is depicted according to an example embodiment of the present disclosure.

[0027] Figure 2 is a block diagram of an annotation system according to an example embodiment of the present disclosure.

[0028] Figure 3A An illustration of an example of automatically mining audio-video segments and labeling the segments with transcripts according to an example embodiment of the present disclosure is depicted.

[0029] Figure 3B An illustration of another example of automatically mining audio-video segments and tagging the segments with transcripts is depicted in accordance with an example embodiment of the present disclosure.

[0030] Figure 3C Depicted is a diagram of example results of using an annotation system to add narration to a video clip according to an example embodiment of the present disclosure.

[0031] Figure 4 Depicted is a flow chart of an example method for tagging a video using an annotation system according to an example embodiment of the present disclosure.

[0032] Figure 5 Depicted is a flow chart of an example method for generating and presenting video clips according to an example embodiment of the present disclosure.

[0033] Figure 6 Depicted is a flow chart of an example method for generating and labeling video clips according to an example embodiment of the present disclosure.

[0034] Reference numerals repeated among the various figures are intended to identify like features in the various implementations. DETAILED DESCRIPTION

[0035] A major challenge for text-video and text-audio retrieval is the lack of large-scale, high-quality training data. In contrast, training datasets for image captioning have about millions of samples. The technology described in this article uses an annotation system to increase the amount of high-quality training data for video data by automatically migrating captions from image captioning datasets to video clips without human intervention. The annotation system, which may include a video mining pipeline, can create a new large-scale audio-video captioning dataset consisting of millions of paired clips and captions. In addition, empirical evidence shows that training a two-stream text-video model on this newly created dataset can achieve competitive performance in video retrieval and video captioning, thereby matching and surpassing other video captioning training datasets. In addition, the mined segments are also suitable for text-audio pre-training and achieve state-of-the-art results for audio retrieval tasks.

[0036] One of the key aspects of AI may be the ability to effortlessly connect the visual and auditory world to natural language concepts. Bridging the gap between human perception (e.g., vision, hearing, and touch) and communication (e.g., language) is becoming an increasingly important goal for artificial agents, enabling tasks such as text-to-visual retrieval, image and video captioning, and visual question answering. In the image domain in particular, this need has led to a rapid growth in large-scale image datasets with natural language descriptions.

[0037] However, in the field of video and audio, there has been a focus on modeling in terms of developing new architectures or new training targets. There has been a lack of attention to generating basic data for training and evaluating models. In addition, manually annotating videos with clear and diverse narrations is usually subjective, laborious and expensive. Therefore, most current video narrations add data sets of small size (e.g., on the order of about 100,000). In addition, audio narrations can add data sets even smaller. In order to improve the performance of machine learning models, the amount of training data used to train models should reach millions of data samples, and the computational cost of generating these data samples using conventional systems may be too high. In addition, as mentioned above, conventional systems may require manual input to annotate videos or view automatically generated annotations. The technology described herein allows large amounts of data (e.g., video, audio) to be automatically labeled quickly and accurately without manual input for labeling.

[0038] Conventional systems for creating video transcripts and adding training data may include using automatic speech recognition (ASR) in instructional videos. However, the drawbacks of using ASR are well known, including: (i) noise in imperfect ASR transcriptions; (ii) continuous narration may consist of incomplete or grammatically incorrect sentences; (iii) the field is usually limited to instructional videos to increase the relevance between speech and video content; and (iv) ASR may not be temporally aligned with the video or may not reference the video at all.

[0039] In contrast, image annotation is computationally cheaper than video. In addition, large-scale image-text pre-trained models are available online. Leveraging text-image models can be very valuable, especially when the annotation system leverages some of the benefits of video.

[0040] According to some embodiments, the annotation system can utilize a video mining method based on cross-modal transfer. In some cases, the annotation system can use the images in the image captions to add the images in the dataset as seeds to find similar video clips in the video online, such as FIG. 3A to FIG. 3C As shown. The annotation system can then transfer the image captions directly to the video clips that are determined to be similar, thereby generating a video training dataset and an audio training dataset in a supervised learning process. For example, the manually generated captions for the images can be used in other modalities (e.g., video, audio). For illustration, the caption "person throws a pitch during a game against university" in the image caption addition dataset may be written for a single and / or static image, but the caption may also describe the action that will occur in the video. Similarly, the caption "a person singing a song" may also infer a potential audio track.

[0041] The annotation system can generate dataset samples fully automatically without any manual input. In addition, the dataset samples can be more diverse than conventional dataset samples because they consist of well-formed captions containing at least one frame aligned with the text caption.

[0042] The annotation system provides a new scalable video mining pipeline that migrates captioning supervision from image datasets to video and audio. In addition, the video mining pipeline can curate new video-text datasets by using any available image captioning dataset as a seed dataset. The video-text dataset can consist of millions of pairs of video clips and text captions. In addition, for video retrieval and captioning, models trained on video-text datasets perform comparable to or better than models pre-trained on ASR-generated datasets, where the number of clips is reduced to 1 / 20 and the number of text sentences is reduced to 1 / 100. Specifically, the video-text database shows a huge performance improvement in the zero-shot setting. In addition, the video mining pipeline is able to mine some weakly matched audio captioning data without any manual audio supervision, and pre-training on this data achieves state-of-the-art results on text-audio retrieval benchmarks.

[0043] The annotation system can use cross-modal supervision to label video data. In some cases, the annotation system can use the labeled data in one modality (e.g., image) to assist learning in another modality (e.g., video, audio). Example techniques for cross-modal migration may include, but are not limited to, knowledge distillation, multimodal regularization, and mining new data and assigning labels based on similarity values. Cross-modal supervision can be particularly useful when there are a large number of labeled datasets in one modality (e.g., text-image retrieval) but it is more challenging to obtain these datasets for similar tasks in another modality (e.g., text-audio retrieval, text-video retrieval).

[0044] Examples of embodiments and implementations of the systems and methods of the present disclosure are discussed in the following sections.

[0045] Technical improvements

[0046] The techniques described in this article improve the performance of machine learning models, improve the training of machine learning models, and improve the accuracy, quality, and quantity of datasets used to train machine learning models.

[0047] For example, by leveraging existing image datasets to mine video and audio data with captions, better video captioning datasets and audio captioning datasets are generated. The datasets can consist of millions of labeled video-text pairs and audio-text pairs. The mining pipeline is scalable and can be applied to any image captioning dataset. Training on the dataset also provides good performance for video and audio retrieval and video captioning.

[0048] The caption-added dataset includes technical improvements to conventional datasets (e.g., ASR-based annotations), such as improved diversity, improved alignment, better caption quality, and more caption numbers. For example, the video caption-added dataset is more diverse and more balanced because the videos are mined online from a general corpus of videos. For example, currently available conventional datasets are typically limited to instructional videos, such as cooking videos. In addition, the video caption-added dataset has better alignment because they are created by mining frames with a high visual similarity to the seed image with the caption. Given that the seed image includes the associated caption, this ensures that at least one frame in the mined video segment is aligned with the caption. This is a more stringent constraint than the ASR-based dataset, which has problems and is known for occasional misalignment between speech and visual frames. In addition, the video caption-added dataset is of high quality and can have multiple captions. The quality of the captions is migrated directly from the seed dataset. Therefore, unlike the sentence distribution obtained from ASR, most of the captions in the video caption-added dataset are complete and grammatically correct sentences. Multiple pairs from the same set of captions and video clips also help ensure that the learned video and text representations are not over-specialized to individual samples, which can be a problem with existing datasets.

[0049] The techniques herein reduce memory storage by storing only short video clips with associated narration instead of full-length videos (e.g., movies). In addition, these techniques reduce computer processing by training machine learning models and using machine learning models on video clips with associated narration instead of full-length videos. In addition, conventional video annotation systems may typically have a large computational workload, which may have adverse environmental impacts, such as higher computing resource energy consumption. Therefore, the techniques described herein can reduce energy consumption due to the reduction in computing resources required to train machine learning models and use machine learning models. In addition, by generating and publishing datasets that are an order of magnitude smaller than conventional datasets while providing better zero-shot generalization, faster and cheaper language-video model innovation can be achieved.

[0050] In terms of training time, the system can reduce the time to train machine learning models. In addition, reducing training time allows the system to train larger models in a production environment. The system can reduce training time because the data set can be more accurate and of better quality. In addition, the system can significantly reduce the running time of deep convolutional or self-attention models, for example, by using better data sets. In terms of memory footprint, the system can also improve the memory footprint of model training because the system is using more accurate and better quality data sets.

[0051] Example Apparatus and Systems

[0052] Referring now to the drawings, example embodiments of the present disclosure will be discussed in further detail.

[0053] Figure 1A A block diagram of an example computing system 100 for generating a data set and training a machine learning model according to an example embodiment of the present disclosure is depicted. The system 100 includes a user computing device 102, a server computing system 130, and a training computing system 150 communicatively coupled via a network 180.

[0054] The user computing device 102 can be any type of computing device, such as, for example, a personal computing device (e.g., a laptop or desktop), a mobile computing device (e.g., a smartphone or tablet), a game console or controller, a wearable computing device, an embedded computing device, or any other type of computing device.

[0055] The user computing device 102 includes one or more processors 112 and a memory 114. The one or more processors 112 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and may be one processor or a plurality of processors operatively connected. The memory 114 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 114 may store data 116 and instructions 118 executed by the processor 112 to cause the user computing device 102 to perform operations.

[0056] In some implementations, the user computing device 102 may store or include one or more models 120. For example, the models 120 (e.g., a video transcript addition model, a video retrieval model, an audio transcript addition model, an audio retrieval model) may be or may otherwise include various machine learning models, such as neural networks (e.g., deep neural networks) or other types of machine learning models, including nonlinear models and / or linear models. The neural network may include a feedforward neural network, a recurrent neural network (e.g., a long short-term memory recurrent neural network), a convolutional neural network, or other forms of neural networks. In other examples, the models 120 may be specific video transcript addition models, audio transcript addition models, video retrieval models, and audio retrieval models that are differentiable and have been parameterized to facilitate the application of machine learning techniques. Reference Figures 2 to 6 Example model 120 is discussed.

[0057] In some implementations, one or more models 120 may be received from a server computing system 130 via a network 180, stored in a user computing device memory 114, and then used or otherwise implemented by one or more processors 112. In some implementations, a user computing device 102 may implement multiple concurrent instances of a single model 120.

[0058] More specifically, the training computing system 150 can be used to train the model 120 with a set of training data 162 (e.g., a video text addition dataset, an audio text addition dataset) to train the parameters of the model to optimize the model. The training computing system 150 can rely on the generated video text addition dataset to improve the performance of the model 120 / 140. The training data 162 can also include the creation of a video text addition dataset and an audio text addition dataset.

[0059] Additionally or alternatively, one or more models 140 may be included in or otherwise stored and implemented by a server computing system 130 that communicates with the user computing device 102 according to a client-server relationship. For example, the models 140 may be implemented by the server computing system 134 as part of a web service (e.g., a video retrieval service, an audio retrieval service). Thus, one or more models 120 may be stored and implemented at the user computing device 102, and / or one or more models 140 may be stored and implemented at the server computing system 130.

[0060] The user computing device 102 may also include one or more user input components 122 that receive user input. For example, the user input component 122 may be a touch-sensitive component (e.g., a touch-sensitive display screen or a touchpad) that is sensitive to the touch of a user input object (e.g., a finger or a stylus). The touch-sensitive component may be used to implement a virtual keyboard. Other example user input components include a microphone, a traditional keyboard, or other devices through which a user may provide user input.

[0061] The server computing system 130 includes one or more processors 132 and a memory 134. The one or more processors 132 may be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and may be one processor or a plurality of processors operatively connected. The memory 134 may include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, magnetic disks, etc., and combinations thereof. The memory 134 may store data 136 and instructions 138 executed by the processor 132 to cause the server computing system 130 to perform operations.

[0062] In some implementations, server computing system 130 includes or is otherwise implemented by one or more server computing devices. Where server computing system 130 includes multiple server computing devices, such server computing devices may operate according to a sequential computing architecture, a parallel computing architecture, or some combination thereof.

[0063] As described above, the server computing system 130 may store or otherwise include one or more machine learning models 140. For example, the model 140 may be or may otherwise include a variety of machine learning models. Example machine learning models include neural networks or other multi-layer nonlinear models. Example neural networks include feedforward neural networks, deep neural networks, recurrent neural networks, and convolutional neural networks. Figures 2 to 6 Discuss example model 140 .

[0064] User computing device 102 and / or server computing system 130 may train models 120 and / or 140 via interaction with training computing system 150 communicatively coupled via network 180. Training computing system 150 may be separate from server computing system 130 or may be part of server computing system 130.

[0065] The training computing system 150 includes one or more processors 152 and a memory 154. The one or more processors 152 can be any suitable processing device (e.g., a processor core, a microprocessor, an ASIC, an FPGA, a controller, a microcontroller, etc.) and can be one processor or multiple processors operatively connected. The memory 154 can include one or more non-transitory computer-readable storage media, such as RAM, ROM, EEPROM, EPROM, flash memory devices, disks, etc. and combinations thereof. The memory 154 can store data 156 and instructions 158 executed by the processor 152 to cause the training computing system 150 to perform operations. In some implementations, the training computing system 150 includes one or more server computing devices or is otherwise implemented by one or more server computing devices.

[0066] The training computing system 150 may include a model trainer 160 that trains the machine learning models 120 and / or 140 stored at the user computing device 102 and / or the server computing system 130 using various training or learning techniques such as, for example, error back propagation. For example, a loss function may update one or more parameters of the model (e.g., based on the gradient of the loss function) through model back propagation. Various loss functions may be used, such as mean squared error, likelihood loss, cross entropy loss, hinge loss, and / or various other loss functions. Gradient descent techniques may be used to iteratively update parameters over multiple training iterations.

[0067] In some implementations, performing error backpropagation may include performing truncated backpropagation through time. The model trainer 160 may perform a variety of generalization techniques (eg, weight decay, dropout, etc.) to improve the generalization ability of the model being trained.

[0068] Specifically, the model trainer 160 can train the machine learning model 120 and / or 140 based on a set of training data 162. The training data 162 can include, for example, a video commentary addition dataset, an audio commentary addition dataset, and an image commentary addition dataset.

[0069] In some implementations, if the user has provided consent, the training examples may be provided by the user computing device 102. Thus, in such implementations, the model 120 provided to the user computing device 102 may be trained by the training computing system 150 on user-specific data received from the user computing device 102. In some cases, this process may be referred to as personalizing the model.

[0070] Model trainer 160 includes computer logic for providing the desired functionality. Model trainer 160 may be implemented in hardware, firmware, and / or software that controls a general purpose processor. For example, in some implementations, model trainer 160 includes a program file stored on a storage device, loaded into memory, and executed by one or more processors. In other implementations, model trainer 160 includes one or more sets of computer executable instructions stored in a tangible computer readable storage medium such as RAM, a hard disk, or an optical or magnetic medium.

[0071] The network 180 may be any type of communication network, such as a local area network (e.g., an intranet), a wide area network (e.g., the Internet), or some combination thereof, and may include any number of wired or wireless links. In general, communications over the network 180 may be performed via any type of wired and / or wireless connection using a variety of communication protocols (e.g., TCP / IP, HTTP, SMTP, FTP), encodings or formats (e.g., HTML, XML), and / or protection schemes (e.g., VPN, secure HTTP, SSL).

[0072] Figure 1AAn example computing system that can be used to implement the present disclosure is shown. Other computing systems may also be used. For example, in some implementations, the user computing device 102 may include a model trainer 160 and a training data set 162. In such implementations, the model 120 may be both trained and used locally at the user computing device 102. In some of such implementations, the user computing device 102 may implement the model trainer 160 to personalize the model 120 based on user-specific data.

[0073] Figure 1B Depicted is a block diagram of an example computing device 10 that performs in accordance with an example embodiment of the present disclosure. Computing device 10 may be a user computing device and / or a server computing device.

[0074] Computing device 10 includes multiple applications (e.g., Application 1 to Application N). Each application contains its own machine learning library and machine learning model. For example, each application may include a machine learning model. Example applications include text messaging applications, email applications, dictation applications, virtual keyboard applications, browser applications, etc.

[0075] like Figure 1B As shown, each application can communicate with multiple other components of the computing device (e.g., such as one or more sensors, a context manager, a device state component, and / or additional components). In some implementations, each application can use an API (e.g., a public API) to communicate with each device component. In some implementations, the API used by each application is specific to the application.

[0076] Figure 1C Depicted is a block diagram of an example computing device 50 performing in accordance with an example embodiment of the present disclosure. Computing device 50 may be a user computing device and / or a server computing device.

[0077] The computing device 50 includes a plurality of applications (e.g., Application 1 to Application N). Each application communicates with a central intelligence layer. Example applications include a text messaging application, an email application, a dictation application, a virtual keyboard application, a browser application, etc. In some implementations, each application can communicate with the central intelligence layer (and the models stored therein) using an API (e.g., a public API across all applications).

[0078] The central intelligence layer includes multiple machine learning models. For example, Figure 1CAs shown, a corresponding machine learning model (e.g., model) can be provided for each application and managed by the central intelligence layer. In other implementations, two or more applications can share a single machine learning model. For example, in some implementations, the central intelligence layer can provide a single model (e.g., a single model) for all applications. In some implementations, the central intelligence layer is included in the operating system of the computing device 50 or is otherwise implemented by the operating system.

[0079] The central intelligence layer may communicate with the central device data layer. The central device data layer may be a centralized data repository for the computing device 50. Figure 1C As shown, the central device data layer can communicate with multiple other components of the computing device (e.g., such as one or more sensors, context managers, device state components, and / or additional components). In some implementations, the central device data layer can communicate with each device component using an API (e.g., a private API).

[0080] The machine learning models described in this specification can be used for a variety of tasks, applications, and / or use cases.

[0081] In some implementations, the input of the machine learning model of the present disclosure may be a video caption adding model, an audio caption adding model, a video retrieval model, and / or an audio retrieval model. The machine learning model may process data to generate an output. As an example, the machine learning model may process data to generate a video clip, video data or an audio file, an encoded representation of video data, a hash of video data, and the like. As another example, the machine learning model may process data to generate a video classification output. As another example, the machine learning model may process data to generate a video data modification output (e.g., a change to video data, etc.). As another example, the machine learning model may process data to generate an encoded video data output (e.g., an encoded and / or compressed representation of video data, etc.). As another example, the machine learning model may process data to generate a prediction output.

[0082] In some implementations, the input of the machine learning model of the present disclosure may be text or natural language data. The machine learning model may process the text or natural language data to generate an output. As an example, the machine learning model may process natural language data to generate video data or audio data.

[0083] In some implementations, the input of the machine learning model of the present disclosure may be speech data. The machine learning model may process the speech data to generate an output. As an example, the machine learning model may process the speech data to generate a speech recognition output. As another example, the machine learning model may process the speech data to generate video data or audio data.

[0084] In some cases, the machine learning model may be configured to perform a task that includes encoding input data for reliable and / or efficient transmission or storage (and / or corresponding decoding). For example, the task may be an audio or video compression task. The input may include audio data, and the output may include compressed audio or video data. In another example, the input includes visual data (e.g., one or more images, audio files, or videos), the output includes compressed visual data, and the task is a visual data compression task. In another example, the task may include generating an embedding for the input data (e.g., input audio or visual data).

[0085] In some cases, the input includes visual data, and the task is a computer vision task. In some cases, the input includes pixel data of one or more images, and the task is an image processing task. For example, the image processing task may be image classification, where the output is a set of scores, each score corresponding to a different object class and representing the likelihood that one or more images depict an object belonging to an object class. The image processing task may be object detection, where the image processing output identifies one or more regions in one or more images, and for each region, identifies the likelihood that the region depicts an object of interest. As another example, the image processing task may be image segmentation, where the image processing output defines the corresponding likelihood of each category in a set of predetermined categories for each pixel in one or more images. For example, the set of categories may be foreground and background. As another example, the set of categories may be object classes. As another example, the image processing task may be depth estimation, where the image processing output defines a corresponding depth value for each pixel in one or more images. As another example, the image processing task may be motion estimation, where the network input includes multiple images, and the image processing output defines the motion of the scene depicted at the pixel between images in the network input for each pixel in one of the input images.

[0086] In some cases, the input includes audio data representing a spoken utterance, and the task is a speech recognition task. The output may include a text output, an audio output, a video output mapped to the spoken utterance. In some cases, the task includes encrypting or decrypting the input data. In some cases, the task includes a microprocessor performance task, such as branch prediction or memory address translation.

[0087] Figure 2An example environment 200 for labeling video clips to generate a data set and using the generated data set to train a machine learning model according to an example embodiment of the present disclosure is depicted. An annotation system 240 trains one or more machine learning models 235 using training data including video clips stored in a video transcript addition database 270 and audio clips stored in an audio transcript addition database 275. One or more machine learning models 235 may include Figure 1A The machine learning models 120, 140 in FIG. 1 . One or more machine learning models 235 may be maintained (e.g., stored) in the server computing system 230 or the annotation system 240. The server computing system 230 may be similar to Figure 1A The server computing system 130 in FIG. 230 may be a machine learning model 235, for example, a classifier model, a linear regression model, a logistic regression model, a support vector machine model, a neural network (e.g., a convolutional neural network, a recurrent neural network, etc.), or another suitable model. The annotation system 240, the server computing system 230, the image caption adding database 210, and the video repository 215 may communicate with each other via the network 220. The network 220 may be similar to Figure 1A Network 180 in.

[0088] An automated mining pipeline for obtaining video clips paired with narration

[0089] According to some embodiments, the annotation system 240 may include an automatic mining pipeline 250 for obtaining and generating video segments paired with the commentary data. The annotation system 240 may then use the video segments paired with the commentary data to train the text-video model and the text-audio model.

[0090] In some cases, the mining pipeline 250 may include obtaining a seed image 242 (or one or more seed images 242) from an image caption addition database 210, which includes one or more seed images 212. For each image-caption pair in the dataset, the annotation system 240 may extract (e.g., find, discover) frames in the video that are similar to the image. The annotation system 240 may then extract short video clips around the matching frames and migrate the captions to the extracted video clips.

[0091] The annotation system 240 can identify seed images in the image caption addition database 210. The process can be initiated by the mining pipeline 250 selecting one or more seed images 212 with captions from the image caption addition database 210. The images obtained from the image caption addition database 210 can be referred to as seed images (x 种子 )242.

[0092] The annotation system 240 may extract features from the obtained seed images 242. For example, the annotation system 240 may use the visual feature vector calculator 254 to calculate the visual feature vector f(x 种子 ). Since the annotation system 240 attempts to mine semantically similar images, the annotation system 240 may use a feature extractor 252 to extract features. The feature extractor 252 may use a deep machine learning model trained for image retrieval. Subsequently, the annotation system 240 extracts features from the frames x of the plurality of videos stored in the video repository 215. v Extract the same visual features f(x v ). For example, the video repository 215 may include videos that are publicly available and published online. In addition, because the visual information in the video may be strongly correlated over time, the annotation system may extract features at a reduced rate (e.g., 1 fps) relative to the original video frame rate to improve efficiency. For example, a video may have a video frame rate of 24 frames per second (fps), and the multiple frames extracted from the video may be 1 fps. By extracting frames and features at a reduced frame rate, the annotation system 240 reduces memory storage for storing video frames and also improves the processing of training by requiring fewer computing resources and reducing processing time.

[0093] The annotation system 240 can determine whether each of the one or more obtained seed images 242 is similar to a frame of a video. For example, a similarity function, value, or score (also referred to as a similarity measure or similarity metric) can be used to quantify the similarity between, for example, but not limited to, two objects, entities, items, and / or feature vectors, etc. For example, the similarity function, score, and / or value can be used to determine a real-valued function, score, and / or value that represents the similarity between the feature vector of each seed image in the commentary dataset and the feature vector of each video frame obtained from the plurality of videos. For example, the similarity value between feature vectors can be calculated by, for example, determining the L2 distance between the feature vector of the first frame and the feature vector of the first image; using an artificial neural network trained on image classification that outputs real-valued classifications, scores, or values; using a dot product similarity technique; using the Euclidean distance between vectors, etc.; and / or based on any other type of distance metric or a metric that can be used to measure, for example, but not limited to, the similarity between the feature vector of the first frame and the feature vector of the first image, etc.

[0094] In some cases, the vector calculator 254 may calculate the dot product similarity between the feature vector of each seed image in the caption dataset and the feature vector of each video frame obtained from the plurality of videos. For example, when the calculated similarity value is higher than or reaches a threshold value τ, the seed image may be paired with the video frame.

[0095] For retrieval purposes, the annotation system 240 can store the video clips with the highest similarity scores for each seed image in the video commentary addition database 270. For example, the annotation system 240 can store a certain number of video clips (e.g., the top 10 matches). In addition, the annotation system 240 can migrate the commentary from the image to a short video clip extracted at a time span t around the matched image frame and add it to the video commentary addition database 270. The determination of time t and threshold τ is further described below. Similarly, the annotation system can store audio files (e.g., audio clips) that have been tagged using the techniques described herein in the audio commentary addition database 275.

[0096] The annotation system 240 can determine the optimal value of the time span t based on the obtained video data. For example, the annotation system 240 can extract different length segments t between different time segments in seconds (e.g., 5 seconds and 30 seconds) and determine the optimal value of the time span t (e.g., 10 seconds).

[0097] According to some embodiments, the mining pipeline 250 can extract fixed-length segments of short duration. According to other embodiments, the mining pipeline 250 can use image and video models to intelligently determine the boundaries of the mined segments, which can also be used for localization. The mining pipeline 250 can also be applied to other seed image captioning datasets ( Figure 2 not shown).

[0098] In addition, the annotation system 240 can determine an optimal value for the threshold τ. For example, the annotation system 240 can experiment with different matching thresholds τ for similarities within a certain range (e.g., a range of {0.5, 0.6, 0.7, 0.8.0.9})) and determine the impact of the range on the mining statistics. In some cases, the higher the matching threshold, the stricter the similarity requirement for matching frames and commentary. Depending on the dataset, performance increases up to a certain threshold (e.g., when the threshold τ = 0.6) without reducing the size of the dataset. However, as the threshold τ increases above the optimal value, the number of matches may decrease, which results in fewer videos and segments in the dataset, and a corresponding decrease in downstream performance.

[0099] The technology described herein provides the benefit of automatic annotation using migrated commentary. The annotation system 240 can provide commentary addition supervision for difficult-to-annotate modalities. In some cases, the annotation system can automatically mine relevant frames through existing image supervision sources. For example, existing image supervision sources can include seed image commentary addition data sets and image similarity models f(·). The technology described herein can provide valuable supervision for new segments with motion, and provide free supervision for audio streams. The labeled audio samples that can be stored in the audio commentary addition database 275 can be used for pre-training text-audio models.

[0100] Text-Video Model for Annotation Systems

[0101] According to some embodiments, the annotation system 240 can use the generated video commentary addition dataset and audio commentary addition dataset to implement different text-video models to perform video retrieval and commentary addition, respectively. For retrieval, a two-stream approach (e.g., one stream is an audio-video encoder and the other stream is a text encoder for the commentary) can be used to train the model, which allows effective text-video retrieval when trained using contrastive loss. An effective two-stream approach can utilize a multimodal video encoder that also contains audio. For video commentary addition, an encoder-decoder style generation model can be used. The multimodal video encoder 255 can be used for both video retrieval and video commentary addition. The video retrieval system 260 describes a text encoder and a contrastive loss function for retrieval. The following video commentary addition system 265 describes a text decoder and a loss function for commentary addition.

[0102] The multimodal video encoder 255 can be a model based on audio-visual transformers and can be applied to both text-video and text-audio retrieval. For example, RGB frames can be extracted from each video at a fixed sampling rate, and a log-mel spectrogram can be used to represent the audio. The multimodal video encoder 255 can then extract N non-overlapping tiles from the RGB image or the audio spectrogram. The model can be composed of multiple transformer layers for each modality, each with a separate weight, and fusion is accomplished through a bottleneck token. In some cases, the multimodal video encoder 255 can use an RGB-only version, an audio-only version, and an RGB-audio fusion version depending on the input modality.

[0103] Video retrieval system

[0104] The video retrieval system 260 may include a text encoder 262. For example, the architecture of the text encoder 262 may be a language representation model, such as a Bidirectional Encoder Representation from Transformer (BERT) model. For the final text encoding, the text encoder 262 may use the special classification token (e.g., CLS) output of the final layer.

[0105] In addition, the video retrieval system 260 may include a joint embedding. For the final video encoding, the video retrieval system 260 may average the word units (e.g., CLS) from both the audio modality and the RGB modality. For example, both the text and video encodings may then be projected to a common dimension (e.g., D=256) via a single linear layer. Subsequently, the video retrieval system 260 may calculate the dot product similarity between the two projected embeddings after normalization.

[0106] In addition, the video retrieval system 260 can use a loss function to optimize and train the machine learning model. For example, the video retrieval system can use noise contrast estimation (NCE), which is a contrast loss function for self-supervised learning. The NCE loss can be used to learn a video and text embedding space in which matching text-video pairs in a batch can be considered positive examples, while all other paired combinations in the batch can be considered negative examples. The video retrieval system 260 can minimize the sum of the two losses (video to text and text to video) to optimize and train the machine learning model.

[0107] Video commentary adding system

[0108] The video subtitle addition system 265 may include a decoder 266 to generate a text subtitle. In some cases, the decoder 266 may be a standard autoregressive decoder. In addition, the video subtitle addition system 265 may adjust each predicted text token on the video features from the multimodal video encoder 255 and previously generated text tokens. For example, given the video feature C as context, in order to generate the next token y in the subtitle Y i The video caption adding system 265 can first use the lookup table and position embedding to generate the previously generated word unit Y i ={y0, ..., y i-1} is encoded to generate H i ={h0, ..., h i-1 The video caption adding system 265 can use a single transformer to transform the context C and the previously embedded word unit H i Encode. The output of the transformer is in, Subsequently, the video caption adding system 265 may use a softmax: i = The linear projection comes from Predict the next word yi, where Φ∈R ν×d is the linear projection matrix, and ν is the vocabulary size. In some cases, a special BOS (beginning of sentence) token may be used to set the first word h0, and tokens are generated until a special EOS (end of sentence) token is generated.

[0109] In addition, the video caption adding system 265 can use a loss function to optimize and train the machine learning model. For example, the video caption adding system 265 can minimize the negative log-likelihood of the true value captions that generate the loss function to optimize the machine learning model.

[0110] In general, annotation system 240 or server computing system 230 may periodically or continuously calculate updates to trainable parameters of machine learning model 235 based on video transcript addition database 270 and audio transcript addition database 275. In some implementations, the learning of trainable parameters includes an online or continuous machine learning algorithm. For example, some implementations may continuously update trainable parameters in a machine learning model without looping to train the entire model.

[0111] According to some embodiments, the annotation system 240 can mark the first frame of the video with the associated commentary (e.g., the marked commentary) similar or identical to the associated commentary of the seed image 242 based on the similarity value. In addition, the annotation system 240 can generate a video clip of the first video based on the first frame. The video clip can be located in the video commentary addition database 270. The video clip can also be associated with the marked commentary. Subsequently, the annotation system 240 can receive user input (e.g., request) from the user device 280 of the user 290. The user input can indicate a video request associated with the marked commentary. In response to the user input, the annotation system can present the video clip on the user interface of the user device 280.

[0112] Figure 3AA diagram 300 of an example of automatically mining audio-video segments and labeling the segments with captions according to an example embodiment of the present disclosure is depicted. An annotation system can obtain a captioned image 305 from an image captioning dataset 310 and use the captioned image as a seed image (e.g., a seed frame) to mine related audio-visual segments 315. For each seed image-caption pair in the dataset, the annotation system can determine a similarity score 320 with the seed image. The annotation system can select a first frame 325 from the first video and a second frame 330 from the second video, the similarity score of the first frame and the second frame being above a matching threshold 335. Subsequently, the annotation system can extract short video segments around the matching frames and migrate the captions 340 from the seed images to those segments. The video segments, now labeled with the captions 340, can be stored in a video captioning database. Figure 3A This is an example of adding supervision to the video and audio clips without commentary.

[0113] Figure 3B Illustration 350 depicts another example of mining audio-video clips and labeling the clips with commentary according to an example embodiment of the present disclosure. The annotation system can mine multiple different video clips 354 for each seed image 352, and label each of the multiple different video clips with commentary 356 associated with each frame. As shown in this example, for each seed image, the annotation system has selected three matching video clips using the automatic video mining techniques described herein. For illustrative purposes, the first two video clips are single frames, and the third video clip includes a first frame and a second frame to show the motion of the subject in the video (i.e., video clips 362, 364, 366 in the first three rows) or small camera motion (i.e., video clips 368, 370 in the last two rows). In addition, as Figure 3B As highlighted in , the annotation system can mine a diverse set of video clips, such as different pitching positions and angles (i.e., video clip 362 in the first row) and different types of statues (i.e., video clip 368 in the fourth row). In addition, the video clips in the second row also contain audio associated with the commentary. In addition, the annotation system can use machine learning techniques to crop and resize frames for easier visualization.

[0114] Figure 3C An example result of adding a narration to a video segment using an annotation system is depicted in diagram 375 according to an example embodiment of the present disclosure. In some cases, the accuracy and quality of the results of labeling the video segment by the annotation system are tested. Figure 3CAs shown, the zero-shot captioning results for a set of test videos using annotation system labels 390 from an annotation system are closer to the true value 380 than the conventional labels 385 from a conventional system. Diagram 375 shows two frames of each video clip obtained from the video. As shown, the style of the captions predicted by the model pre-trained by the annotation system is closer to the true value than the model pre-trained using conventional methods (i.e., ASR).

[0115] Example Method

[0116] Figure 4 A flowchart of an example method 400 for labeling or annotating audio samples / videos of a training dataset for use by an annotation system to train a machine learning model according to an example embodiment of the present disclosure is depicted. The method 400 may be implemented by one or more computing devices, such as Figures 1A to 1C and / or Figure 2 , or one or more computing devices depicted in (e.g., annotation system 240, server computing system 130, computing device 10, and / or computing device 50). In addition, Figure 4 The steps performed in a particular order are depicted for purposes of illustration and discussion. Each respective portion of method 400 may be performed by any one (or any combination) of one or more computing devices. One of ordinary skill in the art, using the disclosure provided herein, will appreciate that the steps of any method discussed herein may be adjusted, rearranged, expanded, omitted, or modified in various ways without departing from the scope of the present disclosure.

[0117] Figure 4 Elements performed in a specific order are depicted for purposes of illustration and discussion. One of ordinary skill in the art will appreciate, using the disclosure provided herein, that the elements of any method discussed herein may be adjusted, rearranged, expanded, omitted, combined or modified in various ways without departing from the scope of the present disclosure. Figure 4 The elements / terms described with reference to other systems and figures are described for illustrative purposes and are not intended to be limiting. Additionally or alternatively, one or more portions of the method 400 may be performed by other systems.

[0118] At 402, the annotation system 240 can obtain a narrated image having an associated narration. The narrated image can be obtained from the image narration addition database 210. In addition, the annotation system 240 can obtain a plurality of images, wherein each image in the plurality of images has an associated narration. The narrated image can be Figure 2 The seed image 242 in FIG.

[0119] In some cases, the label can be a type of caption. For example, the caption can be a text label describing the image with the caption. In addition, the caption can be a data type other than text, such as but not limited to audio, web link, reference number, etc.

[0120] At 404, the annotation system 240 can obtain a first video. The first video can have a plurality of frames. The first video can be obtained from the video repository 215. In addition, the annotation system 240 can obtain a plurality of videos from the video repository 215 to try to match the image with the narration obtained at 402. In some cases, the original video stored in the video repository can have a first video frame rate (e.g., 24fps), but the first video obtained by the annotation system 240 at 404 can have a lower video frame rate (e.g., 1fps). Therefore, the plurality of frames of the first video will be less than the plurality of frames of the original video. By processing fewer frames at method 400, the techniques described herein allow faster computation time, less utilization of processing resources, and less utilization of memory compared to conventional systems.

[0121] At 406, the annotation system 240 can determine a feature vector for the captioned image. For example, the feature extractor 252 can use Figure 2 The techniques described in can be used to extract features of the captioned image. For example, the vector calculator 254 or the mining pipeline 250 can use Figure 2 The feature vector determined at 406 is calculated using the techniques described in .

[0122] At 408, the annotation system 240 can determine a feature vector for a first frame of the plurality of frames of the first video. For example, the feature extractor 252 can use Figure 2 The features of the first frame can be extracted by the techniques described in . For example, the vector calculator 254 or the mining pipeline 250 can use Figure 2 The feature vector determined at 408 is calculated using the techniques described in .

[0123] At 410, the annotation system 240 can calculate a similarity value between the image with the caption and the first frame based on the feature vector of the image with the caption and the feature vector of the first frame. Figure 2 The similarity values ​​are calculated using the technique described in .

[0124] In some cases, the similarity value may be calculated by determining the L2 distance between the feature vector of the first frame and the feature vector of the captioned image.

[0125] In some cases, similarity values ​​can be calculated using artificial neural networks trained on image classification.

[0126] In some cases, a dot product similarity technique may be used to calculate similarity values.

[0127] At 412, the annotation system 240 can mark the first frame with associated captions similar to the associated captions of the narrated image based on the similarity value. For example, the annotation system 240 can migrate the associated captions to the first frame based on the similarity value. Additionally, the associated captions can be migrated to the first frame after it has been determined that the similarity value exceeds (e.g., exceeds) a matching threshold.

[0128] In some cases, when the similarity value exceeds the matching threshold, the associated commentary can be directly transferred to the first frame. In other cases, the commentary related to the associated commentary can be transferred to the first frame. For example, the related commentary can be a word related to the associated commentary but not the same, such as a synonym.

[0129] In some cases, only some of the associated tags may be directly migrated to the first frame, while other associated tags are not migrated. Migrating the associated tags to the first frame may be determined based on the similarity value and the matching threshold.

[0130] In some cases, the annotation system 240 may mark multiple frames of the first video with marked captions similar to the associated captions of the narrated image based on the similarity values. In some cases, the annotation system 240 may mark multiple frames of multiple videos with marked captions similar to the associated captions of the multiple images based on the similarity values ​​between the frames of the videos and the images.

[0131] In some cases, the annotation system 240 can access a lookup table based on the associated narration. The lookup table can have multiple narrations related to the associated narration. In addition, the annotation system 240 can use the lookup table to mark the first frame with a new narration in the multiple narrations.

[0132] In some cases, the annotation system 240 can index feature vectors of similar video frames. In addition, the annotation system 240 can index feature vectors calculated from multiple frames that are close to each other. The lookup table can be based on the indexed feature vectors. By indexing the feature vectors, the processing time for retrieving (e.g., finding, matching, accessing) video frames that are similar to the narrated image can be reduced.

[0133] In some cases, the method 400 may also include the annotation system 240 determining that the third frame of the first video does not have a narration. In addition, based on this determination, the annotation system 240 may generate a new video based on the first video, wherein the third frame is deleted from the first video to generate the new video. By deleting one or more frames from the first video, the annotation system can automatically reduce the memory storage requirements of the system.

[0134] In some cases, method 400 may also include annotation system 240 generating an audio file of the first video based on the first frame. The audio file may be associated with the marked commentary. In addition, annotation system 240 may receive user input from a user device. The user input may indicate an audio request associated with the marked commentary. In addition, annotation system 240 may output the audio file on a speaker of the user device in response to receiving the user input. The audio file may be generated based on the associated commentary of the image with the commentary. For example, the audio file may be an audio description of the image based on the associated commentary.

[0135] In some cases, method 400 may also include the annotation system 240 obtaining a set of images from an image caption addition dataset. The set of images may have the captioned image obtained at 402. In addition, the annotation system 240 may obtain a set of videos from a video repository (e.g., a public domain, a private domain, a third-party video database). The set of videos may have a first video obtained at 404. In addition, the annotation system 240 may select a second video from the set of videos. The annotation system 240 may extract a feature vector of a new frame of the second video. The annotation system 240 may calculate a new similarity value between the captioned image and the new frame based on the feature vector of the captioned image and the feature vector of the new frame. Subsequently, the annotation system 240 may mark the new frame with the marked captions similar to the associated captions of the captioned image based on the new similarity value.

[0136] Any number of video and audio tagging iterations may be performed. That is, method 400 may be iteratively performed for each seed image in the image caption addition database. In some cases, the annotation system may select multiple video clips (e.g., the first 10 matching video clips) for each seed image to be tagged with associated captions and store the multiple video clips in the video caption addition database 270.

[0137] Figure 5A flow chart of a method 500 for performing video retrieval using an annotation system according to an example embodiment of the present disclosure is depicted. One or more portions of the method 500 may be implemented by a computing system including one or more computing devices, such as, for example, the computing systems described with reference to other figures (e.g., annotation system 240, server computing system 130, computing device 10, computing device 50). Each respective portion of the method 500 may be performed by any one (or any combination) of the one or more computing devices. In addition, one or more portions of the method 500 may be implemented as hardware components of the devices described herein (e.g., Figures 1A to 1C and Figure 2 ) on, for example, to train a machine learning model (e.g., machine learning model 235).

[0138] Figure 5 Elements performed in a specific order are depicted for purposes of illustration and discussion. One of ordinary skill in the art will appreciate, using the disclosure provided herein, that the elements of any method discussed herein may be adjusted, rearranged, expanded, omitted, combined or modified in various ways without departing from the scope of the present disclosure. Figure 5 The elements / terms described with reference to other systems and figures are described for illustrative purposes and are not intended to be limiting. Additionally or alternatively, one or more portions of method 500 may be performed by other systems.

[0139] According to some embodiments, the method 500 may be performed after the annotation system 240 has marked the first frame with the associated transcript at operation 412. According to some other embodiments, the method 500 may be performed as a stand-alone process (eg, without operation 412).

[0140] At 502, the annotation system 240 can generate a video segment of a first video based on a first frame. As previously described, the first frame has been labeled with a narration at 412.

[0141] At 504, the annotation system 240 can store the video segment in a video transcript addition database (eg, the video transcript addition database 275). The video segment can be associated with the tagged transcript.

[0142] In some cases, the annotation system 240 can determine the matching threshold based on the number of video segments associated with the marked text stored in the video text addition data set (e.g., the video text addition database 270). For example, if the number of video segments is below the average of the data set or below the number threshold, the matching threshold can be lowered. Alternatively, if the number of video segments is above the average of the data set or above the number threshold, the matching threshold can be increased. In addition, when the similarity value exceeds the matching threshold, the first frame is marked with the associated text at 412. Figure 3A An example of a labeling technique using a similarity threshold is described.

[0143] At 506, the annotation system 240 may receive user input from a user device (eg, the user device 280). The user input indicates a video request for associated transcripts.

[0144] At 508 , the annotation system 240 may present the video clip on a user interface of the user device in response to receiving the user input.

[0145] Figure 6 A flow chart of an example method 600 for generating a video clip according to an example embodiment of the present disclosure is depicted. One or more portions of the method 600 may be implemented by a computing system including one or more computing devices, such as, for example, the computing systems described with reference to other figures (e.g., server computing system 130, computing device 10, computing device 50, annotation server 240). Each respective portion of the method 600 may be performed by any one (or any combination) of the one or more computing devices. In addition, one or more portions of the method 600 may be implemented as hardware components of the devices described herein (e.g., Figures 1A to 1C and Figure 2 ) on, for example, to train a machine learning model (e.g., machine learning model 235).

[0146] Figure 6 Elements performed in a specific order are depicted for purposes of illustration and discussion. One of ordinary skill in the art will understand, using the disclosure provided herein, that the elements of any method discussed herein may be adjusted, rearranged, expanded, omitted, combined or modified in various ways without departing from the scope of the present disclosure. Figure 6 The elements / terms described with reference to other systems and figures are described for illustrative purposes and are not intended to be limiting. Additionally or alternatively, one or more portions of method 600 may be performed by other systems.

[0147] At 602 , the annotation system 240 can determine a feature vector for a second frame of a plurality of frames of a first video.

[0148] In some cases, the feature vector of the second frame can be further determined based on the feature vector of the first frame. In some cases, the time information between the first frame and the second frame of the video can help determine the feature vector. For example, two frames that are close to each other in time may have similar images.

[0149] At 604 , the annotation system 240 may calculate a second similarity value between the narrated image and the second frame based on a comparison between the feature vector of the narrated image and the feature vector of the second frame.

[0150] At 606 , when the second similarity value exceeds the matching threshold, the annotation system 240 may mark the second frame with the marked transcript.

[0151] In some cases, the first frame may include a first timestamp and the second frame may include a second timestamp.

[0152] At 608 , the annotation system 240 can determine a time span based on the first timestamp and the second timestamp.

[0153] At 610, the annotation system 240 can generate a video segment of the first video. The first video can be shortened based on the time span to generate the video segment. In addition, the annotation system can mark the video segment with the marked commentary.

[0154] In some cases, the plurality of frames of the first video are generated based on the first video frame rate. Additionally, the annotation system 240 may select the second frame based on a reduced video frame rate. The reduced video frame rate is less than the first video frame rate. For example, the video frame rate of the first video may be the frame rate at which the video was captured (e.g., 24fps), and the reduced video frame rate may be a lower video frame (e.g., 1fps) to improve performance of the annotation system.

[0155] Additional disclosure

[0156] The techniques discussed herein refer to servers, databases, software applications, and other computer-based systems, as well as the actions taken and the information sent to and from such systems. The inherent flexibility of computer-based systems allows for a variety of possible configurations, combinations, and partitioning of tasks and functions between components. For example, the processes discussed herein may be implemented using a single device or component or multiple devices or components working in combination. Databases and applications may be implemented on a single system or distributed across multiple systems. Distributed components may operate sequentially or in parallel.

[0157] Although the subject matter has been described in detail with respect to specific example embodiments and methods thereof, it should be understood that those skilled in the art can easily generate changes, modifications, and equivalents of such embodiments after understanding the foregoing. Therefore, the scope of the present disclosure is illustrative rather than limiting, and the present disclosure does not exclude such modifications, changes, or additions to the subject matter that would be readily understood by those of ordinary skill in the art.

[0158] The use of computer-based systems allows for a variety of possible configurations, combinations, and divisions of tasks and functions between and among components. Computer-implemented operations may be performed on a single component or across multiple components. Computer-implemented tasks and / or operations may be performed sequentially or in parallel. Data and instructions may be stored in a single memory device or across multiple memory devices.

[0159] Aspects of the present disclosure have been described with respect to its illustrative embodiments. Those of ordinary skill in the art may think of numerous other embodiments, modifications and / or changes within the scope and spirit of the appended claims after carefully reading the present disclosure. Any and all features in the following claims may be combined and / or rearranged in any possible manner. Therefore, the scope of the present disclosure is illustrative rather than limiting, and the present disclosure does not exclude such modifications, changes and / or additions to the subject matter that will be easily understood by those of ordinary skill in the art. In addition, a list of example elements connected by conjunctions such as "and", "or", "but" is used herein to describe the terms. It should be understood that such conjunctions are provided only for the purpose of explanation. For example, a list connected by a specific conjunction such as "or" may refer to "at least one" or "any combination" of the example elements listed therein. In addition, terms such as "based on" should be understood as "based at least in part on".

[0160] A person of ordinary skill in the art using the disclosure provided herein will understand that the elements of any claim discussed herein may be adjusted, rearranged, expanded, omitted, combined or modified in various ways without departing from the scope of the present disclosure. Some claims are described with letter references to claim elements for illustrative purposes and are not intended to be limiting.

Claims

1. A computer-implemented method for improving a retrieval system, the method comprising: obtaining, by a computing system, a narrated image having an image and associated narration; Obtaining, by the computing system, a first video from a group of videos, the first video having a plurality of frames; Determining, by the computing system, a feature vector of the image with the caption; determining, by the computing system, a feature vector of a first frame of the plurality of frames of the first video; Calculating, by the computing system, a similarity value between the image with the caption and the first frame based on the feature vector of the image with the caption and the feature vector of the first frame; as well as The associated commentary is migrated, by the computing system, to the first frame based on the similarity value.

2. The method of claim 1, further comprising: generating a video segment of the first video based on the first frame; The video clip is stored in a video commentary adding database; as well as The associated commentary is migrated to the video segment based on the similarity value and a matching threshold.

3. The method of claim 2, further comprising: receiving user input from a user device, the user input indicating a request for a video related to the associated commentary; as well as In response to receiving the user input, the video segment is presented on a user interface of the user device based on the associated commentary being migrated to the video segment.

4. The method of claim 2, further comprising: determining a matching threshold based on the number of video segments having the associated captions stored in the video caption addition dataset; and When a second similarity value between the image with the commentary and a second frame among the multiple frames of the first video exceeds the matching threshold, the associated commentary is migrated to the second frame.

5. The method of claim 1, wherein: The similarity value between the narrated image and the first frame is calculated by determining an L2 distance between the feature vector of the first frame and the feature vector of the narrated image.

6. The method of claim 1, wherein: The similarity value between the captioned image and the first frame is calculated using an artificial neural network trained on image classification.

7. The method of claim 1, wherein: The similarity value between the narrated image and the first frame is calculated using a dot product similarity technique.

8. The method of claim 1, further comprising: determining, by the computing system, a feature vector of a second frame of the plurality of frames of the first video; calculating, by the computing system, a second similarity value between the narrated image and the second frame based on a comparison between the feature vector of the narrated image and the feature vector of the second frame; as well as When the second similarity value exceeds a matching threshold, the computing system migrates the associated commentary to the second frame.

9. The method of claim 8, wherein: The feature vector of the second frame is further determined based on the feature vector of the first frame.

10. The method of claim 8, wherein: Generating the plurality of frames of the first video based on a first video frame rate, the method further comprising: The second frame is selected based on a reduced video frame rate, the reduced video frame rate being less than the first video frame rate.

11. The method of claim 8, wherein: The first frame comprises a first timestamp, and wherein the second frame comprises a second timestamp, the method further comprising: determining a time span based on the first timestamp and the second timestamp; generating a video segment of the first video, wherein the first video is shortened based on the time span to generate the video segment; and The video segment is tagged with the tagged transcript.

12. The method of claim 1, further comprising: accessing a lookup table based on the associated commentary, the lookup table having a plurality of commentaries related to the associated commentary; using the lookup table to mark the first frame with a new commentary from the plurality of commentaries; as well as The first video is selected from the set of videos based on the lookup table.

13. The method of claim 1, further comprising: determining that a third frame of the plurality of frames of the first video does not have a narration; as well as A new video is generated based on the first video, wherein the third frame is deleted from the first video to generate the new video.

14. The method of claim 1, further comprising: generating, by the computing system, an audio file of the first video based on the first frame, the audio file being tagged with the associated commentary; receiving a user input from a user device, the user input indicating an audio request for the associated commentary; as well as The audio file is output on a speaker of the user device in response to receiving the user input.

15. The method of claim 1, wherein: Each video in the set of videos has an index score for the associated caption, the method further comprising: Obtaining, by the computing system, a set of images from an image caption adding dataset, the set of images having the captioned images; and The first video is selected from the set of videos based on an index score of the first video for the associated commentary.

16. The method of claim 15, further comprising: selecting, by the computing system, a second video from the set of videos; extracting, by the computing system, a feature vector of a new frame of the second video; Calculating, by the computing system, a new similarity value between the image with the caption and the new frame based on the feature vector of the image with the caption and the feature vector of the new frame; as well as The computing system migrates related commentary similar to the associated commentary to the new frame based on the new similarity value, the related commentary being different from the associated commentary.

17. A computing system comprising: one or more processors; as well as One or more non-transitory computer-readable media that collectively store: Machine learning models; Video commentary added to database; as well as instructions that, when executed by the one or more processors, cause the computing system to perform operations comprising: obtaining a narrated image, the narrated image having an image and associated narration; Obtain a first video from a group of videos, wherein the first video has a plurality of frames; Determining a feature vector of the image with the caption; determining a feature vector of a first frame among the plurality of frames of the first video; calculating a similarity value between the captioned image and the first frame based on the feature vector of the captioned image and the feature vector of the first frame; and The associated commentary is migrated to the first frame based on the similarity value.

18. The computing system of claim 17, the operations further comprising: generating a video segment of the first video based on the first frame and the similarity value; storing the video clip in the video commentary addition database, wherein the video clip is marked with the associated commentary; receiving user input from a user device, the user input indicating a video request for the associated commentary; as well as The video clip is presented on a user interface of the user device in response to receiving the user input.

19. The computing system of claim 17, the operations further comprising: determining a feature vector of a second frame among the plurality of frames of the first video; calculating a second similarity value between the captioned image and the second frame based on a comparison between the feature vector of the captioned image and the feature vector of the second frame; as well as When the second similarity value exceeds a matching threshold, the second frame is marked with the associated commentary.

20. One or more non-transitory computer-readable media that collectively store instructions that, when executed by the one or more processors, cause the computing system to perform operations comprising: obtaining a narrated image, the narrated image having an image and associated narration; Obtain a first video from a group of videos, wherein the first video has a plurality of frames; Determining a feature vector of the image with the caption; determining a feature vector of a first frame among the plurality of frames of the first video; Calculating a similarity value between the image with the caption and the first frame based on the feature vector of the image with the caption and the feature vector of the first frame; as well as The associated commentary is migrated to the first frame based on the similarity value.

Citation Information

Patent Citations

  • Video label adding method and device, electronic equipment and computer readable storage medium

    CN111708909A

  • Video tag setting method and device, computer equipment and storage medium

    CN113590876A

  • Scene aware searching

    US20180357317A1

  • Method and apparatus for labelling information of video frame, device, and storage medium

    US20210406553A1