Video processing method, system, device and storage medium based on end-cloud collaboration

By collaboratively using single-modal and multi-modal models on the client side and the cloud side to extract and process video feature sequences, the problem of poor client-side reasoning in the existing technology is solved, achieving higher video processing accuracy and The burden on the cloud is reduced.

CN117789075BActive Publication Date: 2024-10-15TAOBAO CHINA SOFTWARE
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311646032.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-01
Publication Date
2024-10-15
Estimated Expiration
2043-12-01

AI Technical Summary

Technical Problem

The existing device-cloud collaborative inference solution reduces the burden on the cloud to a certain extent, but the device-side model inference effect is poor, the accuracy is low, and it cannot effectively process multi-modal video data.

Method used

Deploy a single-modal model and a multi-channel feature extractor on the client side, use the first visual feature extractor and the second visual feature extractor to extract the video feature sequence, and deploy a multi-modal model on the cloud side. Use the multi-modal model to When the single-modal model cannot obtain processing results that meet the requirements, further processing is performed.

Benefits of technology

It improves the accuracy of end-side inference and cloud inference results, reduces the cloud computing burden, and ensures the success and efficiency of video processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117789075B_ABST
    Figure CN117789075B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a video processing method, system, device and storage medium based on end-cloud collaboration. In the solution provided in the embodiments of the present application, two visual feature extractors are deployed on the end side, the first visual feature extractor can extract the first visual feature sequence of the video, and the second visual feature extractor can extract the second visual feature sequence of the video; a single-modal model is deployed on the end side, and the first visual feature extractor and the single-modal model cooperate with each other to complete end-side reasoning, reducing the cloud-side reasoning burden, and when the first visual feature extractor can perform personalized feature extraction for the end-side device, the end-side reasoning accuracy can be further improved; in addition, a multi-modal model is deployed on the cloud side, and when the single-modal model cannot obtain processing results that meet the requirements, multi-modal reasoning can be performed based on the visual feature sequences uploaded by the two visual feature extractors, which can not only ensure that the video is successfully processed, but also improve the accuracy of the cloud-side reasoning results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video processing technology, and in particular to a video processing method, system, device and storage medium based on end-cloud collaboration. Background Art

[0002] With the development of artificial intelligence technology, neural network models are widely used, such as understanding the content of live videos based on neural network models. At present, the model for understanding the content of live videos is deployed on the cloud. The end side (i.e. the anchor end) uploads the live video to the cloud. The cloud side understands the content of the live video based on the model and returns the result to the end side.

[0003] As the amount of live video increases, the cloud faces greater pressure in terms of response delay, communication, computing, and storage overhead. As a result, a solution for end-to-end collaborative inference has emerged, where part of the computing is performed on the end side and part of the computing is performed on the cloud side to jointly complete the inference (Synergistic Inference). This approach can reduce the burden on the cloud to a certain extent, but there are also problems such as poor end-side model inference effects, such as low accuracy. Summary of the invention

[0004] Multiple aspects of the present application provide a video processing method, system, device and storage medium based on end-cloud collaboration, which are used to more accurately process the video to be processed based on the collaboration of a single-modal model on the end side and a multi-modal model on the cloud side.

[0005] An embodiment of the present application provides a video processing system based on end-cloud collaboration, including: a single-modal model and a multi-channel feature extractor deployed on an end-side device, and a multi-modal model deployed on a cloud-side device; the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor, which are respectively used to extract a first visual feature sequence and a second visual feature sequence of a video to be processed, and upload them to the cloud-side device; the first visual feature extractor is also used to provide the first visual feature sequence to the single-modal model; the single-modal model is used to perform target processing on the video to be processed according to the first visual feature sequence; the multi-modal model is used to perform target processing on the video to be processed at least according to the first visual feature sequence and the second visual feature sequence when the single-modal model cannot obtain a processing result that meets the requirements.

[0006] An embodiment of the present application also provides a video processing method based on end-cloud collaboration, including: obtaining a video to be processed generated by a target end-side device, wherein a single-modal model and a multi-channel feature extractor are deployed on the target end-side device, and the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; inputting the video to be processed into the first visual feature extractor and the second visual feature extractor for visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; inputting the first visual feature sequence into the single-modal model to perform target processing on the video to be processed; when the single-modal model cannot obtain a processing result that meets the requirements, uploading the first visual feature sequence and the second visual feature sequence to a cloud-side device, and using the multi-modal model on the cloud-side device to perform target processing on the video to be processed.

[0007] An embodiment of the present application also provides a video processing method based on end-cloud collaboration, including: obtaining a live video generated by a live broadcast application in a live broadcast, wherein the live broadcast application runs on a target end-side device, and a single-modal model and a multi-channel feature extractor are deployed on the target end-side device, wherein the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; inputting the live video into the first visual feature extractor and the second visual feature extractor for visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; inputting the first visual feature sequence into the single-modal model, and performing target detection or content understanding on a target product in the live video; when the single-modal model cannot obtain a processing result that meets the requirements, uploading the first visual feature sequence and the second visual feature sequence to a cloud-side device, and using the multi-modal model on the cloud-side device to perform target detection or content understanding on the target product in the live video.

[0008] An embodiment of the present application also provides an electronic device, comprising: a memory and a processor; wherein the memory is used to: store one or more computer instructions; the processor is used to execute the one or more computer instructions to: execute the steps in the video processing method based on end-cloud collaboration.

[0009] An embodiment of the present application also provides a computer-readable storage medium, which, when the computer program is executed by a processor, enables the processor to implement the steps in the video processing method based on end-cloud collaboration.

[0010] In an embodiment of the present application, two visual feature extractors are deployed on the terminal side, the first visual feature extractor can extract a first visual feature sequence of the video, and the second visual feature extractor can extract a second visual feature sequence of the video; a single-modal model is deployed on the terminal side, and the first visual feature extractor and the single-modal model cooperate with each other to complete terminal-side reasoning, reducing the cloud-side reasoning burden, and when the first visual feature extractor can perform personalized feature extraction for the terminal-side device, the terminal-side reasoning accuracy can be further improved; in addition, a multi-modal model is deployed on the cloud side, and when the single-modal model cannot obtain processing results that meet the requirements, multi-modal reasoning can be performed based on the visual feature sequences uploaded by the two visual feature extractors, which can not only ensure that the video is successfully processed, but also improve the accuracy of the cloud-side reasoning results. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0012] Figure 1a A schematic diagram of the structure of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0013] Figure 1b Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0014] Figure 1c Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0015] Figure 1d Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0016] Figure 1e Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0017] Figure 1f A schematic diagram of a mark embedding provided for an exemplary embodiment of the present application;

[0018] Figure 1g Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0019] Figure 1h Another structural diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0020] Figure 1iA schematic diagram of the structure of a text encoder provided by an exemplary embodiment of the present application;

[0021] Figure 2 A schematic diagram of a process of a video processing method based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0022] Figure 3a Another schematic diagram of a process flow of a video processing method based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0023] Figure 3b An architecture diagram of a video processing method based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0024] Figure 3c A schematic diagram of a sample construction provided for an exemplary embodiment of the present application;

[0025] Figure 3d Another architecture diagram of a video processing method based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0026] Figure 3e and Figure 3f The recall rate performance of the end-cloud collaboration solution provided by the embodiment of the present application on the end side and the cloud side within one day is respectively shown;

[0027] Figure 3g and Figure 3h The memory and CPU consumed by the model inference process during a live broadcast and the model training process after the live broadcast are respectively shown in the end-cloud collaboration solution provided by the embodiment of the present application;

[0028] Figure 4 A schematic diagram of the structure of a video processing device based on end-cloud collaboration provided by an exemplary embodiment of the present application;

[0029] Figure 5 A schematic diagram of the structure of an electronic device provided as an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0031] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0032] In the existing technology, the end-cloud collaborative reasoning solution can reduce the burden on the cloud to a certain extent, but there are also problems such as poor end-side model reasoning effect, such as low accuracy. Figure 1a The schematic diagram of the end-cloud collaborative system shown in the figure shows that the main idea of ​​the end-cloud collaborative system is to perform part of the calculation on the end side and part of the calculation on the cloud side, and the end and the cloud jointly complete the reasoning. Specifically, the single-modal models can be set on the end-side device and the cloud-side device respectively. The reasoning module in the single-modal model 1 on the end side can perform reasoning calculations on the processed data. If the discrimination condition of the early exit discriminator 1 based on the early exit mechanism is met (for example, the confidence of the reasoning result is higher than the threshold), the reasoning result 1 can be output. If the discrimination condition is not met, the reasoning module on the cloud-side device can be used to continue the reasoning. If the discrimination condition of the early exit discriminator 2 based on the early exit mechanism is met, the reasoning result 2 can be output, so that the reasoning is completed based on the end side and the cloud side.

[0033] However, this existing technology has many defects. For example, both the terminal side and the cloud side are set up with single-modal models, which cannot accurately process video data that contains multiple modal data (such as text information, audio information, and image information). In addition, this existing technology often simply splits the computing task of the same model into two tasks, one executed on the cloud side and the other on the terminal side, thereby redistributing the computing load originally belonging to the terminal side device and using the computing power of the cloud side device to reduce the computing load of the terminal side device. In other words, the processing efficiency of this solution for the data to be processed is not much improved compared with the terminal side reasoning solution or the cloud side reasoning solution, and the accuracy of reasoning is still poor.

[0034] In response to the above technical problems, in some embodiments of the present application, a new end-cloud collaborative architecture is provided, in which a first visual feature extractor is added to the end side, and a multimodal model is deployed on the cloud side, wherein the first visual feature extractor and the unimodal model cooperate with each other to complete end-side reasoning and reduce the cloud-side reasoning burden. In addition, since the first visual feature extractor has the ability to perform personalized feature extraction for end-side devices, the end-side reasoning accuracy can be improved; further, in the event of end-side reasoning failure, multimodal reasoning can be performed through the multimodal model on the cloud side, which is conducive to improving the accuracy of the cloud-side reasoning results while ensuring that the video can be successfully processed.

[0035] The technical solutions provided by various embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0036] Figure 1b A schematic diagram of a video processing system based on end-cloud collaboration provided by an exemplary embodiment of the present application is shown in FIG. Figure 1b As shown, the video processing system includes a terminal device 10 and a cloud device 20. It should be noted that the number of the terminal devices can be one or more, and the interaction process between the cloud device 20 and each terminal device 10 is the same. Therefore, for the convenience of description, this embodiment will take the video processing system including one terminal device 10 and a cloud device 20 as an example for description, but does not limit the number of terminal devices 10.

[0037] The terminal device 10 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, a laptop computer, and a smart wearable device. The cloud device 20 can be implemented as a server, including a conventional server, a cloud server, a cloud host, a virtual center, and other servers, and this embodiment does not limit this. The server device mainly includes a processor, a hard disk, a memory, a system bus, etc., which is similar to a general computer architecture and will not be described in detail.

[0038] like Figure 1bAs shown, a multi-channel feature extractor 101 and a single-modal model 102 may be deployed on the terminal device 10. Among them, the multi-channel feature extractor 101 may perform multi-modal feature extraction on the video to be processed to obtain feature sequences of multiple modalities of the video to be processed. The multi-channel feature extractor 101 may include: a first visual feature extractor 1011 and a second visual feature extractor 1012. The first visual feature extractor 1011 and the second visual feature extractor 1012 may respectively extract a first visual feature sequence and a second visual feature sequence of the video to be processed. Relatively speaking, the first visual feature extractor 1011 can be considered as a personalized visual feature extractor adapted to the terminal device 10, and the first visual feature sequence extracted by it can be considered as a personalized visual feature sequence; the second visual feature extractor 1012 is a universal visual feature extractor suitable for each different terminal device 10, and the second visual feature sequence extracted by it can be considered as a universal visual feature sequence.

[0039] In this embodiment, the first visual feature extractor 1011 may provide the first visual feature sequence to the unimodal model 102. Correspondingly, the unimodal model 102 may perform target processing on the video to be processed according to the first visual feature sequence. Among them, the target processing may be any processing method for the video, such as video classification, target detection, content understanding, video segment label generation, commodity identification in the video, etc., which is not limited in this embodiment. In this way, a unimodal model is deployed on the end-side device. Compared with the multimodal model, the unimodal model requires fewer computing resources and storage resources and is more suitable for the end-side device. On the one hand, with the cooperation of the unimodal model and the first visual feature extractor unimodal model that can perform personalized feature extraction for the end-side device, video processing can be completed on the end-side, and the processing results can be directly used by the end-side device, which is more real-time and can reduce the reasoning burden of the cloud-side device.

[0040] In this embodiment, a multimodal model 201 may be deployed on the cloud-side device 20. The multimodal model 201 may perform target processing on the video to be processed at least according to the first visual feature sequence and the second visual feature sequence when the single-modal model 102 cannot obtain the processing result that meets the requirements. Among them, the single-modal model 102 may obtain the corresponding processing result by performing target processing on the video to be processed according to the first visual feature sequence. For example, the single-modal model 102 may classify the video to be processed according to the first visual feature sequence to obtain the video classification result. For example, the single-modal model 102 may classify the multiple video clips in the video to be processed into the beauty category, the person category, the food category and the pet category respectively; the single-modal model 102 may also perform commodity identification on the video to be processed according to the first visual feature sequence to obtain the commodity identification result (commodity A1 appears in the nth frame of the video to be processed, and commodities A2 and A3 appear in the mth frame). Correspondingly, failure to obtain the processing result that meets the requirements can be understood as the confidence of the obtained processing result is lower than the confidence, or the single-modal model 102 fails to output the processing result successfully.

[0041] That is to say, the first visual feature extractor 1011 and the second visual feature extractor 1012 can not only respectively extract the first visual feature sequence and the second visual feature sequence of the video to be processed, but also upload the first visual feature sequence and the second visual feature sequence to the cloud-side device. In the embodiment of the present application, the timing of uploading the visual feature sequence by the visual feature extractor is not limited, and it can be the following two situations: Case 1, the visual feature extractor extracts and uploads at the same time. Case 2: The visual feature extractor first caches the extracted visual feature sequence on the terminal-side device 10 and uploads it to the cloud-side device 20 when the unimodal model 102 cannot obtain the required processing results. The embodiment of the present application does not limit this.

[0042] In case 1, the visual feature extractor can extract the visual feature sequence while uploading the extracted visual feature sequence to the cloud-side device 20. When the unimodal model 102 does not output the processing result of the target processing of the video to be processed or does not output the processing result that meets the requirements, the terminal-side device 10 can send a multimodal processing notification to the cloud-side device 20, wherein the multimodal processing notification can be used to instruct the cloud-side device 20 to use the multimodal model 201 to perform target processing on the video to be processed. The cloud-side device 20 can use the multimodal model 201 to perform target processing on the video to be processed based on the received visual feature sequence according to the received multimodal processing notification.

[0043] In case 2, when the unimodal model 102 does not output the processing result of the target processing of the video to be processed or does not output the processing result that meets the requirements, the first visual feature extractor 1011 and the second visual feature extractor 1012 may upload the first visual feature sequence and the second visual feature sequence to the cloud-side device for the cloud-side device to further perform the target processing on the video to be processed. When uploading the first visual feature sequence and the second visual feature sequence, the terminal-side device may upload the visual feature sequence cached at the historical moment and the visual feature sequence extracted at the current moment to the cloud-side device 20 together, so that the cloud-side device 20 can use the multimodal model 201 to perform the target processing on the video to be processed based on the received visual feature sequence.

[0044] Among them, the target processing performed by the multimodal model 201 and the target processing performed by the unimodal model 102 are the same type of processing operations. For example, the unimodal model 102 can identify the goods in the video to be processed according to the first visual feature sequence. If it is impossible to obtain the processing result that meets the requirements, for example, the accuracy of the product identification is low, the multimodal model 201 can identify the goods in the video to be processed according to the first visual feature sequence and the second visual feature sequence. However, the multimodal model 201 and the unimodal model 102 may differ in the implementation methods of performing the target processing. In this way, the multimodal model can process the video to be processed more accurately when the unimodal model cannot obtain the processing result that meets the requirements, and compared with the solution in which all video processing is performed on the cloud-side device, the computing load of the cloud-side device can be reduced.

[0045] Specifically, the single-modal model of the end-side device can first perform single-modal coarse-grained processing on the video to be processed. If the processing result that meets the requirements cannot be obtained, the multi-modal model of the cloud-side device can further perform multi-modal fine-grained processing. Since the computational load of the multi-modal model is higher than that of the single-modal model, and the performance of the end-side device is lower than that of the cloud-side device, the multi-modal model and the single-modal model are deployed on the cloud-side device and the end-side device respectively. On the one hand, the single-modal model of the end-side device can first perform single-modal coarse-grained processing on the video to be processed, and the processing result can be directly used by the end-side device, which is more real-time; on the other hand, the multi-modal model performs target processing on the video to be processed only when the single-modal model cannot obtain the processing result that meets the requirements, which effectively reduces the computational load of the cloud-side device, thereby making full use of the respective advantages of the end-side device and the cloud-side device, and performing target processing on the video to be processed more accurately based on the end-cloud collaboration.

[0046] In some optional embodiments, the first visual feature extractor 1011 in the aforementioned embodiment is trained based on the personalized sample data generated by the terminal device 10 where it is located. When the user of the terminal device 10 interacts with the terminal device 10 at a historical moment, the terminal device 10 can generate personalized sample data for the user based on the user's interactive behavior. For example, when using the terminal device 10, the user can mark at least one frame of the target video with goods (i.e., mark the area where the goods are located in a certain frame), and the terminal device 10 can generate personalized sample data based on the user's product marking result for the target video (i.e., the target video after the user's product marking).

[0047] Since the personalized sample data generated by the end-side device 10 is generated based on the historical interaction behavior of the user, it is more in line with the user's operating habits. When the user needs to use the end-side device 10 to perform target processing on the video to be processed, the first visual feature extractor 1011 trained based on the personalized sample data can also process the video to be processed more accurately, and the processing result obtained is more in line with the user's wishes.

[0048] During the training process of the first visual feature extractor 1011, the terminal device 10 can obtain the target video after the user manually marks the product, and obtain the training sample according to the target video. The format of the training sample is I = (Ia, I+, I-), Ia is the anchor image, I+ is the positive example image, and I- is the negative example image. It should be noted that the product reference image corresponding to the product appearing in the target video is preset. For example, the user can preset the product reference image P1 of product A1, the product reference image P2 of product A2, and the product reference image P3 of product A3 in the product library. Each product contained in any frame in the target video can have a corresponding product reference image in the product library.

[0049] Specifically, for any frame image in at least one frame image in the target video that has been marked with a product by the user, the terminal device 10 can traverse all detection areas of the frame image; when the currently traversed detection area is closest to the product marked by the user, the detection area is used as the target detection area. If there is no detection area closest to the product marked by the user in the frame image, the frame image can be abandoned and the above operation can be performed on the next frame image. Furthermore, the terminal device can use the target detection area as Ia and the corresponding area in the product reference image corresponding to the target detection area as I+. The terminal device 10 can randomly select a detection area of ​​a product reference image that is different from the product marked by the user from all product reference images as I-; it can also select a detection area of ​​a product reference image that is closest to the aforementioned Ia from all product reference images as I-, and this embodiment does not impose any restrictions.

[0050] For any frame image in at least one frame image in the target video that has not been marked with user products, the terminal device 10 can form multiple combinations of the detection area in the frame image and the detection area of ​​each product reference image, and calculate the matching degree of the two detection areas in each combination in turn. Then, the terminal device 10 can use the detection area of ​​the frame image in the combination with the highest matching degree and the detection area in the corresponding reference image as Ia and I+, respectively. In addition, the terminal device 10 can randomly select a detection area of ​​a product reference image that is different from the automatically identified product as I-, or select the detection area of ​​the product reference image with the highest matching degree with Ia as I-.

[0051] Through the above method, the terminal side device 10 can obtain a training sample in the format of I=(Ia, I+, I-), input the training sample into the first visual feature extractor, and obtain the output representation vector corresponding to Ia, the representation vector corresponding to I+, and the representation vector corresponding to I-. The terminal side device 10 can calculate the positive example cosine distance between the representation vector corresponding to Ia and the representation vector corresponding to I+, and the negative example cosine distance between the representation vector corresponding to Ia and the representation vector corresponding to I-. Afterwards, the terminal side device 10 can determine the loss of the first visual feature extractor based on the positive example cosine distance and the negative example cosine distance, and adjust the parameters of the first visual feature extractor based on the loss until the model training end condition is met, and obtain the first visual feature extractor after training.

[0052] Furthermore, as video data is continuously generated, when the terminal device 10 generates new video data, new sample data can be generated based on the newly generated video data, and the first visual feature extractor 1011 can be iteratively updated continuously using the new sample data, thereby further improving the accuracy of the first visual feature extractor 1011 in extracting visual features for the terminal device 10.

[0053] In other optional embodiments, relative to the first visual feature extractor 1011, the second visual feature extractor 1012 is trained based on unified sample data generated by multiple end-side devices 10. The unified sample data refers to user interaction data uniformly collected from multiple end-side devices 10. In other words, the second visual feature extractor trained based on the unified sample data generated by multiple end-side devices 10 is universal and can perform unified feature extraction for each end-side device 10. However, compared to the aforementioned first visual feature extractor trained based on personalized sample data, the second visual feature extractor cannot perform personalized visual feature extraction for a certain end-side device 10. The training process of the second visual feature extractor using unified sample data is the same as the aforementioned training process of the first visual feature extractor, and will not be repeated here.

[0054] In this way, the first visual feature extractor configured on the terminal device 10 can be more adapted to the terminal device 10 than the second visual feature extractor, and can perform more personalized visual feature extraction on the video to be processed generated by the terminal device 10. In particular, in the architecture of "one cloud-side device 20 + multiple terminal devices 10", each terminal device 10 can use its personalized first visual feature extractor to extract visual features of the video to be processed, and cooperate with the unimodal model 102 to more accurately process the target video to be processed, which can give play to the natural advantage of the terminal device being close to the user and the data source, enhance the personalized and accurate reasoning ability of the terminal unimodal model, and relieve the pressure on the cloud-side device.

[0055] In the above or below embodiments of the present application, the implementation method of the multimodal model 201 for target processing of the video to be processed according to the first visual feature sequence and the second visual feature sequence is not limited. In some optional embodiments, the first visual feature sequence and the second visual feature sequence can be directly used as input data of the multimodal model 201, and input into the multimodal model 201 for it to perform target processing on the video to be processed. In other optional embodiments, the first visual feature sequence and the second visual feature sequence can be preprocessed to obtain target input features that conform to the multimodal model 201, and the target input features are input into the multimodal model 201 for it to perform target processing on the video to be processed according to the target input features.

[0056] In some optional embodiments, the method of preprocessing the first visual feature sequence and the second visual feature sequence to obtain the target input feature includes: using an encoder to encode the first visual feature sequence and the second visual feature sequence, and then encoding the first visual feature sequence and the second visual feature sequence to obtain two encoding results, which are spliced ​​as the target input feature. In other optional embodiments, such as Figure 1c As shown, the video processing system based on end-cloud collaboration may also include a prompt word generator 202 deployed on the cloud-side device 20, and the prompt word generator 202 may generate soft prompt words according to at least the first visual feature sequence and output them to the multimodal model 201. The soft prompt words (soft prompt) generated by the prompt word generator 202 may be used to prompt the multimodal model 201 with the context of the input information to guide the multimodal model 201 to output more accurately.

[0057] Further optionally, if Figure 1d As shown, the prompt word generator 202 can generate soft prompt words according to the first visual feature sequence and the second visual feature sequence. Figure 1e The process of generating the prompt word is described in detail:

[0058] like Figure 1eAs shown, a first image encoder 203, a second image encoder 204 and a first stitching module 205 may also be deployed on the cloud-side device 20. The first image encoder 203 and the second image encoder 204 may be the same image encoder or different image encoders, which is not limited in this embodiment. The first image encoder 203 may encode the first visual feature sequence to obtain a first visual feature embedding vector. The second image encoder 204 may encode the second visual feature sequence to obtain a second visual feature embedding vector. The operation of encoding the visual feature sequence may be understood as a feature projection operation on the visual feature sequence, that is, transforming the visual feature sequence into a preset space to obtain a visual feature embedding vector.

[0059] The first splicing module 205 may splice the first visual feature embedding vector and the second visual feature embedding vector, and insert at least one soft prompt mark at the starting position, and insert a segmentation mark at the splicing position, so as to obtain a third feature embedding vector. The number of soft prompt marks may be one or more, and may be customized according to design requirements, which is not limited in this embodiment. Specifically, Figure 1f As shown, [CLS]p is a soft prompt marker, which can be inserted into the head position of the first visual feature embedding vector and the second visual feature embedding vector to indicate the overall meaning of the first visual feature embedding vector and the second visual feature embedding vector. The number of soft prompt markers can be determined according to the number of soft prompt words required. Figure 1f [SEP]p is a segmentation marker that can be inserted into the concatenation position of the first visual feature embedding vector and the second visual feature embedding vector to separate the first visual feature embedding vector and the second visual feature embedding vector to indicate the boundary and relationship between the two embedding vectors.

[0060] After obtaining the third feature embedding vector, the first splicing module 205 may input the third feature embedding vector into the prompt word generator 202 to generate soft prompt words. Among them, the prompt word generator 202 has the ability to generate prompt words according to the feature embedding vector after pre-training. During the training of the prompt word generator 202, the cloud side device 20 may obtain the embedding vector training sample and its corresponding prompt word label, and use the embedding vector training sample to perform multiple rounds of iterative training on the prompt word generator 202 under the supervision of the prompt word label. In the current iteration round, the cloud side device 20 may calculate the loss function between the prompt word generated by the prompt word generator 202 and the prompt word label, and adjust the parameters of the prompt word generator 202 with the goal of converging the loss function to a preset error range, until the loss function converges to a preset error range, stop the iterative training, and output the trained prompt word generator 202. In the application embodiment, the network architecture of the prompt word generator 202 is not limited. For example, an encoder (Encoder) in a single-layer Transformer architecture may be used but is not limited to it.

[0061] Correspondingly, when the unimodal model 102 cannot obtain the processing result that meets the requirements, the multimodal model 201 performs target processing on the video to be processed according to the first visual feature sequence and the second visual feature sequence. An optional method includes: generating an initial input feature according to the second visual feature sequence, and embedding the soft prompt words generated above into the initial input feature to obtain the target input feature, and performing target processing on the video to be processed according to the target input feature. Figure 1g The process of the multimodal model 201 generating initial input features according to the second visual feature sequence is described in detail.

[0062] like Figure 1g As shown, the multi-channel feature extractor 101 may also include: a text feature extractor 1013, which is used to extract a text feature sequence of the video to be processed and upload it to the cloud side device 20. Among them, the text feature extractor 1013 can perform speech recognition on the video to be processed, convert the speech content in the video into text content, so as to extract the text feature sequence in the video to be processed.

[0063] Correspondingly, when the multimodal model 201 on the cloud-side device 20 generates the initial input features according to the second visual feature sequence, the initial input features may be generated according to the second visual feature sequence and the text feature sequence. Figure 1hAs shown, the cloud-side device 20 may also be deployed with: a second image encoder 204, a text encoder 206, and a second splicing module 207. The second image encoder 204 may encode the second visual feature sequence to obtain a second visual feature embedding vector. The text encoder 206 may encode the text feature sequence to obtain a text embedding vector. The structure of the text encoder 206 is as follows: Figure 1i As shown, the text encoder 206 can use the internal word segmentation module to perform word segmentation processing on the text feature sequence, that is, to split the text features in the text feature sequence into multiple smaller units (for example, words or word segments). Afterwards, the text encoder 206 can use the internal position determination module to determine the position where the text tag can be inserted in the text feature sequence after the word segmentation processing; and use the embedding module to insert the text tag [CLS] and the text tag [SEP] into the beginning and end of the text tag sequence respectively, to obtain a text embedding vector.

[0064] Based on this, the second concatenation module 207 can concatenate the second visual feature embedding vector and the text embedding vector to obtain the initial input feature. Afterwards, the multimodal model 201 can embed the soft prompt words generated above into the initial input feature to obtain the target input feature. In the embodiment of the present application, the network architecture of the multimodal model 201 is not limited. For example, its backbone network can adopt but is not limited to: a multi-layer Transformer architecture.

[0065] In this way, the cloud-side device 20 can improve the accuracy of the input features of the multimodal model 201 by generating soft prompt words, thereby guiding the multimodal model 201 to perform target processing on the video to be processed more accurately based on the soft prompt words.

[0066] In addition to the video processing system based on end-cloud collaboration provided in the above embodiments, the embodiment of the present application also provides a video processing method based on end-cloud collaboration, which will be described below in conjunction with the accompanying drawings.

[0067] Figure 2 is a flow chart of a video processing method based on end-cloud collaboration provided by an exemplary embodiment of the present application, which may include: Figure 2 Steps shown:

[0068] Step 21: Obtain a to-be-processed video generated by a target end-side device. A single-modal model and a multi-channel feature extractor are deployed on the target end-side device. The multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor.

[0069] Step 22: Input the video to be processed into the first visual feature extractor and the second visual feature extractor to extract visual features, so as to obtain a first visual feature sequence and a second visual feature sequence.

[0070] Step 23: Input the first visual feature sequence into the unimodal model to perform target processing on the video to be processed.

[0071] Step 24: When the single-modal model cannot obtain a processing result that meets the requirements, the first visual feature sequence and the second visual feature sequence are uploaded to the cloud-side device, and the multimodal model on the cloud-side device is used to perform target processing on the video to be processed.

[0072] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 21 to 24 can be a terminal device or a cloud device; for another example, the execution subject of steps 21 and 22 can be a terminal device, and the execution subject of steps 23 and 24 can be a cloud device; for another example, the execution subject of steps 21 to 23 can be a terminal device, and the execution subject of step 24 can be a cloud device; and so on, this embodiment does not limit this. In some exemplary embodiments, the method also includes: pre-training a first visual feature extractor using personalized sample data generated by a target terminal device; and pre-training a second visual feature extractor using unified sample data generated by multiple terminal devices.

[0073] In some exemplary embodiments, a multimodal model on a cloud-side device is used to perform target processing on a video to be processed, including: inputting at least a first visual feature sequence into a prompt word generator on the cloud-side device to generate soft prompt words, and providing the generated soft prompt words to the multimodal model; generating initial input features according to a second visual feature sequence, and inputting the initial input features into the multimodal model; in the multimodal model, embedding the soft prompt words into the initial input features to obtain target input features, and performing target processing on the video to be processed according to the target input features.

[0074] In some exemplary embodiments, at least the first visual feature sequence is input into a prompt word generator on a cloud-side device to generate soft prompt words, including: inputting the first visual feature sequence and the second visual feature sequence into the prompt word generator to generate soft prompt words.

[0075] In some exemplary embodiments, the first visual feature sequence and the second visual feature sequence are input into a prompt word generator to generate soft prompt words, including: encoding the first visual feature sequence using a first image encoder to obtain a first visual feature embedding vector; encoding the second visual feature sequence using a second image encoder to obtain a second visual feature embedding vector; splicing the first visual feature embedding vector and the second visual feature embedding vector, and inserting at least one soft prompt marker at the starting position, and inserting a segmentation marker at the splicing position to obtain a third feature embedding vector; inputting the third feature embedding vector into the prompt word generator to generate soft prompt words, so as to obtain at least one soft prompt word corresponding to at least one soft prompt marker.

[0076] In some exemplary embodiments, the multi-channel feature extractor also includes a text feature extractor, and the method also includes: inputting the video to be processed into the text feature extractor for text feature extraction to obtain a text feature sequence, and uploading it to the cloud side device; generating initial input features according to the second visual feature sequence, including: generating initial input features according to the second visual feature sequence and the text feature sequence.

[0077] In some exemplary embodiments, initial input features are generated based on a second visual feature sequence and a text feature sequence, including: encoding the second visual feature sequence using a second image encoder on a cloud-side device to obtain a second visual feature embedding vector; encoding the text feature sequence using a text encoder on the cloud-side device to obtain a text embedding vector; and concatenating the second visual feature embedding vector and the text embedding vector to obtain the initial input features.

[0078] On the basis of the above-mentioned embodiments, optionally, when the electronic device obtains the video to be processed generated by the target end-side device, it can obtain the live video generated by the live broadcast application on the target end-side device during the live broadcast process as the video to be processed, the live video includes the target product, and the first visual feature sequence and the second visual feature sequence are the visual features of the target product.

[0079] It should be noted that the user can pre-set multiple candidate products before the live broadcast, and the electronic device can respond to the user's candidate product setting operation to generate product description information for the candidate products. The product description information may include at least one of the following: image, category, name and description information. The product involved in the live video generated during the live broadcast is at least one of the multiple candidate products. The electronic device can pre-use the first visual feature extractor and the second visual feature extractor to extract visual features of the image of the candidate product respectively to obtain the third visual feature sequence and the fourth visual feature sequence of the candidate product, and establish a correspondence between the third visual feature sequence and the product description information, and provide the correspondence to the unimodal model. For example, before the live broadcast, the user pre-sets the product description information of candidate product 1, candidate product 2 and candidate product 3. The electronic device can use the first visual feature extractor to extract visual features of the images of the three candidate products in advance, and obtain the third visual feature sequence corresponding to the product description information of candidate product 1, the third visual feature sequence corresponding to the product description information of candidate product 2, and the third visual feature sequence corresponding to the product description information of candidate product 3, and send the correspondence between the three third visual feature sequences and the product description information to the unimodal model, so that the unimodal model can perform target processing on the processed video based on the correspondence, such as target detection, category recognition or content understanding.

[0080] Correspondingly, the electronic device can input the first visual feature sequence into the unimodal model, and when performing target processing on the video to be processed, the first visual feature sequence can be input into the unimodal model, and target detection or content understanding can be performed on the live video based on the first visual feature sequence and the third visual feature sequence of the candidate product.

[0081] The unimodal model can traverse the third visual feature sequence of each candidate product and calculate the similarity between the third visual feature sequence currently traversed and the first visual feature sequence. Afterwards, the unimodal model can take the candidate product corresponding to the third visual feature sequence whose similarity with the first visual feature sequence is higher than the similarity threshold as the target product, thereby completing target detection or content understanding.

[0082] In some optional embodiments, the electronic device may also upload the third visual feature sequence and the fourth visual feature sequence of the candidate product to the cloud-side device. Accordingly, when the electronic device uses the multimodal model on the cloud-side device to perform target processing on the video to be processed, it may be implemented based on the following steps:

[0083] Step 241: Input the first visual feature sequence and the second visual feature sequence into a multimodal model to generate multimodal data corresponding to the target product. The multimodal model may perform feature fusion on the first visual feature sequence and the second visual feature sequence to obtain multimodal data corresponding to the target product.

[0084] In some optional feature fusion methods, the multimodal model can respectively perform the first visual feature sequence and the second visual feature sequence. The first visual feature sequence and the second visual feature sequence are separately encoded to map the first visual feature sequence and the second visual feature sequence to the same shared In the feature space, we can complete The features of the first visual feature sequence and the second visual feature sequence are fused. In some other optional In the feature fusion method, the multimodal model can also perform feature splicing on the first visual feature sequence and the second visual feature sequence. To complete the feature fusion.

[0085] Step 242: Generate multimodal data of the candidate product based on the third visual feature sequence, the fourth visual feature sequence and the product description information of the candidate product stored on the cloud-side device. The multimodal model may perform feature fusion on the third visual feature sequence, the fourth visual feature sequence and the product description information to obtain multimodal data corresponding to the target product.

[0086] In some optional feature fusion methods, the multimodal model may separately encode the third visual feature sequence, the fourth visual feature sequence and the product description information, so as to map the third visual feature sequence, the fourth visual feature sequence and the product description information to the same shared feature space, thereby completing feature fusion in the shared feature space. In other optional feature fusion methods, the multimodal model may also perform feature splicing on the third visual feature sequence, the fourth visual feature sequence and the product description information, thereby completing feature fusion.

[0087] Step 243: Target detection or content understanding is performed on the target product according to the multimodal data of the target product and the multimodal data of the candidate products. The multimodal model can calculate the semantic feature distance between the multimodal data of the target product and the multimodal data of each candidate product, and use the candidate products whose semantic feature distance with the multimodal data of the target product meets the set conditions as the products corresponding to the target product to complete target detection. The multimodal model can also use the product description information of the candidate products whose semantic feature distance with the multimodal data of the target product meets the set conditions as the information understood from the target product to complete content understanding.

[0088] In this way, electronic devices can use the multimodal model on the cloud-side device to more accurately perform target processing on the video to be processed.

[0089] It is explained here that the video processing solution based on end-cloud collaboration provided by the embodiment of the present application can be applied to various video scenarios, such as live broadcast scenarios, short video scenarios, etc. In order to facilitate the understanding of the technical solution of the present application, the working principle of the end-cloud collaboration architecture provided by the present application is described in detail below, taking the live broadcast scenario as an example.

[0090] In the live broadcast scenario, in order to guide consumers to watch the product clips promoted in the live broadcast in a timely and accurate manner, it is necessary to have a good understanding of the live broadcast content and output high-quality and useful content understanding tags to consumers. These content understanding tags include but are not limited to: product name, category, brand, appearance, function, price, etc. Comparing short video content understanding and live broadcast content understanding, the average length of short videos is generally less than 1 minute, and content understanding can be performed through offline services; however, the average length of live broadcast videos is about 3 hours. If sparse sampling is used for content understanding of live broadcast videos, the real-time nature of the content understanding link will be affected, resulting in the content recommended to consumers not being timely and accurate, which will affect the conversion rate and user stay time. Therefore, it is necessary to understand the content of live broadcast videos in real time and at all times.

[0091] Traditional solutions are generally based on the framework of cloud services, that is, a model for content understanding is deployed on a cloud server. Each anchor's live broadcast device uploads the live video to the cloud server, and uses the cloud model to understand the content of the live video. Compared with terminal devices, cloud servers have more resources and stronger computing power, and can understand the content of live videos in real time and at all times to a certain extent.

[0092] However, with the development of live broadcast technology, the number of live broadcasters online at the same time is getting larger and larger, the duration of live broadcast is getting longer, and the content of live broadcast is getting richer and more diverse, which leads to several practical problems faced by cloud service-based frameworks, including high response latency, as well as real-time load and high cost in terms of communication, computing and storage overhead. To deal with these problems, the service request frequency of each anchor can be strictly limited, but this will seriously undermine the complete understanding of the live broadcast content, and some content (such as goods) in the live video cannot be recognized and understood in time.

[0093] In response to the above-mentioned technical problems existing in the above-mentioned live broadcast scenario, this embodiment proposes a video processing architecture based on end-cloud collaboration, deploys a multimodal model on the cloud, deploys a unimodal model on the anchor end, and deploys a general feature extractor and a personalized feature extractor suitable for each anchor end on the anchor end at the same time. The personalized feature extractor and the unimodal model cooperate with each other to first perform coarse-grained unimodal processing on the video to be processed. If the processing result that meets the requirements cannot be obtained, the multimodal model on the cloud side will further perform fine-grained multimodal processing based on the visual feature sequences extracted by the two feature extractors. On the one hand, considering the low performance of the host's equipment, a single-modal model is used on the host's side. The single-modal model can be used to perform single-modal coarse-grained processing on the video to be processed first, and the processing results can be directly used by the end-side device. With the advantage of the single-modal model being closer to the user and the data source, it can provide higher real-time response. On the other hand, considering the low accuracy of the single-modal model, a personalized feature extractor is added to the host's side to provide more accurate visual features for the single-modal model, thereby improving the recognition accuracy of the single-modal model. On the other hand, with the help of the resource and performance advantages of the cloud-side equipment, multimodal video is deployed on the cloud. Model, and the multimodal model performs target processing on the video to be processed only when the single-modal model cannot obtain the required processing results. This effectively solves the overhead problems faced by cloud-side devices in communication, computing, and storage, and reduces the computing load of cloud-side devices. When the single-modal model on the end side cannot obtain the required processing results, the multimodal model further performs multimodal processing to improve the recognition accuracy of the model. It can make full use of the respective advantages of the end-side devices and the cloud-side devices, and more accurately perform target processing on the video to be processed based on end-cloud collaboration, which effectively solves the technical problems existing in the existing technologies in the above-mentioned live broadcast scenarios.

[0094] The following will be combined Figure 3a , Figure 3b , Figure 3c and Figure 3d , the above process of this solution is further explained using a live broadcast scenario.

[0095] like Figure 3a As shown, a video processing method applied to a live broadcast scenario provided by an embodiment of the present application includes:

[0096] Step 31: obtain the live video generated by the live broadcast application during the live broadcast, where the live broadcast application runs on a target end-side device, where a single modal model and a multi-channel feature extractor are deployed, and the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor.

[0097] Step 32: Input the live video into the first visual feature extractor and the second visual feature extractor to extract visual features, so as to obtain a first visual feature sequence and a second visual feature sequence.

[0098] Step 33: Input the first visual feature sequence into the unimodal model to perform target detection or content understanding on the target product in the live video.

[0099] Step 34: When the unimodal model cannot obtain a processing result that meets the requirements, the first visual feature sequence and the second visual feature sequence are uploaded to the cloud-side device, and the multimodal model on the cloud-side device is used to perform target detection or content understanding on the target product in the live video.

[0100] Combine the following Figure 3b , Figure 3c and Figure 3d right Figure 3a The implementation of each step in the method is described in detail.

[0101] in, Figure 3b This is a schematic diagram of the deployment and implementation of the end-cloud collaboration architecture provided in the embodiment of the present application in a live broadcast scenario. Figure 3b As shown, different from the traditional cloud-based service framework, the embodiment of the present application utilizes the distributed computing capabilities of many anchor terminals and the natural advantage of the anchor terminal being closer to the data source and users, allowing the anchor terminal and the cloud to jointly complete the task of identifying products in the live video, on the one hand reducing the response delay, on the other hand reducing the cloud's overhead in computing, communication, storage, etc., and alleviating the burden on the cloud. Specifically, as Figure 3b As shown in Figure 2, the architecture includes a multimodal model deployed in the cloud and a unimodal model deployed on the anchor side. Figure 3b In the example, a unimodal model representing the host’s end is matched in a unimodal product pool; in addition, a two-way visual extractor and an automatic speech recognition module (i.e., the text feature extractor mentioned above) are deployed on the host’s end; Figure 3b In the above example, one visual extractor is a general visual extractor, denoted by φ (i.e., the second visual feature extractor in the previous text), and one visual extractor is a personalized visual extractor, denoted by φ 1 and φ 2 (i.e., the first visual feature extractor in the previous text); where the visual extractor φ 1 and φ 2 It is a personalized visual extractor for both anchors. Figure 3b In the figure, two anchor terminals are taken as an example, but it is not limited to this.

[0102] Regardless of which anchor is on the other hand, the live video is recognized by the automatic speech recognition module to obtain text features, such as Figure 3b The anchor at the lower left center receives the text message "This is a pair of high-waist jeans" through voice recognition. Figure 3bThe anchor at the lower right center receives the text message "I am carrying a beautiful envelope bag" through voice recognition. On the other hand, the live video is detected by the target detector, and the live video after target detection is input into the two-way visual extractor to extract the visual feature sequence. Figure 3b At the anchor’s end on the lower left, the product detected by the target is a pair of high-waist jeans. Figure 3b At the anchor end on the lower right, the product detected by the target is an envelope. Among them, the visual extractor φ extracts the general visual feature sequence, and the visual extractor φ 1 and φ 2 Extract personalized visual feature sequences respectively. Visual extractor φ 1 and φ 2 The extracted personalized visual feature sequences are sent to the unimodal model of the anchor end to which they belong. The unimodal model matches the personalized visual feature sequences in the unimodal product pool to obtain the product understanding content and list the name, category and other information of the product. Among them, the unimodal product pool stores the personalized visual feature sequences of each candidate product that the anchor needs to promote during the current live broadcast and the corresponding product understanding content. Furthermore, the personalized visual feature sequence of each candidate product in the unimodal product pool is obtained by pre-targeting the image or video clip of the candidate product by the target detector on the anchor end and then sending it to the personalized visual extractor for visual feature extraction.

[0103] Further, if Figure 3b As shown, the text information obtained by speech recognition and the visual feature sequence extracted by the two-way visual extractor will also be uploaded to the cloud; when the single-modal model on the host side cannot or cannot accurately understand the content of the product, the multimodal model on the cloud side will perform multimodal content understanding of the product based on the text information and the two-way visual feature sequence, combined with the multimodal product pool, and further return the content understanding results to the host side, and the host side can display the content understanding results on the screen of the live video. For example, the multimodal model can generate the multimodal features of the product based on the text information and the two-way visual feature sequence of the product in the current live broadcast, and then match the multimodal features of the product with the multimodal features of each candidate product in the multimodal product pool, and use the description information of the matching candidate product as the content understanding result of the product.

[0104] It is explained here that the multimodal product pool in the cloud stores the multimodal features of each candidate product that the anchor needs to promote during the current live broadcast and the corresponding product understanding content. The multimodal features of each candidate product include at least the general visual feature sequence, personalized visual feature sequence and text feature of the candidate product; wherein, the target detector can be used in advance to perform target detection on the picture or video clip of the candidate product and then send it to the general visual extractor for visual feature extraction to obtain the general visual feature sequence of the candidate product; correspondingly, the target detector can be used in advance to perform target detection on the picture or video clip of the candidate product and then send it to the personalized visual extractor for visual feature extraction to obtain the personalized visual feature sequence of the candidate product; text information can be extracted in advance from the picture or video clip or other descriptive information of the candidate product to obtain the text feature of the candidate product.

[0105] Users can add candidate products to be promoted in the live broadcast before the live broadcast begins. The anchor can use two visual extractors to extract visual features of the candidate products. On the one hand, the personalized visual feature sequence of the candidate products is saved in the unimodal product pool. On the other hand, the two visual feature sequences are uploaded to the cloud. The cloud will store these two visual feature sequences as part of the multimodal features of the candidate products in the multimodal product pool on the cloud.

[0106] It can be seen that in the embodiment of the present application, the visual feature extraction stage is sent down to the terminal device of each anchor, and a coarse-grained commodity pre-recognition stage is further introduced, that is, the stage of unimodal recognition based on personalized visual features. In the pre-recognition stage, in order to reduce the amount of calculation and improve the recognition efficiency, shorter live clips are usually used. For example, live clips within 4 seconds can be used. Only a small number of live clips may not reach high confidence recognition. Therefore, when the unimodal model cannot obtain the required recognition results, the multimodal model on the cloud can be used to perform fine-grained multimodal recognition based on longer video features. For example, the multimodal features used for multimodal recognition on the cloud come from longer live clips, such as live clips within 12 seconds. Simply put, the personalized visual feature sequence used by the end-side unimodal model comes from a shorter live clip, and the two-way visual feature sequence and text information used by the cloud-side multimodal model come from a longer live clip. By introducing single-modal coarse-grained pre-recognition on the end side and retaining multi-modal fine-grained recognition on the cloud side, task collaboration and feature collaboration between the end and the cloud can be achieved, thereby reducing the corresponding latency and cloud resource consumption.

[0107] Specifically, Figure 3b The visual extractor φ shown in the figure is trained based on a variety of live videos generated by multiple anchor terminals as unified sample data, and the visual extractor φ 1 and φ 2It is trained based on the live video produced by the anchor as personalized sample data. Therefore, it is a personalized visual extractor for each anchor.

[0108] Since the visual extractor φ 1 and φ 2 The training samples used are the live videos of each anchor. Therefore, it has the ability to extract personalized visual features for the anchor. Considering the large number of anchors, each anchor needs to deploy a personalized visual extractor. Therefore, the training of personalized visual extractors can be completed on the anchor side, which can reduce the model training load on the cloud.

[0109] The following will be combined Figure 3c , introduces the visual extractor φ 1 and φ 2 The sample data construction process for training is carried out. After each live broadcast, the model training can be carried out based on the live video data generated by this live broadcast. The sample format is I = (Ia, I+, I-), including an anchor image Ia, a positive image I+ and a negative image I-. These sample data need to be labeled, which can be done manually or based on automatic recognition.

[0110] Manual marking method: The anchor manually marks the live broadcast frame containing the product, and matches the detection area of ​​the marked live broadcast frame with the detection area of ​​the reference image of all candidate products in this live broadcast until a reference image with a detection area closest to the detection area in the marked live broadcast frame is found. The manually marked live broadcast frame is used as the anchor image Ia, and the reference image with the detection area closest to the manually marked live broadcast frame is used as the positive image I+; the negative image I- can randomly select a reference image of a candidate product that is not close to the detection area in the live broadcast frame marked by the anchor as a simple sample; or select a reference image of other candidate products whose detection area is closest to the anchor image Ia as a difficult sample. The ratio between simple samples and difficult samples can be preset according to application requirements. If no area of ​​the frame is found to be closest to a detection area of ​​the reference image of the marked product, the live broadcast frame is skipped. Among them, the detection area refers to the image area containing the product in the reference image or live broadcast frame. When searching for a reference image whose detection area is closest to the detection area in the marked live frame, or when selecting a reference image of another candidate product whose detection area is closest to the anchor image Ia, the distance between the detection areas of the two images can be calculated based on the feature information of the two images, and the reference image whose detection area is closest to the detection area in the marked live frame can be searched based on the distance, or the reference image of another candidate product whose detection area is closest to the anchor image Ia can be selected. The smaller the distance between the two images, the higher the similarity between the two images. Figure 3c As shown, after calculating the distances between the anchor image and each reference image to be 0.76, 0.88, 1.02, 1.06, 0.96, etc., the image corresponding to 0.76 is selected as the positive example image closest to the anchor image. Optionally, the above distance may be, but is not limited to, the Euclidean distance.

[0111] Automatic identification method: During the live broadcast process, for a given live broadcast frame, the single-modal model on the anchor side or the multi-modal model on the cloud side can be used to give the content understanding result of the live broadcast frame. The detection area in the given live broadcast frame can be used as the anchor image Ia, and the detection area in the reference image of the candidate product corresponding to the content understanding result can be used as the positive image I+; for the negative image I-, a detection area in the reference image of a candidate product can be randomly selected, or a detection area in the reference image of a candidate product that is automatically identified and different from the content understanding result, or a detection area in the reference image of the candidate product that is closest to the anchor image Ia can be selected. For the automatic identification method, the reasoning process in the live broadcast can be reused to construct training samples, and then the model training can be performed.

[0112] In the embodiment of the present application, not only a multimodal model is deployed in the cloud, but also a prompt generation module (i.e., the prompt word generator mentioned above) is deployed. Figure 3d This paper introduces the structure of the cloud-side multimodal model and the prompt generation module. Figure 3d As shown in the figure, the backbone network (referred to as backbone) and prompt generation module of the multimodal model are shown.

[0113] First, the backbone network of the multimodal model. In the embodiment of the present application, the backbone network architecture of the multimodal model is not limited. Optionally, in order to process the visual feature sequence and text information uploaded by the anchor, Figure 3d As shown, the visual feature sequence includes the unified visual feature sequence from the visual extractor φ and the visual feature sequence from the visual extractor φ 1 or φ 2 The personalized visual feature sequence, the text information comes from the automatic speech recognition module on the host side, Figure 3d In the figure, taking "This is a pair of high-waist jeans" as an example, in this embodiment, a single-stream multimodal model backbone network is used, that is, the visual feature sequence and text information are input as one input to the backbone network of the multimodal model, rather than multiple inputs.

[0114] In order to input the visual feature sequence and text information as one input to the backbone network of the multimodal model, both are preprocessed. (1) For the text feature sequence input, such as Figure 3dAs shown in the figure, the text encoder can be used to segment the text information recognized from the audio information of the host in the live broadcast, for example, into "this", "is"... "pants", and add special tags [CLS] and [SEP] to the beginning and end of the text tag sequence. The text tags and their positions in the sequence are embedded together by the text encoder. The text encoder is a module before the backbone network, which is used for the text information on the receiving end side. It is responsible for segmenting the text information and adding text tags to obtain the text embedding vector, as shown in Figure 3d The text embedding vector shown includes E [CLS] E 这 ……E 裤 E [SEP] (2) For the unified visual feature sequence, the image encoder is used to embed the unified visual feature sequence and output a unified visual embedding vector, such as Figure 3d The unified visual embedding vector shown includes E [区域1] E [区域2] ……E [区域n] . The position of the visual feature embedding is linearly mapped to the same dimension as the text embedding. The text embedding vector and the unified visual embedding vector are concatenated and input into the backbone network, such as Figure 3d As shown in the figure, the concatenated feature vector includes the text embedding vector, the unified visual embedding vector and the text tag, namely E [CLS] E 这 ……E 裤 E [SEP] E [区域1] E [区域2] ……E [区域n] Optionally, the backbone network of the multimodal model can adopt a multi-layer Transformer architecture, and the text embedding vector and the unified visual embedding vector can be concatenated and input into the Encoder in the multi-layer Transformer to finally output a cross-modal representation of the live broadcast segment.

[0115] like Figure 3dAs shown, in order to integrate the personalized visual feature sequences uploaded by each anchor end into the cloud-based multimodal model, an embodiment of the present application proposes a pluggable prompt generation module for automatically learning soft prompt words from the personalized visual feature sequence. The soft prompt words are further added before the text embedding vector and the unified visual embedding vector of the backbone network of the multimodal model. In addition, the unified visual feature sequence uploaded on the end side can be input into the prompt generation module together to learn the soft prompt words, which can improve the learning performance of the prompt generation module. Specifically, before the prompt generation module, two image encoders are used to project (feature transformation) the unified visual feature sequence and the personalized visual feature sequence respectively to obtain two visual embedding vectors, which are recorded as the unified visual embedding vector and the personalized visual embedding vector; the two visual embedding vectors are spliced ​​together, and [CLS]p and [SEP]p markers are inserted between the two to obtain the following: Figure 3d The eigenvector E shown [CLS] p E [CLS]p E [区域1] ……E [区域n] E [SEP]p E' [区域1] ……E' [区域n] , and input the feature vector into the prompt generation model. In this embodiment, the network architecture of the prompt generation module is not limited. Optionally, a single-layer Transformer architecture can be used. The feature vector can be input into the Encoder in the single-layer Transformer to learn the soft prompt word, and finally output the soft prompt word E' [CLS]p In the embodiment of the present application, unlike the text tag [CLS], [CLS]p is a soft prompt tag, and there can be multiple soft prompt tags, depending on the number of soft prompt words required. Among them, the learned representation of [CLS]p captures the overall meaning of the two visual feature sequences, while [SEP]p helps to understand the boundary between personalized and unified visual embedding sequences and capture the relationship between them. The final output soft prompt word E' [CLS]p is inserted into the input of the multimodal model, Figure 3d In order to output the soft prompt word E' [CLS]p Insert E [CLS] after.

[0116] In the end-cloud co-evolution framework provided in the embodiment of the present application, a unimodal model is deployed on each anchor end, which can process most live frames and upload the extracted unimodal features to the cloud. Secondly, in the embodiment of the present application, the anchor's manual marking behavior is used on the end side to construct samples and incrementally train the unimodal model to adapt to the heterogeneous and dynamic live content of different live anchors. In addition, considering that the personalized unimodal features on the end side are inconsistently distributed in the feature space and cannot be directly integrated into the multimodal model on the cloud, the embodiment of the present application also proposes a pluggable prompt generation module to convert personalized unimodal features into prompt embeddings, and further add them to the original input of the multimodal backbone network to guide the feature fusion of specific anchors. Through this end-cloud collaboration method, not only can the cloud-side reasoning burden be reduced, and the response delay and high computing, communication and storage overhead costs faced by the cloud side can be solved, but also the end-side reasoning accuracy can be improved.

[0117] In order to verify the beneficial effects of the end-cloud collaboration framework provided by the embodiment of the present application in the live broadcast scenario, an online experiment was conducted. During the online experiment, the implementation scheme of the end-cloud collaboration framework provided by the embodiment of the present application is as follows: FCOS is used as the target detector on the end side, MobileNetV2 is used as a unimodal retrieval model, and the retrieval model is implemented for thousands of people and thousands of models on the anchor side; the UNITER model is used on the cloud side as the backbone of the multimodal model. Specifically, during the live broadcast of each anchor, manual or automatic product recognition will be triggered, and training samples will be built and saved on the local device. When the live broadcast ends, the collected samples are fine-tuned to optimize the visual feature extractor. The new feature extractor will be used in the next live broadcast and will serve as the starting point for the next round of training.

[0118] Among them, the online experimental results verified the feasibility and efficiency of the end-cloud collaborative evolution framework provided by the embodiment of the present application from multiple angles such as model accuracy, communication overhead, computing overhead and memory overhead. Specifically, (1) the end-cloud collaborative framework saves 86% of online container resources. (2) The recall rate of product recognition based on pure personalized visual features on the end side increased by 0.98%, and the recall rate of multimodal product recognition on the cloud after integrating personalized visual features increased by 14.67%; Figure 3e and Figure 3f The recall rate performance of the client and cloud sides within one day is shown respectively; (3) Considering the resource limitations of the client side, the memory usage during the client side model training is controlled within a reasonable range to ensure the stability of the live broadcast. Figure 3g and Figure 3hThe memory and CPU consumed by the model inference process during a live broadcast and the model training process after the live broadcast are respectively shown. (4) Compared with the traditional solution of uploading the live video to the cloud for feature extraction and speech recognition, the framework provided by the embodiment of the present application significantly reduces the communication overhead by offloading speech recognition and visual feature extraction to each anchor end, uploading the text information of the product in the live frame, unified visual features and personalized visual features, and personalized visual features of the candidate products.

[0119] It should be noted that in some of the processes described in the above embodiments and the accompanying drawings, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The sequence numbers of the operations, such as 21, 22, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to different types.

[0120] The application embodiment also provides a video processing device based on end-cloud collaboration, such as Figure 4 As shown, the device includes: a video acquisition unit 401, used to: acquire a to-be-processed video generated by a target end-side device, on which a single-modal model and a multi-channel feature extractor are deployed, and the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; a feature extraction unit 402, used to: input the to-be-processed video into the first visual feature extractor and the second visual feature extractor for visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; a single-modal processing unit 403, used to: input the first visual feature sequence into the single-modal model, and perform target processing on the to-be-processed video; a multi-modal processing unit 404, used to: when the single-modal model cannot obtain a processing result that meets the requirements, upload the first visual feature sequence and the second visual feature sequence to a cloud-side device, and use the multi-modal model on the cloud-side device to perform target processing on the to-be-processed video.

[0121] Further optionally, the feature extraction unit 402 is also used to: pre-train the first visual feature extractor using personalized sample data generated by the target end-side device; and pre-train the second visual feature extractor using unified sample data generated by multiple end-side devices.

[0122] Further optionally, when the multimodal processing unit 404 uses the multimodal model on the cloud-side device to perform target processing on the video to be processed, it is specifically used to: at least input the first visual feature sequence into the prompt word generator on the cloud-side device to generate soft prompt words, and provide the generated soft prompt words to the multimodal model; generate initial input features according to the second visual feature sequence, and input the initial input features into the multimodal model; in the multimodal model, embed the soft prompt words into the initial input features to obtain target input features, and perform target processing on the video to be processed according to the target input features.

[0123] Further optionally, when the multimodal processing unit 404 inputs at least the first visual feature sequence into the prompt word generator on the cloud-side device to generate soft prompt words, it is specifically used to: input the first visual feature sequence and the second visual feature sequence into the prompt word generator to generate soft prompt words.

[0124] Further optionally, when the multimodal processing unit 404 inputs the first visual feature sequence and the second visual feature sequence into the prompt word generator to generate soft prompt words, it is specifically used to: encode the first visual feature sequence using a first image encoder to obtain a first visual feature embedding vector; encode the second visual feature sequence using a second image encoder to obtain a second visual feature embedding vector; splice the first visual feature embedding vector and the second visual feature embedding vector, and insert at least one soft prompt marker at the starting position, and insert a segmentation marker at the splicing position to obtain a third feature embedding vector; input the third feature embedding vector into the prompt word generator to generate soft prompt words, so as to obtain at least one soft prompt word corresponding to the at least one soft prompt marker.

[0125] Further optionally, the multi-channel feature extractor also includes a text feature extractor, and the feature extraction unit 402 is also used to: input the video to be processed into the text feature extractor for text feature extraction to obtain a text feature sequence, and upload it to the cloud side device; when the multimodal processing unit 404 generates the initial input feature according to the second visual feature sequence, it is specifically used to: generate the initial input feature according to the second visual feature sequence and the text feature sequence.

[0126] Further optionally, when the multimodal processing unit 404 generates the initial input feature based on the second visual feature sequence and the text feature sequence, it is specifically used to: encode the second visual feature sequence using the second image encoder on the cloud-side device to obtain a second visual feature embedding vector; encode the text feature sequence using the text encoder on the cloud-side device to obtain a text embedding vector; and concatenate the second visual feature embedding vector and the text embedding vector to obtain the initial input feature.

[0127] Further optionally, when the video acquisition unit 401 acquires the video to be processed generated by the target end-side device, it is specifically used to: acquire the live video generated by the live broadcast application on the target end-side device during the live broadcast process, as the video to be processed, the live video includes a target product, and the first visual feature sequence and the second visual feature sequence are the visual features of the target product; accordingly, the unimodal processing unit 403 inputs the first visual feature sequence into the unimodal model, and when performing target processing on the video to be processed, it is specifically used to: input the first visual feature sequence into the unimodal model, and perform target detection or content understanding on the live video according to the first visual feature sequence and the third visual feature sequence of the candidate product.

[0128] Further optionally, the feature extraction unit 402 is also used to: pre-extract visual features of the image of the candidate product using the first visual feature extractor and the second visual feature extractor respectively to obtain a third visual feature sequence and a fourth visual feature sequence of the candidate product; establish a correspondence between the third visual feature sequence and the product description information, and provide the correspondence to the unimodal model.

[0129] Further optionally, the feature extraction unit 402 is also used to: upload the third visual feature sequence and the fourth visual feature sequence of the candidate product to the cloud-side device; accordingly, when the multimodal processing unit 404 uses the multimodal model on the cloud-side device to perform target processing on the video to be processed, it is specifically used to: input the first visual feature sequence and the second visual feature sequence into the multimodal model to generate multimodal data corresponding to the target product; generate multimodal data of the candidate product based on the third visual feature sequence and the fourth visual feature sequence of the candidate product and the product description information of the candidate product stored on the cloud-side device; perform target detection or content understanding on the target product based on the multimodal data of the target product and the multimodal data of the candidate products.

[0130] In this embodiment, the first visual feature extractor on the end side can perform personalized feature extraction on the video to obtain a first visual feature sequence, and the second visual feature extractor can extract a second visual feature sequence of the video. The unimodal model on the end side can perform video processing based on the first visual feature sequence, and the multimodal model on the cloud side can perform video processing based on at least the first visual feature sequence and the second visual feature sequence when the unimodal model cannot obtain processing results that meet the requirements. In this way, the first visual feature extractor and the unimodal model on the end side can cooperate with each other to complete end-side reasoning and reduce the cloud-side reasoning burden; the first visual feature extractor has the ability to perform personalized feature extraction on the end-side device, thereby improving the end-side reasoning accuracy; when the end-side reasoning fails, multimodal reasoning can also be performed through the cloud to improve the accuracy of the cloud-side reasoning results. About the embodiments of the present application provided Figure 4 The detailed implementation and beneficial effects of each step in the illustrated device have been described in detail in the aforementioned embodiments and will not be elaborated on here.

[0131] Figure 5 A schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present application is shown in FIG. Figure 5 As shown, the device includes: a memory 501 and a processor 502 .

[0132] The memory 501 is used to store computer programs and can be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method used to operate on the electronic device.

[0133] In some embodiments, the processor 502 is coupled to the memory 501 and is used to execute a computer program in the memory 501, so as to: obtain a video to be processed generated by a target end-side device, on which a single-modal model and a multi-channel feature extractor are deployed, and the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; input the video to be processed into the first visual feature extractor and the second visual feature extractor for visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; input the first visual feature sequence into the single-modal model to perform target processing on the video to be processed; when the single-modal model cannot obtain a processing result that meets the requirements, upload the first visual feature sequence and the second visual feature sequence to a cloud-side device, and use the multi-modal model on the cloud-side device to perform target processing on the video to be processed.

[0134] In an optional embodiment, the processor 502 is further used to: pre-train the first visual feature extractor using personalized sample data generated by the target end-side device; and pre-train the second visual feature extractor using unified sample data generated by multiple end-side devices.

[0135] In an optional embodiment, when the processor 502 uses the multimodal model on the cloud-side device to perform target processing on the video to be processed, it is specifically used to: input at least the first visual feature sequence into the prompt word generator on the cloud-side device to generate soft prompt words, and provide the generated soft prompt words to the multimodal model; generate initial input features according to the second visual feature sequence, and input the initial input features into the multimodal model; in the multimodal model, embed the soft prompt words into the initial input features to obtain target input features, and perform target processing on the video to be processed according to the target input features.

[0136] In an optional embodiment, when the processor 502 inputs at least the first visual feature sequence into the prompt word generator on the cloud-side device to generate soft prompt words, it is specifically used to: input the first visual feature sequence and the second visual feature sequence into the prompt word generator to generate soft prompt words.

[0137] In an optional embodiment, when the processor 502 inputs the first visual feature sequence and the second visual feature sequence into the prompt word generator to generate soft prompt words, it is specifically used to: encode the first visual feature sequence using a first image encoder to obtain a first visual feature embedding vector; encode the second visual feature sequence using a second image encoder to obtain a second visual feature embedding vector; splice the first visual feature embedding vector and the second visual feature embedding vector, and insert at least one soft prompt marker at the starting position, and insert a segmentation marker at the splicing position to obtain a third feature embedding vector; input the third feature embedding vector into the prompt word generator to generate soft prompt words, so as to obtain at least one soft prompt word corresponding to the at least one soft prompt marker.

[0138] In an optional embodiment, the multi-channel feature extractor also includes a text feature extractor, and the processor 502 is also used to: input the video to be processed into the text feature extractor for text feature extraction to obtain a text feature sequence, and upload it to the cloud side device; when the processor 502 generates the initial input feature according to the second visual feature sequence, it is specifically used to: generate the initial input feature according to the second visual feature sequence and the text feature sequence.

[0139] In an optional embodiment, when the processor 502 generates the initial input feature based on the second visual feature sequence and the text feature sequence, it is specifically used to: encode the second visual feature sequence using the second image encoder on the cloud-side device to obtain a second visual feature embedding vector; encode the text feature sequence using the text encoder on the cloud-side device to obtain a text embedding vector; and concatenate the second visual feature embedding vector and the text embedding vector to obtain the initial input feature.

[0140] In an optional embodiment, when the processor 502 obtains the video to be processed generated by the target end-side device, it is specifically used to: obtain a live video generated by the live broadcast application on the target end-side device during the live broadcast process, as the video to be processed, the live video includes a target product, and the first visual feature sequence and the second visual feature sequence are visual features of the target product; accordingly, the processor 502 inputs the first visual feature sequence into the unimodal model, and when performing target processing on the video to be processed, it is specifically used to: input the first visual feature sequence into the unimodal model, and perform target detection or content understanding on the live video according to the first visual feature sequence and the third visual feature sequence of the candidate product.

[0141] In an optional embodiment, the processor 502 is also used to: pre-extract visual features of the image of the candidate product using the first visual feature extractor and the second visual feature extractor respectively to obtain a third visual feature sequence and a fourth visual feature sequence of the candidate product; establish a correspondence between the third visual feature sequence and the product description information, and provide the correspondence to the unimodal model.

[0142] In an optional embodiment, the processor 502 is also used to: upload the third visual feature sequence and the fourth visual feature sequence of the candidate product to the cloud-side device; accordingly, when the processor 502 uses the multimodal model on the cloud-side device to perform target processing on the video to be processed, it is specifically used to: input the first visual feature sequence and the second visual feature sequence into the multimodal model to generate multimodal data corresponding to the target product; generate multimodal data of the candidate product based on the third visual feature sequence and the fourth visual feature sequence of the candidate product and the product description information of the candidate product stored on the cloud-side device; perform target detection or content understanding on the target product based on the multimodal data of the target product and the multimodal data of the candidate products.

[0143] In other embodiments, the processor 502 is coupled to the memory 501 and is used to execute the computer program in the memory 501, so as to: obtain the live video generated by the live application in the live broadcast, the live application runs on the target end-side device, and the target end-side device is deployed with a single-modal model and a multi-channel feature extractor, the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; input the live video into the first visual feature extractor and the second visual feature to perform visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; input the first visual feature sequence into the single-modal model to perform target detection or content understanding on the target product in the live video; when the single-modal model cannot obtain the processing results that meet the requirements, upload the first visual feature sequence and the second visual feature sequence to the cloud-side device, and use the multi-modal model on the cloud-side device to perform target detection or content understanding on the target product in the live video. About the embodiments of the present application provided Figure 5 The detailed implementation and beneficial effects of each step in the illustrated device have been described in detail in the aforementioned embodiments and will not be elaborated on here.

[0144] Further, if Figure 5 As shown, the electronic device also includes: a communication component 503, a display 504, a power component 505, an audio component 506 and other components. Figure 5 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 5 In addition, Figure 5 The components in the dashed box are optional components, not mandatory components, and the specific components may depend on the product form of the electronic device. The electronic device of this embodiment can be implemented as a terminal device such as a desktop computer, a laptop computer, a tablet computer, a smart phone, or an IOT device, or a server device such as a conventional server, a cloud server, or a server array. If the electronic device of this embodiment is implemented as a terminal device such as a desktop computer, a laptop computer, a tablet computer, a smart phone, etc., it may include Figure 5 If the electronic device of this embodiment is implemented as a server device such as a conventional server, a cloud server or a server array, it may not include Figure 5 Components within the dashed box.

[0145] Accordingly, the present application also provides a computer-readable storage medium storing a computer program, which can achieve the above-mentioned Figure 2 The steps in the method embodiment shown may be executed by an electronic device.

[0146] In this embodiment, the first visual feature extractor on the end side can perform personalized feature extraction on the video to obtain a first visual feature sequence, and the second visual feature extractor can extract a second visual feature sequence of the video. The unimodal model on the end side can process the video according to the first visual feature sequence, and the multimodal model on the cloud side can process the video at least according to the first visual feature sequence and the second visual feature sequence when the unimodal model cannot obtain a processing result that meets the requirements. In this way, the first visual feature extractor and the unimodal model on the end side can cooperate with each other to complete the end-side reasoning and reduce the cloud-side reasoning burden; the first visual feature extractor has the ability to perform personalized feature extraction for the end-side device, thereby improving the end-side reasoning accuracy; when the end-side reasoning fails, multimodal reasoning can also be performed through the cloud to improve the accuracy of the cloud-side reasoning results.

[0147] The above-mentioned memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0148] The above-mentioned communication component is configured to facilitate wired or wireless communication between the device where the communication component is located and other devices. The device where the communication component is located can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G / LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

[0149] The above-mentioned display includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0150] The power supply assembly provides power to various components of the device where the power supply assembly is located. The power supply assembly may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device where the power supply assembly is located.

[0151] The above-mentioned audio component can be configured to output and / or input audio signals. For example, the audio component includes a microphone (Microphone, MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal.

[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-readable storage media (including but not limited to disk storage, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage, etc.) containing computer-usable program code.

[0153] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0154] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0155] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0156] In a typical configuration, a computing device includes one or more processors (Central Processing Unit, CPU), input / output interface, network interface and memory.

[0157] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change random access memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0160] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A video processing system based on end-cloud collaboration, characterized in that: include: The unimodal model and multi-channel feature extractor deployed on the end-side device, and the multimodal model and prompt word generator deployed on the cloud-side device; The multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor, which are respectively used to extract a first visual feature sequence and a second visual feature sequence of the video to be processed, and upload them to the cloud-side device; the first visual feature extractor is trained based on personalized sample data generated by the end-side device where it is located; the second visual feature extractor is trained based on unified sample data generated by multiple end-side devices; the first visual feature extractor is also used to provide the first visual feature sequence to the single-modal model; the single-modal model is used to perform target processing on the video to be processed according to the first visual feature sequence; The prompt word generator is used to generate soft prompt words according to at least the first visual feature sequence, and output the soft prompt words to the multimodal model; The multimodal model is used to generate initial input features according to the second visual feature sequence and embed the soft prompt words into the initial input features to obtain target input features when the single-modal model cannot obtain a processing result that meets the requirements; The video to be processed is subjected to target processing according to the target input feature.

2. The system according to claim 1, characterized in that The cloud-side device is also deployed with: A first image encoder, used for encoding the first visual feature sequence to obtain a first visual feature embedding vector; a second image encoder, configured to encode the second visual feature sequence to obtain a second visual feature embedding vector; The first splicing module is used to splice the first visual feature embedding vector and the second visual feature embedding vector, insert at least one soft prompt mark at the starting position, and insert a segmentation mark at the splicing position to obtain a third feature embedding vector, and input the third feature embedding vector into the prompt word generator to generate a soft prompt word.

3. The system according to claim 1, characterized in that The multi-channel feature extractor also includes: a text feature extractor, which is used to extract a text feature sequence of the video to be processed and upload it to the cloud-side device; When generating the initial input features according to the second visual feature sequence, the multimodal model is specifically used to: generate the initial input features according to the second visual feature sequence and a text feature sequence.

4. The system according to claim 3, characterized in that The cloud-side device is also deployed with: a second image encoder, configured to encode the second visual feature sequence to obtain a second visual feature embedding vector; A text encoder, used for encoding the text feature sequence to obtain a text embedding vector; The second concatenation module is used to concatenate the second visual feature embedding vector and the text embedding vector to obtain the initial input feature.

5. A video processing method based on end-cloud collaboration, characterized in that: include: Acquire a to-be-processed video generated by a target end-side device, wherein a single-modal model and a multi-channel feature extractor are deployed on the target end-side device, and the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; The video to be processed is input into the first visual feature extractor and the second visual feature for visual feature extraction to obtain a first visual feature sequence and a second visual feature sequence; the first visual feature extractor is trained based on personalized sample data generated by the end-side device where the first visual feature extractor is located; the second visual feature extractor is trained based on unified sample data generated by multiple end-side devices; Inputting the first visual feature sequence into the unimodal model, and performing target processing on the video to be processed; When the single-modal model cannot obtain a processing result that meets the requirements, uploading the first visual feature sequence and the second visual feature sequence to the cloud-side device, at least inputting the first visual feature sequence into a prompt word generator on the cloud-side device to generate soft prompt words, and providing the generated soft prompt words to the multimodal model on the cloud-side device; generating initial input features according to the second visual feature sequence, and inputting the initial input features into the multimodal model; In the multimodal model, the soft prompt word is embedded in the initial input feature to obtain a target input feature, and the to-be-processed video is subjected to target processing according to the target input feature.

6. The method according to claim 5, characterized in that Inputting at least the first visual feature sequence into a prompt word generator on the cloud-side device to generate a soft prompt word includes: Encoding the first visual feature sequence using a first image encoder to obtain a first visual feature embedding vector; Encoding the second visual feature sequence using a second image encoder to obtain a second visual feature embedding vector; splicing the first visual feature embedding vector and the second visual feature embedding vector, inserting at least one soft prompt marker at a starting position, and inserting a segmentation marker at a splicing position, so as to obtain a third feature embedding vector; The third feature embedding vector is input into a prompt word generator to generate a soft prompt word, so as to obtain at least one soft prompt word corresponding to the at least one soft prompt mark.

7. The method according to claim 5, characterized in that The multi-path feature extractor also includes a text feature extractor, and the method further includes: Inputting the video to be processed into the text feature extractor to extract text features to obtain a text feature sequence, and uploading it to the cloud-side device; Generating initial input features according to the second visual feature sequence includes: generating the initial input features according to the second visual feature sequence and a text feature sequence.

8. The method according to claim 7, characterized in that Generating the initial input feature according to the second visual feature sequence and the text feature sequence includes: Encoding the second visual feature sequence using a second image encoder on the cloud-side device to obtain a second visual feature embedding vector; Encoding the text feature sequence using a text encoder on the cloud-side device to obtain a text embedding vector; The second visual feature embedding vector and the text embedding vector are concatenated to obtain the initial input feature.

9. The method according to any one of claims 5 to 8, characterized in that: Obtain the video to be processed generated by the target end device, including: Acquire a live video generated by a live broadcast application on the target end-side device during a live broadcast process as a video to be processed, wherein the live video includes a target product, and the first visual feature sequence and the second visual feature sequence are visual features of the target product; Accordingly, the first visual feature sequence is input into the unimodal model, and target processing is performed on the video to be processed, including: The first visual feature sequence is input into the unimodal model, and target detection or content understanding is performed on the live video according to the first visual feature sequence and the third visual feature sequence of the candidate product.

10. A video processing method based on end-cloud collaboration, characterized in that: include: Acquire a live video generated by a live broadcast application during a live broadcast, wherein the live broadcast application runs on a target end-side device, and a single-modal model and a multi-channel feature extractor are deployed on the target end-side device, wherein the multi-channel feature extractor includes a first visual feature extractor and a second visual feature extractor; the first visual feature extractor is trained based on personalized sample data generated by the end-side device where the first visual feature extractor is located; and the second visual feature extractor is trained based on unified sample data generated by multiple end-side devices; Inputting the live video into the first visual feature extractor and the second visual feature extractor to extract visual features, so as to obtain a first visual feature sequence and a second visual feature sequence; Inputting the first visual feature sequence into the unimodal model to perform target detection or content understanding on the target product in the live video; When the single-modal model cannot obtain a processing result that meets the requirements, uploading the first visual feature sequence and the second visual feature sequence to the cloud-side device, at least inputting the first visual feature sequence into a prompt word generator on the cloud-side device to generate soft prompt words, and providing the generated soft prompt words to the multimodal model on the cloud-side device; generating initial input features according to the second visual feature sequence, and inputting the initial input features into the multimodal model; In the multimodal model, the soft prompt word is embedded in the initial input feature to obtain a target input feature, and target detection or content understanding is performed on the target product in the live video according to the target input feature.

11. An electronic device, characterized in that: include: A memory and a processor; wherein the memory is used to: store one or more computer instructions; The processor is configured to execute the one or more computer instructions to perform the steps of the method according to any one of claims 5 to 10.

12. A computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the processor is enabled to implement the steps of the method according to any one of claims 5 to 10.

Citation Information

Cited By

  • Video processing method and system based on end-cloud collaboration, device, and storage medium

    EP4819073A1