Intelligent security guard duty transfer system
By introducing the method of risk degree coefficient and conditional Gini coefficient, the problem of low data quality and low abnormal event identification accuracy in the security duty mobilization system is solved, the flexibility of data processing and model performance are improved, and the identification accuracy of abnormal events is enhanced. sex and safety.
Patent Information
- Application Number
- CN202411004484.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-08
AI Technical Summary
Due to low data quality and unbalanced data, the existing security duty deployment system results in inaccurate data analysis results, abnormal events cannot be discovered in time, and the abnormal event identification accuracy is low, resulting in incorrect deployment decisions, increased security risks, and a waste of human resources.
Calculate the number of each dangerous data by introducing the risk coefficient, determine the adaptive reference data set based on the nearest neighbor data, synthesize the data based on the adaptive average reference vector, and remove the noise data to construct the identification data set; at the same time, the conditional Gini coefficient is introduced to construct The decision tree divides individuals into good groups and general groups during parameter search, and designs different update strategies to search for the best parameters of the model.
It improves data quality and reliability, enhances the accuracy and reliability of abnormal event identification, and improves the performance and safety of the security duty mobilization system.
Smart Images

Figure CN118747590A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of intelligent security, and specifically refers to an intelligent security duty mobilization system. Background Art
[0002] The security duty mobilization system uses artificial intelligence technology to analyze monitoring data to identify abnormal events, mobilize security personnel for emergency response, and ensure the safety of the monitoring area. However, the data collected by the existing security duty mobilization system has low data quality and data imbalance, resulting in inaccurate data analysis results and abnormal events cannot be discovered in time; the existing security duty mobilization system has low accuracy in identifying abnormal events and unreasonable model parameter selection, which leads to mobilization decision-making errors, increased security risks and waste of human resources. Summary of the invention
[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an intelligent security duty mobilization system. The data collected by the existing security duty mobilization system has low data quality and data imbalance, which leads to inaccurate data analysis results and abnormal events cannot be discovered in time. This scheme divides the data, introduces the danger degree coefficient to calculate the number of data that needs to be synthesized for each dangerous data, can quantify the degree of dangerous data, provide a basis for subsequent decision-making, determine an adaptive reference data set based on the nearest neighbor data, synthesize data based on the adaptive average reference vector, remove noise data, construct a recognition data set, improve data quality and reliability, and provide a basis for subsequent data analysis and application It provides a more reliable data set and improves the performance of the security duty mobilization system. In view of the problems of low accuracy in abnormal event recognition and unreasonable model parameter selection in the existing security duty mobilization system, which leads to mobilization decision-making errors, increased security risks and waste of human resources, this scheme introduces the conditional Gini coefficient to construct a decision tree, which improves the performance and adaptability of the model. When searching for parameters, individuals are divided into good groups and general groups, and different update strategies are designed for position updates. The optimal model parameters are searched, which improves the search efficiency and effect, completes the construction of the abnormal event recognition model, improves the accuracy and reliability of abnormal event recognition, and helps to better ensure the safety in the monitoring area.
[0004] The present invention provides an intelligent security duty mobilization system, comprising a data acquisition module, a monitoring data processing module, an abnormal event recognition model building module and a security duty mobilization module;
[0005] The data acquisition module collects historical monitoring data;
[0006] The monitoring data processing module divides the data, introduces the danger degree coefficient to calculate the number of data that needs to be synthesized for each dangerous data, determines the adaptive reference data set based on the nearest neighbor data, synthesizes the data based on the adaptive average reference vector, removes the noise data, and constructs the recognition data set;
[0007] The abnormal event recognition model building module introduces the conditional Gini coefficient to build a decision tree, divides individuals into good groups and general groups during parameter search, designs different update strategies for position update, searches for the best model parameters, and completes the model building;
[0008] The security duty mobilization module sends alarm information to security personnel based on the event abnormality level output by the abnormal event recognition model, mobilizes nearby security personnel to respond to emergencies, and ensures safety in the monitoring area.
[0009] Furthermore, the data acquisition module collects historical monitoring data, which includes personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data, security duty data and event types. The event types include normal events and event abnormality levels, and the event types are used as data labels.
[0010] Furthermore, the monitoring data processing module specifically includes the following contents:
[0011] Data preprocessing: data cleaning, data conversion, and data normalization of the collected monitoring data;
[0012] Data partitioning: Construct a monitoring data set based on the preprocessed monitoring data, divide the monitoring data set into a minority data set and a majority data set, calculate the k1 nearest neighbor data of each minority data in the monitoring data set, if the number of minority data in the k1 nearest neighbor data is 0, then the minority data is noise data; otherwise, if the number of minority data in the k1 nearest neighbor data is greater than the number of majority data, then the minority data is safe data; otherwise, if the number of minority data in the k1 nearest neighbor data is less than or equal to the number of majority data, then the minority data is dangerous data, and its danger degree coefficient is calculated. The formula used is as follows:
[0013] ;
[0014] In the formula, w(x i ) is x i The risk factor, x i is the ith dangerous data, α1 and α2 are the first balance coefficient and the second balance coefficient, respectively, kNN(x i ) is x i The nearest neighbor data set, is kNN(x i ), is x i The distance to the nearest majority class data, It is the maximum value of the distance from all dangerous data to the nearest majority class data;
[0015] Design an adaptive average reference vector, including the following:
[0016] The adaptive reference data set is determined by calculating the k2 nearest neighbor data of each dangerous data in the monitoring data set after removing the noise data. If all the k2 nearest neighbor data are minority class data, all the k2 nearest neighbor data are added to the adaptive reference data set of the dangerous data; otherwise, a majority class data closest to the dangerous data is found among the k2 nearest neighbor data, and the minority class data in the k2 nearest neighbor data whose distance to the dangerous data is less than or equal to the distance between the majority class data and the dangerous data is added to the adaptive reference data set of the dangerous data;
[0017] Calculate the adaptive average reference vector of each dangerous data. The adaptive average reference vector of each dangerous data is the average vector of all data with the same data label in its adaptive reference data set. The formula used is as follows:
[0018] ;
[0019] In the formula, p(x i ) is the adaptive average reference vector of the ith hazard data, x a is the ath dangerous data, y i and a They are x i and x a Data labels, N (x i ) is x i Adaptive reference dataset, is in x i The adaptive reference dataset x i The number of data belonging to the same data label;
[0020] Calculate the number of synthesis, normalize the risk coefficient, and calculate the number of data that needs to be synthesized for each risk data. The formula used is as follows:
[0021] ;
[0022] In the formula, s (x i ) is x i The amount of data that needs to be synthesized, is the floor function, Nmaj and N min are the number of data in the majority class data set and the minority class data set, respectively, and f is the sampling multiple;
[0023] Synthesize data, introduce Gaussian distribution, and synthesize the data corresponding to each dangerous data based on the adaptive average reference vector and the synthetic quantity. The formula used is as follows:
[0024] ;
[0025] In the formula, h(x i ) is x i Synthetic data, is the Gaussian distribution function;
[0026] Construct a recognition dataset based on the synthetic data and the data in the monitoring dataset after removing the noise data.
[0027] Furthermore, the construction of the abnormal event recognition model module specifically includes the following contents:
[0028] Construct E decision trees, use the Bootstrap method to sample the recognition data set E times, obtain E training subsets, build a CART decision tree based on one training subset, and construct a total of F CART decision trees; introduce conditional entropy to improve the Gini coefficient, use the improved conditional Gini coefficient to select the partition point, and complete the construction of the CART decision tree; the formula used for the conditional Gini coefficient is as follows:
[0029] ;
[0030] ;
[0031] Where H is the set of features remaining after removing feature m, |H| is the number of features in set H, is the average Gini coefficient of feature m relative to the feature set H, Gini(m) is the Gini coefficient of feature m in the training subset, and n is the number of categories of the nth feature in the feature set H in F, F is the training subset, |F| is the number of data in the training subset, |F j |It is F j The number of data in F j is the data set of the jth category of the nth feature in the feature set H, m is the characteristic m in F j The number of categories in |F jv | is the feature m in F j The number of data in the vth category, is the conditional Gini coefficient of feature m, |F1| and |F2| are the number of data in the two sets obtained by taking feature m as the dividing point, Gini(F1) and Gini(F2) are the Gini coefficients of set F1 and set F2 respectively;
[0032] Combine and calculate the weight of each decision tree. Based on the weighted E decision trees, form an abnormal event recognition model. Select the category with the most predictions as the final output of the model, and obtain the loss function based on the cross entropy. The formula used to calculate the weight is as follows:
[0033] ;
[0034] In the formula, ω e , Z e 、M e and W e are the weight, correct classification rate, number of nodes and depth of the e-th decision tree, μ1 and μ2 are the first adjustment parameter and the second adjustment parameter, respectively;
[0035] The optimal model parameter search includes the following:
[0036] Initialize the individual position, normalize the sampling times E, the first adjustment parameter μ1 and the second adjustment parameter μ2 of the abnormal event recognition model, establish a search space based on the normalized parameters, use the individual position as the representative of the abnormal event recognition model parameters, and use the loss function of the abnormal event recognition model established based on the parameters as the individual fitness value. Randomly initialize B individual positions in the search space, and use the individual position with the lowest fitness value as the global optimal position A. best ;
[0037] Individual groups, before each position update, calculate the number of good individuals C g and the general number of individuals C o , sort all individuals in ascending order according to their fitness values, and put the first C g individuals are divided into good groups, and the remaining C o Individuals are divided into general groups, and the formula used to calculate the number is as follows:
[0038] ;
[0039] ;
[0040] In the formula, C g (t) and C o (t) are the number of good individuals and the number of general individuals at the t-th iteration, L div is the grouping ratio, t and T are the current number of iterations and the maximum number of iterations respectively;
[0041] Good group update, based on random good individuals to update the good group position, the formula used is as follows:
[0042] ;
[0043] ;
[0044] ;
[0045] In the formula, and are the positions of the u-th good individual in the good group at the t+1th and tth iterations, respectively. D1(t) and D2(t) are the first random term and the second random term at the tth iteration, respectively. b1 is the first control coefficient. rand(·) is the random number generation function. sgn(·) is the sign function. and are the first random good individual and the second random good individual randomly selected from the good group at the tth iteration, , and They are , and The fitness value, A best (t) is the global optimal position at the tth iteration;
[0046] General group update, based on the leader individual and random good individuals, the general group position is updated. The formula used is as follows:
[0047] ;
[0048] ;
[0049] In the formula, G o (t) is the leader individual at the tth iteration, b2 is the second control coefficient, and are the positions of the second and third lowest individual fitness values at the tth iteration, P is the selection probability in the range of (0, 1), q is a random number in the range of (0, 1), and are the positions of the vth good individual in the general group at the t+1th and tth iterations, respectively. is the third random good individual randomly selected from the good group at the t+1th iteration;
[0050] The optimal parameters are determined, the fitness value evaluation threshold is set in advance, the individual fitness value and the global optimal position are updated, and when the fitness value corresponding to the global optimal position is lower than the fitness value evaluation threshold, the parameters corresponding to the global optimal position are the optimal parameters, and the abnormal event recognition model is constructed based on the optimal parameters; otherwise, if the maximum number of iterations is reached, the individual position is reinitialized; otherwise, the iteration number index is increased by 1 and the positions are regrouped for position update.
[0051] Furthermore, the security duty mobilization module pre-sets an event abnormality level threshold and collects real-time monitoring data, including personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data and security duty data. After data preprocessing, the data is input into the abnormal event recognition model to obtain the event type. When the model outputs the event abnormality level and the event abnormality level is greater than the event abnormality level threshold, an alarm message is immediately sent to the security personnel, and nearby security personnel are mobilized to respond to the emergency to ensure the safety in the monitoring area.
[0052] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0053] (1) In view of the problems that the data collected by the existing security duty mobilization system is of low quality and imbalance, resulting in inaccurate data analysis results and the failure to detect abnormal events in a timely manner, this scheme divides the data and introduces a danger degree coefficient to calculate the number of data that needs to be synthesized for each dangerous data. It can quantify the degree of dangerous data and provide a basis for subsequent decision-making. It determines the adaptive reference data set based on the nearest neighbor data, synthesizes data based on the adaptive average reference vector, removes noise data, and constructs a recognition data set, making data processing more flexible and personalized. It takes into account the specific circumstances and characteristics of the data, improves data quality and reliability, and provides a more reliable data set for subsequent data analysis and application, increases the accuracy of the abnormal event recognition model, and improves the performance of the security duty mobilization system.
[0054] (2) In view of the problems of low accuracy in abnormal event recognition and unreasonable model parameter selection in the existing security duty dispatch system, which leads to incorrect dispatch decision-making, increased security risks and waste of human resources, this scheme introduces the conditional Gini coefficient to construct a decision tree, which improves the performance and adaptability of the model. During the parameter search, individuals are divided into good groups and general groups, and different update strategies are designed for position update. The optimal model parameters are searched, which improves the search efficiency and effect, completes the construction of the abnormal event recognition model, improves the accuracy and reliability of abnormal event recognition, and helps to better ensure the safety of the monitoring area. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1A schematic diagram of an intelligent security duty mobilization system provided by the present invention;
[0056] Figure 2 It is a schematic diagram of the monitoring data processing module;
[0057] Figure 3 Schematic diagram of building an abnormal event recognition model module.
[0058] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0059] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0060] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0061] Example 1, see Figure 1 , the present invention provides an intelligent security duty mobilization system, including a data acquisition module, a monitoring data processing module, an abnormal event recognition model building module and a security duty mobilization module;
[0062] The data acquisition module collects historical monitoring data and sends the data to the monitoring data processing module;
[0063] The monitoring data processing module divides the data, introduces the danger degree coefficient to calculate the amount of data that needs to be synthesized for each dangerous data, determines the adaptive reference data set based on the nearest neighbor data, synthesizes the data based on the adaptive average reference vector, removes the noise data, constructs the recognition data set, and sends the data to the abnormal event recognition model construction module;
[0064] The abnormal event recognition model building module introduces the conditional Gini coefficient to build a decision tree, divides individuals into good groups and general groups during parameter search, designs different update strategies for position update, searches for the best model parameters, completes the model building, and sends the data to the security duty mobilization module;
[0065] The security duty mobilization module sends alarm information to security personnel based on the event abnormality level output by the abnormal event recognition model, mobilizes nearby security personnel to respond to emergencies, and ensures safety in the monitoring area.
[0066] Example 2, see Figure 1 This embodiment is based on the above embodiment. The data acquisition module collects historical monitoring data. The historical monitoring data includes personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data, security duty data and event types. The event types include normal events and event abnormality levels. The event types are used as data labels.
[0067] Example 3, see Figure 1 and Figure 2 This embodiment is based on the above embodiment, and the monitoring data processing module specifically includes the following contents:
[0068] Data preprocessing, data cleaning, data conversion, and data normalization of the collected monitoring data. Data cleaning includes processing missing values, outliers, and duplicate values. Data conversion is to convert monitoring data into vector form. Data normalization is to unify the data range based on the maximum and minimum normalization method.
[0069] Data partitioning: Construct a monitoring data set based on the preprocessed monitoring data, divide the monitoring data set into a minority data set and a majority data set, calculate the k1 nearest neighbor data of each minority data in the monitoring data set, if the number of minority data in the k1 nearest neighbor data is 0, then the minority data is noise data; otherwise, if the number of minority data in the k1 nearest neighbor data is greater than the number of majority data, then the minority data is safe data; otherwise, if the number of minority data in the k1 nearest neighbor data is less than or equal to the number of majority data, then the minority data is dangerous data, and its danger degree coefficient is calculated. The formula used is as follows:
[0070] ;
[0071] In the formula, w(x i ) is x i The risk factor, x i is the ith dangerous data, α1 and α2 are the first balance coefficient and the second balance coefficient, respectively, kNN(x i ) is xi The nearest neighbor data set, is kNN(x i ), is x i The distance to the nearest majority class data, It is the maximum value of the distance from all dangerous data to the nearest majority class data;
[0072] Design an adaptive average reference vector, including the following:
[0073] The adaptive reference data set is determined by calculating the k2 nearest neighbor data of each dangerous data in the monitoring data set after removing the noise data. If all the k2 nearest neighbor data are minority class data, all the k2 nearest neighbor data are added to the adaptive reference data set of the dangerous data; otherwise, a majority class data closest to the dangerous data is found among the k2 nearest neighbor data, and the minority class data in the k2 nearest neighbor data whose distance to the dangerous data is less than or equal to the distance between the majority class data and the dangerous data is added to the adaptive reference data set of the dangerous data;
[0074] Calculate the adaptive average reference vector of each dangerous data. The adaptive average reference vector of each dangerous data is the average vector of all data with the same data label in its adaptive reference data set. The formula used is as follows:
[0075] ;
[0076] In the formula, p(x i ) is the adaptive average reference vector of the ith hazard data, x a is the ath dangerous data, y i and a They are x i and x a Data labels, N (x i ) is x i Adaptive reference dataset, is in x i The adaptive reference dataset x i The number of data belonging to the same data label;
[0077] Calculate the number of synthesis, normalize the risk coefficient, and calculate the number of data that needs to be synthesized for each risk data. The formula used is as follows:
[0078] ;
[0079] In the formula, s (x i ) is x i The amount of data that needs to be synthesized, is the floor function, N maj and N min are the number of data in the majority class data set and the minority class data set, respectively, and f is the sampling multiple;
[0080] Synthesize data, introduce Gaussian distribution, and synthesize the data corresponding to each dangerous data based on the adaptive average reference vector and the synthetic quantity. The formula used is as follows:
[0081] ;
[0082] In the formula, h(x i ) is x i Synthetic data, is the Gaussian distribution function;
[0083] Construct a recognition dataset based on the synthetic data and the data in the monitoring dataset after removing the noise data.
[0084] By performing the above operations, the data collected by the existing security duty mobilization system has low data quality and data imbalance, which leads to inaccurate data analysis results and the problem that abnormal events cannot be discovered in time. This scheme divides the data and introduces a danger degree coefficient to calculate the number of data that need to be synthesized for each dangerous data. It can quantify the degree of dangerous data and provide a basis for subsequent decision-making. It determines the adaptive reference data set based on the nearest neighbor data, synthesizes data based on the adaptive average reference vector, removes noise data, and constructs a recognition data set, making data processing more flexible and personalized, taking into account the specific circumstances and characteristics of the data, improving data quality and reliability, providing a more reliable data set for subsequent data analysis and application, increasing the accuracy of the abnormal event recognition model, and improving the performance of the security duty mobilization system.
[0085] Example 4, see Figure 1 and Figure 3 Based on the above embodiment, this embodiment builds an abnormal event recognition model and specifically includes the following contents:
[0086] Construct E decision trees, use the Bootstrap method to sample the recognition data set E times, obtain E training subsets, build a CART decision tree based on one training subset, and construct a total of F CART decision trees; introduce conditional entropy to improve the Gini coefficient, use the improved conditional Gini coefficient to select the partition point, and complete the construction of the CART decision tree; the formula used for the conditional Gini coefficient is as follows:
[0087] ;
[0088] ;
[0089] Where H is the set of features remaining after removing feature m, |H| is the number of features in set H, is the average Gini coefficient of feature m relative to the feature set H, Gini(m) is the Gini coefficient of feature m in the training subset, and n is the number of categories of the nth feature in the feature set H in F, F is the training subset, |F| is the number of data in the training subset, |F j |It is F j The number of data in F j is the data set of the jth category of the nth feature in the feature set H, m is the characteristic m in F j The number of categories in |F jv | is the feature m in F j The number of data in the vth category, is the conditional Gini coefficient of feature m, |F1| and |F2| are the number of data in the two sets obtained by taking feature m as the dividing point, Gini(F1) and Gini(F2) are the Gini coefficients of set F1 and set F2 respectively;
[0090] Combine and calculate the weight of each decision tree. Based on the weighted E decision trees, form an abnormal event recognition model. Select the category with the most predictions as the final output of the model, and obtain the loss function based on the cross entropy. The formula used to calculate the weight is as follows:
[0091] ;
[0092] In the formula, ω e , Z e 、M e and W e are the weight, correct classification rate, number of nodes and depth of the e-th decision tree, μ1 and μ2 are the first adjustment parameter and the second adjustment parameter, respectively;
[0093] The optimal model parameter search includes the following:
[0094] Initialize the individual position, normalize the sampling times E, the first adjustment parameter μ1 and the second adjustment parameter μ2 of the abnormal event recognition model, establish a search space based on the normalized parameters, use the individual position as the representative of the abnormal event recognition model parameters, and use the loss function of the abnormal event recognition model established based on the parameters as the individual fitness value. Randomly initialize B individual positions in the search space, and use the individual position with the lowest fitness value as the global optimal position A. best ;
[0095] Individual groups, before each position update, calculate the number of good individuals C g and the general number of individuals Co , sort all individuals in ascending order according to their fitness values, and put the first C g individuals are divided into good groups, and the remaining C o Individuals are divided into general groups, and the formula used to calculate the number is as follows:
[0096] ;
[0097] ;
[0098] In the formula, C g (t) and C o (t) are the number of good individuals and the number of general individuals at the t-th iteration, L div is the grouping ratio, t and T are the current number of iterations and the maximum number of iterations respectively;
[0099] Good group update, based on random good individuals to update the good group position, the formula used is as follows:
[0100] ;
[0101] ;
[0102] ;
[0103] In the formula, and are the positions of the u-th good individual in the good group at the t+1th and tth iterations, respectively. D1(t) and D2(t) are the first random term and the second random term at the tth iteration, respectively. b1 is the first control coefficient. rand(·) is the random number generation function. sgn(·) is the sign function. and are the first random good individual and the second random good individual randomly selected from the good group at the tth iteration, , and They are , and The fitness value, A best (t) is the global optimal position at the tth iteration;
[0104] General group update, based on the leader individual and random good individuals, the general group position is updated. The formula used is as follows:
[0105] ;
[0106] ;
[0107] In the formula, Go (t) is the leader individual at the tth iteration, b2 is the second control coefficient, and are the positions of the second and third lowest individual fitness values at the tth iteration, P is the selection probability in the range of (0, 1), q is a random number in the range of (0, 1), and are the positions of the vth good individual in the general group at the t+1th and tth iterations, respectively. is the third random good individual randomly selected from the good group at the t+1th iteration;
[0108] The optimal parameters are determined, the fitness value evaluation threshold is set in advance, the individual fitness value and the global optimal position are updated, and when the fitness value corresponding to the global optimal position is lower than the fitness value evaluation threshold, the parameters corresponding to the global optimal position are the optimal parameters, and the abnormal event recognition model is constructed based on the optimal parameters; otherwise, if the maximum number of iterations is reached, the individual position is reinitialized; otherwise, the iteration number index is increased by 1 and the positions are regrouped for position update.
[0109] By performing the above operations, the existing security duty mobilization system has low accuracy in identifying abnormal events and unreasonable model parameter selection, which leads to mobilization decision-making errors, increased security risks and waste of human resources. This solution introduces the conditional Gini coefficient to construct a decision tree, which improves the performance and adaptability of the model. When searching for parameters, individuals are divided into good groups and general groups, and different update strategies are designed for position updates. The optimal model parameters are searched to improve the search efficiency and effect, complete the construction of the abnormal event recognition model, improve the accuracy and reliability of abnormal event recognition, and help to better ensure the safety in the monitoring area.
[0110] Example 5, see Figure 1 This embodiment is based on the above embodiment. The security duty mobilization module pre-sets the event abnormality level threshold and collects real-time monitoring data, including personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data and security duty data. After data preprocessing, it is input into the abnormal event recognition model to obtain the event type. When the model outputs the event abnormality level and the event abnormality level is greater than the event abnormality level threshold, an alarm message is immediately sent to the security personnel, and nearby security personnel are mobilized for emergency response to ensure the safety in the monitoring area.
[0111] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0112] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0113] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. An intelligent security duty dispatching system, characterized in that: It includes data collection module, monitoring data processing module, abnormal event recognition model building module and security duty dispatch module; The data acquisition module collects historical monitoring data; The monitoring data processing module divides the data, introduces the danger degree coefficient to calculate the number of data that needs to be synthesized for each dangerous data, determines the adaptive reference data set based on the nearest neighbor data, synthesizes the data based on the adaptive average reference vector, removes the noise data, and constructs the recognition data set; The abnormal event recognition model building module introduces the conditional Gini coefficient to build a decision tree, divides individuals into good groups and general groups during parameter search, designs different update strategies for position update, searches for the best model parameters, and completes the model building; The security duty mobilization module sends alarm information to security personnel based on the event abnormality level output by the abnormal event recognition model, mobilizes nearby security personnel to respond to emergencies, and ensures safety in the monitoring area.
2. According to claim 1, the intelligent security duty mobilization system is characterized by: The monitoring data processing module specifically includes the following contents: Data preprocessing: data cleaning, data conversion, and data normalization of the collected monitoring data; Data partitioning: Construct a monitoring data set based on the preprocessed monitoring data, divide the monitoring data set into a minority data set and a majority data set, calculate the k1 nearest neighbor data of each minority data in the monitoring data set, if the number of minority data in the k1 nearest neighbor data is 0, then the minority data is noise data; otherwise, if the number of minority data in the k1 nearest neighbor data is greater than the number of majority data, then the minority data is safe data; otherwise, if the number of minority data in the k1 nearest neighbor data is less than or equal to the number of majority data, then the minority data is dangerous data, and its danger degree coefficient is calculated. The formula used is as follows: ; In the formula, w(x i ) is x i The risk factor, x i is the ith dangerous data, α1 and α2 are the first balance coefficient and the second balance coefficient, respectively, kNN(x i ) is x i The nearest neighbor data set, is kNN(x i ), is x i The distance to the nearest majority class data, It is the maximum value of the distance from all dangerous data to the nearest majority class data; Designing an adaptive average reference vector; Calculate the number of synthesis, normalize the risk coefficient, and calculate the number of data that needs to be synthesized for each risk data. The formula used is as follows: ; In the formula, s (x i ) is x i The amount of data that needs to be synthesized, is the floor function, N maj and N min are the number of data in the majority class data set and the minority class data set, respectively, and f is the sampling multiple; Synthesize data, introduce Gaussian distribution, and synthesize the data corresponding to each dangerous data based on the adaptive average reference vector and the synthetic quantity. The formula used is as follows: ; In the formula, h(x i ) is x i Synthetic data, is the Gaussian distribution function; Construct a recognition dataset based on the synthetic data and the data in the monitoring dataset after removing the noise data.
3. The intelligent security duty mobilization system according to claim 2 is characterized in that: The design of the adaptive average reference vector specifically includes the following contents: The adaptive reference data set is determined by calculating the k2 nearest neighbor data of each dangerous data in the monitoring data set after removing the noise data. If all the k2 nearest neighbor data are minority class data, all the k2 nearest neighbor data are added to the adaptive reference data set of the dangerous data; otherwise, a majority class data closest to the dangerous data is found among the k2 nearest neighbor data, and the minority class data in the k2 nearest neighbor data whose distance to the dangerous data is less than or equal to the distance between the majority class data and the dangerous data is added to the adaptive reference data set of the dangerous data; Calculate the adaptive average reference vector of each dangerous data. The adaptive average reference vector of each dangerous data is the average vector of all data with the same data label in its adaptive reference data set. The formula used is as follows: ; In the formula, p(x i ) is the adaptive average reference vector of the ith hazard data, x a is the ath dangerous data, y i and a They are x i and x a Data labels, N (x i ) is x i Adaptive reference dataset, is in x i The adaptive reference dataset x i The number of data belonging to the same data label.
4. The intelligent security duty mobilization system according to claim 1 is characterized in that: The construction of the abnormal event recognition model module specifically includes the following contents: Construct E decision trees, use the Bootstrap method to sample the recognition data set E times, obtain E training subsets, build a CART decision tree based on one training subset, and construct a total of F CART decision trees; introduce conditional entropy to improve the Gini coefficient, use the improved conditional Gini coefficient to select the partition point, and complete the construction of the CART decision tree; the formula used for the conditional Gini coefficient is as follows: ; ; Where H is the set of features remaining after removing feature m, |H| is the number of features in set H, is the average Gini coefficient of feature m relative to the feature set H, Gini(m) is the Gini coefficient of feature m in the training subset, and n is the number of categories of the nth feature in the feature set H in F, F is the training subset, |F| is the number of data in the training subset, |F j |It is F j The number of data in F j is the data set of the jth category of the nth feature in the feature set H, m is the characteristic m in F j The number of categories in |F jv | is the feature m in F j The number of data in the vth category, is the conditional Gini coefficient of feature m, |F1| and |F2| are the number of data in the two sets obtained by taking feature m as the dividing point, Gini(F1) and Gini(F2) are the Gini coefficients of set F1 and set F2 respectively; Combine and calculate the weight of each decision tree. Based on the weighted E decision trees, form an abnormal event recognition model. Select the category with the most predictions as the final output of the model, and obtain the loss function based on the cross entropy. The formula used to calculate the weight is as follows: ; In the formula, ω e , Z e 、M e and W e are the weight, correct classification rate, number of nodes and depth of the e-th decision tree, μ1 and μ2 are the first adjustment parameter and the second adjustment parameter, respectively; Search for optimal model parameters.
5. The intelligent security duty mobilization system according to claim 4 is characterized in that: The optimal parameter search of the model specifically includes the following contents: Initialize the individual position, normalize the sampling times E, the first adjustment parameter μ1 and the second adjustment parameter μ2 of the abnormal event recognition model, establish a search space based on the normalized parameters, use the individual position as the representative of the abnormal event recognition model parameters, and use the loss function of the abnormal event recognition model established based on the parameters as the individual fitness value. Randomly initialize B individual positions in the search space, and use the individual position with the lowest fitness value as the global optimal position A. best ; Individual groups, before each position update, calculate the number of good individuals C g and the general number of individuals C o , sort all individuals in ascending order according to their fitness values, and put the first C g individuals are divided into good groups, and the remaining C o Individuals are divided into general groups, and the formula used to calculate the number is as follows: ; ; In the formula, C g (t) and C o (t) are the number of good individuals and the number of general individuals at the t-th iteration, L div is the grouping ratio, t and T are the current number of iterations and the maximum number of iterations respectively; Good group update, based on random good individuals to update the good group position, the formula used is as follows: ; ; ; In the formula, and are the positions of the u-th good individual in the good group at the t+1th and tth iterations, respectively. D1(t) and D2(t) are the first random term and the second random term at the tth iteration, respectively. b1 is the first control coefficient. rand(·) is the random number generation function. sgn(·) is the sign function. and are the first random good individual and the second random good individual randomly selected from the good group at the tth iteration, , and They are , and The fitness value, A best (t) is the global optimal position at the tth iteration; General group update, based on the leader individual and random good individuals, the general group position is updated. The formula used is as follows: ; ; In the formula, G o (t) is the leader individual at the tth iteration, b2 is the second control coefficient, and are the positions of the second and third lowest individual fitness values at the tth iteration, P is the selection probability in the range of (0, 1), q is a random number in the range of (0, 1), and are the positions of the vth good individual in the general group at the t+1th and tth iterations, respectively. is the third random good individual randomly selected from the good group at the t+1th iteration; The optimal parameters are determined, the fitness value evaluation threshold is set in advance, the individual fitness value and the global optimal position are updated, and when the fitness value corresponding to the global optimal position is lower than the fitness value evaluation threshold, the parameters corresponding to the global optimal position are the optimal parameters, and the abnormal event recognition model is constructed based on the optimal parameters; otherwise, if the maximum number of iterations is reached, the individual position is reinitialized; otherwise, the iteration number index is increased by 1 and the positions are regrouped for position update.
6. The intelligent security duty mobilization system according to claim 1 is characterized in that: The security duty mobilization module pre-sets the event abnormality level threshold and collects real-time monitoring data, including personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data and security duty data. After data pre-processing, it is input into the abnormal event recognition model to obtain the event type. When the model outputs the event abnormality level and the event abnormality level is greater than the event abnormality level threshold, an alarm message is immediately sent to the security personnel, and nearby security personnel are mobilized for emergency response to ensure safety in the monitoring area.
7. The intelligent security duty mobilization system according to claim 1 is characterized in that: The data acquisition module collects historical monitoring data, which includes personnel activity data, vehicle traffic data, environmental monitoring data, equipment operation status data, access control system data, smoke alarm data, security duty data and event types. The event types include normal events and event abnormality levels, and the event types are used as data labels.
Citation Information
Cited By
Comprehensive security system based on RFID technology
CN119672821A
