Zero-sample potential risk behavior detection method and device based on multi-modal large model
Through the detection method based on multi-modal large models, combined with image and text description, the problem of insufficient efficiency and accuracy in detecting potential risky behaviors in the existing technology is solved, achieving high-precision identification and prevention in complex environments, and adapting to the scene changes to ensure the reliability of security monitoring.
Patent Information
- Application Number
- CN202410604433.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-30
AI Technical Summary
When existing technologies identify and prevent potential risky behaviors, they face problems such as diversity of behavior types, difficulty in detecting subtle movements, and lack of time dimension information in static images, resulting in low detection efficiency and insufficient accuracy, making it difficult to achieve real-time monitoring in complex environments.
A zero-sample potential risk behavior detection method based on a multi-modal large model is adopted. By creating a behavioral description vocabulary and building a two-stage multi-modal recognition framework, combined with image features and text description, the multi-modal large model is used to extract key features and generate Behavior description vector to determine the occurrence of potential risky behaviors.
Significantly improves the detection accuracy of potential risky behaviors, can adapt to emerging risky behaviors or scene changes, without the need to re-label data and training models, provides faster and more accurate identification and prevention capabilities, and ensures the efficiency of security monitoring and reliability.
Smart Images

Figure CN118570868A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer vision technology, and in particular to a method and device for detecting zero-sample potential risk behaviors based on a multimodal large model. Background Art
[0002] In today's era of rapid industrialization and urbanization, identifying and preventing potential risk behaviors has become an indispensable part of protecting human life and property safety. Especially in key areas such as industrial production, construction, transportation, etc., the existence of potential risk behaviors is like a time bomb that may cause safety accidents at any time, causing immeasurable losses to personnel and enterprises. Therefore, in-depth identification and effective prevention research on potential risk behaviors is not only crucial to improving the efficiency of safety supervision, but also an urgent need to reduce the incidence of safety accidents and maintain social stability.
[0003] However, in actual operation, due to the diversity of behavior types and the difficulty of detecting many subtle movements, as well as the ambiguity of spatial and temporal change information, image-based zero-sample potential risk behavior detection faces great challenges. Traditional methods that rely on manual observation and video surveillance analysis are not only labor-intensive and inefficient, but also often difficult to achieve real-time and accurate monitoring in complex and changing working environments.
[0004] With the continuous advancement of artificial intelligence and computer vision technology, image-based potential risk behavior recognition technology provides us with a new solution. This technology can automatically extract key features from image data, and then identify and warn potential risk behaviors. However, it is worth noting that these advanced recognition technologies usually require a large amount of labeled data to ensure the high accuracy and strong robustness of their algorithms. At the same time, since static images lack information in the time dimension, there are certain limitations in the estimation of motion states and the description of actions, making it difficult to fully utilize spatiotemporal features to accurately describe risky behaviors.
[0005] In the face of these challenges, we need to continue to explore new methods and technologies to achieve faster and more accurate identification and prevention of potential risk behaviors, thereby ensuring that people’s lives and property safety are protected to the greatest extent possible.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The disclosed embodiments provide a zero-sample potential risk behavior detection method and device based on a multimodal large model to improve the practicality and recognition accuracy of the data set.
[0009] In some embodiments, the method comprises:
[0010] a. Create an image dataset containing a variety of potentially risky behaviors, accurately select the people in the images, and assign corresponding behavior category labels to each target box;
[0011] b. Construct a behavior description word library, wherein the description word library contains positive and negative descriptive words that describe the characteristics of potential risk behaviors;
[0012] c. Construct text prompt words based on the description words and prompt word projects in the description word library;
[0013] d. Build a two-stage multimodal recognition framework, first use the target detection algorithm to locate the person in the image, and then use the multimodal large model to deeply understand the image and text features and analyze the person's behavior;
[0014] e. Use a multimodal large model to perform feature analysis on each individual and combine it with a descriptive word generation strategy to extract key features related to potential risky behaviors;
[0015] f. Generate a binary output vector, i.e., the behavior description vector, based on the degree of match between each description word and the image content;
[0016] g. Based on the behavior description vector, determine whether the person in the image is performing specific potential risk behavior.
[0017] Optionally, in step b, based on the natural language processing tool GPT model, professional phrases describing the characteristics of potential risk behaviors are processed to generate descriptive phrases.
[0018] Optionally, in step g, the dot product of the behavior description vector and a predefined behavior coefficient vector is calculated to obtain a probability score of the behavior occurrence, and the score is compared with a set threshold to determine whether the behavior occurs.
[0019] Optionally, the image dataset in step a contains images of four potential risk behaviors: smoking, playing with mobile phones, making phone calls, and sleeping.
[0020] Optionally, in step d, the target detection algorithm is a YOLOv8 model, and the multimodal large model is a Yi-VL model.
[0021] Optionally, the method also includes: measuring the effectiveness of the model in detecting potential risk behaviors through experimental evaluation, and optimizing and adjusting the multimodal large model based on the evaluation results.
[0022] In some embodiments, the device includes a processor and a memory storing program instructions, and the processor is configured to execute the aforementioned zero-sample potential risk behavior detection method based on a multimodal large model when running the program instructions.
[0023] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, they execute the aforementioned zero-sample potential risk behavior detection method based on a multimodal large model.
[0024] The zero-sample potential risk behavior detection method and device based on a multimodal large model provided by the embodiments of the present disclosure can achieve the following technical effects:
[0025] This paper uses a two-stage multimodal recognition network technology to efficiently integrate image features and text descriptions, significantly improving the detection accuracy of potential risk behaviors.
[0026] At the same time, the behavior judgment method can accurately identify various types of potential risk behaviors. This technology has wide application value in the field of security monitoring in industrial environments and public places, and provides strong technical support for ensuring safety. The zero-sample learning method is adopted, so that the model can adapt to newly emerging risk behaviors or scenario changes without re-labeling data and training the model.
[0027] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0029] Figure 1 is a schematic diagram of a potential risk behavior detection framework provided by an embodiment of the present disclosure;
[0030] Figure 2 is a schematic diagram of a behavior judgment algorithm process provided by an embodiment of the present disclosure;
[0031] Figure 3It is a schematic diagram of a zero-sample potential risk behavior detection device based on a multimodal large model provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0033] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0034] Unless otherwise stated, the term "plurality" means two or more.
[0035] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0036] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0037] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0038] The term "prompt engineering" is a technique for optimizing language models. Prompt engineering, or prompt engineering, refers to guiding language models to generate more accurate and targeted output text by designing and adjusting input prompts. The goal of prompt engineering is to create the most effective prompts so that the model can understand and meet the needs of users. This involves understanding different scenarios, using appropriate vocabulary and grammatical structures, and trying different prompt strategies to see which strategy works best. With the development of large-scale language models, such as GPT-3, BERT, etc., the given prompts can greatly affect the content and quality of the model's response. Prompt engineering allows users to better utilize the capabilities of these models, providing a wide range of possibilities for various applications. Prompt engineering is usually based on large-scale corpora and machine learning algorithms. It uses these resources to perform pattern matching and statistical analysis on text data to infer the user's possible intentions and needs, and then generate corresponding prompts or suggestions. In the field of natural language processing and human-computer interaction, prompt engineering is often used in applications such as auto-completion, search suggestions, speech recognition, and smart assistants. These applications help users quickly input or obtain the required information through prompt word engineering, thereby improving the efficiency and accuracy of interaction. In summary, prompt word engineering is a powerful tool for guiding large language models to produce high-quality text output. With the continuous advancement of technology and the expansion of application scenarios, prompt word engineering will play an increasingly important role in the fields of natural language processing and human-computer interaction.
[0039] The present disclosure provides a zero-sample potential risk behavior detection method based on a multimodal large model. The method combines image data and natural language description to achieve high-precision detection and identification of potential risk behaviors in multi-person interaction scenes in complex environments.
[0040] Specifically, the method of the present disclosure comprises the following steps:
[0041] Dataset construction: Create an image dataset containing a variety of potentially risky behaviors, including but not limited to smoking, making phone calls, playing with mobile phones, sleeping, etc. Use annotation software to accurately select people in the image and assign corresponding behavior category labels to each target box. The images in the dataset are screened to ensure that the image quality meets the model evaluation requirements.
[0042] Build a behavior description vocabulary: Invite domain experts to design a series of professional phrases that describe the characteristics of potential risk behaviors, and use the natural language processing tool GPT model to generate more diverse and accurate description phrases. The vocabulary contains positive and negative description words to enhance the model's ability to identify potential risk behaviors.
[0043] Prompt word construction: Based on the behavior description vocabulary and combined with the prompt word project, corresponding text prompt words are constructed for each potential risk behavior.
[0044] A two-stage multimodal recognition framework is constructed: first, the object detection algorithm is used to locate the people in the image and select each human target. Then, a multimodal large model is used to deeply understand the image and text features and generate results related to potential risky behaviors.
[0045] Feature extraction and behavior understanding: Use a large multimodal model to conduct in-depth feature analysis of each individual, combined with positive and negative descriptive word generation strategies to extract key features related to potential risky behaviors.
[0046] Generate a behavior description vector: The multimodal large model generates a behavior description vector based on the degree of match between each description word and the image content. This vector quantitatively represents the degree of match between the image content and each description prompt word.
[0047] Behavior judgment algorithm: Based on the behavior description vector, an algorithm is designed to determine whether the person in the image is performing a specific potential risk behavior. By calculating the dot product of the behavior description vector and the pre-defined behavior coefficient vector, the probability score of the behavior is obtained and compared with the set threshold to determine whether the behavior has occurred.
[0048] Performance evaluation and optimization: Through experimental evaluation, performance indicators such as mAP50 are used to measure the effectiveness of the model in detecting potential risky behaviors, and the model is further optimized and adjusted based on the evaluation results.
[0049] This paper builds a comprehensive and accurate behavior description vocabulary by deeply integrating expert experience and advanced GPT models, which greatly improves the accuracy of behavior recognition.
[0050] The two-stage multimodal recognition network cleverly combines image features and text descriptions, significantly improving the detection accuracy of potential risky behaviors.
[0051] The behavior judgment algorithm can accurately identify a variety of potential risk behaviors and perfectly adapt to the security monitoring needs of industrial environments and public places.
[0052] After a series of rigorous experimental evaluations and performance optimization, the efficient operation and reliability of the model in practical applications can be ensured, providing users with stable and reliable security protection.
[0053] As an example, Figure 2 As shown, the present invention provides a zero-sample potential risk behavior detection method based on a multimodal large model, specifically taking the detection of four potential risk behaviors such as smoking, playing with mobile phones, making phone calls, and sleeping as an example, comprising the following steps:
[0054] 1) Dataset construction: Create an image dataset containing four types of potentially risky behaviors, use annotation software to accurately select people in the images, and assign corresponding behavior category labels to each target box. The images in the dataset are screened to ensure that the image quality meets the model evaluation requirements.
[0055] 2) Build a behavior description word library: Invite domain experts to design a series of phrases that describe the characteristics of potential risk behaviors, and use the natural language processing tool GPT model to generate more diverse and accurate description phrases. The word library contains positive and negative description words. For example, for playing with a mobile phone, the positive description word is "looking at the mobile phone screen" and the negative description word is "holding the mobile phone but not looking at it". Through positive and negative descriptions, the model's ability to identify potential risk behaviors is enhanced.
[0056] 3) Prompt word construction: Generate a text prompt word based on the description word in 2) combined with sophisticated prompt word engineering. For example: "Determine whether the person in the picture is performing the following actions: [action 1, action 2, ..., actionN]. If the corresponding action is performed, replace the action with 1 in the list, otherwise keep it as 0. Output the list:"
[0057] 4) Construct a two-stage multimodal recognition framework: Figure 1 As shown in the figure, we first use the target detection algorithm, such as the YOLOv8 model, to locate the people in the image and select each human target. Then, we use a multimodal large model, such as the Yi-VL model, to deeply understand the image and text features and analyze the behavior of people.
[0058] 5) Feature extraction and behavior understanding: With the help of a large multimodal model, we conduct in-depth feature analysis on each individual, and combine the positive and negative description prompt word generation strategies to extract key features related to potential risky behaviors.
[0059] 6) Generate behavior description vector: The model generates a binary output vector, the behavior description vector, based on the degree of match between each description word and the image content. This vector quantitatively represents the degree of match between the image content and each description prompt word.
[0060] 7) Behavior judgment algorithm: Figure 2 As shown, based on the behavior description vector, an algorithm is designed to determine whether the person in the image is performing a specific potential risk behavior. By calculating the dot product of the behavior description vector and the pre-defined behavior coefficient vector, the probability score of the behavior is obtained and compared with the set threshold to determine whether the behavior occurs.
[0061] 8) Performance evaluation and optimization: Through experimental evaluation, performance indicators such as mAP50 are used to measure the effectiveness of the model in detecting potential risky behaviors, and the model is further optimized and adjusted based on the evaluation results.
[0062] Combination Figure 3 As shown, the embodiment of the present disclosure provides a zero-sample potential risk behavior detection device 300 based on a multimodal large model, including a processor (processor) 304 and a memory (memory) 301. Optionally, the device may also include a communication interface (Communication Interface) 302 and a bus 303. Among them, the processor 304, the communication interface 302, and the memory 301 can communicate with each other through the bus 303. The communication interface 302 can be used for information transmission. The processor 304 can call the logic instructions in the memory 301 to execute the method for ... of the above embodiment.
[0063] In addition, the logic instructions in the memory 301 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0064] The memory 301 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 304 executes the function application and data processing by running the program instructions / modules stored in the memory 301, that is, the zero-sample potential risk behavior detection method based on the multimodal large model in the above embodiment is implemented.
[0065] The memory 301 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 301 may include a high-speed random access memory and may also include a non-volatile memory.
[0066] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned zero-sample potential risk behavior detection method based on a multimodal large model.
[0067] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0068] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0069] The above description and accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the scope of protection. As used in the description in the text, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0070] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0071] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0072] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A zero-sample potential risk behavior detection method based on a multimodal large model, characterized in that: include: a. Create an image dataset containing a variety of potentially risky behaviors, accurately select the people in the images, and assign corresponding behavior category labels to each target box; b. Construct a behavior description word library, wherein the description word library contains positive and negative descriptive words that describe the characteristics of potential risk behaviors; c. Construct text prompt words based on the description words and prompt word projects in the description word library; d. Build a two-stage multimodal recognition framework, first use the target detection algorithm to locate the person in the image, and then use the multimodal large model to deeply understand the image and text features and analyze the person's behavior; e. Use a multimodal large model to perform feature analysis on each individual and combine it with a descriptive word generation strategy to extract key features related to potential risky behaviors; f. Generate a binary output vector, i.e., the behavior description vector, based on the degree of match between each description word and the image content; g. Based on the behavior description vector, determine whether the person in the image is performing specific potential risk behavior.
2. The method according to claim 1, characterized in that In step b, based on the natural language processing tool GPT model, professional phrases describing the characteristics of potential risk behaviors are processed to generate descriptive phrases.
3. The method according to claim 1, characterized in that In step g, the dot product of the behavior description vector and the predefined behavior coefficient vector is calculated to obtain the probability score of the behavior occurrence, and the score is compared with the set threshold to determine whether the behavior occurs.
4. The method according to claim 1, characterized in that: The image dataset in step a contains images of four potential risk behaviors: smoking, playing with mobile phones, making phone calls, and sleeping.
5. The method according to claim 1, characterized in that In step d, the target detection algorithm is the YOLOv8 model, and the multimodal large model is the Yi-VL model.
6. The method according to any one of claims 1 to 5, characterized in that: Also includes: Through experimental evaluation, the effectiveness of the model in detecting potential risky behaviors is measured, and the multimodal large model is optimized and adjusted based on the evaluation results.
7. A zero-sample potential risk behavior detection device based on a multimodal large model, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the zero-sample potential risk behavior detection method based on a multimodal large model as described in any one of claims 1 to 6 when running the program instructions.
8. A storage medium storing program instructions, characterized in that: When the program instructions are run, they execute the zero-sample potential risk behavior detection method based on a multimodal large model as described in any one of claims 1 to 6.
Citation Information
Cited By
Method and system for assisting in identifying and evaluating floating objects in airport boundaries based on large model
CN118887624A
Application behavior detection method and device, electronic equipment and medium
CN119415360A
Multi-modal risk data synthesis method for anti-fraud and risk identification
CN119479026A
Fraud information identification method and device, electronic equipment, storage medium and program product
CN119722094A
Multi-agent intelligent video image analysis method and system
CN119741705A
