Event classification method and device, storage medium and service platform

By obtaining the video cover image and using a large event classification model to generate description sentences and type labels, the problem of inaccurate smart door lock event classification is solved, achieving fine classification and accurate description of video events, and improving user experience.

CN118628798APending Publication Date: 2024-09-10SHENZHEN QIHOO INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410695860.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The description of smart door locks when classifying events in surveillance videos is not accurate enough, making it difficult for users to understand specific information and reducing the user experience.

Method used

By acquiring the video cover image, inputting a large event classification model to output event description sentences, extracting type keywords, determining event type labels, and adding them to the video, a fine classification of events is achieved.

Benefits of technology

The accuracy and efficiency of event classification are improved. Users can understand the specific information of the event without playing the video, which improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628798A
    Figure CN118628798A
Patent Text Reader

Abstract

The invention discloses an event classification method and device, a storage medium and a service platform. Acquiring an event video acquired by the smart home device for the basic event, and acquiring a cover image carried by the event video; inputting the cover image into the event classification large model, and outputting an event description statement; and extracting at least one type keyword in the event description statement, determining an event type tag corresponding to each type keyword, and adding the event type tag corresponding to each type keyword to the event video. The event classification large model can perform intelligent analysis according to the video cover, and the text description statement of the event is output in a natural language form, so that the service platform can obtain the description statement of the event by using the event classification large model; and determining each keyword for describing the event from the description statement, and then adding a corresponding classification tag. In this way, the events in the picture are described more accurately based on the large model, and the events are classified more finely.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home technology, and in particular to an event classification method, device, storage medium and service platform. Background Art

[0002] With the widespread application of video surveillance technology, it has become an important issue to quickly and accurately classify events that occur in surveillance videos. However, currently, smart door locks usually describe the monitored door events as broad specific event types, which is not conducive to users understanding the specific information of the event and reduces the user experience. Therefore, an event classification method is needed to improve the efficiency and accuracy of event classification. Summary of the invention

[0003] The present application provides an event classification method, device, storage medium and service platform, which can solve the technical problem of inaccurate classification description of events in related technologies.

[0004] In a first aspect, an embodiment of the present application provides an event classification method, which is applied to a service platform, and the method includes:

[0005] Obtaining event videos collected by smart home devices for basic events, and obtaining cover images carried by the event videos;

[0006] Input the cover image into the event classification model and output the event description sentence;

[0007] At least one type keyword in the event description sentence is extracted, an event type tag corresponding to each type keyword is determined, and an event type tag corresponding to each type keyword is added to the event video.

[0008] In a feasible embodiment, the above-mentioned inputting the cover image into the event classification big model and outputting the event description sentence includes: inputting the above-mentioned cover image into the event classification big model, so that the above-mentioned event classification big model divides the above-mentioned cover image into a character area and a background area, and identifies character features and event features according to the above-mentioned character area, and identifies scene features according to the above-mentioned background area, and after obtaining character description words based on the above-mentioned character features, obtaining event description words based on the above-mentioned event features, and obtaining scene description words based on the above-mentioned scene features, respectively, natural language processing is performed on the above-mentioned character description words, the above-mentioned event description words and the above-mentioned scene description words, and then the event description sentence corresponding to the above-mentioned event is output.

[0009] In a feasible embodiment, the above-mentioned determination of the event type label corresponding to each type of keyword includes: determining the preset event type label corresponding to the first type of keyword in each type of keyword, and generating a new event type label corresponding to the second type of keyword in each type of keyword; the above-mentioned first type keyword is a type keyword corresponding to a preset event type label, and the above-mentioned second type keyword is a type keyword for which there is no corresponding preset event type label.

[0010] In a feasible embodiment, the extracting at least one type keyword in the event description sentence includes: performing word segmentation processing and semantic understanding processing on the event description sentence to obtain at least one type keyword in the event description sentence.

[0011] In a feasible embodiment, the above method also includes: in response to a type tag creation instruction, generating a custom event type tag corresponding to the above type tag creation instruction; in response to a custom tag adding instruction for at least one target event video, adding the above custom event type tag to each target event video.

[0012] In a feasible embodiment, after adding event type tags corresponding to each type of keyword to the above-mentioned event video, it also includes: responding to a retrieval request for the target event type tag, displaying all time videos with the above-mentioned target event type tag in an interactive interface that displays the retrieval results.

[0013] In a feasible embodiment, the above method also includes: constructing an initial event classification big model for event classification scenarios based on the basic multimodal big model, the function of the above basic multimodal big model is to output prediction results for the above prediction objects based on multiple different types of features of the prediction objects respectively; obtaining multiple sample cover images, and the above multiple sample cover images are all sample data with standard description sentence labels; inputting the above multiple sample cover images into the above initial event classification big model, and training the above initial event classification big model; during the training process of the above initial event classification big model, controlling the above initial event classification big model to output predicted description sentence labels for the above multiple sample cover images, and adjusting the parameters of the above initial event splitting big model according to the above predicted description sentence labels and the standard description sentence labels of the above multiple sample cover images until the above initial event classification big model converges to obtain the trained event classification big model.

[0014] In a feasible embodiment, the above-mentioned construction of the initial event classification big model for the event classification scenario based on the basic multimodal big model includes: obtaining the basic multimodal big model; based on the above-mentioned basic multimodal big model, creating an initial event classification big model that at least includes an event classification scenario adaptation module and a natural language generation module; the above-mentioned adjustment of the parameters of the above-mentioned initial event splitting big model according to the above-mentioned predicted description sentence labels and the standard description sentence labels of the above-mentioned multiple sample cover images until the above-mentioned initial event classification big model converges, including: calculating the training loss value according to the above-mentioned predicted description sentence labels and the standard description sentence labels of the above-mentioned multiple sample cover images, adjusting the parameters of the above-mentioned event classification scenario adaptation module in the above-mentioned initial event classification big model based on the above-mentioned training loss value, and controlling the parameters of the above-mentioned natural language generation module to remain unchanged.

[0015] In a second aspect, an embodiment of the present application provides an event classification method, which is applied to a smart home device, and the method includes:

[0016] Collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set cover images for the event videos;

[0017] The above event video is sent to the service platform, so that the above service platform adopts the event classification model to output the event description sentence based on the above cover image, and extracts at least one type keyword in the above event description sentence and determines the event type label corresponding to each type keyword, and adds the event type label corresponding to each type keyword to the above event video.

[0018] In a third aspect, an embodiment of the present application provides an event classification device, which is applied to a service platform, and the device includes:

[0019] A data acquisition module is used to acquire event videos collected by smart home devices for basic events, and to acquire cover images carried by the event videos;

[0020] A classification description module is used to input the cover image into the event classification model and output an event description statement;

[0021] The tag adding module is used to extract at least one type keyword in the above event description sentence, determine the event type tag corresponding to each type keyword, and add the event type tag corresponding to each type keyword to the above event video.

[0022] In a fourth aspect, an embodiment of the present application provides an event classification device, which is applied to a smart home device, and the device includes:

[0023] A cover extraction module is used to collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set a cover image for the event videos;

[0024] The video uploading module is used to send the above-mentioned event video to the service platform, so that the above-mentioned service platform adopts the event classification model to output the event description sentence based on the above-mentioned cover image, and extracts at least one type keyword in the above-mentioned event description sentence and determines the event type label corresponding to each type of keyword, and adds the event type label corresponding to each type of keyword to the above-mentioned event video.

[0025] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the above method.

[0026] In a sixth aspect, an embodiment of the present application provides a service platform, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method of the first aspect.

[0027] In a seventh aspect, an embodiment of the present application provides a smart home device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method of the second aspect.

[0028] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:

[0029] The present application provides an event classification method, which is applied to a service platform. The event video collected by the smart home device for the basic event is obtained, and the cover image carried by the event video is obtained; the cover image is input into the event classification model, and the event description statement is output; at least one type keyword in the event description statement is extracted, and the event type label corresponding to each type of keyword is determined, and the event type label corresponding to each type of keyword is added to the event video. Since the event classification model can perform intelligent analysis based on the information displayed in the video cover, thereby outputting the text description statement of the event in the form of natural language, the service platform can use the event classification model to obtain the description statement of the event after the smart home device side shoots and uploads the cover data of the video to the service platform, and further determines the various keywords describing the event type from the description statement and then adds the corresponding classification label to the video. In this way, a more accurate description of the event in the picture based on the large model is achieved, and a more refined classification of the event is achieved. Then, when the user sees these covers later, there is no need to play the video to fully and accurately understand the specific information of the event, which improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0031] Figure 1 An exemplary system architecture diagram of an event classification method provided in an embodiment of the present application;

[0032] Figure 2 A flow chart of an event classification method provided in an embodiment of the present application;

[0033] Figure 3 A flow chart of an event classification method provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of an interactive interface for displaying event type labels provided in an embodiment of the present application;

[0035] Figure 5 A schematic diagram of an interactive interface for searching event videos based on event type tags provided in an embodiment of the present application;

[0036] Figure 6 A flowchart of a model training method for a large event classification model provided in an embodiment of the present application;

[0037] Figure 7 A flow chart of an event classification method provided in an embodiment of the present application;

[0038] Figure 8 A structural block diagram of an event classification device provided in an embodiment of the present application;

[0039] Fig. 9 A structural block diagram of an event classification device provided in an embodiment of the present application;

[0040] Fig.10 A schematic diagram of the structure of a service platform provided in an embodiment of the present application;

[0041] Fig.11 A schematic diagram of the structure of a smart home device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] In order to make the features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. 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 those skilled in the art without creative work are within the scope of protection of the present application.

[0043] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0044] With the widespread application of video surveillance technology, it is particularly important to quickly and accurately classify events that occur in surveillance videos. For example, when an emergency or dangerous event occurs, accurate classification of the event can help to quickly and correctly notify relevant personnel to respond in a timely manner. On the other hand, accurate classification of event videos can also improve the efficiency of users in understanding multiple events. Users do not need to play multiple videos one by one to view events, but can select the type they are concerned about based on the classification information of the event for targeted viewing.

[0045] However, currently, smart door locks usually describe the monitored door front events as broad specific event types, and cannot conduct targeted analysis and description of the specific information of the event, resulting in users being unable to accurately understand the detailed information of the door front event from the description of the event video, but having to play the video to know what happened, which is very inconvenient for users. And when users want to play videos of certain events that they are interested in, they also need to try to play multiple possibly related videos to find the target video they need to view, which wastes the user's time to understand the target event and reduces the user experience.

[0046] Therefore, an embodiment of the present application provides an event classification method to solve the technical problem of inaccurate classification description of the above-mentioned events.

[0047] See also Figure 1 , Figure 1 An exemplary system architecture diagram of an event classification method provided in an embodiment of the present application.

[0048] like Figure 1As shown, the system architecture may include a service platform 101, a network 102, and a smart home device 103. The network 102 is used to provide a medium for a communication link between the service platform 101 and the smart home device 103. The network 102 may include various types of wired communication links or wireless communication links, for example: the wired communication link includes an optical fiber, a twisted pair, or a coaxial cable, and the wireless communication link includes a Bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, or a microwave communication link.

[0049] The service platform 101 can interact with the smart home device 103 through the network 102 to receive messages from the smart home device 103 or send messages to the smart home device 103, or the service platform 101 can interact with the smart home device 103 through the network 102 to receive messages or data sent by other users to the smart home device 103. The service platform 101 can be hardware or software. When the service platform 101 is hardware, it can be various electronic devices, including but not limited to smart watches, smart phones, tablet computers, laptop portable computers and desktop computers. When the service platform 101 is software, it can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.

[0050] The smart home device 103 may be a business device that provides various services. When the smart home device 103 is hardware, it may be implemented as a distributed device cluster consisting of multiple servers, or as a single device. In the embodiment of the present application, the smart home device 103 is a device with image and video acquisition functions.

[0051] In the embodiment of the present application, when implementing the event classification method, the smart home device 130 first collects the security video of the environment, extracts the event video corresponding to the basic event from the security video, and sets the cover image of the event video; then the smart home device 130 sends the event video to the service platform 101. The service platform 101 obtains the event video collected by the smart home device 130 for the basic event, and obtains the cover image carried by the event video; further, the service platform 101 inputs the cover image into the event classification model and outputs the event description statement; finally, the service platform 101 extracts at least one type keyword in the event description statement, determines the event type label corresponding to each type keyword, and adds the event type label corresponding to each type keyword to the event video.

[0052] It should be understood that Figure 1The number of service platforms, networks, and smart home devices is only illustrative, and any number of service platforms, networks, and smart home devices may be used according to implementation requirements.

[0053] See also Figure 2 , Figure 2 A flow chart of an event classification method provided for an embodiment of the present application. The execution subject of the embodiment of the present application can be a service platform that executes event classification, or a processor in the service platform that executes the event classification method, or an event classification service in the service platform that executes the event classification method. For the convenience of description, the specific execution process of the event classification method is introduced below by taking the execution subject as a processor in the service platform as an example.

[0054] like Figure 2 As shown, the event classification method, applied to the service platform, may at least include:

[0055] S202: Acquire an event video collected by a smart home device for a basic event, and acquire a cover image carried by the event video.

[0056] Optionally, in order to facilitate the user to select and view the event video, the event video needs to have a text description when it is displayed in the interactive interface, so that the user can understand what event the video is about based on the cover image and event type description without playing the video. Therefore, when classifying the events in the video, it is first necessary to obtain the event videos collected for the basic events from the smart home device. These basic events may include the daily activities of family members, the play of pets, or any abnormal behavior that may cause concern.

[0057] Optionally, after acquiring these event videos, the cover images are also important. The cover image is usually a representative screenshot of a video, which can quickly convey the main content of the video to the user. These cover images are not only highly visually appealing, but also help users quickly browse and filter a large amount of video materials to find the content they really care about. Therefore, based on the cover image, the event video can be better described and classified based on the video content.

[0058] S204: Input the cover image into the event classification model and output the event description sentence.

[0059] Optionally, when describing a video, the events, characters, and scenes in the video are often related, and the features of this information are also related. The amount of information expressed by a complete natural language sentence is more able to reflect the information contained in the image than the splicing of a single word. Therefore, in order to achieve the analysis and natural language description of the cover image, deep learning technology can be used to train a large event classification model. This model is used to process various complex cover images, identify information from them, and describe it in a sentence using natural language.

[0060] Optionally, when using the model, we first need to use the cover image as input data. These cover images contain rich and diverse visual elements and potential event information. In the event classification model, the model will use the powerful feature extraction and learning capabilities of the deep neural network to conduct in-depth analysis of the cover image. Through multi-level and multi-scale feature extraction, the model can capture the key elements in the image, such as people, objects, scenes, etc., and their relationships. At the same time, the model will also use the pre-trained event classifier to combine and reason these elements to identify the event expressed in the cover image. After a series of calculations and analyses, the model will eventually output a statement describing the event in the cover image. This statement not only contains basic information such as the subject, time, and location of the event, but may also involve deep information such as the nature, cause, and result of the event. Such a description statement is both highly accurate and objective, and can intuitively convey the theme and intention expressed by the cover image. Based on this, the process of inputting the cover image into the event classification model and outputting the description statement is an intelligent and automated process. It can not only improve the accuracy and efficiency of event recognition, but also provide strong support for subsequent event type retrieval, content analysis, information extraction and other tasks.

[0061] S206: extract at least one type keyword in the event description sentence, determine the event type label corresponding to each type keyword, and add the event type label corresponding to each type keyword to the event video.

[0062] Optionally, there may be multiple types of type information for an event video, which may be divided into character types, such as father, mother, grandmother, etc.; event types, such as walking, entering the door, leaving the door, etc.; time types, such as March 1, February 8, etc.; and scene types, such as bedroom, living room, etc. When viewing an event video, a user may retrieve and view the video from different aspects. For example, if a user wants to view an event that occurred in the bedroom, he will search according to the type of "bedroom". Therefore, in order to facilitate users to view and search for videos, the video content can be further efficiently and accurately classified and labeled according to the event description sentence to improve the user experience. To achieve this goal, an effective method is to extract key type keywords by conducting an in-depth analysis of the event description sentences contained in the video, and add corresponding event type tags to the video accordingly.

[0063] Alternatively, considering that tags are generally composed of a word, it is necessary to first accurately extract at least one type keyword from the event description sentence in the video. By using text analysis and machine learning algorithms, the core words in the event description sentence can be automatically identified and extracted, and these words can often reflect the main characteristics or types of the event.

[0064] Optionally, after extracting the type keywords, the next step is to determine the event type labels corresponding to these keywords. In a feasible implementation, keywords and event type labels can be matched according to a predefined event type label system. This label system may include a variety of event types, such as "guests visiting", "pets playing", "children's activities", etc., and each event type has its own specific set of keywords corresponding to it. By matching the extracted type keywords with the keyword set in the label system, we can accurately determine the event type labels corresponding to each video. Another feasible implementation is to directly determine the event type label with the same name as the type keyword, so that the event type label of each keyword can be more consistent with its event description statement, which is more convenient for user retrieval.

[0065] Furthermore, the determined event type label is added to the corresponding event video. This process can be achieved in an automated way, embedding the label information into the metadata of the video for subsequent content management and analysis. By adding event type labels to videos, videos can be classified more conveniently. When users see these covers later, they can fully and accurately understand the specific information of the event without playing the video, which improves the user experience.

[0066] In an embodiment of the present application, an event classification method is provided, which is applied to a service platform. The event video collected by the smart home device for the basic event is obtained, and the cover image carried by the event video is obtained; the cover image is input into the event classification model, and the event description statement is output; at least one type keyword in the event description statement is extracted, and the event type label corresponding to each type of keyword is determined, and the event type label corresponding to each type of keyword is added to the event video. Since the event classification model can perform intelligent analysis based on the information displayed in the video cover, thereby outputting the text description statement of the event in the form of natural language, the service platform can use the event classification model to obtain the description statement of the event after the smart home device side shoots and uploads the cover data of the video to the service platform, and further determines the various keywords describing the event type from the description statement and then adds the corresponding classification label to the video. In this way, a more accurate description of the event in the picture based on the large model is achieved, and a more refined classification of the event is achieved. Then, when the user sees these covers later, there is no need to play the video to fully and accurately understand the specific information of the event, which improves the user experience.

[0067] See also Figure 3 , Figure 3 A flowchart of an event classification method provided in an embodiment of the present application.

[0068] like Figure 3 As shown, the event classification method, applied to the service platform, may at least include:

[0069] S302: Acquire event videos collected by smart home devices for basic events, and acquire cover images carried by the event videos.

[0070] Regarding step S302, please refer to the detailed description in step S202, which will not be repeated here.

[0071] S304. Input the cover image into the event classification model so that the event classification model divides the cover image into a character area and a background area, and identifies character features and event features according to the character area and identifies scene features according to the background area, and after obtaining character description words based on character features, event description words based on event features and scene description words based on scene features, respectively, natural language processing is performed on the character description words, event description words and scene description words to output event description sentences corresponding to the basic events.

[0072] Optionally, different areas in the image reflect different information. For example, the portrait part of the image reflects the person information and event information, while the non-portrait part of the image reflects the current scene information and environmental information. Different image areas also reflect different types of features of the event. Therefore, when using the event classification model, the event classification model can perform in-depth analysis of the cover image to achieve fine area division and feature recognition of each area, and obtain descriptive words for the features of each area, and then connect all the descriptive words related to the current event in series to output the event description language corresponding to the basic event.

[0073] Specifically, after the cover image is input into the event classification model, the model will first use the image recognition technology to accurately divide the image into the character area and the background area. Then, in the processing of the character area, the characters in the image are accurately identified, and the various characteristics of the characters, such as gender, age, clothing, posture, etc., are further analyzed and extracted. When there is pre-stored character identity information, it is also possible to identify whether it is a person with a known identity based on the facial features in the image. Furthermore, in-depth insights into event characteristics related to characters, such as interactive relationships between characters, ongoing activities, etc. All of this information is carefully converted by the model into a series of character description words and event description words for subsequent natural language processing.

[0074] Optionally, for the background area, the model can also identify various elements in the scene, such as furniture, furnishings, etc., and extract scene features based on them. These features are converted into scene description words, providing rich background information for the content description of the entire cover image.

[0075] Optionally, the model will perform natural language processing on these character description words, event description words, and scene description words. In this step, the model uses natural language generation technology to combine these description words into smooth and coherent sentences, thereby forming an event description sentence corresponding to the content of the cover image. This sentence not only accurately describes the characters, events, and scenes in the image, but also presents them in a natural and easy-to-understand way, providing great convenience for users. Based on this, the event classification model has reliable accuracy and efficiency in the analysis and description of cover images. Through precise area division, feature extraction and natural language processing, it can output rich and accurate event description sentences.

[0076] S306: Perform word segmentation and semantic understanding processing on the event description sentence to obtain at least one type keyword in the event description sentence.

[0077] Optionally, when type keywords are obtained from the event description sentence, the event description sentence can be processed by word segmentation and semantic understanding. First, for a given event description sentence, word segmentation technology is used to divide it into several vocabulary units with clear meanings. The word segmentation tool used for word segmentation is usually based on statistical learning or deep learning models, which can accurately identify word boundaries in Chinese texts and convert continuous character sequences into independent vocabulary sequences. Word segmentation processing can provide a basis for subsequent semantic understanding processing.

[0078] Optionally, after the word segmentation is completed, the obtained word sequence is further processed for semantic understanding. This step uses natural language processing (NLP) technology to parse the deep meaning of the words and the relationship between them, thereby identifying the type keywords in the event description sentence. These keywords are closely related to the type or attribute of the event and can provide important information about the nature of the event. By performing word segmentation and semantic understanding processing on the event description sentence, the type keywords in the sentence are accurately identified.

[0079] S308, determining the preset event type label corresponding to the first type keyword in each type of keyword, and generating a new event type label corresponding to the second type keyword in each type of keyword; the first type keyword is a type keyword with a corresponding preset event type label, and the second type keyword is a type keyword with no corresponding preset event type label.

[0080] Optionally, after obtaining the type keywords, it is also necessary to determine the event type labels corresponding to each type of keyword. Usually, for common type keywords, the event type labels corresponding to these keywords can be pre-set, such as common event classification type labels such as the elderly, children, men, women, doing homework, looking at mobile phones, dining, and multiple people. Then, in the process of determining the event type label, the type keyword corresponding to the preset event type label is used as the first type keyword, and the corresponding preset event type label can be directly determined for the first type keyword. In addition, the type keyword for which there is no corresponding preset event type label is the second type keyword. For the second type keyword, it is necessary to generate its corresponding new event type label, so as to obtain the preset event type labels for all type keywords.

[0081] S310: Add event type tags corresponding to various types of keywords to the event video.

[0082] Optionally, the determined event type label is added to the corresponding event video. The video is classified in more detail, and when the user sees the video under these categories, he can fully and accurately understand the specific information of the event without playing the video, which improves the user experience.

[0083] Optionally, the user can also customize the event type label that he / she is concerned about, and then in response to the type label creation instruction initiated by the user, a customized event type label corresponding to the type label creation instruction is generated. After the user customizes the label, he / she can also add labels to event videos that he / she believes meet the label, that is, in response to the customized label addition instruction for at least one target event video, a customized event type label is added to each target event video.

[0084] S312: In response to a search request for a target event type tag, display all time videos with the target event type tag in an interactive interface for displaying search results.

[0085] Optionally, see Figure 4 , Figure 4 A schematic diagram of an interactive interface for displaying event type labels provided in an embodiment of the present application. After adding event type labels corresponding to the type keywords of each event video, the user can enter the interface 410 for searching event videos using event type labels, which includes a classification label search bar 420 and example icons 430 of event type labels. For example, if the event type labels include "bedroom", "pet activities", and "family going out", then the example icons 430 under the event type labels are the example icons of the "bedroom" type label, the example icons of the "pet activities" type label, and the example icons of the "family going out" type label. Specifically, the identification image of the example icon 430 of the event type label can directly use the latest video cover with the label. For example, under the "pet activities" type label, the latest video is the activity video of kitten A, then the cover image of the video can be used as the image of the example icon of the "pet activities" type label.

[0086] For further information, see Figure 5 , Figure 5 A schematic diagram of an interactive interface for searching event videos based on event type tags provided in an embodiment of the present application. User 510 can search for the target event type tag "pet activity" in the classification tag search bar 420. The service platform responds to the search request for the target event type tag "pet activity" and displays all event videos with the target event type tag "pet activity" in the interactive interface displaying the search results, including video a, video b, video c, etc., so that user 510 can easily view all event videos corresponding to the target event type tag "pet activity".

[0087] In an embodiment of the present application, an event classification method is provided, which is applied to a service platform. When using the event classification model, the event classification model can be made to perform in-depth analysis of the cover image, realize fine regional division and feature recognition of each region, and obtain the descriptive words of each regional feature, and then connect all the descriptive words related to the current event in series, output the event description language corresponding to the basic event, and the event classification model can output rich and accurate event description sentences through precise regional division, feature extraction and natural language processing. After that, continue to perform word segmentation and semantic understanding processing on the event description sentence to obtain at least one type keyword in the event description sentence, and determine the event type label corresponding to each type of keyword, and add the event type label corresponding to each type of keyword to the event video, so as to realize detailed classification of the video, and when the user sees these covers later, there is no need to play the video, and the specific information of the event can be fully and accurately understood. And based on these event type labels, the user can directly search for the target event type label, so as to quickly view each event video with the target event type label.

[0088] See also Figure 6 , Figure 6 A flow chart of a model training method for a large event classification model provided in an embodiment of the present application. Figure 6 As shown, the model training method of the event classification large model at least includes:

[0089] S602: Construct an initial event classification big model for event classification scenarios based on the basic multimodal big model.

[0090] Optionally, the event classification model needs to classify the cover image based on the multi-faceted features of the cover image, then a trained basic multimodal model can be obtained, and the basic multimodal model can output prediction results for the prediction object based on the various types of features of the prediction object. Therefore, the initial event classification model for the event classification scenario is constructed based on the basic multimodal model, so that the initial event classification model can also obtain the ability of "outputting prediction results for the prediction object based on the various types of features of the prediction object". The initial event classification model includes at least an event classification scenario adaptation module and a natural language generation module, wherein the event classification scenario adaptation module is a module that enables the initial event classification model to classify events, and the natural language generation module is a module that enables the model to output natural language. Usually, when the basic multimodal model is directly used in a specific scenario, the unadjusted model is difficult to adapt to the new scenario. Based on this, after constructing the initial event classification model for the event classification scenario, the initial event classification model needs to be trained in a targeted manner.

[0091] S604: Acquire multiple sample cover images, where the multiple sample cover images are all sample data with standard description sentence labels.

[0092] Optionally, multiple sample cover images are obtained for training the initial event classification model, and the multiple sample cover images are all sample data with standard description sentence labels. The standard description sentence is a reasonable, fluent, and correct description sentence corresponding to each sample cover image, which serves as a standard label for the sample cover image.

[0093] S606: Input multiple sample cover images into the initial event classification model to train the initial event classification model.

[0094] S608. During the training process of the initial event classification large model, the initial event classification large model is controlled to output predicted description sentence labels for multiple sample cover images, and the parameters of the initial event splitting large model are adjusted according to the predicted description sentence labels and the standard description sentence labels of the multiple sample cover images until the initial event classification large model converges to obtain the trained event classification large model.

[0095] Optionally, during the training process of the initial event classification large model, the initial event classification large model is controlled to output predicted description sentence labels for multiple sample cover images. These predicted description sentence labels are the predicted description results of the initial event classification large model for multiple sample cover images. Then the gap between the predicted description sentence labels and the standard description sentence labels is the gap between the current state of the initial event classification large model and the expected performance. Furthermore, the training loss value of the model can be calculated based on the predicted description sentence labels and the standard description sentence labels of multiple sample cover images, and the parameters of the event classification scene adaptation module in the initial event classification large model are adjusted based on the training loss value, and the parameters of the natural language generation module are controlled to remain unchanged until the initial event classification large model converges to obtain the trained event classification large model.

[0096] Optionally, the model training end condition of the model may include, for example, the value of the loss function is less than or equal to a preset loss function threshold, the number of iterations reaches a preset number threshold, etc. The specific model training end condition can be determined based on actual conditions and is not specifically limited here.

[0097] In an embodiment of the present application, an event classification method is provided, which includes a method for training an event classification big model. The event classification big model is constructed through the basic multimodal big model, and the event classification big model is trained in a targeted manner in the event classification scenario, so that the event classification big model can perform in-depth analysis of the cover image, and can output rich and accurate event description sentences through precise area division, feature extraction and natural language processing.

[0098] See also Figure 7 , Figure 7 A flowchart of an event classification method provided in an embodiment of the present application.

[0099] like Figure 7 As shown, the event classification method, applied to smart home devices, may at least include:

[0100] S702: Collect security video of the environment, extract event video corresponding to the basic event from the security video, and set a cover image for the event video.

[0101] Alternatively, in today's increasingly intelligent life scenarios, smart home devices have become an indispensable part of modern families with their excellent functionality and convenience. Especially in the field of security, smart home devices provide solid protection for family safety by integrating advanced video acquisition technology. These smart home devices have high-precision video acquisition capabilities and can monitor the home environment around the clock and without blind spots. They use built-in cameras and sensors to capture security videos of the environment in real time, ensuring that everything that happens in the environment is accurately recorded. These security videos are not only clear in quality, but also highly fluent, providing a solid foundation for subsequent video analysis and processing.

[0102] Optionally, after collecting the security video, the smart home device uses advanced video analysis technology to extract event videos corresponding to basic events. These basic events may include family members walking, pets moving, people intruding, smoke detection, etc. By intelligently identifying and analyzing the video content, the device can quickly lock the key clips related to the basic events in the security video and extract them as event videos. In order to display these video shooting events in the interactive interface with the user, it is necessary to further set the cover images of these videos. The device will intelligently select the most representative picture as the cover image based on the key frames in the video, so that the cover image can intuitively display the main content of the video. These cover images can not only clearly show the main features of the event, but also have a high degree of recognition and appeal, which is convenient for users to quickly browse related event videos.

[0103] In a feasible implementation, when setting the cover image of an event video, an image frame containing the most information or the most important information can be selected from the video as the cover image. Specifically, a neural network model can be used to analyze each frame of the video, identify the number and clarity of characters, the number and clarity of events, etc. in each frame, analyze and evaluate the image from multiple aspects, and obtain the picture that best represents the video content as the cover image.

[0104] S704. Send the event video to the service platform so that the service platform uses the event classification model to output the event description sentence based on the cover image, extract at least one type keyword in the event description sentence and determine the event type label corresponding to each type keyword, and add the event type label corresponding to each type keyword to the event video.

[0105] Optionally, in order to facilitate users to select and view videos, these event videos need to have text descriptions when displayed in the interactive interface, so that users can understand what event the video is about based on the cover image and event type description without playing the video. Therefore, after the event video, the smart home device also sends all video data to the service platform, so that the service platform uses the event classification model to output the event description sentence based on the cover image, extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type of keyword, and adds event type labels corresponding to each type of keyword to the event video, so that users can quickly and accurately view the event video of the type they are concerned about based on the classification labels corresponding to these descriptions.

[0106] In an embodiment of the present application, an event classification method is provided, which is applied to smart home devices. Collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set a cover image for the event video; send the event video to the service platform so that the service platform uses the event classification model to output an event description sentence based on the cover image, extract at least one type keyword in the event description sentence and determine the event type label corresponding to each type of keyword, and add event type labels corresponding to each type of keyword to the event video. Since the smart home device obtains the cover of the video after collecting the event video related to the basic event, the subsequent service platform can use the event classification model to intelligently analyze the cover image and accurately classify and describe it, so that users can quickly and accurately view the event video of the type they are concerned about according to the classification labels corresponding to these descriptions.

[0107] See also Figure 8 , Figure 8 A structural block diagram of an event classification device provided in an embodiment of the present application.

[0108] like Figure 8 As shown, the event classification device 800 is applied to the service platform, including:

[0109] The data acquisition module 810 is used to acquire the event video collected by the smart home device for the basic event, and acquire the cover image carried by the event video;

[0110] Classification description module 820, used to input the cover image into the event classification model and output the event description sentence;

[0111] The tag adding module 830 is used to extract at least one type keyword in the event description sentence, determine the event type tag corresponding to each type keyword, and add the event type tag corresponding to each type keyword to the event video.

[0112] Optionally, the classification description module 820 is also used to input the cover image into the event classification model, so that the event classification model divides the cover image into a character area and a background area, and identifies character features and event features based on the character area, and identifies scene features based on the background area, and after obtaining character description words based on character features, event description words based on event features, and scene description words based on scene features, respectively, natural language processing is performed on the character description words, event description words, and scene description words to output event description sentences corresponding to the basic events.

[0113] Optionally, the label adding module 830 is also used to determine the preset event type label corresponding to the first type keyword in each type of keyword, and to generate a new event type label corresponding to the second type keyword in each type of keyword; the first type keyword is a type keyword with a corresponding preset event type label, and the second type keyword is a type keyword for which there is no corresponding preset event type label.

[0114] Optionally, the tag adding module 830 is further used to perform word segmentation processing and semantic understanding processing on the event description sentence to obtain at least one type keyword in the event description sentence.

[0115] Optionally, the event classification device 800 also includes: a label customization module, which is used to generate a custom event type label corresponding to the type label creation instruction in response to the type label creation instruction; and add a custom event type label to each target event video in response to a custom label addition instruction for at least one target event video.

[0116] Optionally, the event classification device 800 further includes: a retrieval module, configured to respond to a retrieval request for a target event type tag and display all time videos with the target event type tag in an interactive interface displaying retrieval results.

[0117] Optionally, the event classification device 800 also includes: a model training module, which is used to construct an initial event classification big model for the event classification scenario based on the basic multimodal big model; obtain multiple sample cover images, and the multiple sample cover images are all sample data with standard description sentence labels; input the multiple sample cover images into the initial event classification big model, and train the initial event classification big model; during the training process of the initial event classification big model, control the initial event classification big model to output predicted description sentence labels for the multiple sample cover images, and adjust the parameters of the initial event splitting big model according to the predicted description sentence labels and the standard description sentence labels of the multiple sample cover images until the initial event classification big model converges, so as to obtain the trained event classification big model.

[0118] Optionally, the model training module is also used to obtain a basic multimodal big model; based on the basic multimodal big model, create an initial event classification big model that includes at least an event classification scene adaptation module and a natural language generation module; calculate the training loss value according to the predicted description sentence labels and the standard description sentence labels of multiple sample cover images, adjust the parameters of the event classification scene adaptation module in the initial event classification big model based on the training loss value, and control the parameters of the natural language generation module to remain unchanged until the initial event classification big model converges.

[0119] In an embodiment of the present application, an event classification device is provided. The device is applied to a service platform, wherein a data acquisition module is used to acquire event videos collected by smart home devices for basic events, and to acquire cover images carried by event videos; a classification description module is used to input the cover image into an event classification model and output an event description statement; a label adding module is used to extract at least one type keyword in the event description statement, determine the event type label corresponding to each type of keyword, and add the event type label corresponding to each type of keyword to the event video. Since the event classification model can perform intelligent analysis based on the information displayed in the video cover, thereby outputting a text description statement of the event in the form of natural language, the smart home device side can obtain the description statement of the event by using the event classification model after shooting and uploading the cover data of the video to the service platform, and further determine the various keywords describing the event type from the description statement and then add the corresponding classification label to the video. In this way, a more accurate description of the event in the screen based on the large model is achieved, and a more refined classification of the event is achieved. Then, when the user sees these covers later, there is no need to play the video to fully and accurately understand the specific information of the event, thereby improving the user experience.

[0120] See also Fig. 9 , Fig. 9 A structural block diagram of an event classification device provided in an embodiment of the present application.

[0121] like Fig. 9 As shown, the event classification device 900 is applied to a smart home device, including:

[0122] The cover extraction module 910 is used to collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set a cover image for the event video;

[0123] The video upload module 920 is used to send the event video to the service platform so that the service platform adopts the event classification model to output the event description sentence based on the cover image, and extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type of keyword, and adds the event type label corresponding to each type of keyword to the event video.

[0124] In an embodiment of the present application, an event classification device is provided. The device is applied to a smart home device, wherein a cover extraction module is used to collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set a cover image of the event video; a video upload module is used to send the event video to a service platform, so that the service platform uses an event classification model to output an event description sentence based on the cover image, extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type of keyword, and adds event type labels corresponding to each type of keyword to the event video. Since the smart home device obtains the cover of the video after collecting the event video related to the basic event, the subsequent service platform can use the event classification model to intelligently analyze the cover image and accurately classify and describe it, so that users can quickly and accurately view the event video of the type they are concerned about according to the classification labels corresponding to these descriptions.

[0125] An embodiment of the present application further provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded by a processor and executing the steps of any method in the above embodiments.

[0126] See also Fig.10 , Fig.10 A schematic diagram of the structure of a service platform provided in an embodiment of the present application. Fig.10 As shown, the service platform 1000 may include: at least one service platform processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0127] The communication bus 1002 is used to realize the connection and communication between these components.

[0128] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.

[0129] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0130] Among them, the service platform processor 1001 may include one or more processing cores. The service platform processor 1001 uses various interfaces and lines to connect various parts within the entire service platform 1000, and executes various functions and processes data of the service platform 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the service platform processor 1001 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The service platform processor 1001 can integrate one or more combinations of central processing units (Central Processing Unit, CPU), graphics processing units (Graphics Processing Unit, GPU) and modems. Among them, the CPU mainly processes operating systems, user interfaces, applications, etc.; the GPU is responsible for rendering and drawing the content that needs to be displayed on the display screen; the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the service platform processor 1001, but may be implemented by a separate chip.

[0131] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may also be optionally at least one storage device located away from the aforementioned service platform processor 1001. As Fig.10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an event classification program.

[0132] exist Fig.10 In the service platform 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain the data input by the user; and the service platform processor 1001 can be used to call the event classification program stored in the memory 1005 and specifically perform the following operations:

[0133] Obtaining event videos collected by smart home devices for basic events, and obtaining cover images carried by the event videos;

[0134] Input the cover image into the event classification model and output the event description sentence;

[0135] At least one type keyword in the event description sentence is extracted, an event type tag corresponding to each type keyword is determined, and an event type tag corresponding to each type keyword is added to the event video.

[0136] In some embodiments, when the service platform processor 1001 inputs the cover image into the event classification model and outputs the event description sentence, it specifically performs the following steps: inputs the cover image into the event classification model so that the event classification model divides the cover image into a character area and a background area, and identifies character features and event features based on the character area, and identifies scene features based on the background area, and after obtaining character description words based on character features, event description words based on event features, and scene description words based on scene features, respectively, natural language processing is performed on the character description words, event description words, and scene description words, and then the event description sentence corresponding to the basic event is output.

[0137] In some embodiments, when the service platform processor 1001 determines the event type tag corresponding to each type of keyword, it specifically performs the following steps: determining the preset event type tag corresponding to the first type of keyword in each type of keyword, and generating a new event type tag corresponding to the second type of keyword in each type of keyword; the first type of keyword is a type keyword with a corresponding preset event type tag, and the second type of keyword is a type keyword for which there is no corresponding preset event type tag.

[0138] In some embodiments, when the service platform processor 1001 extracts at least one type keyword in an event description sentence, it specifically performs the following steps: performing word segmentation and semantic understanding processing on the event description sentence to obtain at least one type keyword in the event description sentence.

[0139] In some embodiments, the service platform processor 1001 also specifically performs the following steps: in response to a type tag creation instruction, generating a custom event type tag corresponding to the type tag creation instruction; in response to a custom tag addition instruction for at least one target event video, adding a custom event type tag to each target event video.

[0140] In some embodiments, after the service platform processor 1001 adds event type tags corresponding to each type of keyword to the event video, it also specifically performs the following steps: in response to a retrieval request for a target event type tag, display all time videos with the target event type tag in an interactive interface that displays the retrieval results.

[0141] In some embodiments, the service platform processor 1001 also specifically performs the following steps: constructing an initial event classification big model for event classification scenarios based on the basic multimodal big model; obtaining multiple sample cover images, and the multiple sample cover images are all sample data with standard description sentence labels; inputting the multiple sample cover images into the initial event classification big model, and training the initial event classification big model; during the training process of the initial event classification big model, controlling the initial event classification big model to output predicted description sentence labels for the multiple sample cover images, and adjusting the parameters of the initial event splitting big model according to the predicted description sentence labels and the standard description sentence labels of the multiple sample cover images until the initial event classification big model converges, thereby obtaining the trained event classification big model.

[0142] In some embodiments, when the service platform processor 1001 executes the construction of an initial event classification big model for an event classification scenario based on the basic multimodal big model, the service platform processor 1001 specifically performs the following steps: obtaining the basic multimodal big model; based on the basic multimodal big model, creating an initial event classification big model that at least includes an event classification scene adaptation module and a natural language generation module; when the service platform processor 1001 executes the adjustment of the parameters of the initial event splitting big model according to the predicted description sentence labels and the standard description sentence labels of multiple sample cover images until the initial event classification big model converges, the service platform processor 1001 specifically performs the following steps: calculating the training loss value according to the predicted description sentence labels and the standard description sentence labels of multiple sample cover images, adjusting the parameters of the event classification scene adaptation module in the initial event classification big model based on the training loss value, and controlling the parameters of the natural language generation module to remain unchanged until the initial event classification big model converges.

[0143] See also Fig.11 , Fig.11 This is a schematic diagram of the structure of a smart home device provided in an embodiment of the present application. Fig.11 As shown, the smart home device 1100 may include: at least one smart home device processor 1101 , at least one network interface 1104 , a user interface 1103 , a memory 1105 , and at least one communication bus 1102 .

[0144] The communication bus 1102 is used to realize the connection and communication between these components.

[0145] The user interface 1103 may include a display screen (Display) and a camera (Camera), and the optional user interface 1103 may also include a standard wired interface and a wireless interface.

[0146] The network interface 1104 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0147] Among them, the smart home device processor 1101 may include one or more processing cores. The smart home device processor 1101 uses various interfaces and lines to connect various parts within the entire smart home device 1100, and executes various functions and processes data of the smart home device 1100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1105, and calling data stored in the memory 1105. Optionally, the smart home device processor 1101 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The smart home device processor 1101 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the smart home device processor 1101, but may be implemented by a separate chip.

[0148] Among them, the memory 1105 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory, ROM). Optionally, the memory 1105 includes a non-transitory computer-readable storage medium. The memory 1105 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1105 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1105 may also be optionally at least one storage device located away from the aforementioned smart home device processor 1101. As Fig.11 As shown, the memory 1105 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an event classification program.

[0149] exist Fig.11 In the smart home device 1100 shown, the user interface 1103 is mainly used to provide an input interface for the user and obtain the data input by the user; and the smart home device processor 1101 can be used to call the event classification program stored in the memory 1105 and specifically perform the following operations:

[0150] Collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set cover images for the event videos;

[0151] The event video is sent to the service platform so that the service platform adopts the event classification model to output the event description sentence based on the cover image, extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type keyword, and adds the event type label corresponding to each type keyword to the event video.

[0152] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0153] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The above computer program product includes one or more computer instructions. When the above computer program instructions are loaded and executed on a computer, the above process or function according to the embodiment of this specification is generated in whole or in part. The above computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The above computer instructions can be stored in a computer-readable storage medium or transmitted by the above computer-readable storage medium. The above computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The above computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The above-mentioned available media can be magnetic media (for example, floppy disks, hard disks, magnetic tapes), optical media (for example, digital versatile discs (DVD)), or semiconductor media (for example, solid-state drives (SSD)), etc. It should be noted that for the aforementioned method embodiments, in order to simplify the description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0154] In the above embodiments, the description of each embodiment has its own emphasis. For the parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The above is a description of an event classification method, device, storage medium and service platform provided by this application. For those skilled in the art, according to the ideas of the embodiments of this application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on this application.

Claims

1. An event classification method, It is characterized in that Applied to a service platform, the method comprises: Acquire an event video collected by a smart home device for a basic event, and acquire a cover image carried by the event video; Input the cover image into the event classification model and output an event description sentence; At least one type keyword in the event description sentence is extracted, an event type tag corresponding to each type keyword is determined, and an event type tag corresponding to each type keyword is added to the event video.

2. The method according to claim 1, It is characterized in that The step of inputting the cover image into the event classification model and outputting an event description statement comprises: The cover image is input into an event classification model so that the event classification model divides the cover image into a character area and a background area, and identifies character features and event features based on the character area, and identifies scene features based on the background area, and after obtaining character description words based on the character features, event description words based on the event features, and scene description words based on the scene features, respectively, natural language processing is performed on the character description words, the event description words, and the scene description words to output an event description sentence corresponding to the basic event.

3. The method according to claim 1, It is characterized in that The step of determining the event type labels corresponding to the keywords of each type includes: Determine a preset event type label corresponding to a first type of keyword in each type of keyword, and generate a new event type label corresponding to a second type of keyword in each type of keyword; The first type keyword is a type keyword corresponding to a preset event type tag, and the second type keyword is a type keyword for which there is no corresponding preset event type tag.

4. The method according to claim 1, It is characterized in that The method further comprises: Construct an initial event classification model for event classification scenarios based on the basic multimodal big model; Acquire multiple sample cover images, where the multiple sample cover images are all sample data with standard description sentence labels; Inputting the plurality of sample cover images into the initial event classification model to train the initial event classification model; During the training process of the initial event classification large model, the initial event classification large model is controlled to output predicted description sentence labels for the multiple sample cover images, and the parameters of the initial event splitting large model are adjusted according to the predicted description sentence labels and the standard description sentence labels of the multiple sample cover images until the initial event classification large model converges to obtain the trained event classification large model.

5. An event classification method, It is characterized in that Applied to smart home devices, the method includes: Collect security video of the environment, extract event video corresponding to the basic event from the security video, and set a cover image of the event video; The event video is sent to a service platform so that the service platform uses an event classification model to output an event description sentence based on the cover image, extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type keyword, and adds event type labels corresponding to each type keyword to the event video.

6. An event classification device, It is characterized in that Applied to a service platform, the device comprises: A data acquisition module, used to acquire event videos collected by smart home devices for basic events, and to acquire cover images carried by the event videos; A classification description module, used for inputting the cover image into the event classification model and outputting an event description statement; The tag adding module is used to extract at least one type keyword in the event description sentence, determine the event type tag corresponding to each type keyword, and add the event type tag corresponding to each type keyword to the event video.

7. An event classification device, It is characterized in that Applied to smart home equipment, the device comprises: A cover extraction module, used to collect security videos of the environment, extract event videos corresponding to basic events from the security videos, and set a cover image for the event videos; The video uploading module is used to send the event video to the service platform so that the service platform adopts the event classification model to output the event description sentence based on the cover image, and extracts at least one type keyword in the event description sentence and determines the event type label corresponding to each type keyword, and adds the event type label corresponding to each type keyword to the event video.

8. A computer storage medium, It is characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 4 or 5.

9. A service platform, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 4 when executing the program.

10. A smart home device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claim 5 when executing the program.

Citation Information

Patent Citations

  • Method and device for determining video label and computer equipment

    CN111125435A

  • Video label determination method and device, terminal and storage medium

    CN111241340A

  • Video tag generation method and device and equipment

    CN113821681A

  • Industrial security event type identification method and device, equipment and storage medium

    CN114443843A

  • Video scene analysis method and device, storage medium and program product

    CN115205725A