Chemical production scene-oriented lower cloud collaborative AI video analysis method and system

Through edge-cloud collaborative AI video analysis technology, combined with deep learning models and cloud computing, real-time monitoring of video data of chemical companies and parks can identify and alarm dangerous situations, solving the problem of low safety management efficiency in the chemical industry and improving the intelligence of safe production. level.

CN118736466APending Publication Date: 2024-10-01BEIJING ZHONGKE SHENTAN TECH CO LTD

Patent Information

Application Number
CN202410953740.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the production process of the chemical industry, there are problems of low safety management efficiency and delayed response. Traditional monitoring methods cannot effectively monitor and provide early warning in real time, resulting in frequent safety accidents.

Method used

Adopt edge-cloud collaborative AI video analysis method, combine edge computing and cloud computing technology, use AI video analysis technology to monitor video data of chemical companies and parks in real time, use deep learning models to identify dangerous situations, and issue alarms in a timely manner, and upgrade algorithm packages to improve Detection accuracy.

Benefits of technology

It achieves all-round real-time monitoring of the chemical production process, reduces the occurrence of safety accidents, improves the intelligent level of safety management, and builds an efficient and intelligent safety production monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736466A_ABST
    Figure CN118736466A_ABST
Patent Text Reader

Abstract

The invention provides a chemical production scene-oriented lower cloud collaborative AI video analysis method and system, and the method comprises the following steps: S1, obtaining data through a factory or park real-time monitoring video, building a data set at an edge end device, and transmitting the data set to a cloud server; s2, after receiving the request, the cloud server issues an image processing algorithm of a corresponding data set in an algorithm packet of the cloud server to edge computing equipment in corresponding edge end equipment; s3, the edge computing device performs trial operation on an image processing algorithm, extracts a detection result by combining the image of the data set with the image processing algorithm, constructs and trains a deep learning model, and sends an operation result and the detection result to a cloud server; and S4, the cloud server identifies a danger result according to a detection result, sends danger information to give an alarm, and upgrades the algorithm package according to an operation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment management and video image processing, and in particular to an edge-cloud collaborative AI video analysis method and system for chemical production scenarios. Background Art

[0002] With the advent of the Industrial 4.0 era, the development of technologies such as artificial intelligence, the Internet of Things, and cloud computing has provided new ideas for safe production in the chemical industry. Due to the potential dangers and complex working conditions in its production process, the chemical industry has placed extremely high demands on safety management.

[0003] Traditional monitoring methods rely on manual inspections, which have problems such as low efficiency and delayed response, and there is an urgent need to improve the level of safety management through technological innovation. Therefore, there is an urgent need for an edge-cloud collaborative AI video analysis system for chemical production scenarios, which can not only achieve all-round real-time monitoring of the production process of chemical companies, but also reduce the occurrence of safety accidents through intelligent analysis and early warning, and improve the intelligent level of safety management. Summary of the invention

[0004] The present invention proposes an edge-cloud collaborative AI video analysis method and system for chemical production scenarios. By combining edge computing and cloud computing technologies, the system supports real-time monitoring of personnel behavior, environmental risks, production equipment, and special operations in chemical companies and parks through AI video analysis technology, and can issue alarms in a timely manner to ensure safe production.

[0005] The technical solution of the present invention is: a cloud-edge collaborative AI video analysis method for chemical production scenarios, comprising the following steps: step S1, acquiring data through real-time monitoring videos of factories or parks, establishing a data set on edge devices and sending it to cloud servers; step S2, after receiving the request, the cloud server sends the image processing algorithm of the corresponding data set in its algorithm package to the edge computing device in the corresponding edge device; step S3, the edge computing device tests the image processing algorithm, uses the image of the data set in combination with the image processing algorithm to extract the detection results, builds and trains a deep learning model, and sends the operation results and detection results to the cloud server; step S4, the cloud server identifies dangerous results based on the detection results, issues dangerous information for alarm, and upgrades the algorithm package based on the operation results.

[0006] An edge-cloud collaborative AI video analysis system for chemical production scenarios, including: a chemical park on-site data acquisition module, used to acquire various video data in chemical scenarios; a cloud server, used to store algorithm packages of different application types and their historical versions, and after receiving a request, send down the image processing algorithm of the corresponding data set in its algorithm package, used to identify dangerous results based on detection results, issue an alarm message, and upgrade the algorithm package based on the operation results; an edge device, which establishes a data set based on video data and sends it to the cloud server, receives the image processing algorithm sent by the cloud server, runs the image processing algorithm, uses the images in the data set combined with the image processing algorithm to extract detection results, builds and trains a deep learning model, and sends the operation results and detection results to the cloud server.

[0007] The method and system of the present invention will integrate advanced AI algorithms, high-performance hardware equipment and flexible cloud services to build an efficient, intelligent and sustainable production safety monitoring system. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 : A flow chart of the edge-cloud collaborative AI video analysis method for chemical production scenarios of the present invention;

[0009] Figure 2 : Schematic diagram of the edge-cloud collaborative AI video analysis system of the present invention;

[0010] Figure 3 : Schematic diagram of an edge-cloud collaborative AI video analysis system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0011] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0012] According to an embodiment of the present invention, a method for edge-cloud collaborative AI video analysis in a chemical production scenario is proposed. Figure 1 As shown, the following steps are included:

[0013] Step S1, obtain data through real-time monitoring video of the factory or park, establish a data set on the edge device and send it to the cloud server.

[0014] In this embodiment, the edge device includes an edge detection device, an edge computing device, and a camera. Specifically, real-time monitoring is performed through the camera in the factory or park, and video capture is performed to obtain data from the video. The camera uses a network camera with a video acquisition resolution of 1080P, which is transmitted to the edge detection device through the RTSP (Real Time Streaming Protocol) protocol. A data set is established in the edge detection device and sent to the cloud server. In one embodiment, Figure 2 As shown, the edge detection device performs video pre-detection, video transmission judgment, and video compression encoding, and then transmits the video data through the video transmission module.

[0015] like Figure 3 As shown, in one embodiment, the edge device includes a debugging computer, an NVR, an IPC, a ball camera, a switch, an AI edge server, and an AI conversion all-in-one machine.

[0016] Step S2: After receiving the request, the cloud server sends the image processing algorithm of the corresponding data set in its algorithm package to the edge computing device in the corresponding edge device.

[0017] Specifically, the algorithm warehouse of the cloud server stores algorithm packages of different application types and their historical versions. These algorithm packages contain all necessary files required to run the corresponding application. According to the type of video data in the data set, the corresponding type of image processing algorithm is found in the algorithm warehouse and sent to the edge computing device. For example, the helmet detection algorithm corresponds to the helmet data set, and the algorithm is found according to the type of data collected on site. In a specific embodiment, Figure 2 As shown, the cloud server performs video decoding and video review, and then feeds back data to the edge computing device of the edge device.

[0018] Optionally, it also includes: optimizing the model and generating a pipeline according to the computing and storage capabilities of the application nodes where the deep learning model needs to be deployed in the image processing algorithm. This step is the optimization work done when the model is transmitted, and each algorithm contains a corresponding deep learning model. Specifically, the deep learning model is optimized according to the needs of the application and the computing and storage resources deployed. The optimization may include model compression, pruning, quantization and other technologies, which aim to reduce the computing and storage requirements of the model and improve the performance and efficiency of the model. The generation of the pipeline means that after the model is optimized, a data processing and transmission pipeline needs to be established so that the image data can be effectively transmitted to the edge computing device for processing. This pipeline may involve the design of data preprocessing, transmission protocol selection and other aspects.

[0019] Step S3: The edge computing device tests the image processing algorithm, extracts the detection results by combining the image in the data set with the image processing algorithm, builds and trains the deep learning model, and sends the operation results to the cloud server; specifically, it includes:

[0020] Step S31, manually annotate the data set collected in the chemical park by using the data annotation tool Labelmg to create the label information that needs to be annotated; this label information will be used to train the target detection model so that it can identify the target in the image.

[0021] Specifically, the labeled data set and the corresponding label information are organized into the format required for model training, such as Pascal VOC, COCO, etc. Then the target detection model is trained using the label information and the labeled data set. Finally, the trained target detection model is deployed in practical applications, such as monitoring systems, safety inspections, etc., in order to identify and locate target objects in chemical parks and improve safety and efficiency.

[0022] Step S32, running the image processing algorithm, extracting the detection results based on the label information and the data set and improving the model, and establishing an improved Transformer object detection model. The specific process includes:

[0023] Step S321, extract the detection results. Specifically, run the image processing algorithm, and map the input data set image into a feature map with a spatial scale of one-fourth of the original image and a channel number of 96 according to the label information through a 4×4 convolution layer. Specifically, the label information tells the algorithm which are the target objects in the chemical park and their category information, and then go through four network stages in sequence for feature extraction, each stage consisting of three encoding layers, and insert a downsampling module consisting of a 2×2 maximum pooling layer and a 1×1 convolution layer into the network, and reduce and expand the spatial scale and channel number of the feature map by 2 times, respectively. Finally, use Faster R-CNN (target detection head) to obtain the final detection result; including the location and category information of the target, each bounding box indicates the location of a detected target object in the image, and gives the category to which the target object belongs, such as "storage tank" or "pipeline". This information can help users understand the location and type of objects in the image, so as to conduct further analysis or processing.

[0024] Step S322: In the training phase, the model is trained using the detection results.

[0025] A three-branch decision sample division module is used to increase the number of small target samples, thereby improving the detection accuracy of small targets and effectively mining negative samples, thereby improving the overall performance of the model, including:

[0026] Step S3221, divide the positive and negative samples according to the overlap between the target prediction box and the target real box, that is, the detection result. Set two overlap (Intersection over Union, IoU) thresholds thre pos and thre nrg When the sample overlap is greater than thre pos When the sample overlap is less than thre nrg When the sample overlap is between thre pos and thre nrg When the number of samples is between , it is discarded. The specific sample division method is as follows:

[0027]

[0028] Among them, P i * Indicates the i-th sample category; IoU i Indicates the overlap of the i-th sample.

[0029] The sample division process utilizes the target prediction box (detection box) and target true box (label box) data in the detection results. Specifically: the target prediction box (detection box) refers to the location information of the target detected by the model in the image, usually expressed in the form of a bounding box, including the coordinates of the upper left corner and the lower right corner. The target true box (label box) refers to the actual location information of the target annotated in the dataset in the image, also expressed in the form of a bounding box, including the coordinates of the upper left corner and the lower right corner.

[0030] The sample division process decides whether to divide the detection results into positive samples, negative samples, or discard samples by comparing the overlap (IoU) between the target prediction box and the target real box.

[0031] According to the distribution of positive and negative sample data after division, the model structure is appropriately adjusted, such as increasing or decreasing the network layer, changing the depth or width of the feature extractor, etc., to improve the detection ability of the model.

[0032] Step S3222: Update the loss function based on the detection result. The specific loss function includes a classification loss function and a bounding box regression loss function. Classification loss function L cls It is a common multi-classification cross entropy loss function in the current target detection field. The specific expression is as follows:

[0033]

[0034] Among them, y i represents the true category vector, the element value corresponding to the true category is 1, and the element values ​​of other categories are 0; p iis the probability of predicting the corresponding category; C represents the number of samples.

[0035] The bounding box regression loss function is the CIoU loss function. The specific bounding box regression loss is as follows:

[0036] L bbox =L CIoU =1-CIoU

[0037]

[0038] Among them, b represents the distance from the center of the target real box to the center of the predicted box; c represents the diagonal length of the minimum enclosing rectangle of the target real box and the predicted box; α is a constant value, which is set to ν ensures that the loss function can effectively consider the aspect ratio of the target.

[0039] L CIoU represents the CIoU loss.

[0040] w represents the width of the predicted bounding box.

[0041] h represents the height of the predicted bounding box.

[0042] w gt Indicates the width of the true bounding box (ground truth width).

[0043] h gt Indicates the height of the true bounding box (ground truth height).

[0044] The overall loss function is as follows:

[0045] L=λ1L cls +λ2L bbox

[0046] Among them, λ1 and λ2 are constants, uniformly set to 0.5 to balance the contribution of the two losses. Lbbox usually represents the bounding box regression loss. This loss function is used to measure the difference between the predicted bounding box and the true bounding box.

[0047] The loss function uses the following data from the detection results:

[0048] (1) The true category vector y in the classification loss function i and the predicted class probability p i :

[0049] (2) The distance from the center of the target true box to the center of the predicted box, the diagonal length of the minimum enclosing rectangle of the target true box and the predicted box, and the constant parameters in the bounding box regression loss function.

[0050] This can help us better understand and learn the complex relationships in the target detection task, and at the same time improve the model by adjusting the weights or structure of the loss function to better balance the contributions of classification and bounding box regression.

[0051] By reasonably dividing the samples and designing a suitable loss function, the model can better learn and understand the complex relationships in the target detection task, thereby improving the effectiveness of the model in practical applications.

[0052] Step S33, sending the training operation results and detection results to the cloud server.

[0053] Specifically, the trained sample division and loss function are returned to the cloud server for the cloud server to update the algorithm package.

[0054] Step S4, the cloud server identifies dangerous results based on the detection results, issues dangerous information for alarm, and upgrades the algorithm package based on the operation results.

[0055] Intelligently analyze the type of violation, time of occurrence, photos of the violation, etc., and report the results to the alarm platform. Specifically include:

[0056] Step S41, analyze the detection results, identify dangerous results, and extract dangerous information. In this embodiment, the cloud server includes an intelligent video AI analysis module, which can add AI alarm rules according to user needs, such as smoke and flame recognition, dangerous behavior warning, personnel management, motor vehicle management, etc., and compare the detection results with the user's pre-made dangerous information; then identify the type of dangerous results, occurrence time, violation photos and other dangerous information according to the alarm rules.

[0057] Specifically, suppose the user sets a rule for flame recognition. When the object detection module detects flames in the video, the system will identify the detection result as a flame hazard behavior and extract relevant hazard information, such as the time of fire occurrence, fire location, and fire photos.

[0058] Step S42, when a dangerous result is detected, send dangerous information for alarm. In this embodiment, the cloud server includes an alarm event reporting module, which is used to send dangerous information for alarm to the platform end to inform the platform when a predetermined dangerous result is detected.

[0059] According to another aspect of the present invention, see Figure 3, and also proposed an edge-cloud collaborative AI video analysis system for chemical production scenarios, including: a chemical park on-site data acquisition module, used to obtain various video data in chemical scenarios; a cloud server, used to store algorithm packages of different application types and their historical versions, and after receiving a request, send down the image processing algorithm of the corresponding data set in its algorithm package, which is used to identify dangerous results based on the detection results, and issue an alarm message, and upgrade the algorithm package according to the operation results; an edge device, which establishes a data set based on the video data and sends it to the cloud server, receives the image processing algorithm sent by the cloud server, is used to run the image processing algorithm, uses the images of the data set in combination with the image processing algorithm to build and train a deep learning model, and returns the operation results, including the trained sample division and loss function, to the cloud server, as well as the detection results, including dangerous information, such as the time of fire occurrence, fire location, and fire photos, to the cloud server.

[0060] In one embodiment of the present invention, the cloud server includes: an intelligent video AI analysis module, which is used to analyze the detection results to identify dangerous results and extract dangerous information; an alarm event reporting module, which sends dangerous information for alarm when dangerous results are detected.

[0061] In one embodiment of the present invention, the edge device includes: a labeling module, which is used to manually label the data set using a data labeling tool to create label information that needs to be labeled; and an edge algorithm training module, which improves the model based on the label information and the data set.

[0062] The above can be managed through the management platform. The management platform system includes cloud servers and management platforms that can be deployed in a distributed manner. The cloud servers include alarm management servers, AI training servers, streaming media servers, etc. Specifically, they include:

[0063] Users can remotely manage clusters through web pages, process warning information of multiple devices at the same time, remotely configure and browse device data, and each device can work independently, so that quick installation can be achieved once and for all. Remote cluster operation and maintenance can also be performed, and AI alarm rules can be added according to user needs, such as smoke and flame recognition, dangerous behavior warning, personnel management, motor vehicle management, etc.

[0064] The management platform includes device management, user management, and algorithm management, which are used to analyze the operating data uploaded by the edge computing device, determine whether its image processing results meet the expected goals, and display the operating status of online devices on the dashboard.

[0065] In one embodiment of the present invention, Figure 3As shown, the cloud server includes video and image related servers that can be distributed and deployed, such as AI training servers, alarm management server streaming media, where the streaming media is divided into streaming media servers and video forwarding servers. In addition, the cloud server also includes a management platform, which specifically includes algorithm management services, device management, user management, Web services, etc.

[0066] In one embodiment of the present invention, an external user calling module connected to the cloud server may also be included, which is remotely connected to the cloud server via the web.

[0067] An embodiment of the present invention provides an edge-cloud collaborative AI video analysis method for chemical production scenarios, which combines edge computing and cloud computing technologies. Through AI video analysis technology, it supports real-time monitoring of personnel behavior, environmental risks, production equipment, and special operations in chemical companies and parks, and can issue alarms in a timely manner to ensure safe production.

[0068] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, and it should be clear that the present invention is not limited to the scope of the specific embodiments, for those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.

Claims

1. A method for edge-cloud collaborative AI video analysis in chemical production scenarios, characterized in that: The steps include: Step S1, acquiring data through real-time monitoring video of the factory or park, establishing a data set on the edge device and sending it to the cloud server; Step S2: After receiving the request, the cloud server sends the image processing algorithm of the corresponding data set in its algorithm package to the edge computing device in the corresponding edge device; Step S3, the edge computing device tests the image processing algorithm, uses the image in the data set combined with the image processing algorithm to extract the detection results, builds and trains the deep learning model, and sends the operation results and detection results to the cloud server; Step S4, the cloud server identifies dangerous results based on the detection results, issues dangerous information for alarm, and upgrades the algorithm package based on the operation results.

2. According to claim 1, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S1 specifically includes: The data is obtained through real-time monitoring video of the factory or park using a network camera, with a video acquisition resolution of 1080P, which is transmitted to the edge detection device via the RTSP protocol; Building data sets at edge detection devices; The edge detection device sends the data set to the cloud server.

3. According to claim 1, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S2 specifically includes: In step S21, the cloud server optimizes the model according to the computing and storage capabilities of the application nodes that need to deploy the deep learning model, generates a pipeline, and transmits the image processing algorithm to the edge computing device.

4. According to claim 1, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S3 comprises: Step S31, manually annotating the data set by using a data annotation tool to create label information that needs to be annotated; Step S32, running the image processing algorithm, extracting the detection results based on the label information and the data set and improving the model; Step S33, sending the training operation results and detection results to the cloud server.

5. According to claim 4, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S32 of improving the model based on the label information and the data set includes: Step S321, extracting the test results; Step S322, using the detection results to train the model.

6. According to claim 5, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S321 includes: Run the image processing algorithm, map the image of the input dataset into a feature map with a spatial scale of one-fourth of the original image and 96 channels through a 4×4 convolution layer, and then perform feature extraction through four network stages in sequence. Each stage consists of three encoding layers. At the same time, a downsampling module consisting of a 2×2 maximum pooling layer and a 1×1 convolution layer is inserted into the network to reduce and expand the spatial scale and number of channels of the feature map by 2 times, respectively. Finally, Faster R-CNN is used to obtain the final detection result.

7. According to claim 5, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: The step S322, training the model using the detection results, includes: Step S3221, dividing positive and negative samples according to the overlap between the target prediction box and the target real box; Set two overlap thresholds thre pos and thre nrg , when the sample overlap is greater than thre pos When the sample overlap is less than thre nrg When the sample overlap is between thre pos and thre nrg When in between, discard it; Step S3222: Update the overall loss function L and the classification loss function L based on the detection results. cls : Among them, y i Represents the true category vector. The element value corresponding to the true category is 1, and the element values ​​of other categories are 0. i To predict the probability of the corresponding category, C represents the number of samples; Bounding box regression loss function L bbox : L bbox =L CIoU =1-CIoU Among them, b represents the distance from the center of the target real box to the center of the predicted box; c represents the diagonal length of the minimum enclosing rectangle of the target real box and the predicted box; α is a constant value, which is set to ν ensures that the loss function can effectively consider the width and height ratio of the target; L CIoU represents the CIoU loss, w represents the width of the predicted bounding box, h represents the height of the predicted bounding box, and w gt represents the width of the true bounding box, h gt Represents the height of the true bounding box, and the overall loss function L is as follows: L=λ1L cls +λ2L bbox Among them, λ1 and λ2 are constants, uniformly set to 0.5 to balance the contribution of the two losses.

8. According to claim 1, the edge-cloud collaborative AI video analysis method for chemical production scenarios is characterized in that: In step S4, the cloud server identifies dangerous results according to the detection results and issues an alarm message, including: Step S41, analyzing the detection results, identifying dangerous results, and extracting dangerous information; Step S42: When a dangerous result is detected, send a dangerous message to alarm.

9. An edge-cloud collaborative AI video analysis system for chemical production scenarios, characterized in that: include: The chemical park on-site data acquisition module is used to obtain various video data in chemical scenes; The cloud server is used to store algorithm packages of different application types and their historical versions. After receiving a request, it sends the image processing algorithm of the corresponding data set in its algorithm package to identify dangerous results based on the detection results, issue alarm information, and upgrade the algorithm package based on the operation results; The edge device creates a data set based on the video data and sends it to the cloud server, receives the image processing algorithm sent by the cloud server, runs the image processing algorithm, uses the images in the data set combined with the image processing algorithm to extract the detection results, builds and trains the deep learning model, and sends the operation results and detection results to the cloud server.

10. The edge-cloud collaborative AI video analysis system for chemical production scenarios according to claim 9 is characterized in that: include: The cloud server includes: an intelligent video AI analysis module for analyzing the detection results, identifying dangerous results, and extracting dangerous information; an alarm event reporting module for sending dangerous information for alarm when dangerous results are detected; The edge device includes: a labeling module, which is used to manually label the data set by using a data labeling tool to create label information that needs to be labeled; and an edge algorithm training module, which improves the model based on the label information and the data set.

Citation Information

Patent Citations

  • Chemical plant safety monitoring system based on cloud edge collaboration

    CN115208887A

  • Deep learning algorithm iteration method based on cloud edge collaboration

    CN116578323A

Cited By

  • Image equipment data management method and system based on cloud edge collaboration

    CN119048333A

  • Permeation prevention method based on neural network edge calculation

    CN119276636A

  • Road surface state detection method based on video image and weather data

    CN119338795A

  • Intelligent supervision method and system, edge end and storage medium

    CN119649143A