A current pulse amplitude calibration method and automatic calibration acquisition circuit used in DBS
By configuring the ADC and automatic calibration acquisition circuit in DBS and adjusting the DAC input value, the problem that the actual output current pulse amplitude of the DBS does not meet the theoretical value, and the output accuracy is improved, so that it approaches the theoretical value within the tolerance range.
Patent Information
- Application Number
- CN202010207209.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-23
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-03-23
AI Technical Summary
The prior art cannot calibrate the actual output current pulse amplitude of the deep brain electrical stimulator (DBS), resulting in the output not meeting the theoretical value, low accuracy, and the inability to approach the theoretical output current pulse amplitude.
Provide a current pulse amplitude calibration method. By configuring ADC and automatic calibration acquisition circuit, adjust the input value of DAC according to the actual output current pulse amplitude until the actual output current pulse amplitude is equal to the theoretical output current pulse amplitude or in capacity. When the difference is approaching, the DAC input value is adjusted by dichotomous method increment or decrease.
The accuracy of the DBS output current pulse amplitude is improved, making it more in line with the output requirements within the tolerance range and achieving higher output accuracy.
Smart Images

Figure CN111323637B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of implantable deep brain electrical stimulators, and in particular to a current pulse amplitude calibration method and an automatic calibration acquisition circuit used in DBS. Background Art
[0002] As an implantable neurostimulator, DBS emits weak electrical pulses through a pulse generator implanted in the body to stimulate the relevant nerve nuclei in the brain that control movement, inhibit abnormal brain nerve signals that cause disease symptoms, thereby eliminating disease symptoms and enabling patients to regain the ability to move freely and take care of themselves.
[0003] The DAC input value of the deep brain stimulator DBS circuit corresponds to the output current pulse amplitude one by one, but in actual use, the current pulse amplitude actually output by the DBS is often inconsistent with the theoretical output value.
[0004] In the prior art, the actual output current pulse amplitude of the DBS is not calibrated, so the actual output current pulse amplitude is neither close to the theoretical output current pulse amplitude nor equal to the theoretical output current pulse amplitude, which does not meet the output requirements of the DBS and has low output accuracy.
[0005] Therefore, how to provide a technical solution that can calibrate the current pulse amplitude of the actual DBS output so that the actual output current pulse amplitude is equal to the theoretical output current pulse amplitude or approaches the theoretical output current pulse amplitude within the tolerance range, so that the actual output current pulse amplitude meets the output requirements of the DBS and improves the output accuracy has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0006] The present invention provides a current pulse amplitude calibration method and an automatic calibration acquisition circuit applied in DBS, so as to solve the problem in the prior art that the current pulse amplitude actually output by DBS cannot be calibrated, so that the actual output current pulse amplitude is neither close to the theoretical output current pulse amplitude nor equal to the theoretical output current pulse amplitude, which does not meet the output requirements of DBS and has low output accuracy.
[0007] On the one hand, the present invention provides a current pulse amplitude calibration method applied to DBS, wherein the current pulse amplitude calibration method continuously adjusts the input value of the DAC according to the actual output current pulse amplitude collected, until the actual output current pulse amplitude is equal to the theoretical output current pulse amplitude or approaches the theoretical output current pulse amplitude within a tolerance range. The current pulse amplitude calibration method specifically comprises the following steps:
[0008] Configure the required ADC to indirectly load R at two selected poles of the DBS circuit, where the two poles serve as the positive and negative poles of the pulse output respectively;
[0009] According to the value of the pulse shaping flag Flag_end, it is judged whether the pulse shaping has started; if the pulse shaping flag Flag_end=1, the pulse shaping stage has been reached and the calibration is completed; otherwise, the pulse shaping stage has not been reached;
[0010] If the pulse deformation stage has not been reached, the actual output current pulse amplitude VCP_MV corresponding to the collected current i is i Compared with the theoretical output current pulse amplitude VCP_MV_th i Compare; if VCP_MV i =VCP_MV_th i ±value, it means the calibration is successful, otherwise, the DAC input value DAC_Data is continuously adjusted according to the comparison result. i , where value is the tolerance for successful calibration;
[0011] The calibration is completed and a set of DAC input values DAC_Data is obtained. i , where the current i ranges from 0.1mA to 20mA.
[0012] By adopting the above technical solution, the actual output current pulse amplitude can be made to better meet the output requirements of DBS, and the output accuracy is relatively high within the tolerance range of successful calibration.
[0013] Optionally, the DAC input value DAC_Data i Each increase and decrease in the value data is increased or decreased according to the binary method.
[0014] By adopting the above technical solution, the ideal result can be approached more quickly.
[0015] Optionally, the value of the load R is 500 ohms.
[0016] Optionally, the value of the tolerance value for successful calibration is related to the value of the current i. When i≤1mA, value=VCP_MV_th i / 20; when i>1mA, value=10, where VCP_MV_th i is the theoretical output current pulse amplitude.
[0017] On the other hand, the present invention provides an automatic calibration acquisition circuit used in DBS, the automatic calibration acquisition circuit mainly includes a power input terminal VCC_IM, an operational amplifier, a single-pole double-throw switch, a current pulse output selection terminal SW_IM, a current pulse output terminal OUT_R+ and a current pulse output terminal OUT_L+ and a signal output terminal ADC_IM;
[0018] Among them, the power input terminal VCC_IM is connected to the V+ terminal of the operational amplifier, the OUT terminal of the operational amplifier is connected to the signal output terminal ADC_IM, the IN- terminal of the operational amplifier is connected to the signal output terminal ADC_IM through a resistor R1, the IN+ terminal of the operational amplifier is grounded through a resistor R4, and the V- terminal of the operational amplifier is grounded; the IN3 terminal of the single-pole double-throw switch is connected to the current pulse output selection terminal SW_IM, the D3 terminal of the single-pole double-throw switch is connected to the IN- terminal of the operational amplifier through a resistor R5, the S3A terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_R+, and the S3B terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_L+, and the current pulse output terminal OUT_R+ and the current pulse output terminal OUT_L+ can both be connected to the current pulse signal to be collected.
[0019] Optionally, when the current pulse output selection terminal SW_IM is at a high level, the current pulse output terminal OUT_R+ is selected to connect to the current pulse signal to be collected; when the current pulse output selection terminal SW_IM is at a low level, the current pulse output terminal OUT_L+ is selected to connect to the current pulse signal to be collected.
[0020] Optionally, the operational amplifier adopts model AD8541.
[0021] By adopting the above technical solution, the input signal can be amplified, and the amplification factor is 1 / 2.
[0022] Optionally, the single-pole double-throw switch adopts model ADG1634.
[0023] By adopting the above technical solution, the current pulse output terminal OUT_R+ or the current pulse output terminal OUT_L+ can be selected as the input signal of the operational amplifier through the IN3 terminal of ADG1634 connected to the current pulse output selection terminal SW_IM; wherein, the current pulse output terminal OUT_R+ and the current pulse output terminal OUT_L+ are both obtained by a series of processing of the DAC output signal. In order to obtain a pulse output with a higher amplitude during the processing, it is necessary to undergo amplification processing including double processing and triple processing. Therefore, there are double flow points and triple flow points.
[0024] The present invention provides a current pulse amplitude calibration method applied to DBS, which has the advantage of being able to calibrate the current pulse amplitude actually output by the DBS, so that the actual output current pulse amplitude approaches the theoretical output current pulse amplitude within a tolerance range or is equal to the theoretical output current pulse amplitude, thereby making the actual output current pulse amplitude meet the output requirements of the DBS and improving the output accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solution of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 The present invention is a principle flow chart of a method for calibrating the current pulse amplitude applied to DBS;
[0027] Figure 2 This is a main program flow chart of a current pulse amplitude calibration method applied to DBS of the present invention;
[0028] Figure 3 A specific flow chart of unsuccessful calibration situation 1 of a current pulse amplitude calibration method applied to DBS according to the present invention;
[0029] Figure 4 A specific flow chart of unsuccessful calibration situation 2 of a current pulse amplitude calibration method applied to DBS according to the present invention;
[0030] Figure 5 A circuit diagram of an automatic calibration acquisition circuit used in DBS according to the present invention;
[0031] Figure 6 It is a schematic diagram of the generation process of two current pulse outputs OUT_R+ and OUT_L+ in the present invention. DETAILED DESCRIPTION
[0032] See also Figures 1 to 6 ,in, Figure 1 The following is a principle flow chart of a method for calibrating the current pulse amplitude applied to DBS according to the present invention. Figure 2 This is a main program flow chart of a current pulse amplitude calibration method applied to DBS in the present invention. Figure 3 This is a specific flow chart of the unsuccessful calibration situation 1 of a current pulse amplitude calibration method applied to DBS of the present invention, Figure 4 This is a specific flow chart of the unsuccessful calibration situation 2 of a current pulse amplitude calibration method applied to DBS of the present invention. Figure 5 The circuit diagram of the automatic calibration acquisition circuit used in DBS of the present invention is shown in FIG. Figure 6 It is a schematic diagram of the generation process of two current pulse outputs OUT_R+ and OUT_L+ in the present invention.
[0033] like Figure 1 As shown, the present invention provides a current pulse amplitude calibration method applied to DBS, and the current pulse amplitude calibration method continuously adjusts the input value of DAC according to the actual output current pulse amplitude collected, until the actual output current pulse amplitude is equal to the theoretical output current pulse amplitude or approaches the theoretical output current pulse amplitude within the tolerance range. The current pulse amplitude calibration method specifically includes the following steps:
[0034] Configure the required ADC to indirectly load R at two selected poles of the DBS circuit, where the two poles serve as the positive and negative poles of the pulse output respectively;
[0035] According to the value of the pulse shaping flag Flag_end, it is judged whether the pulse shaping has started; if the pulse shaping flag Flag_end=1, the pulse shaping stage has been reached and the calibration is completed; otherwise, the pulse shaping stage has not been reached;
[0036] If the pulse deformation stage has not been reached, the actual output current pulse amplitude VCP_MV corresponding to the collected current i is i Compared with the theoretical output current pulse amplitude VCP_MV_th i Compare; if VCP_MV i =VCP_MV_th i ±value, it means the calibration is successful, otherwise, the DAC input value DAC_Data is continuously adjusted according to the comparison result. i , where value is the tolerance for successful calibration;
[0037] The calibration is completed and a set of DAC input values DAC_Data is obtained. i , where the current i ranges from 0.1mA to 20mA.
[0038] It should be noted that in this embodiment, after configuring the required ADC, it is also necessary to turn on the automatic calibration acquisition circuit to collect the actual output current pulse amplitude VCP_MV corresponding to the current i i .
[0039] By adopting the above technical solution, the actual output current pulse amplitude can be made to better meet the output requirements of DBS, and the output accuracy is higher within the tolerance range of successful calibration.
[0040] On the basis of the above implementation, further, the DAC input value DAC_Data iEach increase and decrease in the value data is increased or decreased according to the binary method.
[0041] By adopting the above technical solution, the ideal result can be approached more quickly.
[0042] On the basis of the above implementation, further, the value of the load R is 500 ohms.
[0043] On the basis of the above implementation, further, the value of the tolerance value of the successful calibration is related to the value of the current i. When i≤1mA, value=VCP_MV_th i / 20; when i>1mA, value=10, where VCP_MV_th i is the theoretical output current pulse amplitude.
[0044] See also Figures 2 to 4 In this embodiment, the main procedure of the current pulse amplitude calibration method is as follows:
[0045] S1, let data=20, Num_loop=0, VCP_MV_th i =R*i, Flag_end = 0, calibration starts from current i = 0.1mA, where data is the DAC input value DAC_Data i Each increase and decrease value, Num_loop is the number of loops in step S2, VCP_MV_th i is the theoretical output current pulse amplitude corresponding to current i;
[0046] S2, Flag_end is the pulse deformation flag. If Flag_end = 1, it means that the pulse deformation stage has been reached. The current i increases from 0.1mA to 20mA. DAC_Data i =DAC_Data i-1 , skip steps S3 and S4 and go directly to step S5, otherwise continue to step S3; where DAC_Data i Represents the input value of the DAC corresponding to the current i;
[0047] S3, automatically calibrate the actual output current pulse amplitude VCP_MV corresponding to the current i collected by the acquisition circuit i Compared with the theoretical output current pulse amplitude VCP_MV_th i Compare, and Num_loop = Num_loop + 1;
[0048] S3.1, when VCP_MV i =VCP_MV_th i±value, indicating that the calibration is successful, DAC_Data i+1 =DAC_Data i , directly skip step S3, where value is the tolerance for successful calibration. When i≤1mA, value=VCP_MV_th i / 20; when i>1mA, value=10;
[0049] S3.2, when VCP_MV i <(VCP_MV_th i -value), judge sta_last, and judge the last state by judging the value of sta_last, where sta_last represents the state of comparing the actually collected voltage value with the theoretical voltage value when calibrating the current pulse amplitude under a certain current. After each comparison, different steps are executed according to the last state, and the last state refers to which step was entered when the calibration was not successful last time during the calibration process of the same current point;
[0050] See also Figure 3 , S3.2.1, when Num_loop=1, DAC_Data i =DAC_Data i +data, sta_last=1, return to step S2;
[0051] S3.2.2, when sta_last = 1 or sta_last = 2, increase DAC_Data i ,DAC_Data i =DAC_Data i +data, sta_last=2, return to step S2;
[0052] S3.2.3, when sta_last=8 or sta_last=9 or sta_last=10, data=data / 2, DAC_Data i =DAC_Data i +data, sta_last=3, return to step S2;
[0053] S3.2.4, when sta_last=3 or sta_last=6, data=data / 2, DAC_Data i =DAC_Data i +data, sta_last=6, return to step S2;
[0054] S3.2.5, when sta_last = 4 or sta_last = 5 or sta_last = 7, DAC_Data i =DAC_Data i +data, sta_last=7, return to step S2;
[0055] S3.2.6, if the double flow point is reached, DAC_Data i =DAC_Data i-1 -data 2 , sta_last = 4, return to step S2, where data 2 DAC_Data at the double current point i The starting value of DAC_Data i-1 The difference between
[0056] S3.2.7, if the triple flow point is reached, DAC_Data i =DAC_Data i-1 -data 3 , sta_last = 5, return to step S2, where data 3 DAC_Data at triple current point i The starting value of DAC_Data i-1 The difference between
[0057] S3.2.8, if Num_loop>5 and sta_last=2, Flag_end=1, it means the pulse enters the deformation stage;
[0058] In step S3.2, sta_last=1 indicates that after the first comparison, the collected voltage value is smaller than the theoretical value, and the input value of the DAC should be increased at this time.
[0059] sta_last=2 means that the voltage value collected after the last comparison is less than the theoretical value, and the voltage value collected after this comparison is also less than the theoretical value;
[0060] sta_last=3 means that when the voltage value collected was greater than the theoretical value in the last comparison, the DAC input was reduced. However, when the voltage value collected in this comparison is less than the theoretical value, that is, the value was reduced too much in the last comparison, and data / 2 should be increased at this time.
[0061] sta_last=4 means that when the current i is in the range of [5,10mA], the value collected after comparison is smaller than the theoretical value, that is, it reaches the double current point. At this time, the DAC input value needs to be subtracted by a larger value.
[0062] sta_last=5 means that when the current i>10mA, the value collected after comparison is less than the theoretical value, that is, it reaches the triple current point.
[0063] sta_last=6 means that the value added was insufficient last time when sta_last=3, and the value collected this time is still less than the theoretical value.
[0064] sta_last=7 means that the value at the double flow point and triple flow point is reduced too much, so that the collected value is smaller than the theoretical value.
[0065] S3.3, when VCP_MV i >(VCP_MV_th i +value), judge sta_last;
[0066] See also Figure 4 , S3.3.1, when sta_last = 4 or sta_last = 5 or sta_last = 10, DAC_Data i =DAC_Data i -data, sta_last=10, return to step S2;
[0067] S3.3.2, when Num_loop = 1, DAC_Data i =DAC_Data i -data, sta_last=8, return to step S2, otherwise, data=data / 2, DAC_Data i =DAC_Data i -data, sta_last=9, return to step S2;
[0068] In step S3.3, sta_last=8 means that after the first comparison, the collected voltage value is greater than the theoretical value.
[0069] sta_last=9 means that when it is not the first comparison, the collected voltage value is greater than the theoretical value.
[0070] sta_last=10 means that the value is reduced at the double flow point and triple flow point, so that the collected value is greater than the theoretical value;
[0071] S4, the current i increases by one unit, and step S2 is repeated to calibrate again until i = 20mA;
[0072] S5, disconnect the automatic calibration acquisition circuit, the calibration is completed, and a set of DAC input values DAC_Data is obtained i , where i = 0.1mA, 0.2mA, ..., 20mA.
[0073] It should be noted that, in this embodiment, data 2 and data 3 The value of needs to be determined in actual experiments.
[0074] See also Figure 5 , the present invention also provides an automatic calibration acquisition circuit used in DBS, the automatic calibration acquisition circuit mainly includes a power input terminal VCC_IM, an operational amplifier, a single-pole double-throw switch, a current pulse output selection terminal SW_IM, a current pulse output terminal OUT_R+ and a current pulse output terminal OUT_L+ and a signal output terminal ADC_IM;
[0075] Among them, the power input terminal VCC_IM is connected to the V+ terminal of the operational amplifier, the OUT terminal of the operational amplifier is connected to the signal output terminal ADC_IM, the IN- terminal of the operational amplifier is connected to the signal output terminal ADC_IM through a resistor R1, the IN+ terminal of the operational amplifier is grounded through a resistor R4, and the V- terminal of the operational amplifier is grounded; the IN3 terminal of the single-pole double-throw switch is connected to the current pulse output selection terminal SW_IM, the D3 terminal of the single-pole double-throw switch is connected to the IN- terminal of the operational amplifier through a resistor R5, the S3A terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_R+, and the S3B terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_L+, and the current pulse output terminal OUT_R+ and the current pulse output terminal OUT_L+ can both be connected to the current pulse signal to be collected.
[0076] On the basis of the above implementation, further, when the current pulse output selection terminal SW_IM is at a high level, the current pulse output terminal OUT_R+ is selected to connect to the current pulse signal to be collected; when the current pulse output selection terminal SW_IM is at a low level, the current pulse output terminal OUT_L+ is selected to connect to the current pulse signal to be collected.
[0077] On the basis of the above implementation, further, the operational amplifier adopts a model of AD8541.
[0078] By adopting the above technical solution, the input signal can be amplified, and the amplification factor is 1 / 2.
[0079] On the basis of the above implementation, further, the single-pole double-throw switch adopts a model of ADG1634.
[0080] By adopting the above technical solution, the current pulse output terminal OUT_R+ or the current pulse output terminal OUT_L+ can be selected as the input signal of the operational amplifier through the IN3 terminal of ADG1634 connected to the current pulse output selection terminal SW_IM.
[0081] See also Figure 6 In this embodiment, the current pulse output terminal OUT_R+ and the current pulse output terminal OUT_L+ are obtained by a series of processing of the DAC output signal. In the processing process, in order to obtain a pulse output with a higher amplitude, it is necessary to undergo an amplification process including a double processing and a triple processing. Therefore, there are double flow points and triple flow points, and the processing processes of OUT_R+ and OUT_L+ are the same. In the method embodiment of the present invention, one of the paths is taken as an example to specifically illustrate the implementation process of the method of the present invention.
[0082] The embodiments provided by the present invention are only the best embodiments and are not intended to limit the protection scope of the present invention. For those skilled in the art, any other implementation methods expanded from the scheme of the present invention without creative work shall fall within the protection scope of the present invention.
Claims
1. A current pulse amplitude calibration method used in DBS, characterized in that: The current pulse amplitude calibration method continuously adjusts the input value of the DAC according to the actual output current pulse amplitude collected, until the actual output current pulse amplitude is equal to the theoretical output current pulse amplitude or approaches the theoretical output current pulse amplitude within a tolerance range; The current pulse amplitude calibration method specifically comprises the following steps: Configure the required ADC to indirectly load R at two selected poles of the DBS circuit, where the two poles serve as the positive and negative poles of the pulse output respectively; According to the value of the pulse shaping flag Flag_end, it is judged whether the pulse shaping has started; if the pulse shaping flag Flag_end=1, the pulse shaping stage has been reached and the calibration is completed; otherwise, the pulse shaping stage has not been reached; If the pulse deformation stage has not been reached, the actual output current pulse amplitude corresponding to the collected current i is The theoretical output current pulse amplitude For comparison; if , it means the calibration is successful, otherwise, the DAC input value is continuously adjusted according to the comparison result. , where value is the tolerance for successful calibration; the input value of the DAC Each increase and decrease in the value data is increased or decreased according to the binary method; The calibration is completed and a set of DAC input values are obtained. , where the current i ranges from 0.1mA to 20mA.
2. The current pulse amplitude calibration method used in DBS according to claim 1, characterized in that: The value of the load R is 500 ohms.
3. The current pulse amplitude calibration method used in DBS according to claim 1, characterized in that: The value of the tolerance value for successful calibration is related to the value of the current i. When i≤1mA, ; When i>1mA, value=10, where, is the theoretical output current pulse amplitude.
4. An automatic calibration acquisition circuit used in DBS, applied to a current pulse amplitude calibration method used in DBS as claimed in any one of claims 1 to 3, characterized in that: The automatic calibration acquisition circuit mainly includes a power input terminal VCC_IM, an operational amplifier, a single-pole double-throw switch, a current pulse output selection terminal SW_IM, a current pulse output terminal OUT_R+ and a current pulse output terminal OUT_L+, and a signal output terminal ADC_IM; Among them, the power input terminal VCC_IM is connected to the V+ terminal of the operational amplifier, the OUT terminal of the operational amplifier is connected to the signal output terminal ADC_IM, the IN- terminal of the operational amplifier is connected to the signal output terminal ADC_IM through a resistor R1, the IN+ terminal of the operational amplifier is grounded through a resistor R4, and the V- terminal of the operational amplifier is grounded; the IN3 terminal of the single-pole double-throw switch is connected to the current pulse output selection terminal SW_IM, the D3 terminal of the single-pole double-throw switch is connected to the IN- terminal of the operational amplifier through a resistor R5, the S3A terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_R+, and the S3B terminal of the single-pole double-throw switch is connected to the current pulse output terminal OUT_L+, and the current pulse output terminal OUT_R+ and the current pulse output terminal OUT_L+ can both be connected to the current pulse signal to be collected.
5. The automatic calibration acquisition circuit used in DBS according to claim 4, characterized in that: When the current pulse output selection terminal SW_IM is at a high level, the current pulse output terminal OUT_R+ is selected to connect to the current pulse signal to be collected; when the current pulse output selection terminal SW_IM is at a low level, the current pulse output terminal OUT_L+ is selected to connect to the current pulse signal to be collected.
6. The automatic calibration acquisition circuit used in DBS according to claim 4, characterized in that: The operational amplifier used is AD8541.
7. The automatic calibration acquisition circuit used in DBS according to claim 4, characterized in that: The model of the single-pole double-throw switch is ADG1634.
Citation Information
Patent Citations
Implantable nerve stimulation system
CN104707244A
Portable transcutaneous electrical nerve stimulation system and method thereof
CN106215321A
Programmable functional electrical stimulator with real-time feedback function
CN106345054A
Nerve and muscle stimulator
CN109771818A
4-20 mA calibrator
CN110320487A
