Flame dynamic identification method and system

By constructing a neural network model of deep hybrid convolution and YOLOv5, combined with SECSP attention mechanism and spatial pyramid network, the problem of poor recognition speed and accuracy in fire detection is solved, and accurate and timely identification and center positioning of flames are achieved, which is suitable for Fire detection in complex scenes.

CN118762334AInactive Publication Date: 2024-10-11NANCHANG UNIV

Patent Information

Application Number
CN202411245504.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2024-10-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The computational complexity of existing technologies in fire detection and the mismatch between neural network models and equipment performance parameters lead to problems of poor recognition speed and accuracy.

Method used

By constructing a neural network model based on deep hybrid convolution and YOLOv5, combined with SECSP attention mechanism and spatial pyramid network, performance parameters matching the fire detection equipment are designed, and the target loss function is optimized to improve the accuracy of flame center positioning and identification.

Benefits of technology

It achieves accurate and timely identification of flames, improves the detection accuracy and efficiency of the model, is suitable for fire detection in complex scenes, and has high generalization and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762334A_ABST
    Figure CN118762334A_ABST
Patent Text Reader

Abstract

The invention discloses a flame dynamic identification method and system, and the method comprises the steps: obtaining flame dynamic image data from a preset database, constructing a corresponding fire image detection reference model according to the flame dynamic image data, and designing an improved hybrid convolution through the limitation of information transmission operation; designing a hybrid convolution space pyramid network; constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function; and creating a corresponding fire detection and early warning system in real time according to the flame center positioning module, and completing dynamic identification of flame in real time through the fire detection and early warning system. According to the invention, a systematic solution is provided for a fire image detection model to achieve the effects of high precision, fast detection and light weight, and meanwhile, a fire detection center positioning function is further realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and more specifically, to a flame dynamic recognition method and system. Background Art

[0002] With the emergence and development of intelligent factories, it is very important to design fire detection systems for large factories. However, traditional detectors cannot extract flame characteristics and can only generate signals through changes in temperature, brightness, etc. to achieve fire detection functions. Therefore, the real-time performance and accuracy of these traditional detectors are very poor. In order to overcome the limitations of the above detection technology, it is crucial to further develop fire detection technology.

[0003] Among them, the existing deep learning has become the mainstream detection method because it can effectively complete automatic learning and extract image features. At present, researchers have developed two types of deep learning target detection methods (region-based methods and regression-based methods), and they have been applied.

[0004] However, due to the complexity of the existing technology calculations, it is difficult for the existing CNN (convolutional network) and its improved methods to achieve real-time target detection. Furthermore, the existing technology does not consider the matching degree of the performance parameters between the neural network model and the fire detection equipment during the calculation process, resulting in poor recognition speed and accuracy of the constructed model. At the same time, the number of model parameters is too complicated, which reduces the work efficiency accordingly. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a flame dynamic recognition method to solve the problem that the prior art does not consider the matching degree of performance parameters between the neural network model and the fire detection equipment during the calculation process, resulting in poor recognition speed and accuracy of the constructed model.

[0006] To achieve the above object, according to one aspect of the present invention, a method for dynamic flame recognition is provided, the method comprising the following steps: Acquire flame dynamic image data in a preset database, and construct a corresponding fire image detection benchmark model according to the flame dynamic image data; Designing a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture; The target neural network is optimized through the SECSP attention mechanism to obtain the corresponding key feature information; Based on the first preset rule, a corresponding hybrid convolution module is designed in real time according to the key feature information; Based on the second preset rule, a corresponding spatial pyramid network is constructed in real time according to the hybrid convolution module; Determine in real time a target loss function corresponding to the spatial pyramid network based on a third preset rule; Constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function; A corresponding fire detection and early warning system is created in real time according to the flame center positioning module, and dynamic identification of flames is completed in real time through the fire detection and early warning system.

[0007] Furthermore, the step of acquiring flame dynamic image data in a preset database and constructing a corresponding fire image detection benchmark model according to the flame dynamic image data includes: When the flame dynamic image data is acquired in real time, the flame dynamic image data is divided into a training set, a test set and a validation set according to a ratio of 8:1:1; Input the training set, the test set and the validation set into the preset Ghost module in sequence; The fire image detection benchmark model is trained according to the training set, the test set, the validation set and the preset Ghost module.

[0008] Furthermore, the step of designing a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture includes: Construct the preset Ghost module, and improve the original convolution operation in the preset Ghost module into two parts, wherein the first part generates a corresponding first feature map through a constrained convolution kernel for the input feature, and the second part generates the remaining second feature map through a linear operation on the basis of the first feature map, and merges the first feature map and the second feature map to obtain a complete output feature map; Among them, the Ghost bottleneck G_bneck module is constructed, the basic residual block structure is adopted, two Ghost modules are stacked, ReLU is used as the activation function, and two G_bneck modules are designed for the cases where the convolution kernel step size is equal to one and two. As the extended convolution basic kernel, the specific expression is as follows:

[0009]

[0010] In the above formula, X represents the input image feature information; X1 and X2 represent the image feature information output by two G_bneck modules with convolution kernel steps of 1 and 2 respectively; BN represents batch normalization; ReLU represents the activation function; Represents a Ghost convolution operation with a kernel size of 3 times 3; DWC stands for Depthwise Separable Convolution; A cascaded structure of Ghost modules is designed. 16 convolution kernels with a kernel size of 3 and a stride of 2 are used after the standard convolution layer, and features of different scales are input into the pyramid structure at the fifth, ninth and sixteenth layers respectively.

[0011] Furthermore, the step of optimizing the target neural network through the SECSP attention mechanism to obtain corresponding key feature information includes: The corresponding SE module is constructed by presetting the backbone network, and the weights of the feature channels are automatically obtained by processing and learning the input features. The acquired information is used to suppress low-sensitivity features and enhance the expression ability of the neural network. The specific expression is as follows:

[0012] In the above formula, X represents the input image feature information; Represents the transformation operation; Represents the compression operation; W is the feature correlation weight obtained through learning; represents the excitation operation; u represents the generated feature map; Represents the weight vector obtained by the incentive operation to assign weights to u; is the output feature map; The SE module is inserted into the original convolution with a residual bottleneck structure to obtain the corresponding SECSP attention module, and the key feature information is obtained through the SECSP attention module.

[0013] Furthermore, the step of designing a corresponding hybrid convolution module in real time according to the key feature information based on the first preset rule includes: When the key feature information is acquired in real time, the image feature information corresponding to the key feature information is detected in real time, and the hybrid convolution module is created according to the image feature information based on a first preset algorithm. The specific expression of the first preset algorithm is as follows:

[0014] In the above formula, X represents the input image feature information; Conv represents the original convolution; DWC represents the depth-separable convolution; Represents the operation of splicing two convolutions in the channel direction; represents the channel shuffle operation and S represents the mixed convolution module.

[0015] Furthermore, the step of constructing a corresponding spatial pyramid network in real time according to the hybrid convolution module based on the second preset rule includes: Calling out a preset feature pyramid network, and using the hybrid convolution module as a basic convolution, so as to train a corresponding VoV module and a GS bottleneck through the preset feature pyramid network; The GS bottleneck and the VoV module form a corresponding hybrid convolutional pyramid, and the hybrid convolutional pyramid is correspondingly combined with the MConv-Neck module formed by the path aggregation network to correspondingly construct the spatial pyramid network.

[0016] Furthermore, the step of determining in real time the target loss function corresponding to the spatial pyramid network based on the third preset rule includes: The corresponding distance loss and shape loss constraints are added to the preset CIoU, and based on the distance loss and shape loss constraints, the vector angle index between the predicted box and the center point of the real box in the spatial pyramid network is calculated in real time, and the target loss function is determined according to the vector angle instruction. The specific expression is as follows:

[0017]

[0018]

[0019]

[0020] In the above formula, represents the angle loss; Represents the height difference between the center point of the predicted box and the real box; Represents the distance between the center point of the predicted box and the real box; Represents the angle between the center point of the predicted box and the center point of the real box; Represents the center coordinates of the real frame; Represents the center coordinates of the prediction box; if the angle for Or 0, the angle loss is equal to 0, if the angle During training, less than When , use minimize , otherwise it is minimized ,in ; Since there is only a scale difference between the auxiliary border and the actual border, the scale of the auxiliary border is controlled by different data sets and detectors to calculate the corresponding loss and generate the target loss function. The specific expression is as follows:

[0021]

[0022]

[0023]

[0024]

[0025]

[0026]

[0027]

[0028] In the above formula, represents the scale factor; and Represent the real box and the predicted box respectively; (l, r, t, b) represent the left, right, top and bottom coordinates of the box; Represents the center point of the real box; Represents the center point of the prediction box; and Represents the width and height of the real box; and Represents the width and height of the prediction box; Represents the intersection of the real box and the predicted box; represents the union of two boxes; Represents the intersection over union ratio, where IoU represents the original loss function, L SIoU represents the function variable, L Aangle-SIoU Represents the objective loss function.

[0029] Furthermore, the step of constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function includes: Cropping the prediction box corresponding to the output image of the spatial pyramid network to generate a corresponding target prediction box, and correspondingly eliminating small areas in the target prediction box; The target coordinates corresponding to the brightest area in the target prediction frame are detected in real time, and the target coordinates are set as the center position of the flame, and a corresponding center positioning frame is drawn according to the center position, so as to generate the flame center positioning module according to the center positioning frame.

[0030] Furthermore, the step of creating a corresponding fire detection and early warning system in real time according to the flame center positioning module, and completing the dynamic identification of flames in real time through the fire detection and early warning system includes: Collecting real-time images from visible light cameras in a preset monitoring area, transmitting the real-time images to the fire detection and early warning system, and preprocessing the real-time images to obtain corresponding target real-time images; Recognize the target real-time image through the fire image detection benchmark model to obtain a corresponding fire recognition result; Corresponding early warning measures are taken according to the fire identification results.

[0031] In summary, compared with the prior art, the above technical solution conceived by the present invention provides a flame dynamic identification method and system, which mainly has the following beneficial effects: 1. This invention improves the prediction ability of flame dynamics by constructing a deep convolutional neural network benchmark model based on deep hybrid convolution and YOLOv5, providing an effective reference model for accurate flame identification and center positioning; 2. The present invention integrates the deformable network architecture and the efficient Ghost module cascade lightweight structure into the deep convolutional neural network model, which can accurately identify the core characteristics of complex flame dynamic characteristics and timely fire detection, and provide timely and effective detection information for fire detection; 3. This invention designs a hybrid convolution spatial pyramid network that improves hybrid convolution and fused hybrid convolution, which provides passable recognition capabilities for complex scenes with interference objects, non-detection targets, etc., brings stronger generalization to the model network, and provides an important reference basis for fire detection scenes; 4. This invention integrates the flame center positioning module into the designed deep convolutional neural network architecture, accurately considers the location information of the center area of ​​the flame when a fire occurs, and designs Angle-SIoU as the loss function to further improve the detection accuracy and efficiency of the model; 5. The present invention can perform accurate and timely dynamic identification of flames, which is conducive to large-scale promotion and application in fire detection equipment.

[0032] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flow chart of a method for dynamic flame recognition provided by an embodiment of the present invention; Figure 2 This is a structural block diagram of a flame dynamics recognition system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0035] Example See also Figure 1 In this embodiment, a dynamic flame data set is used to illustrate the flame dynamic recognition method provided by this embodiment. Specifically, the dynamic flame data set includes both dynamic flame images and other types of flame images, and the corresponding ratio is 8:2.

[0036] In this embodiment, a flame dynamic identification method is specifically provided, and the method mainly includes the following steps: S1, obtaining flame dynamic image data in a preset database, and constructing a corresponding fire image detection benchmark model according to the flame dynamic image data, further comprising the following steps: When the flame dynamic image data is acquired in real time, the flame dynamic image data is divided into a training set, a test set and a validation set according to a ratio of 8:1:1; Input the training set, the test set and the validation set into the preset Ghost module in sequence; The fire image detection benchmark model is trained according to the training set, the test set, the validation set and the preset Ghost module.

[0037] S2, designing a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture, further comprising the following steps: Construct the preset Ghost module, and improve the original convolution operation in the preset Ghost module into two parts, wherein the first part generates a corresponding first feature map through a constrained convolution kernel for the input feature, and the second part generates the remaining second feature map through a linear operation on the basis of the first feature map, and merges the first feature map and the second feature map to obtain a complete output feature map; Among them, the Ghost bottleneck G_bneck module is constructed, the basic residual block structure is adopted, two Ghost modules are stacked, ReLU is used as the activation function, and two G_bneck modules are designed for the cases where the convolution kernel step size is equal to one and two. As the extended convolution basic kernel, the specific expression is as follows:

[0038]

[0039] In the above formula, X represents the input image feature information; X1 and X2 represent the image feature information output by two G_bneck modules with convolution kernel steps of 1 and 2 respectively; BN represents batch normalization; ReLU represents the activation function; Represents a Ghost convolution operation with a kernel size of 3 times 3; DWC stands for Depthwise Separable Convolution; A cascaded structure of Ghost modules is designed. 16 convolution kernels with a kernel size of 3 and a stride of 2 are used after the standard convolution layer, and features of different scales are input into the pyramid structure at the fifth, ninth and sixteenth layers respectively.

[0040] S3, optimizing the target neural network through the SECSP attention mechanism to obtain the corresponding key feature information, further comprising the following steps: The corresponding SE module is constructed by presetting the backbone network, and the weights of the feature channels are automatically obtained by processing and learning the input features. The acquired information is used to suppress low-sensitivity features and enhance the expression ability of the neural network. The specific expression is as follows:

[0041] In the above formula, X represents the input image feature information; Represents the transformation operation; Represents the compression operation; W is the feature correlation weight obtained through learning; represents the excitation operation; u represents the generated feature map; Represents the weight vector obtained by the incentive operation to assign weights to u; is the output feature map; The SE module is inserted into the original convolution with a residual bottleneck structure to obtain the corresponding SECSP attention module, and the key feature information is obtained through the SECSP attention module.

[0042] S4, designing a corresponding hybrid convolution module in real time according to the key feature information based on the first preset rule, further comprising the following steps: When the key feature information is acquired in real time, the image feature information corresponding to the key feature information is detected in real time, and the hybrid convolution module is created according to the image feature information based on a first preset algorithm. The specific expression of the first preset algorithm is as follows:

[0043] In the above formula, X represents the input image feature information; Conv represents the original convolution; DWC represents the depth-separable convolution; Represents the operation of splicing two convolutions in the channel direction; represents the channel shuffle operation and S represents the mixed convolution module.

[0044] S5, constructing a corresponding spatial pyramid network in real time according to the hybrid convolution module based on the second preset rule, further comprising the following steps: Calling out a preset feature pyramid network, and using the hybrid convolution module as a basic convolution, so as to train a corresponding VoV module and a GS bottleneck through the preset feature pyramid network; The GS bottleneck and the VoV module form a corresponding hybrid convolutional pyramid, and the hybrid convolutional pyramid is correspondingly combined with the MConv-Neck module formed by the path aggregation network to correspondingly construct the spatial pyramid network.

[0045] S6, determining in real time a target loss function corresponding to the spatial pyramid network based on a third preset rule, further comprising the following steps: The corresponding distance loss and shape loss constraints are added to the preset CIoU, and based on the distance loss and shape loss constraints, the vector angle index between the predicted box and the center point of the real box in the spatial pyramid network is calculated in real time, and the target loss function is determined according to the vector angle instruction. The specific expression is as follows:

[0046]

[0047]

[0048]

[0049] In the above formula, represents the angle loss; Represents the height difference between the center point of the predicted box and the real box; Represents the distance between the center point of the predicted box and the real box; Represents the angle between the center point of the predicted box and the center point of the real box; Represents the center coordinates of the real frame; Represents the center coordinates of the prediction box; if the angle for Or 0, the angle loss is equal to 0, if the angle During training, less than When , use minimize , otherwise it is minimized ,in ; Since there is only a scale difference between the auxiliary border and the actual border, the scale of the auxiliary border is controlled by different data sets and detectors to calculate the corresponding loss and generate the target loss function. The specific expression is as follows:

[0050]

[0051]

[0052]

[0053]

[0054]

[0055]

[0056]

[0057] In the above formula, represents the scale factor; and Represent the real box and the predicted box respectively; (l, r, t, b) represent the left, right, top and bottom coordinates of the box; Represents the center point of the real box; Represents the center point of the prediction box; and Represents the width and height of the real box; and Represents the width and height of the prediction box; Represents the intersection of the real box and the predicted box; represents the union of two boxes; Represents the intersection over union ratio, where IoU represents the original loss function, L SIoU represents the function variable, L Aangle-SIoU Represents the objective loss function.

[0058] S7, constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function, further comprising the following steps: Cropping the prediction box corresponding to the output image of the spatial pyramid network to generate a corresponding target prediction box, and correspondingly eliminating small areas in the target prediction box; The target coordinates corresponding to the brightest area in the target prediction frame are detected in real time, and the target coordinates are set as the center position of the flame, and a corresponding center positioning frame is drawn according to the center position, so as to generate the flame center positioning module according to the center positioning frame.

[0059] S8, creating a corresponding fire detection and early warning system in real time according to the flame center positioning module, and completing the dynamic identification of flames in real time through the fire detection and early warning system, further comprising the following steps: Collecting real-time images from visible light cameras in a preset monitoring area, transmitting the real-time images to the fire detection and early warning system, and preprocessing the real-time images to obtain corresponding target real-time images; Recognize the target real-time image through the fire image detection benchmark model to obtain a corresponding fire recognition result; Corresponding early warning measures are taken according to the fire identification results.

[0060] To further illustrate this embodiment, the average precision The experimental results are shown in Table 1. As can be seen from the results in Table 1, the method of this embodiment has high prediction accuracy and low parameter amount, which reflects the prediction accuracy and prediction speed of the deep convolutional neural network model of this embodiment. It can be considered that the method of this embodiment has good performance in the dynamic flame image recognition problem.

[0061] Table 1 Image recognition results of the present invention in the embodiment

[0062] The flame dynamic recognition method provided by the present invention can fully consider the complex and changeable characteristics of the dynamic flame's morphology and scene, improve the prediction accuracy of the model, and provide a systematic solution for the timely and accurate recognition and center positioning of the dynamic flame.

[0063] Another embodiment of the present invention provides a flame dynamic identification system, the system comprising: An acquisition module, used to acquire flame dynamic image data from a preset database, and construct a corresponding fire image detection benchmark model according to the flame dynamic image data; A processing module, used to design a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture; An optimization module, used to optimize the target neural network through the SECSP attention mechanism to obtain corresponding key feature information; A design module, used to design a corresponding hybrid convolution module in real time according to the key feature information based on a first preset rule; A construction module, used to construct a corresponding spatial pyramid network in real time according to the hybrid convolution module based on a second preset rule; A first execution module, configured to determine in real time a target loss function corresponding to the spatial pyramid network based on a third preset rule; A second execution module is used to construct a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function; The identification module is used to create a corresponding fire detection and early warning system in real time according to the flame center positioning module, and complete the dynamic identification of flames in real time through the fire detection and early warning system.

[0064] It will be easily understood by those skilled in the art that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A flame dynamic identification method, characterized in that: The method comprises: Acquire flame dynamic image data in a preset database, and construct a corresponding fire image detection benchmark model according to the flame dynamic image data; Designing a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture; The target neural network is optimized through the SECSP attention mechanism to obtain the corresponding key feature information; Based on the first preset rule, a corresponding hybrid convolution module is designed in real time according to the key feature information; Based on the second preset rule, a corresponding spatial pyramid network is constructed in real time according to the hybrid convolution module; Determine in real time a target loss function corresponding to the spatial pyramid network based on a third preset rule; Constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function; A corresponding fire detection and early warning system is created in real time according to the flame center positioning module, and dynamic identification of flames is completed in real time through the fire detection and early warning system.

2. The flame dynamic identification method according to claim 1, characterized in that: The step of acquiring flame dynamic image data in a preset database and constructing a corresponding fire image detection benchmark model according to the flame dynamic image data comprises: When the flame dynamic image data is acquired in real time, the flame dynamic image data is divided into a training set, a test set and a validation set according to a ratio of 8:1:1; Input the training set, the test set and the validation set into the preset Ghost module in sequence; The fire image detection benchmark model is trained according to the training set, the test set, the validation set and the preset Ghost module.

3. The method for dynamic flame recognition according to claim 2, characterized in that: The step of designing a target neural network corresponding to the fire image detection benchmark model in real time by using a preset network architecture comprises: Construct the preset Ghost module, and improve the original convolution operation in the preset Ghost module into two parts, wherein the first part generates a corresponding first feature map through a constrained convolution kernel for the input feature, and the second part generates the remaining second feature map through a linear operation on the basis of the first feature map, and merges the first feature map and the second feature map to obtain a complete output feature map; Generate the target neural network according to the output feature map, the preset Ghost module and the preset network architecture; Among them, the Ghost bottleneck G_bneck module is constructed, the basic residual block structure is adopted, two Ghost modules are stacked, ReLU is used as the activation function, and two G_bneck modules are designed for the cases where the convolution kernel step size is equal to one and two. As the extended convolution basic kernel, the specific expression is as follows: In the above formula, X represents the input image feature information; X1 and X2 represent the image feature information output by two G_bneck modules with convolution kernel step size equal to 1 and 2 respectively; BN represents batch normalization; ReLU represents the activation function; Represents a Ghost convolution operation with a kernel size of 3 times 3; DWC stands for Depthwise Separable Convolution; A cascaded structure of Ghost modules is designed. 16 convolution kernels with a kernel size of 3 and a stride of 2 are used after the standard convolution layer, and features of different scales are input into the pyramid structure at the fifth, ninth and sixteenth layers respectively.

4. The flame dynamic identification method according to claim 1, characterized in that: The step of optimizing the target neural network through the SECSP attention mechanism to obtain the corresponding key feature information includes: The corresponding SE module is constructed by presetting the backbone network, and the weights of the feature channels are automatically obtained by processing and learning the input features. The acquired information is used to suppress low-sensitivity features and enhance the expression ability of the neural network. The specific expression is as follows: In the above formula, X represents the input image feature information; Represents the transformation operation; Represents the compression operation; W is the feature correlation weight obtained through learning; represents the excitation operation; u represents the generated feature map; Represents the weight vector obtained by the incentive operation to assign weights to u; is the output feature map; The SE module is inserted into the original convolution with a residual bottleneck structure to obtain the corresponding SECSP attention module, and the key feature information is obtained through the SECSP attention module.

5. The flame dynamic identification method according to claim 1, characterized in that: The step of designing a corresponding hybrid convolution module in real time according to the key feature information based on the first preset rule comprises: When the key feature information is acquired in real time, the image feature information corresponding to the key feature information is detected in real time, and the hybrid convolution module is created according to the image feature information based on a first preset algorithm. The specific expression of the first preset algorithm is as follows: In the above formula, X represents the input image feature information; Conv represents the original convolution; DWC represents the depth-separable convolution; Represents the operation of splicing two convolutions in the channel direction; represents the channel shuffle operation and S represents the mixed convolution module.

6. The method for dynamic flame recognition according to claim 5, characterized in that: The step of constructing a corresponding spatial pyramid network in real time according to the hybrid convolution module based on the second preset rule includes: Calling out a preset feature pyramid network, and using the hybrid convolution module as a basic convolution, so as to train a corresponding VoV module and a GS bottleneck through the preset feature pyramid network; The GS bottleneck and the VoV module form a corresponding hybrid convolutional pyramid, and the hybrid convolutional pyramid is correspondingly combined with the MConv-Neck module formed by the path aggregation network to correspondingly construct the spatial pyramid network.

7. The flame dynamic identification method according to claim 1, characterized in that: The step of determining in real time the target loss function corresponding to the spatial pyramid network based on the third preset rule comprises: The corresponding distance loss and shape loss constraints are added to the preset CIoU, and based on the distance loss and shape loss constraints, the vector angle index between the predicted box and the center point of the real box in the spatial pyramid network is calculated in real time, and the target loss function is determined according to the vector angle instruction. The specific expression is as follows: In the above formula, represents the angle loss; Represents the height difference between the center point of the predicted box and the real box; Represents the distance between the center point of the predicted box and the real box; Represents the angle between the center point of the predicted box and the center point of the real box; Represents the center coordinates of the real frame; Represents the center coordinates of the prediction box; if the angle for Or 0, the angle loss is equal to 0, if the angle During training, less than When , use minimize , otherwise it is minimized ,in ; Since there is only a scale difference between the auxiliary border and the actual border, the scale of the auxiliary border is controlled by different data sets and detectors to calculate the corresponding loss and generate the target loss function. The specific expression is as follows: In the above formula, represents the scale factor; and Represent the true box and the predicted box respectively; ( l , r, t, b) represent the left, right, top and bottom coordinates of the box; Represents the center point of the real box; Represents the center point of the prediction box; and Represents the width and height of the real box; and Represents the width and height of the prediction box; Represents the intersection of the real box and the predicted box; represents the union of two boxes; Represents the intersection over union ratio, where IoU represents the original loss function, L SIoU represents the function variable, L Aangle-SIoU Represents the objective loss function.

8. The method for dynamic flame recognition according to claim 1, characterized in that: The step of constructing a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function comprises: Cropping the prediction box corresponding to the output image of the spatial pyramid network to generate a corresponding target prediction box, and correspondingly eliminating small areas in the target prediction box; The target coordinates corresponding to the brightest area in the target prediction frame are detected in real time, and the target coordinates are set as the center position of the flame, and a corresponding center positioning frame is drawn according to the center position, so as to generate the flame center positioning module according to the center positioning frame.

9. The method for dynamic flame recognition according to claim 1, characterized in that: The step of creating a corresponding fire detection and early warning system in real time according to the flame center positioning module, and completing the dynamic identification of flames in real time through the fire detection and early warning system includes: Collecting real-time images from visible light cameras in a preset monitoring area, transmitting the real-time images to the fire detection and early warning system, and preprocessing the real-time images to obtain corresponding target real-time images; Recognize the target real-time image through the fire image detection benchmark model to obtain a corresponding fire recognition result; Corresponding early warning measures are taken according to the fire identification results.

10. A flame dynamic identification system, characterized in that: The system comprises: An acquisition module, used to acquire flame dynamic image data from a preset database, and construct a corresponding fire image detection benchmark model according to the flame dynamic image data; A processing module, used to design a target neural network corresponding to the fire image detection benchmark model in real time through a preset network architecture; An optimization module, used to optimize the target neural network through the SECSP attention mechanism to obtain corresponding key feature information; A design module, used to design a corresponding hybrid convolution module in real time according to the key feature information based on a first preset rule; A construction module, used to construct a corresponding spatial pyramid network in real time according to the hybrid convolution module based on a second preset rule; A first execution module, configured to determine in real time a target loss function corresponding to the spatial pyramid network based on a third preset rule; A second execution module is used to construct a corresponding flame center positioning module in real time according to the spatial pyramid network and the target loss function; The identification module is used to create a corresponding fire detection and early warning system in real time according to the flame center positioning module, and complete the dynamic identification of flames in real time through the fire detection and early warning system.

Citation Information

Patent Citations

  • Improved YOLOv5 fire detection method and device integrated with adjustable coordinate residual attention

    CN115457428A

  • Astronomical image automatic classification method based on improved SE-Inception-v3 network model

    CN115909011A

  • Traffic safety helmet wearing detection system and method based on improved YOLOv5

    CN116977948A

  • Lightweight flame detection method

    CN117636126A

  • Fire detection method fusing YOLOv8 and RT-DETR

    CN117974973A

Cited By

  • Fire identification method, system and equipment used in charging pile scene, and medium

    CN119540737A