Behavior recognition method and device based on target detection model and image super-resolution

By introducing image super-resolution processing, extraction and fusion of features into the target detection model, the problems of missed detection and inaccurate recognition in the target detection algorithm in the existing technology are solved, and accurate behavior recognition of small targets and multi-person scenes is achieved. .

CN118506335BActive Publication Date: 2024-10-18E SURFING VISION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410953494.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-18
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Target detection algorithms in the existing technology are prone to problems of missed detection and inaccurate recognition in actual production environments. Especially when the picture pixels are limited and multiple people overlap, it is impossible to accurately determine the person using the mobile phone.

Method used

A behavior recognition method based on target detection model and image super-resolution is adopted. By extracting image features and performing super-resolution fusion processing, the behavior signs and key point sets are predicted to determine the target subject, thereby improving the recognition accuracy. Specific steps include using the backbone network to extract features, performing multi-scale feature fusion and detail extraction through the first and second neck networks, combining the element-by-element fusion module to generate super-resolution fusion features, and finally using the head network to perform behavioral landmarks and key points. prediction.

Benefits of technology

It improves the recognition accuracy of target behaviors, reduces missed detections, and enhances the detection ability of small targets. Especially in multi-person scenarios, it can more accurately identify people using mobile phones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118506335B_ABST
    Figure CN118506335B_ABST
Patent Text Reader

Abstract

The present application relates to a behavior recognition method and device based on a target detection model and image super-resolution. The method obtains image information to be detected, inputs the image information into a preset target detection model for feature processing, and obtains a behavior sign and a set of key points; based on the behavior sign and the set of key points, determines the target subject corresponding to the behavior sign, and obtains the recognition result of the target behavior; wherein the target detection model extracts image features from the image information; performs super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution; predicts the behavior sign and the set of key points in the image information based on the super-resolution fusion features; and predicts the behavior sign and the set of key points in the image information based on the target detection model. The problem that the target detection algorithm is prone to missed detection and inaccurate recognition is solved, and the accuracy of target behavior recognition is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to a method and device for behavior recognition based on target detection models and image super-resolution. Background Art

[0002] The behavior recognition algorithm based on computer vision is an important artificial intelligence technology, which has been widely used in computer vision, pattern recognition, machine learning and other fields. Its main purpose is to automatically detect and identify human behavior and classify it into predefined behavior categories. In the field of industrial manufacturing, it can promote industrial automation and intelligent manufacturing, improve production efficiency and production benefits. In the field of medical rehabilitation, behavior recognition algorithms can help rehabilitation training and surgical assistance, and improve the level of medical diagnosis and treatment. In the field of public safety, behavior recognition algorithms can be used to monitor and identify human behavior, ensure the safety and order of public places, and prevent potential safety hazards, such as: drivers causing serious car accidents due to playing with mobile phones. Therefore, the behavior recognition algorithm based on computer vision has broad application prospects in various fields.

[0003] The target behavior recognition task in the prior art mainly involves identifying the person who performs the target behavior from the video or picture captured by the surveillance camera. Taking the use of mobile phones as an example, the picture is analyzed by the target detection algorithm to extract the person using the mobile phone and the location of the mobile phone. However, due to the limited pixel size of the picture in the actual production environment and the small size of the mobile phone target, the mobile phone is often missed. At the same time, when multiple people overlap, it is impossible to accurately determine the exact person using the mobile phone from multiple people.

[0004] There is no effective solution to the problem of missed detection and inaccurate recognition in target detection algorithms in related technologies. Summary of the invention

[0005] In this embodiment, a behavior recognition method and device based on a target detection model and image super-resolution are provided to solve the problems of missed detection and inaccurate recognition of target behaviors in related technologies.

[0006] In a first aspect, in this embodiment, a behavior recognition method based on a target detection model and image super-resolution is provided, the method comprising:

[0007] Acquire image information to be detected, input the image information into a preset target detection model for feature processing, and predict the behavior signs and key point sets in the image information based on the target detection model;

[0008] Based on the behavior mark and the key point set, determining a target subject corresponding to the behavior mark, and obtaining a recognition result of the target behavior;

[0009] The process of performing feature processing in the target detection model includes:

[0010] extracting image features from the image information;

[0011] Performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution;

[0012] Based on the super-resolution fusion features, behavior markers and key point sets in the image information are predicted.

[0013] In some embodiments, extracting image features from the image information includes:

[0014] The object detection model includes a backbone network, and image features are extracted from the image information based on the backbone network.

[0015] In some embodiments, the performing super-resolution fusion processing on the image features to obtain super-resolution fusion features with enhanced resolution includes:

[0016] The target detection model includes a first neck network, a second neck network and an element-by-element fusion module;

[0017] Based on the first neck network, the extracted image features of each layer are fused to obtain preliminary fused features;

[0018] Based on the second neck network, extracting detail features from the extracted image features of each layer to obtain resolution enhancement features;

[0019] Based on an element-by-element fusion module, the preliminary fusion feature and the resolution enhancement feature are fused to obtain a super-resolution fusion feature.

[0020] In some of the embodiments, the step of extracting detail features from the extracted image features of each layer based on the second neck network to obtain resolution enhancement features includes:

[0021] The second neck network includes a texture branch and a pixel branch;

[0022] Based on the texture branch, extracting texture features from the image features of each layer;

[0023] Based on the pixel branch, extracting pixel features corresponding to image colors from the image features of each layer;

[0024] A resolution enhancement feature is obtained based on the texture feature and the pixel feature.

[0025] In some of the embodiments, the element-by-element fusion module is used to fuse the preliminary fusion feature and the resolution enhancement feature to obtain a super-resolution fusion feature, including:

[0026] Performing element-by-element multiplication processing on the preliminary fusion feature and the resolution enhancement feature;

[0027] Based on the learnable bias, element-by-element addition is performed on the result of the element-by-element multiplication process to obtain a super-resolution fusion feature.

[0028] In some embodiments, predicting the behavior markers and key point sets in the image information based on the super-resolution fusion features includes:

[0029] The target detection model includes a first head network and a second head network;

[0030] Based on the first head network, the super-resolution fusion feature is calculated to obtain the behavior mark in the image information;

[0031] Based on the second head network, the super-resolution fusion features are calculated to obtain a set of key points of each behavior subject.

[0032] In some embodiments, determining the target subject corresponding to the behavior mark based on the behavior mark and the key point set to obtain the recognition result of the target behavior includes:

[0033] Determining a target key point set from each of the key point sets based on a positional relationship between a reference key point in each of the key point sets and the behavior mark;

[0034] Based on the target key point set, the target subject corresponding to the behavior mark is determined to obtain a recognition result of the target behavior.

[0035] In some embodiments, determining a target key point set from each of the key point sets based on a positional relationship between a reference key point in each of the key point sets and the behavior marker comprises:

[0036] The behavior mark is set as a mobile phone; the key point set is a set of key points of a human body, and the wrist key point in the key point set is used as a reference key point;

[0037] The distance between each of the reference key points and the behavior mark is calculated, and a target key point set is determined based on the reference key point with the smallest distance to the behavior mark.

[0038] In a second aspect, in this embodiment, a behavior recognition device based on a target detection model and image super-resolution is provided, the device comprising:

[0039] The model processing module is used to obtain image information to be detected, input the image information into a preset target detection model for feature processing, and predict the behavior signs and key point sets in the image information based on the target detection model; wherein the process of performing feature processing in the target detection model includes: extracting image features from the image information; performing super-resolution processing on the image features to obtain super-resolution fusion features after enhanced resolution; and predicting the behavior signs and key point sets in the image information based on the super-resolution fusion features;

[0040] The behavior recognition module is used to determine the target subject corresponding to the behavior mark based on the behavior mark and the key point set, and obtain the recognition result of the target behavior.

[0041] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the behavior recognition method based on the target detection model and image super-resolution described in the first aspect is implemented.

[0042] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the behavior recognition method based on the target detection model and image super-resolution described in the first aspect.

[0043] Compared with the related art, the behavior recognition method and device based on the target detection model and image super-resolution provided in this embodiment obtains the image information to be detected, inputs the image information into the preset target detection model for feature processing, and predicts the behavior signs and key point sets in the image information based on the target detection model; based on the behavior signs and the key point set, determines the target subject corresponding to the behavior signs, and obtains the recognition result of the target behavior; wherein the process of performing feature processing in the target detection model includes: extracting image features from the image information; performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution; based on the super-resolution fusion features, predicting the behavior signs and key point sets in the image information. This embodiment solves the problems of missed detection and inaccurate recognition in the target detection algorithm in the related art, realizes the enhancement of the input image, and improves the prediction accuracy of the behavior signs and behavior subjects, thereby improving the recognition accuracy of the target behavior.

[0044] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0046] Figure 1 The hardware structure block diagram of a terminal of a behavior recognition method based on a target detection model and image super-resolution in one embodiment;

[0047] Figure 2 A flowchart of a behavior recognition method based on a target detection model and image super-resolution in one embodiment;

[0048] Figure 3 A schematic diagram of a feature processing process of an object detection model in one embodiment;

[0049] Figure 4 is a schematic diagram of the structure of a target detection model in one embodiment;

[0050] Figure 5 is a schematic diagram of the structure of a second neck network in one embodiment;

[0051] Figure 6 A flowchart of a behavior recognition method based on a target detection model and image super-resolution in a preferred embodiment;

[0052] Figure 7 1 is a structural block diagram of a behavior recognition device based on a target detection model and image super-resolution in one embodiment. DETAILED DESCRIPTION

[0053] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0054] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with general skills in the technical field to which this application belongs. The words "one", "a", "the", "these" and the like in this application do not indicate a quantitative limitation, and they may be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone. Generally, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0055] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 is a hardware structure block diagram of a terminal of the behavior recognition method based on the target detection model and image super-resolution in this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0056] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the behavior recognition method based on the target detection model and image super-resolution in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0057] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0058] In this embodiment, a behavior recognition method based on a target detection model and image super-resolution is provided. Figure 2 is a flow chart of the behavior recognition method based on target detection model and image super-resolution of this embodiment. Figure 2 As shown, the process includes the following steps:

[0059] Step S210, obtaining image information to be detected, inputting the image information into a preset target detection model for feature processing, and obtaining a set of behavior markers and key points in the image information based on prediction of the target detection model.

[0060] Among them, see Figure 3 ,The process of feature processing in the target detection model includes:

[0061] Step S211, extracting image features from image information.

[0062] Step S212, performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution.

[0063] Step S213: predicting the behavior markers and key point sets in the image information based on the super-resolution fusion features.

[0064] Specifically, a video stream or a picture is obtained through a camera as image information to be detected. The target detection model can be an improved computing model based on the yolo (You Only Look Once) model, with an added network for super-resolution fusion processing and key point detection.

[0065] Step S220, based on the behavior mark and the key point set, determine the target subject corresponding to the behavior mark, and obtain the recognition result of the target behavior.

[0066] Specifically, the target detection model outputs the bounding box of the behavior mark and also outputs at least one key point set, wherein each key point set corresponds to a behavior subject, and the behavior subject is a subject that may be the subject that implements the target behavior in the image information. Since the target detection model cannot directly and accurately predict the subject that implements the target behavior, multiple subjects suspected of implementing the target behavior can be obtained first. In order to determine which behavior subject is the target subject corresponding to the behavior mark, the following method can be used for judgment: In one embodiment, the position relationship between the behavior mark bounding box and a reference key point in the key point set is calculated, and the target key point set corresponding to the behavior mark is matched from each key point set through the position relationship. The target subject that actually implements the target behavior is determined based on the target key point set, thereby completing the target behavior recognition. In other embodiments, the bounding box of each behavior subject can also be obtained according to each key point set. The specific method is to establish the minimum circumscribed rectangle for all key points in the key point set to obtain the bounding box of the behavior subject, and then calculate the intersection-over-union (IOU) of the bounding box of the behavior subject and the bounding box of the behavior mark, and determine the target subject that actually implements the target behavior based on the intersection-over-union, thereby completing the target behavior recognition.

[0067] In the present application, by acquiring image information to be detected, the image information is input into a preset target detection model for feature processing, and the behavior signs and key point sets in the image information are predicted based on the target detection model; based on the behavior signs and key point sets, the target subject corresponding to the behavior signs is determined to obtain the recognition result of the target behavior; wherein, the process of performing feature processing in the target detection model includes: extracting image features from the image information; performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution; based on the super-resolution fusion features, predicting the behavior signs and key point sets in the image information, which solves the problems of missed detection and inaccurate recognition in the target detection algorithm in the related technology, realizes the enhancement of the input image, and improves the prediction accuracy of the behavior signs and behavior subjects, thereby improving the recognition accuracy of the target behavior.

[0068] In some of the embodiments, see Figure 4,The target detection model includes a backbone network.

[0069] Based on the above step S211, extracting image features from the image information specifically includes the following steps:

[0070] Step S310: extracting image features from image information based on the backbone network.

[0071] Specifically, the backbone network of the target detection model uses the backbone network of YOLOv8. The backbone network is responsible for feature extraction, using a series of convolution and deconvolution layers, while using residual connections and bottleneck structures to reduce the size of the network and improve performance.

[0072] In this embodiment, the performance of feature extraction is improved through the backbone network in the target detection model.

[0073] In some of the embodiments, see Figure 4 ,The target detection model includes a first neck network, a second neck network and an element-by-element fusion module MCU.

[0074] Based on the above step S212, super-resolution fusion processing is performed on the image features to obtain super-resolution fusion features after enhanced resolution, which specifically includes the following steps:

[0075] Step S410: Based on the first neck network, the extracted image features of each layer are fused to obtain preliminary fused features.

[0076] Specifically, the first neck network uses the neck network (Neck) of YOLOv8. The Neck part is responsible for multi-scale feature fusion, which enhances the feature representation capability by fusing feature maps from different stages of Backbone.

[0077] Step S420: Based on the second neck network, detailed features are extracted from the extracted image features of each layer to obtain resolution enhancement features.

[0078] Specifically, the second neck network is set in parallel with the neck network of YOLOv8 to process the feature maps of different stages of Backbone respectively. The second neck network provides further detail extraction capabilities.

[0079] Step S430: Based on the element-by-element fusion module MCU, the preliminary fusion feature and the resolution enhancement feature are fused to obtain a super-resolution fusion feature.

[0080] In this embodiment, a second neck network and an element-by-element fusion module MCU are creatively added, so that the quality of the fused feature image is higher, and a higher prediction accuracy can be guaranteed even in the scenario of small target detection.

[0081] In some of the embodiments, see Figure 5 ,The second neck network includes a texture branch and a pixel branch.

[0082] Based on the above step S420, based on the second neck network, detailed feature extraction is performed on the extracted image features of each layer to obtain resolution enhancement features, which specifically includes the following steps:

[0083] Step S421: extracting texture features from each layer of image features based on the texture branch.

[0084] Step S422: extracting pixel features corresponding to the image color from each layer of image features based on the pixel branch.

[0085] Step S423, obtaining a resolution enhancement feature based on the texture feature and the pixel feature.

[0086] Specifically, the texture branch includes two convolutional layers ConvRep5×5 and ConvRep3×3, which are used to extract texture features. Since the task of extracting texture features requires a larger receptive field, the texture branch requires a deeper network structure. The pixel branch includes a convolutional layer ConvRep5×5, which is used to extract pixel information of the image color response and obtain pixel features. The extracted texture features and pixel features are superimposed to obtain resolution enhancement features.

[0087] In the present application, the texture branch and the pixel branch together complete the task of converting an image from a low resolution to a higher resolution.

[0088] In some of the embodiments, based on the above step S430, based on the element-by-element fusion module MCU, the preliminary fusion feature and the resolution enhancement feature are fused to obtain a super-resolution fusion feature, which specifically includes the following steps:

[0089] Step S431, performing element-by-element multiplication processing on the preliminary fusion features and the resolution enhancement features.

[0090] Step S432: Based on the learnable bias, perform element-by-element addition processing on the result of the element-by-element multiplication processing to obtain a super-resolution fusion feature.

[0091] Specifically, the element-by-element fusion module MCU adopts a new feature fusion method - MCU (Multiplication connection unit). MCU fuses the output features of the two branches through element-by-element multiplication and element-by-element addition operations. Compared with other feature fusion methods, MCU has stronger feature expression and can better capture the complex relationship between features to improve feature representation ability and model performance. The mathematical expression of MCU is as follows:

[0092] MCU(F1,F2)=(F1⊙F2)⊕B;

[0093] Among them, ⊙ represents element-by-element multiplication, ⊕ represents element-by-element addition, F1 and F2 represent preliminary fusion features and resolution enhancement features respectively, and B is a learnable bias.

[0094] In some of the embodiments, see Figure 4 ,The target detection model includes a first head network and a second head network.

[0095] Based on the above step S213, based on the super-resolution fusion feature, predicting the behavior signs and key point sets in the image information specifically includes the following steps:

[0096] Step S510: Based on the first head network, the super-resolution fusion feature is calculated to obtain the behavior mark in the image information.

[0097] Step S520: Based on the second head network, the super-resolution fusion features are calculated to obtain a set of key points of each behavioral subject.

[0098] Specifically, based on the head network (Head) of YOLOv8, a first head network is set to perform the task of detecting behavioral signs. A second head network is set to regress and predict the key points of the behavioral subject. Preferably, the second head network only detects 8 key points (head, neck, left shoulder, right shoulder, left elbow, right elbow, left wrist, right wrist). Compared with the existing network that detects 17 or 33 points, the second head network has a smaller amount of calculation and better performance.

[0099] In this embodiment, a first head network and a second head network are set to provide an analysis basis for subsequent behavior recognition, with the purpose of further determining the target subject to which the key point belongs by finding the key point corresponding to the behavior mark, thereby improving the matching accuracy between the target subject and the behavior mark.

[0100] In some embodiments, based on the above step S220, based on the behavior mark and the key point set, determining the target subject corresponding to the behavior mark, and obtaining the recognition result of the target behavior, specifically includes the following steps:

[0101] Step S221, determining a target key point set from each key point set based on the positional relationship between the reference key point and the behavior mark in each key point set.

[0102] Step S222, based on the target key point set, determine the target subject corresponding to the behavior mark, and obtain the recognition result of the target behavior.

[0103] Specifically, in the recognition scenario of mobile phone use, the behavior flag is set to mobile phone; the key point set is a set of key points of the human body. The wrist key point in the key point set is used as the reference key point. The target detection model can output the bounding box of the mobile phone and the key point set of the human body, which includes the key points of the head, neck, shoulder, elbow and wrist. The distance between the coordinates of the output wrist key point and the center coordinates of the mobile phone bounding box is calculated to obtain the wrist key point closest to the mobile phone, and the target subject is determined based on the key point set where the wrist key point closest to the mobile phone is located.

[0104] In this embodiment, by referring to the positional relationship between the key points and the behavior marks, the behavior marks and the key point sets are accurately matched, thereby improving the accuracy of judging the target subject who performs the target behavior.

[0105] The present embodiment is described and illustrated by means of a preferred embodiment. In the present preferred embodiment, a method for detecting the use of a mobile phone is provided with the use of a mobile phone as a target behavior.

[0106] With the rapid development of the Internet and smart phones, the functions of mobile phones are becoming more and more abundant, and people's demand for mobile phones is also increasing. However, mobile phones take up more and more time of people, and even have a negative impact on people's lives. For example, children neglect their studies due to excessive use of mobile phones, and drivers cause serious car accidents due to the use of mobile phones. Therefore, the detection of mobile phone use behavior has become a very important part of the security field.

[0107] YOLO (You Only Look Once) is a commonly used object detection and image segmentation model. The YOLOv8 version supports a full range of visual AI tasks, including detection, segmentation, pose estimation, tracking, and classification. Users take advantage of the capabilities of YOLOv8 in different applications and domains. YOLOv8 can be applied to the task of detecting mobile phone usage behavior, but the native YOLOv8 has the following problems:

[0108] (1) Due to various reasons, the resolution of images obtained from the camera in actual application scenarios is relatively low, such as 720p. In addition, the mobile phone target is small, and the pixel proportion in the entire picture is also small. Therefore, when directly detecting the mobile phone through YOLOv8, the mobile phone may be missed.

[0109] (2) The positions of people and mobile phones can be directly regressed through the end-to-end YOLOv8 target detection algorithm. However, this method is only suitable for the case where there is only one human target in the picture. When there are multiple people in the picture, it is necessary not only to regress the positions of people and mobile phones, but also to match the detection frames of people and mobile phones to accurately find the person who actually uses the mobile phone. Some existing methods for matching mobile phones and people include: calculating the distance between the center position of the human frame and the mobile phone frame, and matching at the minimum distance. However, this method will cause matching errors when there is overlap between the human bodies.

[0110] In view of the above two problems, this preferred embodiment improves on the basis of YOLOv8 and adds an image super-resolution module and a human key point detection branch. The network structure for target mobile phone behavior detection is as follows: Figure 4 As shown, the network structure includes an input layer, a backbone network Backbone, a neck network neck and a head network head. The neck network includes a first neck network, a second neck network and an element-by-element fusion module MCU; the head network includes a first head network and a second head network.

[0111] Figure 6 For a flowchart of a method for detecting mobile phone behavior using the above network, see Figure 4 and Figure 6 , the method comprising:

[0112] S1, based on the input layer, obtains the image information collected by the camera, extracts the picture features in the image information through the backbone network, transmits the picture features to the first neck network and the second neck network respectively, obtains the preliminary fusion features based on the first neck network, and obtains the resolution enhancement features based on the second neck network.

[0113] S2, by element-by-element fusion of MCU, fuses the preliminary fusion features and the resolution enhancement features to obtain the super-resolution fusion features. The mathematical expression of MCU is as follows:

[0114] MCU(F1,F2)=(F1⊙F2)⊕B;

[0115] Among them, ⊙ represents element-by-element multiplication, ⊕ represents element-by-element addition, F1 and F2 represent preliminary fusion features and resolution enhancement features respectively, and B is a learnable bias.

[0116] S3, transmit the super-resolution fusion features output by the MCU to the first head network and the second head network for regression processing respectively, predict the mobile phone boundary box based on the first head network, and predict the key point set of the human body based on the second head network.

[0117] S4, according to the coordinates of the mobile phone bounding box bbox and the wrist key point obtained in step S3, calculate the distance between the center position of the mobile phone bounding box bbox and the wrist key point, determine that the wrist closest to the mobile phone is the wrist holding the mobile phone, and finally match the human body with the mobile phone according to the set of human body key points to which the wrist key point belongs, and obtain the accurate bbox of the person using the mobile phone.

[0118] In this preferred embodiment, the second neck network is used to further extract detailed features, and the output results of the first neck network and the second neck network are fused to improve the resolution of the image. Even if the pixel proportion of the mobile phone target in the entire picture is small, the mobile phone can be accurately identified in the subsequent network. Secondly, in order to solve the problem of easy mismatch between the mobile phone and the human body, the second head network of this preferred embodiment can output the key points of the human body, and perform matching calculations with the mobile phone based on the key points of the wrist, so as to find the corresponding relationship between the mobile phone and the human body from a more detailed perspective, thereby improving the accuracy of matching.

[0119] In summary, in this preferred embodiment, by introducing a second neck network into the YOLOv8 network, the input image is enhanced, and the problem of too low pixel of small target mobile phones is improved. At the same time, a feature fusion method MCU is proposed to enhance the feature expression, thereby optimizing the problem of missed detection of mobile phones, thereby improving the recall rate of mobile phone detection.

[0120] In this preferred embodiment, a key point regression branch is added to the head part of the YOLOv8 network. By connecting the key points of the wrist holding the mobile phone with other key points of the human body, the person playing with the mobile phone and the mobile phone are accurately matched to obtain a more accurate position of the person playing with the mobile phone.

[0121] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0122] In this embodiment, a behavior recognition device based on a target detection model and image super-resolution is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. The terms "module", "unit", "sub-unit", etc. used below may implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0123] Figure 7 is a structural block diagram of the behavior recognition device based on the target detection model and image super-resolution of this embodiment. Figure 7As shown, the device includes: a model processing module 10 and a behavior recognition module 20.

[0124] The model processing module 10 is used to obtain image information to be detected, input the image information into a preset target detection model for feature processing, and predict the behavior signs and key point sets in the image information based on the target detection model; wherein the process of performing feature processing in the target detection model includes: extracting image features from the image information; performing super-resolution processing on the image features to obtain super-resolution fusion features after enhanced resolution; and predicting the behavior signs and key point sets in the image information based on the super-resolution fusion features.

[0125] The behavior recognition module 20 is used to determine the target subject corresponding to the behavior mark based on the behavior mark and the key point set, and obtain the recognition result of the target behavior.

[0126] In some of the embodiments, the model processing module 10 is also used for the target detection model including a backbone network, and image features are extracted from image information based on the backbone network.

[0127] In some of the embodiments, the model processing module 10 is also used for the target detection model including a first neck network, a second neck network and an element-by-element fusion module; based on the first neck network, the extracted image features of each layer are fused to obtain preliminary fusion features; based on the second neck network, the detailed features of the extracted image features of each layer are extracted to obtain resolution enhancement features; based on the element-by-element fusion module, the preliminary fusion features and the resolution enhancement features are fused to obtain super-resolution fusion features.

[0128] In some of the embodiments, the model processing module 10 is also used for the second neck network including a texture branch and a pixel branch; based on the texture branch, texture features are extracted from the image features of each layer; based on the pixel branch, pixel features corresponding to the image color are extracted from the image features of each layer; based on the texture features and the pixel features, resolution enhancement features are obtained.

[0129] In some of the embodiments, the model processing module 10 is further used to perform element-by-element multiplication processing on the preliminary fusion features and the resolution enhancement features; based on the learnable bias, perform element-by-element addition processing on the result of the element-by-element multiplication processing to obtain the super-resolution fusion feature.

[0130] In some of the embodiments, the model processing module 10 is also used for a target detection model including a first head network and a second head network; based on the first head network, super-resolution fusion features are calculated to obtain behavior signs in the image information; based on the second head network, super-resolution fusion features are calculated to obtain a set of key points for each behavior subject.

[0131] In some of the embodiments, the behavior recognition module 20 is also used to determine a target key point set from each key point set based on the positional relationship between the reference key point in each key point set and the behavior mark; based on the target key point set, determine the target subject corresponding to the behavior mark to obtain the recognition result of the target behavior.

[0132] In some of the embodiments, the behavior recognition module 20 is also used to set the behavior mark as a mobile phone; the key point set is a set of key points of the human body, and the wrist key point in the key point set is used as a reference key point; the distance between each reference key point and the behavior mark is calculated, and the target key point set is determined based on the reference key point with the smallest distance to the behavior mark.

[0133] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0134] In this embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0135] Optionally, the computer device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0136] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0137] In addition, in combination with the behavior recognition method based on the target detection model and image super-resolution provided in the above embodiments, a storage medium can also be provided in this embodiment to implement. The storage medium stores a computer program; when the computer program is executed by the processor, any one of the behavior recognition methods based on the target detection model and image super-resolution in the above embodiments is implemented.

[0138] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0139] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0140] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0141] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A behavior recognition method based on target detection model and image super-resolution, characterized in that: The method comprises: Acquire image information to be detected, input the image information into a preset target detection model for feature processing, and predict the behavior signs and key point sets in the image information based on the target detection model; Based on the behavior mark and the key point set, determining a target subject corresponding to the behavior mark, and obtaining a recognition result of the target behavior; The process of performing feature processing in the target detection model includes: extracting image features from the image information; Performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution; Based on the super-resolution fusion features, predicting the behavior signs and key point sets in the image information; The step of performing super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution includes: The target detection model includes a first neck network, a second neck network and an element-by-element fusion module; Based on the first neck network, the extracted image features of each layer are fused to obtain preliminary fused features; Based on the second neck network, extracting detail features from the extracted image features of each layer to obtain resolution enhancement features; Based on an element-by-element fusion module, the preliminary fusion feature and the resolution enhancement feature are fused to obtain a super-resolution fusion feature; The step of extracting detail features of the extracted image features of each layer based on the second neck network to obtain resolution enhancement features includes: The second neck network includes a texture branch and a pixel branch; Based on the texture branch, extracting texture features from the image features of each layer; Based on the pixel branch, extracting pixel features corresponding to image colors from the image features of each layer; A resolution enhancement feature is obtained based on the texture feature and the pixel feature.

2. The method for behavior recognition based on target detection model and image super-resolution according to claim 1, characterized in that: The extracting image features from the image information comprises: The object detection model includes a backbone network, and image features are extracted from the image information based on the backbone network.

3. The behavior recognition method based on target detection model and image super-resolution according to claim 1, characterized in that: The element-by-element fusion module is based on which the preliminary fusion feature and the resolution enhancement feature are fused to obtain a super-resolution fusion feature, including: Performing element-by-element multiplication processing on the preliminary fusion feature and the resolution enhancement feature; Based on the learnable bias, element-by-element addition is performed on the result of the element-by-element multiplication process to obtain a super-resolution fusion feature.

4. The behavior recognition method based on target detection model and image super-resolution according to claim 1, characterized in that: The predicting of the behavior signs and key point sets in the image information based on the super-resolution fusion features includes: The target detection model includes a first head network and a second head network; Based on the first head network, the super-resolution fusion feature is calculated to obtain the behavior mark in the image information; Based on the second head network, the super-resolution fusion features are calculated to obtain a set of key points of each behavior subject.

5. The method for behavior recognition based on target detection model and image super-resolution according to claim 1, characterized in that: The step of determining a target subject corresponding to the behavior mark based on the behavior mark and the key point set, and obtaining a recognition result of the target behavior, includes: Determining a target key point set from each of the key point sets based on a positional relationship between a reference key point in each of the key point sets and the behavior mark; Based on the target key point set, the target subject corresponding to the behavior mark is determined to obtain a recognition result of the target behavior.

6. The behavior recognition method based on target detection model and image super-resolution according to claim 5, characterized in that: The determining of the target key point set from each of the key point sets based on the positional relationship between the reference key point in each of the key point sets and the behavior mark comprises: The behavior mark is set as a mobile phone; the key point set is a set of key points of a human body, and the wrist key point in the key point set is used as a reference key point; The distance between each of the reference key points and the behavior mark is calculated, and a target key point set is determined based on the reference key point with the smallest distance to the behavior mark.

7. A behavior recognition device based on target detection model and image super-resolution, characterized in that: The device comprises: A model processing module is used to obtain image information to be detected, input the image information into a preset target detection model for feature processing, and predict the behavior signs and key point sets in the image information based on the target detection model; wherein the process of performing feature processing in the target detection model includes: extracting image features from the image information; performing super-resolution processing on the image features to obtain super-resolution fusion features after enhanced resolution; based on the super-resolution fusion features, predicting the behavior signs and key point sets in the image information; wherein the super-resolution fusion processing on the image features to obtain super-resolution fusion features after enhanced resolution includes: the target detection model includes a first neck network, a second neck network and an element-by-element fusion module; based on the first neck network, the extracted image features of each layer are fused to obtain preliminary fusion features; based on the second neck network, the extracted image features of each layer are extracted for detailed features to obtain resolution enhancement features; based on the element-by-element fusion module, the preliminary fusion features and the resolution enhancement features are fused to obtain super-resolution fusion features; The method of extracting detailed features from the extracted image features of each layer based on the second neck network to obtain resolution enhancement features includes: the second neck network includes a texture branch and a pixel branch; based on the texture branch, extracting texture features from the image features of each layer; based on the pixel branch, extracting pixel features corresponding to image colors from the image features of each layer; and obtaining resolution enhancement features based on the texture features and the pixel features. The behavior recognition module is used to determine the target subject corresponding to the behavior mark based on the behavior mark and the key point set, and obtain the recognition result of the target behavior.

8. A computer device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps of the behavior recognition method based on a target detection model and image super-resolution as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Small target identification method based on Yolo-I model and related device

    CN117636131A

  • Smoking behavior identification method and system based on Yolov5 key point detection model

    CN118262414A