CN116778276A - Safe production model training method, application method, device, equipment and medium - Google Patents
Safe production model training method, application method, device, equipment and medium Download PDFInfo
- Publication number
- CN116778276A CN116778276A CN202310833679.1A CN202310833679A CN116778276A CN 116778276 A CN116778276 A CN 116778276A CN 202310833679 A CN202310833679 A CN 202310833679A CN 116778276 A CN116778276 A CN 116778276A
- Authority
- CN
- China
- Prior art keywords
- model
- detection
- safety
- training
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012549 training Methods 0.000 title claims abstract description 82
- 238000004519 manufacturing process Methods 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims abstract description 64
- 238000001514 detection method Methods 0.000 claims abstract description 152
- 238000003708 edge detection Methods 0.000 claims abstract description 65
- 238000012545 processing Methods 0.000 claims description 27
- 230000006399 behavior Effects 0.000 claims description 6
- 230000002159 abnormal effect Effects 0.000 claims description 5
- 239000000779 smoke Substances 0.000 claims description 2
- 230000008569 process Effects 0.000 abstract description 9
- 238000012544 monitoring process Methods 0.000 abstract description 8
- 238000004590 computer program Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 235000021190 leftovers Nutrition 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000003709 image segmentation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000000383 hazardous chemical Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000011282 treatment Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
Abstract
本发明公开了一种安全生产模型训练方法、应用方法、装置、设备及介质。安全生产模型包括多个边缘检测模型和中心检测模型,本发明在实际检测过程中,将边缘检测模型的检测结果和中心检测模型的检测结果进行对照,在二者结果不一致时,获取现场实际安全结果,并基于现场实际安全结果对边缘检测模型或中心检测模型进行模型更新训练,利用增量学习的方法不断收集边缘检测模型和中心检测模型判断错误的数据,并将其用于模型的迭代更新,从而实现边缘检测模型的高精度和中心检测模型的高泛用性,有效地解决单个点位数据量不足以训练一个性能较好的模型的问题,提高模型的准确性和鲁棒性,使得监测更加准确可靠。
The invention discloses a safety production model training method, application method, device, equipment and medium. The safety production model includes multiple edge detection models and center detection models. During the actual detection process, the present invention compares the detection results of the edge detection model with the detection results of the center detection model. When the two results are inconsistent, the actual safety of the site is obtained. Based on the actual safety results on site, the edge detection model or the center detection model is model updated and trained, and the incremental learning method is used to continuously collect data on the edge detection model and the center detection model's misjudgment, and use it for iterative update of the model. , thereby achieving high accuracy of the edge detection model and high versatility of the center detection model, effectively solving the problem that the amount of data at a single point is insufficient to train a model with better performance, and improving the accuracy and robustness of the model, making Monitoring is more accurate and reliable.
Description
技术领域Technical field
本发明涉及计算机技术,尤其涉及一种安全生产模型训练方法、应用方法、装置、设备及介质。The invention relates to computer technology, and in particular to a safety production model training method, application method, device, equipment and medium.
背景技术Background technique
随着人工智能的不断发展,计算机视觉技术在安全生产领域的应用也越来越广泛。其中,火灾、烟雾等危害的监测,人员危险行为的监测,以及危险化学品的监测等方面,都离不开计算机视觉技术的支持。With the continuous development of artificial intelligence, computer vision technology is increasingly used in the field of safety production. Among them, the monitoring of fire, smoke and other hazards, the monitoring of dangerous behaviors of personnel, and the monitoring of hazardous chemicals are all inseparable from the support of computer vision technology.
为了实现实时监测,往往需要依靠摄像头采集图像,并对场景进行逐帧推理。然而,这就要求模型必须轻量化,同时要考虑到不同场景的使用需求,因此需要为不同的摄像点位使用特定的模型。但是,单个点位收集的数据量不足以训练一个性能较好的模型。In order to achieve real-time monitoring, it is often necessary to rely on cameras to collect images and perform frame-by-frame inference on the scene. However, this requires that the model must be lightweight and take into account the usage requirements of different scenarios, so specific models need to be used for different camera points. However, the amount of data collected at a single point is not enough to train a good performing model.
发明内容Contents of the invention
本发明提供一种安全生产模型训练方法、应用方法、装置、设备及介质,以解决单个点位数据量不足以训练一个性能较好的模型的问题,提高模型的准确性和鲁棒性,使得监测更加准确可靠。The present invention provides a safety production model training method, application method, device, equipment and medium to solve the problem that the amount of data at a single point is insufficient to train a model with good performance, improve the accuracy and robustness of the model, and make Monitoring is more accurate and reliable.
第一方面,本发明提供了一种安全生产模型训练方法,所述安全生产模型包括多个边缘检测模型和中心检测模型,所述方法包括:In a first aspect, the present invention provides a safety production model training method. The safety production model includes multiple edge detection models and center detection models. The method includes:
获取图像采集设备采集的生产现场的图像;Obtain images of the production site collected by image acquisition equipment;
将所述图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果;The image is input into the corresponding edge detection model for processing, and the edge model detection result is obtained;
在所述边缘模型检测结果为存在安全隐患时,将所述图像输入中心检测模型中进行处理,得到中心模型检测结果;When the edge model detection result indicates that there is a security risk, the image is input into the center detection model for processing to obtain the center model detection result;
在所述中心模型检测结果为存在安全隐患时,发出安全报警提示;When the central model detection result indicates that there is a safety hazard, a safety alarm prompt is issued;
在所述中心模型检测结果为不存在安全隐患时,获取现场实际安全结果;When the central model detection result shows that there is no safety hazard, obtain the actual safety results on site;
在所述现场实际安全结果为存在安全隐患时,将所述图像作为训练样本对所述中心检测模型进行更新训练;When the actual safety result of the site indicates that there is a safety hazard, use the image as a training sample to update and train the central detection model;
在所述现场实际安全结果为不存在安全隐患时,将所述图像作为训练样本对所述边缘检测模型进行更新训练。When the actual safety result of the scene is that there is no safety hazard, the image is used as a training sample to update and train the edge detection model.
可选的,安全生产模型训练方法还包括:Optionally, safety production model training methods also include:
在所述边缘模型检测结果为不存在安全隐患时,获取当前时间节点之前预设时长内的边缘模型检测结果;When the edge model detection result is that there is no security risk, obtain the edge model detection result within a preset time period before the current time node;
在所述预设时长内的边缘模型检测结果均为不存在安全隐患时,降低所述边缘检测模型的判定阈值。When the edge model detection results within the preset time period are all indicating that there is no security risk, the determination threshold of the edge detection model is lowered.
可选的,存在安全隐患的检测结果包括以下至少一种:Optional, detection results that pose safety risks include at least one of the following:
待识别对象存在违规外观信息、待识别对象存在违规行为、违规车辆种类、车辆驶入禁入区域、生产设备存在异常状态、存在烟火和存在遗留物。The object to be identified has illegal appearance information, the object to be identified has illegal behavior, the type of illegal vehicle, the vehicle has entered a prohibited area, the production equipment has abnormal status, there are fireworks, and there are leftovers.
可选的,将所述图像作为训练样本对所述中心检测模型进行更新训练,包括:Optionally, use the image as a training sample to update and train the center detection model, including:
在所述现场实际安全结果为存在安全隐患时,将所述图像存储至第一数据库中;When the actual safety result of the scene is that there is a safety hazard, the image is stored in the first database;
判断所述第一数据库中的图像的数量是否达到第一阈值;Determine whether the number of images in the first database reaches a first threshold;
若是,则将所述第一数据库中的图像作为训练集,对所述中心检测模型进行训练,并更新所述中心检测模型的模型参数。If so, use the images in the first database as a training set to train the center detection model, and update the model parameters of the center detection model.
可选的,将所述图像作为训练样本对所述边缘检测模型进行更新训练,包括:Optionally, use the image as a training sample to update and train the edge detection model, including:
在所述现场实际安全结果为不存在安全隐患时,将所述图像存储至第二数据库中;When the actual safety result of the scene is that there is no safety hazard, the image is stored in the second database;
判断所述第二数据库中的图像的数量是否达到第二阈值;Determine whether the number of images in the second database reaches a second threshold;
若是,则将所述第二数据库中的图像作为训练集,对所述边缘检测模型进行训练,并更新所述边缘检测模型的模型参数。If so, use the images in the second database as a training set to train the edge detection model, and update the model parameters of the edge detection model.
可选的,所述边缘检测模型的模型架构小于所述中心检测模型。Optionally, the model architecture of the edge detection model is smaller than that of the center detection model.
第二方面,本发明还提供了一种安全生产检测方法,应用于本发明第一方面提供的安全生产模型训练方法训练的安全生产模型。In a second aspect, the present invention also provides a production safety detection method, which is applied to the production safety model trained by the production safety model training method provided in the first aspect of the invention.
第三方面,本发明还提供了一种安全生产模型训练装置,所述安全生产模型包括多个边缘检测模型和中心检测模型,所述装置包括:In a third aspect, the present invention also provides a safety production model training device. The safety production model includes multiple edge detection models and center detection models. The device includes:
图像获取模块,用于获取图像采集设备采集的生产现场的图像;The image acquisition module is used to acquire images of the production site collected by the image acquisition equipment;
第一检测模块,用于将所述图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果;The first detection module is used to input the image into the corresponding edge detection model for processing, and obtain the edge model detection result;
第二检测模块,用于在所述边缘模型检测结果为存在安全隐患时,将所述图像输入中心检测模型中进行处理,得到中心模型检测结果;The second detection module is used to input the image into the center detection model for processing when the edge model detection result indicates that there is a security risk, and obtain the center model detection result;
报警提示模块,用于在所述中心模型检测结果为存在安全隐患时,发出安全报警提示;An alarm prompt module is used to issue a safety alarm prompt when the central model detection result indicates that there is a safety hazard;
实际结果获取模块,用于在所述中心模型检测结果为不存在安全隐患时,获取现场实际安全结果;The actual result acquisition module is used to obtain the actual safety results on site when the central model detection result is that there is no safety hazard;
第一更新训练模块,用于在所述现场实际安全结果为存在安全隐患时,将所述图像作为训练样本对所述中心检测模型进行更新训练;The first update training module is used to use the image as a training sample to update and train the central detection model when the actual safety result of the site is that there is a safety hazard;
第二更新训练模块,用于在所述现场实际安全结果为不存在安全隐患时,将所述图像作为训练样本对所述边缘检测模型进行更新训练。The second update training module is used to update and train the edge detection model using the image as a training sample when the actual safety result of the site is that there is no safety hazard.
第四方面,本发明还提供了一种电子设备,包括:In a fourth aspect, the present invention also provides an electronic device, including:
一个或多个处理器;one or more processors;
存储器,用于存储一个或多个程序;Memory, used to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本发明第一方面提供的安全生产模型训练方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the safety production model training method provided by the first aspect of the present invention.
第五方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如本发明第一方面提供的安全生产模型训练方法。In a fifth aspect, the present invention also provides a computer-readable storage medium. Computer-executable instructions are stored in the computer-readable storage medium. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect of the present invention. Provided safety production model training methods.
本发明提供的安全生产模型训练方法,安全生产模型包括多个边缘检测模型和中心检测模型,方法包括:获取图像采集设备采集的生产现场的图像,将图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果,在边缘模型检测结果为存在安全隐患时,将图像输入中心检测模型中进行处理,得到中心模型检测结果,在中心模型检测结果为存在安全隐患时,发出安全报警提示,在中心模型检测结果为不存在安全隐患时,获取现场实际安全结果,在现场实际安全结果为存在安全隐患时,将图像作为训练样本对中心检测模型进行更新训练,在现场实际安全结果为不存在安全隐患时,将图像作为训练样本对边缘检测模型进行更新训练。本发明在实际检测过程中,将边缘检测模型的检测结果和中心检测模型的检测结果进行对照,在二者结果不一致时,获取现场实际安全结果,并基于现场实际安全结果对边缘检测模型或中心检测模型进行模型更新训练,利用增量学习的方法不断收集边缘检测模型和中心检测模型判断错误的数据,并将其用于模型的迭代更新,从而实现边缘检测模型的高精度和中心检测模型的高泛用性,有效地解决单个点位数据量不足以训练一个性能较好的模型的问题,提高模型的准确性和鲁棒性,使得监测更加准确可靠。The invention provides a safety production model training method. The safety production model includes multiple edge detection models and center detection models. The method includes: acquiring images of the production site collected by image acquisition equipment, and inputting the images into the corresponding edge detection models for processing. The edge model detection result is obtained. When the edge model detection result indicates that there is a safety hazard, the image is input into the center detection model for processing, and the central model detection result is obtained. When the central model detection result indicates that there is a safety hazard, a safety alarm prompt is issued. When the central model detection result is that there is no safety hazard, the actual safety result on site is obtained. When the actual safety result on site is that there is safety hazard, the image is used as a training sample to update and train the central detection model. The actual safety result on site is that there is no safety hazard. When hidden dangers are detected, images are used as training samples to update and train the edge detection model. During the actual detection process, the present invention compares the detection results of the edge detection model with the detection results of the center detection model. When the two results are inconsistent, the actual safety results on site are obtained, and the edge detection model or the center detection model is compared based on the actual safety results on site. The detection model is trained for model update, and the incremental learning method is used to continuously collect data on error judgments of the edge detection model and the center detection model, and is used for iterative update of the model, thereby achieving high accuracy of the edge detection model and high accuracy of the center detection model. Highly versatile, it effectively solves the problem that the amount of data at a single point is insufficient to train a model with good performance, improves the accuracy and robustness of the model, and makes monitoring more accurate and reliable.
应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the invention, nor is it intended to limit the scope of the invention. Other features of the present invention will become easily understood from the following description.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1为本发明实施例提供的一种安全生产模型训练方法的流程图;Figure 1 is a flow chart of a safety production model training method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种安全生产模型训练装置的结构示意图;Figure 2 is a schematic structural diagram of a safety production model training device provided by an embodiment of the present invention;
图3为本发明的实施例提供的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。Through the above-mentioned drawings, clear embodiments of the present application have been shown, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present application's concepts in any way, but are intended to illustrate the application's concepts for those skilled in the art with reference to specific embodiments.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
图1为本发明实施例提供的一种安全生产模型训练方法的流程图,本实施例可适用于对安全生产模型进行增量训练的情况,该方法可以由本发明实施例提供的安全生产模型训练装置来执行,该装置可以由软件和/或硬件的方式实现,通常配置于电子设备中,如图1所示,该安全生产模型训练方法具体包括如下步骤:Figure 1 is a flow chart of a production safety model training method provided by an embodiment of the present invention. This embodiment can be applied to the situation of incremental training of a production safety model. This method can be trained by the production safety model provided by an embodiment of the present invention. The device can be implemented by software and/or hardware, and is usually configured in electronic equipment. As shown in Figure 1, the safety production model training method specifically includes the following steps:
S101、获取图像采集设备采集的生产现场的图像。S101. Obtain the images of the production site collected by the image acquisition equipment.
在本发明实施例中,图像采集设备布设与生产现场,用于采集生产现场的图像,并上传给电子设备。图像采集设备可以是摄像头,采集的图像可以是图片或视频,本发明实施例在此不做限定。In the embodiment of the present invention, image collection equipment is deployed at the production site to collect images of the production site and upload them to electronic devices. The image collection device may be a camera, and the collected images may be pictures or videos, which are not limited in this embodiment of the present invention.
S102、将图像输入边缘检测模型中进行处理,得到边缘模型检测结果。S102. Input the image into the edge detection model for processing, and obtain the edge model detection result.
在本发明实施例中,安全生产模型包括多个边缘检测模型和中心检测模型,边缘检测模型部署在对应的边缘设备中,中心检测模型部署在中心服务器中。每个边缘检测模型对应不同场景的使用需求。In the embodiment of the present invention, the safety production model includes multiple edge detection models and a central detection model. The edge detection models are deployed in corresponding edge devices, and the central detection model is deployed in the central server. Each edge detection model corresponds to the usage requirements of different scenarios.
在获取到图像采集设备采集的生产现场的图像之后,将图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果。其中,边缘检测模型对图像处理过程可以包括预处理、图像分割、特征提取、特征融合、特征空间映射等,本发明实施例在此不做限定。边缘模型检测结果表示当前生产现场是否存在安全隐患,存在安全隐患的检测结果包括以下至少一种:待识别对象存在违规外观信息、待识别对象存在违规行为、违规车辆种类、车辆驶入禁入区域、生产设备存在异常状态、存在烟火和存在遗留物等。After obtaining the images of the production site collected by the image acquisition equipment, the images are input into the corresponding edge detection model for processing, and the edge model detection results are obtained. The image processing process of the edge detection model may include preprocessing, image segmentation, feature extraction, feature fusion, feature space mapping, etc., which are not limited in this embodiment of the present invention. The edge model detection results indicate whether there are safety hazards at the current production site. The detection results of safety hazards include at least one of the following: the object to be identified has illegal appearance information, the object to be identified has illegal behavior, the type of illegal vehicle, and the vehicle has entered a prohibited area. , Production equipment has abnormal conditions, there are fireworks and leftovers, etc.
S103、在边缘模型检测结果为存在安全隐患时,将图像输入中心检测模型中进行处理,得到中心模型检测结果。S103. When the edge model detection result indicates that there is a security risk, input the image into the center detection model for processing to obtain the center model detection result.
在边缘模型检测结果为存在安全隐患时,将图像输入中心检测模型中进行处理,进一步进行判定,得到中心模型检测结果。When the edge model detection result indicates that there is a security risk, the image is input into the center detection model for processing, and further judgment is made to obtain the center model detection result.
其中,中心检测模型对图像处理过程可以包括预处理、图像分割、特征提取、特征融合、特征空间映射等,本发明实施例在此不做限定。中心模型检测结果表示当前生产现场是否存在安全隐患,存在安全隐患的检测结果包括以下至少一种:待识别对象存在违规外观信息、待识别对象存在违规行为、违规车辆种类、车辆驶入禁入区域、生产设备存在异常状态、存在烟火和存在遗留物等。The image processing process of the center detection model may include preprocessing, image segmentation, feature extraction, feature fusion, feature space mapping, etc., which are not limited in this embodiment of the present invention. The central model detection results indicate whether there are safety hazards at the current production site. The detection results of safety hazards include at least one of the following: the object to be identified has illegal appearance information, the object to be identified has illegal behavior, the type of illegal vehicle, and the vehicle has entered a prohibited area. , Production equipment has abnormal conditions, there are fireworks and leftovers, etc.
在边缘模型检测结果为不存在安全隐患时,获取当前时间节点之前预设时长(例如,2天)内的边缘模型检测结果,在预设时长内的边缘模型检测结果均为不存在安全隐患时,说明边缘检测模型的判定阈值设定偏高,导致边缘检测模型无法正常检出存在安全隐患的结构,此时,应该降低边缘检测模型的判定阈值,提高边缘检测模型的灵敏度。When the edge model detection result is that there is no security risk, the edge model detection results within the preset time period (for example, 2 days) before the current time node are obtained. The edge model detection results within the preset time period are all when there is no security risk. , indicating that the judgment threshold of the edge detection model is set too high, causing the edge detection model to be unable to detect structures with potential safety hazards. At this time, the judgment threshold of the edge detection model should be lowered to improve the sensitivity of the edge detection model.
在本发明的一些实施例中,由于边缘设备的计算处理能力通常较弱,因此,在本发明实施例中,边缘检测模型的模型架构小于中心检测模型,减少边缘检测模型的数据处理压力,提高边缘设备的检测效率。In some embodiments of the present invention, since the computing processing capabilities of edge devices are usually weak, in embodiments of the present invention, the model architecture of the edge detection model is smaller than that of the center detection model, which reduces the data processing pressure of the edge detection model and improves Detection efficiency of edge devices.
S104、在中心模型检测结果为存在安全隐患时,发出安全报警提示。S104. When the central model detection result indicates that there is a safety hazard, a safety alarm prompt is issued.
在本发明实施例中,将边缘模型检测结果与中心模型检测结果进行对照,若边缘模型检测结果为存在安全隐患,且中心模型检测结果为存在安全隐患,则认为确实存在安全隐患,控制报警设备发出安全报警提示。In the embodiment of the present invention, the edge model detection result is compared with the center model detection result. If the edge model detection result indicates that there is a safety hazard, and the center model detection result is that there is a safety hazard, it is considered that there is indeed a safety hazard, and the alarm device is controlled. Issue a safety alarm prompt.
S105、在中心模型检测结果为不存在安全隐患时,获取现场实际安全结果。S105. When the central model detection result shows that there is no safety hazard, obtain the actual safety results on site.
在中心模型检测结果为不存在安全隐患时,获取现场实际安全结果。示例性的,现场实际安全结果可以有现场人员亲自在现场判定,并将结果输入电子设备。When the central model detection result shows that there are no safety hazards, the actual safety results on site are obtained. For example, the actual on-site safety results can be determined by on-site personnel in person on-site and the results can be input into electronic devices.
S106、在现场实际安全结果为存在安全隐患时,将图像作为训练样本对中心检测模型进行更新训练。S106. When the actual safety result on site indicates that there is a safety hazard, use the image as a training sample to update and train the central detection model.
在现场实际安全结果为存在安全隐患时,说明中心检测模型存在漏检,将图像作为训练样本对中心检测模型进行更新训练,以提高中心检测模型的检测准确度。When the actual safety result on site is that there is a safety hazard, it means that the central detection model has missed detection, and the image is used as a training sample to update the central detection model to improve the detection accuracy of the central detection model.
示例性的,在本发明的一些实施例中,在现场实际安全结果为存在安全隐患时,将图像存储至第一数据库中,然后判断第一数据库中的图像的数量是否达到第一阈值,若是,则将第一数据库中的图像作为训练集,对中心检测模型进行训练,并更新中心检测模型的模型参数。具体的,可以采用计算损失值的方式来判定中心检测模型是否收敛,在损失值小于预设值时,判定中心检测模型收敛。Exemplarily, in some embodiments of the present invention, when the actual safety result on site is that there is a safety hazard, the images are stored in the first database, and then it is determined whether the number of images in the first database reaches the first threshold, and if so , then use the images in the first database as a training set to train the center detection model, and update the model parameters of the center detection model. Specifically, the method of calculating the loss value can be used to determine whether the center detection model has converged. When the loss value is less than the preset value, it is determined that the center detection model has converged.
S107、在现场实际安全结果为不存在安全隐患时,将图像作为训练样本对边缘检测模型进行更新训练。S107. When the actual safety result on site is that there is no safety hazard, use the image as a training sample to update and train the edge detection model.
在现场实际安全结果为不存在安全隐患时,说明边缘检测模型存在误判,将图像作为训练样本对边缘检测模型进行更新训练,以提高边缘检测模型的检测准确度。When the actual safety result on site is that there is no safety hazard, it means that the edge detection model has misjudged. The image is used as a training sample to update the edge detection model to improve the detection accuracy of the edge detection model.
示例性的,在本发明的一些实施例中,在现场实际安全结果为不存在安全隐患时,将图像存储至第二数据库中,然后判断第二数据库中的图像的数量是否达到第二阈值,若是,则将第二数据库中的图像作为训练集,对边缘检测模型进行训练,并更新边缘检测模型的模型参数。具体的,可以采用计算损失值的方式来判定中心检测模型是否收敛,在损失值小于预设值时,判定中心检测模型收敛。For example, in some embodiments of the present invention, when the actual safety result on site is that there is no safety hazard, the images are stored in the second database, and then it is determined whether the number of images in the second database reaches the second threshold, If so, use the images in the second database as a training set to train the edge detection model, and update the model parameters of the edge detection model. Specifically, the method of calculating the loss value can be used to determine whether the center detection model has converged. When the loss value is less than the preset value, it is determined that the center detection model has converged.
本发明实施例提供的安全生产模型训练方法,安全生产模型包括多个边缘检测模型和中心检测模型,方法包括:获取图像采集设备采集的生产现场的图像,将图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果,在边缘模型检测结果为存在安全隐患时,将图像输入中心检测模型中进行处理,得到中心模型检测结果,在中心模型检测结果为存在安全隐患时,发出安全报警提示,在中心模型检测结果为不存在安全隐患时,获取现场实际安全结果,在现场实际安全结果为存在安全隐患时,将图像作为训练样本对中心检测模型进行更新训练,在现场实际安全结果为不存在安全隐患时,将图像作为训练样本对边缘检测模型进行更新训练。本发明在实际检测过程中,将边缘检测模型的检测结果和中心检测模型的检测结果进行对照,在二者结果不一致时,获取现场实际安全结果,并基于现场实际安全结果对边缘检测模型或中心检测模型进行模型更新训练,利用增量学习的方法不断收集边缘检测模型和中心检测模型判断错误的数据,并将其用于模型的迭代更新,从而实现边缘检测模型的高精度和中心检测模型的高泛用性,有效地解决单个点位数据量不足以训练一个性能较好的模型的问题,提高模型的准确性和鲁棒性,使得监测更加准确可靠。In the safety production model training method provided by the embodiment of the present invention, the safety production model includes multiple edge detection models and center detection models. The method includes: acquiring images of the production site collected by the image acquisition device, and inputting the images into the corresponding edge detection models. Process to obtain the edge model detection result. When the edge model detection result indicates that there is a safety hazard, the image is input into the center detection model for processing, and the central model detection result is obtained. When the center model detection result indicates that there is a safety hazard, a security alarm prompt is issued. , when the central model detection result is that there is no safety hazard, the actual safety result on site is obtained. When the actual safety result on site is that there is safety hazard, the image is used as a training sample to update and train the central detection model. When the actual safety result on site is no When there is a security risk, the image is used as a training sample to update the edge detection model. During the actual detection process, the present invention compares the detection results of the edge detection model with the detection results of the center detection model. When the two results are inconsistent, the actual safety results on site are obtained, and the edge detection model or the center detection model is compared based on the actual safety results on site. The detection model is trained for model update, and the incremental learning method is used to continuously collect data on error judgments of the edge detection model and the center detection model, and is used for iterative update of the model, thereby achieving high accuracy of the edge detection model and high accuracy of the center detection model. Highly versatile, it effectively solves the problem that the amount of data at a single point is insufficient to train a model with good performance, improves the accuracy and robustness of the model, and makes monitoring more accurate and reliable.
本发明实施例还提供了一种安全生产检测方法,该方法应用于本发明前述任意实施例提供的安全生产模型训练方法训练的安全生产模型。Embodiments of the present invention also provide a production safety detection method, which method is applied to the production safety model trained by the production safety model training method provided by any of the foregoing embodiments of the present invention.
图2为本发明实施例提供的一种安全生产模型训练装置的结构示意图,安全生产模型包括多个边缘检测模型和中心检测模型,如图2所示,安全生产模型训练装置包括:Figure 2 is a schematic structural diagram of a production safety model training device provided by an embodiment of the present invention. The production safety model includes multiple edge detection models and center detection models. As shown in Figure 2, the production safety model training device includes:
图像获取模块201,用于获取图像采集设备采集的生产现场的图像;The image acquisition module 201 is used to acquire images of the production site collected by the image acquisition device;
第一检测模块202,用于将所述图像输入对应的边缘检测模型中进行处理,得到边缘模型检测结果;The first detection module 202 is used to input the image into the corresponding edge detection model for processing, and obtain the edge model detection result;
第二检测模块203,用于在所述边缘模型检测结果为存在安全隐患时,将所述图像输入中心检测模型中进行处理,得到中心模型检测结果;The second detection module 203 is used to input the image into the center detection model for processing when the edge model detection result indicates that there is a security risk, and obtain the center model detection result;
报警提示模块204,用于在所述中心模型检测结果为存在安全隐患时,发出安全报警提示;The alarm prompt module 204 is used to issue a safety alarm prompt when the central model detection result indicates that there is a safety hazard;
实际结果获取模块205,用于在所述中心模型检测结果为不存在安全隐患时,获取现场实际安全结果;The actual result acquisition module 205 is used to obtain the actual safety results on site when the central model detection result is that there is no safety hazard;
第一更新训练模块206,用于在所述现场实际安全结果为存在安全隐患时,将所述图像作为训练样本对所述中心检测模型进行更新训练;The first update training module 206 is used to update and train the central detection model using the image as a training sample when the actual safety result of the site is that there is a safety hazard;
第二更新训练模块207,用于在所述现场实际安全结果为不存在安全隐患时,将所述图像作为训练样本对所述边缘检测模型进行更新训练。The second update training module 207 is used to update and train the edge detection model using the image as a training sample when the actual safety result of the site is that there is no safety hazard.
在本发明的一些实施例中,安全生产模型训练装置还包括:In some embodiments of the present invention, the safety production model training device further includes:
检测结果获取模块,用于在所述边缘模型检测结果为不存在安全隐患时,获取当前时间节点之前预设时长内的边缘模型检测结果;A detection result acquisition module, configured to acquire the edge model detection results within a preset time period before the current time node when the edge model detection result is that there is no security risk;
阈值调整模块,用于在所述预设时长内的边缘模型检测结果均为不存在安全隐患时,降低所述边缘检测模型的判定阈值。The threshold adjustment module is used to lower the judgment threshold of the edge detection model when the edge model detection results within the preset time period are all indicating that there is no safety hazard.
在本发明的一些实施例中,存在安全隐患的检测结果包括以下至少一种:In some embodiments of the present invention, the detection results of potential safety hazards include at least one of the following:
待识别对象存在违规外观信息、待识别对象存在违规行为、违规车辆种类、车辆驶入禁入区域、生产设备存在异常状态、存在烟火和存在遗留物。The object to be identified has illegal appearance information, the object to be identified has illegal behavior, the type of illegal vehicle, the vehicle has entered a prohibited area, the production equipment has abnormal status, there are fireworks, and there are leftovers.
在本发明的一些实施例中,第一更新训练模块206包括:In some embodiments of the invention, the first update training module 206 includes:
第一存储单元,用于在所述现场实际安全结果为存在安全隐患时,将所述图像存储至第一数据库中;A first storage unit configured to store the image in a first database when the actual safety result of the site is that there is a safety hazard;
第一判断单元,用于判断所述第一数据库中的图像的数量是否达到第一阈值;A first judgment unit, used to judge whether the number of images in the first database reaches a first threshold;
第一更新训练单元,用于在第一数据库中的图像的数量达到第一阈值时,将所述第一数据库中的图像作为训练集,对所述中心检测模型进行训练,并更新所述中心检测模型的模型参数。A first update training unit, configured to use the images in the first database as a training set when the number of images in the first database reaches a first threshold, train the center detection model, and update the center Detect the model parameters of the model.
在本发明的一些实施例中,第二更新训练模块207包括:In some embodiments of the invention, the second update training module 207 includes:
第二存储单元,用于在所述现场实际安全结果为不存在安全隐患时,将所述图像存储至第二数据库中;A second storage unit, configured to store the image in a second database when the actual safety result of the site is that there is no safety hazard;
第二判断单元,用于判断所述第二数据库中的图像的数量是否达到第二阈值;A second judgment unit, used to judge whether the number of images in the second database reaches a second threshold;
第二更新训练单元,用于在第二数据库中的图像的数量达到第二阈值时,将所述第二数据库中的图像作为训练集,对所述边缘检测模型进行训练,并更新所述边缘检测模型的模型参数。A second update training unit, configured to use the images in the second database as a training set when the number of images in the second database reaches a second threshold, train the edge detection model, and update the edge Detect the model parameters of the model.
可选的,所述边缘检测模型的模型架构小于所述中心检测模型。Optionally, the model architecture of the edge detection model is smaller than that of the center detection model.
上述安全生产模型训练装置可执行本发明前述实施例所提供的安全生产模型训练方法,具备执行安全生产模型训练方法相应的功能模块和有益效果。The above-mentioned safety production model training device can execute the safety production model training method provided by the previous embodiments of the present invention, and has corresponding functional modules and beneficial effects for executing the safety production model training method.
图3为本发明的实施例提供的一种电子设备的结构示意图,电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。3 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, and blades. servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit the implementation of the invention described and/or claimed herein.
如图3所示,电子设备包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in Figure 3, the electronic device includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores A computer program executable by at least one processor. The processor 11 may execute according to a computer program stored in a read-only memory (ROM) 12 or loaded from a storage unit 18 into a random access memory (RAM) 13 Various appropriate actions and treatments. In the RAM 13, various programs and data required for the operation of the electronic device can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via the bus 14. An input/output (I/O) interface 15 is also connected to bus 14 .
电子设备中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device are connected to the I/O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as magnetic disk, optical disk, etc. ; And communication unit 19, such as network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device to exchange information/data with other devices through computer networks such as the Internet and/or various telecommunications networks.
处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如安全生产模型训练方法。Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processing processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes various methods and processes described above, such as the safety production model training method.
在一些实施例中,安全生产模型训练方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的安全生产模型训练方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行安全生产模型训练方法。In some embodiments, the safety production model training method may be implemented as a computer program, which is tangibly included in a computer-readable storage medium, such as the storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device via the ROM 12 and/or the communication unit 19 . When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the safety production model training method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the safe production model training method in any other suitable manner (eg, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on a chip implemented in a system (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or a combination thereof. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.
用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that the computer program, when executed by the processor, causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, laptop disks, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display)) for displaying information to the user monitor); and a keyboard and pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。Computing systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other. The server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the problems of difficult management and weak business scalability in traditional physical hosts and VPS services. defect.
本发明实施例还提供了一种计算机程序产品,包括计算机程序,该计算机程序在被处理器执行时实现如本申请任意实施例所提供的安全生产模型训练方法。Embodiments of the present invention also provide a computer program product, including a computer program that, when executed by a processor, implements the safety production model training method provided by any embodiment of the present application.
计算机程序产品在实现的过程中,可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。During the implementation of the computer program product, computer program code for performing the operations of the present invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages, such as Java, Smalltalk , C++, and also includes conventional procedural programming languages, such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In situations involving remote computers, the remote computer can be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as an Internet service provider through Internet connection).
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in the present invention can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solution of the present invention can be achieved, there is no limitation here.
上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above-mentioned specific embodiments do not constitute a limitation on the scope of the present invention. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310833679.1A CN116778276A (en) | 2023-07-07 | 2023-07-07 | Safe production model training method, application method, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310833679.1A CN116778276A (en) | 2023-07-07 | 2023-07-07 | Safe production model training method, application method, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116778276A true CN116778276A (en) | 2023-09-19 |
Family
ID=88013286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310833679.1A Pending CN116778276A (en) | 2023-07-07 | 2023-07-07 | Safe production model training method, application method, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116778276A (en) |
-
2023
- 2023-07-07 CN CN202310833679.1A patent/CN116778276A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113205037B (en) | Event detection method, event detection device, electronic equipment and readable storage medium | |
CN113360580B (en) | Abnormal event detection method, device, equipment and medium based on knowledge graph | |
CN113657269A (en) | Training method and device for face recognition model and computer program product | |
US12118770B2 (en) | Image recognition method and apparatus, electronic device and readable storage medium | |
CN114419035B (en) | Product identification method, model training device and electronic equipment | |
CN112613569A (en) | Image recognition method, and training method and device of image classification model | |
US20220392192A1 (en) | Target re-recognition method, device and electronic device | |
JP7389860B2 (en) | Security information processing methods, devices, electronic devices, storage media and computer programs | |
CN114782956A (en) | Text recognition method and device, electronic equipment and storage medium | |
CN114547252A (en) | Text recognition method and device, electronic equipment and medium | |
CN118194205A (en) | Abnormal behavior detection method and device, electronic equipment and storage medium | |
CN116778276A (en) | Safe production model training method, application method, device, equipment and medium | |
CN116820997A (en) | An automatic processing method, device, electronic equipment and medium for random pop-up windows | |
CN117271289A (en) | Webpage monitoring method, device, equipment and storage medium | |
EP3940667A2 (en) | Vehicle association method and device, roadside equipment and cloud control platform | |
CN112906478B (en) | Target object identification method, device, equipment and storage medium | |
CN111783591B (en) | Abnormality detection method, abnormality detection device, abnormality detection apparatus, and recording medium | |
CN111858811B (en) | Method and device for constructing interest point image, electronic equipment and storage medium | |
CN114842073A (en) | Image data augmentation method, apparatus, apparatus, medium and computer program product | |
CN112818972A (en) | Method and device for detecting interest point image, electronic equipment and storage medium | |
CN116050529B (en) | Quantum circuit diagram error correction method, device, apparatus, storage medium and program product | |
CN119149686A (en) | Data processing method, device and equipment based on large model | |
CN116245109A (en) | Text processing method and device and electronic equipment | |
CN116152737A (en) | Water and oil leakage image identification method and device based on target tracking algorithm | |
CN118298453A (en) | Well barrier diagram integrity detection method, well barrier diagram integrity detection device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |