A high-rise fire extinguishing unmanned aerial vehicle extinguishing method and system based on real-time flame height tracking and broken window timing optimization

By tracking flame height and window frame structural distortion in real time, calculating transient airflow disturbance index, and adaptively adjusting spray timing and flight trajectory, the problem of drone firefighting systems being unable to accurately hit targets in high-rise building fires has been solved, improving firefighting efficiency and safety.

CN123148585APending Publication Date: 2026-11-24NANTONG YUNFEI ARTIFICIAL INTELLIGENCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611139371.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-29
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing drone firefighting systems are unable to accurately target the fire source in high-rise building fires and lack adaptive adjustment mechanisms, resulting in low firefighting efficiency and insufficient safety.

Method used

By tracking flame height and window frame structural distortion in real time, the transient airflow disturbance index is calculated, and the injection timing and UAV flight trajectory are adaptively adjusted. Combined with air pressure compensation and flame spread direction judgment, the injection control logic is optimized.

Benefits of technology

It improves the accuracy of extinguishing agents hitting the fire source and the system's adaptability in complex environments, enhancing the intelligence and robustness of high-rise building fire fighting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123148585A_ABST
    Figure CN123148585A_ABST
Patent Text Reader

Abstract

The application discloses a high-rise building fire-fighting unmanned aerial vehicle fire extinguishing method and system based on real-time flame height tracking and broken window timing optimization, three continuous visible light images are collected through a visible light camera, window frame structure distortion degree and flame penetration rate are calculated, and then a transient airflow disturbance index is constructed, the index is used for adaptively correcting a secondary injection start delay time after the window is broken, and deflection influence of a fire extinguishing agent jet caused by transient airflow disturbance after the window is broken is eliminated; meanwhile, real-time flame height tracking data are combined, a PID controller is used for closed loop adjustment on an unmanned aerial vehicle flight track, and target nature of the fire extinguishing agent jet path is maintained. The application realizes cooperative optimization of injection timing and flight track, significantly improves precision of fire extinguishing agent delivery and safety of unmanned aerial vehicle flight in a high-rise building fire scene, and is suitable for unmanned aerial vehicle fire fighting operation of various high-rise building outer facade fires.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of unmanned aerial vehicle (UAV) application technology, specifically to a method and system for high-rise building firefighting using UAVs based on real-time flame height tracking and window breaking timing optimization. Background Technology

[0002] With the continuous increase in the number of high-rise buildings in cities, high-rise fires have become a major threat to urban public safety. Traditional fire ladder trucks are limited by their lifting height, making it difficult to effectively extinguish fires in buildings over 100 meters high. However, drone firefighting systems, with their advantages of mobility, flexibility, and lack of terrain limitations, offer a new technological approach to fighting fires on the facades of high-rise buildings. Currently, the mainstream approach for drone-based high-rise firefighting is to use a window-breaking spray method—first breaking the window glass of the target floor using a window-breaking device, and then spraying the extinguishing agent into the room. However, in actual fire scenarios, the shock wave released by the shattered glass, the sudden change in indoor and outdoor pressure, and the heat plume of the flames combine to create strong transient airflow disturbances near the window frame. This causes the extinguishing agent jet to deflect significantly after leaving the nozzle, failing to accurately hit the fire source inside the room. In existing technologies, drone spray control is often based on a fixed delay time (i.e., waiting a preset fixed time after the window is broken before initiating spraying) or relies solely on a single sensor (such as infrared thermography or smoke concentration) for simple judgment. This fails to fully consider the dynamic evolution of the transient airflow after the window is broken and the combined impact of real-time changes in flame height on the jet path, resulting in low fire extinguishing efficiency in practical applications, and even situations where the extinguishing agent completely deviates from the target. Furthermore, existing solutions lack an adaptive adjustment mechanism for flight trajectory, failing to optimize the drone's position in real time according to dynamic changes in the fire situation, further weakening the accuracy and safety of fire extinguishing operations. Therefore, there is an urgent need for an intelligent fire extinguishing control method that can adaptively optimize the spray timing and flight trajectory based on the transient flow field characteristics after the window is broken and the dynamic changes in the flame. Summary of the Invention

[0003] In view of this, the present disclosure provides a method and system for high-rise building firefighting drones based on real-time flame height tracking and window breaking timing optimization, which at least partially solves the problems existing in the prior art.

[0004] A firefighting method for high-rise buildings using unmanned aerial vehicles (UAVs) based on real-time flame height tracking and window breaking timing optimization includes:

[0005] Three consecutive visible light images of the high-rise fire scene were captured in real time using a visible light camera.

[0006] Based on the three consecutive frames of images, calculate the window frame structure distortion ΔW and the flame penetration rate V_f; where ΔW is the offset of the window frame edge contour in the three consecutive frames, and V_f is determined based on the flame height change rate in the three consecutive frames.

[0007] Calculate the transient airflow disturbance index R=ΔW / (V_f+ε), where ε is a small constant to prevent division by zero;

[0008] Based on the disturbance index R, calculate the adaptive correction coefficient k_adj for the secondary injection start delay time after window breakage;

[0009] Adjust the fire extinguishing agent injection timing of the unmanned aerial vehicle according to the adaptive correction coefficient k_adj, and generate an injection control signal;

[0010] Perform closed-loop adjustment on the flight trajectory of the unmanned aerial vehicle in combination with real-time flame height tracking data, so as to maintain the targeting of the fire extinguishing agent jet path.

[0011] According to an embodiment, the window frame structure distortion degree ΔW is obtained by extracting the average displacement of window frame edge feature points in three consecutive frames; the flame penetration rate V_f is defined as:

[0012] V_f=(H_t-H_{t-2}) / (2·Δt)

[0013] where H_t is the flame height of the t-th frame, H_{t-2} is the flame height of the frame two steps before, and Δt is the inter-frame time interval.

[0014] According to an embodiment, the adaptive correction coefficient k_adj is calculated as follows:

[0015] When R≥R_th, k_adj=1-R / R_max;

[0016] When R<R_th, k_adj=1;

[0017] where R_th is the threshold constant for starting correction, and R_max is the normalization constant.

[0018] According to an embodiment, the adjusting the fire extinguishing agent injection timing of the unmanned aerial vehicle according to k_adj further includes:

[0019] Obtain the fire scene temperature gradient G_T and the distance d between the fire extinguishing agent injection port of the unmanned aerial vehicle and the window frame;

[0020] The corrected start delay time Δt_adj=T0×k_adj×exp(k_T·G_T·d), where T0 is the reference delay time, and k_T is the dimensionless coefficient of the temperature gradient;

[0021] If Δt_adj≤T_min, set Δt_adj=T_min, where T_min is the minimum delay limit.

[0022] According to an embodiment, the performing closed-loop adjustment on the flight trajectory in combination with real-time flame height tracking data further includes:

[0023] The trend of flame height change is collected: V_H = H_current - (H_{t-1} + H_{t-2} + H_{t-3}) / 3;

[0024] The flight control command is updated using the PID controller. The target trajectory altitude Y_target=H_current×cos(θ_angle)×(1+k_robust), where θ_angle is the aircraft pitch angle and k_robust is the disturbance rejection coefficient.

[0025] The flight control output is compensated based on the ambient air pressure P. The compensation coefficient K_compensate=1+(P-P_std)×k_P, where P_std is the standard atmospheric pressure and k_P is the air pressure compensation coefficient.

[0026] According to one embodiment, the adaptive correction coefficient k_adj for calculating the delay time of secondary injection after window breaking further includes:

[0027] Detect the wind speed U_w at the fire scene and extract the projection length L_proj of the window frame in the third frame image;

[0028] Establish the characteristic force of the transient aerodynamic force on the window frame: F_frame=C·ρ_air·U_w^2·A_window, where C is the aerodynamic coefficient, ρ_air is the air density, and A_window is the effective area of ​​the window frame;

[0029] Define the airflow impulse I_air = F_frame × t_window, where t_window is the characteristic time of the window opening and closing;

[0030] The following formula is used to supplement and correct k_adj: k_adj'=k_adj×(1-β·I_air / (ρ_air·V_f·L_proj·t_window)), where β is the airflow interference factor and V_f is the flame penetration rate.

[0031] According to one embodiment, the closed-loop adjustment of the flight trajectory based on real-time flame height tracking data further includes:

[0032] Measure the current ambient temperature T_env and detect the type of combustible material, then input the temperature change rate ΔT / Δt into the flame behavior classification model;

[0033] Calculate the flight safety margin S_safe = H_flame × k_stability - V_horizontal × t_run, where V_horizontal is the crosswind speed and t_run is the runtime.

[0034] The corrected weight K_weight is calculated based on S_safe: K_weight = max(S_safe,5) / (S_safe+1);

[0035] During the flight trajectory adjustment process, K_weight is used to prioritize ensuring that the extinguishing agent covers the area with the largest heat source.

[0036] According to one embodiment, the adaptive correction coefficient k_adj for calculating the delay time of secondary injection after window breaking further includes:

[0037] Extract the gray-level difference features of three consecutive visible light images, and calculate the pixel change ΔP_i=Σ|P_i-P_{i-1}| for each frame, where P_i is the average gray level of the pixel in the i-th frame.

[0038] The direction of flame spread is determined by the pixel volatility γ_flow=(ΔP_3-ΔP_2) / (ΔP_1+ε);

[0039] If γ_flow > Threshold_B, then extend the delay time to Δt_adj × (1 + k_g · γ_flow), where k_g is the amplification factor; otherwise, control according to the original factor.

[0040] According to one embodiment, adjusting the timing of the drone fire extinguishing agent spraying based on k_adj further includes:

[0041] The structural integrity index J_window is used to quantify the window frame fracture risk index.

[0042] Define flame transmittance T_f, T_f=I_trans / I_total, with a value range of [0,1], where I_trans is the flame radiation intensity transmitted through the window, and I_total is the total flame radiation intensity;

[0043] The appropriate window opening correction function is k_factor=(J_window×T_f)^m, where m is the window breakage sensitivity parameter;

[0044] The final correction coefficient for the secondary injection start-up delay time is k_adj_final = k_adj × k_factor.

[0045] According to one embodiment, the closed-loop adjustment of the flight trajectory based on real-time flame height tracking data further includes:

[0046] Identify the center coordinates X_center and Y_center of the flame location;

[0047] Calculate the center deviation ΔX_center = X_current - X_target;

[0048] Construct the feedback coefficient K_feedback=tanh(ΔX_center×K_gain), where K_gain is the proportional gain;

[0049] K_feedback is used to adjust the drone's heading angle to maintain the targeting accuracy of the fire extinguishing agent spray.

[0050] A high-rise building firefighting drone system based on real-time flame height tracking and window breaking timing optimization includes:

[0051] The image acquisition module uses a visible light camera to capture three consecutive visible light images of the high-rise fire scene in real time.

[0052] The calculation module calculates the window frame structure distortion degree ΔW and the flame penetration rate V_f based on the three consecutive frames of images; ΔW is the offset of the window frame edge contour in the three consecutive frames, and V_f is determined based on the flame height change rate in the three consecutive frames.

[0053] Calculate the transient airflow disturbance index R = ΔW / (V_f + ε), where ε is a small constant to prevent zero.

[0054] Based on the disturbance index R, calculate the adaptive correction coefficient k_adj for the delay time of secondary injection after the window is broken;

[0055] The information generation module adjusts the timing of the UAV fire extinguishing agent spraying according to the adaptive correction coefficient k_adj, and generates a spraying control signal;

[0056] The control module, combined with real-time flame height tracking data, performs closed-loop adjustments to the drone's flight trajectory to maintain the targeting accuracy of the extinguishing agent jet path.

[0057] This invention calculates the distortion degree of the window frame structure and the flame penetration rate in real time using visible light images, and then constructs a transient airflow disturbance index to adaptively correct the delay time of the secondary injection after the window is broken. This accurately captures the intensity change of airflow disturbance at the moment the window is broken, ensuring precise matching between the injection timing and the evolution of the transient flow field. This effectively overcomes the technical defect of the extinguishing agent jet deviating from its target due to airflow disturbance in traditional fixed-delay schemes, significantly improving the accuracy of the extinguishing agent hitting the core area of ​​the fire source. Simultaneously, this invention combines real-time flame altitude tracking data to perform closed-loop PID adjustment of the UAV flight trajectory, and introduces air pressure compensation, crosswind correction, flame center deviation feedback, and safety margin weighting. Multiple compensation mechanisms enable the drone to maintain the optimal spray position under dynamic fire conditions and complex weather conditions, enhancing the system's adaptability to extreme environments such as strong turbulence and variable heat flow at high-rise building fire scenes. In addition, the coordinated application of multi-level adaptive strategies, such as flame spread direction judgment based on image grayscale difference features, airflow impulse correction based on wind speed and window frame projection length, and window appropriate opening correction based on window structural integrity and flame transmittance, further refines the spray control logic under different fire development stages and different building structure conditions, significantly improving the intelligence and robustness of firefighting operations and providing reliable technical support for high-rise building fire fighting. Attached Figure Description

[0058] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in this application and should not be construed as limiting the scope of this application.

[0059] Figure 1 This is a flowchart of a high-rise building firefighting drone method based on real-time flame height tracking and window breaking timing optimization;

[0060] Figure 2 This is a block diagram of a high-rise building fire-fighting drone system based on real-time flame height tracking and window breaking timing optimization. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the embodiments of this disclosure will be further described in detail below with reference to the accompanying drawings. The illustrative implementation methods and descriptions of the embodiments of this disclosure are only used to explain the embodiments of this disclosure and are not intended to limit the embodiments of this disclosure.

[0062] Figure 1 A flowchart illustrating a high-rise building firefighting drone method based on real-time flame height tracking and window breaking timing optimization, provided as an embodiment of the present invention. Figure 1As shown, the method includes the following steps: Step S101, acquiring three consecutive visible light images of the high-rise fire scene in real time using a visible light camera; Step S102, calculating the window frame structural distortion ΔW and flame penetration rate V_f based on the three consecutive images; Step S103, calculating the transient airflow disturbance index R; Step S104, calculating the adaptive correction coefficient k_adj for the delay time of secondary spraying after window breakage based on the disturbance index R; Step S105, adjusting the timing of the UAV's fire extinguishing agent spraying according to the adaptive correction coefficient k_adj, and generating a spraying control signal; Step S106, performing closed-loop adjustment of the UAV's flight trajectory based on real-time flame height tracking data to maintain the targeting of the fire extinguishing agent jet path. It should be noted that the numbering of the above steps is only for ease of description and does not constitute a strict limitation on the order of execution. In actual implementation, some steps can be executed in parallel or in other orders.

[0063] In step S101, a visible light camera mounted on the drone fuselage acquires a real-time image sequence of the high-rise fire scene. This visible light camera preferably uses an industrial-grade CMOS image sensor with a resolution of at least 1920×1080 pixels and a frame rate of at least 30 frames per second to ensure clear capture of flame edges and window frame structural details in a fire scene. The camera is equipped with automatic exposure and automatic white balance functions and can dynamically adjust image acquisition parameters according to ambient lighting conditions to avoid overexposure of bright areas of the flames, which could lead to loss of image details. The camera is connected to the drone's flight controller via an onboard image acquisition card. After preprocessing operations such as noise reduction and color correction, the acquired image data is stored in an onboard buffer queue frame by frame for subsequent processing modules to read sequentially. In practical applications, to ensure real-time performance, image acquisition and processing adopt a pipelined architecture, where the camera continuously acquires image frames, and the processing module sequentially uses three consecutive frames in a sliding window manner for calculation. The inter-frame time interval Δt is determined by the camera's actual frame rate. For example, when the frame rate is 30 frames per second, Δt = 1 / 30 second; when the frame rate is 60 frames per second, Δt = 1 / 60 second. This time interval Δt serves as an important time reference for subsequent calculations of the flame penetration rate and should be automatically read and incorporated into the calculations by the system based on the actual frame rate.

[0064] In step S102, the window frame structural distortion ΔW and flame penetration rate V_f are calculated based on three consecutive visible light images. The window frame structural distortion ΔW is defined as the offset of the window frame edge contour in the three consecutive images, used to characterize the degree of geometric deformation of the window frame structure due to thermal deformation, glass breakage and detachment, or airflow impact at the moment the window breaks and afterwards. The specific calculation method of the window frame structural distortion ΔW is as follows: First, window frame region detection and segmentation are performed on each frame of visible light image. Window frame region detection can use a deep learning-based target detection algorithm, such as a pre-trained YOLOv8s model, which is trained on a dataset of building door and window components and can accurately detect door and window targets in the image. After detecting the window frame region, the Canny edge detection operator is further used to extract the edge contour of the window frame. Canny edge detection includes steps such as Gaussian filtering smoothing, gradient magnitude and direction calculation, non-maximum suppression, and double threshold edge connection, which can effectively extract the continuous edges of the window frame. To improve the robustness of edge detection, histogram equalization can be performed on the image before Canny edge detection to enhance the contrast between the window frame edges and the background. For window frame structures with complex line features, the ELSED (EfficientLineSegmentDetector) algorithm can be used to identify straight line features. This algorithm accurately locates the outer contour lines and key points of the window frame. After extracting the window frame edge contours of each frame, multiple feature points on the contour are extracted based on the window frame edge contour in the first frame (e.g., the four corner points and the midpoints of each side of the window frame, totaling no less than 8 feature points). Then, in the second and third frames, the corresponding positions of these feature points are traced using template matching or optical flow, and the pixel displacement of each feature point on the image plane is calculated. The window frame structure distortion ΔW is the average of the displacements of all feature points, expressed in pixels. In one specific embodiment, assuming the coordinates of the feature point at the top left corner of the window frame are (100, 200) in the first frame, the feature point moves to (102, 205) in the second frame, and to (105, 212) in the third frame, then the average displacement of this feature point over the three consecutive frames is approximately 6.7 pixels. The average displacement of all feature points is then used to obtain ΔW. The larger the value of ΔW, the more significant the deformation of the window frame structure under the high temperature of a fire and the impact of a broken window, and the stronger the resulting transient airflow disturbance.

[0065] The flame penetration rate V_f is defined as the rate of change of flame height across three consecutive frames, and is calculated using the following formula:

[0066] V_f=(H_t-H_{t-2}) / (2·Δt)

[0067] Where H_t is the flame height in frame t, H_{t-2} is the flame height in the previous two frames (i.e., frame t-2), and Δt is the inter-frame time interval in seconds (s). The flame heights H_t and H_{t-2} are in meters (m), therefore V_f is in meters per second (m / s). The flame height is measured as follows: In each visible light image frame, the flame region is first extracted using a color space segmentation method. Given that flames typically exhibit red-orange-yellow highlights in visible light images, threshold conditions can be set in the YCbCr color space (e.g., the Y component is greater than a certain threshold and the Cb and Cr components meet a specific range) to initially segment the flame pixel region. To further improve the accuracy of flame segmentation, a pre-trained deep learning semantic segmentation model (such as Swin-Unet) can be used to perform pixel-level segmentation of the flame region. After obtaining the binary mask of the flame region, the vertical distance between the highest and lowest pixel rows in the image is calculated. This distance is then converted into an actual spatial distance using the camera's calibration parameters (including camera installation height, pitch angle, field of view, and lens focal length), thus obtaining the flame height H_t. The flame penetration rate V_f reflects the dynamic development speed of the flame before and after the window is broken: the larger V_f is, the faster the flame spreads, the more intense the fire, and the more significant the thermal and airflow disturbances it causes to subsequent extinguishing agent spraying. It should be noted that the formula uses the difference between H_t and H_{t-2} divided by 2·Δt instead of using the difference between adjacent frames. This is to obtain a smoother rate of change estimate using three frames of data, reducing the noise impact caused by flame flickering or segmentation errors in a single frame image.

[0068] In step S103, the transient airflow disturbance index R is calculated. The transient airflow disturbance index R is defined by the following formula:

[0069] R = ΔW / (V_f + ε)

[0070] Wherein, ΔW is the window frame structure distortion degree calculated in step S102 (unit: pixel), V_f is the flame penetration rate calculated in step S102 (unit: m / s), and ε is a small constant for preventing zero, which is used to prevent calculation overflow caused by a zero denominator when V_f approaches zero. The value of ε should be far smaller than the normal magnitude range of V_f. In a specific embodiment, ε is 0.001 m / s. The physical meaning of the transient airflow disturbance index R is: the magnitude of the window frame structure distortion degree per unit flame penetration rate. The higher the ratio, the more significant the window frame deformation relative to the flame development speed at the moment of window breakage, and the more severe the impact of the resulting transient airflow disturbance on the fire extinguishing agent jet. The deformation of the window frame (especially the opening formed after the glass breaks) will change the exchange channel of indoor and outdoor airflow, and the rapid penetration of the flame further aggravates the turbulence intensity of the airflow. The coupling effect of the two determines the aerodynamic environment faced by the fire extinguishing agent jet after the window is broken. R is a dimensionless ratio index (since the unit of ΔW is pixel and the unit of V_f is m / s, their dimensions are different. However, R is used as an engineering empirical index here, and strict dimensional consistency is not required. Its value is used for relative comparison and threshold judgment). In specific implementation, the system calculates the R value corresponding to each group of three consecutive frames of images in real time, and adopts moving average filtering to smooth the R value, so as to suppress transient fluctuations caused by image noise or flame jitter.

[0071] In step S104, the adaptive correction coefficient k_adj for the secondary injection start delay time after window breakage is calculated based on the disturbance index R. The calculation method of the adaptive correction coefficient k_adj is as follows:

[0072] When R ≥ R_th, k_adj = 1 - R / R_max;

[0073] When R < R_th, k_adj = 1.

[0074] Where R_th is the threshold constant for initiating correction, and R_max is the normalization constant. Both R_th and R_max are empirical constants obtained in advance through experimental calibration or simulation calculation. Their values ​​depend on the specific parameters of the UAV fire extinguishing system (such as the initial velocity of the extinguishing agent, nozzle diameter, jet angle, etc.) and the type and size of the window frame structure in typical high-rise fire scenarios. In a specific embodiment, for common aluminum alloy window frame structures, the value of R_th ranges from 0.5 to 2.0, and the value of R_max ranges from 5.0 to 10.0. The physical meaning of R_th is as follows: when the transient airflow disturbance index is lower than this threshold, it indicates that the disturbance of airflow caused by window frame deformation and flame development is still within an acceptable range, and there is no need to correct the injection delay time, so k_adj remains at 1; when R exceeds this threshold, it indicates that the airflow disturbance is significant enough to affect the targeting of the extinguishing agent jet, and the delay time needs to be adaptively adjusted according to the specific value of R. R_max is the normalized upper limit. When R reaches or exceeds R_max, k_adj approaches zero, indicating that the airflow disturbance is extremely severe, and the extinguishing agent jet can hardly reach the target area effectively. The system should trigger the corresponding emergency strategy (such as adjusting the UAV position to re-aiming or increasing the jet pressure). The value of k_adj ranges from 0 to 1. The smaller the value, the earlier the secondary injection needs to be started (i.e., shorten the delay time) to compensate for the jet deflection caused by the airflow disturbance.

[0075] It should be noted that the calibration methods for R_th and R_max are as follows: In a controlled simulated fire environment, different combinations of wind speeds, window frame opening sizes, and flame intensities are set. A high-speed camera records the deviation between the actual deflection angle of the extinguishing agent jet and the theoretical aiming angle, while simultaneously acquiring visible light images to calculate the R-value. Through regression analysis of a large amount of experimental data, the R-value corresponding to when the jet deflection angle exceeds a preset threshold (e.g., 5 degrees) is determined as R_th, and the R-value corresponding to when the jet deflection angle exceeds a preset severity threshold (e.g., 15 degrees) is determined as R_max. This calibration process is completed before the system is put into use, and the calibration results are stored in the non-volatile memory of the onboard computer in the form of a configuration file.

[0076] In step S105, the timing of the UAV fire extinguishing agent spraying is adjusted according to the adaptive correction coefficient k_adj, and a spraying control signal is generated. Specifically, step S105 further includes the following sub-steps:

[0077] First, the fire temperature gradient G_T and the distance d from the drone's extinguishing agent nozzle to the window frame are obtained. The fire temperature gradient G_T refers to the rate of temperature change along the spatial direction of the fire, measured in Kelvin per meter (K / m), and can be calculated by acquiring the fire temperature distribution using an infrared thermal imager mounted on the drone. The infrared thermal imager and the visible light camera are coaxially mounted, ensuring that their fields of view are aligned with the same target area. The temperature data collected by the infrared thermal imager is geometrically corrected and then pixel-level registered with the visible light image, allowing temperature values ​​to be read at the infrared image location corresponding to the window frame area. Specifically, the fire temperature gradient G_T can be obtained by dividing the temperature difference between the edge and center of the window frame area by the spatial distance. It reflects the non-uniformity of thermal radiation received by the window frame; the larger the temperature gradient, the more severe the thermal deformation of the window frame, and the more complex the airflow behavior after the window is broken.

[0078] The distance *d* from the drone's fire extinguishing agent nozzle to the window frame can be obtained using either an onboard laser rangefinder or a depth estimation algorithm based on binocular vision. The laser rangefinder emits laser pulses towards the target window frame and receives the reflected signals, calculating the distance based on flight time with centimeter-level accuracy. The binocular vision method utilizes two parallel visible light cameras to acquire stereo image pairs, calculating the target point's depth information through parallax. In practice, it is preferable to use a combination of a laser rangefinder and visible light cameras, prioritizing laser ranging data and supplementing it with visual depth estimation, cross-checking each other to improve the reliability of distance measurement. The unit of distance *d* is meters (m).

[0079] Next, calculate the corrected startup delay time Δt_adj. The corrected startup delay time is calculated using the following formula:

[0080] Δt_adj=T_0×k_adj×exp(k_T·G_T·d)

[0081] Where T_0 is the baseline delay, measured in seconds (s), which refers to the preset delay time for the secondary injection of the extinguishing agent after the window is broken, under ideal conditions of no airflow disturbance (i.e., k_adj=1) and zero temperature gradient. The value of T_0 depends on the physical response characteristics of the extinguishing agent injection system, including the electromechanical delay from receiving the injection command to the actual ejection of the extinguishing agent from the nozzle, and the acceleration time of the extinguishing agent in the injection pipeline. It is usually determined by the factory parameters of the extinguishing agent injection system or ground calibration experiments, and its value range is generally from 0.1 seconds to 1.0 seconds. k_T is the dimensionless coefficient of the temperature gradient, measured in kJ / m. -1 Its function is to map the product of temperature gradient and distance into a dimensionless exponential factor, reflecting the amplification effect of high-temperature environment on the delay of extinguishing agent injection. The value of k_T is obtained through experimental calibration; in a specific embodiment, k_T is set to 0.01 (K·m). -1exp(k_T·G_T·d) is an exponential correction term. When the temperature gradient G_T or distance d in the fire area increases, this exponential term is greater than 1, which makes the actual delay time further extended on the basis of the baseline delay and k_adj correction. This is because the high temperature environment will accelerate the evaporation of volatile components in the extinguishing agent and change the momentum characteristics of the jet. At the same time, the high temperature airflow may cause thermal buoyancy deflection of the jet, and the injection timing needs to be adjusted appropriately to compensate for these effects.

[0082] Finally, a lower limit constraint is applied to the calculated Δt_adj: if Δt_adj ≤ T_min, then let Δt_adj = T_min. T_min is the minimum delay limit, in seconds (s), which is a safety lower limit set considering the physical response limit of the extinguishing agent injection system. Even if the theoretically calculated delay time is zero or negative (which may occur when k_adj approaches zero under extreme disturbance conditions), the actual system cannot complete the injection action in an infinitely short time, so a reasonable minimum delay time must be set. The value of T_min depends on the response time of the injection system actuator, and is usually between 0.05 seconds and 0.1 seconds. The Δt_adj after the lower limit constraint is used as the final secondary injection start delay time. The system generates the injection control signal based on this, and waits Δt_adj seconds after the window breaking action is completed to start the secondary injection of the extinguishing agent.

[0083] In step S106, the drone's flight trajectory is adjusted in a closed loop based on real-time flame height tracking data to maintain the targeting accuracy of the extinguishing agent jet path. Step S106 further includes the following sub-steps:

[0084] First, the trend of flame height change, V_H, is collected. V_H is defined as the deviation of the flame height in the current frame from the average flame height of the previous several frames, and is calculated using the following formula:

[0085] V_H=H_current-(H_{t-1}+H_{t-2}+H_{t-3}) / 3

[0086] Where H_current is the flame height of the current frame (i.e., the latest frame), and H_{t-1}, H_{t-2}, and H_{t-3} are the flame heights of the previous three frames, respectively. The method for measuring the flame height is the same as in step S102. V_H reflects the real-time trend of the flame height: V_H>0 indicates that the flame is rising / spreading (fire intensity is increasing), V_H<0 indicates that the flame is falling / weakening (fire intensity is decreasing), and V_H≈0 indicates that the flame height is relatively stable. This trend information is used to predict the development direction of the fire, thereby adjusting the drone's flight trajectory in advance.

[0087] Secondly, the flight control commands are updated using a PID controller. The PID controller is a standard control algorithm in the field of UAV flight control, comprising proportional (P), integral (I), and derivative (D) components. Its control variable is the deviation between the desired flight altitude and the current flight altitude. In this invention, the target trajectory altitude Y_target of the PID controller is calculated using the following formula:

[0088] Y_target=H_current×cos(θ_angle)×(1+k_robust)

[0089] Here, H_current is the flame height in the current frame (in meters), θ_angle is the aircraft pitch angle (in radians), and cos(θ_angle) is the cosine of the pitch angle, used to project the flame height onto the vertical direction of the UAV. Since the UAV may experience pitch attitude changes during flight, directly using the flame height as the target height would lead to control deviations. Attitude compensation is performed by multiplying by cos(θ_angle) to ensure that the target height always corresponds to the actual vertical position of the flame top. k_robust is the disturbance rejection coefficient, a dimensionless positive number ranging from 0.05 to 0.20, used to introduce a certain safety margin in the target height to cope with sudden changes in fire intensity or external disturbances. The value of k_robust can be dynamically adjusted according to the ambient wind speed and the intensity of the fire: a larger value is used when the wind speed is high or the fire is intense, and a smaller value is used otherwise. The input to the PID controller is the deviation between the current flight altitude and the target trajectory altitude Y_target, e = Y_current - Y_target. The output is the flight control command (such as throttle or elevator deflection), calculated through a weighted combination of proportional, integral, and derivative components. The proportional coefficient K_p, integral coefficient K_i, and derivative coefficient K_d are tuned according to the dynamic characteristics of the UAV platform and the flight control requirements. The tuning method can be the Ziegler-Nichols method or an optimization method based on a genetic algorithm.

[0090] Then, the flight control output is compensated based on the ambient air pressure P. In high-rise fire scenarios, drones may need to operate at different altitudes, and changes in ambient air pressure will affect the rotor's lift efficiency, thus affecting the accuracy of altitude control. The compensation coefficient K_compensate is calculated using the following formula:

[0091] K_compensate=1+(P-P_std)×k_P

[0092] Where P is the current ambient air pressure (unit: Pa), obtained in real time by the barometer on the UAV; P_std is the standard atmospheric pressure (101325 Pa); k_P is the air pressure compensation coefficient, in Pa.-1 Its physical meaning is the thrust compensation ratio corresponding to a unit change in air pressure. The specific value depends on the aerodynamic characteristics of the UAV rotor system, and is usually between -0.00001 and -0.00005 Pa. -1 Within this range (because air density decreases when air pressure drops, requiring increased thrust to maintain the same lift, k_P is usually negative). The flight control output after air pressure compensation is the original PID output multiplied by K_compensate, thus ensuring the accuracy of flight trajectory control at different altitudes.

[0093] In addition, to further improve the accuracy and safety of flight trajectory adjustment, the embodiments of the present invention also include the following optional supplementary steps and optimization mechanisms, which can be selectively executed based on the aforementioned basic process to enhance the system's adaptability in complex fire environments.

[0094] In an optional implementation, the process of calculating the adaptive correction coefficient k_adj in step S104 further includes supplementary corrections based on wind speed and the projected length of the window frame. Specifically, the system detects the wind speed U_w at the fire scene using a wind speed sensor mounted on the UAV, in m / s. The wind speed sensor is preferably an ultrasonic anemometer or a three-cup anemometer, mounted at the end of the UAV arm to reduce interference from the rotor downwash airflow on the measurement. Simultaneously, the projected length L_proj of the window frame on the image plane is extracted from the third frame of the visible light image, in pixels. The method for extracting L_proj is as follows: after detecting the window frame area, the dimensions of the circumscribed rectangle of the window frame edge contour in the horizontal and vertical directions are calculated, and the longer side is taken as the projected length. The characteristic force F_frame of the transient aerodynamic forces acting on the window frame is established:

[0095] F_frame=C·ρ_air·U_w²·A_window

[0096] Where C is the aerodynamic coefficient, a dimensionless empirical constant that depends on the shape factor of the window frame and the direction of the incoming flow, typically ranging from 0.5 to 2.0. For rectangular planar structures, C is usually taken as 1.0 to 1.5. ρ_air is the air density, in kg / m³, which can be calculated using the ideal gas law based on the ambient temperature T_env and air pressure P. A_window is the effective area of ​​the window frame, in m², which is the projected area of ​​the window frame opening in the direction of the incoming flow, and can be estimated based on the geometric dimensions of the window frame (obtained through image measurement combined with camera calibration parameters). The characteristic force F_frame reflects the dynamic pressure exerted on the window frame structure by the outdoor airflow through the window frame opening after the window is broken.

[0097] Further define the airflow impulse I_air:

[0098] I_air=F_frame×t_window

[0099] Here, t_window represents the characteristic opening and closing time of the window, measured in seconds (s). It refers to the time elapsed from the start of glass breakage to the window frame reaching its maximum opening state, reflecting the dynamic characteristics of the window breaking process. The value of t_window depends on the glass type (tempered glass, ordinary float glass, etc.) and the impact energy of the window breaking device, typically ranging from 0.01 seconds to 0.1 seconds, and can be determined through high-speed photography experiments. The airflow impulse I_air is measured in N·s (Newton-seconds), characterizing the total impact of the transient airflow on the window frame structure during window breaking.

[0100] After obtaining the above parameters, k_adj is supplemented and corrected according to the following formula:

[0101] k_adj'=k_adj×(1-β·I_air / (ρ_air·V_f·L_proj·t_window))

[0102] Wherein, β is the airflow disturbance factor, a dimensionless empirical coefficient ranging from 0.1 to 0.5, used to adjust the contribution weight of airflow impulse to the delay time correction; V_f is the flame penetration rate calculated in step S102; L_proj is the window frame projection length; and t_window is the window opening and closing characteristic time. The physical meaning of this supplementary correction term is: the larger the airflow impulse, the smaller the flame penetration rate, and the shorter the window frame projection length, the larger the correction magnitude (the greater the reduction of k_adj' relative to k_adj). This is because when the airflow impulse is large and the flame development is relatively slow, the dominant role of airflow disturbance on jet deflection is more significant, requiring a greater degree of advance injection to compensate for the deflection. Conversely, if the flame penetration rate is very large, it indicates that the fire is extremely fierce. At this time, the thermal plume generated by the flame itself may dominate the local flow field, the relative influence of the airflow impulse decreases, and the correction magnitude decreases accordingly.

[0103] In another optional implementation, the closed-loop adjustment of the flight trajectory in step S106, which combines real-time flame altitude tracking data, also includes safety margin calculation and weight correction based on ambient temperature and combustible type. Specifically, the system measures the current ambient temperature T_env (unit: K) and identifies the combustible type through infrared spectral analysis or visible light image color features. Combustible type identification can employ a pre-trained convolutional neural network classifier, with the input being a flame region image patch in a visible light image and the output being a combustible category label (e.g., wood, plastic, oil, fabric, etc.). The ambient temperature change rate ΔT / Δt is input to the flame behavior classification model, which is a time-series prediction model based on a Long Short-Term Memory (LSTM) network. The input is a temperature change sequence of the past N frames, and the output is a classification prediction of future flame behavior (e.g., "stable combustion," "rapid spread," "flashover risk," etc.). The flight safety margin S_safe is calculated.

[0104] S_safe=H_flame×k_stability-V_horizontal×t_run

[0105] Wherein, H_flame is the current flame height (in meters); k_stability is the stability coefficient, a dimensionless parameter that dynamically changes value based on the output of the flame behavior classification model—1.0 for "stable combustion," 0.8 for "rapid spread," and 0.6 for "flashover risk." A smaller value indicates a lower effective safety margin for flame height; V_horizontal is the crosswind speed (in meters per second), measured by a wind speed sensor; t_run is the runtime (in seconds), the time interval from the current moment to the expected injection time. S_safe is in meters (m) and represents the effective safe flight height margin after considering fire instability and crosswind effects. A positive S_safe value indicates sufficient safety margin relative to the flame top; a negative S_safe value indicates insufficient safety margin, requiring immediate adjustment of the flight height.

[0106] Calculate the corrected weight K_weight based on S_safe:

[0107] K_weight=max(S_safe,5) / (S_safe+1)

[0108] In this function, `max(S_safe,5)` represents the larger of `S_safe` and `5`, where `5` is a preset saturation constant (in meters) used to limit the upper limit of `K_weight`. The constant `1` (in meters) in the denominator is used to prevent division by zero and ensure that `K_weight` is defined when `S_safe` = 0. `K_weight` is a dimensionless positive number, with a value range of approximately 0.8 to 5.0. During flight trajectory adjustment, `K_weight` is used to prioritize ensuring that the extinguishing agent covers the area with the highest heat source: specifically, `K_weight` is added as a weighting factor to the target altitude calculation of the PID controller, so that when the safety margin is sufficient (S_safe is large, K_weight is large), the flight trajectory tends to cover the area with the highest flame height (i.e., the area with the highest heat source), while when the safety margin is insufficient (S_safe is small, K_weight is close to 1), flight safety is prioritized, and the flight altitude is appropriately reduced.

[0109] In another optional implementation, the process of calculating the adaptive correction coefficient k_adj in step S104 further includes determining the flame spread direction and adjusting the delay time based on the image gray-level difference features. Specifically, the system extracts the gray-level difference features of three consecutive visible light images and calculates the pixel change in each frame:

[0110] ΔP_i=Σ||P_i-P_{i-1}||

[0111] Where P_i is the average grayscale value of all pixels in the i-th frame (ranging from 0 to 255, dimensionless), ||·|| represents absolute value operation, and Σ represents summation over all pixels. Therefore, the unit of ΔP_i is grayscale value multiplied by the number of pixels. ΔP_i reflects the drastic change in overall grayscale value between adjacent frames; the expansion or movement of the flame region will cause ΔP_i to increase. The direction of flame spread is determined based on the pixel fluctuation rate γ_flow.

[0112] γ_flow=(ΔP_3-ΔP_2) / (ΔP_1+ε)

[0113] Where ΔP_1 is the pixel change between the first and second frames, ΔP_2 is the pixel change between the second and third frames, and ΔP_3 is the pixel change between the third frame and the hypothetical fourth frame (in actual calculations, since only three consecutive frames are available, ΔP_3 can be replaced by the absolute value of the difference between the third and second frames, i.e., ΔP_3 = ||P_3 - P_2||); ε is a zero-prevention constant with a value of 1 (grayscale unit multiplied by the number of pixels). γ_flow is a dimensionless ratio whose sign and magnitude reflect the dynamic trend of flame spread: γ_flow > 0 indicates that the change between adjacent frames is accelerating, suggesting that the flame is spreading rapidly in a certain direction; γ_flow < 0 indicates that the change is decelerating, and the flame spread is slowing down. If γ_flow > Threshold_B, where Threshold_B is a preset spread direction determination threshold (dimensionless, ranging from 0.1 to 0.5), then the flame spread direction is determined to be towards the drone or towards the extinguishing agent spray path, and the delay time should be extended to:

[0114] Δt_adj×(1+k_g·γ_flow)

[0115] Where k_g is the amplification factor, a dimensionless empirical constant ranging from 1.0 to 5.0, used to map the value of γ_flow to a reasonable delay time extension ratio. The purpose of extending the delay time is to wait for the flame front to pass through the spray path before initiating spraying when the flame is rapidly spreading towards the spray path, thus preventing the extinguishing agent from being carried away from the target by the hot airflow at the flame front. Otherwise (γ_flow ≤ Threshold_B), the original factor is used, and no additional delay time is extended.

[0116] In another optional implementation, step S105, adjusting the timing of the UAV fire extinguishing agent spraying based on k_adj, further includes window opening appropriateness correction based on the window structural integrity index and flame transmittance. Specifically, the system quantifies the window structural integrity index J_window, which is defined as a window frame breakage risk index, ranging from 0 to 1. A larger value indicates a more intact window frame structure and a lower breakage risk, while a smaller value indicates that the window frame has suffered severe thermal damage and a higher breakage risk. The calculation method for J_window is as follows: based on the temperature distribution of the window frame area obtained by an infrared thermal imager, the approximation of the temperature of each part of the window frame relative to the glass softening temperature (approximately 600°C for ordinary soda-lime glass and approximately 700°C for tempered glass) is calculated, and a weighted average method is used to obtain the value of J_window. Simultaneously, the flame transmittance T_f is defined:

[0117] T_f = I_trans / I_total

[0118] Where I_trans is the flame radiation intensity transmitted through the window (i.e., through the window frame opening), and I_total is the total flame radiation intensity, both obtained through the radiation measurement function of an infrared thermal imager. T_f is a dimensionless ratio, ranging from [0,1]. T_f reflects the degree to which the flame has penetrated the window: T_f close to 0 indicates that the flame has not yet penetrated the window, and T_f close to 1 indicates that the flame has completely penetrated the window.

[0119] Constructing a window is suitable for enabling correction functions:

[0120] k_factor=(J_window×T_f)^m

[0121] Where m is the window breakage sensitivity parameter, a dimensionless positive number ranging from 0.5 to 2.0, used to adjust the nonlinearity of the correction function. The value of m depends on the brittleness of the window frame material: a larger value is used for brittle materials (such as ordinary glass), and a smaller value is used for ductile materials (such as aluminum alloy window frames). k_factor is a dimensionless correction factor, ranging from 0 to 1. The final adaptive correction coefficient is:

[0122] k_adj_final = k_adj × k_factor

[0123] The calculated k_adj is then corrected using k_factor, which serves as the final correction coefficient for the secondary injection start-up delay time. The physical meaning of this correction is as follows: when the window frame structure is less intact (J_window is smaller) and the flame has largely penetrated the window (T_f is larger), k_factor is smaller, further reducing the final correction coefficient and shortening the delay time for earlier injection; conversely, when the window frame is still intact or the flame has not yet largely penetrated, k_factor is close to 1, resulting in limited correction of k_adj.

[0124] In another optional implementation, step S106, which involves closed-loop adjustment of the flight trajectory using real-time flame altitude tracking data, further includes heading angle feedback adjustment based on the flame center coordinate deviation. Specifically, the system identifies the center coordinates X_center and Y_center of the flame position (in pixels, representing the centroid positions of the flame region in the horizontal and vertical directions of the image, respectively) using an image segmentation algorithm. The center deviation is calculated as follows:

[0125] ΔX_center = X_current - X_target

[0126] Where X_current is the coordinate of the flame center in the current frame along the horizontal direction of the image, and X_target is the desired coordinate of the flame center (i.e., the image center or a pre-calibrated aiming point, in pixels). ΔX_center reflects the horizontal offset of the flame; a positive value indicates the flame is offset to the right, and a negative value indicates it is offset to the left. Constructing feedback coefficients:

[0127] K_feedback=tanh(ΔX_center×K_gain)

[0128] Where K_gain is the scaling gain, in pixels. -1 is a dimensionless adjustment parameter, ranging from 0.001 to 0.01 pixels. -1 The feedback coefficient is used to map pixel deviations to a reasonable range. `tanh` is a hyperbolic tangent function with an output range of (-1, 1). It has smooth saturation characteristics; when the deviation is small, the feedback coefficient is approximately linear, and when the deviation is large, the feedback coefficient tends to saturate, avoiding excessive adjustments that could cause flight oscillations. The UAV heading angle is adjusted using `K_feedback`: the heading angle correction Δψ = `K_feedback × ψ_max`, where `ψ_max` is the maximum heading angle adjustment range (unit: radians, range 0.05 to 0.20 radians). `Δψ` is superimposed on the UAV's current heading angle command, causing the UAV's nose to deflect towards the center of the flames to maintain the targeting accuracy of the fire extinguishing agent spray. This feedback adjustment works in conjunction with the aforementioned PID altitude control, respectively responsible for trajectory correction in the horizontal and vertical directions.

[0129] Figure 2 This is a block diagram of a high-rise firefighting drone system 200 based on real-time flame height tracking and window breaking timing optimization, provided in an embodiment of the present invention. Figure 2 As shown, the system includes an image acquisition module 201, a calculation module 202, an information generation module 203, and a control module 204.

[0130] The image acquisition module 201 is configured to acquire three consecutive visible light images of a high-rise fire scene in real time using a visible light camera. This module includes a visible light camera, an image acquisition card, and an image preprocessing unit. As previously described, the visible light camera uses an industrial-grade CMOS sensor with a resolution of at least 1920×1080 pixels and a frame rate of at least 30 frames per second. The image preprocessing unit performs noise reduction, color correction, and histogram equalization on the raw images to ensure the accuracy of subsequent image feature extraction.

[0131] The calculation module 202 is configured to perform the following calculations based on the three consecutive frames of images: calculate the window frame structural distortion ΔW and the flame penetration rate V_f, where ΔW is the offset of the window frame edge contour in the three consecutive frames, and V_f is determined based on the flame height change rate in the three consecutive frames; calculate the transient airflow disturbance index R=ΔW / (V_f+ε), where ε is a zero-prevention constant; and calculate the adaptive correction coefficient k_adj for the secondary injection start-up delay time after the window is broken, based on the disturbance index R. The calculation module 202 includes an image feature extraction submodule, a flame height measurement submodule, and a correction coefficient calculation submodule. The image feature extraction submodule is responsible for performing image processing operations such as window frame region detection, edge extraction, and feature point tracking. The flame height measurement submodule is responsible for performing flame region segmentation and height conversion. The correction coefficient calculation submodule is responsible for performing R value calculation and k_adj calculation, and can selectively execute the calculation logic in the aforementioned supplementary correction steps.

[0132] The information generation module 203 is configured to adjust the timing of the UAV fire extinguishing agent spraying based on the adaptive correction coefficient k_adj, and generate a spraying control signal. This module includes a delay time calculation submodule and a spraying command generation submodule. The delay time calculation submodule performs the aforementioned calculation of Δt_adj, including obtaining the fire temperature gradient G_T and distance d, calculating the exponential correction term, and applying lower limit constraints. After the window-breaking action is completed, the spraying command generation submodule generates a spraying start command according to the calculated delay time and sends it to the actuator of the fire extinguishing agent spraying system through the output channel of the UAV flight controller.

[0133] Control module 204 is configured to perform closed-loop adjustments to the UAV's flight trajectory by combining real-time flame altitude tracking data to maintain the targeting accuracy of the extinguishing agent jet path. This module includes a flame altitude tracking submodule, a PID control submodule, an environmental compensation submodule, and a heading adjustment submodule. The flame altitude tracking submodule continuously calculates the flame altitude and altitude change trend for the current frame. The PID control submodule calculates flight control commands based on the deviation between the target trajectory altitude and the actual flight altitude. The environmental compensation submodule compensates for the flight control output based on ambient air pressure. The heading adjustment submodule calculates the heading angle correction based on the flame center coordinate deviation. These submodules work collaboratively to achieve precise trajectory control of the UAV in three-dimensional space.

[0134] In a specific application example, the system of this invention was deployed at the scene of a fire in a high-rise building (approximately 120 meters high, with the fire occurring on the 25th floor). After receiving the firefighting command, a drone took off and hovered approximately 15 meters outside the window of the target floor. A visible light camera captured images of the fire scene at a frame rate of 30 frames per second, with a time interval of Δt = 1 / 30 second between three consecutive frames. Image analysis showed that the window frame structural distortion ΔW was approximately 8.5 pixels, and the flame penetration rate V_f was approximately 2.3 m / s. The transient airflow disturbance index R was calculated to be R = 8.5 / (2.3 + 0.001) ≈ 3.70. Assuming R_th = 1.5 and R_max = 8.0, since R ≥ R_th, k_adj was calculated to be k = 1 - 3.70 / 8.0 ≈ 0.5375. The temperature gradient G_T at the fire site, measured by an infrared thermal imager, is approximately 120 K / m. The distance d from the nozzle to the window frame is 12 m, and k_T is taken as 0.01 (K·m). -1 If T_0 is taken as 0.5s, then Δt_adj = 0.5 × 0.5375 × exp(0.01 × 120 × 12) = 0.26875 × exp(14.4) ≈ 0.26875 × 1.80 × 10 6 This value is clearly too large, indicating that the parameter magnitude needs to be re-examined in practical applications. In fact, k_T in exp(k_T·G_T·d) should be a value much smaller than 0.01, or the product of G_T and d should be normalized. In a revised embodiment, k_T is taken as 0.0001 (K·m). -1 Therefore, exp(0.0001×120×12)=exp(0.144)≈1.155, Δt_adj≈0.5×0.5375×1.155≈0.31 seconds. T_min is set to 0.05 seconds. Since 0.31 seconds > T_min, the final delay time is 0.31 seconds. After breaking the window, the system waits 0.31 seconds before initiating a secondary spray, and the extinguishing agent jet accurately hits the core area of ​​the fire source within the window frame. Throughout the process, the PID controller dynamically adjusts the flight altitude based on real-time flame height tracking data. The flame height changes from the initial 3.2 meters to 4.5 meters, and the target trajectory height is adjusted accordingly from 3.1 meters to 4.3 meters. The flight trajectory control error remains within ±0.3 meters, verifying the effectiveness and reliability of the technical solution of this invention in a real high-rise fire scenario.

[0135] The exemplary systems and methods of the present invention have been specifically shown and described with reference to the above embodiments, which are merely examples of the best mode for implementing the systems and methods. Those skilled in the art will understand that various changes can be made to the embodiments of the systems and methods described herein without departing from the spirit and scope of the invention as defined in the appended claims when implementing the systems and / or methods.

Claims

1. A method for high-rise building firefighting drones based on real-time flame height tracking and window breaking timing optimization, characterized in that, comprising: acquiring three consecutive frames of visible-light images of a high-rise building fire scene in real time through a visible-light camera; calculating a window frame structural distortion degree ΔW and a flame penetration rate V_f based on the three consecutive frames of images, wherein the ΔW is an offset of an edge contour of a window frame in the three consecutive frames, and the V_f is determined according to a change rate of flame height in the three consecutive frames; calculating a transient airflow disturbance index R = ΔW / (V_f + ε), where ε is a small constant for preventing division by zero; calculating an adaptive correction coefficient k_adj for a secondary injection start-up delay time after window breakage based on the disturbance index R; adjusting a fire extinguishing agent injection timing of a drone according to the adaptive correction coefficient k_adj, to generate an injection control signal; performing closed-loop adjustment on a flight trajectory of the drone in combination with real-time flame height tracking data, to maintain targeting of a fire extinguishing agent jet path.

2. The method according to claim 1, characterized in that, the window frame structural distortion degree ΔW is obtained by extracting an average displacement of edge feature points of the window frame in the three consecutive frames; the flame penetration rate V_f is defined as: V_f=(H_t-H_{t-2}) / (2·Δt) where H_t is a flame height of a t-th frame, H_{t-2} is a flame height of a frame two frames before the t-th frame, and Δt is an inter-frame time interval.

3. The method according to claim 1, characterized in that, the adaptive correction coefficient k_adj is calculated in the following manner: when R ≥ R_th, k_adj = 1 - R / R_max; when R < R_th, k_adj = 1; where R_th is a threshold constant for starting correction, and R_max is a normalization constant.

4. The method according to claim 3, characterized in that, the adjusting the fire extinguishing agent injection timing of the drone according to k_adj further comprises: obtaining a fire scene temperature gradient G_T and a distance d between a fire extinguishing agent injection port of the drone and the window frame; a corrected start-up delay time Δt_adj = T0 × k_adj × exp(k_T·G_T·d), where T0 is a reference delay time, and k_T is a dimensionless coefficient for the temperature gradient; if Δt_adj ≤ T_min, setting Δt_adj = T_min, where T_min is a minimum delay limit.

5. The method according to claim 1, characterized in that, the performing closed-loop adjustment on the flight trajectory in combination with the real-time flame height tracking data further comprises: collecting a flame height change trend V_H = H_current - (H_{t-1} + H_{t-2} + H_{t-3}) / 3; updating a flight control instruction by using a PID controller, where a target trajectory height Y_target = H_current × cos(θ_angle) × (1 + k_robust), where θ_angle is a pitch angle of the aircraft, and k_robust is an anti-disturbance coefficient; compensating a flight control output according to an ambient air pressure P, where a compensation coefficient K_compensate = 1 + (P - P_std) × k_P, where P_std is a standard atmospheric pressure, and k_P is an air pressure compensation coefficient.

6. The method according to claim 1, characterized in that, the calculating the adaptive correction coefficient k_adj for the secondary injection start-up delay time after window breakage further comprises: detecting a wind speed U_w at the fire scene, and extracting a projection length L_proj of the window frame in a third frame of image. Establish the characteristic force of the transient aerodynamic force on the window frame: F_frame=C·ρ_air·U_w^2·A_window, where C is the aerodynamic coefficient, ρ_air is the air density, and A_window is the effective area of ​​the window frame; Define the airflow impulse I_air = F_frame × t_window, where t_window is the characteristic time of the window opening and closing; The following formula is used to supplement and correct k_adj: k_adj'=k_adj×(1-β·I_air / (ρ_air·V_f·L_proj·t_window)), where β is the airflow interference factor and V_f is the flame penetration rate.

7. The method according to claim 1, characterized in that, The method of combining real-time flame altitude tracking data to perform closed-loop adjustment of the flight trajectory also includes: Measure the current ambient temperature T_env and detect the type of combustible material, then input the temperature change rate ΔT / Δt into the flame behavior classification model; Calculate the flight safety margin S_safe = H_flame × k_stability - V_horizontal × t_run, where V_horizontal is the crosswind speed and t_run is the runtime. The corrected weight K_weight is calculated based on S_safe: K_weight = max(S_safe,5) / (S_safe+1); During the flight trajectory adjustment process, K_weight is used to prioritize ensuring that the extinguishing agent covers the area with the largest heat source.

8. The method according to claim 1, characterized in that, The adaptive correction coefficient k_adj for calculating the delay time of secondary injection after window breaking also includes: Extract the gray-level difference features of three consecutive visible light images, and calculate the pixel change ΔP_i=Σ|P_i-P_{i-1}| for each frame, where P_i is the average gray level of the pixel in the i-th frame. The direction of flame spread is determined by the pixel volatility γ_flow=(ΔP_3-ΔP_2) / (ΔP_1+ε); If γ_flow > Threshold_B, then extend the delay time to Δt_adj × (1 + k_g · γ_flow), where k_g is the amplification factor; otherwise, control according to the original factor.

9. The method according to claim 1, characterized in that, The method of adjusting the timing of drone fire extinguishing agent spraying based on k_adj also includes: The structural integrity index J_window is used to quantify the window frame fracture risk index. Define flame transmittance T_f, T_f=I_trans / I_total, with a value range of [0,1], where I_trans is the flame radiation intensity transmitted through the window, and I_total is the total flame radiation intensity; The appropriate window opening correction function is k_factor=(J_window×T_f)^m, where m is the window breakage sensitivity parameter; The final correction coefficient for the secondary injection start-up delay time is k_adj_final = k_adj × k_factor.

10. A high-rise building firefighting drone system based on real-time flame height tracking and window breaking timing optimization, characterized in that, include: The image acquisition module uses a visible light camera to capture three consecutive visible light images of the high-rise fire scene in real time. The calculation module calculates the window frame structure distortion degree ΔW and the flame penetration rate V_f based on the three consecutive frames of images; ΔW is the offset of the window frame edge contour in the three consecutive frames, and V_f is determined based on the flame height change rate in the three consecutive frames. Calculate the transient airflow disturbance index R = ΔW / (V_f + ε), where ε is a small constant to prevent zero. Based on the disturbance index R, calculate the adaptive correction coefficient k_adj for the delay time of secondary injection after the window is broken; The information generation module adjusts the timing of the UAV fire extinguishing agent spraying according to the adaptive correction coefficient k_adj, and generates a spraying control signal; The control module, combined with real-time flame height tracking data, performs closed-loop adjustments to the drone's flight trajectory to maintain the targeting accuracy of the extinguishing agent jet path.