Dynamic permission management and access control method for IoT card platform
Dynamic rights management is carried out by matching the behavioral pattern of the card recognition signal and the source device, and using neural networks to detect the number of people, which solves the problem that the card platform cannot dynamically manage rights in the existing technology, and improves the flexibility and user experience of the system.
Patent Information
- Application Number
- CN202411137507.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-19
AI Technical Summary
The existing all-in-one card platform cannot perform dynamic rights management, is not very flexible, and cannot adapt to the actual needs of complex application scenarios, affecting user experience and management efficiency.
By obtaining the card identification signal and its source device, matching the behavior patterns in the preset behavior pattern library, conducting behavior judgment and permission adjustment, using the preset neural network model to detect the number of people, and realizing dynamic permission management.
It realizes the complete process from card recognition to behavior perception to permission adjustment, improves the adaptability and security of the system, provides a personalized user experience, and solves the problem of low flexibility.
Smart Images

Figure CN118658230B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of one-card platform data processing, and in particular to a dynamic authority management and access control method for an Internet of Things one-card platform. Background Art
[0002] The one-card platform is a smart card system that integrates multiple services and functions, allowing users to complete multiple payment and identity authentication operations with one card. This platform is usually used in campuses, enterprises, communities and other environments, providing integrated services including but not limited to catering consumption, book borrowing, access control, transportation and travel. Users only need to carry one card to quickly and conveniently conduct transactions and access at different service points, greatly improving the convenience and efficiency of life. The implementation of the one-card platform relies on advanced information technology and network support to ensure the security of transactions and the stability of the system.
[0003] However, in the current one-card platform architecture, user permission configuration generally adopts a static preset mechanism, that is, the permission settings are fixed when the system is initialized, and do not support dynamic adjustment based on real-time data or environmental changes. This rigid configuration strategy limits the platform's adaptability to complex application scenarios, resulting in the system being unable to respond flexibly to changing actual needs, thus affecting user experience and management efficiency.
[0004] Therefore, people need a highly flexible one-card platform rights management and access control solution that can perform dynamic rights management. Summary of the invention
[0005] Therefore, the present invention provides a dynamic permission management and access control method for an Internet of Things one-card platform, so as to solve the problem that the one-card platform in the prior art cannot perform dynamic permission management and has low flexibility.
[0006] The present invention provides a method for dynamic authority management and access control of an Internet of Things card platform, comprising:
[0007] Obtain the one-card identification signal, and obtain the source device of the one-card identification signal as the target source device;
[0008] According to the target source device, a preset behavior pattern associated with the target source device is matched from a preset behavior pattern library as a target behavior pattern, wherein the preset behavior pattern library includes a plurality of preset behavior patterns, each preset behavior pattern is respectively associated with at least one source device, and each preset behavior pattern corresponds to a behavior determination strategy and a permission adjustment strategy;
[0009] Performing behavior determination according to the behavior determination strategy corresponding to the target behavior pattern to obtain a behavior determination result;
[0010] According to the authority adjustment strategy corresponding to the target behavior pattern and the behavior judgment results, the authority adjustment and access control are performed on the individual corresponding to the one-card identification signal.
[0011] The present invention also provides a preferred solution: the preset behavior pattern includes a carrying visitor behavior pattern, the source device associated with the carrying visitor behavior pattern includes an entrance gate, and the behavior determination strategy corresponding to the carrying visitor behavior pattern includes:
[0012] Obtain identity data corresponding to the one-card identification signal as target identity data, and obtain the acquisition time corresponding to the one-card identification signal as the starting time;
[0013] Starting from the start time, continuously monitor the identity data of the card identification signal subsequently obtained by the target source device, as well as the accumulated opening time of the target source device;
[0014] If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device does not obtain the card identification signal corresponding to the identity data different from the target identity data during the monitoring period, the monitoring continues;
[0015] If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device obtains a card identification signal corresponding to identity data different from the target identity data during the monitoring period, the behavior determination result of not carrying a visitor is obtained;
[0016] If the cumulative opening time exceeds the preset cumulative time threshold, the number detection method is triggered, and the number detection result of the number of people passing through the target source device is detected based on the number detection method;
[0017] If the number of people passing through the gate represented by the number detection result is greater than one person, the behavior determination result of the visitor is obtained.
[0018] The present invention also provides a preferred solution: the number detection method comprises:
[0019] Based on the accumulated opening time, obtain the entrance gate monitoring video data;
[0020] Based on the cumulative time threshold, the entrance gate monitoring video data is framed to obtain an image frame sequence;
[0021] The image frame sequence is input into a preset neural network model to obtain a number detection result output by the preset neural network model. The number detection result only includes two types: the actual number of people passing through is greater than one person and the actual number of people passing through is less than one person.
[0022] The present invention also provides a preferred solution: the preset neural network model includes a first neural network, a second neural network and a third neural network, wherein the input end of the first neural network and the input end of the second neural network are respectively used to input image frame sequences, the output ends of the first neural network and the second neural network are both connected to the input end of the third neural network, and the output end of the third neural network is used to output the number of people detection results, wherein the first neural network is used to detect the position change information of people in the image frame sequence, the second neural network is used to detect the position information of the entrance gate in the image frame sequence, and the third neural network is used to output the number of people detection results according to the relative position relationship between the position change information of people in the image frame sequence and the position information of the entrance gate.
[0023] The present invention also provides a preferred solution: the first neural network includes a recognition neural network and a recurrent neural network, wherein the recognition neural network is used to input a frame image in an image frame sequence and output a position feature tensor representing the position of a person in the image, and the recognition neural network is repeatedly run multiple times to output corresponding position feature tensors for each frame image in the image frame sequence to obtain a position feature tensor sequence; the input end of the recurrent neural network is connected to the output end of the recognition neural network, and the recurrent neural network is used to input the position feature tensor sequence to obtain position change information.
[0024] The present invention also provides a preferred solution: the recognition neural network includes an image input layer, at least one two-dimensional convolutional layer, at least one first pooling layer, at least one first fully connected layer and a first output layer, the image input layer is used to input a frame of image in an image frame sequence, a two-dimensional convolutional layer is connected after the image input layer, a first fully connected layer is connected before the first output layer, and the first output layer is used to output a position feature tensor representing the position of a person in the image.
[0025] The present invention also provides a preferred solution: the position feature tensor includes multiple position feature vectors, each position feature vector corresponds to a preset position in the image, and the position feature vector includes five elements, which are respectively used to represent the horizontal coordinate of the center of the character, the vertical coordinate of the center of the character, the length of the character's bounding box, the width of the character's bounding box and the confidence of the position feature vector.
[0026] The present invention also provides a preferred solution: the second neural network includes an image sequence input layer, at least one three-dimensional convolution layer, at least one second pooling layer, at least one second fully connected layer and a second output layer, the image sequence input layer is used to input an image frame sequence, a three-dimensional convolution layer is connected after the image sequence input layer, a second fully connected layer is connected before the second output layer, and the second output layer is used to output the location information of the entrance gate, wherein the size of the three-dimensional convolution kernel corresponding to the three-dimensional convolution layer can be expressed as n×n×s, wherein n is less than the image size of the three-dimensional convolution layer input corresponding to the three-dimensional convolution kernel, and s is equal to the length of the image frame sequence.
[0027] The present invention also provides a preferred solution: the preset behavior pattern includes a sensitive area entry and exit behavior pattern, the source device associated with the visitor behavior pattern includes a sensitive area access control device, and the behavior determination strategy corresponding to the sensitive area entry and exit behavior pattern includes:
[0028] Obtain identity data corresponding to the card identification signal as target identity data;
[0029] Obtain attendance data corresponding to the target identity data;
[0030] Obtain the card swiping records of other card swiping devices in a preset adjacent area of the target source device with the target identity data;
[0031] Based on the attendance data and card swiping records corresponding to the target identity data, the behavior judgment results of entering or leaving the sensitive area are obtained.
[0032] The present invention also provides a preferred solution: the preset behavior mode includes an emergency behavior mode, the source device associated with the emergency behavior mode includes an emergency facility access control device, and the behavior determination strategy corresponding to the emergency behavior mode includes:
[0033] Obtain IoT detection data within a preset adjacent area of a target source device;
[0034] Based on the IoT detection data in the preset adjacent area of the target source device, a behavioral determination result of whether an emergency situation has occurred or not is obtained.
[0035] The beneficial effects of adopting the above embodiment are:
[0036] The present invention provides a dynamic authority management and access control method for an Internet of Things one-card platform, which first obtains an all-card identification signal and a target source device of the signal, matches a preset behavior pattern associated with the target source device from a preset behavior pattern library according to the target source device as a target behavior pattern, then performs behavior determination according to a behavior determination strategy corresponding to the target behavior pattern to obtain a behavior determination result, and then performs authority adjustment and access control on an individual corresponding to the all-card identification signal according to a authority adjustment strategy corresponding to the target behavior pattern and the behavior determination result, wherein the preset behavior pattern library includes a plurality of preset behavior patterns, each of which is respectively associated with at least one source device, and each of which corresponds to a behavior determination strategy and an authority adjustment strategy. Compared with the prior art, the present invention mainly realizes context awareness by pre-defining a preset behavior pattern library, thereby completing the identification of the actual situation, and then dynamically adjusting the permissions according to the actual situation. Context awareness is to retrieve potential preset behavior patterns based on the source device of the one-card recognition signal, and then implement it through the behavior judgment strategy and permission adjustment strategy corresponding to the preset behavior pattern. In this way, the complete process from one-card signal recognition to behavior perception and then to permission adjustment is completed, solving the problem that the one-card platform in the prior art cannot perform dynamic permission management and has low flexibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A method flow chart of an embodiment of a method for dynamic authority management and access control of an Internet of Things card platform provided by the present invention;
[0038] Figure 2 It is a schematic diagram of the structure of the preset neural network model in the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] Combination Figure 1 As shown, a specific embodiment of the present invention discloses a dynamic permission management and access control method for an Internet of Things card platform, including:
[0041] S101, obtaining a card identification signal, and obtaining a source device of the card identification signal as a target source device;
[0042] S102, according to the target source device, matching a preset behavior pattern associated with the target source device from a preset behavior pattern library as a target behavior pattern, wherein the preset behavior pattern library includes a plurality of preset behavior patterns, each preset behavior pattern is respectively associated with at least one source device, and each preset behavior pattern corresponds to a behavior determination strategy and a permission adjustment strategy;
[0043] S103, performing behavior determination according to the behavior determination strategy corresponding to the target behavior pattern to obtain a behavior determination result;
[0044] S104. According to the authority adjustment strategy corresponding to the target behavior pattern and the behavior determination result, the authority adjustment and access control are performed on the individual corresponding to the one-card identification signal.
[0045] The source devices in the above process refer to a variety of hardware devices that can obtain the one-card identification signal, such as the clock-in machine in the office building, the gate at the factory gate, the access control of the warehouse and factory, etc. Different hardware devices may correspond to different behavioral events. For example, the clock-in machine in the office building can monitor the employees' coming and going, and the access control of the warehouse and factory can monitor abnormal entry and exit records, etc. Therefore, the present invention pre-defines a behavior pattern library, and associates each preset behavior pattern with different source devices, thereby realizing the association from the one-card identification signal to the specific behavior, providing a basis for the subsequent context perception.
[0046] Context Awareness refers to the ability of a system or device to understand and utilize information about its surroundings to provide more personalized, intelligent, and adaptable services or responses. Context-Aware Access Control (CAAC) is an advanced security mechanism that dynamically adjusts access rights based on the user's environmental context (i.e., preset behavior patterns). This mechanism can improve the security and adaptability of the system while providing a more personalized user experience.
[0047] Compared with the prior art, the present invention mainly realizes context awareness by pre-defining a preset behavior pattern library, thereby completing the identification of the actual situation, and then dynamically adjusting the permissions according to the actual situation. Context awareness is to retrieve potential preset behavior patterns based on the source device of the one-card recognition signal, and then implement it through the behavior judgment strategy and permission adjustment strategy corresponding to the preset behavior pattern. In this way, the complete process from one-card signal recognition to behavior perception and then to permission adjustment is completed, solving the problem that the one-card platform in the prior art cannot perform dynamic permission management and has low flexibility.
[0048] Specifically, in a preferred embodiment, the preset behavior pattern includes a sensitive area entry and exit behavior pattern, the source device associated with the visitor behavior pattern includes a sensitive area access control device, and the behavior determination strategy corresponding to the sensitive area entry and exit behavior pattern includes:
[0049] Obtain identity data corresponding to the card identification signal as target identity data;
[0050] Obtain attendance data corresponding to the target identity data;
[0051] Obtain the card swiping records of other card swiping devices in a preset adjacent area of the target source device with the target identity data;
[0052] Based on the attendance data and card swiping records corresponding to the target identity data, the behavior judgment results of entering or leaving the sensitive area are obtained.
[0053] In the above process, the sensitive area access control device can be the access control of the R&D area in the factory, the access control of the warehouse in the factory, etc., and the preset adjacent area is other areas pre-set and related to the sensitive area access control device. This embodiment obtains the behavior judgment result of entering or leaving the sensitive area through the attendance data and card swiping records corresponding to the target identity data, for example:
[0054] An employee is a research and development employee who usually works between 9:00 a.m. and 6:00 p.m. on weekdays. The system analyzes his activities through his card recognition signal.
[0055] If at 8:50 on a certain working day, the system detects that he has completed the punching of the card machine (i.e., the access control device in the sensitive area) in the office building, that is, the card identification signal is obtained, then the system retrieves the card swiping records of other card swiping devices outside the office building (preset adjacent area), and if the card swiping records of the employee entering the factory gate at 8:30 and the card swiping records of the factory canteen at 8:40 are retrieved, then it can be considered that the employee is on duty at this time, that is, the judgment result of entering the sensitive area is obtained, and the work permission to access certain data can be opened (according to the permission adjustment strategy) to facilitate his work. On the contrary, if after 6 o'clock on a working day, the system detects the card swiping records of the employee from the office building to the canteen and then to the factory gate, then it can be considered that the employee is off duty at this time, that is, the judgment result of leaving the sensitive area is obtained, and the work permission to access certain data of the employee can be closed (according to the permission adjustment strategy) to improve the security of the system and avoid security accidents such as theft due to the loss of his card.
[0056] If the system detects that he attempts to enter the server room (sensitive area) on a non-working day, the system will obtain the behavior judgment result of entering the sensitive area. However, the system combines his attendance data and card swiping records to detect that this is not his regular behavior, so the access request is rejected and the incident is reported to the security team for further investigation.
[0057] Specifically, the present invention also provides a preferred embodiment, wherein the preset behavior mode includes an emergency behavior mode, the source device associated with the emergency behavior mode includes an emergency facility access control device, and the behavior determination strategy corresponding to the emergency behavior mode includes:
[0058] Obtain IoT detection data within a preset adjacent area of a target source device;
[0059] Based on the IoT detection data in the preset adjacent area of the target source device, a behavioral determination result of whether an emergency situation has occurred or not is obtained.
[0060] In the above process, the emergency facility access control device can be an emergency device such as an emergency escape passage access control device. Similarly, in the above process, the preset adjacent area is other pre-set areas related to the emergency facility access control device. This embodiment obtains a behavioral determination result of whether an emergency situation occurs through the IoT detection data in the preset adjacent area of the target source device, for example:
[0061] If the access control system of an escape passage receives a card recognition signal, the data of smoke sensors, temperature sensors and other data in the preset adjacent areas can be obtained based on the access control equipment of the emergency facility, and it can be determined whether a fire has occurred (that is, the behavioral judgment result of whether an emergency has occurred or not is obtained), thereby automatically opening the permissions of all emergency exits (based on the permission adjustment strategy) and notifying security personnel.
[0062] Furthermore, the present invention also provides a preferred embodiment, wherein the preset behavior pattern includes a carrying visitor behavior pattern, the source device associated with the carrying visitor behavior pattern includes an entrance gate, and the behavior determination strategy corresponding to the carrying visitor behavior pattern includes:
[0063] Obtain identity data corresponding to the one-card identification signal as target identity data, and obtain the acquisition time corresponding to the one-card identification signal as the starting time;
[0064] Starting from the start time, continuously monitor the identity data of the card identification signal subsequently obtained by the target source device, as well as the accumulated opening time of the target source device;
[0065] If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device does not obtain the card identification signal corresponding to the identity data different from the target identity data during the monitoring period, the monitoring continues;
[0066] If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device obtains a card identification signal corresponding to identity data different from the target identity data during the monitoring period, the behavior determination result of not carrying a visitor is obtained;
[0067] If the cumulative opening time exceeds the preset cumulative time threshold, the number detection method is triggered, and the number detection result of the number of people passing through the target source device is detected based on the number detection method;
[0068] If the number of people passing through the gate represented by the number detection result is greater than one person, the behavior determination result of the visitor is obtained.
[0069] The above process is a behavior determination strategy for determining whether an employee is bringing a visitor. When it is determined that an employee is bringing a visitor into the factory, their access rights to certain important areas can be appropriately reduced to avoid data leakage. It is understandable that the actual permission adjustment strategy can be determined according to the specific situation, so this article will not explain it in detail.
[0070] In this embodiment, how to detect whether a visitor is carried based on the one-card recognition signal is specifically described. Specifically, the improvement of the present invention is to combine the behavior of carrying a visitor with the one-card recognition signal, and to decompose the behavior determination strategy corresponding to the behavior pattern of carrying a visitor into two parts: detecting the cumulative opening events of the target source device (i.e., the entrance gate) and detecting the number of people passing through the target source device. On the one hand, this allows the system to be used for most of the time to detect the one-card recognition signal and count the opening time of the entrance gate, without having to run a complex number recognition algorithm for a long time, thereby reducing the pressure on the hardware equipment. On the other hand, because the one-card recognition signal itself has the function of identity recognition, the number of card swipes can be determined by the identity data of the one-card recognition signal itself. Therefore, the present invention further simplifies the visitor recognition method by using the "one person, one card" point, that is, when the identity data represented by the one-card recognition signal remains unchanged, it is only necessary to count the number of people passing through the entrance gate without performing multiple identity comparisons, so as to identify whether the behavior of carrying a visitor is carried, without the need to perform complex algorithms such as face recognition, without the need to enter face information in advance, and without the need for a large amount of face data for training, thereby improving the feasibility of the present invention and significantly reducing the implementation cost of the present method.
[0071] Specifically, in a preferred embodiment, the method for detecting the number of people includes:
[0072] Based on the accumulated opening time, obtain the entrance gate monitoring video data;
[0073] Based on the cumulative time threshold, the entrance gate monitoring video data is framed to obtain an image frame sequence;
[0074] The image frame sequence is input into a preset neural network model to obtain a number detection result output by the preset neural network model. The number detection result only includes two types: the actual number of people passing through is greater than one person and the actual number of people passing through is less than one person.
[0075] In this embodiment, obtaining the entrance gate monitoring video data based on the cumulative opening time means obtaining the video data during the period when the gate is continuously opened or multiple times (until the opening time reaches the preset cumulative time threshold), and according to the cumulative time threshold, the entrance gate monitoring video data is framed, so that the image frame sequence can not only reflect the dynamic position changes of the person, but also have a unified number, which is convenient for subsequent preset neural network model to identify.
[0076] In practice, number confirmation can also be achieved by any existing method such as infrared signal occlusion detection, floor scale, etc. In the present embodiment, number detection is performed by image recognition based on surveillance video. On the one hand, the entrance gate does not need to be equipped with complex number detection hardware equipment (such as infrared detectors, floor scales, etc.). Number detection can be completed by using existing cameras, thus reducing the hardware implementation cost. On the other hand, this design also greatly improves the versatility of the present method.
[0077] In addition, in this embodiment, video content recognition is also realized through neural network technology. The key point is that, based on the feature of "one card for one person", the output result of the preset neural network model in this embodiment only outputs "the actual number of people passing through is greater than one person" and "the actual number of people passing through is less than one person", which can complete the detection of the behavior of bringing visitors without identifying the specific number of people. This greatly reduces the training difficulty of the preset neural network model in this embodiment, and also greatly improves the accuracy.
[0078] Specifically, in a preferred embodiment, the preset neural network model includes a first neural network, a second neural network and a third neural network, wherein the input end of the first neural network and the input end of the second neural network are respectively used to input image frame sequences, the output ends of the first neural network and the second neural network are both connected to the input end of the third neural network, and the output end of the third neural network is used to output the number of people detection results, wherein the first neural network is used to detect the position change information of people in the image frame sequence, the second neural network is used to detect the position information of the entrance gate in the image frame sequence, and the third neural network is used to output the number of people detection results based on the relative position relationship between the position change information of people in the image frame sequence and the position information of the entrance gate.
[0079] In the above process, the change of the position of the person relative to the position of the gate is mainly used to detect the number of people passing through (for example, judging the change of the number of people on both sides of the entrance gate in the image), and based on this, the preset neural network model is targetedly divided into three parts: the first neural network, the second neural network and the third neural network. On the one hand, this can improve the versatility of the preset neural network model, that is, no matter what the actual position relationship between the camera's viewing angle and the gate is, no matter the specific shape and type of the entrance gate, this preset neural network can identify it. At the same time, the above-mentioned first neural network, second neural network and third neural network can be trained separately, which not only ensures accuracy but also reduces the training cost of the preset neural network.
[0080] Specifically, in a preferred embodiment, the first neural network includes a recognition neural network and a recurrent neural network, wherein the recognition neural network is used to input a frame image in an image frame sequence and output a position feature tensor representing the position of a person in the image, and the recognition neural network is repeatedly run multiple times to output corresponding position feature tensors for each frame image in the image frame sequence to obtain a position feature tensor sequence; the input end of the recurrent neural network is connected to the output end of the recognition neural network, and the recurrent neural network is used to input the position feature tensor sequence to obtain position change information.
[0081] This embodiment further divides the first neural network into two functional modules: person recognition and position recognition. That is, the person position in each image is recognized by the recognition neural network, and then the change relationship of the person position in each image is analyzed by the recurrent neural network to obtain position change information. Similarly, the recognition neural network and the recurrent neural network in this embodiment can also be trained separately to reduce training costs.
[0082] The position change information in this embodiment is the relative position change information of the person in the image. According to the actual situation, the specific data structure of the position change information in this embodiment can be flexibly designed. For example, it can be represented by a sequence of changes in crowd density or by a sequence of position changes of each identified individual.
[0083] Furthermore, in a preferred embodiment, the recognition neural network includes an image input layer, at least one two-dimensional convolutional layer, at least one first pooling layer, at least one first fully connected layer and a first output layer. The image input layer is used to input a frame of image in an image frame sequence. A two-dimensional convolutional layer is connected after the image input layer. A first fully connected layer is connected before the first output layer. The first output layer is used to output a position feature tensor representing the position of a person in the image.
[0084] Specifically, the position feature tensor includes multiple position feature vectors, each position feature vector corresponds to a preset position in the image, and the position feature vector includes five elements, which are respectively used to represent the horizontal coordinate of the center of the character, the vertical coordinate of the center of the character, the length of the character bounding box, the width of the character bounding box, and the confidence of the position feature vector.
[0085] The above design can actually be understood as an improvement on the existing YOLO algorithm. The YOLO (You Only LookOnce) algorithm is an innovative real-time target detection system known for its fast and efficient performance. Unlike traditional region-based methods, YOLO treats the target detection task as a single regression problem, directly mapping from image pixels to bounding box coordinates and category probabilities. It achieves simultaneous detection of multiple objects by dividing the input image into a grid and predicting bounding boxes and category probabilities on each grid cell. The advantages of the YOLO algorithm are that it is fast, easy to implement, and can provide high detection accuracy.
[0086] In this embodiment, a preset position in the image corresponding to each position feature vector is the grid divided in the YOLO algorithm, and the existing YOLO algorithm is further simplified. Since this embodiment only needs to detect one type of object, people, the elements used to characterize the type of object are omitted in the position feature vector in this embodiment. Each position feature vector only needs four data, namely, the horizontal coordinate of the center of the person, the vertical coordinate of the center of the person, the length of the person's bounding box, and the width of the person's bounding box. In addition, since the number of people to be identified in the image may be different, this embodiment further adds the element of confidence to the position feature vector. In the existing YOLO algorithm technology, confidence is originally used to characterize the credibility of target recognition, and this embodiment converts confidence into an implicit method of representing the number of people, that is, if there is no person in a preset position, the confidence of the position feature vector corresponding to the preset position is low, and conversely, if there is a person in a preset position, the confidence of the position feature vector corresponding to the preset position is high. Although this method has an upper limit on the number of people detected (i.e., the upper limit is the number of preset positions), the "non-maximum suppression" feature of YOLO itself is sufficient to enable the preset neural network in this embodiment to accurately output the two results of "the actual number of people passing is greater than one" and "the actual number of people passing is not greater than one".
[0087] Furthermore, in a preferred embodiment, the second neural network includes an image sequence input layer, at least one three-dimensional convolutional layer, at least one second pooling layer, at least one second fully connected layer and a second output layer, the image sequence input layer is used to input an image frame sequence, a three-dimensional convolutional layer is connected after the image sequence input layer, a second fully connected layer is connected before the second output layer, and the second output layer is used to output the location information of the entrance gate, wherein the size of the three-dimensional convolution kernel corresponding to the three-dimensional convolutional layer can be expressed as n×n×s, wherein n is less than the image size of the three-dimensional convolutional layer input corresponding to the three-dimensional convolutional kernel, and s is equal to the length of the image frame sequence.
[0088] In practice, the shape of the entrance gate may change slightly when a person passes through it. Therefore, unlike the first neural network, the present embodiment uses a three-dimensional convolution method to simultaneously extract the entrance gate features of each image in the image frame sequence (that is, by controlling the feature of "s equal to the length of the image frame sequence" as mentioned above in the three-dimensional convolution kernel), so that the second neural network can simultaneously perceive the changes in the gate status in different images, thereby achieving more accurate gate feature extraction.
[0089] Similarly, the position information of the entrance gate is also the relative position information of the entrance gate in the image, and the specific representation method can be determined according to the specific situation.
[0090] After obtaining the position change information and the position information of the entrance gate, the number of people passing through can be detected through the third neural network. The third neural network can be implemented using any basic neural network based on the perceptron structure, so this article will not explain it in detail.
[0091] The structure of a complete preset neural network model in the present invention is as follows Figure 2 shown.
[0092] The present invention provides a dynamic authority management and access control method for an Internet of Things one-card platform, which first obtains an all-card identification signal and a target source device of the signal, matches a preset behavior pattern associated with the target source device from a preset behavior pattern library according to the target source device as a target behavior pattern, then performs behavior determination according to a behavior determination strategy corresponding to the target behavior pattern to obtain a behavior determination result, and then performs authority adjustment and access control on an individual corresponding to the all-card identification signal according to a authority adjustment strategy corresponding to the target behavior pattern and the behavior determination result, wherein the preset behavior pattern library includes a plurality of preset behavior patterns, each of which is respectively associated with at least one source device, and each of which corresponds to a behavior determination strategy and an authority adjustment strategy. Compared with the prior art, the present invention mainly realizes context awareness by pre-defining a preset behavior pattern library, thereby completing the identification of the actual situation, and then dynamically adjusting the permissions according to the actual situation. Context awareness is to retrieve potential preset behavior patterns based on the source device of the one-card recognition signal, and then implement it through the behavior judgment strategy and permission adjustment strategy corresponding to the preset behavior pattern. In this way, the complete process from one-card signal recognition to behavior perception and then to permission adjustment is completed, solving the problem that the one-card platform in the prior art cannot perform dynamic permission management and has low flexibility.
[0093] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0094] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A dynamic permission management and access control method for an Internet of Things card platform, characterized in that: include: Obtain the one-card identification signal, and obtain the source device of the one-card identification signal as the target source device; According to the target source device, a preset behavior pattern associated with the target source device is matched from a preset behavior pattern library as a target behavior pattern, wherein the preset behavior pattern library includes a plurality of preset behavior patterns, each preset behavior pattern is respectively associated with at least one source device, and each preset behavior pattern corresponds to a behavior determination strategy and a permission adjustment strategy; Performing behavior determination according to the behavior determination strategy corresponding to the target behavior pattern to obtain a behavior determination result; According to the authority adjustment strategy corresponding to the target behavior pattern and the behavior determination results, the authority adjustment and access control are performed on the individuals corresponding to the one-card identification signal; The preset behavior pattern includes a carrying visitor behavior pattern, the source device associated with the carrying visitor behavior pattern includes an entrance gate, and the behavior determination strategy corresponding to the carrying visitor behavior pattern includes: Obtain identity data corresponding to the one-card identification signal as target identity data, and obtain the acquisition time corresponding to the one-card identification signal as the starting time; Starting from the start time, continuously monitor the identity data of the card identification signal subsequently obtained by the target source device, as well as the accumulated opening time of the target source device; If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device does not obtain the card identification signal corresponding to the identity data different from the target identity data during the monitoring period, the monitoring continues; If the cumulative opening time does not exceed the preset cumulative time threshold, and the target source device obtains a card identification signal corresponding to identity data different from the target identity data during the monitoring period, the behavior determination result of not carrying a visitor is obtained; If the cumulative opening time exceeds the preset cumulative time threshold, the number detection method is triggered, and the number detection result of the number of people passing through the target source device is detected based on the number detection method; If the number of people passing through the gate represented by the number detection result is greater than one person, the behavior determination result of the visitor is obtained.
2. The method for dynamic permission management and access control of the Internet of Things Card Platform according to claim 1 is characterized in that: People detection methods include: Based on the accumulated opening time, obtain the entrance gate monitoring video data; Based on the cumulative time threshold, the entrance gate monitoring video data is framed to obtain an image frame sequence; The image frame sequence is input into a preset neural network model to obtain a number detection result output by the preset neural network model. The number detection result only includes two types: the actual number of people passing through is greater than one person and the actual number of people passing through is less than one person.
3. The method for dynamic permission management and access control of the Internet of Things card platform according to claim 2 is characterized in that: The preset neural network model includes a first neural network, a second neural network and a third neural network, wherein the input end of the first neural network and the input end of the second neural network are respectively used to input image frame sequences, the output ends of the first neural network and the second neural network are both connected to the input end of the third neural network, and the output end of the third neural network is used to output the number of people detection results, wherein the first neural network is used to detect the position change information of people in the image frame sequence, the second neural network is used to detect the position information of the entrance gate in the image frame sequence, and the third neural network is used to output the number of people detection results based on the relative position relationship between the position change information of people in the image frame sequence and the position information of the entrance gate.
4. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 3 is characterized in that: The first neural network includes a recognition neural network and a recurrent neural network, wherein the recognition neural network is used to input a frame image in an image frame sequence and output a position feature tensor representing the position of a person in the image, and the recognition neural network is repeatedly run multiple times to output corresponding position feature tensors for each frame image in the image frame sequence to obtain a position feature tensor sequence; the input end of the recurrent neural network is connected to the output end of the recognition neural network, and the recurrent neural network is used to input the position feature tensor sequence to obtain position change information.
5. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 4 is characterized in that: The recognition neural network includes an image input layer, at least one two-dimensional convolutional layer, at least one first pooling layer, at least one first fully connected layer and a first output layer. The image input layer is used to input a frame of image in an image frame sequence. A two-dimensional convolutional layer is connected after the image input layer. A first fully connected layer is connected before the first output layer. The first output layer is used to output a position feature tensor representing the position of a person in the image.
6. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 5 is characterized in that: The position feature tensor includes multiple position feature vectors, each position feature vector corresponds to a preset position in the image, and the position feature vector includes five elements, which are respectively used to represent the horizontal coordinate of the center of the character, the vertical coordinate of the center of the character, the length of the character bounding box, the width of the character bounding box and the confidence of the position feature vector.
7. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 3 is characterized in that: The second neural network includes an image sequence input layer, at least one three-dimensional convolution layer, at least one second pooling layer, at least one second fully connected layer and a second output layer. The image sequence input layer is used to input an image frame sequence. A three-dimensional convolution layer is connected after the image sequence input layer. A second fully connected layer is connected before the second output layer. The second output layer is used to output the location information of the entrance gate. The size of the three-dimensional convolution kernel corresponding to the three-dimensional convolution layer can be expressed as n×n×s, where n is less than the image size of the three-dimensional convolution layer input corresponding to the three-dimensional convolution kernel, and s is equal to the length of the image frame sequence.
8. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 1 is characterized in that: The preset behavior pattern includes a sensitive area entry and exit behavior pattern. The source device associated with the visitor behavior pattern includes a sensitive area access control device. The behavior determination strategies corresponding to the sensitive area entry and exit behavior pattern include: Obtain identity data corresponding to the card identification signal as target identity data; Obtain attendance data corresponding to the target identity data; Obtain the card swiping records of other card swiping devices in a preset adjacent area of the target source device with the target identity data; Based on the attendance data and card swiping records corresponding to the target identity data, the behavior judgment results of entering or leaving the sensitive area are obtained.
9. The method for dynamic authority management and access control of the Internet of Things card platform according to claim 1, characterized in that: The preset behavior mode includes an emergency behavior mode, the source device associated with the emergency behavior mode includes an emergency facility access control device, and the behavior determination strategy corresponding to the emergency behavior mode includes: Obtain IoT detection data within a preset adjacent area of a target source device; Based on the IoT detection data in the preset adjacent area of the target source device, a behavioral determination result of whether an emergency situation has occurred or not is obtained.
