Security monitoring method, device, electronic device and medium based on artificial intelligence
Through the artificial intelligence security monitoring method, department identification and hierarchical vector models are used to identify employee behaviors, which solves the misidentification problem in the existing technology and improves the accuracy of behavioral identification and the pertinence of monitoring.
Patent Information
- Application Number
- CN202111223409.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-20
AI Technical Summary
In the existing technology, a unified machine learning model is used to identify the behavior of enterprise employees, which lacks pertinence and leads to misidentification problems.
Adopt an artificial intelligence-based security monitoring method to generate behavioral images by obtaining the user's department identification and operation data, call a hierarchical vectorization model to extract behavioral feature vectors, use the behavior recognition model corresponding to the department identification for identification, and determine spatiotemporal uniqueness and continuity to improve recognition accuracy.
It achieves more targeted behavior recognition, improves recognition accuracy, avoids misrecognition, and enhances the targeting of monitoring.
Smart Images

Figure CN113961437B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an artificial intelligence-based security monitoring method, device, electronic equipment and medium. Background Art
[0002] The advent of the Internet era has built a bridge for information exchange between and within enterprises. Using the Internet to transmit and receive information, and to conduct remote collaboration and communication, while bringing convenience to the operation and development of enterprises, has also caused a certain degree of hidden dangers in enterprise management. The endless emergence of network viruses, information leakage caused by personnel mobility and other problems have always posed a threat to the internal information resources of enterprises.
[0003] Traditional security information leakage is generally through the use of various means by employees in the workplace to send out or copy company confidential documents, etc. By obtaining these behaviors and using machine learning models to identify these behaviors, it is determined whether the company employees have leaked information. In the process of realizing the present invention, the inventor found that the prior art uses a unified machine learning model to identify the behavior of all employees, which lacks specificity and may cause misidentification. Summary of the invention
[0004] In view of the above, it is necessary to propose a security monitoring method, device, electronic device and medium based on artificial intelligence, which can perform targeted monitoring and avoid misidentification.
[0005] A first aspect of the present invention provides a security monitoring method based on artificial intelligence, the method comprising:
[0006] Obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period;
[0007] Generating a behavior image according to the plurality of first behavior data collected in each preset sampling period, and calling a hierarchical vectorization model to extract a behavior feature vector of each behavior image;
[0008] Determine a behavior recognition model corresponding to the first department identifier, and use the behavior recognition model to perform recognition based on the plurality of behavior feature vectors to obtain a plurality of behavior recognition results;
[0009] Determining whether the multiple behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity;
[0010] When it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity, security monitoring is performed on the first user.
[0011] In an optional implementation, generating a behavior image according to the plurality of first behavior data collected in each preset sampling period includes:
[0012] Determine the tracking point ID corresponding to each of the first behavior data;
[0013] Calculate the string length of each of the embedding point IDs;
[0014] Generate a blank image according to the maximum value of the lengths of the plurality of character strings;
[0015] The buried point IDs corresponding to the multiple first behavior data collected in each preset sampling period are added to the blank image to obtain the behavior image.
[0016] In an optional implementation, the calling of the hierarchical vectorization model to extract the behavior feature vector of each behavior image includes:
[0017] Segmenting the behavior image to obtain a plurality of image blocks;
[0018] Input each of the image blocks into the hierarchical vectorization model;
[0019] Extracting image features of each of the image blocks by using the layered vectorization model;
[0020] Performing quantization processing on each of the image features to obtain a quantized feature;
[0021] The plurality of quantitative features are concatenated to obtain the behavior feature vector.
[0022] In an optional implementation, segmenting the behavior image to obtain a plurality of image blocks includes:
[0023] Calculating a difference in string length between a maximum value of a plurality of string lengths and a minimum value of a plurality of string lengths;
[0024] Determine whether the length difference of the character string is greater than a preset length threshold;
[0025] When the string length difference is greater than or equal to the preset length threshold, obtaining a preset first segmentation number, and evenly segmenting the behavior image according to the preset first segmentation number to obtain a plurality of image blocks;
[0026] When the character string length difference is less than the preset length threshold, a preset second segmentation number is obtained, and the behavior image is evenly segmented according to the preset second segmentation number to obtain a plurality of image blocks.
[0027] In an optional implementation, the determining whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity includes:
[0028] Obtaining the collection location and collection time of each of the first behavior data;
[0029] Determine whether the same collection time corresponds to multiple collection locations, and calculate whether the locations corresponding to consecutive collection times are in sequence;
[0030] When the same collection time corresponds to multiple collection locations, it is determined that the multiple behavior recognition results do not conform to the temporal and spatial uniqueness; when the locations corresponding to consecutive collection times do not have a sequential order, it is determined that the multiple behavior recognition results do not conform to the temporal and spatial continuity and the behavior recognition results are marked as high-risk behaviors;
[0031] When the same collection time corresponds to a collection location, and the locations corresponding to consecutive collection times are in sequence, it is determined that the multiple behavior recognition results meet the spatiotemporal uniqueness and spatiotemporal continuity.
[0032] In an optional implementation, after identifying the behavior recognition result as a high-risk behavior, the method further includes:
[0033] Collecting a plurality of second behavior data of a second user operating the preset APP;
[0034] Calculating a first similarity between the plurality of first behavior data and the plurality of second behavior data;
[0035] Determining whether the first similarity is less than a preset similarity threshold;
[0036] When the first similarity is less than the preset similarity threshold, obtaining a second department identifier corresponding to the second user;
[0037] Determining whether the first department identifier is the same as the second department identifier;
[0038] When the first department identifier is the same as the second department identifier, the second user is added to the whitelist.
[0039] In an optional embodiment, the method further comprises:
[0040] Obtaining the department identification of each third user and the historical behavior data of each third user;
[0041] Grouping third users with the same department ID into one group;
[0042] Performing behavior identification on the historical behavior data of each third user;
[0043] The behavior recognition model is trained based on multiple historical behavior data of the same group and corresponding behavior identifiers.
[0044] A second aspect of the present invention provides a security monitoring device based on artificial intelligence, the device comprising:
[0045] A collection module, used to obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period;
[0046] A generating module, configured to generate a behavior image according to the plurality of first behavior data collected in each preset sampling period, and to call a hierarchical vectorization model to extract a behavior feature vector of each behavior image;
[0047] an identification module, used to determine a behavior identification model corresponding to the first department identifier, and use the behavior identification model to perform identification based on the plurality of behavior feature vectors to obtain a plurality of behavior identification results;
[0048] A judgment module, used to judge whether the multiple behavior recognition results meet the spatiotemporal uniqueness and spatiotemporal continuity;
[0049] A monitoring module is used to perform security monitoring on the first user when it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity.
[0050] A third aspect of the present invention provides an electronic device, comprising a processor, wherein the processor is used to implement the artificial intelligence-based security monitoring method when executing a computer program stored in a memory.
[0051] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the artificial intelligence-based security monitoring method.
[0052] To summarize, the artificial intelligence-based security monitoring method, device, electronic device and medium described in the present invention, after obtaining the first department identification corresponding to the first user and collecting multiple first behavior data of the first user operating the preset APP in each preset sampling period, first generate a behavior image according to the multiple first behavior data collected in each preset sampling period, so that the behavior data can be processed by borrowing the idea of image processing, and the layered vectorization model is called to extract the behavior feature vector of each behavior image; the behavior recognition model corresponding to the department identification of the first user is used to identify the behavior feature vector of the first user to obtain a behavior recognition result, which is more targeted and has a higher recognition accuracy; finally, by judging the spatiotemporal uniqueness and continuity of the multiple behavior recognition results, the recognition accuracy can be further improved, thereby making the monitoring more targeted and avoiding misidentification. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of the artificial intelligence-based security monitoring method provided in Example 1 of the present invention.
[0054] Figure 2 It is a structural diagram of the artificial intelligence-based security monitoring device provided in the second embodiment of the present invention.
[0055] Figure 3 It is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0056] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing embodiments in an optional embodiment and are not intended to limit the present invention.
[0058] The artificial intelligence-based security monitoring method provided by the embodiment of the present invention is executed by an electronic device, and accordingly, the artificial intelligence-based security monitoring device runs in the electronic device.
[0059] Embodiment 1
[0060] Figure 1This is a flow chart of the security monitoring method based on artificial intelligence provided in Embodiment 1 of the present invention. The security monitoring method based on artificial intelligence specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some can be omitted.
[0061] S11, obtaining a first department identifier corresponding to a first user, and collecting a plurality of first behavior data of the first user operating a preset APP in each preset sampling period.
[0062] The first user may refer to any employee within the enterprise. The preset sampling period may be weekly or monthly without any restriction.
[0063] The electronic device pre-stores an enterprise database, which records the department ID of each employee. The department ID can be the group-level department ID to which the employee belongs, or the department-level department ID to which the employee belongs. When determining which employee to perform security monitoring, the department ID of the first user is first obtained from the enterprise database, so as to determine what kind of behavior analysis model to use to perform behavior analysis on the behavior data of the first user according to the department ID.
[0064] Enterprises will have many apps, and a recorder will be buried in any page or button in the app, which is called a buried point. A buried point refers to a statistical tool for pages or buttons in the app. Whenever the first user clicks a button or stays on a page, the buried point corresponding to the button or page is triggered, and the triggered buried point will automatically report the behavior data of the first user.
[0065] The first behavior data includes the first user's operation behavior on the APP, such as click, share, like, close, copy, cut, copy, etc. Different pages and different buttons on the same page correspond to different embedding point IDs, and the embedding point ID is a string composed of a string of letters, numbers and / or special symbols.
[0066] S12, generating a behavior image according to the plurality of first behavior data collected in each preset sampling period, and calling a layered vectorization model to extract a behavior feature vector of each behavior image.
[0067] The electronic device processes a plurality of first behavior data collected in each preset sampling period of the first user into a behavior image according to a preset blank image.
[0068] The plurality of first behavior data collected in each preset sampling period is processed into a behavior image. The plurality of first behavior data can be processed and analyzed by means of image processing, so as to improve the accuracy of classification of the first user's behavior.
[0069] In an optional implementation, generating a behavior image according to the plurality of first behavior data collected in each preset sampling period includes:
[0070] Determine the tracking point ID corresponding to each of the first behavior data;
[0071] Calculate the string length of each of the embedding point IDs;
[0072] Generate a blank image according to the maximum value of the lengths of the plurality of character strings;
[0073] The buried point IDs corresponding to the multiple first behavior data collected in each preset sampling period are added to the blank image to obtain the behavior image.
[0074] The electronic device calculates the number of embedded point characters included in each embedded point ID to obtain the string length, and uses a pre-stored sorting algorithm to sort all the calculated string lengths from large to small, and the length of the string sorted first is the maximum string length. The pre-stored sorting algorithm can be bubble sort, shell sort, simple insertion sort, quick sort, etc.
[0075] The electronic device generates a blank image according to the maximum value of the character string length, wherein the length and width of the blank image can be the same as the maximum value of the character string length. Exemplarily, assuming that three first behavior data are collected in a preset sampling period, the buried point ID corresponding to the first behavior data is 123, the buried point ID corresponding to the second behavior data is 13456, and the buried point ID corresponding to the third behavior data is 7685, then the electronic device can generate a blank image of size 5*5, and add the buried point ID123 to the first row of the blank image, specifically, add "1" to the first row and first column of the blank image, add "2" to the first row and second column of the blank image, and add "3" to the first row and third column of the blank image. Similarly, add each character in the buried point ID13456 to the column corresponding to the second row of the blank image, and add each character in the buried point ID7685 to the column corresponding to the third row of the blank image.
[0076] In other embodiments, the length of the blank image may be the same as the maximum length of the character string, and the width of the blank image may be the same as the number of the plurality of behavior data collected in each preset sampling period.
[0077] In this optional embodiment, a blank image is generated according to the maximum value of the string length, and multiple buried point IDs are added to the blank image by locating the target point of the blank image. This ensures that buried point IDs of any length can be added to the blank image and avoids losing the buried point ID information, so that the buried point ID is not edge information in the generated behavior image.
[0078] In an optional implementation, the calling of the hierarchical vectorization model to extract the behavior feature vector of each behavior image includes:
[0079] Segmenting the behavior image to obtain a plurality of image blocks;
[0080] Input each of the image blocks into the hierarchical vectorization model;
[0081] Extracting image features of each of the image blocks by using the layered vectorization model;
[0082] Performing quantization processing on each of the image features to obtain a quantized feature;
[0083] The plurality of quantitative features are concatenated to obtain the behavior feature vector.
[0084] In order to quickly obtain the behavior feature vector, the electronic device first divides the behavior image into multiple image blocks before inputting the behavior image into the hierarchical vectorization model for behavior feature vector extraction. Since each image block is smaller than the behavior image, the hierarchical vectorization model can quickly extract the image features of each image block, and finally obtain the behavior feature vector based on the image features, thereby improving the speed and efficiency of obtaining the behavior feature vector.
[0085] The layered vectorization model is a machine learning model trained through existing technology. It has the advantages of resolution independence, editability, and small storage space. The layered vectorization model is used to extract multi-resolution features of image blocks, and the original single image edge features are converted into adjustable layered features, so that the vectorization results have both vector results that retain details and vector results that eliminate unnecessary features.
[0086] After obtaining the image features of each image block, each image feature can be quantized according to the largest image feature and the smallest image feature to obtain a quantized feature. Finally, the quantized features are concatenated in order to obtain a behavior feature vector.
[0087] In an optional implementation, segmenting the behavior image to obtain a plurality of image blocks includes:
[0088] Calculating a difference in string length between a maximum value of a plurality of string lengths and a minimum value of a plurality of string lengths;
[0089] Determine whether the length difference of the character string is greater than a preset length threshold;
[0090] When the string length difference is greater than or equal to the preset length threshold, obtaining a preset first segmentation number, and evenly segmenting the behavior image according to the preset first segmentation number to obtain a plurality of image blocks;
[0091] When the character string length difference is less than the preset length threshold, a preset second segmentation number is obtained, and the behavior image is evenly segmented according to the preset second segmentation number to obtain a plurality of image blocks.
[0092] Different character string lengths of the tracking point ID may result in different blank spaces on the behavior image. The electronic device segments the behavior image to obtain multiple image blocks.
[0093] The preset first segmentation number is smaller than the preset second segmentation number. For example, the preset first segmentation number may be 5, and the preset second segmentation number may be 10.
[0094] When the string length difference between the maximum value of the string length and the minimum value of the string length is greater than or equal to the preset length threshold, it indicates that the differences between the multiple buried point IDs are large, and the preset first segmentation number is used for segmentation, and the number of image blocks obtained is relatively small, which can improve the speed of image feature extraction, thereby improving the efficiency of behavior feature vector extraction. When the string length difference between the maximum value of the string length and the minimum value of the string length is less than the preset length threshold, it indicates that the differences between the multiple first IDs are small, and the preset second segmentation number is used for segmentation, and the number of image blocks obtained is relatively large, which can improve the accuracy of image feature extraction, thereby improving the accuracy of behavior feature vector extraction.
[0095] S13, determining a behavior recognition model corresponding to the first department identifier, and using the behavior recognition model to perform recognition based on the plurality of behavior feature vectors to obtain a plurality of behavior recognition results.
[0096] Multiple behavior recognition models are pre-stored in the electronic device, and different behavior recognition models correspond to different department identifiers. For example, the department identifier is A, corresponding to the first behavior recognition model, and the department identifier is B, corresponding to the second behavior recognition model. Different behavior recognition models are used to obtain behavior recognition results of the first user with different department identifiers. Using the behavior recognition model corresponding to the first department identifier of the first user to perform behavior recognition based on the behavior feature vector of the first user is more targeted and can improve the accuracy of behavior recognition.
[0097] In an optional implementation, the method further includes: training a behavior recognition model for each department identifier.
[0098] Optionally, training the behavior recognition model includes:
[0099] Obtaining the department identification of each third user and the historical behavior data of each third user;
[0100] Grouping third users with the same department ID into one group;
[0101] Performing behavior identification on the historical behavior data of each third user;
[0102] The behavior recognition model is trained based on multiple historical behavior data of the same group and corresponding behavior identifiers.
[0103] The third user refers to a user different from the first user and the second user.
[0104] The behavior recognition model can be trained based on a deep convolutional neural network. The training process of the behavior recognition model is an existing technology and will not be described in detail.
[0105] S14, determining whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity.
[0106] One sampling period corresponds to one behavior recognition result, and multiple sampling periods correspond to multiple behavior recognition results. The behavior recognition results corresponding to the multiple sampling periods are sorted in the time sequence of the sampling periods, so as to perform spatiotemporal uniqueness and spatiotemporal continuity judgment based on the sorted multiple behavior recognition results.
[0107] In an optional implementation, the determining whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity includes:
[0108] Obtaining the collection location and collection time of each of the first behavior data;
[0109] Determine whether the same collection time corresponds to multiple collection locations, and calculate whether the locations corresponding to consecutive collection times are in sequence;
[0110] When the same collection time corresponds to multiple collection locations, it is determined that the multiple behavior recognition results do not conform to the temporal and spatial uniqueness; when the locations corresponding to consecutive collection times do not have a sequential order, the multiple behavior recognition results are determined to be inconsistent with the temporal and spatial continuity and the behavior recognition results are marked as high-risk behaviors;
[0111] When the same collection time corresponds to a collection location, and the locations corresponding to consecutive collection times are in sequence, it is determined that the multiple behavior recognition results meet the spatiotemporal uniqueness and spatiotemporal continuity.
[0112] Uniqueness in time and space means that the actor is only allowed to be in one place at a time. For example, if the actor goes out today and does not undergo identity recognition at the gate, then he cannot appear inside the building. If the actor is recorded on the third floor, then he cannot appear on the fifth floor at the same time.
[0113] Space-time continuity means that the locations corresponding to consecutive moments on the timeline have a sequential order, that is, the locations where the actor appears at the previous and next moments should have spatial continuity. For example, the actor appears in Building A at the first moment and on a certain floor of Building A at the second moment. At the third moment, he should not pass the whereabouts information collection at the door of Building A and appear directly in Building B.
[0114] The multiple behavior recognition results that do not conform to time and space uniqueness and / or do not conform to time and space continuity include: the multiple behavior recognition results that do not conform to time and space uniqueness but conform to time and space continuity, the multiple behavior recognition results that conform to time and space uniqueness but do not conform to time and space continuity, and the multiple behavior recognition results that do not conform to time and space uniqueness and do not conform to time and space continuity.
[0115] S15, when it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity, perform security monitoring on the first user.
[0116] When the behavior recognition results corresponding to multiple adoption periods do not conform to the spatiotemporal uniqueness and / or the spatiotemporal continuity, it indicates that the first user is a high-risk first user. For the high-risk first user, the first user identifier of the first user is added to a pre-set blacklist.
[0117] The electronic device will perform security monitoring on the first user identified in the blacklist, for example, obtaining a full-body image taken by a camera, analyzing the behavior trajectory, or sending the taken full-body image to a monitoring person for confirmation.
[0118] In an optional implementation, after identifying the behavior recognition result as a high-risk behavior, the method further includes:
[0119] Collecting a plurality of second behavior data of a second user operating the preset APP;
[0120] Calculating a first similarity between the plurality of first behavior data and the plurality of second behavior data;
[0121] Determining whether the first similarity is less than a preset similarity threshold;
[0122] When the first similarity is less than the preset similarity threshold, obtaining a second department identifier corresponding to the second user;
[0123] Determining whether the first department identifier is the same as the second department identifier;
[0124] When the first department identifier is the same as the second department identifier, the second user is added to the whitelist.
[0125] In this optional implementation, a plurality of second behavior data of the second user operating the preset APP is collected, and the Euclidean distance or cosine distance between the first behavior data and the second behavior data is calculated to obtain the first similarity between the first behavior data and the second behavior data. The higher the first similarity, the more similar the first behavior data and the second behavior data are, and the more likely the second user is to be a high-risk behavior first user. The lower the first similarity, the less similar the first behavior data and the second behavior data are, and the less likely the second user is to be a high-risk behavior first user.
[0126] When it is determined that the first similarity is greater than or equal to the preset similarity threshold, the first user identification of the second user may be written into a preset white list. The electronic device does not perform security monitoring on the first user in the white list.
[0127] When it is determined that the first similarity is less than a preset similarity threshold, the first user identifier of the second user can be written into a preset candidate list. The electronic device calculates the second department identifier of the second user in the candidate list, and determines whether the second department identifier is the same as the first department identifier. If the second department identifier is the same as the first department identifier, it is determined that the second user is not a first user with high-risk behavior. At this time, the first user identifier of the second user is removed from the candidate list, and the first user identifier of the second user is written into the whitelist. If the second department identifier is the same as the first department identifier, it is determined that the second user is a first user with low-risk behavior. At this time, the second behavior data of the second user can be analyzed according to the method described in this application to determine whether to perform security monitoring on the second user.
[0128] To summarize, the artificial intelligence-based security monitoring method described in the present invention, after obtaining the first department identifier corresponding to the first user and collecting multiple first behavior data of the first user operating the preset APP in each preset sampling period, first generates a behavior image according to the multiple first behavior data collected in each preset sampling period, so that the behavior data can be processed by borrowing the idea of image processing, and the hierarchical vectorization model is called to extract the behavior feature vector of each behavior image; the behavior recognition model corresponding to the department identifier of the first user is used to perform recognition based on the behavior feature vector of the first user to obtain a behavior recognition result, which is more targeted and has a higher recognition accuracy; finally, by judging the spatiotemporal uniqueness and continuity of the multiple behavior recognition results, the recognition accuracy can be further improved, thereby making the monitoring more targeted and avoiding misidentification.
[0129] Embodiment 2
[0130] Figure 2 It is a structural diagram of the artificial intelligence-based security monitoring device provided in the second embodiment of the present invention.
[0131] In some embodiments, the artificial intelligence-based security monitoring device 20 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments in the artificial intelligence-based security monitoring device 20 may be stored in a memory of an electronic device and executed by at least one processor to execute (see Figure 1 Description) Functionality of AI-based security monitoring.
[0132] In this embodiment, the artificial intelligence-based security monitoring device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 201, a generation module 202, an identification module 203, a training module 204, a judgment module 205 and a monitoring module 206. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0133] The collection module 201 is used to obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period.
[0134] The first user may refer to any employee within the enterprise. The preset sampling period may be weekly or monthly without any restriction.
[0135] The electronic device pre-stores an enterprise database, which records the department ID of each employee. The department ID can be the group-level department ID to which the employee belongs, or the department-level department ID to which the employee belongs. When determining which employee to perform security monitoring, the department ID of the first user is first obtained from the enterprise database, so as to determine what kind of behavior analysis model to use to perform behavior analysis on the behavior data of the first user according to the department ID.
[0136] Enterprises will have many apps, and a recorder will be buried in any page or button in the app, which is called a buried point. A buried point refers to a statistical tool for pages or buttons in the app. Whenever the first user clicks a button or stays on a page, the buried point corresponding to the button or page is triggered, and the triggered buried point will automatically report the behavior data of the first user.
[0137] The first behavior data includes the first user's operation behavior on the APP, such as click, share, like, close, copy, cut, copy, etc. Different pages and different buttons on the same page correspond to different embedding point IDs, and the embedding point ID is a string composed of a string of letters, numbers and / or special symbols.
[0138] The generating module 202 is used to generate a behavior image according to the plurality of first behavior data collected in each preset sampling period, and call a layered vectorization model to extract a behavior feature vector of each behavior image.
[0139] The electronic device processes a plurality of first behavior data collected in each preset sampling period of the first user into a behavior image according to a preset blank image.
[0140] The plurality of first behavior data collected in each preset sampling period is processed into a behavior image. The plurality of first behavior data can be processed and analyzed by means of image processing, so as to improve the accuracy of classification of the first user's behavior.
[0141] In an optional implementation, the generating module 202 generates a behavior image according to the plurality of first behavior data collected in each preset sampling period, including:
[0142] Determine the tracking point ID corresponding to each of the first behavior data;
[0143] Calculate the string length of each of the embedding point IDs;
[0144] Generate a blank image according to the maximum value of the lengths of the plurality of character strings;
[0145] The buried point IDs corresponding to the multiple first behavior data collected in each preset sampling period are added to the blank image to obtain the behavior image.
[0146] The electronic device calculates the number of embedded point characters included in each embedded point ID to obtain the string length, and uses a pre-stored sorting algorithm to sort all the calculated string lengths from large to small, and the length of the string sorted first is the maximum string length. The pre-stored sorting algorithm can be bubble sort, shell sort, simple insertion sort, quick sort, etc.
[0147] The electronic device generates a blank image according to the maximum value of the string length, wherein the length and width of the blank image can be the same as the maximum value of the string length. Exemplarily, assuming that a preset sampling period collects three first behavior data, the buried point ID corresponding to the first behavior data is 123, the buried point ID corresponding to the second behavior data is 13456, and the buried point ID corresponding to the third behavior data is 7685, then the electronic device can generate a blank image of size 5*5, and add the buried point ID123 to the first row of the blank image, specifically, add "1" to the first row and first column of the blank image, add "2" to the first row and second column of the blank image, and add "3" to the first row and third column of the blank image. Similarly, add each character in the buried point ID13456 to the column corresponding to the second row of the blank image, and add each character in the buried point ID7685 to the column corresponding to the third row of the blank image. The remaining pixels in the blank image can be filled with 0.
[0148] In other embodiments, the length of the blank image may be the same as the maximum length of the character string, and the width of the blank image may be the same as the number of the plurality of behavior data collected in each preset sampling period.
[0149] In this optional embodiment, a blank image is generated according to the maximum value of the string length, and multiple buried point IDs are added to the blank image by locating the target point of the blank image. This ensures that buried point IDs of any length can be added to the blank image and avoids losing the buried point ID information, so that the buried point ID is not edge information in the generated behavior image.
[0150] In an optional implementation, the calling of the hierarchical vectorization model to extract the behavior feature vector of each behavior image includes:
[0151] Segmenting the behavior image to obtain a plurality of image blocks;
[0152] Input each of the image blocks into the hierarchical vectorization model;
[0153] Extracting image features of each of the image blocks by using the layered vectorization model;
[0154] Performing quantization processing on each of the image features to obtain a quantized feature;
[0155] The plurality of quantitative features are concatenated to obtain the behavior feature vector.
[0156] In order to quickly obtain the behavior feature vector, the electronic device first divides the behavior image into multiple image blocks before inputting the behavior image into the hierarchical vectorization model for behavior feature vector extraction. Since each image block is smaller than the behavior image, the hierarchical vectorization model can quickly extract the image features of each image block, and finally obtain the behavior feature vector based on the image features, thereby improving the speed and efficiency of obtaining the behavior feature vector.
[0157] The layered vectorization model is a machine learning model trained through existing technology. It has the advantages of resolution independence, editability, and small storage space. The layered vectorization model is used to extract multi-resolution features of image blocks, and the original single image edge features are converted into adjustable layered features, so that the vectorization results have both vector results that retain details and vector results that eliminate unnecessary features.
[0158] After obtaining the image features of each image block, each image feature can be quantized according to the largest image feature and the smallest image feature to obtain a quantized feature. Finally, the quantized features are concatenated in order to obtain a behavior feature vector.
[0159] In an optional implementation, segmenting the behavior image to obtain a plurality of image blocks includes:
[0160] Calculating a difference in string length between a maximum value of a plurality of string lengths and a minimum value of a plurality of string lengths;
[0161] Determine whether the length difference of the character string is greater than a preset length threshold;
[0162] When the string length difference is greater than or equal to the preset length threshold, obtaining a preset first segmentation number, and evenly segmenting the behavior image according to the preset first segmentation number to obtain a plurality of image blocks;
[0163] When the character string length difference is less than the preset length threshold, a preset second segmentation number is obtained, and the behavior image is evenly segmented according to the preset second segmentation number to obtain a plurality of image blocks.
[0164] Different character string lengths of the tracking point ID may result in different blank spaces on the behavior image. The electronic device segments the behavior image to obtain multiple image blocks.
[0165] The preset first segmentation number is smaller than the preset second segmentation number. For example, the preset first segmentation number may be 5, and the preset second segmentation number may be 10.
[0166] When the string length difference between the maximum value of the string length and the minimum value of the string length is greater than or equal to the preset length threshold, it indicates that the differences between the multiple buried point IDs are large, and the preset first segmentation number is used for segmentation, and the number of image blocks obtained is relatively small, which can improve the speed of image feature extraction, thereby improving the efficiency of behavior feature vector extraction. When the string length difference between the maximum value of the string length and the minimum value of the string length is less than the preset length threshold, it indicates that the differences between the multiple first IDs are small, and the preset second segmentation number is used for segmentation, and the number of image blocks obtained is relatively large, which can improve the accuracy of image feature extraction, thereby improving the accuracy of behavior feature vector extraction.
[0167] The identification module 203 is used to determine the behavior identification model corresponding to the first department identifier, and use the behavior identification model to perform identification based on the multiple behavior feature vectors to obtain multiple behavior identification results.
[0168] Multiple behavior recognition models are pre-stored in the electronic device, and different behavior recognition models correspond to different department identifiers. For example, the department identifier is A, corresponding to the first behavior recognition model, and the department identifier is B, corresponding to the second behavior recognition model. Different behavior recognition models are used to obtain behavior recognition results of the first user with different department identifiers. Using the behavior recognition model corresponding to the first department identifier of the first user to perform behavior recognition based on the behavior feature vector of the first user is more targeted and can improve the accuracy of behavior recognition.
[0169] The training module 204 is used to train a behavior recognition model for each department identifier.
[0170] Optionally, training the behavior recognition model includes:
[0171] Obtaining the department identification of each third user and the historical behavior data of each third user;
[0172] Grouping third users with the same department ID into one group;
[0173] Performing behavior identification on the historical behavior data of each third user;
[0174] The behavior recognition model is trained based on multiple historical behavior data of the same group and corresponding behavior identifiers.
[0175] The third user refers to a user different from the first user and the second user.
[0176] The behavior recognition model can be trained based on a deep convolutional neural network. The training process of the behavior recognition model is an existing technology and will not be described in detail.
[0177] The judgment module 205 is used to judge whether the multiple behavior recognition results meet the spatiotemporal uniqueness and whether they meet the spatiotemporal continuity.
[0178] One sampling period corresponds to one behavior recognition result, and multiple sampling periods correspond to multiple behavior recognition results. The behavior recognition results corresponding to the multiple sampling periods are sorted in the time sequence of the sampling periods, so as to perform spatiotemporal uniqueness and spatiotemporal continuity judgment based on the sorted multiple behavior recognition results.
[0179] In an optional implementation, the determination module 205 determines whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity, including:
[0180] Obtaining the collection location and collection time of each of the first behavior data;
[0181] Determine whether the same collection time corresponds to multiple collection locations, and calculate whether the locations corresponding to consecutive collection times are in sequence;
[0182] When the same collection time corresponds to multiple collection locations, it is determined that the multiple behavior recognition results do not conform to the temporal and spatial uniqueness; when the locations corresponding to consecutive collection times do not have a sequential order, the multiple behavior recognition results are determined to be inconsistent with the temporal and spatial continuity and the behavior recognition results are marked as high-risk behaviors;
[0183] When the same collection time corresponds to a collection location, and the locations corresponding to consecutive collection times are in sequence, it is determined that the multiple behavior recognition results meet the spatiotemporal uniqueness and spatiotemporal continuity.
[0184] Uniqueness in time and space means that the actor is only allowed to be in one place at a time. For example, if the actor goes out today and does not undergo identity recognition at the gate, then he cannot appear inside the building. If the actor is recorded on the third floor, then he cannot appear on the fifth floor at the same time.
[0185] Space-time continuity means that the locations corresponding to consecutive moments on the timeline have a sequential order, that is, the locations where the actor appears at the previous and next moments should have spatial continuity. For example, the actor appears in Building A at the first moment and on a certain floor of Building A at the second moment. At the third moment, he should not pass the whereabouts information collection at the door of Building A and appear directly in Building B.
[0186] The multiple behavior recognition results that do not conform to time and space uniqueness and / or do not conform to time and space continuity include: the multiple behavior recognition results that do not conform to time and space uniqueness but conform to time and space continuity, the multiple behavior recognition results that conform to time and space uniqueness but do not conform to time and space continuity, and the multiple behavior recognition results that do not conform to time and space uniqueness and do not conform to time and space continuity.
[0187] The monitoring module 206 is used to perform security monitoring on the first user when it is determined that the multiple behavior recognition results do not meet the spatiotemporal uniqueness and / or do not meet the spatiotemporal continuity.
[0188] When the behavior recognition results corresponding to multiple adoption periods do not conform to the spatiotemporal uniqueness and / or the spatiotemporal continuity, it indicates that the first user is a high-risk first user. For the high-risk first user, the first user identifier of the first user is added to a pre-set blacklist.
[0189] The electronic device will perform security monitoring on the first user identified in the blacklist, for example, obtaining a full-body image taken by a camera, analyzing the behavior trajectory, or sending the taken full-body image to a monitoring person for confirmation.
[0190] In an optional embodiment, after identifying the behavior recognition result as a high-risk behavior, the electronic device collects multiple second behavior data of the second user operating the preset APP, and calculates the first similarity between the multiple first behavior data and the multiple second behavior data.
[0191] Determine whether the first similarity is less than a preset similarity threshold. When the first similarity is less than the preset similarity threshold, obtain the second department identifier corresponding to the second user, and determine whether the first department identifier is the same as the second department identifier. When the first department identifier is the same as the second department identifier, add the second user to the whitelist.
[0192] In this optional implementation, a plurality of second behavior data of the second user operating the preset APP is collected, and the Euclidean distance or cosine distance between the first behavior data and the second behavior data is calculated to obtain the first similarity between the first behavior data and the second behavior data. The higher the first similarity, the more similar the first behavior data and the second behavior data are, and the more likely the second user is to be a high-risk behavior first user. The lower the first similarity, the less similar the first behavior data and the second behavior data are, and the less likely the second user is to be a high-risk behavior first user.
[0193] When it is determined that the first similarity is greater than or equal to the preset similarity threshold, the first user identification of the second user may be written into a preset white list. The electronic device does not perform security monitoring on the first user in the white list.
[0194] When it is determined that the first similarity is less than a preset similarity threshold, the first user identifier of the second user can be written into a preset candidate list. The electronic device calculates the second department identifier of the second user in the candidate list, and determines whether the second department identifier is the same as the first department identifier. If the second department identifier is the same as the first department identifier, it is determined that the second user is not a first user with high-risk behavior. At this time, the first user identifier of the second user is removed from the candidate list, and the first user identifier of the second user is written into the whitelist. If the second department identifier is the same as the first department identifier, it is determined that the second user is a first user with low-risk behavior. At this time, the second behavior data of the second user can be analyzed according to the method described in this application to determine whether to perform security monitoring on the second user.
[0195] To summarize, the artificial intelligence-based security monitoring device described in the present invention, after obtaining the first department identifier corresponding to the first user and collecting multiple first behavior data of the first user operating the preset APP in each preset sampling period, first generates a behavior image according to the multiple first behavior data collected in each preset sampling period, so that the behavior data can be processed by borrowing the idea of image processing, and the layered vectorization model is called to extract the behavior feature vector of each behavior image; the behavior recognition model corresponding to the department identifier of the first user is used to perform recognition based on the behavior feature vector of the first user to obtain a behavior recognition result, which is more targeted and has a higher recognition accuracy; finally, by judging the spatiotemporal uniqueness and continuity of the multiple behavior recognition results, the recognition accuracy can be further improved, thereby making the monitoring more targeted and avoiding misidentification.
[0196] Embodiment 3
[0197] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned security monitoring method embodiment based on artificial intelligence are implemented, such as Figure 1 S11-S15 shown:
[0198] S11, obtaining a first department identifier corresponding to a first user, and collecting a plurality of first behavior data of the first user operating a preset APP in each preset sampling period;
[0199] S12, generating a behavior image according to the plurality of first behavior data collected in each preset sampling period, and calling a hierarchical vectorization model to extract a behavior feature vector of each behavior image;
[0200] S13, determining a behavior recognition model corresponding to the first department identifier, and using the behavior recognition model to perform recognition based on the plurality of behavior feature vectors to obtain a plurality of behavior recognition results;
[0201] S14, determining whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity;
[0202] S15, when it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity, perform security monitoring on the first user.
[0203] Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-206:
[0204] The collection module 201 is used to obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period;
[0205] The generating module 202 is used to generate a behavior image according to the plurality of first behavior data collected in each preset sampling period, and to extract a behavior feature vector of each behavior image by calling a layered vectorization model;
[0206] The identification module 203 is used to determine the behavior identification model corresponding to the first department identifier, and use the behavior identification model to perform identification based on the multiple behavior feature vectors to obtain multiple behavior identification results;
[0207] The training module 204 is used to train a behavior recognition model for each department identifier;
[0208] The judging module 205 is used to judge whether the plurality of behavior recognition results conform to spatiotemporal uniqueness and spatiotemporal continuity;
[0209] The monitoring module 206 is used to perform security monitoring on the first user when it is determined that the multiple behavior recognition results do not meet the spatiotemporal uniqueness and / or do not meet the spatiotemporal continuity.
[0210] Embodiment 4
[0211] See also Figure 3 FIG. 2 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. In a preferred embodiment of the present invention, the electronic device 3 includes a memory 31 , at least one processor 32 , at least one communication bus 33 and a transceiver 34 .
[0212] Those skilled in the art should understand that Figure 3The structure of the electronic device shown does not constitute a limitation of the embodiments of the present invention, and may be a bus structure or a star structure. The electronic device 3 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0213] In some embodiments, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 3 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0214] It should be noted that the electronic device 3 is only an example, and other existing or future electronic products that are suitable for the present invention should also be included in the protection scope of the present invention and included here by reference.
[0215] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the security monitoring method based on artificial intelligence are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0216] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0217] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0218] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the electronic device 3, and uses various interfaces and lines to connect the various components of the entire electronic device 3, and executes various functions and processes data of the electronic device 3 by running or executing the program or module stored in the memory 31, and calling the data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the security monitoring method based on artificial intelligence described in the embodiment of the present invention; or implements all or part of the functions of the security monitoring device based on artificial intelligence. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors, and various control chips.
[0219] In some embodiments, the at least one communication bus 33 is configured to implement connection and communication between the memory 31 and the at least one processor 32, etc.
[0220] Although not shown, the electronic device 3 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 32 through a power management device, so that the power management device can manage charging, discharging, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0221] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute a part of the method described in each embodiment of the present invention.
[0222] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0223] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0224] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0225] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or, and the singular does not exclude the plural. Multiple units or devices stated in the specification may also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0226] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A security monitoring method based on artificial intelligence, It is characterized in that The method comprises: Obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period; Generate a behavior image according to the multiple first behavior data collected in each preset sampling period, including: determining the buried point ID corresponding to each first behavior data; calculating the string length of each buried point ID; generating a blank image according to the maximum value of multiple string lengths; adding the buried point ID corresponding to the multiple first behavior data collected in each preset sampling period to the blank image to obtain the behavior image; and Calling the hierarchical vectorization model to extract the behavior feature vector of each behavior image includes: segmenting the behavior image to obtain a plurality of image blocks; inputting each image block into the hierarchical vectorization model; extracting the image feature of each image block through the hierarchical vectorization model; quantizing each image feature to obtain a quantized feature; splicing a plurality of the quantized features to obtain the behavior feature vector; Determine a behavior recognition model corresponding to the first department identifier, and use the behavior recognition model to perform recognition based on the plurality of behavior feature vectors to obtain a plurality of behavior recognition results; Determining whether the multiple behavior recognition results comply with spatiotemporal uniqueness and spatiotemporal continuity, including: obtaining the collection location and collection time of each of the first behavior data; determining whether the same collection time corresponds to multiple collection locations, and calculating whether the locations corresponding to consecutive collection times are in a sequential order; when the same collection time corresponds to multiple collection locations, determining that the multiple behavior recognition results do not comply with spatiotemporal uniqueness, when the locations corresponding to consecutive collection times are not in a sequential order, determining that the multiple behavior recognition results do not comply with spatiotemporal continuity and marking the behavior recognition results as high-risk behaviors; when the same collection time corresponds to one collection location, and the locations corresponding to consecutive collection times are in a sequential order, determining that the multiple behavior recognition results comply with spatiotemporal uniqueness and comply with spatiotemporal continuity; When it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity, security monitoring is performed on the first user.
2. The artificial intelligence-based security monitoring method according to claim 1, It is characterized in that The segmenting of the behavior image to obtain a plurality of image blocks comprises: Calculating a difference in string length between a maximum value of a plurality of string lengths and a minimum value of a plurality of string lengths; Determine whether the length difference of the character string is greater than a preset length threshold; When the string length difference is greater than or equal to the preset length threshold, obtaining a preset first segmentation number, and evenly segmenting the behavior image according to the preset first segmentation number to obtain a plurality of image blocks; When the character string length difference is less than the preset length threshold, a preset second segmentation number is obtained, and the behavior image is evenly segmented according to the preset second segmentation number to obtain a plurality of image blocks.
3. The artificial intelligence-based security monitoring method according to claim 1, It is characterized in that After identifying the behavior recognition result as a high-risk behavior, the method further includes: Collecting a plurality of second behavior data of a second user operating the preset APP; Calculating a first similarity between the plurality of first behavior data and the plurality of second behavior data; Determining whether the first similarity is less than a preset similarity threshold; When the first similarity is less than the preset similarity threshold, obtaining a second department identifier corresponding to the second user; Determining whether the first department identifier is the same as the second department identifier; When the first department identifier is the same as the second department identifier, the second user is added to the whitelist.
4. The artificial intelligence-based security monitoring method according to any one of claims 1 to 2, It is characterized in that The method further comprises: Obtaining the department identification of each third user and the historical behavior data of each third user; Grouping third users with the same department ID into one group; Performing behavior identification on the historical behavior data of each third user; The behavior recognition model is trained based on multiple historical behavior data of the same group and corresponding behavior identifiers.
5. A security monitoring device based on artificial intelligence, It is characterized in that The device comprises: A collection module, used to obtain a first department identifier corresponding to a first user, and collect a plurality of first behavior data of the first user operating a preset APP in each preset sampling period; A generation module, for generating a behavior image according to the multiple first behavior data collected in each preset sampling period, including: determining the embedding point ID corresponding to each of the first behavior data; calculating the string length of each of the embedding point IDs; generating a blank image according to the maximum value of the multiple string lengths; adding the embedding point IDs corresponding to the multiple first behavior data collected in each preset sampling period to the blank image to obtain the behavior image; and Calling the hierarchical vectorization model to extract the behavior feature vector of each behavior image includes: segmenting the behavior image to obtain a plurality of image blocks; inputting each image block into the hierarchical vectorization model; extracting the image feature of each image block through the hierarchical vectorization model; quantizing each image feature to obtain a quantized feature; splicing a plurality of the quantized features to obtain the behavior feature vector; an identification module, used to determine a behavior identification model corresponding to the first department identifier, and use the behavior identification model to perform identification based on the plurality of behavior feature vectors to obtain a plurality of behavior identification results; A judgment module, used to judge whether the multiple behavior recognition results conform to the spatiotemporal uniqueness and the spatiotemporal continuity, including: obtaining the collection location and collection time of each of the first behavior data; judging whether the same collection time corresponds to multiple collection locations, and calculating whether the locations corresponding to the consecutive collection times are in a sequential order; when the same collection time corresponds to multiple collection locations, it is determined that the multiple behavior recognition results do not conform to the spatiotemporal uniqueness, and when the locations corresponding to the consecutive collection times are not in a sequential order, it is determined that the multiple behavior recognition results do not conform to the spatiotemporal continuity and the behavior recognition results are marked as high-risk behaviors; when the same collection time corresponds to one collection location, and the locations corresponding to the consecutive collection times are in a sequential order, it is determined that the multiple behavior recognition results conform to the spatiotemporal uniqueness and the spatiotemporal continuity; A monitoring module is used to perform security monitoring on the first user when it is determined that the multiple behavior recognition results do not comply with spatiotemporal uniqueness and / or do not comply with spatiotemporal continuity.
6. An electronic device, It is characterized in that The electronic device includes a processor and a memory, and the processor is used to implement the artificial intelligence-based security monitoring method as described in any one of claims 1 to 4 when executing a computer program stored in the memory.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the artificial intelligence-based security monitoring method as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Information pushing method, equipment and device based on machine learning and storage medium
CN109670104A
APP buried point behavior classification method and device, computer equipment and storage medium
CN112231196A
