An animal tracheal instillation control system based on event-triggered sampling and adaptive buffering
By using an event-triggered sampling and adaptive buffering control system, the problems of resource waste and control lag in existing endotracheal drip devices are solved, and active suppression and anomaly detection of flow pulsation are achieved, thereby improving the reliability and accuracy of endotracheal drip.
Patent Information
- Application Number
- CN202611225871.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-27
AI Technical Summary
Existing endotracheal drip devices suffer from resource waste and control lag due to periodic sampling control strategies. Static buffers cannot adapt to different operating conditions and lack abnormal state detection and response functions, increasing the risk of experimental failure.
The control system employs event-triggered sampling and adaptive buffering, including state detection, event-triggered sampling, central control, adaptive buffering adjustment, and anomaly alarm units. By real-time detection and dynamic adjustment of buffering characteristics, it achieves active suppression of flow pulsation and real-time detection of anomalies.
It achieves reduced sampling frequency and resource consumption while ensuring control accuracy, improves the stability of drip flow rate and drug administration accuracy, has real-time abnormality detection and automatic protection functions, and improves the reliability of tracheal drip experiments.
Smart Images

Figure CN123166807A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of animal experimental data processing technology, and more specifically, to an animal tracheal drip control system based on event-triggered sampling and adaptive buffering. Background Technology
[0002] Tracheal instillation is an important method for pulmonary drug administration and delivery in laboratory animals. Non-exposed tracheal instillation is widely used due to its advantages such as minimal animal damage, repeatability, and accurate dosage. Existing automated instillation devices mostly employ a periodic sampling control strategy, continuously collecting parameters such as flow rate and pressure at fixed time intervals and adjusting the dosing actuator accordingly. To suppress flow pulsation, some devices add static buffers (such as airbags or spring-loaded buffer chambers) to the tubing. Furthermore, existing systems typically lack automatic detection and response capabilities for abnormalities such as tubing blockage, insufficient fluid volume, and respiratory disturbances in animals.
[0003] However, the aforementioned existing technologies have the following drawbacks: periodic sampling generates a large amount of redundant data during the steady-state dripping phase, wasting resources, while during the fluctuating phase, the long sampling interval may prevent timely capture of transient changes, leading to control lag; the buffering capacity of the static buffer decreases nonlinearly with flow rate changes, resulting in insufficient pulsation suppression at low flow rates and exacerbated lag at high flow rates, making it unable to actively adapt to different operating conditions; at the same time, the lack of dynamic detection and automatic response mechanisms for abnormal states increases the risk of experimental failure.
[0004] Therefore, it is necessary to design an animal tracheal drip control system based on event-triggered sampling and adaptive buffering. Summary of the Invention
[0005] The purpose of this invention is to provide an animal tracheal drip control system based on event-triggered sampling and adaptive buffering to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention aims to provide an animal tracheal infusion control system based on event-triggered sampling and adaptive buffering, comprising:
[0007] A status detection unit is used to detect drip flow rate, pipeline pressure and animal respiratory status in real time and generate raw detection data.
[0008] An event-triggered sampling unit is used to receive the original detection data, determine whether to perform data sampling according to preset sampling trigger conditions, and generate sampling data.
[0009] The preset sampling triggering conditions include static triggering conditions based on instantaneous changes and dynamic triggering conditions based on accumulated state errors, and the event triggering sampling unit is provided with a minimum triggering interval.
[0010] The central control unit is used to receive the sampled data, calculate the flow pulsation rate within the current time window based on the sampled data, generate a buffer adjustment command based on the comparison result of the flow pulsation rate and a preset threshold, generate a drug delivery drive command based on the deviation between the sampled data and the target infusion flow rate, and generate an alarm trigger signal based on the anomaly judgment logic.
[0011] A drug delivery execution unit is used to receive the drug delivery drive command and deliver the drug solution into the trachea of the experimental animal at a controlled flow rate according to the command.
[0012] An adaptive buffer adjustment unit is used to receive the buffer adjustment command and dynamically adjust the equivalent buffer volume and damping characteristics according to the command to achieve active suppression of flow pulsation.
[0013] An abnormal alarm unit is used to receive the alarm trigger signal and issue a warning based on the signal.
[0014] As a further improvement to this technical solution, the event-triggered sampling unit includes a sampling decision module and a sampling data caching module;
[0015] The sampling decision module is used to determine whether to trigger sampling based on the static triggering conditions and dynamic triggering conditions, and to store the data obtained by triggering sampling into the sampling data cache module.
[0016] The sampling data caching module is used to cache and manage the sampling data and generate sampling data for the central control unit to receive.
[0017] As a further improvement to this technical solution, the static triggering condition is:
[0018] The flow rate value detected by the status detection unit at the current moment The flow rate value at the last time sampling was triggered The absolute value of the difference exceeds the preset flow change threshold. Or, the absolute value of the difference in detected pressure values exceeds a preset pressure change threshold. Or, the detected respiratory phase shift in the animal exceeds a preset respiratory phase shift threshold. When the sampling decision module determines that the triggering condition is met, it triggers a new round of sampling and stores the original detection data at the current moment as sampling data in the sampling data cache module.
[0019] As a further improvement to this technical solution, the dynamic triggering condition is as follows:
[0020] Define the cumulative state error function:
[0021]
[0022] in, This refers to the cumulative state error; This represents the number of samples taken since the last trigger. ; For the first Target drip rate at the next sampling time For the first The actual flow rate at the next sampling time. This is the cumulative time since the last trigger;
[0023] The sampling decision module calculates the cumulative error every preset fixed inspection cycle. ,when Exceeding the preset cumulative error threshold Time-triggered sampling;
[0024] The minimum trigger interval set by the event trigger sampling unit is: After this sampling was triggered Even if the static or dynamic triggering conditions are met within the specified time, the sampling decision module will not perform new trigger sampling.
[0025] As a further improvement to this technical solution, the central control unit calculates the pulsation rate of the drip flow rate based on the real-time flow rate value in the sampling data output by the event-triggered sampling unit:
[0026]
[0027] in, The pulse rate; The maximum value of the flow rate within a time window; This represents the minimum flow rate within a time window. This represents the average flow rate within a time window.
[0028] When the pulsation rate exceeds a preset upper limit threshold At that time, the buffer adjustment command generated by the central control unit is a command to reduce the equivalent buffer volume;
[0029] When the pulsation rate is lower than a preset lower threshold Furthermore, when the rate of change of flow is lower than the preset rate of change threshold, the buffer adjustment command generated by the central control unit is an instruction to increase the equivalent buffer volume.
[0030] As a further improvement to this technical solution, the central control unit coordinates the adaptive buffer adjustment with the driving pulse corresponding to the drug delivery driving command. During the rising edge of the driving pulse, it sends a command to the adaptive buffer adjustment unit to increase the equivalent buffer volume; during the smooth segment of the driving pulse, it sends a command to the adaptive buffer adjustment unit to restore or decrease the equivalent buffer volume.
[0031] As a further improvement to this technical solution, the central control unit analyzes the sampling data output by the event trigger sampling unit to determine in real time whether there is an abnormal state in the dripping process, and generates the alarm trigger signal based on the determination result;
[0032] The abnormal states include:
[0033] When the pipeline pressure in the sampled data continues to rise while the actual flow rate continues to drop beyond a preset safety threshold, it is determined to be a pipeline blockage.
[0034] When the detected liquid level drops below the preset warning line, it is determined that the liquid volume is insufficient.
[0035] When the animal's respiratory phase shifts abnormally, the amplitude increases abnormally, or irregular respiratory waves appear in the sampled data, it is determined to be respiratory interference.
[0036] Upon detecting any abnormal state, the central control unit generates an alarm trigger signal containing abnormality type information and simultaneously issues a stop command to the drug delivery execution unit.
[0037] As a further improvement to this technical solution, the event-triggered sampling unit has a self-triggered predictive sampling function:
[0038] During the stable operation phase of the drip, the timing of the next trigger is predicted based on the changing trend of historical sampling data stored in the sampling data cache module, and storage space is allocated in advance for the sampling data cache module and control resources are prepared for the central control unit.
[0039] As a further improvement to this technical solution, the sampling data caching module adopts a first-in-first-out circular buffer queue structure to store the most recently sampled data. Secondary sampling data, of which The value is a preset positive integer; the sampling data output by the sampling data buffer module is sequentially read by the central control unit according to the storage order.
[0040] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0041] 1. In this animal tracheal drip control system based on event-triggered sampling and adaptive buffering, the event-triggered sampling mechanism is used to capture transient changes with static thresholds, compensate for slow drift with dynamic cumulative errors, and prevent sampling storms with minimum trigger intervals. This achieves non-uniform dynamic sampling and significantly reduces sampling frequency and system resource consumption while ensuring control accuracy.
[0042] 2. In this animal tracheal drip control system based on event-triggered sampling and adaptive buffering, the flow pulsation rate is calculated in real time and the equivalent buffer volume is actively adjusted according to dual thresholds. The buffer adjustment and drug delivery driving pulse are coordinated and controlled to achieve active suppression of flow pulsation, which significantly improves the stability of drip rate and drug delivery accuracy. It also has real-time abnormality detection and automatic protection functions, which improves the reliability and automation level of animal tracheal drip experiments. Attached Figure Description
[0043] Figure 1 This is a flowchart illustrating the overall process of the present invention. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] Example: Please refer to Figure 1 As shown, an animal tracheal drip control system based on event-triggered sampling and adaptive buffering is provided, including a status detection unit, an event-triggered sampling unit, a central control unit, a drug administration execution unit, an adaptive buffering adjustment unit, and an abnormal alarm unit.
[0046] Firstly, the status detection unit consists of a miniature MEMS flow sensor and a miniature pressure sensor installed in the infusion tubing, as well as a piezoelectric thin-film respiratory sensor attached to the chest and abdomen of the experimental animal. Its function is to collect flow rate, tubing pressure, and animal respiratory status signals in real time during the infusion process and generate raw detection data. These sensors were chosen because the flow rate of tracheal infusions in small animals is typically between 0.1 and 2 mL / min, with small pressure fluctuations, requiring high-precision sensors with low dead volume to avoid interference with micro-flow drug delivery. The respiratory sensor is used to identify the inspiratory and expiratory phases, providing a phase reference for subsequent respiratory interference detection. This unit provides the basic physical quantities for subsequent trigger sampling and closed-loop control; in particular, the introduction of the respiratory sensor enables the identification of the animal's respiratory phase, avoiding drug delivery errors caused by respiratory interference.
[0047] The raw detection data output by the state detection unit is transmitted to the event-triggered sampling unit. The event-triggered sampling unit is internally divided into a sampling decision module and a sampling data buffer module. The sampling decision module determines whether sampling of the current data is necessary based on preset sampling trigger conditions, while the sampling data buffer module stores the valid sampling data and manages this data according to a first-in-first-out circular buffer queue structure, storing at most the most recently accessed data. The sampling results, among which N is a preset positive integer, and in this embodiment, N is taken as 128 times. This avoids data redundancy and resource waste caused by periodic sampling, while ensuring that key information can be captured in a timely manner when the state changes rapidly.
[0048] Specifically, the preset sampling trigger conditions include static trigger conditions and dynamic trigger conditions.
[0049] Specifically, the static trigger bar refers to the sampling decision module detecting the current traffic value. The flow rate value at the last time sampling was triggered If the absolute value of the difference between the two exceeds a preset flow change threshold, the comparison will be made. Or the absolute value of the difference in pressure values exceeds the pressure change threshold. Or the respiratory phase shift exceeds the respiratory phase shift threshold. If this happens, a new sampling will be triggered immediately, and the original detection data at the current moment will be stored in the cache module.
[0050] This example sets the typical parameters for tracheal instillation in adult mice (20-30g) (target flow rate 1mL / min, single dose 50μL). (Approximately 5% of the target traffic) , = 15% of the respiratory cycle length (e.g., if the respiratory cycle is 0.5 seconds, then...) =75ms). The above threshold can be preset according to the species of experimental animals and infusion requirements: under simulated infusion conditions, record the normal fluctuation range, and take twice the normal fluctuation amplitude as the threshold. The purpose of this condition is to respond quickly to transient changes, such as the flow rate step at the moment the infusion pump starts, the pressure spike caused by the animal coughing, etc., to ensure that the system can capture abnormal or transient processes in a timely manner.
[0051] For situations where the flow rate drifts slowly but the instantaneous change is insufficient to trigger the static condition, this implementation also includes a dynamic trigger condition. The sampling decision module calculates the cumulative state error function every fixed check cycle (100ms in this embodiment). Its expression is:
[0052]
[0053] The summation covers all sampling moments since the last trigger. , , For the first The target drip rate at the next sampling time; For the first The actual flow rate at the next sampling time. This is the cumulative time since the last trigger. When the cumulative error exceeds a preset cumulative error threshold... Even if the instantaneous change is very small, the system will trigger a new sampling.
[0054] In this embodiment Set to 4% of the target traffic multiplied by the base time of 1 second, i.e. (when hour, However, in actual dimensionless calculations, the relative error integral is used. The specific calculation method is as follows: every 100ms, calculate the relative instantaneous error at the current moment. The sample is multiplied by 0.1s and accumulated into the accumulator. When the accumulator value is ≥0.04, sampling is triggered, and then the accumulator is cleared. This discretized implementation facilitates efficient execution on a microcontroller (such as STM32F103). The purpose of this dynamic condition is to eliminate the "missed sampling" problem that may be caused by the static threshold, and to ensure that even small drifts in long-term steady-state operation can be corrected in time, thereby improving the long-term accuracy of dose control.
[0055] To avoid sampling storms caused by noise or multiple simultaneous triggering conditions within a very short period of time, the event-triggered sampling unit also has a minimum trigger interval. In this embodiment, 50ms is used. This is after the current trigger sampling. Even if the static or dynamic triggering conditions are met again within the specified time, the sampling decision module will not perform new sampling. This protection mechanism ensures the operational stability of the control system and prevents excessively high sampling frequencies from overwhelming the data cache or the controller's computing resources.
[0056] The sampled data (i.e., filtered and cached flow, pressure, and respiration data) output by the event-triggered sampling unit is sent to the central control unit. The central control unit is the decision-making core of the entire system. It first calculates the flow pulsation rate within the current time window (1 second in this embodiment) based on the real-time flow value in the sampled data.
[0057]
[0058] in, The pulse rate; The maximum value of the flow rate within a time window; This represents the minimum flow rate within a time window. This represents the average flow rate within a time window; it's important to note that this is a sliding window, updated after each new sample, rather than a fixed, non-overlapping window. This pulsation rate directly reflects the stability of the drug delivery flow rate, particularly important for small animal tracheal infusions (dose typically 5–200 mg / L). Precision requirements This is especially crucial.
[0059] The central control unit will calculate the pulsation rate and compare it with the preset upper limit threshold. (In this embodiment) ) and lower threshold (In this embodiment) Compare them. When Exceed When this occurs, it indicates that the current flow fluctuation is too large, and the central control unit generates a buffer adjustment command to "reduce the equivalent buffer volume"; when Below If the flow rate change rate is also lower than the preset change rate threshold (in this embodiment, the preset change rate threshold is 0.3% / second, which can be pre-calibrated according to the injection pump stepping frequency and pipeline characteristics, indicating that the system is in a stable state), then an instruction to "increase the buffer equivalent volume" is generated. These instructions are sent to the adaptive buffer adjustment unit.
[0060] Meanwhile, the central control unit also uses the sampling data and target drip flow rate... The deviation between the parameters is used to generate drug delivery drive commands using an incremental PID control algorithm. The PID parameters are tuned as follows: proportional coefficient... (i.e., each) (Flow deviation adjustment of 0.15 mL / min driving volume), integral coefficient Differential coefficients The sampling period is the actual interval between sampling triggers (not fixed), but the PID calculation is performed after each sampling trigger, and the integral term is based on the actual time difference. Accumulate: Accumulated integral value = Accumulated integral value + *deviation* This command is typically a pulse sequence that controls the speed of the stepper motor, with each pulse corresponding to a 0.05 mm push in the injection pump. Medication solution. The dosing drive command is sent to the dosing execution unit, which then drives the micro-infusion pump (e.g., Hamilton 250) according to the command. An airtight injection pump, used with a custom-made 28-gauge needle, delivers the drug solution at a controlled flow rate through the administration tubing into the trachea of the experimental animal.
[0061] In addition, the central control unit continuously analyzes the sampled data to detect abnormal conditions and generates alarm trigger signals based on the abnormality judgment logic. Specifically, if the pipeline pressure continues to rise while the actual flow rate continues to fall, and both changes exceed a preset safety threshold (in this embodiment, the safety threshold is set as follows: within three consecutive sampling windows (each window is 1 second), the pressure rise rate is >0.3 kPa / s and the flow rate decrease rate is >0.1 kPa / s), the alarm will be triggered. If the liquid level sensor detects that the liquid level in the storage container has dropped below the preset warning line (e.g., the remaining liquid volume is less than 10% of the set total dose), it is determined to be insufficient liquid volume. If the respiration sensor detects abnormal deviations in the animal's respiratory phase (e.g., the inspiratory phase time deviates from the normal value by more than 30%), abnormally increased amplitude (e.g., the chest cavity rise and fall amplitude exceeds twice the normal breathing amplitude), or irregular respiratory waves (e.g., the respiratory cycle variation coefficient exceeds 25%), it is determined to be respiratory disturbance (e.g., the animal coughs or is agitated). Once any of the above abnormal states are detected, the alarm trigger signal generated by the central control unit will contain specific abnormality type information, and at the same time, a stop command will be immediately issued to the drug delivery execution unit to interrupt the drug delivery.
[0062] To actively suppress flow pulsations, the system also incorporates an adaptive buffer adjustment unit. This unit receives buffer adjustment commands from the central control unit and dynamically adjusts the equivalent volume and damping characteristics of the buffer cavity connected to the drug delivery tubing accordingly. In one specific implementation, the adaptive buffer adjustment unit includes an adjustable buffer cavity made of medical-grade elastic material, a miniature linear actuator (such as a stepper motor-driven lead screw or piezoelectric ceramic actuator), and an auxiliary pressure sensor that monitors the pressure inside the buffer cavity. When a command to reduce the equivalent buffer volume is received, the central control unit drives the miniature linear actuator to increase the pushing stroke of the buffer cavity, reducing the cavity volume and increasing the equivalent stiffness, thereby quickly absorbing high-frequency, small-amplitude pulsations. When a command to increase the equivalent buffer volume is received, the actuator reduces or releases the pushing stroke, increasing the cavity volume and storing more fluid, thus smoothing low-frequency, large-amplitude pulsations. During adjustment, the auxiliary pressure sensor provides real-time feedback on the cavity pressure, and the central control unit uses this pressure value as a closed-loop correction value to avoid overshoot. This allows the buffer adjustment to change from passive filtering to active adaptation, improving the suppression effect for different flow conditions.
[0063] Furthermore, the central control unit also implements adaptive buffer adjustment and coordinated control of the drug delivery drive pulse. Since the infusion pump of the drug delivery execution unit is typically driven by stepper motor pulses, each pulse corresponds to a tiny propulsion amount (0.05 μm per pulse in this embodiment). The pulse width is 2 ms, and the interval between adjacent pulses varies between 8 and 50 ms, corresponding to a flow rate of 0.5 to 2 mL / min. During the rising edge of the pulse, the drug is expelled, and there is no propulsion during the smooth phase. In this embodiment, the central control unit coordinates the buffer adjustment with the driving pulse corresponding to the drug delivery driving command: during the rising edge phase of the driving pulse (0.5 ms after the pulse begins), a command to increase the equivalent buffer volume is sent to the adaptive buffer adjustment unit in advance, causing the buffer chamber volume to increase by 5 to 10 mL within 1 ms. The system receives additional liquid medication; during the smooth phase of the drive pulse (the time between the end of the pulse and the start of the next pulse), it issues a command to restore or reduce the equivalent buffer volume, slowly releasing the volume within 5ms to replenish subsequent flow. This active pulsation suppression method can counteract flow fluctuations caused by stepper motor pulse output at the source, providing a smoother effect than traditional airbags or spring-type buffers.
[0064] The abnormal alarm unit is connected to the central control unit. Upon receiving an alarm trigger signal, the unit will activate the audible and visual alarm to issue a warning and send alarm information to the external monitoring system via the communication interface. Unlike existing technologies, in this embodiment, the abnormal alarm unit is only responsible for issuing warnings, while the action of protecting the shutdown (i.e., stopping the drug delivery execution unit) is completed by the central control unit directly issuing a stop command to the drug delivery execution unit, thereby avoiding response delays caused by the dispersion of decision-making bodies.
[0065] The core control process of the entire system is as follows: After the system starts, the central control unit first completes initialization and sets the flow change threshold. Pressure change threshold Cumulative error threshold Minimum trigger interval upper limit threshold of pulsation rate and lower threshold The system includes parameters such as the safety pressure change rate threshold, liquid level warning line, and respiratory phase deviation tolerance. Subsequently, the event-triggered sampling unit operates at a preset check cycle (e.g., 100ms), repeatedly determining whether static or dynamic triggering conditions are met, and ensuring the minimum trigger interval has elapsed. Once the conditions are met, the status detection unit performs a complete flow, pressure, and respiratory detection. The raw data is processed by the sampling decision module, stored in the cache module, and sent as sampling data to the central control unit. The central control unit calculates and outputs a drug delivery drive command based on the deviation between the sampling data and the target infusion flow rate. Simultaneously, it calculates the pulsation rate (Ripple) of the current time window and checks whether the flow rate change is below a preset change rate threshold (e.g., 0.5% / second). Based on this, it sends a corresponding volume adjustment command to the adaptive buffer adjustment unit. This process is repeated until the infusion ends. At any stage, if the central control unit detects abnormal conditions such as tubing blockage, insufficient liquid volume, or respiratory interference, it immediately interrupts the main control process, sends an alarm trigger signal to the abnormal alarm unit, and issues a stop command to the drug delivery execution unit.
[0066] Furthermore, to further optimize resource scheduling, the event-triggered sampling unit also features a self-triggered predictive sampling function. During the stable dripping operation phase (where 10 consecutive triggers are caused by dynamic cumulative error and the cumulative error value remains stable within a certain range), this function is applied. (Between 60% and 80%), the sampling decision module predicts the next possible trigger time based on the changing trends of historical sampling data stored in the sampling data cache module (using linear least squares fitting of the flow-time relationship of the most recent 5 sampling points to estimate the slope), and notifies the sampling data cache module to allocate storage space 50ms in advance, while simultaneously informing the central control unit to prepare the corresponding control resources. Although this function does not change the substantive judgment of the triggering conditions, it can reduce the slight delay caused by real-time calculation of trigger determination, allowing the system to maintain smooth operation under high-frequency sampling pressure.
[0067] Through the coordinated work of the above-mentioned units and modules, this implementation method achieves non-uniform event-triggered sampling, adaptive buffer pulsation suppression, and comprehensive anomaly monitoring during animal tracheal infusion. While ensuring drug administration accuracy, it significantly reduces sampling frequency and system resource consumption, thereby improving the reliability and repeatability of the experiment.
[0068] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention.
Claims
1. An animal tracheal drip control system based on event-triggered sampling and adaptive buffering, characterized in that, include: A status detection unit is used to detect drip flow rate, pipeline pressure and animal respiratory status in real time and generate raw detection data. An event-triggered sampling unit is used to receive the original detection data, determine whether to perform data sampling according to preset sampling trigger conditions, and generate sampling data. The preset sampling triggering conditions include static triggering conditions based on instantaneous changes and dynamic triggering conditions based on accumulated state errors, and the event triggering sampling unit is provided with a minimum triggering interval. The central control unit is used to receive the sampled data, calculate the flow pulsation rate within the current time window based on the sampled data, generate a buffer adjustment command based on the comparison result of the flow pulsation rate and a preset threshold, generate a drug delivery drive command based on the deviation between the sampled data and the target infusion flow rate, and generate an alarm trigger signal based on the abnormal judgment logic. A drug delivery execution unit is used to receive the drug delivery drive command and deliver the drug solution into the trachea of the experimental animal at a controlled flow rate according to the command. An adaptive buffer adjustment unit is used to receive the buffer adjustment command and dynamically adjust the equivalent buffer volume and damping characteristics according to the command to achieve active suppression of flow pulsation. An abnormal alarm unit is used to receive the alarm trigger signal and issue a warning based on the signal.
2. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 1, characterized in that: The event-triggered sampling unit includes a sampling decision module and a sampling data caching module; The sampling decision module is used to determine whether to trigger sampling based on the static triggering conditions and dynamic triggering conditions, and to store the data obtained by triggering sampling into the sampling data cache module. The sampling data caching module is used to cache and manage the sampling data and generate sampling data for the central control unit to receive.
3. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 2, characterized in that: The static triggering condition is: The flow rate value detected by the status detection unit at the current moment The flow rate value at the last time sampling was triggered The absolute value of the difference exceeds the preset flow change threshold. Or, the absolute value of the difference in detected pressure values exceeds a preset pressure change threshold. Or, the detected respiratory phase shift in the animal exceeds a preset respiratory phase shift threshold. When the sampling decision module determines that the triggering condition is met, it triggers a new round of sampling and stores the original detection data at the current moment as sampling data in the sampling data cache module.
4. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 3, characterized in that: The dynamic triggering condition is: Define the cumulative state error function: in, This refers to the cumulative state error; This represents the number of samples taken since the last trigger. ; For the first Target drip rate at the next sampling time For the first The actual flow rate at the next sampling time. This is the cumulative time since the last trigger; The sampling decision module calculates the cumulative error every preset fixed inspection cycle. ,when Exceeding the preset cumulative error threshold Time-triggered sampling; The minimum trigger interval set by the event trigger sampling unit is: After this sampling was triggered Even if the static or dynamic triggering conditions are met within the specified time, the sampling decision module will not perform new trigger sampling.
5. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 4, characterized in that: The central control unit calculates the pulsation rate of the drip flow rate based on the real-time flow rate value in the sampling data output by the event-triggered sampling unit: in, The pulse rate; The maximum value of the flow rate within a time window; This represents the minimum flow rate within a time window. This represents the average flow rate within a time window. When the pulsation rate exceeds a preset upper limit threshold At that time, the buffer adjustment command generated by the central control unit is a command to reduce the equivalent buffer volume; When the pulsation rate is lower than a preset lower threshold Furthermore, when the rate of change of flow is lower than the preset rate of change threshold, the buffer adjustment command generated by the central control unit is an instruction to increase the equivalent buffer volume.
6. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 5, characterized in that: The central control unit coordinates the adaptive buffer adjustment with the drive pulse corresponding to the drug delivery drive command. During the rising edge of the drive pulse, it sends a command to the adaptive buffer adjustment unit to increase the equivalent buffer volume; during the smooth segment of the drive pulse, it sends a command to the adaptive buffer adjustment unit to restore or decrease the equivalent buffer volume.
7. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 6, characterized in that: The central control unit analyzes the sampling data output by the event trigger sampling unit to determine in real time whether there is an abnormal state in the dripping process, and generates the alarm trigger signal based on the determination result; The abnormal states include: When the pipeline pressure in the sampled data continues to rise while the actual flow rate continues to drop beyond a preset safety threshold, it is determined to be a pipeline blockage. When the detected liquid level drops below the preset warning line, it is determined that the liquid volume is insufficient. When the animal's respiratory phase shifts abnormally, the amplitude increases abnormally, or irregular respiratory waves appear in the sampled data, it is determined to be respiratory interference. Upon detecting any abnormal state, the central control unit generates an alarm trigger signal containing abnormality type information and simultaneously issues a stop command to the drug delivery execution unit.
8. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 7, characterized in that: The event-triggered sampling unit has a self-triggered predictive sampling function: During the stable operation phase of the drip, the timing of the next trigger is predicted based on the changing trend of historical sampling data stored in the sampling data cache module, and storage space is allocated in advance for the sampling data cache module and control resources are prepared for the central control unit.
9. The animal tracheal drip control system based on event-triggered sampling and adaptive buffering according to claim 8, characterized in that: The sampling data caching module adopts a first-in-first-out circular buffer queue structure to store the most recently sampled data. Secondary sampling data, of which The value is a preset positive integer; the sampling data output by the sampling data buffer module is sequentially read by the central control unit according to the storage order.
