Human behavior intention detection method and device based on human key point estimation

By optimizing human body key point sequence signals in video data and constructing spatio-temporal correlation diagrams, and using deep learning models to analyze behavioral intentions, the existing technology solves the problem of insufficient behavioral analysis capabilities and real-time performance in multi-person scenarios, and achieves efficient Detection of group behavioral intentions.

CN118366224BActive Publication Date: 2024-08-23ANSJER ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410774499.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-23
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

The existing technology lacks the ability to analyze group behavior in multi-person scenarios in human behavioral intention analysis, and the real-time performance and computational efficiency are insufficient, and the generalization ability and robustness need to be improved.

Method used

By acquiring and optimizing human body key point sequence signals in video data, constructing spatiotemporal feature representation and correlation diagrams, using deep learning models to detect behavioral intentions, and considering the interaction between people, we can achieve real-time and efficient monitoring in multi-person scenarios. .

Benefits of technology

The generalization ability and robustness of the method for detecting personnel behavioral intentions are improved, and the group behavioral intentions can be accurately analyzed in multi-person scenarios to meet the real-time needs of actual monitoring systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366224B
    Figure CN118366224B
Patent Text Reader

Abstract

The present application discloses a method and device for detecting human behavior intention based on human key point estimation. The method adjusts the sampling frequency of original video data and obtains a first human key point sequence signal and a first target unique identifier corresponding to a human target; obtains a time interval corresponding to the sampling frequency adjustment, optimizes the first human key point sequence signal, adjusts the sampling frequency to a determined critical sampling frequency, obtains a second human key point sequence signal, a second target unique identifier and timestamp information corresponding to the human target, so as to obtain multi-scale motion feature information and construct spatiotemporal trajectory features; fuses the multi-scale motion feature information and spatiotemporal trajectory features to obtain spatiotemporal feature representation and construct a spatiotemporal association graph of multiple human targets; inputs the second human key point sequence signal into a deep learning model constructed according to the spatiotemporal feature representation and the spatiotemporal association graph, and outputs a behavior intention detection result corresponding to each human target.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of target detection technology, and in particular to a method and device for detecting human behavior intention based on human key point estimation. Background Art

[0002] In recent years, with the vigorous development of artificial intelligence technology, the level of video surveillance intelligence has been continuously improved. Target detection and tracking algorithms have become increasingly mature, and breakthroughs have been made in moving target positioning and trajectory analysis. However, these methods mainly focus on the appearance characteristics and movement patterns of the target, lack the detailed description of human posture and movement, and cannot accurately grasp the semantic meaning of the behavior.

[0003] The human key point estimation technology based on deep learning has opened up new ideas for behavioral intention analysis. By analyzing the geometric relationship and temporal evolution between key points, the fine-grained movements of the human body can be restored, and then the behavioral intention can be inferred. For example, by analyzing the interaction between the key points of the hand and the object, it can be determined whether the person is picking up an object or using a tool; by analyzing the movement patterns of the key points of the legs, it can be determined whether the person is walking normally or wandering or running away.

[0004] Although human key point estimation shows attractive prospects in behavioral intention analysis, existing methods still have some limitations. First, most methods only consider the key point information of a single person, ignoring the interaction between people, and are difficult to deal with group behavioral intention analysis in multi-person scenarios. Second, existing methods are mainly based on offline batch processing, rarely considering real-time and computational efficiency, and cannot meet the needs of actual monitoring systems. In addition, due to the lack of large-scale behavioral intention annotated data, the generalization ability and robustness of existing methods need to be improved. Summary of the invention

[0005] The embodiment of the present application provides a method and device for detecting human behavior intention based on human key point estimation, which can solve the problem that most of the current maintenance decision optimization methods are aimed at single equipment or independent production lines, lacking overall consideration of the overall operation of park equipment and resource scheduling. In addition, they do not take into account the equipment degradation mechanism and uncertainty when predicting faults and planning maintenance, and the dynamics and robustness of optimization need to be strengthened. The method provided can achieve the coordinated optimization of equipment life cycle management and park production operations.

[0006] In a first aspect, an embodiment of the present application provides a method for detecting human behavior intention based on human key point estimation, the method comprising:

[0007] Acquire original video data, adjust the sampling frequency of the original video data, and acquire a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data;

[0008] Acquire a time interval corresponding to the sampling frequency adjustment, adjust the sampling frequency within the time interval, complete the optimization of the first human body key point sequence signal, and determine the corresponding critical sampling frequency according to the optimized first human body key point sequence signal;

[0009] The sampling frequency of the original video data is adjusted to the critical sampling frequency, and a second human key point sequence signal, a second target unique identifier and a timestamp information corresponding to the human target in the original video data are obtained;

[0010] According to the second human key point sequence signal, multi-scale motion feature information is acquired, and according to each second target unique identifier and timestamp information, spatiotemporal trajectory features of each human target are constructed;

[0011] The multi-scale motion feature information and the spatiotemporal trajectory feature are integrated to obtain a spatiotemporal feature representation, and a spatiotemporal association graph of a plurality of the human targets is constructed according to the plurality of spatiotemporal feature representations;

[0012] A deep learning model is constructed based on the spatiotemporal feature representation and the spatiotemporal association graph, the second human key point sequence signal is input into the deep learning model, and the behavioral intention detection result corresponding to each of the human targets is output.

[0013] In a second aspect, the present application also provides a device for detecting a person's behavior intention, comprising:

[0014] A video acquisition module, used to acquire original video data, adjust the sampling frequency of the original video data, and acquire a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data;

[0015] A frequency determination module, used for obtaining a time interval corresponding to the sampling frequency adjustment, adjusting the sampling frequency within the time interval, completing the optimization of the first human body key point sequence signal, and determining the corresponding critical sampling frequency according to the optimized first human body key point sequence signal;

[0016] A frequency adjustment module, used to adjust the sampling frequency of the original video data to the critical sampling frequency, and obtain a second human key point sequence signal, a second target unique identifier and a timestamp information corresponding to the human target in the original video data;

[0017] A feature acquisition module, used to acquire multi-scale motion feature information according to the second human key point sequence signal, and to construct a spatiotemporal trajectory feature of each of the human targets according to each of the second target unique identifiers and timestamp information;

[0018] An information fusion module, used to fuse the multi-scale motion feature information and the spatiotemporal trajectory features, obtain spatiotemporal feature representation, and construct a spatiotemporal association graph of a plurality of human targets according to the plurality of spatiotemporal feature representations;

[0019] A result output module is used to construct a deep learning model based on the spatiotemporal feature representation and the spatiotemporal association graph, input the second human key point sequence signal into the deep learning model, and output the behavior intention detection result corresponding to each of the human targets.

[0020] In a third aspect, the present application also provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method for detecting human behavior intention based on human body key point estimation as described in the first aspect is implemented.

[0021] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for detecting human behavior intention based on human body key point estimation as described in the first aspect.

[0022] Compared with the prior art, this application has at least the following beneficial effects:

[0023] The method provided in the present application first adjusts the sampling frequency of the acquired original video data, and obtains the first human key point sequence signal and the first target unique identifier corresponding to the human target in the original video data; then, obtains the time interval corresponding to the sampling frequency adjustment, optimizes the first human key point sequence signal according to the sampling frequency, and determines the corresponding critical sampling frequency; then, adjusts the sampling frequency of the original video data to the critical sampling frequency, obtains the second human key point sequence signal, the second target unique identifier and the timestamp information corresponding to the human target in the original video data; further, according to the second human key point sequence signal, obtains multi-scale motion feature information, and constructs the spatiotemporal trajectory feature of each human target according to each second target unique identifier and the timestamp information; further, integrates the multi-scale motion feature information and the spatiotemporal trajectory feature, obtains the spatiotemporal feature representation, and constructs the spatiotemporal association diagram of multiple human targets according to the multiple spatiotemporal feature representations; finally, constructs a deep learning model according to the spatiotemporal feature representation and the spatiotemporal association diagram, inputs the second human key point sequence signal into the deep learning model, and outputs the behavior intention detection result corresponding to each human target.

[0024] The method provided can consider the key point information of multiple human targets in the video and analyze the group behavior intention in multi-person scenes based on the interaction between people. Secondly, it realizes real-time and efficient monitoring of multiple human targets, and the method provided greatly improves the generalization ability and robustness of the method for detecting human behavior intention.

[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flow chart of a method for detecting human behavior intention based on human key point estimation according to an embodiment of the present application;

[0027] Figure 2 This is a schematic diagram of the structure of a device for detecting human behavior intentions according to an embodiment of the present application;

[0028] Figure 3 A schematic diagram of the structure of a computer device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0030] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0031] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0032] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0033] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0034] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0035] The technical solution of the embodiment of the present application is introduced below.

[0036] In the fields of public safety monitoring, intelligent traffic management, etc., it is crucial to accurately detect people's behavioral intentions. Traditional behavior analysis methods are mostly based on target detection and motion trajectory, and have limited semantic understanding of human fine movements, making it difficult to accurately predict complex behavioral intentions.

[0037] In recent years, with the vigorous development of artificial intelligence technology, the level of video surveillance intelligence has been continuously improved. Target detection and tracking algorithms have become increasingly mature, and breakthroughs have been made in moving target positioning and trajectory analysis. However, these methods mainly focus on the appearance characteristics and movement patterns of the target, lack the detailed description of human posture and movement, and cannot accurately grasp the semantic meaning of the behavior.

[0038] The rise of deep learning has injected new vitality into intelligent video analysis. Deep learning models such as convolutional neural networks have performed well in visual tasks such as image classification and semantic segmentation, showing strong feature learning capabilities. Researchers have begun to explore the application of deep learning to human posture estimation and have achieved gratifying results. Through end-to-end key point regression or part segmentation, deep models can accurately locate human key points and describe human posture in complex scenes.

[0039] The human key point estimation technology based on deep learning has opened up new ideas for behavioral intention analysis. By analyzing the geometric relationship and temporal evolution between key points, the fine-grained movements of the human body can be restored, and then the behavioral intention can be inferred. For example, by analyzing the interaction between the key points of the hand and the object, it can be determined whether the person is picking up an object or using a tool; by analyzing the movement patterns of the key points of the legs, it can be determined whether the person is walking normally or wandering or running away.

[0040] Although human key point estimation shows attractive prospects in behavioral intention analysis, existing methods still have some limitations. First, most methods only consider the key point information of a single person, ignoring the interaction between people, and are difficult to deal with group behavioral intention analysis in multi-person scenarios. Second, existing methods are mainly based on offline batch processing, rarely considering real-time and computational efficiency, and cannot meet the needs of actual monitoring systems. In addition, due to the lack of large-scale behavioral intention annotated data, the generalization ability and robustness of existing methods need to be improved.

[0041] Please refer to Figure 1 , Figure 1 The flowchart of a method for detecting human behavior intention based on human key point estimation provided in the embodiment of the present application is shown in FIG. The method for detecting human behavior intention based on human key point estimation in the embodiment of the present application can be applied to computer devices, including but not limited to smart phones, laptops, tablet computers, desktop computers, physical servers, cloud servers and other devices. Figure 1 As shown, the method for detecting human behavior intention based on human key point estimation in this embodiment includes steps S101 to S106, which are described in detail as follows:

[0042] Step S101, obtaining original video data, adjusting the sampling frequency of the original video data, and obtaining a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data.

[0043] Specifically, this application requires the deployment of high-definition cameras in the target scene to ensure that the collected video has sufficient clarity and coverage. The selection of cameras needs to consider many factors, such as resolution, frame rate, dynamic range, low-light performance, etc. Generally speaking, in order to capture the details of human movement, the camera resolution needs to reach 1080P or higher, and the frame rate needs to reach 25fps or higher. At the same time, the camera also needs to have a wide dynamic range and good low-light performance to adapt to different lighting conditions, such as strong light, backlight, weak light, etc. In addition, the layout of the camera also needs to be carefully considered, both to cover as much of the target area as possible and to avoid blind spots and occlusions as much as possible.

[0044] After obtaining the raw video data, this application needs to adjust the sampling frequency of the video. The sampling frequency refers to the number of frames collected per second, which determines the temporal resolution of the video. A higher sampling frequency can capture more details of human movement, but it will also increase the amount of data and the difficulty of processing. Therefore, this application needs to find a balance between temporal resolution and data volume based on the needs of specific applications. This balance point is referred to as the rated sampling frequency in this application. Typically, the rated sampling frequency can be set to 25fps or 30fps, which can meet the needs of most behavioral analysis without generating too much redundant data.

[0045] In some embodiments, obtaining the first human key point sequence signal and the corresponding first target unique identifier corresponding to the human target in the original video data includes: performing target detection on the original video data to obtain positioning information corresponding to the human target in the original video data; based on a preset target tracking algorithm, tracking the human target in the original video data according to the positioning information to obtain the motion trajectory corresponding to the human target; extracting the first human key point sequence signal corresponding to a preset key part according to the motion trajectory; adding the corresponding first target unique identifier to the first human key point sequence signal corresponding to each of the human targets, wherein the first target unique identifier is used to confirm the human target corresponding to each of the first human key point sequence signals.

[0046] This application needs to detect and track human targets in each frame of video. Human target detection is to find all human bodies in each frame and mark them with a rectangular box. This can be achieved through classic machine learning methods (such as HOG+SVM) or deep learning methods (such as Faster R-CNN, YOLO, SSD, etc.). These methods can quickly and accurately locate all human targets in a frame.

[0047] After detecting the human target, the application also needs to track it, that is, determine whether the human target in different frames is the same person. This can be achieved through target tracking algorithms, such as Kalman filtering, particle filtering, TLD, etc. Through target tracking, the application can obtain the motion trajectory of each person in the video, which is very important for analyzing people's behavior patterns and intentions. For example, if a person lingers in a certain area for a long time, or walks back and forth frequently, this may mean that he is looking for or waiting for something. For another example, if a person suddenly accelerates and runs, this may indicate an emergency. By analyzing a person's motion trajectory, the application can infer a lot of information about his behavior and intentions.

[0048] While detecting and tracking human targets, this application also needs to extract their key point sequence signals. Human key points refer to some key parts of the human body, such as the head, neck, shoulders, elbows, wrists, hips, knees, ankles, etc. By estimating the positions of these key points, this application can obtain a human skeleton structure and then analyze his posture and movement. In recent years, deep learning methods have made great progress in the task of estimating human key points, such as CPM, Stacked Hourglass Networks, OpenPose, etc. These methods can simultaneously locate all human key points in a frame of image to form a first human key point sequence signal. By analyzing the first human key point sequence signal, this application can know what actions a person is doing, such as walking, running, jumping, squatting, raising hands, etc. This is very helpful for understanding people's behavioral intentions.

[0049] In order to distinguish different people, the present application also needs to assign a first target unique identifier (ID) to each detected human target. This ID runs through the entire video sequence, so that the present application can know whether the human targets at different time points are the same person. Usually, the appearance features (such as clothing color, texture, etc.) and motion features (such as trajectory, speed, etc.) of the human target can be used to generate this ID. A simple method is to combine these features into a high-dimensional vector, then cluster them and assign the same ID to similar vectors. A more advanced method can use deep learning to map each person to a unique feature space by training an embedding network, thereby generating a stable ID. With this ID, the present application can track the complete behavior process of each person in the video, rather than fragmenting their behavior.

[0050] Step S102, obtaining a time interval corresponding to the sampling frequency adjustment, adjusting the sampling frequency within the time interval, completing the optimization of the first human body key point sequence signal, and determining the corresponding critical sampling frequency according to the optimized first human body key point sequence signal.

[0051] Specifically, using the target unique identifier information obtained in the above steps, the first target unique identifier is obtained according to the current and last or multiple times when the sampling frequency is adjusted to the rated value, and the time interval for adjusting the sampling frequency to the rated value next time is dynamically determined. And within the determined time interval, the sampling frequency is gradually adjusted and the moments corresponding to different sampling frequency values ​​and the unique identifier and key point sequence signal of each human target are synchronously collected. Through adaptive multi-scale decomposition, the key point sequence signal is de-noised and multi-resolution represented, and the optimized key point sequence signal and the corresponding critical sampling frequency are obtained.

[0052] In some embodiments, obtaining the time interval corresponding to the sampling frequency adjustment includes: obtaining a historical unique identifier corresponding to the first target unique identifier; obtaining historical human target change information and historical time intervals corresponding to the first target unique identifier and the historical unique identifier; inputting the historical human target change information and the historical time interval into a preset prediction model to obtain predicted human target change information and reference time interval; updating the reference time interval according to the predicted human target change information to obtain the time interval corresponding to the sampling frequency adjustment.

[0053] Specifically, the application first needs to use the first target unique identifier obtained in the above steps. These identifiers can tell the application which people appear in the scene at a specific moment, their location and movement status. By analyzing this information, the application can understand the distribution and activities of people in the scene.

[0054] Then, the application needs to trace back the two previous times when the sampling frequency was adjusted to the rated value, and obtain the unique identifier of the first human target at those two times. In this way, the application has three snapshots of personnel distribution at three time points. By comparing these three snapshots, the application can analyze the changing trend of personnel distribution.

[0055] Specifically, the present application can calculate the number of new and disappeared human targets between every two adjacent time points, as well as the rate of change of the total number of human targets. These indicators can reflect the intensity of personnel flow. If the number of new and disappeared people is large, or the total number of people changes greatly, this may indicate that there is frequent personnel flow in the scene, and a higher sampling frequency is required to capture these changes. On the contrary, if the distribution of personnel is relatively stable, the present application can reduce the sampling frequency to save computing resources.

[0056] In order to quantify this process, this application can introduce some parameters and formulas. Assuming that this application uses N1, N2, and N3 to represent the total number of human targets detected at three time points, and uses Δt1 and Δt2 to represent the time interval between two adjacent time points, then this application can calculate the population change rates r1 and r2:

[0057]

[0058]

[0059] Among them, |N2-N1| represents the absolute change in the number of people in the first time interval, Represents the relative rate of change. It is used to normalize the influence of time interval, so that r1 represents the relative change rate of the number of people per unit time. The calculation method of r2 is similar. With r1 and r2, this application can predict the change rate of the number of people in the next time interval Δt3 r3:

[0060]

[0061] Here, the application simply uses the average value of the change rate of the first two time intervals to predict the change rate of the next time interval. Of course, the application can also use more complex prediction models, such as linear regression, time series analysis, etc.

[0062] Finally, the present application can determine the time interval Δt3 for adjusting the sampling frequency to the rated value next time according to the predicted change rate r3:

[0063]

[0064] Among them, Δt ref It is a reference time interval that can be set based on experience or actual needs. The meaning of this formula is that if the predicted rate of change of the number of people is high, then this application will shorten the time interval and sample at a higher frequency; if the predicted rate of change is low, then this application will extend the time interval to reduce the sampling frequency.

[0065] In some embodiments, the sampling frequency is adjusted to optimize the first human body key point sequence signal, and the corresponding critical sampling frequency is determined according to the optimized first human body key point sequence signal; including: obtaining a frequency search range corresponding to the sampling frequency; gradually adjusting the sampling frequency according to a preset step size within the frequency search range, obtaining multiple first human body key point sequence signals corresponding to the sampling frequencies and the first target unique identifier corresponding to each of the human targets; performing multi-scale decomposition on each of the first human body key point sequence signals to obtain motion patterns and behavioral characteristics; optimizing the first human body key point sequence signal according to multiple motion patterns and behavioral characteristics, and obtaining the optimized first human body key point sequence signal; obtaining signal-to-noise ratio information corresponding to the first human body key point sequence signal, and determining the critical sampling frequency according to the signal-to-noise ratio information.

[0066] In order to find this optimal point, the present application can adopt an adaptive strategy. First, the present application can set a search range of sampling frequency, such as from 1fps to 30fps. Then, the present application starts from the highest frequency (30fps) in this range and gradually reduces the sampling frequency, such as reducing 1fps each time. For each sampling frequency, the present application collects key point sequence signals for a period of time (such as 5 seconds) and records the corresponding time and the first target unique identifier of each human target.

[0067] In the process of collecting key point sequence signals, the present application also needs to perform multi-scale decomposition on them. Multi-scale decomposition is a commonly used signal processing technology, which can decompose the original signal into sub-signals on different frequency scales. The advantage of this is that the present application can analyze the characteristics of the signal at different scales, so as to more comprehensively understand the inherent structure and dynamic change law of the signal.

[0068] In the scenario of this application, multi-scale decomposition can help this application extract different levels of motion patterns and behavioral features from the original key point sequence signal. For example, at a lower frequency scale, this application may discover a person's overall motion trajectory and posture changes; while at a higher frequency scale, this application may capture a person's local limb movements and micro-expression changes. By comprehensively analyzing information at different scales, this application can obtain a more comprehensive and detailed description of behavior.

[0069] A common tool for implementing multi-scale decomposition is wavelet transform. Wavelet transform can decompose the signal into a series of wavelet basis functions, each of which corresponds to a different frequency scale and time position. By selecting an appropriate family of wavelet basis functions (such as Haar wavelet, Daubechies wavelet, etc.), the application can adaptively adjust the accuracy and efficiency of the decomposition.

[0070] In the scenario of this application, this application can perform wavelet transform on the coordinate sequence of each key point. Assuming that this application uses Haar wavelet, for the kth key point of the i-th human target at the tth time, its coordinates are (x i,t,k ,y i,t,k ), then this application can define the coefficients after wavelet transformation as:

[0071]

[0072] Where j represents the scale (or frequency) level of decomposition, φ j,t is the basis function of the Haar wavelet at the jth level and the tth moment. By changing the value of j, the present application can obtain wavelet coefficients at different scales, thereby achieving multi-scale decomposition.

[0073] After obtaining the wavelet coefficients, this application also needs to perform noise reduction processing on them. This is because the original key point sequence signal usually contains some noise and outliers, which may come from various factors such as measurement errors and occlusion interference. If these noises are not removed, they may interfere with subsequent behavior analysis and intention inference.

[0074] A common method for noise reduction is threshold filtering. Specifically, the present application may set a threshold λ, and for those wavelet coefficients whose absolute values ​​are less than λ, the present application considers that they are mainly contributed by noise, and thus the threshold may be set to 0.

[0075] As for those coefficients whose absolute values ​​are greater than λ, the present application considers that they carry important signal information and therefore retains them.

[0076] This process can be expressed as:

[0077]

[0078] in, and Represents the wavelet coefficients after denoising.

[0079] The selection of the threshold λ is a key issue. If λ is too small, the noise may not be effectively suppressed; if λ is too large, some important signal details may be lost. Therefore, this application needs to adaptively adjust the value of λ according to the characteristics of the signal and the strength of the noise.

[0080] A commonly used adaptive threshold selection method is the universal threshold. Its calculation formula is:

[0081]

[0082] Where σ is the standard deviation of the noise and N is the length of the signal. σ can be obtained by estimating the median absolute deviation (MAD) of the wavelet coefficients on the highest frequency scale:

[0083]

[0084] where J represents the highest frequency scale. MAD is a robust divergence measure that is less sensitive to outliers than the standard deviation.

[0085] After completing the noise reduction, the present application obtains an optimized, multi-scale representation of the key point sequence signal. The present application can recombine the wavelet coefficients at different scales to obtain a multi-resolution signal representation. This representation can not only capture the overall trend of the signal, but also characterize the local details of the signal.

[0086] Finally, the application needs to determine a critical sampling frequency. This frequency should be able to retain the useful information of the signal to the greatest extent possible with the lowest possible amount of data. One method is that the application can compare the quality of the reconstructed signal at different sampling frequencies and select the lowest sampling frequency that still reaches the preset reconstruction quality threshold as the critical sampling frequency.

[0087] For example, the present application may use the signal-to-noise ratio (SNR) to measure the reconstruction quality:

[0088]

[0089] Among them, (x i,t,k ,y i,t,k ) is the original key point coordinate, are the coordinates reconstructed from the optimized wavelet coefficients. The higher the SNR, the better the reconstruction quality.

[0090] The present application can set an SNR threshold, and then search the sampling frequency from high to low until the first frequency that makes the SNR higher than the threshold is found, and the frequency is used as the critical sampling frequency. In this way, the present application can reduce the amount of data while maximizing the signal quality.

[0091] Step S103, adjusting the sampling frequency of the original video data to the critical sampling frequency, and obtaining a second human key point sequence signal, a second target unique identifier and a timestamp information corresponding to the human target in the original video data.

[0092] Specifically, the present application adjusts the sampling frequency to the critical sampling frequency obtained in the above steps, and continuously collects optimized key point sequence signals, target unique identifiers and corresponding timestamps at different times, to provide data support for subsequent feature extraction and behavioral intention recognition.

[0093] Continuous data collection is a key link in the entire behavior intention recognition process. It provides a continuous source of data support for subsequent feature extraction, behavior analysis, and intention inference. In this process, this application needs to collect three main types of data at each sampling moment: the optimized second human key point sequence signal, the target unique identifier, and the corresponding timestamp.

[0094] The second human key point sequence signal is the most basic data for describing human posture and movement. By continuously collecting these signals, the present application can obtain a person's posture changes and movement trajectories at different time points. This information is the basis for analyzing behavior patterns and inferring intentions. In the continuous data collection stage, the present application directly uses the optimized second human key point sequence signals in the above steps. These signals have been processed by multi-scale decomposition and adaptive noise reduction, and have a higher signal-to-noise ratio and a clearer multi-resolution structure. Compared with the original signal, the optimized signal is more conducive to subsequent analysis and modeling.

[0095] The second target unique identifier is an important attribute used to distinguish different human targets. In a public scene, there are usually multiple people appearing and moving at the same time. In order to accurately analyze each person's behavior and intention, this application needs to assign a unique identifier to each person and use this identifier consistently throughout the data collection process. In this way, this application can associate key point sequence signals at different time points with specific human targets to form a complete and individualized behavior trajectory.

[0096] In practical applications, the generation and maintenance of unique identifiers for targets may face some challenges. When a person temporarily leaves the monitoring area and then re-enters, this application needs to be able to recognize that this is still the same person and associate the previous and current data. This requires this application to fully consider the appearance characteristics, motion characteristics and other factors of the human target when generating the identifier to form a robust and re-identifiable representation. This application can use features such as the color histogram and gradient direction histogram of the target to generate identifiers. For example, this application can combine these features into a high-dimensional vector and then use a hash function to map it to a unique identifier space. At the same time, this application also needs to design some target matching algorithms, such as the Hungarian algorithm or the Kuhn-Munkres algorithm, to determine whether the newly appeared target is a completely new individual or a continuation of a previous target. These algorithms find the optimal match by maximizing the similarity between targets, thereby achieving cross-time domain association of targets.

[0097] Timestamp information is the link that associates key point sequence signals and target identifiers with specific time points. By recording the timestamp information of each data sample, the present application can know when a person did what action, when he interacted with others, and when he entered or left a specific area. This time information is very important for understanding the context and causality of behavior. For example, if the present application finds that a person suddenly accelerates and runs late at night, it may mean an emergency or dangerous situation; if the same behavior occurs in a sports field during the day, it may just be a normal exercise behavior. The accuracy of the timestamp directly affects the present application's ability to portray behavioral dynamics. In general, the granularity of the timestamp should match the sampling frequency. For example, if the present application collects data at a frequency of 30fps, the accuracy of the timestamp should reach the millisecond level to accurately record the collection time of each frame of data.

[0098] Step S104, acquiring multi-scale motion feature information according to the second human key point sequence signal, and constructing the spatiotemporal trajectory feature of each human target according to each second target unique identifier and timestamp information.

[0099] Specifically, the multi-scale motion feature coefficients in the time domain and frequency domain are extracted from the optimized second human key point sequence signal collected in the above steps. At the same time, the spatiotemporal trajectory features of the human target are constructed using the obtained second target unique identifier and timestamp information. The motion features and trajectory features are fused to form a comprehensive spatiotemporal feature representation to describe the dynamic evolution of human behavior.

[0100] First, how to extract the motion features of key points. For the kth key point of the i-th human target at the tth time, this application can calculate its instantaneous velocity v i,t,k and acceleration a i,t,k , to describe the movement trend of this key point:

[0101]

[0102] Among them, Δt is the time interval between two adjacent frames, (x i,t,k ,y i,t,k ) are the coordinates of the kth key point in the tth frame.

[0103] In addition to instantaneous velocity and acceleration, this application can also calculate some statistics to characterize the overall characteristics of the key point movement, such as the mean velocity And standard deviation σi,k:

[0104]

[0105]

[0106] Among them, T is the total number of time steps. These statistics can reflect the average speed level and variation range of the movement of various parts of the human body.

[0107] Next, the present application can analyze the motion pattern of key points from the perspective of frequency domain. i,t,k By performing Fourier transform, this application can obtain its spectrum representation:

[0108]

[0109] Where f is the frequency variable. By analyzing V i,k (f) Amplitude distribution at different frequencies. This application can discover periodic patterns and dominant frequencies in human motion, which is very helpful for identifying certain regular behaviors (such as walking, running, etc.).

[0110] While extracting motion features, the present application also needs to consider how to characterize the trajectory features of the human target in space. To this end, the present application can use the acquired second target unique identifier and timestamp information to connect the position coordinates of the same target at different times to form a complete trajectory curve.

[0111] For the i-th human target, this application can express its trajectory as a space-time curve:

[0112] r i (t) = (x i (t), y i (t), t), where x i (t) and y i (t) represent the x-coordinate and y-coordinate of the target at time t. In order to characterize the geometric characteristics of this curve, the application can calculate its length L i , curvature κ i and the twist τ i wait.

[0113] Curve length L i It reflects the distance of target movement, which can be approximately calculated by the following formula:

[0114]

[0115] Curvature κ i It reflects the curvature of the trajectory and can be estimated using the following formula:

[0116]

[0117] Where, Δs i (t) is the distance between two adjacent points on the trajectory, and its expression is:

[0118]

[0119] The twist τi reflects the non-planarity of the trajectory and can be estimated using the following formula:

[0120]

[0121] Among them, v i (t)=(Δx i (t), Δy i (t)) is the direction vector from the tth point to the t+1th point on the trajectory.

[0122] After extracting the motion features of the key points and the trajectory features of the target, this application needs to fuse them into a comprehensive spatiotemporal feature representation. A simple and effective way to fuse them is to use a convolutional neural network (CNN). This application can input the motion features and trajectory features into two parallel CNN branches respectively, allowing the network to automatically learn to extract high-level spatiotemporal features. Then, this application splices the output feature maps of the two branches and fuses them through additional convolutional layers and fully connected layers to finally obtain a compact spatiotemporal feature vector.

[0123] Assume that this application uses two parallel CNN branches, one for processing the motion features of key points and the other for processing the trajectory features of the target. The input of the motion feature branch is a T×K×3 tensor, which represents the velocity and acceleration of K key points in T time steps. The input of the trajectory feature branch is a T×2 matrix, which represents the (x, y) coordinates of the target in T time steps. The two branches extract features from the input data through multiple convolutional layers and pooling layers respectively, and obtain two T′×D feature maps, where T′ is the number of time steps after downsampling and D is the feature dimension.

[0124] Next, the present application concatenates the feature maps of the two branches in the feature dimension to obtain a T′×2D fused feature map. Then, the present application further extracts and compresses the fused features through additional convolutional layers and pooling layers, and finally obtains a d-dimensional spatiotemporal feature vector X through global average pooling or a fully connected layer. i , where d is the characteristic dimension set in this application.

[0125] In some embodiments, before obtaining the multi-scale motion feature information according to the second human key point sequence signal, it also includes: obtaining the signal reconstruction quality and the behavior recognition accuracy according to the second human key point sequence signal and the second target unique identifier; if the signal reconstruction quality and the behavior recognition accuracy do not meet the preset conditions, updating the critical sampling frequency to re-acquire the second human key point sequence signal, the second target unique identifier and the timestamp information.

[0126] The critical sampling frequency is the sampling frequency that can minimize the amount of data and the computational burden while ensuring the quality of signal reconstruction. However, in actual scenarios, people's behavior patterns may change with time, environment, events, and other factors. An initially applicable critical sampling frequency may no longer be optimal during subsequent data collection.

[0127] For example, in a busy subway station, the flow and behavior patterns during the morning rush hour and evening rush hour may be very different. During the morning rush hour, a large number of passengers rush into the platform in a short period of time, and their movement speed is faster and the direction is more consistent, which may require a higher sampling frequency to accurately capture; during the evening rush hour, the number of passengers may decrease, and their movements become more random and diverse, which may allow this application to use a lower sampling frequency to reduce the amount of data. If this application continues to use the critical sampling frequency determined during the morning rush hour, then during the evening rush hour, this application may collect a large amount of redundant data, wasting storage and computing resources.

[0128] In order to cope with this change, the application needs to continuously monitor and analyze the collected data to evaluate whether the current critical sampling frequency is still applicable. This is the task of adaptive threshold update. Specifically, the application can evaluate the applicability of the critical sampling frequency from two aspects: signal reconstruction quality and behavior recognition accuracy.

[0129] First, the application can use the signal reconstruction quality to measure whether the current critical sampling frequency is sufficient to capture the key details of the behavior. The application can periodically reconstruct the collected key point sequence signal and calculate the error between the reconstructed signal and the original signal. A commonly used error metric is the mean squared error (MSE):

[0130]

[0131] Where N is the length of the signal, x i is the original signal, is the reconstructed signal. The smaller the MSE, the higher the reconstruction quality and the more suitable the current sampling frequency.

[0132] The present application may set a threshold ∈ of MSE. When the reconstruction error exceeds this threshold, the present application considers that the current critical sampling frequency may no longer be applicable and needs to be updated. In order to determine the new critical sampling frequency, the present application may repeat the adaptive signal optimization process in the above steps. Specifically, the present application may try different frequency values ​​(such as doubling or halving) based on the current frequency, repeat multi-scale decomposition and noise reduction processing for each frequency value, and evaluate the reconstruction quality. The present application selects the lowest frequency that meets the reconstruction quality requirements as the new critical sampling frequency.

[0133] In addition to signal reconstruction quality, this application also uses behavior recognition accuracy to guide the update of critical sampling frequency. The ultimate goal of this application is to accurately identify people's behavioral intentions. If the current sampling frequency cannot support high-accuracy behavior recognition, then even if the reconstruction quality is high, this sampling frequency is not applicable.

[0134] In order to evaluate the accuracy of behavior recognition, this application can regularly perform behavior recognition tests on the collected data. This application can use some standard test sets, which contain some pre-labeled typical behaviors (such as walking, running, jumping, attacking, etc.). This application can input the key point sequence signals of these behaviors into the behavior recognition model of this application, and compare the output of the model with the actual behavior label. This application can use indicators such as accuracy, precision, and recall to quantify recognition performance:

[0135]

[0136] Among them, TP (True Positive) represents the number of correctly identified positive samples, TN (True Negative) represents the number of correctly identified negative samples, FP (False Positive) represents the number of incorrectly identified positive samples, and FN (False Negative) represents the number of incorrectly identified negative samples.

[0137] This application can set a performance threshold, such as Accuracy>0.9. When the recognition performance is lower than this threshold, this application considers that the current critical sampling frequency cannot support effective behavior recognition and needs to be updated. The update process is similar to the previous one. This application tries different frequency values ​​based on the current frequency, evaluates their corresponding recognition performance, and selects the frequency with the best performance as the new critical sampling frequency.

[0138] Step S105, fusing multi-scale motion feature information and spatiotemporal trajectory features to obtain spatiotemporal feature representations, and constructing a spatiotemporal association graph of multiple human targets based on the multiple spatiotemporal feature representations.

[0139] Based on the spatiotemporal features extracted in the above steps, a spatiotemporal association graph between different human targets is established by using graph neural networks and other technologies. The association graph depicts the interaction patterns and dependencies between targets in the temporal and spatial dimensions, revealing the formation and evolution mechanism of group behavior intentions.

[0140] In some embodiments, constructing a spatiotemporal association graph of a plurality of the human targets based on a plurality of the spatiotemporal feature representations includes: calculating the spatiotemporal proximity corresponding to each two of the human targets among the plurality of the human targets; obtaining the cosine similarity corresponding to the two human targets based on the spatiotemporal feature vector corresponding to the spatiotemporal feature representation; obtaining the association matrix corresponding to the two human targets based on the spatiotemporal proximity and the cosine similarity; and constructing the spatiotemporal association graph based on a plurality of the association matrices.

[0141] A key issue in constructing a spatiotemporal association graph is how to define and measure the association between objects. An intuitive approach is based on the proximity of objects in space and time. If two objects are close in space and appear at the same time, they are likely to have some kind of interaction or association. Based on this idea, this application can define a spatiotemporal proximity matrix Where N is the total number of targets, A ij Indicates the proximity between target i and target j in time and space.

[0142] A simple proximity measure is based on the Euclidean distance. Assume that there are T time steps in this application, and at each time step t, the application has the position coordinates of targets i and j and Then this application can define their spatial proximity at time step t as:

[0143]

[0144] Among them, σ s It is a parameter that controls the spatial scale.

[0145] Similarly, the present application may define the temporal proximity of targets i and j over the entire time span as:

[0146]

[0147] Among them, μ i and μ j are the average time of appearance of targets i and j, σ t is a parameter that controls the time scale.

[0148] With spatial proximity and temporal proximity, the application can combine them into a comprehensive spatiotemporal proximity:

[0149]

[0150] This spatiotemporal proximity matrix A describes the degree of proximity between different targets in time and space, and can be used as the basis for constructing an association graph.

[0151] However, relying solely on spatiotemporal proximity is not enough to fully characterize the interaction pattern between targets. In many cases, the association between targets depends not only on their spatial distance, but also on their behavioral similarity. For example, in a subway station, two thieves may deliberately keep a certain distance, but their behavioral patterns (such as frequent observation, rapid movement, etc.) may be very similar. In order to capture this association based on behavioral similarity, the present application can use the spatiotemporal feature vectors extracted in the above steps.

[0152] Assuming that this application extracts a d-dimensional spatiotemporal feature vector for each target, then at time step t, the feature vectors of targets i and j are and This application can calculate their cosine similarity:

[0153]

[0154] This cosine similarity It describes the similarity of the behaviors of targets i and j at time step t. This application can combine it with spatiotemporal proximity to obtain a more comprehensive association measure:

[0155]

[0156] This association matrix A comprehensively considers the similarities of targets in space, time, and behavior patterns, providing a more comprehensive and fine-grained association measure.

[0157] With this association matrix, this application can construct a weighted undirected graph in is a set of nodes (each node corresponds to a target), ε is a set of edges (each edge corresponds to the association between two targets), and A is an edge weight matrix (i.e., an association matrix). It is the spatiotemporal association diagram of this application, which depicts the interaction and dependency of different targets in time, space and behavior patterns.

[0158] In order to perform reasoning and prediction on this association graph, the present application can use technologies such as Graph Neural Network (GNN). GNN is a type of deep learning model specifically used to process graph structure data. It can perform end-to-end learning on the feature vectors of nodes and the topological structure of the graph, capturing the mutual influence and propagation patterns between nodes.

[0159] Specifically, the present application can use a graph convolutional network (GCN) to learn the representation of nodes. GCN updates the feature vector of each node by iteratively aggregating the neighbor information of each node, so that it can integrate local structural information. At layer I, the forward propagation rule of GCN can be written as:

[0160]

[0161] in, is the node feature matrix d of layer I l is the feature dimension of the lth layer), is the incidence matrix with self-loops added (I is the identity matrix), yes The degree matrix, W (l) is the learnable weight matrix of layer l, and σ is the activation function (such as ReLU).

[0162] Through multiple layers of graph convolution, GCN can learn a node representation H that incorporates graph structure information. (L) , where L is the total number of layers. This representation not only encodes the characteristics of each node itself, but also encodes the structural information of its neighbors and even the entire graph. This application can input this representation into downstream prediction tasks, such as node classification, edge prediction, graph classification, etc., to achieve reasoning and prediction of group behavior intentions.

[0163] Step S106, constructing a deep learning model based on the spatiotemporal feature representation and the spatiotemporal association graph, inputting the second human body key point sequence signal into the deep learning model, and outputting the behavior intention detection result corresponding to each human body target.

[0164] Specifically, the present application proposes a deep learning model based on graph attention mechanism and spatiotemporal graph convolutional network. This model takes the spatiotemporal association graph and the second human key point sequence signal as input, where each node represents a human target, and the feature vector of the node is the individual representation extracted from the spatiotemporal feature representation. The goal of the model is to learn a mapping function that maps the feature vector of each node to an intent label (such as "normal", "suspicious", "dangerous", etc.). The method provided can then consider the key point information of multiple human targets in the video, and analyze the group behavior intention in multi-person scenarios based on the interactive relationship between people. Secondly, real-time and efficient monitoring of multiple human targets is achieved, and the method provided greatly improves the generalization ability and robustness of the personnel behavior intention detection method.

[0165] In some embodiments, the deep learning model includes at least a graph attention layer and a spatiotemporal graph convolution layer; the second human body key point sequence signal is input into the deep learning model, and the behavior intention detection result corresponding to each of the human targets is output, including: the second human body key point sequence signal is input into the graph attention layer, the graph attention layer outputs the attention weights corresponding to two adjacent second human body key point sequence signals, and outputs the updated second human body key point sequence signal according to multiple attention weights; the updated second human body key point sequence signal is input into the spatiotemporal graph convolution layer, the spatiotemporal graph convolution layer performs graph convolution and time convolution on the second human body key point sequence signal, and obtains the behavior intention detection result corresponding to each of the human targets.

[0166] The first key component of the model is the Graph Attention Layer. Traditional graph convolutional neural networks (such as GCN) use a fixed normalized adjacency matrix when aggregating node neighbor information. However, in real-world scenarios, different neighbors may have different degrees of influence on the central node. The Graph Attention Layer introduces an attention mechanism that allows the model to adaptively assign different importance weights to different neighbors.

[0167] Specifically, for the center node i and one of its neighbor nodes j, the graph attention layer first calculates the attention correlation coefficient e of their feature vectors ij :

[0168] e ij =a(Wh i ,Wh j );

[0169] Among them, h i and h j are the feature vectors of nodes i and j respectively, W is a learnable weight matrix, and a is an attention mapping function (such as LeakyReLU with a single-layer feedforward neural network).

[0170] Then, this application is applied to all neighbors of node i Apply the softmax function to get the normalized attention weight αij:

[0171]

[0172] Finally, this application uses these attention weights to perform weighted aggregation on neighbor features to obtain the updated feature h′i of node i:

[0173]

[0174] Here, σ is a non-linear activation function (such as ReLU).

[0175] Through the graph attention layer, the model can adaptively focus on the importance of different neighbors and better integrate group structure information. This application can stack multiple graph attention layers to capture the influence of multi-hop neighbors.

[0176] The second key component of the model is the Spatial-Temporal Graph Convolutional Layer. Based on the aggregation of neighbor information in the graph attention layer, the spatial-temporal graph convolutional layer further considers the temporal evolution and spatial propagation of node features. Specifically, this application regards the output feature matrix H′ of the graph attention layer as a spatiotemporal signal and applies graph convolution and temporal convolution operations on it.

[0177] For graph convolution, this application uses the spectral convolution formula approximated by Chebyshev polynomials:

[0178]

[0179] in, is the normalized graph Laplacian matrix, L = ID -1 / 2 AD -1 / 2 is the Laplacian matrix of the graph, A is the adjacency matrix of the graph, D is the degree matrix, λ max is the largest eigenvalue of L, T k is a Chebyshev polynomial of order k, Θ k is the learnable weight matrix of the k-th order polynomial, K is the polynomial order.

[0180] For time convolution, this application adopts the form of causal convolution, which only considers the time steps before the current moment:

[0181]

[0182] Among them, H (t) is the output feature matrix at time step t, Z (t-τ) is the graph convolution output at time step t-τ, * denotes matrix multiplication, W τ is the convolution kernel weight matrix at time step τ, and T is the window size of the temporal convolution.

[0183] By combining graph convolution and temporal convolution, the spatiotemporal graph convolution layer can simultaneously model spatial and temporal dependencies and learn node representations under spatiotemporal evolution. This application can stack multiple spatiotemporal graph convolution layers to capture multi-scale spatiotemporal patterns. Correspondingly, the entire model can be trained end-to-end to minimize the cross entropy loss function:

[0184]

[0185] Where N is the number of nodes, C is the number of intent categories, and y ic is the true intent label of node i (represented by a one-hot vector), p ic is the probability predicted by the model that node i belongs to category c.

[0186] At the same time, the process of real-time behavioral intention recognition is as follows: First, the application needs to pass the second human key point sequence signal collected in real time in the above steps into the behavioral intention recognition model constructed in the above steps. The second human key point sequence signal here refers to the coordinate sequence of the body key points (such as head, shoulders, hands, etc.) of each human target detected at the current moment. The application can use a sliding time window to construct these sequences. For example, for each target, the application takes the key point coordinates of the most recent 5 seconds (assuming the frame rate is 25fps, it is 125 frames) as the input sequence.

[0187] Then, the behavior intention recognition model will perform forward propagation calculations on each input sequence to obtain the target's intention prediction result at the current moment. This prediction result is usually a probability distribution vector, indicating the possibility that the target belongs to different intent categories (such as "normal", "suspicious", "dangerous", etc.). This application can set a threshold (such as 0.5) and use the category with the highest probability that exceeds the threshold as the final intent label.

[0188] Exemplarily, obtaining the behavior intention detection result corresponding to each of the human targets includes: calculating the influence information corresponding to each of the human targets based on the behavior intention detection results corresponding to multiple human targets and the spatiotemporal correlation graph; and updating the behavior intention detection result based on the influence information.

[0189] This application needs to combine the results of individual intention prediction with the spatiotemporal association graph constructed in the above steps to dynamically update the recognition results of group behavior intention. Specifically, this application can regard the spatiotemporal association graph as a dynamically evolving graph structure, where each node represents a human target, the attributes of the node include the current intention label and historical intention label sequence of the target, and the edges represent the interactive relationship between different targets (such as simultaneous appearance, close contact, etc.).

[0190] When the intent label of a node changes (such as from "normal" to "suspicious"), the application not only updates the properties of the node itself, but also considers the impact of its neighboring nodes. A possible update strategy is: if there are multiple "suspicious" or "dangerous" nodes in the neighbors of a "suspicious" node, then the intent label of the node may be further upgraded to "dangerous"; conversely, if the neighbors of a "suspicious" node are mostly "normal" nodes, then the intent label of the node may return to "normal". This dynamic update mechanism based on graph structure can help the application to timely discover and warn of abnormal behavior patterns of groups.

[0191] In order to quantify this dynamic update mechanism, this application can define an influence propagation model. Specifically, for the intention label of node i at time t This application defines its impact for:

[0192]

[0193] in, is the set of neighbors of node i, wij is the edge weight between nodes i and j (which can be set according to factors such as interaction strength and duration), is an indicator function (1 if the condition is met, 0 otherwise).

[0194] Then, this application can update the intention label of node i at time t+1 according to the size of the influence:

[0195]

[0196] Among them, θ1 and θ2 are the preset influence thresholds.

[0197] Through this influence propagation model, the application can dynamically update the intention label of each node so that it not only reflects its own behavior pattern, but also takes into account the influence of surrounding nodes. The results of this group intention recognition are usually more accurate and timely than simple individual intention recognition, and can better cope with complex and changeable group behaviors.

[0198] In some embodiments, after outputting the behavioral intention detection result corresponding to each of the human targets, it also includes: obtaining the behavioral intentions of multiple human targets based on each of the behavioral intention detection results; generating early warning information when it is determined that the risk coefficient corresponding to the behavioral intention is greater than a preset coefficient threshold; determining a target human target affected by the behavioral intention among multiple human targets based on the spatiotemporal association diagram and the behavioral intention; and generating prompt information, wherein the prompt information is used to prevent the target human target from being affected by the behavioral intention.

[0199] First, let's determine whether individual behavior is suspicious or abnormal. The early warning and alarm module will receive the output results of the behavioral intention recognition model in the above steps in real time, that is, the behavioral intention label of each monitored target (such as "normal", "suspicious", "dangerous", etc.) and the corresponding confidence score. Then, the module will determine whether the behavioral intention of each target meets the early warning or alarm standards based on the preset threshold rules.

[0200] Specifically, the application can design a weighted cumulative anomaly score (WCAS) indicator to quantify the suspiciousness of individual behavior. Assume that the application has m behavior intention labels, each label corresponds to an anomaly weight w i (i=1,2,...,m), satisfying The larger the abnormal weight, the more abnormal the behavior corresponding to the intent label. For example, this application can set w ”normal” =0.,w ”suspicious” =0.6, w ”dangerous” =0.9.

[0201] For the jth target, the application can calculate its WCAS value in the past T time steps:

[0202]

[0203] Among them, p ijt Indicates the confidence that the behavior intention label of the j-th target at the t-th time step is the i-th label.

[0204] The present application can set two thresholds θ1 and θ2 (θ1<θ2), corresponding to the two levels of warnings "suspicious" and "dangerous". If the WCAS value of a target exceeds θ1 but is less than θ2, the present application determines that its behavior is suspicious; if the WCAS value exceeds θ2, the present application determines that its behavior is dangerous. The specific value of the threshold can be adjusted according to the actual application scenario and safety requirements.

[0205] Next, how to judge whether group behavior is suspicious or abnormal. Here, the application can use the graph clustering method to divide the nodes (i.e., individuals) in the spatiotemporal association graph into different subgroups according to their behavior patterns and interaction relationships. The idea of ​​clustering is to aggregate individuals with similar behavior patterns and frequent interactions into the same subgroup.

[0206] This application can use the Spectral Clustering algorithm to implement graph clustering. The basic steps of the algorithm are as follows:

[0207] 1. Construct the adjacency matrix A and degree matrix D of the graph. The element a of the adjacency matrix ijrepresents the similarity between nodes i and j, which can be calculated based on factors such as their behavior intention labels and interaction frequency. The degree matrix is ​​a diagonal matrix, where the i-th diagonal element d ii It is equal to the degree of node i, that is, the sum of the weights of the edges connected to node i.

[0208] 2. Compute the Laplacian matrix of the graph L = DA.

[0209] 3. Perform eigendecomposition on the Laplace matrix L to obtain its eigenvalues ​​and eigenvectors.

[0210] 4. Take the eigenvectors corresponding to the first k smallest non-zero eigenvalues ​​of the Laplacian matrix to form an n×k-dimensional feature matrix U, where n is the number of nodes and k is the number of clusters.

[0211] 5. Perform k-means clustering on each row of the feature matrix U to obtain k subgroups of the graph.

[0212] Through spectral clustering, the present application can discover the compact community structure in the spatiotemporal association graph, where each community represents a group with similar behavior patterns and frequent interactions.

[0213] In order to determine whether the behavior of a group is suspicious or abnormal, the present application can analyze the distribution of WCAS values ​​of members within the group. Specifically, the present application can calculate the mean and variance of WCAS of the group G_k:

[0214]

[0215]

[0216] Among them, |G k | represents the group G k The number of members.

[0217] If the mean WCAS of a group is μ k is significantly higher than the overall mean, and the variance If the WCAS mean and variance are smaller, it means that the behavior patterns of the members in the group are generally abnormal, and the degree of abnormality is similar. In this case, the application can determine that the behavior of the group is suspicious or abnormal. The application can set the threshold of the WCAS mean and variance to control the sensitivity of the judgment.

[0218] Finally, after identifying suspicious or abnormal behavior, this application needs to timely predict its propagation path and impact range in time and space so as to take countermeasures as soon as possible. This requires reasoning and prediction on the time-space correlation graph.

[0219] This application can use the Graph Neural Network (GNN) model to learn the law of individual behavior intention propagation on the graph. GNN is a type of deep learning model specifically used to process graph structure data. It can simultaneously consider the attribute information of nodes and the topological structure of the graph, and learn the interaction between nodes.

[0220] Specifically, the present application can use a gated graph neural network (GGNN) to implement propagation prediction. The core idea of ​​GGNN is to iteratively update the hidden state of each node through a series of message passing and aggregation operations until convergence.

[0221] First, this application sets the initial hidden state of each node j to Set to the combined feature vector of its WCAS value and behavior intention label. Then, in each iteration, node j receives messages from its neighbor node k and updates its hidden state. The message is calculated as:

[0222]

[0223] Where Wm is the weight matrix of the message function and ejk is the edge feature vector between nodes j and k.

[0224] After node j receives messages from all neighboring nodes, it uses a gating mechanism to aggregate these messages and update its own hidden state:

[0225]

[0226]

[0227] in, is the set of neighbor nodes of node j, Wr, Wz and Wh are the weight matrices of the gating unit, σ and tanh are the sigmoid and hyperbolic tangent activation functions respectively, and ⊙ represents element-by-element multiplication.

[0228] After multiple rounds of iterations, the hidden state of each node will converge to a stable value, encoding its position, attributes, and influence relationship in the graph. The present application can use nodes with higher WCAS values ​​(i.e., nodes where suspicious or abnormal behavior occurs) as the initial "source of infection" and simulate the propagation process of its influence on the graph through the GGNN model. Specifically, the present application can fix the hidden state of the "source of infection" node, and then continue to iteratively update the hidden states of other nodes until convergence. Ultimately, the hidden state value of each node reflects the extent to which it is affected by the "source of infection."

[0229] This application can set an influence threshold and mark nodes whose hidden state values ​​exceed the threshold as key influence targets, indicating that they are more likely to be "infected" by suspicious or abnormal behaviors. In addition, this application can also analyze the shortest path from the "infection source" node to the key influence target node to find the key path for the spread of suspicious behaviors on the graph. These key influence targets and propagation paths are the key monitoring objects for early warning and alarm, and need to attract the attention of security personnel.

[0230] Next, an example is used to illustrate the application of the solution provided in this application:

[0231] In the scenario of shopping mall security monitoring, computer equipment continuously captures the activities of customers through high-definition cameras, and obtains clear sequence data of key points of the human body through adaptive sampling and signal optimization. On a busy weekend afternoon, the flow of people in the mall surges, and computer equipment tracks and analyzes the behavior of each customer in real time.

[0232] Suddenly, the computer equipment discovered that the behavior patterns of three customers near counter A were abnormal. By dynamically adjusting the sampling frequency and optimizing the parameters, the computer equipment accurately captured the suspicious behaviors of the three people, such as repeated wandering, frequent whispering, and unusual interest in specific products. At the same time, the computer equipment also analyzed the interactions of the three people with other customers and found that they intentionally kept a distance from the people around them and were always alert to their surroundings.

[0233] The computer equipment comprehensively analyzed the spatiotemporal behavior characteristics and interpersonal interaction patterns of the three customers, and determined their behavioral intentions as "suspicious" through the pre-trained deep learning model. According to the preset rules, the situation of triggering "suspicious" intentions multiple times in a row is considered to be moderately abnormal and requires the generation of a second-level warning.

[0234] Computer equipment generates early warning information in real time, detailing key elements such as the warning level, time, and persons involved, and pushes it to the mall security center as soon as possible. The security personnel on duty respond quickly, retrieve relevant surveillance videos, and conduct remote observation and assessment of suspicious persons.

[0235] At the same time, the computer device also used the time-space correlation graph to deeply analyze the potential impact of the suspicious behavior. It found that two other seemingly "unrelated" customers had frequent time-space intersections and synchronized action patterns with the suspicious person. The computer device thus inferred that the two people were likely accomplices of the suspicious person, who might be "looking out" for them or preparing to help them escape.

[0236] The security center took prompt countermeasures based on the early warning and correlation analysis of computer equipment. On the one hand, they reminded jewelry counter staff to be vigilant and pay close attention to the actions of suspicious persons; on the other hand, they deployed security forces to "covertly" deploy in key areas, ready to control the situation at any time.

[0237] At this moment, one of the suspicious persons suddenly made a dangerous move, and the computer equipment immediately upgraded the warning to level one. The security personnel acted decisively and immediately controlled the suspicious person and successfully intercepted several other accomplices at the mall exit. Throughout the process, the real-time warning and correlation analysis of the computer equipment provided key support for security decision-making, and ultimately successfully avoided a potential illegal incident.

[0238] In order to implement the above method embodiment corresponding to the human behavior intention detection method based on human key point estimation, so as to achieve the corresponding functions and technical effects. Figure 2 , Figure 2 The structure block diagram of a device 200 for detecting the intention of a person's behavior provided by an embodiment of the present application is shown. For the sake of convenience, only the parts related to the present embodiment are shown. The device 200 for detecting the intention of a person's behavior provided by an embodiment of the present application includes:

[0239] The video acquisition module 201 is used to acquire original video data, adjust the sampling frequency of the original video data, and acquire a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data;

[0240] The frequency determination module 202 is used to obtain the time interval corresponding to the sampling frequency adjustment, adjust the sampling frequency within the time interval, complete the optimization of the first human body key point sequence signal, and determine the corresponding critical sampling frequency according to the optimized first human body key point sequence signal;

[0241] The frequency adjustment module 203 is used to adjust the sampling frequency of the original video data to the critical sampling frequency, and obtain the second human key point sequence signal, the second target unique identifier and the timestamp information corresponding to the human target in the original video data;

[0242] A feature acquisition module 204 is used to acquire multi-scale motion feature information according to the second human key point sequence signal, and to construct a spatiotemporal trajectory feature of each of the human targets according to each of the second target unique identifiers and timestamp information;

[0243] An information fusion module 205 is used to fuse the multi-scale motion feature information and the spatiotemporal trajectory feature to obtain a spatiotemporal feature representation, and construct a spatiotemporal association graph of a plurality of human targets according to the plurality of spatiotemporal feature representations;

[0244] The result output module 206 is used to construct a deep learning model based on the spatiotemporal feature representation and the spatiotemporal association graph, input the second human key point sequence signal into the deep learning model, and output the behavior intention detection result corresponding to each of the human targets.

[0245] The above-mentioned personnel behavior intention detection device 200 can implement the personnel behavior intention detection method based on human body key point estimation of the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiment of the present application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0246] Figure 3 This is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. Figure 3 As shown, the computer device 3 of this embodiment includes: at least one processor 30 ( Figure 3 Only one is shown in the figure), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 implements the steps of any of the above method embodiments when executing the computer program 32.

[0247] The computer device 3 may be a computing device such as a smart phone, a tablet computer, a desktop computer, a cloud server, etc. The computer device may include but is not limited to a processor 30 and a memory 31. Those skilled in the art will understand that Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0248] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0249] In some embodiments, the memory 31 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 31 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 31 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 31 may also be used to temporarily store data that has been output or is to be output.

[0250] In addition, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0251] An embodiment of the present application provides a computer program product. When the computer program product is run on a computer device, the computer device implements the steps in the above-mentioned method embodiments when executing the computer device.

[0252] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0253] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this 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 is stored in a storage medium and includes several instructions for a computer device to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0254] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for detecting human behavior intention based on human key point estimation, characterized in that: The method comprises: Acquire original video data, adjust the sampling frequency of the original video data, and acquire a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data; Acquire a time interval corresponding to the sampling frequency adjustment, adjust the sampling frequency within the time interval, complete the optimization of the first human body key point sequence signal, and determine the corresponding critical sampling frequency according to the optimized first human body key point sequence signal; The sampling frequency of the original video data is adjusted to the critical sampling frequency, and a second human key point sequence signal, a second target unique identifier and a timestamp information corresponding to the human target in the original video data are obtained; According to the second human key point sequence signal, multi-scale motion feature information is acquired, and according to each second target unique identifier and timestamp information, spatiotemporal trajectory features of each human target are constructed; The multi-scale motion feature information and the spatiotemporal trajectory feature are integrated to obtain a spatiotemporal feature representation, and a spatiotemporal association graph of a plurality of the human targets is constructed according to the plurality of spatiotemporal feature representations; A deep learning model is constructed based on the spatiotemporal feature representation and the spatiotemporal association graph, the second human key point sequence signal is input into the deep learning model, and the behavioral intention detection result corresponding to each of the human targets is output.

2. The method according to claim 1, characterized in that The step of obtaining a first human key point sequence signal and a corresponding first target unique identifier corresponding to a human target in the original video data includes: Performing target detection on the original video data to obtain positioning information corresponding to a human target in the original video data; Based on a preset target tracking algorithm, the human target is tracked in the original video data according to the positioning information to obtain a motion trajectory corresponding to the human target; Extracting the first human body key point sequence signal corresponding to the preset key part according to the motion trajectory; A corresponding first target unique identifier is added to the first human key point sequence signal corresponding to each of the human targets, where the first target unique identifier is used to confirm the human target corresponding to each of the first human key point sequence signals.

3. The method according to claim 1, characterized in that The obtaining of the time interval corresponding to the sampling frequency adjustment includes: Obtaining a historical unique identifier corresponding to the first target unique identifier; Acquire historical human target change information and historical time intervals corresponding to the first target unique identifier and the historical unique identifier; Inputting the historical human target change information and the historical time interval into a preset prediction model to obtain predicted human target change information and a reference time interval; According to the predicted human target change information, the reference time interval is updated to obtain the time interval corresponding to the sampling frequency adjustment.

4. The method according to claim 1, characterized in that: The step of adjusting the sampling frequency to optimize the first human key point sequence signal and determining a corresponding critical sampling frequency according to the optimized first human key point sequence signal comprises: Obtaining a frequency search range corresponding to the sampling frequency; The sampling frequency is gradually adjusted according to a preset step length within the frequency search range to obtain a plurality of first human key point sequence signals corresponding to the sampling frequencies and the first target unique identifier corresponding to each of the human targets; Performing multi-scale decomposition on each of the first human body key point sequence signals to obtain motion patterns and behavior characteristics; Optimizing the first human body key point sequence signal according to the plurality of motion patterns and behavior characteristics, and obtaining the optimized first human body key point sequence signal; Acquire signal-to-noise ratio information corresponding to the first human body key point sequence signal, and determine the critical sampling frequency according to the signal-to-noise ratio information.

5. The method according to claim 1, characterized in that Before acquiring the multi-scale motion feature information according to the second human body key point sequence signal, the method further includes: Acquire signal reconstruction quality and behavior recognition accuracy according to the second human key point sequence signal and the second target unique identifier; If the signal reconstruction quality and behavior recognition accuracy do not meet the preset conditions, the critical sampling frequency is updated to reacquire the second human key point sequence signal, the second target unique identifier and the timestamp information.

6. The method according to claim 1, characterized in that The step of constructing a plurality of spatiotemporal association graphs of the human targets according to the plurality of spatiotemporal feature representations comprises: Among the plurality of human targets, calculating the spatiotemporal proximity corresponding to every two human targets; According to the spatiotemporal feature vector corresponding to the spatiotemporal feature representation, obtaining the cosine similarity corresponding to the two human targets; Acquire a correlation matrix corresponding to the two human targets according to the spatiotemporal proximity and the cosine similarity; The spatiotemporal association graph is constructed according to the plurality of association matrices.

7. The method according to claim 1, characterized in that The deep learning model at least includes a graph attention layer and a spatiotemporal graph convolution layer; the second human key point sequence signal is input into the deep learning model, and the behavior intention detection result corresponding to each human target is output, including: Inputting the second human key point sequence signal into the graph attention layer, the graph attention layer outputs the attention weights corresponding to two adjacent second human key point sequence signals, and outputs the updated second human key point sequence signal according to the multiple attention weights; The updated second human key point sequence signal is input into the spatiotemporal graph convolution layer, and the spatiotemporal graph convolution layer performs graph convolution and time convolution on the second human key point sequence signal to obtain the behavioral intention detection result corresponding to each of the human targets.

8. The method according to claim 7, characterized in that The obtaining of the behavior intention detection result corresponding to each human target includes: Calculate the influence information corresponding to each of the human targets according to the behavioral intention detection results corresponding to the multiple human targets and the spatiotemporal association graph; The behavior intention detection result is updated according to the influence information.

9. The method according to claim 1, characterized in that: After outputting the behavior intention detection result corresponding to each of the human targets, the method further includes: Acquire the behavioral intentions of the plurality of human targets according to each of the behavioral intention detection results; When it is determined that the risk coefficient corresponding to the behavioral intention is greater than a preset coefficient threshold, generating a warning message; Determining a target human target affected by the behavioral intention from among the plurality of human targets according to the spatiotemporal association graph and the behavioral intention; Prompt information is generated, where the prompt information is used to prevent the target human body from being affected by the behavioral intention.

10. A computer device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the steps of the method for detecting human behavior intention based on human key point estimation as described in any one of claims 1 to 9 are implemented.