Low-power adaptive chopping amplification sampling method and device, storage medium and terminal for neural stimulator
By switching the chopping frequency of the signal chopping amplifier of the neural stimulator according to the state of the level to be sampled, the problems of high sampling power consumption and poor dynamic characteristics of the neural stimulator are solved, and low-power adaptive chopping amplification sampling is realized. Ensure the accuracy of the sampling results.
Patent Information
- Application Number
- CN202411330257.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2044-09-24
AI Technical Summary
The sampling power consumption of existing neural stimulators is high, making it difficult to adapt to the characteristics of signals at different levels, resulting in poor dynamic characteristics.
By obtaining the state of the level to be sampled, the chopping frequency of the signal chopping amplifier is switched to ensure that the chopping frequency is always at a low power consumption and can meet the demand.
It realizes adaptive chopping amplified sampling at low power consumption, reduces power consumption, is suitable for different sampling requirements, and ensures the accuracy of sampling results.
Smart Images

Figure CN118868944B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of neural stimulators, and relates to a low-power adaptive chopping amplification sampling method for a neural stimulator, and in particular to a low-power adaptive chopping amplification sampling method and device, storage medium and terminal for a neural stimulator. Background Art
[0002] An implantable neurostimulator is a medical device used to regulate or stimulate the human nervous system. It is usually implanted in the body to treat various neurological diseases. Its main purpose is to affect nerve activity through electrical stimulation, thereby improving or restoring nerve function. This device is widely used to treat chronic pain, epilepsy, Parkinson's disease, depression and many other diseases. Since it needs to be implanted in the human body to stimulate nerves with electrical signals, implantable neurostimulators need to pay special attention to the stability and controllability of their own state. Therefore, most neurostimulators integrate ADC sampling modules for sampling their own internal levels, stimulation output levels or nerve action potentials. However, for different levels, the characteristics of the signal are different (signal-to-noise ratio, signal bandwidth, etc.), so the performance requirements of the ADC are different. The chopper amplifier circuit is set in front of the ADC module to modulate the measured signal to a high-frequency band to remove noise and offset. However, a large ripple (corresponding to the chopping frequency) is generated in the passband. The design requires that the chopping frequency is much higher than the frequency of the signal to be sampled, but the higher the chopping frequency, the greater the power consumption.
[0003] In the prior art, there are two main means to solve the above-mentioned high power consumption of chopping. First, a separate amplification circuit is designed for each different signal that needs to be sampled, and targeted parameter design is performed to match the requirements. This method will cause the circuit scale of the sampling module to increase exponentially, the area to increase, and the power consumption to increase. In addition, since the electrical stimulation waveform of the neurostimulator can be configured to different frequencies, this method is also less adaptable and difficult to apply to different sampling requirements. Second, by performing frequency conversion through mixing before sampling (similar to the principle of a superheterodyne spectrum analyzer), the signals of different frequencies are converted and sampled in turn in the form of scanning. The disadvantage of this method is that if the bandwidth of the current sampling signal is wide, it takes a long time to complete the conversion of all frequencies within the sampling frequency band. At the same time, if the signal amplitude changes rapidly at the sampling frequency, it is difficult for the sampling speed to keep up with the change. Therefore, this method has poor dynamic characteristics. Summary of the invention
[0004] The object of the present invention is to provide a low-power adaptive chopping amplification sampling method and device, a storage medium and a terminal for a neural stimulator, so as to solve the technical problem of high sampling power consumption of the neural stimulator in the prior art.
[0005] In a first aspect, the present invention provides a low-power adaptive chopping amplification sampling method for a neural stimulator, comprising:
[0006] Acquire a level to be sampled, and acquire a state of the level to be sampled, wherein the state of the level to be sampled is a stimulator potential state or a nerve potential state;
[0007] Switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled;
[0008] Inputting the level to be sampled into the signal chopping amplifier after the chopping frequency is switched for amplification to obtain the amplified level, inputting the amplified level into the ADC for sampling, and obtaining the sampling result of the ADC;
[0009] Among them, the chopping frequency of the signal chopping amplifier includes a stimulation phase chopping frequency and an idle phase chopping frequency, the stimulation phase chopping frequency corresponds to the stimulator potential state, and the idle phase chopping frequency corresponds to the nerve potential state; the stimulation phase chopping frequency is greater than the idle phase chopping frequency.
[0010] In one embodiment of the present invention, switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled includes:
[0011] Based on the state of the level to be sampled, a corresponding chopping frequency is acquired as a target frequency;
[0012] configuring the timing parameters of the timer to be target parameters corresponding to the target frequency,
[0013] Inputting the output signal of the timer configured with the target parameter to the chopper switch of the signal chopper amplifier through the IO port, so that the signal chopper amplifier uses the target frequency as the operating frequency;
[0014] The timer flips the state of the IO port according to the target parameter.
[0015] In one embodiment of the present invention, switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled includes:
[0016] Based on the state of the level to be sampled, a corresponding chopping frequency is acquired as a target frequency;
[0017] Adjusting the setting value of the DAC voltage to a target voltage according to the target frequency, and supplying the target voltage to a voltage-controlled crystal oscillator to output a corresponding output frequency;
[0018] The output signal of the voltage-controlled crystal oscillator is input to the chopper switch of the signal chopper amplifier, so that the signal chopper amplifier uses the target frequency as the operating frequency.
[0019] In one embodiment of the present invention, the chopping frequency during the stimulation phase is any value in the target interval;
[0020] The left end point of the target interval is a first preset multiple of the inverse of the pulse width of the level to be sampled;
[0021] The right end point of the target interval is a second preset multiple of the inverse of the pulse width of the level to be sampled;
[0022] The first preset multiple is smaller than the second preset multiple.
[0023] In one embodiment of the present invention,
[0024] The chopping frequency in the stimulation stage is half of the inverse of the pulse width of the level to be sampled multiplied by a preset parameter, and the preset parameter is the product of a preset harmonic order, a preset multiplication factor base, and an additional multiplication factor;
[0025] Among them, the preset harmonic order is the preset harmonic number of the preset square wave expanded by the Fourier series, and the preset square wave is a square wave that approximates the electrical stimulation signal emitted by the neurostimulator, and the additional multiple is an additional chopping frequency multiple set based on the sampling signal-to-noise ratio requirement.
[0026] In one embodiment of the present invention, it further includes:
[0027] An expected value of the level to be sampled is obtained, and an operational amplifier gain of the signal chopper amplifier is adjusted based on the expected value, so that the voltage of the amplified signal output by the signal chopper amplifier meets the input voltage range requirement of the ADC.
[0028] In one embodiment of the present invention, adjusting the operational amplifier gain of the signal chopper amplifier based on the expected value includes:
[0029] The adjustable resistor is used as an operational amplifier gain setting resistor, and the adjustable resistor is adjusted to a resistance value corresponding to the expected value.
[0030] In a second aspect, the present invention further provides a low-power adaptive chopping amplification sampling device for a neural stimulator, characterized in that it comprises:
[0031] A state acquisition module, used for acquiring a level to be sampled and a state of the level to be sampled, wherein the state of the level to be sampled is a stimulator potential state or a nerve potential state;
[0032] A chopping adjustment module, used for switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled;
[0033] an amplification sampling module, used for inputting the level to be sampled into the signal chopping amplifier after the chopping frequency is switched for amplification to obtain the amplified level, inputting the amplified level into the ADC for sampling, and obtaining the sampling result of the ADC;
[0034] The chopping frequency of the signal chopping amplifier includes a stimulation phase chopping frequency and an idle phase chopping frequency, the stimulation phase chopping frequency corresponds to the stimulator potential state, and the idle phase chopping frequency corresponds to the nerve potential state; the stimulation phase chopping frequency is greater than the idle phase chopping frequency. In a third aspect, the present invention also provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the low-power adaptive chopping amplification sampling method for a neural stimulator as described above.
[0035] In a fourth aspect, the present invention further provides a terminal, comprising a processor and a memory, wherein the memory is communicatively connected to the processor;
[0036] The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the low-power adaptive chopping amplification sampling method for a neural stimulator as described above.
[0037] As described above, the low-power adaptive chopping amplification sampling method and device, storage medium and terminal for a neural stimulator according to the present invention have the following beneficial effects:
[0038] 1. By obtaining the state of the level to be sampled and switching the chopping frequency of the signal chopper amplifier based on the state of the level to be sampled, the state of the level to be sampled reflects the working state of the neurostimulator, so the chopping frequency can be adaptively adjusted according to the actual situation, thereby ensuring that the chopping frequency is always at a low value that can meet the needs, reducing power consumption and achieving self-adaptation under low power consumption.
[0039] 2. Based on the pulse width of the neurostimulator, the chopping frequency of the signal chopper amplifier during the stimulation phase can be adjusted to a corresponding value so that it can be easily adapted to different sampling requirements.
[0040] 3. According to the expected value of the level to be sampled, the operational amplifier gain of the signal chopper amplifier is adjusted accordingly, so that the voltage of the amplified signal can adapt to the subsequent ADC sampling, ensuring that the level to be sampled will not exceed the input range of the ADC after amplification, avoiding distortion of the sampling signal and ensuring the accuracy of the sampling result. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic flow chart of a low-power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention is shown.
[0042] Figure 2 A schematic diagram showing a working state corresponding to a waveform emitted by a neurostimulator in a low-power adaptive chopping amplification sampling method for a neurostimulator according to an embodiment of the present invention is shown.
[0043] Figure 3 A flow chart showing one way of switching the chopping frequency of a signal chopping amplifier in a low-power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention is shown.
[0044] Figure 4 A schematic structural diagram of a low-power adaptive chopping amplification sampling device for a neural stimulator according to an embodiment of the present invention is shown.
[0045] Figure 5 A schematic diagram of the structure of a terminal according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0047] The principles and implementation methods of the low-power adaptive chopping amplification sampling method and device, storage medium and terminal for a neural stimulator of this embodiment will be explained in detail below, so that those skilled in the art can understand the low-power adaptive chopping amplification sampling method, device, storage medium and terminal for a neural stimulator of this embodiment without creative work.
[0048] In order to solve the above technical problems existing in the prior art, an embodiment of the present invention provides a low-power adaptive chopping amplification sampling method for a neural stimulator.
[0049] Figure 1 FIG. 1 is a flow chart showing a low power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention, with reference to FIG. Figure 1 As shown, the low-power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention mainly includes steps S100 to S300.
[0050] Step S100: obtaining a level to be sampled, and obtaining a state of the level to be sampled.
[0051] In the use scenario of a neurostimulator, the level to be sampled usually refers to the electrophysiological signal or other related bioelectric signal collected from the nerve tissue during the neurostimulation process. This level reflects the activity state of the nerve tissue, including the discharge pattern of neurons, the conduction of nerve signals, etc. The level to be sampled is a key monitoring parameter in the neurostimulator, which is used to adjust and optimize the output of the neurostimulator to ensure the best and safe effect of the neurostimulator.
[0052] In the prior art, since it is necessary to scan the sampling level and set the chopping frequency to be much higher than the frequency corresponding to the sampling level, the sampling level is simply acquired. However, in the present application, the state of the level to be sampled is further subdivided into the state of the stimulator potential and the state of the nerve potential. The output pulse of the nerve stimulator is output in a bipolar manner, that is, a positive pulse is output first and then a negative pulse is output on the two selected contacts, and there is an idle phase between each two outputs, forming a cycle of positive pulses, negative pulses, and idle phases. Figure 2 FIG. 1 is a schematic diagram showing a working state of a waveform emitted by a neural stimulator in a low-power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention, with reference to FIG. Figure 2 As shown, the stimulator potential state means that the level to be sampled is collected when the neural stimulator sends a positive pulse or a negative pulse (that is, the neural stimulator is in the electrical stimulation pulse stage), and the sampling level is the potential signal caused by the neural stimulator sending a pulse; the nerve potential state means that the level to be sampled is collected in the space stage (that is, the neural stimulator is in the idle stage), and the sampling level is the potential signal caused by the biological body's nerve potential. The signal difference between the level to be sampled in the stimulator potential state and the level to be sampled in the nerve potential state is large. The former has a higher amplitude (usually 0.5v-5v), and the latter has a lower amplitude (usually 100uv-1000uv), and the chopping frequency for processing the former is also correspondingly higher than the latter.
[0053] It should be noted that the frequency, pulse width, amplitude and other parameters of the electrical stimulation signal of the neurostimulator are stored in the neurostimulator according to clinical settings, and the main control module of the neurostimulator can obtain these parameters. In one embodiment, the working state of the neurostimulator is obtained through the main control module of the neurostimulator, and the state of the level to be sampled is obtained through the working state of the neurostimulator, so that the state of the level to be sampled can be known as the stimulator potential state or the nerve potential state.
[0054] Step S200: switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled.
[0055] In this embodiment, the chopping frequency of the signal chopping amplifier is adaptively adjusted in real time based on the state of the level to be sampled. The chopping frequency of the signal chopping amplifier includes a chopping frequency in the stimulation phase and a chopping frequency in the idle phase, and the chopping frequency in the stimulation phase is greater than the chopping frequency in the idle phase. The basis for switching the chopping frequency of the signal chopping amplifier based on the state of the level to be sampled is a preset corresponding relationship. The preset corresponding relationship includes: the chopping frequency in the stimulation phase corresponds to the stimulator potential state, and the chopping frequency in the idle phase corresponds to the nerve potential state.
[0056] In a specific implementation of step S200 , the chopping frequency of the signal chopping amplifier can be switched to a corresponding chopping frequency based on the state of the level to be sampled in two ways.
[0057] The first method: switching the chopping frequency of the signal chopping amplifier to the corresponding chopping frequency based on the state of the level to be sampled includes: acquiring the corresponding chopping frequency as the target frequency based on the state of the level to be sampled, specifically, if the state of the level to be sampled is the stimulator potential state, then the stimulation stage chopping frequency is used as the target frequency, and if the state of the level to be sampled is the nerve potential state, then the idle stage chopping frequency is used as the target frequency; according to the target frequency, configuring the timing parameters of the timer to the target parameters corresponding to the target frequency, and inputting the output signal of the timer configured with the target parameters into the chopping switch of the signal chopping amplifier through the IO port, so that the signal chopping amplifier uses the target frequency as the working frequency. rate, wherein the timer flips the state of the IO port according to the target parameter, specifically, the timing parameter is configured as the target parameter so that the timer performs timing according to the time interval corresponding to the target frequency, the function of the timer is to perform timing according to the time interval corresponding to the target frequency, and whenever the timing passes the time interval, the timer triggers an event, and the trigger event causes the IO port (i.e., IO drive) to flip its output state, and the timer configured with the target parameter is connected to the chopping switch of the signal chopping amplifier through the IO port, and the output signal of the timer configured with the target parameter is input to the chopping switch of the signal chopping amplifier through the IO port, and the flipping action causes the state of the signal chopping amplifier to change, thereby realizing the chopping action. The timer and the IO port together constitute the chopping frequency generator of this embodiment to control the frequency of the signal chopping amplifier, and the chopping frequency generator performs timing and flipping at a certain time interval, and the signal chopping amplifier performs chopping action according to the corresponding frequency, and by configuring the timing parameter of the timer in the chopping frequency generator as the target parameter (corresponding to the target frequency), the signal chopping amplifier can be made to work according to the target frequency. Further, the integration method of the timer includes: a built-in program configuration timer and an external timer. The built-in program configuration timer is to write and configure the setting program of the timer in the method of this embodiment by itself, which is written at the code level and then run in the hardware such as the central processing unit, while the external timer is to use an independent external timer hardware unit, and then integrate the external timer hardware unit into the overall technical solution of this embodiment through the communication interface. Therefore, by adjusting the timer time to control the flip frequency of the IO, the precise adjustment of the chopping frequency can be achieved, which can adapt to different frequency requirements and has flexibility in hardware design.
[0058] The second method is to adjust the chopping frequency by adjusting the supply voltage of the voltage-controlled crystal oscillator (VCO). Figure 3 A schematic diagram of a process for switching the chopping frequency of a signal chopping amplifier in a low power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention is shown, with reference to Figure 3 As shown, in this manner, switching the chopping frequency of the signal chopping amplifier to the corresponding chopping frequency based on the state of the level to be sampled includes the following steps:
[0059] Step S201: acquiring a corresponding chopping frequency as a target frequency based on the state of the level to be sampled.
[0060] Specifically, if the state of the level to be sampled is the stimulator potential state, the stimulation phase chopping frequency is used as the target frequency, and if the state of the level to be sampled is the nerve potential state, the idle phase chopping frequency is used as the target frequency.
[0061] Step S202: adjusting the setting value of the DAC voltage to a target voltage according to the target frequency, and supplying the target voltage to the voltage-controlled crystal oscillator to output a corresponding output frequency.
[0062] A voltage-controlled crystal oscillator (VCO) is a frequency-adjustable oscillator whose output frequency is controlled by a power supply voltage. As the power supply voltage changes, the output frequency of the voltage-controlled crystal oscillator will change accordingly. A DAC (digital-to-analog converter) is a device that can convert a digital signal into an analog voltage signal. In step S202, a DAC is used to control the power supply voltage of the VCO. Different power supply voltages will cause the voltage-controlled crystal oscillator (VCO) to produce different frequency outputs. The output voltage of the DAC is set through a communication interface (such as SPI, I2C, etc.) to change the set value of the DAC, thereby adjusting the power supply voltage of the voltage-controlled crystal oscillator (VCO) and changing the output frequency of the voltage-controlled crystal oscillator (VCO).
[0063] Step S203: inputting the output signal of the voltage-controlled crystal oscillator to the chopper switch of the signal chopper amplifier, so that the signal chopper amplifier uses the target frequency as the operating frequency.
[0064] Specifically, the setting value of the DAC voltage is adjusted according to the target frequency, and when the setting value of the DAC voltage is the target voltage, the voltage-controlled crystal oscillator outputs at the corresponding output frequency, and the output signal of the voltage-controlled crystal oscillator is input to the chopper switch of the signal chopper amplifier, and the signal chopper amplifier works at the target frequency. At this time, the DAC (digital-to-analog converter) and the voltage-controlled crystal oscillator (VCO) are jointly constituted. Therefore, by using the combination of the voltage-controlled crystal oscillator (VCO) and the DAC (digital-to-analog converter), the chopping frequency can be flexibly and accurately controlled, which is suitable for application scenarios that require higher frequency setting accuracy.
[0065] Optionally, the chopping frequency in the stimulation phase is any value in the target interval; the left end point of the target interval is the first preset multiple of the inverse of the pulse width of the level to be sampled; the right end point of the target interval is the second preset multiple of the inverse of the pulse width of the level to be sampled, and the first preset multiple is less than the second preset multiple. The first preset multiple and the second preset multiple jointly determine the value range of the chopping frequency in the stimulation phase, and the chopping frequency in the stimulation phase can be any value in the target interval. The first preset multiple corresponds to the minimum value of the chopping frequency in the stimulation phase, and the second preset multiple corresponds to the maximum value of the chopping frequency in the stimulation phase. The size of the first preset multiple needs to be set higher than the highest frequency of the electrical stimulation signal emitted by the neurostimulator, so that the signal chopping amplifier can avoid the ripple caused by the chopping frequency affecting the sampling. The size of the second preset multiple can be set according to the actual power consumption. The smaller the second preset multiple is, the smaller the total power consumption of the signal chopping amplifier for sampling. Preferably, the first preset multiple is 25 / 2, the second preset multiple is 50 / 2, or the first preset multiple is 35 / 2, and the second preset multiple is 70 / 2. The advantage of the above-mentioned preferred value setting is that the fundamental frequency of the electrical stimulation signal is half of the inverse of the pulse width, and the highest frequency signal of the electrical stimulation signal is usually the 5th or 7th harmonic of the fundamental frequency, that is, the frequency of the highest frequency signal is 5 / 2 or 7 / 2 times the inverse of the pulse width. On this basis, by further expanding it by 5 to 10 times, the above-mentioned requirement for the chopping frequency in the stimulation stage can be met. Therefore, it not only meets the requirement for the chopping frequency in the stimulation stage, but also controls the power consumption.
[0066] Optionally, the chopping frequency in the stimulation phase is half of the inverse of the pulse width of the level to be sampled multiplied by a preset parameter, and the preset parameter is the product of a preset harmonic order, a preset multiplication factor base, and an additional multiplication factor; wherein the preset harmonic order is the preset number of harmonics expanded by the Fourier series on the preset square wave, and the additional multiplication factor is an additional chopping frequency multiple set based on the sampling signal-to-noise ratio requirement. For details, refer to the following formula:
[0067] F=n*x*m / (2*T)
[0068] Wherein, F is the chopping frequency in the stimulation phase, T is the pulse width, x is the base multiplier, m is the additional multiplier, n is the preset harmonic order, and * is multiplication. The electrical stimulation signal emitted by the neurostimulator can be approximated as a square wave, and the preset square wave is a square wave approximating the electrical stimulation signal emitted by the neurostimulator. Specifically, since the pulse waveform output by the neurostimulator is a DC square wave, the waveform of the idle phase in the electrical stimulation signal emitted by the neurostimulator is stripped, and the DC square wave of the electrical stimulation pulse phase is integrated together to obtain the preset square wave. The square wave signal can be expanded through Fourier series, and the expansion result can be regarded as the superposition of sine waves of different frequencies. The original period of the square wave is T, and its fundamental frequency is 1 / T. After the square wave waveform is Fourier expanded, the square wave can be equivalent to a combination of sine waves with frequencies of 1, 3, 5, 7 times... of the fundamental frequency (that is, 1, 3, 5, 7... corresponding harmonics). These harmonics are gradually superimposed from small to large frequencies. When the superimposed harmonics increase, the signal is close to the original square wave (that is, the error is getting smaller and smaller). That is, as the number of superimposed harmonics increases, the more preset harmonics are set, the higher the reconstruction accuracy of the signal, and the closer the chopping frequency of the final stimulation stage is to the optimal solution (the minimum value that meets the sampling requirements), the appropriate preset harmonic order can be selected according to actual needs. For example, when n is 5, the corresponding reconstruction accuracy error is about 3%, when n is 7, the corresponding reconstruction accuracy error is about 2%, and when n is 11, the corresponding reconstruction accuracy error is about 1%. The preset multiplier base is the minimum "sampling rate / signal maximum frequency" multiple required to meet the sampling law. The additional multiplier m is related to the ripple generated by the signal chopper amplifier itself and the subsequent low-pass filter performance. The corresponding additional multiplier m is set according to the actual circuit test situation. The above method analyzes the square wave through Fourier series expansion, decomposes the square wave into the superposition of the fundamental frequency and its odd harmonics, and the various parameters used to obtain the chopping frequency in the stimulation stage take into account factors such as accuracy, sampling rate, and signal-to-noise ratio, ensuring that the chopping frequency can meet the requirements of signal processing, and can obtain the optimal chopping frequency that meets the sampling theorem and signal-to-noise ratio requirements.
[0069] Step S300: inputting the level to be sampled into the signal chopper amplifier after the chopping frequency is switched for amplification to obtain the amplified level, inputting the amplified level into the ADC for sampling, and obtaining the sampling result of the ADC.
[0070] After the chopping frequency of the signal chopping amplifier is switched in step S200, the signal chopping amplifier after the chopping frequency is switched uses the target frequency as the working parameter, and the level to be sampled is input into the signal chopping amplifier after the chopping frequency is switched for amplification, so that the amplified level can be obtained, and then the amplified level is input into the ADC for sampling, and the sampling result corresponding to the level to be sampled can be obtained. Among them, ADC is an analog-to-digital converter, and its function is to convert the amplified analog signal into a digital signal for subsequent digital processing, and the level to be sampled amplified by the signal chopping amplifier, that is, the amplified level is input into the ADC. Since the signal has been amplified, it can ensure that the ADC can sample the signal more accurately, thereby improving the accuracy of the final sampling result. It should be noted that in the prior art, the chopping frequency of the signal chopping amplifier is output based on a fixed frequency, while in the present application, since the chopping frequency of the signal chopping amplifier of the present application is switched accordingly based on the current working state of the neurostimulator, the chopping frequency can determine the working state of the neurostimulator according to the different states of the level to be sampled, and adaptively adjust according to the current working parameters, thereby ensuring that the chopping frequency is always at a low value that can meet the needs, reduces power consumption, and achieves adaptation under low power consumption.
[0071] Optionally, the low power adaptive chopping amplification sampling method for a neural stimulator according to an embodiment of the present invention further includes:
[0072] The expected value of the level to be sampled is obtained, and the operational amplifier gain of the signal chopper amplifier is adjusted based on the expected value, so that the voltage of the amplified signal output by the signal chopper amplifier meets the input voltage range requirement of the ADC. Specifically, the expected value of the level to be sampled is obtained according to the output current of the neurostimulator and the human body impedance. For example, if the output current is set to 1mA and the human body impedance is about 500 ohms, the expected value of the level to be sampled is 0.5V; the operational amplifier gain of the signal chopper amplifier is adjusted based on the expected value, so that the voltage range of the amplified signal meets the input voltage range requirement of the ADC, wherein the operational amplifier gain is the amplification factor of the signal chopper amplifier to the level to be sampled. This is because the ADC has a fixed input voltage range. If the signal is too small, the ADC may not be able to sample accurately (that is, the change in the signal is not obvious within the quantization accuracy range of the ADC), resulting in insufficient signal accuracy. If the signal is too large, it may cause signal truncation or distortion. Therefore, the signal input to the ADC must be within this range to be correctly converted into a digital signal. The purpose of op amp gain adjustment is to allow the signal chopper amplifier to properly amplify the sampling level so that the voltage of the amplified signal can adapt to the subsequent ADC sampling. This approach can ensure that the sampling level will not exceed the input range of the ADC after amplification, avoid distortion of the sampling signal, and ensure the accuracy of the sampling results.
[0073] Optionally, adjusting the operational amplifier gain of the signal chopper amplifier based on the expected value includes: using an adjustable resistor as an operational amplifier gain setting resistor, and adjusting the adjustable resistor to a resistance value corresponding to the expected value. When a different operational amplifier gain is required, the resistance value of the operational amplifier gain setting resistor is adjusted to achieve dynamic adjustment of the operational amplifier gain. Preferably, the adjustable resistor is a resistor array, which is composed of a plurality of precisely matched resistors, and can achieve more accurate gain adjustment by selecting different resistor combinations, thereby improving performance and stability.
[0074] The protection scope of the low-power adaptive chopping amplification sampling method for a neural stimulator in an embodiment of the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.
[0075] The low-power adaptive chopping amplification sampling method for a neurostimulator in an embodiment of the present invention obtains the state of the level to be sampled, and switches the chopping frequency of the signal chopping amplifier based on the state of the level to be sampled. The state of the level to be sampled reflects the working state of the neurostimulator, so the chopping frequency can be adaptively adjusted according to the actual situation, thereby ensuring that the chopping frequency is always at a value that can meet the needs and is relatively low, reducing power consumption and achieving adaptation under low power consumption. At the same time, based on the pulse width of the neurostimulator, the chopping frequency of the signal chopping amplifier in the stimulation phase is adjusted to a corresponding value so that it can be easily adapted to different sampling requirements. In addition, the operational amplifier gain of the signal chopping amplifier is adjusted accordingly according to the expected value of the level to be sampled, so that the voltage of the amplified signal can adapt to the subsequent ADC sampling, ensuring that the level to be sampled does not exceed the input range of the ADC after amplification, avoiding distortion of the sampling signal, and ensuring the accuracy of the sampling result.
[0076] In order to solve the above technical problems existing in the prior art, an embodiment of the present invention further provides a low-power adaptive chopping amplification sampling device for a neural stimulator.
[0077] Figure 4 FIG. 1 shows a schematic diagram of a low power adaptive chopping amplification sampling device for a neural stimulator according to an embodiment of the present invention, with reference to FIG. Figure 4 As shown, the low-power adaptive chopping amplification sampling device for a neural stimulator according to an embodiment of the present invention includes a state acquisition module, a chopping adjustment module and an amplification sampling module.
[0078] A state acquisition module is used to obtain the level to be sampled and the state of the level to be sampled, where the state of the level to be sampled is the stimulator potential state or the nerve potential state;
[0079] A chopping adjustment module, used for switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled;
[0080] The amplification sampling module is used to input the level to be sampled into the signal chopper amplifier after the chopping frequency is switched for amplification to obtain the amplified level, and input the amplified level into the ADC for sampling to obtain the sampling result of the ADC;
[0081] The chopping frequency of the signal chopping amplifier includes a chopping frequency in the stimulation phase and a chopping frequency in the idle phase. The chopping frequency in the stimulation phase corresponds to the potential state of the stimulator, and the chopping frequency in the idle phase corresponds to the potential state of the nerve. The chopping frequency in the stimulation phase is greater than the chopping frequency in the idle phase.
[0082] The encoder of the low-power adaptive chopping amplification sampling device for a neurostimulator in an embodiment of the present invention obtains the state of the level to be sampled, and switches the chopping frequency of the signal chopping amplifier based on the state of the level to be sampled. The state of the level to be sampled reflects the working state of the neurostimulator, so the chopping frequency can be adaptively adjusted according to the actual situation, thereby ensuring that the chopping frequency is always at a value that can meet the needs and is relatively low, reducing power consumption and achieving adaptation under low power consumption. At the same time, based on the pulse width of the neurostimulator, the chopping frequency of the signal chopping amplifier in the stimulation phase is adjusted to a corresponding value so that it can be easily adapted to different sampling requirements. In addition, the operational amplifier gain of the signal chopping amplifier is adjusted accordingly according to the expected value of the level to be sampled, so that the voltage of the amplified signal can adapt to the subsequent ADC sampling, ensuring that the level to be sampled does not exceed the input range of the ADC after amplification, avoiding distortion of the sampling signal, and ensuring the accuracy of the sampling result.
[0083] In order to solve the above-mentioned technical problems existing in the prior art, an embodiment of the present invention further provides a storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, all steps of the low-power adaptive chopping amplification sampling method for a neural stimulator in the embodiment are implemented.
[0084] The specific steps of the low-power adaptive chopping amplification sampling method for a neural stimulator and the beneficial effects obtained by applying the readable storage medium provided by the embodiment of the present invention are the same as those in the above embodiment and will not be described in detail here.
[0085] A person of ordinary skill in the art can understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing a processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0086] In order to solve the above technical problems existing in the prior art, an embodiment of the present invention further provides a terminal. Figure 5 A schematic diagram of the structure of the terminal according to an embodiment of the present invention is shown, referring to Figure 5 As shown, the terminal of the embodiment of the present invention includes a processor and a memory, and the memory is communicatively connected to the processor; the memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory, so that the terminal executes all steps of the low-power adaptive chopping amplification sampling method for a neural stimulator in the above-mentioned embodiment.
[0087] The specific steps of the low-power adaptive chopping amplification sampling method for a neural stimulator and the beneficial effects obtained by applying the terminal provided by the embodiment of the present invention are the same as those in the above embodiment and will not be described in detail here.
[0088] It should be noted that the memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage. Similarly, the processor may also be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0089] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A low power adaptive chopping amplification sampling method for a neural stimulator, comprising: Acquire a level to be sampled, and acquire a state of the level to be sampled, wherein the state of the level to be sampled is a stimulator potential state or a nerve potential state; Switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled; Inputting the level to be sampled into the signal chopping amplifier after the chopping frequency is switched for amplification to obtain the amplified level, inputting the amplified level into the ADC for sampling, and obtaining the sampling result of the ADC; Wherein, the chopping frequency of the signal chopping amplifier includes a chopping frequency in a stimulation phase and a chopping frequency in an idle phase, the chopping frequency in the stimulation phase corresponds to the potential state of the stimulator, and the chopping frequency in the idle phase corresponds to the potential state of the nerve; The chopping frequency during the stimulation phase is greater than the chopping frequency during the idle phase.
2. The method according to claim 1, characterized in that Switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled includes: Based on the state of the level to be sampled, a corresponding chopping frequency is acquired as a target frequency; The timing parameters of the timer are configured as target parameters corresponding to the target frequency, and the output signal of the timer configured with the target parameters is input into the chopper switch of the signal chopper amplifier through the IO port, so that the signal chopper amplifier uses the target frequency as the operating frequency; The timer flips the state of the IO port according to the target parameter.
3. The method according to claim 1, characterized in that Switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled includes: Based on the state of the level to be sampled, a corresponding chopping frequency is acquired as a target frequency; Adjusting the setting value of the DAC voltage to a target voltage according to the target frequency, and supplying the target voltage to a voltage-controlled crystal oscillator to output a corresponding output frequency; The output signal of the voltage-controlled crystal oscillator is input to the chopper switch of the signal chopper amplifier, so that the signal chopper amplifier uses the target frequency as the operating frequency.
4. The method according to claim 1, characterized in that: The chopping frequency during the stimulation phase is any value in the target interval; The left end point of the target interval is a first preset multiple of the inverse of the pulse width of the level to be sampled; The right end point of the target interval is a second preset multiple of the inverse of the pulse width of the level to be sampled; The first preset multiple is smaller than the second preset multiple.
5. The method according to claim 1, characterized in that The chopping frequency in the stimulation stage is half of the inverse of the pulse width of the level to be sampled multiplied by a preset parameter, and the preset parameter is the product of a preset harmonic order, a preset multiplication factor base, and an additional multiplication factor; Among them, the preset harmonic order is the preset harmonic number of the preset square wave expanded by the Fourier series, and the preset square wave is a square wave that approximates the electrical stimulation signal emitted by the neurostimulator, and the additional multiple is an additional chopping frequency multiple set based on the sampling signal-to-noise ratio requirement.
6. The method according to claim 1, characterized in that Also includes: An expected value of the level to be sampled is obtained, and an operational amplifier gain of the signal chopper amplifier is adjusted based on the expected value, so that the voltage of the amplified signal output by the signal chopper amplifier meets the input voltage range requirement of the ADC.
7. The method according to claim 6, characterized in that Adjusting the operational amplifier gain of the signal chopper amplifier based on the expected value includes: The adjustable resistor is used as an operational amplifier gain setting resistor, and the adjustable resistor is adjusted to a resistance value corresponding to the expected value.
8. A low power adaptive chopper amplifier sampling device for a neural stimulator, characterized in that: include: A state acquisition module, used for acquiring a level to be sampled and a state of the level to be sampled, wherein the state of the level to be sampled is a stimulator potential state or a nerve potential state; A chopping adjustment module, used for switching the chopping frequency of the signal chopping amplifier to a corresponding chopping frequency based on the state of the level to be sampled; an amplification sampling module, used for inputting the level to be sampled into the signal chopping amplifier after the chopping frequency is switched for amplification to obtain the amplified level, inputting the amplified level into the ADC for sampling, and obtaining the sampling result of the ADC; Wherein, the chopping frequency of the signal chopping amplifier includes a chopping frequency in a stimulation phase and a chopping frequency in an idle phase, the chopping frequency in the stimulation phase corresponds to the potential state of the stimulator, and the chopping frequency in the idle phase corresponds to the potential state of the nerve; The chopping frequency during the stimulation phase is greater than the chopping frequency during the idle phase.
9. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the low-power adaptive chopping amplification sampling method for a neural stimulator according to any one of claims 1 to 7 is implemented.
10. A terminal, characterized in that: It includes a processor and a memory, and the memory is communicatively connected to the processor; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the low-power adaptive chopping amplification sampling method for a neural stimulator as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Frequency-modulated brain-computer interface chip input impedance enhancement method and system
CN115005842A
Radio frequency intermittent operation chopping power saving system, method and chip
CN115396996A