A monitoring method, system, device and medium for standardized operation of kitchen waste

Through the human skeleton point extraction model and normative judgment network, combined with loss function optimization, it solves the problem of judging the action of kitchen waste captured by cameras with variable angles, improves the accuracy of standardized monitoring of food waste processing, and is suitable for intelligent garbage classification and intelligent urban realm.

CN112487877BActive Publication Date: 2024-09-10GUANDONG XINDUN POWER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011260881.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-09-10
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

The existing technology makes it difficult to judge whether the target person's action of throwing food waste is standardized from the continuous frames captured by cameras from different angles, especially when the environment around the trash can is uncertain, making it more difficult to reuse food waste.

Method used

Using the human skeleton point extraction model and the normative judgment network, through the skeleton point rough extraction network and the fine extraction network, alternately updated, combined with the loss function optimization, the target human skeleton points are detected and whether the action of throwing food waste is standardized, and the feature vector is stored to determine Action normativeness.

Benefits of technology

It improves the accuracy of skeleton point extraction and action normative judgment in different scenes and angles, reduces interference to the environment, and enhances the ability to monitor the normativeness of food waste disposal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112487877B
    Figure CN112487877B
Patent Text Reader

Abstract

The present invention discloses a monitoring method, system, device and medium for standardized operation of kitchen waste, wherein the method comprises: obtaining continuous video frames; inputting the continuous video frames into a target detection model, and outputting a target person detection frame; obtaining a target person image according to the target person detection frame, and inputting the target person image into a human skeleton point extraction model to obtain the human skeleton point coordinates; obtaining a feature vector image according to the skeleton point coordinates, combining the feature vector image and a standard judgment network to detect whether the target person's action of throwing kitchen waste is standardized, and if it is determined that it is not standardized, storing the feature vector image. The present invention detects the skeleton points of the target person, and judges whether there is an action of separating plastic bags and garbage according to the position of the skeleton points in the continuous frames, and then judges whether the kitchen waste treatment is standardized, and can be applied to the fields of intelligent garbage classification, smart cities, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of deep learning technology, and in particular to a monitoring method, system, device and medium for standardized operation of kitchen waste. Background Art

[0002] With the official implementation of local domestic waste management regulations, garbage classification activities are being actively carried out in various places. According to relevant regulations, kitchen waste needs to be separated from plastic bags and kitchen waste before the kitchen waste is thrown into the designated trash can. In actual situations, plastic bags are not separated when kitchen waste is thrown, which will greatly increase the difficulty of recycling kitchen waste. In order to solve this problem, it is necessary to determine whether the action of throwing kitchen waste is standardized, and then make corresponding reminders.

[0003] Since the environment around the trash can is uncertain and the target person's actions of throwing garbage are not uniform, it is difficult to judge whether the target person's actions of throwing kitchen waste are standard from the continuous frames taken by the camera at uncertain angles. Summary of the invention

[0004] In order to solve at least one of the technical problems existing in the prior art to a certain extent, the purpose of the present invention is to provide a monitoring method, system, device and medium for standardized operation of kitchen waste.

[0005] The technical solution adopted by the present invention is:

[0006] A method for monitoring the standardized operation of kitchen waste comprises the following steps:

[0007] Get continuous video frames;

[0008] Input the continuous video frames into a target detection model and output a target person detection frame;

[0009] Obtaining a target person image according to the target person detection frame, inputting the target person image into a human skeleton point extraction model, and obtaining the coordinates of the human skeleton points;

[0010] A feature vector image is obtained according to the coordinates of the skeleton points, and the feature vector image and the specification are combined to determine whether the action of the target person throwing away the kitchen waste is standardized. If it is determined that it is not standardized, the feature vector image is stored.

[0011] Furthermore, the human skeleton point extraction model includes a skeleton point coarse extraction network and a skeleton point fine extraction network. The human skeleton point extraction model is obtained by alternately updating the skeleton point coarse extraction network and the skeleton point fine extraction network according to a first loss function, and the specification judgment network is obtained by alternately updating according to a second loss function.

[0012] Furthermore, the method for monitoring the standardized operation of kitchen waste also includes a training step of establishing the human skeleton point extraction model, the training step of the human skeleton point extraction model includes the step of training the skeleton point coarse extraction network and the skeleton point fine extraction network, and the step of training the skeleton point coarse extraction network and the skeleton point fine extraction network includes the following steps:

[0013] After inputting the data set with skeleton point labels into the skeleton point rough extraction network, a human skeleton point rough feature map is obtained;

[0014] After inputting the human skeleton point coarse feature map into the skeleton point fine extraction network, a human skeleton point fine feature map is obtained;

[0015] Calculate a first loss function according to the human skeleton point coarse feature map and the human skeleton point fine feature map;

[0016] The first loss function is used to train the skeleton point coarse extraction network and the skeleton point fine extraction network.

[0017] Furthermore, the method for monitoring the standardized operation of kitchen waste also includes a training step of establishing the standardized judgment network, and the training step of the standardized judgment network includes the following steps:

[0018] After inputting the data set with normative labels into the normative judgment network, a normative judgment feature vector is obtained;

[0019] Calculate a second loss function based on the normative judgment feature vector and the normative label;

[0020] The second loss function is used to train the norm judgment network.

[0021] Further, the target person image is input into a human skeleton point extraction model to obtain the human skeleton point coordinates, specifically:

[0022] Input the target person image into the human skeleton point extraction model to obtain the coordinates of 8 skeleton points of the human body;

[0023] The step of obtaining a feature vector image according to the skeleton point coordinates, combining the feature vector image with the specification to determine whether the action of the target person throwing away kitchen waste is standard, and storing the feature vector image if it is determined that the action is not standard, includes:

[0024] Combining the coordinates of the eight skeleton points into a 16-dimensional feature vector, and storing the 16-dimensional feature vector in a storage medium;

[0025] Determine whether the number of the 16-dimensional feature vectors in the storage medium is greater than a preset threshold, if so, execute the next step; otherwise, continue to store the 16-dimensional feature vectors;

[0026] All the 16-dimensional feature vectors in the storage medium are combined into a feature map, the feature map is input into a standard judgment network, and the standard judgment network outputs a standard feature vector;

[0027] Whether the target person's action of throwing away kitchen waste is standard is judged according to the standard feature vector. If it is standard, all feature vectors in the storage medium are cleared; otherwise, the feature vectors in the storage medium are saved.

[0028] Furthermore, the expression of the second loss function is:

[0029]

[0030] Where N represents the number of feature vectors of each input block, N p is the dimension of the normalized feature vector, v(p * ) represents the corresponding canonical label, and v(i) represents the predicted canonical feature vector.

[0031] Further, the 16-dimensional feature vector includes the horizontal and vertical coordinates of the 8 skeleton point images, in the order of the horizontal coordinate of the chin skeleton point, the horizontal coordinate of the neck skeleton point, the horizontal coordinate of the left shoulder joint skeleton point, the horizontal coordinate of the right shoulder joint skeleton point, the horizontal coordinate of the left elbow joint skeleton point, the horizontal coordinate of the right elbow joint skeleton point, the horizontal coordinate of the left wrist joint skeleton point, the horizontal coordinate of the right wrist joint skeleton point, the vertical coordinate of the chin skeleton point, the vertical coordinate of the neck skeleton point, the vertical coordinate of the left shoulder joint skeleton point, the vertical coordinate of the right shoulder joint skeleton point, the vertical coordinate of the left elbow joint skeleton point, the vertical coordinate of the right elbow joint skeleton point, the vertical coordinate of the left wrist joint skeleton point, and the vertical coordinate of the right wrist joint skeleton point.

[0032] Another technical solution adopted by the present invention is:

[0033] A monitoring system for standardized operation of kitchen waste, comprising:

[0034] A data input module, used for acquiring continuous video frames;

[0035] A human detection module, used to input the continuous video frames into a target detection model and output a target person detection frame;

[0036] A coordinate extraction module, used to obtain a target person image according to the target person detection frame, input the target person image into a human skeleton point extraction model, and obtain the coordinates of the human skeleton points;

[0037] The action detection module is used to obtain a feature vector image according to the skeleton point coordinates, and to determine whether the action of the target person throwing away kitchen waste is standard by combining the feature vector image and the specification. If it is determined that it is not standard, the feature vector image is stored.

[0038] Another technical solution adopted by the present invention is:

[0039] A monitoring device for standardized operation of kitchen waste, comprising:

[0040] at least one processor;

[0041] at least one memory for storing at least one program;

[0042] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned method for monitoring standardized operations of kitchen waste.

[0043] Another technical solution adopted by the present invention is:

[0044] A storage medium stores processor-executable instructions, which are used to execute the above-mentioned method for monitoring standardized operation of kitchen waste when executed by the processor.

[0045] The beneficial effects of the present invention are as follows: the present invention detects the skeleton points of the target person, and judges whether there is an action of separating plastic bags and garbage according to the positions of the skeleton points in continuous frames, and then judges whether the treatment of kitchen waste is standardized. The present invention can be applied to the fields of intelligent garbage classification, smart cities, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the embodiments of the present invention or the drawings of related technical solutions in the prior art are introduced below. It should be understood that the drawings introduced below are only for the convenience of clearly describing some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 It is a flowchart of the steps of a method for monitoring the standardized operation of kitchen waste in an embodiment of the present invention;

[0048] Figure 2 It is a framework diagram of the human skeleton point extraction network and the standard judgment network model in an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0050] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0051] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0052] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0053] In order to judge whether the target person's action of throwing kitchen waste is standardized, in the prior art, the discriminant method in the action standardization judgment task attempts to distinguish actions in multiple scenarios by using a single judgment classifier. For example, Liu et al. input continuous frame pictures into the Convolutional Neural Network (CNN) model to judge whether the current target person's action of throwing kitchen waste is standardized, Zhang et al. use the Long Short-Term Memory (LSTM) model to extract the temporal features of the target person in the time series video frame, and then judge whether the current target person's action of throwing kitchen waste is standardized, Zhou et al. use the Local Binary Pattern (LBP) feature to characterize the target person, and then input the LBP features of the continuous frames into the Support Vector Machine (SVM) to judge whether the target person's action of throwing kitchen waste is standardized. However, these discriminant methods are only applicable to fixed scenes, and are very sensitive to the surrounding environment and the target person's action of throwing garbage. It is difficult to determine whether the target person's action of throwing kitchen waste is standardized in the continuous frames shot by the camera at an uncertain angle.

[0054] If the skeleton points of the target person can be detected, then the position of the skeleton points in the continuous frames can be used to determine whether there is an action of separating plastic bags from garbage, and then to determine whether the kitchen waste is handled in a standardized manner. This can be applied to the fields of intelligent garbage classification and smart cities.

[0055] like Figure 1 As shown, this embodiment provides a method for monitoring the standardized operation of kitchen waste, which is based on human skeleton point positioning technology and includes but is not limited to the following steps:

[0056] S1. Training a human skeleton point detection model and a normative judgment network. The human skeleton point detection model includes a skeleton point coarse extraction network and a skeleton point fine extraction network. During the training process, the human skeleton point detection model is obtained by alternately updating the skeleton point coarse extraction network and the skeleton point fine extraction network according to relevant losses, and the normative judgment network is obtained by alternately updating according to relevant losses.

[0057] The judgment of the standardized operation of kitchen waste based on human skeleton point positioning refers to: detecting the human skeleton points of the target person in the continuous video frames, and then judging whether the target person operates the kitchen waste in a standardized manner in the continuous video frames. Specifically, the skeleton point coarse extraction network is used to extract the skeleton point coarse feature map of the target person input into the skeleton point detection model, and the skeleton point coarse feature map includes the approximate image coordinate information of 8 skeleton points of the person, the skeleton point fine extraction network is used to extract the target person skeleton point fine feature map according to the skeleton point coarse feature map, and the skeleton point fine feature map includes the specific image coordinate information of 8 skeleton points of the person, and the standard judgment network is used to extract the target person's 16-dimensional feature vector according to the skeleton point fine feature map of the target person for 60 consecutive frames, and the feature vector contains whether the target person throws kitchen waste in a standardized manner. The present invention optimizes and updates the skeleton point coarse extraction network, the skeleton point fine extraction network, and the standard judgment network through the loss function, which not only improves the skeleton point extraction ability of the skeleton point extraction network for different postures of target people in different scenes, but also improves the anti-interference ability of the standard judgment network for the standardized judgment of inconsistent garbage throwing actions, thereby improving the accuracy of judging whether the action of throwing kitchen waste is standardized.

[0058] Wherein, step S1 includes the following steps S11-S13:

[0059] S11, training the skeleton point rough extraction network;

[0060] S12, training the skeleton point extraction network;

[0061] S13. Train the norm judgment network.

[0062] Specifically, refer to Figure 2 This embodiment provides a human skeleton point detection model and a standard judgment network. The human skeleton point detection model includes a skeleton point coarse extraction network and a skeleton point fine extraction network. In order to obtain an effective human skeleton point detection network and a standard judgment network, it is necessary to use related losses to alternately update the skeleton point coarse extraction network, the skeleton point fine extraction network, and the standard judgment network.

[0063] Step S11 includes the following steps S111-S113:

[0064] S111, after inputting a human data set with human skeleton point labels into a skeleton point rough extraction network, obtaining an output skeleton point rough feature map;

[0065] S112, calculating a reference loss function according to the output skeleton point coarse feature map and the human skeleton point labels;

[0066] S113, using the reference loss function to train the skeleton point coarse extraction network.

[0067] Specifically, the purpose of constructing a skeleton point rough extraction network is to build a skeleton point rough extraction network more quickly and efficiently through pre-training learning. Because these pre-trained models usually consume huge time and computing resources when developing neural networks, pre-training learning can transfer the powerful skills learned to related problems. Training the skeleton point rough extraction network through pre-training learning can reduce the time and difficulty of model training, and reduce the requirements for training data.

[0068] like Figure 2 As shown, the network structure of the skeleton point coarse extraction network of the present invention is constructed by using multiple convolution layers with convolution kernels of 3×3, the purpose of which is to increase the nonlinear expression ability of the skeleton point coarse extraction network, make the input target human image skeleton points more separable, and reduce the number of network convolution layer parameters.

[0069] Each convolutional layer is followed by a BN (Batch Normalization) operation, a ReLU linear activation function, and a maximum pooling layer. The maximum pooling layer reduces the depth feature dimension of the image to half of its original size.

[0070] The last convolutional layer maps the deep feature dimension to 50176 dimensions, and then forms a 8×112×56 dimensional feature map, which represents a coarse feature map of 8 skeleton points with a dimension of 112×56.

[0071] The human images used to train the skeleton point rough extraction network can come from public human databases, which mainly include COCO, MPII, AI Challenge, etc. The human images with skeleton point labels are preprocessed, including image enhancement, image scaling, etc., and finally a standard human image with a size of 3×448×224 is obtained, which constitutes a dataset with skeleton point labels.

[0072] The dataset with skeleton point labels is input into the skeleton point rough extraction network. The initial learning rate is set to 0.1, the number of human images in each input batch is 64, and the maximum number of training iterations is expected to be 1 million.

[0073] The cross entropy loss function between the skeleton point label of the standard human image and the output skeleton point coarse feature map of the skeleton point coarse extraction network is calculated as the reference loss function of the skeleton point coarse extraction network. The formula of the cross entropy loss function is as follows:

[0074]

[0075] Where N represents the number of human images in each input batch, i.e., 64. H and W represent the length and width of the skeleton point coarse feature map, i.e., 112 and 56.i,j Represents the feature vector composed of the eigenvalues ​​of the coarse feature map of 8 skeleton points at coordinate (i, j), t * i,j represents the true category of the pixel at coordinate (i, j) in the original image, and N1 represents the number of coarse feature maps of the skeleton point, which is 8. The purpose of the loss function L is to make the feature vector x corresponding to the coordinate (i, j) i,j The category corresponding to the largest eigenvalue is the true category of the coordinate.

[0076] According to the value of the loss function, the skeleton point coarse extraction network is trained using the stochastic gradient descent method, and the parameters of all layers in the skeleton point coarse extraction network are adjusted to obtain the optimal skeleton point coarse extraction network.

[0077] Step S12 includes the following steps S121-S124:

[0078] S121, inputting the data set with skeleton point labels into the optimal skeleton point rough extraction network to obtain a skeleton point rough feature map with labels;

[0079] S122, inputting the labeled skeleton point coarse feature map into the skeleton point fine extraction network to obtain the skeleton point fine feature map;

[0080] S123, calculating a reference loss function according to the output skeleton point fine feature map and the human skeleton point label;

[0081] S124. Use the reference loss function to train the skeleton point extraction network.

[0082] Specifically, the purpose of constructing a skeleton point extraction network is to build a skeleton point extraction network more quickly and efficiently through pre-training learning. Because these pre-trained models usually consume huge time and computing resources when developing neural networks, pre-training learning can transfer the powerful skills that have been learned to related problems. Training the skeleton point extraction network through pre-training learning can reduce the time and difficulty of model training, and reduce the requirements for training data.

[0083] like Figure 2 As shown, the network structure of the skeleton point fine extraction network of the present invention is built with multiple convolution layers with convolution kernels of 3×3, with the purpose of increasing the nonlinear expression ability of the skeleton point fine extraction network, making the output skeleton point fine feature map more separable, and reducing the number of network convolution layer parameters.

[0084] Each convolutional layer is followed by a BN (Batch Normalization) operation, a ReLU linear activation function, and a maximum pooling layer. The maximum pooling layer reduces the depth feature dimension of the image to half of its original size.

[0085] The last convolutional layer maps the deep feature dimension to 57344 dimensions, which then form 8×128×56, indicating that the 8 dimensions are 128×56 skeleton point fine feature maps.

[0086] The human images used to train the reference network can come from public human databases, which mainly include COCO, MPII, AI Challenge, etc. The human images with skeleton point labels are preprocessed, including image enhancement, image scaling, etc., and finally a standard human image with a size of 3×448×224 is obtained. The 3×448×224 standard human image is input into the trained skeleton point coarse extraction network to obtain a 8×128×56 skeleton point coarse feature map, which constitutes a dataset with skeleton point labels.

[0087] The dataset with skeleton point labels is input into the skeleton point fine extraction network. The initial learning rate is set to 0.1, the number of skeleton point coarse feature maps for each input block (Batch) is 64, and the maximum number of training iterations is expected to be 1 million.

[0088] The regression loss function between the skeleton point label of the standard human image and the skeleton point fine feature map output by the skeleton point fine extraction network is used as the reference loss function of the skeleton point fine extraction network. The formula of the regression loss function is as follows:

[0089]

[0090] Where N represents the number of human images in each input batch, i.e., 64. H and W represent the length and width of the skeleton point coarse feature map, i.e., 128 and 56. N2 represents the number of skeleton point coarse feature maps, i.e., 8. k (i,j) represents the eigenvalue of the kth fine feature map at coordinate (i,j). * k (i, j) represents the feature value of the kth label map at the coordinate (i, j), where the label map is generated based on the label. The coordinate value of the corresponding skeleton point in the label map is 1, and the values ​​of the other coordinates are 0. The purpose of the loss function L is to make the skeleton point fine feature map more accurately express the coordinate position of the skeleton point.

[0091] According to the value of the loss function, the skeleton point extraction network is trained using the stochastic gradient descent method, and the parameters of all layers in the skeleton point extraction network are adjusted to obtain the optimal skeleton point extraction network.

[0092] Step S13 includes the following steps S131-S136:

[0093] S131, inputting the data set with standard labels into the optimal skeleton point rough extraction network to obtain a skeleton point rough feature map with standard labels;

[0094] S132, inputting the labeled skeleton point coarse feature map into the optimal skeleton point fine extraction network to obtain a skeleton point fine feature map;

[0095] S133, obtaining coordinates of 8 skeleton points according to the skeleton point fine feature map, and forming a 16-dimensional feature vector;

[0096] S134, inputting 60 16-dimensional feature vectors with labels for 60 consecutive frames into a standard judgment network to obtain a standard judgment feature vector;

[0097] S135, calculating a reference loss function according to the output specification judgment feature vector and the specification label;

[0098] S136. Train the norm judgment network using the reference loss function.

[0099] Specifically, the purpose of building a normative judgment network is to build a normative judgment network more quickly and efficiently through pre-training learning. Because these pre-trained models usually consume huge time and computing resources when developing neural networks, pre-training learning can transfer the powerful skills that have been learned to related problems. Training the normative judgment network through pre-training learning can reduce the time and difficulty of model training, and reduce the requirements for training data.

[0100] like Figure 2 As shown, the network structure of the specification judgment network of the present invention is constructed by using multiple convolution layers with convolution kernels of 3×3, the purpose of which is to increase the nonlinear expression ability of the specification judgment network, make the input skeleton point fine feature map more separable, and reduce the number of network convolution layer parameters.

[0101] Each convolutional layer is followed by a BN (Batch Normalization) operation, a ReLU linear activation function, and a maximum pooling layer. The maximum pooling layer reduces the depth feature dimension of the image to half of its original size.

[0102] The last convolutional layer maps the deep feature dimension to 2, indicating the probability of whether the kitchen waste is disposed of in accordance with the regulations within these 60 frames.

[0103] The human images used to train the standard judgment network come from a self-made database, which mainly includes standard action continuous video frames and non-standard action continuous video frames, and their standard labels. The human images with standard labels are preprocessed, including image enhancement, image scaling, etc., and finally a standard human image with a size of 3×448×224 is obtained. The 3×448×224 standard human image is input into the optimal skeleton point coarse extraction network to obtain a 8×112×56 skeleton point coarse feature map, which constitutes a dataset with standard labels.

[0104] The self-made dataset with normative labels is input into the normative judgment network, the initial learning rate is set to 0.1, the number of 60×16 dimensional feature vectors of each input block (Batch) is 64, and the maximum number of training iterations is expected to be 1 million times.

[0105] The cross entropy loss function between the canonical label of the standard person image and the output canonical feature vector of the canonical judgment network is calculated as the reference loss function of the canonical judgment network. The formula of the cross entropy loss function is as follows:

[0106]

[0107] Where N represents the number of 60×16-dimensional feature vectors of each input block (Batch), that is, 64. p is the dimension of the normalized eigenvector, i.e. 2. v(p * ) represents the corresponding canonical label, where the canonical label dimension is 2, the vector value of the corresponding true value dimension is 1, and the vector values ​​of the other dimensions are 0. v(i) represents the predicted canonical feature vector, where the predicted canonical feature vector dimension is 8. The purpose of the loss function L is to make the predicted canonical feature vector consistent with the canonical label.

[0108] S2. Obtain 16-dimensional feature vectors of the target and the corresponding standard judgment feature vectors for 60 consecutive frames.

[0109] Wherein, step S2 includes the following steps S21-S24:

[0110] S21, input the target person in the current frame image into the skeleton point detection model, and output the skeleton point fine feature map;

[0111] S22, obtaining a 16-dimensional feature vector according to the skeleton point fine feature map, and storing it in a storage medium;

[0112] S23, determining whether the number of 16-dimensional feature vectors in the storage medium reaches 60, if so, obtaining a 60×16 feature map and performing the following steps, otherwise repeating the above steps for the next frame;

[0113] S24, 60×16 feature map is input into the normative judgment network to obtain the corresponding normative judgment feature vector.

[0114] Specifically, the current frame is input into the YOLO model to obtain the target person's border, and the image in the border is input into the skeleton point detection model after being standardized to obtain the skeleton point fine feature map. According to the coordinates of the maximum corresponding value of the skeleton point fine feature map, 8 skeleton point coordinates are obtained, and a 16-dimensional feature vector is further obtained and stored in the storage medium. When the number of 16-dimensional feature vectors in the storage medium is equal to 60, the 60 16-dimensional feature vectors are input into the standard judgment network, and the standard judgment network outputs the standard feature vector.

[0115] Step S21 includes the following steps S211-S213:

[0116] S211, using the YOLO detection model to obtain the target person detection frame in the continuous frame;

[0117] S212, preprocessing the images in the target person detection frame in the continuous frames;

[0118] S213, inputting the standard person image into the skeleton point detection model to obtain a skeleton point fine feature map corresponding to the image;

[0119] Specifically, the YOLO detection model is used to obtain the target detection frame in the continuous frame, the image in the continuous frame detection frame is cropped out, and the cropped image is preprocessed for image enhancement and image scaling, and finally a standard human image with a size of 3×448×224 is obtained. The standard human image is input into the skeleton point detection model to obtain a skeleton point fine feature map.

[0120] Step S22 includes the following steps S221-S224:

[0121] S221, inputting a standard person image into a skeleton point detection model;

[0122] S222, obtaining a fine feature map of the visible skeleton points corresponding to the image;

[0123] S223, obtain the coordinates of 8 skeleton points corresponding to the image

[0124] S224. Obtain a 16-dimensional feature vector based on the coordinates of the 8 skeleton points and store it in a memory.

[0125] Specifically, a standard person image is input into a skeleton point detection model, and 8 skeleton point fine feature maps corresponding to the image are obtained. The coordinates of 8 skeleton points are obtained according to the coordinates of the corresponding maximum eigenvalues ​​of the skeleton point fine feature maps. The 8 skeleton points include the human chin, neck, left shoulder joint, right shoulder joint, left elbow joint, right elbow joint, left wrist joint, and right wrist joint skeleton points. The 8 skeleton point coordinates are sorted as follows to form a 16-dimensional feature vector: the horizontal coordinate of the chin skeleton point, the horizontal coordinate of the neck skeleton point, the horizontal coordinate of the left shoulder joint skeleton point, the horizontal coordinate of the right shoulder joint skeleton point, the horizontal coordinate of the left elbow joint skeleton point, the horizontal coordinate of the right elbow joint skeleton point, the horizontal coordinate of the left wrist joint skeleton point, the horizontal coordinate of the right wrist joint skeleton point, the vertical coordinate of the chin skeleton point, the vertical coordinate of the neck skeleton point, the vertical coordinate of the left shoulder joint skeleton point, the vertical coordinate of the right shoulder joint skeleton point, the vertical coordinate of the left elbow joint skeleton point, the vertical coordinate of the right elbow joint skeleton point, the vertical coordinate of the left wrist joint skeleton point, and the vertical coordinate of the right wrist joint skeleton point. Finally, the 16-dimensional feature vector is stored in a storage.

[0126] Step S23 includes the following steps S231-S234:

[0127] S231. If the number of 16-dimensional feature vectors in the storage medium is equal to 60, execute S233;

[0128] S232. If the number of 16-dimensional feature vectors in the storage medium is not equal to 60, execute S234;

[0129] S233, combining 60 16-dimensional feature vectors into a 60×16 feature vector map;

[0130] S234 , waiting for the number of 16-dimensional feature vectors in the storage medium to be equal to 60.

[0131] Specifically, each frame of the image can obtain a 16-dimensional feature vector through the skeleton point detection model and store it in the storage medium. When the number of 16-dimensional feature vectors in the storage medium reaches 60, these 60 16-dimensional feature vectors are combined into a 60×16 feature vector map. When the number of 16-dimensional feature vectors in the storage medium is less than 60, the next frame of the image is input into the skeleton point detection model to obtain a new 16-dimensional feature vector and store it in the storage medium.

[0132] Step S24 includes the following steps S241-S242:

[0133] S241, input the 60×16 feature vector image into the trained normative judgment network;

[0134] S242, the norm judgment network outputs a norm feature vector.

[0135] S3. Judging the characteristic vector according to the standard, whether the target person's action of throwing away the kitchen waste is standard.

[0136] Step S3 includes the following steps S31-S33:

[0137] S31, judging whether it is standard according to the standard feature vector, if not, executing S32, otherwise executing S33

[0138] S32. Clear all 16-dimensional feature vectors in the storage and issue a non-standard reminder.

[0139] S33, clear the first 30 16-dimensional feature vectors in the storage.

[0140] Specifically, it is determined whether the standard feature value in the standard feature vector is greater than the non-standard feature value. If so, it is determined to be standard. Otherwise, it is further determined whether the non-standard feature value is less than the non-standard threshold. If so, it is determined to be standard. Otherwise, it is determined to be non-standard. When it is determined to be standard, the first 30 16-dimensional feature vectors in the storage are cleared, and the process returns to step S1. When it is determined to be non-standard, all 16-dimensional feature vectors are cleared, a non-standard reminder is issued, and the process returns to step S1.

[0141] In summary, the method of this embodiment has at least the following beneficial effects compared with the prior art:

[0142] (1) Compared with directly predicting whether the action of throwing away kitchen waste is standardized from human images, this embodiment trains the skeleton point coarse extraction network, the skeleton point fine extraction network, and the standard judgment network through the relevant loss function, which reduces the interference of different environmental scenes and inconsistent garbage throwing actions, thereby improving the detection accuracy of skeleton points and the accuracy of action standardization judgment.

[0143] (2) This embodiment uses pre-training learning to improve the ability of skeleton point coarse extraction network, skeleton point fine extraction network, and specification judgment network feature extraction, which can effectively reduce training costs.

[0144] (3) This embodiment optimizes and updates the skeleton point coarse extraction network, skeleton point fine extraction network, and standard judgment network through the loss function, which not only improves the skeleton point extraction network's ability to extract the target person's skeleton points in the video frames shot by the camera at an irregular angle, but also improves the standard judgment network's ability to resist the inconsistency of the target person's garbage throwing action in the video frames shot by the camera at an irregular angle. Using human skeleton points instead of human images as the input of the judgment network can effectively improve the robustness of standard judgment and improve the judgment accuracy of the model in different environmental scenarios.

[0145] This embodiment also provides a monitoring system for standardized operation of kitchen waste, including:

[0146] A data input module, used for acquiring continuous video frames;

[0147] The human detection module is used to input continuous video frames into the target detection model and output the target person detection frame;

[0148] A coordinate extraction module is used to obtain a target person image according to a target person detection frame, input the target person image into a human skeleton point extraction model, and obtain the coordinates of the human skeleton points;

[0149] The action detection module is used to obtain a feature vector image based on the coordinates of the skeleton points, and to determine whether the action of the target person throwing away kitchen waste is standardized by combining the feature vector image and the specification. If it is determined that the action is not standardized, the feature vector image is stored.

[0150] A monitoring system for standardized operation of kitchen waste in this embodiment can execute a monitoring method for standardized operation of kitchen waste provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0151] This embodiment also provides a monitoring device for standardized operation of kitchen waste, including:

[0152] at least one processor;

[0153] at least one memory for storing at least one program;

[0154] When the at least one program is executed by the at least one processor, the at least one processor implements the above-mentioned method for monitoring standardized operations of kitchen waste.

[0155] A monitoring device for standardized operation of kitchen waste in this embodiment can execute a monitoring method for standardized operation of kitchen waste provided by the method embodiment of the present invention, can execute any combination of implementation steps of the method embodiment, and has the corresponding functions and beneficial effects of the method.

[0156] The present application also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 1 The method shown.

[0157] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.

[0158] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.

[0159] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0160] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0161] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0162] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0163] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0164] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

[0165] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for monitoring the standardized operation of kitchen waste, characterized in that: The following steps are involved: Get continuous video frames; Input the continuous video frames into a target detection model and output a target person detection frame; Obtain a target person image according to the target person detection frame, input the target person image into a human skeleton point extraction model, the human skeleton point extraction model includes a skeleton point coarse extraction network and a skeleton point fine extraction network, and obtain the skeleton point coordinates of the human body; Acquire a feature vector image according to the skeleton point coordinates, and judge whether the action of throwing away kitchen waste by the target person detected by the network is standard by combining the feature vector image and the specification. If it is determined that the action is not standard, store the feature vector image; The method for monitoring the standardized operation of kitchen waste further comprises the steps of training the skeleton point coarse extraction network, training the skeleton point fine extraction network and establishing the training step of the standardized judgment network, and the data for training the standardized judgment network comes from a self-made database, and the self-made database includes standardized action continuous video frames, non-standard action continuous video frames and standardized labels; the standardized action is the action of separating plastic bags and garbage; The step of training the skeleton point rough extraction network comprises: After inputting a human data set with human skeleton point labels into the skeleton point coarse extraction network, an output skeleton point coarse feature map is obtained, and a cross entropy loss function between the skeleton point labels of the standard human image and the output skeleton point coarse feature map of the skeleton point coarse extraction network is used as a reference loss function of the skeleton point coarse extraction network, and the skeleton point coarse extraction network is trained using the reference loss function of the skeleton point coarse extraction network; The step of training the skeleton point extraction network comprises: The dataset with skeleton point labels is input into the optimal skeleton point coarse extraction network to obtain a labeled skeleton point coarse feature map, and the labeled skeleton point coarse feature map is input into the skeleton point fine extraction network to obtain a skeleton point fine feature map. The regression loss function between the skeleton point labels of the standard human image and the output skeleton point fine feature map of the skeleton point fine extraction network is used as the reference loss function of the skeleton point fine extraction network, and the skeleton point fine extraction network is trained using the reference loss function of the skeleton point fine extraction network.

2. A method for monitoring the standardized operation of kitchen waste according to claim 1, characterized in that: The step of establishing the training of the norm judgment network comprises the following steps: After inputting the data set with normative labels into the normative judgment network, a normative judgment feature vector is obtained; Calculate a reference loss function of a norm judgment network according to the norm judgment feature vector and the norm label; The norm judgment network is trained using a reference loss function of the norm judgment network.

3. A method for monitoring the standardized operation of kitchen waste according to claim 1, characterized in that: The target person image is input into the human skeleton point extraction model to obtain the human skeleton point coordinates, specifically: Input the target person image into the human skeleton point extraction model to obtain the coordinates of 8 skeleton points of the human body; The step of obtaining a feature vector image according to the skeleton point coordinates, combining the feature vector image with the specification to determine whether the action of the target person throwing away kitchen waste is standard, and storing the feature vector image if it is determined that the action is not standard, includes: Combining the coordinates of the eight skeleton points into a 16-dimensional feature vector, and storing the 16-dimensional feature vector in a storage medium; Determine whether the number of the 16-dimensional feature vectors in the storage medium is greater than a preset threshold, and if so, proceed to the next step; Otherwise, continue to store the 16-dimensional feature vector; All the 16-dimensional feature vectors in the storage medium are combined into a feature map, the feature map is input into a standard judgment network, and the standard judgment network outputs a standard feature vector; Whether the target person's action of throwing away kitchen waste is standard is judged according to the standard feature vector. If it is standard, all feature vectors in the storage medium are cleared; otherwise, the feature vectors in the storage medium are saved.

4. A method for monitoring the standardized operation of kitchen waste according to claim 2, characterized in that: The expression of the reference loss function of the norm judgment network is: Where N represents the number of feature vectors of each input block, N p is the dimension of the normalized feature vector, v(p * ) represents the corresponding canonical label, and v(i) represents the predicted canonical feature vector.

5. The method for monitoring the standardized operation of kitchen waste according to claim 3, characterized in that: The 16-dimensional feature vector includes the horizontal and vertical coordinates of 8 skeleton point images, in the order of the horizontal coordinate of the chin skeleton point, the horizontal coordinate of the neck skeleton point, the horizontal coordinate of the left shoulder joint skeleton point, the horizontal coordinate of the right shoulder joint skeleton point, the horizontal coordinate of the left elbow joint skeleton point, the horizontal coordinate of the right elbow joint skeleton point, the horizontal coordinate of the left wrist joint skeleton point, the horizontal coordinate of the right wrist joint skeleton point, the vertical coordinate of the chin skeleton point, the vertical coordinate of the neck skeleton point, the vertical coordinate of the left shoulder joint skeleton point, the vertical coordinate of the right shoulder joint skeleton point, the vertical coordinate of the left elbow joint skeleton point, the vertical coordinate of the right elbow joint skeleton point, the vertical coordinate of the left wrist joint skeleton point, and the vertical coordinate of the right wrist joint skeleton point.

6. A monitoring system for standardized operation of kitchen waste, characterized in that: include: A data input module, used for acquiring continuous video frames; A human detection module, used to input the continuous video frames into a target detection model and output a target person detection frame; A coordinate extraction module, used to obtain a target person image according to the target person detection frame, input the target person image into a human skeleton point extraction model, the human skeleton point extraction model includes a skeleton point coarse extraction network and a skeleton point fine extraction network, to obtain the skeleton point coordinates of the human body; An action detection module is used to obtain a feature vector image according to the coordinates of the skeleton points, and to judge whether the action of the target person throwing away the kitchen waste is standardized by combining the feature vector image and the specification. If it is determined that the action is not standardized, the feature vector image is stored; The monitoring system for the standardized operation of kitchen waste is also used to implement the steps of training the skeleton point coarse extraction network, training the skeleton point fine extraction network and establishing the training step of the standardized judgment network. The data used to train the standardized judgment network comes from a self-made database, which includes continuous video frames of standardized actions, continuous video frames of non-standard actions and standardized labels; the standardized action is the action of separating plastic bags and garbage; The step of training the skeleton point rough extraction network comprises: After inputting a human data set with human skeleton point labels into the skeleton point coarse extraction network, an output skeleton point coarse feature map is obtained, and a cross entropy loss function between the skeleton point labels of the standard human image and the output skeleton point coarse feature map of the skeleton point coarse extraction network is used as a reference loss function of the skeleton point coarse extraction network, and the skeleton point coarse extraction network is trained using the reference loss function of the skeleton point coarse extraction network; The step of training the skeleton point extraction network comprises: The dataset with skeleton point labels is input into the optimal skeleton point coarse extraction network to obtain a labeled skeleton point coarse feature map, and the labeled skeleton point coarse feature map is input into the skeleton point fine extraction network to obtain a skeleton point fine feature map. The regression loss function between the skeleton point labels of the standard human image and the output skeleton point fine feature map of the skeleton point fine extraction network is used as the reference loss function of the skeleton point fine extraction network, and the skeleton point fine extraction network is trained using the reference loss function of the skeleton point fine extraction network.

7. A monitoring device for standardized operation of kitchen waste, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method for monitoring standardized operations of kitchen waste as described in any one of claims 1-5.

8. A storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to execute a method for monitoring standardized operation of kitchen waste as described in any one of claims 1 to 5 when executed by the processor.