All-weather well site fire early warning method based on image processing

By deploying high-definition wireless cameras and image processors in the well site and building a network base station to connect with the smart cloud, intelligent identification and early warning of well site fires is realized, solving the problem of untimely monitoring of traditional systems in extreme environments and improving well site safety.

CN119649539AInactive Publication Date: 2025-03-18YANGTZE UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411876484.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional well site fire warning systems are difficult to achieve real-time monitoring and rapid feedback all-weather and all-time periods in extremely bad weather and night environments, and there is a risk of untimely warnings and human negligence leading to major fires.

Method used

By deploying high-definition wireless cameras at multiple angles and locations in the well site, connecting to the image processor, building a network base station and connecting to the smart cloud, image processing technology is used to preprocess, feature extraction and feature recognition of the collected images, establishing a large fire sample database, and realizing intelligent identification and early warning of fires.

Benefits of technology

It realizes all-weather and full-time fire monitoring and early warning, which can ensure real-time monitoring and detection accuracy in extremely bad weather and night environments, reducing the fire risk caused by human negligence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119649539A_ABST
    Figure CN119649539A_ABST
Patent Text Reader

Abstract

The invention discloses an all-weather well site fire early warning method based on image processing, and belongs to the technical field of well site fire protection, and the method comprises the following steps: S1, building an all-weather well site fire early warning system; s2, collecting images of a fire in a well site, performing preprocessing and image labeling, and establishing a fire large sample database; s3, performing preprocessing, feature extraction and feature recognition on the acquired image to obtain a sample image; and S4, comparing the sample image obtained in the step S3 with the fire big sample database, judging whether a fire occurs, and sending fire information to the smart cloud platform through the network base station for processing. According to the invention, images are monitored and identified in real time through the image processor, so that all-weather and all-time monitoring is realized; image data under different conditions are collected and trained, so that real-time monitoring and accuracy are ensured; a fire identification model with a deep learning function is adopted, the accuracy of the model is continuously improved, and a new technical thought is provided for safe operation of a well site.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of well site fire protection, and in particular to an all-weather well site fire early warning method based on image processing. Background Art

[0002] During the development of oil and gas fields, firefighting at well sites has strict safety standards and measures, which is the key to ensuring the normal development of oil and gas fields. Most well sites are in an open environment, and smoke alarms are difficult to function. Therefore, traditional well site fire warnings mainly rely on patrol inspections by inspectors and security personnel to remotely view surveillance videos to determine whether a fire has occurred. Especially in extremely bad weather and at night, it is impossible to achieve all-weather, all-time real-time monitoring and rapid feedback. There are problems such as untimely warnings, wasted manpower, and easy occurrence of major fires due to human negligence.

[0003] In the prior art, an invention patent with publication number CN104219497A and titled "A Remote Wireless Monitoring System for Oilfield Fire Alarm and Its Application" discloses a remote wireless monitoring system for oilfield fire alarm, including a wireless communication module and a remote monitoring terminal. The central controller is connected to the remote monitoring terminal via the wireless communication module. The wireless communication module is a wifi module, and a wireless bridge point-to-multipoint networking method is adopted. In this system, the probability of fire is judged based on the smoke concentration, CO concentration and temperature detected by the sensor, which is used for alarm and fire scene information transmission after the fire occurs; however, this scheme mainly detects information such as smoke, which belongs to the alarm and fire scene information transmission after the fire occurs, and does not involve early warning of fire and intelligent identification of fire.

[0004] To solve the above problems, an all-weather wellsite fire warning method based on image processing is proposed to realize an oilfield fire warning system with all-weather early warning and intelligent identification. Summary of the invention

[0005] The purpose of the present invention is to provide an all-weather wellsite fire early warning method based on image processing to solve the problems in the background technology.

[0006] To achieve the above object, the present invention provides an all-weather wellsite fire warning method based on image processing, comprising the following steps:

[0007] S1. Deploy high-definition wireless cameras at multiple angles and locations at the well site, connect them to the image processor, build a network base station and connect it to the smart cloud. The smart cloud is connected to the mobile terminal and PC terminal respectively to complete the construction of the all-weather well site fire warning system;

[0008] S2, collecting image data of fires occurring in well sites, performing preprocessing and image annotation, and establishing a large fire sample database in the image processor;

[0009] S3, using an image processor to preprocess, extract features and recognize features on the image collected by the camera to obtain a sample image;

[0010] S4: Compare the sample image obtained in S3 with the large fire sample database to determine whether a fire has occurred, and send the fire information to the smart cloud platform through the network base station for processing.

[0011] Preferably, the image data collected in S2 is image data covering different site conditions, weather conditions, and construction stages, and the image data includes images in a smoke state and a flame state.

[0012] Preferably, in S2, the preprocessing process is to adjust the image size, enhance the image quality, remove irrelevant background and reduce noise; the image annotation process is to use an automated auxiliary annotation tool to annotate the smoke and flame objects in the image, and the annotation includes drawing a bounding box and classifying the object.

[0013] Preferably, in S3, the preprocessing includes using a limited contrast adaptive histogram equalization algorithm to perform illumination correction and using a Gaussian filter template to perform smoothing.

[0014] Preferably, the process of acquiring the Gaussian filter template is specifically as follows:

[0015] 1) For the (2r+1)×(2r+1) region, take the center point as the coordinate origin, define the standard deviation σ, and define a two-dimensional Gaussian function; where r is the radius of the Gaussian filter;

[0016] The two-dimensional Gaussian function is defined as:

[0017]

[0018] In the formula, X is the spatial horizontal coordinate, and y is the spatial vertical coordinate;

[0019] 2) Discretize the two-dimensional Gaussian function. The discretized two-dimensional Gaussian function is:

[0020]

[0021] Where u is the discrete integer of the horizontal axis, and v is the discrete integer of the vertical axis;

[0022] 3) Construct a Gaussian template. The matrix of the Gaussian template G is:

[0023]

[0024] 4) Normalization processing: Divide each element in the Gaussian template matrix G by the sum of all elements to obtain a normalized Gaussian template matrix;

[0025] The sum of all elements i is the row index, j is the column index;

[0026] The normalized Gaussian template matrix is:

[0027]

[0028] 5) Matrix transformation and convolution operation: Convolution operation is performed on the Gaussian template matrix G and the image matrix. The convolution operation is expressed as:

[0029]

[0030] Where I′(i,j) is the element in the i-th row and j-th column of the filtered image I′ matrix, I(i+u,j+v) is the element in the i+u-th row and j+v-th column of the image matrix I, and G(u,v) is the element in the u-th row and v-th column of the Gaussian template matrix G.

[0031] Preferably, in S3, the specific process of feature extraction is: for the smoothed image, using the Laplace algorithm to extract edge information, clarify the edge contour, and superimpose the edge extraction result with the original image before extraction.

[0032] Preferably, the calculation formula for edge extraction is:

[0033] Δ 2 =[f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)]-4f(x,y);

[0034] In the formula, Δ 2 is the Laplace operator, f(·) represents the gray value of the pixel;

[0035] The calculation formula of the superposition is:

[0036] g(x,y)=5f(x,y)-[f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)].

[0037] Preferably, in S3, the feature recognition process is: determining the pixel value threshold based on the histogram, binarizing the image, and performing feature recognition training on the smoke and flame in the obtained black and white result image through deep learning; this process uses a deep learning model to identify and extract smoke features or flame features in the input image data, and uses the smoke features or flame features to perform classification, detection or other tasks. The goal of feature recognition training is to build a model that can automatically learn from data and identify features that help complete specific tasks.

[0038] Preferably, during the comparison process of S4, it is determined whether the sample image contains flame features. If it contains flame features, it is determined that a fire has occurred. If it does not contain flame features, it is determined again whether it contains smoke features. If it contains smoke features, it is determined that a fire has occurred. If it does not contain smoke features, it is determined that no fire has occurred.

[0039] Preferably, in said S4, when a fire occurs, the image processor stores the corresponding sample image information into the large fire sample database;

[0040] The smart cloud platform transmits fire information in a split manner, with one part transmitted to the fire station and the other part transmitted to the PC in the well site security room and the mobile terminal for on-site safety supervision.

[0041] Therefore, the present invention provides an all-weather wellsite fire early warning method based on image processing, which has the following beneficial effects:

[0042] (1) The image processor monitors and identifies images transmitted by high-definition wireless cameras in real time. Once smoke or flame features are detected, the fire situation is immediately transmitted through the network base station, enabling all-weather and all-time monitoring.

[0043] (2) By collecting image data under different site conditions, weather conditions, and construction stages and conducting training, real-time monitoring and detection accuracy can be guaranteed even in extremely bad weather and nighttime environments.

[0044] (3) A fire recognition model with deep learning capabilities is used to continuously learn images of fires occurring under various conditions, continuously improving the accuracy of the model in identifying fire signals, and providing new technical ideas for ensuring safe operations at the well site.

[0045] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention;

[0047] Figure 2 Schematic diagram of system fire information transmission according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.

[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, 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, not all of the embodiments.

[0050] Example

[0051] like Figure 1-Figure 2 As shown, the present invention provides an all-weather wellsite fire warning method based on image processing, comprising the following steps:

[0052] S1. Deploy high-definition wireless cameras at multiple angles and locations at the well site, connect them to the image processor, build a network base station and connect it to the smart cloud. The smart cloud is connected to the mobile terminal and PC terminal respectively to complete the construction of the all-weather well site fire warning system.

[0053] S2. Collect no less than 3,000 images of fires at well sites and perform preprocessing and image annotation. Establish a large fire sample database in the image processor and update, maintain and expand the data therein. Specifically:

[0054] 1) The collected image data covers different site conditions, weather conditions, and construction stages. The image data includes images in smoke state (the early stage of fire) and flame state (fires with unclear smoke signs caused by heat source radiation, electrical failure, and chemical reactions in gathering and transportation pipelines that are difficult to capture with high-definition cameras);

[0055] 2) The preprocessing process is to adjust the image size, enhance the image quality, remove irrelevant background and reduce noise; the image annotation process is to use automated auxiliary annotation tools to annotate the smoke and flame objects in the image, and the annotation includes drawing bounding boxes and classifying objects.

[0056] S3, using an image processor to preprocess, extract features and recognize features on the image collected by the camera to obtain a sample image, specifically:

[0057] 1) Preprocessing includes illumination correction using a contrast-limited adaptive histogram equalization algorithm and smoothing using a Gaussian filter template;

[0058] ① Among them, the principle of illumination correction is:

[0059] Lighting can cause dark shadows, obscuring local textures and structures of the image, making it impossible to accurately identify smoke and flames in the image. Therefore, the contrast-limited adaptive histogram equalization (CLAHE) algorithm is used to process the image for lighting. The principle is as follows: In CLAHE, the contrast amplification near a given pixel value is given by the slope of the transformation function, which is proportional to the slope of the neighborhood cumulative distribution function (CDF) and also proportional to the value of the histogram at the pixel value; CLAHE limits the amplification by clipping the histogram to a predetermined value before calculating the CDF, thereby limiting the slope of the CDF and thus limiting the slope of the transformation function, thus achieving lighting correction;

[0060] ②The principle of smoothing is:

[0061] For each pixel point, the average value of the pixel grayscale within the area (2r+1)×(2r+1) with the pixel point as the center point is taken as the pixel grayscale value of the point. In this embodiment, the Gaussian filter radius r is 1, and the area size is 3×3. At the same time, in order to reflect that the closer the pixel point is to the center point, the closer the center point is, the weighted average method (the closer the center point is, the greater the weight) is used to calculate the average value; when calculating each pixel, the center point can be regarded as the origin of the coordinates, so that the mean μ=0, simplifying the Gaussian calculation formula;

[0062] Simplified one-dimensional Gaussian distribution:

[0063]

[0064] Simplified two-dimensional Gaussian distribution:

[0065]

[0066] The two-dimensional Gaussian distribution can be linearly decomposed into the product mode of the one-dimensional Gaussian distribution in the x direction and the one-dimensional Gaussian distribution in the y direction, that is, first do a one-dimensional Gaussian blur in the x direction (y direction) of the image, and then do a one-dimensional Gaussian blur in the y direction (x direction) after obtaining the result. For points on the boundary, it is impossible to form a 3×3 square grid, so fill it with 0;

[0067] ③ The specific process of obtaining the Gaussian filter template is as follows:

[0068] Ⅰ. For the 3×3 area, take the center point as the coordinate origin, define the standard deviation σ, and define the two-dimensional Gaussian function;

[0069] The two-dimensional Gaussian function is defined as:

[0070]

[0071] In the formula, x is the spatial horizontal coordinate, y is the spatial vertical coordinate, and σ is used to control the width of the Gaussian distribution;

[0072] Taking the eight nearest coordinate points, the initial matrix with the blur radius of 1 is:

[0073]

[0074] Ⅱ. Discretized two-dimensional Gaussian function: Discretize the continuous two-dimensional Gaussian function to meet the needs of digital image processing. The discretized two-dimensional Gaussian function is:

[0075]

[0076] Where u is a discrete integer on the horizontal axis, v is a discrete integer on the vertical axis, and u and v represent the position of the pixel in the image;

[0077] III. Construct a Gaussian template. The matrix of the Gaussian template G is:

[0078]

[0079] IV. Normalization processing: Divide each element in the Gaussian template matrix G by the sum of all elements to obtain the normalized Gaussian template matrix;

[0080] The sum of all elements is i is the row index, j is the column index;

[0081] The normalized Gaussian template matrix is:

[0082]

[0083] V. Matrix transformation and convolution operation: In order to apply Gaussian filtering, it is necessary to convolve the Gaussian template matrix G with the image matrix. The convolution operation can be expressed in the form of matrix multiplication.

[0084] Define the image matrix as I, then the convolution operation is expressed as:

[0085] I′=I*G;

[0086] Where I′ is the filtered image matrix, and * represents the convolution operation; then:

[0087]

[0088] Where I′(i,j) is the element in the i-th row and j-th column of the filtered image I′ matrix, I(i+u,j+v) is the element in the i+u-th row and j+v-th column of the image matrix I, and G(u,v) is the element in the u-th row and v-th column of the Gaussian template matrix G.

[0089] 2) The specific process of feature extraction is: for the smoothed image, the Laplace algorithm is used to extract edge information, clarify the edge contour, and superimpose the edge extraction result with the original image before extraction.

[0090] ① Edge extraction: The image will be blurred after smoothing. It is necessary to extract and enhance the edges of the objects in the image for subsequent feature classification and recognition. The pixel values ​​at the edge of the image change greatly. The Laplace algorithm is used to clarify the edge contour of the image and emphasize the speed of pixel changes at the edge of the image. The fast changes are highlighted and the slow changes are weakened, forming an image that superimposes the light gray edge lines and mutation points on the dark background.

[0091] The calculation process of edge extraction is:

[0092]

[0093] In the formula, Δ 2 is the Laplace operator, f is a scalar function;

[0094] Among them, in the x direction:

[0095]

[0096] In the formula, f(·) represents the function value of function f at point (·);

[0097] In the y direction:

[0098]

[0099] The addition of the two components is the edge extraction calculation formula used:

[0100] Δ 2 =[f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)]-4f(x,y);

[0101] ② The essence of the Laplace algorithm is to extract edge information. The resulting image is an overall darker image with white or gray edges. If you want to enhance the edge while retaining the original image information, you need to superimpose the edge extraction result with the original image before extraction.

[0102] The calculation process of superposition is:

[0103]

[0104] Where g(x) is a piecewise function;

[0105]

[0106] The superposition calculation formula used is:

[0107] g(x,y)=5f(x,y)-[f(x+1,y)+f(x-1,y)+f(x,y+1)+f(x,y-1)];

[0108] 3) The feature recognition process is as follows: the pixel value threshold is determined based on the histogram, and the image is binarized. The resulting image has only two pixel values, 0 or 255 (black or white). Feature recognition training is performed on the smoke and flame in the resulting black and white image to improve the accuracy of the fire detection system.

[0109] Among them, feature recognition training refers to the process of using deep learning models to identify and extract key features in input data (such as images, audio or text), and using these features to perform classification, detection or other tasks; the goal of feature recognition training is to build a model that can automatically learn from data and identify features that help complete specific tasks.

[0110] S4, compare the sample image obtained in S3 with the large fire sample database to determine whether a fire has occurred, and send the fire information to the smart cloud platform through the network base station for processing, specifically:

[0111] 1) During the comparison process, it is determined whether the sample contains flame features. If it contains flame features, it is determined that a fire has occurred. If it does not contain flame features, it is determined whether it contains smoke features. If it contains smoke features, it is defined as a fire has occurred.

[0112] 2) When a fire occurs, the image processor stores the corresponding sample image information into the large fire sample database;

[0113] The smart cloud platform transmits fire information in a diverted manner, with one part transmitted to the fire station and the other part transmitted to the PC in the well site security room and the mobile terminal of on-site safety supervision, so as to quickly handle the fire.

[0114] Therefore, the present invention provides an all-weather well site fire early warning method based on image processing, which uses an image processor to monitor and identify images transmitted by a high-definition wireless camera in real time. Once smoke or flame features are found, the fire situation is immediately transmitted through a network base station, which can achieve all-weather and all-time monitoring;

[0115] By collecting and training image data under different site conditions, weather conditions, and construction stages, real-time monitoring and detection accuracy can be guaranteed even in extremely bad weather and nighttime environments;

[0116] The fire recognition model with deep learning function can continuously learn images of fires under various conditions and continuously improve the accuracy of the model in identifying fire signals, providing a new technical idea for ensuring safe operations at the well site.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.

Claims

1. An all-weather wellsite fire warning method based on image processing, characterized in that: The following steps are involved: S1. Deploy high-definition wireless cameras at multiple angles and locations in the well site, connect them to the image processor, build a network base station and connect it to the smart cloud. The smart cloud is connected to the mobile terminal and PC terminal respectively to complete the construction of the all-weather well site fire warning system; S2, collecting image data of fires occurring in well sites, performing preprocessing and image annotation, and establishing a large fire sample database in the image processor; S3, using an image processor to preprocess, extract features and recognize features on the image collected by the camera to obtain a sample image; S4: Compare the sample image obtained in S3 with the large fire sample database to determine whether a fire has occurred, and send the fire information to the smart cloud platform through the network base station for processing.

2. The all-weather wellsite fire warning method based on image processing according to claim 1 is characterized by: The image data collected in S2 is image data covering different site conditions, weather conditions, and construction stages, and the image data includes images in a smoke state and a flame state.

3. The all-weather wellsite fire warning method based on image processing according to claim 1 is characterized by: In S2, the preprocessing includes adjusting the image size, enhancing the image quality, removing irrelevant background and reducing noise; The image annotation process uses automated auxiliary annotation tools to annotate the smoke and flame objects in the image. Annotation includes drawing bounding boxes and classifying objects.

4. The all-weather wellsite fire warning method based on image processing according to claim 1 is characterized in that: In S3, the preprocessing includes using a limited contrast adaptive histogram equalization algorithm to perform illumination correction and using a Gaussian filter template to perform smoothing.

5. The all-weather wellsite fire warning method based on image processing according to claim 4 is characterized in that: In S3, the specific process of feature extraction is: for the smoothed image, the Laplace algorithm is used to extract edge information, the edge contour is clarified, and the edge extraction result is superimposed on the original image before extraction.

6. The all-weather wellsite fire warning method based on image processing according to claim 5 is characterized in that: In S3, the feature recognition process is: determining the pixel value threshold according to the histogram, binarizing the image, and performing feature recognition training on the smoke and flame in the obtained black and white result image through deep learning.

7. The all-weather wellsite fire warning method based on image processing according to claim 1 is characterized by: During the comparison process of S4, it is determined whether the sample image contains flame features. If it contains flame features, it is determined that a fire has occurred. If it does not contain flame features, it is determined whether it contains smoke features. If it contains smoke features, it is determined that a fire has occurred. If it does not contain smoke features, it is determined that no fire has occurred.

8. The all-weather wellsite fire warning method based on image processing according to claim 7 is characterized by: In S4, when a fire occurs, the image processor stores the corresponding sample image information in the large fire sample database; The smart cloud platform transmits fire information in a split manner, with one part transmitted to the fire station and the other part transmitted to the PC in the well site security room and the mobile terminal for on-site safety supervision.

Citation Information

Patent Citations

  • Oil field fire alarming remote wireless monitoring system and application thereof

    CN104219497A

  • Intelligent identification method, device and equipment for indoor smoke and fire in logistics park and storage medium

    CN116229366A

  • MRI image segmentation method based on deep learning

    CN118196116A

  • Three-light image type fire detector based on AI

    CN119091573A