A forest fire line positioning method and system based on dual-optical image and multi-source elevation depth constraint

By employing a dual-light image and multi-source elevation and depth constraint method, the problem of unstable fire line mask in forest fire line detection is solved, enabling continuous fire line positioning and reliable fire line contour generation in complex environments. This method is applicable to fire line situation maps and firefighting route planning.

CN123160661APending Publication Date: 2026-11-24NORTHEAST FORESTRY UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611311857.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing forest fire detection schemes struggle to reliably obtain continuous fire line masks when visible light and thermal infrared images are misaligned, forest smoke obscures the fire, and flame color changes occur. Furthermore, when UAVs operate in low-altitude mountainous areas, they suffer from horizontal offsets caused by terrain elevation fluctuations and a lack of stable backtracking due to the absence of local LiDAR depth points.

Method used

A method based on dual-light images and multi-source elevation and depth constraints is adopted. By synchronizing multi-source images and telemetry data in time, and combining temperature gating of visible light and thermal infrared images, adaptive flame color constraints and LiDAR depth point clouds, a continuous outer contour of the fire line is generated and a polygon approximation is performed, and GeoJSON polygons are output.

Benefits of technology

It enables stable positioning of forest fire lines in complex environments, reduces false alarms in cold scenes and non-fire heat sources, adapts to UAV telemetry and camera status, outputs auditable fire line positioning results, and supports fire line situation maps and firefighting route planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160661A_ABST
    Figure CN123160661A_ABST
Patent Text Reader

Abstract

This invention relates to a forest fire line location method and system based on dual-light imagery and multi-source elevation and depth constraints, belonging to the field of forest fire line monitoring technology. It addresses the problem of reliably obtaining continuous fire line masks usable for geographic location. The invention acquires multi-source images and telemetry data; extracts fire zone instance masks and merges them into an initial visible light fire zone mask; analyzes images with temperature context and performs temperature gating judgment processing, then performs thermal infrared multi-feature extraction processing to obtain thermal infrared high-temperature candidate masks; generates an adaptive flame color mask; obtains a fused fire line mask; extracts the outer contour of the fire line and approximates it into a polygon according to the arc length ratio of the outer contour, obtaining a sparse fire line boundary pixel set; transforms it to a NED local coordinate system ray to obtain the sparse fire line boundary in the NED local coordinate system; extracts the geographic coordinate fire line trajectory, and outputs the forest fire line location result based on dual-light imagery and multi-source elevation and depth constraints. This invention provides accurate monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of forest fire monitoring technology, specifically relating to a forest fire line location method and system based on dual-light images and multi-source elevation and depth constraints. Background Technology

[0002] Existing forest fire detection solutions mostly output fire points, smoke frames, or segmented areas, lacking continuous geographical trajectories of the outer boundaries of fire lines suitable for firefighting. Visible light and thermal infrared images differ in field of view, focal length, optical axis, and real-time image cropping; simple pixel overlay easily leads to ghosting, missed detections, or overexpansion of fire line boundaries. Thermal infrared images, in cold scenes, exposed rocks, vehicle roofs, chimneys, and other non-heat sources, can easily mistake "relatively hottest areas" for fire zones; traditional fixed thresholds or single clustering lack temperature context gating. When drones operate at low altitudes in mountainous areas, flat-ground projections exhibit significant horizontal shifts due to terrain elevation variations; single DEM projections cannot utilize local LiDAR depth points and lack stable backoff mechanisms for missing data. Engineering systems often implement image recognition, geographic projection, result format, confidence level, and operational status separately, making it difficult to explain the coordinate source, positioning mode, and result reliability to the front-end and firefighting platform. Summary of the Invention

[0003] The problem this invention aims to solve is to stably obtain a continuous fire line mask that can be used for geographic positioning under conditions of spatial misalignment between visible light and thermal infrared, smoke obscuring forest areas, and changes in flame color. It proposes a forest fire line positioning method and system based on dual-light images and multi-source elevation and depth constraints.

[0004] To achieve the above objectives, the present invention provides the following technical solution:

[0005] A forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints includes the following steps:

[0006] S1. Acquire multi-source images and telemetry data, perform time synchronization and working resolution alignment processing to obtain a synchronization processing unit. The synchronization processing unit includes synchronized visible light images, synchronized thermal infrared images, size mapping relationships, and synchronized UAV telemetry data.

[0007] S2. Input the synchronized visible light image obtained in step S1 into the pre-trained visible light flame or smoke instance segmentation model, extract one or more fire zone instance masks, and then merge them into the initial visible light fire zone mask;

[0008] S3. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context; if the temperature context exists, perform temperature gating judgment processing, and if the temperature gating judgment is passed, or if the temperature context does not exist, perform thermal infrared multi-feature extraction processing on the synchronized thermal infrared image to obtain thermal infrared high temperature candidate mask, and if the temperature gating judgment is not passed, output empty hot area mask.

[0009] S4. Overlay the initial visible light fire zone mask obtained in step S2 onto the synchronized visible light image in step S1, extract the visible light pixels covered by the mask as samples to extract the HSV threshold range, and then apply the HSV threshold range to the synchronized visible light image to generate an adaptive flame color mask.

[0010] S5. The visible light initial fire zone mask obtained in step S2, the thermal infrared high temperature candidate mask or empty hot zone mask obtained in step S3, and the adaptive flame color mask obtained in step S4 are fused to obtain the fused fire line mask.

[0011] S6. Based on the fused fireline mask obtained in step S5, extract the outer contour of the fireline and approximate it into a polygon according to the arc length ratio of the outer contour of the fireline to obtain a sparse fireline boundary pixel set.

[0012] S7. For the sparse fire line boundary pixel set obtained in step S6, analyze the UAV's latitude and longitude, altitude, relative altitude, body attitude, gimbal attitude, camera intrinsic parameters, distortion coefficient, zoom ratio, infrared zoom ratio, and real-time image cropping area. Then, convert the sparse fire line boundary pixels into camera coordinate system rays, and then convert them into NED local coordinate system rays to obtain the sparse fire line boundary in the NED local coordinate system.

[0013] S8. For the sparse fire line boundary in the NED local coordinate system obtained in step S7, determine the projection priority based on the availability of LiDAR depth, DEM / DSM or flat terrain assumption, obtain the geographic coordinate fire line trajectory, and output the forest fire line location result based on dual-light image and multi-source elevation and depth constraints.

[0014] Furthermore, step S1 includes visible light images, thermal infrared images, composite video frames, UAV telemetry data, DEM / DSM data, and LiDAR point cloud data collected by the UAV during forest fire patrol, suspected fire area verification, or fire reconnaissance. Visible light images are used to provide information on the appearance, texture, and edges of flames; thermal infrared images are used to provide information on high temperature anomalies; UAV telemetry data is used to provide latitude and longitude, altitude, gimbal attitude, aircraft attitude, zoom ratio, and temperature context; DEM / DSM and LiDAR data are used for subsequent spatial positioning; if the input is a composite video frame, it is split into a visible light region and a thermal infrared region according to a preset left-right split ratio.

[0015] The working resolution is determined by the following formula:

[0016]

[0017] in, and These represent the height and width of the acquired visible light image, respectively. As a maximum side length constraint, and These are the working resolutions for height and width, respectively; min is the minimization function, and round is the rounding function.

[0018] Furthermore, the pre-trained visible light flame or smoke instance segmentation model in step S2 adopts the YOLO series instance segmentation structure, including a backbone network for feature extraction, a neck network for multi-scale feature fusion, and a segmentation head for mask prediction and category confidence output.

[0019] Furthermore, the specific implementation method of step S3 includes the following steps:

[0020] S3.1. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context, including the global maximum and minimum temperature of thermal infrared, gain mode, and palette status.

[0021] S3.2. Parse the temperature context and perform temperature gating judgment. First, calculate the temperature difference:

[0022]

[0023] in, For temperature difference, This is the highest temperature globally in thermal infrared radiation. The lowest temperature globally in thermal infrared.

[0024] The gating decision is as follows:

[0025]

[0026] in, This is a temperature-gated blocking condition. The result is that the temperature gating has passed. This indicates that the temperature gating decision has been passed. This indicates that the temperature gating decision was not passed; The minimum temperature difference threshold, This is the redundancy temperature relative to the fire temperature threshold; if The parser does not exist; follow the instructions. Processing, T fire Fire temperature threshold;

[0027] S3.3. For those that pass the temperature gating judgment, perform multi-feature extraction processing on the synchronized thermal infrared image. First, perform quantile cropping and optional Gaussian filtering on the synchronized thermal infrared image; then, use the MiniBatch K-means clustering model to perform unsupervised clustering on the pixel features. The clustering model includes an input feature matrix, cluster centers, a category predictor, and a fire zone category scorer. The technical parameters set include the number of clusters, the maximum number of training samples, the batch size, the number of initializations, the maximum number of iterations, the minimum fire zone score, the score margin, the size of the morphological opening and closing operation kernel, the minimum connected component area, and the maximum number of connected components to be retained; then, select high-temperature candidate categories based on the fire zone score of the cluster categories, and form a thermal infrared high-temperature candidate mask after morphological cleaning.

[0028] S3.4. Then, output the empty hot zone mask if the temperature gating is not passed.

[0029] Furthermore, in step S4, the visible light pixels covered by the extracted mask are used as samples to extract the HSV threshold range, including statistical HSV hue, saturation and brightness distribution; if the number of samples is insufficient, the preset red-orange range is used as the HSV threshold range.

[0030] Furthermore, in step S5, during fusion, the initial visible light fire zone mask is used as the anchor point, and thermal infrared region expansion is performed within the visible light neighborhood. The expansion fusion rule is as follows:

[0031]

[0032]

[0033] in, Represents the binary mask for the initial fire zone in visible light; Represents the binary mask for the hot zone. This represents an adaptive flame color binary mask; This represents the merged Fireline binary mask; This represents a local expansion region located outside the initial visible light fire zone that simultaneously satisfies thermal anomaly, visible light neighborhood, and adaptive flame color constraints. This indicates that a morphological closing operation is performed on the input mask using a preset structuring element. This indicates that the input mask is morphologically expanded using a preset structuring element; Near indicates the range of the initial visible light fire zone after neighborhood expansion. Indicates negation; This represents the mask intersection operation. This indicates the mask union operation.

[0034] Furthermore, the calculation formula for converting sparse fireline boundary pixels into camera coordinate system rays and then into NED local coordinate system rays in step S7 is as follows:

[0035]

[0036]

[0037] in, and These represent the horizontal and vertical normalized coordinates of the i-th fireline boundary pixel after principal point centering, focal length normalization, and distortion correction, respectively. Represents normalized coordinates; Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the camera coordinate system; This represents the third-order extrinsic rotation matrix from the camera coordinate system to the UAV body coordinate system; This represents a third-order rotation matrix constructed based on the gimbal's yaw, pitch, and roll angles, which transforms the orientation of the body coordinate system to the NED local coordinate system. Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the NED local coordinate system; and These represent the northward, eastward, and groundward components of the unit ray, respectively. Represents the transpose of a matrix or vector.

[0038] Furthermore, the specific implementation method of step S8 includes the following steps:

[0039] S8.1. Determine whether the current fire line contour point of the sparse fire line boundary in the NED local coordinate system obtained in step S7 is hit within the LiDAR pixel depth lookup table or neighborhood search radius. If it is hit, map the hit current fire line contour point to latitude, longitude and altitude coordinates and record the LiDAR hit status. If it is not hit, proceed to the next step.

[0040] S8.2. Determine if the DEM / DSM is available; for current fireline contour points that do not match LiDAR depth data. Using the points obtained in step S7 that correspond to the current fireline contour The corresponding NED local coordinate system unit ray Perform surface intersection iterations, query DEM / DSM elevations based on temporary latitude and longitude, and update the ray scale based on the queried elevations until the elevation change or ray scale change meets the preset convergence conditions, and output the corresponding longitude, latitude, and altitude coordinates; if the convergence conditions are not met, continue the next iteration using the updated elevations;

[0041] S8.3. Determine the availability of the flat ground assumption for projection. Using the relative altitude of the UAV, the measured ground elevation, or the preset ground elevation as the flat ground assumption, intersect the fireline pixel ray with the plane and output two-dimensional or three-dimensional approximate coordinates.

[0042] S8.4. Statistical analysis of the latitude, longitude and altitude coordinates of the current fire line contour points output in steps S8.1-S8.3, recording the positioning mode used for each current fire line contour point, and statistically analyzing the effective projection ratio, altitude point ratio, LiDAR hit rate and backtracking ratio to obtain the forest fire line positioning results based on dual-light images and multi-source elevation and depth constraints.

[0043] A system for locating forest fire lines based on dual-light images and multi-source elevation and depth constraints includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed, it implements the steps of the forest fire line location method based on dual-light images and multi-source elevation and depth constraints.

[0044] The beneficial effects of this invention are:

[0045] The forest fire line localization method based on dual-light images and multi-source elevation and depth constraints described in this invention expands from "fire point detection" to "fire line contour localization". This invention does not merely output the fire point center, detection box, or coarsely segmented region, but extracts the outer contour from the fused fire area mask and generates continuous GeoJSON polygons, which can directly serve fire line situation maps, firefighting route planning, and fire boundary verification.

[0046] This invention presents a forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints, reducing false alarms in cold scenes and from non-fire heat sources. A pre-gating mechanism is established using the global highest and lowest temperature and gain modes of thermal infrared, eliminating the forced selection of the hottest cluster in cold frames. Even when temperature context is missing, unsupervised candidate selection is still performed using brightness, luminance, warm hue, temperature-color difference, and comprehensive heat score.

[0047] This invention presents a forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints, which balances the fine boundaries of visible light and the smoke-penetrating capabilities of thermal infrared. Visible light instance segmentation provides reliable anchor points, thermal infrared candidates provide thermal anomaly cues less affected by smoke and shadows, and adaptive flame color constraints limit the expansion of irrelevant heat sources. Together, these three elements form a local anchoring and expansion fusion.

[0048] This invention presents a forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints, adaptable to actual UAV telemetry and camera status. The system supports engineering fields such as absolute altitude, relative altitude, measured ground elevation, gimbal absolute angle, aircraft-to-gimbal angle, pixel intrinsic parameters, distortion coefficient, zoom ratio, infrared zoom, and real-time image cropping area, reducing projection errors caused by differences in telemetry formats.

[0049] This invention presents a forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints, which provides more robust multi-source elevation and depth localization. The system prioritizes using LiDAR point clouds to establish a lookup table from pixels to 3D coordinates, iterates back to the DEM / DSM for missed points, and backslides to flat ground projection for scenes without elevation sources, enabling the algorithm to work continuously under high-load, normal-load, and offline testing environments.

[0050] The forest fire line location method based on dual-light imagery and multi-source elevation and depth constraints described in this invention outputs auditable and maintainable data. The GeoJSON metadata includes projection mode, effective projection ratio, elevation point ratio, LiDAR hit rate, thermal infrared gating status, missing telemetry fields, and fusion rules, which the front-end and command platform can use to determine coordinate reliability. Attached Figure Description

[0051] Figure 1 This is a flowchart of a forest fire line localization method based on dual-light images and multi-source elevation and depth constraints, as described in this invention. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only for explaining the invention and are not intended to limit the invention; that is, the described specific embodiments are merely a part of the embodiments of the invention, and not all of them. The components of the specific embodiments of the invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations, and the invention may also have other embodiments.

[0053] Therefore, the following detailed description of specific embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected specific embodiments of the invention. All other specific embodiments obtained by those skilled in the art based on these specific embodiments without inventive effort are within the scope of protection of this invention.

[0054] To further understand the invention's content, features, and effects, the following specific embodiments are provided, along with accompanying drawings. Figure 1Detailed explanation is as follows:

[0055] Example 1:

[0056] A forest fire line localization method based on dual-light imagery and multi-source elevation and depth constraints includes the following steps:

[0057] S1. Acquire multi-source images and telemetry data, perform time synchronization and working resolution alignment processing to obtain a synchronization processing unit. The synchronization processing unit includes synchronized visible light images, synchronized thermal infrared images, size mapping relationships, and synchronized UAV telemetry data.

[0058] Furthermore, step S1 includes visible light images, thermal infrared images, composite video frames, UAV telemetry data, DEM / DSM data, and LiDAR point cloud data collected by the UAV during forest fire patrol, suspected fire area verification, or fire reconnaissance. Visible light images are used to provide information on the appearance, texture, and edges of flames; thermal infrared images are used to provide information on high temperature anomalies; UAV telemetry data is used to provide latitude and longitude, altitude, gimbal attitude, aircraft attitude, zoom ratio, and temperature context; DEM / DSM and LiDAR data are used for subsequent spatial positioning; if the input is a composite video frame, it is split into a visible light region and a thermal infrared region according to a preset left-right split ratio.

[0059] The working resolution is determined by the following formula:

[0060]

[0061] in, and These represent the height and width of the acquired visible light image, respectively. As a maximum side length constraint, and These are the working resolutions for height and width, respectively; min is the minimization function, and round is the rounding function.

[0062] S2. Input the synchronized visible light image obtained in step S1 into the pre-trained visible light flame or smoke instance segmentation model, extract one or more fire zone instance masks, and then merge them into the initial visible light fire zone mask;

[0063] Furthermore, the pre-trained visible light flame or smoke instance segmentation model in step S2 adopts the YOLO series instance segmentation structure, including a backbone network for feature extraction, a neck network for multi-scale feature fusion, and a segmentation head for mask prediction and category confidence output.

[0064] Furthermore, one or more fire zone instance masks are output using model weights, category filtering conditions, confidence thresholds, intersection-over-union thresholds, and inference device parameters;

[0065] S3. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context; if the temperature context exists, perform temperature gating judgment processing, and if the temperature gating judgment is passed, or if the temperature context does not exist, perform thermal infrared multi-feature extraction processing on the synchronized thermal infrared image to obtain thermal infrared high temperature candidate mask, and if the temperature gating judgment is not passed, output empty hot area mask.

[0066] Furthermore, the specific implementation method of step S3 includes the following steps:

[0067] S3.1. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context, including the global maximum and minimum temperature of thermal infrared, gain mode, and palette status.

[0068] S3.2. Parse the temperature context and perform temperature gating judgment. First, calculate the temperature difference:

[0069]

[0070] in, For temperature difference, This is the highest temperature globally in thermal infrared radiation. The lowest temperature globally in thermal infrared.

[0071] The gating decision is as follows:

[0072]

[0073] in, This is a temperature-gated blocking condition. The result is that the temperature gating has passed. This indicates that the temperature gating decision has been passed. This indicates that the temperature gating decision was not passed; The minimum temperature difference threshold, This is the redundancy temperature relative to the fire temperature threshold; if The parser does not exist; follow the instructions. Processing, T fire Fire temperature threshold;

[0074] S3.3. For those that pass the temperature gating judgment, perform multi-feature extraction processing on the synchronized thermal infrared image. First, perform quantile cropping and optional Gaussian filtering on the synchronized thermal infrared image; then, use the MiniBatch K-means clustering model to perform unsupervised clustering on the pixel features. The clustering model includes an input feature matrix, cluster centers, a category predictor, and a fire zone category scorer. The technical parameters set include the number of clusters, the maximum number of training samples, the batch size, the number of initializations, the maximum number of iterations, the minimum fire zone score, the score margin, the size of the morphological opening and closing operation kernel, the minimum connected component area, and the maximum number of connected components to be retained; then, select high-temperature candidate categories based on the fire zone score of the cluster categories, and form a thermal infrared high-temperature candidate mask after morphological cleaning.

[0075] Furthermore, for grayscale heatmaps, normalized heat maps are replicated to form six-dimensional features; for pseudocolor heatmaps, they are converted to RGB, HSV, and Lab color spaces to construct features such as brightness, saturation, warm hue similarity, temperature difference, and overall heat score; for pseudocolor heatmaps, pixels... The feature vectors are:

[0076] ;

[0077] The overall popularity rating is:

[0078] ;

[0079] Clustering categories The fire zone rating is:

[0080]

[0081] in, , , , Representing categories Inside , , , The average value is used. Categories that meet the minimum fire zone score and whose difference from the highest-scoring category does not exceed a preset margin are retained, and then generated. .

[0082] S3.4. Then, output the empty hot zone mask if the temperature gating is not passed.

[0083] S4. Overlay the initial visible light fire zone mask obtained in step S2 onto the synchronized visible light image in step S1, extract the visible light pixels covered by the mask as samples to extract the HSV threshold range, and then apply the HSV threshold range to the synchronized visible light image to generate an adaptive flame color mask.

[0084] Furthermore, in step S4, the visible light pixels covered by the extracted mask are used as samples to extract the HSV threshold range, including statistical HSV hue, saturation and brightness distribution; if the number of samples is insufficient, the preset red-orange range is used as the HSV threshold range.

[0085] S5. The visible light initial fire zone mask obtained in step S2, the thermal infrared high temperature candidate mask or empty hot zone mask obtained in step S3, and the adaptive flame color mask obtained in step S4 are fused to obtain the fused fire line mask.

[0086] Furthermore, in step S5, during fusion, the initial visible light fire zone mask is used as the anchor point, and thermal infrared region expansion is performed within the visible light neighborhood. The expansion fusion rule is as follows:

[0087]

[0088]

[0089] in, Represents the binary mask for the initial fire zone in visible light; Represents the binary mask for the hot zone. This represents an adaptive flame color binary mask; This represents the merged Fireline binary mask; This represents a local expansion region located outside the initial visible light fire zone that simultaneously satisfies thermal anomaly, visible light neighborhood, and adaptive flame color constraints. This indicates that a morphological closing operation is performed on the input mask using a preset structuring element. This indicates that the input mask is morphologically expanded using a preset structuring element; Near indicates the range of the initial visible light fire zone after neighborhood expansion. Indicates negation; This represents the mask intersection operation. This represents the mask union operation;

[0090] Furthermore, when the temperature gate is passed, This is a candidate mask for high-temperature thermal infrared radiation. When the temperature gate fails, The above binary masks are all-zero masks with the same working resolution; each of the above binary masks has the same working resolution, wherein a pixel value of 1 or 255 indicates that the corresponding pixel belongs to the mask area, and a pixel value of 0 indicates that the corresponding pixel does not belong to the mask area. To fill the holes inside the area and connect adjacent areas; Represents the binary mask for the initial fire zone of visible light. The visible light neighborhood confinement mask obtained after neighborhood expansion; Indicates to Invert the pixel regions that are not covered by the initial fire zone binary mask of visible light.

[0091] S6. Based on the fused fireline mask obtained in step S5, extract the outer contour of the fireline and approximate it into a polygon according to the arc length ratio of the outer contour of the fireline to obtain a sparse fireline boundary pixel set; this step reduces the amount of output data and elevation iteration calculation while preserving the main geometric shape of the fireline contour.

[0092] S7. For the sparse fire line boundary pixel set obtained in step S6, analyze the UAV's latitude and longitude, altitude, relative altitude, body attitude, gimbal attitude, camera intrinsic parameters, distortion coefficient, zoom ratio, infrared zoom ratio, and real-time image cropping area. Then, convert the sparse fire line boundary pixels into camera coordinate system rays, and then convert them into NED local coordinate system rays to obtain the sparse fire line boundary in the NED local coordinate system.

[0093] Furthermore, the calculation formula for converting sparse fireline boundary pixels into camera coordinate system rays and then into NED local coordinate system rays in step S7 is as follows:

[0094]

[0095]

[0096] in, and These represent the horizontal and vertical normalized coordinates of the i-th fireline boundary pixel after principal point centering, focal length normalization, and distortion correction, respectively. Represents normalized coordinates; Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the camera coordinate system; This represents the third-order extrinsic rotation matrix from the camera coordinate system to the UAV body coordinate system; This represents a third-order rotation matrix constructed based on the gimbal's yaw, pitch, and roll angles, which transforms the orientation of the body coordinate system to the NED local coordinate system. Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the NED local coordinate system; and These represent the northward, eastward, and groundward components of the unit ray, respectively. Represents the transpose of a matrix or vector.

[0097] S8. For the sparse fire line boundary in the NED local coordinate system obtained in step S7, determine the projection priority based on the availability of LiDAR depth, DEM / DSM or flat terrain assumption, obtain the geographic coordinate fire line trajectory, and output the forest fire line location result based on dual-light image and multi-source elevation and depth constraints.

[0098] Furthermore, the specific implementation method of step S8 includes the following steps:

[0099] S8.1. Determine whether the current fire line contour point of the sparse fire line boundary in the NED local coordinate system obtained in step S7 is hit within the LiDAR pixel depth lookup table or neighborhood search radius. If it is hit, map the hit current fire line contour point to latitude, longitude and altitude coordinates and record the LiDAR hit status. If it is not hit, proceed to the next step.

[0100] S8.2. Determine if the DEM / DSM is available; for current fireline contour points that do not match LiDAR depth data. Using the points obtained in step S7 that correspond to the current fireline contour The corresponding NED local coordinate system unit ray Perform surface intersection iterations, query DEM / DSM elevations based on temporary latitude and longitude, and update the ray scale based on the queried elevations until the elevation change or ray scale change meets the preset convergence conditions, and output the corresponding longitude, latitude, and altitude coordinates; if the convergence conditions are not met, continue the next iteration using the updated elevations;

[0101] Furthermore, the DEM / DSM iterative projection... The ray scale factor for the next iteration is:

[0102] ;

[0103] Therefore, the temporary latitude and longitude are calculated:

[0104] ;

[0105] Querying the elevation source yields the first The surface elevation of the next iteration. When the difference between two adjacent surface elevations is less than the preset convergence threshold, or the change in the ray scale factor between two adjacent iterations is less than the preset scale threshold, the iteration stops and the current longitude, latitude and elevation are output.

[0106] S8.3. Determine the availability of the flat ground assumption for projection. Using the relative altitude of the UAV, the measured ground elevation, or the preset ground elevation as the flat ground assumption, intersect the fireline pixel ray with the plane and output two-dimensional or three-dimensional approximate coordinates.

[0107] S8.4. Statistical analysis of the latitude, longitude and altitude coordinates of the current fire line contour points output in steps S8.1-S8.3, recording the positioning mode used for each current fire line contour point, and statistically analyzing the effective projection ratio, altitude point ratio, LiDAR hit rate and backtracking ratio to obtain the forest fire line positioning results based on dual-light images and multi-source elevation and depth constraints.

[0108] Furthermore, a geographic coordinate fireline trajectory is generated. The located fireline contour points are organized into a WGS84 coordinate sequence or polygon trajectory, preserving the contour order, coordinate dimensions, and elevation information. GeoJSON, a preview image, and confidence metadata are output. The fireline trajectory is encapsulated into a GeoJSON FeatureCollection, and confidence metadata such as overlay preview image, fusion rules, temperature gating status, infrared context, missing telemetry fields, projection mode, effective projection ratio, elevation point ratio, and LiDAR hit statistics are output synchronously.

[0109] Example 2:

[0110] A system for locating forest fire lines based on dual-light images and multi-source elevation-depth constraints includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed, it implements the steps of the forest fire line location method based on dual-light images and multi-source elevation-depth constraints as described in any one of claims 1-8.

[0111] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0112] Although this application has been described above with reference to specific embodiments, various modifications can be made and components can be replaced with equivalents without departing from the scope of this application. In particular, as long as there is no structural conflict, the features in the specific embodiments disclosed in this application can be combined with each other in any way. The lack of an exhaustive description of these combinations in this specification is merely for the sake of brevity and resource conservation. Therefore, this application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A forest fire line positioning method based on dual-optical image and multi-source elevation depth constraint, characterized in that, Includes the following steps: S1. Acquire multi-source images and telemetry data, perform time synchronization and working resolution alignment processing to obtain a synchronization processing unit. The synchronization processing unit includes synchronized visible light images, synchronized thermal infrared images, size mapping relationships, and synchronized UAV telemetry data. S2. Input the synchronized visible light image obtained in step S1 into the pre-trained visible light flame or smoke instance segmentation model, extract one or more fire zone instance masks, and then merge them into the initial visible light fire zone mask; S3. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context; if the temperature context exists, perform temperature gating judgment processing, and if the temperature gating judgment is passed, or if the temperature context does not exist, perform thermal infrared multi-feature extraction processing on the synchronized thermal infrared image to obtain thermal infrared high temperature candidate mask, and if the temperature gating judgment is not passed, output empty hot area mask. S4. Overlay the initial visible light fire zone mask obtained in step S2 onto the synchronized visible light image in step S1, extract the visible light pixels covered by the mask as samples to extract the HSV threshold range, and then apply the HSV threshold range to the synchronized visible light image to generate an adaptive flame color mask. S5. The visible light initial fire zone mask obtained in step S2, the thermal infrared high temperature candidate mask or empty hot zone mask obtained in step S3, and the adaptive flame color mask obtained in step S4 are fused to obtain the fused fire line mask. S6. Based on the fused fireline mask obtained in step S5, extract the outer contour of the fireline and approximate it into a polygon according to the arc length ratio of the outer contour of the fireline to obtain a sparse fireline boundary pixel set. S7. For the sparse fire line boundary pixel set obtained in step S6, analyze the UAV's latitude and longitude, altitude, relative altitude, body attitude, gimbal attitude, camera intrinsic parameters, distortion coefficient, zoom ratio, infrared zoom ratio, and real-time image cropping area. Then, convert the sparse fire line boundary pixels into camera coordinate system rays, and then convert them into NED local coordinate system rays to obtain the sparse fire line boundary in the NED local coordinate system. S8. For the sparse fire line boundary in the NED local coordinate system obtained in step S7, determine the projection priority based on the availability of LiDAR depth, DEM / DSM or flat terrain assumption, obtain the geographic coordinate fire line trajectory, and output the forest fire line location result based on dual-light image and multi-source elevation and depth constraints.

2. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 1, characterized in that, Step S1 includes visible light images, thermal infrared images, composite video frames, UAV telemetry data, DEM / DSM data, and LiDAR point cloud data collected by the UAV during forest fire patrol, suspected fire area verification, or fire reconnaissance. Visible light images are used to provide information on the appearance, texture, and edges of flames; thermal infrared images are used to provide information on high temperature anomalies; UAV telemetry data is used to provide latitude and longitude, altitude, gimbal attitude, aircraft attitude, zoom ratio, and temperature context; DEM / DSM and LiDAR data are used for subsequent spatial positioning; if the input is a composite video frame, it is split into a visible light region and a thermal infrared region according to a preset left-right split ratio. The working resolution is determined by the following formula: in, and These represent the height and width of the acquired visible light image, respectively. As a maximum side length constraint, and These are the working resolutions for height and width, respectively; min is the minimization function, and round is the rounding function.

3. A forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 1 or 2, characterized in that, The pre-trained visible light flame or smoke instance segmentation model in step S2 adopts the YOLO series instance segmentation structure, including a backbone network for feature extraction, a neck network for multi-scale feature fusion, and a segmentation head for mask prediction and class confidence output.

4. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 3, characterized in that, The specific implementation method of step S3 includes the following steps: S3.

1. Based on the synchronized thermal infrared image or synchronized UAV telemetry data obtained in step S1, parse the temperature context, including the global maximum and minimum temperature of thermal infrared, gain mode, and palette status. S3.

2. Parse the temperature context and perform temperature gating judgment. First, calculate the temperature difference: in, For temperature difference, This is the highest temperature globally in thermal infrared radiation. The lowest temperature globally in thermal infrared. The gating decision is as follows: in, This is a temperature-gated blocking condition. The result is that the temperature gating has passed. This indicates that the temperature gating decision has been passed. This indicates that the temperature gating decision was not passed; The minimum temperature difference threshold, This is the redundancy temperature relative to the fire temperature threshold; if The parser does not exist; follow the instructions. Processing, T fire Fire temperature threshold; S3.

3. For those that pass the temperature gating judgment, perform multi-feature extraction processing on the synchronized thermal infrared image. First, perform quantile cropping and optional Gaussian filtering on the synchronized thermal infrared image; then, use the MiniBatch K-means clustering model to perform unsupervised clustering on the pixel features. The clustering model includes an input feature matrix, cluster centers, a category predictor, and a fire zone category scorer. The technical parameters set include the number of clusters, the maximum number of training samples, the batch size, the number of initializations, the maximum number of iterations, the minimum fire zone score, the score margin, the size of the morphological opening and closing operation kernel, the minimum connected component area, and the maximum number of connected components to be retained; then, select high-temperature candidate categories based on the fire zone score of the cluster categories, and form a thermal infrared high-temperature candidate mask after morphological cleaning. S3.

4. Then, output the empty hot zone mask if the temperature gating is not passed.

5. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 4, characterized in that, In step S4, the visible light pixels covered by the extraction mask are used as samples to extract the HSV threshold range, including statistical HSV hue, saturation and brightness distribution; if the number of samples is insufficient, the preset red-orange range is used as the HSV threshold range.

6. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 5, characterized in that, In step S5, during fusion, the initial visible light fire zone mask is used as the anchor point, and thermal infrared region expansion is performed within the visible light neighborhood. The expansion fusion rule is as follows: in, Represents the binary mask for the initial fire zone in visible light; Represents the binary mask for the hot zone. This represents an adaptive flame color binary mask; This represents the merged Fireline binary mask; This represents a local expansion region located outside the initial visible light fire zone that simultaneously satisfies thermal anomaly, visible light neighborhood, and adaptive flame color constraints. This indicates that a morphological closing operation is performed on the input mask using a preset structuring element. This indicates that the input mask is morphologically expanded using a preset structuring element; Near indicates the range of the initial visible light fire zone after neighborhood expansion. Indicates negation; This represents the mask intersection operation. This indicates the mask union operation.

7. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 6, characterized in that, The formula for calculating the conversion of sparse fireline boundary pixels into camera coordinate system rays and then into NED local coordinate system rays in step S7 is as follows: in, and These represent the horizontal and vertical normalized coordinates of the i-th fireline boundary pixel after principal point centering, focal length normalization, and distortion correction, respectively. Represents normalized coordinates; Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the camera coordinate system; This represents the third-order extrinsic rotation matrix from the camera coordinate system to the UAV body coordinate system; This represents a third-order rotation matrix constructed based on the gimbal's yaw, pitch, and roll angles, which transforms the orientation of the body coordinate system to the NED local coordinate system. Represents the three-dimensional unit ray of the i-th fireline boundary pixel in the NED local coordinate system; and These represent the northward, eastward, and groundward components of the unit ray, respectively. Represents the transpose of a matrix or vector.

8. The forest fire line localization method based on dual-light imagery and multi-source elevation-depth constraints according to claim 7, characterized in that, The specific implementation method of step S8 includes the following steps: S8.

1. Determine whether the current fire line contour point of the sparse fire line boundary in the NED local coordinate system obtained in step S7 is hit within the LiDAR pixel depth lookup table or the neighborhood search radius. If it is hit, map the hit current fire line contour point to latitude, longitude and altitude coordinates and record the LiDAR hit status. If it is not hit, proceed to the next step. S8.

2. Determine if the DEM / DSM is available; for current fireline contour points that do not match LiDAR depth data. Using the points obtained in step S7 that correspond to the current fireline contour The corresponding NED local coordinate system unit ray Perform surface intersection iterations, query DEM / DSM elevations based on temporary latitude and longitude, and update the ray scale based on the queried elevations until the elevation change or ray scale change meets the preset convergence conditions, and output the corresponding longitude, latitude, and altitude coordinates; if the convergence conditions are not met, continue the next iteration using the updated elevations; S8.

3. Determine the availability of the flat ground assumption for projection. Using the relative altitude of the UAV, the measured ground elevation, or the preset ground elevation as the flat ground assumption, intersect the fireline pixel ray with the plane and output two-dimensional or three-dimensional approximate coordinates. S8.

4. Statistical analysis of the latitude, longitude and altitude coordinates of the current fire line contour points output in steps S8.1-S8.3, recording the positioning mode used for each current fire line contour point, and statistically analyzing the effective projection ratio, altitude point ratio, LiDAR hit rate and backtracking ratio to obtain the forest fire line positioning results based on dual-light images and multi-source elevation and depth constraints.

9. A system for locating forest fire lines based on dual-light imagery and multi-source elevation-depth constraints, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed, implements the steps of a forest fire line location method based on dual-light imagery and multi-source elevation-depth constraints as described in any one of claims 1-8.