A treatment waveform adaptive control method and system for intermediate frequency electrotherapy instrument

By performing synchronous beacon interaction and timestamp correction in the intermediate frequency electrotherapy device, combined with temperature compensation and time delay correction, the problem of inconsistent time tags caused by sensor node clock offset was solved, achieving precise alignment between the treatment waveform and physiological events, and improving the consistency and accuracy of treatment effects.

CN122860995BActive Publication Date: 2026-11-24NANJING HUABIKANG MEDICAL EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611363166.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24
Estimated Expiration
2046-09-04

AI Technical Summary

Technical Problem

In intermediate frequency electrotherapy devices, the independent clock source offset and temperature drift of each sensor node cause inconsistent time tags of each channel when multimodal physiological parameters are synchronously acquired, which in turn causes a mismatch between waveform phase adjustment and the real physiological rhythm. Especially when the internal temperature of the device changes dynamically and there is a lack of hardware synchronization line, it is impossible to achieve accurate alignment between the treatment waveform phase and physiological events.

Method used

The main controller interacts with the sensor nodes via a synchronization beacon to obtain hardware timestamps and perform bidirectional time comparison. Combined with temperature compensation and bidirectional transmission delay correction, clock synchronization parameters are estimated. Then, based on the clock synchronization parameters and multi-source physiological signal data, time base correction and analysis time slot reconstruction are performed. Finally, a phase fusion mechanism with signal quality constraints is used to generate a comprehensive physiological phase, and closed-loop phase-locked control and therapeutic envelope amplitude adjustment are performed.

Benefits of technology

It enables real-time estimation of clock offset and drift rate of each sensor node without additional synchronization cables and high-stability crystal oscillators, dynamic evaluation of signal reliability and generation of continuous and reliable integrated rhythm reference, thereby improving the synchronization accuracy of therapeutic current with real physiological events and phase consistency under long-term continuous operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122860995B_ABST
    Figure CN122860995B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data acquisition control, and discloses a treatment waveform adaptive control method and system for a medium-frequency electrotherapy instrument, wherein the method comprises the following steps: performing synchronous beacon interaction with each sensor node through a main controller, and packaging a synchronous interaction timestamp group; combining node local temperature to perform temperature compensation and bidirectional transmission time delay correction, and obtaining a clock synchronization parameter group; correcting a multi-source physiological signal time reference and reconstructing an analysis time slot by using the parameter group, forming a unified frequency analysis data stream; fusing electrocardio, respiratory impedance and pulse wave phases according to signal quality constraints, generating a comprehensive physiological phase; combining current carrier additional phases and skin impedance data to implement closed-loop phase-locked control and treatment envelope amplitude adjustment, and outputting a treatment current. The application realizes unified time base fusion of multi-source physiological signals, and improves the matching consistency of the treatment current and individual physiological rhythms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data acquisition and control technology, and in particular to a method and system for adaptive control of therapeutic waveforms for intermediate frequency electrotherapy devices. Background Technology

[0002] Currently, when implementing personalized treatment with intermediate-frequency electrotherapy devices, it is typically necessary to simultaneously collect multimodal physiological parameters such as skin impedance, heart rate, and blood oxygen saturation, and coordinately adjust the phase and envelope of the treatment waveform based on the rhythmic characteristics of these parameters. The existing processing path generally involves: each sensor node using an independent local clock source to drive the analog front-end and analog-to-digital converter, aggregating the sampled data to the main controller via wired or wireless means; the main controller performs feature extraction and instantaneous phase estimation on signals such as heart rate, respiratory impedance, and pulse wave, and then generates a comprehensive physiological phase through fixed weighting or a single-channel reference, ultimately modulating the intermediate-frequency carrier. Due to the inherent frequency deviation and temperature drift of the crystal oscillators in each sensor node, the time stamps of the acquisition times of each channel gradually become inconsistent, leading to a systematic misalignment in the timing relationship upon which phase synthesis is based.

[0003] For example, in scenarios where heart rate variability and respiratory impedance phase are used to coordinately adjust the intermediate frequency current waveform, if the clock of the heart rate acquisition node experiences a millisecond-level relative drift compared to the respiratory acquisition node, a timing error will be introduced between the heart contraction phase calculated based on the R-wave moment and the respiratory phase extracted based on the zero-crossing point of impedance drop. This error is carried over into the comprehensive physiological phase during phase-weighted fusion, causing the peak value of the output waveform envelope to fail to accurately align with the cardiac ejection phase or respiratory commutation point, reducing the effectiveness of the therapeutic current in following the autonomic nervous rhythm and leading to a decrease in the consistency of effects across different treatment periods. In portable or wearable devices, the clock offset problem is even more pronounced due to the large differences in the thermal environment of each sensor and the lack of isothermal compensation.

[0004] Therefore, there is an urgent need for a method that can uniformly map physiological data from multiple channels to the same time reference and accurately generate an adaptive phase that reflects the coordinated state of multimodal physiological processes, even when there are significant offsets in the independent clock sources of multiple sensors and dynamic temperature changes. This would solve the technical problem of waveform phase adjustment mismatch with the actual physiological rhythm caused by inconsistent clock labels, and improve the rhythm accuracy of therapeutic electrical stimulation and phase consistency under long-term continuous operation. Summary of the Invention

[0005] To address the aforementioned technical shortcomings, the present invention aims to propose an adaptive control method for therapeutic waveforms in a mid-frequency electrotherapy device. This method addresses the technical problem in the prior art where the independent clock source offset of each sensor during synchronous acquisition of multimodal physiological parameters leads to inconsistent data time stamps, resulting in a mismatch between waveform phase adjustment and the actual physiological rhythm. In particular, it addresses the issue of the inability to accurately align the therapeutic waveform phase with physiological events under conditions of dynamic temperature changes within the device and the lack of a hardware synchronization line.

[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: The present invention provides a therapeutic waveform adaptive control method for a medium-frequency electrotherapy device.

[0007] The adaptive control method for therapeutic waveforms in a mid-frequency electrotherapy device includes: Step S10: The main controller interacts with each sensor node through synchronization beacon interaction to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame. The synchronization interaction timestamp encapsulation task is performed using a bidirectional time comparison mechanism to output the synchronization interaction timestamp group. Step S20: Obtain the local temperature collected by each sensor node, and based on the synchronization interaction timestamp group and the local temperature, perform the clock synchronization parameter estimation task using the temperature compensation and bidirectional transmission delay correction mechanism, and output the clock synchronization parameter group. Step S30: Acquire multi-source physiological signal data collected by each sensor node; based on the clock synchronization parameter group and the multi-source physiological signal data, perform synchronization preprocessing tasks using a time base correction and analysis time slot reconstruction mechanism, and output a unified frequency analysis data stream; Step S40: Based on the unified frequency analysis data stream, a phase fusion mechanism with signal quality constraints is used to perform the comprehensive physiological phase generation task and output the comprehensive physiological phase. Step S50: Obtain the current carrier additional phase, perform closed-loop phase-locked control and treatment envelope amplitude adjustment based on the integrated physiological phase, the current carrier additional phase and the skin impedance data in the unified frequency analysis data stream, and output the treatment current.

[0008] Preferably, in step S10, the step of interacting with each sensor node via synchronization beacon to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame, and performing the synchronization interaction timestamp encapsulation task using a bidirectional time comparison mechanism to output the synchronization interaction timestamp group, specifically includes: Step S101: The main controller broadcasts a synchronization beacon frame and records the hardware transmission timestamp of the synchronization beacon frame when the synchronization beacon frame is transmitted from the media access control layer to the physical layer; Step S102: When each sensor node receives the synchronization beacon frame, it records the hardware reception timestamp of the synchronization beacon frame, generates a response frame containing the hardware reception timestamp of the synchronization beacon frame, records the hardware transmission timestamp of the response frame when the response frame is transmitted from the media access control layer to the physical layer, and sends the response frame to the main controller. Step S103: When the main controller receives the response frame, it records the hardware arrival timestamp of the response frame, encapsulates the hardware transmission timestamp, hardware reception timestamp, hardware transmission timestamp, and hardware arrival timestamp of the synchronization beacon frame corresponding to the same synchronization beacon interaction into single synchronization interaction timestamp data, and arranges each single synchronization interaction timestamp data according to the synchronization beacon interaction order to obtain the synchronization interaction timestamp group.

[0009] Preferably, step S20, which involves acquiring the local temperature collected by each sensor node, performing clock synchronization parameter estimation based on the synchronization interaction timestamp group and the local temperature, and outputting the clock synchronization parameter group, specifically includes: Step S201: For the first Each sensor node calculates a clock offset estimate using a two-way time comparison formula. The bidirectional time comparison formula is as follows:

[0010] in, This refers to the sensor node number. The synchronization beacon frame is hardware-transmitted with a timestamp. For the first The hardware receive timestamp of the synchronization beacon frame corresponding to each sensor node. For the first The hardware transmission timestamp of the response frame corresponding to each sensor node. The hardware arrival timestamp of the response frame; Step S202: Place the first Local temperature collected by each sensor node Substitute the corresponding temperature frequency response polynomial to calculate the estimated temperature drift rate. The temperature frequency characteristic polynomial is:

[0011] in, For the first Local temperature collected by each sensor node For reference temperature, , , and To pass the first Polynomial coefficients obtained by temperature and frequency calibration of each sensor node; Step S203: Construct a forward transmission delay sequence and a reverse transmission delay sequence based on the synchronization interaction timestamp group corresponding to multiple consecutive synchronization cycles. Perform normalized cross-correlation operation on the forward transmission delay sequence and the reverse transmission delay sequence. Determine the feedback drift rate correction value based on the time shift corresponding to the peak value of the cross-correlation function and the cumulative duration of the cross-correlation operation window. And calculate the estimated clock drift rate according to the following formula. :

[0012] in, For the first Feedback drift rate correction value corresponding to each sensor node For the first The estimated clock drift rate for each sensor node; the estimated clock drift rate... and the estimated clock drift rate Encapsulated as the first The clock synchronization parameters corresponding to each sensor node are combined into a clock synchronization parameter group.

[0013] Preferably, in step S202, the first local temperature sample value, the second local temperature sample value, and the sampling time interval corresponding to two adjacent local temperature samples of the same sensor node are obtained. The local temperature change rate is determined based on the difference between the first local temperature sample value and the second local temperature sample value and the sampling time interval. When the absolute value of the local temperature change rate exceeds a preset temperature change rate threshold, the number of synchronization cycles used in the normalized cross-correlation operation in step S203 is adjusted from a preset number of regular synchronization cycles to a preset number of fast tracking synchronization cycles, wherein the preset number of fast tracking synchronization cycles is less than the preset number of regular synchronization cycles.

[0014] Preferably, step S30, which involves acquiring multi-source physiological signal data collected by each sensor node, performing synchronization preprocessing tasks based on the clock synchronization parameter set and the multi-source physiological signal data using a time base correction and analysis time slot reconstruction mechanism, and outputting a unified frequency analysis data stream, specifically includes: Step S301: For any sensor node, obtain the local timestamp and the time of completion of the most recent synchronization beacon interaction corresponding to the multi-source physiological signal data collected by the sensor node, read the clock offset estimate and clock drift rate estimate corresponding to the sensor node from the clock synchronization parameter group, correct the local timestamp according to the clock offset estimate, and correct the cumulative drift of the local timestamp relative to the time of completion of the most recent synchronization beacon interaction according to the clock drift rate estimate to obtain the aligned timestamp; Step S302: Divide the continuous analysis time slots according to the preset unified analysis frequency, write the corresponding multi-source physiological signal data into the corresponding analysis time slot according to each alignment timestamp, and encapsulate the multi-source physiological signal data, sensor node identifier and alignment timestamp written into the same analysis time slot into a synchronization data packet to obtain a multi-source synchronization data packet stream; Step S303: Detect missing time slots in the multi-source synchronous data packet stream where no valid multi-source physiological signal data has been written, obtain adjacent valid sampled data before and after each missing time slot, perform linear interpolation on the corresponding missing time slots based on the adjacent valid sampled data, and write the interpolated data into the corresponding missing time slots to obtain the unified frequency analysis data stream.

[0015] Preferably, step S40, which involves performing a comprehensive physiological phase generation task based on the unified frequency analysis data stream using a signal quality-constrained phase fusion mechanism and outputting the comprehensive physiological phase, specifically includes: Step S401: Extract ECG data, respiratory impedance data, and pulse wave data from the unified frequency analysis data stream. Determine the ECG channel quality index based on the correlation coefficient between the ECG data and the preset QRS complex template and the RR interval variation coefficient corresponding to the ECG data. Determine the respiratory channel quality index based on the ratio between the peak amplitude of the respiratory wave in the respiratory impedance data and the root mean square value of the baseline noise. Determine the pulse wave channel quality index based on the pulse wave width variation coefficient corresponding to the pulse wave data and the correlation coefficient between the pulse wave data and the preset pulse wave template. Step S402: Calculate the sum of the quality indices of the ECG channel quality index, the respiratory channel quality index, and the pulse wave channel quality index; when the sum of the quality indices is greater than zero, calculate the ratio between each channel quality index and the sum of the quality indices to obtain the ECG channel adaptive weight, the respiratory channel adaptive weight, and the pulse wave channel adaptive weight; when the sum of the quality indices is equal to zero, determine the adaptive weights of each channel corresponding to the previous analysis time slot as the adaptive weights of each channel corresponding to the current analysis time slot. Step S403: Determine the heartbeat phase based on the R-wave time and the time interval between adjacent R-wave times in the ECG data; determine the respiratory phase based on the zero-crossing time in the respiratory impedance data; determine the pulse wave phase based on the pulse wave arrival time in the pulse wave data; and use the ECG channel adaptive weight, the respiratory channel adaptive weight, and the pulse wave channel adaptive weight to perform weighted fusion of the heartbeat phase, the respiratory phase, and the pulse wave phase to obtain the comprehensive physiological phase.

[0016] Preferably, step S50, which involves acquiring the current carrier additional phase, performing closed-loop phase-locked control and treatment envelope amplitude adjustment based on the integrated physiological phase, the current carrier additional phase, and the skin impedance data in the unified frequency analysis data stream, and outputting the treatment current, specifically includes: Step S501: Obtain a preset target phase difference, calculate the phase difference between the integrated physiological phase and the current carrier additional phase, and perform phase wrap processing on the difference between the phase difference and the preset target phase difference to obtain the phase error; Step S502: Input the phase error into the proportional-integral-derivative (PID) controller to obtain the first phase change rate component; determine the time interval between adjacent R-wave moments based on the ECG data in the unified frequency analysis data stream, determine the time interval as the reference period of the repetitive controller, and input the phase error into the repetitive controller for periodic error memory operation to obtain the second phase change rate component; add the first phase change rate component and the second phase change rate component to obtain the total phase change rate, integrate the total phase change rate, and limit the integration result within a preset phase adjustment range to obtain the updated carrier additional phase; Step S503: Obtain skin impedance data within a preset baseline sampling period before treatment begins; determine the average skin impedance data within the preset baseline sampling period as the skin impedance baseline value; and determine the average skin impedance data within a preset sliding window as the skin impedance sliding average value; adjust the preset treatment envelope amplitude according to the ratio between the skin impedance baseline value and the skin impedance sliding average value, and limit the corresponding amplitude adjustment multiple within a preset amplitude adjustment multiple range to obtain the treatment envelope amplitude; generate a treatment current based on the treatment envelope amplitude, the updated carrier additional phase, and the preset intermediate frequency carrier frequency.

[0017] The present invention also provides a therapeutic waveform adaptive control system for a medium-frequency electrotherapy device, comprising: The synchronization timestamp acquisition module is used to interact with each sensor node through the main controller to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame. It uses a bidirectional time comparison mechanism to perform the synchronization interaction timestamp encapsulation task and outputs the synchronization interaction timestamp group. The clock synchronization parameter estimation module is used to obtain the local temperature collected by each sensor node. Based on the synchronization interaction timestamp group and the local temperature, it performs the clock synchronization parameter estimation task using a temperature compensation and bidirectional transmission delay correction mechanism, and outputs the clock synchronization parameter group. The synchronous data preprocessing module is used to acquire multi-source physiological signal data collected by each sensor node. Based on the clock synchronization parameter group and the multi-source physiological signal data, it performs synchronous preprocessing tasks using a time base correction and analysis time slot reconstruction mechanism, and outputs a unified frequency analysis data stream. The integrated physiological phase generation module is used to perform the integrated physiological phase generation task based on the unified frequency analysis data stream and a phase fusion mechanism constrained by signal quality, and output the integrated physiological phase. The treatment waveform adjustment module is used to acquire the current carrier additional phase, perform closed-loop phase-locked control and treatment envelope amplitude adjustment based on the comprehensive physiological phase, the current carrier additional phase and the skin impedance data in the unified frequency analysis data stream, and output treatment current.

[0018] The present invention also provides a therapeutic waveform adaptive control device for an intermediate frequency electrotherapy device. The therapeutic waveform adaptive control device for an intermediate frequency electrotherapy device includes: a memory, a processor, and a therapeutic waveform adaptive control program for an intermediate frequency electrotherapy device stored in the memory and executable on the processor. When the therapeutic waveform adaptive control program for an intermediate frequency electrotherapy device is executed by the processor, the above-described method is implemented.

[0019] The present invention also provides a computer program product, the computer program product including a treatment waveform adaptive control program for an intermediate frequency electrotherapy device, wherein the treatment waveform adaptive control program for the intermediate frequency electrotherapy device implements the above method when executed by a processor.

[0020] The beneficial effects of this invention are as follows: 1. This invention obtains hardware timestamps through bidirectional time comparison and introduces a fusion mechanism that combines feedforward drift prediction based on temperature-frequency characteristic polynomials with feedback fine correction based on delay cross-correlation. Without the need for additional synchronization cables and high-stability crystal oscillators, the clock offset and drift rate of each sensor node can be estimated in real time, thereby effectively constraining the inconsistency of time tags between multi-channel physiological parameters and providing a unified time basis for achieving accurate synchronous acquisition and subsequent phase alignment.

[0021] 2. This invention uses an adaptive weighted fusion mechanism driven by the physiological signal quality index to dynamically evaluate the signal reliability of each channel of heart rate, respiration and pulse wave and assign corresponding weights. This enables the generation of comprehensive physiological phase to automatically suppress the interference of artifact signals or noise on phase estimation. Even when the signal quality of a single channel deteriorates, it can still output a continuous and reliable comprehensive rhythm reference. Furthermore, through closed-loop phase locking composed of PID and repetitive control, it achieves precise phase locking between the treatment waveform and real physiological events, improving the synchronization accuracy between the treatment current envelope and individual physiological rhythm. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating the first embodiment of a therapeutic waveform adaptive control method for a medium-frequency electrotherapy device according to the present invention. Detailed Implementation

[0023] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.

[0024] Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0025] Example 1: As Figure 1 The diagram shown is a flowchart illustrating a first embodiment of an adaptive control method for a treatment waveform in a medium-frequency electrotherapy device according to the present invention.

[0026] In the first embodiment, the adaptive control method for the treatment waveform of an intermediate frequency electrotherapy device includes: Step S10: The main controller interacts with each sensor node through synchronization beacon interaction to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame. The synchronization interaction timestamp encapsulation task is performed using a bidirectional time comparison mechanism to output the synchronization interaction timestamp group. The hardware transmission timestamp of the synchronization beacon frame is recorded when the synchronization beacon frame is transmitted from the media access control layer of the master controller to the physical layer; the hardware reception timestamp of the synchronization beacon frame is recorded when the sensor node receives the frame; the hardware transmission timestamp of the response frame is recorded when the response frame is transmitted from the media access control layer of the sensor node to the physical layer; and the hardware arrival timestamp of the response frame is recorded when the master controller receives the response frame. The master controller uses a single beacon broadcast and corresponding response as the same interaction unit, encapsulating the four types of timestamps along with the sensor node identifier and interaction order into single synchronization interaction timestamp data. Then, it arranges these single data points according to the interaction order to form a synchronization interaction timestamp group. This not only distinguishes different nodes but also preserves a complete time sequence for subsequent construction of transmission delay sequences based on multiple synchronization periods.

[0027] All four types of timestamps are recorded at the boundary positions where frames enter or leave the physical transmission link, which can exclude the variable waiting time caused by protocol stack queuing, task scheduling, and application layer caching from the measurement interval. The synchronous interaction timestamp group not only describes the sending and receiving order of a round-trip interaction, but also reflects the changing trend of the node clock relative to the master controller clock through continuous interaction records. Therefore, step S20 can first estimate the instantaneous clock offset from the same interaction, and then estimate the drift rate from the delay changes of multiple cycles, avoiding the confusion between offset and transmission waiting time.

[0028] Traditional solutions typically add time stamps after the application layer receives the data. These timestamps are subject to uncertain delays caused by operating system scheduling, interrupt responses, and communication buffering. Furthermore, even if the software timestamps are continuous, they cannot accurately represent the actual moment the data entered the physical link when the load on different nodes changes. This solution matches the hardware records at both the sending, receiving, and responding ends to the same interactive data, ensuring traceable endpoints for both the downlink and uplink. Subsequent corrections do not require approximating the moment the main controller receives the data packet to the sensor sampling moment, thus reducing random misalignment of timestamps for multi-source physiological signals at the source.

[0029] For example, the main controller interacts sequentially with the ECG, respiratory impedance, and pulse wave sensor nodes. Each node generates a response frame immediately after receiving the same round of synchronization beacons. The main controller obtains the four types of hardware timestamps for that round of interaction and encapsulates them into three single-round synchronization interaction timestamp data entries based on the node identifier. After multiple rounds of interaction, each node forms a timestamp sequence arranged by round. Even if a response frame arrives slightly later due to bus arbitration, its corresponding transmission and arrival times are still stored in the same record. Step S20 can identify the round-trip delay change for that round without directly treating the change as a node clock offset.

[0030] Step S20: Obtain the local temperature collected by each sensor node, and based on the synchronization interaction timestamp group and the local temperature, perform the clock synchronization parameter estimation task using the temperature compensation and bidirectional transmission delay correction mechanism, and output the clock synchronization parameter group. For each sensor node, the master controller first reads the four types of timestamps from the same synchronization interaction. When calculating the clock offset estimate, the time difference between the synchronization beacon frame sent by the master controller and received by the node is calculated first, then the time difference between the response frame sent by the node and received by the master controller is calculated. The first time difference is subtracted from the second time difference, and half of the result is taken as the clock offset estimate for that node in this round of interaction. The node's local temperature is used to estimate the frequency change of the crystal oscillator due to temperature: first, the difference between the local temperature and the reference temperature is calculated, then the first, second, and third terms of this difference are multiplied by pre-calibrated corresponding coefficients, and finally added to a constant term to obtain the temperature drift rate estimate. The coefficients are derived from the temperature-frequency calibration of the corresponding node's crystal oscillator; therefore, different nodes use their own calibration parameters.

[0031] Feedback correction utilizes timestamps from multiple consecutive synchronization cycles. For each cycle, the forward transmission delay is calculated by subtracting the hardware transmission timestamp of the synchronization beacon frame from its hardware reception timestamp, and the reverse transmission delay is calculated by subtracting the hardware transmission timestamp of the response frame from its hardware arrival timestamp. The two delay sequences are then cross-correlated using normalized methods to determine the time shift corresponding to the correlation peak. The ratio of this time shift to the cumulative duration of the cross-correlation window characterizes the feedback drift rate correction value. The temperature drift rate estimate and the feedback drift rate correction value are combined to obtain the clock drift rate estimate for that node, which, along with the clock offset estimate, is encapsulated into clock synchronization parameters. After performing the same processing on all nodes, a set of clock synchronization parameters is obtained. If the rate of change obtained by dividing the difference between two adjacent temperature samples by the sampling time interval exceeds a preset threshold, a shorter synchronization cycle is used for cross-correlation, allowing the feedback result to follow temperature changes more quickly.

[0032] While a single round trip can estimate the current offset, it cannot adequately reflect the slow changes in crystal oscillator frequency with temperature and operating time. Relying solely on temperature calibration is susceptible to individual device variations, aging, and communication link disturbances. Temperature compensation provides a feedforward that is updated immediately with local temperature changes, while bidirectional transmission delay correction uses a real synchronization interaction sequence to correct deviations not covered by the calibration model. After merging these two types of information, the clock synchronization parameter set simultaneously contains the offset required for current alignment and the drift rate required for continuous correction. Step S30 can then process the local timestamp of any node, limiting the accumulation of errors over time within the synchronization interval.

[0033] For example, an ECG sensor node experiences a temperature rise from a reference temperature of 25 degrees Celsius to 32 degrees Celsius. The main controller first calculates the primary, secondary, and tertiary effects of the 7-degree Celsius temperature difference according to the node's factory temperature calibration coefficient, obtaining an estimated temperature drift rate. Simultaneously, it extracts forward and reverse propagation delay sequences from multiple recent synchronization cycles and obtains a small feedback correction through normalized cross-correlation. If adjacent temperature samples show that the temperature rise rate has exceeded a preset threshold, the cross-correlation window is shortened from the number of regular cycles to the number of rapid tracking cycles. The resulting clock synchronization parameters record the node's current offset direction, offset amount, and drift trend per unit time, providing data for subsequent ECG samples to be converted point-by-point to the main controller's time reference.

[0034] Step S30: Acquire multi-source physiological signal data collected by each sensor node; based on the clock synchronization parameter group and the multi-source physiological signal data, perform synchronization preprocessing tasks using a time base correction and analysis time slot reconstruction mechanism, and output a unified frequency analysis data stream; Multi-source physiological signal data includes ECG data, respiratory impedance data, pulse wave data, and skin impedance data collected by each sensor node, carrying local timestamps. For any node, the main controller reads the corresponding clock offset estimate and clock drift rate estimate from the clock synchronization parameter set, using the completion time of the most recent synchronization beacon interaction as the starting point for cumulative drift. First, the local timestamp is corrected using the offset estimate according to a predetermined time direction convention. Then, the cumulative drift is calculated based on the interval between the local timestamp and the synchronization completion time, and the drift rate estimate. The timestamp is further corrected to obtain an aligned timestamp. This process ensures that the timestamp of each sample is converted to the same time base used by the main controller, rather than simply shifting the arrival time of the data packets.

[0035] The main controller divides continuous analysis time slots according to a preset unified analysis frequency. Based on the alignment timestamp, it writes each sample into the corresponding time slot and encapsulates the physiological signal data, sensor node identifiers, and alignment timestamps within the same time slot into a synchronization data packet, forming a multi-source synchronization data packet stream in time slot order. When a time slot is found to be without valid data, it reads the closest valid sampled data before and after that time slot. Based on the time proportion of the target time slot between two valid sampling moments, it allocates the difference between the preceding and following sampled values ​​and writes the resulting interpolation into the missing time slot. After this reconstruction, all channels fall on the same set of equally spaced analysis time slots, forming a unified frequency analysis data stream that can be directly used for time slot-by-time calculation in step S40.

[0036] Traditional multi-channel aggregation methods often arrange samples in the order in which data packets arrive at the main controller, or retain the local time axis of each node before channel-level splicing. Neither of these methods can eliminate cross-channel time differences caused by node clock skew and drift; when network queuing changes, the same physiological event may even be assigned to different analysis windows. This scheme first corrects the time base sample by sample, then repackages the data into a unified time slot. Interpolation is only used to fill missing time slots between adjacent valid samples, without changing the time assignment of existing samples. Therefore, ECG R-wave, respiratory impedance changes, and pulse wave arrival events can maintain a comparable chronological relationship within the same time slot sequence.

[0037] For example, the unified analysis frequency is set to 250 time slots per second, with an interval of four milliseconds between adjacent time slots. A certain ECG sample and a certain respiratory impedance sample are recorded locally at similar times, but after offset and drift corrections, they fall before and after the target time slot, respectively. The main controller writes the samples from both channels into the corresponding time slots based on the aligned timestamps; if the target time slot lacks ECG data, it uses the two valid ECG samples before and after it, interpolating according to the ratio of the target time slot's distance from the sampling times at both ends. The respiratory impedance and pulse wave channels follow the same rules. The reconstructed synchronization data packet contains multi-source data that can be analyzed jointly within the same time slot, thus providing a consistent time reference for the subsequently extracted heartbeat phase, respiratory phase, and pulse wave phase.

[0038] Step S40: Based on the unified frequency analysis data stream, a phase fusion mechanism with signal quality constraints is used to perform the comprehensive physiological phase generation task and output the comprehensive physiological phase. The main controller extracts ECG, respiratory impedance, and pulse wave data from a unified frequency analysis data stream. The ECG channel quality index is determined by the correlation coefficient between the ECG data and a preset QRS complex template, as well as the RR interval variation coefficient. The template correlation reflects the reliability of the waveform morphology, while the RR interval variation is used to identify the stability of the rhythm detection. The respiratory channel quality index is determined by the ratio of the peak amplitude of the respiratory wave to the root mean square value of the baseline noise. The pulse wave channel quality index is determined by the pulse wave width variation coefficient and its correlation coefficient with a preset pulse wave template. All these indicators are updated within the same analysis time slot or the corresponding sliding analysis interval, ensuring that the weighting decisions are consistent with the quality of the data currently being fused.

[0039] After calculating the sum of the quality indices of the three channels, when the sum is greater than zero, the proportion of each channel's quality index to the sum is used as the adaptive weight for that channel, ensuring that all three weights collectively cover the current fusion contribution. When the sum of the quality indices is zero, the adaptive weights of each channel saved from the previous analysis slot are used to avoid weight interruption due to a zero denominator. Subsequently, the heartbeat phase is determined based on the time interval between adjacent R-wave moments, the respiratory phase is determined based on the zero-crossing moment of the respiratory impedance data, and the pulse wave phase is determined based on the arrival moment of the pulse wave. The three types of phases are then merged according to their respective adaptive weights to generate a continuous comprehensive physiological phase. This phase serves as the physiological reference for calculating the closed-loop phase-locked error in step S50.

[0040] Fixed-weight fusion retains the original influence proportion of the disturbed channel even when there is electrode loosening, body movement, or changes in local perfusion; however, erroneous phases in a single channel may be directly carried into the control loop. Selecting only a reference channel means that when the quality of that channel deteriorates, there is a lack of supplementary rhythmic information. This scheme transforms morphological correlation, periodic stability, signal amplitude-noise relationship, and pulse width variation into channel quality constraints, allowing channels with better quality to contribute more, while channels with deteriorated quality naturally contribute less. Simultaneously, it maintains phase continuity during temporary failures of all channels through the weighting of the previous time slot, reducing overtuning of the treatment waveform caused by sudden jumps in the reference phase.

[0041] For example, when a patient adjusts their sitting posture, the pulse wave probe briefly slips, increasing the fluctuation in pulse wave width and decreasing template correlation, thus lowering its channel quality index. Simultaneously, the ECG QRS morphology and RR interval remain stable, and the ratio of respiratory amplitude to baseline noise is within the normal range. The main controller increases the proportion of the ECG and respiratory channels in the total quality index and decreases the proportion of the pulse wave channel, then fuses the phases of the three channels using the new proportions. After the probe reattaches, the pulse wave quality index gradually recovers, and its phase contribution continuously increases with the analysis time slot, ensuring that the overall physiological phase does not experience a hard switch due to channel withdrawal and recovery.

[0042] Step S50: Obtain the current carrier additional phase, perform closed-loop phase-locked control and treatment envelope amplitude adjustment based on the integrated physiological phase, the current carrier additional phase and the skin impedance data in the unified frequency analysis data stream, and output the treatment current.

[0043] The main controller reads the preset target phase difference, calculates the phase difference between the integrated physiological phase and the current carrier-added phase, subtracts the preset target phase difference, and wraps the resulting difference around a predetermined single-cycle phase interval to obtain the phase error. The proportional-integral-derivative (PID) controller performs proportional response, cumulative response, and trend response on this error, outputting the first phase change rate component for rapid correction. Simultaneously, the time interval between adjacent R-wave moments is determined from the ECG data in the unified frequency analysis data stream and used as the reference period for the repetitive controller. The repetitive controller saves and updates the periodic components of the phase error according to this period, outputting the second phase change rate component. The two components are added to form the total phase change rate, which is integrated over time and limited to a preset phase adjustment interval to obtain the updated carrier-added phase.

[0044] The treatment envelope amplitude is adjusted based on skin impedance data from the same unified frequency analysis data stream. Before treatment begins, the skin impedance data is averaged within a preset baseline sampling period to form a skin impedance baseline value. During treatment, the skin impedance data within a preset sliding window is averaged to form a skin impedance sliding average value. The ratio of the baseline value to the sliding average value is used as the basis for amplitude change, and the amplitude adjustment factor is limited to a preset range. This factor is then applied to the preset treatment envelope amplitude to obtain the treatment envelope amplitude. The main controller generates a treatment current according to the preset intermediate frequency carrier frequency, updated carrier additional phase, and treatment envelope amplitude, ensuring that phase following and contact impedance compensation are closed in the same output process.

[0045] While single proportional-integral-derivative (PID) control can handle instantaneous errors and static deviations, it requires continuous recalibration for phase residuals that recur with the heartbeat cycle. Furthermore, focusing solely on phase control without considering changes in skin impedance can cause the actual current sensation to deviate from the set value when the electrode contact state changes. This solution uses PID control for rapid response, employs a repetitive controller to utilize heartbeat cycle memory to handle periodic residuals, and uses phase interval limiting to prevent additional phase overflows. Simultaneously, it adjusts the envelope amplitude based on the relationship between baseline impedance and moving average impedance, and limits the adjustment factor. Therefore, the output therapeutic current is constrained by both the physiological phase and the electrode contact state.

[0046] For example, at the start of treatment, skin impedance data under stable contact conditions is recorded, and a baseline value is obtained. During treatment, the overall physiological phase lags behind the current carrier's additional phase by approximately 22 degrees. The proportional-integral-derivative (PID) controller first increases the phase change rate, while the repetitive controller memorizes and compensates for the recurring residuals over several subsequent heartbeat cycles, gradually bringing the updated carrier's additional phase closer to the target phase difference. If the moving average of skin impedance is higher than the baseline value during the same period, the main controller adjusts the preset treatment envelope amplitude according to the ratio between the two, constraining the adjustment amplitude within a preset multiple range. The resulting treatment current maintains the correspondence between the envelope peak value and the overall physiological phase while avoiding unconstrained amplitude fluctuations caused by short-term impedance changes.

[0047] Example 2: Furthermore, the present invention provides a therapeutic waveform adaptive control system for an intermediate-frequency electrotherapy device, employing a therapeutic waveform adaptive control method for an intermediate-frequency electrotherapy device as described in the above embodiments, which can solve the technical problem of adaptive control of therapeutic waveforms for an intermediate-frequency electrotherapy device. The beneficial effects of the therapeutic waveform adaptive control system for an intermediate-frequency electrotherapy device provided by the present invention are the same as those of the therapeutic waveform adaptive control method for an intermediate-frequency electrotherapy device provided in the above embodiments, and other technical features in the therapeutic waveform adaptive control system for an intermediate-frequency electrotherapy device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0048] Example 3: This invention provides a therapeutic waveform adaptive control device for an intermediate-frequency electrotherapy device. The device includes at least one processor and a memory communicatively connected to the processor. The memory stores instructions executable by the processor, which are then executed to enable the processor to perform the therapeutic waveform adaptive control method for an intermediate-frequency electrotherapy device as described in Example 1. The therapeutic waveform adaptive control device for an intermediate-frequency electrotherapy device in this invention can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. This therapeutic waveform adaptive control device for an intermediate-frequency electrotherapy device is merely an example and should not limit the functionality or scope of the invention. An adaptive control device for a treatment waveform in an intermediate-frequency electrotherapy device may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory or a program loaded from a storage device into a random access memory. The random access memory also stores various programs and data required for the operation of the adaptive control device. The processing unit, the read-only memory, and the random access memory are interconnected via a bus. An I / O interface is also connected to the bus. Typically, the following systems can be connected to the I / O interface: input devices including touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices including liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices including magnetic tapes, hard disks, etc.; and communication devices. The communication device allows the adaptive control device for a treatment waveform in an intermediate-frequency electrotherapy device to communicate wirelessly or wiredly with other devices to exchange data. While an adaptive control device for a treatment waveform in an intermediate-frequency electrotherapy device with various systems has been described, it should be understood that implementation or possession of all the described systems is not required. It can be implemented alternatively or with more or fewer systems.

[0049] Example 4: This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described adaptive control method for a treatment waveform of an intermediate-frequency electrotherapy device. The computer program product provided by this invention can solve the technical problem of adaptive control of a treatment waveform for an intermediate-frequency electrotherapy device. Compared with the prior art, the beneficial effects of the computer program product provided by this invention are the same as those of the adaptive control method for a treatment waveform of an intermediate-frequency electrotherapy device provided in the above embodiments, and will not be repeated here.

[0050] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a read-only memory. When the computer program is executed by a processing device, it performs the functions defined in the methods of the embodiments disclosed in this invention.

[0051] It should be understood that the various parts disclosed in this invention can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0052] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the present invention and its equivalents, the present invention also intends to include these modifications and variations.

Claims

1. A method for adaptive control of therapeutic waveforms in a medium-frequency electrotherapy device, characterized in that, The method includes: Step S10: The main controller interacts with each sensor node through synchronization beacon interaction to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame. The synchronization interaction timestamp encapsulation task is performed using a bidirectional time comparison mechanism to output the synchronization interaction timestamp group. Step S20: Obtain the local temperature collected by each sensor node, and based on the synchronization interaction timestamp group and the local temperature, perform the clock synchronization parameter estimation task using the temperature compensation and bidirectional transmission delay correction mechanism, and output the clock synchronization parameter group. Step S20 involves acquiring the local temperature collected by each sensor node, and based on the synchronization interaction timestamp group and the local temperature, performing a clock synchronization parameter estimation task using a temperature compensation and bidirectional transmission delay correction mechanism, and outputting the clock synchronization parameter group. Specifically, this includes: Step S201: For the first Each sensor node calculates a clock offset estimate using a two-way time comparison formula. The bidirectional time comparison formula is as follows: in, This refers to the sensor node number. The synchronization beacon frame is hardware-transmitted with a timestamp. For the first The hardware receive timestamp of the synchronization beacon frame corresponding to each sensor node. For the first The hardware transmission timestamp of the response frame corresponding to each sensor node. The hardware arrival timestamp of the response frame; Step S202: Place the first Local temperature collected by each sensor node Substitute the corresponding temperature frequency response polynomial to calculate the estimated temperature drift rate. The temperature frequency characteristic polynomial is: in, For the first Local temperature collected by each sensor node For reference temperature, , , and To pass the first Polynomial coefficients obtained by temperature and frequency calibration of each sensor node; Step S203: Construct a forward transmission delay sequence and a reverse transmission delay sequence based on the synchronization interaction timestamp group corresponding to multiple consecutive synchronization cycles. Perform normalized cross-correlation operation on the forward transmission delay sequence and the reverse transmission delay sequence. Determine the feedback drift rate correction value based on the time shift corresponding to the peak value of the cross-correlation function and the cumulative duration of the cross-correlation operation window. And calculate the estimated clock drift rate according to the following formula. : in, For the first Feedback drift rate correction value corresponding to each sensor node For the first The estimated clock drift rate for each sensor node; the estimated clock drift rate... and the estimated clock drift rate Encapsulated as the first The clock synchronization parameters corresponding to each sensor node are combined into the clock synchronization parameter group. Step S30: Acquire multi-source physiological signal data collected by each sensor node; based on the clock synchronization parameter group and the multi-source physiological signal data, perform synchronization preprocessing tasks using a time base correction and analysis time slot reconstruction mechanism, and output a unified frequency analysis data stream; Step S40: Based on the unified frequency analysis data stream, a phase fusion mechanism with signal quality constraints is used to perform the comprehensive physiological phase generation task and output the comprehensive physiological phase. Step S50: Obtain the current carrier additional phase, perform closed-loop phase-locked control and treatment envelope amplitude adjustment based on the integrated physiological phase, the current carrier additional phase and the skin impedance data in the unified frequency analysis data stream, and output the treatment current; Step S50, which involves acquiring the current carrier additional phase, performing closed-loop phase-locked control and treatment envelope amplitude adjustment based on the integrated physiological phase, the current carrier additional phase, and the skin impedance data in the unified frequency analysis data stream, and outputting the treatment current, specifically includes: Step S501: Obtain a preset target phase difference, calculate the phase difference between the integrated physiological phase and the current carrier additional phase, and perform phase wrap processing on the difference between the phase difference and the preset target phase difference to obtain the phase error; Step S502: Input the phase error into the proportional-integral-derivative (PID) controller to obtain the first phase change rate component; determine the time interval between adjacent R-wave moments based on the ECG data in the unified frequency analysis data stream, determine the time interval as the reference period of the repetitive controller, and input the phase error into the repetitive controller for periodic error memory operation to obtain the second phase change rate component; add the first phase change rate component and the second phase change rate component to obtain the total phase change rate, integrate the total phase change rate, and limit the integration result within a preset phase adjustment range to obtain the updated carrier additional phase; Step S503: Obtain skin impedance data within a preset baseline sampling period before treatment begins; determine the average skin impedance data within the preset baseline sampling period as the skin impedance baseline value; and determine the average skin impedance data within a preset sliding window as the skin impedance sliding average value; adjust the preset treatment envelope amplitude according to the ratio between the skin impedance baseline value and the skin impedance sliding average value, and limit the corresponding amplitude adjustment multiple within a preset amplitude adjustment multiple range to obtain the treatment envelope amplitude; generate a treatment current based on the treatment envelope amplitude, the updated carrier additional phase, and the preset intermediate frequency carrier frequency.

2. The adaptive control method for therapeutic waveforms in a medium-frequency electrotherapy device as described in claim 1, characterized in that, In step S10, the main controller interacts with each sensor node via synchronization beacon to obtain the hardware transmission timestamp, hardware reception timestamp, hardware transmission timestamp, and hardware arrival timestamp of the synchronization beacon frame. A bidirectional time comparison mechanism is then used to perform the synchronization interaction timestamp encapsulation task, and the synchronization interaction timestamp group is output. Specifically, this includes: Step S101: The main controller broadcasts a synchronization beacon frame and records the hardware transmission timestamp of the synchronization beacon frame when it is transmitted from the media access control layer to the physical layer; Step S102: When each sensor node receives the synchronization beacon frame, it records the hardware reception timestamp of the synchronization beacon frame, generates a response frame containing the hardware reception timestamp of the synchronization beacon frame, records the hardware transmission timestamp of the response frame when the response frame is transmitted from the media access control layer to the physical layer, and sends the response frame to the main controller. Step S103: When the main controller receives the response frame, it records the hardware arrival timestamp of the response frame, encapsulates the hardware transmission timestamp, hardware reception timestamp, hardware transmission timestamp, and hardware arrival timestamp of the synchronization beacon frame corresponding to the same synchronization beacon interaction into single synchronization interaction timestamp data, and arranges each single synchronization interaction timestamp data according to the synchronization beacon interaction order to obtain the synchronization interaction timestamp group.

3. The adaptive control method for therapeutic waveforms in a medium-frequency electrotherapy device as described in claim 1, characterized in that, In step S202, the first local temperature sample value, the second local temperature sample value, and the sampling time interval corresponding to two adjacent local temperature samples of the same sensor node are obtained. The local temperature change rate is determined based on the difference between the first local temperature sample value and the second local temperature sample value and the sampling time interval. When the absolute value of the local temperature change rate exceeds the preset temperature change rate threshold, the number of synchronization cycles used in the normalized cross-correlation operation in step S203 is adjusted from the preset number of normal synchronization cycles to the preset number of fast tracking synchronization cycles, where the preset number of fast tracking synchronization cycles is less than the preset number of normal synchronization cycles.

4. The adaptive control method for therapeutic waveforms in a medium-frequency electrotherapy device as described in claim 1, characterized in that, Step S30 involves acquiring multi-source physiological signal data collected by each sensor node, performing synchronization preprocessing tasks based on the clock synchronization parameter set and the multi-source physiological signal data using a time base correction and analysis time slot reconstruction mechanism, and outputting a unified frequency analysis data stream. Specifically, this includes: Step S301: For any sensor node, obtain the local timestamp and the time of completion of the most recent synchronization beacon interaction corresponding to the multi-source physiological signal data collected by the sensor node, read the clock offset estimate and clock drift rate estimate corresponding to the sensor node from the clock synchronization parameter group, correct the local timestamp according to the clock offset estimate, and correct the cumulative drift of the local timestamp relative to the time of completion of the most recent synchronization beacon interaction according to the clock drift rate estimate to obtain the aligned timestamp; Step S302: Divide the continuous analysis time slots according to the preset unified analysis frequency, write the corresponding multi-source physiological signal data into the corresponding analysis time slot according to each alignment timestamp, and encapsulate the multi-source physiological signal data, sensor node identifier and alignment timestamp written into the same analysis time slot into a synchronization data packet to obtain a multi-source synchronization data packet stream; Step S303: Detect missing time slots in the multi-source synchronous data packet stream where no valid multi-source physiological signal data has been written, obtain adjacent valid sampled data before and after each missing time slot, perform linear interpolation on the corresponding missing time slots based on the adjacent valid sampled data, and write the interpolated data into the corresponding missing time slots to obtain the unified frequency analysis data stream.

5. The adaptive control method for therapeutic waveforms in a medium-frequency electrotherapy device as described in claim 1, characterized in that, Step S40, based on the unified frequency analysis data stream, employs a signal quality-constrained phase fusion mechanism to perform the comprehensive physiological phase generation task and output the comprehensive physiological phase. This step specifically includes: Step S401: Extract ECG data, respiratory impedance data, and pulse wave data from the unified frequency analysis data stream. Determine the ECG channel quality index based on the correlation coefficient between the ECG data and the preset QRS complex template and the RR interval variation coefficient corresponding to the ECG data. Determine the respiratory channel quality index based on the ratio between the peak amplitude of the respiratory wave in the respiratory impedance data and the root mean square value of the baseline noise. Determine the pulse wave channel quality index based on the pulse wave width variation coefficient corresponding to the pulse wave data and the correlation coefficient between the pulse wave data and the preset pulse wave template. Step S402: Calculate the sum of the quality indices of the ECG channel quality index, the respiratory channel quality index, and the pulse wave channel quality index; when the sum of the quality indices is greater than zero, calculate the ratio between each channel quality index and the sum of the quality indices to obtain the ECG channel adaptive weight, the respiratory channel adaptive weight, and the pulse wave channel adaptive weight; when the sum of the quality indices is equal to zero, determine the adaptive weights of each channel corresponding to the previous analysis time slot as the adaptive weights of each channel corresponding to the current analysis time slot. Step S403: Determine the heartbeat phase based on the R-wave time and the time interval between adjacent R-wave times in the ECG data; determine the respiratory phase based on the zero-crossing time in the respiratory impedance data; determine the pulse wave phase based on the pulse wave arrival time in the pulse wave data; and use the ECG channel adaptive weight, the respiratory channel adaptive weight, and the pulse wave channel adaptive weight to perform weighted fusion of the heartbeat phase, the respiratory phase, and the pulse wave phase to obtain the comprehensive physiological phase.

6. A therapeutic waveform adaptive control system for an intermediate-frequency electrotherapy device, applied to the therapeutic waveform adaptive control method for an intermediate-frequency electrotherapy device according to any one of claims 1 to 5, characterized in that, The therapeutic waveform adaptive control system includes: The synchronization timestamp acquisition module is used to interact with each sensor node through the main controller to obtain the hardware transmission timestamp of the synchronization beacon frame, the hardware reception timestamp of the synchronization beacon frame, the hardware transmission timestamp of the response frame, and the hardware arrival timestamp of the response frame. It uses a bidirectional time comparison mechanism to perform the synchronization interaction timestamp encapsulation task and outputs the synchronization interaction timestamp group. The clock synchronization parameter estimation module is used to obtain the local temperature collected by each sensor node. Based on the synchronization interaction timestamp group and the local temperature, it performs the clock synchronization parameter estimation task using a temperature compensation and bidirectional transmission delay correction mechanism, and outputs the clock synchronization parameter group. The synchronous data preprocessing module is used to acquire multi-source physiological signal data collected by each sensor node. Based on the clock synchronization parameter group and the multi-source physiological signal data, it performs synchronous preprocessing tasks using a time base correction and analysis time slot reconstruction mechanism, and outputs a unified frequency analysis data stream. The integrated physiological phase generation module is used to perform the integrated physiological phase generation task based on the unified frequency analysis data stream and a phase fusion mechanism constrained by signal quality, and output the integrated physiological phase. The treatment waveform adjustment module is used to acquire the current carrier additional phase, perform closed-loop phase-locked control and treatment envelope amplitude adjustment based on the comprehensive physiological phase, the current carrier additional phase and the skin impedance data in the unified frequency analysis data stream, and output treatment current.

7. A therapeutic waveform adaptive control device for a medium-frequency electrotherapy instrument, characterized in that, The therapeutic waveform adaptive control device for an intermediate frequency electrotherapy device includes: a memory, a processor, and a therapeutic waveform adaptive control program for an intermediate frequency electrotherapy device stored in the memory and executable on the processor. When the therapeutic waveform adaptive control program for an intermediate frequency electrotherapy device is executed by the processor, it implements a therapeutic waveform adaptive control method for an intermediate frequency electrotherapy device according to any one of claims 1 to 5.

8. A computer program product, characterized in that, The computer program product includes a treatment waveform adaptive control program for an intermediate frequency electrotherapy device, which, when executed by a processor, implements a treatment waveform adaptive control method for an intermediate frequency electrotherapy device according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Internet human body information wave, music information wave current and high-voltage electric field synchronous therapeutic equipment

    CN101428164A

  • Software time synchronization method and system for multi-sensor data fusion

    CN120611178A