Security control prompt word optimization method and device, storage medium and computer equipment

By generating true positive and false positive sample sets, combining security officer feedback labels and weighted data to quantify false alarm scores, and using the prompt word optimization model to generate and verify constraint clauses, the problems of low prompt word optimization efficiency and high false alarm rate in security deployment systems are solved, thereby improving the stability and accuracy of security deployment systems.

CN123180132APending Publication Date: 2026-11-27ZKTECO CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611398557.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-09
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing security deployment systems, the optimization efficiency of prompt words is low, it cannot adapt to rapidly changing security scenarios in a timely manner, it is difficult to balance the false alarm rate and the missed alarm rate, and the optimization effect is unstable.

Method used

By generating true positive and false positive sample sets, using safety officer feedback labels and weight data to quantify false alarm scores, and employing a prompt word optimization model to perform conditional constraint analysis, constraint clauses are generated and verified to optimize the original prompt words.

Benefits of technology

It improves the accuracy of false alarm event identification, ensuring that the optimized prompt words reduce the false alarm rate without affecting the ability to identify real alarms, thereby improving the stability and efficiency of the security deployment system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180132A_ABST
    Figure CN123180132A_ABST
Patent Text Reader

Abstract

The security control hint word optimization method and device, the storage medium and the computer equipment provided by the application, before the optimization of the hint word, first generate a true positive sample set and a false positive sample set according to the alarm data of multiple alarm events output by a security control system and the corresponding security guard feedback labels, and determine the security guard weight data of the false positive sample set, complete the quantitative evaluation of the false alarm score by introducing the security guard weight data to the false positive sample set, and improve the accuracy of false alarm event identification. If there is an alarm event with a false alarm score greater than a trigger threshold, a hint word optimization model is used to perform conditional constraint analysis on the original hint word corresponding to the event and the false positive sample, extract redundant conditions that can cause a large number of false alarms from the original hint word and the false positive sample, and generate corresponding constraint clauses. Finally, the true positive sample set is used to evaluate and verify the constraint clauses, only the constraint clauses that pass the verification are used for the optimization and update of the final hint word, and the stability of the optimization effect is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of security deployment technology, and in particular to a method, device, storage medium and computer equipment for optimizing security deployment prompts. Background Technology

[0002] As the application of artificial intelligence technology in the security field continues to deepen, most mainstream security deployment systems currently rely on pre-set prompts to trigger alarm events. The rationality of the prompt settings directly determines the alarm accuracy of the security system. Due to the dynamic changes in the scene environment, the characteristics of security targets such as people and objects will change over time. The initially set original prompts often cannot adapt to the new scene characteristics, easily generating a large number of false alarms. This increases the workload of security personnel in verification and reduces the sensitivity of security personnel to real alarm events.

[0003] Currently, the adjustment and optimization of alarm prompts for security deployment mostly rely on manual adjustments by technical personnel based on their experience. This method is not only inefficient and unable to adapt to rapidly changing security scenarios, but also makes it difficult to accurately quantify the false alarm contribution of different types of alarm events. As a result, the optimized prompts are difficult to balance the false alarm rate and the missed alarm rate, and the stability of the optimization effect cannot be guaranteed. Summary of the Invention

[0004] The purpose of this application is to at least solve one of the above-mentioned technical defects, in particular the technical defect that the existing security deployment alarm prompt word optimization method is difficult to balance the false alarm rate and the false alarm rate, and cannot guarantee the stability of the optimization effect.

[0005] This application provides a method for optimizing security deployment prompts, the method comprising: Based on the alarm data of various alarm events output by the security deployment system within a preset time window and the security officer feedback label for each alarm data, a true positive sample set and a false positive sample set are generated. Determine the safety officer weight data for the false positive sample set, and perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain the false alarm score for each alarm event; Alarm events with false alarm scores greater than the trigger threshold are marked as events to be optimized. A preset prompt word optimization model is used to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and constraint clauses are generated. The constraint clauses are evaluated and verified using a set of true positive samples, and the original prompt words are optimized based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

[0006] Optionally, the step of generating a true positive sample set and a false positive sample set based on the alarm data output by the security deployment system within a historical time period and the security officer feedback tags for each alarm data includes: Extract alarm data output by the security deployment system within a preset time window, and determine the security officer feedback result corresponding to each alarm data from the feedback platform; the security officer feedback result includes the security officer who handled the corresponding alarm data and the confirmation result; Each alarm data point is labeled with a safety officer feedback tag based on the feedback results from each safety officer, forming multiple alarm samples; The alarm samples whose confirmation results are correct are selected to generate a true positive sample set, and the alarm samples whose confirmation results are incorrect are selected to generate a false positive sample set.

[0007] Optionally, determining the safety officer weight data for the false positive sample set includes: The safety officer handling each false positive sample is identified based on the safety officer feedback tags of each false positive sample in the false positive sample set. For each security officer involved, the feedback dataset of that security officer is confirmed from the feedback platform, and the feedback accuracy of the feedback dataset is calculated. Based on the feedback accuracy of each feedback dataset, a safety officer weight is assigned to each handling safety officer, and the safety officer weight data of the false positive sample set is generated based on the safety officer weights of each handling safety officer.

[0008] Optionally, the step of performing feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain a false alarm score for each alarm event includes: For each type of alarm event, features are extracted from the false positive samples in the false positive sample set corresponding to that type of alarm event according to preset feature dimensions, to obtain a feature set of multiple dimensions for that type of alarm event. Extract the safety officer weights corresponding to false positive samples under this type of alarm event from the safety officer weight data, and use the safety officer weights to perform weighted summation on the feature set of each dimension to obtain the feature contribution value of each dimension. The false alarm score for this type of alarm event is obtained by summing the contribution values ​​of each feature.

[0009] Optionally, the prompt word optimization model includes a condition decomposition layer, an interval mapping layer, and a condition generation layer; The method utilizes a preset prompt word optimization model to perform conditional constraint analysis on the original prompt words and false positive samples corresponding to the event to be optimized, generating constraint clauses, including: The condition decomposition layer decomposes the original prompt words corresponding to the event to be optimized into multiple basic alarm conditions, and determines the feature interval corresponding to each basic alarm condition. The interval mapping layer extracts multi-dimensional feature data of false positive samples corresponding to the event to be optimized, and maps the multi-dimensional feature data to the corresponding feature intervals to obtain the mapping frequency of each feature interval. The condition generation layer marks basic alarm conditions whose mapping frequency exceeds a preset exclusion threshold as redundant conditions, and generates constraint clauses based on the feature intervals of the redundant conditions.

[0010] Optionally, the step of evaluating and validating the constraint clause using a set of true positive samples includes: Extract all true positive samples corresponding to the event to be optimized from the true positive sample set, and add the constraint clause to the original prompt words to obtain the prompt words to be tested; All true positive samples are input into the security deployment system so that the security deployment system can use the test prompt words to perform alarm trigger tests on all true positive samples and obtain trigger results; The verification pass rate is obtained by calculating the ratio between the number of successful triggers in the trigger results and the total number of all true positive samples. The specificity score is obtained by determining the ratio of the number of true positive samples that satisfy the constraint clause to the number of successful triggers in the triggering results, and the coverage of the constraint clause in all true positive samples is determined. The validation result of the constraint clause is determined based on the validation pass rate, the specificity score, and the coverage rate.

[0011] Optionally, determining the validation result of the constraint clause based on the validation pass rate, the specificity score, and the coverage rate includes: Determine whether the verification pass rate, the specificity score, and the coverage rate all meet the preset pass conditions; If so, then the verification result of the constraint clause is confirmed as successful. If not, the validation result of the constraint clause is confirmed as validation failure, and the constraint clause is optimized using the prompt word optimization model until the validation result of the optimized constraint clause is successful, or the number of optimizations of the constraint clause reaches a preset optimization threshold.

[0012] This application also provides a security deployment prompt word optimization device, including: The sample acquisition module is used to generate a true positive sample set and a false positive sample set based on the alarm data of multiple alarm events output by the security deployment system within a preset time window and the security officer feedback label for each alarm data. The score evaluation module is used to determine the safety officer weight data of the false positive sample set, and to perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain the false alarm score of each alarm event. The constraint generation module is used to mark alarm events with false alarm scores greater than the trigger threshold as events to be optimized, and to use a preset prompt word optimization model to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and generate constraint clauses. The prompt word optimization module is used to evaluate and verify the constraint clauses using a set of true positive samples, and optimize the original prompt words based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

[0013] This application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the security deployment prompt word optimization method as described in any of the above embodiments.

[0014] This application also provides a computer device, including: one or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the security deployment prompt word optimization method as described in any of the above embodiments.

[0015] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This application provides a method, apparatus, storage medium, and computer equipment for optimizing security deployment prompts. This application can periodically generate true positive and false positive sample sets based on alarm data from multiple types of alarm events output by the security deployment system within a preset time window, as well as the security officer feedback tags for each alarm data. This allows for sample segmentation based on the security officer feedback tags, fully reflecting the false alarm situation in actual security scenarios. Subsequently, the security officer weight data for the false positive sample set can be determined. By introducing the security officer weight data into the false positive sample set, a quantitative evaluation of the false alarm score can be completed. This allows for the differentiation of the reference value of different samples based on the accuracy of security officer feedback, improving the accuracy of false alarm event identification. If the quantitative evaluation results show alarm events with false alarm scores exceeding the trigger threshold, these events can be marked as events to be optimized. A pre-defined prompt word optimization model is then used to perform condition constraint analysis on the corresponding original prompt words and false positive samples. This process extracts redundant conditions that could trigger numerous false alarms and generates corresponding constraint clauses. Finally, a set of true positive samples is used to evaluate and verify the constraint clauses. Only the verified constraint clauses are used for the final prompt word optimization update, ensuring that the constraints do not impair the original prompt words' ability to identify real alarm events. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart illustrating a method for optimizing security deployment prompts provided in this application embodiment; Figure 2 A flowchart illustrating the analysis process of a prompt word optimization model provided in this application embodiment; Figure 3 A schematic diagram of a security deployment prompt word optimization device provided in this application embodiment; Figure 4 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0019] At present, the adjustment and optimization of security deployment alarm prompt words mostly rely on technicians to manually adjust based on experience. This method not only has low optimization efficiency and cannot adapt to rapidly changing security scenarios in a timely manner, but also makes it difficult to accurately quantify the false alarm contribution of different types of alarm events, resulting in the optimized prompt words being unable to balance the false alarm rate and the missing alarm rate, and unable to guarantee the stability of the optimization effect.

[0020] Based on this, this application proposes the following technical solutions, as detailed below: In one embodiment, as Figure 1 shown in Figure 1 is a schematic flowchart of a security deployment prompt word optimization method provided by the embodiment of this application. This application provides a security deployment prompt word optimization method, which specifically includes the following steps: S110: Generate a true positive sample set and a false positive sample set according to the alarm data of multiple types of alarm events output by the security deployment system within a preset time window and the safety officer feedback label for each alarm data.

[0021] In this step, the computer device can periodically generate a true positive sample set and a false positive sample set according to the alarm data of multiple types of alarm events output by the security deployment system within a preset time window and the safety officer feedback label for each alarm data, so that sample division can be completed relying on the safety officer feedback label, which fully fits the false alarm situation in actual security scenarios.

[0022] Among them, the security deployment system is mainly applied in specific security areas. It is pre-configured with prompt words for multiple types of alarm events, such as personnel intrusion alarms, dangerous item left-behind alarms, area boundary crossing alarms, abnormal gathering alarms, etc., which are used to determine the target scenarios and characteristic conditions that need to trigger alarms, and then perform target recognition and alarm triggering on the monitoring data collected by the image acquisition device. In addition, the preset time window of this application can be set in advance according to the update frequency of the security scenario, for example, set to one week or one month, to ensure that the sample data can cover the latest scenario changes. The safety officer feedback label is the confirmation mark of the safety officer on whether the alarm event is a real alarm, which can be directly obtained from the feedback platform supporting the security deployment system.

[0023] Specifically, the computer device can periodically obtain the alarm data of multiple types of alarm events output by the security deployment system within a preset time window, and synchronously obtain the safety officer feedback label input by the safety officer for each alarm data. After the computer device completes the association and matching between the alarm data and the safety officer feedback label, it can divide the alarm data whose feedback label is a real alarm label into the true positive sample set, and divide the alarm data whose feedback label is a false alarm label into the false positive sample set, so that the scenario characteristics corresponding to normal trigger alarms and false alarms can be accurately distinguished, improving the pertinence and accuracy of the subsequent prompt word optimization process.

[0024] S120: Determine the safety officer weight data for the false positive sample set, and perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain the false alarm score for each alarm event.

[0025] In this step, after obtaining the false positive sample set through step S110, the computer device can further determine the safety officer weight data of the false positive sample set. Then, by introducing the safety officer weight data into the false positive sample set, the false alarm score is quantitatively evaluated to obtain the false alarm score of each alarm event. Here, the reference value of the safety officer feedback accuracy rate is combined to distinguish different samples, thus improving the accuracy of false alarm event identification.

[0026] The safety officer weight data refers to the weight parameters corresponding to at least one safety officer involved in processing the confirmation feedback of false positive samples. The weight is determined by the safety officer's past feedback performance. For example, the higher the past feedback performance of a safety officer, the higher the reference value of the false positive samples they label, and the larger the corresponding weight value; conversely, if the past feedback performance of a safety officer is low, the weight of the samples they label will also be reduced accordingly. This avoids low-quality labeled samples interfering with the calculation results of the false alarm score, thereby further ensuring the accuracy of the false alarm quantitative assessment.

[0027] Specifically, for each type of alarm event, the computer equipment can perform feature extraction and quantitative analysis on the data corresponding to the security officer weight data and the false positive sample set, and then integrate them to obtain the false alarm score of that type of alarm event. This quantifies the probability and severity of false alarms caused by the prompt words corresponding to that type of alarm event in the security deployment system.

[0028] Understandably, this application takes into full account the differences in the accuracy of feedback results from different safety officers during the historical verification process. When calculating the false alarm scores for various alarm events, safety officer weight data is introduced, which can effectively reduce the bias in false alarm assessment caused by differences in human judgment, different levels of experience, or accidental misjudgment, and improve the authenticity and credibility of false alarm scores.

[0029] S130: Mark alarm events with false alarm scores greater than the trigger threshold as events to be optimized, and use the preset prompt word optimization model to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and generate constraint clauses.

[0030] In this step, after calculating the false alarm scores of various alarm events through step S120, if there are alarm events with false alarm scores greater than the trigger threshold, they can be marked as events to be optimized. Then, the preset prompt word optimization model is used to perform condition constraint analysis on the corresponding original prompt words and false positive samples, extracting the redundant conditions that may cause a large number of false alarms and generating the corresponding constraint clauses.

[0031] Specifically, when the false alarm score of at least one type of alarm event exceeds the trigger threshold, it indicates that the corresponding alarm event has a high risk of false alarms in the current security scenario. At this point, the computer device can mark the alarm event as an event to be optimized and trigger the prompt word optimization process. In detail, after identifying the event to be optimized, the computer device can extract the original prompt words corresponding to the event from the security deployment system, and extract false positive samples from the false positive sample set. The original prompt words can include descriptions of the target object, behavior, environmental constraints, spatial constraints, time constraints, and alarm triggering rules; false positive samples can include corresponding monitoring data, alarm data, and security personnel feedback results.

[0032] Furthermore, the computer device can input both the original prompt words and false positive samples into a pre-defined prompt word optimization model. The model then combines the scene features in the false positive samples with the semantic content of the original prompt words to perform conditional constraint analysis. This identifies prompt conditions in the original prompt words that are highly relevant to the actual false alarm scenario and analyzes the impact of each prompt condition on the false alarm. When a prompt condition is detected to be repeatedly triggered in a large number of false positive samples and lacks necessary scene constraints, the computer device can determine that the prompt condition is a redundant condition causing a false alarm. It can then automatically generate corresponding constraint clauses based on the semantic relationships corresponding to this redundant condition. These constraint clauses can include restrictions on target attributes, behaviors, regions, times, quantities, environmental states, or combinations of triggering restrictions, etc., which are not specified here.

[0033] Understandably, this application uses a prompt word optimization model to perform conditional constraint analysis on the original prompt words and false positive samples. This allows for precise identification of key prompt conditions that frequently lead to false alarms, and automatic extraction of corresponding redundant conditions. This avoids relying on manual experience to systematically check prompt word content, thus improving the efficiency of prompt word optimization. Furthermore, the constraint clauses generated in this way can supplement missing target attributes, behavioral characteristics, environmental conditions, or spatial relationships in the original prompt words, enabling the optimized prompt words to more accurately describe real alarm scenarios and reduce false alarms caused by overly broad prompt conditions.

[0034] S140: The constraint clauses are evaluated and verified using a set of true positive samples, and the original prompt words are optimized based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

[0035] In this step, after generating the constraint clause through step S130, the computer device can use a set of true positive samples to evaluate and verify the constraint clause. Only the constraint clauses that pass the verification are used for the final optimization and update of the prompt words, ensuring that the constraint conditions do not impair the original prompt words' ability to identify real alarm events.

[0036] Understandably, since the newly added constraint clauses limit the trigger range of the original alert words, if the constraint range is set too narrowly, it may mistakenly exclude true positive alarms that originally met the requirements, thus leading to an increased false negative rate. Therefore, after generating the constraint clauses, this application can also use a set of true positive samples to evaluate and verify the actual effect of the constraint clauses. Only constraint clauses whose actual effect meets the preset conditions can pass the verification and be added to the original alert words for optimization and update, so that the generated optimized alert words can avoid unreasonable constraints affecting the overall alarm capability of security deployment.

[0037] In the above embodiments, this application can periodically generate a true positive sample set and a false positive sample set based on the alarm data of multiple types of alarm events output by the security deployment system within a preset time window and the security officer feedback label of each alarm data. This allows for sample segmentation based on the security officer feedback label, fully reflecting the false alarm situation in actual security scenarios. Subsequently, the security officer weight data for the false positive sample set can be determined. By introducing the security officer weight data into the false positive sample set, a quantitative evaluation of the false alarm score can be completed. This allows for the differentiation of the reference value of different samples based on the security officer feedback accuracy, improving the accuracy of false alarm event identification. If there are alarm events in the quantitative evaluation results with false alarm scores greater than the trigger threshold, they can be marked as events to be optimized. A preset prompt word optimization model is used to perform condition constraint analysis on the corresponding original prompt words and false positive samples, extracting redundant conditions that will cause a large number of false alarms and generating corresponding constraint clauses. Finally, the constraint clauses can be evaluated and verified using the true positive sample set. Only the verified constraint clauses are used for the final prompt word optimization update, ensuring that the constraint conditions do not impair the original prompt words' ability to identify real alarm events.

[0038] In one embodiment, step S110, which generates a true positive sample set and a false positive sample set based on the alarm data output by the security deployment system within a historical time period and the security officer feedback tag for each alarm data, may include: S111: Extract alarm data output by the security deployment system within a preset time window, and determine the security officer feedback result corresponding to each alarm data from the feedback platform; the security officer feedback result includes the security officer who handled the corresponding alarm data and the confirmation result.

[0039] S112: Label each alarm data with a safety officer feedback tag based on the feedback results from each safety officer, forming multiple alarm samples.

[0040] S113: Filter out alarm samples whose confirmation results are correct and generate a true positive sample set; and filter out alarm samples whose confirmation results are incorrect and generate a false positive sample set.

[0041] In this embodiment, during sample generation, the computer device can first extract the alarm data output by the security deployment system within a preset time window, and determine the security officer feedback result corresponding to each alarm data from the feedback platform. Then, based on the feedback results of each security officer, the computer device can label each alarm data with a security officer feedback tag to form multiple alarm samples. Subsequently, the computer device can filter out alarm samples whose confirmation results are correct to generate a true positive sample set, and filter out alarm samples whose confirmation results are incorrect to generate a false positive sample set.

[0042] It should be noted that when the security deployment system triggers an alarm event, it will output the corresponding monitoring data and alarm data and upload them to the feedback platform so that the on-duty security officer can check the triggered alarm event and provide a confirmation result. The confirmation result is mainly whether the alarm is correct or incorrect.

[0043] Therefore, after the computer equipment extracts the alarm data output by the security deployment system within a preset time window, it can directly retrieve the security officer feedback results corresponding to each alarm data from the feedback platform and complete the annotation of the security officer feedback tags, obtaining alarm samples with tags. This process can quickly complete the sample classification and organization without additional manual operation. After all alarm samples are constructed, the computer equipment can classify and filter each alarm sample according to the security officer feedback tags. Specifically, for alarm samples whose confirmation results corresponding to the feedback tags are correct, the computer equipment can classify them into the true positive sample set; for alarm samples whose confirmation results corresponding to the feedback tags are incorrect, the computer equipment can classify them into the false positive sample set, so that the true alarm samples and false alarm samples form mutually independent data sets.

[0044] Furthermore, the safety officer feedback tags can also include dimensional information such as alarm type, monitoring area, and time period. Computer equipment can classify and store true positive and false positive sample sets according to these dimensional information, thereby improving the efficiency of subsequent data processing and the targeting of prompt word optimization.

[0045] In one embodiment, the process of determining the safety officer weight data for the false positive sample set in step S120 may include: S121: Based on the safety officer feedback tags of each false positive sample in the false positive sample set, confirm the safety officer who handled each false positive sample.

[0046] S122: For each security officer involved, confirm the feedback dataset of that security officer from the feedback platform and calculate the feedback accuracy of the feedback dataset.

[0047] S123: Assign weights to each safety officer based on the feedback accuracy of each feedback dataset, and generate safety officer weight data for the false positive sample set based on the safety officer weights of each safety officer.

[0048] In this embodiment, after determining the false positive sample set, the computer device can identify the handling safety officer for each false positive sample based on the safety officer feedback tags of each false positive sample in the false positive sample set. For each handling safety officer, the computer device can identify the feedback dataset of that handling safety officer from the feedback platform and calculate the feedback accuracy of the feedback dataset; then, based on the feedback accuracy of each feedback dataset, it can assign a safety officer weight to each handling safety officer and generate safety officer weight data for the false positive sample set based on the safety officer weights of each handling safety officer.

[0049] The term "handling safety officer" refers to the specific safety officer who completed the verification and confirmation of the false positive sample. Since different safety officers have different professional abilities and experience levels, the credibility of their feedback results also varies. Therefore, this application needs to assign differentiated weights to different safety officers.

[0050] Specifically, for each security officer handling the incident, the computer device can extract historical feedback records generated by that officer within a preset statistical period from the feedback platform. These historical feedback records are then combined into a corresponding feedback dataset. This dataset can include confirmation results, final review results, feedback times, and corresponding alarm categories for multiple historical alarm events. Subsequently, the computer device can count the number of feedback records in the dataset that match the final review results and calculate the feedback accuracy rate by combining this count with the total number of feedback records in the dataset. The final review results can originate from the review results of senior security officers, consensus confirmation results from multiple personnel, or the system's final confirmation result.

[0051] Once the feedback accuracy rates for each safety officer are calculated, the computer system establishes a mapping between these rates and the safety officer's weight. It assigns a weight to each safety officer based on their respective feedback accuracy rate. For example, a higher feedback accuracy rate corresponds to a larger safety officer weight, and a lower accuracy rate corresponds to a smaller weight. Subsequently, the computer system generates safety officer weight data for the false positive sample set based on the safety officer weights associated with each false positive sample. This ensures that each sample in the false positive sample set corresponds to a safety officer weight reflecting the reliability of the feedback, providing a weighted basis for subsequent false alarm score calculations.

[0052] In one embodiment, step S120, which involves performing feature quantification evaluation on various alarm events based on the false positive sample set and safety officer weight data to obtain the false alarm score for each alarm event, may include: S124: For each type of alarm event, extract features from the false positive samples in the false positive sample set corresponding to that type of alarm event according to the preset feature dimensions, and obtain a feature set of multiple dimensions for that type of alarm event.

[0053] S125: Extract the safety officer weights corresponding to false positive samples under this type of alarm event from the safety officer weight data, and use the safety officer weights to perform weighted summation on the feature set of each dimension to obtain the feature contribution value of each dimension.

[0054] S126: Sum the contribution values ​​of each feature to obtain the false alarm score for this type of alarm event.

[0055] In this embodiment, when quantitatively evaluating alarm events, the computer device can extract features from the false positive samples corresponding to the type of alarm event in the false positive sample set according to preset feature dimensions, obtain feature sets of multiple dimensions for the type of alarm event, then extract the safety officer weights corresponding to the false positive samples under the type of alarm event from the safety officer weight data, and use the safety officer weights to perform weighted summation on the feature set of each dimension to obtain the feature contribution value of each dimension. Then, the summation of each feature contribution value can be performed to obtain the false alarm score of the type of alarm event.

[0056] Specifically, for each type of alarm event, the computer device can first filter out multiple false positive samples corresponding to that type of alarm event from the false positive sample set, and then extract features from each false positive sample according to preset feature dimensions to obtain a feature set with multiple dimensions. These preset feature dimensions may include visual feature dimensions, behavioral feature dimensions, contextual feature dimensions, and environmental feature dimensions, etc., and are not limited here.

[0057] For example, in the visual feature dimension, computer devices can extract visual features such as target size, target color, target appearance, target position, target posture, target occlusion degree, and target detection confidence; in the behavioral feature dimension, they can extract behavioral features such as target movement trajectory, movement speed, dwell time, behavior type, behavior continuity, and behavior change trend; in the contextual feature dimension, they can extract contextual features such as the number of people around the target, spatial relationships between targets, regional attributes, objects associated with the target, and historical behavior states; in the environmental feature dimension, they can extract environmental features such as light intensity, weather conditions, time period, camera angle, background complexity, and scene crowding, thereby obtaining feature sets for the corresponding dimensions.

[0058] After extracting the feature sets of each dimension of the alarm event, the computer device can extract the safety officer weights corresponding to each false positive sample from the safety officer weight data based on the false positive samples corresponding to that type of alarm event. Then, using the corresponding safety officer weights, the computer device performs weighted calculations on the visual feature set, behavioral feature set, context feature set, and environmental feature set to obtain the visual feature contribution value, behavioral feature contribution value, context feature contribution value, and environmental feature contribution value. Furthermore, the computer device can aggregate and calculate the feature contribution values ​​of each dimension according to preset fusion rules to obtain the false alarm score corresponding to the alarm event.

[0059] Understandably, this application introduces a safety officer weight for weighted processing during the calculation of false alarm scores. This safety officer weight can fully amplify the influence of high-confidence safety officer labeled samples on the judgment of the degree of false alarm, while weakening the interference of low-confidence labeled samples on the calculation results. Therefore, the final calculated false alarm score can comprehensively reflect the degree of false alarms generated by this type of alarm event under the combined effect of multiple scenario features, and further improve the accuracy of subsequent prompt word optimization.

[0060] In one embodiment, the prompt word optimization model in step S130 includes a condition decomposition layer, an interval mapping layer, and a condition generation layer; such as Figure 2 As shown, step S130, which uses a preset prompt word optimization model to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the event to be optimized, and generates constraint clauses, may include: S131: The original prompt words corresponding to the event to be optimized are decomposed into multiple basic alarm conditions through the condition decomposition layer, and the feature interval corresponding to each basic alarm condition is determined.

[0061] S132: Extract multi-dimensional feature data of false positive samples corresponding to the event to be optimized through the interval mapping layer, and map the multi-dimensional feature data to the corresponding feature interval to obtain the mapping frequency of each feature interval.

[0062] S133: The basic alarm conditions whose mapping frequency exceeds the preset exclusion threshold are marked as redundant conditions by the condition generation layer, and constraint clauses are generated based on the feature intervals of the redundant conditions.

[0063] In this embodiment, the prompt word optimization model mainly consists of a condition decomposition layer, an interval mapping layer, and a condition generation layer. The condition decomposition layer is mainly responsible for decomposing the original prompt word corresponding to the event to be optimized into multiple basic alarm conditions and determining the feature interval corresponding to each basic alarm condition. The interval mapping layer is mainly responsible for extracting the multi-dimensional feature data of the false positive samples corresponding to the event to be optimized and mapping the multi-dimensional feature data to the corresponding feature interval to obtain the mapping frequency of each feature interval. The condition generation layer is mainly responsible for marking the basic alarm conditions whose mapping frequency exceeds the preset exclusion threshold as redundant conditions and generating constraint clauses based on the feature intervals of the redundant conditions.

[0064] Specifically, the condition decomposition layer can decompose the original prompt word into multiple basic alarm conditions based on preset semantic rules, syntactic structures, and prompt word templates. These conditions include target object conditions, behavioral conditions, spatial location conditions, temporal conditions, quantity conditions, environmental conditions, and combination relationship conditions. For example, the prompt word "detect personnel entering the restricted area" can be decomposed into multiple basic alarm conditions such as "target object is personnel," "behavior is entering," and "area is restricted area." Subsequently, the condition decomposition layer can also establish a corresponding feature interval for each basic alarm condition based on its semantic content. This feature interval can represent the range of features that the corresponding basic alarm condition is allowed to match, such as target size interval, movement speed interval, dwell time interval, target location interval, or target quantity interval, for subsequent sample feature matching.

[0065] The interval mapping layer can acquire false positive samples corresponding to the event to be optimized, and extract multi-dimensional feature data such as visual feature data, behavioral feature data, contextual feature data, and environmental feature data from each false positive sample. Subsequently, the interval mapping layer can perform interval mapping on the multi-dimensional feature data item by item according to the feature intervals corresponding to each basic alarm condition. When a certain dimension feature data falls into the feature interval of the corresponding basic alarm condition, the computer device can record an interval mapping and update the mapping frequency of the corresponding feature interval. After mapping all false positive samples, the cumulative mapping frequency of the feature interval corresponding to each basic alarm condition can be obtained. The mapping frequency here can reflect the frequency of occurrence of the corresponding basic alarm condition in the false alarm samples and the degree of false alarm correlation.

[0066] The condition generation layer can read the mapping frequency corresponding to each basic alarm condition and compare it with a preset exclusion threshold. When the mapping frequency corresponding to a basic alarm condition exceeds the preset exclusion threshold, it indicates that the basic alarm condition is met in a large number of false alarm samples, and the condition itself fails to effectively distinguish between real alarm events and false alarm events. Therefore, the computer device can mark the corresponding basic alarm condition as a redundant condition. Subsequently, the condition generation layer can further analyze the feature interval distribution corresponding to the redundant conditions and, combined with the actual feature range in the false positive samples, automatically generate corresponding constraint clauses. These constraint clauses can include target attribute constraints, behavioral restrictions, regional restrictions, time restrictions, environmental restrictions, target quantity restrictions, and multi-condition combination constraints.

[0067] For example, when a large number of false alarms occur in low-light environments, an environmental constraint clause can be generated to "trigger an alarm only when the illuminance is higher than a preset threshold"; when a large number of false alarms originate from scenarios where the target stays for a short time, a behavioral constraint clause can be generated to "the target stays for a longer period of time than a preset duration". These constraint clauses can then be integrated into the original prompts to optimize and update the prompts.

[0068] In one embodiment, the process of evaluating and verifying the constraint clause using a set of true positive samples in step S140 may include: S141: Extract all true positive samples corresponding to the event to be optimized from the true positive sample set, and add the constraint clause to the original prompt words to obtain the prompt words to be tested.

[0069] S142: Input all true positive samples into the security deployment system so that the security deployment system can use the prompt words to be tested to perform alarm trigger tests on all true positive samples and obtain the trigger results.

[0070] S143: The pass rate is obtained by calculating the ratio between the number of successful triggers in the trigger results and the total number of all true positive samples.

[0071] S144: Determine the ratio of the number of true positive samples that satisfy the constraint clause to the number of successful triggers in the trigger results, obtain the specificity score, and determine the coverage of the constraint clause in all true positive samples.

[0072] S145: Determine the validation result of the constraint clause based on the validation pass rate, specificity score, and coverage.

[0073] In this embodiment, when evaluating and verifying the constraint clause, the computer device can first extract all true positive samples corresponding to the event to be optimized from the true positive sample set, and add the constraint clause to the original prompt word to obtain the prompt word to be tested. Then, all true positive samples can be input into the security deployment system so that the security deployment system can use the prompt word to be tested to perform alarm trigger tests on all true positive samples, obtain the trigger results, and use the ratio between the number of successful triggers in the trigger results and the total number of all true positive samples as the verification pass rate. At the same time, the ratio between the number of true positive samples that satisfy the constraint clause and the number of successful triggers in the trigger results can be determined to obtain the specificity score, and the coverage of the constraint clause in all true positive samples can be determined so that the computer device can determine the verification result of the constraint clause based on the verification pass rate, specificity score, and coverage.

[0074] Specifically, the computer device can first select all true positive samples from the true positive sample set according to the event type corresponding to the event to be optimized. At the same time, the generated constraint clauses are integrated into the corresponding original prompt words for updating, resulting in the prompt words to be tested. Therefore, the prompt words to be tested can retain the main semantics of the original prompt words while adding constraint conditions generated for false alarm scenarios, thereby verifying whether the added constraints will affect the normal triggering of real alarm events.

[0075] Subsequently, the computer equipment can sequentially input all the selected true positive samples into the security deployment system. This allows the system to re-execute alarm trigger tests on each true positive sample using the test prompt words, and record the trigger results for each true positive sample. After all true positive samples have completed the test, the computer equipment can count the number of successful triggers in the trigger results and, combined with the total number of true positive samples in the verification sample set, calculate the ratio between the number of successful triggers and the total number of true positive samples. This ratio is determined as the verification pass rate corresponding to the constraint clause. It should be noted that a higher verification pass rate indicates a smaller impact of the newly added constraint clause on the ability to identify real alarm events.

[0076] In addition, the computer equipment can count the number of true positive samples that satisfy the constraint clauses and calculate the ratio between the number of true positive samples that satisfy the constraint clauses and the number of successful triggers, obtaining a corresponding specificity score to reflect the degree of relevance of the constraint clauses to real alarm samples. A higher specificity score indicates that the constraint clauses mainly apply to real alarm scenarios that meet specific conditions, demonstrating good condition discrimination ability. Simultaneously, the computer equipment can also count the proportion of true positive samples that satisfy the constraint clauses to the total number of true positive samples to determine the coverage rate of the constraint clauses among all true positive samples. This mainly reflects the applicability of the constraint clauses to real alarm scenarios. A low coverage rate indicates that the constraint clauses only apply to a small number of special scenarios; a high coverage rate indicates that the constraint clauses affect a large number of real alarm scenarios.

[0077] Finally, the computer device can comprehensively evaluate the constraint clauses based on a preset verification strategy, considering the pass rate, specificity score, and coverage, and generate corresponding verification results. Specifically, this application can evaluate whether the constraint clauses maintain the overall triggering capability of real alarm events through the pass rate, effectively avoiding the problem of many real alarms failing to trigger due to added restrictions; it can also evaluate the constraint clauses' ability to distinguish real alarm samples through the specificity score, ensuring that the constraint clauses not only maintain the ability to identify real alarms but also play a constraining role in specific scenarios; and it can evaluate the applicability of the constraint clauses in real alarm scenarios through the coverage score, avoiding the generation of constraints with too narrow or too broad an applicability, which is not limited here.

[0078] In one embodiment, the process of determining the validation result of the constraint clause based on the validation pass rate, specificity score, and coverage rate in step S145 may include: S1451: Determine whether the validation pass rate, specificity score, and coverage all meet the preset pass conditions.

[0079] S1452: If so, then confirm that the validation result of the constraint clause is valid.

[0080] S1453: If not, confirm that the validation result of the constraint clause is that the validation fails, and use the prompt word optimization model to optimize the constraint clause until the validation result of the optimized constraint clause is passed, or the number of optimizations of the constraint clause reaches the preset optimization threshold.

[0081] In this embodiment, when the computer device verifies the constraint clause, it can determine whether the verification pass rate, specificity score, and coverage rate all meet the preset pass conditions. If so, the computer device can confirm that the verification result of the constraint clause is verified. Otherwise, the computer device can confirm that the verification result of the constraint clause is verified and optimize the constraint clause using the prompt word optimization model until the verification result of the optimized constraint clause is verified or the number of optimizations of the constraint clause reaches the preset optimization threshold.

[0082] Specifically, the computer device can determine whether the validation pass rate is greater than a preset pass threshold, whether the specificity score is greater than a preset specificity threshold, and whether the coverage rate is within a preset coverage range. When all three indicators meet the corresponding judgment conditions, the constraint clause is determined to have passed validation and is identified as a valid constraint clause for subsequent optimization and updating of the original prompt words. If at least one validation indicator fails to meet the corresponding preset pass condition, the computer device can confirm that the validation result of the constraint clause is a failure. In this case, the reasons for the failure of the validation indicator that failed the pass condition can be analyzed, and the failed constraint clause and its corresponding validation indicator can be re-input into the prompt word optimization model. The prompt word optimization model then performs targeted optimization of the constraint clause based on the validation results.

[0083] For example, when the verification pass rate is lower than the preset pass threshold, it indicates that the constraint clause has a significant impact on the false alarm effect of real alarm events. Therefore, the feature range corresponding to the constraint condition can be appropriately relaxed to reduce the constraint strength. When the specificity score is lower than the preset specificity threshold, it indicates that the constraint clause lacks sufficient specificity and cannot effectively distinguish between real alarm scenarios and false alarm scenarios. Therefore, the constraint conditions such as target attributes, behavioral characteristics, environmental status, or spatial relationships can be added to improve the distinguishability of the constraint clause. When the coverage exceeds the preset coverage range, it indicates that the applicable scope of the constraint clause is too wide or too narrow, affecting the scenario adaptability of the prompt words. Therefore, the applicable scope or combination conditions involved in the constraint clause can be readjusted to make the constraint clause more in line with real security scenarios.

[0084] Furthermore, the computer device can record the cumulative number of optimizations for constraint clauses and update the corresponding number of optimizations after each optimization verification. When the optimized constraint clause passes verification, the optimization process can end, and the corresponding constraint clause is taken as the final valid constraint clause. If the optimized constraint clause still fails verification, the prompt word optimization model is called again for the next round of optimization. When the cumulative number of optimizations reaches a preset optimization threshold, even if the constraint clause still fails verification, the computer device can terminate the optimization process of the current constraint clause and discard the corresponding constraint clause or regenerate a new constraint clause based on the event to be optimized, in order to avoid the constraint clause from falling into an infinite optimization loop and improve the execution efficiency of the entire prompt word optimization process.

[0085] The security deployment prompt word optimization device provided in the embodiments of this application is described below. The security deployment prompt word optimization device described below and the security deployment prompt word optimization method described above can be referred to in correspondence.

[0086] In one embodiment, such as Figure 3 As shown, Figure 3 This application provides a schematic diagram of a security deployment prompt word optimization device according to an embodiment of the present application. The present application also provides a security deployment prompt word optimization device, including a sample acquisition module 210, a score evaluation module 220, a constraint generation module 230, and a prompt word optimization module 240, specifically comprising the following: The sample acquisition module 210 is used to generate a true positive sample set and a false positive sample set based on the alarm data of multiple alarm events output by the security deployment system within a preset time window and the security officer feedback label of each alarm data.

[0087] The score evaluation module 220 is used to determine the safety officer weight data of the false positive sample set, so as to perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data, and obtain the false alarm score of each alarm event.

[0088] The constraint generation module 230 is used to mark alarm events with false alarm scores greater than the trigger threshold as events to be optimized, and to use a preset prompt word optimization model to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and generate constraint clauses.

[0089] The prompt word optimization module 240 is used to evaluate and verify the constraint clauses using a set of true positive samples, and optimize the original prompt words based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

[0090] In the above embodiments, this application can periodically generate a true positive sample set and a false positive sample set based on the alarm data of multiple types of alarm events output by the security deployment system within a preset time window and the security officer feedback label of each alarm data. This allows for sample segmentation based on the security officer feedback label, fully reflecting the false alarm situation in actual security scenarios. Subsequently, the security officer weight data for the false positive sample set can be determined. By introducing the security officer weight data into the false positive sample set, a quantitative evaluation of the false alarm score can be completed. This allows for the differentiation of the reference value of different samples based on the security officer feedback accuracy, improving the accuracy of false alarm event identification. If there are alarm events in the quantitative evaluation results with false alarm scores greater than the trigger threshold, they can be marked as events to be optimized. A preset prompt word optimization model is used to perform condition constraint analysis on the corresponding original prompt words and false positive samples, extracting redundant conditions that will cause a large number of false alarms and generating corresponding constraint clauses. Finally, the constraint clauses can be evaluated and verified using the true positive sample set. Only the verified constraint clauses are used for the final prompt word optimization update, ensuring that the constraint conditions do not impair the original prompt words' ability to identify real alarm events.

[0091] In one embodiment, the sample acquisition module 210 may include: The data acquisition submodule is used to extract alarm data output by the security deployment system within a preset time window, and to determine the security officer feedback result corresponding to each alarm data from the feedback platform; the security officer feedback result includes the security officer who handled the corresponding alarm data and the confirmation result.

[0092] The labeling submodule is used to label each alarm data with a safety officer feedback label based on the feedback results from each safety officer, forming multiple alarm samples.

[0093] The sample filtering submodule is used to filter out alarm samples whose confirmation results are correct and generate a true positive sample set, and to filter out alarm samples whose confirmation results are incorrect and generate a false positive sample set.

[0094] In one embodiment, the score evaluation module 220 may include: The safety officer identification submodule is used to identify the safety officer who handled each false positive sample based on the safety officer feedback tags of each false positive sample in the false positive sample set.

[0095] The accuracy calculation submodule is used to identify the feedback dataset of each safety officer from the feedback platform and calculate the feedback accuracy of the feedback dataset.

[0096] The weight generation submodule is used to assign weights to each safety officer based on the feedback accuracy of each feedback dataset, and to generate safety officer weight data for the false positive sample set based on the safety officer weights of each safety officer.

[0097] In one embodiment, the score evaluation module 220 may further include: The feature extraction submodule is used to extract features from the false positive samples corresponding to the false positive sample set for each type of alarm event according to the preset feature dimensions, so as to obtain a feature set of multiple dimensions for the alarm event.

[0098] The contribution value calculation submodule is used to extract the safety officer weights corresponding to false positive samples under this type of alarm event from the safety officer weight data, and to use the safety officer weights to perform weighted summation on the feature set of each dimension to obtain the feature contribution value of each dimension.

[0099] The score calculation submodule is used to sum the contribution values ​​of each feature to obtain the false alarm score for this type of alarm event.

[0100] In one embodiment, the constraint generation module 230 may include: The prompt word decomposition submodule is used to decompose the original prompt words corresponding to the event to be optimized into multiple basic alarm conditions through the condition decomposition layer, and determine the feature interval corresponding to each basic alarm condition.

[0101] The interval mapping submodule is used to extract multi-dimensional feature data of false positive samples corresponding to the event to be optimized through the interval mapping layer, and map the multi-dimensional feature data to the corresponding feature intervals to obtain the mapping frequency of each feature interval.

[0102] The constraint generation submodule is used to mark basic alarm conditions whose mapping frequency exceeds a preset exclusion threshold as redundant conditions through the condition generation layer, and generate constraint clauses based on the feature intervals of the redundant conditions.

[0103] In one embodiment, the prompt word optimization module 240 may include: The clause is substituted into the submodule to extract all true positive samples corresponding to the event to be optimized from the true positive sample set, and to add the constraint clause to the original prompt words to obtain the prompt words to be tested.

[0104] The prompt word testing submodule is used to input all true positive samples into the security deployment system, so that the security deployment system can use the prompt word to be tested to perform alarm trigger tests on all true positive samples and obtain the trigger results.

[0105] The first indicator calculation submodule is used to calculate the ratio between the number of successful triggers in the trigger results and the total number of all true positive samples, thus obtaining the verification pass rate.

[0106] The second indicator calculation submodule is used to determine the ratio of the number of true positive samples that satisfy the constraint clause to the number of successful triggers in the trigger results, obtain the specificity score, and determine the coverage of the constraint clause in all true positive samples.

[0107] The Result Determination submodule is used to determine the validation result of the constraint clause based on the validation pass rate, specificity score, and coverage.

[0108] In one embodiment, the result determination submodule may include: The condition judgment unit is used to determine whether the verification pass rate, specificity score and coverage rate all meet the preset pass conditions.

[0109] The first result determination unit is used to confirm that the validation result of the constraint clause is valid if the validation is successful.

[0110] The second result determination unit is used to confirm that the validation result of the constraint clause is unsuccessful if no, and to optimize the constraint clause using the prompt word optimization model until the validation result of the optimized constraint clause is successful, or the number of optimizations of the constraint clause reaches the preset optimization threshold.

[0111] In one embodiment, this application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the security deployment prompt word optimization method as described in any of the above embodiments.

[0112] In one embodiment, this application also provides a computer device storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the security deployment prompt word optimization method as described in any of the above embodiments.

[0113] Indicatively, such as Figure 4 As shown, Figure 4 This is a schematic diagram of the internal structure of a computer device 300 provided in an embodiment of this application. The computer device 300 can be provided as a server. (Refer to...) Figure 4 The computer device 300 includes a processing component 302, which further includes one or more processors, and memory resources represented by memory 301 for storing instructions, such as application programs, that can be executed by the processing component 302. The application programs stored in memory 301 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 302 is configured to execute instructions to perform the security deployment prompt word optimization method of any of the above embodiments.

[0114] The computer device 300 may also include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate on an operating system stored in memory 301, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.

[0115] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0116] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0117] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.

[0118] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for optimizing security deployment prompts, characterized in that, The method includes: Based on the alarm data of various alarm events output by the security deployment system within a preset time window and the security officer feedback label for each alarm data, a true positive sample set and a false positive sample set are generated. Determine the safety officer weight data for the false positive sample set, and perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain the false alarm score for each alarm event; Alarm events with false alarm scores greater than the trigger threshold are marked as events to be optimized. A preset prompt word optimization model is used to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and constraint clauses are generated. The constraint clauses are evaluated and verified using a set of true positive samples, and the original prompt words are optimized based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

2. The security deployment prompt word optimization method according to claim 1, characterized in that, The process of generating true positive and false positive sample sets based on alarm data output by the security deployment system within a historical time period and the security officer feedback tags for each alarm data includes: Extract alarm data output by the security deployment system within a preset time window, and determine the security officer feedback result corresponding to each alarm data from the feedback platform; the security officer feedback result includes the security officer who handled the corresponding alarm data and the confirmation result; Each alarm data point is labeled with a safety officer feedback tag based on the feedback results from each safety officer, forming multiple alarm samples; The alarm samples whose confirmation results are correct are selected to generate a true positive sample set, and the alarm samples whose confirmation results are incorrect are selected to generate a false positive sample set.

3. The method for optimizing security deployment prompts according to claim 1, characterized in that, The determination of the safety officer weight data for the false positive sample set includes: The safety officer handling each false positive sample is identified based on the safety officer feedback tags of each false positive sample in the false positive sample set. For each security officer involved, the feedback dataset of that security officer is confirmed from the feedback platform, and the feedback accuracy of the feedback dataset is calculated. Based on the feedback accuracy of each feedback dataset, a safety officer weight is assigned to each handling safety officer, and the safety officer weight data of the false positive sample set is generated based on the safety officer weights of each handling safety officer.

4. The method for optimizing security deployment prompts according to claim 1, characterized in that, The feature quantification evaluation of various alarm events based on the false positive sample set and the safety officer weight data is used to obtain the false alarm score for each alarm event, including: For each type of alarm event, features are extracted from the false positive samples in the false positive sample set corresponding to that type of alarm event according to preset feature dimensions, to obtain a feature set of multiple dimensions for that type of alarm event. Extract the safety officer weights corresponding to false positive samples under this type of alarm event from the safety officer weight data, and use the safety officer weights to perform weighted summation on the feature set of each dimension to obtain the feature contribution value of each dimension. The false alarm score for this type of alarm event is obtained by summing the contribution values ​​of each feature.

5. The method for optimizing security deployment prompts according to claim 1, characterized in that, The prompt word optimization model includes a condition decomposition layer, an interval mapping layer, and a condition generation layer; The method utilizes a preset prompt word optimization model to perform conditional constraint analysis on the original prompt words and false positive samples corresponding to the event to be optimized, generating constraint clauses, including: The condition decomposition layer decomposes the original prompt words corresponding to the event to be optimized into multiple basic alarm conditions, and determines the feature interval corresponding to each basic alarm condition. The interval mapping layer extracts multi-dimensional feature data of false positive samples corresponding to the event to be optimized, and maps the multi-dimensional feature data to the corresponding feature intervals to obtain the mapping frequency of each feature interval. The condition generation layer marks basic alarm conditions whose mapping frequency exceeds a preset exclusion threshold as redundant conditions, and generates constraint clauses based on the feature intervals of the redundant conditions.

6. The method for optimizing security deployment prompts according to claim 1, characterized in that, The evaluation and verification of the constraint clause using a set of true positive samples includes: Extract all true positive samples corresponding to the event to be optimized from the true positive sample set, and add the constraint clause to the original prompt words to obtain the prompt words to be tested; All true positive samples are input into the security deployment system so that the security deployment system can use the test prompt words to perform alarm trigger tests on all true positive samples and obtain trigger results; The verification pass rate is obtained by calculating the ratio between the number of successful triggers in the trigger results and the total number of all true positive samples. The specificity score is obtained by determining the ratio of the number of true positive samples that satisfy the constraint clause to the number of successful triggers in the triggering results, and the coverage of the constraint clause in all true positive samples is determined. The validation result of the constraint clause is determined based on the validation pass rate, the specificity score, and the coverage rate.

7. The security deployment prompt word optimization method according to claim 6, characterized in that, Determining the validation result of the constraint clause based on the validation pass rate, the specificity score, and the coverage rate includes: Determine whether the verification pass rate, the specificity score, and the coverage rate all meet the preset pass conditions; If so, then the verification result of the constraint clause is confirmed as successful. If not, the validation result of the constraint clause is confirmed as validation failure, and the constraint clause is optimized using the prompt word optimization model until the validation result of the optimized constraint clause is successful, or the number of optimizations of the constraint clause reaches a preset optimization threshold.

8. A security deployment prompt word optimization device, characterized in that, include: The sample acquisition module is used to generate a true positive sample set and a false positive sample set based on the alarm data of multiple alarm events output by the security deployment system within a preset time window and the security officer feedback label for each alarm data. The score evaluation module is used to determine the safety officer weight data of the false positive sample set, and to perform feature quantification evaluation on various alarm events based on the false positive sample set and the safety officer weight data to obtain the false alarm score of each alarm event. The constraint generation module is used to mark alarm events with false alarm scores greater than the trigger threshold as events to be optimized, and to use a preset prompt word optimization model to perform condition constraint analysis on the original prompt words and false positive samples corresponding to the events to be optimized, and generate constraint clauses. The prompt word optimization module is used to evaluate and verify the constraint clauses using a set of true positive samples, and optimize the original prompt words based on the verified constraint clauses to obtain the optimized prompt words for the event to be optimized.

9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the security deployment prompt word optimization method as described in any one of claims 1 to 7.

10. A computer device, characterized in that, include: One or more processors, and memory; The memory stores computer-readable instructions, which, when executed by the one or more processors, perform the steps of the security deployment prompt word optimization method as described in any one of claims 1 to 7.