Unmanned aerial vehicle halogen-containing greenhouse gas multi-tank sampling method and system based on deep learning

By using a deep learning-based approach combined with a UAV multi-tank sampling system, data such as wind speed, heading, and tank pressure are acquired and processed to generate reliable heading and valve/pump control commands. This solves the problem of unstable sampling relationships in UAV multi-tank sampling and achieves traceability of the sampling process and closed-loop pressure control.

CN123175685APending Publication Date: 2026-11-27FUDAN UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611696981.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In multi-tank sampling scenarios using drones, existing technologies struggle to synchronize sampling actions with wind conditions, time delays, and tank pressure under complex wind conditions. This results in an unstable correspondence between sample number, air intake time, and tank state, making it difficult to achieve traceability and closed-loop pressure control.

Method used

A deep learning-based approach is used to acquire time-series data on three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate to form a sampling sequence. By calibrating branch dwell time, determining arrival weights, and extracting state features, heading and valve/pump control commands are generated to ensure that each sampling tank forms a traceable, executable, and closable sampling relationship under complex wind fields.

Benefits of technology

This system ensures a clear correspondence between the sampling tanks under complex wind conditions, guaranteeing the traceability of the sampling process and the closed-loop pressure control, thereby improving the feasibility and reliability of the sampling process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175685A_ABST
    Figure CN123175685A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of unmanned aerial vehicle sampling, and particularly discloses a method and system for unmanned aerial vehicle halogen-containing greenhouse gas multi-tank sampling based on deep learning, which is used for collecting halogen-containing greenhouse gas samples on site by an unmanned aerial vehicle, acquires time sequence data such as three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow, constructs arrival weight in combination with branch residence time calibration data, aligns historical intake and current tank states according to the arrival weight, classifies the tank states, generates a multi-tank state sequence, and realizes multi-tank directional sampling, pressure closed-loop protection and sample recording under a complex wind field according to a pressure upper limit linkage heading and valve-pump control instruction, so that the sampling tanks are numbered to form a traceable, executable and closable sampling relationship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of unmanned aerial vehicle (UAV) sampling technology, specifically to a deep learning-based UAV multi-tank sampling method and system for halogenated greenhouse gases. Background Technology

[0002] Halogenated greenhouse gases are typically characterized by low concentrations, rapid diffusion, and dispersed spatial distribution. They are also susceptible to transient changes in wind fields, topography, and emission sources. In industrial emission verification, environmental monitoring, and source apportionment scenarios, drones are often required to access high towers, plant boundaries, areas around emission outlets, or hazardous areas to complete multi-point, multi-time, and multi-tank sampling within a short period. Compared to fixed sites, drone sampling devices must not only maintain stable sampling regardless of flight attitude changes but also ensure consistency in sampling paths, gas path status, and sample numbering under hovering, yaw, and wind disturbance conditions to guarantee comparability in subsequent laboratory analyses. For tasks requiring separate tank sealing, the sampling process also involves the correspondence between different pipeline lengths, different valve-pump combinations, and different sampling times. The control link must simultaneously record wind conditions, flow rates, tank pressure, and valve positions to accurately correlate each gas intake with the sealing results of each tank. Without a unified timeline and tank-level state management, samples obtained from multiple sampling operations are prone to problems such as unclear numbering, confusing air intake sequence, and inconsistent sampling endpoint determination. Therefore, multi-tank sampling by UAVs places higher demands on scene adaptation, state synchronization, and closed-loop control. Furthermore, different sampling tanks typically correspond to different pipeline resistances and valve-pump combinations. If the controller only executes switching actions in a fixed sequence without tracking the airflow direction and tank pressure status at each moment, it becomes difficult to ensure that each tank completes sampling under the correct wind and pressure conditions in the field. In complex wind fields, changes in wind direction can also alter the actual path of gas entering each sampling tank. If the sampling actions are not synchronously corrected, timing misalignments can easily occur between different tanks.

[0003] Prior art 1 (CN113933115A) discloses a modular gas sampling drone gas collection device, which uses the drone body and modular box to carry the sampling mechanism. The box contains components such as a sampling tube, a selective three-way gas exchange valve, first to third gas collection bottles, a one-way electromagnetic exhaust valve, a connecting pipe, a gas collection tank, and a motor. The motor drives the rubber piston to move up and down to realize the intake and exhaust of gas, and can collect gas samples at a specified height.

[0004] Prior art 2 (CN108956215A) discloses a drone-based pollutant gas sampling device, which consists of a drone fuselage, a gas collection box, a vacuum pump, a suction pipe, a suction cup, multiple gas collection bottles, an electrically controlled suction valve, and an electrically controlled intake valve forming a gas path. After the vacuum pump forms a negative pressure, the connection states of different valves and different gas collection bottles are switched according to the control signal to complete the collection of waste gas and the switching of multiple samples.

[0005] Prior art 3 (CN102507274B) discloses an intelligent automatic air sampler for occupational health, which consists of an air inlet connecting pipe, a control valve, an absorption pipe, a flow control sensor, an air pump, and a microcontroller. The microcontroller controls the start and stop of the air pump, the opening and closing of the control valve, the sampling time, and the series connection of the absorption pipe according to the program, thereby realizing constant flow sampling, continuous sampling, equal time interval sampling, and fixed-point sampling.

[0006] The aforementioned solutions all rely on pump and valve switching, container rotation, and preset program control as the main framework, enabling sampling actions to be repeated in a predetermined sequence and completing multiple sampling tasks through multiple sampling containers. However, in the context of UAV multi-canister sampling scenarios, these solutions lean more towards the sampling mechanism itself and preset timing control. The controlled objects are mainly the path switching at a certain moment or the start-stop action of a certain container, without integrating changes in wind direction during hovering, differences in branch dwell time, historical air intake arrival relationships, and sampling canister pressure status into the same control link. Therefore, the correspondence between sample number, air intake time, and canister state is difficult to directly close on-site, and it is not easy to determine which historical air intake segment ultimately enters which sampling canister after pipeline time delay changes. At the same time, if pressure constraints are not pre-integrated into the control link, overpressure control of the sampling canister can usually only be reflected at the post-processing level, making it difficult to participate in the generation of valve and pump actions in a timely manner. For tasks that require continuous sampling of multiple tanks under complex wind conditions, existing solutions can often complete the "sampling action" but are not easy to complete the "synchronous binding between the sampling action and wind conditions, time delay, and tank pressure". Therefore, in field applications, there are still problems such as insufficient traceability, unstable timing correspondence, and incomplete pressure control closure. Summary of the Invention

[0007] This invention addresses the aforementioned problems and aims to provide a deep learning-based method and system for sampling halogenated greenhouse gases from multiple UAV tanks. The system integrates wind direction sensing, branch dwell time calibration, historical air intake alignment, sampling status identification, and tank pressure closed-loop control into a single control link in UAV multi-tank halogenated greenhouse gas sampling scenarios. This enables each sampling tank to form a traceable, executable, and closable sampling relationship according to its number under complex wind conditions, and generates heading and valve / pump control commands synchronized with the field conditions.

[0008] This invention provides a deep learning-based method for multi-tank sampling of halogenated greenhouse gases using a drone. The method includes: a data acquisition step, where, after the drone hovers, it acquires the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate time sequence at the hovering location to form a sampling sequence, and associates the branch dwell time calibration data and pressure upper limit with the sampling tank number; an arrival weight determination step, where the time axis of the calibration dwell time distribution is scaled according to the ratio of the calibration flow rate in the branch dwell time calibration data to the pump flow rate in the sampling sequence to obtain the current dwell time distribution, and the historical times of the air inlets covered by the current dwell time distribution are mapped to arrival weights, where the arrival weight represents the proportion of historical air intake to the current gas intake; a weight association step, where the historical times of the air inlets, the current sampling time, and the arrival weights are associated according to the sampling tank number to form a correspondence between the gas inside the tank and the historical air intake; and an input projection step. The process involves several steps: First, historical wind conditions and tank status inputs are obtained from the sampling sequence. These two inputs are concatenated and projected onto the same input to obtain historical wind condition and tank status messages. Second, a state feature extraction step is performed, where historical wind condition messages are accumulated with arrival weights according to the sampling tank number and the current sampling time. This is then added to the tank status messages to form a gas arrival-aligned hidden sequence, which is input into a preset hidden channel correlation matrix. This matrix is ​​then processed through short and long kernel blocks in a preset convolutional network to form sampling state features. Third, a state classification step involves inputting the sampling state features and using a classification head in a preset convolutional network to determine the current category of each sampling tank, forming a multi-tank state sequence. Fourth, a control command generation step determines the heading and valve / pump control commands based on the multi-tank state sequence. Fifth, a control command execution step executes the heading and valve / pump control commands and records the sampling start time, sampling end time, termination tank pressure, and multi-tank state sequence according to the sampling tank number, outputting the multi-tank sampling record.

[0009] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the data acquisition step, after the UAV hovers, the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate acquired at the same sampling time are established to form a time sequence of three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate; the calibrated flow rate, discrete calibrated residence time, and gas passage ratio corresponding to each discrete calibrated residence time are obtained according to the sampling tank number; the calibrated flow rate, discrete calibrated residence time, and gas passage ratio are correlated to form branch residence time calibration data, and the pressure upper limit is obtained; according to the discrete calibrated residence time, the current sampling time and the historical sampling time covering the branch residence time are retained in the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate time sequence; the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate time sequence are arranged according to the sampling tank number and sampling time to form a sampling sequence.

[0010] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the arrival weight determination step, according to the sampling tank number and the current sampling time, the arrival weights of the historical times of the air inlet that do not belong to the coverage of the current dwell time distribution are reset to 0, and the arrival weights after being reset to 0 are normalized so that the sum of the arrival weights corresponding to the same current sampling time is 1; the normalized arrival weights are associated with the historical times of the air inlet and the current sampling time to form a correspondence between the gas in the tank and the historical air inlet.

[0011] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the state feature extraction step, based on the sampling tank number and the current sampling time, the corresponding historical time of the air inlet is determined according to the correspondence between the gas inside the tank and the historical air inlet; the three-dimensional wind speed, wind direction, and heading of each air inlet at the historical time are extracted from the sampling sequence while maintaining the original channel position to form historical wind condition input; the tank pressure, valve position, and pump flow rate at the current sampling time are extracted from the sampling sequence while maintaining the original channel position to form tank state input; the historical wind condition input and the tank state input are concatenated and then projected onto the same input. The same input projection involves performing the same one-dimensional convolution, batch normalization, and nonlinear activation on the concatenated input, and then separating the inputs according to their original sources before concatenation to form historical wind condition messages and tank state messages using the same input projection parameters. After the same input projection, the arrival weights of each inlet are read from the correspondence between the gas in the tank and the historical inlet according to the sampling tank number and the current sampling time. Each arrival weight is multiplied by the historical wind condition message of the corresponding inlet and accumulated along the historical inlet time. The accumulated historical wind condition message is added to the tank state message at the current sampling time to form a gas arrival aligned hidden sequence. The gas arrival aligned hidden sequence is input into a preset hidden channel correlation matrix. The output of the hidden channel correlation matrix is ​​added to the gas arrival aligned hidden sequence. After batch normalization and nonlinear activation, it is input into a short kernel block. The short kernel block extracts the local changes of adjacent sampling times to form the output of the first message propagation short kernel block. The output of the first message propagation short kernel block is input into a long kernel block. The long kernel block extracts the state evolution over a longer time range and adds the residuals to form the sampling state features.

[0012] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: when generating historical wind condition input, the corresponding channels for three-dimensional wind speed, wind direction and heading are retained, and the corresponding channels for tank pressure, valve position and pump flow are set to 0; when generating tank status input, the corresponding channels for tank pressure, valve position and pump flow are retained, and the corresponding channels for three-dimensional wind speed, wind direction and heading are set to 0.

[0013] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the state classification step, the sampling state features are input into the linear classification path and convolutional classification path of the classification head in the preset convolutional network according to the sampling tank number; in the linear classification path, adaptive average pooling, flattening, and linear mapping are executed sequentially to form the linear classification result of each sampling tank; in the convolutional classification path, adaptive average pooling, one-dimensional convolution, batch normalization, nonlinear activation, random deactivation enabled during training and disabled when determining the category, and flattening are executed sequentially to form the convolutional classification result of each sampling tank; the linear classification result and the convolutional classification result of the same sampling tank are added together and averaged to form a classification logical value without Softmax function processing, and the category position of the classification logical value is respectively assigned to the alignment category, purge category, sampling category, and stopping category; Softmax function processing is performed on the classification logical value of each sampling tank, the category position with the largest output value is selected to determine the current category of the corresponding sampling tank, and then the current categories of each sampling tank are arranged according to the sampling tank number to form a multi-tank state sequence.

[0014] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the control command generation step, the current category of each sampling tank is extracted from the multi-tank state sequence according to the sampling tank number, and the heading control command is determined according to the current category of each sampling tank; the tank pressure of the corresponding sampling tank is obtained according to the sampling tank number and the current sampling time, and the tank pressure is compared with the pressure upper limit to obtain the pressure comparison result; when the pressure comparison result indicates that the tank pressure is lower than the pressure upper limit and the current category is the sampling category, a valve pump control command to open the valve pump is generated; when the pressure comparison result indicates that the tank pressure reaches the pressure upper limit, a valve pump control command to close the valve pump is generated; the heading control command and the valve pump control command are associated according to the sampling tank number to form heading and valve pump control commands.

[0015] The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases provided by this invention may also have the following features: In the control command execution step, heading and valve / pump control commands are obtained according to the sampling tank number; the heading control command is executed to adjust the heading; and the valve / pump control command is converted into the opening or closing action of the valve / pump corresponding to each sampling tank to achieve the required valve / pump opening / closing state of each sampling tank; the valve / pump opening / closing state and multi-tank state sequence are read according to the sampling tank number; when the current category is the sampling category and the valve / pump opening / closing state changes from closed to open, the sampling start time is recorded; when the valve / pump opening / closing state changes from open to closed, the sampling end time is recorded, and the tank pressure at the sampling end time is determined as the termination tank pressure; the sampling start time, sampling end time, termination tank pressure, and multi-tank state sequence are associated with the corresponding sampling tank number to form the sampling record of each sampling tank; the sampling records of each sampling tank are arranged according to the sampling tank number, and the multi-tank sampling record is output.

[0016] This invention also provides a deep learning-based UAV multi-tank sampling system for halogenated greenhouse gases, used for the above-mentioned method, and features the following characteristics: a data acquisition module, used to acquire the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow time sequence at the hovering position after the UAV hovers, forming a sampling sequence, and associating the branch dwell time calibration data and pressure upper limit with the sampling tank number; an arrival weight determination module, used to scale the time axis of the calibration dwell time distribution according to the ratio of the calibration flow rate in the branch dwell time calibration data to the pump flow rate in the sampling sequence, to obtain the current dwell time distribution, and using the current sampling time as the endpoint, mapping the historical times of the air inlets covered by the current dwell time distribution to arrival weights, where the arrival weight represents the proportion of historical air intake to the current gas entering the tank; a weight association module, used to associate the historical times of the air inlets, the current sampling time, and the arrival weights according to the sampling tank number, forming a correspondence between the gas inside the tank and the historical air intake; input The projection module is used to obtain historical wind condition input and tank status input from the sampling sequence, and then concatenate the two inputs and project them onto the same input to obtain historical wind condition messages and tank status messages. The state feature extraction module is used to accumulate historical wind condition messages with arrival weights according to the sampling tank number and the current sampling time, add them to the tank status messages to form a gas arrival aligned hidden sequence, and input it into a preset hidden channel correlation matrix. After passing through short kernel blocks and long kernel blocks in a preset convolutional network, the sampling state features are formed. The state classification module is used to input the sampling state features, and determine the current category of each sampling tank through the classification head in a preset convolutional network to form a multi-tank state sequence. The control command generation module is used to generate heading and valve / pump control commands based on the multi-tank state sequence. The control command execution module is used to execute the heading and valve / pump control commands, and record the sampling start time, sampling end time, termination tank pressure and multi-tank state sequence according to the sampling tank number, and output the multi-tank sampling record.

[0017] Compared with the prior art, the functions and effects of the present invention include:

[0018] (1) The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases of the present invention aligns historical wind conditions with current tank status by concatenating branch dwell time calibration data, current pump flow rate, and arrival weight. This allows for clear correspondence between historical air intake under different branch lengths, pump flow rates, and wind directions, based on the sampling tank number. Compared to directly splicing the original time series and then classifying it, this method explicitly retains "how historical air intake reaches the current sampling tank" as an intermediate object. This eliminates the reliance on implicit inference on the relationship between time delay, flow rate changes, and tank status, instead allowing traceable data relationships to participate in subsequent decisions. Since the arrival weight is determined by both calibration dwell time and real-time pump flow rate, the mapping results of historical air intake can be updated synchronously with changes in on-site flow rate, ensuring consistency in the correspondence between the same branch under different operating conditions.

[0019] (2) In the method of this invention, before the state classification step, a continuous link of the same input projection, gas arrival aligned hidden sequence, hidden channel correlation matrix, and short and long kernel blocks is set, so that historical wind condition information, tank state information, and long and short time series changes are extracted and retained at different levels. This structure does not directly send multi-source data into the classification head, but first completes arrival weight alignment, and then completes correlation mapping and local and long-range feature extraction in the hidden channel; among them, the short kernel block focuses on the fine-grained changes of adjacent time moments, and the long kernel block focuses on the state evolution over a longer time range, so that the state sequences of multiple tanks are generated by the same model link and are consistent with subsequent control actions. The category output formed in this way is not an isolated label, but a control intermediate result synchronously corresponding to the wind condition, tank pressure, and flow state within the same window.

[0020] (3) In the method of the present invention, the category judgment and the pressure upper limit constraint are bound to the same control link. When the sampling category is established and the tank pressure is lower than the upper limit, the valve pump is activated. When the pressure upper limit is reached, the valve pump is immediately shut down. The sampling start and end times, the termination tank pressure, and the multi-tank state sequence are written into the sampling record. With the help of fault protection flags, timeout failure actions, and feedback confirmation mechanisms, the heading control, valve pump actions, and sample records can form a closed link according to the sampling tank number, so that the sampling process can be executed and traced back, and can maintain a clear termination boundary in the event of pressure abnormality or communication abnormality. Since the control commands, execution feedback, and record fields are all organized around the same sampling tank number, the subsequent analysis can directly restore the sampling process from the record without having to infer the valve status, termination reason, or sample correspondence. Attached Figure Description

[0021] Figure 1 This is a flowchart of a deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases, as described in an embodiment of the present invention.

[0022] Figure 2The following are macro-average F1 curves for each method under twelve different operating conditions in embodiments of the present invention.

[0023] Figure 3 This is a graph showing the pressure over-limit rate variation of each method under twelve working conditions in an embodiment of the present invention;

[0024] Figure 4 This is a graph showing the variation of heading tracking error under twelve different operating conditions in an embodiment of the present invention;

[0025] Figure 5 This is a diagram illustrating the process of reaching the effective coverage rate under combined airflow and pressure disturbances in an embodiment of the present invention.

[0026] Figure 6 This is a local process diagram of the absolute tank pressure of six sampling tanks approaching the upper pressure limit in the basic sampling data of an embodiment of the present invention. Detailed Implementation

[0027] To make the technical means, creative features, objectives and effects of the present invention easy to understand, the following embodiments, in conjunction with the accompanying drawings, specifically illustrate the deep learning-based UAV halogenated greenhouse gas multi-tank sampling method and system of the present invention.

[0028] Example 1

[0029] Figure 1 This is a flowchart of the deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases in this embodiment.

[0030] like Figure 1 As shown, this embodiment provides a deep learning-based method for sampling halogenated greenhouse gases from multiple tanks using a drone, including the following steps S1 to S8.

[0031] S1, Data Acquisition Steps: After the UAV hovers, acquire the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow time sequence at the hovering position to form a sampling sequence. Associate the branch dwell time calibration data with the pressure upper limit and the sampling tank number.

[0032] Specifically, after the drone hovers, three-dimensional wind speed, direction, and heading are simultaneously acquired during continuous sampling. Tank pressure, valve position, and pump flow rate are also acquired according to the sampling tank number. A time correspondence is established between the three-dimensional wind speed, direction, heading, tank pressure, valve position, and pump flow rate acquired at the same sampling time, forming a time sequence for these parameters. The calibrated flow rate, discrete calibration dwell time, and gas throughput ratio corresponding to each discrete calibration dwell time are acquired according to the sampling tank number. The calibrated flow rate, discrete calibration dwell time, and gas throughput ratio are correlated to form branch dwell time calibration data, and the upper pressure limit is obtained. Based on the discrete calibration dwell time, the current sampling time and historical sampling times covering branch dwell times are retained in the three-dimensional wind speed, direction, heading, tank pressure, valve position, and pump flow rate time sequence. The three-dimensional wind speed, direction, heading, tank pressure, valve position, and pump flow rate time sequence is arranged according to the sampling tank number and sampling time to form a sampling sequence. The branch dwell time calibration data is correlated with the corresponding sampling tank number, and the upper pressure limit is correlated with each sampling tank number.

[0033] In this embodiment, after the drone hovers, the six sampling tanks are... The number, k, represents the sampling tank number. Sampling tanks with the same number, sampling branches, valves, absolute pressure sensors, pumps, and flow sensors are connected one-to-one. Six pumps operate independently, using true east, true north, and vertical upward as the fixed coordinate system. The three axes of the three-dimensional wind speed and direction sensor point towards the nose, right side, and top of the UAV, respectively, outputting... , These represent the forward, rightward, and upward wind speed components of the aircraft, respectively. The column vector u formed by these components is the aircraft system wind speed vector, with the unit being meters per second. The subscripts x, y, and z represent the three axes of the aircraft, respectively. The flight controller outputs a third-order rotation matrix from the aircraft system to the fixed coordinate system. ;Will Each line and Multiply each term and sum them to form a wind speed column vector in a fixed coordinate system. , The values ​​represent east, north, and sky wind speeds, with subscripts E, N, and U indicating true east, true north, and vertically upward, respectively. The unit is meters per second, and positive values ​​indicate the direction of air flow. This is the superscript transpose operator. Indicates three-dimensional wind speed, wind direction, and heading. This refers to the yaw angle of the UAV, not its flight path angle. When it changes over time, the time in parentheses is used as the value, with true north as 0 and clockwise as positive. The range is... radian, It represents pi, and the heading and three-dimensional wind speed and direction use the same true north reference.

[0034] The controller uses an onboard monotonic clock for unified time synchronization. The wind speed sensor, flight controller, pressure sensor, valve position feedback, and flow sensor all sample at 10 Hz to establish a shared time axis for the six tanks. , The starting point for the six candidate windows is [number], and the sampling interval is [number]. Second, The index uses an incremental time-based approach, matching each record only with the nearest match within a 0.05-second time interval. When distances are the same, match the earlier time; for repeated records in the same channel, take the minimum error value; for records with the same error, take the last value; pair the system wind speed with the nearest attitude rotation matrix; do not interpolate the matrix; discard the six tank candidate windows if there is no qualified pair; for single-point missing measurements of wind speed, tank pressure, or pump flow in the fixed coordinate system... When missing values ​​are found, the previous valid value is multiplied by the value. Add the last effective value multiplied , These represent the valid observation times before and after the missing measurement point, with the subscripts "pre" and "post" indicating the preceding and following observations, ensuring accurate detection. When the measured value is used, and a single point of the heading is missing, the sine and cosine values ​​are interpolated with equal weight and divided by the square root of the sum of squares. If the square root is zero, there are no effective values ​​on both sides of the boundary, or two consecutive points are missing, the six candidate windows are discarded. The valve position is adopted. If there is no valve position record before the window start point, discard the six candidate windows.

[0035] In the following text, the square brackets within time series quantities represent discrete time indices, and the integer subscripts in the time quantities indicate the location of the unified time grid. The list of numbers following vectors or tensors indicates the component arrangement or tensor size, the specific meaning of which is determined by the corresponding definition. Instantaneous physical quantities not explicitly stated in time take the value at the current sampling time. For the first The absolute pressure of the tank, measured in kilopascals (kPa). This is a binary valve position, where 0 indicates closed and 1 indicates open. For the first The instantaneous volumetric flow rate of the branch under actual temperature and pressure conditions, in liters per minute, is not converted to standard state flow rate. Pump flow rates at 0 flow and during start-up / shutdown transitions are retained as measured values, and candidate windows are not deleted based on these values. Each branch is calibrated before flight, with unchanged pipe connections and temperature. Celsius, absolute pressure Under kilopascal conditions, close the non-standard branch valve to make the first The branch line is based on the minimum stable actual operating flow rate specified in the pump product manual. Operation, the superscript cal indicates the calibration condition, the unit is liters per minute; a known volume fraction tracer gas is pulsed into the inlet for 0.1 seconds, and at the inlet of the sampling tank... The second is the calibration interval, and the subscript c is the marker for calibration sampling. 32 consecutive measurements are taken at this interval, repeated three times, and the three readings for the same interval are added together and divided by 3 to obtain the dimensionless average volume fraction. , This is the average of the first ten readings from each of the three calibrations. The subscript 0 specifically indicates the background volume fraction before injection. For calibration interval index; the first Discrete calibrated dwell time The unit is seconds, and the value is the first second after the injection begins. The calibration time is 0.1 seconds, with adjacent calibration times differing by 0.1 seconds, coinciding with the discrete sampling grid, and only when the volume fraction response is higher than the specified value at least once. And the last three average volume fractions are all no higher than When using the calibration results, a negative volume fraction difference is taken as 0, and the following formula is used for calculation:

[0036] .

[0037] Then calculate the gas passage ratio. The summation index for the calibration interval is 1 to 32. This indicates summing each term. This indicates that the larger value is taken, and the calibration result is not used when the denominator is 0. For the first The probability quality of the intervals, rather than the cumulative proportions, is maintained within 32 intervals, with the sum of the proportions of all gases being 1. Unchanged, the first Interval gas quantity and background subtraction volume fraction, and The product is proportional; constant flow rate and interval are reduced to a certain value in normalization, and are associated with sampling tank number. , and This generates data on the dwell time of branch roads.

[0038] Pressure upper limit is The superscript "max" indicates the upper pressure limit. For each tank, the pressure is 95% of the minimum rated allowable absolute pressure of the tank body, valve, and connector, in kPa. 5% is a safety margin; the same value is used for tanks of the same specification, and different specifications are set separately for each tank. When the pressure reaches the upper limit, the calibration range is covered. Seconds, the pump enters stable operation. The 32 historical moments can cover the dwell time range after the traffic scaling during stable transmission, and the determination of the retention range does not form the arrival weight;

[0039] The fixed coordinate system includes wind speed, heading, tank pressure, valve position, and pump flow rate. Incremental recording generates a three-dimensional time sequence of wind speed and direction, heading, tank pressure, valve position, and pump flow rate, with each moment forming an eight-dimensional vector:

[0040] , and These represent the sine and cosine functions, respectively. The eight channels are, in order, east, north, and sky wind speed, heading sine value, heading cosine value, tank pressure, valve position, and pump flow rate. For the index of the eight original input channels, the original values ​​of the same channel at six time points across all windows of the training set (160 time points) are collected, and the maximum absolute value is taken as the channel scaling parameter. The maximum value is 1 when it is 0. The same set of data is used for training and inference. ,Will No. Each channel value divided by The sampling sequence is arranged by sampling tank, channel, and time to form a unique sampling sequence. , dimension The first 32 moments represent historical timelines, and the last 128 moments represent the current category window. Directly used as the timing input for EdgeMTSC, the pump flow channel value is multiplied by [value] before residence time scaling. Before restoring the pressure rise per minute and comparing and recording the pressure channel value, multiply it by [the value]. Restore the kPa, and then use the calibrated flow rate and pressure upper limit of the physical unit. The branch residence time calibration data and pressure upper limit are independently associated according to the sampling tank number, without occupying eight channels.

[0041] S2, arrival weight determination step: Based on the ratio of the calibration flow rate in the branch residence time calibration data to the pump flow rate in the sampling sequence, the time axis of the calibration residence time distribution is scaled to obtain the current residence time distribution. With the current sampling time as the endpoint, the historical time of the air inlet covered by the current residence time distribution is mapped to the arrival weight. The arrival weight represents the proportion of historical air intake to the current gas entering the tank.

[0042] Specifically, the calibration flow rate, discrete calibration residence time, and gas throughput ratio corresponding to each discrete calibration residence time are extracted from the branch residence time calibration data. The discrete calibration residence times are arranged chronologically and associated with the gas throughput ratio to form a calibration residence time distribution. The pump flow rate is extracted from the sampling sequence according to the sampling tank number and the current sampling time. The ratio of calibration flow rate to pump flow rate is determined. The time axis of the calibration residence time distribution is scaled according to the ratio while maintaining the gas throughput ratio corresponding to each discrete calibration residence time to obtain the current residence time distribution. That is, the residence time of gas through the sampling branch is corrected according to the change of pump flow rate. This process is the physical basis for gas arrival alignment. Starting from the current sampling time, backtrack along the time axis of the current dwell time distribution to the time before the current sampling time, and sequentially search for the historical times of the air inlet according to the current dwell time distribution to determine the historical times of the air inlet covered by the current dwell time distribution. The gas corresponding to each historical time of the air inlet in the current dwell time distribution is determined as the arrival weight by proportion. The arrival weights of the historical times of the air inlet that are not covered by the current dwell time distribution are reset to 0. All arrival weights corresponding to the same current sampling time after being reset to 0 are normalized so that the sum of the arrival weights corresponding to the same current sampling time is 1, thereby ensuring that the contribution of each historical time has a unified proportional meaning and can be stably input into the network.

[0043] In this embodiment, the sampling tanks are numbered. Read the calibration flow rate from the branch dwell time calibration data Discrete calibration dwell time and gas passing ratio , For discrete calibration location index, For the first The probability quality at each position is not a cumulative proportion; verification is required. , , And add them up one by one to get 32 ​​proportions;

[0044] If any condition is not met or the total ratio is 0, the corresponding branch dwell time calibration data is deemed invalid and relationship construction is stopped. If the verification passes, each Divide by the sum of the proportions to make the sum of the 32 normalized proportions equal to 1, then divide the 32 proportions... Arranged in ascending order of time, and the position swapping synchronously drives the normalized result. This forms the calibrated residence time distribution. ;

[0045] Sampling sequence The dimension is ,use Indicates the time index within the current category window, and uses... This indicates the current position within 160 time points, starting from... Read only the eighth channel; read the scaling parameters of the eighth channel from the controller normalized parameter storage area. , To form The maximum value obtained from the absolute values ​​of all pump flow rates in the training samples is used; if the maximum value is 0, then 1 is taken. Multiply The instantaneous pump flow rate at the current sampling moment is obtained, and the same measured flow rate is represented using two time index notation methods. The unit is liters per minute; the three subscripts of the sampling sequence element represent the sampling tank number, the original channel index, and the time position, respectively. This instantaneous pump flow rate is not filtered or converted to standard state. Take the minimum reliable positive value from the flow sensor calibration certificate. Take the smaller value between the maximum reliable reading in the calibration certificate and the maximum stable flow rate recorded in the pump product manual. The superscripts L and U are the lower limit and upper limit marks, respectively. For the first The calibration scaling of the branch applies to the flow range, including both boundaries. To ensure the pump operates within a stable range, For the low flow transition range, the rated flow rate and instantaneous pump flow rate use the same physical units. When the flow rate exceeds the applicable range of the calibration scaling, the branch residence time calibration data is deemed invalid. Division is not performed when the instantaneous pump flow rate is 0, negative, or exceeds the applicable range of the calibration scaling. A corresponding relationship must be formed, and it cannot be replaced by all-zero weights, uniform weights, or single-point weights at the current moment;

[0046] For each sampling tank, the current sampling time, and the discrete calibration location, according to Determine the scaled discrete calibration dwell time The cap indicates the quantity scaled according to the current pump flow rate. The ratio of the calibrated flow rate to the instantaneous pump flow rate is a dimensionless number. The unit remains seconds; scaling only changes the time position and does not alter the association with the discrete calibration position. ,Depend on Forming the first The sampling canister was in the first The current dwell time distribution at each current sampling moment: when the pump flow rate is greater than the calibrated flow rate, all time positions move towards the 0 time delay direction.

[0047] When the pump flow rate is lower than the rated flow rate, the instantaneous pump flow rate is still used for calculation. All time positions are shifted towards a longer time delay. During time axis scaling, the effective volumes of pipe connections, valve flow paths, and branches remain unchanged compared to the calibration period. The minimum and maximum scaling dwell times are determined from the discrete calibration positions, and further derived from the formation The previously saved original pump flow timing is read to obtain all instantaneous pump flow within the closed interval from the current sampling time minus the maximum scaling dwell time to the current sampling time.

[0048] If the interval start point is earlier than the original pump flow time sequence start point or if any sampling time lacks a measured value, no corresponding relationship is formed. The allowable upper limit of fluctuation is determined by a pre-tested flow repeatability test: respectively at , and The system runs for 60 seconds, collecting data every 0.1 seconds. Each range is divided by the set flow rate, and the three maximum values ​​are rounded up to the nearest whole percentage (5% in this example). The difference between the maximum and minimum measured values ​​within the complete transport interval does not exceed [a certain percentage]. The single flow ratio scaling condition is met when it is 5%;

[0049] Not based on when it exceeds 5% A corresponding relationship is formed, and the continuous coverage range of the current dwell time distribution is the closed interval from the current sampling time minus the maximum scaled dwell time to the current sampling time minus the minimum scaled dwell time, with both boundaries belonging to the continuous coverage range;

[0050] With a shared timeline Representing discrete time, This represents the starting sampling time corresponding to sampling sequence index 0. Take the integer. Seconds, sampling sequence retained The corresponding 160 moments, according to Obtain continuous air intake historical moments , At the current sampling time, when Accurately landed At that time, the complete Accumulate to position ,when Located at adjacent time and In between, To meet The maximum index, Where b is the index of the adjacent upper grid position, according to Calculate the linear distribution ratio And press:

[0051] ; Update the unnormalized arrival weights of two adjacent positions. This indicates that the calculation result on the right will be written to the position on the left. Integer position The accumulated unnormalized weights are initialized to 0 before processing each current sampling time. This is allowed during the mapping phase. Temporarily located outside the sampling sequence index range to distinguish between time distribution truncation and index boundary clamping, multiple discrete calibration locations are mapped to the same At that time, all contributions will be accumulated to the same... After processing 32 discrete calibration positions, all written positions are... Adding them together gives the first normalized denominator. When the first normalized denominator is greater than 0, the values ​​at each position are... Divide each by the first normalized denominator and obtain The initial arrival weight is summed to one. When the first normalized denominator is 0, it is determined that there is no effective gas passage ratio in the corresponding branch dwell time calibration data.

[0052] Establish a complete set of candidate times Candidate time set The vertical line indicates that the subsequent indexing conditions are met. The upper and lower limit markers follow the previous convention. The location of the lower boundary of the continuous coverage area or the left adjacent position is denoted as . Take the largest integer index of the grid that is no later than the lower boundary, and denote the location of the upper boundary of the continuous coverage area or its right adjacent position as . Take the smallest integer index whose grid time is no earlier than the upper boundary. This represents the coverage area of ​​the current dwell time distribution on the discrete time axis, including both boundaries. A range mask for each integer position, when , and The value is 1 when the condition is met, and 0 when any condition is not met. Multiply by each item The location not written Setting the weight to 0 resets the weights outside the range, outside the sequence, at the current time, and at future positions. Out-of-bounds contributions are not transferred to valid positions. The range mask only participates in the weight reset; it is not written into the arrival weight tensor and is not used as network input. 160 Adding the terms one by one, we get the second normalized denominator. , This represents the total initial arrival weights retained in the sampled sequence. At that time, according to Obtain the final arrival weight. If no corresponding relationship is formed, the calculation uses double-precision floating-point numbers. When there is a rounding difference, the position with the largest non-zero value is selected. When the values ​​are the same, the position with the smaller index is selected. The sum of the remaining weights in the same row is subtracted from 1, and the resulting value is written to the selected position so that the sum of the 160 final weights is 1.

[0053] Only when the branch residence time calibration data of the six sampling tanks are valid, and the instantaneous pump flow rates corresponding to the 128 current sampling times are all within the applicable flow range for calibration scaling, meet the single flow ratio scaling condition, and both normalized denominators are greater than 0, are all sorted according to the sampling tank index, current sampling time index, and historical time index. This forms a value range of 0 to 1 with a dimension of The arrival weight tensor .

[0054] If any condition is not met, not based on This establishes the correspondence between the arrival weight tensor and the gas inside the tank and the historical intake.

[0055] S3, Weight Association Step: Associat the historical time of the air inlet, the current sampling time, and the arrival weight according to the sampling tank number to form a traceable correspondence between the gas inside the tank and the historical air intake, so that it can be directly read when the preset convolutional network accumulates the arrival weights.

[0056] In the above correspondence, the first dimension corresponds to six sampling tanks, the second dimension corresponds to 128 current sampling times, and the third dimension corresponds to 160 selectable air inlet historical times. Each of the 160 locations... and , and Each item is linked to form a quaternary record consisting of the sampling tank number, the historical time of the air inlet, the current sampling time, and the arrival weight. Quaternary records corresponding to locations outside the range retain zero weight. All quaternary records together constitute the correspondence between the gas inside the tank and the historical air intake. , , , and All are dimensionless proportions. Indicates the time when the sampled sequence is retained. History advances at every moment The relative proportion of the traceable composition of the gas currently entering the tank;

[0057] The proportions of the untruncated components are consistent with those of the original components. The time is the proportion of the traceable component after renormalization, used for historical weather information, according to , , The system locates and broadcasts the same value along 256 hidden channels, without broadcasting along the sampling tank, current time, or historical time direction. The quaternary record does not include three-dimensional wind speed and direction, heading, tank pressure, and valve position.

[0058] by Second, , Taking the current sampling time of 3.2 seconds as an example, , , , The original pump flow rate was measured in liters per minute. Readings were complete from -0.8 seconds to 3.2 seconds, with a minimum of 0.78 liters per minute and a maximum of 0.82 liters per minute. The flow rate difference was [missing information]. 5% satisfies the low flow transition range and fluctuation conditions. Only three of the 32 calibration positions have non-zero ratios. The discrete calibration dwell times are 0.1 seconds, 0.2 seconds, and 3.2 seconds, respectively, and the gas passage ratios are 0.2, 0.5, and 0.3, respectively. The remaining 29 ratios are set to 0, and the scaled dwell times are 0.125 seconds, 0.25 seconds, and 4.0 seconds, respectively. The inlet historical times are 3.075 seconds, 2.95 seconds, and -0.8 seconds, respectively. 3.075 seconds is allocated 0.05 and 0.15 to positions 30 and 31, respectively; 2.95 seconds is allocated 0.25 and 0.25 to positions 29 and 30, respectively; position 30 is merged into 0.30; and -0.8 seconds corresponds to position -8 and is allocated 0.30. The sum of all initial weights and the first normalized denominator are both 1. The discrete coverage range corresponds to... , The 0.30 at position -8 is set to 0 because it exceeds the sampling sequence index range. The second normalized denominator is 0.70. The precise values ​​of the final arriving weights at positions 29, 30, and 31 are 5 / 14, 3 / 7, and 3 / 14 respectively, approximately 0.357143, 0.428571, and 0.214286. The sum of the precise values ​​is 1. The displayed decimal is an approximation, and the calculation uses unarounded values. The three non-zero quaternion records are associated respectively. , , With the current sampling time The remaining 157 positions are associated with the historical time and the current sampling time of the corresponding air intake, and the arrival weight is 0.

[0059] S4, Input projection step: Obtain historical wind condition input and tank status input from the sampling sequence, and concatenate the two inputs and project them onto the same input to obtain historical wind condition message and tank status message.

[0060] Specifically, based on the sampling tank number and the current sampling time, the corresponding historical time of the air inlet is determined according to the correspondence between the gas inside the tank and the historical air intake. The three-dimensional wind speed, wind direction, and heading of each air inlet at its historical time are extracted from the sampling sequence while maintaining the original channel position, forming the historical wind condition input. The tank pressure, valve position, and pump flow rate at the current sampling time are extracted from the sampling sequence while maintaining the original channel position, forming the tank status input. The historical wind condition input and the tank status input are then concatenated and projected onto the same input. This same input projection involves performing the same one-dimensional convolution, batch normalization, and nonlinear activation on the concatenated input, and then separating it according to the original input source. This maintains the consistency of the input structure while achieving the sharing of the same input projection parameters, forming historical wind condition messages and tank status messages using the same input projection parameters. During this process, since the two types of inputs share the same projection parameters and reside in the same latent space, the consistency of subsequent message fusion can be guaranteed.

[0061] Furthermore, when generating historical wind condition input, the corresponding channels for three-dimensional wind speed, wind direction, and heading are retained, while the corresponding channels for tank pressure, valve position, and pump flow are set to 0; when generating tank status input, the corresponding channels for tank pressure, valve position, and pump flow are retained, while the corresponding channels for three-dimensional wind speed, wind direction, and heading are set to 0.

[0062] S5, State Feature Extraction Step: Based on the sampling tank number and the current sampling time, historical wind condition messages are accumulated with arrival weights and added to the tank status messages to form a gas arrival aligned hidden sequence. This sequence is then input into a preset hidden channel correlation matrix and passed through short and long kernel blocks in a preset convolutional network to form sampling state features.

[0063] In this embodiment, the EdgeMTSC temporal classification structure (i.e., a pre-defined convolutional network) is adopted. This structure is oriented towards multivariate continuous temporal inputs and organizes data according to the batch dimension, channel dimension, and sequence length dimension. Temporal classification is completed sequentially through the same input projection, the hidden channel correlation matrix, the first message propagation short kernel block (hereinafter referred to as the short kernel block), the second message propagation long kernel block (hereinafter referred to as the long kernel block), and the classification head. The input is first mapped to a unified hidden channel space by the same input projection, and then the learnable association between channels is established by the hidden channel correlation matrix. The first message propagation short kernel block extracts the local changes of adjacent sampling times, and the second message propagation long kernel block extracts the state evolution over a longer time range and adds the residuals to form the sampling state features.

[0064] Specifically, after the same input projection, the arrival weights of each inlet at historical times are read from the correspondence between the gas inside the tank and the historical air intake according to the sampling tank number and the current sampling time. Each arrival weight is multiplied by the historical wind condition message of the corresponding inlet at historical times and accumulated along the historical times of the inlet. The accumulated historical wind condition message is added to the tank state message at the current sampling time to form a gas arrival aligned hidden sequence. The gas arrival aligned hidden sequence is input into a preset hidden channel correlation matrix. The output of the hidden channel correlation matrix is ​​added to the gas arrival aligned hidden sequence, and after batch normalization and nonlinear activation, it is input into a short kernel block. The short kernel block extracts the local changes of adjacent sampling times to form the output of the first message propagation short kernel block. The output of the first message propagation short kernel block is input into a long kernel block. The long kernel block extracts the state evolution over a longer time range and adds the residuals to form the sampling state features. Thus, the gas arrival aligned hidden sequence simultaneously carries three parts of information: historical air intake arrival relationship, current tank state, and hidden channel correlation mapping, constituting the embedding position of this application in the EdgeMTSC backbone.

[0065] by Sampling sequence and Reaching the weight tensor As the input to the short kernel block for the first message propagation, The three dimensions correspond sequentially to the sampling tank, channels, and sampling time. The eight channels sequentially represent the three components of three-dimensional wind speed and direction, the sine value of the heading, the cosine value of the heading, the tank pressure, the valve position, and the pump flow rate. According to sampling container number Current sampling time index and intake port historical time index Save the arrival weight. , The current sampling time is The position in the middle is , Location determination time For the corresponding historical moments of the air intake, positions with zero weight are not included in the accumulation. The historical data of the non-grid inlet has been written to the adjacent grid according to a linear distribution ratio. Interpolation is no longer performed. When the number of non-zero historical positions differs between different sampling tanks and the current sampling time, 160 positions are still retained and filled with zero weights, without constructing a variable-length tensor.

[0066] All structures are Historical context input and tank status input Historical wind conditions fixed channel mask retrieval Can status fixed channel mask retrieval 1 indicates reserved channel, 0 indicates set to 0, the two masks and The eight channels for each tank at each time are multiplied one by one; the superscripts F and R are the source markers for the wind condition input and the tank status input, respectively, and are both name markers rather than exponentiations.

[0067] Retain three-dimensional wind speed, wind direction, and heading. Retain tank pressure, valve position, and pump flow rate, arranged according to the sampling tank number along the batch direction. Arrange the six positions again. The six positions form Concatenation input The first six positions and the last six positions respectively identify two input sources. After projection, they are separated according to the same position. Historical time selection and current tank state extraction are both performed after separation.

[0068] Will The same input projection is fed in only once, and one-dimensional convolution, batch normalization, and ReLU nonlinear activation are performed sequentially. The one-dimensional convolution has 8 input channels and 256 output channels, with a kernel length of 1, stride of 1, padding of 0, dilation rate of 1, and number of groups of 1. The weight tensor size is [missing information]. The bias vector size is The weights are normalized, the convolutional kernels are reused at 160 time steps without changing the sequence length, the numerical stability constant of all batch normalized layers is 0.00001, the running statistical update coefficients are 0.1, and trainable scaling coefficients and offsets are enabled.

[0069] During inference, the saved running mean, running variance, scaling factor, and offset are used, and the projected output is... All were obtained by separation according to source. Historical news and tank status messages One stitching, one projection, one separation makes and They share convolutional weights, biases, batch normalization parameters, and activation rules, and do not form two sets of projection parameters;

[0070] Historical weather information The dimension remains as ,from Extract positions 32 to 159, forming a dimension of The current tank status message will have the dimension as The gas reaching the aligned hidden sequence is denoted as Each value is determined according to the same sampling tank, hidden channel, and current sampling time:

[0071] ;

[0072] in, The calculation results show the gas reaching the aligned hidden sequence. , , The following are, in order: the sampling tank number, the index of the 256 projected hidden channels, and the index of the current sampling time. This is a direct reading of historical wind condition data. This is an index for the historical time of the air intake, with 0 and 159 as the first and last indices. The weights are directly read. This represents the multiplication of two numbers. This indicates the accumulation of historical moments along 160 air intakes; batch accumulation will... Transpose Later and Multiply, For position The current tank status message value, 32 is the historical extension length. and Consistency, Symbol Indicates addition, symbol This indicates that the value on the left is determined by the calculation result on the right. For dimensionless proportions, , and All values ​​are dimensionless latent space values. Parentheses indicate that historical wind condition information is first accumulated, and then added to the current tank status information. , and Perform calculations to form , according to The arrangement is ascending, and each position is determined by the historical wind conditions corresponding to the current gas entering the tank and the current tank status. and None of them are connected to independent category heads, and no category scores are generated;

[0073] Taking the first sampling tank, the 0th current sampling time, and the first hidden channel as an example, the current sampling time corresponds to position 32. The arrival weights of historical positions 29, 30, and 31 are 5 / 14, 3 / 7, and 3 / 14, respectively. The weight of the remaining positions is 0, corresponding to historical wind condition messages of 0.20, 0.50, and 0.80. The current tank status message at position 32 is 0.10. Calculating with the unrounded weights and accumulating the three products, the result is approximately 0.457143. After adding 0.10, the value corresponding to the gas arrival aligned hidden sequence is approximately 0.557143.

[0074] Gas reaches aligned hidden sequence Located after the same input projection and before the hidden channel correlation matrix, it directly replaces the hidden sequence formed by the input projection in the short kernel block of the first message propagation, and serves as the sole input to the hidden channel correlation matrix. It does not set up connections for sampling sequences, historical wind condition messages, or tank status messages to bypass the weight accumulation and enter the hidden channel correlation matrix. Transpose The latent channel correlation matrix employs a trainable linear mapping. For each current sampling time, the 256-dimensional row vector is multiplied by the 256 rows of the weight matrix to form a 256-dimensional output. The weight matrix has a size of [missing information]. Without using bias and employing weight normalization, the linear mapping output is added to the term-by-term residuals of the linear mapping input. Perform batch normalization using 128 sampling times as channels, with the statistical range being the batch dimension and 256-dimensional implicit channels. Do not set batch normalization channels according to the 256 implicit channels, and then transpose. And perform ReLU nonlinear activation;

[0075] The activation results are input into a short kernel block. The first path uses a depthwise 1D convolution with a kernel length of 3, padding of 1, and 256 groups, and no bias, followed by 256-channel batch normalization. The second path uses a depthwise 1D convolution with a kernel length of 1, padding of 0, and 256 groups, followed by 256-channel batch normalization. The third path directly performs 256-channel batch normalization. All three outputs are... After adding each item, ReLU is performed, and then ReLU is performed again outside the block, resulting in... The first message propagation outputs a short kernel block, the convolution kernel length of 3 extracts local changes between adjacent time steps, and the other two paths retain the hidden channel response at the current time step;

[0076] The output of the first message propagation short kernel block is input into the second message propagation long kernel block. The input projection of the convolution kernel with a length of 1 transforms the 256 channels into 64 channels. The weight tensor size is... The bias vector size is Weight normalization is performed, followed by 64-channel batch normalization and ReLU. Transpose Performs a linear mapping with 64-dimensional inputs and outputs, unbiased, and weighted normalized, with a weight matrix of size [size missing]. ;

[0077] The mapped output is added to the input residual, batch normalization is performed with 128 channels, then transposed and ReLU is performed. The six depthwise one-dimensional convolutional paths of the long kernel block use the parameter sets of "kernel length, dilation rate, padding" as follows: 13, 1, 6; 5, 1, 2; 7, 2, 6; 3, 3, 3; 3, 4, 4; 3, 5, 5. The time coverage lengths are 13, 5, 13, 7, 9, and 11 sampling times respectively. Each path has 64 input channels, 64 output channels, and 64 groups. No bias is used. Each connection of 64 channels is batch normalized and maintained for 128 time times. Here, LKB is the abbreviation for the name of the second message propagation long kernel block. The six outputs are added item by item and added to the input. The 64-channel hidden sequence residuals are added together. The output is then added to the residual of the same hidden sequence and ReLU is performed to form... Sampling state characteristics , For state feature channel index, For the first The can in the The first sampling time of the current sampling moment Each state feature component As input to the EdgeMTSC classification header;

[0078] The node-wise tensor dimensions are shown in Table 1 below. Untransposed convolution nodes are categorized as follows: The arrangement is defined as follows: N is the number of batch samples of the current node, C is the number of channels of the node, and L is the sequence length of the node. The three values ​​are taken according to the actual size of each node. Transpose result, batch multiplication result and The output of the transposed implicit channel correlation matrix is ​​as follows: The arrangement is such that the three positions in the convolution weight size are the number of output channels, the number of input channels per group, and the convolution kernel length, respectively; the two positions in the linear mapping weight size are the output dimension and the input dimension, respectively; and the bias size is the number of its components. Arranged by sampling tank, current sampling time, and historical time.

[0079] Table 1

[0080]

[0081] S6, State classification step: Input the sampled state features, and determine the current category of each sampled tank through the classification head in the preset convolutional network to form a multi-tank state sequence.

[0082] Specifically, the sampled state features are input into the linear classification path and convolutional classification path of the EdgeMTSC classification head according to the sampling tank number. In the linear classification path, adaptive average pooling, flattening, and linear mapping are performed sequentially to form the linear classification result of each sampling tank. In the convolutional classification path, adaptive average pooling, one-dimensional convolution, batch normalization, nonlinear activation, random deactivation enabled during training but disabled when determining the class, and flattening are performed sequentially to form the convolutional classification result of each sampling tank. The linear classification result and the convolutional classification result of the same sampling tank are added together and averaged to form the classification logical value without Softmax function processing. The class position of the classification logical value is then assigned to the alignment class, purge class, sampling class, and stopping class, respectively. Softmax function processing is performed on the classification logical value of each sampling tank. The class position with the largest output value is selected to determine the current class of the corresponding sampling tank. Then, the current classes of each sampling tank are arranged according to the sampling tank number to form a multi-tank state sequence.

[0083] In this embodiment, at each current sampling time, a sliding window with a length of 128 consecutive sampling times and ending at the current sampling time is constructed. If the length is insufficient, inference is not performed. Thereafter, the window moves by one sampling interval each time, and the corresponding sampling state feature is recorded as follows. , dimension The three dimensions are, in order, the sampling tank, the state feature channel, and the time-incrementing window position. The 64 state feature channels correspond to the output channels of the second message propagation long kernel block. The six tank windows serve as six batch samples, sharing a set of EdgeMTSC classification head parameters and not exchanging features between tanks. The pooling classification result corresponds to the end state of the window. Inference adopts the evaluation mode and fixes the model parameters.

[0084] Among them, the linear classification path along The arithmetic mean of the 128 window positions is taken channel by channel to form Flatten out in the order of the channels The linear mapping has a 64-dimensional input and a 4-dimensional output, with a weight matrix of size [size missing]. The bias vector size is Using weight normalization, a Linear classification results , Number the sampling container. For category location index, For the first Each sampling container in the category location The linear classification results.

[0085] Convolution Class Path Pair Perform the same adaptive average pooling to obtain The 1D convolution has 64 input channels and 4 output channels, with a kernel length of 1, stride of 1, padding of 0, dilation of 1, and number of groups of 1. The weight tensor size is... The bias vector size is Using weight normalization, the output is... The four category positions are treated as four independent channels. During training, the mean and variance of each channel are calculated along the batch dimension and length dimension respectively. Normalization is not performed between category channels. The stability constant is 0.00001, and the runtime statistical update coefficient is 0.1.

[0086] Furthermore, during inference, the running mean, running variance, scaling factor, and offset saved during training are read. ReLU nonlinear activation sets negative values ​​to 0 and maintains non-negative values. The random deactivation rate is 0.2, enabled during training but disabled in evaluation mode. Random deactivation is not performed when determining the current category of each sampling tank. Disabling random deactivation does not change the ReLU nonlinear activation output, resulting in the flattened output. Convolution Class Results , Category position The convolutional classification results.

[0087] Sampling cans will be sorted by number and category. and Add each item together and multiply by 0.5 to form the unnormalized four-dimensional real number classification logical value. The overall dimension is The category positions 0, 1, 2, and 3 are fixed, corresponding to the alignment category, purge category, sampling category, and stop category. Softmax is calculated along the four-category dimension.

[0088] ;

[0089] In the formula, For the first The sampling container belongs to the category location The softmax result, , and For directly read classification logic values, Take 1 to 6. For the category location index to be determined, For the summation index, To retrieve the maximum value, the indices of the four category positions are traversed. , and All values ​​are between 0 and 3. Represents the natural index. Using the previous definition to find the maximum value, Using the previous definition for summation, The symbol indicates that the index belongs to the set enclosed by curly braces. and These represent subtraction and determining the left side from the right side, respectively. The outer fraction represents normalization. 0, 1, 2, and 3 represent four fixed category positions. The classification logistic value and the Softmax result are dimensionless. The exponent input is dimensionless and the denominator is positive. The value ranges from 0 to 1, and the sum of the four Softmax results in the same container is 1.

[0090] The training labels are generated from valve position, pump flow rate, tank pressure, pressure limit and control timestamp in independent manual control experiments. The classification head inference results are not used. The flow sensor resolution is read from the sensor calibration parameters. The pump flow rate is treated as 0 when it does not exceed the resolution and as greater than 0 when it exceeds the resolution. The purging start time is the first timestamp when the valve position is closed and the pump flow rate changes from 0 to greater than 0.

[0091] The sampling start time is the first timestamp after the cumulative purging time is no less than the maximum residence time corresponding to the non-zero gas passage ratio in the current residence time distribution, when the valve position changes from closed to open and the pump flow rate is greater than 0. The sampling end time is the earliest timestamp after the sampling starts when the tank pressure reaches the upper pressure limit, reaches the preset termination time in the control parameters, or the valve or pump changes from open to closed. Test records with a cumulative purging time less than the maximum residence time are not included in the training window. When the window end point falls between the drone hovering and before the purging starts, and the valve position is closed and the pump flow rate is 0, it is marked as category 0. When it falls between the purging start and before the sampling start, it is marked as category 1. When it falls between the sampling start and before the sampling end and the tank pressure is lower than the upper pressure limit, it is marked as category 2. From the sampling end point, it is marked as category 3. The left endpoint of each time interval is included, and the right endpoint is not included. Only one integer label is generated for each window.

[0092] Before training, 10% of all labeled samples were stratified by category and used as the validation set. The remaining samples were used as the training set. The number of samples in each of the four classes was greater than 0 in both the training and validation sets. During training, 16 single-can windows were drawn from different sampling cans and different window endpoints. The classification logistic value dimension was [missing information]. The labels are 16 integers ranging from 0 to 3. During inference, the six-can window at the same current sampling time forms six samples. The cross-entropy directly receives the classification logic value and integer label without Softmax processing. The exponential normalization and negative natural logarithm calculation of the label category position are completed inside the cross-entropy. The Softmax result is not sent to the cross-entropy. The category weight is obtained by normalizing the inverse of the number of samples of each category in the training set. The sum of the four weights is 4.

[0093] The total loss is calculated by multiplying the cross-entropy of each sample within a batch by the corresponding class weights, summing the results, and then dividing by the sum of the corresponding class weights within the batch. No auxiliary loss is set. The AdamW optimizer is used with an initial learning rate of 0.01, weight decay of 0.0001, batch size of 16, and a maximum training duration of 200 epochs. Training stops when the total loss of the validation set does not decrease for 15 consecutive epochs, and all EdgeMTSC parameters of the epoch with the lowest total loss in the validation set are saved.

[0094] During inference, the maximum value among the four Softmax results from the same sampling vessel is selected. When results are in a tie, the category with the smallest index is selected, and then the current category is determined according to a fixed correspondence. The category number is from 0 to 3, corresponding to the alignment, purging, sampling, and stop categories respectively; the six current categories are arranged in ascending order of sampling tank number to form a multi-tank state sequence. , It only corresponds to the same window endpoint, does not include the historical timeline, and each inference is based on the newly formed timeline. Replace the current multi-tank state sequence digit by digit according to the sampling tank number and associate it with the window end time, without appending the previous category or removing the previous one. Enter the EdgeMTSC classification header.

[0095] S7, Control Command Generation Step: Determine the heading and valve / pump control commands based on the multi-tank state sequence.

[0096] Specifically, the current category of each sampling tank is extracted from the multi-tank state sequence according to the sampling tank number, and the heading control command is determined according to the current category of each sampling tank; the tank pressure of the corresponding sampling tank is obtained according to the sampling tank number and the current sampling time, and the tank pressure is compared with the pressure upper limit to obtain the pressure comparison result.

[0097] Furthermore, when the pressure comparison result indicates that the tank pressure is below the pressure limit and the current category is the sampling category, a valve pump control command to open the valve pump is generated; when the pressure comparison result indicates that the tank pressure has reached the pressure limit, a valve pump control command to close the valve pump is generated, thus clarifying the tank-level closed-loop control conditions for starting sampling and stopping when the pressure limit is reached. The heading control command is associated with the valve pump control command according to the sampling tank number, forming heading and valve pump control commands.

[0098] In this embodiment, at each current sampling time, the sampling tank number is used as the basis for the sampling time. Read the current category from the multi-tank state sequence. , Choose the alignment category, purge category, sampling category, or stop category, and read the eastward wind speed at the current sampling time from the sampling sequence. Northward wind speed The system calculates the heading sine, heading cosine, and tank pressure, then restores the physical values ​​using saved channel scaling parameters. A two-parameter arctangent function is then used, inputting the heading sine and cosine values ​​sequentially to determine the current heading. negative angle plus ,Will Transfer Within the arc range, six sampling branches are installed parallel to the directed axis pointing outwards from the air inlet opening. The installation and calibration measuring head is rotated clockwise to the common angle of the directed axis, forming the arc-controlled air inlet installation angle. The data is written to the control parameter storage area. The lower limit of the wind speed sensor measurement is read from the calibration parameters. When the square root of the sum of the squares of the eastward and northward wind speeds is not less than the lower limit of measurement, the two-parameter arctangent function... according to and The sign of the airflow direction azimuth is determined by the airflow direction azimuth plus the airflow direction azimuth. ,reduce and according to The remainder is used to form a shared target course for the six tanks. The asterisk indicates the target value. When the horizontal wind speed is below the measurement lower limit, the target heading is the current heading, the yaw rate is set to zero, and the operation of each tank valve and pump is not changed.

[0099] The target heading error is calculated using the following formula:

[0100] ;

[0101] In the formula, For the target heading error, For the aforementioned target course, Using the current heading definition from the previous text, Pi Indicates one week. This indicates taking the non-negative remainder. , and These represent addition, subtraction, and calculation where the right side determines the left side, respectively. Parentheses indicate that calculations are performed from the inside out. The range is radians, spanning 0 radians and When the radius is radian, take a shorter turning distance.

[0102] The heading control command uses the yaw rate command, with a proportional coefficient of 0.8 per second. Multiply by a scaling factor and limit the yaw rate to between -0.35 radians per second and +0.35 radians per second to form a yaw rate target. A positive value indicates clockwise rotation and a negative value indicates counterclockwise rotation. The alignment is considered complete when the absolute value of the target heading error is no greater than 0.052 radians and is maintained for ten consecutive 0.1-second sampling intervals. During purging and sampling, the heading is corrected according to the same rules.

[0103] Read the current absolute tank pressure and the previous four absolute tank pressures according to the sampling tank number. Sum the five tank pressures and divide by five to form the filtered tank pressure. Upper limit of pressure for tank use During the initial comparison, the current absolute tank pressure is less than The result is lower than expected; the current absolute tank pressure is not less than [amount missing]. Immediately generate and latch the achieved result, including cases with the same value. After latching the result, the release judgment is only executed when the ground side confirms that the sampling tank with the same number has been replaced and a reset command containing the tank number is sent via the remote control link, the valve position is 0, and the pump has stopped. The filter tank pressure is not greater than 0 at three consecutive sampling times. When the pressure reaches 1 kPa, the latch is released and a result is generated below the expected value. If no reset command is received or three low-pressure acknowledgments are completed, the result is maintained. If the filter tank pressure is greater than 1 kPa, the latch is released and a result is generated below the expected value. kPa and less than The previous pressure comparison results should be maintained.

[0104] Six binary valves and six independent pumps are connected one by one according to the sampling tank number. The valves and pumps are independent actuators. The binary valves adopt a two-position selection structure. Valve position 0 isolates the sampling tank and connects to the exhaust end. Valve position 1 connects the sampling tank and isolates the exhaust end. When the pressure upper limit is reached, the current category is not considered. The corresponding branch immediately determines valve position 0 and pump to stop and removes the heading request. Pressure safety action takes precedence over category action. When the pressure comparison result is lower, the target heading is determined according to the category, valve position 0 and pump to stop.

[0105] The purge category determines the target heading, valve position 0, and pump start; the sampling category determines the target heading, valve position 1, and pump start; the stop category uses the global target heading, valve position 0, and pump stop. All sampling tanks below the result and belonging to either the purge or sampling category constitute the currently allowed sampling tanks. Independent sampling branches execute valve and pump actions in parallel. When multiple tanks have different categories, the global heading action is determined in the order of sampling category, purge category, alignment category, and stop category.

[0106] The same target headings in the first three categories are merged into one target heading instruction. The stop category does not cover the target heading being executed. When all sampling tanks are in the stop category or the pressure limit is reached, the target heading is taken as the current heading. The yaw rate target is set to 0. The valve and pump targets are determined simultaneously within the same 0.1 second control cycle. The action interval is 0. When the pressure limit is reached or a fault occurs, the target heading is immediately set to 0.

[0107] The heading and valve / pump control commands are generated based on the sampling tank number. Each command includes the tank number, current category, pressure comparison result, target heading, yaw rate target, valve target position, pump target position, current sampling timestamp, 0.2-second validity period, priority, fault protection flag, and timeout failure action. When the pressure limit is reached or fault protection is activated, the priority is set to 3, the sampling category to 2, the purging category to 1, and the alignment and stop categories to 0. The priority only controls valves and pumps with the same number. The sensor range and flow measurement lower limit are read from the calibration parameters. When the tank pressure is under-measured or exceeds the range, the fault protection flag is set to 1. After the same valve target position or pump target position is held for 0.5 seconds by continuously refreshed commands that have not timed out, the following situations also result in a value of 1: valve position feedback is inconsistent with the target position, pump target position is 1 and pump flow is not greater than the flow measurement lower limit, or pump target position is 0 and pump flow is higher than the flow measurement lower limit. When the target position changes, the timer is reset. When there is no fault, the timer is set to 0. When the fault protection flag is set to 1, only the target position of the valve pump with the same number is set to 0 and removed from the heading request. The remaining fault-free heading requests continue to form a unique global heading. The yaw rate target is set to 0 only when there are no fault-free requests. The timeout failure action also closes the corresponding valve pump and removes the heading request. The current category, heading command and valve pump command are always bound to the sampling tank number.

[0108] S8, control command execution steps, executes heading and valve pump control commands, and records the sampling start time, sampling end time, termination tank pressure and multi-tank status sequence according to the sampling tank number, and outputs multi-tank sampling records.

[0109] Specifically, the heading and valve / pump control commands are obtained according to the sampling tank number. The heading control command is executed to adjust the heading, and the valve / pump control command is converted into the opening or closing actions of the valves / pumps corresponding to each sampling tank to achieve the required valve / pump opening / closing state for each sampling tank. The valve / pump opening / closing state and the multi-tank state sequence are read according to the sampling tank number. When the current category is the sampling category and the valve / pump opening / closing state changes from closed to open, the sampling start time is recorded. When the valve / pump opening / closing state changes from open to closed, the sampling end time is recorded, and the tank pressure at the sampling end time is determined as the termination tank pressure. The sampling start time, sampling end time, termination tank pressure, and multi-tank state sequence are associated with the corresponding sampling tank number to form the sampling record for each sampling tank. The sampling records of each sampling tank are arranged according to the sampling tank number, and the multi-tank sampling record is output.

[0110] In this embodiment, the controller and the sampling sequence share an onboard monotonic clock with a control period of 0.1 seconds. Each current sampling moment... The superscript ctl marks the control execution timeline. The control execution index starts at 0 and increments continuously from the first control cycle after the current hover. This timestamp is the same as the monotonic clock timestamp of the end point of the current classification window. The controller first receives the current multi-tank state sequence, then receives the sequence formed by the current multi-tank state sequence, with the current sampling timestamp being... The heading and valve / pump control commands are parsed according to the sampling tank number. The target heading, yaw rate target, pressure comparison result, valve target position, pump target position, 0.2-second validity period, priority, fault protection flag and timeout failure action are parsed. The sampling tank numbers are 1 to 6. Among multiple valid commands with the same number, the highest priority is taken first. If there are multiple valid commands with the same priority, the latest timestamp is taken. If no valid command with the same number is received for 0.2 consecutive seconds, the communication is determined to be interrupted and the timeout failure action is executed.

[0111] The heading request is extracted from the valid commands with a pressure comparison result lower than the value and a fault protection flag of 0. The same heading request is merged and written to the flight controller only once. The flight controller adjusts the yaw angle according to the yaw rate target. When the absolute value of the target heading error is not greater than 0.052 radians and is maintained for ten cycles, the zero yaw rate target is written. When there is no valid heading request, the current heading and the zero yaw rate target are written. When a single tank command fails or malfunctions, only the timeout failure action of the corresponding sampling branch is executed, and the remaining heading requests are not overwritten.

[0112] During the same cycle, the valve target position and pump target position are converted into binary valve drive level and pump start / stop level, respectively, and written to the binary valve and independent pump with the same number. At the end of the cycle, the valve position feedback and pump flow rate with a unified timestamp are read. The feedback timestamp is not earlier than the command timestamp, and the sampling start and end times are based on the feedback timestamp. The sampling containers are numbered from 1 to 6. Using the aforementioned control execution index, the pump operating status is recorded as follows: When the pump flow rate is greater than the lower limit of flow measurement Set to 1; set to 0 if the flow rate is not greater than the lower limit of the flow measurement; valve position feedback is 1 and... At that time, the valve pump is in open or closed state. Setting it to 1 indicates that it is enabled;

[0113] Valve position feedback is 0 or When the value is 0, it indicates that the valve is closed. Under the purging category, the valve position feedback is 0. , If the value is still 0, and after 0.5 seconds of continuous issuance to the same target, the valve position feedback is inconsistent, the pump flow rate is not greater than the lower limit of flow measurement after the pump starts, the flow rate is still higher than the lower limit of flow measurement after the pump stops, or the feedback is missing, the actuator is judged to be faulty, the cause of the actuator fault is recorded, and the timeout failure action in the same numbered instruction is executed.

[0114] Read the current category from the current multi-tank status sequence. When the pressure comparison result is reached, the current category is the stop category, the control terminal receives a manual termination command containing the sampling tank number and timestamp, or the actuator fails or communication is interrupted, execute the timeout failure action in the same numbered command and register the termination reason.

[0115] When multiple causes occur simultaneously, they should be registered in the following order: actuator failure, reaching pressure limit, manual termination, communication interruption, and stop category. The first execution of the command should follow this order. and Setting it to 0, or negative one, indicates the initialization position. This indicates the index at the previous time step, with no incomplete sampling records, and the current category is the sampling category. , At that time, the sampling start time is recorded using the first feedback activation timestamp;

[0116] Continuous startup or repeated startup does not rewrite the start time, and there are incomplete sampling records. , At that time, the sampling termination time is recorded with the first closing feedback timestamp, and the actual closing edge is continuously monitored when the closing command is issued and feedback is available;

[0117] If the feedback is missing or the shutdown command is held for 0.5 seconds and the shutdown is not confirmed, the abnormal closure record is recorded with the timestamp of the actuator fault judgment, and the termination feedback confirmation flag is set to 0. After the abnormal closure, the same tank is prohibited from starting until the valve position feedback is 0, the pump flow rate is not greater than the lower limit of the flow measurement and the fault reset is completed.

[0118] When an incomplete sampling record is established, the sampling start time is written. In each control cycle, a timestamp, absolute tank pressure, and a complete multi-tank status sequence arranged by tank number 1 to 6 are written and saved to non-volatile storage. The record content is written first, and the completion flag is updated after writing. When the multi-tank status sequence is missing, the corresponding category is written as null and the status sequence complete flag is set to 0. After an abnormal power outage and power restoration, the latest incomplete sampling record with the completion flag is read. The record is closed with the timestamp of the last successful saving before the power outage. The reason for termination is recorded as abnormal power outage, and the termination feedback confirmation flag and the status sequence complete flag are set to 0.

[0119] When the sampling termination time coincides with the pressure sampling time, the termination time and the first four valid tank pressures are read from the sixth channel of the sampling sequence and multiplied by the scaling parameter of the sixth channel. The pressure is restored to the absolute tank pressure in kPa. The arithmetic mean is taken as the termination tank pressure. When the sampling termination time is between adjacent pressure sampling times, the arithmetic mean of the five points of the two adjacent times is calculated. Then, linear interpolation is performed according to the time ratio between the sampling termination time and the two times. If the effective tank pressure on either side is missing, the termination tank pressure is written as a null value and the effective flag of the termination tank pressure is set to 0. It is not replaced by the upper limit of pressure or zero value.

[0120] Sampling Record The fields are fixed. The record index for the same sampling tank is generated by incrementing the start time, starting from 1 and using lowercase handwriting to distinguish it from the number 1. The sampling tank number and record index are unsigned integers, the start and end times are real numbers in seconds, the termination tank pressure is a nullable real number in kilopascals, the multi-tank status sequence is a variable-length sequence consisting of a real timestamp and six nullable integer category values, the termination reason is an unsigned integer, and the quality flag is a four-digit binary array. The termination reason 0 to 5 represent, respectively, reaching the pressure limit, stop category, manual termination, actuator failure, communication interruption, and abnormal power failure. The four digits of the quality flag represent, respectively, start feedback confirmation, termination feedback confirmation, termination tank pressure validity, and status sequence integrity. A value of 1 is used when a condition is met, and 0 is used otherwise. Completed records are first arranged in ascending order by sampling tank number, and within the same sampling tank, they are then arranged in ascending order by start time to form multi-tank sampling records.

[0121] This embodiment also provides a deep learning-based UAV multi-tank sampling system for halogenated greenhouse gases, used to perform the above-mentioned method, and has the following features: a data acquisition module, an arrival weight determination module, a weight association module, an input projection module, a state feature extraction module, a state classification module, a control command generation module, and a control command execution module.

[0122] Among them, the data acquisition module is used to execute S1, the arrival weight determination module is used to execute S2, the weight association module is used to execute S3, the input projection module is used to execute S4, the state feature extraction module is used to execute S5, the state classification module is used to execute S6, the control instruction generation module is used to execute S7, and the control instruction execution module is used to execute S8.

[0123] Example 2:

[0124] The role and effect of the embodiments

[0125] For ease of explanation, the same symbols are used for the same steps and structures as in Embodiment 1, and the same descriptions are omitted in this embodiment.

[0126] In this embodiment, a single sampling tank is used as a single-tank training sample within a window of the current sampling time. The sampling sequence consists of six sampling tanks, eight input channels, and one hundred and sixty consecutive sampling times. The dimensions of the sampling sequence are [6, 8, 160]. The first dimension of six corresponds to the second dimension of eight, which in turn corresponds to the eight input channels: east, north, and sky wind speed, heading sine value, heading cosine value, valve position, and pump flow rate. The third dimension of one hundred and sixty is arranged according to the sampling time sequence, with the first thirty-two times being historical extensions and the last one hundred and twenty-eight times being the current classification window. The dimensions of the arrival weights are [6, 128, 160]. The first dimension of six corresponds to the sampling tank number, the second dimension of one hundred and twenty-eight corresponds to the window endpoint position of the current classification window, and the third dimension of one hundred and sixty corresponds to the historical time position of the candidate air inlet. Each weight element represents the arrival weight of the corresponding sampling tank and the candidate historical time under the window endpoint on the gas in the current tank. The sampling sequence of the single-tank training sample is [1, 8, 160], and the arrival weights are [1, 128, 160]. The original channels of different sampling tanks are not mixed.

[0127] Training labels are determined by valve position, pump flow rate, tank pressure, pressure limit, and control timestamp from independent manual control experiments. Labels are not generated by reverse engineering the EdgeMTSC output results. The hovering phase with the valve closed and pump flow rate zero is labeled as alignment category, numbered 0. The purging phase with the valve closed and pump flow rate greater than zero is labeled as purging category, numbered 1. The phase with the valve open, pump flow rate greater than zero, and tank pressure lower than the pressure limit is labeled as sampling category, numbered 2. The phase after sampling terminates, pressure reaches the pressure limit, or a stop command is executed is labeled as stop category, numbered 3. The left endpoint of each time interval is included, while the right endpoint is not. Labels are only associated with the end time of the window. Records with invalid pump flow, invalid branch dwell time calibration data, or insufficient purging time for the maximum dwell time are not included in the training samples.

[0128] To avoid adjacent windows of the same flight mission appearing simultaneously in the training and validation sets, the data is divided according to the flight mission number, rather than randomly divided by single-line records. Each repeated experiment under each condition corresponds to an independent flight mission. The scenario number and the number of repetitions jointly determine the flight mission number. All sampling tank windows within the same flight mission can only be assigned to the same dataset. Following the division rules of Example 1, 10% of all labeled samples are stratified by category as the validation set, and the remaining 90% are used as the training set. The independent repeated experiments of the twelve ablation conditions are used as evaluation tasks and do not participate in parameter updates. The sampling tank numbers in the training set, validation set, and evaluation task can be the same, but the flight mission numbers are not repeated. The same set of eight-channel scaling parameters is used for training and inference. The scaling parameters are determined and saved only by the training task.

[0129] During training, sixteen single-tank samples are extracted from different sampling tanks and different window endpoints. The sampling sequence of a training batch is [16,8,160], and the arrival weight is [16,128,160]. The training label is a sequence of class numbers containing sixteen integers from zero to three. After shared input projection, source separation, arrival weight accumulation, tank state message summation, hidden channel correlation matrix, first message propagation short kernel block and second message propagation long kernel block, the sampling state features are obtained. The classification header outputs sixteen rows of classification logic values, each row containing four categories. The dimension of the classification logic values ​​is [16,4]. The classification logic values ​​are directly fed into the weighted cross-entropy before Softmax. The category weights are obtained by normalizing the inverse of the number of samples of the four categories in the training set. The weights are averaged within the batch according to the category weights. During inference, the six sampling tanks form a sampling sequence [6,8,160] and arrival weight [6,128,160] at the same current sampling time. The dimension of the classification logic values ​​is [6,4]. The output is a multi-tank state sequence arranged by the sampling tank number.

[0130] AdamW is used to update all EdgeMTSC parameters. The initial learning rate is 0.01, the weight decay is 0.0001, the batch size is 16, and the maximum training time is 200 epochs. After each epoch, the total loss is calculated on the task-level validation set. Training stops when the loss does not decrease for 15 consecutive epochs. The input projection, latent channel correlation matrix, first message propagation short kernel block, second message propagation long kernel block, and classification head parameters of the epoch with the lowest total loss on the validation set are saved. Random deactivation is disabled during evaluation. Six sampling jars form six batches of samples at the same current sampling time. The output is a multi-jar state sequence arranged by sampling jar number.

[0131] The ablation experiment was set up with twelve operating conditions, covering stable wind, moderate wind, gusts, rapid wind direction change, low flow rate, flow fluctuation, large pipeline delay, pressure close to the upper limit, pressure sensor noise, six-tank parallel conflict, combined wind, flow and pressure disturbance, and long-term continuous sampling. Each operating condition was repeated six times, with each repeated test being an independent flight mission. All methods used the same batch of sampling sequences, the same set of training and validation tasks, the same number of training rounds, the same evaluation tasks, the same evaluation indicators, and the same control cycle. Only one innovative technical point was changed. The complete scheme retains wind direction sensing, arrival weight, and pressure closed loop. When arrival weight is removed, it is replaced with equal-weighted historical convergence. When wind direction sensing is removed, the flight path is fixed. When pressure closed loop is removed, the pressure upper limit comparison is canceled. With pressure latching, the traditional time series baseline uses ordinary time series classification and fixed-period sampling control. Each ablation condition uses independently stored model parameters and is compared with the same evaluation task. The macro-average F1 is the arithmetic mean of the four types of F1 values. The termination pressure error is the absolute value of the difference between the termination tank pressure and the corresponding upper pressure limit. The pressure over-limit rate is the proportion of the number of records where the termination tank pressure exceeds the corresponding upper pressure limit to the total number of sampling records. The heading tracking error is the average of the absolute values ​​of the minimum angle difference between the target heading and the actual heading within the control period. The record closure rate is the proportion of the number of records with both valid start and end times to the number of start records. The arrival weight effective coverage rate is the proportion of the total proportion of gas passing through the historical window to the total proportion of the complete calibration.

[0132] Table 2. Average results of each method under twelve operating conditions and six replicates.

[0133] method Macro average F1 Termination pressure error / kPa Pressure over-limit rate / % Heading error / ° Record closure rate Complete solution 0.9023 0.5723 1.7642 3.3756 0.9765 Remove arrival weights 0.8003 1.2641 4.0720 4.1632 0.9469 Remove wind direction perception 0.8091 0.7759 2.4337 10.7513 0.9597 Remove pressure closed loop 0.8482 2.1672 10.0539 3.8514 0.8749 Traditional time-series baseline 0.6845 2.9963 12.2876 11.3666 0.7963

[0134] As shown in Table 2 above, the macro-average F1 of the complete scheme is 0.9023, which is higher than that of removing arrival weights, removing wind direction perception, removing pressure closure, and traditional time-series baseline. After removing arrival weights, the termination pressure error and pressure over-limit rate increase, indicating that when historical wind conditions are not aligned with the actual gas arrival relationship, classification and pressure control are affected. After removing wind direction perception, the heading error increases to 10.7513 degrees, indicating that wind direction perception directly affects heading tracking. After removing pressure closure, the pressure over-limit rate increases to 10.0539%, and the recording closure rate decreases to 0.8749, indicating that pressure comparison and pressure latching directly affect safe termination and recording closure.

[0135] like Figure 2 As shown, the macro-average F1 curve of the complete scheme is generally higher than that of other methods under twelve operating conditions, and maintains small fluctuations under conditions of rapid wind direction change, flow fluctuation and combined wind, air and pressure disturbance. This indicates that the combination of gas arrival aligned hidden sequence and EdgeMTSC classification structure can maintain the consistency of four state discrimination.

[0136] like Figure 3 As shown, the pressure over-limit rate of the complete scheme is in the lowest range under all operating conditions. Even when the pressure is close to the upper limit, the pressure sensor noise is high, and the sampling is continuous for a long time, there is no significant increase. This indicates that the pressure comparison results can participate in the sampling stop determination and suppress over-limit records.

[0137] Furthermore, it is possible to Figure 4 The results show that removing wind direction sensing or using a traditional time-series baseline significantly increases the heading tracking error, while the error curve of the complete scheme is relatively stable. This indicates that the heading control command formed by the three-dimensional wind speed and direction, heading, and current category can adapt to changes in wind direction. Figure 5 The results show that the effective coverage of the arrival weight of the complete scheme continuously increases with the control process, and is higher than that of the equal-weighted historical convergence and the traditional time-series baseline under the combined disturbance of airflow and pressure. This indicates that scaling the residence time, mapping the historical time, and normalization processing can retain the historical air intake information corresponding to the actual arrival of the current sampling tank.

[0138] Figure 6 The diagram illustrates the localized absolute tank pressure changes of the six sampling tanks as they approach their respective pressure limits, demonstrating the control effect of pressure comparison results on each sampling tank. Figure 6 The time range shown does not represent the complete pressurization process from the vacuuming state to the end of sampling. Before actual sampling, each sampling tank is evacuated to an absolute tank pressure of less than 0.01 kPa. After the corresponding valve pump is turned on, the absolute tank pressure gradually increases. When the upper pressure limit is reached, the corresponding valve pump is turned off to stop the absolute tank pressure from rising. The tank pressure status of one sampling tank is not used to control other sampling tanks.

[0139] Example 3

[0140] This embodiment illustrates the implementation method of sequential sampling at multiple sampling points. Taking six sampling points as an example, the six sampling points correspond to sampling tank numbers 1 to 6 in a predetermined order, with each sampling point using one sampling tank. Before sampling, each sampling tank is evacuated to an absolute tank pressure of less than 0.01 kPa, and each sampling tank is kept at valve position 0 and pump stopped. After the drone arrives at a sampling point and hovers, sampling is performed according to the sampling tank number corresponding to that sampling point, while the remaining sampling tanks are kept at valve position 0 and pump stopped.

[0141] After the drone hovers at the current sampling point, it acquires the three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow time sequence according to step S1 to form a sampling sequence. The data generated before the current sampling point hovers and the data generated at the previous sampling point are not used in the sampling sequence of the current sampling point. If the sampling sequence length is insufficient, inference is not performed.

[0142] According to steps S2 to S6, the correspondence between the gas inside the tank and the historical intake gas, the sampling status characteristics, and the multi-tank status sequence are formed. The sampling tank corresponding to the current sampling point is sequentially determined as the alignment, purging, sampling, or stop category. The six sampling tanks form a multi-tank status sequence according to the same current sampling time, which is used to uniformly determine the status according to the sampling tank number. It does not mean that the six sampling tanks start the valve pump at the same sampling point at the same time.

[0143] According to steps S7 and S8, the heading and valve pump control commands are executed on the sampling tank corresponding to the current sampling point. When the tank pressure is lower than the pressure limit and the current category is sampling, the corresponding valve pump is turned on. When the pressure limit is reached or the current category is stop, the corresponding valve pump is turned off. The sampling start and end times, the termination tank pressure and the state sequence of multiple tanks are recorded. The sampling tank that has completed sampling will keep the valve position 0 and the pump stopped at subsequent sampling points.

[0144] After the sampling record of the current sampling point is formed, the drone moves to the next sampling point and hovers. The above process is repeated according to the sampling tank number corresponding to the next sampling point until the sampling of each of the six sampling points is completed. The sampling record corresponding to each sampling point is determined by the sampling tank number.

[0145] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

[0146] Those skilled in the art should understand that this invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely illustrative of the principles of the invention. Various changes and modifications can be made to this invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the invention as claimed. The scope of protection of this invention is defined by the appended claims and their equivalents.

Claims

1. A deep learning-based method for sampling halogenated greenhouse gases from multiple tanks using a drone, characterized in that, Includes the following steps: The data acquisition steps involve acquiring the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow time sequence at the hovering location after the drone hovers, forming a sampling sequence, and associating the branch dwell time calibration data with the pressure upper limit and the sampling tank number. The arrival weight determination step involves scaling the time axis of the calibration residence time distribution based on the ratio of the calibration flow rate in the branch residence time calibration data to the pump flow rate in the sampling sequence to obtain the current residence time distribution. Then, with the current sampling time as the endpoint, the historical times of the air inlet covered by the current residence time distribution are mapped to arrival weights, where the arrival weights represent the proportion of historical air intake to the current gas entering the tank. The weight association step involves associating the historical time of the air inlet, the current sampling time, and the arrival weight according to the sampling tank number, thereby forming a correspondence between the gas inside the tank and the historical air intake. The input projection step involves obtaining historical wind condition input and tank status input from the sampling sequence, and then concatenating the two inputs and projecting them onto the same input to obtain historical wind condition message and tank status message. The state feature extraction step involves accumulating the historical wind condition messages with the arrival weight according to the sampling tank number and the current sampling time, adding them to the tank state messages to form a gas arrival aligned hidden sequence, which is then input into a preset hidden channel correlation matrix. After passing through short kernel blocks and long kernel blocks in a preset convolutional network, sampling state features are formed. The state classification step involves inputting the sampled state features and determining the current category of each sampled container through the classification head in the preset convolutional network, thus forming a multi-container state sequence. The control command generation step determines the heading and valve / pump control commands based on the multi-tank state sequence. The control command execution steps include executing the heading and valve pump control commands, recording the sampling start time, sampling end time, termination tank pressure, and multi-tank status sequence according to the sampling tank number, and outputting the multi-tank sampling record.

2. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that: In the data acquisition step, after the UAV hovers, the three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow rate acquired at the same sampling time are established to form a time sequence of three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow rate; According to the sampling tank number, obtain the calibration flow rate, discrete calibration residence time and gas passage ratio corresponding to each discrete calibration residence time of the corresponding sampling branch; associate the calibration flow rate, the discrete calibration residence time and the gas passage ratio to form branch residence time calibration data, and obtain the pressure upper limit; Based on the discrete calibration dwell time, the current sampling time and the historical sampling time covering the branch dwell time are retained in the three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow time sequence. The sampling sequence is formed by arranging the three-dimensional wind speed and direction, heading, tank pressure, valve position, and pump flow rate according to the sampling tank number and sampling time.

3. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that, In the arrival weight determination step, based on the sampling tank number and the current sampling time, the arrival weights of historical times at the air inlets that do not fall within the coverage area of ​​the current dwell time distribution are reset to 0. The arrival weights after being set to 0 are normalized so that the sum of the arrival weights corresponding to the same current sampling time is 1; The normalized arrival weights are associated with the historical time of the air inlet and the current sampling time to form a correspondence between the gas inside the tank and the historical air intake.

4. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that: In the state feature extraction step, the corresponding historical time of the air inlet is determined according to the correspondence between the gas inside the tank and the historical air inlet, based on the sampling tank number and the current sampling time. Extract the three-dimensional wind speed, wind direction and heading of each air inlet at historical moments from the sampling sequence and keep the original channel position to form historical wind condition input; Extract the tank pressure, valve position, and pump flow rate at the current sampling moment from the sampling sequence and maintain the original channel position to form the tank status input; The historical wind condition input and the tank status input are concatenated and then projected onto the same input. The same input projection is to perform the same one-dimensional convolution, batch normalization and non-linear activation on the concatenated input. Then, the input is separated according to the source of the input before concatenation to form historical wind condition messages and tank status messages using the same input projection parameters. After the same input projection, the arrival weight of each air inlet is read from the correspondence between the gas in the tank and the historical air intake according to the sampling tank number and the current sampling time. Each arrival weight is multiplied by the historical wind condition message of the corresponding air inlet and accumulated along the historical air inlet time. The accumulated historical wind condition message is added to the tank status message at the current sampling time to form a gas arrival aligned hidden sequence. The gas arrival aligned hidden sequence is input into a preset hidden channel correlation matrix. The output of the hidden channel correlation matrix is ​​added to the gas arrival aligned hidden sequence. After batch normalization and nonlinear activation, the result is input into the short kernel block. The short kernel block extracts the local changes of adjacent sampling times to form the output of the first message propagation short kernel block. The first message is propagated to the short kernel block output and input to the long kernel block. The long kernel block extracts the state evolution over a longer time range and adds the residuals to form the sampled state features.

5. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 4, characterized in that: in, When generating the historical wind condition input, retain the corresponding channels for three-dimensional wind speed, wind direction and heading, and set the corresponding channels for tank pressure, valve position and pump flow to 0; When the tank status input is generated, the channels corresponding to tank pressure, valve position and pump flow are retained, and the channels corresponding to three-dimensional wind speed, wind direction and heading are set to 0.

6. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that: In the state classification step, the sampled state features are input into the linear classification path and convolutional classification path of the classification head in the preset convolutional network according to the sampling tank number; In the linear classification path, adaptive average pooling, flattening, and linear mapping are performed sequentially to form the linear classification results for each sampling tank; In the convolutional classification path, adaptive average pooling, one-dimensional convolution, batch normalization, nonlinear activation, random deactivation enabled during training and disabled when class is determined, and flattening are performed sequentially to form the convolutional classification results of each sampling tank. The linear classification result and the convolutional classification result of the same sampling tank are added together and averaged to form a classification logical value without Softmax function processing. The category position of the classification logical value is respectively assigned to the alignment category, purge category, sampling category and stop category. The Softmax function is applied to the classification logic value of each sampling tank, the position of the category with the largest output value is selected, the current category of the corresponding sampling tank is determined, and then the current categories of each sampling tank are arranged according to the sampling tank number to form a multi-tank state sequence.

7. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that: In the control command generation step, the current category of each sampling tank is extracted from the multi-tank state sequence according to the sampling tank number, and the heading control command is determined according to the current category of each sampling tank; The tank pressure of the corresponding sampling tank is obtained according to the sampling tank number and the current sampling time. The tank pressure is compared with the pressure upper limit to obtain the pressure comparison result. When the pressure comparison result indicates that the tank pressure is lower than the pressure limit and the current category is the sampling category, a valve pump control command to open the valve pump is generated; when the pressure comparison result indicates that the tank pressure reaches the pressure limit, a valve pump control command to close the valve pump is generated. The heading control command is associated with the valve pump control command according to the sampling tank number, thus forming the heading and valve pump control command.

8. The deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases according to claim 1, characterized in that: In the control command execution step, the heading and valve pump control commands are obtained according to the sampling tank number, the heading control command is executed to adjust the heading, and the valve pump control command is converted into the opening or closing action of the valve pump corresponding to each sampling tank, so as to achieve the valve pump opening and closing state required by each sampling tank. Read the valve and pump opening and closing status and the multi-tank status sequence according to the sampling tank number. When the current category is the sampling category and the valve and pump opening and closing status changes from closed to open, record the sampling start time. When the valve and pump opening and closing status changes from open to closed, record the sampling end time and determine the tank pressure at the sampling end time as the termination tank pressure. The sampling start time, the sampling end time, the termination tank pressure, and the multi-tank state sequence are all associated with the corresponding sampling tank number to form a sampling record for each sampling tank. The sampling records of each sampling tank are arranged according to the sampling tank number, and the multi-tank sampling record is output.

9. A deep learning-based UAV multi-tank sampling system for halogenated greenhouse gases, used for performing the deep learning-based UAV multi-tank sampling method for halogenated greenhouse gases as described in any one of claims 1-8, characterized in that, include: The data acquisition module is used to acquire the three-dimensional wind speed and direction, heading, tank pressure, valve position and pump flow time sequence at the hovering position after the drone hovers, form a sampling sequence, and associate the branch dwell time calibration data with the pressure limit and the sampling tank number; The arrival weight determination module is used to scale the time axis of the calibration residence time distribution according to the ratio of the calibration flow rate in the branch residence time calibration data to the pump flow rate in the sampling sequence to obtain the current residence time distribution, and with the current sampling time as the endpoint, map the historical time of the air inlet covered by the current residence time distribution to the arrival weight, wherein the arrival weight represents the proportion of historical air intake to the current gas entering the tank. The weight association module is used to associate the historical time of the air inlet, the current sampling time, and the arrival weight according to the sampling tank number, so as to form a correspondence between the gas in the tank and the historical air intake. The input projection module is used to obtain historical wind condition input and tank status input from the sampling sequence, and to concatenate the two inputs and project them onto the same input to obtain historical wind condition message and tank status message; The state feature extraction module is used to accumulate the historical wind condition messages according to the sampling tank number and the current sampling time, with the arrival weight, and add them to the tank state messages to form a gas arrival aligned hidden sequence and input it into a preset hidden channel correlation matrix. After passing through short kernel blocks and long kernel blocks in a preset convolutional network, the sampling state features are formed. The state classification module is used to input the sampling state features, and determine the current category of each sampling tank through the classification head in the preset convolutional network to form a multi-tank state sequence; A control command generation module is used to generate heading and valve / pump control commands based on the multi-tank state sequence. The control command execution module is used to execute the heading and valve pump control commands, and record the sampling start time, sampling end time, termination tank pressure and multi-tank status sequence according to the sampling tank number, and output the multi-tank sampling record.

Citation Information

Patent Citations

  • Intelligent air automatic sampler for occupational health

    CN102507274B

  • Polluted gas sampling device of unmanned aerial vehicle

    CN108956215A

  • Modularized gas collection device of gas sampling unmanned aerial vehicle

    CN113933115A