A method and system for predicting calling behavior

By defining the type of phone call behavior and training the model to analyze the human skeleton coordinates and obtain the benchmark coordinates of key behavioral points, it solves the problem that the phone call behavior detection system in the existing technology is difficult to apply and predict in various situations, and realizes the detection of phone call behavior. Accurate predictions.

CN113591661BActive Publication Date: 2024-10-29SHENZHEN TIEYUE ELECTRIC CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110840176.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-24
Publication Date
2024-10-29
Estimated Expiration
2041-07-24

AI Technical Summary

Technical Problem

Existing phone call behavior detection systems are difficult to apply in many situations, and can only detect but not predict phone call behavior.

Method used

Define the type of phone call behavior, analyze the human skeleton coordinates in the sample data set by training the model, obtain the benchmark coordinates of behavioral key points, and judge or predict the phone call behavior in the video image to be tested based on these coordinates.

Benefits of technology

It realizes the prediction of phone call behavior on various occasions and improves the applicability and accuracy of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113591661B_ABST
    Figure CN113591661B_ABST
Patent Text Reader

Abstract

The present application discloses a method and system for predicting phone call behavior, which relates to the field of image recognition technology, and includes the following steps: defining phone call behavior types, the phone call behavior types including hand at left ear, hand at right ear, and hand at nose; obtaining a sample data set of phone call behavior based on the phone call behavior types; parsing the human skeleton coordinates in the sample data set through a training model, and defining behavior key points, the behavior key points including torso key points and hand key points; obtaining a key point coordinate list of each behavior key point based on the sample data set; calculating and obtaining the key point reference coordinates of the phone call behavior based on the key point coordinate list; obtaining a video image to be tested, and predicting the phone call behavior in the video image to be tested based on the key point reference coordinates and the training model. The present application has the advantage of being able to predict or judge phone call behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition technology, and in particular to a method and system for predicting phone call behavior. Background Art

[0002] In recent years, with the development of intelligent technology, smartphones are used more and more frequently in various occasions. However, some public places and workplaces prohibit making phone calls, such as gas stations, driving, etc. Therefore, for the sake of personnel safety, to prevent the occurrence of phone calls in specific occasions, the phone call detection system is of great significance. In the related technology, multi-order model fusion is adopted. The multi-order model includes a car window detection model, a face detection model, a driver positioning detection module, a driver hand detection module, etc., to detect the driver's phone call behavior in a fixed scene in the cab.

[0003] Regarding the above-mentioned related technologies, the inventors believe that there are the following defects: due to the use of a specific detection model, the above method is difficult to apply to other situations where making phone calls is prohibited, and the above method can only detect phone call behavior, but it is difficult to predict phone call behavior. Summary of the invention

[0004] In order to improve the defect that the calling behavior detection system is difficult to predict the calling behavior, the present application provides a calling behavior prediction method and system.

[0005] In a first aspect, the present application provides a method for predicting calling behavior, which specifically comprises the following steps:

[0006] defining a calling behavior type, wherein the calling behavior type includes a hand on left ear type, a hand on right ear type, and a hand on nose type;

[0007] Acquire a sample data set based on the phone call behavior type, the sample data set comprising a plurality of sampled video images containing phone call behaviors;

[0008] Parsing the human skeleton coordinates in the sample data set through the training model, and defining behavioral key points, wherein the behavioral key points include torso key points and hand key points;

[0009] Based on the sample data set, respectively obtain a key point coordinate list of each behavior key point;

[0010] Calculate and obtain the key point reference coordinates of the calling behavior based on the key point coordinate list;

[0011] The video image to be tested is acquired, and the phone call behavior in the video image to be tested is judged or predicted based on the key point reference coordinates and the training model.

[0012] By adopting the above technical solution, the calling behavior type is defined according to the behavioral characteristics of the public when making phone calls in big data, and multiple sampled video images are collected according to the calling behavior type and integrated into a sample data set. The sample data set is parsed through a training model to obtain the key point reference coordinates of the calling behavior. The key point reference coordinates can reflect the behavioral characteristics of the calling behavior. Based on the key point reference coordinates and the training model, the calling behavior in the video image to be tested can be judged or predicted.

[0013] Optionally, obtaining a key point coordinate list of each behavior key point based on the sample data set includes the following steps:

[0014] Respectively obtain the trunk key points of all sampled video images in the sample data set, wherein the trunk key points include a left ear node, a right ear node and a nose node;

[0015] Based on the human skeleton coordinates, respectively obtain the left ear node coordinates, the right ear node coordinates and the nose node coordinates;

[0016] According to the occlusion condition of the trunk key points, respectively calculating the coordinates of the trunk key points of each of the sampled video images;

[0017] The torso key point coordinates of all sampled video images in the sample data set are integrated to obtain a torso key point coordinate list.

[0018] By adopting the above technical solution, since the types of calling behaviors include hand on left ear, hand on right ear and hand on nose, the left ear node, right ear node and nose node are obtained in the torso key points of the sampled video image, and the node coordinates of the three nodes are obtained. Since the nodes of the torso key points in the sampled video image may be blocked by obstructions, the torso key point coordinates of the sampled video image are calculated based on the occlusion situation, and then the torso key point coordinates of all the sampled video images in the sample data are integrated to obtain a torso key point coordinate list.

[0019] Optionally, obtaining a key point coordinate list of each behavior key point based on the sample data set further includes the following steps:

[0020] Respectively obtain the hand key points of all sampled video images in the sample data set, wherein the hand key points include a plurality of key nodes;

[0021] Based on the human skeleton coordinates, respectively obtain the key node coordinates of each key node;

[0022] According to the occlusion condition of the hand key points, respectively calculating the hand key point coordinates of each of the sampled video images;

[0023] The hand key point coordinates of all sampled video images in the sample data set are integrated to obtain a hand key point coordinate list.

[0024] By adopting the above technical solution, since people usually use handheld communication devices to make calls, it is also necessary to obtain the hand key points in the sampled video image. Each hand can be designated as a key node, and the key node coordinates can be obtained. Since the hand key nodes may also be blocked in the sampled video image, the situation of the hand key nodes is comprehensively considered, the hand key point coordinates in the sampled video image are calculated, and then integrated to obtain a hand key point coordinate list.

[0025] Optionally, according to the occlusion condition of the torso key point, respectively calculating the coordinates of the torso key point of each sampled video image comprises the following steps:

[0026] Determine the occlusion conditions of the left ear node, the right ear node, and the nose node;

[0027] If all three nodes are not blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the three nodes;

[0028] If any node is blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the other two nodes;

[0029] If any two nodes are occluded, the node coordinates of the other node are the trunk key point coordinates.

[0030] By adopting the above technical solution, the obscured nodes in the trunk key points are screened out, and then the coordinate mean of the unobstructed nodes is calculated, and the coordinate mean is used as the coordinate of the trunk key point.

[0031] Optionally, according to the occlusion condition of the hand key point, respectively calculating the hand key point coordinates of each sampled video image comprises the following steps:

[0032] Determine the occlusion status of all key nodes;

[0033] If all key nodes are not blocked, the coordinates of the hand key points are obtained by calculating the mean of the coordinates of all key nodes;

[0034] If multiple key nodes are blocked and the number of unblocked key nodes is not less than 2, the coordinates of the hand key points are obtained by calculating the mean of the coordinates of the unblocked key nodes;

[0035] If one of the key nodes is not occluded and all other key nodes are occluded, the key node coordinates of the unoccluded key node are the hand key point coordinates.

[0036] By adopting the above technical solution, the occluded key nodes in the hand key points are screened out, and then the coordinate mean of the unoccluded key nodes is calculated, and the coordinate mean is used as the coordinates of the hand key points.

[0037] Optionally, calculating and obtaining the key point reference coordinates of the calling behavior based on the key point coordinate list includes the following steps:

[0038] Obtaining the trunk key point reference coordinates by calculating the coordinate mean of all trunk key point coordinates in the trunk key point coordinate list;

[0039] The hand key point reference coordinates are obtained by calculating the coordinate mean of all hand key point coordinates in the hand key point coordinate list.

[0040] By adopting the above technical solution, by calculating the mean of the torso key point coordinate list and the hand key point coordinate list, some torso key point coordinates and hand key point coordinates with large offsets can be screened out, and the final average of the two coordinates can be used as the torso key point reference coordinates and the hand key point reference coordinates.

[0041] Optionally, judging or predicting the phone call behavior in the video image to be tested based on the key point reference coordinates and the training model includes the following steps:

[0042] Calculate and obtain the Euclidean distance between the trunk key point reference coordinates and the hand key point reference coordinates;

[0043] Obtaining a prediction range according to the Euclidean distance;

[0044] Obtaining actual human skeleton coordinates of the video image to be tested through analysis of the training model;

[0045] Acquire the coordinates of all actual behavior key points based on the actual human skeleton coordinates, and calculate the actual Euclidean distance between the actual torso key points and the actual hand key points in the video image to be tested according to the actual behavior key point coordinates;

[0046] The calling behavior in the video image to be tested is judged or predicted according to the actual Euclidean distance and the prediction range.

[0047] By adopting the above technical solution, the Euclidean distance between the reference coordinates of the key points of the torso and the reference coordinates of the key points of the hand in space is first calculated, so as to obtain the approximate range between the hands and the torso in the public's phone calling behavior. Therefore, the predicted range is obtained according to the calculated Euclidean distance, and then the actual Euclidean distance in the video image to be tested is calculated. According to whether the actual Euclidean distance is within the predicted range, the phone calling behavior in the video image to be tested is judged or predicted.

[0048] Optionally, judging or predicting the phone call behavior in the video image to be tested according to the actual Euclidean distance and the prediction range includes the following steps:

[0049] Defining a behavior occurrence range based on the prediction range, wherein the behavior occurrence range is smaller than the prediction range;

[0050] Determining whether the actual Euclidean distance is within the range where the behavior occurs;

[0051] If the actual Euclidean distance is within the behavior occurrence range, determining whether the time during which the actual Euclidean distance is within the behavior occurrence range exceeds a preset first determination time;

[0052] If the preset first determination time is exceeded, determining that the calling behavior occurs in the video image to be tested;

[0053] If the actual Euclidean distance is not within the behavior occurrence range or the time during which the actual Euclidean distance is within the behavior occurrence range does not exceed a preset first determination time, it is determined that the phone call behavior does not appear in the video image to be tested.

[0054] By adopting the above technical solution, since the phone call behavior in the video image to be tested may have occurred, the behavior occurrence range is first defined according to the prediction range, and then a judgment is made by determining whether the actual Euclidean distance is within the behavior occurrence range. If it is within the behavior occurrence range, a judgment is made as to whether the time within the range exceeds the first judgment time. Phone call behavior is a continuous action, and the person in the video image to be tested may have short-term actions such as touching the ears or lifting the hair, which causes the actual Euclidean distance to be within the behavior occurrence range in a short period of time. Therefore, the setting of the first judgment time can screen out erroneous judgments caused by short-term actions.

[0055] Optionally, judging or predicting the phone call behavior in the video image to be tested according to the actual Euclidean distance and the prediction range further includes the following steps:

[0056] Determining whether the actual Euclidean distance is within the prediction range;

[0057] If the actual Euclidean distance is within the prediction range, determining whether the time during which the actual Euclidean distance is within the prediction range exceeds a preset second determination time;

[0058] If the preset second determination time is exceeded, predicting that the calling behavior will appear in the video image to be tested;

[0059] If the actual Euclidean distance is not within the prediction range or the time during which the actual Euclidean distance is within the prediction range does not exceed a preset second determination time, it is predicted that the calling behavior will not appear in the video image to be tested.

[0060] By adopting the above technical solution, by judging whether the actual Euclidean distance is within the prediction range, the occurrence of phone calls in the video image to be tested can be predicted. If the actual Euclidean distance is within the prediction range and exceeds the second judgment time, it is predicted that a phone call will appear in the video image to be tested. By setting the second judgment time, the influence of short-term actions on the prediction results can be screened out.

[0061] In a second aspect, the present application further provides a calling behavior prediction system, which adopts the calling behavior prediction method described in the first aspect, and specifically includes:

[0062] A video image acquisition module, used for acquiring the sampled video image and the video image to be tested;

[0063] The analysis and prediction module is connected to the video image acquisition module to receive the sampled video image and the video image to be tested, obtains the behavioral characteristics of the phone call behavior according to the sampled video image analysis, and judges or predicts the phone call behavior in the video image to be tested based on the behavioral characteristics.

[0064] By adopting the above technical solution, the calling behavior type is defined according to the behavioral characteristics of the public when making phone calls in big data, and multiple sampled video images are collected through the video image acquisition module according to the calling behavior type and integrated into a sample data set. The sample data set is analyzed by the training model in the analysis and prediction module to obtain the key point reference coordinates of the calling behavior, which can reflect the behavioral characteristics of the calling behavior. The video image to be tested is then collected through the video image acquisition module, and the calling behavior in the video image to be tested can be judged or predicted based on the key point reference coordinates and the training model.

[0065] In summary, the present application includes at least one of the following beneficial technical effects:

[0066] 1. Based on big data collection, sample video images of the public's phone calls are obtained, and the behavioral characteristics of the phone calls are identified, and then the phone calls in the video images to be tested are judged or predicted based on the behavioral characteristics.

[0067] 2. Since the training model is trained through a sample data set, and the calling behavior is judged or predicted based on the training model, and the collection of sampled video images in the sample data set is not restricted by the occasion, the training model can be applied to a variety of occasions. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a flowchart of a method for predicting calling behavior according to one embodiment of the present application.

[0069] Figure 2 This is a schematic diagram of the process of obtaining a list of key point coordinates of each behavior key point in one embodiment of the present application. Figure 1 .

[0070] Figure 3 This is a schematic diagram of the process of obtaining a list of key point coordinates of each behavior key point in one embodiment of the present application. Figure 2 .

[0071] Figure 4 It is a schematic diagram of a flow chart of calculating the coordinates of the torso key points of each sampled video image respectively according to one embodiment of the present application.

[0072] Figure 5 It is a schematic diagram of a flow chart of calculating the coordinates of the hand key points of each sampled video image respectively according to one embodiment of the present application.

[0073] Figure 6 It is a flowchart of obtaining the reference coordinates of key points of a phone call behavior according to one embodiment of the present application.

[0074] Figure 7 This is a schematic diagram of a process for determining or predicting a phone call behavior in a video image to be tested according to one embodiment of the present application. Figure 1 .

[0075] Figure 8 This is a schematic diagram of a process for determining or predicting a phone call behavior in a video image to be tested according to one embodiment of the present application. Figure 2 .

[0076] Fig. 9 This is a schematic diagram of a process for determining or predicting a phone call behavior in a video image to be tested according to one embodiment of the present application. Figure 3 . DETAILED DESCRIPTION

[0077] The following is combined with Figure 1-9 This application is described in further detail.

[0078] The embodiment of the present application discloses a phone call behavior prediction system, including a video image acquisition module and an analysis prediction module, wherein the video image acquisition module may be a camera, and the video image acquisition module is used to acquire sampled video images and video images to be tested. The analysis prediction module may be an image recognition device, and the analysis prediction module is connected to the video image acquisition module, and receives the sampled video images and the video images to be tested, obtains the behavior characteristics of the phone call behavior according to the sampled video images, and judges or predicts the phone call behavior in the video images to be tested based on the behavior characteristics.

[0079] The embodiment of the present application also discloses a method for predicting phone call behavior.

[0080] Reference Figure 1 ,The calling behavior prediction method specifically includes the following steps:

[0081] 101. Define the type of calling behavior.

[0082] Among them, based on the characteristics of the common behavioral actions of the public when making phone calls in big data, the types of calling behavior are defined, including hand on left ear, hand on right ear, and hand on nose.

[0083] 102. Acquire a sample data set based on the calling behavior type.

[0084] Among them, a plurality of sampled video images are collected through a video image collection module, the sampled video images include the behavior of a person when making a phone call, and the plurality of sampled video images are integrated into a sample data set.

[0085] 103, parsing the human skeleton coordinates in the sample data set through the training model, and defining the behavior key points.

[0086] Among them, the training model can be an openpose model. Through the training model, the human skeleton coordinates in each sampled video image in the sample data set can be parsed. The human skeleton coordinates include the coordinates of 25 joints of the human trunk and 22 joints of the left and right hands. According to the behavioral characteristics when making a phone call, multiple joints of the trunk and hands are defined as behavioral key points.

[0087] 104 , based on the sample data set, respectively obtain a key point coordinate list of each of the behavior key points.

[0088] 105. Calculate and obtain the key point reference coordinates of the calling behavior based on the key point coordinate list.

[0089] 106 , obtaining a video image to be tested, and judging or predicting a phone call behavior in the video image to be tested based on the key point reference coordinates and the training model.

[0090] Wherein, the video image to be tested is acquired through the video image acquisition module.

[0091] The implementation principle of this embodiment is:

[0092] According to the behavioral characteristics of the public when making phone calls in big data, the types of calling behavior are defined. According to the types of calling behavior, multiple sampled video images are collected and integrated into a sample data set. The sample data set is parsed through a training model to obtain the key point reference coordinates of the calling behavior. The key point reference coordinates can reflect the behavioral characteristics of the calling behavior. Based on the key point reference coordinates and the training model, the calling behavior in the video image to be tested can be judged or predicted.

[0093] exist Figure 1 In step 104 of the illustrated embodiment, the coordinates of all the trunk key points of each sampled video image in the sample data set are obtained, and then the coordinates of all the trunk key points are integrated into a trunk key point coordinate list, specifically by Figure 2 The illustrated embodiment is described in detail.

[0094] Reference Figure 2 , get the torso key point coordinate list of the torso key points, specifically including the following steps:

[0095] 201, respectively obtain the torso key points of all sampled video images in the sample data set.

[0096] When making a phone call, the user usually holds the phone next to the ears or nose, so the trunk key points include the left ear node, the right ear node, and the nose node. In the openpose model, the left ear node is numbered 17, the right ear node is numbered 18, and the nose node is numbered 0. In special scenarios, the trunk key points will also include various nodes on the trunk.

[0097] 202. Obtain left ear node coordinates, right ear node coordinates, and nose node coordinates respectively based on the human skeleton coordinates.

[0098] Among them, the coordinates of the left ear node are (x 17 ,y 17 ), the coordinates of the right ear node are (x 18 ,y 18 ), the nose node coordinates are (x0, y0).

[0099] 203 , according to the occlusion condition of the trunk key points, respectively calculate the coordinates of the trunk key points of each of the sampled video images.

[0100] Assuming that there are n sampled video images, where n≥2, the calculated coordinates of the torso key points are ( , ).

[0101] 204 , integrating the coordinates of the trunk key points of all sampled video images in the sample data set to obtain a trunk key point coordinate list.

[0102] Among them, the coordinates of all trunk key points are integrated to obtain the trunk key point coordinate list, which is as follows:

[0103] [( , ),( , ), ..., ( , )]

[0104] The implementation principle of this embodiment is:

[0105] Since the types of calling behaviors include hand on left ear, hand on right ear and hand on nose, the left ear node, right ear node and nose node are obtained from the torso key points of the sampled video image, and the node coordinates of the three nodes are obtained. Since the nodes of the torso key points in the sampled video image may be blocked by occluders, the torso key point coordinates of the sampled video image are calculated based on the occlusion situation, and then the torso key point coordinates of all the sampled video images in the sample data are integrated to obtain a torso key point coordinate list.

[0106] exist Figure 1 In step 104 of the illustrated embodiment, the coordinates of all the hand key points of each sampled video image in the sample data set are obtained, and then the coordinates of all the hand key points are integrated into a hand key point coordinate list, specifically by Figure 3 The illustrated embodiment is described in detail.

[0107] Reference Figure 3 , get the hand key point coordinate list of the hand key points, specifically including the following steps:

[0108] 301 , respectively obtain the hand key points of all sampled video images in the sample data set.

[0109] Among them, the hand key points include the five finger key nodes of the left hand or the five finger key nodes of the right hand. In the openpose model, the serial numbers of the five finger key nodes of the left hand or the five finger key nodes of the right hand are [4, 8, 12, 16, 20].

[0110] 302. Obtain key node coordinates of each key node based on the human skeleton coordinates.

[0111] Here, refer to step 202 to define the key node coordinates of the five fingers of the left hand and the five fingers of the right hand.

[0112] 303 , respectively calculating the coordinates of the hand key points of each of the sampled video images according to the occlusion condition of the hand key points.

[0113] Assuming that there are n sampled video images, where n≥2, the calculated coordinates of the left-hand key points are ( , ), the coordinates of the right-hand key point are ( , ).

[0114] 304 , integrating the hand key point coordinates of all sampled video images in the sample data set to obtain a hand key point coordinate list.

[0115] Among them, the coordinates of all left-hand key points are integrated to obtain the left-hand key point coordinate list, which is as follows:

[0116] [( , ),( , ), ..., ( , )]

[0117] Integrate all right-hand key point coordinates to get the right-hand key point coordinate list, as follows:

[0118] [( , ),( , ), ..., ( , )]

[0119] The implementation principle of this embodiment is:

[0120] Since people usually use handheld devices to make calls, it is also necessary to obtain the hand key points in the sampled video image. Each hand can be designated as a key node and the key node coordinates can be obtained. Since the hand key nodes may also be blocked in the sampled video image, the hand key nodes coordinates in the sampled video image are calculated based on this situation, and then integrated to obtain a list of hand key point coordinates.

[0121] exist Figure 2 In step 203 of the illustrated embodiment, the coordinates of the trunk key points in each sampled video image are calculated, wherein if the node is blocked, the coordinates are 0, and if the node is not blocked, the node coordinates are obtained for calculation, specifically by Figure 4 The illustrated embodiment is described in detail.

[0122] Reference Figure 4, calculate the coordinates of the torso key points of each sampled video image respectively, which specifically includes the following steps:

[0123] 401, determine the occlusion status of the left ear node, the right ear node and the nose node. If all three nodes are not occluded, execute step 402; if any one node is occluded, execute step 403; if any two nodes are occluded, execute step 404.

[0124] 402, obtaining the coordinates of the trunk key points by calculating the mean coordinates of the three nodes.

[0125] Among them, since the three nodes are not blocked, the coordinates of the three nodes are calculated to get the coordinates of the trunk key points. The specific calculation formula is as follows:

[0126] ,

[0127] In the formula, is the horizontal coordinate of the trunk key point coordinate, is the ordinate of the trunk key point coordinates, and i is the i-th sampled video image.

[0128] 403, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the other two nodes.

[0129] Among them, assuming that the nose is blocked:

[0130] =0, =0

[0131] ,

[0132] Assume that the right ear is blocked:

[0133] =0, =0

[0134] ,

[0135] Assume that the left ear is blocked:

[0136] =0, =0

[0137] ,

[0138] Where i is the i-th sampled video image.

[0139] 404, the node coordinates of another node are the trunk key point coordinates.

[0140] The implementation principle of this embodiment is:

[0141] The occluded nodes in the trunk key points are screened out, and then the coordinate mean of the unoccluded nodes is calculated, and the coordinate mean is used as the coordinate of the trunk key points.

[0142] exist Figure 3 In step 303 of the illustrated embodiment, the coordinates of the hand key points in each sampled video image are calculated, wherein if the node is blocked, the coordinates are 0, and if the node is not blocked, the node coordinates are obtained for calculation, specifically by Figure 5 The illustrated embodiment is described in detail.

[0143] Reference Figure 5 , respectively calculate the coordinates of the hand key points of each sampled video image, specifically including the following steps:

[0144] 501, determine the occlusion status of all key nodes. If all key nodes are not occluded, execute step 502; if multiple key nodes are occluded and the number of unoccluded key nodes is not less than 2, execute step 503; if one of the key nodes is not occluded and all other key nodes are occluded, execute step 504.

[0145] 502, obtaining the coordinates of the key points of the hand by calculating the mean of the coordinates of all the key nodes.

[0146] Taking the left hand as an example, the coordinates of the key points of the hand are calculated by the calculation formula, which is as follows:

[0147] ,

[0148] In the formula, is the horizontal coordinate of the left-hand key point coordinate, is the ordinate of the left-hand key point coordinate, and i is the i-th sampled video image.

[0149] 503, obtaining the coordinates of the key points of the hand by calculating the mean coordinates of the key nodes that are not blocked.

[0150] For specific calculation steps, please refer to the detailed description of step 403 and step 502.

[0151] 504, the key node coordinates of the unoccluded key nodes are the hand key point coordinates.

[0152] The implementation principle of this embodiment is:

[0153] The occluded key nodes in the hand key points are filtered out, and then the coordinate mean of the unoccluded key nodes is calculated, and the coordinate mean is used as the coordinate of the hand key point.

[0154] exist Figure 1 In step 105 of the embodiment shown, the key point coordinate list is obtained and the key point reference coordinates of the calling behavior are obtained by calculating the average value. Figure 6 The illustrated embodiment is described in detail.

[0155] Reference Figure 6 , obtain the reference coordinates of the key points of the calling behavior, including the following steps:

[0156] 601. Obtain trunk key point reference coordinates by calculating the coordinate mean of all trunk key point coordinates in the trunk key point coordinate list.

[0157] Among them, if the coordinate list of the trunk key points are all non-zero coordinates, the coordinate mean is calculated by the calculation formula. The specific calculation formula is as follows:

[0158] =

[0159] =

[0160] Therefore, the reference coordinates of the torso key points are ( , ).

[0161] 602. Obtain hand key point reference coordinates by calculating the coordinate mean of all hand key point coordinates in the hand key point coordinate list.

[0162] Among them, if the left-hand key point coordinate list is all non-zero coordinates, the coordinate mean is calculated by the calculation formula. The specific calculation formula is as follows:

[0163] =

[0164] =

[0165] If the right-hand key point coordinate list is all non-zero coordinates, the coordinate mean is calculated using the calculation formula. The specific calculation formula is as follows:

[0166] =

[0167] =

[0168] Therefore, the reference coordinates of the left-hand key point are ( , ), the reference coordinates of the right-hand key point are ( , ).

[0169] The implementation principle of this embodiment is:

[0170] By calculating the mean of the torso key point coordinate list and the hand key point coordinate list, some torso key point coordinates and hand key point coordinates with large offsets can be screened out, and the final average of the two coordinates can be used as the torso key point reference coordinates and the hand key point reference coordinates.

[0171] exist Figure 6 In step 601 and step 602 of the embodiment shown in the figure, after obtaining the reference coordinates of the key points, the calling behavior in the video image to be tested is judged or predicted by the training model. Figure 7 The illustrated embodiment is described in detail.

[0172] Reference Figure 7 , judging or predicting the calling behavior in the video image to be tested, specifically comprises the following steps:

[0173] 701, calculate and obtain the Euclidean distance between the trunk key point reference coordinates and the hand key point reference coordinates.

[0174] Among them, the Euclidean distance between the reference coordinates of the torso key point and the reference coordinates of the left hand key point is calculated using the following formula:

[0175]

[0176] Calculate the Euclidean distance between the base coordinates of the torso key point and the base coordinates of the right hand key point. The calculation formula is as follows:

[0177]

[0178] In the formula, is the Euclidean distance between the base coordinates of the torso key point and the base coordinates of the left hand key point, is the Euclidean distance between the base coordinates of the torso key point and the base coordinates of the right hand key point.

[0179] 702. Obtain a prediction range according to the Euclidean distance.

[0180] The prediction range can be set as [ , 2 ],[ , 2 ].

[0181] 703. Obtain actual human skeleton coordinates of the video image to be tested through analysis of the training model.

[0182] 704, acquiring the coordinates of all actual behavior key points based on the actual human skeleton coordinates, and calculating the actual Euclidean distance between the actual torso key points and the actual hand key points in the video image to be tested according to the actual behavior key point coordinates.

[0183] Among them, through Figure 4 The embodiment shown, Figure 5 The embodiments shown and Figure 6 In the embodiment shown, the actual behavior key point coordinates in the video image to be tested are derived and calculated, including the actual torso key point coordinates ( , ), the actual left-hand key point coordinates ( , ), the actual right-hand key point coordinates ( , );

[0184] The actual Euclidean distance between the actual torso key point and the actual left hand key point is calculated by the formula. The specific formula is as follows:

[0185]

[0186] The actual Euclidean distance between the actual torso key point and the actual right hand key point is calculated by the formula. The specific formula is as follows:

[0187]

[0188] In the formula, is the actual Euclidean distance between the actual torso key point and the actual left hand key point, is the actual Euclidean distance between the actual torso keypoint and the actual right hand keypoint.

[0189] 705 , judging or predicting the phone-calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range.

[0190] The implementation principle of this embodiment is:

[0191] First, the Euclidean distance between the base coordinates of the torso key points and the base coordinates of the left / right hand key points in space is calculated to obtain the approximate range between the hands and torso in the public's phone-making behavior. Therefore, the prediction range is obtained based on the calculated Euclidean distance, and then the actual Euclidean distance in the video image to be tested is calculated. Depending on whether the actual Euclidean distance is within the prediction range, the phone-making behavior in the video image to be tested can be judged or predicted.

[0192] exist Figure 7 In step 705 of the embodiment shown, after calculating the actual Euclidean distance, the calling behavior in the video image to be tested is determined according to the predicted range, specifically by Figure 8The illustrated embodiment is described in detail.

[0193] Reference Figure 8 , judging the calling behavior in the video image to be tested, specifically includes the following steps:

[0194] 801. Define a behavior occurrence range based on the prediction range, wherein the behavior occurrence range is smaller than the prediction range.

[0195] If the prediction range is set to [ , 2 ],[ , 2 ], the range of the behavior can be set to [0, ],[0, ].

[0196] 802, determining whether the actual Euclidean distance is within the range of the behavior occurrence, if so, executing step 803; if not, executing step 805.

[0197] 803, determining whether the time during which the actual Euclidean distance is within the behavior occurrence range exceeds a preset first determination time, if so, executing step 804; if not, executing step 805.

[0198] The first judgment time can be preset to 20 seconds. or If any of the conditions exceeds 20 seconds, step 804 is executed.

[0199] 804 , determining whether the calling behavior occurs in the video image to be tested.

[0200] 805 , determining that the calling behavior does not appear in the video image to be tested.

[0201] The implementation principle of this embodiment is:

[0202] Since the phone call behavior in the video image to be tested may have already occurred, the behavior occurrence range is first defined based on the prediction range, and then a judgment is made whether the actual Euclidean distance is within the behavior occurrence range. If it is within the behavior occurrence range, a judgment is made whether the time within the range exceeds the first judgment time. Phone call behavior is a continuous action, and the person in the video image to be tested may have short-term actions such as touching the ears or lifting the hair, which may cause the actual Euclidean distance to be within the behavior occurrence range in a short period of time. Therefore, the setting of the first judgment time can screen out erroneous judgments caused by short-term actions.

[0203] exist Figure 7In step 705 of the embodiment shown, after calculating the actual Euclidean distance, the calling behavior in the video image to be tested is predicted according to the prediction range, specifically by Fig. 9 The illustrated embodiment is described in detail.

[0204] Reference Fig. 9 , predicting the calling behavior in the video image to be tested, specifically includes the following steps:

[0205] 901, determine whether the actual Euclidean distance is within the prediction range, if so, execute step 902; if not, execute step 904.

[0206] 902, determine whether the time during which the actual Euclidean distance is in the prediction range exceeds a preset second determination time, if so, execute step 903; if not, execute step 904.

[0207] Assuming that the preset second judgment time is 10s, at this time, if or If any of the conditions exceeds 10 seconds, step 803 is executed.

[0208] 903 , predicting that the calling behavior will appear in the video image to be tested.

[0209] 904 , predicting that the calling behavior will not appear in the video image to be tested.

[0210] The implementation principle of this embodiment is:

[0211] By judging whether the actual Euclidean distance is within the prediction range, the occurrence of phone calls in the video image to be tested is predicted. If the actual Euclidean distance is within the prediction range and exceeds the second judgment time, it is predicted that phone calls will appear in the video image to be tested. By setting the second judgment time, the influence of short-term actions on the prediction results can be screened out.

[0212] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method for predicting calling behavior, characterized in that: The steps include: defining a calling behavior type, wherein the calling behavior type includes a hand on left ear type, a hand on right ear type, and a hand on nose type; Acquire a sample data set based on the phone call behavior type, the sample data set comprising a plurality of sampled video images containing phone call behaviors; Parsing the human skeleton coordinates in the sample data set through the training model, and defining behavioral key points, wherein the behavioral key points include torso key points and hand key points; Based on the sample data set, respectively obtain a key point coordinate list of each behavior key point; Calculate and obtain the key point reference coordinates of the calling behavior based on the key point coordinate list; Acquire a video image to be tested, and judge or predict a phone call behavior in the video image to be tested based on the key point reference coordinates and the training model; The step of obtaining a key point coordinate table of each behavior key point based on the sample data set comprises the following steps: Respectively obtain the trunk key points of all sampled video images in the sample data set, wherein the trunk key points include a left ear node, a right ear node and a nose node; Based on the human skeleton coordinates, respectively obtain the left ear node coordinates, the right ear node coordinates and the nose node coordinates; According to the occlusion condition of the trunk key points, respectively calculating the coordinates of the trunk key points of each of the sampled video images; Integrate the torso key point coordinates of all sampled video images in the sample data set to obtain a torso key point coordinate list; The step of calculating the coordinates of the trunk key points of each sampled video image according to the occlusion of the trunk key points comprises the following steps: Determine the occlusion conditions of the left ear node, the right ear node, and the nose node; If all three nodes are not blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the three nodes; If any node is blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the other two nodes; If any two nodes are occluded, the node coordinates of the other node are the trunk key point coordinates; The step of judging or predicting the calling behavior in the video image to be tested based on the key point reference coordinates and the training model comprises the following steps: Calculate and obtain the Euclidean distance between the trunk key point reference coordinates and the hand key point reference coordinates; Obtaining a prediction range according to the Euclidean distance; Obtaining actual human skeleton coordinates of the video image to be tested by analyzing the training model; Acquire the coordinates of all actual behavior key points based on the actual human skeleton coordinates, and calculate the actual Euclidean distance between the actual torso key points and the actual hand key points in the video image to be tested according to the actual behavior key point coordinates; Judging or predicting the phone-calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range; The step of judging or predicting the calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range comprises the following steps: Defining a behavior occurrence range based on the prediction range, wherein the behavior occurrence range is smaller than the prediction range; Determining whether the actual Euclidean distance is within the range where the behavior occurs; If the actual Euclidean distance is within the behavior occurrence range, determining whether the time during which the actual Euclidean distance is within the behavior occurrence range exceeds a preset first determination time; If the preset first determination time is exceeded, determining that the calling behavior occurs in the video image to be tested; If the actual Euclidean distance is not within the behavior occurrence range or the time during which the actual Euclidean distance is within the behavior occurrence range does not exceed a preset first determination time, it is determined that the phone call behavior does not appear in the video image to be tested.

2. A method for predicting calling behavior according to claim 1, characterized in that: The step of respectively obtaining a key point coordinate list of each behavior key point based on the sample data set further comprises the following steps: Respectively obtain the hand key points of all sampled video images in the sample data set, wherein the hand key points include a plurality of key nodes; Based on the human skeleton coordinates, respectively obtain the key node coordinates of each key node; According to the occlusion condition of the hand key points, respectively calculating the hand key point coordinates of each of the sampled video images; The hand key point coordinates of all sampled video images in the sample data set are integrated to obtain a hand key point coordinate list.

3. A method for predicting calling behavior according to claim 2, characterized in that: The step of calculating the coordinates of the hand key points of each sampled video image according to the occlusion of the hand key points comprises the following steps: Determine the occlusion status of all key nodes; If all key nodes are not blocked, the coordinates of the hand key points are obtained by calculating the mean of the coordinates of all key nodes; If multiple key nodes are blocked and the number of unblocked key nodes is not less than 2, the coordinates of the hand key points are obtained by calculating the mean of the coordinates of the unblocked key nodes; If one of the key nodes is not occluded and all other key nodes are occluded, the key node coordinates of the unoccluded key node are the hand key point coordinates.

4. A method for predicting calling behavior according to claim 2 or 3, characterized in that: The step of calculating and obtaining the key point reference coordinates of the calling behavior based on the key point coordinate list comprises the following steps: Obtaining the trunk key point reference coordinates by calculating the coordinate mean of all trunk key point coordinates in the trunk key point coordinate list; The hand key point reference coordinates are obtained by calculating the coordinate mean of all hand key point coordinates in the hand key point coordinate list.

5. A method for predicting calling behavior according to claim 1, characterized in that: The step of judging or predicting the calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range further comprises the following steps: Determining whether the actual Euclidean distance is within the prediction range; If the actual Euclidean distance is within the prediction range, determining whether the time during which the actual Euclidean distance is within the prediction range exceeds a preset second determination time; If the time that the actual Euclidean distance is in the prediction range exceeds the second determination time, it is predicted that the phone call behavior will not appear in the video image to be tested.

6. A phone call behavior prediction system, characterized in that: include: A video image acquisition module, used to acquire sampled video images and video images to be tested; an analysis and prediction module, connected to the video image acquisition module to receive the sampled video image and the video image to be tested, analyzing the sampled video image to obtain behavioral characteristics of the phone call behavior, and judging or predicting the phone call behavior in the video image to be tested based on the behavioral characteristics; The analysis and prediction module obtains the key point coordinate table of each behavior key point based on the sample data set, including the following steps: Respectively obtain the trunk key points of all sampled video images in the sample data set, wherein the trunk key points include a left ear node, a right ear node and a nose node; Based on the human skeleton coordinates, the left ear node coordinates, the right ear node coordinates and the nose node coordinates are obtained respectively; According to the occlusion condition of the trunk key points, respectively calculating the coordinates of the trunk key points of each of the sampled video images; Integrate the torso key point coordinates of all sampled video images in the sample data set to obtain a torso key point coordinate list; The analysis and prediction module calculates the coordinates of the trunk key points of each sampled video image according to the occlusion of the trunk key points, including the following steps: Determine the occlusion conditions of the left ear node, the right ear node, and the nose node; If all three nodes are not blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the three nodes; If any node is blocked, the coordinates of the trunk key points are obtained by calculating the mean of the coordinates of the other two nodes; If any two nodes are occluded, the node coordinates of the other node are the trunk key point coordinates; The analysis and prediction module is also used to perform the following operations: Judging or predicting the calling behavior in the video image to be tested based on the key point reference coordinates and the training model includes the following steps: Calculate and obtain the Euclidean distance between the reference coordinates of the trunk key points and the reference coordinates of the hand key points; Obtaining a prediction range according to the Euclidean distance; Obtaining actual human skeleton coordinates of the video image to be tested by analyzing the training model; Acquire the coordinates of all actual behavior key points based on the actual human skeleton coordinates, and calculate the actual Euclidean distance between the actual torso key points and the actual hand key points in the video image to be tested according to the actual behavior key point coordinates; Judging or predicting the phone-calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range; The step of judging or predicting the calling behavior in the video image to be tested according to the actual Euclidean distance and the prediction range comprises the following steps: Defining a behavior occurrence range based on the prediction range, wherein the behavior occurrence range is smaller than the prediction range; Determining whether the actual Euclidean distance is within the range where the behavior occurs; If the actual Euclidean distance is within the behavior occurrence range, determining whether the time during which the actual Euclidean distance is within the behavior occurrence range exceeds a preset first determination time; If the preset first determination time is exceeded, determining that the calling behavior occurs in the video image to be tested; If the actual Euclidean distance is not within the behavior occurrence range or the time during which the actual Euclidean distance is within the behavior occurrence range does not exceed a preset first determination time, it is determined that the phone call behavior does not appear in the video image to be tested.

Citation Information

Patent Citations

  • Kinect-based call making and answering monitoring method of driver

    CN105469073A

  • Dangerous driving behavior recognition method based on bone characteristics

    CN108446678A

  • Clothing identification method, system and terminal based on human body key node prediction

    CN110188701A