Rapid migration method of industrial safety intelligent system for personnel detection

Generating artificial data through mixed data sets and segmentation networks solves the problems of data confidentiality and over-fitting in industrial security scenarios, achieves efficient migration and automated deployment of personnel detection models, reduces manual labeling costs, and improves migration efficiency and Model generalization ability.

CN118628859APending Publication Date: 2024-09-10SIMMIR VISION TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410406488.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In industrial security scenarios, there are data confidentiality issues in data collection and migration training of personnel detection models, which makes it difficult to obtain data, and the cost of manual annotation is high, and over-fitting problems are prone to occur, especially in the case of multi-scenario migration.

Method used

Generate natural data sets by mixing public data sets and historical databases, use segmentation networks to extract character elements, generate artificial data, and mix field data, artificial data and natural data in proportion, use high initial learning rates and long cycles to train the basic model, and then Use low initial learning rate and short cycle training application data to slow down overfitting and improve model generalization ability.

Benefits of technology

It solves the problems of data confidentiality and data shortage in industrial scenarios, reduces the need for manual intervention, greatly improves migration efficiency, ensures the deployment of intelligent detection systems and model generalization capabilities, and reduces the risk of over-fitting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628859A
    Figure CN118628859A
Patent Text Reader

Abstract

The invention discloses a personnel detection-oriented industrial safety intelligent system rapid migration method, which comprises the following steps of: mixing a public data set and a historical database to obtain a natural data set; training the natural data set to obtain a basic model; acquiring field data of a new scene; deploying natural data in the natural data set to the field data to generate artificial data; mixing the field data, the artificial data and the natural data in proportion to obtain application data; and training application data based on the basic model, obtaining a scene model, and completing migration deployment. According to the method, the character target elements are extracted by utilizing the segmentation network and are added into the generation of the artificial data, so that effective data are efficiently generated, and the model generalization ability is improved; automation of intelligent system migration is realized, and the migration efficiency of the whole process is greatly improved; the problem of data shortage caused by data confidentiality in an industrial scene is solved, and deployment of an intelligent detection system can also be realized in a scene in which training data is difficult to obtain.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a method for rapid migration of an industrial safety intelligent system for personnel detection. Background Art

[0002] In the prior art, with the promotion of intelligent manufacturing, the application of artificial intelligence in the industrial field has gradually increased, further improving the automation of industrial design, production and management, and greatly enhancing the factory's personnel safety supervision capabilities. However, since artificial intelligence is still relatively dependent on data at this stage, the deep neural network model obtained through data training in one scenario often cannot work well in another scenario. When the model is applied to a new scenario task, it is necessary to collect new data for the new scenario for migration training. Data is an indispensable supporting element in the underlying logic of artificial intelligence and the key fuel for AI algorithms. The effect of model migration is greatly affected by data quality. The more and more accurate the data, the smarter and more useful the model obtained after algorithm training. Therefore, data plays a very important role in artificial intelligence. Data collection and model migration training are often key steps in the deployment of industrial safety intelligent systems. How to collect data and how to train are very important and difficult issues in realizing the migration deployment of intelligent systems.

[0003] In the current industrial safety scenario, there are three main ways to deploy and collect data for personnel detection and migration: Obtain data from public datasets, train the model from scratch, and then deploy it directly. Public datasets are usually provided by academic institutions, government agencies, or community organizations, and can be used for free to train and test various AI applications. Using them can save the cost of data collection and labeling, but because the data is often not close to the actual scene, the models trained with these data are often unreliable for new scenes and are not suitable for specific industrial scenes.

[0004] Crawl data similar to the target scenario from social media, news websites, blogs and other Internet resources, train the model from scratch and deploy it directly. This method is more reliable than the previous one, but it is still difficult to meet the accuracy requirements of specific scenarios, and the data may contain sensitive information, such as personal identity information or business secrets, which will bring certain business risks. On the other hand, crawling similar data requires a lot of manual screening and labeling time, the data source is unstable, and it is often costly and ineffective.

[0005] Data is collected through on-site cameras and trained from scratch after being obtained through manual annotation. Although this method can achieve high accuracy, it often requires a large amount of data. However, many industrial scenarios have strong confidentiality, on-site data is difficult to obtain, and abnormal personnel positions are prohibited, which leads to an extreme lack of negative samples in on-site data.

[0006] In practical applications, the three methods described above are often used in combination. Public data sets are often used for basic model training to improve the model's feature extraction capabilities. At the same time, data that is similar to the target scene is searched from the Internet and added to the training, making the model training feature space closer to the target. This improves the expected effect of the model in the target scene. After a relatively stable and mature model is trained, a small amount of data is collected on-site from the target scene, and the model is trained with a low learning rate and a low learning cycle, and finally a model for the target scene is obtained.

[0007] Although the above-mentioned phased training method can obtain a model that adapts to specific scenarios and has usable accuracy, in the process of implementing it in an industrial environment, it was found that the above technology has the following problems: First, the problem of difficulty in obtaining data due to the confidentiality of industrial scenarios has not been solved, and the final step of model training still faces the difficulty of lack of data; Second, although the only data left for manual processing of labeled data during model migration is the on-site data of the target scenario, labor costs have been greatly reduced, but when multi-scenario migration is required, a lot of manpower is still required for data processing and labeling; Third, the feature space of the last step of model training essentially only has a small amount of data collected on-site, which is prone to overfitting problems. Summary of the invention

[0008] According to an embodiment of the present invention, a method for rapid migration of an industrial safety intelligent system for personnel detection is provided, comprising the following steps: Mix public datasets and historical databases to obtain natural datasets; Train natural data sets to obtain basic models; Acquire live data for new scenarios; Deploy natural data from natural datasets onto field data to generate artificial data; Mix field data, artificial data and natural data in proportion to obtain application data; Train application data based on the basic model, obtain the scenario model, and complete the migration deployment.

[0009] Furthermore, a high initial learning rate and a long period are used to train natural datasets.

[0010] Furthermore, the on-site data is at least one on-site photo.

[0011] Furthermore, deploying the natural data in the natural data set onto the field data to generate artificial data includes the following steps: Extracting human elements from natural data; Using the on-site data as the background image, a random number of human elements are deployed in the background image at random positions to generate artificial data.

[0012] Furthermore, extracting character elements from natural data includes the following steps: Input the natural data and the target frame coordinates of the natural data into the segmentation network, segment the human target elements, and generate the corresponding mask image; Filter the character target element to obtain the character element.

[0013] Furthermore, filtering the person target element includes the following steps: Compare the target box size with the predefined threshold to filter out targets that are too large, too small, or have an inappropriate aspect ratio; Calculate the ratio of the mask area to the target box area, and filter out targets with a ratio less than 0.6; Perform discrete area filtering to filter out targets with a number of connected domains greater than 1.

[0014] Furthermore, discrete region filtering is performed to filter out targets whose number of connected domains is greater than 1, which includes the following steps: The mask image is corroded to obtain a new mask image; The traversal labeling algorithm is applied to calculate the number of connected domains of the new mask image, and the targets with the number of connected domains greater than 1 are filtered out.

[0015] Furthermore, the field data is used as the background image, data enhancement is performed on the background image or the character elements, and then a random number of character elements are deployed in the field data at random positions to generate artificial data.

[0016] Furthermore, based on the basic model, the application data is trained with a low initial learning rate and a short cycle to obtain the scenario model and complete the migration deployment.

[0017] According to the rapid migration method of the industrial safety intelligent system for personnel detection in an embodiment of the present invention, a segmentation network is used to extract human target elements and add them to the generation of artificial data, so as to achieve efficient generation of effective data and improve the generalization ability of the model; the automation of intelligent system migration is achieved, and only a small amount of manual intervention is required for the entire process, which greatly improves the migration efficiency; the data shortage problem caused by data confidentiality in industrial scenarios is solved, and the deployment of intelligent detection systems can be realized in scenarios where training data is difficult to obtain.

[0018] It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the technology as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart according to an embodiment of the present invention; Figure 2 A flowchart for generating artificial data by deploying natural data in a natural data set onto field data according to an embodiment of the present invention; Figure 3 A flowchart of extracting human elements from natural data according to an embodiment of the present invention; Figure 4 is a flowchart of filtering target person elements according to an embodiment of the present invention; Figure 5 A flowchart of performing discrete area filtering according to an embodiment of the present invention to filter out targets with a number of connected domains greater than 1; Figure 6 is an example diagram of random deployment according to an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings to further illustrate the present invention.

[0021] First, combine Figures 1 to 6 A method for rapid migration of an industrial safety intelligent system for personnel detection according to an embodiment of the present invention is described, which is used for personnel detection in an industrial environment to achieve migration deployment of an intelligent system, and has a wide range of application scenarios.

[0022] like Figures 1 to 6As shown, the rapid migration method of the industrial safety intelligent system for personnel detection in an embodiment of the present invention includes the following steps: mixing public data sets and historical databases in industrial safety intelligent systems to obtain multi-scenario, large-scale natural data sets; training the natural data sets in a high initial learning rate and long cycle manner to obtain a model with strong generalization ability as a basic model; obtaining field data of new scenes, where the field data is at least one field photo. When the new scene lacks available field data or the field data is difficult to collect, it is necessary to manually collect a single or a small number of field photos as field data. When the new scene has field data or the field data can be collected relatively easily, the basic model is used for automatic labeling, and high-confidence data is selected and after a small amount of manual correction, field data containing more new scene feature information is obtained, saving manpower and speeding up data labeling. The corrected field data can be added to the historical database and repeatedly trained together with the public data set to continuously improve the feature extraction and generalization capabilities of the basic model, and continuously optimize the model so that it can better adapt to new scenarios and changes; deploy natural data in the natural data set to the field data, generate artificial data, efficiently generate effective data, and improve the generalization ability of the model; mix field data, artificial data and natural data in proportion. If there is field data in the new scenario or the field data can be collected relatively easily, it can be mixed in a ratio of 3:3:4. If the new scenario lacks available field data or the field data is difficult to collect, it can be mixed in a ratio of 0:5:5. The natural data is used to consolidate the generalization ability of the basic model and prevent the model from overfitting. The field data and artificial data are used to make the data distribution space close to the field feature space and improve the performance of the model on the field data; obtain application data for final training, use diversified data, and reduce the risk of overfitting; train application data based on the basic model with a low initial learning rate and a short cycle to reduce the possibility of overfitting, obtain a scenario model for the new industrial scenario, and complete the migration deployment. The migration of intelligent systems is automated, and only minimal manual intervention is required for the entire process, greatly improving migration efficiency. At the same time, it solves the data shortage problem caused by data confidentiality in industrial scenarios, and enables the deployment of intelligent detection systems in scenarios where training data is difficult to obtain.

[0023] Further, as shown in 1~2, 6, in this embodiment, the natural data in the natural data set is deployed on the field data, and the generation of artificial data includes the following steps: extracting the human elements in the natural data; using the field data as the background image, deploying a random number of human elements in the background image at random positions to generate artificial data, and producing more realistic and diverse images, thereby improving the generalization ability of the model. The field data and the natural data are processed independently in two ways, the field data is used as the background for generating the image, and the natural data is used to extract the human elements. During the deployment process, it is necessary to determine whether there is an overlapping area between the positions of the human element masks to prevent the target from being covered and blocked, which helps to generate clearer and more realistic artificial data, reduce interference and noise during the model training process, and improve the performance of the model.

[0024] Further, as shown in 1 and 3, in this embodiment, extracting human elements from natural data includes the following steps: inputting natural data and the target frame coordinates of the natural data into the segmentation network, the target frame coordinates can be obtained through the target detection algorithm, obtaining the human target elements segmented along the edge, and generating the corresponding mask image; filtering the human target elements to obtain human elements. Since some human targets will be incomplete after segmentation, they need to be filtered to obtain human elements with high availability, so as to improve the data quality and the training effect of the model.

[0025] Further, as shown in Figure 4, in this embodiment, filtering the human target element includes the following steps: performing scale filtering, comparing the target frame size with a predefined threshold, filtering out targets that are too large, too small, and have an inappropriate aspect ratio; performing mask area filtering, calculating the ratio of the mask area to the target frame area. Since the target frame is annotated close to the edge of the target, most of the target frame should be the target entity, so the ratio of the mask area to the target frame area should not be too low, filtering out targets with a ratio less than 0.6, which helps to ensure the integrity and accuracy of the target; performing discrete area filtering, filtering out targets with a number of connected domains greater than 1, filtering segmentation errors, preventing target fragmentation and occlusion, and preventing noise from being introduced into model training, which is conducive to the accurate convergence of model training. After filtering out inappropriate targets, the remaining targets are clearer and more accurate, which can improve the effect and performance of model training. The filtered data set is more in line with the requirements of model training, which helps the model to learn and generalize better.

[0026] Further, as shown in 5, in this embodiment, performing discrete region filtering to filter out targets with a number of connected domains greater than 1 includes the following steps: corroding the mask image to obtain a new mask image, and the corrosion formula is as follows: , where S represents the binary image set after corrosion, B represents the structural element of corrosion, this method uses a 5×5 square, X represents the set of mask pixels after binary conversion, and after corrosion processing, the abnormal outliers in the mask and the connected domains with broken thin links can be filtered out; the traversal labeling algorithm is applied to calculate the number of connected domains of the new mask image, traversing the pixels of the new mask image from top to bottom and from left to right and assigning labels. If the left pixel and the upper pixel values ​​of the pixel point where the operation is performed are both 0, a new label is assigned to the pixel, that is: , if the current pixel is the same as the neighboring pixel, the minimum mark of the neighboring pixel is assigned to the current pixel, that is: , and record the connected area to which the mark belongs, and get the mark cluster: ,Finally, we only need to count the number of labeled clusters, which is the number of connected regions, and filter out targets with a number of connected regions greater than 1. ,Through the discrete region filtering step, we can remove noise and interference in the mask, retain clear human targets, and ensure that the target box contains only one connected human target, thereby improving the quality and availability of the data, which is beneficial to the training and application of the model.

[0027] Furthermore, in this embodiment, the field data is used as the background image, and data enhancement is performed on the background image or character elements. Random scaling, image-level random HSV color enhancement, pixel-level random HSV color enhancement, random affine transformation, PCA color enhancement, random occlusion, etc. can be used for data enhancement, and then a random number of character elements are deployed in the field data at random positions to generate artificial data.

[0028] Above, refer to Figures 1 to 6 A method for rapid migration of an industrial safety intelligent system for personnel detection according to an embodiment of the present invention is described. A segmentation network is used to extract human target elements and add them to the generation of artificial data, so as to achieve efficient generation of effective data and improve the generalization ability of the model. The migration of the intelligent system is automated, and only a small amount of manual intervention is required for the entire process, which greatly improves the migration efficiency. The data shortage problem caused by data confidentiality in industrial scenarios is solved, and the deployment of intelligent detection systems can be realized in scenarios where training data is difficult to obtain.

[0029] It should be noted that, in this specification, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprises..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0030] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.

Claims

1. A rapid migration method for an industrial safety intelligent system for personnel detection, characterized in that: The following steps are included: Mix public datasets and historical databases to obtain natural datasets; Training the natural data set to obtain a basic model; Acquire live data for new scenarios; deploying natural data in the natural data set onto the field data to generate artificial data; Mix the field data, the artificial data and the natural data in proportion to obtain application data; The application data is trained based on the basic model to obtain a scenario model and complete the migration deployment.

2. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 1, characterized in that: The natural data set is trained in a high initial learning rate and long cycle manner.

3. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 1, characterized in that: The on-site data is at least one on-site photo.

4. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 1, characterized in that: Deploying the natural data in the natural data set onto the field data to generate artificial data comprises the following steps: extracting human elements from the natural data; Using the on-site data as the background image, a random number of the character elements are deployed in the background image at random positions to generate artificial data.

5. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 4, characterized in that: Extracting the character elements from the natural data includes the following steps: Inputting the natural data and the target frame coordinates of the natural data into a segmentation network, segmenting to obtain human target elements, and generating a corresponding mask image; The character target element is filtered to obtain the character element.

6. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 5, characterized in that: Filtering the person target element includes the following steps: Comparing the target frame size with a predefined threshold, filtering out targets that are too large, too small, or have an inappropriate aspect ratio; Calculate the ratio of the mask area to the target box area, and filter out targets with a ratio less than 0.6; Perform discrete area filtering to filter out targets with a number of connected domains greater than 1.

7. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 6, characterized in that: Discrete region filtering to filter out targets with a connected domain number greater than 1 includes the following steps: Performing an etching process on the mask image to obtain a new mask image; A traversal labeling algorithm is applied to calculate the number of connected domains of the new mask image, and targets with a number of connected domains greater than 1 are filtered out.

8. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 4, characterized in that: The field data is used as a background image, data enhancement is performed on the background image or the character elements, and then a random number of the character elements are deployed in the field data at random positions to generate artificial data.

9. The method for rapid migration of an industrial safety intelligent system for personnel detection according to claim 1, characterized in that: Based on the basic model, the application data is trained in a low initial learning rate and short cycle manner to obtain a scenario model and complete the migration deployment.