A bridge fire visual detection and component-level fire exposure state evaluation method based on deep learning
By using the FireBridge-YOLO model and a multi-frame temporal determination method, the problems of lag and false detection in bridge fire identification and assessment are solved, enabling rapid identification of bridge fires and accurate assessment of the fire status of components, supporting fire emergency response and post-disaster assessment.
Patent Information
- Application Number
- CN202611378054.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for identifying and assessing bridge fires suffer from significant delays, high subjectivity, insufficient spatial coverage, difficulty in identifying small flames at long distances and low-contrast smoke, susceptibility to interference in single-frame detection, and difficulty in associating fire visual recognition results with bridge components.
The FireBridge-YOLO model based on deep learning is adopted, which combines a shallow small target detection branch and a lightweight channel attention module to detect flame and smoke targets. Stability determination is performed by using multi-frame temporal information, establishing the spatial association between fire targets and bridge components, and calculating the visual fire response and parameterized component-level fire status.
It improves the accuracy and stability of bridge fire identification, reduces the false detection rate in complex backgrounds, enables rapid assessment of component-level fire status and determination of priority inspection areas, and supports bridge fire emergency response and post-disaster assessment.
Smart Images

Figure CN123142122A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of bridge fire monitoring and structural safety assessment technology, specifically involving a bridge fire visual detection and component-level fire status assessment method based on deep learning target detection, multi-frame temporal determination, and spatial association between fire targets and bridge components. Background Technology
[0002] Bridges may be susceptible to fire during operation and construction due to vehicle combustion, burning of materials beneath the bridge, fires in construction ancillary facilities, electrical faults, or other sources of ignition. The high temperatures generated by a fire can cause a decrease in the strength and stiffness of steel components, cracking or spalling of concrete, degradation of the steel-concrete interface, and damage to supports and ancillary components, thereby affecting the safety and normal use of the bridge structure. Therefore, rapidly identifying bridge fires, determining the areas where flames and smoke are present, and conducting preliminary screening of bridge components that may be affected by the fire are of great importance for fire emergency response and post-fire structural inspection.
[0003] Current bridge fire identification and post-disaster assessment mainly rely on on-site inspections, manual review of surveillance videos, and limited monitoring points, which suffer from problems such as strong lag, high subjectivity, and insufficient spatial coverage. Deep learning-based flame and smoke target detection can output target location, category, and confidence level, but in bridge scenarios, it is still easily affected by small flames at a distance, low-contrast smoke, nighttime lights, vehicle reflections, and dense fog backgrounds, leading to missed or false detections. At the same time, single-frame detection results are easily affected by transient interference, making it difficult to reliably judge video-level fire events.
[0004] Therefore, there is an urgent need for a visual recognition and fire status assessment method suitable for bridge fire scenarios. This method should improve the feature extraction capabilities of small flames and low-contrast smoke at long distances, reduce false alarms caused by complex bridge backgrounds and transient interference, stably determine fire events through multi-frame temporal information, and spatially correlate flame-smoke detection results with bridge component areas to form component-level fire status parameters. This would provide a technical basis for rapid identification of bridge fires, assessment of the degree of fire impact after a fire, and determination of priority inspection areas. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of existing technologies and provide a deep learning-based method for visual detection of bridge fires and assessment of fire status at the component level. This method is designed for rapid fire identification and post-fire screening of fire-affected areas during the operation and construction phases of bridges. It overcomes technical problems such as easy to miss small-scale flames at long distances, difficulty in identifying low-contrast smoke, easy to generate false detections in complex bridge backgrounds, insufficient stability of single-frame fire judgment, and difficulty in associating fire visual recognition results with specific bridge components. This method enables bridge fire event identification, determination of visible fire-affected areas, association of fire-affected components, parameterization of component-level fire status, and screening of priority inspection areas after a fire.
[0006] To achieve the above objectives, the present invention is implemented using the following technical solution: This invention provides a deep learning-based method for visual detection of bridge fires and component-level fire condition assessment, comprising the following steps: Acquire images or videos containing the bridge structure to be evaluated, and divide the image or video frame into multiple bridge component regions based on the bridge structure layout, bridge component location and image acquisition perspective. The image or video frame is input into a trained flame-smoke target detection model to obtain the fire target detection results in each image or video frame. The fire target detection results include the target box, target category and detection confidence. The target category includes flame and smoke. In the flame-smoke target detection model, a shallow small target detection branch and a lightweight channel attention module are set. The shallow small target detection branch is used to enhance the feature extraction capabilities of distant small-scale flames, local fire sources under bridges, and initial smoke. The lightweight channel attention module is used to enhance flame and smoke-related features and suppress non-fire features generated by complex bridge backgrounds. Image-level fire determination is performed based on the detection confidence of flame and smoke targets in each image or video frame, and multi-frame event determination is performed based on the image-level fire determination results of multiple consecutive video frames to determine whether there is a fire event, visible flame or visible smoke in the video to be detected. Calculate the spatial overlap relationship between the target bounding box of the flame or smoke target and each bridge component area. Based on the spatial overlap relationship, associate the fire target with the corresponding bridge component area. Combine the target category, detection confidence and spatial overlap degree of the fire target to determine the frame-by-frame visual fire response of each bridge component area. Video temporal statistics are performed on the frame-by-frame visual fire response to obtain the average visual fire index, maximum visual fire response and visible fire duration of each bridge component area. The post-fire inspection priority of each bridge component or area of interest is determined based on the component-level visual fire parameters, and priority inspection areas are determined accordingly. The component-level visual fire-affected parameters are correlated with component apparent damage, temperature evidence, or structural response information to determine the fire-affected status assessment results of bridge components. The assessment results are then mapped to bridge images or bridge structural models for visualization.
[0007] Furthermore, the images or videos are acquired through fixed bridge monitoring equipment, drones, mobile terminals, or image acquisition equipment deployed around the bridge. The bridge component area includes one or more of the following: steel beam area, concrete bridge deck area, bearing area, under-bridge space area, and construction ancillary facilities area; For fixed image acquisition equipment, the image areas corresponding to each bridge component area are pre-calibrated according to the bridge structure layout and fixed image acquisition angle. For images or videos acquired by drones or mobile terminals, the bridge component regions are updated based on the pose changes of the image acquisition device, or the bridge component regions are divided after different video frames are converted to a unified reference image coordinate system through image registration.
[0008] Furthermore, in step S1, images and videos of the bridge during or after the fire are acquired using fixed bridge monitoring equipment, drones, mobile terminals, or image acquisition equipment temporarily deployed around the bridge. The input image or video frame is subjected to scaling, distortion correction, brightness normalization, noise reduction or contrast enhancement to reduce image differences caused by different acquisition devices, lighting conditions and shooting distances; Based on the component outlines in the bridge design drawings, on-site measurements, or images, the bridge component areas are... M k Perform manual calibration, semi-automatic calibration, or automatic calibration based on image segmentation models; Among them, the k The bridge component area is represented as follows: ; In the formula, M k For the first k The set of pixels of a bridge component or region of interest in the image coordinate system; x , y These are the horizontal and vertical coordinates of the image pixels, respectively.
[0009] Furthermore, the flame-smoke target detection model is a FireBridge-YOLO model built on YOLOv8n, which includes a backbone feature extraction network, a feature fusion network, and a multi-scale target detection network. The backbone feature extraction network outputs P2, P3, P4 and P5 multi-scale features; An ECA lightweight channel attention module is set after at least one feature layer of the P2, P3, P4 and P5 multi-scale features; The shallow features of P2 are input into the feature fusion network, and a small target detection head corresponding to the shallow features of P2 is set so that the multi-scale target detection network simultaneously includes Detect P2, Detect P3, Detect P4 and Detect P5 detection branches; The FireBridge-YOLO model detects both flames and smoke, and is trained on a training dataset that includes images of flames, smoke, flames and smoke together, and images with no fire background.
[0010] Furthermore, the ECA lightweight channel attention module for the first... l Channel weights are recalibrated on the layer feature maps; No. l The layer feature map is represented as: ; In the formula, F l For the first l Layer input feature map; C l The number of channels in the feature map; H l and W l These are the height and width of the feature map, respectively; Perform global average pooling on the feature map to obtain the first... c The channel descriptions for each channel are: ; In the formula, z l ( c ) represents the first feature map in the l-th layer. c The global descriptor of each channel; F l ( c , h , w ) is the first c Coordinates in each channel ( h , w The eigenvalue at () is a position; One-dimensional convolution is used to establish local interaction relationships between adjacent channels, and the channel attention weights are obtained through the Sigmoid function. ; In the formula, α l For the first l Channel attention weight vectors for layer features; Conv1D ke The kernel size is yes One-dimensional convolution operation; s (·) is the Sigmoid activation function; The original feature map is weighted according to the channel attention weights to obtain attention-enhanced features: ; In the formula, This is the feature map after attention enhancement; α l ( c ) is the first c Attention weights corresponding to each channel.
[0011] Furthermore, the construction of the P2 shallow small target detection branch includes the following steps: The P2 shallow features output by the backbone feature extraction network are introduced into the feature fusion network and fused with the features obtained by upsampling the deep features; A Detect P2 head is set after the fused P2 features, and together with the Detect P3, Detect P4 and Detect P5 heads, it outputs multi-scale detection results: ; In the formula, Y This is the multi-scale detection output of the FireBridge-YOLO model; Y P2 This is the output of the P2 shallow small target detection branch, mainly used to identify small flames at a distance, local fire sources under bridges, and initial smoke. Y P3 , Y P4 and Y P5 The detection outputs are for small-to-medium scale, medium-scale, and large-scale fire targets, respectively. The downsampling ratios of the P2, P3, P4, and P5 feature layers relative to the input image are 1 / 4, 1 / 8, 1 / 16, and 1 / 32, respectively.
[0012] Furthermore, the image-level determination and multi-frame event determination in steps S4 and S5 include: For the t Frame image, defined as task type: ; Wherein, "event" represents the fire event recognition task; "fire" represents the visible flame recognition task; and "smoke" represents the smoke recognition task. Get the t Task type in frame q The corresponding maximum detection confidence s q,t Image-level binary determination results y q,t Represented as: ; In the formula, t q For task type qThe corresponding image-level confidence threshold; y q,t =1 indicates the first t Frame in task type q The following is a positive result; y q,t =0 indicates the first t Frame in task type q The following is negative; Set the length to n w The sliding time window and the minimum number of positive frames required to trigger the event. n p , No. t Multi-frame determination results corresponding to the frame A q,t Represented as: ; When there is at least one in the video A q,t When =1, the video is judged as positive under task type q, that is: ; In the formula, V q This is the result of a video-level event determination. The length of the sliding time window n w Minimum number of positive frames n p The image-level confidence thresholds for fire events, flames, and smoke are predetermined based on the video frame rate, application scenario, and validation set detection results.
[0013] Furthermore, the multi-frame event determination includes the following steps: Set the length to n w The sliding time window and the minimum number of positive frames required to trigger the corresponding event. n p ; Count the number of video frames with positive image-level determination results within the sliding time window; When the number of positive frames is greater than or equal to the minimum number of positive frames n p When this happens, the current sliding time window is identified as a positive event window; When there is at least one positive event window in the video to be detected, the video to be detected will be judged as positive under the corresponding recognition task; The length of the sliding time window and the minimum number of positive frames required to trigger the corresponding event are predetermined based on the video frame rate and the application scenario.
[0014] Furthermore, the fire visual recognition result is parameterized as follows: ; In the formula, e f Indicate whether there is a fire incident in the video; f f Indicates whether a visible flame exists; s f Indicates whether visible smoke is present; Oh v Indicates the visible fire area in an image or video; t s and t e These represent the start and end times of a visible fire event, respectively. t v Indicates the duration of a visible fire event; s max This indicates the confidence level of the largest fire event in the video; The bridge fire scenario is parameterized as follows: ; In the formula, x f The location of the fire along the longitudinal direction of the bridge; l f The length of the fire-affected area along the longitudinal direction of the bridge; C f The fire-exposed surface of bridge components or the fire-exposed location of spaces; x f Fire scene type; The fire scenario types include one or more of the following: bridge deck fire, bridge under fire, simultaneous fire on the bridge deck and under the bridge, fire on construction ancillary facilities, and fire on vehicles or piles of materials around the bridge. The parameters of the bridge fire scene are determined by one or more of the following: fire visual recognition results, accident records, and on-site investigation information.
[0015] Furthermore, in step S6, the spatial association between the fire target and the bridge components includes: For the t The first frame i Fire target box b i,t and the k Bridge component area M k The spatial overlap coefficient is calculated as follows: ; In the formula, r i,k,t For the first iThe fire target box and the first k Spatial overlap coefficient between bridge component regions; | b i,t ∩ M k | is the overlapping area between the fire target frame and the bridge component area; | b i,t | represents the area of the fire target frame; Based on the detection confidence level, target category, and spatial overlap coefficient, calculate the first... k The bridge component area in the first t Visual fire response of the frame: ; In the formula, E k,t For the first k The bridge component area in the first t The visual response to fire in the frame; yes , t For the first i Detection confidence level of individual fire targets; w ci,t For target category c i,t Corresponding category weights; r i,k,t The spatial overlap coefficient between the fire target frame and the bridge component area; Category weights of fire targets w fire =1, the class weight of the smoke target. w smoke =λ, the weighting correction coefficient for smoke targets relative to fire targets. l It should satisfy 0 < l <1.
[0016] Furthermore, the component-level average visual fire index and maximum visual fire response in step S7 are expressed as follows: ; ; In the formula, For the first k Average visual fire index of each bridge component area during the video processing period; E k,max For the first k The maximum visual fire response of each bridge component area during the video processing period; E k,t No. k The bridge component area in the first t The visual response to fire in the frame; TThe total number of video frames included in the statistics; The average visual fire index is used to characterize the degree of continuous visible fire exposure of bridge component areas during the video processing period. The maximum visual fire response E k,max Used to characterize the degree of short-term intense flame or high-confidence smoke effect on bridge component areas; According to the maximum visual fire response E k,max The first sorting order is determined by ranking from largest to smallest. When two or more bridge components or areas of concern have the same maximum visual fire response, the second sorting order is determined by ranking from largest to smallest average visual fire index. When the average visual fire index is still the same, the order is determined by the duration of visible fire exposure. t k The third sorting order was determined from longest to shortest, and the bridge component areas ranked highest were designated as priority areas for post-fire inspection. This indicates the duration of the fire. t k It can be represented as: ; In the formula, N k,+ For the first k The number of video frames in each area that meet the criteria for a positive fire test; f v This refers to the video frame rate.
[0017] Furthermore, one or more of the following can be input into the preset fire condition judgment rules: component-level visual fire parameters, component apparent damage, temperature evidence, and structural response information, to determine the fire condition level of the bridge components. The component-level visual fire parameters include one or more of the following: whether flames are detected, whether smoke is detected, the degree of spatial overlap between the target box and the component area, the duration of visible fire exposure, the average visual fire exposure index, and the maximum visual fire exposure response. Based on the fire condition level, average visual fire index, and maximum visual fire response, a component-level fire condition distribution is generated, and the fire condition of bridge components and priority inspection order are displayed by color, fill texture, marker size, or status label.
[0018] Furthermore, the apparent damage to the component includes one or more of the following: concrete color change, concrete cracking, concrete spalling, concrete powdering, exposed aggregate, coating damage to the steel component, residual deformation of the steel component, and local buckling of the steel component. The temperature evidence includes one or more of the following: maximum component temperature, heating rate, duration of high temperature, cooling rate, and spatial temperature distribution. The structural response information includes one or more of the following: component deflection, strain, stiffness change, residual deformation, interface slip, and vibration characteristic change. The fire status level of the bridge component is determined according to one or more of the following: the degree of spatial overlap between the flame or smoke and the area of the bridge component; the duration of visible fire exposure; the average visual fire exposure index; the maximum visual fire exposure response; the degree of apparent damage to the component; the level of temperature effect; and the degree of structural response change. The location, extent, duration of visible fire, average visual fire index, maximum visual fire response, fire status level, and priority inspection order of bridge components are mapped to two-dimensional images or three-dimensional structural models of the bridge, and the fire status of different bridge component areas is displayed with different colors, marker sizes, or risk labels.
[0019] Compared with existing technologies, the beneficial effects of the technical solution provided by this invention are as follows: By setting up a P2 shallow small target detection branch and an ECA lightweight channel attention module, this invention improves the fire identification capability of small flames at long distances, initial smoke, and complex bridge backgrounds; by adopting a combination of image-level judgment and multi-frame event judgment, it reduces false alarms caused by single-frame transient interference; by establishing spatial correlation between fire targets and bridge component areas, it forms frame-by-frame visual fire response, average visual fire index, and maximum visual fire response, realizing the transformation from image-level fire detection to component-level fire state representation; at the same time, it can determine the post-fire inspection priority of bridge components based on component-level visual fire parameters, and determine the priority inspection area by combining apparent damage, temperature evidence, and structural response information, providing technical support for bridge fire emergency response and rapid post-disaster assessment. Attached Figure Description
[0020] Figure 1 This is a flowchart of the method of the present invention.
[0021] Figure 2 This is a schematic diagram of the network structure of the FireBridge-YOLO flame-smoke target detection model.
[0022] Figure 3 This is a schematic diagram of the ECA lightweight channel attention module structure.
[0023] Figure 4 This is a schematic diagram of the branch structure for shallow small target detection in P2.
[0024] Figure 5 This is a flowchart for image-level fire detection and sliding time window multi-frame event detection.
[0025] Figure 6 This is a schematic diagram showing the spatial relationship between the fire target and the bridge component area. Detailed Implementation
[0026] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0027] like Figure 1 As shown in the figure, this embodiment provides a method for visual detection of bridge fires and component-level fire status assessment based on deep learning. The specific steps are as follows: Step S1) Bridge image acquisition and component region division.
[0028] This embodiment takes an in-service bridge, including steel beams, concrete bridge deck, and supporting components, as the research object, and specifically includes the following operations: Images or videos containing information about the structure of the bridge to be evaluated can be obtained through fixed bridge monitoring equipment, drones, mobile terminals, or temporary image acquisition equipment deployed around the bridge.
[0029] For fixed monitoring equipment, bridge component areas are pre-divided in the reference image based on the bridge structure layout, component locations, and fixed shooting angles. These bridge component areas include one or more of the following: steel beam areas, concrete bridge deck areas, bearing areas, under-bridge space areas, and construction ancillary facility areas.
[0030] The first k Each bridge component region is represented as follows: ; In the formula, M k For the first k Region mask of each bridge component in the image coordinate system; x , y These are the x and y coordinates of the image pixels, respectively.
[0031] For images or videos captured by drones or mobile terminals, image registration is first performed through feature point matching, homography transformation, or camera pose estimation to convert each video frame to a unified reference coordinate system; then, the regions of each bridge component are updated based on the converted component outlines.
[0032] The component areas can be manually calibrated, projected based on bridge design drawings, or automatically divided using a semantic segmentation model.
[0033] Step S2) Construction of flame-smoke target detection model.
[0034] This embodiment uses target detection to identify flames and smoke in images or videos. For the first... t The frame image, the model output is represented as: ; In the formula,D t For the first t The set of target detection results for the frames; b i,t =( x i,t , y i,t , w i,t , h i,t ) is the first i The position and size of each target bounding box; c i,t ∈{fire,smoke} is the target category; s i,t To test the confidence level; n t For the first t The number of detected targets in the frame.
[0035] In this embodiment, the D-Fire dataset is used to train the model. The training set includes 15,500 images, the validation set includes 1,721 images, and the independent test set includes 4,306 images; the image types include flames, smoke, flames and smoke coexisting, and no-fire backgrounds. Additionally, 16 external videos are used for video-level validation, including fires on the bridge itself, fires under the bridge, fires involving construction ancillary facilities, general fires, and challenging negative samples such as nighttime bridge fires and bridge fires in foggy weather.
[0036] Step S2.1) as follows Figure 2 As shown, a FireBridge-YOLO model is constructed using YOLOv8n as the baseline model. The model includes a backbone feature extraction network, a feature fusion network, and a multi-scale object detection network.
[0037] The backbone feature extraction network outputs P2, P3, P4 and P5 multi-scale features; an ECA lightweight channel attention module is set after the multi-scale features; at the same time, the P2 shallow high-resolution features are introduced into the feature fusion network and a Detect P2 detection head is set.
[0038] The improved multi-scale target detection results are expressed as follows: ; In the formula, Y P2 Used to enhance the detection of small flames at long distances, localized fire sources under bridges, and initial smoke; Y P3 , Y P4 and Y P5 They are used to detect small- to medium-scale, medium-scale, and large-scale flame and smoke targets, respectively.
[0039] When the input image size is 416×416, the downsampling ratios of feature layers P2, P3, P4, and P5 relative to the input image are 1 / 4, 1 / 8, 1 / 16, and 1 / 32, respectively. The P2 feature map has high spatial resolution and can preserve the edge, texture, and local color information of small-scale fire targets.
[0040] Step S2.2) as Figure 3-Figure 4 As shown, let the output of the backbone feature extraction network be the first... l The layer feature map is as follows: ; In the formula, C l , H l and W l These represent the number of channels, height, and width of the feature map, respectively.
[0041] First, global average pooling is performed on the feature map to obtain the first... c Description of each channel: ; Subsequently, one-dimensional convolution is used to establish the local interaction relationship between adjacent channels, and the channel attention weights are obtained through the Sigmoid function: ; Finally, the original feature map is channel-weighted according to the channel attention weights: ; In the formula, This is the feature map after attention enhancement; α l ( c ) is the first c Attention weights corresponding to each channel.
[0042] The above processing can enhance the model's response to flame highlights, smoke diffusion edges, and local color abrupt changes, while reducing the impact of non-fire features such as nighttime lights, vehicle lights, metal reflections, bridge structure backgrounds, and foggy environments.
[0043] Step S2.3) In this embodiment, the model input image size is set to 416×416, training is conducted for 40 rounds, the batch size is set to 4, the AdamW optimizer and cosine learning rate strategy are adopted, and Mosaic data augmentation is turned off in the later stage of training.
[0044] During model inference, the intersection-union ratio threshold is set to 0.70, and the video is processed frame by frame.
[0045] After the model is trained, it is used to detect flame and smoke targets on an independent test set. The model is validated on the independent test set and can output the location, category, and detection confidence of flame and smoke targets, meeting the input requirements for subsequent image-level judgment and component spatial association.
[0046] Step S3) Image-level fire determination.
[0047] For the t Frame image, set task type: ; Among them, event is the fire event recognition task; fire is the flame recognition task; and smoke is the smoke recognition task.
[0048] Obtain the first t Maximum flame confidence in the frame s fire,t and maximum smoke confidence s smoke,t The confidence level of a fire event is expressed as: ; The image-level binary determination result is: ; In the formula, t q For task type q The corresponding image-level confidence threshold.
[0049] In this embodiment, based on the threshold scanning results of the independent test set, the image-level confidence thresholds for fire events, flames, and smoke are respectively set as follows: t event =0.11, t fire =0.12, t smoke =0.10; The above threshold can be recalibrated according to the cost of missed detection, the cost of false alarm, the lighting conditions and the complexity of the background in the application scenario.
[0050] Step S4) Determine video multi-frame events.
[0051] like Figure 5 As shown, in order to reduce false alarms caused by single-frame light reflection, vehicle taillights, camera shake, and short-term image blur, a sliding time window is used for multi-frame joint judgment.
[0052] Set the sliding time window length to n w The minimum number of positive frames required to trigger the corresponding event is n p , No.t The multi-frame determination result corresponding to the frame is: ; When there is any moment in the video that satisfies A q,t When =1, the video is judged as positive under the corresponding task: ; In this embodiment, the sliding time window length n w Take 5 frames, minimum number of positive frames n p If at least 3 out of 5 consecutive frames reach the corresponding confidence threshold, it is determined that there is a fire event, flame, or smoke in the current time window.
[0053] Step S5) Fire visual information parameterization.
[0054] Based on the image-level and video-level recognition results, the visual observation information is represented as follows: ; In the formula, e f Indicate whether a fire has occurred; f f Indicates whether a visible flame exists; s f Indicates whether visible smoke is present; Oh v The fire is visible in the area. t s , t e These represent the start and end times of a visible fire event, respectively. t v = t e - t s The duration of the visible fire; s max Confidence level for the largest fire event in the video.
[0055] The scenario of a bridge being on fire is represented as follows: ; In the formula, x f The location of the fire along the longitudinal direction of the bridge; l f The length of the fire-affected area along the longitudinal direction of the bridge; C f The fire-exposed surface of a component or the fire-exposed location of a space; x fThis refers to a fire scene type.
[0056] Fire scenario types include one or more of the following: bridge deck fire, fire under the bridge, simultaneous fire on the bridge deck and under the bridge, fire on construction ancillary facilities, and fire involving vehicles or accumulated materials around the bridge. The scenario parameters can be determined jointly by visual recognition results, accident records, and on-site investigations.
[0057] Step S6) Spatial association between fire targets and bridge components.
[0058] like Figure 6 As shown, solid-line target boxes represent flame targets, and dashed-line target boxes represent smoke targets; the slanted area at the top of the target box represents the spatial overlap between the fire target box and the corresponding bridge component or area of interest. For the... t The first frame i Fire target box b i, t and the k Bridge component area M k Calculate the spatial overlap coefficient: ; In the formula, | b i,t ∩ M k | represents the overlap area between the target bounding box and the bridge component region; | b i,t | represents the area of the target bounding box.
[0059] When the spatial overlap coefficient reaches the preset spatial association threshold, the corresponding fire target will be associated with the bridge component area.
[0060] When the same target bounding box overlaps with multiple component regions, any of the following methods can be used: Associate the target with the bridge component region that has the largest spatial overlap coefficient; Alternatively, the contribution of the target to each bridge component area can be retained separately to characterize the potential simultaneous impact of a fire on adjacent components.
[0061] Based on the detection confidence, target class weight, and spatial overlap coefficient, calculate the first... k The bridge component area in the first t Visual fire response of the frame: ; In the formula, w ci The target category weight.
[0062] In this embodiment, the category weights for flame and smoke are as follows: wfire =1, w smoke = l _, where 0 < l <1. It is evident that flames are typically strongly correlated with the direct heating of components, thus receiving a higher weight; smoke primarily reflects the presence, spread, and obstruction of a fire, therefore receiving a relatively lower weight. The current frame does not contain any elements related to the first... k When a component area is associated with a flame or smoke target, E k,t =0.
[0063] Step S7) Calculation of the visual fire status of components.
[0064] Statistical analysis was performed on the visual fire response of each frame within the video processing period to obtain the first... k Average visual fire index of each bridge component area: ; And maximum visual fire response: ; In the formula, T This represents the total number of video frames included in the statistics.
[0065] The average visual fire index describes the degree of sustained visible fire exposure of the corresponding component area during the video processing period; the maximum visual fire response... E k,max Used to identify areas affected by short-duration intense flames or high-confidence smoke.
[0066] It can be seen that the duration of fire exposure can be determined based on the number of frames in which the corresponding component area continuously meets the fire positive determination criteria: ; In the formula, t k For the first k The visible duration of fire exposure in each bridge component area; N k,+ The number of video frames that satisfy the positive determination condition in the component region; fv This refers to the video frame rate.
[0067] First, based on the maximum visual fire response E k,max Arranged from largest to smallest; when the maximum visual fire response is the same, arranged from largest to smallest according to the average visual fire index; when the average visual fire index is still the same, arranged according to the duration of visible fire. t k Arrange them from longest to shortest, and identify the bridge component areas that appear first in the order as priority inspection areas after a fire.
[0068] Step S8) Comprehensive assessment of the fire condition of components.
[0069] Obtain information on apparent damage, temperature, and structural response of components in priority inspection areas.
[0070] Component surface damage includes one or more of the following: concrete color change, cracks, spalling, powdering, aggregate exposure, steel component coating damage, residual deformation, and local buckling.
[0071] Temperature evidence includes one or more of the following: maximum component temperature, rate of heating, duration of high temperature, cooling rate, and spatial distribution of temperature.
[0072] Structural response information includes one or more of the following: component deflection, strain, stiffness change, residual deformation, interface slip, and vibration characteristic changes.
[0073] Visual observations, apparent damage to components, temperature evidence, and structural response are converted into corresponding state indicators, and the fire status level of the components is determined according to preset judgment rules.
[0074] In the absence of complete temperature and structural response data, component-level visual fire parameters are mainly used to screen suspected fire-damaged components and determine the priority of inspection, and are not directly used as the sole criterion for the actual temperature of the component or the degree of material damage; after obtaining on-site inspection or monitoring data, the fire status of the component is then comprehensively judged.
[0075] Finally, the fire target location, average visual fire index, maximum visual fire response, visible fire duration, component fire status level, and priority inspection order are mapped to the bridge's two-dimensional image or three-dimensional structural model, and the fire status of each component area is displayed with different colors, fill textures, marker sizes, or status labels.
[0076] The application of the above method in bridge fire scenarios was verified using 16 external videos, including 12 positive fire event samples and 4 negative samples without fire. The video scenarios included bridge fire, fire of vehicles or debris under the bridge, fire of construction scaffolding, bridge at night, bridge in fog, and highway in dense fog. Each video was input frame by frame into the FireBridge-YOLO model to obtain the bounding boxes, categories, and confidence scores for flames and smoke. Image-level confidence thresholding and a 5-frame sliding window were used for multi-frame event determination. Finally, continuously appearing flame or smoke targets were associated with bridge component areas.
[0077] For fires involving vehicles or debris under bridges, the fire targets are primarily associated with the space under the bridge and the bottom area of adjacent steel beams; for fires involving vehicles on the bridge deck, the fire targets are primarily associated with the bridge deck area and adjacent steel beam areas; for fires involving construction ancillary facilities, the fire targets are primarily associated with the scaffolding or temporary facility areas. Based on the average visual fire index, maximum visual fire response, and duration of each area, the system sorts the areas and outputs suspected directly affected areas, smoke-affected areas, and general inspection areas, thus providing a basis for determining the on-site inspection route and key inspection components after a fire.
[0078] The above detailed embodiments fully describe the entire process from bridge image acquisition, FireBridge-YOLO flame-smoke recognition, image-level and multi-frame event determination, spatial association of fire targets and bridge components, to component-level fire status parameterization and comprehensive evaluation. The above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the invention; any modifications, substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for visual detection of bridge fires and component-level fire condition assessment based on deep learning, characterized in that, Includes the following steps: Step S1: Acquire images or videos containing the bridge structure to be evaluated. Based on the bridge structure layout, component locations, and image acquisition perspective, divide the image or video frames into multiple bridge component regions. M k The bridge component area includes at least one of the following: steel beam area, concrete bridge deck area, bearing area, under-bridge space area, or construction ancillary facility area. Step S2: Input the image or video frame into the trained flame-smoke target detection model to obtain the fire target detection results in each frame. The fire target detection results include the target box, target category and detection confidence. The target category includes flame and smoke. Step S3: In the flame-smoke target detection model, a shallow small target detection branch and a lightweight channel attention module are set. The shallow small target detection branch is used to extract high-resolution features of distant small-scale flames and initial smoke. The lightweight channel attention module is used to adaptively weight the flame and smoke features of different channels to suppress non-fire features generated by night lights, vehicle lights, strong reflections, dense fog and complex backgrounds of bridges. Step S4: Based on the maximum detection confidence of flame and smoke targets in each frame, determine the image-level judgment results corresponding to the fire event, flame, and smoke, respectively; Step S5: Count the number of image-level positive judgments in consecutive video frames according to the preset sliding time window. When the number of positive frames in the sliding time window reaches the preset trigger number, the current sliding time window is determined as a fire positive event window, and the video-level fire event judgment result is determined according to whether the fire positive event window exists in the video. Step S6: Calculate the spatial overlap coefficient between each fire target box and each bridge component area. Based on the spatial overlap coefficient, associate the flame target and smoke target with the corresponding bridge component area. Combine the target category, detection confidence and spatial overlap coefficient to calculate the frame-by-frame visual fire response of each bridge component area. Step S7: Perform video temporal statistics on the frame-by-frame visual fire response to obtain the average visual fire index and maximum visual fire response of each bridge component area. Determine the post-fire inspection priority of different bridge component areas based on the average visual fire index, maximum visual fire response and visible fire duration. Combine the apparent damage of the components, temperature evidence or structural response information to determine the fire status level of the bridge components and the priority inspection area.
2. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 1, characterized in that, In step S1, images and videos of the bridge during or after the fire are acquired using fixed bridge monitoring equipment, drones, mobile terminals, or image acquisition equipment temporarily deployed around the bridge. The input image or video frame is subjected to scaling, distortion correction, brightness normalization, noise reduction or contrast enhancement to reduce image differences caused by different acquisition devices, lighting conditions and shooting distances; Based on the component outlines in the bridge design drawings, on-site measurements, or images, the bridge component areas are... M k Perform manual calibration, semi-automatic calibration, or automatic calibration based on image segmentation models; Among them, the k The bridge component area is represented as follows: ; In the formula, M k For the first k The set of pixels of a bridge component or region of interest in the image coordinate system; x , y These are the horizontal and vertical coordinates of the image pixels, respectively.
3. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 1, characterized in that, The flame-smoke target detection model is a FireBridge-YOLO model built on YOLOv8n, which includes a backbone feature extraction network, a feature fusion network, and a multi-scale target detection network. The backbone feature extraction network outputs P2, P3, P4 and P5 multi-scale features; An ECA lightweight channel attention module is set after at least one feature layer of the P2, P3, P4 and P5 multi-scale features; The shallow features of P2 are input into the feature fusion network, and a small target detection head corresponding to the shallow features of P2 is set so that the multi-scale target detection network simultaneously includes Detect P2, Detect P3, Detect P4 and Detect P5 detection branches; The FireBridge-YOLO model detects both flames and smoke, and is trained on a training dataset that includes images of flames, smoke, flames and smoke together, and images with no fire background. For the t The frame image, the fire target detection result is represented as: ; In the formula, D t For the first t A collection of fire target detection results from frame images; b i,t For the first t The first frame of the image i The target frame for each fire target; c i,t For the first i The target category of the fire target; s i,t The corresponding detection confidence level; n t For the first t Number of fire targets in the frame image.
4. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 3, characterized in that, The ECA lightweight channel attention module for the first l Channel weights are recalibrated on the layer feature maps; No. l The layer feature map is represented as: ; In the formula, F l For the first l Layer input feature map; C l The number of channels in the feature map; H l and W l These are the height and width of the feature map, respectively; Perform global average pooling on the feature map to obtain the first... c The channel descriptions for each channel are: ; In the formula, z l ( c ) represents the first feature map in the l-th layer. c The global descriptor of each channel; F l ( c , h , w ) is the first c Coordinates in each channel ( h , w The eigenvalue at () is a position; One-dimensional convolution is used to establish local interaction relationships between adjacent channels, and the channel attention weights are obtained through the Sigmoid function. ; In the formula, α l For the first l Channel attention weight vectors for layer features; Conv1D ke The kernel size is ke One-dimensional convolution operation; σ (·) is the Sigmoid activation function; The original feature map is weighted according to the channel attention weights to obtain attention-enhanced features: ; In the formula, This is the feature map after attention enhancement; α l ( c ) is the first c Attention weights corresponding to each channel.
5. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 4, characterized in that, The construction of the P2 shallow small target detection branch includes the following steps: The P2 shallow features output by the backbone feature extraction network are introduced into the feature fusion network and fused with the features obtained by upsampling the deep features; A Detect P2 head is set after the fused P2 features, and together with the Detect P3, Detect P4 and Detect P5 heads, it outputs multi-scale detection results: ; In the formula, Y This is the multi-scale detection output of the FireBridge-YOLO model; Y P2 This is the output of the P2 shallow small target detection branch, mainly used to identify small flames at a distance, local fire sources under bridges, and initial smoke. Y P3 , Y P4 and Y P5 The detection outputs are for small-to-medium scale, medium-scale, and large-scale fire targets, respectively. The downsampling ratios of the P2, P3, P4, and P5 feature layers relative to the input image are 1 / 4, 1 / 8, 1 / 16, and 1 / 32, respectively.
6. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 5, characterized in that, The image-level determination and multi-frame event determination in steps S4 and S5 include: For the t Frame image, defined as task type: ; Wherein, "event" represents the fire event recognition task; "fire" represents the visible flame recognition task; and "smoke" represents the smoke recognition task. Get the t Task type in frame q The corresponding maximum detection confidence s q,t Image-level binary determination results y q,t Represented as: ; In the formula, τ q For task type q The corresponding image-level confidence threshold; y q,t =1 indicates the first t Frame in task type q The following is a positive result; y q,t =0 indicates the first t Frame in task type q The following is negative; Set the length to n w The sliding time window and the minimum number of positive frames required to trigger the event. n p , No. t Multi-frame determination results corresponding to frames A q,t Represented as: ; When there is at least one in the video A q,t When =1, the video is judged as positive under task type q, that is: ; In the formula, V q This is the result of a video-level event determination. The length of the sliding time window n w Minimum number of positive frames n p The image-level confidence thresholds for fire events, flames, and smoke are predetermined based on the video frame rate, application scenario, and validation set detection results.
7. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 1 or 6, characterized in that, The fire visual recognition result is parameterized as follows: ; In the formula, e f Indicate whether there is a fire incident in the video; f f Indicates whether a visible flame exists; s f Indicates whether visible smoke is present; Ω v Indicates the visible fire area in an image or video; t s and t e These represent the start and end times of a visible fire event, respectively. τ v Indicates the duration of a visible fire event; s max This indicates the confidence level of the largest fire event in the video; The bridge fire scenario is parameterized as follows: ; In the formula, x f The location of the fire along the longitudinal direction of the bridge; l f The length of the fire-affected area along the longitudinal direction of the bridge; Γ f The fire-exposed surface of bridge components or the fire-exposed location of spaces; χ f Fire scene type; The fire scenario types include one or more of the following: bridge deck fire, bridge under fire, simultaneous fire on the bridge deck and under the bridge, fire on construction ancillary facilities, and fire on vehicles or piles of materials around the bridge. The parameters of the bridge fire scene are determined by one or more of the following: fire visual recognition results, accident records, and on-site investigation information.
8. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 7, characterized in that, In step S6, the spatial association between the fire target and the bridge components includes: For the t The first frame i Fire target box b i,t and the k Bridge component area M k The spatial overlap coefficient is calculated as follows: ; In the formula, ρ i,k,t For the first i The fire target box and the first k Spatial overlap coefficient between bridge component regions; | b i,t ∩ M k | is the overlapping area between the fire target frame and the bridge component area; | b i,t | represents the area of the fire target frame; Based on the detection confidence level, target category, and spatial overlap coefficient, calculate the first... k The bridge component area in the first t Visual fire response of the frame: ; In the formula, E k,t For the first k The bridge component area in the first t The visual response to fire in the frame; si , t For the first i Detection confidence level of individual fire targets; w ci,t For target category c i,t Corresponding category weights; ρ i,k,t The spatial overlap coefficient between the fire target frame and the bridge component area; Category weights of fire targets w fire =1, the class weight of the smoke target. w smoke =λ, the weighting correction coefficient for smoke targets relative to fire targets. λ It should satisfy 0 < λ <1.
9. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 8, characterized in that, The component-level average visual fire index and maximum visual fire response in step S7 are expressed as follows: ; ; In the formula, For the first k Average visual fire index of each bridge component area during the video processing period; E k,max For the first k The maximum visual fire response of each bridge component area during the video processing period; E k,t No. k The bridge component area in the first t The visual response to fire in the frame; T The total number of video frames included in the statistics; The average visual fire index is used to characterize the degree of continuous visible fire exposure of bridge component areas during the video processing period. The maximum visual fire response E k,max Used to characterize the degree of short-term intense flame or high-confidence smoke effect on bridge component areas; According to the maximum visual fire response E k,max The first sorting order is determined by ranking from largest to smallest. When two or more bridge components or areas of concern have the same maximum visual fire response, the second sorting order is determined by ranking from largest to smallest average visual fire index. When the average visual fire index is still the same, the order is determined by the duration of visible fire exposure. τ k The third sorting order was determined from longest to shortest, and the bridge component areas ranked highest were designated as priority areas for post-fire inspection. This indicates the duration of the fire. τ k It can be represented as: ; In the formula, N k,+ For the first k The number of video frames in each area that meet the criteria for a positive fire test; f v This refers to the video frame rate.
10. The method for visual detection of bridge fires and component-level fire status assessment based on deep learning according to claim 9, characterized in that, By inputting one or more of the following into the preset fire condition judgment rules: component-level visual fire parameters, component apparent damage, temperature evidence, and structural response information, the fire condition level of the bridge component is determined. The component-level visual fire parameters include one or more of the following: whether flames are detected, whether smoke is detected, the degree of spatial overlap between the target box and the component area, the duration of visible fire exposure, the average visual fire exposure index, and the maximum visual fire exposure response. Based on the fire condition level, average visual fire index, and maximum visual fire response, a component-level fire condition distribution is generated, and the fire condition of bridge components and priority inspection order are displayed by color, fill texture, marker size, or status label.
