Prisoner behavior analysis and early warning system and method based on artificial intelligence
Through the prison inmate behavior analysis and early warning system based on artificial intelligence, combined with diffusion model and self-supervised training, the key skeletal points of prison inmates are extracted and predicted, which solves the problems of poor prediction ability and low robustness of the existing system, and achieves More accurate and stable behavior prediction and early warning functions.
Patent Information
- Application Number
- CN202410746177.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-11
AI Technical Summary
Existing prison inmate behavior analysis and early warning systems have poor predictive capabilities and low robustness, and face challenges such as privacy issues in data collection and processing, algorithm accuracy and bias, and misunderstanding of behavioral patterns of specific minority groups.
A prison inmate behavior analysis and early warning system based on artificial intelligence is adopted. The acquisition module captures prison inmate image data, the behavior prediction module extracts key skeletal points, the classification module classifies actions, and the early warning module determines whether the target threshold is reached and sends an early warning. Signal. The system combines diffusion models and self-supervised training methods to improve prediction capabilities and robustness.
It effectively improves the prediction ability and system robustness of prisoner behavior, enhances the maintenance of prison order and the guarantee of personnel safety, reduces misunderstandings of the behavioral patterns of specific minority groups, and improves the system's generalization ability and accuracy.
Smart Images

Figure CN118334753B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence, and in particular to a prison inmate behavior analysis and early warning system and method based on artificial intelligence. Background Art
[0002] The prison inmate behavior analysis and early warning system is a technical system used in prison management to monitor, analyze and predict the behavior patterns of prisoners. This system can help prison managers identify potential dangerous behaviors or escape attempts in a timely manner, and then take preventive measures to ensure the safety and stability of the prison. In the context of modern scientific and technological development, with the advancement of technologies such as big data and machine learning, the introduction of prison inmate behavior analysis and early warning systems has not only improved the level of intelligence in prison management, but also greatly enhanced the ability to control and predict inmate behavior, which is of great significance to maintaining prison order and ensuring personnel safety.
[0003] The currently widely used prison inmate behavior analysis and early warning systems mainly rely on technologies such as video surveillance, behavior pattern recognition, and biometric analysis. By analyzing the video surveillance data inside the prison in real time and combining it with the historical behavior data of the prisoners, these systems can automatically identify abnormal behavior patterns, such as violent tendencies, suicidal tendencies, or attempts to escape from prison. However, the main challenges or limitations faced by these systems include privacy issues in data collection and processing, accuracy and bias of algorithms, and misunderstanding of the behavior patterns of specific minority groups.
[0004] Therefore, there is an urgent need for a technical solution that can improve the ability to predict behavior and increase the robustness of the system. Summary of the invention
[0005] In order to solve the deficiencies of the prior art, the embodiment of the present application provides a prisoner behavior analysis and early warning system and method based on artificial intelligence. The present application solves the technical problems of the existing system's poor prediction ability and low system robustness.
[0006] A prisoner behavior analysis and early warning system based on artificial intelligence, comprising: an acquisition module, a behavior prediction module, a classification module and an early warning module; wherein the acquisition module is used to photograph prison inmates to obtain image data containing the inmates; the behavior prediction module is used to extract the key skeleton points of the inmates in the image data to predict the actions of the inmates at a target time point based on the key skeleton points; the classification module is used to classify the predicted actions to transfer the classification results to the early warning module; and the early warning module is used to determine whether the classification results reach a target threshold to send an early warning signal to a target guard; wherein extracting the key skeleton points of the inmates in the image data comprises: extracting attention maps of the image data at multiple different resolutions to obtain down-sampled features; performing up-sampling processing on the down-sampled features, and the processing results are used to perform field approximation fusion with the down-sampled features to obtain residual fusion features; wherein the fusion method comprises: ,in, represents the residual fusion feature, represents the result of said processing, represents the down-sampled features, and Represents different coordinate indices, represents the regularization parameter, represents the bandwidth parameter of the Gaussian kernel, represents a normalization factor; and generating a heat map of the image data based on the residual fusion feature to extract key bone points.
[0007] In a possible implementation, predicting the prisoner's action at a target time point based on the key skeleton points includes: converting the key skeleton points to a spectral space to generate sampling noise; iteratively denoising the sampling noise to generate spectral features at the target time point; and using an inverse transformation to convert the spectral features back to the space where the skeleton point image is located to obtain the predicted action.
[0008] In a possible implementation, converting the key skeleton points into a spectrum space to generate sampling noise includes: ,in, represents the sampling noise, and Indicates that the key bone points are and The complex frequency in the direction, Indicates that the key bone points are Strength of location.
[0009] In a possible implementation, the sampling noise is iteratively denoised to generate spectral features at a target time point, including: obtaining conditional information of the sampling noise, the conditional information is used to perform cross-attention calculation to obtain conditional coding; and sampling in Gaussian space based on the conditional coding, the sampling result is used to be subtracted from the sampling noise to perform denoising on the sampling noise.
[0010] In a possible implementation, the spectral features are converted back to the space where the skeleton point image is located by using an inverse transformation to obtain the predicted action, which includes: ,in, Represents the image at the bone point The value of the position, Indicates the position in the spectrum domain The spectrum characteristics of Indicates the image width, Indicates the image height, and Indicates location The normalization coefficient of .
[0011] In a possible implementation, generating a heat map of the image data based on the residual fusion feature to extract key skeleton points includes: mapping the values of the matrix of the residual fusion feature to a target range interval to obtain the heat map; using an indicator function to replace the values in the heat map whose activation values are greater than a target threshold for closure calculation; and extracting the center points of one or more rectangular boxes in the closure calculation result as the key skeleton points.
[0012] In a possible implementation, the system further includes: the collection module, the behavior prediction module, the classification module and the early warning module are connected to a cloud platform server via a wireless communication network.
[0013] In a possible implementation, before extracting the key skeleton points of the prisoner in the image data to predict the prisoner's actions at a target time point based on the key skeleton points, it also includes: randomly masking the target frame images in the sampled image data based on a preset probability function to train the corresponding model's ability to predict actions at the target time point through self-supervision.
[0014] The embodiment of the present application also provides a prison inmate behavior analysis and early warning method based on artificial intelligence, including: photographing prison inmates to obtain image data containing the inmates; extracting key skeleton points of the inmates in the image data to predict the inmates' actions at a target time point based on the key skeleton points; and classifying the predicted actions, the classification results being used to determine whether a target threshold has been reached, so as to send an early warning signal to the target guard.
[0015] An embodiment of the present application also provides a device for prison inmate behavior analysis and early warning, comprising: a processor, a memory, and a system bus; wherein the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, and when the instructions are executed by the processor, the processor executes any one of the methods described above.
[0016] Through the artificial intelligence-based prison inmate behavior analysis and early warning system and method provided above, the embodiment of the present application can improve the prediction ability by combining the diffusion model. Furthermore, through the self-supervised training method, the robustness of the system can be effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 A schematic diagram of an artificial intelligence-based prisoner behavior analysis and early warning system provided in an embodiment of the present application;
[0019] Figure 2 An exemplary flow chart of a method for predicting a prisoner's action at a target time point based on the key skeleton points provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0021] Those skilled in the art can understand that the terms "first", "second" and the like in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor represent the necessary logical order between them. It should also be understood that in the embodiments of the present disclosure, "multiple" can refer to two or more, and "at least one" can refer to one, two or more. It should also be understood that for any component, data or structure mentioned in the embodiments of the present disclosure, in the absence of explicit limitation or contrary revelation given in the context, it can generally be understood as one or more. In addition, the term "and / or" in the present disclosure is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are an "or" relationship. It should also be understood that the description of each embodiment in the present disclosure emphasizes the differences between the embodiments, and the same or similar parts can refer to each other. For the sake of brevity, they will not be repeated one by one.
[0022] At the same time, it should be understood that, for ease of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present disclosure and its application or use. The techniques, methods and devices known to ordinary technicians in the relevant fields may not be discussed in detail, but where appropriate, the techniques, methods and devices should be considered part of the specification. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further discussed in subsequent drawings.
[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] Figure 1A schematic diagram of an artificial intelligence-based prison inmate behavior analysis and early warning system provided for an embodiment of the present application. It should be understood that the system shown in the figure is exemplary and not restrictive. This means that the module architecture involved is not limited to a specific form or design, but is presented as an example. In other words, the architecture shown in the figure can be regarded as a way of expression to clearly describe related concepts and relationships, and does not exclude other forms of architecture. Therefore, when interpreting the architecture in the picture, it should be understood that the module has flexibility and diversity, and its purpose is to provide an exemplary description rather than a restrictive provision on a specific form.
[0025] like Figure 1 As shown, at module 101, the acquisition module is used to photograph the prisoner to obtain image data containing the prisoner. The module can be one or more high-resolution cameras equipped with imaging technology suitable for different environmental conditions (such as low light or high contrast scenes), ensuring that clear image data can be obtained in various prison environments.
[0026] The deployment locations of the acquisition modules need to be carefully selected to cover key areas of the prison, including but not limited to cells, public areas, exercise fields, and entrances and exits. Such a layout helps to fully monitor the activities of prisoners while ensuring safety and order in the prison. In addition, the angle and position of the camera need to be optimized to reduce blind spots and improve the efficiency and effectiveness of monitoring.
[0027] To further improve the quality and usability of image data, the acquisition module can also include image enhancement functions such as dynamic range adjustment, noise suppression and image stabilization. These technologies can improve image quality under adverse shooting conditions and ensure that the acquired data is useful for subsequent processing and analysis.
[0028] The acquisition module also needs to be tightly integrated with the data storage and processing system to efficiently transmit and store the collected image data. This can involve advanced data compression technology to reduce the required storage space while maintaining the high quality of the image data. In addition, data security and privacy protection should also be considered in system design to ensure that the image data of prison inmates is not accessed or abused by unauthorized persons.
[0029] At module 102, the behavior prediction module is used to extract the key skeleton points of the prisoner in the image data to predict the prisoner's actions at the target time point based on the key skeleton points. This module first relies on advanced image processing and machine learning techniques to extract the prisoner's key skeleton points from the video or photo. These key skeleton points include but are not limited to the head, shoulders, arms, wrists, waist, knees and ankles, which together constitute the basic framework of the prisoner's body.
[0030] After extracting these key skeleton points, the behavior prediction module will use these data points to analyze the prisoner's posture and movement trajectory. This analysis not only takes into account the prisoner's static position, but also the direction and speed of his movement, thus providing the necessary information for predicting his future movements. In addition, through in-depth learning of historical data, the module is able to identify specific behavior patterns and movement trends, further improving the accuracy of predictions.
[0031] Action prediction based on key skeleton points not only relies on posture data at a single moment, but also combines time series analysis to understand the dynamic changes in prisoner behavior. This means that the module is able to analyze data from a series of continuous actions to predict the actions that the prisoner can take at the next point in time. This predictive capability is crucial for prison security management because it can identify potential escape attempts, violent conflicts or other abnormal behaviors in advance, allowing managers to take preventive measures in time.
[0032] To further enhance the performance of the behavior prediction module, additional features can be integrated, such as emotion recognition, which evaluates the emotional state of the prisoner by analyzing his facial expressions and body language. The recognition of emotional state can provide important contextual information for action prediction, as specific emotions can prompt prisoners to take specific actions.
[0033] In one embodiment, extracting the key skeleton points of the prisoner in the image data includes: extracting the attention maps of the image data at multiple resolutions to obtain downsampled features; performing upsampling processing on the downsampled features, and using the processing results to perform field approximation fusion with the downsampled features to obtain residual fusion features; wherein the fusion method includes:
[0034] ,
[0035] in, represents the residual fusion feature, represents the result of said processing, represents the down-sampled features, and Represents different coordinate indices, represents the regularization parameter, represents the bandwidth parameter of the Gaussian kernel, represents normalization factors; they play a role of regulation and control in the fusion process to ensure the optimization of the fusion result. And a heat map of the image data is generated based on the residual fusion feature to extract key bone points.
[0036] Specifically, after obtaining the residual fusion feature, the values of the matrix of the residual fusion feature are mapped to the target range interval to obtain the heat map; the values in the heat map with activation values greater than the target threshold are replaced by an indicator function for closure calculation; and the center points of one or more rectangular boxes in the closure calculation result are extracted as the key skeleton points. After obtaining the key skeleton points, the actions of the prisoner at the target time point are predicted based on the key skeleton points (such as Figure 2 The specific method will be shown in Figure 2 for expanded instructions).
[0037] It should be noted that before extracting the key skeleton points of the prisoner in the image data to predict the prisoner's actions at the target time point based on the key skeleton points, it also includes: randomly covering the target frame images in the sampled image data based on a preset probability function, so as to train the corresponding model's ability to predict actions at the target time point in a self-supervised manner. In this way, the model is forced to learn how to predict the covered part based on the remaining image information, thereby indirectly improving the ability to predict future actions in dynamic sequences. In addition, this method can effectively reduce overfitting because the model does not rely on specific image features, but learns a more generalized action feature representation.
[0038] In one embodiment, a preset probability function P_{mask}(i) is first defined, where (i) represents the index of the frame. This probability function is used to determine whether each frame is covered. Specifically, a uniform distribution or a Gaussian distribution can be used as the form of P_{mask} to control the randomness and distribution range of the frame. For example, the use of a Gaussian distribution can make the middle frame have a higher probability of being covered, while the beginning and end of the frame sequence have a lower probability of being covered.
[0039] After determining which frames will be masked, use a masking operation to set the contents of those frames to invisible. This can be done by setting the pixel values of the target frames to black or the average pixel value of the image, thus simulating the loss of frames.
[0040] In the self-supervised training phase, the input of the model is the complete video sequence containing the masked frames, and the training goal is to predict the content of the masked frames. The training process is divided into the following steps: The model accepts the video sequence containing the masked frames as input and outputs the prediction of the content of the masked frames. The difference between the model output and the actual masked frame content is calculated. This can be achieved through common loss functions such as mean squared error (MSE) or cross entropy loss. Based on the results of the loss function, the parameters of the model are updated through the back-propagation algorithm. The optimization algorithm can be SGD, Adam, etc.
[0041] After the model is trained, its performance needs to be evaluated. This can be done by comparing the model's predictions on unseen test data with the ground truth. Evaluation metrics can include precision, recall, or F1 score, among others.
[0042] In addition, to further improve the performance of the model, the following optimization strategies can be considered: Enhance the training data by rotating, scaling, flipping, etc. to improve the generalization ability of the model. Use techniques such as L1, L2 regularization or Dropout to reduce overfitting. Adjust the model's hyperparameters, such as learning rate, number and size of hidden layers, etc., through methods such as cross-validation to obtain the best performance.
[0043] In summary, through the method of the above embodiment, self-supervised training can be effectively used to improve the model's ability to predict future actions in dynamic sequences, while reducing overfitting and improving the generalization of the model.
[0044] At module 103, a classification module is used to classify the predicted actions to pass the classification results to the early warning module. And at module 104, the early warning module is used to determine whether the classification results reach the target threshold to send an early warning signal to the target guard. The classification of actions is based on predefined categories, which may include but are not limited to normal behavior, potential threats, or emergency situations. Each category is associated with specific response measures that are intended to prevent or respond to suspicious risks or threats. Once the actions are classified, the classification module passes the results to the early warning module. The early warning module takes appropriate actions based on the classification results received, which may include activating security protocols, notifying security personnel, or starting an automated response system.
[0045] In addition, in order to improve the accuracy and efficiency of classification, the classification module can also integrate a series of optimization techniques, such as data enhancement, transfer learning, and model fusion, etc. These techniques help to improve the generalization ability and robustness of the model in various situations, thereby ensuring a high level of performance in complex and changing real-world environments.
[0046] At the same time, the acquisition module, the behavior prediction module, the classification module and the early warning module are connected to the cloud platform server through a wireless communication network. All these modules are connected to the cloud platform server through a wireless communication network. This design allows data to be transmitted between modules in real time, while also allowing the modules to be remotely controlled and managed from the cloud platform. The wireless communication network provides flexibility and scalability for the system, supports remote updates and maintenance, and ensures that the system is continuously improved and optimized over time.
[0047] In addition, cloud platform servers provide powerful computing resources to support complex data analysis and the execution of machine learning algorithms. Through the cloud platform, the system can access a large amount of storage space and processing power, which is essential for processing large amounts of data and performing complex analysis. The cloud platform also provides data backup and recovery services to ensure the security and reliability of data.
[0048] Figure 2 The following is an exemplary flow chart of a method for predicting the actions of a prisoner at a target time point based on the key skeleton points provided in an embodiment of the present application. Figure 2 As shown, at step S201, the key skeleton points are converted to the spectrum space to generate sampling noise. In one embodiment, it may include:
[0049] ,
[0050] in, represents the sampling noise, and Indicates that the key bone points are and The complex frequency in the direction, Indicates that the key bone points are In this process, the information of key skeleton points is converted into a representation in the frequency domain, which helps to reveal the intrinsic characteristics and structure of the signal.
[0051] At step S202, the sampling noise is iteratively denoised to generate a spectral feature at a target time point. In another embodiment, it may include: obtaining conditional information of the sampling noise, the conditional information is used to perform cross-attention calculation to obtain conditional coding; and sampling in Gaussian space based on the conditional coding, the sampling result is used to be subtracted from the sampling noise to perform denoising on the sampling noise. The purpose of this step is to guide the attention mechanism to focus on the noise features most relevant to the generation of the target spectral features through conditional information, thereby improving the effectiveness and accuracy of the denoising process.
[0052] Specifically, the conditional information may include but is not limited to the statistical characteristics of the sampled noise, environmental parameters, previous noise samples, etc. This information is used to calculate the cross-attention weight, which determines the contribution of each feature to the denoising process when generating conditional coding. The introduction of the cross-attention mechanism enables the model to more flexibly and accurately capture the noise features related to the target spectral features in a complex and changeable noise environment.
[0053] After obtaining the conditional coding, the next step is to sample in Gaussian space. The purpose of this step is to generate a Gaussian distribution representing the target spectral characteristics based on the conditional coding, and then sample a sample from this distribution. This sample represents the spectral characteristics of the target time point in the absence of noise interference.
[0054] Finally, the result obtained from Gaussian space sampling is subtracted from the original sampling noise to achieve noise reduction. This step is the key to the entire noise reduction process, which directly affects the quality and accuracy of the generated spectral features. By iteratively executing the above steps, the influence of noise can be gradually reduced, and finally a spectral feature close to the real signal is generated.
[0055] At step S203, the spectrum feature is converted back to the space where the skeleton point image is located by using an inverse transformation to obtain the predicted action. In another embodiment, the following steps are included:
[0056] ,
[0057] in, Represents the image at the bone point The value of the position, Indicates the position in the spectrum domain The spectrum characteristics of Indicates the image width, Indicates the image height, and Indicates location The introduction of these two normalization coefficients is to ensure that the transformed image can be consistent at different scales.
[0058] The inverse transformation formula uses the features in the spectral domain to reconstruct the action in the original skeleton point image space through a series of cosine transforms. This transformation is achieved by accumulating all possible frequency combinations, and each pair of frequency combinations contributes to the original image through its corresponding spectral features and a pair of cosine functions.
[0059] Furthermore, an embodiment of the present application also provides an artificial intelligence-based prison inmate behavior analysis and early warning device, comprising: a processor, a memory, and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute any one of the above-mentioned processing methods.
[0060] Furthermore, an embodiment of the present application also provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute any one of the implementation methods of the above-mentioned processing methods.
[0061] It can be known from the description of the above implementation mode that those skilled in the art can clearly understand that all or part of the steps in the above-mentioned embodiment method can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including several instructions for enabling a computer device (which can be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0062] 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, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0063] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0064] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An artificial intelligence-based prisoner behavior analysis and early warning system, characterized in that: include: Collection module, behavior prediction module, classification module and early warning module; among them, The acquisition module is used to photograph prisoners in prison to obtain image data containing the prisoners; The behavior prediction module is used to extract the key skeleton points of the prisoner in the image data, so as to predict the prisoner's actions at a target time point based on the key skeleton points; The classification module is used to classify the predicted action to transmit the classification result to the early warning module; and The warning module is used to determine whether the classification result reaches the target threshold, so as to send a warning signal to the target guard; The key skeleton points of the prisoner in the image data are extracted as follows: Extracting attention maps of the image data at multiple resolutions to obtain down-sampled features; The down-sampled features are subjected to up-sampling processing, and the processing results are used for field approximation fusion with the down-sampled features to obtain residual fusion features; wherein the fusion method includes: , in, represents the residual fusion feature, represents the result of said processing, represents the down-sampled features, j and i Represents different coordinate indices, represents the regularization parameter, represents the bandwidth parameter of the Gaussian kernel, Z represents a normalization factor; and generating a heat map of the image data based on the residual fusion feature to extract key bone points; The method includes: mapping the values of the matrix of the residual fusion feature to a target range interval to obtain the heat map; replacing the values in the heat map whose activation values are greater than the target threshold value by using an indicator function for closure calculation; and extracting the center points of one or more rectangular boxes in the closure calculation result as the key bone points; Predicting the prisoner's action at the target time point based on the key skeleton points includes: Converting the key skeleton points into a spectrum space to generate sampling noise; Iteratively denoising the sampled noise to generate a frequency spectrum feature at a target time point; and The spectrum features are converted back to the space where the skeleton point image is located by using an inverse transformation to obtain the predicted action.
2. The system according to claim 1, characterized in that The step of converting the key skeleton points into a spectrum space to generate sampling noise includes: , in, represents the sampling noise, and Indicates that the key bone points are x and y The complex frequency in the direction, Indicates that the key bone points are Strength of location.
3. The system according to claim 1, characterized in that The iterative denoising of the sampling noise to generate a spectrum feature at a target time point includes: Acquiring conditional information of the sampled noise, wherein the conditional information is used to perform cross-attention calculation to obtain conditional coding; and Sampling is performed in Gaussian space based on the conditional coding, and the sampling result is used to be subtracted from the sampling noise to perform noise reduction processing on the sampling noise.
4. The system according to claim 1, characterized in that The inverse transformation is used to convert the spectrum feature back to the space where the skeleton point image is located to obtain the predicted action, which includes: , in, Represents the image at the bone point The value of the position, Indicates the position in the spectrum domain The spectrum characteristics of M Indicates the image width, N Indicates the image height, and Indicates location The normalization coefficient of .
5. The system according to claim 1, characterized in that The system further comprises: The acquisition module, the behavior prediction module, the classification module and the early warning module are connected to the cloud platform server via a wireless communication network.
6. The system according to claim 1, characterized in that in, Before extracting the key skeleton points of the prisoner in the image data to predict the prisoner's actions at the target time point based on the key skeleton points, the method further includes: The target frame in the sampled image data is randomly masked based on a preset probability function, so as to train the corresponding model's ability to predict actions at the target time point in a self-supervised manner.
7. A prisoner behavior analysis and early warning method based on artificial intelligence, characterized in that: include: Photographing a prisoner to obtain image data containing the prisoner; Extracting key skeleton points of the prisoner in the image data to predict the prisoner's actions at a target time point based on the key skeleton points; and Classifying the predicted actions, wherein the classification result is used to determine whether a target threshold is reached, so as to send an early warning signal to the target guard; The key skeleton points of the prisoner in the image data are extracted as follows: Extracting attention maps of the image data at multiple resolutions to obtain down-sampled features; The down-sampled features are subjected to up-sampling processing, and the processing results are used for field approximation fusion with the down-sampled features to obtain residual fusion features; wherein the fusion method includes: , in, represents the residual fusion feature, represents the result of said processing, represents the down-sampled features, j and i Represents different coordinate indices, represents the regularization parameter, represents the bandwidth parameter of the Gaussian kernel, Z represents the normalization factor; and Generate a heat map of the image data based on the residual fusion feature to extract key bone points; including: mapping the values of the matrix of the residual fusion feature to a target range interval to obtain the heat map; using an indicator function to replace the values in the heat map whose activation values are greater than a target threshold value for closure calculation; and extracting the center points of one or more rectangular boxes in the closure calculation result as the key bone points; Predicting the prisoner's action at the target time point based on the key skeleton points includes: Converting the key skeleton points into a spectrum space to generate sampling noise; Iteratively denoising the sampled noise to generate a frequency spectrum feature at a target time point; and The spectrum features are converted back to the space where the skeleton point image is located by using an inverse transformation to obtain the predicted action.
8. A device for analyzing and warning prisoner behavior, characterized in that: include: A processor, a memory, and a system bus; wherein the processor and the memory are connected via the system bus; The memory is used to store one or more programs, wherein the one or more programs include instructions, and when the instructions are executed by the processor, the processor is caused to perform the method of claim 7.
Citation Information
Patent Citations
Intelligent analysis early warning method for dangerousness tendency of prison persons serving sentences
CN104050361A
Anti-unmanned aerial vehicle multi-target identification and tracking video detection method based on high resolution
CN114255407A
