A video action recognition method and system for smart factories

By using the combination of 3D-ResNet and position information encoding network in factory worker action recognition, the problem of lack of time series modeling and annotation data is solved, high-accuracy worker action recognition is achieved, and the noise and redundancy of traditional methods are overcome. Information influence improves the recognition effect.

CN114898466BActive Publication Date: 2024-08-23QIZHI KAIWU (SHANGHAI) ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210521070.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-13
Publication Date
2024-08-23
Estimated Expiration
2042-05-13

AI Technical Summary

Technical Problem

Existing technology cannot effectively handle action judgment based on temporal relationships in factory worker action recognition. It relies on scene and item recognition, has insufficient deep learning temporal information modeling, and is limited by the cost of labeling data. It cannot effectively identify massive dynamics in real scenes. Behavior, the lack of an open and unified annotation data set affects the recognition effect.

Method used

A video action recognition method for smart factories is proposed. Data fragments are generated through image preprocessing and target detection. The 3D-ResNet deep neural network is combined with the position information encoding network to build an action recognition model. Supervised learning and data enhancement technology are used to generate The standard data sequence that can be used for recognition is input into the video understanding network for training to form deep features containing location information and improve the accuracy of action recognition.

Benefits of technology

It achieves about 95% of worker action recognition effects, reduces the impact of noise and redundant information, improves the accuracy and efficiency of factory worker action recognition, and overcomes the problems of difficulty in time series modeling and lack of annotated data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114898466B
    Figure CN114898466B
Patent Text Reader

Abstract

The present invention relates to the technical field of deep learning action recognition, and specifically to a video action recognition method and system for smart factories. The recognition method specifically comprises the following steps: S101, a step of generating a factory video data segment; S102, a step of generating a factory worker operation action data set; S103, a step of generating a factory operation target detection data set; S104, a step of a factory worker action recognition model modeling method; S105, a step of training a factory worker position information encoding network; S106, a step of building a factory worker behavior recognition algorithm; S107, a behavior recognition input step; S108, a behavior recognition output step; the specific system comprises: a model training program, a labeling file generation program, a model training electronic device, a processing and computing center, a server, and a video monitoring terminal; compared with traditional action recognition methods that usually only use RGB features to represent videos, the present invention will greatly exclude the influence of other information when obtaining video features, thereby improving the effect of factory worker action recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of deep learning action recognition, and specifically to a video action recognition method and system for smart factories. Background Art

[0002] The work of factory worker motion recognition mainly focuses on the definition of worker motion, the production of data sets, and the modeling of motion recognition models. The current mainstream methods are as follows: 1. Use image recognition methods to input a picture to identify the state of a worker at a certain moment, so as to judge the worker's motion. 2. Use video classification methods to input a frame sequence into the network to identify the action. 3. Use sensors to extract information related to the action, and then combine it with deep learning methods to make judgments.

[0003] The shortcomings of the existing technology are: (1) There are many actions that cannot be judged based on the state of a moment, and must be combined with the temporal relationship, so the action recognition method based on the image recognition method cannot handle such objects. (2) The recognition of actions depends largely on the recognition of scenes and motion-related objects, rather than the recognition of the motion itself. Therefore, when it is impossible to obtain useful information for action recognition from the scene and related objects themselves, the recognition result is poor. (3) The current deep learning method is not good enough in modeling temporal information and cannot accurately model different temporal relationships. (4) At present, most of the research on action recognition uses supervised learning methods to detect actions, which can achieve high accuracy and recall rates on the data set. However, due to the cost of annotating video data, it cannot cover the massive dynamic behaviors in real scenes, resulting in poor results in actual implementation. (5) In addition, due to the particularity of the field, there is currently no open and unified annotated data set, which seriously restricts the recognition effect of deep learning model methods that rely on training data sets. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes a video action recognition method and system for smart factories.

[0005] A video action recognition method for a smart factory specifically includes the following steps:

[0006] S101, a step of generating factory video data segments: using image preprocessing technology to process and process the videos of factory workers working, and converting all original videos into usable factory workers working data segments;

[0007] S102, a step of generating a factory worker operation action data set: labeling and classifying factory worker operation data segments, and making the factory worker operation data segments into data that can be used for action recognition model learning;

[0008] S103, factory operation target detection data set generation step: output the worker operation video into frames, sample the pictures, and select and mark the targets of people, workbenches, and operation workpieces.

[0009] S104, factory worker action recognition model modeling method steps: the factory worker action data set is converted into a standard data sequence acceptable to the model through frame sampling, cropping and data enhancement, and input into a 3D-ResNet deep neural network suitable for video understanding to train the model;

[0010] S105, factory worker position information encoding network training step: the factory operation target detection data set is subjected to scaling, normalization and other preprocessing, as well as flipping, random position, and mosaic data enhancement methods, and then input into the target detection algorithm for training, so that it can provide the position information of workers, operating tables, and operated workpieces, and then the position information is embedded into a multi-channel matrix and input into the position encoding branch training;

[0011] S106. Construction of factory worker behavior recognition algorithm: splice the trained action recognition model and the deep features output at the tail of the position information encoding model, so that the action recognition network and the position information encoding network form an action recognition branch and a position information encoding branch respectively, forming a deep feature reflecting the worker behavior including the position information encoding, and then input a fully connected layer and freeze the previous network parameters for training to obtain a complete worker behavior recognition model;

[0012] S107, behavior recognition input step: inputting the video of the worker behavior to be recognized into the factory worker behavior recognition model;

[0013] S108, behavior recognition output step: obtain the behavior prediction probability vector based on the trained factory worker behavior recognition model, and then compare the behavior category vector to obtain the behavior recognition result, and send the recognition result to the server through socket communication.

[0014] The overall training framework of the algorithm belongs to supervised learning. The core idea of ​​supervised learning is to label the data, optimize the model parameters according to the output results and labels of the input data during training, and let the algorithm find the corresponding relationship between the input and the label by itself, so as to learn an optimal model from the data set and predict the corresponding labels when faced with unlabeled data.

[0015] The step S101 of processing and processing the video of factory workers' operation specifically includes: preprocessing, labeling and classifying the monitoring video stream data, and converting the monitoring video stream into a worker action recognition data set.

[0016] The steps for generating factory video data segments in step S102 are specifically as follows: first, use image cropping technology to crop the video frame to the worker's working area to exclude the influence of other areas, and use video editing technology to first perform segment editing on the factory worker's work video according to the type of action, starting from the action start point and ending at the action end point.

[0017] The labeling specification of the workpiece target detection data in step S103 is as follows: the worker's operation video is output into frames, the pictures are sampled, and the workpieces operated by people are selected. Not all workpieces in the picture need to be labeled. Only the workpieces being operated by workers are detected to avoid inputting noise information of irrelevant actions into the neural network.

[0018] The recognition neural network for factory worker behavior in step S104 is composed of two neural network branches, one of which is a classic deep learning action recognition algorithm based on 3D-ResNet, which is based on a 3D convolution kernel and can move in the time dimension to extract timing features and directly obtain continuous frame sequence recognition actions; the other is a deep position information encoding network, which first embeds the frame sequence position information extracted by the target detection algorithm into a four-dimensional matrix, and then inputs the deep position information encoding branch. Finally, the action modeling deep features output by the action recognition branch and the deep position coding output by the position information encoding branch are spliced ​​and input into a fully connected layer for prediction.

[0019] The specific process of the design steps of the frame sequence position information feature embedding matrix for the factory worker action recognition target detection characteristics in step S105 is as follows: n frames sampled from the video clip to be detected are used for target detection, and the detection information on each frame is first embedded in a k-channel matrix, where the number of k depends on the number of target types that the action recognition focuses on. Each channel is a 1*4 matrix containing the information of each target detection frame, and each channel represents the position information of a type of target.

[0020] A video action recognition system for smart factories, comprising:

[0021] The model training program is used to input the data set file to the action recognition branch to obtain the action information depth vector and input the data set file to the YOLO target detection network to obtain the target position information matrix and then input it into the position information encoding network to output the position information depth code;

[0022] The annotation file generation program constructs the detailed information of the data set in the form of a dictionary file so that the training module can use it at any time;

[0023] Model training electronic equipment, used to save the model parameters obtained from the model training and verification cycle as a file, and output the training and verification data as a log file;

[0024] Video surveillance terminal, used to obtain data;

[0025] The processing and computing center is used to process and identify the transmitted video data and then transmit it to the next terminal;

[0026] The server is used to store and use the recognition results of the transmitted data.

[0027] The model training procedure specifically includes:

[0028] The video sampling module samples the frames in the input video at equal intervals or randomly at equal intervals;

[0029] An image preprocessing module converts the video frame format, crops the image, resizes it, and labels its category, so as to convert the original video clip into a worker behavior dataset that can be used for model training;

[0030] The action recognition network module converts the input worker behavior video dataset result neural network into behavior deep feature vector, providing the appearance and time sequence related information in the video for the next step of worker behavior recognition;

[0031] The target detection network module is used to detect the type and location of the target of interest to the algorithm in the video frame and provide it to the next step of the position information encoding module;

[0032] The position information encoding module embeds the target type and position information output by the target detection module into the position information matrix, and then converts it into a position information deep feature vector through the position information deep encoding network;

[0033] The joint network training module is used to freeze the parameters of the specified module and obtain the predicted probability of the worker's action from the joint deep information vector spliced ​​by the behavior deep feature vector provided by the action recognition module and the position information deep feature vector provided by the position information encoding module.

[0034] The model training electronic device includes a storage device for storing model parameters, data sets and annotation files, a processor for model algorithm training, a model training algorithm storage device, and a video recording terminal.

[0035] The processing and computing center includes a behavior recognition network model file library, a computing center, a storage device, and a server; the recognition network model file library saves the parameter data of the deep neural network and waits for the computing center to use it; the computing center preprocesses, extracts features, and predicts behavior on the video data transmitted from the video surveillance terminal, and the prediction results are saved in the log file of the storage device and transmitted to the server for use.

[0036] The beneficial effects of the present invention are as follows: the video action recognition method and system for smart factories used in the present invention can overcome the problems of the particularity of the factory action recognition field and the difficulty of temporal modeling, and achieve about 95% of the worker action recognition effect on the verification set; compared with the traditional action recognition method which usually only uses RGB features to represent the video, the present invention will greatly eliminate the influence of noise and redundant information when obtaining video features, thereby improving the effect of factory worker action recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0038] Figure 1 It is an overall principle block diagram of the video action recognition method for smart factories according to an embodiment of the present invention;

[0039] Figure 2 The specific steps of the video action recognition method for smart factories according to an embodiment of the present invention;

[0040] Figure 3 The video action recognition network model of the embodiment of the present invention;

[0041] Figure 4 A schematic diagram of a model training procedure according to an embodiment of the present invention;

[0042] Figure 5 The schematic structure of the annotation dictionary file of an embodiment of the present invention;

[0043] Figure 6 A schematic diagram of an electronic device for model training according to an embodiment of the present invention;

[0044] Figure 7 A schematic diagram of an electronic device for executing a factory worker action recognition model according to an embodiment of the present invention;

[0045] Figure 8 Schematic diagram of detection information and matrix according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further described below.

[0047] like Figures 1 to 8 As shown, a video action recognition method for a smart factory specifically includes the following steps:

[0048] S101, a step of generating factory video data segments: using image preprocessing technology to process and process the videos of factory workers working, and converting all original videos into usable factory workers working data segments;

[0049] S102, a step of generating a factory worker operation action data set: labeling and classifying factory worker operation data segments, and making the factory worker operation data segments into data that can be used for action recognition model learning;

[0050] S103, factory operation target detection data set generation step: output the worker operation video into frames, sample the pictures, and select and mark the targets of people, workbenches, and operation workpieces.

[0051] S104, factory worker action recognition model modeling method steps: the factory worker action data set is converted into a standard data sequence acceptable to the model through frame sampling, cropping and data enhancement, and input into a 3D-ResNet deep neural network suitable for video understanding to train the model;

[0052] S105, factory worker position information encoding network training step: the factory operation target detection data set is subjected to scaling, normalization and other preprocessing, as well as flipping, random position, and mosaic data enhancement methods, and then input into the target detection algorithm for training, so that it can provide the position information of workers, operating tables, and operated workpieces, and then the position information is embedded into a multi-channel matrix and input into the position encoding branch training;

[0053] S106. Construction of factory worker behavior recognition algorithm: splice the trained action recognition model and the deep features output at the tail of the position information encoding model, so that the action recognition network and the position information encoding network form an action recognition branch and a position information encoding branch respectively, forming a deep feature reflecting the worker behavior including the position information encoding, and then input a fully connected layer and freeze the previous network parameters for training to obtain a complete worker behavior recognition model;

[0054] S107, behavior recognition input step: inputting the video of the worker behavior to be recognized into the factory worker behavior recognition model;

[0055] S108, behavior recognition output step: Based on the trained factory worker behavior recognition model, a behavior prediction probability vector is obtained, and then the behavior category vector is compared to obtain a behavior recognition result. At the same time, the recognition result is sent to the server via socket communication, which is more real-time and convenient for observation and detection at any time.

[0056] The video action recognition method and system for smart factories used in the present invention can overcome the problems of the particularity of factory action recognition and the difficulty of temporal modeling, and achieve a worker action recognition effect of about 95% on the validation set; compared with traditional action recognition methods that usually only use RGB features to represent videos, the present invention will greatly eliminate the influence of noise and redundant information when obtaining video features, thereby improving the effect of factory worker action recognition.

[0057] The step S101 of processing and processing the video of factory workers' operation specifically includes: preprocessing, labeling and classifying the monitoring video stream data, and converting the monitoring video stream into a worker action recognition data set.

[0058] The steps for generating factory video data segments in step S102 are specifically as follows: first, use image cropping technology to crop the video frame to the worker's working area to exclude the influence of other areas, and use video editing technology to first perform segment editing on the factory worker's work video according to the type of action, starting from the action start point and ending at the action end point.

[0059] The labeling specification of the workpiece target detection data in step S103 is as follows: the worker's operation video is output into frames, the pictures are sampled, and the workpieces operated by people are selected. Not all workpieces in the picture need to be labeled. Only the workpieces being operated by workers are detected to avoid inputting noise information of irrelevant actions into the neural network.

[0060] The recognition neural network of factory workers' behavior in step S104 is composed of two neural network branches, one of which is a classic deep learning action recognition algorithm based on 3D-ResNet, which is based on 3D convolution kernels and can move in the time dimension to extract time series features and directly obtain continuous frame sequence recognition actions. The other is a deep position information coding network, which first embeds the frame sequence position information extracted by the target detection algorithm into a four-dimensional matrix and then inputs the deep position information coding branch. Since the complexity of the position information is much lower than that of the image, the feature connection method of the fully connected layer can be used, so that the time receptive field of the position information coding branch directly reaches the size of the entire input sequence, and it is convenient to obtain long-range time series information, which is easier for time series modeling. Finally, the action modeling deep features output by the action recognition branch and the deep position coding output by the position information coding branch are spliced ​​and input into a fully connected layer for prediction.

[0061] The specific process of the design step of the frame sequence position information feature embedding matrix for the factory worker action recognition target detection characteristics in step S105 is as follows: n frames sampled from the video clip to be detected are used for target detection. The detection information on each frame is first embedded in a k-channel matrix. The number of k depends on the number of target types concerned by the action recognition. Each channel is a 1*4 matrix containing the information of each target detection frame. Each channel represents the position information of a type of target, such as Figure 8 shown.

[0062] In the steps S104 and S105, the video is preprocessed, the recognition is more accurate, the recognition efficiency is higher, and the specificity is strong.

[0063] The function of the step S107 for the factory worker action recognition model execution device is: input the trained model, input the video stream transmitted by the video surveillance terminal, and input all model parameters; based on the trained factory worker action recognition system, obtain the worker behavior prediction results of the input factory monitoring video stream.

[0064] like Figure 3 As shown in the figure, it is a video action recognition network model. The action recognition neural network model consists of three sub-neural network modules, including two neural network branches. One is a classic deep learning action recognition algorithm based on 3D-ResNet, which is based on 3D convolution kernels and can move in the time dimension t to extract temporal features and directly obtain continuous frame sequences to recognize actions; the other is a deep position information encoding network, which first embeds the frame sequence position information extracted by the YOLOv3 target detection algorithm into a four-dimensional matrix and then inputs it into the deep position information encoding branch; YOLOv3 uses Darknet -53 is used as the basic network, which has a very good image recognition effect. The whole network mainly includes 5 groups of residual blocks, and K-means clustering is used to obtain the size of the prior box. Since the complexity of position information is much lower than that of the image, the feature connection method of the fully connected layer can be used, so that the time receptive field of the position information encoding branch directly reaches the size of the entire input sequence, which can easily obtain long-range timing information and is easier for timing modeling. Finally, the action modeling deep features output by the action recognition branch and the deep position coding output by the position information encoding branch are spliced ​​and input into a fully connected layer for prediction.

[0065] like Figure 7 As shown, the electronic device for executing the factory worker action recognition model in step S108 includes: a video monitoring terminal; a video stream transmission interface; a behavior category library; a model input interface; a worker action recognition model algorithm processor; a data storage device; a display device; a recognition result transmission interface; and an action recognition model algorithm storage device. After the device is powered on and the worker action recognition algorithm program is run through the processor, the following steps are performed:

[0066] The video stream is transmitted in real time from the video monitoring terminal through the video stream transmission interface for reception by the worker action recognition algorithm;

[0067] Obtain trained models from the model input interface, and send these models together with the behavior category library and all model parameters to the text semantic feature extraction algorithm processor;

[0068] The worker action recognition algorithm processor predicts and recognizes factory worker actions based on the trained action recognition model, YOLO target detection algorithm and position information encoding network;

[0069] The worker action recognition model algorithm processor outputs the prediction result of the worker action to the data storage and the recognition result transmission interface for the server program to use;

[0070] The display shows the worker action recognition results stored in the data storage, the real-time video stream, and the result transmission status of the recognition result transmission interface.

[0071] A video action recognition system for smart factories, comprising:

[0072] The model training program is used to input the data set file to the action recognition branch to obtain the action information depth vector and input the data set file to the YOLO target detection network to obtain the target position information matrix and then input it into the position information encoding network to output the position information depth code;

[0073] The annotation file generation program constructs the detailed information of the data set in the form of a dictionary file to facilitate the training module to use it at any time. Figure 5 The schematic structure of the annotation dictionary file is given;

[0074] Model training electronic equipment, used to save the model parameters obtained from the model training and verification cycle as a file, and output the training and verification data as a log file;

[0075] Video surveillance terminal, used to obtain data;

[0076] The processing and computing center is used to process and identify the transmitted video data and then transmit it to the next terminal;

[0077] The server is used to store and use the recognition results of the transmitted data.

[0078] The model training procedure specifically includes:

[0079] The video sampling module samples the frames in the input video at equal intervals or randomly at equal intervals;

[0080] An image preprocessing module converts the video frame format, crops the image, resizes it, and labels its category, so as to convert the original video clip into a worker behavior dataset that can be used for model training;

[0081] The action recognition network module converts the input worker behavior video dataset result neural network into behavior deep feature vector, providing the appearance and time sequence related information in the video for the next step of worker behavior recognition;

[0082] The target detection network module is used to detect the type and location of the target of interest to the algorithm in the video frame and provide it to the next step of the position information encoding module;

[0083] The position information encoding module embeds the target type and position information output by the target detection module into the position information matrix, and then converts it into a position information deep feature vector through the position information deep encoding network;

[0084] The joint network training module is used to freeze the parameters of the specified module and obtain the predicted probability of the worker's action from the joint deep information vector spliced ​​by the behavior deep feature vector provided by the action recognition module and the position information deep feature vector provided by the position information encoding module.

[0085] The model training program is used to execute a model training verification cycle, input data set files to the action recognition branch to obtain action information depth vectors, and input the data set files to the YOLO target detection network to obtain the target position information matrix, which is then input into the position information encoding network to output the position information depth code, and the action information depth vector and the position information depth code are spliced ​​and input into the fully connected layer to obtain the output prediction result, and the CrossEntropyLoss discriminator is used to judge the quality of the result and the SGD optimizer is used to continuously optimize the parameters.

[0086] Output all models and their model parameters to the model output interface.

[0087] The model parameters obtained from the model training and validation cycle are saved as files, and the training and validation data are output as log files.

[0088] The model training electronic device includes a storage device for storing model parameters, data sets and annotation files, a processor for model algorithm training, a model training algorithm storage device, and a video recording terminal.

[0089] After the model training electronic device is powered on and the program of the algorithm model is run through the processor, the following steps are performed:

[0090] Execute the model building script to reproduce the model, including the action recognition branch and the position information encoding branch, and build the initial model structure;

[0091] Read the pre-trained model file in the memory, extract the model parameters and assign them to the model to obtain the initial action recognition model;

[0092] Generate a discriminator to judge the quality of the model output and the training level of the model;

[0093] Run the training phase configuration script to determine the video preprocessing method and data enhancement method for the training phase, load the dataset instance, determine the optimizer type and parameter settings, and set the training log class;

[0094] Run the verification phase configuration script to determine the video preprocessing method for the verification phase, load the verification phase dataset instance, and set the verification log class.

[0095] The processing and computing center is connected to the server and the external monitoring block communication. The processing center obtains the video data transmitted by the video monitoring terminal, processes and identifies it, and then transmits it to the server for storage and use of the identification results.

[0096] The processing and computing center includes a behavior recognition network model file library, a computing center, a storage device, and a server; the recognition network model file library saves the parameter data of the deep neural network and waits for the computing center to use it; the computing center preprocesses, extracts features, and predicts behavior on the video data transmitted from the video surveillance terminal, and the prediction results are saved in the log file of the storage device and transmitted to the server for use.

[0097] Compared with the prior art, the innovations of the present invention lie in the following three points.

[0098] In view of the particularity of the current field of factory worker action recognition and the problem of poor training results caused by the lack of labeled data, a complete set of specifications and workflows from monitoring video streams to dataset production and the format and specifications of annotation files are proposed.

[0099] In view of the fact that traditional action recognition algorithms generally only use the characteristics of video RGB streams, target position information based on target detection is introduced to provide new modal information for action recognition.

[0100] In order to solve the problem of difficulty in modeling action timing, a hybrid neural network model of action recognition and target recognition based on deep learning, and a video action recognition method for smart factories including an action recognition branch and a target position and type information encoding branch are proposed. The main core idea is to use the target position and type information encoding branch proposed in the present invention to provide a variety of supplementary information for action classification, including position, relative position, target type, etc., and explicitly provide timing information to make the network easier to model timing information.

[0101] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A video action recognition method for smart factories, Features: The specific steps include: S101, a step of generating factory video data segments: using image preprocessing technology to process and process the videos of factory workers working, and converting all original videos into usable factory workers working data segments; S102, a step of generating a factory worker operation action data set: labeling and classifying factory worker operation data segments, and making the factory worker operation data segments into data that can be used for action recognition model learning; S103, the step of generating a factory operation target detection data set: outputting the worker operation video into frames, sampling the pictures, and marking the targets of people, workbenches, and operation workpieces with boxes; S104, factory worker action recognition model modeling method steps: the factory worker action data set is converted into a standard data sequence acceptable to the model through frame sampling, cropping and data enhancement, and input into a 3D-ResNet deep neural network suitable for video understanding to train the model; S105, factory worker position information encoding network training step: the factory operation target detection data set is subjected to scaling, normalization and other preprocessing, as well as flipping, random position, and mosaic data enhancement methods, and then input into the target detection algorithm for training, so that it can provide the position information of workers, operating tables, and operated workpieces, and then the position information is embedded into a multi-channel matrix and input into the position encoding branch training; S106. Construction of factory worker behavior recognition algorithm: splice the trained action recognition model and the deep features output at the tail of the position information encoding model, so that the action recognition network and the position information encoding network form an action recognition branch and a position information encoding branch respectively, forming a deep feature reflecting the worker behavior including the position information encoding, and then input a fully connected layer and freeze the previous network parameters for training to obtain a complete worker behavior recognition model; S107, behavior recognition input step: inputting the video of the worker behavior to be recognized into the factory worker behavior recognition model; S108, behavior recognition output step: obtain the behavior prediction probability vector based on the trained factory worker behavior recognition model, and then compare the behavior category vector to obtain the behavior recognition result, and send the recognition result to the server through socket communication.

2. According to the video action recognition method for smart factories according to claim 1, Features: The step S101 of processing and processing the video of factory workers' operation specifically includes: preprocessing, labeling and classifying the monitoring video stream data, and converting the monitoring video stream into a worker action recognition data set.

3. According to the video action recognition method for smart factories according to claim 1, Features: The steps for generating factory video data segments in step S102 are specifically as follows: first, use image cropping technology to crop the video frame to the worker's working area to exclude the influence of other areas, and use video editing technology to first perform segment editing on the factory worker's work video according to the type of action, starting from the action start point and ending at the action end point.

4. According to the video action recognition method for smart factories according to claim 1, Features: The labeling specification of the workpiece target detection data in step S103 is as follows: the worker's operation video is output into frames, the pictures are sampled, and the workpieces operated by people are selected. Not all workpieces in the picture need to be labeled. Only the workpieces being operated by workers are detected to avoid inputting noise information of irrelevant actions into the neural network.

5. According to the video action recognition method for smart factories according to claim 1, Features: The recognition neural network for factory worker behavior in step S104 is composed of two neural network branches, one of which is a classic deep learning action recognition algorithm based on 3D-ResNet, which is based on a 3D convolution kernel and can move in the time dimension to extract timing features and directly obtain continuous frame sequence recognition actions; the other is a deep position information encoding network, which first embeds the frame sequence position information extracted by the target detection algorithm into a four-dimensional matrix, and then inputs the deep position information encoding branch. Finally, the action modeling deep features output by the action recognition branch and the deep position coding output by the position information encoding branch are spliced ​​and input into a fully connected layer for prediction.

6. According to the video action recognition method for smart factories according to claim 1, Features: The specific process of the design steps of the frame sequence position information feature embedding matrix for the factory worker action recognition target detection characteristics in step S105 is as follows: n frames sampled from the video clip to be detected are used for target detection, and the detection information on each frame is first embedded in a k-channel matrix, where the number of k depends on the number of target types that the action recognition focuses on. Each channel is a 1*4 matrix containing the information of each target detection frame, and each channel represents the position information of a type of target.

7. A system using a video action recognition method for a smart factory according to any one of claims 1 to 6, Features: include: The model training program is used to input the data set file to the action recognition branch to obtain the action information depth vector and input the data set file to the YOLO target detection network to obtain the target position information matrix and then input it into the position information encoding network to output the position information depth code; The annotation file generation program constructs the detailed information of the data set in the form of a dictionary file so that the training module can use it at any time; Model training electronic equipment, used to save the model parameters obtained from the model training and verification cycle as a file, and output the training and verification data as a log file; Video surveillance terminal, used to obtain data; The processing and computing center is used to process and identify the transmitted video data and then transmit it to the next terminal; The server is used to store and use the identification results of the transmitted data.

8. The system according to claim 7, Features: The model training procedure specifically includes: The video sampling module samples the frames in the input video at equal intervals or randomly at equal intervals; The image preprocessing module converts the video frame format, crops the image, resizes it, and labels its category, converting the original video clip into a worker behavior dataset that can be used for model training; The action recognition network module converts the input worker behavior video dataset result neural network into behavior deep feature vector, providing the appearance and time sequence related information in the video for the next step of worker behavior recognition; The target detection network module is used to detect the type and location of the target of interest to the algorithm in the video frame and provide it to the next step of the position information encoding module; The position information encoding module embeds the target type and position information output by the target detection module into the position information matrix, and then converts it into a position information deep feature vector through the position information deep encoding network; The joint network training module is used to freeze the parameters of the specified module and obtain the predicted probability of the worker's action from the joint deep information vector spliced ​​by the behavior deep feature vector provided by the action recognition module and the position information deep feature vector provided by the position information encoding module.

9. The system according to claim 7, Features: The model training electronic device includes a storage device for storing model parameters, data sets and annotation files, a processor for model algorithm training, a model training algorithm storage device, and a video recording terminal.

10. The system according to claim 7, Features: The processing and computing center includes a behavior recognition network model file library, a computing center, a storage device, and a server; the recognition network model file library saves the parameter data of the deep neural network and waits for the computing center to use it; the computing center preprocesses, extracts features, and predicts behavior on the video data transmitted from the video surveillance terminal, and the prediction results are saved in the log file of the storage device and transmitted to the server for use.