Behavior state determination method and device, equipment, medium and program product

Through video data processing, static and dynamic parameters are extracted, and combined with feature maps to fuse information, it solves the problem of high cost and difficulty in determining behavioral status in the existing technology, and achieves accurate identification of behavioral status in static scenes and efficient medical monitoring. monitor.

CN118570719APending Publication Date: 2024-08-30CHINA MOBILE CHENGDU INFORMATION & TELECOMM TECH CO LTD +1

Patent Information

Application Number
CN202410600487.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing behavioral state determination methods rely on complex sensor systems and multi-camera networks, resulting in high costs and difficulty in implementation. They are also unable to accurately identify the behavioral state of target objects in static scenes, especially in medical monitoring scenarios where it is difficult to monitor patient behavior.

Method used

By acquiring video data, extracting static and dynamic parameters in the video frame sequence, combining static feature maps and dynamic feature maps, and fusing feature information to determine the behavioral state of the target object, reduce dependence on complex hardware devices and simplify the data processing process.

Benefits of technology

It can accurately determine the behavioral state of the target object without the need for complex sensor systems, reduce costs and difficulties, and improve the accuracy and efficiency of medical monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention discloses a behavior state determination method and device, equipment, a medium and a program product. The method comprises the following steps: acquiring video data; processing the video data to obtain a video frame sequence; identifying a kth video frame in the video frame sequence, and determining static parameters of at least a part of a target object; k is an integer greater than or equal to 1; performing feature extraction on the mth video frame to the nth video frame in the video frame sequence, and determining dynamic parameters of the at least partial part; m is an integer greater than or equal to k and less than n; n is an integer greater than 1; and determining the behavior state of the target object based on the static parameters and the dynamic parameters. Through the method, dependence on complex hardware equipment such as a sensor system and a multi-camera network can be reduced, a data processing flow associated with the sensor system and the multi-camera network is simplified, and the cost and difficulty of behavior state determination can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of behavior recognition technology, and in particular to a behavior state determination method, device, equipment, medium and program product. Background Art

[0002] With the development of video surveillance and intelligent analysis technology, behavior state determination technology is increasingly being used in security monitoring, human-computer interaction and other fields. At present, common behavior state determination methods mainly rely on complex sensor systems or multi-camera networks. Therefore, the above solutions are costly and difficult to implement. Summary of the invention

[0003] Based on the above technical problems, the embodiments of the present application provide a behavior state determination method, apparatus, device, medium and program product.

[0004] The present application embodiment first provides a behavior state determination method, the method comprising:

[0005] Get video data;

[0006] Processing the video data to obtain a video frame sequence;

[0007] Identify the kth video frame in the video frame sequence to determine static parameters of at least a portion of the target object; wherein k is an integer greater than or equal to 1;

[0008] Performing feature extraction on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part; wherein m is an integer greater than or equal to k and less than n; and n is an integer greater than 1;

[0009] Based on the static parameters and the dynamic parameters, a behavior state of the target object is determined.

[0010] In some embodiments, the dynamic parameter includes a displacement parameter of the at least part of the part; and determining the behavior state of the target object based on the static parameter and the dynamic parameter includes:

[0011] Based on the displacement parameter, determining the displacement state of the at least part of the part;

[0012] Determining association information between the displacement parameter and the static parameter;

[0013] The behavior state is determined based on the association information and the displacement state.

[0014] In some embodiments, determining the behavior state based on the association information and the displacement state includes:

[0015] Get weight parameters;

[0016] Based on the displacement state, determining a first classification result of the at least part of the part;

[0017] Based on the association information, determining a second classification result of the at least part of the part;

[0018] Based on the weight value in the weight parameter, the first classification result and the second classification result are integrated and counted to obtain the behavior state.

[0019] In some embodiments, the static parameter includes a static feature map of at least part of the part at the kth moment; the kth moment corresponds to the kth video frame; the displacement parameter includes a set of dynamic feature maps of at least part of the part within a first time period; the first time period includes a period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame; the depth of the dynamic feature map set is greater than the depth of the static feature map; the determination of the association information between the displacement parameter and the static parameter includes:

[0020] Determining a first feature map based on the dynamic feature map in the dynamic feature map set; wherein the depth of the first feature map matches the depth of the static feature map;

[0021] Fusing the first feature map and the static feature map to obtain a second feature map;

[0022] Based on the second feature map, the association information is determined.

[0023] In some embodiments, determining the first feature map based on the dynamic feature maps in the dynamic feature map set includes:

[0024] If the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set is less than a first threshold, any dynamic feature graph in the dynamic feature graph set is determined to be the first feature graph.

[0025] In some embodiments, the fusing the first feature map and the static feature map to obtain the second feature map includes:

[0026] Determining a first channel parameter of the first feature map;

[0027] Determining a second channel parameter of the static feature map;

[0028] Based on the first channel parameter and the second channel parameter, feature data in the first feature map and the static feature map are superimposed and fused to obtain the second feature map.

[0029] In some embodiments, the determining the association information based on the second feature map includes:

[0030] Performing dimension conversion on the second feature map to obtain a third feature map; wherein the dimension of the third feature map is smaller than the dimension of the second feature map;

[0031] Based on the third feature map, determining a dependency state between feature data of different channels in the second feature map;

[0032] The feature data of different channels in the second feature map are processed based on the dependency state to obtain the association information.

[0033] In some embodiments, before identifying the kth video frame in the video frame sequence and determining the static parameters of at least a portion of the target object, the method further includes:

[0034] Acquire a candidate image region; wherein the candidate image region includes an image region containing a detection object; the detection object includes the target object;

[0035] Determine an object-associated region in the kth video frame; wherein the object-associated region is at least associated with the detected object;

[0036] Based on the candidate image area and the object associated area, it is determined whether the kth video frame contains the target object.

[0037] In some embodiments, determining whether the kth video frame contains the target object based on the candidate image area and the object associated area includes:

[0038] Determining a region intersection between the candidate image region and the object associated region;

[0039] Determining a region union between the candidate image region and the object associated region;

[0040] Based on the region intersection and the region union, it is determined whether the kth video frame contains the target object.

[0041] In some embodiments, determining whether the kth video frame contains the target object based on the region intersection and the region union includes:

[0042] If the ratio of the region intersection to the region union is greater than or equal to a second threshold, it is determined that the kth video frame contains the target object.

[0043] In some embodiments, the static parameters include structural parameters and posture parameters of at least part of the part; and identifying the kth video frame in the video frame sequence to determine the static parameters of at least part of the part of the target object includes:

[0044] Extracting features from the kth video frame using a depth recognition module to determine key point parameters of at least part of the target object;

[0045] Determining the structural parameters based on distance information between key points represented by the key point parameters;

[0046] The posture parameters are determined based on relative position information between key points represented by the key point parameters.

[0047] In some embodiments, extracting features from the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part includes:

[0048] If the mth video frame to the nth video frame contain the target object, feature extraction is performed on the mth video frame to the nth video frame to determine the dynamic parameter.

[0049] In some embodiments, extracting features from the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part includes:

[0050] Convert the mth video frame to the nth video frame into an mth three-dimensional point cloud to an nth three-dimensional point cloud respectively;

[0051] Performing feature extraction on the mth three-dimensional point cloud to the nth three-dimensional point cloud to obtain a three-dimensional extraction result;

[0052] Based on the three-dimensional extraction result, the dynamic parameter is determined.

[0053] In some embodiments, the method further comprises:

[0054] If the matching degree between the behavior state and the target state is less than or equal to a third threshold, first information is output; wherein the first information at least includes information that the matching degree is less than or equal to the third threshold.

[0055] In some embodiments, the method further comprises:

[0056] Determining scene parameters of the scene where the target object is located;

[0057] The target state corresponding to the scene parameter is determined.

[0058] In some embodiments, the method further comprises:

[0059] If the scene where the target object is located is a medical monitoring scene, the behavior state of at least part of the part in the second time period is counted to obtain a statistical result; wherein the second time period includes multiple first time periods; the first time period includes the time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame;

[0060] If the statistical result indicates that the displacement degree of at least part of the part in the second time period is less than or equal to a third threshold, second information is output; wherein the second information at least includes information that the displacement degree is less than or equal to the third threshold.

[0061] In some embodiments, the method further comprises:

[0062] If the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to a fourth threshold, third information is output; wherein the third information at least includes information that the displacement degree is greater than or equal to the fourth threshold.

[0063] The embodiment of the present application further provides a behavior state determination device, the behavior state determination device comprising:

[0064] An acquisition module, used for acquiring video data;

[0065] A processing module is used to process the video data to obtain a video frame sequence; identify the kth video frame in the video frame sequence to determine the static parameters of at least part of the target object; extract features from the mth to nth video frames in the video frame sequence to determine the dynamic parameters of at least part of the target object; wherein k is an integer greater than or equal to 1; m is an integer greater than or equal to k and less than n; and n is an integer greater than 1;

[0066] A determination module is used to determine the behavior state of the target object based on the static parameters and the dynamic parameters.

[0067] An embodiment of the present application also provides an electronic device, which includes a processor and a memory; a first computer program is stored in the memory; when the first computer program is executed by the processor, it can implement any of the above-mentioned methods for determining a behavior state.

[0068] An embodiment of the present application further provides a computer-readable storage medium, in which a second computer program is stored; when the second computer program is executed by a processor of an electronic device, it can implement any of the above-described methods for determining a behavior state.

[0069] An embodiment of the present application also provides a computer program product, which includes a computer program; when the computer program is executed by a processor, it can implement any of the above-mentioned methods for determining a behavior state.

[0070] The behavior state determination method provided in the embodiment of the present application, after acquiring and processing video data to obtain a video frame sequence, identifies the kth video frame in the video frame sequence, determines the static parameters of at least part of the target object, and k is an integer greater than or equal to 1. In this way, by determining the static parameters of at least part of the target object, it is possible to accurately reflect the static characteristics of at least part of the target object represented by the video data at the moment corresponding to the kth video frame; and, feature extraction is performed on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the target object. In this way, through the dynamic parameters of at least part of the target object, it is possible to reflect the dynamic characteristics of at least part of the target object in the time period between the mth video frame and the nth video frame; at the same time, since m is an integer greater than or equal to k and less than n, and n is an integer greater than 1, the correlation between the kth video frame and the mth video frame and the nth video frame is improved, thereby improving the correlation between the static parameters and the dynamic parameters. on this basis, by determining the behavior state of the target object based on static parameters and dynamic parameters, the behavior state of the target object can not only reflect the static characteristics and dynamic characteristics of at least part of the target object, but also reflect the static characteristics and dynamic characteristics of the target object itself in the time period between the mth video frame and the nth video frame, so that the behavior state of the target object can be comprehensively, completely and richly reflected from the two dimensions of static and dynamic, and from the two levels of time and space, thereby improving the accuracy of the behavior state of the target object; in this way, through the above method provided by the embodiment of the present application, the behavior state of the target object can be determined by performing the above processing on the video data without relying on a complex sensor system and a multi-camera network, thereby reducing the dependence on complex hardware equipment such as the sensor system and the multi-camera network, and simplifying the data processing flow generated by processing the collected data associated with the multi-sensor system and the multi-camera network, thereby reducing the cost and difficulty of determining the behavior state.

[0071] When the behavior state determination method provided in the embodiment of the present application is applied to a medical monitoring scenario, if the target object is a patient under monitoring, the technical solution provided in the embodiment of the present application can not only achieve comprehensive, continuous and complete monitoring of the behavior state of the patient under monitoring, thereby improving the accuracy of the medical monitoring state and meeting actual medical monitoring needs, but also reduce the cost and complexity of medical monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A flow chart of a method for determining a behavior state provided in an embodiment of the present application;

[0073] Figure 2 A schematic diagram of a process for obtaining a second characteristic graph provided in an embodiment of the present application;

[0074] Figure 3 A schematic diagram of a process for determining context features provided in an embodiment of the present application;

[0075] Figure 4 A schematic diagram of a process for determining a behavior state provided in an embodiment of the present application;

[0076] Figure 5 A schematic diagram of the structure of a behavior state determination device provided in an embodiment of the present application;

[0077] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0079] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0080] Accurately identifying the behavior status of target objects, including humans, is of great significance in a variety of scenarios, including security monitoring. In order to achieve accurate identification of the behavior status of target objects, related technologies provide solutions for identifying and judging the behavior of target objects through spatiotemporal behavior recognition technology. Among them, spatiotemporal behavior recognition technology is a complex classification task that integrates spatial position positioning, temporal position positioning, and action discrimination, and has important application value in security, intelligent monitoring, and medical treatment scenarios.

[0081] In practical applications, most behavior status determination schemes that use spatiotemporal behavior recognition technology usually use technologies such as real-time monitoring, intercom calls, remote video inspection, and wireless alarms to collect multi-dimensional activity data and surrounding environment data of the target object, and determine the behavior status of the target object by analyzing the above activity data and surrounding environment data.

[0082] However, the above scheme has high requirements for data acquisition equipment, and after the data acquisition equipment is installed and set up, it needs to invest a lot of manpower and material resources to maintain it during its use. In addition, the deep learning model based on which the above scheme is implemented can only detect abnormal behaviors, but cannot distinguish between behavioral states with high similarity in various scenarios. Therefore, the cost and complexity of the above method are high, and it cannot accurately reflect the real behavioral state of the target object in various situations.

[0083] At the same time, the behavior state determination methods provided in the relevant technologies usually focus on the extraction of spatiotemporal features. Therefore, during the execution of these solutions, they all focus on the action information of the time dimension carried in the video data, while ignoring the characteristics of the target object in the static scene. For example, for patients lying on the bed with small differences in abnormal behaviors in the medical monitoring scene, the above methods cannot accurately identify the patient's behavior state; and in medical scenes such as monitoring ward scenes, it is particularly important to determine the abnormal behavior state of the patient. However, with the repeated appearance of doctors, nurses and other personnel in the monitoring ward, some parts of the patient may be frequently blocked, and the above occlusion state also poses a challenge to the determination process of the patient's behavior state; for example, in medical scenes, for the recognition of relatively special actions such as extubation, it is necessary not only to detect the state of the action currently performed by the actor in real time, but also to be able to continuously judge the state of the above-mentioned action.

[0084] In order to solve the above technical problems, the related art provides a method of using the monitored images to train the optical flow algorithm to obtain optical flow information, and then using the feature fusion method to fuse the feature vectors, and then inputting the result of the feature vector fusion into the classifier to obtain the prediction result of the behavior represented by the image. The above scheme can better extract the actions contained in the image in space and time. However, the time cost of extracting optical flow information and training the optical flow algorithm in the above scheme, and the above process also puts higher requirements on the memory space of electronic devices, which poses a challenge to the actual data processing.

[0085] Based on the above technical problems, the embodiments of the present application provide a behavior state determination method, apparatus, device, medium and program product.

[0086] Figure 1 A flow chart of a method for determining a behavior state provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the process may include the following steps:

[0087] Step 101: Obtain video data.

[0088] In one implementation, the video data may be acquired in real time, or may be acquired from a network or a storage space of an electronic device.

[0089] In one embodiment, video data can be obtained by performing continuous data collection on designated occasions; illustratively, the designated occasions may include public transportation occasions, medical monitoring occasions, etc.; illustratively, video data can be obtained through the continuous collection operation of an image acquisition device, and multiple image acquisition devices can be set in the designated occasions, and different image acquisition devices can be set at different spatial positions in the designated occasions to collect video data in different directions; illustratively, the posture, setting position, operating status and operating mode of multiple image acquisition devices can be remotely controlled; wherein the operating mode may include the resolution of the image acquisition device, and whether to operate in low power consumption mode, etc.

[0090] In one implementation, the duration of the video data may be greater than a time threshold.

[0091] Step 102: Process the video data to obtain a video frame sequence.

[0092] In one implementation, the number of video frames in the video frame sequence may be greater than or equal to a number threshold.

[0093] In one implementation, the video frame sequence may be obtained by any of the following methods:

[0094] A sampling operation is performed on the video data, and a frame sequence obtained by the sampling is determined as a video frame sequence.

[0095] A set of all frame data within a specified time period in the video data is determined as a video frame; illustratively, the length of the specified time period may be less than or equal to the length of the duration period of the video data.

[0096] Step 103: Identify the kth video frame in the video frame sequence to determine static parameters of at least a portion of the target object.

[0097] Here, k is an integer greater than or equal to 1.

[0098] In one embodiment, the target object may include an object with vital signs; illustratively, the vital signs may include heartbeat, breathing, pulse, blood pressure, etc. Correspondingly, the target object may include a human or an animal, etc.

[0099] In one embodiment, the target object may include an object without vital signs; illustratively, the target object may include electronic equipment, office desks and chairs, and instruments and equipment.

[0100] In one embodiment, the target object may include an object with displacement capability; illustratively, the target object may include a person or an animal, and may also include a movable electronic device; illustratively, the movable electronic device may include a robotic device, etc.

[0101] In one embodiment, the target object may include at least one object in a specified scene; illustratively, when the specified scene is a medical scene, the target object may include a patient under medical monitoring.

[0102] In one embodiment, at least some of the locations may be pre-set.

[0103] In one embodiment, when the target object has vital signs, at least part of the parts may include the head, hands, arms, torso, feet, etc. of the target object.

[0104] In one implementation, the static parameter may include an initial spatial position of at least a portion of the target object.

[0105] In one implementation, the static parameter may include the shape of the target object at the kth moment corresponding to the kth frame of video.

[0106] In one embodiment, the static parameters of at least some parts can be determined by:

[0107] The kth video frame is recognized by a neural network model with feature recognition function to obtain a recognition result, and then the static parameters corresponding to the kth video frame are determined from the static parameter set according to the matching degree between the recognition result and the parameters in the preset static parameter set.

[0108] Step 104: extract features from the mth video frame sequence to the nth video frame sequence in the video frame sequence to determine dynamic parameters of at least part of the parts.

[0109] Wherein, m is an integer greater than or equal to k and less than n; and n is an integer greater than 1.

[0110] In one embodiment, the dynamic parameters may characterize the position change, movement trend, and morphological change process of at least part of the part; exemplarily, the movement trend may include movement direction and / or movement speed; exemplarily, the morphological change may characterize the change process of the shape and / or posture of at least part of the part.

[0111] In one embodiment, the dynamic parameters may include the actual dynamic change process of at least part of the part represented by the mth video frame to the nth video frame, and may also include the predicted results of the dynamic change of at least part of the part contained in the mth video frame to the nth video frame.

[0112] In one embodiment, the dynamic parameters may be determined by:

[0113] Through a neural network model with feature recognition function, feature extraction is performed on the mth video frame to the nth video frame in sequence to obtain the mth extraction result to the nth extraction result respectively, and then the mth extraction result to the nth extraction result are compared to obtain a comparison result, and the comparison result is determined as a dynamic parameter of at least a part of the part; wherein the comparison result may include the process and / or trend of dynamic changes of at least a part of the part represented by the mth video frame to the nth video frame.

[0114] Step 105: Determine the behavior state of the target object based on the static parameters and the dynamic parameters.

[0115] Wherein, m is an integer greater than or equal to k and less than n; and n is an integer greater than 1.

[0116] In one embodiment, the behavior state may include a change process of a displacement state of at least a portion of a target object within a first time period, and may also characterize a behavior category represented by the change process of a displacement state of at least a portion of a target object within the first time period; exemplarily, the behavior category may include normal behavior or abnormal behavior; wherein the first time period may include a time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame.

[0117] In one implementation, the behavior state of the target object may be determined by any of the following methods:

[0118] The initial state of the target object at the kth moment is determined based on the static parameters, and the change process of the position, speed, direction and posture of at least part of the target object in the first time period is determined based on the dynamic parameters. Then, based on the above initial state and change process, the state or category of the action performed by at least part of the target object in the first time period is determined.

[0119] The initial state of the target object at the kth moment is determined based on the static parameters, and the change process of the position, speed, direction and posture of at least part of the part within the first time period is determined based on the dynamic parameters. Then, based on the above change process, the state of the initial state after the first time period is predicted to obtain a prediction result, and the prediction result is determined as the behavioral state of the target object.

[0120] From the above, it can be seen that the behavior state determination method provided in the embodiment of the present application, after acquiring and processing the video data to obtain a video frame sequence, identifies the kth video frame in the video frame sequence, determines the static parameters of at least a part of the target object, and k is an integer greater than or equal to 1. In this way, by determining the static parameters of at least a part of the target object, it is possible to accurately reflect the static characteristics of at least a part of the target object represented by the video data at the moment corresponding to the kth video frame; and, feature extraction is performed on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least a part of the target object. In this way, through the dynamic parameters of at least a part of the target object, the dynamic characteristics of at least a part of the target object in the time period between the mth video frame and the nth video frame can be reflected; at the same time, since m is an integer greater than or equal to k and less than n, and n is an integer greater than 1, the correlation between the kth video frame and the mth video frame and the nth video frame is improved, thereby improving the correlation between the static parameters and the dynamic parameters. The correlation between parameters in the time dimension; on this basis, the behavior state of the target object is determined based on static parameters and dynamic parameters, so that the behavior state of the target object can not only reflect the static characteristics and dynamic characteristics of at least part of the target object, but also reflect the static characteristics and dynamic characteristics of the target object itself in the time period between the mth video frame and the nth video frame, so that the behavior state of the target object can be comprehensively, completely and richly reflected from the two dimensions of static and dynamic, and from the two levels of time and space, thereby improving the accuracy of the behavior state of the target object; in this way, through the above method provided by the embodiment of the present application, the behavior state of the target object can be determined by performing the above processing on the video data without relying on complex sensor systems and multi-camera networks, thereby reducing the dependence on complex hardware equipment such as sensor systems and multi-camera networks, and can also simplify the data processing process generated by processing the collected data associated with multi-sensor systems and multi-camera networks, thereby reducing the cost and difficulty of determining the behavior state.

[0121] When the behavior state determination method provided in the embodiment of the present application is applied to a medical monitoring scenario, if the target object is a patient under monitoring, the technical solution provided in the embodiment of the present application can not only achieve comprehensive, continuous and complete monitoring of the behavior state of the patient under monitoring, thereby improving the accuracy of the medical monitoring state and meeting actual medical monitoring needs, but also reduce the cost and complexity of medical monitoring.

[0122] Based on the foregoing embodiments, in the behavior state determination method provided in the embodiments of the present application, the dynamic parameters include displacement parameters of at least some parts.

[0123] In one embodiment, the displacement parameter may include a displacement amplitude and / or a displacement direction of at least a portion of the part in the first time period.

[0124] Accordingly, based on the static parameters and the dynamic parameters, determining the behavior state of the target object can be achieved by the following steps:

[0125] Step A1: Determine the displacement state of at least part of the part based on the displacement parameter.

[0126] In one embodiment, the displacement state may include at least one of whether at least part of the part is displaced, the displacement amplitude, and the displacement direction.

[0127] In one embodiment, the displacement state of at least some parts can be determined by:

[0128] Based on the displacement amplitude represented by the displacement parameter, it is determined whether at least part of the part is displaced.

[0129] Step A2: Determine the correlation information between the displacement parameters and the static parameters.

[0130] In one implementation, the correlation information may represent the degree of correlation between the displacement characteristic represented by the displacement parameter and the static characteristic at the kth moment represented by the static parameter in the time and space dimensions.

[0131] In one implementation, the association information may be determined in any of the following ways:

[0132] Based on the kth position of at least part of the target object at the kth moment represented by the static parameters, and the displacement state of at least part of the target object within the first time period represented by the displacement parameters, the associated information is determined in combination with whether the kth position and the displacement state in the scene where the target object is located conform to the kinematic laws; illustratively, if the kth position and the displacement state conform to the kinematic laws of the scene where the target object is located, the associated information can be determined to be the first information, and if the kth position and the displacement state do not conform to the above-mentioned kinematic laws, the associated information can be determined to be the second information, wherein the first information can be stronger than the second information.

[0133] The displacement parameters and the static parameters are fused to obtain a fusion result, and the fusion result is determined as the correlation information.

[0134] Step A3: Determine the behavior state based on the association information and the displacement state.

[0135] In one embodiment, the behavior state can be implemented in the following way:

[0136] If the associated information is information associated with kinematic laws, the behavior state can be determined based on the movement state of at least part of the part represented by the displacement state; if the associated information is category-associated or unassociated information, the behavior state of at least part of the part can be determined to be an abnormal state or a warning state.

[0137] From the above, it can be seen that in the behavior state determination method provided in the embodiment of the present application, the dynamic parameters include the displacement parameters of at least part of the parts, and the displacement state of at least part of the parts is determined based on the displacement parameters. In this way, through the displacement state, the displacement characteristics of at least part of the parts in the time period between the mth video frame and the nth video frame can be accurately and comprehensively characterized; and, by determining the correlation information between the displacement parameters and the static parameters, the correlation information can reflect the degree of correlation between the static characteristics and the dynamic characteristics of at least part of the parts with a smaller granularity; on this basis, by determining the behavior state based on the correlation information and the displacement state, the behavior state can accurately reflect the change process of at least part of the parts in the static and dynamic dimensions, time and space dimensions.

[0138] Based on the above embodiments, in the behavior state determination method provided in the embodiments of the present application, the behavior state is determined based on the association information and the displacement state, which can be achieved by the following steps:

[0139] Step B1: Obtain weight parameters.

[0140] In one implementation, the weight parameter may include multiple weight values, and each of the weight values ​​may be predetermined or determined through training based on sample data.

[0141] Step B2: Determine a first classification result of at least part of the part based on the displacement state.

[0142] In one implementation, when the target object is a person, the first classification result may include a classification result of an action of at least a part of the person within the first time period.

[0143] In one implementation, the displacement direction and / or displacement amplitude represented by the displacement state may be analyzed to determine the first classification result.

[0144] Step B3: Determine a second classification result of at least part of the part based on the association information.

[0145] In one embodiment, when the target object is a person, the second classification result may include a result of classifying the motion state of at least part of the person when the motion state of at least part of the person at the kth moment and in the first time period conforms to the kinematic law.

[0146] In one embodiment, the static and dynamic characteristics contained in the associated information can be analyzed based on kinematic laws, and the motion state obtained by the analysis can be determined as the second classification result; exemplarily, the above-mentioned motion state can include at least one of the posture, speed and motion trajectory of at least part of the part.

[0147] Step B4: Based on the weight value in the weight parameter, the first classification result and the second classification result are integrated and counted to obtain the behavior state.

[0148] In one implementation, based on the weight value in the weight parameter, weighted integrated statistics may be performed on the first classification result and the second classification result, and the statistical result may be determined as the behavior state.

[0149] In one embodiment, if the weight value associated with the first classification result in the weight parameter is greater than the weight value associated with the second classification result, it can be characterized that the integrated statistical process pays more attention to the first classification result; if the weight value associated with the first classification result in the weight parameter is less than the weight value associated with the second classification result, it can be characterized that the above-mentioned integrated statistical process pays more attention to the second classification result.

[0150] For example, when the weight values ​​in the weight parameters include α and 1, the first classification result class1 and the second classification result class2 can be calculated by formula (1) to obtain the statistical integration result class.

[0151] class=α*class1+class2(1)

[0152] It should be noted that before performing the above-mentioned integrated statistical operation, sample data can be obtained in advance, and the value of the initial weight parameter α can be adjusted based on the sample data, and the value of the adjusted initial weight parameter is determined as the weight parameter; exemplarily, α is a learnable hyperparameter, and if α is less than 0.5, it means that the correlation between the statistical integration result and the contextual features represented by the first classification result is small.

[0153] As can be seen from the above, in the behavior state determination method provided by the embodiment of the present application, after obtaining the weight parameter, determining the first classification result of at least part of the body based on the displacement state, and determining the second classification result of at least part of the body based on the associated information, the first classification result and the second classification result are integrated and counted based on the weight value in the weight parameter to obtain the behavior state. In this way, by determining the first classification result and the second classification result, the expression of the dynamic characteristics and static characteristics of at least part of the body can be simplified; and through the above-mentioned integrated statistics, the behavior state can include the dynamic characteristics and static characteristics of at least part of the body, and the expression of the dynamic characteristics and static characteristics of at least part of the body can be simplified.

[0154] Based on the foregoing embodiments, in the behavioral state determination method provided in the embodiments of the present application, the static parameters include a static feature map of at least part of the part at the kth moment; the kth moment corresponds to the kth video frame; the displacement parameters include a set of dynamic feature maps of at least part of the part within a first time period; the first time period includes the time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame; the depth of the dynamic feature map set is greater than the depth of the static feature map.

[0155] In one embodiment, when the target object is a human or an animal, feature extraction can be performed on the kth video frame by a deep recognition module that is sensitive to biological features such as bones and muscles, thereby obtaining a static feature map; exemplarily, the above-mentioned deep recognition module can have a deep learning function; exemplarily, the deep recognition module can include OpenPose or PoseNet; exemplarily, the static feature map can include structural parameters and / or posture parameters of a human or animal.

[0156] In one embodiment, when the target object is a person or an animal, feature extraction can be performed on the mth video frame to the nth video frame through the ResNext model to obtain the mth dynamic feature map to the nth dynamic feature map respectively, and the set of the mth dynamic feature map to the nth dynamic feature map is determined as a dynamic feature map set.

[0157] In one implementation, the width of the static feature graph may be the same as the width of the dynamic feature graph, and the height of the static feature graph may be the same as the height of the dynamic feature graph.

[0158] Accordingly, determining the association information between the displacement parameters and the static parameters can be achieved by the following steps:

[0159] Step C1: Determine a first feature map based on the dynamic feature maps in the dynamic feature map set.

[0160] Among them, the depth of the first feature map matches the depth of the static feature map.

[0161] In one implementation, the dynamic characteristics included in the first feature map may be the same as the dynamic characteristics included in the dynamic feature map set.

[0162] In one implementation, the first feature map may be determined in the following manner:

[0163] The dynamic feature maps in the dynamic feature map set are statistically averaged to obtain a feature map statistical result, and then the feature map statistical result is determined as the first feature map.

[0164] Step C2: Fusing the first feature map and the static feature map to obtain a second feature map.

[0165] In one embodiment, the width and height of the first feature map may be respectively the same as the width and height of the static feature map; thus, the second feature map may be obtained by fusing and superimposing the corresponding data in the first feature map and the second feature map based on the above width and height.

[0166] Step C3: Determine the associated information based on the second feature map.

[0167] In one implementation, the association information may be determined in the following manner:

[0168] The correlation degree between the static features and the dynamic features included in the second feature map is analyzed, and the analysis result of the correlation degree is determined as the correlation information.

[0169] From the above, it can be seen that in the behavior state determination method provided by the embodiment of the present application, the static parameters include the static feature map of at least part of the part at the kth moment, and the kth moment corresponds to the kth video frame, and the displacement parameters include the dynamic feature map set of at least part of the part in the first time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame. In this way, through the above-mentioned static feature map and dynamic feature map set, it is possible to achieve accurate and comprehensive reflection of the static features and dynamic features of at least part of the part; and, since the depth of the dynamic feature map set is greater than the depth of the static feature map, the dynamic feature map set can carry more comprehensive and richer spatiotemporal dynamic characteristics; on this basis, after determining the first feature map that matches the depth of the static feature degree based on the dynamic feature map in the dynamic feature map set, the first feature map and the static feature map are fused to obtain a second feature map, so that the second feature map can carry the static features and dynamic features of at least part of the part; at the same time, determining the association information based on the second feature map can improve the accuracy of the degree of association between the static features and the dynamic features in the association information.

[0170] Based on the foregoing embodiment, in the behavior state determination method provided in the embodiment of the present application, determining the first feature graph based on the dynamic feature graph in the dynamic feature graph set can be implemented in the following manner:

[0171] If the fluctuation degree between the dynamic feature graphs in the dynamic feature graph set is less than the first threshold, any dynamic feature graph in the dynamic feature graph set is determined to be the first feature graph.

[0172] Exemplarily, if the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set is greater than or equal to the first threshold, the operation of determining any dynamic feature graph as the first feature graph may not be performed.

[0173] Exemplarily, if the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set is greater than or equal to a first threshold, the dynamic feature graphs in the dynamic feature graph set may be statistically averaged, and the result of the statistical average may be determined as the first feature graph.

[0174] In one implementation, feature data represented by feature graphs in the dynamic feature graph set may be compared to obtain a comparison result. If the comparison result is less than a first threshold, any dynamic feature graph in the dynamic feature graph set may be determined to be the first feature graph.

[0175] In one implementation, the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set may be proportional to the length of the first time period.

[0176] From the above, it can be seen that in the behavior state determination method provided in the embodiment of the present application, if the fluctuation degree between the dynamic feature graphs in the dynamic feature graph set is less than the first threshold value, then any dynamic feature graph in the dynamic feature graph set is determined to be the first feature graph. In this way, through the above operation, not only the accurate monitoring of the fluctuation degree between the dynamic feature graphs in the dynamic feature graph set is achieved, but also the control of the determination process of the first feature graph is achieved, thereby improving the accuracy of the first feature graph.

[0177] Based on the foregoing embodiment, in the behavior state determination method provided in the embodiment of the present application, the first feature map and the static feature map are fused to obtain the second feature map, which can be implemented in the following manner:

[0178] Determine a first channel parameter of the first feature map; determine a second channel parameter of the static feature map; based on the first channel parameter and the second channel parameter, superimpose and fuse the feature data in the first feature map and the static feature map to obtain a second feature map.

[0179] In one implementation, the number of channels represented by the first channel parameter and the second channel parameter may be the same; illustratively, the first channel parameter and the second channel parameter may both include three channels: R, G, and B.

[0180] In one implementation, the second feature map may be obtained in the following manner:

[0181] The i-th dynamic data corresponding to the i-th channel in the first channel parameter is selected from the first feature map, and the i-th static data corresponding to the i-th channel in the second channel parameter is selected from the static feature map, and then based on the first width and the first height of the first feature map, and the second width and the second height of the static feature map, the data of the corresponding coordinates in the i-th dynamic data and the i-th static data are superimposed to obtain the i-th superposition result, and then the first superposition result to the third superposition result are fused to obtain the second feature map; wherein i is an integer greater than or equal to 1 and less than or equal to 3.

[0182] Figure 2 A schematic diagram of a process for obtaining a second characteristic graph provided in an embodiment of the present application. Figure 2 As shown, the video frame sequence 201 can obtain a static feature map 203 after the feature extraction operation of the static feature extraction model 202; at the same time, the video frame sequence 201 can obtain a dynamic feature map set 205 after the feature extraction operation of the dynamic feature extraction model 204; exemplarily, the static feature extraction model 202 can be the deep recognition module in the aforementioned embodiment; exemplarily, the dynamic feature extraction model 204 can be the ResNext model in the aforementioned embodiment.

[0183] Exemplarily, by the method provided in the aforementioned embodiment, the dynamic feature graph in the dynamic feature graph set 205 is processed to obtain the first feature graph 206; and the first feature graph 206 and the static feature graph 203 are superimposed and fused to obtain the second feature graph 207.

[0184] Exemplarily, if the static feature map 203 is A and the dynamic feature map set 205 is Q, Q can be represented by Depth*C1*H*W, A can be represented by C2*H*W, then the first feature map B can be represented by C1*H*W, and thus, the second feature map 207 can be represented by (C1+C2)*H*W; wherein C1 and C2 represent the first channel parameters and the second channel parameters respectively, H and W represent the height and width of the above-mentioned feature maps respectively, and Depth is the depth of the dynamic feature map set.

[0185] From the above, it can be seen that the behavior state determination method provided in the embodiment of the present application, after determining the first channel parameter of the first feature map and the second channel parameter of the static feature map, performs superposition and fusion of the feature data of the first feature map and the static feature map based on the first channel parameter and the second channel parameter to obtain the second feature map. In this way, through the above operation, the targeted and accurate superposition and fusion of the first feature map and the static feature map is achieved, so that not only the corresponding correlation between the static features and the dynamic features in the second feature map can be improved, but also the integrity of various features in the second feature map can be improved.

[0186] Based on the foregoing embodiment, in the behavior state determination method provided in the embodiment of the present application, determining the associated information based on the second feature graph can be implemented by the following steps:

[0187] Step D1: perform dimension conversion on the second feature map to obtain a third feature map.

[0188] The dimension of the third feature map is smaller than the dimension of the second feature map.

[0189] In one implementation, the third feature map may be obtained in the following manner:

[0190] The second feature map is subjected to convolution processing, and the dimension of the convolution kernel is controlled to achieve dimensionality reduction processing of the second feature map, thereby obtaining the third feature map.

[0191] Exemplarily, the second feature map may be input into two convolutional layers, so that the feature data or feature vector of each channel in the second feature map is converted into one-dimensional data through convolution processing of the two convolutional layers.

[0192] Step D2: Based on the third feature map, determine the dependency state between feature data of different channels in the second feature map.

[0193] In one implementation, the above dependency status may be determined in the following manner:

[0194] A transposed convolution operation is performed on the third feature map, the third feature map is restored to the pixel space corresponding to the video frame sequence, and a transposed convolution result is obtained. Then, a matrix multiplication operation is performed on the transposed convolution result and the third feature map, and the result of the matrix multiplication operation is determined as the above-mentioned dependent state.

[0195] For example, the above dependency state can be obtained by the attention score M ij It is used to represent the value of the influence degree of the feature data of the j-th channel on the feature data of the i-th feature channel, which can characterize the interdependence of the feature data in the second feature map in the channel dimension; wherein i and j are respectively unequal integers greater than or equal to 1 and less than or equal to 3.

[0196] Step D3: Process the feature data of different channels in the second feature map based on the dependency state to obtain association information.

[0197] In one implementation, the association information may be obtained in the following manner:

[0198] Based on the dependency state, the degree of association of the feature data of different channels in the second feature map at the semantic level is determined, and then the feature data of different channels in the second feature map are weighted based on the above-mentioned degree of association, and the result of the weighted processing is determined as the association information; illustratively, the weight corresponding to the feature data with a first degree of association may be greater than the weight corresponding to the feature data with a second degree of association; wherein the first degree may be greater than the second degree.

[0199] Figure 3 A schematic diagram of a process for determining context features provided in an embodiment of the present application. Figure 3 As shown, first, the second feature map 207 is convolved through two convolution layers 301 to obtain a third feature map 302; secondly, matrix multiplication processing 303 is performed on the third feature map 302 and the transposed convolution result to obtain an attention score 304 represented by the dependent state; thirdly, based on the attention score 304, the degree of association between the feature data of different channels in the second feature map at the semantic level is modeled to obtain a modeling result 305, and then convolution processing is performed through a convolution layer 306 to obtain a context feature 307; illustratively, the context feature 307 can be the association information in the aforementioned embodiment, which can be combined with static parameters to determine the behavior state of the target object.

[0200] Although the behavior state determination method provided in the related art can realize the serial fusion of optical flow and temporal features, it does not consider the spatial information in the key video frames in the above fusion process, and also ignores the importance of the channel relationship of the feature map for the fusion of spatiotemporal information.

[0201] In the behavior state determination method provided in the embodiment of the present application, the third feature map is obtained by dimensionality conversion of the second feature map, and the dimension of the third feature map is smaller than the dimension of the second feature map, and the dependency state between the feature data of different channels in the second feature map is determined based on the third feature map. In this way, through the above-mentioned dependency state, it is possible to accurately characterize the correlation and dependency between the feature data of different channels in the second feature map; and, based on the dependency state, the feature data of different channels in the second feature map are processed to obtain correlation information, thereby realizing targeted processing of the feature data of different channels in the second feature map, thereby improving the flexible and accurate capture of the feature data corresponding to the key video frames in the second feature map.

[0202] Based on the foregoing embodiment, in the behavior state determination method provided in the embodiment of the present application, before identifying the kth video frame in the video frame sequence and determining the static parameters of at least part of the target object, the following steps may be performed:

[0203] Step E1, obtaining a candidate image region.

[0204] The candidate image region includes an image region containing a detection object; the detection object includes a target object.

[0205] In one embodiment, the detection object may include at least one type or at least one object that needs to be detected; illustratively, the type of objects included in the detection object may be the same as the type of objects included in the target object.

[0206] In one embodiment, the candidate image area includes an image area surrounded by a pre-set closed curve that can contain at least a portion of the detection object; illustratively, the above-mentioned closed curve may include a curve composed of rectangles, and accordingly, the candidate image area may include a rectangular image area.

[0207] Step E2: Determine the object associated region in the kth video frame.

[0208] The object associated area is at least associated with the detected object.

[0209] In one embodiment, the object association area may include an image area that can represent the position where the detection object should be located, the space where it is placed, or the relative position relationship with a designated reference object under normal circumstances; illustratively, when the detection object is a patient under monitoring, the above-mentioned designated reference object may include a hospital bed.

[0210] In one implementation, the shape of the region corresponding to the object associated region may be the same as or different from the shape of the region corresponding to the candidate image region.

[0211] In one implementation, the object association area may be determined in the following manner:

[0212] Determine the position where the detection object should be located, the space where it is placed, or the first feature that the designated reference object should have, and determine the image area with the first feature in the kth video frame as the object association area.

[0213] Step E3: Determine whether the kth video frame contains the target object based on the candidate image area and the object associated area.

[0214] In one implementation, determining whether the kth video frame contains the target object may be implemented in the following manner:

[0215] Determine the second feature of the target object. If both the candidate image area and the object-associated area contain the second feature, it can be determined that the kth video frame contains the target object. If either the candidate image area or the object-associated area does not contain the second feature, it can be determined that the kth video frame does not contain the target object.

[0216] As can be seen from the above, in the behavior state determination method provided by the embodiment of the present application, after obtaining the candidate image area containing the detection object and determining the object-associated area in the kth video that is at least associated with the detection object, it is determined whether the kth video frame contains the target object based on the candidate image area and the object-associated area, and the detection object includes the target object. In this way, through the above operation, it is realized to determine whether the kth video frame contains the target object based on the object-associated area in the kth video frame and the candidate image area, so that the target object can be accurately detected; and before determining the static parameters of at least part of the target object, determining whether the kth video frame contains the target object through the above method can also achieve accurate control of the operation of determining the static parameters of at least part of the target object.

[0217] Based on the above embodiments, in the behavior state determination method provided in the embodiments of the present application, determining whether the kth video frame contains the target object based on the candidate image area and the object associated area can be achieved by the following steps:

[0218] Step F1: Determine the region intersection between the candidate image region and the object associated region.

[0219] In one implementation, the region intersection may be determined by:

[0220] Determine the first coordinate set corresponding to the first pixel point set included in the candidate image area S1, determine the second coordinate set corresponding to the second pixel point set included in the object association area S2, and then determine the area intersection based on whether there are intersecting pixel points between the first coordinate set and the second coordinate set, and the number of intersecting pixel points.

[0221] Step F2: Determine the region union between the candidate image region and the object associated region.

[0222] In one implementation, the region union may be determined as follows:

[0223] A union of the first coordinate set and the second coordinate set is determined as a region union.

[0224] Step F3: Determine whether the kth video frame contains the target object based on the region intersection and the region union.

[0225] In one implementation, determining whether the kth video frame contains the target object may be implemented in any of the following ways:

[0226] If both the region intersection and the region union contain the second feature, it can be determined that the kth video frame contains the target object; if either the region intersection or the region union does not contain the second feature, it can be determined that the kth video frame does not contain the target object.

[0227] The similarity between the region intersection and the region union is determined, and then based on the similarity, it is determined whether the k-th video frame contains the target object.

[0228] From the above, it can be seen that in the behavior state determination method provided by the embodiment of the present application, after determining the region intersection and region union between the candidate image region and the object-associated region, it is determined whether the kth video frame contains the target object based on the region intersection and region union. In this way, by determining whether the kth video frame contains the target object based on the region features possessed by the region intersection and region union in the kth video frame, the accuracy of the target object detection and determination process can be improved.

[0229] Based on the above embodiments, in the behavior state determination method provided in the embodiments of the present application, determining whether the kth video frame contains the target object based on the region intersection and the region union can be implemented in the following manner:

[0230] If the ratio between the region intersection and the region union is greater than or equal to the second threshold, it is determined that the kth video frame contains the target object.

[0231] Exemplarily, if the ratio between the region intersection and the region union is less than a second threshold, the candidate image region may be discarded, and a quantum simulated annealing algorithm may be used to determine a new candidate image region through a global search in the kth video frame, and then a new region intersection and region union may be determined based on the new candidate image region and the associated image region.

[0232] Exemplarily, in the process of using the quantum simulated annealing algorithm, multiple iterative searches can be combined with a reinforcement learning mechanism to detect new candidate image regions in the kth video frame.

[0233] In one implementation, the second threshold may be preset; illustratively, the value of the second threshold may be 0.95.

[0234] For example, the ratio between the region intersection and the region union can be determined by formula (2):

[0235]

[0236] Among them, S1∩S2 is the region intersection, S1∪S2 is the region union, and IOU is the above ratio.

[0237] From the above, it can be seen that in the behavior state determination method provided by the embodiment of the present application, if the ratio between the region intersection and the region union is greater than or equal to the second threshold, it is determined that the kth video frame contains the target object. In this way, through the ratio between the region intersection and the region union, the similarity or overlap between the image area corresponding to the region intersection and the image area corresponding to the region union can be accurately measured; and when the above ratio is greater than or equal to the second threshold, it is determined that the kth video frame contains the target object, which realizes the precise control of the operation of determining that the kth video frame contains the target object; and by adjusting the second threshold, the flexibility of the operation of determining that the kth video frame contains the target object can be improved.

[0238] Based on the foregoing embodiments, in the behavior state determination method provided in the embodiments of the present application, the static parameters include structural parameters and posture parameters of at least some parts.

[0239] In one embodiment, the structural parameters may include parameters of a body structure corresponding to at least a portion of the portion represented by at least a portion of the portion.

[0240] In one implementation, the posture parameter may include the posture and position of at least a portion of the body part at the kth moment corresponding to the kth video frame.

[0241] Accordingly, identifying the kth video frame in the video frame sequence and determining the static parameters of at least a part of the target object can be achieved by the following steps:

[0242] Step G1: extract features from the kth video frame through a depth recognition module to determine key point parameters of at least part of the target object.

[0243] In one embodiment, when the target object is a person or an animal, the deep recognition module may include a neural network that has high-precision recognition of biological features such as bones and / or muscles; illustratively, the deep recognition module may be OpenPose or PoseNet in the aforementioned embodiments.

[0244] In one embodiment, when the target object is a person or an animal, the key point parameters may include parameters such as the number of key points included in at least one of the head, face, torso, and limbs, and the pixel coordinates of each key point.

[0245] In one embodiment, at least some of the locations may be pre-set.

[0246] Step G2: determining the structural parameters based on the distance information between the key points represented by the key point parameters, and determining the posture parameters based on the relative position information between the key points represented by the key point parameters.

[0247] In one embodiment, the structural parameters can be determined by:

[0248] Based on the pixel coordinates of each key point in the key point parameters, the distance information between the key points is determined, and then the body part of the target object corresponding to at least part of the part is determined according to the distance information between the key points, and then the above structural parameters are determined according to the body part.

[0249] In one embodiment, the posture parameters can be determined by:

[0250] Based on the relative position information between each key point in the key point parameters, the relative orientation, intersection relationship and overlap relationship between each key point are determined, and then the posture parameters of at least part of the part are determined according to the relative orientation, intersection relationship and overlap relationship.

[0251] As can be seen from the above, in the behavior state determination method provided in the embodiment of the present application, the kth video frame is feature extracted by the depth recognition module to determine the key point parameters of at least part of the target object, and then the structural parameters and posture parameters included in the static parameters are determined based on the distance information and relative position relationship between the key points represented by the key point parameters. In this way, through the above operation, not only the accuracy of the structural parameters and posture parameters in the static parameters can be improved, but also the integrity and comprehensiveness of the static parameters can be improved.

[0252] Based on the above embodiments, in the behavior state determination method provided in the embodiments of the present application, feature extraction is performed on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the parts, which can be achieved in the following manner:

[0253] If the m-th video frame to the n-th video frame contain the target object, feature extraction is performed on the m-th video frame to the n-th video frame to determine the dynamic parameters.

[0254] Exemplarily, if the mth video frame to the nth video frame do not contain the target object, the operation of extracting features from the mth video frame to the nth video frame may not be performed.

[0255] In one implementation, determining whether the mth video frame to the nth video frame contain the target object may be implemented in any of the following ways:

[0256] A second feature of the target object is determined in advance, and then feature recognition is performed on the mth to nth video frames to determine whether the mth to nth video frames contain the second feature. If the mth to nth video frames contain the second feature, it can be determined that the mth to nth video frames contain the target object.

[0257] Object recognition is performed on the kth video frame to determine the second feature contained in the pixel area where the target object is located. If the mth to nth video frames contain the second feature, it can be determined that the mth to nth video frames contain the target object.

[0258] As can be seen from the above, the behavior state determination method provided in the embodiment of the present application, when it is determined that the mth video frame to the nth video frame contain the target object, performs feature extraction on the mth video frame to the nth video frame to determine the dynamic parameters. In this way, through the above operation, strict control of the operation of performing feature extraction on the mth video frame to the nth video frame is achieved, thereby improving the correlation between the dynamic parameters and the target object, and further improving the accuracy of the dynamic parameters.

[0259] Based on the foregoing embodiment, in the behavior state determination method provided in the embodiment of the present application, feature extraction is performed on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part, which can also be achieved by the following steps:

[0260] Step H1, converting the mth video frame to the nth video frame into the mth three-dimensional point cloud to the nth three-dimensional point cloud respectively.

[0261] In one implementation, the pixel data in the mth video frame to the nth video frame may be converted into the mth three-dimensional point cloud to the nth three-dimensional point cloud, respectively, by a voxel method.

[0262] In one embodiment, the mth video frame sequence to the nth video frame sequence can be converted by spatial analysis technology in a Geographic Information System (GIS), thereby converting each of the above video frames into a series of evenly distributed voxels; wherein each voxel represents an area in a three-dimensional space.

[0263] Exemplarily, for a remotely monitored rehabilitation therapy scenario, a motion video of at least part of a patient's body in the rehabilitation therapy scenario can be captured by a camera, and at least part of the motion video frames can be converted into a point cloud in a three-dimensional space.

[0264] Step H2: perform feature extraction on the mth three-dimensional point cloud to the nth three-dimensional point cloud to obtain a three-dimensional extraction result.

[0265] In one embodiment, the difference between n and m can be preset, that is, the number of point clouds in the point cloud set including the mth three-dimensional point cloud to the nth three-dimensional point cloud can be preset, and the above point cloud set is input as a three-dimensional point cloud fragment into a neural network with three-dimensional feature extraction, so that it can extract the three-dimensional features in the point cloud set, thereby obtaining a three-dimensional extraction result; exemplarily, the above neural network can include ResNext; exemplarily, the difference between n and m can be 16.

[0266] In one implementation, the three-dimensional extraction result may include the dynamic feature map in the aforementioned embodiment.

[0267] In one embodiment, the three-dimensional extraction result may include a set of three-dimensional features in the dual dimensions of time and space of at least part of the part between the mth moment and the nth moment, that is, the three-dimensional extraction result may include richer spatiotemporal features of at least part of the part.

[0268] Step H3: Determine dynamic parameters based on the three-dimensional extraction results.

[0269] In one embodiment, the dynamic parameters may be determined by:

[0270] Based on the key point parameters, the mth extraction result corresponding to the mth video frame to the nth extraction result corresponding to the nth video frame in the three-dimensional extraction results are integrated, and a set of dynamic feature maps obtained by the integration, which can characterize the dynamic change process of at least part of the part from the mth moment to the nth moment, is determined as the dynamic parameter.

[0271] From the above, it can be seen that in the behavior state determination method provided in the embodiment of the present application, the mth video frame to the nth video frame are converted into the mth three-dimensional point cloud to the nth three-dimensional point cloud respectively, and then the feature extraction is performed on the mth three-dimensional point cloud to the nth three-dimensional point cloud to obtain a three-dimensional extraction result. In this way, through the above operation, the richness of the spatiotemporal feature information of at least part of the mth three-dimensional point cloud to the nth three-dimensional point cloud can be improved, and the completeness of at least part of the three-dimensional extraction result in the space and time dimensions can also be improved; and, based on the three-dimensional extraction result, the dynamic parameters are determined so that the dynamic parameters can be consistent with the change state of at least part of the part represented by the mth video frame to the nth video frame in the time and space dimensions, thereby improving the accuracy and comprehensiveness of the dynamic parameters.

[0272] Based on the above embodiments, the behavior state determination method provided in the embodiments of the present application may also perform the following operations:

[0273] If the matching degree between the behavior state and the target state is less than or equal to the third threshold, the first information is output.

[0274] The first information at least includes information whose matching degree is less than or equal to a third threshold.

[0275] Exemplarily, if the degree of matching between the behavior state and the target state is greater than a third threshold, the operation of outputting the first information may not be performed.

[0276] In one embodiment, the target state may be a pre-set state that the target object should be in; illustratively, the target state may include at least one state that at least part of the target object should be in when the safety level of the target object is greater than a level threshold.

[0277] In one implementation, the target state may include a normal state, and may also include a plurality of sub-states obtained by finely dividing the normal state.

[0278] In one implementation, the first information may include text, picture or video data; illustratively, the first information may be output in the form of text output, picture display or video playback.

[0279] As can be seen from the above, in the behavior state determination method provided in the embodiment of the present application, if the matching degree between the behavior state and the target state is less than or equal to the third threshold, the first information with a matching degree less than or equal to the third threshold is output. In this way, through the above operation, the behavior state determination method provided in the embodiment of the present application can not only realize the accurate determination of the behavior state, but also realize the real-time early warning prompt of the behavior state.

[0280] Based on the above embodiments, the behavior state determination method provided in the embodiments of the present application may also perform the following operations:

[0281] Determine scene parameters of the scene where the target object is located; and determine a target state corresponding to the scene parameters.

[0282] In one implementation, the scene parameter may include at least one of a name, a type, and a number of the scene where the target object is located.

[0283] In one implementation, the scene parameters may be determined by any of the following methods:

[0284] The scene parameters are determined based on the features of objects other than the target object contained in each video frame in the video frame sequence; illustratively, if the other objects include a hospital bed, the scene parameters can be determined to be a medical scene; if the other objects include public transportation, the scene parameters can be determined to be a public transportation scene.

[0285] The scene parameters are determined in response to the user's setting of the parameters of the scene type.

[0286] In one embodiment, there may be an association relationship between scene parameters and states. Thus, after determining the scene parameters of the scene where the target object is actually located, the scene parameters corresponding to the scene where the target object is actually located may be determined from the association relationship based on the degree of match between the scene parameters of the scene where the target object is actually located and the scene parameters in the above association relationship.

[0287] As can be seen from the above, in the behavior state determination method provided in the embodiment of the present application, after determining the scene parameters of the scene in which the target object is located, the target state corresponding to the scene parameters is determined. In this way, through the above operation, the correlation between the target state and the scene in which the target object is located can be improved, thereby improving the accuracy of judging the behavior state based on the target state.

[0288] Based on the above embodiments, the behavior state determination method provided in the embodiments of the present application may also perform the following operations:

[0289] If the scene where the target object is located is a medical monitoring scene, the behavior state of at least some parts in the second time period is counted to obtain statistical results; if the statistical results indicate that the displacement degree of at least some parts in the second time period is less than or equal to the third threshold, the second information is output.

[0290] Among them, the second time period includes multiple first time periods; the first time period includes the period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame; the second information at least includes prompt information that the displacement degree is less than or equal to the third threshold.

[0291] For example, if the scene in which the target object is located is not a medical monitoring scene, the operation of the behavioral state of at least some parts of the target object in the second time period may not be counted.

[0292] Exemplarily, if the statistical result indicates that the displacement degree of at least some parts in the second time period is greater than the third threshold, the second information may not be output.

[0293] In one embodiment, the medical monitoring scenarios may include intensive care scenarios, rehabilitation training scenarios, surgery scenarios, physical therapy scenarios, and medical consultation scenarios.

[0294] In one embodiment, when the scene where the target object is located is a medical monitoring scene, the target object may include a patient in a monitored state.

[0295] In one embodiment, the length of the second time period may be determined according to the patient level or monitoring level of the target object.

[0296] In one embodiment, the statistical result may characterize at least one of whether at least part of the part is displaced, the number of displacements, whether the displacement is continuous, the displacement distance, and the displacement direction during the second time period.

[0297] In one implementation, the statistical results may be obtained by:

[0298] In the time dimension, the behavior states in each first time period are integrated to obtain the change state of the behavior states in each first time period, and then the spatial information contained in the change state is statistically integrated, and the result of the statistical integration is determined as the statistical result.

[0299] In one embodiment, the displacement degree may include at least one of the number of displacements of at least part of the part within the second time period, whether the displacement is continuous, the displacement amplitude, the displacement direction and the displacement speed; illustratively, the displacement speed can be determined by the displacement amplitude, the displacement direction and the second time period.

[0300] In one implementation, the second information may be output in a manner similar to the first information, which will not be described in detail herein.

[0301] In actual medical monitoring scenarios, in order to improve the patient's rehabilitation efficiency, it is usually necessary to perform passive training or active training on at least part of the patient's diseased part; in an embodiment of the present application, by monitoring the displacement degree of at least part of the patient's diseased part during the second time period, the patient's passive training or active training state can be achieved; exemplarily, passive training may include at least one action that the patient needs to rely on external force to complete, and the external force may be provided by medical staff in the form of force or support applied to the patient's diseased part; exemplarily, active training may include the patient's actions or posture adjustments completed by his own strength.

[0302] From the above, it can be seen that the behavior state determination method provided by the embodiment of the present application, if the scene in which the target object is located is a medical monitoring scene, then the behavior state of at least part of the part in the second time period is counted to obtain a statistical result, and the second time period includes multiple first time periods, and the first time period includes the time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame. In this way, through the above operation, close tracking of the behavior state of at least part of the part in multiple first time periods is achieved; and if the statistical result characterizes that the displacement degree of at least part of the part in the second time period is less than or equal to the third threshold, the second information that the displacement degree is less than or equal to the third threshold is output. In this way, through the above operation, when the target object is a patient, real-time tracking and alarm of the displacement degree of at least part of the patient's part is achieved in the medical monitoring scene, thereby improving the accuracy, automation and intelligence of medical monitoring, and further reducing the manpower cost of medical monitoring.

[0303] Based on the above embodiments, the behavior state determination method provided in the embodiments of the present application may also perform the following operations:

[0304] If the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to the fourth threshold, the third information is output.

[0305] The third information includes information that the displacement degree is greater than or equal to a fourth threshold.

[0306] Exemplarily, if the statistical result indicates that the displacement degree of the target object in the second time period is less than the fourth threshold, the third information may not be output.

[0307] In one embodiment, when the medical monitoring scenario is a rehabilitation training scenario, if the statistical results characterize that the displacement degree of the target object in the second time period is greater than or equal to a fourth threshold, it can indicate that the degree to which the rehabilitation training action performed by the patient has a negative impact on his rehabilitation state is greater than or equal to the degree threshold, for example, the amplitude of the rehabilitation training action performed by the patient is greater than the fourth threshold, or the frequency or speed of performing the rehabilitation training action is greater than the fourth threshold, or the action performed by the patient is not a rehabilitation training action.

[0308] In one embodiment, in a medical monitoring scenario, if the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to the fourth threshold, it may also indicate that the probability of the target object falling and / or falling in the second time period is greater than the fourth threshold.

[0309] From the above, it can be seen that in the behavior state determination method provided by the embodiment of the present application, if the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to the fourth threshold, the third information that the displacement degree is greater than or equal to the fourth threshold is output. In this way, through the above operation, a real-time automatic early warning of the statistical result of the displacement degree greater than or equal to the fourth threshold is realized in the medical monitoring scene; and, combined with the above embodiment, a diversified and comprehensive early warning prompt of the displacement degree in the second time period is realized in the medical monitoring scene, thereby improving the comprehensiveness and pertinence of medical monitoring in the medical monitoring scene.

[0310] Figure 4 A flow chart of determining the behavior state provided in the embodiment of the present application is as follows: Figure 4 As shown, the process may include the following steps:

[0311] Step 401: Obtain video data.

[0312] Step 402: Obtain a video frame sequence.

[0313] Step 403: static feature extraction.

[0314] Exemplarily, the static feature may be the static parameter in the aforementioned embodiment.

[0315] Exemplarily, the kth video frame in the video frame sequence may be identified by the method provided in the aforementioned embodiment, thereby obtaining static features.

[0316] Exemplarily, while step 403 is being executed, step 404 may also be executed synchronously.

[0317] Step 404: dynamic feature extraction.

[0318] Exemplarily, the dynamic feature may be the dynamic parameter in the aforementioned embodiment.

[0319] Exemplarily, the method provided in the aforementioned embodiment may be used to extract features from the mth video frame to the nth video frame in the video frame sequence, thereby obtaining dynamic features.

[0320] Step 405: Channel integration.

[0321] Exemplarily, based on the channel parameters of each video frame in the video frame sequence, channel integration can be performed on the dynamic features corresponding to the mth video frame to the dynamic features corresponding to the nth video frame to obtain a set of dynamic feature maps.

[0322] Step 406: Feature spatiotemporal aggregation.

[0323] Exemplarily, step 406 may include steps 4061 and 4062 .

[0324] Step 4061: Channel stacking and fusion.

[0325] Exemplarily, the method provided in the aforementioned embodiment can be used to perform channel stacking and fusion on the static feature map corresponding to the static feature and the first feature map determined based on the dynamic feature map set corresponding to the dynamic feature based on the first channel parameter and the second channel parameter to obtain the second feature map.

[0326] Step 4062: Determine channel attention parameters.

[0327] Exemplarily, the channel attention parameter may be the attention score or dependency state in the aforementioned embodiment.

[0328] Exemplarily, the dependency state between feature data of different channels in the second feature map may be determined by the method provided in the aforementioned embodiment.

[0329] Step 407: Behavior classification and detection.

[0330] Exemplarily, data between different channels in the second feature map can be processed based on the channel attention parameters to determine the behavioral state of at least part of the part in the first time period corresponding to the mth video frame to the nth video frame in the video frame sequence.

[0331] Exemplarily, the behavior state may also be classified based on the matching degree or difference state between the behavior state and the target state, so as to distinguish the behavior state into a normal state or an abnormal state.

[0332] For example, in a medical rehabilitation scenario, by detecting the movements performed by at least part of the patient's body, such as at least part of the limbs, it can be determined whether the patient has performed the correct rehabilitation training movements according to the doctor's advice, and the patient's rehabilitation status can be judged by analyzing the patient's posture, speed, direction and other characteristics; for example, if the patient's movements or behaviors are in an abnormal state, such as the patient's movements or behaviors are in the wrong posture, too fast or too slow, prompt information can be generated and output in a targeted manner, thereby achieving real-time feedback on the patient's rehabilitation training status.

[0333] If the above processes and methods are applied to fields such as medical rehabilitation, disease prevention, and patient behavior analysis, they can help doctors more accurately assess the patient's recovery status and promptly identify possible problems.

[0334] In practical applications, the models, methods and parameters for performing static feature extraction, dynamic feature extraction and spatiotemporal feature aggregation can be obtained through training based on sample data. For example, the training process of the models, methods and parameters based on sample data can include the following steps:

[0335] Step J1: Data collection and labeling.

[0336] Exemplarily, sample videos containing normal and abnormal movements of a target object, such as a patient, may be collected, and the sample videos may be cropped to obtain a sample sequence of multiple video frames. Features of the sample sequence may then be extracted using a detection model including Faster RCNN to determine the initial spatial position of the patient.

[0337] Exemplarily, the initial spatial position may be corrected by a marking tool to correct the initial spatial position with recognition errors, thereby improving the accuracy of the initial spatial position.

[0338] Exemplarily, the annotation tool is used to determine the position information of the pixel area where the target object, such as the patient, is located, and can also determine the human frame where the patient is located and the object frame where the bed is located; exemplarily, if it is determined that there is an error in the initial spatial position, the human frame and the object frame can be redrawn and updated; exemplarily, the human frame can be the candidate image area in the aforementioned embodiment, and the object frame can be the associated image area in the aforementioned embodiment.

[0339] Exemplarily, in the above steps, cross-domain technologies of computer vision and natural language processing (NLP), including video subtitle generation technology, can be introduced to convert the patient's behavioral actions in the sample video into text form, thereby providing auxiliary information for the labeling process and also helping to understand abnormal behavior from a semantic level.

[0340] For example, for an abnormal human behavior detection system used to monitor patient behavior in hospital wards, sample videos of the monitoring system can be collected in advance, and video subtitle generation technology can be used to convert behavioral actions in the sample videos into text form. For example, computer vision technology can be used to analyze the sample videos to extract the patient's body position information and motion characteristics in each frame of the sample video. At the same time, the sample sequence can be identified through the detection model to determine the initial spatial position of the patient and the bed, and then the tracking algorithm is used to track the movement trajectory of the patient and the bed, and then the subtitle generation technology is introduced to use the NLP method to convert the behavioral actions represented by each sample sequence into text descriptions.

[0341] For example, for a sample video containing an incident of a patient falling out of bed, the sample video can be analyzed using video subtitle generation technology to obtain a text description such as "the patient fell out of bed", thereby converting the behavioral actions in the sample video from visual information into text data.

[0342] Moreover, during the annotation process, the patient's behavior can be judged as normal or abnormal based on the generated text data, thereby further improving the accuracy of the annotation.

[0343] Exemplarily, through the above-mentioned text data, it is also possible to mine the potential semantic information and pattern information in the sample video, thereby improving the understanding and detection capabilities of abnormal behaviors. It is also possible to identify specific types of abnormal behavior descriptions such as extubation, limb movement or uncoordinated use through text classification technology, thereby being able to more comprehensively label various abnormal behaviors.

[0344] Step J2: 2D feature modeling.

[0345] Exemplarily, in this step, feature extraction can be performed on the sample sequence with the help of a deep learning model that is sensitive to biological features such as bones and muscles, so as to extract static parameters or static features such as human body structure and posture, and according to the degree of matching between the extracted static parameters and the pre-labeled static features, the parameters of the above-mentioned deep learning model are adjusted to achieve 2D feature modeling; exemplarily, the above-mentioned deep learning model may include a pre-trained Darknet.

[0346] Exemplarily, the pre-trained Darknet can be fine-tuned based on the labeled sample sequence to improve its accuracy in static feature extraction; exemplary, the above-mentioned fine-tuning includes retraining the last two layers of the pre-trained Darknet based on the sample sequence, while the parameters of the remaining layers remain unchanged.

[0347] Exemplarily, in this step, with the help of biomedical image processing technology, feature extraction can be performed on the sample sequence through a deep learning model that is sensitive to biological features such as bones and muscles to obtain the structural information and posture information of the patient's body.

[0348] For example, for an elderly fall detection system based on video surveillance, during the data collection stage, with the permission of the elderly and their families, surveillance videos can be collected through cameras installed in the nursing home rooms; then, the surveillance videos are processed through computer vision technology to extract the body position and posture information of the elderly in each frame. In this process, trained skeletal key point detection models including OpenPose or PoseNet can be used to detect and track the body key points of the elderly in the surveillance video. These key points include the position information of key parts such as the head, arms, and feet; secondly, by analyzing the positions of these body key points, richer body structure and posture information can be obtained. The posture information may include the body tilt angle and the arm swing amplitude, etc.; and the surveillance video can be a sample video.

[0349] For example, in a certain video clip of the surveillance video, if an elderly person falls, the above operation can detect the abnormal position and posture changes between the key points of the skeleton. At this time, by comparing the degree of difference between these abnormal features and normal behaviors, it can be determined whether a fall has occurred. For another example, biomedical image processing technology can also be used to identify abnormal behaviors including falling in the corridor or stepping on obstacles. In this way, by analyzing subtle changes in the elderly's body structure and posture, different types of abnormal behaviors can be identified and alarms can be triggered in time.

[0350] Step J3: 3D feature modeling.

[0351] Exemplarily, this step is used to determine the dynamic features or dynamic parameters carried in the sequence samples of the sample video; Exemplarily, the parameters of the dynamic feature extraction model including the ResNext network can be adjusted according to the degree of matching between the above dynamic parameters and the pre-labeled dynamic parameters, thereby realizing 3D feature modeling.

[0352] Illustratively, the method provided in the aforementioned embodiment can be used to convert continuous video frames in a sample sequence into a point cloud in a three-dimensional space, and then more abundant spatiotemporal features can be extracted through point cloud analysis.

[0353] Exemplarily, the current frame and the previous 15 frames of data can be combined into an input segment as input data, and features of the input 16 frames of data can be extracted through the ResNext network to finally obtain a dynamic feature map set.

[0354] For example, in the rehabilitation training scenario in the medical field, through the above steps, it is possible to detect whether the motion trajectory of the voxel or point cloud is consistent with the expected motion trajectory of the rehabilitation training action, or to judge whether the patient has performed the correct rehabilitation training action according to the doctor's advice. It is also possible to judge the patient's rehabilitation status by analyzing the patient's posture, speed, direction and other characteristics. For example, if the action performed by the patient is abnormal, such as too fast or too slow, or the posture is incorrect, the abnormal action can be identified in time and a prompt message can be output.

[0355] Step J4: context feature aggregation.

[0356] Exemplarily, the context feature aggregation may be consistent with the operation of feature spatiotemporal aggregation in the aforementioned embodiment.

[0357] Exemplarily, the static features or static parameters obtained in the previous steps and the dynamic feature maps or dynamic parameters can be channel stacked and fused to obtain the association information in the aforementioned embodiment. At this time, the association information can characterize the interactive relationship between the patient and the environment; and the dependency state is determined by the method provided in the aforementioned embodiment, so as to achieve the determination of the part of the channel features that the network pays most attention to through the channel attention mechanism.

[0358] Step J5: behavior classification and detection.

[0359] Exemplarily, the method provided in the aforementioned embodiment can be used to integrate and count the classification results corresponding to the dynamic feature graph and the classification results corresponding to the associated information based on the weight parameters of the initial state or the weight parameters of the intermediate state to obtain statistical results, determine the classification results based on the statistical results, and then adjust the weight parameters of the initial state or the weight parameters of the intermediate state based on the degree of difference between the classification results and the behavioral states marked in the sample video.

[0360] Exemplarily, in this step, the statistical results can be refinedly classified by referring to the multi-label classifier included in the species identification technology in ecology, rather than simply dividing the statistical results into two categories: normal behavior and abnormal behavior; for example, for the intensive care unit of a hospital, in addition to general abnormal behavior detection, the above method can also be used to classify different types of behaviors more specifically; for another example, the statistical results can be identified by a multi-label classifier to determine a variety of different types of abnormal behaviors, including catheter dislocation, falls, and calls for help.

[0361] Exemplarily, through the above steps, accurate classification and identification of each sub-class behavior can be achieved, so as to better distinguish different abnormal behavior situations, and a more comprehensive understanding of the patient's condition can be obtained, so as to provide data guarantee for timely taking corresponding measures; for example, when the classification result represents the patient's catheter-out behavior, prompt information can be output to medical staff in real time to achieve real-time scheduling of medical staff and medical resources; for example, when the classification result represents that the patient is in a fall state, the alarm system can be triggered immediately and rescue personnel can be dispatched for emergency treatment.

[0362] Step J6: Optimize the detection results.

[0363] Illustratively, in this step, the pixel area where the patient is located can be optimized by the method provided in the aforementioned embodiment.

[0364] For example, in this step, the idea of ​​quantum computing can be introduced, and with the help of methods such as quantum genetic algorithm or quantum simulated annealing, the optimal solution for the pixel area where the patient is located can be found through global search; at the same time, it can also be combined with reinforcement learning strategies to self-optimize through multiple iterative processes, thereby improving the accuracy of abnormal human behavior detection.

[0365] For example, for the security system of public transportation scenarios, the multi-label classifier in the aforementioned embodiment can be used to finely classify the behavior of pedestrians to obtain multiple classification results including pushing, stealing, and panicking. In the detection result optimization stage, the accuracy of the pixel area where the pedestrians are located is continuously optimized.

[0366] Through the above-mentioned training process and the behavior state determination method provided by the aforementioned embodiments, the embodiment of the present application provides a two-branch model for static feature extraction and dynamic feature extraction, and at the same time uses the channel attention mechanism to achieve precise fusion of dynamic features and static features in the time and space dimensions, thereby improving the accuracy of determining the behavior state of the target object.

[0367] In specific applications, the behavior state determination method provided in the embodiment of the present application can be combined with artificial intelligence (AI) technology to realize the confirmation and tracking of the behavior state of a variety of target objects in various scenarios including medical rescue scenarios. The specified behavior state can also be output to relevant personnel in the form of an alarm, thereby reducing the workload of medical staff and improving the accuracy and real-time nature of patient treatment.

[0368] In addition, the technical solution provided in the embodiment of the present application can also be combined with the fifth generation mobile communication technology (5G) edge computing technology to send warning information of abnormal human behavior of patients to hospital managers, medical staff and security personnel in a timely manner in the form of text information, picture information and video information, thereby enabling smart hospitals, telemedicine, regional medical care, smart health care, smart drug supervision and smart medical insurance.

[0369] At the same time, by deploying the technical solutions provided in the embodiments of this application on various platforms, it is possible to achieve integrated services, integrated management, and integrated operation and maintenance of "platform + capability + application", thereby building a visible, usable, and replicable production system, and thus providing new information services of 5G smart medical care to users in various fields, medical industry customers, and provincial and municipal mobile companies.

[0370] Based on the above embodiments, the present application also provides a behavior state determination device. Figure 5 A schematic diagram of the structure of the behavior state determination device provided in the embodiment of the present application, such as Figure 5 As shown, the behavior state determining device 5 may include:

[0371] An acquisition module 501 is used to acquire video data;

[0372] The processing module 502 is used to process the video data to obtain a video frame sequence; identify the kth video frame in the video frame sequence to determine the static parameters of at least part of the target object; extract features from the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the target object; wherein k is an integer greater than or equal to 1; m is an integer greater than or equal to k and less than n; and n is an integer greater than 1;

[0373] The determination module 503 is used to determine the behavior state of the target object based on the static parameters and the dynamic parameters.

[0374] In some embodiments, the dynamic parameters include displacement parameters of at least some of the parts;

[0375] The determination module 503 is used to determine the displacement state of at least part of the part based on the displacement parameters; determine the association information between the displacement parameters and the static parameters; and determine the behavior state based on the association information and the displacement state.

[0376] In some embodiments, the acquisition module 501 is used to acquire weight parameters;

[0377] A determination module 503 is used to determine a first classification result of at least part of the part based on the displacement state; and to determine a second classification result of at least part of the part based on the association information;

[0378] The processing module 502 is used to integrate and count the first classification result and the second classification result based on the weight value in the weight parameter to obtain the behavior state.

[0379] In some embodiments, the static parameter includes a static feature map of at least part of the part at the kth moment; the kth moment corresponds to the kth video frame; the displacement parameter includes a set of dynamic feature maps of at least part of the part in the first time period; the first time period includes the time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame;

[0380] A determination module 503 is used to determine a first feature map based on a dynamic feature map in the dynamic feature map set; wherein the depth of the first feature map matches the depth of the static feature map;

[0381] A processing module 502 is used to fuse the first feature map and the static feature map to obtain a second feature map;

[0382] The determination module 503 is used to determine the associated information based on the second feature map.

[0383] In some embodiments, the determination module 503 is used to determine any dynamic feature graph in the dynamic feature graph set as the first feature graph if the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set is less than a first threshold.

[0384] In some embodiments, the determination module 503 is used to determine a first channel parameter of the first feature map; determine a second channel parameter of the static feature map;

[0385] The processing module 502 is used to superimpose and fuse the feature data in the first feature map and the static feature map based on the first channel parameter and the second channel parameter to obtain a second feature map.

[0386] In some embodiments, the processing module 502 is used to perform dimension conversion on the second feature map to obtain a third feature map; wherein the dimension of the third feature map is smaller than the dimension of the second feature map;

[0387] A determination module 503 is used to determine the dependency state between feature data of different channels in the second feature map based on the third feature map;

[0388] The processing module 502 is used to process the feature data of different channels in the second feature map based on the dependency state to obtain correlation information.

[0389] In some embodiments, the acquisition module 501 is used to acquire a candidate image region; wherein the candidate image region includes an image region containing a detection object; the detection object includes a target object;

[0390] A determination module 503 is used to determine an object-related region in the kth video frame; wherein the object-related region is at least associated with the detection object;

[0391] The determination module 503 is further configured to determine whether the kth video frame contains the target object based on the candidate image region and the object associated region.

[0392] In some embodiments, the determination module 503 is used to determine the region intersection between the candidate image region and the object associated region; determine the region union between the candidate image region and the object associated region; and determine whether the kth video frame contains the target object based on the region intersection and the region union.

[0393] In some embodiments, the determination module 503 is configured to determine that the kth video frame contains the target object if the ratio between the region intersection and the region union is greater than or equal to a second threshold.

[0394] In some embodiments, the static parameters include structural parameters and posture parameters of at least some of the parts;

[0395] The determination module 503 is used to extract features from the kth video frame through the depth recognition module to determine the key point parameters of at least part of the target object; determine the structural parameters based on the distance information between the key points represented by the key point parameters; and determine the posture parameters based on the relative position information between the key points represented by the key point parameters.

[0396] In some embodiments, the determination module 503 is used to extract features from the mth video frame to the nth video frame to determine dynamic parameters if the mth video frame to the nth video frame contain the target object.

[0397] In some embodiments, the processing module 502 is used to convert the mth video frame to the nth video frame into the mth three-dimensional point cloud to the nth three-dimensional point cloud respectively; perform feature extraction on the mth three-dimensional point cloud to the nth three-dimensional point cloud to obtain a three-dimensional extraction result;

[0398] The determination module 503 is used to determine the dynamic parameters based on the three-dimensional extraction result.

[0399] In some embodiments, the processing module 502 is used to output first information if the matching degree between the behavior state and the target state is less than or equal to a third threshold; wherein the first information at least includes information whose matching degree is less than or equal to the third threshold.

[0400] In some embodiments, the determination module 503 is used to determine the scene parameters of the scene where the target object is located; and determine the target state corresponding to the scene parameters.

[0401] In some embodiments, the processing module 502 is used to count the behavior states of at least part of the body parts in a second time period to obtain statistical results if the scene in which the target object is located is a medical monitoring scene; wherein the second time period includes multiple first time periods; the first time period includes a time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame;

[0402] The processing module 502 is further configured to output second information if the statistical result indicates that the displacement degree of at least some parts in the second time period is less than or equal to a third threshold; wherein the second information at least includes information that the displacement degree is less than or equal to the third threshold.

[0403] In some embodiments, the processing module 502 is used to output third information if the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to a fourth threshold; wherein the third information at least includes information that the displacement degree is greater than or equal to the fourth threshold.

[0404] Based on the above embodiments, the present application also provides an electronic device, Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device 6 may include a processor 601 and a memory 602; wherein the memory 602 stores a first computer program, and when the first computer program is executed by the processor 601, it can implement the behavior state determination method provided in any of the previous embodiments.

[0405] Based on the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a second computer program is stored. When the second computer program is executed by a processor of an electronic device, it can implement a behavior state determination method as provided in any of the previous embodiments.

[0406] Based on the foregoing embodiments, an embodiment of the present application further provides a computer program product, which includes a third computer program. When the third computer program is executed by a processor of an electronic device, it can implement a behavior state determination method as provided in any of the previous embodiments.

[0407] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0408] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0409] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0410] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0411] It should be noted that the above-mentioned computer-readable storage medium can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0412] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0413] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0414] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0415] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0416] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0417] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0418] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for determining a behavior state, characterized in that: The method comprises: Get video data; Processing the video data to obtain a video frame sequence; Identify the kth video frame in the video frame sequence to determine static parameters of at least a portion of the target object; wherein k is an integer greater than or equal to 1; Performing feature extraction on the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part; wherein m is an integer greater than or equal to k and less than n; and n is an integer greater than 1; Based on the static parameters and the dynamic parameters, a behavior state of the target object is determined.

2. The method according to claim 1, characterized in that The dynamic parameter includes a displacement parameter of at least part of the part; and determining the behavior state of the target object based on the static parameter and the dynamic parameter includes: Based on the displacement parameter, determining the displacement state of the at least part of the part; Determining association information between the displacement parameter and the static parameter; The behavior state is determined based on the association information and the displacement state.

3. The method according to claim 2, characterized in that The determining the behavior state based on the association information and the displacement state includes: Get weight parameters; Based on the displacement state, determining a first classification result of the at least part of the part; Determining a second classification result of the at least part of the part based on the association information; Based on the weight value in the weight parameter, the first classification result and the second classification result are integrated and counted to obtain the behavior state.

4. The method according to claim 2, characterized in that: The static parameters include a static feature map of at least part of the part at the kth moment; the kth moment corresponds to the kth video frame; the displacement parameters include a set of dynamic feature maps of at least part of the part within a first time period; the first time period includes a time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame; The depth of the dynamic feature map set is greater than the depth of the static feature map; The determining of the association information between the displacement parameter and the static parameter includes: Determining a first feature map based on the dynamic feature map in the dynamic feature map set; wherein the depth of the first feature map matches the depth of the static feature map; Fusing the first feature map and the static feature map to obtain a second feature map; Based on the second feature map, the association information is determined.

5. The method according to claim 4, characterized in that The determining, based on the dynamic feature graphs in the dynamic feature graph set, a first feature graph, comprises: If the degree of fluctuation between the dynamic feature graphs in the dynamic feature graph set is less than a first threshold, any dynamic feature graph in the dynamic feature graph set is determined to be the first feature graph.

6. The method according to claim 4, characterized in that The fusing the first feature map and the static feature map to obtain a second feature map includes: Determining a first channel parameter of the first feature map; Determining a second channel parameter of the static feature map; Based on the first channel parameter and the second channel parameter, feature data in the first feature map and the static feature map are superimposed and fused to obtain the second feature map.

7. The method according to any one of claims 4 to 6, characterized in that: The determining the association information based on the second feature graph includes: Performing dimension conversion on the second feature map to obtain a third feature map; wherein the dimension of the third feature map is smaller than the dimension of the second feature map; Based on the third feature map, determining a dependency state between feature data of different channels in the second feature map; The feature data of different channels in the second feature map are processed based on the dependency state to obtain the association information.

8. The method according to claim 1, characterized in that Before identifying the kth video frame in the video frame sequence and determining the static parameters of at least a part of the target object, the method further includes: Acquire a candidate image region; wherein the candidate image region includes an image region containing a detection object; the detection object includes the target object; Determine an object-associated region in the kth video frame; wherein the object-associated region is at least associated with the detected object; Based on the candidate image area and the object associated area, it is determined whether the kth video frame contains the target object.

9. The method according to claim 8, characterized in that The determining whether the kth video frame contains the target object based on the candidate image area and the object associated area includes: Determining a region intersection between the candidate image region and the object associated region; Determining a region union between the candidate image region and the object associated region; Based on the region intersection and the region union, it is determined whether the kth video frame contains the target object.

10. The method according to claim 9, characterized in that The determining whether the kth video frame contains the target object based on the region intersection and the region union includes: If the ratio of the region intersection to the region union is greater than or equal to a second threshold, it is determined that the kth video frame contains the target object.

11. The method according to claim 1, characterized in that The static parameters include structural parameters and posture parameters of at least part of the part; the step of identifying the kth video frame in the video frame sequence to determine the static parameters of at least part of the part of the target object includes: Extracting features from the kth video frame using a depth recognition module to determine key point parameters of at least part of the target object; Determining the structural parameters based on distance information between key points represented by the key point parameters; The posture parameters are determined based on relative position information between key points represented by the key point parameters.

12. The method according to claim 1, characterized in that The step of extracting features from the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part includes: If the mth video frame to the nth video frame contain the target object, feature extraction is performed on the mth video frame to the nth video frame to determine the dynamic parameter.

13. The method according to claim 1, characterized in that The step of extracting features from the mth video frame to the nth video frame in the video frame sequence to determine the dynamic parameters of at least part of the part includes: Convert the mth video frame to the nth video frame into an mth three-dimensional point cloud to an nth three-dimensional point cloud respectively; Performing feature extraction on the mth three-dimensional point cloud to the nth three-dimensional point cloud to obtain a three-dimensional extraction result; Based on the three-dimensional extraction result, the dynamic parameter is determined.

14. The method according to claim 1, characterized in that The method further comprises: If the matching degree between the behavior state and the target state is less than or equal to a third threshold, first information is output; wherein the first information at least includes information that the matching degree is less than or equal to the third threshold.

15. The method according to claim 14, characterized in that The method further comprises: Determining scene parameters of the scene where the target object is located; The target state corresponding to the scene parameter is determined.

16. The method according to claim 1, characterized in that The method further comprises: If the scene where the target object is located is a medical monitoring scene, the behavior state of at least part of the part in the second time period is counted to obtain a statistical result; wherein the second time period includes multiple first time periods; the first time period includes the time period between the mth moment corresponding to the mth video frame and the nth moment corresponding to the nth video frame; If the statistical result indicates that the displacement degree of at least part of the part in the second time period is less than or equal to a third threshold, second information is output; wherein the second information at least includes information that the displacement degree is less than or equal to the third threshold.

17. The method according to claim 16, characterized in that The method further comprises: If the statistical result indicates that the displacement degree of the target object in the second time period is greater than or equal to a fourth threshold, third information is output; wherein the third information at least includes information that the displacement degree is greater than or equal to the fourth threshold.

18. A behavior state determination device, characterized in that: The behavior state determining device comprises: An acquisition module, used for acquiring video data; A processing module is used to process the video data to obtain a video frame sequence; identify the kth video frame in the video frame sequence to determine the static parameters of at least part of the target object; extract features from the mth to nth video frames in the video frame sequence to determine the dynamic parameters of at least part of the target object; wherein k is an integer greater than or equal to 1; m is an integer greater than or equal to k and less than n; and n is an integer greater than 1; A determination module is used to determine the behavior state of the target object based on the static parameters and the dynamic parameters.

19. An electronic device, characterized in that: The electronic device includes a processor and a memory; a first computer program is stored in the memory; when the first computer program is executed by the processor, the behavior state determination method as described in any one of claims 1 to 17 can be implemented.

20. A computer-readable storage medium, characterized in that: The storage medium stores a second computer program; when the second computer program is executed by a processor of an electronic device, the behavior state determination method as described in any one of claims 1 to 17 can be implemented.

21. A computer program product, characterized in that The computer program product comprises a computer program; when the computer program is executed by a processor, the computer program can implement the behavior state determination method as claimed in any one of claims 1 to 17.

Citation Information

Patent Citations

  • Human body behavior identification method based on DenseNet network and frame difference method feature input

    CN110110624A

  • Data processing method and device, electronic equipment and storage medium

    CN113496200A

  • Multi-modal human body behavior recognition method and related equipment

    CN113902995A

  • Object behavior recognition method and device, equipment and medium

    CN115439922A

  • Action recognition method and device and model training method and device

    CN116311519A

Cited By

  • Limb key point identification device and method therof

    TWI933149B