Method, device and equipment for detecting abnormal user identity based on the Internet of Things

CN116721462BActive Publication Date: 2024-11-05SHENZHEN HUIRUITONG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310558156.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-05
Estimated Expiration
2043-05-17

Smart Images

  • Figure CN116721462B_ABST
    Figure CN116721462B_ABST
Patent Text Reader

Abstract

The present application is applicable to the technical field of the Internet of Things, and provides a detection method, device and equipment for realizing abnormal user identity based on the Internet of Things, the method comprising: obtaining video data, and extracting the first frame image and the last frame image of the user in a walking cycle in the video data; calculating the first angle between the legs in the human body joint point and the first intersection corresponding to the first angle, and calculating the first angular velocity according to the first angle and the frame duration; calculating the second angle between the arms in the human body joint point and the second intersection corresponding to the second angle, and calculating the second angular velocity according to the second angle and the frame duration; detecting whether the user in the video data is an abnormal user according to preset parameters, initial confidence, first angular velocity, second angular velocity, first intersection and second intersection. Since the present application uses data of multiple dimensions, it does not simply perform gait recognition based on the human body contour, so it has a high recognition accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of the Internet of Things, and in particular relates to a method, a detection device and a terminal device for detecting abnormal user identities based on the Internet of Things. Background Art

[0002] User identification in smart homes is usually done through fingerprint, face or iris recognition. Fingerprint recognition requires physical contact between the device and the human body, while iris and face recognition do not require physical contact, but require high-definition frontal photographic images to achieve the purpose of identification. In addition, for the identification of abnormal users, since abnormal users will hardly cooperate with fingerprint, face or iris recognition, there is a detection blind spot. In order to solve the above problems, gait recognition was born.

[0003] Gait recognition is an emerging field of biometric identification technology. It aims to extract individual changing characteristics from different walking behaviors to achieve automatic identity recognition. Compared with the first generation of biometrics such as fingerprints, faces, and irises, gait is an external, dynamic expression, and is closely related to time and space. At the same time, compared with other biometric authentication technologies based on static features, gait recognition has significant advantages such as non-contact and difficult to hide. Specifically, gait can be detected remotely, can be monitored at low resolution, and has strong robustness. Secondly, gait recognition can be performed without the observer noticing, and the entire detection process does not require the cooperation of the observer. Thirdly, other biometric technologies are all hidden. For example, fingerprint recognition can be hidden by wiping off the fingerprint, and face recognition can be hidden by covering the face, while gait is difficult to hide and disguise. Therefore, from the perspective of visual monitoring, gait is the most promising biometric feature in long-distance situations.

[0004] However, traditional gait recognition is often based on simple human body contours, and the recognition accuracy is low. This is a technical problem that needs to be solved urgently. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a method, a detection device, a terminal device and a computer-readable storage medium for detecting abnormal user identities based on the Internet of Things, so as to solve the technical problem that traditional gait recognition is often based on a simple human body contour for gait recognition and has a low recognition accuracy.

[0006] A first aspect of an embodiment of the present application provides a method for detecting abnormal user identities based on the Internet of Things. The method for detecting abnormal user identities based on the Internet of Things includes:

[0007] Acquire video data, and extract the first frame image and the last frame image of the user in a walking cycle in the video data;

[0008] Inputting the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user;

[0009] Calculating a human body joint point of the user in the first frame image, calculating a first angle between two legs in the human body joint point and a first intersection corresponding to the first angle, and calculating a first angular velocity according to the first angle and a frame duration; the frame duration refers to the time interval between the first frame image and the last frame image;

[0010] Calculating a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculating a second angular velocity according to the second angle and the frame duration;

[0011] Whether a user in the video data is an abnormal user is detected according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point.

[0012] Furthermore, the step of acquiring video data and extracting the first frame image and the last frame image of the user in a walking cycle in the video data includes:

[0013] Acquire video data, and extract sub-video data of a fixed length from the video data;

[0014] Extracting a first human body contour in each frame image in the sub-video data, and based on a minimum bounding box of the first human body contour, intercepting a first image area corresponding to the minimum bounding box in the frame image;

[0015] intercepting the lower half of the image of the first image area;

[0016] Based on the image coordinate system of the lower half image, obtaining third intersection points of a plurality of vertical axis coordinates at preset intervals and the human body contour, and obtaining a plurality of third intersection point sets corresponding to the respective horizontal axis coordinates; the image coordinate system refers to a coordinate system constructed with the lower left corner of the lower half image as the center;

[0017] Taking the third intersection point set having four third intersection points as the initial intersection point set;

[0018] According to the arrangement order of the horizontal coordinates of the plurality of third intersections in the initial set of intersections, a first distance between the third intersections in the first arrangement order and the third intersections in the second arrangement order is calculated, and a second distance between the third intersections in the third arrangement order and the third intersections in the fourth arrangement order is calculated;

[0019] Obtaining a width value of the minimum bounding box, and matching the width value with a first threshold value corresponding to the width value;

[0020] If the first distance and the second distance corresponding to the initial intersection point set are both smaller than the first threshold, taking the initial intersection point set as the target intersection point set;

[0021] Respectively calculating a first midpoint between the third intersection point of the first arrangement order and the third intersection point of the second arrangement order in each of the target intersection point sets, and calculating a second midpoint between the third intersection point of the third arrangement order and the third intersection point of the fourth arrangement order in the target intersection point set;

[0022] Perform linear fitting based on the plurality of first midpoints to obtain a first straight line;

[0023] Perform linear fitting based on the plurality of second midpoints to obtain a second straight line;

[0024] calculating a first angle between the first straight line and the second straight line;

[0025] Using the frame image corresponding to the maximum first angle as the first frame image;

[0026] The tail frame image located after the first frame image is matched according to the first frame image.

[0027] Furthermore, the step of matching the last frame image after the first frame image according to the first frame image includes:

[0028] The pixel points within the second human body contour in the first frame image are set to the first pixel value, and the pixel points outside the second human body contour are set to the second pixel value, so as to obtain a first target image;

[0029] The pixel points within the third human body contour in the subsequent frame image after the first frame image are set to the first pixel value, and the pixel points outside the third human body contour are set to the second pixel value, so as to obtain a second target image;

[0030] The first target image and the plurality of second target images are respectively overlapped at the center, and the number of difference pixels in the overlapping area of ​​the first target image and the second target image is counted; the difference pixels refer to pixels in the two images that overlap each other and have different pixel values;

[0031] If the number is less than the second threshold, the subsequent frame images corresponding to the number are used as the tail frame image.

[0032] Furthermore, the step of calculating the human body joint points of the user in the first frame image, calculating the first angle between the two legs in the human body joint points and the first intersection corresponding to the first angle, and calculating the first angular velocity according to the first angle and the frame duration includes:

[0033] Extracting a second human body contour in the first frame image, and based on a minimum bounding box of the second human body contour, intercepting a second image area corresponding to the minimum bounding box in the first frame image;

[0034] Divide the second image area into two equal parts from top to bottom, a first sub-image and a second sub-image;

[0035] Acquire the topmost coordinate, the first leftmost coordinate and the first rightmost coordinate of the second human body contour in the first sub-image;

[0036] Calculate a third straight line formed by the uppermost coordinate and the first leftmost coordinate, and calculate a fourth straight line formed by the uppermost coordinate and the first rightmost coordinate;

[0037] Taking the angle between the third straight line and the fourth straight line as the first angle, and taking the intersection point between the third straight line and the fourth straight line as the first intersection point;

[0038] The first angle is divided by the frame duration to obtain the first angular velocity.

[0039] Furthermore, the step of calculating a second angle between the two arms at the human body joint point and a second intersection corresponding to the second angle, and calculating a second angular velocity according to the second angle and the frame duration includes:

[0040] Acquire the second leftmost coordinate and the second rightmost coordinate of the second human body contour in the second sub-image;

[0041] Calculate a fifth straight line formed by the uppermost coordinate and the second leftmost coordinate, and calculate a sixth straight line formed by the uppermost coordinate and the second rightmost coordinate;

[0042] The angle between the fifth straight line and the sixth straight line is taken as the second angle, and the intersection point between the fifth straight line and the sixth straight line is taken as the second intersection point;

[0043] The second angle is divided by the frame duration to obtain the second angular velocity.

[0044] Further, the step of detecting whether the user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point includes:

[0045] Acquire preset parameters corresponding to a plurality of users, wherein the preset parameters include a preset arm angular velocity, a preset leg angular velocity, a preset arm intersection point, and a preset leg intersection point;

[0046] Calculating a final confidence level according to the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence level, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point;

[0047] If the final confidence level is less than a third threshold, it is determined that the user in the video data is an abnormal user.

[0048] Further, the step of calculating the final confidence level according to the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence level, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point comprises:

[0049] Substituting the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point into the following formula to obtain the final confidence;

[0050]

[0051] Among them, P represents the final confidence, P0 represents the initial confidence, ω1 represents the preset arm angular velocity, ω3 represents the preset leg angular velocity, ω2 represents the second angular velocity, ω4 represents the first angular velocity, x1 and y1 represent the coordinate values ​​of the preset arm intersection, x2 and y2 represent the coordinate values ​​of the second intersection, x3 and y3 represent the coordinate values ​​of the preset leg intersection, and x4 and y4 represent the coordinate values ​​of the first intersection.

[0052] A second aspect of an embodiment of the present application provides a device for detecting abnormal user identities based on the Internet of Things, and the device for detecting abnormal user identities based on the Internet of Things includes:

[0053] An acquisition unit, used to acquire video data and extract a first frame image and a last frame image of a user in a walking cycle from the video data;

[0054] An input unit, used to input the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user;

[0055] a first calculation unit, configured to calculate a human body joint point of the user in the first frame image, calculate a first angle between two legs in the human body joint point and a first intersection point corresponding to the first angle, and calculate a first angular velocity according to the first angle and a frame duration; the frame duration refers to a time interval between the first frame image and the last frame image;

[0056] A second calculation unit is used to calculate a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculate a second angular velocity according to the second angle and a frame duration;

[0057] A detection unit is used to detect whether a user in the video data is an abnormal user based on preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point.

[0058] A third aspect of an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0059] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0060] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the present application obtains video data, and extracts the first frame image and the last frame image of the user in a walking cycle in the video data; the first frame image is input into the human body recognition model to obtain the initial confidence output by the human body recognition model; the human body joints of the user in the first frame image are calculated, the first angle between the two legs in the human body joints and the first intersection corresponding to the first angle are calculated, and the first angular velocity is calculated according to the first angle and the frame duration; the frame duration refers to the time interval between the first frame image and the last frame image; the second angle between the two arms in the human body joints and the second intersection corresponding to the second angle are calculated, and the second angular velocity is calculated according to the second angle and the frame duration; according to the preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection and the second intersection, it is detected whether the user in the video data is an abnormal user. In the above scheme, the human body recognition model is first used for initial recognition to obtain the initial confidence. In order to improve the accuracy of the initial confidence, the present application calculates the first angular velocity and the first intersection between the two legs, and calculates the second angular velocity and the second intersection between the two arms. And based on the preset parameters, initial confidence, first angular velocity, second angular velocity, first intersection and second intersection, detect whether the user in the video data is an abnormal user. Since the present application uses data of multiple dimensions, it does not simply perform gait recognition based on the human body contour, so it has a higher recognition accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0062] Figure 1 A schematic flow chart of a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0063] Figure 2 A specific schematic flow chart of step 101 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0064] Figure 3 A schematic diagram showing the intersection of the longitudinal axis coordinate provided by the present application and the human body contour;

[0065] Figure 4 A specific schematic flow chart of step 114 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0066] Figure 5 A specific schematic flow chart of step 103 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0067] Figure 6 A specific schematic flow chart of step 104 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0068] Figure 7 A specific schematic flow chart of step 105 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown;

[0069] Figure 8 A schematic diagram of a detection device for abnormal user identity based on the Internet of Things provided by the present application is shown;

[0070] Fig. 9 A schematic diagram of a terminal device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

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

[0072] The embodiments of the present application provide a method, a detection device, a terminal device and a computer-readable storage medium for detecting abnormal user identities based on the Internet of Things, so as to solve the technical problem that traditional gait recognition is often based on a simple human body contour for gait recognition and has a low recognition accuracy.

[0073] First, this application provides a method for detecting abnormal user identities based on the Internet of Things. Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of a method for detecting abnormal user identities based on the Internet of Things provided by the present application. Figure 1 As shown, the method for detecting abnormal user identities based on the Internet of Things may include the following steps:

[0074] Step 101: Acquire video data, and extract the first frame image and the last frame image of a user in a walking cycle in the video data.

[0075] When people walk, hundreds of limbs are synchronously moved. The structure of these muscles and bones can accurately reflect the movement characteristics and gait patterns of the human body during walking. Therefore, there are certain differences in the gait characteristics of each individual. The gait characteristics are affected by height factors. The higher the height, the longer the step length, the lower the step frequency, and the longer the walking cycle. The gait characteristics are affected by gender factors. Men generally have longer step lengths, lower step frequencies, and longer walking cycles than women. The gait characteristics are affected by age factors. The elderly generally have shorter step lengths, higher step frequencies, and shorter walking cycles than young people. The gait characteristics are affected by health conditions. Some diseases or injuries may affect the body's muscle strength, balance, coordination, sensation, and central control capabilities, leading to abnormal gait or pathological gait, thereby changing the length and staging of the walking cycle. The above factors cause the gait characteristics of each person to present different rules. Therefore, this application determines the user identity based on the first frame image and the last frame image in a walking cycle.

[0076] Specifically, step 101 specifically includes step 1011 to step 1012. Figure 2 As shown, Figure 2 A specific schematic flow chart of step 101 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown.

[0077] Step 1011, obtaining video data, and extracting sub-video data of a fixed length from the video data;

[0078] In order to reduce the amount of calculation, this application intercepts sub-video data of fixed duration from the video data based on the duration of the walking cycle. The fixed duration is slightly longer than the average walking cycle and can be determined based on the actual application scenario, which is not limited here.

[0079] Step 1012, extracting a first human body contour in each frame image in the sub-video data, and based on a minimum bounding box of the first human body contour, intercepting a first image region corresponding to the minimum bounding box in the frame image;

[0080] The present application calculates the first human body contour of the human body in the frame image, and calculates the minimum bounding box corresponding to the first human body contour, intercepts the first image area corresponding to the minimum bounding box, to filter out interfering objects in the frame image, and reduces unnecessary calculations.

[0081] Step 1013, capturing the lower half of the image of the first image area;

[0082] Since the leg features are the most obvious in gait recognition, and the legs are often located in the lower half of the image, the present application intercepts the lower half of the image of the first image area to analyze the gait features of the user's legs.

[0083] Step 1014, based on the image coordinate system of the lower half image, obtaining third intersection points of a plurality of vertical axis coordinates at preset intervals and the human body contour, and obtaining a plurality of third intersection point sets corresponding to the respective horizontal axis coordinates; the image coordinate system refers to a coordinate system constructed with the lower left corner of the lower half image as the center;

[0084] First, based on the coordinate system constructed with the lower left corner of the lower half image as the center, obtain the third intersection point of multiple vertical axis coordinates (for example: Y=1, 2, 3, 4, 5...) at preset intervals and the human body contour. Figure 3 , Figure 3 The schematic diagram of the intersection of the vertical axis coordinate provided by the present application and the human body contour is shown. Figure 3 As shown, the straight line represents the position of the longitudinal axis coordinate, and point A, point B, point C and point D represent the four third intersection points where the longitudinal axis coordinate intersects the human body contour.

[0085] Step 1015, taking the third intersection point set having four third intersection points as an initial intersection point set;

[0086] like Figure 3 As shown, when the vertical axis coordinate intersects with the leg, the third intersection set has four third intersections. When the vertical axis coordinate intersects with the waist, the third intersection set has only two third intersections. Therefore, the present application selects the initial intersection set corresponding to the leg by the number of third intersections, that is, the third intersection set with four third intersections is used as the initial intersection set.

[0087] Step 1016, according to the arrangement order of the horizontal coordinates of the plurality of third intersections in the initial set of intersections, calculate a first distance between the third intersections in the first arrangement order and the third intersections in the second arrangement order, and calculate a second distance between the third intersections in the third arrangement order and the third intersections in the fourth arrangement order;

[0088] by Figure 3 For example, the horizontal coordinates of the third intersection points in the initial intersection point set are arranged in the order of point A, point B, point C and point D. The distance between point A and point B is the first distance, and the distance between point C and point D is the second distance.

[0089] Step 1017, obtaining the width value of the minimum bounding box, and matching the first threshold value corresponding to the width value;

[0090] In order to further eliminate abnormal data in the initial intersection set, this application needs to obtain a first threshold for screening. Among them, the first threshold is used to screen abnormal first distances and second distances (since the width of the human thigh is constant, if the first distance and / or the second distance is too large, it means that the distance is abnormal, which may be waist distance data). Since the image follows the principle of near big and far small, it is necessary to match the corresponding threshold based on the width value of the minimum external frame to comply with the principle of near big and far small.

[0091] Step 1018: If the first distance and the second distance corresponding to the initial intersection point set are both smaller than the first threshold, the initial intersection point set is used as a target intersection point set;

[0092] If both the first distance and the second distance are smaller than the first threshold, it indicates that the initial intersection point set is normal data and can be used as the target intersection point set.

[0093] Step 1019, respectively calculating the first midpoint between the third intersection point of the first arrangement sequence and the third intersection point of the second arrangement sequence in each of the target intersection point sets, and calculating the second midpoint between the third intersection point of the third arrangement sequence and the third intersection point of the fourth arrangement sequence in the target intersection point set;

[0094] The first midpoint and the second center of each target intersection set are respectively corresponding to each of the multiple target intersection sets. Figure 3 For example, the multiple third intersection points in the initial intersection point set include point A, point B, point C and point D, and the first midpoint between point A and point B is calculated, and the second midpoint between point C and point D is calculated.

[0095] Step 110, performing linear fitting based on the plurality of first midpoints to obtain a first straight line;

[0096] The first straight line is used to indicate the extension direction of one thigh.

[0097] Step 111, performing linear fitting based on the plurality of second midpoints to obtain a second straight line;

[0098] The second straight line is used to indicate the extension direction of the other thigh.

[0099] Step 112, calculating a first angle between the first straight line and the second straight line;

[0100] The first angle is used to characterize the degree of opening and closing of the user's thighs.

[0101] Step 113, taking the frame image corresponding to the maximum first angle as the first frame image;

[0102] In the present application, the frame image in which the legs are most open and closed is regarded as the starting point of the walking cycle, so the frame image corresponding to the maximum first angle is taken as the first frame image.

[0103] Step 114: Match the last frame image after the first frame image according to the first frame image.

[0104] In this embodiment, by calculating the third intersection point of the contours of both legs and calculating the center based on the third intersection point, the extension directions of both legs are fitted with straight lines to obtain the opening and closing angles of both legs, thereby realizing the screening of the first frame image with high accuracy.

[0105] Since the opening and closing degree of the legs at the start and end of the walking cycle are the same, the last frame image can be matched according to the similarity between the first frame image and the last frame image. However, since the amount of calculation for calculating the image similarity is too large, this application provides a matching method with a small amount of calculation. The specific logic is as follows:

[0106] Specifically, step 114 includes steps A to D. Figure 4 As shown, Figure 4 A specific schematic flow chart of step 114 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown.

[0107] Step A: setting the pixel points within the second human body contour in the first frame image to the first pixel value, and setting the pixel points outside the second human body contour to the second pixel value, to obtain a first target image;

[0108] Step B: setting the pixel points within the third human body contour in the subsequent frame image after the first frame image to the first pixel value, and setting the pixel points outside the third human body contour to the second pixel value, to obtain a second target image;

[0109] Step C: performing center overlap processing on the first target image and the plurality of second target images respectively, and counting the number of difference pixels in the overlapped area of ​​the first target image and the second target image; the difference pixels refer to pixels in the two images that overlap each other and have different pixel values;

[0110] It is understandable that, since the first frame image and the last frame image have a high similarity, the present application performs binarization processing on the first frame image and the subsequent frame image respectively to obtain the first target image and the second target image. And count the difference pixels between the first target image and the second target image after the overlap processing.

[0111] Step D: If the number is less than a second threshold, the subsequent frame images corresponding to the number are used as the tail frame images.

[0112] When the number of difference pixels is less than the second threshold, it means that the number of pixels between the first frame image and the subsequent frame image is higher, and the subsequent frame image can be used as the last frame image.

[0113] In this embodiment, no complicated mathematical operations are required, and only difference pixels need to be counted to select the last frame image from the subsequent frame images, which greatly reduces the amount of calculation.

[0114] Step 102: input the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user.

[0115] The human body recognition model is a neural network model trained based on user images. However, since it is impossible to obtain a large number of user images to train the human body recognition model during daily use, the accuracy of the neural network model is low. In order to improve the recognition accuracy, this application combines the first angular velocity and the first intersection of the arm (the calculation process is step 103) and the second angular velocity and the second intersection of the leg to correct the accuracy of the initial confidence (the calculation process is step 104).

[0116] Step 103: Calculate the user's body joints in the first frame image, calculate the first angle between the two legs in the body joints and the first intersection corresponding to the first angle, and calculate the first angular velocity based on the first angle and frame duration; the frame duration refers to the time interval between the first frame image and the last frame image.

[0117] Specifically, step 103 includes steps 1031 to 1036. Figure 5 As shown, Figure 5 A specific schematic flow chart of step 103 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown.

[0118] Step 1031, extracting a second human body contour in the first frame image, and based on a minimum bounding box of the second human body contour, intercepting a second image area corresponding to the minimum bounding box in the first frame image;

[0119] Step 1032, dividing the second image area into two equal parts from top to bottom into a first sub-image and a second sub-image;

[0120] Since the user's legs and arms are usually located in the lower and upper parts of the image area, the present application divides the second image area into two equal parts from top to bottom into a first sub-image and a second sub-image, so as to calculate the first angular velocity and the first intersection of the arm and the second angular velocity and the second intersection of the leg based on the first sub-image and the second sub-image, respectively, to correct the accuracy of the initial confidence.

[0121] Step 1033, obtaining the topmost coordinate, the first leftmost coordinate, and the first rightmost coordinate of the second human body contour in the first sub-image;

[0122] Since the existing human joint recognition technology has a large amount of calculation, in order to reduce the amount of calculation, this application uses the first leftmost coordinate as the left arm position, the first rightmost coordinate as the right arm position, and the topmost coordinate as the head position, which greatly reduces the amount of calculation.

[0123] Step 1034, calculating a third straight line formed by the uppermost coordinate and the first leftmost coordinate, and calculating a fourth straight line formed by the uppermost coordinate and the first rightmost coordinate;

[0124] The third straight line represents the extension direction of the left arm, and the fourth straight line represents the extension direction of the right arm.

[0125] Step 1035, taking the angle between the third straight line and the fourth straight line as the first angle, and taking the intersection point between the third straight line and the fourth straight line as the first intersection point;

[0126] Step 1036: Divide the first angle by the frame duration to obtain the first angular velocity.

[0127] Since the duration of walking cycles corresponding to different users is different, in order to combine the time feature, the present application divides the second angle and the frame duration to obtain the first angular velocity. It can be understood that the first angular velocity combines the angle and time features and has better representation capability.

[0128] Step 104: Calculate a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculate a second angular velocity according to the second angle and the frame duration.

[0129] Specifically, step 104 includes steps 1041 to 1044. Figure 6 As shown, Figure 6 A specific schematic flow chart of step 104 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown.

[0130] Step 1041, obtaining the second leftmost coordinate and the second rightmost coordinate of the second human body contour in the second sub-image;

[0131] Since the existing human joint recognition technology has a large amount of calculation, in order to reduce the amount of calculation, this application uses the second leftmost coordinate as the left leg position, the second rightmost coordinate as the right leg position, and the topmost coordinate as the head position, which greatly reduces the amount of calculation.

[0132] Step 1042, calculating a fifth straight line formed by the uppermost coordinate and the second leftmost coordinate, and calculating a sixth straight line formed by the uppermost coordinate and the second rightmost coordinate;

[0133] The fifth straight line represents the extension direction of the left leg, and the sixth straight line represents the extension direction of the right leg.

[0134] Step 1043, taking the angle between the fifth straight line and the sixth straight line as the second angle, and taking the intersection point between the fifth straight line and the sixth straight line as the second intersection point;

[0135] Step 1044: Divide the second angle by the frame duration to obtain the second angular velocity.

[0136] Since the duration of walking cycles corresponding to different users is different, in order to combine the time feature, the present application divides the third angle and the frame duration to obtain the second angular velocity. It can be understood that the second angular velocity combines the angle and time features and has better representation capability.

[0137] Step 105: Detect whether the user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point.

[0138] Specifically, step 105 includes steps 1051 to 1053. Figure 7 As shown, Figure 7 A specific schematic flow chart of step 105 in a method for detecting abnormal user identities based on the Internet of Things provided by the present application is shown.

[0139] Step 1051: obtaining preset parameters corresponding to a plurality of users, wherein the preset parameters include a preset arm angular velocity, a preset leg angular velocity, a preset arm intersection point, and a preset leg intersection point;

[0140] Step 1052: Calculate a final confidence level according to the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence level, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point;

[0141] Specifically, step 1052 includes: substituting the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point into the following formula to obtain the final confidence;

[0142]

[0143] Among them, P represents the final confidence, P0 represents the initial confidence, ω1 represents the preset arm angular velocity, ω3 represents the preset leg angular velocity, ω2 represents the second angular velocity, ω4 represents the first angular velocity, x1 and y1 represent the coordinate values ​​of the preset arm intersection, x2 and y2 represent the coordinate values ​​of the second intersection, x3 and y3 represent the coordinate values ​​of the preset leg intersection, and x4 and y4 represent the coordinate values ​​of the first intersection.

[0144] It can be understood that since the second angular velocity and the second intersection point corresponding to the legs have greater reference value for the overall detection, they are placed in the denominator for calculation, while the first angular velocity and the first intersection point corresponding to the arms are used to fine-tune the initial confidence in order to adjust the initial confidence more accurately.

[0145] Step 1053: If the final confidence level is less than a third threshold, determining that the user in the video data is an abnormal user.

[0146] In this embodiment, video data is obtained, and the first frame image and the last frame image of the user in a walking cycle in the video data are extracted; the first frame image is input into the human body recognition model to obtain the initial confidence output by the human body recognition model; the human body joints of the user in the first frame image are calculated, the first angle between the legs in the human body joints and the first intersection corresponding to the first angle are calculated, and the first angular velocity is calculated according to the first angle and the frame duration; the frame duration refers to the time interval between the first frame image and the last frame image; the second angle between the arms in the human body joints and the second intersection corresponding to the second angle are calculated, and the second angular velocity is calculated according to the second angle and the frame duration; according to the preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection and the second intersection, it is detected whether the user in the video data is an abnormal user. In the above scheme, the initial recognition is first performed by the human body recognition model to obtain the initial confidence. In order to improve the accuracy of the initial confidence, the present application calculates the first angular velocity and the first intersection between the legs, and calculates the second angular velocity and the second intersection between the arms. Based on the preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point, it is detected whether the user in the video data is an abnormal user. Since the present application uses data of multiple dimensions, it does not simply perform gait recognition based on the human body contour, so it has a higher recognition accuracy.

[0147] like Figure 8 This application provides a detection device for abnormal user identity based on the Internet of Things 8, see Figure 8 , Figure 8 A schematic diagram of a detection device for abnormal user identity based on the Internet of Things provided by the present application is shown, Figure 8The device for detecting abnormal user identity based on the Internet of Things includes:

[0148] An acquisition unit 81 is used to acquire video data and extract a first frame image and a last frame image of a user in a walking cycle in the video data;

[0149] An input unit 82 is used to input the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user;

[0150] A first calculation unit 83 is used to calculate the human body joint points of the user in the first frame image, calculate the first angle between the two legs in the human body joint points and the first intersection corresponding to the first angle, and calculate the first angular velocity according to the first angle and the frame duration; the frame duration refers to the time interval between the first frame image and the last frame image;

[0151] A second calculation unit 84 is used to calculate a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculate a second angular velocity according to the second angle and a frame duration;

[0152] The detection unit 85 is used to detect whether the user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point.

[0153] The present application provides a detection device for abnormal user identity based on the Internet of Things, which obtains video data and extracts the first frame image and the last frame image of the user in a walking cycle in the video data; inputs the first frame image into a human body recognition model to obtain an initial confidence output by the human body recognition model; calculates the human body joints of the user in the first frame image, calculates the first angle between the legs in the human body joints and the first intersection corresponding to the first angle, and calculates the first angular velocity according to the first angle and the frame duration; the frame duration refers to the time interval between the first frame image and the last frame image; calculates the second angle between the arms in the human body joints and the second intersection corresponding to the second angle, and calculates the second angular velocity according to the second angle and the frame duration; detects whether the user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection and the second intersection. In the above scheme, the human body recognition model is first used for initial recognition to obtain the initial confidence. In order to improve the accuracy of the initial confidence, the present application calculates the first angular velocity and the first intersection between the two legs, and calculates the second angular velocity and the second intersection between the two arms. And based on the preset parameters, initial confidence, first angular velocity, second angular velocity, first intersection and second intersection, detect whether the user in the video data is an abnormal user. Since the present application uses data of multiple dimensions, it does not simply perform gait recognition based on the human body contour, so it has a higher recognition accuracy.

[0154] Fig. 9 Schematic diagram of a terminal device provided by an embodiment of the present application. Fig. 9 As shown, a terminal device 9 of this embodiment includes: a processor 90, a memory 91, and a computer program 92 stored in the memory 91 and executable on the processor 90, such as a method program for detecting abnormal user identities based on the Internet of Things. When the processor 90 executes the computer program 92, the steps in the above-mentioned method for detecting abnormal user identities based on the Internet of Things are implemented, such as Figure 1 Alternatively, when the processor 90 executes the computer program 92, the functions of each unit in the above-mentioned device embodiments are realized, for example, Figure 8 The functions of the units 81 to 85 are shown.

[0155] Exemplarily, the computer program 92 may be divided into one or more units, which are stored in the memory 91 and executed by the processor 90 to complete the present application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 92 in the terminal device 9. For example, the computer program 92 may be divided into the following specific functions of each unit:

[0156] An acquisition unit, used to acquire video data and extract a first frame image and a last frame image of a user in a walking cycle from the video data;

[0157] An input unit, used to input the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user;

[0158] a first calculation unit, configured to calculate a human body joint point of the user in the first frame image, calculate a first angle between two legs in the human body joint point and a first intersection point corresponding to the first angle, and calculate a first angular velocity according to the first angle and a frame duration; the frame duration refers to a time interval between the first frame image and the last frame image;

[0159] A second calculation unit is used to calculate a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculate a second angular velocity according to the second angle and a frame duration;

[0160] A detection unit is used to detect whether a user in the video data is an abnormal user based on preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point.

[0161] The terminal device includes but is not limited to a processor 90 and a memory 91. Those skilled in the art will appreciate that Fig. 9 It is only an example of a terminal device 9 and does not constitute a limitation on the terminal device 9. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.

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

[0163] The memory 91 may be an internal storage unit of the terminal device 9, such as a hard disk or memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal device 9. The memory 91 is used to store the computer program and other programs and data required by the roaming control device. The memory 91 may also be used to temporarily store data that has been output or is to be output.

[0164] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0165] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0166] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0167] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0168] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0172] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units.

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

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

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

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

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

[0179] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for detecting abnormal user identities based on the Internet of Things, characterized in that: The method for detecting abnormal user identities based on the Internet of Things includes: Acquire video data, and extract the first frame image and the last frame image of the user in a walking cycle in the video data; Inputting the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user; Calculating a human body joint point of the user in the first frame image, calculating a first angle between two legs in the human body joint point and a first intersection corresponding to the first angle, and calculating a first angular velocity according to the first angle and a frame duration; the frame duration refers to the time interval between the first frame image and the last frame image; Calculating a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculating a second angular velocity according to the second angle and the frame duration; Detecting whether a user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point; The step of detecting whether the user in the video data is an abnormal user according to preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point comprises: Acquire preset parameters corresponding to a plurality of users, wherein the preset parameters include a preset arm angular velocity, a preset leg angular velocity, a preset arm intersection point, and a preset leg intersection point; Calculating a final confidence level according to the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence level, the first angular velocity, the second angular velocity, the first intersection point, and the second intersection point; If the final confidence level is less than a third threshold, it is determined that the user in the video data is an abnormal user.

2. The method for detecting abnormal user identities based on the Internet of Things as claimed in claim 1, characterized in that: The step of acquiring video data and extracting the first frame image and the last frame image of the user in a walking cycle in the video data includes: Acquire video data, and extract sub-video data of a fixed length from the video data; Extracting a first human body contour in each frame image in the sub-video data, and based on a minimum bounding box of the first human body contour, intercepting a first image area corresponding to the minimum bounding box in the frame image; intercepting the lower half of the image of the first image area; Based on the image coordinate system of the lower half image, obtaining third intersection points of a plurality of vertical axis coordinates at preset intervals and the human body contour, and obtaining a set of third intersection points corresponding to a plurality of horizontal axis coordinates; the image coordinate system refers to a coordinate system constructed with the lower left corner of the lower half image as the center; Taking the third intersection point set having four third intersection points as the initial intersection point set; According to the arrangement order of the horizontal coordinates of the plurality of third intersections in the initial set of intersections, a first distance between the third intersections in the first arrangement order and the third intersections in the second arrangement order is calculated, and a second distance between the third intersections in the third arrangement order and the third intersections in the fourth arrangement order is calculated; Obtaining a width value of the minimum bounding box, and matching the width value with a first threshold value corresponding to the width value; If the first distance and the second distance corresponding to the initial intersection point set are both smaller than the first threshold, taking the initial intersection point set as the target intersection point set; Respectively calculating a first midpoint between the third intersection point of the first arrangement order and the third intersection point of the second arrangement order in each of the target intersection point sets, and calculating a second midpoint between the third intersection point of the third arrangement order and the third intersection point of the fourth arrangement order in the target intersection point set; Perform linear fitting based on the plurality of first midpoints to obtain a first straight line; Perform linear fitting based on the plurality of second midpoints to obtain a second straight line; calculating a first angle between the first straight line and the second straight line; Using the frame image corresponding to the maximum first angle as the first frame image; The tail frame image located after the first frame image is matched according to the first frame image.

3. The method for detecting abnormal user identities based on the Internet of Things as claimed in claim 2, characterized in that: The step of matching the last frame image located after the first frame image according to the first frame image comprises: The pixel points within the second human body contour in the first frame image are set to the first pixel value, and the pixel points outside the second human body contour are set to the second pixel value, so as to obtain a first target image; The pixel points within the third human body contour in the subsequent frame image after the first frame image are set to the first pixel value, and the pixel points outside the third human body contour are set to the second pixel value, so as to obtain a second target image; The first target image and the plurality of second target images are respectively overlapped at the center, and the number of difference pixels in the overlapping area of ​​the first target image and the second target image is counted; the difference pixels refer to pixels in the two images that overlap each other and have different pixel values; If the number is less than the second threshold, the subsequent frame images corresponding to the number are used as the tail frame image.

4. The method for detecting abnormal user identities based on the Internet of Things as claimed in claim 1, characterized in that: The step of calculating the human body joint points of the user in the first frame image, calculating the first angle between the two legs in the human body joint points and the first intersection corresponding to the first angle, and calculating the first angular velocity according to the first angle and the frame duration includes: Extracting a second human body contour in the first frame image, and based on a minimum bounding box of the second human body contour, intercepting a second image area corresponding to the minimum bounding box in the first frame image; Divide the second image area into two equal parts from top to bottom, a first sub-image and a second sub-image; Acquire the topmost coordinate, the first leftmost coordinate and the first rightmost coordinate of the second human body contour in the first sub-image; Calculate a third straight line formed by the uppermost coordinate and the first leftmost coordinate, and calculate a fourth straight line formed by the uppermost coordinate and the first rightmost coordinate; Taking the angle between the third straight line and the fourth straight line as the first angle, and taking the intersection point between the third straight line and the fourth straight line as the first intersection point; The first angle is divided by the frame duration to obtain the first angular velocity.

5. The method for detecting abnormal user identities based on the Internet of Things as claimed in claim 4, characterized in that: The step of calculating the second angle between the two arms at the human body joint point and the second intersection point corresponding to the second angle, and calculating the second angular velocity according to the second angle and the frame duration includes: Acquire the second leftmost coordinate and the second rightmost coordinate of the second human body contour in the second sub-image; Calculate a fifth straight line formed by the uppermost coordinate and the second leftmost coordinate, and calculate a sixth straight line formed by the uppermost coordinate and the second rightmost coordinate; The angle between the fifth straight line and the sixth straight line is taken as the second angle, and the intersection point between the fifth straight line and the sixth straight line is taken as the second intersection point; The second angle is divided by the frame duration to obtain the second angular velocity.

6. The method for detecting abnormal user identities based on the Internet of Things as claimed in claim 1, characterized in that: The step of calculating the final confidence level according to the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence level, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point comprises: Substituting the preset arm angular velocity, the preset leg angular velocity, the preset arm intersection point, the preset leg intersection point, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point into the following formula to obtain the final confidence; Among them, P represents the final confidence, P0 represents the initial confidence, ω1 represents the preset arm angular velocity, ω3 represents the preset leg angular velocity, ω2 represents the second angular velocity, ω4 represents the first angular velocity, x1 and y1 represent the coordinate values ​​of the preset arm intersection, x2 and y2 represent the coordinate values ​​of the second intersection, x3 and y3 represent the coordinate values ​​of the preset leg intersection, and x4 and y4 represent the coordinate values ​​of the first intersection.

7. A device for detecting abnormal user identities based on the Internet of Things, characterized in that: The method for detecting abnormal user identities based on the Internet of Things according to any one of claims 1 to 6 is used, and the device for detecting abnormal user identities based on the Internet of Things comprises: An acquisition unit, used to acquire video data and extract a first frame image and a last frame image of a user in a walking cycle from the video data; An input unit, used to input the first frame image into a human body recognition model to obtain an initial confidence level output by the human body recognition model; the confidence level is used to characterize the probability that the user in the first frame image is a non-abnormal user; a first calculation unit, configured to calculate a human body joint point of the user in the first frame image, calculate a first angle between two legs in the human body joint point and a first intersection point corresponding to the first angle, and calculate a first angular velocity according to the first angle and a frame duration; the frame duration refers to a time interval between the first frame image and the last frame image; A second calculation unit is used to calculate a second angle between the two arms at the human body joint point and a second intersection point corresponding to the second angle, and calculate a second angular velocity according to the second angle and a frame duration; A detection unit is used to detect whether a user in the video data is an abnormal user based on preset parameters, the initial confidence, the first angular velocity, the second angular velocity, the first intersection point and the second intersection point.

8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.