Algorithm combination-based AI video analysis method and system
By constructing a combination algorithm rule database and the relationship between multiple algorithm nodes, the efficient analysis of the video analysis system in complex scenarios is achieved, and the problem of combining multiple algorithms in the existing technology is solved. The problem of difficult to deeply explore relationships with multiple algorithms is improved, and the analysis accuracy and risks are improved. Timeliness of early warning.
Patent Information
- Application Number
- CN202411074411.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-29
AI Technical Summary
It is difficult for existing video analysis systems to effectively combine multiple algorithms for analysis in complex scenarios, and lack in-depth exploration of logical, temporal and spatial relationships between algorithms, resulting in insufficient analysis accuracy and flexibility.
Using an AI video analysis method based on algorithm combination, by constructing a combination algorithm rule library, it associates the logical relationship, temporal relationship and spatial relationship of multiple algorithm nodes, analyzes the video stream in real time and triggers the alarm mechanism, allowing users to customize the combination algorithm rules to enhance Flexibility and configurability of event recognition.
It improves the analysis accuracy and timeliness of risk warning in complex scenarios, enhances the efficiency and practicality of video analysis, and can promptly detect potential risks and avoid accidents.
Smart Images

Figure CN119048954A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of artificial intelligence video analysis, and in particular to an AI video analysis method and system based on algorithm combination. Background Art
[0002] At present, most algorithm technologies can only support a single algorithm scenario. Some video analysis systems try to combine multiple algorithms for analysis. However, these systems usually simply superimpose the results of multiple algorithms or make logical judgments. They lack in-depth exploration of the logical, temporal, and spatial relationships between algorithms, and are unable to meet the analysis needs in complex scenarios.
[0003] Therefore, in order to overcome the above technical problems, the present invention provides an AI video analysis method and system based on algorithm combination. Summary of the invention
[0004] The present invention provides an AI video analysis method and system based on algorithm combination, which can effectively overcome the limitations of a single algorithm through combined algorithm analysis, associate multiple algorithm capabilities, improve the analysis accuracy in complex scenarios, and solve the recognition problem of complex scenarios; allow users to customize combined algorithm rules according to actual needs, including algorithm type, logical relationship, time relationship, and spatial relationship, thereby enhancing the flexibility and configurability of event recognition; through real-time analysis and alarm mechanism, potential risks can be discovered in time, accidents can be effectively avoided, the timeliness of risk warning is improved, and the accuracy, efficiency and practicality of video analysis are comprehensively improved, and it has broad application prospects.
[0005] The present invention provides an AI video analysis method based on algorithm combination, comprising:
[0006] Step 1: Obtain the target demand scenario and build a combination algorithm rule library based on the target demand scenario;
[0007] Step 2: Analyze the video stream in real time according to the algorithm node to obtain the detection result of the algorithm node;
[0008] Step 3: Perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base;
[0009] Step 4: When the matching analysis results meet the preset conditions, the alarm mechanism is triggered.
[0010] Preferably, in an AI video analysis method based on algorithm combination, in step 1, the combined algorithm rule library includes: a plurality of algorithm rules;
[0011] Each algorithm rule includes multiple algorithm nodes, and each algorithm rule defines the logical relationship, time relationship and spatial relationship between the algorithm nodes.
[0012] Preferably, an AI video analysis method based on algorithm combination, in step 1, obtains the target demand scene, and builds a combination algorithm rule library according to the target demand scene, including:
[0013] Read the target demand scenario, determine the test items for testing the target demand scenario, and divide the target demand scenario into multiple sub-target demand scenarios according to the test items;
[0014] Assign multiple inspection points to each sub-goal requirement scenario based on the inspection items;
[0015] Get the detection target corresponding to each detection point, and configure the algorithm node for the detection point according to the detection target;
[0016] Define the target relationship between each detection point, and configure the corresponding logical relationship, time relationship and spatial relationship between algorithm nodes according to the target relationship;
[0017] Determine the algorithm rules between the corresponding sub-goal demand scenarios according to the algorithm nodes corresponding to the multiple detection points and the corresponding logical relationships, time relationships and spatial relationships between the algorithm nodes;
[0018] Integrate the algorithm rules corresponding to multiple sub-target demand scenarios to build a combined algorithm rule library corresponding to the target demand scenario.
[0019] Preferably, an AI video analysis method based on algorithm combination, in step 2, real-time analysis of the video stream is performed according to the algorithm node to obtain the detection result of the algorithm node, including:
[0020] Construct an analysis mechanism for the algorithm nodes, and input the video stream into the analysis mechanism to identify the video stream based on the algorithm nodes to obtain the key areas in the video stream;
[0021] Positioning the key area in the video stream and determining the state information corresponding to the key area in each frame of the video stream;
[0022] The state information corresponding to the key areas in each frame of the video stream is integrated to obtain the detection result of the video stream based on the algorithm node.
[0023] Preferably, in an AI video analysis method based on algorithm combination, in step 3, matching analysis is performed on the detection results of each algorithm node according to the combined algorithm rule base, including:
[0024] Read the detection results of each algorithm node on the video stream;
[0025] Retrieve the logical relationship, time relationship, and spatial relationship corresponding to each algorithm node in the combined algorithm rule library;
[0026] Based on the logical relationship, a first matching analysis is performed on the detection results of the video stream by each algorithm node to obtain a logical matching analysis result;
[0027] Based on the time relationship, a second matching analysis is performed on the detection results of each algorithm node on the video stream to obtain a time matching analysis result;
[0028] Based on the spatial relationship, a third matching analysis is performed on the detection results of each algorithm node on the video stream to obtain a spatial matching analysis result.
[0029] Preferably, an AI video analysis method based on algorithm combination, in step 4, when the matching analysis result meets the preset conditions, an alarm mechanism is triggered, including:
[0030] A first preset condition is set based on a logical relationship, a second preset condition is set based on a time relationship, and a third preset condition is set based on a spatial relationship;
[0031] respectively determining whether the logic matching analysis result satisfies the first preset condition, whether the time matching analysis result satisfies the second preset condition, and whether the space matching analysis result satisfies the third preset condition;
[0032] If the preset conditions are met, the alarm mechanism is triggered;
[0033] Otherwise, the alarm mechanism is not triggered.
[0034] Preferably, an AI video analysis method based on an algorithm combination triggers an alarm mechanism when a preset condition is met, including:
[0035] When the logic matching analysis result meets the first preset condition, the sound alarm operation in the alarm mechanism is automatically triggered;
[0036] When the time matching analysis result meets the second preset condition, the light alarm operation in the alarm mechanism is automatically triggered;
[0037] When the spatial matching analysis result meets the third preset condition, the vibration alarm operation in the alarm mechanism is automatically triggered.
[0038] Preferably, an AI video analysis method based on algorithm combination, in step 1, after building a combined algorithm rule base, further includes:
[0039] Obtain historical demand scenarios and the historical combination algorithm rule base corresponding to the historical demand scenarios;
[0040] Read the historical demand scenarios to determine the detection requirements and scenario requirements corresponding to the historical demand scenarios. At the same time, analyze the historical combination algorithm rule base corresponding to the historical demand scenarios to determine the types of algorithm nodes in the corresponding historical combination algorithm rule base and the combination characteristics between the algorithm nodes.
[0041] Performing a first association mapping between the type of the algorithm node and the detection requirement, and performing a second association mapping between the combined features between the algorithm nodes and the scene requirement;
[0042] Determine a target mapping relationship between a historical demand scenario and a historical combination algorithm rule base according to the first association mapping and the second association mapping;
[0043] According to the target mapping relationship, the historical demand scenarios and the corresponding historical combination algorithm rule library are encapsulated to build a comprehensive combination algorithm rule sample library;
[0044] A matching mechanism between historical demand scenarios and the combined algorithm rule library is constructed based on the target mapping relationship, and the matching mechanism is associated with the comprehensive combined algorithm rule sample library;
[0045] Based on the association result, the current demand scenario is analyzed according to the matching mechanism, and based on the analysis result, the combination algorithm rule library in the comprehensive combination algorithm rule sample library is matched for similarity, and based on the similarity matching result, the optimal combination algorithm rule library for the current demand scenario is determined;
[0046] Extract the execution features of the optimal combination algorithm rule base and determine the degree of membership of the execution features to the current demand scenario;
[0047] When the membership degree meets the preset standard, the current demand scenario is detected based on the optimal combination algorithm rule base;
[0048] When the membership degree does not meet the preset standard, determine the difference characteristics of the execution characteristics relative to the current demand scenario, and adjust the parameters of the optimal combination algorithm rule base based on the difference characteristics until the preset standard is met;
[0049] The optimal combination algorithm rule base after parameter adjustment is updated in the comprehensive combination algorithm rule base.
[0050] Preferably, an AI video analysis method based on an algorithm combination, when an alarm mechanism is triggered, reads the alarm operation type that triggers the alarm mechanism, and at the same time, determines an analysis report corresponding to the matching analysis result according to the alarm operation type, and transmits the analysis report to the monitoring terminal.
[0051] The present invention provides an AI video analysis system based on algorithm combination, comprising:
[0052] A combination algorithm rule base construction module is used to obtain target demand scenarios and construct a combination algorithm rule base according to the target demand scenarios;
[0053] The analysis and detection module is used to analyze the video stream in real time according to the algorithm node and obtain the detection result of the algorithm node;
[0054] The matching analysis module is used to perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base;
[0055] The early warning module is used to trigger the alarm mechanism when the matching analysis results meet the preset conditions.
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] Through combined algorithm analysis, the limitations of a single algorithm can be effectively overcome, the capabilities of multiple algorithms can be linked, the analysis accuracy in complex scenarios can be improved, and the recognition problems in complex scenarios can be solved; it allows users to customize combined algorithm rules according to actual needs, including algorithm type, logical relationship, time relationship, and spatial relationship, thereby enhancing the flexibility and configurability of event recognition; through real-time analysis and alarm mechanisms, potential risks can be discovered in a timely manner, accidents can be effectively avoided, the timeliness of risk warnings can be improved, and the accuracy, efficiency, and practicality of video analysis can be comprehensively improved, which has broad application prospects.
[0058] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures specifically pointed out in this application document.
[0059] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0061] Figure 1 Flowchart of an AI video analysis method based on algorithm combination in an embodiment of the present invention;
[0062] Figure 2 This is a flowchart of step 2 in an AI video analysis method based on algorithm combination in an embodiment of the present invention;
[0063] Figure 3 This is a structural diagram of an AI video analysis system based on algorithm combination in an embodiment of the present invention;
[0064] Figure 4 This is a test combination process diagram in an AI video analysis system based on algorithm combination in an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0066] Embodiment 1:
[0067] This embodiment provides an AI video analysis method based on algorithm combination, such as Figure 1 As shown, including:
[0068] Step 1: Obtain the target demand scenario and build a combination algorithm rule library based on the target demand scenario;
[0069] Step 2: Analyze the video stream in real time according to the algorithm node to obtain the detection result of the algorithm node;
[0070] Step 3: Perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base;
[0071] Step 4: When the matching analysis results meet the preset conditions, the alarm mechanism is triggered.
[0072] In this embodiment, the target demand scenario may be a scenario for analyzing a video stream, and the user may configure different combination algorithm rules according to actual needs.
[0073] For example, you can configure the "area intrusion detection + face recognition" rule to identify specific people entering a specific area; you can also configure the "work clothes detection + phone call detection" rule to identify the violation of "customers using mobile phones".
[0074] Each rule contains multiple algorithm nodes, and each algorithm node can select a different algorithm model, such as target detection, behavior recognition, face recognition, etc.
[0075] Each rule defines the logical relationship (AND, OR, NOT), time relationship (sequence, time interval), and spatial relationship (same area, different areas) between algorithm nodes, such as Figure 4 shown.
[0076] In this embodiment, the combined algorithm rule library includes: multiple algorithm rules; each algorithm rule includes multiple algorithm nodes, and each algorithm rule defines the logical relationship, time relationship and spatial relationship between the algorithm nodes. The combined algorithm rule library can be constructed based on the current target demand scenario, and is used to realize the algorithm library composed of multiple algorithm rules for matching and analyzing the target demand scenario.
[0077] In this embodiment, the detection result may be the recognition detection result corresponding to each algorithm node in the combined algorithm rule library. For example, if the algorithm node is a face recognition algorithm, the detection result is the recognized face data.
[0078] In this embodiment, a matching analysis is performed on the detection results of each algorithm node according to the combined algorithm rule base, that is, by determining the logical relationship, time relationship and spatial relationship corresponding to each algorithm node in the combined algorithm rule base, and matching the matching results with the corresponding logical relationship, time relationship and spatial relationship to determine the matching analysis result.
[0079] In this embodiment, the preset conditions may be pre-set conditions that are set based on corresponding logical relationships, time relationships, and spatial relationships, and are used as criteria for determining whether to trigger an alarm mechanism.
[0080] In this embodiment, firstly, the corresponding algorithm model is called according to each algorithm node, and the video stream is analyzed in real time to obtain the detection results of each algorithm; then, according to the preset combination algorithm rules, the detection results of different algorithms are matched and analyzed in terms of logical relationship, time relationship, and spatial relationship. For example, it is determined whether the recognition results of different algorithms meet the preset logical relationship, time sequence, spatial position relationship, etc.
[0081] In this embodiment, the alarm mechanism includes: sound alarm operation, light alarm operation and vibration alarm operation.
[0082] The working principle and beneficial effects of the above technical solution are: through combined algorithm analysis, the limitations of a single algorithm can be effectively overcome, the capabilities of multiple algorithms can be linked, the analysis accuracy in complex scenarios can be improved, and the recognition problems in complex scenarios can be solved; it allows users to customize combined algorithm rules according to actual needs, including algorithm type, logical relationship, time relationship, and spatial relationship, thereby enhancing the flexibility and configurability of event recognition; through real-time analysis and alarm mechanism, potential risks can be discovered in a timely manner, accidents can be effectively avoided, the timeliness of risk warnings can be improved, and the accuracy, efficiency and practicality of video analysis can be comprehensively improved, which has broad application prospects.
[0083] Embodiment 2:
[0084] Based on Example 1, this embodiment provides an AI video analysis method based on algorithm combination. In step 1, a target demand scenario is obtained, and a combination algorithm rule library is constructed according to the target demand scenario, including:
[0085] Read the target demand scenario, determine the test items for testing the target demand scenario, and divide the target demand scenario into multiple sub-target demand scenarios according to the test items;
[0086] Assign multiple inspection points to each sub-goal requirement scenario based on the inspection items;
[0087] Get the detection target corresponding to each detection point, and configure the algorithm node for the detection point according to the detection target;
[0088] Define the target relationship between each detection point, and configure the corresponding logical relationship, time relationship and spatial relationship between algorithm nodes according to the target relationship;
[0089] Determine the algorithm rules between the corresponding sub-goal demand scenarios according to the algorithm nodes corresponding to the multiple detection points and the corresponding logical relationships, time relationships and spatial relationships between the algorithm nodes;
[0090] Integrate the algorithm rules corresponding to multiple sub-target demand scenarios to build a combined algorithm rule library corresponding to the target demand scenario.
[0091] In this embodiment, the detection items can be the types that need to be detected in the target demand scenario, and different detection items correspond to different combination algorithm rules. For example, the detection items included in the corresponding target demand scenario in the gas station are: staff phone call detection and whether the call is made in the gas station area, and the corresponding combination algorithm rules are: "work clothes detection + phone call detection", "area intrusion detection + face recognition" rules.
[0092] In this embodiment, the detection point may be the core content that needs to be detected in each sub-goal requirement scenario.
[0093] In this embodiment, the detection target may be a detection object corresponding to the detection point.
[0094] In this embodiment, the target connection can be an association relationship between detection points, a mutually limiting relationship, for example: a customer is making a phone call at a gas station, that is, it can be a logical relationship, a time relationship, and a spatial relationship between limiting algorithm nodes. For example: the logical relationship is: the customer is making a phone call, and making the call at a gas station, the time relationship is: the customer takes out the mobile phone at the 1st second and starts making the call at the 12th second; the spatial relationship is: the customer is in the area where the gas station is located.
[0095] The beneficial effects of the above technical solution are: by determining the detection items of the target demand scenarios and dividing the target demand scenarios according to the detection items, the configuration of the algorithm nodes of the detection points can be effectively realized by allocating detection points and determining the detection targets, and by determining the target connection of the detection points, the logical relationship, time relationship and spatial relationship between the algorithm nodes can be effectively configured, and by effectively determining the algorithm rules between the corresponding sub-target demand scenarios and synthesizing the algorithm rules corresponding to the sub-target demand scenarios, the effective construction of the combined algorithm rule base is realized, thereby improving the comprehensiveness and effectiveness of constructing the combined algorithm rule base.
[0096] Embodiment 3:
[0097] Based on Example 1, this embodiment provides an AI video analysis method based on algorithm combination, such as Figure 2 As shown, in step 2, the video stream is analyzed in real time according to the algorithm node to obtain the detection result of the algorithm node, including:
[0098] S201: construct an analysis mechanism of algorithm nodes, and input the video stream into the analysis mechanism to identify the video stream based on the algorithm nodes to obtain key areas in the video stream;
[0099] S202: Positioning the key area in the video stream, and determining state information corresponding to the key area in each frame of the video stream;
[0100] S203: Integrate the state information corresponding to the key area in each frame image in the video stream to obtain the detection result of the video stream based on the algorithm node.
[0101] In this embodiment, the analysis mechanism may be a rule or process for implementing analysis and processing of the video stream, and the analysis mechanism of the algorithm node is constructed according to the preset analysis and processing rules.
[0102] In this embodiment, the key area may be a specific area in the video stream, which is the most core area. By determining the key area, the analysis scope can be narrowed and the efficiency of the analysis can be improved, for example: the area where the people in the video stream are located.
[0103] In this embodiment, the state information is obtained by locating the key area in the video stream, thereby obtaining the change state of the key area in each frame of the image, including: position change, behavior change and other information.
[0104] The beneficial effects of the above technical solution are: by realizing the recognition and tracking of key areas, the status information of key areas in the video stream is captured and summarized, and through accurate real-time analysis, the detection results are guaranteed to be more valuable, thereby improving the effectiveness and accuracy of obtaining the detection results.
[0105] Embodiment 4:
[0106] On the basis of Example 1, this embodiment provides an AI video analysis method based on algorithm combination. In step 3, matching analysis is performed on the detection results of each algorithm node according to the combined algorithm rule base, including:
[0107] Read the detection results of each algorithm node on the video stream;
[0108] Retrieve the logical relationship, time relationship, and spatial relationship corresponding to each algorithm node in the combined algorithm rule library;
[0109] Based on the logical relationship, a first matching analysis is performed on the detection results of the video stream by each algorithm node (that is, a logical analysis is performed on the detection results of each algorithm node through the logical relationship, for example: algorithm node 1 detects the presence of person A, and algorithm node 2 detects that person A carries a knife, then the logical analysis result is that there may be dangerous behavior), and a logical matching analysis result is obtained;
[0110] Perform a second matching analysis on the detection results of the video stream by each algorithm node based on the time relationship (i.e., perform a time analysis on the detection results of each algorithm node based on the time relationship, for example: if object C appears in the 3rd second of algorithm node 3, and algorithm node 4 detects that object C moves to position a in the 5th second, then the movement trajectory of object C can be obtained), and obtain the time matching analysis result;
[0111] Based on the spatial relationship, a third matching analysis is performed on the detection results of each algorithm node on the video stream (that is, if algorithm node 5 detects person B, and algorithm node 6 detects that person B appears in the dangerous area K, then it is determined that person B has entered the dangerous area) to obtain the spatial matching analysis result.
[0112] The beneficial effect of the above technical solution is: through logical relationships, time relationships and spatial relationships, the first matching analysis, the second matching analysis and the third matching analysis are performed on each algorithm node respectively, so as to obtain the matching analysis results under different dimensional relationships, which effectively enhances the flexibility and configurability of event recognition.
[0113] Embodiment 5:
[0114] Based on Example 1, this example provides an AI video analysis method based on algorithm combination. In step 4, when the matching analysis result meets the preset conditions, an alarm mechanism is triggered, including:
[0115] A first preset condition is set based on a logical relationship, a second preset condition is set based on a time relationship, and a third preset condition is set based on a spatial relationship;
[0116] respectively determining whether the logic matching analysis result satisfies the first preset condition, whether the time matching analysis result satisfies the second preset condition, and whether the space matching analysis result satisfies the third preset condition;
[0117] If the preset conditions are met, the alarm mechanism is triggered;
[0118] Otherwise, the alarm mechanism is not triggered.
[0119] In this embodiment, the first preset condition is set in advance based on a logical relationship; the second preset condition is set in advance based on a time relationship; and the third preset condition is set in advance based on a spatial relationship.
[0120] In this embodiment, when a preset condition is met, the alarm mechanism is triggered, including: when the logic matching analysis result meets the first preset condition, the sound alarm operation in the alarm mechanism is automatically triggered; when the time matching analysis result meets the second preset condition, the light alarm operation in the alarm mechanism is automatically triggered; when the space matching analysis result meets the third preset condition, the vibration alarm operation in the alarm mechanism is automatically triggered.
[0121] The beneficial effect of the above technical solution is that through real-time analysis and alarm mechanism, potential risks can be discovered in time, accidents can be effectively avoided, and the timeliness of risk warning can be improved.
[0122] Embodiment 6:
[0123] Based on Example 1, this embodiment provides an AI video analysis method based on algorithm combination. In step 1, after building a combined algorithm rule library, it also includes:
[0124] Obtain historical demand scenarios and the historical combination algorithm rule base corresponding to the historical demand scenarios;
[0125] Read the historical demand scenarios to determine the detection requirements and scenario requirements corresponding to the historical demand scenarios. At the same time, analyze the historical combination algorithm rule base corresponding to the historical demand scenarios to determine the types of algorithm nodes in the corresponding historical combination algorithm rule base and the combination characteristics between the algorithm nodes.
[0126] Performing a first association mapping between the type of the algorithm node and the detection requirement, and performing a second association mapping between the combined features between the algorithm nodes and the scene requirement;
[0127] Determine a target mapping relationship between a historical demand scenario and a historical combination algorithm rule base according to the first association mapping and the second association mapping;
[0128] According to the target mapping relationship, the historical demand scenarios and the corresponding historical combination algorithm rule library are encapsulated to build a comprehensive combination algorithm rule sample library;
[0129] A matching mechanism between historical demand scenarios and the combined algorithm rule library is constructed based on the target mapping relationship, and the matching mechanism is associated with the comprehensive combined algorithm rule sample library;
[0130] Based on the association result, the current demand scenario is analyzed according to the matching mechanism, and based on the analysis result, the combination algorithm rule library in the comprehensive combination algorithm rule sample library is matched for similarity, and based on the similarity matching result, the optimal combination algorithm rule library for the current demand scenario is determined;
[0131] Extract the execution features of the optimal combination algorithm rule base and determine the degree of membership of the execution features to the current demand scenario;
[0132] When the membership degree meets the preset standard, the current demand scenario is detected based on the optimal combination algorithm rule base;
[0133] When the membership degree does not meet the preset standard, determine the difference characteristics of the execution characteristics relative to the current demand scenario, and adjust the parameters of the optimal combination algorithm rule base based on the difference characteristics until the preset standard is met;
[0134] The optimal combination algorithm rule base after parameter adjustment is updated in the comprehensive combination algorithm rule base.
[0135] In this embodiment, the historical demand scenario may be a demand scenario for AI video analysis based on algorithm combination that has been implemented, which is obtained by retrieving from a historical database, wherein the historical database includes: historical demand scenarios and a historical combination algorithm rule library.
[0136] In this embodiment, the detection requirement may be a project requirement that needs to be detected in a historical demand scenario, for example: school uniform detection.
[0137] In this embodiment, the scenario requirement may be an adaptation scenario in the historical requirement scenario. For example, school uniform detection only exists on campus. Therefore, the scenario requirement is the background where the detection requirement exists.
[0138] In this embodiment, the first association mapping may be based on the mapping between the type of the algorithm node and the detection requirement. The relationship between the detection requirement and the algorithm node type can be clearly seen through the first association mapping.
[0139] In this embodiment, the second association mapping can be a mapping between the combined features between algorithm nodes and scene requirements. By determining the scene requirements, that is, under the scene requirements of the campus, what needs to be detected include: attendance status of classroom personnel, wearing of school uniforms, etc. Therefore, under the scene requirements, a combination of multiple algorithm nodes can be realized, that is, the relationship between the scene requirements and the combined features between the algorithm nodes is constituted.
[0140] In this embodiment, the comprehensive combination algorithm rule sample library includes: multiple historical demand scenarios and multiple historical combination algorithm rule libraries, and the historical demand scenarios and the historical combination algorithm rule libraries are connected in a one-to-one correspondence according to a target mapping relationship.
[0141] In this embodiment, the matching mechanism is the matching rule between the historical demand scenario and the combination algorithm rule base determined according to the target mapping relationship.
[0142] In this embodiment, the matching mechanism is associated with the comprehensive combination algorithm rule sample library in order to implement matching analysis for the current demand scenario.
[0143] In this embodiment, the optimal combination algorithm rule base is the combination algorithm rule base that has the best similarity to the current demand scenario in the comprehensive combination algorithm rule base.
[0144] In this embodiment, the degree of membership may be the degree to which the purpose to be achieved in the current demand scenario can be accomplished by executing the feature.
[0145] In this embodiment, the difference feature is that the execution feature of the optimal combination algorithm rule library does not meet the feature corresponding to the demand realized by the current demand scenario, which is the difference feature.
[0146] In this embodiment, the preset standard may be set in advance, and may be achieved by setting a membership threshold, thereby realizing detection of the current demand scenario based on the optimal combination algorithm rule library, wherein when the membership is equal to or greater than the membership threshold, it meets the preset standard, otherwise, it does not meet the standard.
[0147] The working principle and beneficial effects of the above technical solution are as follows: by obtaining historical demand scenarios and their corresponding historical combination algorithm rule bases, and by analyzing the historical demand scenarios and the historical combination algorithm rule bases, the types of algorithm nodes in the historical combination algorithm rule bases and the combination features between algorithm nodes are accurately obtained, and by performing a first association mapping between the types of algorithm nodes and the detection requirements and a second association mapping between the combination features between algorithm nodes and the scenario requirements, a foundation is laid for constructing a target mapping relationship between historical demand scenarios and the historical combination algorithm rule bases, thereby effectively realizing the construction of a comprehensive combination algorithm rule sample base and by constructing historical demand scenarios. The matching mechanism of the scene and the combination algorithm rule library is established, and the matching mechanism is associated with the comprehensive combination algorithm rule sample library, so as to establish effective and accurate matching rules for the real-time demand scenarios, so as to provide effective support for the analysis of the current demand scenarios, and the optimal combination algorithm rule library is obtained through the matching results. By verifying the execution characteristics of the optimal algorithm rule library, the convenience and reliability of detecting the current demand scenarios can be effectively improved. When the preset standards are not met, the optimal combination algorithm rule library is updated to adjust the parameters, so as to effectively realize the update of the comprehensive combination algorithm rule library, which can further improve the intelligence and effectiveness of video analysis.
[0148] Embodiment 7:
[0149] Based on Example 5, this embodiment provides an AI video analysis method based on algorithm combination. When the alarm mechanism is triggered, the alarm operation type that triggers the alarm mechanism is read. At the same time, the analysis report corresponding to the matching analysis result is determined according to the alarm operation type, and the analysis report is transmitted to the monitoring terminal.
[0150] In this embodiment, the monitoring terminal may be a mobile phone, a computer, etc.
[0151] The beneficial effect of the above technical solution is that timely reading of the analysis report can timely discover potential risks and effectively avoid accidents, thereby improving the timeliness of risk warnings.
[0152] Embodiment 8:
[0153] This embodiment provides an AI video analysis system based on algorithm combination, such as Figure 3 As shown, including:
[0154] A combination algorithm rule base construction module is used to obtain target demand scenarios and construct a combination algorithm rule base according to the target demand scenarios;
[0155] The analysis and detection module is used to analyze the video stream in real time according to the algorithm node and obtain the detection result of the algorithm node;
[0156] The matching analysis module is used to perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base;
[0157] The early warning module is used to trigger the alarm mechanism when the matching analysis results meet the preset conditions.
[0158] The working principle and beneficial effects of the above technical solution are: through combined algorithm analysis, the limitations of a single algorithm can be effectively overcome, the capabilities of multiple algorithms can be linked, the analysis accuracy in complex scenarios can be improved, and the recognition problems in complex scenarios can be solved; it allows users to customize combined algorithm rules according to actual needs, including algorithm type, logical relationship, time relationship, and spatial relationship, thereby enhancing the flexibility and configurability of event recognition; through real-time analysis and alarm mechanism, potential risks can be discovered in a timely manner, accidents can be effectively avoided, the timeliness of risk warnings can be improved, and the accuracy, efficiency and practicality of video analysis can be comprehensively improved, which has broad application prospects.
[0159] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An AI video analysis method based on algorithm combination, characterized in that: include: Step 1: Obtain the target demand scenario and build a combination algorithm rule library based on the target demand scenario; Step 2: Analyze the video stream in real time according to the algorithm node to obtain the detection result of the algorithm node; Step 3: Perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base; Step 4: When the matching analysis results meet the preset conditions, the alarm mechanism is triggered.
2. The AI video analysis method based on algorithm combination according to claim 1, characterized in that: In step 1, the combined algorithm rule base includes: a plurality of algorithm rules; Each algorithm rule includes multiple algorithm nodes, and each algorithm rule defines the logical relationship, time relationship and spatial relationship between the algorithm nodes.
3. The AI video analysis method based on algorithm combination according to claim 1 is characterized in that: In step 1, the target demand scenario is obtained, and a combination algorithm rule library is constructed according to the target demand scenario, including: Read the target demand scenario, determine the test items for testing the target demand scenario, and divide the target demand scenario into multiple sub-target demand scenarios according to the test items; Assign multiple inspection points to each sub-goal requirement scenario based on the inspection items; Get the detection target corresponding to each detection point, and configure the algorithm node for the detection point according to the detection target; Define the target relationship between each detection point, and configure the corresponding logical relationship, time relationship and spatial relationship between algorithm nodes according to the target relationship; Determine the algorithm rules between the corresponding sub-goal demand scenarios according to the algorithm nodes corresponding to the multiple detection points and the corresponding logical relationships, time relationships and spatial relationships between the algorithm nodes; Integrate the algorithm rules corresponding to multiple sub-target demand scenarios to build a combined algorithm rule library corresponding to the target demand scenario.
4. The AI video analysis method based on algorithm combination according to claim 1, characterized in that: In step 2, the video stream is analyzed in real time according to the algorithm node to obtain the detection result of the algorithm node, including: Construct an analysis mechanism for the algorithm nodes, and input the video stream into the analysis mechanism to identify the video stream based on the algorithm nodes to obtain the key areas in the video stream; Positioning the key area in the video stream and determining the state information corresponding to the key area in each frame of the video stream; The state information corresponding to the key areas in each frame of the video stream is integrated to obtain the detection result of the video stream based on the algorithm node.
5. The AI video analysis method based on algorithm combination according to claim 1, characterized in that: In step 3, the detection results of each algorithm node are matched and analyzed according to the combined algorithm rule base, including: Read the detection results of each algorithm node on the video stream; Retrieve the logical relationship, time relationship, and spatial relationship corresponding to each algorithm node in the combined algorithm rule library; Based on the logical relationship, a first matching analysis is performed on the detection results of the video stream by each algorithm node to obtain a logical matching analysis result; Based on the time relationship, a second matching analysis is performed on the detection results of each algorithm node on the video stream to obtain a time matching analysis result; Based on the spatial relationship, a third matching analysis is performed on the detection results of each algorithm node on the video stream to obtain a spatial matching analysis result.
6. The AI video analysis method based on algorithm combination according to claim 1, characterized in that: In step 4, when the matching analysis result meets the preset conditions, the alarm mechanism is triggered, including: A first preset condition is set based on a logical relationship, a second preset condition is set based on a time relationship, and a third preset condition is set based on a spatial relationship; respectively determining whether the logic matching analysis result satisfies the first preset condition, whether the time matching analysis result satisfies the second preset condition, and whether the space matching analysis result satisfies the third preset condition; If the preset conditions are met, the alarm mechanism is triggered; Otherwise, the alarm mechanism is not triggered.
7. The AI video analysis method based on algorithm combination according to claim 6 is characterized in that: When the preset conditions are met, the alarm mechanism is triggered, including: When the logic matching analysis result meets the first preset condition, the sound alarm operation in the alarm mechanism is automatically triggered; When the time matching analysis result meets the second preset condition, the light alarm operation in the alarm mechanism is automatically triggered; When the spatial matching analysis result meets the third preset condition, the vibration alarm operation in the alarm mechanism is automatically triggered.
8. The AI video analysis method based on algorithm combination according to claim 1, characterized in that: In step 1, after building the combined algorithm rule base, it also includes: Obtain historical demand scenarios and the historical combination algorithm rule base corresponding to the historical demand scenarios; Read the historical demand scenarios to determine the detection requirements and scenario requirements corresponding to the historical demand scenarios. At the same time, analyze the historical combination algorithm rule base corresponding to the historical demand scenarios to determine the types of algorithm nodes in the corresponding historical combination algorithm rule base and the combination characteristics between the algorithm nodes. Performing a first association mapping between the type of the algorithm node and the detection requirement, and performing a second association mapping between the combined features between the algorithm nodes and the scene requirement; Determine a target mapping relationship between a historical demand scenario and a historical combination algorithm rule base according to the first association mapping and the second association mapping; According to the target mapping relationship, the historical demand scenarios and the corresponding historical combination algorithm rule library are encapsulated to build a comprehensive combination algorithm rule sample library; A matching mechanism between historical demand scenarios and the combined algorithm rule library is constructed based on the target mapping relationship, and the matching mechanism is associated with the comprehensive combined algorithm rule sample library; Based on the association result, the current demand scenario is analyzed according to the matching mechanism, and based on the analysis result, the combination algorithm rule library in the comprehensive combination algorithm rule sample library is matched for similarity, and based on the similarity matching result, the optimal combination algorithm rule library for the current demand scenario is determined; Extract the execution features of the optimal combination algorithm rule base and determine the degree of membership of the execution features to the current demand scenario; When the membership degree meets the preset standard, the current demand scenario is detected based on the optimal combination algorithm rule base; When the membership degree does not meet the preset standard, determine the difference characteristics of the execution characteristics relative to the current demand scenario, and adjust the parameters of the optimal combination algorithm rule base based on the difference characteristics until the preset standard is met; The optimal combination algorithm rule base after parameter adjustment is updated in the comprehensive combination algorithm rule base.
9. The AI video analysis method based on algorithm combination according to claim 7 is characterized in that: When the alarm mechanism is triggered, the alarm operation type that triggers the alarm mechanism is read, and at the same time, the analysis report corresponding to the matching analysis result is determined according to the alarm operation type, and the analysis report is transmitted to the monitoring terminal.
10. An AI video analysis system based on algorithm combination, characterized in that: include: A combination algorithm rule base construction module is used to obtain target demand scenarios and construct a combination algorithm rule base according to the target demand scenarios; The analysis and detection module is used to analyze the video stream in real time according to the algorithm node and obtain the detection result of the algorithm node; The matching analysis module is used to perform matching analysis on the detection results of each algorithm node according to the combined algorithm rule base; The early warning module is used to trigger the alarm mechanism when the matching analysis results meet the preset conditions.
