A high-density electromyography signal synchronous acquisition system and method

Through the multi-functional needle interface and electromagnetic lock structure, combined with coherent calibration method and RTC clock calibration, the time synchronization problem in the high-density electromyography signal acquisition system is solved, microsecond synchronization accuracy and high reliability are achieved, and equipment volume is reduced and power consumption, expand the usage scenarios and solve the problems of synchronization inconsistency and limitations in the prior art.

CN117958844BActive Publication Date: 2024-11-22ONESENSE MEDICAL TECHNOLOGY (SUZHOU) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410153596.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-02
Publication Date
2024-11-22
Estimated Expiration
2044-02-02

AI Technical Summary

Technical Problem

The existing high-density electromyography signal acquisition system has time synchronization problems in distributed multi-channel physiological signal acquisition, especially inconsistent sampling points between modules under long-term sampling, resulting in synchronization and cannot meet the high-precision of some experimental scenarios. Required, and existing solutions such as high-precision clocks and wireless synchronization have problems such as large size, high power consumption, high cost and limited use scenarios.

Method used

Using a multi-functional pin interface and electromagnetic lock structure, the signal acquisition module and the base station can be synchronized through Wi-Fi connection and USB bus. Coherent calibration method and RTC clock calibration are used, combined with software and hardware and software combined with the time stamp of the synchronization device to achieve microseconds. Level time synchronization, and data processing and charging are performed through the base station, simplifying the operation process.

Benefits of technology

It realizes the reduction of equipment size and power consumption, reduces signal acquisition costs, expands usage scenarios, improves synchronization reliability, can perform synchronous acquisition in areas outside the wireless network coverage, and the synchronization between module and base station is inserted and unplugged. It is still reliable after exiting, supports multiple modules to work simultaneously, improving synchronization accuracy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117958844B_ABST
    Figure CN117958844B_ABST
Patent Text Reader

Abstract

The present invention discloses a high-density electromyographic signal synchronous acquisition system and method, which relates to the field of signal acquisition. In the system, the signal acquisition module and the base station are electrically connected through a spring pin interface and mechanically connected through an electromagnetic lock. The spring pin interface includes multiple communication protocols and functional ports, and supports multiple operations at the same time. The module only needs to be inserted into the base station to complete the charging, data export, status reading, parameter configuration, firmware upgrade, and time synchronization functions of the module. The use process is simple and the device size is reduced; the electromagnetic lock locks the module inserted into the base station to ensure reliable communication between the module and the base station and the safety and integrity of the data file. The method of the present invention automatically completes the operation when the base station is inserted with the module, and can keep all modules inserted in the base station synchronized with the base station in real time. The electromyographic signal acquisition process does not rely on the wireless network, and the use scenario is not limited to the area with network coverage, which reduces the power consumption and cost of wireless connection, and greatly improves the synchronization reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal acquisition, and in particular to a high-density electromyography signal synchronous acquisition system and method. Background Art

[0002] High-density electromyography is a multi-dimensional time series signal of voltage changes obtained by guiding, amplifying, recording and displaying the bioelectric changes generated by the activity of single or multiple muscle cells or part of muscle tissue through electrodes. It can very accurately reflect the state of movement of the human nervous, skeletal and muscle systems. High-density electromyography collects array surface electromyographic signals, which can convert traditional single-point or two-point electromyographic signal detection into surface detection, and use medical signal processing technology to comprehensively process the collected signals. Due to the use of array surface electrodes, its number of channels is dozens of times more than the single or dual channels of traditional surface electromyography, which can more comprehensively record the electrical signals of the muscles at the measured position and retain the muscle activity information contained in the electrical signals to the greatest extent. In addition, methods such as independent component analysis and deconvolution can be used to decompose multi-channel high-density electromyographic signals into the microscopic discharge behavior of a single neuron, so as to observe the discharge of a single neuron and apply it to scenarios such as human-computer interaction, sports injury analysis, and muscle fatigue monitoring. In some application scenarios (such as whole-body motion monitoring), all muscle groups at different body positions of the same subject need to be monitored, and the monitoring equipment cannot affect the normal movements of the subject and needs to be fixed at various positions of the body in a wireless rather than wired form. Therefore, a distributed high-density electromyography acquisition solution is required.

[0003] For wireless distributed multi-channel physiological signal acquisition systems such as distributed high-density electromyography acquisition systems, time synchronization between distributed sensor modules is crucial. Since each module inevitably uses an independent high-frequency sampling crystal oscillator (2.048MHz) for sampling, the sampling between modules is asynchronous, that is, it cannot be guaranteed that all samples are generated at the same absolute time. The more serious problem is that the commonly used high-frequency MHz crystal oscillator used for sampling has an absolute sampling rate error, which will produce inconsistent numbers of sampling points under long-term sampling (more than 10s) (for example, module A actually samples 11,000 sampling points under a sampling rate of 1ksps within 10s, while module B actually samples 9950 sampling points), and this inconsistency will increase with time, resulting in the inability to correspond the sampling points between different modules on the absolute time axis, so that the sampling between modules cannot be synchronized. Under a typical 2.048MHz 50ppm sampling clock, the timestamp error between modules can reach 1.44s after synchronizing the modules and conducting a 4h experiment. In many experimental scenarios (such as multi-muscle synchronous force reaction test), the timestamp synchronization error between modules measuring each muscle group must be less than 8ms. The above sampling clock accuracy obviously cannot meet the requirement.

[0004] To solve the above synchronization problem, there are currently two main ideas: use very high precision clock crystal or use wireless synchronization. Very high precision clocks usually use oven controlled crystal oscillators (OCXO), which are large in size, high in power consumption, and expensive. They are mainly used in large facilities such as national defense, satellite navigation, remote sensing mapping, and communication base stations, and are not suitable for wearable low-power devices. Wireless synchronization is the main solution currently adopted by existing technologies. A wireless base station is used to connect all modules to be synchronized in real time, and a time synchronization protocol such as the Network Time Protocol (NTP) is used to synchronize the module sampling time at a certain time interval. Its main shortcomings are: 1) All modules are required to be connected to the specified wireless network in real time, which limits the use scenario and cannot be used in outdoor scenarios without space constraints; 2) Wireless signals are easily affected by electromagnetic environmental factors. In the event of transmission delays and interruptions such as electromagnetic wave reflection and disconnection, uncontrollable synchronization delays will occur between modules; 3) It is necessary to always maintain wireless connection, consume power, affect battery life, and shorten the maximum experiment time. Summary of the invention

[0005] In response to the problems raised in the above background technology, the present invention provides a high-density electromyography signal synchronous acquisition system and method to reduce the size and power consumption of the equipment, reduce the signal acquisition cost, expand the application scenarios and improve the synchronization reliability.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] On the one hand, the present invention provides a high-density electromyography signal synchronous acquisition system, comprising: a host computer, a base station and a plurality of signal acquisition modules;

[0008] The signal acquisition module and the host computer are respectively connected to the wireless router node via Wi-Fi. Under the routing forwarding of the wireless router, the host computer establishes a TCP server, and the signal acquisition module is connected to the TCP server as a client to realize socket communication; the host computer sends instructions to the signal acquisition module to start and end the experiment;

[0009] The signal acquisition module is connected to the flexible electrode during the experiment and fixed to the position of the muscle to be tested in the human body, and is used for real-time acquisition, processing, storage and transmission of high-density surface electromyographic signals;

[0010] After the experiment, multiple signal acquisition modules were electrically connected to the base station through a spring pin interface and mechanically connected through an electromagnetic lock; the base station was connected to the host computer through a USB 2.0 bus;

[0011] The base station is used to store multiple signal acquisition modules and communicate with the host computer, charge the signal acquisition modules, and read, configure, synchronize time, and eject the signal acquisition modules according to the host computer's instructions; the base station also has a multi-channel analog signal input interface for collecting analog signals from external devices and transmitting them to the host computer after digitization;

[0012] The host computer provides a user graphical operation interface for managing and configuring the signal acquisition module, and receiving, storing and processing the offline sampling data uploaded in real time to complete the synchronization of high-density surface electromyography signals.

[0013] Optionally, the pin interface includes an SPI bus, a USB bus, a charging interface, a hot-swap interface, a synchronization interface and a firmware upgrade interface; the SPI bus connects the base station and all signal acquisition modules, and is used by the base station to read the signal acquisition module status, configuration module, and synchronization module time; the USB bus is connected to the USB HUB in the base station to enable the signal acquisition module to transmit offline saved data to the host computer; the charging interface is used to charge the signal acquisition module, and the signal acquisition module automatically charges after being inserted into the base station, and automatically stops charging after charging is completed; the hot-swap interface is used to bidirectionally identify whether the signal acquisition module is connected to the base station. When the signal acquisition module is inserted or ejected, the signal acquisition module and the base station will receive hot-swap feedback; the synchronization interface is used to synchronize the real-time clock system between the signal acquisition module and the base station and each signal acquisition module, and cooperate with SPI bus instructions, software and algorithms to achieve microsecond time synchronization; the firmware upgrade interface is used to upgrade the internal firmware of the module online.

[0014] Optionally, the electromagnetic lock consists of a lock body and a latch; the lock body is fixed to the base station by screws, and the latch cooperates with the lock hole at the corresponding position of the signal acquisition module to fix the signal acquisition module in the base station; the electromagnetic lock includes two states: locked and unlocked; when the signal acquisition module is inserted into the base station, the electromagnetic lock latch slides into the lock hole of the signal acquisition module, locks the signal acquisition module, and sends an insertion feedback to the base station; when the electromagnetic lock receives a pop-up command from the base station, the lock body is energized, the latch is withdrawn from the lock hole to unlock and pop out the signal acquisition module.

[0015] Optionally, the host computer sends instructions to the base station through the CDC protocol based on the USB 2.0 bus, and controls the base station to complete the reading and writing of the status of the signal acquisition module inserted therein, experiment configuration, firmware upgrade and pop-up control operations; the host computer is also connected to the signal acquisition module through the USB 2.0 bus via the USB HUB in the base station, and reads the offline sampling data stored in the SD card of the signal acquisition module through the USB mass storage device protocol.

[0016] On the other hand, the present invention also provides a high-density electromyographic signal synchronous acquisition method based on the high-density electromyographic signal synchronous acquisition system, comprising:

[0017] Use the coherent calibration method to calibrate the extremely high-precision RTC clock in each signal acquisition module and the base station using an oscilloscope at room temperature;

[0018] After coherent calibration, the current timestamps of the RTC clocks of all devices are synchronized using the software and hardware of the base station, signal acquisition module, and host computer;

[0019] Each signal acquisition module and base station combines the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp;

[0020] Based on the combined timestamp, the host computer normalizes the time axis of the recorded sampling data of each signal acquisition module and base station to form unified time sampling data.

[0021] Optionally, the coherent calibration method is used to calibrate each signal acquisition module and the extremely high-precision RTC clock in the base station using an oscilloscope at room temperature, specifically including:

[0022] At room temperature, connect the output of the base station RTC crystal oscillator to channel 1 of the dual-channel oscilloscope, connect the output of the RTC crystal oscillator in the signal acquisition module to channel 2 of the dual-channel oscilloscope, use synchronous sampling in the oscilloscope, set the rising edge or intermediate level value of channel 1 to trigger, and display the signals of channels 1 and 2 at the same time; when the channel 2 signal moves to the left relative to the channel 1 signal, gradually increase the aging parameter until the channel 2 signal does not move; when the channel 2 signal moves to the right relative to the channel 1 signal, gradually decrease the aging parameter until the channel 2 signal does not move.

[0023] Optionally, synchronizing the current timestamps of the RTC clocks of all devices by using the software and hardware of the base station, the signal acquisition module and the host computer specifically includes:

[0024] When the signal acquisition module is inserted into the base station, the signal acquisition module communicates with the base station via the SPI bus and is connected to the RTC synchronization line; the RTC chip of the base station sends a second pulse every second as an interrupt transmission to the base station main control board; when a time synchronization needs to be completed, the base station main control board first sends the timestamp that should correspond to the next synchronization to each signal acquisition module through the SPI bus in accordance with the communication protocol. The timestamp is the timestamp corresponding to the next arrival of the base station RTC pulse, and the SPI bus communication needs to be completed before the next arrival of the base station RTC pulse; when the base station RTC pulse arrives, the base station main control board receives the pulse interrupt and immediately sends a pulse on the RTC synchronization line. After receiving the pulse, each signal acquisition module immediately writes the timestamp previously transmitted to it through the SPI bus into the RTC chip, thereby synchronizing the RTCs of all devices at once.

[0025] Optionally, each signal acquisition module and the base station combines the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp, specifically including:

[0026] When the signal acquisition module is popped up by the base station for experiments, the signal acquisition module pulse performs a signal sampling when each sampling pulse is generated; the RTC clock pulse of the signal acquisition module is generated once at a preset time interval and carries a timestamp that is precisely synchronized with the base station and other signal acquisition modules; when the RTC clock pulse arrives, the signal acquisition module combines the timestamp T carried by the RTC clock pulse with the sampling pulse closest to the arrival time of the RTC clock pulse, and determines that the timestamp closest to the generation time of the sampling pulse is T.

[0027] Optionally, the host computer normalizes the time axis of the recorded sampling data of each signal acquisition module and base station based on the combined timestamp to form unified time sampling data, specifically including:

[0028] When the experiment is over, the data acquisition module is inserted into the base station and the local files are imported into the database. For all the imported sampled data files, the sampling rate f sample , the sampling numbers of each signal acquisition module and base station in each timestamp interval are resampled to the standard sampling number N through the signal resampling algorithm; then the sampling data of the same number of signal acquisition modules and base stations in the same timestamp interval are stored in the same standard sampling matrix to achieve time axis normalization.

[0029] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0030] In the high-density electromyographic signal synchronous acquisition system provided by the present invention, the signal acquisition module is electrically connected to the base station through a pin interface and mechanically connected through an electromagnetic lock. The pin interface includes a variety of communication protocols and functional ports, and can support multiple operations at the same time. The charging, data export, status reading, parameter configuration, firmware upgrade, and time synchronization functions of the module can be completed by simply inserting the signal acquisition module into the base station. The use process is simple and the device size is reduced; the electromagnetic lock structure can lock the module inserted into the base station to ensure reliable communication between the module and the base station and safe and complete data files. The high-density electromyographic signal synchronous acquisition method of the present invention automatically completes operations such as data transmission, time synchronization, and charging when the base station is inserted with the module, and can keep all modules inserted in the base station synchronized with the base station in real time. It does not rely on wireless networks when collecting electromyographic signals, so the use scenario is not limited to areas with network coverage, which reduces wireless connection power consumption and signal acquisition costs, and greatly improves synchronization reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 It is a schematic diagram of the overall structure of the high-density electromyographic signal synchronous acquisition system of the present invention;

[0033] Figure 2 Schematic diagram of the experimental parameter configuration process;

[0034] Figure 3 Schematic diagram of the data collection process;

[0035] Figure 4 This is a schematic diagram of the data import process;

[0036] Figure 5 Schematic diagram of the coherent calibration principle;

[0037] Figure 6 This is a schematic diagram of the synchronous timing principle;

[0038] Figure 7 It is a schematic diagram of the sampling time joint principle;

[0039] Figure 8 Schematic diagram of the time axis normalization principle. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The purpose of the present invention is to provide a high-density electromyography signal synchronous acquisition system and method to reduce the size and power consumption of the equipment, reduce the signal acquisition cost, expand the application scenarios and improve the synchronization reliability.

[0042] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] The present invention provides a high-density electromyographic signal synchronous acquisition system, such as Figure 1 As shown, it includes: a host computer, a base station and multiple signal acquisition modules (also referred to as modules); it is a distributed wearable high-density electromyography signal synchronous acquisition system.

[0044] The signal acquisition module and the host computer are connected to the wireless router node via Wi-Fi respectively. Under the routing forwarding of the wireless router, the host computer establishes a TCP server, and the signal acquisition module is connected to the TCP server as a client to realize socket communication. The host computer sends instructions to the signal acquisition module to start and end the experiment. The signal acquisition module sends its own status information and real-time sampling data to the host computer.

[0045] The signal acquisition module is connected to the flexible electrode during the experiment and fixed to the position of the muscle to be tested in the human body, and is used for real-time acquisition, processing, storage and transmission of high-density surface electromyographic signals.

[0046] After the experiment, the multiple signal acquisition modules were electrically connected to the base station through the pin interface and mechanically connected through the electromagnetic lock. The base station was connected to the host computer through the USB 2.0 bus.

[0047] The base station is used to store multiple signal acquisition modules and communicate with the host computer, charge the signal acquisition modules, and read, configure, synchronize and eject the signal acquisition modules according to the host computer's instructions. The base station also has a multi-channel analog signal input interface for collecting analog signals from external devices (such as dynamometers, ECG electrodes, single-channel EMG electrodes) and digitizing them and transmitting them to the host computer.

[0048] The host computer provides a user graphical operation interface for managing and configuring the signal acquisition module, and receiving, storing and processing the offline sampling data uploaded in real time to complete the synchronization of high-density surface electromyography signals.

[0049] Specifically, the pin interface includes an SPI (Serial Peripheral Interface) bus, a USB bus, a charging interface, a hot-swap interface, a synchronization interface, and a firmware upgrade interface. Among them, the SPI bus connects the base station and all signal acquisition modules, and is used for the base station to read the signal acquisition module status, configuration module, and synchronization module time. The USB bus is connected to the USB HUB in the base station to enable the signal acquisition module to transmit offline saved data to the host computer. The charging interface is used to charge the signal acquisition module. The signal acquisition module automatically charges after being inserted into the base station, and automatically stops charging after charging is completed. The hot-swap interface is used to bidirectionally identify whether the signal acquisition module is connected to the base station. When the signal acquisition module is inserted or ejected, the signal acquisition module and the base station will receive hot-swap digital level feedback. The synchronization interface is used to synchronize the real-time clock system between the signal acquisition module and the base station and each signal acquisition module, and cooperate with the SPI bus instructions, software and algorithms to achieve microsecond time synchronization. The firmware upgrade interface is used to upgrade the internal firmware of the module online.

[0050] The electromagnetic lock consists of a lock body and a latch; the lock body is fixed to the base station by screws, and the latch cooperates with the lock hole at the corresponding position of the signal acquisition module to fix the signal acquisition module in the base station. The electromagnetic lock has two states: locked and unlocked; when the signal acquisition module is inserted into the base station, the electromagnetic lock latch slides into the signal acquisition module lock hole, locks the signal acquisition module, and sends an insertion feedback level to the base station; when the electromagnetic lock receives the base station eject command, the lock body is powered on, the latch is withdrawn from the lock hole to unlock and eject the signal acquisition module.

[0051] The base station and the host computer are connected via a USB 2.0 bus, and the communication between the base station and the host computer, and between the signal acquisition module and the host computer is realized by using the USB HUB inside the base station. The host computer sends instructions to the base station through the Communication Device Class (CDC) protocol based on the USB 2.0 bus, and controls the base station to complete the status reading and writing, experimental configuration, firmware upgrade, and pop-up control of the signal acquisition module inserted therein. The host computer is also connected to the signal acquisition module through the USB 2.0 bus via the USB HUB inside the base station, and reads the offline sampling data stored in the SD card of the signal acquisition module through the USB mass storage device protocol.

[0052] Figure 1 The working process of the high-density electromyographic signal synchronous acquisition system shown is as follows:

[0053] The first step is to insert the module into the base station: insert the signal acquisition module into the base station cabin. At this time, after the spring pin seat at the module insertion end contacts the spring pin inside the base station cabin, the circuit is connected and the signal is detected, the base station pushes the module information to the host computer, and the base station main control board controls the electromagnetic lock pin to insert the module lock hole. At this time, the module is locked and cannot be taken out; the base station automatically charges the locked module.

[0054] The second step is that the host computer reads and updates the information: after the module is inserted into the base station and locked, the host computer reads the information and real-time status of the module in the base station through the USB Type-C cable and displays it in the interface; the module information includes remaining power, remaining memory, firmware information, serial number, network status, sampling rate, experiment ID, and experiment notes, etc.; the real-time status of the module includes configurable status (in this state, the module can be selected for new experiment configuration, exporting data, upgrading firmware, etc., the light ring is blue and long, and the pop-up button is operable), read / write status (in this state, the module is prohibited from being selected, the light ring is red breathing effect, the host computer pop-up button and the base station pop-up button cannot pop out the module to prevent interruptions in the data reading and writing process, resulting in data loss, configuration errors, etc.), and cabin no module status (in this state, no module is displayed in the cabin, the light ring is gray, and there is no pop-up word).

[0055] The third step is to configure the experimental parameters: Figure 2 As shown, first click the configuration button on the host computer homepage to jump to the parameter configuration interface, then select the configurable module to set the experiment ID, sampling rate and experiment notes. After completion, click the confirmation button to start writing the configuration; if the writing is successful, a pop-up window will pop up to remind you and jump back to the parameter configuration interface, and reset the parameters at the same time; if the writing fails, a pop-up window will report an error and jump back to the parameter configuration interface. In this case, the parameters are not reset; click the cancel button to cancel the configuration and return to the homepage.

[0056] Step 4. Pop up the configured module: After the module completes the experimental parameter configuration, click the pop-up button on the host computer homepage or press the pop-up button on the base station. At this time, the host computer will send a pop-up command to the base station main control board. The main control board controls the electromagnetic lock pin to withdraw from the module lock hole, pop up and remove the module.

[0057] Step 5: Start collecting: Figure 1 As shown, the data acquisition module is provided with an OS key 101, a user event trigger key 102, a Wi-Fi key 103 and a display screen 104; and the module has a dedicated silicone shell, first the silicone soft shell is installed on the module, then the flexible electrode is inserted into the electrode interface of the module, and then the strap is fixed to the muscle position to be tested on the human body, and finally the module is fixed to the strap, and the flexible electrode is attached to the skin surface of the test site, and the flexible electrode, module and strap are fixed; as shown Figure 3As shown, after wearing the device, short press the module OS button 101 or click the experiment start button on the host computer. At this time, the device first performs a self-test. After the self-test is successful, the module's OLED display screen 104 displays the module status and experiment configuration information. After the information is confirmed to be correct, short press the OS button 101 to start the experiment. During the experiment, if you need to mark the experimental data, press the user event trigger key 102, turn off or turn on the network, press the Wi-Fi button 103, and end the experiment by pressing the OS button 101 or click the experiment end button on the host computer software.

[0058] Step 6: Data import: Figure 4 As shown, after the experiment is completed, remove the module and straps from the test site and clean the skin with alcohol to prevent allergies. Remove the flexible electrode and insert the module back into the base station. At this time, click the Import button on the host computer homepage to enter the data import interface. Users can view and select files according to the experiment ID and module serial number. After selecting the target module and file, click the Confirm button to start importing.

[0059] Step 7, data export: After the import is completed, return to the host computer homepage and click the database management button to enter the database management interface. At this time, you can operate the experimental files that have been imported into the database. If you need to export the experimental files to the local, select the target file first and then click Export; the same applies to deleting, copying, and replaying data.

[0060] In order to solve the problem of synchronization of sampling data timestamps between modules and between modules and base stations, the present invention also proposes a high-density electromyographic signal synchronization acquisition method, which is completed by the host computer software, base station and module hardware, including four steps: coherent calibration, synchronous timing, sampling time combination and time axis normalization. The advantages of the high-density electromyographic signal synchronization acquisition method are that it does not require wireless network connection, can be applied to offline acquisition scenarios, is not restricted by time and space, has low operating power consumption, low implementation cost, and high synchronization accuracy (up to microsecond level).

[0061] Specifically, the present invention is a high-density electromyographic signal synchronous acquisition method based on the high-density electromyographic signal synchronous acquisition system, comprising:

[0062] Step 1: Coherent calibration. Use the coherent calibration method to calibrate the extremely high-precision RTC clocks in each signal acquisition module and the base station at room temperature using an oscilloscope. Coherent calibration performs aging calibration on the extremely high-precision RTC clocks in each module and base station at the same temperature to increase the crystal oscillator accuracy to more than 0.5ppm.

[0063] The basic principle of coherence calibration is as follows Figure 5As shown. Although both the module and the base station use extremely high-precision civilian-grade RTC clock chips (such as DS3231SN), their factory accuracy can usually only reach 2ppm, which cannot meet the synchronization error requirements of the experiment (+-8ms / 4h). For this reason, the 32.768kHz crystal oscillators of all RTC clocks in the same set of equipment are calibrated when the equipment leaves the factory and during annual inspection. Considering that the module and the base station are generally used in the same temperature environment, and the after-sales annual inspection environment usually cannot use a high-precision frequency meter, the present invention uses Figure 5 The coherent calibration method shown is performed using an oscilloscope at room temperature.

[0064] More specifically, at room temperature, it is assumed that the RTC clock crystal frequency f inside the base station is base To accurately obtain 32.768kHz, connect the output of the base station RTC crystal oscillator to channel 1 of a dual-channel oscilloscope; consider that the RTC clock crystal frequency in the module is f module It is approximately equal to 32.768kHz, but it needs fine-tuning. Connect the output of its crystal oscillator to channel 2 of a dual-channel oscilloscope. Use synchronous sampling in the oscilloscope, set the rising edge or intermediate level value of channel 1 to trigger, and display the signals of channels 1 and 2 at the same time. Due to the slight difference in the period of the two input signals, the signal of channel 1 will remain stationary, and the signal of channel 2 may not be stable and move left or right relative to the signal of channel 1. When the signal of channel 2 moves to the left, its frequency is greater than 32.768kHz. At this time, gradually increase the aging parameter to reduce the frequency until the signal of channel 2 hardly moves. When the signal of channel 2 moves to the right, its frequency is less than 32.768kHz. At this time, gradually reduce the aging parameter to make the signal hardly move. Repeat the above operations for each module until the RTC crystal oscillator frequency of all modules is calibrated to be almost the same as that of the base station. Under ideal conditions, after the above calibration, the module RTC frequency stability can reach 0.1ppm.

[0065] Step 2: Synchronize timing: After coherent calibration, use the software and hardware of the base station, signal acquisition module and host computer to synchronize the current timestamp of the RTC clock of all devices.

[0066] The principle of synchronous timing is as follows Figure 6 As shown, the hardware connection principle of synchronous timing is as follows Figure 6 As shown on the left, Figure 6 The right side is the corresponding synchronous timing diagram. When the module is inserted into the base station, the 14-pin spring pin interface contacts, the module communicates with the base station via the SPI bus and is connected to the RTC synchronization line. Figure 6As shown in the figure on the right, the RTC chip of the base station will send out a second pulse every second as an interrupt transmission to the base station main control board. When a time synchronization needs to be completed, the main control board performs the following steps: (2.1) First, the timestamp that should correspond to the next synchronization is sent to each module through the SPI bus in accordance with the communication protocol. This timestamp is the timestamp corresponding to the next arrival of the base station RTC pulse. The SPI bus communication needs to be completed before the next arrival of the base station RTC pulse; (2.2) When the base station RTC pulse arrives, the main control board receives the pulse interrupt and immediately sends a pulse on the RTC synchronization line. After receiving the pulse, the module immediately writes the timestamp previously transmitted to it through the SPI bus into the RTC chip. After the above two steps (2.1) and (2.2), ignoring the interrupt processing time and the RTC chip setting write time (these times are fixed and can be compensated by software later), the RTC of all devices can be synchronized at once. Such synchronization can be performed at intervals, for example Figure 6 The timing diagram on the right shows the synchronization every 2 seconds.

[0067] The base station is set to perform the above synchronization every few seconds. Therefore, as long as the module is plugged into the base station, it will maintain precise synchronization with the base station's time system.

[0068] Step 3: Sampling time combination: each signal acquisition module and base station combines the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp.

[0069] The sampling time combination is completed independently by each module and base station, combining the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp. Figure 7 As shown, Figure 7 The left side shows the sampling time joint hardware principle, and the right side is the corresponding sampling time joint timing diagram.

[0070] According to step 2, when the module is plugged into the base station, the base station synchronizes the timestamp every few seconds, and the RTC time inside the module is highly consistent with the base station. When the module is ejected and used to record physiological signals such as electromyography, the sampling trigger clock used is a 2.048MHz active crystal oscillator inside it, such as Figure 7As shown on the left. The frequency stability of a civilian-grade MHz crystal is generally 20ppm or worse, because the time pulse generated by the MHz crystal cannot be used as an absolute timestamp to synchronize with other devices. In this case, it is necessary to rely on a calibrated module RTC clock that is synchronized with the base station and has a frequency stability of up to 0.1ppm to provide a reliable absolute timestamp. Since the absolute timestamp is generated once per second, and the sampling pulse can be 200-2000Hz according to the user configuration, and the RTC clock pulse and the sampling pulse are generated asynchronously, the RTC timestamp needs to be matched with the sampling clock pulse.

[0071] More specifically, in Figure 7 In a typical example shown on the right, the sampling clock pulse is generated at a frequency of 1kHz, and a signal is sampled once each time a pulse is generated. The RTC clock pulse is generated every 1s and carries a timestamp that is precisely synchronized with the base station and other modules. The pulse arrives asynchronously with the sampling clock pulse, that is, it may be generated between two sampling clock pulses. When the RTC clock pulse arrives, the module compares the timestamp T carried by the RTC clock pulse with the sampling pulse that is closest to the arrival time of the RTC clock pulse (for example Figure 7 The timestamp T is recorded to the time closest to the sampling pulse (e.g. Figure 7 The timestamp closest to the sampling pulse (the n+2th sampling in the figure) is T. It can be predicted that after such combination, the timestamp closest to the sampling pulse ( Figure 7 The maximum error between the timestamp of the actual generation time of the n+2th sampling) and T is where f sample The sampling rate is set, and the error does not accumulate over time and is within an acceptable range.

[0072] After the above operation, at each continuous sampling point, sample Each sampling point has one sampling point associated with it by RTC and carries the whole second RTC timestamp. These timestamps and their associated sampling point positions are recorded for use in subsequent steps.

[0073] Step 4: Time axis normalization: Based on the combined timestamp, the host computer normalizes the time axis of the recorded signal acquisition modules and base station sampling data to form unified time sampling data.

[0074] The time axis normalization process is to unify the time axis of the recorded sampling data of each module and base station by using an algorithm in the host computer to form a unified time sampling for subsequent analysis. The principle of time axis normalization is as follows Figure 8 As shown, Figure 8 The upper part shows the principle of multi-module time axis normalization. Figure 8 The lower part shows the details of the resampling operation.

[0075] During the experiment, the signals collected by each module and base station were timestamped using the method shown in step 3, but the sampling rates and sampling data lengths of each device were still different. When the experiment is completed, the module is inserted into the base station and the local file is imported into the database, all imported sampling data files need to be time-normalized so that the sampling data of all modules and base stations present the same ideal sampling rate f sample , have the same number of sampling points N = f within 1s sample ×1s, and align the same timestamps between different modules and between modules and base stations to store them in the database for subsequent playback, display, and export of multi-module data merging.

[0076] The specific principle is as follows Figure 8 As shown in the upper part, the position corresponding to each time stamp dashed line (for example, the dashed line position corresponding to time T) is the sampling point associated with this time in step 3. Figure 8 In a typical example shown above, one base station corresponds to eight modules, then a n ,b n ,…,h n ,i n Respectively represent the actual number of samples of the first to eighth modules and base station in the nth timestamp interval under the sampling clocks of the first to eighth modules and base station. Generally speaking, these numbers deviate from the standard sampling number N. The base station sampling clock is used to collect external analog signal inputs. In addition to the functions related to module management and host computer communication, the base station can also collect eight channels of analog signal inputs from external devices (such as dynamometers, ECG electrodes, single-channel EMG electrodes, etc.) and digitize them. The base station sampling clock described here is used for sampling these analog signals. It is a clock with a higher frequency and lower precision similar to the module sampling clock parameters, so the same method is used to process it in steps 1 to 4.

[0077] According to the sampling rate f sample , select a suitable signal resampling algorithm, resample the sampling number of each module and base station in each timestamp interval to the standard sampling number N, and then store the same number of sampling data of each module and base station in the same timestamp interval in the same standard sampling matrix, so as to achieve time axis normalization. Specifically, for any module or base station x∈[1,9] (the first to the eighth modules and base stations are numbered 1-9 respectively), its original sampling data matrix in the nth timestamp interval is an N'×M matrix, N' is the actual number of samples, M is the total number of sampled channels. In a specific embodiment, the module has 73 channels and the base station has 8 channels. The following signal resampling algorithm is used:

[0078]

[0079] Get an N×M standard sampling data matrix For all x∈[1,9] The following splicing is performed:

[0080]

[0081] In the above formula, f(x) is a multidimensional resampling algorithm, which can be implemented using polynomial interpolation, Lagrange interpolation, sinusoidal interpolation and other algorithms according to actual needs. This is the final normalized output data matrix.

[0082] Figure 8 The lower part intuitively illustrates the details of a resampling operation. In this example, the standard sampling rate is 20sps, N is 20, and the sampling time points and sampling rates of the two modules are different when the same signal is input, resulting in different numbers of sampling points in the range of timestamps from T to T+1. The method of the present invention first combines the sampling points of the two modules closest to timestamps T and T+1 to the corresponding timestamps, and then uses the resampling algorithm to resample the a and b sampling points in the two timestamps into N for splicing.

[0083] In order to evaluate the synchronization error of the high-density electromyographic signal synchronous acquisition method of the present invention under different conditions, an experiment was conducted using a base station and three modules (M1-M3) to evaluate the synchronization effect. First, calibration and timing were performed according to the methods described in steps 1 and 2 above, and the following tests were performed respectively:

[0084] 1. Test under charging status

[0085] When charging, the module will heat up, affecting the RTC temperature and operating stability. After one time synchronization, turn off the base station automatic timing and insert the three modules into the charging. After running for 4 hours, use a logic analyzer to compare the RTC second pulse arrival time error (M1-M3 relative to the base station error) as shown in Table 1.

[0086] Table 1

[0087] Modules RTC error with base station (ms) M1 -2.59 M2 -1.57 M3 -1.2

[0088] 2. Test in static running state

[0089] After one time synchronization, three modules were ejected and placed at room temperature. After running for 4 hours, the RTC second pulse arrival time error was compared using a logic analyzer as shown in Table 2.

[0090] Table 2

[0091] Modules RTC error with base station (ms) M1 1.49 M2 -0.07 M3 -0.36

[0092] 3. Vibration test

[0093] Vibration will affect the stability of the quartz crystal oscillation inside the RTC. Indoors, after the four RTCs are synchronized, the three modules are unplugged from the base station. After standing for 5 minutes, the three modules are shaken vigorously for 1 minute each. The above operation is repeated 5 times. The RTC second pulse arrival time error is tested using a logic analyzer as shown in Table 3.

[0094] Table 3

[0095]

[0096]

[0097] 4. High and low temperature test

[0098] High temperature test: After synchronization and removing the modules, the three modules are fixed together in the same box, heated at 40 degrees Celsius for 5 minutes, cooled naturally for 5 minutes, and the above cycle is repeated 4 times. Then wait for 10 minutes at room temperature and use a logic analyzer to test the data.

[0099] Low temperature test: After RTC synchronization, put the above box into the refrigerator, close the door and cool it for 20 minutes, take out the box and warm it up at room temperature for 20 minutes, repeat the above cycle 4 times, and use a logic analyzer to test the data.

[0100] The high temperature test results are shown in Table 4.

[0101] Table 4

[0102] Modules RTC error with base station (ms) M1 -1.75 M2 1.73 M3 -0.76

[0103] The low temperature test results are shown in Table 5.

[0104] Table 5

[0105] Modules RTC error with base station (ms) M1 -1.42 M2 0.544 M3 -0.434

[0106] 5. Test conclusion

[0107] The test data in Tables 1 to 5 show that under the test environments of normal charging, normal use, high temperature, low temperature, and severe vibration, the method of the present invention can keep the RTC synchronization error less than 3ms within 4 hours, which is much smaller than the synchronization error requirement in industry usage scenarios.

[0108] Compared with the traditional electromyographic signal acquisition system, the present invention has at least the following advantages.

[0109] In the prior art solutions, the module's charging, data export, status reading, parameter configuration, firmware upgrade, and time synchronization functions are completed using separate processes. For example, charging uses a charging cable, data export uses a TF card and card reader, status reading, parameter configuration, and firmware upgrade use OTA, and time synchronization uses wireless network synchronization. The steps are scattered, the process is complicated, time-consuming, and prone to errors. The device usage process in the present invention is simple, and all the above operations can be completed by simply inserting the module into the base station. This advantage comes from the setting of the multifunctional pin interface of the present invention, which includes multiple communication protocols and functional ports. This heterogeneous multifunctional port can support multiple operations at the same time.

[0110] In the prior art solutions, if there is a base station for connecting the module, these base stations only electrically connect the module to it without a mechanical locking structure. Therefore, the key time point of communication between the module and the base station (for example, when data in the module is being imported, when a configuration file is being written to the module) may be interrupted by user operations or unexpected events (for example, the user accidentally unplugs the module being read or written, and external force causes the module to accidentally fall off the base station), which will cause damage to the data files in the module and the base station. The electromagnetic lock structure proposed in the present invention can lock the module inserted into the base station, and continuously lock the module at the key time point of communication between the module and the base station to prevent it from accidentally popping out, thereby ensuring reliable communication between the module and the base station and the safety and integrity of the data files.

[0111] Traditional electromyographic signal acquisition systems generally acquire single-channel or dual-channel macro electromyography. Existing wearable high-density electromyographic acquisition systems can only support high-density electromyographic acquisition with 2 acquisition modules at most, with a total of 128 channels (64 channels per module), and can only cover at most two muscle groups. The present invention supports high-density electromyographic acquisition with at least 8 modules, 64 channels per module, and a total of 512 channels, which can cover more muscle groups and collect more information.

[0112] Existing distributed electromyography acquisition systems (whether traditional low-density electromyography or high-density electromyography) can only operate multiple modules simultaneously when there is wireless network coverage. If the wireless connection is interrupted, the signal is unstable, the subject moves beyond the coverage of the wireless signal, etc., time synchronization cannot be achieved, so that the signal is unavailable. The time synchronization between the modules of the present invention and between the modules and the base station does not rely on the wireless network. In the absence of a network connection, the electromyography data and its corresponding accurate absolute timestamp can still be recorded offline. Therefore, the use scenario is not limited to areas with network coverage and the synchronization reliability is high. In theory, the method of the present invention can be extended to any number of modules and has a wide range of application prospects.

[0113] Existing wireless wearable high-density electromyography acquisition equipment has poor reliability and is susceptible to electromagnetic interference because it relies on real-time wireless connection. When using wireless synchronization, the existing technology requires all modules to be connected to the specified wireless network in real time, which limits the usage scenarios and cannot be used in outdoor scenarios without spatial constraints. Wireless signals are easily affected by electromagnetic environmental factors. In the event of transmission delays and interruptions such as electromagnetic wave reflection and disconnection, uncontrollable synchronization delays will occur between modules. It is necessary to maintain wireless connection at all times, consume power, affect battery life, and shorten the maximum experiment time. In addition, the existing technology cannot synchronize sampling in an offline state without a network connection. The multiple modules of the present invention (theoretically, any number is supported) can be fixed at various positions of the body to measure various muscle groups at the same time; the self-locking base station locks the inserted module, which can ensure the stability of operations such as charging, data transmission, configuration reading and writing, and firmware upgrades; the base station and the module adopt a 14-pin probe interface, which includes a variety of bus interfaces and functional ports. Charging, data transmission, configuration reading and writing, firmware upgrades, time synchronization and other operations can be completed by simply inserting the module into the base station; and the present invention realizes offline synchronization between multiple modules and between modules and base stations based on the coordination of software and hardware. The synchronous acquisition method of the present invention does not rely on wireless networks, and automatically completes the operation when the base station is inserted with a module, keeps all modules inserted in the base station synchronized with the base station in real time, and ensures that the module is still reliably synchronized with the base station within 4 hours after leaving the base station, thereby greatly improving the synchronization reliability.

[0114] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A high-density electromyography signal synchronous acquisition system, characterized in that: include: Host computer, base station and multiple signal acquisition modules; The signal acquisition module and the host computer are respectively connected to the wireless router node via Wi-Fi. Under the routing forwarding of the wireless router, the host computer establishes a TCP server, and the signal acquisition module is connected to the TCP server as a client to realize socket communication; the host computer sends instructions to the signal acquisition module to start and end the experiment; The signal acquisition module is connected to the flexible electrode during the experiment and fixed to the position of the muscle to be tested in the human body, and is used for real-time acquisition, processing, storage and transmission of high-density surface electromyographic signals; After the experiment, multiple signal acquisition modules were electrically connected to the base station through a spring pin interface and mechanically connected through an electromagnetic lock; the base station was connected to the host computer through a USB 2.0 bus; The pin interface includes an SPI bus, a USB bus, a charging interface, a hot-swap interface, a synchronization interface and a firmware upgrade interface; The SPI bus connects the base station and all signal acquisition modules, and is used by the base station to read the signal acquisition module status, configuration module, and synchronization module time; the USB bus is connected to the USB HUB in the base station, so that the signal acquisition module can transmit offline saved data to the upper computer; the charging interface is used to charge the signal acquisition module, and the signal acquisition module automatically charges after being inserted into the base station, and automatically stops charging after charging is completed; the hot-swap interface is used to bidirectionally identify whether the signal acquisition module is connected to the base station. When the signal acquisition module is inserted or ejected, the signal acquisition module and the base station will receive hot-swap feedback; the synchronization interface is used to synchronize the real-time clock system between the signal acquisition module and the base station and each signal acquisition module, and cooperate with the SPI bus instructions, software and algorithms to achieve microsecond time synchronization; the firmware upgrade interface is used to upgrade the internal firmware of the module online; The base station is used to store multiple signal acquisition modules and communicate with the host computer, charge the signal acquisition modules, and read, configure, synchronize time, and eject the signal acquisition modules according to the host computer's instructions; the base station also has a multi-channel analog signal input interface for collecting analog signals from external devices and transmitting them to the host computer after digitization; The host computer provides a user graphical operation interface for managing and configuring the signal acquisition module, and receiving, storing and processing the offline sampling data uploaded in real time to complete the synchronization of high-density surface electromyography signals.

2. The high-density electromyographic signal synchronous acquisition system according to claim 1, characterized in that: The electromagnetic lock consists of a lock body and a latch; the lock body is fixed to the base station by screws, and the latch cooperates with the lock hole at the corresponding position of the signal acquisition module to fix the signal acquisition module in the base station; the electromagnetic lock includes two states: locked and unlocked; when the signal acquisition module is inserted into the base station, the electromagnetic lock latch slides into the lock hole of the signal acquisition module, locks the signal acquisition module, and sends an insertion feedback to the base station; when the electromagnetic lock receives a pop-up command from the base station, the lock body is powered on, the latch is withdrawn from the lock hole to unlock and pop out the signal acquisition module.

3. The high-density electromyographic signal synchronous acquisition system according to claim 1, characterized in that: The host computer sends instructions to the base station through the CDC protocol based on the USB 2.0 bus, and controls the base station to complete the status reading and writing, experimental configuration, firmware upgrade and pop-up control operations of the signal acquisition module inserted therein; the host computer is also connected to the signal acquisition module through the USB HUB in the base station through the USB 2.0 bus, and reads the offline sampling data stored in the SD card of the signal acquisition module through the USB mass storage device protocol.

4. A high-density electromyographic signal synchronous acquisition method based on the high-density electromyographic signal synchronous acquisition system according to claim 1, characterized in that: include: Use the coherent calibration method to calibrate the extremely high-precision RTC clock in each signal acquisition module and the base station using an oscilloscope at room temperature; After coherent calibration, the current timestamps of the RTC clocks of all devices are synchronized using the software and hardware of the base station, signal acquisition module, and host computer; Each signal acquisition module and base station combines the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp; Based on the combined timestamp, the host computer normalizes the time axis of the recorded sampling data of each signal acquisition module and base station to form unified time sampling data.

5. The high-density electromyographic signal synchronous acquisition method according to claim 4, characterized in that: The coherent calibration method is used to calibrate each signal acquisition module and the extremely high-precision RTC clock in the base station using an oscilloscope at room temperature, specifically including: At room temperature, connect the output of the base station RTC crystal oscillator to channel 1 of the dual-channel oscilloscope, connect the output of the RTC crystal oscillator in the signal acquisition module to channel 2 of the dual-channel oscilloscope, use synchronous sampling in the oscilloscope, set the rising edge or intermediate level value of channel 1 to trigger, and display the signals of channels 1 and 2 at the same time; when the channel 2 signal moves to the left relative to the channel 1 signal, gradually increase the aging parameter until the channel 2 signal does not move; when the channel 2 signal moves to the right relative to the channel 1 signal, gradually decrease the aging parameter until the channel 2 signal does not move.

6. The high-density electromyographic signal synchronous acquisition method according to claim 4, characterized in that: The method of synchronizing the current timestamp of the RTC clocks of all devices by using the software and hardware of the base station, the signal acquisition module and the host computer specifically includes: When the signal acquisition module is inserted into the base station, the signal acquisition module communicates with the base station via the SPI bus and is connected to the RTC synchronization line; the RTC chip of the base station sends a second pulse every second as an interrupt transmission to the base station main control board; when a time synchronization needs to be completed, the base station main control board first sends the timestamp that should correspond to the next synchronization to each signal acquisition module through the SPI bus in accordance with the communication protocol. The timestamp is the timestamp corresponding to the next arrival of the base station RTC pulse, and the SPI bus communication needs to be completed before the next arrival of the base station RTC pulse; when the base station RTC pulse arrives, the base station main control board receives the pulse interrupt and immediately sends a pulse on the RTC synchronization line. After receiving the pulse, each signal acquisition module immediately writes the timestamp previously transmitted to it through the SPI bus into the RTC chip, thereby synchronizing the RTCs of all devices at once.

7. The high-density electromyographic signal synchronous acquisition method according to claim 4, characterized in that: Each signal acquisition module and the base station combines the input signal sampling point generated under the command of the low-precision sampling clock with the high-precision RTC timestamp, specifically including: When the signal acquisition module is popped up by the base station for experiments, the signal acquisition module pulse performs a signal sampling when each sampling pulse is generated; the RTC clock pulse of the signal acquisition module is generated once at a preset time interval and carries a timestamp that is precisely synchronized with the base station and other signal acquisition modules; when the RTC clock pulse arrives, the signal acquisition module combines the timestamp T carried by the RTC clock pulse with the sampling pulse closest to the arrival time of the RTC clock pulse, and determines that the timestamp closest to the generation time of the sampling pulse is T.

8. The high-density electromyographic signal synchronous acquisition method according to claim 4, characterized in that: The host computer normalizes the time axis of the recorded signal acquisition modules and base station sampling data based on the combined timestamp to form unified time sampling data, specifically including: When the experiment is over, the data acquisition module is inserted into the base station and the local files are imported into the database. For all the imported sampled data files, the sampling rate f sample , the sampling numbers of each signal acquisition module and base station in each timestamp interval are resampled to the standard sampling number N through the signal resampling algorithm; then the sampling data of the same number of signal acquisition modules and base stations in the same timestamp interval are stored in the same standard sampling matrix to achieve time axis normalization.

Citation Information

Cited By

  • High-density myoelectricity acquisition function test system and method

    CN121049704A