A wildfire disaster investigation and identification method based on AI algorithm

Through the mountain fire disaster survey and identification method based on AI algorithms, YOLOv5 and Snakes models are used to identify fire occurrence areas, which solves the problem of traditional fire prevention and monitoring being untimely and improves the accuracy of fire identification and the efficiency of rescue and disaster relief.

CN113569956BActive Publication Date: 2024-09-06ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110863082.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-09-06
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Traditional fire prevention relies on manual inspections and has the problem of untimely monitoring, which makes it difficult to quickly identify the fire area when a natural disaster occurs, affecting the efficiency of rescue and disaster relief work.

Method used

The mountain fire disaster exploration and identification method based on AI algorithm is used to identify the fire area by constructing a fire data set, training the YOLOv5 network model, and using the Snakes model to perform detailed identification of the fire target segmentation network.

Benefits of technology

It has improved the accuracy and efficiency of fire identification, provided strong data support for rescue and disaster relief work, and can quickly determine the specific geographical location and terrain where the fire occurred, improving the accuracy and efficiency of rescue and disaster relief.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113569956B
    Figure CN113569956B
Patent Text Reader

Abstract

The present invention discloses a method for detecting and identifying mountain fire disasters based on an AI algorithm, and relates to the technical field of fire identification. A fire data set is constructed, and data in the fire data set is preprocessed to obtain a training fire data set, a verification fire data set, and a test fire data set; a YOLOv5 network model is constructed, and the training fire data set is used to train the YOLOv5 network model, and then the training is performed through the verification fire data set; the test fire data set is identified through the trained YOLOv5 network model, and the fire target is identified in the test picture; the picture of the fire target is segmented, and the network is used to identify the contour area of ​​the fire in the image in detail, so as to obtain a specific fire occurrence area. The two identifications make the identified fire contour more accurate, and also provide strong data support for emergency rescue workers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of fire identification, and in particular relates to a wildfire disaster investigation and identification method based on an AI algorithm. Background Art

[0002] In recent years, with the rapid development of China's power industry, the scale of power grid construction has also expanded rapidly. Transmission lines are an important medium for power transmission. The frequent occurrence of natural disasters has seriously affected the safety and stability of the power grid system, and has brought huge impacts on local economic development and social production. In particular, Guangxi, as a coastal province, has a forest coverage rate of 52.71%, complex and diverse topography, and large environmental changes; therefore, the domestic transmission lines are directly affected by natural disasters such as wildfires, typhoons, ice disasters, geological disasters and floods in different regions and seasons. With the frequent occurrence of natural disasters, the early warning and response of the power grid system to extreme external disasters is particularly important; therefore, the analysis, evaluation and rapid response of power grid disasters are currently urgent issues to be solved.

[0003] Natural disasters such as wildfires, typhoons, ice disasters, geological disasters, and floods pose a great threat to the normal operation of transmission lines. When natural disasters occur, road traffic is prone to varying degrees of blockage, which objectively increases the difficulty of power grid disaster surveys.

[0004] However, it is quite difficult to carry out the traditional fire prevention inspection work that relies mainly on manpower efficiently during the period of frequent natural disasters. Once a disaster occurs, emergency rescue work needs to race against time to reduce national property losses at the fastest speed and highest efficiency. To this end, it is particularly important to grasp the on-site data in a timely manner for rapid processing, draw practical and useful conclusions, and finally respond quickly to possible power grid disasters, or monitor and survey the power grid disasters that have already occurred. Therefore, a wildfire disaster investigation and identification method based on AI algorithm is needed to effectively identify the area where the fire occurs, provide an accurate location for emergency rescue work, and facilitate the implementation of emergency rescue work. Summary of the invention

[0005] The purpose of the present invention is to provide a wildfire disaster investigation and identification method based on AI algorithm, thereby solving the shortcoming of insufficient monitoring when traditional fire prevention relies mainly on manpower inspection.

[0006] To achieve the above object, the present invention provides a wildfire disaster investigation and identification method based on AI algorithm, comprising the following steps:

[0007] Constructing a fire data set, and preprocessing the data of the fire data set to obtain a training fire data set, a verification fire data set, and a test fire data set;

[0008] Constructing a YOLOv5 network model, and training the YOLOv5 network model using the training fire data set, and verifying the trained YOLOv5 network model using the verification fire data set;

[0009] The test fire data set is identified by the trained and verified YOLOv5 network model to identify the presence of fire targets in the test image;

[0010] The image of the fire target is segmented by a network to identify the contour area of ​​the fire in the image in detail, thereby obtaining the specific fire occurrence area.

[0011] Furthermore, the fire dataset adopts the Pascal VOC dataset.

[0012] Furthermore, preprocessing the data in the fire data set includes the following steps:

[0013] Create folders according to the format of the Pascal VOC dataset: Annotations, ImageSets / Main, and JPEGImages;

[0014] Obtaining an original fire picture, and storing the original fire picture in JPEGImages;

[0015] The fire images are formatted in a unified manner according to the image formats supported by the adopted standard tools, and the sizes of the fire images are within the set range, as well as the coordinates of the normalized images;

[0016] Annotate the formatted fire pictures and store the annotated XML data in Annotations;

[0017] The annotated fire images are randomly divided into a training fire data set, a verification fire data set and a test fire data set according to a certain ratio, and the training fire data set, the verification fire data set and the test fire data set are stored in Annotations.

[0018] Furthermore, when the fire data is a surveillance video, the original fire picture is obtained by acquiring frames from the surveillance video file.

[0019] Furthermore, an active contour model is used to segment the image of the fire target to identify the contour area of ​​the fire line in the image in detail.

[0020] Furthermore, the active contour model adopts a Snakes model.

[0021] Furthermore, the Snakes model is composed of a set of control points: v(s) = [x(s), y(s)]s∈[0,1], wherein the control points are connected end to end with a straight line to form a contour line, wherein x(s) and y(s) represent the coordinate position of each control point in the image, respectively, and s is an independent variable describing the boundary in the form of Fourier transform;

[0022] Define the energy function at the control points of the Snakes model:

[0023]

[0024] In formula (1), E total is the energy, s is the independent variable describing the boundary in the form of Fourier transform; is the elastic energy, v is the modulus of the first-order derivative; For bending energy; is the external energy; α and β are the parameters set by yourself, which are used to convert the function E total Minimization.

[0025] Furthermore, the active contour model adopts a GVF Snakes model.

[0026] Compared with the existing technology, the present invention has the following beneficial effects:

[0027] 1. The method for detecting and identifying wildfire disasters based on AI algorithm provided by the present invention is to construct a fire data set, and pre-process the data in the fire data set to obtain a training fire data set, a verification fire data set and a test fire data set; construct a YOLOv5 network model, and use the training fire data set to train the YOLOv5 network model, and then use the verification fire data set to train the trained data set; identify the test fire data set through the trained YOLOv5 network model, and identify the fire target in the test picture; segment the picture of the fire target and use the network to identify the contour area of ​​the fire in the image in detail, so as to obtain the specific fire occurrence area. By using the YOLOv5 network model for preliminary identification, and segmenting the picture of the fire target and using the network to identify the contour area of ​​the fire in the image in detail, the two identifications make the identified fire contour more accurate, and at the same time, provide strong data support for emergency rescue workers, and can determine the specific geographical location and the terrain of the specific geographical location according to the fire contour, so as to provide a rescue plan for emergency rescue.

[0028] 2. The present invention constructs a deformable parameter curve and a corresponding energy function through the SNAKE model, takes minimizing the energy objective function as the goal, controls the deformation of the parameter curve, and makes the closed curve have the minimum capacity, wherein the closed curve with the minimum energy is the target contour. The image of the fire target of the Snakes model is segmented by the network to identify the contour area of ​​the fire line in the image in detail, so that the contour area is more accurate, that is, the recognition result is more precise.

[0029] 3. The present invention can also adopt the GVF Snakes model. The GVF Snakes model can be convenient for identifying depressions and has a larger search range, so that the identified contour area is more accurate. The Snakes model or the GVF Snakes model can be selected as needed to perform more accurate contour recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only one embodiment of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 It is a flow chart of a wildfire disaster investigation and identification method based on AI algorithm of the present invention. DETAILED DESCRIPTION

[0032] The following is a clear and complete description of the technical solutions in the present invention 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0033] Figure 1 The present invention shows a method for detecting and identifying wildfire disasters based on an AI algorithm in one embodiment, which includes the following steps:

[0034] S1. Construct a fire data set, and preprocess the data of the fire data set to obtain a training fire data set, a verification fire data set, and a test fire data set;

[0035] S2, constructing a YOLOv5 network model, and using the training fire data set to train the YOLOv5 network model, and verifying the trained YOLOv5 network model using the verification fire data set;

[0036] S3, identifying the test fire data set through the trained and verified YOLOv5 network model to identify the presence of a fire target in the test image; specifically, the fire target is a flame pattern;

[0037] S4. The image of the fire target is segmented by a network to identify the contour area of ​​the fire in the image in detail, thereby obtaining the specific fire occurrence area.

[0038] The above-mentioned method for detecting and identifying wildfire disasters based on AI algorithm constructs a fire data set, and pre-processes the data in the fire data set to obtain a training fire data set, a verification fire data set, and a test fire data set; constructs a YOLOv5 network model, and uses the training fire data set to train the YOLOv5 network model, and then uses the verification fire data set to train the trained data set; the test fire data set is identified by the trained YOLOv5 network model to identify the fire target in the test image; the image of the fire target is segmented by the network to identify the contour area of ​​the fire in the image in detail, so as to obtain the specific fire occurrence area. By using the YOLOv5 network model for preliminary identification, and by segmenting the image of the fire target, the network is segmented to identify the contour area of ​​the fire in the image in detail, the two identifications make the identified fire contour more accurate, and at the same time, provide strong data support for emergency rescue workers, and can determine the specific geographical location, the terrain of the specific geographical location, etc. according to the fire contour, and provide rescue solutions for emergency rescue.

[0039] In one embodiment, in step S1, the fire dataset uses the Pascal VOC dataset.

[0040] Specifically, preprocessing the data in the fire data set includes the following steps:

[0041] S11. Create folders according to the format of the Pascal VOC dataset: Annotations, ImageSets / Main, and JPEGImages;

[0042] S12, obtaining an original fire picture, and storing the original fire picture in JPEGImages;

[0043] S13, unifying the format of the fire pictures according to the image format supported by the adopted standard tool, and the sizes of the fire pictures are all within the set range, and the coordinates of the pictures are normalized;

[0044] S14, annotating the fire image after formatting, and storing the annotated xml data in Annotations; specifically, using the data annotation tool labelImg to annotate the fire area in the fire image;

[0045] S13. Randomly divide the annotated fire images into a training fire data set, a verification fire data set, and a test fire data set according to a certain ratio, and store the training fire data set, the verification fire data set, and the test fire data set in Annotations.

[0046] In one of the embodiments, the preprocessed data set is divided into a training fire data set and a testing fire data set in a ratio of 5:3:1.

[0047] In one of the embodiments, in step S12, when the fire data is a surveillance video, the original fire picture is obtained by acquiring frames from the surveillance video file.

[0048] In one embodiment, the training fire data set, the verification fire data set, and the test fire data set each have at least 2200 images. By using a data set with a large amount of data to train the YOLOv5 network model, the accuracy of the YOLOv5 network model can be improved.

[0049] In one embodiment, the YOLOv5 network model adopts the best yolov5x model parameters.

[0050] In one embodiment, the YOLOv5 network model has Mosaic data enhancement, adaptive anchor box calculation, and adaptive image scaling at the input end; Focus structure and CSP structure at the reference end; SPP and FPN+PAN structure at the neck end; GIOU_Loss loss function at the output end and DIOU_nms for prediction box screening. Of course, other YOLOv5 network model structures can also be used for recognition.

[0051] In one of the embodiments, before step S4, if the result of step S3 in identifying the fire target in the test image is not ideal, multi_scale is turned on, and steps S2-S3 are repeated until the test result is ideal. By turning on multi_scale, the accuracy of the test result can be increased.

[0052] In one embodiment, an active contour model is used to segment the image of the fire target to identify the contour area of ​​the fire line in the image in detail.

[0053] In one embodiment, the active contour model adopts a Snakes model.

[0054] The Snakes model consists of a set of control points: v(s) = [x(s), y(s)]s∈[0,1], where the control points are connected by a straight line to form a contour line, where x(s) and y(s) represent the coordinate position of each control point in the image, and s is an independent variable that describes the boundary in the form of Fourier transform;

[0055] The energy function is defined at the control points of the Snakes model (reflecting the relationship between energy and contour):

[0056]

[0057] In formula (1), E total is the energy, s is the independent variable describing the boundary in the form of Fourier transform; is the elastic energy, v is the modulus of the first-order derivative; For bending energy; is the external energy; α and β are the parameters set by yourself, which are used to convert the function E total Minimization.

[0058] The deformable parameter curve and the corresponding energy function constructed by the Snakes model are used to control the deformation of the parameter curve with the goal of minimizing the energy objective function so that the closed curve has the minimum capacity, among which the closed curve with the minimum energy is the target contour.

[0059] In one embodiment, when the fire pattern is not necessarily an arc shape such as an ellipse, but has a concave shape, the active contour model may also adopt a GVF Snakes model. The GVF Snakes model can be used to conveniently identify the concave shape and has a larger search range, so that the identified contour area is more accurate.

[0060] In one embodiment, the method for detecting and identifying wildfire disasters based on the AI ​​algorithm further includes step S5, monitoring the ground conditions in real time; when the first real-time image obtained by monitoring detects the contour area of ​​the fire through steps S1-S4, an alarm signal is issued to reflect the monitoring personnel to check and confirm the alarm information; at the same time, the location of the fire is obtained according to the first real-time image and the contour area of ​​the fire monitored, and real-time monitoring is performed to obtain a second real-time image in real time, the second real-time image is preprocessed through step S1 to obtain a real-time test set, and the real-time test set is identified through steps S3-S4 to obtain a fire image of the marked contour area;

[0061] One of the embodiments further includes step S6, using an unmanned aerial vehicle flying device with an infrared thermal imaging unit to monitor the location of the fire determined in step S5, acquiring infrared images in real time, binarizing and morphologically processing the infrared images, and determining whether the processed high-brightness area is a high-risk heat source point. The backend server then issues an alarm to notify the operation and maintenance personnel to make a determination; if it is not a high-risk heat source point, the area is subjected to temperature and area displacement filtering, and brightness and shape analysis is performed to distinguish between fire and other heat sources.

[0062] One of the embodiments further includes step S7, repeating step S5 to obtain multiple fire images of the marked contour area, and calculating the target location of the thermal power plant, the burned area, the development trend of the fire, the power outage of the transmission line, and the escape guidance based on the multiple fire images of the marked contour area. This directly provides strong data support for subsequent disaster relief personnel, facilitates subsequent regulation, and minimizes the loss of financial, material and human resources.

[0063] Only when the result of single step S6 is a high-risk heat source point, step S7 is executed to further monitor the fire situation. Otherwise, step S7 is not required, which reduces the memory occupied by data processing and ensures that the method has sufficient space and corresponding speed for operation.

[0064] What is disclosed above is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or modifications within the technical scope disclosed in the present invention, which should be covered within the protection scope of the present invention.

Claims

1. A method for detecting and identifying wildfire disasters based on AI algorithm, characterized in that: The following steps are involved: Step S1, constructing a fire data set, and preprocessing the data of the fire data set to obtain a training fire data set, a verification fire data set, and a test fire data set; Step S2, constructing a YOLOv5 network model, and using the training fire data set to train the YOLOv5 network model, and verifying the trained YOLOv5 network model using the verification fire data set; Step S3, identifying the test fire data set through the trained and verified YOLOv5 network model to identify the fire target in the test image; Step S4, segmenting the image of the fire target using a network to identify the contour area of ​​the fire in the image in detail, thereby obtaining a specific fire occurrence area; The method further includes step S5, monitoring the ground situation in real time; when the first real-time image obtained by monitoring detects the outline area of ​​the fire through steps S1-S4, an alarm signal is issued to reflect the monitoring personnel to check and confirm the alarm information; at the same time, the location of the fire is obtained according to the first real-time image and the outline area of ​​the fire, and real-time monitoring is performed to obtain a second real-time image in real time, the second real-time image is pre-processed through step S1 to obtain a real-time test set, and the real-time test set is identified through steps S3-S4 to obtain a fire image of the marked outline area; The method further includes step S6, using an unmanned aerial vehicle (UAV) flying device with an infrared thermal imaging unit to monitor the fire position determined in step S5, acquiring an infrared image in real time, binarizing and morphologically processing the infrared image, and determining whether the processed high-brightness area is a high-risk heat source point. The backend server then issues an alarm to notify the operation and maintenance personnel to make a determination; if it is not a high-risk heat source point, the area is subjected to temperature and area displacement filtering, and brightness and shape analysis is performed to distinguish between fire and other heat sources; The method further includes step S7, when the result of step S6 is a high-risk heat source point, repeating step S5 to obtain multiple fire images of the marked contour area, calculating the target position of the fire point and the burned area according to the multiple fire images of the marked contour area, and judging the development trend of the fire; Only when the result of step S6 is a high-risk heat source point, step S7 is executed to further monitor the fire situation, otherwise step S7 is not required; The image of the fire target is segmented using an active contour model to identify the contour area of ​​the fire line in the image in detail; The active contour model adopts the Snakes model; The Snakes model consists of a set of control points: v(s) = [x(s), y(s)]s∈[0,1], where the control points are connected by a straight line to form a contour line, where x(s) and y(s) represent the coordinate position of each control point in the image, and s is an independent variable that describes the boundary in the form of Fourier transform; Define the energy function at the control points of the Snakes model: In formula (1), E total is the energy, s is the independent variable describing the boundary in the form of Fourier transform; is the elastic energy, v is the modulus of the first-order derivative; For bending energy; is the external energy; α and β are the parameters set by yourself, which are used to convert the function E total Minimization.

2. The method for detecting and identifying wildfire disasters based on AI algorithm according to claim 1 is characterized in that: The fire dataset adopts the Pascal VOC dataset.

3. The method for detecting and identifying wildfire disasters based on AI algorithm according to claim 2 is characterized in that: Preprocessing the data in the fire dataset includes the following steps: Create folders according to the format of the PascalVOC dataset: Annotations, ImageSets / Main, and JPEGImages; Obtaining an original fire picture, and storing the original fire picture in JPEGImages; The fire images are formatted in a unified manner according to the image formats supported by the adopted standard tools, and the sizes of the fire images are within the set range, as well as the coordinates of the normalized images; Annotate the formatted fire pictures and store the annotated XML data in Annotations; The annotated fire images are randomly divided into a training fire data set, a verification fire data set and a test fire data set according to a certain ratio, and the training fire data set, the verification fire data set and the test fire data set are stored in Annotations.

4. The method for detecting and identifying wildfire disasters based on AI algorithm according to claim 3 is characterized in that: When the fire data is a surveillance video, the original fire picture is obtained by acquiring frames from the surveillance video file.

5. The method for detecting and identifying wildfire disasters based on AI algorithm according to claim 1 is characterized in that: The active contour model adopts the GVF Snakes model.