Unsupervised training of video feature extractors

By using the past and future joint prediction and comparison loss functions in the video feature extractor, combined with the block feature extractor, the problem of difficulty in extracting temporal information by the video feature extractor in unsupervised learning is solved, and the feature quality and upstream tasks are improved. performance.

CN114511751BActive Publication Date: 2024-09-06ROBERT BOSCH GMBH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111240188.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-26
Filing Date
2021-10-25
Publication Date
2024-09-06
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

Existing video feature extractors are difficult to effectively extract temporal information in video sequences in unsupervised learning, resulting in low feature extraction quality and inability to fully utilize the temporal structure in video data.

Method used

By using past and future joint predictions as an indirect task, we estimate the joint predictability of the current feature representation, derive a training signal to encourage the video feature extractor to consider temporal information in unsupervised learning, adopt a contrastive loss function such as Info-NCE, and combine Block feature extractor and convolutional recurrent model,extract and aggregate block feature representations.

Benefits of technology

It improves the feature quality of the video feature extractor, enhances the ability to encode the temporal structure of the video, improves the performance of upstream tasks, reduces the dependence on annotation data, and saves labeling costs and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114511751B_ABST
    Figure CN114511751B_ABST
Patent Text Reader

Abstract

Unsupervised training of a video feature extractor is provided. The present invention relates to a computer-implemented unsupervised learning method (600) for training a video feature extractor. The video feature extractor is configured to extract feature representations from a video sequence. The method uses training data representing a plurality of training video sequences. From a training video sequence of the plurality of training video sequences, a current subsequence; a previous subsequence that is previous to the current subsequence; and a subsequent subsequence that is subsequent to the current subsequence are selected. The video feature extractor is applied to the current subsequence to extract a current feature representation of the current subsequence. A training signal is derived from the joint predictability of previous and subsequent subsequences given the current feature representation. Parameters of the video feature extractor are updated based on the training signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a computer-implemented method for training a video feature extractor, and a corresponding system. The present invention also relates to a computer-implemented method for extracting feature representations from a video sequence, and a corresponding system. The present invention further relates to a computer-readable medium. Background Art

[0002] Video feature extraction is an important task in machine learning, which has a large number of applications. For example, modern vehicles are equipped with multiple cameras that capture videos of their surroundings. These videos represent information about the traffic situation around the vehicle, which is useful for, for example, autonomous vehicles or assisting drivers (for example in the case of semi-autonomous driving) or parking assistance. Also in surveillance systems and robotic systems, video data represents information about how machines interact with each other and their environment, which is useful for monitoring and / or controlling systems.

[0003] In order to use video data in upstream applications such as monitoring or control, it is important to have a high-quality video feature extractor that extracts meaningful features from the video data. In order to obtain such a video feature extractor, it is usually trained on training data representing multiple representative video sequences. Such training is generally preferably unsupervised. One advantage of unsupervised learning is that it alleviates the cost and errors of the labeling process. In addition, in a supervised setting, learning generalizable and optimal features cannot be taken for granted, especially for complex information sources like videos. For example, for the problem of learning action labels from videos, it is known that these action labels can already be predicted from a single frame to such an extent that using action labels as feedback only provides a weak supervisory signal for representation learning. In fact, the model is not fully forced to explore the temporal information of the video. In contrast to the image field where the gap between unsupervised and supervised representation learning has been significantly narrowed, the performance of unsupervised video representation is still unsatisfactory.

[0004] A known technique for unsupervised training of video feature extractors is disclosed in T. Han et al., "Video Representation Learning by Dense Predictive Coding" (available at https: / / arxiv.org / abs / 1909.04656 and incorporated herein by reference). In particular, this is a self-supervised learning technique in which dense encodings of spatiotemporal blocks are learned by using predictions of future representations as an indirect task (pretext task). To optimize this task, a loss based on noise contrast estimation (NCE) is used. At each spatial position of the predicted feature map, a "positive pair" consisting of the predicted feature and the representation extracted by the feature extractor is compared to the following: an easy negative, where the predicted feature is compared to a feature from a different video; a spatial negative, where it is compared to features at different spatial locations; and a temporal negative, where it is compared to features from different time steps. The loss encourages positive examples to have higher similarity than any negative pair. Summary of the invention

[0005] It would be desirable to have a video extractor that extracts more high-quality features from a video sequence and thus allows the video sequence to be more effectively used in upstream applications. In particular, it would be desirable to have a video extractor that extracts better temporal information from a video sequence. In particular, it would be desirable to provide improved techniques for training such a video extractor by unsupervised learning, e.g., unsupervised learning techniques that can more efficiently and effectively extract temporal information from a video sequence.

[0006] According to a first aspect of the invention, a computer-implemented method and a corresponding system for training a video feature extractor are provided. According to another aspect of the invention, a computer-implemented method and a corresponding system for extracting feature representations from a video sequence are provided. According to one aspect of the invention, a computer-readable medium is described.

[0007] Various measures involve training a video feature extractor by unsupervised learning. Various measures also involve using such trained video feature extractors. The video feature extractor can be trained to extract feature representations from a video sequence based on training data representing a plurality of training video sequences. The training data can be unlabeled in the sense that it does not include the target feature representation that the video feature extractor is trained to approximate, e.g., the video feature extractor is not trained to approximate semantic labels annotated by humans. Instead, the video feature extractor can be trained to extract meaningful feature representations by training on an indirect task, in other words, by deriving a training signal for the extracted feature representation that is expected to indicate its quality, without comparing the feature representation to the ground truth. Such training is also referred to as self-supervised learning.

[0008] To improve the quality of extracted features, it is important to encourage the feature extractor to encode temporal aspects of the video. Unless the model is specifically encouraged, in many cases the temporal aspect is shown to be discarded. To encourage taking temporal aspects into account, the inventors envision considering the relationship between a video clip and what happened before and after. As the inventors realize, given a video clip as the current sequence, the question of what will happen in consecutive frames is analogous to asking what happened in previous frames in terms of the factors of variation that the network intends to encode. Despite this, it is not clear how both subsequent and previous frames can be effectively exploited in a comprehensive and challenging training task.

[0009] Interestingly, the inventors have discovered an effective way to use the past and the future, namely by using a joint prediction of the past and the future as an indirect task. This may involve selecting a current subsequence, a previous subsequence that is previous to the current subsequence, and a subsequent subsequence that is subsequent to the current subsequence from a training video sequence. A video feature extractor may be applied to the current subsequence to extract a current feature representation of the current subsequence. In order to estimate the quality of the current feature representation, the joint predictability of the previous and subsequent subsequences given the current feature representation may be estimated. In other words, the predictability of the joint distribution of the previous and subsequent subsequences (e.g., as an ordered pair) given the current feature representation may be estimated.

[0010] Throughout this specification, the terms "current", "past", and "future" are used in the same sense instead of "current", "previous", and "subsequent". For example, the current, previous, and subsequent subsequences are referred to herein as the current, past, and future subsequences, respectively. The terms "past", "current", and "future" are used purely as terms relative to one another, and not, for example, the time at which the described system or method is used.

[0011] From the estimated joint predictability, a training signal can be derived that is used to train the video feature extractor by encouraging it to increase the joint predictability. Interestingly, since both the past and the future are contained in the same joint distribution, the predictability of this distribution increases if the current feature representation takes the temporal aspects of the video into account. Thus, the training signal encourages the extraction of features to place greater emphasis on temporal structure in the video data that might otherwise be discarded.

[0012] The joint prediction of the past and the future is found to provide high-quality feature extraction and is superior to several alternatives that may be considered. In particular, an alternative to using future and past video sequences is to combine the prediction of past and future features by non-jointly, for example, by independently predicting past and future features unidirectionally, and for example, adding the two resulting losses. The inventors realize and also confirm experimentally that this is not an effective way to use the past and the future. One explanation may be that the non-joint prediction of the past and the future does not introduce a new set of negative examples compared to the individual predictions of the future or the past. Predicting the unobserved past instead of the future can use similar representations. For example, given the current video subsequence, distinguishing between a random video subsequence and a future subsequence can use properties similar to distinguishing between a random video subsequence and a past subsequence. Therefore, the non-joint prediction of the future and the past may not be expected to improve the extracted feature representation as much as considering the joint distribution of the past and future subsequences. In fact, there may not be a strong enough training signal to force the feature extractor to distinguish between the past and the future.

[0013] Another alternative to using future and past video sequences is by deriving a training signal based on distinguishing between past and future subsequences, for example, by including past subsequences as negative examples in the contrastive loss. However, the inventors realized and also confirmed experimentally that this also does not lead to an effective use of the past and the future. Essentially, the past features should encode high-level abstractions that are similar to the high-level abstractions of the future, for example, the action being performed in the video. When using such a contrastive loss using past subsequences as negative examples, training may lead to a degenerate solution that removes such meaningful features shared across the past, present and future from the extracted feature representations.

[0014] Interestingly, by using the joint distribution of past and future subsequences, both aspects can be taken into account. Given the current subsequence, it is desirable that the features of both the future and the past are distinguishable from random, but it is also desirable that the future and the past are distinguishable from each other. By considering a joint prediction, two supervisory signals can be exploited, since the joint predictability of the past and future subsequences requires that the correct combination of the past and the future is distinguishable from both random and incorrect combinations in which the past and the future are swapped. Therefore, the supervisory signal generated from the unobserved past frames can be used complementary to the supervisory signal derived from the future frames. Thus, a training signal is provided that effectively encourages the video feature extractor to explore the temporal structure of the video.

[0015] Therefore, training based on this training signal leads to a feature extractor that provides higher quality feature representations, and therefore also leads to improved performance of upstream tasks that use the extracted feature representations. Still, training can be performed on unlabeled data. Data and annotations are key bottlenecks in training machine learning models (such as deep neural networks). The provided technology can facilitate training by learning representations from unlabeled videos. The learned representations can be transferred to downstream tasks of interest, such as action recognition and behavior prediction. The provided technology can save the cost and time of providing annotations for large-scale video datasets and can prevent errors in the labeling process.

[0016] Optionally, the joint predictability of the past and the future can be approximated as a contrastive loss of the current feature representation. In the contrastive loss, one or more differences between the feature representation and one or more so-called positive comparison examples for the current feature representation can be calculated. The differences of these positive examples can then be compared with one or more differences between the feature representation and one or more negative comparison examples for the current feature representation. For example, the Info-NCE (noise contrast estimation) loss can be used. The contrastive loss may encourage feature representations to have smaller differences with the positive and negative comparison examples than with the positive and negative comparison examples.

[0017] To capture the joint predictability of past and future subsequences, a positive example may be extracted from a past subsequence followed by a future subsequence; and the positive example may be compared to a negative set including negative examples in which the roles of the predictable future and past subsequences are swapped.

[0018] Because the negative example is based on the same past and future subsequences as the positive example but in a different order, this is a challenging example that strongly forces the model to consider the temporal aspect. In general, in order to obtain an effective training signal, it is important to include such challenging examples in the contrastive loss. This is because otherwise the model may use shortcuts such as low-level statistics, edges, etc. By using the correct order of the past and the future as positive examples, and using the reversed order as negative examples, the training signal can force the feature extractor to distinguish between the past and the future without taking shortcuts. Still, this distinction is actually made in an implicit way in the sense that meaningful features do not need to be removed. Therefore, feature extraction can be encouraged to encode the temporal structure shared across videos so that the matching temporal order can be detected.

[0019] The same trainable model can be used to extract both positive and negative examples from past and future subsequences; however, the model need not be the video feature extractor itself. In particular, it can be a separate model that is trained simultaneously with the video extractor, e.g., whose parameters are also updated based on the training signal, as also described elsewhere.

[0020] Optionally, additional negative comparison examples for the contrastive loss may be extracted from first and second additional subsequences of another training video sequence. Thus, given the current observation, future and past features may be encouraged to be distinguishable from random and from each other. Additional negative comparison examples may be considered simple negatives, while, as described above, negative comparison examples extracted from the future subsequence followed by the past subsequence may be considered hard negatives. The combination of simple and hard negatives in training is particularly advantageous for encouraging the feature extractor to explore the temporal structure of the video more deeply.

[0021] By comparing the union (positive examples) and product (negative examples) of the margins of the current and future / past distributions, the contrastive loss can approximate the mutual information between the feature representation of the current subsequence and the feature representations of the past and future subsequences (extracted by the corresponding models), and in this sense represents the joint predictability. However, it is also possible to use other techniques for approximating the mutual information, such as mutual information estimation (MIE) or, for example, estimating the conditional entropy of the past and future given the current feature representation.

[0022] Optionally, applying the video feature extractor to the video sequence may include applying the block feature extractor to corresponding fixed-length blocks of one or more image frames of the video sequence to extract corresponding block feature representations. The block feature extractor may preserve spatial and / or temporal relationships, for example, the features of the block feature extractor may correspond to specific spatial and / or temporal positions in the block. For example, the block feature extractor may be a 3D convolutional neural network, examples of which are known per se in the art. The block feature representations may be aggregated by an aggregation function to obtain a feature representation of the video sequence. Applying the same block feature extractor across blocks and then aggregating the results is found to be a particularly effective way to extract features from a video because it effectively combines a reusable component that extracts features at the lowest level with an aggregation function that can extract higher-level (e.g., temporal) aspects. The aggregation function may be, for example, a recursive model, which is beneficial in allowing the video extractor to operate on variable-length video sequences.

[0023] Optionally, during training, the same block feature extractor may also be used to extract positive and negative comparison examples. In particular, the block feature extractor may be applied to past and future subsequences to extract corresponding block feature representations of (one or more) blocks of the past and future subsequences. If used, the block feature extractor may also be applied to additional subsequences of additional training video sequences. An aggregation function may be used to extract comparison examples from the block feature representations. This may be the same aggregation function also used in the video feature extractor, but interestingly, the inventors have found that in many cases, training works better if a separately trained aggregation function is used.

[0024] Optionally, the combined length of the past and future subsequences may be less than the length of the present subsequence. In particular, the present subsequence may comprise a plurality of blocks, e.g. at least four, while the past and future subsequences may each comprise a single block. Keeping the past and future subsequences short has the advantage that it becomes more difficult to distinguish between positive and negative comparison examples, thereby encouraging the model to learn more temporal aspects from the available information. Note that the length of the present subsequence need not be kept constant throughout training, and furthermore, for the past and future subsequences, their lengths may in principle vary.

[0025] Optionally, applying the video feature extractor to the video sequence may include applying a convolutional model, in particular a convolutional recurrent model, as an aggregation function to the block feature representations extracted from the video sequence. The convolutional recurrent model may preserve spatial and / or temporal relationships. Thus, the convolutional recurrent model may output a convolutional feature map. The convolutional feature map may optionally be aggregated at least along its spatial dimension to produce spatially independent features that are not associated with a specific spatial position in the video. If the convolutional feature map has a temporal dimension, it may also optionally be aggregated along that dimension to obtain features that are not associated with a specific temporal position in the block.

[0026] As an alternative to using a convolutional model and applying pooling to its output, it is also possible to apply pooling to the block feature representations and then apply a non-convolutional model as the aggregation function.

[0027] Interestingly, in either case, feature representations can be extracted from video sequences that are invariant to spatial position. This contrasts with, for example, the method by T. Han et al., “Video Representation Learning by Dense Predictive Coding”, in which spatial negative examples are used to learn features that vary with spatial position. The disadvantage of this other approach is that feature vectors are encouraged to represent local descriptors. Feature vectors should be distinguishable across the spatial positions of feature maps because they are injected as negative examples in the loss function. Especially in the latter layers of the model, where their receptive fields are long, global features are advantageous. The inventors experimentally found that, in contrast to spatially invariant features trained using spatial negative examples, the use of features that are invariant to spatial position improves transfer to various downstream tasks such as motion learning, in which video feature extractors can be applied.

[0028] Optionally, when selecting the present, past, and future subsequences, corresponding spatial transformations may be applied to these subsequences. Thus, feature representations of the present subsequence and / or positive and negative comparison examples may be based on corresponding transformed subsequences. This further encourages the model to learn video features that are invariant to the spatial dimension, which is beneficial for various downstream tasks. The spatial transformations applied to the past, present, and future are preferably all different to more strongly encourage the model to reason about features in a position-independent manner.

[0029] Optionally, the sampling rate of the training video sequence can be downsampled before selecting the present, past and future subsequences, for example according to a randomly selected downsampling rate. The downsampling can be performed consistently across the training video sequences. In this way, the training data set can be expanded, allowing the model to be trained on more data. The inventors were able to experimentally verify the performance improvement due to downsampling.

[0030] Optionally, a video feature extractor has been trained on unlabeled training data in an unsupervised manner, and the video feature extractor can be used as part of an additional machine learning model. The additional machine learning model can be trained on labeled training data, wherein the additional machine learning model is configured to determine a model output based on the video sequence based on extracting feature representations of the video sequence using the video feature extractor. For example, the additional machine learning can be a video classification model, such as an object detection model or a temporal segmentation model. Training the additional machine learning model can include fine-tuning the video feature extractor, for example, optimizing parameters of the video feature extractor as part of training the additional machine learning model.

[0031] Optionally, the video feature extractor can be included in a machine-learnable control model for a computer control system configured to interact with an environment. The video sequence can include a video-based representation of the computer control system and / or the environment. For example, the video-based representation can represent parameter aspects of the system and / or the environment, for example, components of the computer control system and / or objects in the system environment can be captured. A machine-learnable control model including a trained video feature extractor can be applied to obtain control data for use in controlling the computer control system (e.g., using actuators, etc.). Similarly, monitoring the computer control system is also possible. For example, the computer control system can be a vehicle, such as an autonomous or semi-autonomous vehicle; a robot; a manufacturing machine; a household appliance; a power tool; a personal assistant; an access control system; and the like. Such a system greatly benefits from improved control due to higher quality video feature extraction.

[0032] It will be appreciated by those skilled in the art that two or more of the above-mentioned embodiments, implementations, and / or alternative aspects of the invention may be combined in any way deemed useful.

[0033] Based on this description, a person skilled in the art may implement modifications and variations to any system and / or any computer-readable medium that correspond to the described modifications and variations to the corresponding computer-implemented method. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] These and other aspects of the invention will be apparent from and further elucidated with reference to the embodiments described by way of example in the following description and with reference to the accompanying drawings, in which:

[0035] Figure 1 A system for training a video feature extractor is shown;

[0036] Figure 2 A system for extracting feature representations from a video is shown;

[0037] Figure 3 An extraction system for controlling a vehicle is shown;

[0038] Figure 4 A detailed example showing how to train a video feature extractor;

[0039] Figure 5a A detailed example showing how to extract representations is shown;

[0040] Figure 5b A detailed example showing how to extract feature representations;

[0041] Figure 6 A computer-implemented unsupervised learning method is shown;

[0042] Figure 7 A computer-implemented method of extracting features is shown;

[0043] Figure 8 A computer readable medium including data is shown.

[0044] It should be noted that the figures are purely schematic and not drawn to scale.In the figures, elements corresponding to elements already described may have the same reference numerals. DETAILED DESCRIPTION

[0045] Figure 1 An unsupervised learning system 100 for training a video feature extractor is shown. The video feature extractor may be configured to extract feature representations from a video sequence. The system 100 may include a data interface 120 for accessing training data 030 representing a plurality of training video sequences. The video feature extractor is a machine learnable model parameterized by a set of parameters. The data interface 120 may also be used to access model data 040 representing a set of parameters for the video feature extractor. The data interface may also be used to access model data for a model used in unsupervised learning, such as a model for deriving positive and negative comparison examples as described herein. Such a model may be optimized as part of training, but may not form part of the video feature extractor. The model data 040 may be used in accordance with the methods described herein, for example by Figure 2 or Figure 3 The system 200 extracts feature representations from a video sequence.

[0046] The video feature extractor may be included in an additional machine learning model represented using the features extracted by the video feature extractor. The model data 040 may also include additional parameters for the additional machine learning model. The data interface 120 may also be used to access labeled training data (not shown) for training the additional machine learning model. The labeled and unlabeled data may overlap, for example, labels may be available for a subset of the training data 030. In this case, it is interesting that training the video feature extractor on the complete training data and training the remainder of the additional machine learning model only on the labeled data may result in better performance than training the complete additional machine learning model only on the labeled data without training its video feature extractor separately.

[0047] For example, Figure 1 As shown in , the data interface 120 can be composed of a data storage interface, which can access the training data 030 and the model data 040 from the data storage device 021. For example, the data storage interface can be a memory interface or a permanent storage interface, such as a hard disk or SSD interface, but it can also be a personal, local or wide area network interface, such as a Bluetooth, Zigbee or Wi-Fi interface or an Ethernet or fiber optic interface. The data storage device 021 can be an internal data storage device of the system 100, such as a hard disk drive or SSD, but it can also be an external data storage device, such as a network accessible data storage device. In some embodiments, the training data 030 and the model data 040 can each be accessed from a different data storage device, for example via different subsystems of the data storage interface. Each subsystem can be of the type described above for the data storage interface. The data interface for accessing the training video sequence can also include a video interface for accessing the video sequence from the camera, for example as described with respect to Figure 2 Just as described.

[0048] The system 100 may further include a processor subsystem 140, which may be configured to train a video feature extractor during operation of the system 100 and output a trained video feature extractor. The training may include selecting from a training video sequence of a plurality of training video sequences: a current (also referred to as: present) subsequence, a previous (also referred to as: past) subsequence that is previous to the current subsequence; and a subsequent (also referred to as: future) subsequence that is subsequent to the current subsequence. The training may further include applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence. The training may further include deriving a training signal from the joint predictability of previous and subsequent subsequences given the current feature representation. The training may further include updating a set of parameters of the video feature extractor based on the training signal.

[0049] In the case where the video feature extractor is included in the additional machine learning model, the processor subsystem 140 can be further configured to train the additional machine learning model on the labeled training data based on the trained parameters of the video feature extractor after the training of the video feature extractor. The video feature extractor can be fine-tuned during the training, but can also remain unchanged. The additional machine learning model can determine its output based on the extracted feature representation, for example using a neural network or a linear model.

[0050] The system 100 may further include an output interface for outputting model data 040 representing the learned (or "trained") video feature extractor. Figure 1 , the output interface may be comprised of a data interface 120, which in these embodiments is an input / output ("IO") interface via which trained model data 040 may be stored in a data storage device 021. For example, model data defining an "untrained" video feature extractor may be at least partially replaced by model data of a trained video feature extractor during or after training, wherein parameters of the video feature extractor (such as weights and other types of parameters of a neural network) may be adapted to reflect the training on training data 030. In other embodiments, the trained model data may be stored separately from model data defining an "untrained" dynamics model. In some embodiments, the output interface may be separate from the data storage interface, but may generally be of the type described above for the data storage interface.

[0051] Figure 2 A system 200 for extracting feature representations from a video sequence is shown. The system 200 may include a data interface for accessing model data 040, which represents a feature representation as described herein, for example, by Figure 1 In addition to using a video feature extractor, the system 200 may also train it, for example, the system 200 may be used with Figure 1 The system 100 is combined.

[0052] For example, Figure 2 As shown in FIG. 1 , the data interface 220 may be composed of a data storage interface that can access the model data 040 from the data storage device 022. In general, the data interface 220 and the data storage device 022 may have the same Figure 1 The same types as described for the data interface 120 and the data storage device 021. The data interface may also be used to access a video sequence captured by a camera; however, in this figure the video sequence is received from the camera itself, as discussed below.

[0053] The system 200 may further include a processor subsystem 240 that may be configured to, during operation of the system 200 , obtain a video sequence; apply a video feature extractor to the video sequence to extract a feature representation; and output the feature representation.

[0054] You will understand that Figure 1 The same considerations and implementation options for processor subsystem 140 of FIG. 1 apply to processor subsystem 240. It will be further appreciated that, unless otherwise noted, the same considerations and implementation options as for processor subsystem 140 of FIG. Figure 1 The same considerations and implementation options for system 100 may generally apply to system 200 .

[0055] Figure 2 Various optional components of the system 200 are further shown. For example, in some embodiments, the system 200 may include a video interface 260 for directly accessing a video sequence 224 acquired by a video camera 072. For example, the video camera may capture video of a computer control system (such as an autonomous vehicle or robot) controlled by the system 200; and / or video of an environment 082 with which the computer control system interacts. The video camera 072 may be arranged in the environment 082, but may also be arranged away from the environment 082. The video camera 072 may, but need not, be part of the system 200. Any suitable video camera may be used, such as a visible light camera, an infrared camera, an x-ray camera, etc. For example, the camera may also be a radar, a LiDAR, or an ultrasound or motion detection camera. The video interface 260 may have any suitable form corresponding in type to the camera type, including but not limited to a low-level communication interface, such as based on I2C or SPI data communication, or a data storage interface of the type described above for the data interface 220.

[0056] In some embodiments, the system 200 may include an actuator interface 280 for providing control data 226 to an actuator (not shown) of a computer-controlled system operating in the environment 082. Such control data 226 may be generated by the processor subsystem 240 based on a machine-learnable control model including a video feature extractor. The actuator may be part of the system 200. For example, the actuator may be an electrical, hydraulic, pneumatic, thermal, magnetic, and / or mechanical actuator. Specific but non-limiting examples include electric motors, electroactive polymers, hydraulic cylinders, piezoelectric actuators, pneumatic actuators, servomechanisms, solenoids, stepper motors, etc. This type of control reference Figure 3 Description is given for (semi-)autonomous vehicles.

[0057] In other embodiments ( Figure 2In the embodiment of the present invention (not shown in the figure), the system 200 may include an output interface to a presentation device such as a display, a light source, a speaker, a vibration motor, etc. that can be used to generate a sensory perceptible output signal, which can be generated based on the feature representation extracted by the video feature extractor. The sensory perceptible output signal can directly indicate the extracted features, but can also represent a derived sensory perceptible output signal, for example, for use in guidance, navigation or other types of control of a computer control system.

[0058] In general, each system described in this specification - including but not limited to Figure 1 System 100 and Figure 2 System 200 of the present invention may be embodied as a single device or apparatus (such as a workstation or server) or in a single device or apparatus. The device may be an embedded device. The device or apparatus may include one or more microprocessors that execute appropriate software. For example, the processor subsystem of the corresponding system may be embodied by a single central processing unit (CPU), but may also be embodied by a combination or system of such CPU and / or other types of processing units. The software may have been downloaded and / or stored in a corresponding memory, for example, a volatile memory such as RAM or a non-volatile memory such as flash memory. Alternatively, the processor subsystem of the corresponding system may be implemented in a device or apparatus in the form of programmable logic, for example as a field programmable gate array (FPGA). In general, each functional unit of the corresponding system may be implemented in the form of a circuit. The corresponding system may also be implemented in a distributed manner, for example involving different devices or apparatuses, such as distributed local or cloud-based servers. In some embodiments, system 200 may be part of a vehicle, a robot, or a similar physical entity, and / or may represent a control system configured to control a physical entity.

[0059] Figure 3 An example of the above is shown, where the system 200 is shown as a control system of a (semi) autonomous vehicle 62 operating in an environment 50. The autonomous vehicle 62 may be autonomous in that it may include an autonomous driving system or a driving assistance system, wherein the latter is also referred to as a semi-autonomous system. The autonomous vehicle 62 may, for example, incorporate the system 200 to control the steering and braking of the autonomous vehicle based on a video sequence obtained from a video camera 22 integrated into the vehicle 62. For example, the system may apply an additional machine-learnable model that uses a feature representation extracted by a video feature extractor to determine a model output. The model output may then be used to control the vehicle 62.

[0060] For example, in the event that the autonomous vehicle 62 is expected to collide with a traffic participant, the system 200 can control the motor 42 to perform (regenerative) braking. The system 200 can control steering and / or braking to avoid a collision with a traffic participant. For this purpose, the system 200 can extract feature representations from the captured video sequence and use the extracted feature representations in a further machine learning model, such as a time segmentation model or a classification model, which is used to detect an increased risk of collision. In the event of such an increased risk, the system 200 can take corresponding actions.

[0061] Figure 4 A detailed but non-limiting example of how a video feature extractor can be trained by unsupervised learning is shown. In this example, a training signal is derived from the joint predictability of past (i.e., previous) and future (i.e., subsequent) subsequences given a current feature representation by using a contrastive loss.

[0062] The figure shows a video feature extractor VFx 440. The video feature extractor VFx can be configured to extract feature representations from a video sequence. A video sequence can be a sequence of one or more image frames, wherein each image frame can be an image including one or more channels, such as a single-channel grayscale image, or a three-channel image such as an RGB image, and the like. For example, an image can have a width and / or height of at most or at least 16 pixels, at most or at least 128 pixels, or at most or at least 256 pixels. The video feature extractor VFx can support video sequences of flexible length or only support video sequences of fixed length, such as at most or at least 10 frames, at most or at least 20 frames, or at most or at least 40 frames. For example, the frame rate of the video can be at most or at least 4 frames per second, or at most or at least 8 frames. The length of the input video sequence can be between 0 and 10 seconds, such as between 0 and 2 seconds, such as between 0.1 and 1 seconds. Various video feature extractors VFx known in the art can be trained according to the methods described herein; particularly beneficial architectures are described throughout the text.

[0063] The video feature extractor VFx may be parameterized by a parameter set. Training the video feature extractor may involve optimizing the parameter set relative to an objective function. For example, the video extractor VFx may include one or more neural networks. Neural networks are also called artificial neural networks. Examples include deep neural networks and convolutional neural networks. In this case, the parameter set may include weights of the neural network nodes. For example, the number of layers of such a neural network may be at least 5 or at least 10, and the number of nodes and / or weights may be at least 1000 or at least 10000.

[0064] The video feature extractor VFx may be trained based on training data representing a plurality of training video sequences. For example, the training data may include at least 1,000, at least 10,000, or at least 100,000 video sequences. The video sequence may have any length, which may also vary from video sequence to video sequence.

[0065] In order to train the model, a training video sequence TVS 400 can be selected from the training data set. The training video sequence TVS is visualized in the figure as a timeline going from the past to the future, from which corresponding subsequences are selected. Various augmentations can be applied to increase the number of available video sequences. For example, it was found to be beneficial to augment the training data set by random downsampling of the frame rate of the training video sequences. For example, when selecting the training video sequence, a random downsampling factor can be selected, and the training video can be downsampled according to the selected factor. Downsampling can also be performed before training. Other augmentations that can be applied include spatial transformations, such as cropping and horizontal flipping; and frame-by-frame transformations, such as frame-by-frame color jittering, to disrupt the optical flow. Downsampling is typically performed on the entire training video sequence TVS. Other augmentations can be applied to the entire video sequence TVS, but can also be applied to its corresponding subsequences, such as also about Figure 4 As discussed.

[0066] From a training video sequence TVS, a current subsequence of adjacent frames VS 420 may be selected. A video feature extractor VFx may be applied to the current subsequence VS, thereby obtaining a current feature representation PFR 450. Depending on the selected feature video feature extractor, the current feature representation PFR may be a feature vector, e.g., consisting of spatially and temporally independent features, e.g., having a length of at most or at least 64 features, at most or at least 256 features, or at most or at least 2048 features. However, the current feature representation PFR may also include features that correspond spatially and / or temporally to the current video sequence VS.

[0067] Training can be used to optimize the way in which the video feature extractor VFx extracts feature representations PFR from the current subsequence VS. Therefore, the purpose of training can be to produce high-quality, meaningful feature PFR. Training may be unsupervised: there may be no target value of the feature PFR given as input to the training. Instead, the training can derive a loss for the feature PFR based on an indirect task: the task is expected to encourage the video feature extractor VFx to output high-quality features (so-called self-supervised learning). In this case, the indirect task may involve an estimation of the joint predictability of past and future subsequences given the current feature representation PFR, in other words, the predictability of the joint distribution of past and future subsequences given the current feature representation. (Note that estimating predictability does not mean making explicit predictions based on the current feature representation; instead, in this example, the current feature representation can be compared with past and future representations to estimate their correspondence.) Specifically, the joint predictability can be estimated by determining a contrastive loss CL 470. In the contrastive loss CL, the current feature representation PFR can be compared with positive and negative comparison examples, where the loss encourages the current feature representation to be more similar to the positive comparison example than to the negative comparison example. In this case, the positive and negative examples are ordered pairs of video subsequences, and are therefore also referred to herein as "positive pairs" and "negative pairs."

[0068] In order to obtain positive and negative pairs, the training video sequence TVS can be divided into three parts X = (P, V, F), where V represents the current video sequence VS, and P and F represent all frames in the video sequence before and after the current video sequence, respectively. Based on this division, positive and negative pairs of contrast loss can be constructed by utilizing the joint representation of (P, F).

[0069] In particular, given a training video sequence TVS, a set of positive pairs can be constructed For each positive example pair A set of pairs D(P, F) can be constructed, including the positive pair itself and all its negative examples. As explained elsewhere, the contrastive loss contribution of a positive pair can be determined based on the positive pair and its corresponding set of negative pairs. The overall contrastive loss can be obtained by combining the corresponding contrastive loss contributions of the corresponding positive pairs.

[0070] In particular, the set of positive and negative example pairs can be constructed as follows.

[0071] Positive example. Mark the positive past / future subsequence set. The positive pair of the current subsequence VS can be obtained by the previous frame set from the current subsequence VS The random past subsequence PS 410 of adjacent frames is selected from the current subsequence VS, and the random future subsequence FS 430 of adjacent frames is selected from the set of frames V following the current subsequence VS. Therefore, the past subsequence PS followed by the future subsequence FS can form a positive example pair 481. Usually, the past and future subsequences PS and FS have the same length.

[0072] The past and future subsequences PS, FS are preferably relatively close to the current subsequence VS in the video sequence, for example, at most two times or at most five times as far as the length of the current subsequence. Their total length can be chosen to be smaller than the length of the current subsequence VS so as not to make the indirection task too simple. However, each of the past and future subsequences typically includes multiple frames to enable sufficient temporal inference. For example, a set P of m non-overlapping subsequences immediately preceding the current subsequence can be combined with a set F of m non-overlapping subsequences immediately following the current subsequence to obtain m frames of the current subsequence VS. 2 A positive example.

[0073] Simple negative examples. Simple negative examples can be obtained by sampling a first further subsequence FFS 491 and a second further subsequence SFS 492 from a further training video sequence FTVS 490. For example, the further training video sequence FTVS can be another video sequence in a batch currently being processed. For example, the video FTVS can be divided into m non-overlapping subsequences. Simple negative examples can be formed by sampling possible combinations of such subsequences in the correct time order or in an interchanged time order. The temporal distance between the further first and second subsequences FFS, SFS can be selected similarly to the temporal distance between the past and future subsequences PS, FS. For example, from a batch with n videos, each video including m non-overlapping subsequences, 2m simple negative examples can be obtained. 2 (n-1) simple negative examples.

[0074] Temporally difficult negative examples. Temporally difficult negative examples can be obtained by exchanging the order of the past and future of the corresponding positive example pairs. Therefore, for the positive example pair 481 in which the past subsequence PS is before the future subsequence FS, the corresponding temporally difficult negative example 482 in which the past subsequence PS is after the future subsequence FS can be obtained. The negative example set of the positive example pair includes at least the corresponding temporal negative example, but it can also include temporally difficult negative examples from other positive example pairs of the same training video sequence TVS.

[0075] For example, a set of positive and negative pairs can be obtained as follows. A batch of n video sequences can be selected. From each video, a current subsequence, m past subsequences, and m future subsequences (e.g., the m blocks immediately preceding and following the current subsequence) can be selected. For each video, this gives m by combining each of the m past subsequences with each of the m future subsequences. 2 positive pairs. For each positive pair, the corresponding temporally difficult negative pair can be obtained. By taking the combination of the past and future subsequences of other video subsequences in the block, 2m 2 (n-1) simple negative examples. This full set of positive and negative pairs can be used for the contrastive loss, although it is also possible to use only a subset of the positive and / or negative pairs.

[0076] For example, in one embodiment, 8 blocks, 5 frames per block, can be extracted from the video sequence TVS, and decomposed in the following manner: 4 middle blocks are used as the current video sequence VS, and single past and future blocks at different time distances from the current are sampled from the remaining blocks as past and future subsequences PS and FS. In this example, the training video sequence TVS can provide 4 positive example pairs and 4 corresponding negative example pairs for each video.

[0077] Various other numbers of blocks for each past, present, and future subsequence are also possible (for a given block length, e.g., 5 frames per block). For example, experiments were performed with numbers of past, present, and future blocks of (2, 4, 2); (3, 2, 3); (2, 2, 2); (1, 2, 1); and (2, 1, 2), where the present subsequence contains all present blocks and a single pair of past and future blocks provides a positive and negative pair. A large number of future and past blocks allows for a larger set of positive and negative pairs to be provided for the contrastive loss. For example, (2, 4, 2) provides 4 positive and negative pairs per video in a batch. (3, 2, 3) increases the difficulty of the task because more temporally difficult negative examples are included in the loss function, while the temporal receptive field of the present sequence is reduced. In the performed experiments, it was found that reducing the number of present blocks while keeping the past and future blocks fixed did not significantly change the quality of the representation. However, it is found that reducing the number of future and past blocks to only one positive pair per video (e.g. (1, 2, 1)), or reducing the number of current blocks to one (e.g. (2, 1, 2)) degrades performance. The former reduces the number of temporally difficult negative examples, which results in a simpler task, while the latter limits the temporal information. Therefore, it is preferred to select multiple positive pairs per current video sequence VS, and to select multiple blocks of the current video sequence VS. Experiments indicate that temporally difficult negative examples improve feature extraction, and show that the obtained feature extractor is able to exploit temporal information.

[0078] As shown in the figure, by applying the additional video feature extractor FVFx 445 to the past and present subsequence pairs, positive and negative comparison examples of positive and negative pairs can be extracted. For example, from the positive pair 481 of the past subsequence PS followed by the future subsequence FS, the positive comparison example CE1 451 can be extracted. Similarly, the negative pairs 482, 483 can lead to negative comparison examples CE2 452 and CE3 453, respectively. The additional video feature extractor FVFx can be consistent with the video feature extractor VFx440, but interestingly, the inventors have found that it is beneficial to use an additional video feature extractor FVFx that is separate from the video feature extractor VFx but jointly trained. This can be explained by the fact that the input of the additional video feature extractor FVFx is different from the input of the video feature extractor VFx, which usually has a different length and has at least two temporally separated parts. However, the video feature extractor VFx and the additional video feature extractor FVFx can have common parts, such as neural network layers, as well as Figure 5a As shown in the figure.

[0079] Based on the extracted current feature representation VFx and its positive and negative comparison examples CEi, a loss calculation loss 460 may be performed to determine a contrast loss CL. Specifically, to calculate the contrast loss CL, the current feature representation VFx may be compared with the positive and negative comparison examples CEi to calculate the corresponding similarities with the corresponding comparison examples. The contrast loss may encourage similarities (e.g., small distances) with the positive comparison example CE1 and discourage similarities with the negative comparison examples CE2, CE3.

[0080] As a similarity measure, for example, cosine similarity can be used, e.g. Although other similarity measures such as soft cosine similarity are possible. Optionally, the similarity measure may not be applied directly to the feature representation z v and z pf itself, but rather the corresponding trainable function f applied to the feature representation v (z v ), f pf (z pf ), such as a non-linear trainable function, such as a shallow NLP including one or two layers. These functions are usually trained jointly with the video feature extractor. It is found that using trainable functions improves performance by increasing flexibility in similarity calculation.

[0081] As a contrastive loss function, the noise contrast estimation loss, in particular the InfoNCE loss, can be used. For example, combined with the application of a temperature parameter τ, the loss can be calculated as follows

[0082]

[0083] Here, sim stands for cosine similarity, f v and f pf is a trainable function, such as a small MLP head, and τ is a temperature parameter. The positive pairs are in the numerator. The sum in the denominator is taken over the set of negative pairs and additionally includes the positive pairs. Minimizing this loss maximizes the similarity of the positive pairs and minimizes the similarity of the negative pairs.

[0084] As known per se, the InfoNCE loss provides a lower bound on the mutual information. From this perspective, minimizing the contrastive loss shown above can be interpreted as maximizing the mutual information between the current feature representation PFR extracted by the video feature extractor VFx and the features extracted from the past and future pairs by another video feature extractor FVFx:

[0085]

[0086] To most accurately approximate the mutual information, negative pairs can be selected by sampling from the marginal product. Interestingly, while selecting a combination of easy negatives and temporally hard negatives as described above rather than sampling directly from the marginal product may provide a less accurate approximation of the mutual information, it has been found to provide a stronger training signal and thereby contribute more to the quality of the learned representation.

[0087] The contrast loss CL can be used to derive a training signal to update the parameters of the video feature extractor VFx. Moreover, any trainable parameters of the video feature extractor FVFx and / or the contrast loss calculation Loss can be updated based on the training signal. For example, the training signal can be derived from an objective function including a contrast loss. Various known training techniques for optimizing the objective function can be used, such as gradient descent, in particular stochastic gradient descent. For example, an Adam optimizer can be used, such as that disclosed in "Adam: A Method for Stochastic Optimization" by Kingma and Ba (available at https: / / arxiv.org / abs / 1412.6980 and incorporated herein by introduction). It is well known that such optimization methods can be heuristic and / or reach local optimality. Training can be performed on an instance-by-instance basis or in batches, such as up to or at least 64 or up to or at least 256 instances. For example, in batch training, a training video sequence can be selected from the batch, and additional negative comparison examples can be extracted from other video sequences in the batch. Specifically, using Adam with 10 -3 The learning rate and 10 -5 When the validation loss stabilizes, the learning rate can be reduced to, for example, 1 / 10.

[0088] Figure 5a A detailed but non-limiting example of how feature representations are extracted and comparison examples are shown. This example highlights architectural choices for the video feature extractor and additional video feature extractors that have been found to work particularly well with the training techniques described herein. For example, the techniques described with respect to this figure can be used with Figure 4 training combination.

[0089] Shown in the figure is a training video sequence TVS 500. From the training video sequence TVS, a current subsequence, a past subsequence preceding the current subsequence, and a future subsequence following the current subsequence can be selected.

[0090] In the example illustrated in the figure, the past, present and future subsequences are each divided into one or more adjacent fixed-length blocks. The lengths of the blocks of all subsequences are the same, for example, a block may include at least two frames, at most or at least five frames, or at most or at least ten frames.

[0091] In this example, the past subsequence is shown as including a single block PB 510. Also, the future subsequence in this example includes a single block FB 530. The present subsequence in this example includes four blocks VB1 521; VB2 522; VB3 523; and VB4 524. These numbers of blocks are for illustrative purposes only. However, having a single past and future block and multiple present blocks is a good choice because it prevents the indirect task of training from becoming too simple while providing enough information about the present subsequence to perform temporal reasoning. More generally, the combined number of past and future blocks can be at most equal to or even strictly less than the number of present blocks. For example, the number of present blocks can be at most or at least two, at most or at least four, or at most or at least ten. Regarding Figure 4 More possibilities for the number of blocks per subsequence are discussed.

[0092] As shown in the figure, the block feature extractor BFx 560 can be applied to the corresponding blocks of the past, present and future subsequences. As a result, the corresponding block feature representations can be extracted, for example, the block feature representation PBF 570 of the past block PB; the corresponding block feature representations VBF1 571 of the corresponding current blocks VB1, VB2, VB3, VB4; VBF2 572; VBF3 573; and VBF4, 574; and the block feature representation FBF 575 of the future block FB. The block feature extractor BFx is preferably trained as part of the training video feature extractor. Interestingly, the same block feature extractor BFx can be applied to the past, present and future blocks, so that the block feature extractor BFx can be trained on more data and the task of calculating the comparison loss can be better performed. However, it is also possible to use separate block feature extractors for the present on the one hand and for the past and the future on the other hand.

[0093] The block feature extractor BFx preferably preserves at least the spatial relationship of its input. That is, the block feature representation can have spatial dimensions corresponding to those of its input or a scale thereof. However, the block feature extractor does not need to preserve the temporal dimension. Block feature extractors typically take a fixed-size input, such as a given number of frames of a given size. For example, an input block can have dimensions of 5x128x128x3: 5 frames of 128x128 pixels, with 3 RGB channels. Applying a block feature extractor can, for example, result in a block feature representation with dimensions of 4x4x256, where 4x4 corresponds to the spatial position, 256 is the number of channels, and there is no temporal dimension.

[0094] For example, the block feature extractor may be a 3D convolutional neural network (3D-CNN), e.g., a neural network comprising 3D convolutions applied convolutionally across the spatial and temporal dimensions of the input video block. As a specific example, a 2D-3D version of ResNet18 may be used, with 3D convolutions applied in the last two layers. It is also possible to use a block feature extractor that uses 3D convolutions in all its layers, such as the R3D architecture known per se.

[0095] Thus, for example, by applying a block feature extractor BFx to a current subsequence of n blocks, n feature maps VBFi output by the block feature extractor may be obtained. Individual feature maps may not have a time dimension, but a sequence of feature maps VBFi may be considered a time dimension, e.g., the output of a block feature extractor for a sequence of multiple blocks may be considered a volume with a time dimension, e.g., size nx4x256.

[0096] Based on the extracted blocks, the current feature representation PFR 550 of the current subsequence VB1-VB4 can be derived by applying a trainable aggregation function Agg-V 580. Similarly, based on the positive example pair 581 in which the block feature representation of the past subsequence PBF is preceded by the block feature representation of the future subsequence FBF, a positive example comparison example CE1 551 can be derived by applying another trainable aggregation function Agg-PF 585, and similarly, based on the past and future exchanged negative example pairs 582, a negative example comparison example CE2 552 can be derived. The aggregation functions Agg-V, Agg-PF can be the same, but the inventors have found that using separate aggregation functions can provide better results.

[0097] For example, as an aggregation function, a convolutional recurrent model can be used, for example, a convolutional recurrent neural network, such as ConvGRU. In this case, aggregation along the spatial dimension (e.g., average or maximum aggregation) can be used to make the features of the feature representation PFR and / or the comparison example CEi spatially invariant. It is also possible to apply aggregation to the input of the aggregation function, in which case a non-convolutional recurrent model, such as LTSM or GRU, can be used. In general, recursive models have the advantage that variable length inputs (e.g., variable number of blocks) can be used. If not required, it is also possible to use an aggregation model configured for fixed length input. For example, the aggregation function Agg-PF can take only two block representations PBF, FBF as input (possibly aggregated along the spatial dimension), and in this case no recursion is required. For example, the aggregation function Agg-PF can be connected in series.

[0098] Figure 5b A detailed but non-limiting example of how to extract feature representations from a video sequence is shown. For example, this example can be used with Figure 4 or Figure 5a This example demonstrates the use of spatial transformations for data augmentation, as well as the use of convolutional recurrent models and pooling for extracting spatially independent features. However, these individual aspects can also be implemented without implementing the other aspects.

[0099] In particular, the figure shows how, for training purposes, respective spatial transforms may be applied to the present, past, and future subsequences of a training video sequence TVS 500. Similar to FIG5 , in this example, the respective subsequences are divided into blocks of fixed length. As an illustration, in the figure, the past subsequence comprises a single block PB 510; the present subsequence comprises four blocks VB1 521; VB2 522; VB3 523; and VB4 524; and the future subsequence comprises a single block FB 530. The spatial transforms may then be applied block by block, e.g., a first transform TP 541 may be applied to a block PB of the past subsequence; a second transform TV 542 may be applied to a block VBi of the present subsequence; and / or a third transform TF 543 may be applied to a block TF of the future subsequence.

[0100] For example, the applied transformations may include one or more spatial transformations, such as one or more of cropping (e.g., random, horizontal or vertical) and flipping (e.g., horizontal or vertical); and / or one or more additional transformations, such as frame-by-frame color jittering that interrupts optical flow. The (one or more) transformations are typically applied consistently to frames in a block and blocks in a subsequence (although the latter is not required), but preferably, the transformations TP, TV and TF applied to corresponding subsequences are different in what transformations are applied and / or with what parameters. It has been found that this improves the robustness of the extracted representation. However, corresponding positive and negative comparison examples are typically extracted from the same transformed past and future subsequences. A transformation typically does not change the dimensionality of its input.

[0101] After applying the transformation, the feature extractor and further feature extractors may be applied to extract the current feature representation and positive and negative comparison examples. For example, this may be as described in reference Figure 5a In this figure, a specific example of extracting the current feature representation PFR 550 is shown. Figure 5a , which may involve applying a block feature extractor BFx 560 to the corresponding blocks of the present subsequence, in this case transformed by the transform TV. This may result in corresponding block feature representations VBF1 571; VBF2 572; VBF3 573; and VBF4 574. The same block feature extractor BFx may also optionally be applied to the (in this case, transformed) blocks of the past and future subsequences, and further processed to obtain comparative examples, as also referred to in Figure 5a discussed.

[0102] The block feature representation VBFi may have spatial dimensions corresponding to the spatial dimensions of a block of the video sequence TVS. The block feature representation VBFi may not have a temporal dimension, for example, may have three dimensions corresponding to a 2-D space and multiple features, for example, of size 4x4x256, with 4x4 spatial dimensions and 256 number of channels.

[0103] As shown in the figure, the convolutional recurrent model CRM 581 can be applied to the block feature representation VBFi of the current subsequence to obtain the convolutional feature map CFM 571. Applying the recurrent model CFM may include repeatedly updating the state of the recurrent model by inputting the corresponding block feature representation. The state may correspond to the input in space, and the update operation may be applied convolutionally at least along the spatial dimension of the corresponding block feature representation. For example, the recursive convolutional model may be a recursive convolutional neural network, such as a convolutional gated recurrent unit (ConvGRU) or the like. Therefore, the convolutional feature map CFM may be obtained with the same dimensions as the block feature representation, and scaling may be achieved, for example, dimensions of 4x4x256. For example, the convolutional recursive model can be applied with a spatial kernel of 1 to aggregate the feature map VBFi along the time dimension. For the convolutional recursive model, relatively few layers may be sufficient, for example, the number of layers may be one, at most two, or at most five.

[0104] In the pooling operation Pool 582, the convolutional feature map CFM may be pooled at least along its spatial dimension (and if the convolutional feature map CFM has a temporal dimension, then possibly along the temporal dimension). For example, the pooling may be an average pooling or a maximum pooling. In this way, feature representations PFR may be obtained using spatially and temporally independent features (e.g., feature vectors). For example, given a convolutional feature map CFM of size 4x4x256, a feature vector PFR of length 256 may be obtained.

[0105] As an alternative, pooling can be applied before applying the recurrent model, which then does not require convolution. For example, pooling can be applied to the block feature representation VBFi to obtain a block representation of size 1x1x256, for example, in other words, a feature vector representing the corresponding block. These feature vectors can then be processed by the recurrent model to obtain the current feature representation, for example, also a feature vector of length 256.

[0106] Therefore, a video feature extractor that extracts a current feature representation PFR from a current subsequence VBi may include a block feature extractor BFx; a convolutional recursive model CRM; and a pooling operation Pool. At least the block feature extractor BFx and the recursive model CRM may have trainable parameters. Another video feature extractor having a similar architecture to the video feature extractor may be used to extract positive and negative comparison examples. However, it is found that using a separate model is beneficial, for example, a convolutional feature map with a different set of parameters may be used for the other video feature extractor.

[0107] Figure 6 A block diagram of a computer-implemented unsupervised learning method 600 for training a video feature extractor is shown. The video feature extractor may be configured to extract feature representations from a video sequence. The method 600 may correspond to Figure 1 However, this is not limiting, as method 600 may also be performed using another system, apparatus, or device.

[0108] The method 600 may include, in an operation entitled "Accessing Training, Model Data," accessing 610 training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor. The method 600 may include, in an operation entitled "Training the Video Feature Extractor," training 620 the video feature extractor. The training operation 620 may include, in an operation entitled "Selecting Current, Previous, and Subsequences," selecting 630 from a training video sequence of the plurality of training video sequences: a current subsequence, a previous subsequence that is previous to the current subsequence; and a subsequent subsequence that is subsequent to the current subsequence. The training operation 620 may include, in an operation entitled "Applying the Video Feature Extractor," applying 640 the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence. The training operation 620 may include, in an operation entitled "Deriving a Signal from Joint Predictability of the Past and Future Given the Current," deriving 650 a training signal from the joint predictability of previous and subsequent subsequences given the current feature representation. The training operation 620 may include updating 660 a set of parameters for the video feature extractor based on the training signal, in an operation entitled "Update Parameters."

[0109] The method 600 may further include, in an operation entitled "OUTPUT VIDEO FEATURE EXTRACTOR," outputting 670 the trained video feature extractor.

[0110] Figure 7 A block diagram of a computer-implemented method 700 for extracting feature representations from a video sequence is shown. The method 700 may correspond to Figure 2 or Figure 3However, this is not limiting, as method 700 may also be performed using another system, apparatus, or device.

[0111] Method 700 may include, in an operation entitled "Accessing Model Data", accessing 710 represents a method according to the computer-implemented methods described herein (e.g., Figure 6 The method 700 may include, in an operation titled "Obtain a video sequence", obtaining 720 a video sequence. The method 700 may include, in an operation titled "Apply a video feature extractor", applying 730 the video feature extractor to the video sequence to obtain a feature representation. The method 700 may include, in an operation titled "Output feature representation", outputting 740 the feature representation.

[0112] will appreciate that, generally speaking, Figure 6 Method 600 and Figure 7 The operations of method 700 may be performed in any suitable order (e.g., serially, simultaneously, or a combination thereof), subject to a specific order necessitated, for example, by an input / output relationship, where applicable. Some or all methods may also be combined, e.g., method 700 using a video feature extractor may then be applied to the video feature extractor trained according to method 600.

[0113] The method(s) may be implemented on a computer as a computer-implemented method, dedicated hardware, or a combination of both. Figure 8 As illustrated in , instructions for a computer (e.g., executable code) can be stored on a computer-readable medium 800, for example, in the form of a series 810 of machine-readable physical marks and / or as a series of elements having different electrical (e.g., magnetic) or optical properties or values. The executable code can be stored in a temporary or non-temporary manner. Examples of computer-readable media include memory devices, optical storage devices, integrated circuits, servers, online software, etc. Figure 8 An optical disc 800 is shown. Alternatively, the computer-readable medium 800 may include transitory or non-transitory data 810 representing model data representing a set of parameters for a video feature extractor trained according to the computer-implemented methods described herein.

[0114] Examples, embodiments or optional features, whether or not indicated as non-limiting, should not be construed as limiting the invention as claimed.

[0115] In the claims, any reference marks placed between brackets shall not be interpreted as limiting the claims. The use of the verb "comprise" and its conjugations does not exclude the presence of elements or phases other than those stated in the claims. The article "one" or "an" before an element does not exclude the presence of multiple such elements. Expressions such as "at least one of each" when preceding a list or group of elements indicate that all elements or any subset of elements are selected from the list or group. For example, the expression "at least one of A, B, and C" should be understood to include only A, only B, only C, both A and B, both A and C, both B and C, or all A, B, and C. The present invention can be implemented by means of hardware including several different elements, and by means of a suitably programmed computer. In a device claim that lists several components, several of these components can be embodied by the same item of hardware. The mere fact that certain measures are recorded in mutually different dependent claims does not indicate that the combination of these measures cannot be used advantageously.

Claims

1. A computer-implemented unsupervised learning method for training a video feature extractor, wherein the video feature extractor is configured to extract feature representations from a video sequence, the method comprising the following steps: accessing training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor; The video feature extractor is trained by: Selecting from the training video sequences of the plurality of training video sequences: a current subsequence, a previous subsequence preceding the current subsequence; and a subsequent subsequence subsequent to the current subsequence; Applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence; derive a training signal from the joint predictability of previous and subsequent subsequences given the current feature representation, wherein deriving the training signal comprises extracting positive comparison examples from positive pairs of a preceding subsequence followed by a subsequent subsequence; Extracting negative comparison examples from the subsequent subsequence followed by the negative example pairs of the previous subsequence; and determining a contrastive loss based on comparing the current feature representation with positive and negative comparison examples; updating a parameter set of a video feature extractor based on the training signal; Output the trained video feature extractor.

2. The method according to claim 1, further comprising: extracting additional negative comparison examples from first and second additional subsequences of additional training video sequences different from the training video sequence; as well as An additional negative comparison example is used to determine the contrastive loss.

3. The method according to claim 1, further comprising: A block feature extractor is applied to corresponding fixed-length blocks of one or more image frames of the current, previous, and subsequent subsequences to extract corresponding block feature representations. 4 . The method of claim 3 , wherein the current subsequence comprises a plurality of blocks, and the previous and subsequent subsequences each comprise a single block.

5. The method of claim 3, wherein the block feature extractor is a 3D convolutional neural network.

6. The method of claim 3, wherein applying the video feature extractor to the current subsequence comprises applying a recursive convolutional model to a block feature representation of the current subsequence to obtain a convolutional feature map, and aggregating the convolutional feature map at least along its spatial dimension.

7. The method according to claim 1, further comprising: A corresponding spatial transform is applied to one or more of the current, previous, and subsequent subsequences.

8. The method according to claim 1, further comprising: The sampling rate of the training video sequence is downsampled before selecting the current, previous and subsequent subsequences.

9. The method according to claim 1, further comprising: Obtain labeled training data and train an additional machine learning model on the labeled training data, wherein the additional machine learning model is configured to determine a model output based on the video sequence based on extracting a feature representation of the video sequence using a video feature extractor.

10. A computer-implemented method for extracting feature representations from a video sequence, the method comprising the steps of: Access model data representing a trained video feature extractor, the video feature extractor being trained as follows: accessing training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor; The video feature extractor is trained as follows: Selecting from the training video sequences of the plurality of training video sequences: a current subsequence, a previous subsequence preceding the current subsequence; and a subsequent subsequence subsequent to the current subsequence; Applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence; deriving a training signal from the joint predictability of a previous and subsequent subsequence given a current feature representation, wherein deriving the training signal comprises extracting positive comparison examples from positive pairs of a previous subsequence followed by a subsequent subsequence; Extracting negative comparison examples from the subsequent subsequence followed by the negative example pairs of the previous subsequence; and determining a contrastive loss based on comparing the current feature representation with positive and negative comparison examples; updating a parameter set of a video feature extractor based on the training signal; Outputting the trained video feature extractor; Obtaining a video sequence; applying a video feature extractor to the video sequence to obtain a feature representation; as well as Output feature representation.

11. A method according to claim 10, wherein the video feature extractor is included in a machine learnable control model for a computer control system configured to interact with an environment, wherein the video sequence includes a video-based representation of the computer control system and / or the environment, and wherein the method further includes applying the machine learnable control model to obtain control data for use in controlling the computer control system.

12. An unsupervised learning system for training a video feature extractor, wherein the video feature extractor is configured to extract feature representations from a video sequence, the system comprising: a data interface configured to access training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor; A processor subsystem is configured to train a video feature extractor and output the trained video feature extractor, wherein the training comprises: Selecting from the training video sequences of the plurality of training video sequences: a current subsequence, a previous subsequence preceding the current subsequence; and a subsequent subsequence subsequent to the current subsequence; Applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence; deriving a training signal from the joint predictability of a previous and subsequent subsequence given a current feature representation, wherein deriving the training signal comprises extracting positive comparison examples from positive pairs of a previous subsequence followed by a subsequent subsequence; extracting negative comparison examples from negative pairs of a subsequent subsequence followed by a previous subsequence; and determining a contrastive loss based on comparing the current feature representation to the positive and negative comparison examples; The parameter set of the video feature extractor is updated based on the training signal.

13. A system for extracting feature representations from a video sequence, the system comprising: A data interface configured to access model data representing a trained video feature extractor, the video feature extractor being trained by: accessing training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor; The video feature extractor is trained as follows: Selecting from the training video sequences of the plurality of training video sequences: a current subsequence, a previous subsequence preceding the current subsequence; and a subsequent subsequence subsequent to the current subsequence; Applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence; deriving a training signal from the joint predictability of a previous and subsequent subsequence given a current feature representation, wherein deriving the training signal comprises extracting positive comparison examples from positive pairs of a previous subsequence followed by a subsequent subsequence; Extracting negative comparison examples from the subsequent subsequence followed by the negative example pairs of the previous subsequence; and determining a contrastive loss based on comparing the current feature representation with positive and negative comparison examples; updating a parameter set of a video feature extractor based on the training signal; Outputting the trained video feature extractor; a video interface configured to obtain a video sequence captured by a camera; A processor subsystem is configured to obtain a video sequence via a video interface; apply a video feature extractor to the video sequence to extract a feature representation; and output the feature representation.

14. A non-transitory computer readable medium having stored thereon data representing instructions for training a video feature extractor, wherein the video feature extractor is configured to extract feature representations from a video sequence, the instructions, when executed by a processor system, causing the processor system to perform the following steps: accessing training data representing a plurality of training video sequences and model data representing a set of parameters for a video feature extractor; The video feature extractor is trained by: Selecting from the training video sequences of the plurality of training video sequences: a current subsequence, a previous subsequence preceding the current subsequence; and a subsequent subsequence subsequent to the current subsequence; Applying the video feature extractor to the current subsequence to extract a current feature representation of the current subsequence; derive a training signal from the joint predictability of previous and subsequent subsequences given the current feature representation, wherein deriving the training signal comprises extracting positive comparison examples from positive pairs of a preceding subsequence followed by a subsequent subsequence; Extracting negative comparison examples from the subsequent subsequence followed by the negative example pairs of the previous subsequence; and determining a contrastive loss based on comparing the current feature representation with positive and negative comparison examples; updating a parameter set of a video feature extractor based on the training signal; Output the trained video feature extractor.

Citation Information

Patent Citations

  • Determining a pulse signal from a video sequence

    CN107666853A

  • Embedded attitude learning method capable of carrying out self supervision on the basis of video time-space relationship

    CN107808144A

  • Computer Vision Systems and Methods for Unsupervised Representation Learning by Sorting Sequences

    US20190228313A1

  • Video action localization from proposal-attention

    WO2019071094A1