Prediction method and device for residual electric quantity of stimulator battery and computer equipment

By using measured pulse parameters and mapping functions to calculate the working current in the implanted neural stimulator, the problem of low power utilization caused by hardware circuit measurement of battery voltage is solved, and the utilization rate and prediction accuracy of battery power are improved.

CN119199597APending Publication Date: 2024-12-27MICROPORT UROCARE(SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310755163.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In existing implantable neural stimulators, the method of measuring battery voltage through hardware circuits to predict the remaining battery power of the battery leads to a low battery utilization rate, increasing the power consumption of the device.

Method used

By obtaining the measured pulse frequency, pulse width and pulse amplitude of each stimulus period of the stimulator, combining the mapping function, the working current is determined, and the remaining battery power is calculated based on the battery capacity and the continuous working time, the use of hardware detection circuits is avoided. Save space and reduce battery power consumption.

Benefits of technology

This improves the utilization rate of battery power, reduces the space occupancy of the stimulator and battery power consumption, and achieves more accurate battery prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119199597A_ABST
    Figure CN119199597A_ABST
Patent Text Reader

Abstract

The invention relates to a method and device for predicting the remaining capacity of a stimulator battery, computer equipment, a storage medium and a computer program product. The method comprises the following steps: acquiring actually-measured pulse frequency, actually-measured pulse width and actually-measured pulse amplitude of a stimulation signal output by a stimulator in each stimulation time period; determining the working current of each stimulation time period according to the actually measured pulse frequency, the actually measured pulse width, the actually measured pulse amplitude and the mapping function of each stimulation time period; the mapping function is established based on pulse parameters of a stimulation signal used by the stimulator and working current of the stimulator, and the pulse parameters comprise pulse frequency, pulse width and pulse amplitude; and determining the remaining capacity of the battery according to the battery capacity, the working current of each stimulation time period and the continuous working duration of each stimulation time period. The method can improve the utilization rate of battery power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of medical equipment technology, and in particular to a method, device, computer equipment, storage medium and computer program product for predicting the remaining power of a stimulator battery. Background Art

[0002] Implantable neurostimulator devices with built-in batteries usually need to provide users with information about the remaining battery power, so as to remind users to replace the battery or charge it. Currently, the battery voltage is generally measured through a hardware circuit to calculate the remaining battery power. However, the hardware circuit is generally composed of components such as sampling resistors, filter capacitors, and transistors, and a high-precision ADC sampling port is required. Another solution with announcement number CN207541234U discloses a power reminder device for an implantable medical device, which uses a power detection chip to detect the current power data of the battery of the implantable medical device in real time. The current power data includes at least the remaining power, the remaining usage time, etc. The detected power data is transmitted to the outside world through a first wireless communication module.

[0003] This method of using a separate hardware circuit or power detection chip to determine the remaining battery power has the problem of low battery power utilization because the hardware circuit or power detection chip increases the power consumption of the device. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for predicting the remaining battery power of a stimulator to improve the utilization rate of the battery power in order to address the problem of low battery power utilization rate in traditional battery remaining power prediction methods.

[0005] In a first aspect, the present application provides a method for predicting the remaining power of a stimulator battery. The method comprises:

[0006] Obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0007] Determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0008] The remaining battery power is determined based on the battery capacity, the operating current in each stimulation time period, and the continuous working time in each stimulation time period.

[0009] In one embodiment, establishing the mapping function includes:

[0010] Obtain parameter values ​​corresponding to pulse frequency, pulse width and pulse amplitude respectively;

[0011] Select one of the pulse frequency, pulse width and pulse amplitude as the current parameter, and the remaining two as variable parameter one and variable parameter two respectively;

[0012] Determine a sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, the variable parameter one, the variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameters two under each parameter value of the current parameter;

[0013] Reselect the current parameter from the parameters that have not been selected, and repeat the above process until a sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are used as mapping functions;

[0014] Accordingly, according to the measured pulse frequency, measured pulse width, measured pulse amplitude and mapping function of each stimulation time period, the working current of each stimulation time period is determined, including:

[0015] For the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value;

[0016] Determine the working current value corresponding to each current parameter value based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value;

[0017] The average value obtained by accumulating all working current values ​​is used as the working current for the current stimulation period.

[0018] In one embodiment, according to each parameter value of the current parameter, the variable parameter 1, the variable parameter 2, and each working current value of the stimulator corresponding to different variable parameters 1 and variable parameters 2 under each parameter value of the current parameter, a sub-mapping function corresponding to each parameter value of the current parameter is determined, including:

[0019] For each parameter value of the current parameter, according to the variable parameter 1, the variable parameter 2, and the working current values ​​of the stimulator corresponding to different variable parameters 1 and variable parameters 2 under the current parameter value, a plurality of nonlinear expressions are determined through a nonlinear regression model;

[0020] According to multiple nonlinear expressions, the sub-mapping function corresponding to the current parameter value is determined by least squares.

[0021] In one embodiment, the method for predicting the remaining battery power of the stimulator further includes:

[0022] Get the real-time temperature of the current stimulation period;

[0023] According to the compensation coefficient table, the compensation coefficient corresponding to the real-time temperature is determined; the compensation coefficient table is used to characterize the corresponding relationship between the stored temperature and the stored compensation coefficient;

[0024] The corresponding working current is compensated according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0025] In one embodiment, determining the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table includes:

[0026] Traverse the stored temperatures in the compensation coefficient table to determine the difference between the real-time temperature in the current stimulation time period and each stored temperature; take the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature;

[0027] Look up the compensation coefficient table, determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature.

[0028] In one embodiment, the step of determining the compensation coefficient table includes:

[0029] Acquire detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection;

[0030] Determine a reference current from a plurality of detection currents;

[0031] The quotients of the multiple detection currents and the reference current are used as temperature compensation coefficients;

[0032] A compensation coefficient table is determined based on each preset temperature and the corresponding temperature compensation coefficient.

[0033] In one embodiment, determining the remaining battery power according to the battery capacity, the working current of each stimulation time period, and the continuous working time of each stimulation time period includes:

[0034] Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the current moment;

[0035] Determine the power consumption of each stimulation time period according to the working current and continuous working duration of each stimulation time period;

[0036] The sum of the power consumption in each stimulation time period is taken as the stimulation power consumption;

[0037] The product of the standby time and the standby current is taken as the standby power consumption;

[0038] Determine the remaining battery power based on standby power consumption, stimulated power consumption, and battery capacity.

[0039] In one embodiment, the method for predicting the remaining battery power of the stimulator further includes:

[0040] The remaining battery power is displayed; or the remaining battery power is transmitted to a remote device and the remaining battery power is displayed via the remote device.

[0041] In a second aspect, the present application also provides a device for predicting the remaining power of a stimulator battery. The device comprises:

[0042] An acquisition module, used for acquiring the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0043] The first determination module is used to determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and a mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator; the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0044] The second determination module is used to determine the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period.

[0045] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0046] Obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0047] Determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0048] The remaining battery power is determined based on the battery capacity, the operating current in each stimulation time period, and the continuous working time in each stimulation time period.

[0049] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0050] Obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0051] Determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0052] The remaining battery power is determined based on the battery capacity, the operating current in each stimulation time period, and the continuous working time in each stimulation time period.

[0053] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0054] Obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0055] Determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0056] The remaining battery power is determined based on the battery capacity, the operating current in each stimulation time period, and the continuous working time in each stimulation time period.

[0057] The above-mentioned prediction method, device, computer equipment, storage medium and computer program product of the remaining battery power of the stimulator are determined by combining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period with a mapping function to determine the working current of each stimulation time period, and the remaining battery power is determined according to the battery capacity, the working current of each stimulation time period and the continuous working time. In the above scheme, the working current is determined according to the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period in combination with a mapping function, and does not require a separate hardware circuit. The remaining battery power is determined based on the working current of each stimulation time period, the continuous working time, and the battery capacity, which saves the space of the stimulator while reducing the power consumption of the battery in the stimulator, and can improve the utilization rate of the battery power. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 A diagram of an application environment of a method for predicting the remaining battery power of a stimulator in one embodiment;

[0059] Figure 2 A schematic diagram of a flow chart of a method for predicting the remaining power of a stimulator battery in one embodiment;

[0060] Figure 3 A schematic diagram of data interaction between a programmer and a stimulator in one embodiment;

[0061] Figure 4 A schematic diagram of a process for establishing a mapping function in one embodiment;

[0062] Figure 5 It is a schematic diagram of the overall process of a method for predicting the remaining power of a stimulator battery in one embodiment;

[0063] Figure 6 is a structural block diagram of a device for predicting the remaining power of a stimulator battery in one embodiment;

[0064] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0066] The method for predicting the remaining power of the stimulator battery provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the stimulator 104 through the network. The stimulator 104 has a built-in battery. The terminal 102 obtains the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period, and the mapping function, the working current of each stimulation time period is determined; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude; according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period, the remaining battery power is determined. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. In some embodiments, the terminal can also be a controller inside the stimulator. The method for predicting the remaining power of the stimulator battery is executed solely by the controller.

[0067] In one embodiment, Figure 2 As shown, a method for predicting the remaining power of a stimulator battery is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0068] Step 202, obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period.

[0069] The stimulator may be a nerve stimulator, which can output a stimulator signal, which is transmitted to the puncture needle. When the puncture needle approaches the mixed nerve, the mixed nerve is depolarized and a dominant tremor occurs, so that the location is determined based on the muscle tremor reaction. The stimulation signal output by the stimulator is usually a current pulse signal.

[0070] The stimulation time period refers to the time period during which the stimulator outputs the stimulation signal each time. The measured pulse frequency refers to the frequency of the output current pulse signal, the measured pulse width refers to the width of the current pulse signal within a pulse cycle, and the measured pulse amplitude refers to the amplitude of the current pulse signal.

[0071] The terminal obtains the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period.

[0072] Step 204, determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude.

[0073] Among them, the mapping function is established by the terminal based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator. In the prediction process of the working current, the corresponding mapping function can be directly called. The pulse parameters include pulse frequency, pulse width and pulse amplitude. The mapping function includes a mapping function of pulse frequency and stimulator working current, a mapping function of pulse width and stimulator working current, and a mapping function of pulse amplitude and stimulator working current.

[0074] The working current of the stimulator, i.e. the output current of the battery, is often detected by a separate hardware detection circuit. The hardware detection circuit includes components such as sampling resistors, filter capacitors and transistors, and also includes an ADC sampling port. However, the method of using a hardware detection circuit to detect the working current of the stimulator will take up more space, which is not conducive to the miniaturization of the stimulator and increases the cost of the stimulator. At the same time, the hardware detection circuit itself will also increase the working current of the stimulator. The present application proposes that the terminal determines the working current of each stimulation time period based on the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function, using a software algorithm method, thereby avoiding the problem that the hardware detection circuit occupies the stimulator space and increases the working current of the stimulator, and is conducive to improving the utilization rate of the battery power.

[0075] Step 206, determining the remaining battery power according to the battery capacity, the operating current of each stimulation time period, and the continuous working time of each stimulation time period.

[0076] Among them, the consumption of battery power in the stimulator mainly comes from the stimulation signal output by the stimulator. According to the working current and continuous working time in each stimulation time period, the battery power consumption caused by the stimulation signal output by the stimulator can be determined, thereby determining the remaining battery power. The remaining battery power is determined by software method, avoiding the battery power consumption caused by the introduction of hardware detection circuit, and improving the utilization rate of battery power.

[0077] In the above-mentioned method for predicting the remaining battery power of the stimulator, the operating current of each stimulation time period is determined by combining the measured pulse frequency, measured pulse width, and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period with a mapping function, and the remaining battery power is determined according to the battery capacity, the predicted operating current of each stimulation time period, and the continuous working time. In the above scheme, the operating current is determined according to the measured pulse frequency, measured pulse width, and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period, combined with a mapping function, and does not require a separate hardware circuit. The remaining battery power is determined based on the operating current of each stimulation time period, the continuous working time, and the battery capacity, which saves the space of the stimulator while reducing the power consumption of the battery in the stimulator, and can improve the utilization rate of the battery power.

[0078] In one embodiment, the establishment of a mapping function includes: respectively obtaining parameter values ​​corresponding to pulse frequency, pulse width and pulse amplitude; selecting one of pulse frequency, pulse width and pulse amplitude as the current parameter, and the remaining two as variable parameter one and variable parameter two respectively; determining the sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameter two under each parameter value of the current parameter; reselecting the current parameter from parameters that have not been selected, and repeating the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained. function, and all the obtained sub-mapping functions are used as mapping functions; accordingly, according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function, the working current of each stimulation time period is determined, including: for the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value; based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value, determining the working current value corresponding to each current parameter value; accumulating and averaging all the working current values ​​to obtain the average value, which is used as the working current of the current stimulation time period.

[0079] Among them, the mapping function is established by adjusting the parameter values ​​corresponding to the pulse frequency, pulse width and pulse amplitude before the stimulator leaves the factory, and measuring the working current of the stimulator under each parameter value, so as to obtain the mapping function by fitting according to the parameter values ​​corresponding to the working current, pulse frequency, pulse width and pulse amplitude of the stimulator. In some embodiments, a current detection device is used to detect the working current of the stimulator under each pulse frequency, pulse width and pulse amplitude. A programmer is used to adjust the pulse frequency, pulse width and pulse amplitude. The programmer communicates wirelessly with the stimulator based on magnetic coupling. Figure 3 The figure shows the schematic diagram of data interaction between the programmer and the stimulator. The programmer sends downlink data to the stimulator through downlink communication. The downlink data includes the preset pulse frequency, preset pulse width and preset pulse amplitude. After receiving the downlink data, the stimulator sends an uplink reply message to the programmer to confirm that the parameter setting is successful.

[0080] The terminal obtains parameter values ​​corresponding to the pulse frequency, pulse width and pulse amplitude respectively, selects one of the pulse frequency, pulse width and pulse amplitude as the current parameter, and the remaining two are variable parameter 1 and variable parameter 2 respectively. Taking the pulse frequency as the current parameter as an example, variable parameter 1 and variable parameter 2 are pulse width and pulse amplitude respectively, the pulse frequency has M parameter values, the pulse width has N parameter values, and the pulse amplitude has P parameter values. Among them, M, N, and P are positive integers respectively.

[0081] According to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameter one and variable parameter two under each parameter value of the current parameter, the corresponding sub-mapping function of each parameter value of the current parameter is determined. Specifically, according to the M parameter values ​​of the pulse frequency, the N parameter values ​​of the pulse width, the P parameter values ​​of the pulse amplitude, and the working current values ​​of the stimulator corresponding to the M*N*P parameter values, the sub-mapping functions corresponding to each of the M parameter values ​​of the pulse frequency are obtained through parameter fitting.

[0082] Reselect the current parameter from the parameters that have not been selected, and repeat the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are used as mapping functions. For example, after establishing the sub-mapping function corresponding to each parameter value of the pulse frequency, the unselected parameters are the pulse width and the pulse amplitude. Use the pulse width or the pulse amplitude as the current function, and repeat the above process to obtain the sub-mapping function corresponding to each parameter of the pulse width, and the sub-mapping function corresponding to each parameter of the pulse amplitude. Use the obtained sub-mapping function corresponding to each parameter value of the pulse frequency, the sub-mapping function corresponding to each parameter of the pulse width, and the sub-mapping function corresponding to each parameter of the pulse amplitude as mapping functions.

[0083] Correspondingly, the working current of each stimulation time period is determined according to the measured pulse frequency, measured pulse width, measured pulse amplitude and the mapping function of each stimulation time period. Specifically, taking the current stimulation time period as an example, the sub-mapping function corresponding to the measured pulse frequency is determined from the sub-mapping function corresponding to each parameter value of the pulse frequency, and the measured pulse width and the measured pulse amplitude are brought into the sub-mapping function corresponding to the measured pulse frequency to obtain the working current value corresponding to the measured pulse frequency. Similarly, the sub-mapping function corresponding to the measured pulse width is determined from the sub-mapping function corresponding to each parameter value of the pulse width to obtain the working current value corresponding to the measured pulse width. The sub-mapping function corresponding to the measured pulse amplitude is determined from the sub-mapping function corresponding to each parameter value of the pulse amplitude to obtain the working current value corresponding to the measured pulse amplitude.

[0084] The average value of the working current corresponding to the measured pulse frequency, the working current corresponding to the measured pulse width, and the working current corresponding to the measured pulse amplitude is averaged as the working current of the current stimulation time period. Referring to the same method, the working current of each stimulation time period is obtained.

[0085] In this embodiment, by selecting the current parameter, variable parameter one and variable parameter two from the pulse frequency, pulse width and pulse amplitude, and combining the corresponding working current values ​​of the stimulator, the corresponding sub-mapping function of each parameter value of the current parameter is obtained, and the same method is adopted to obtain the sub-mapping function corresponding to each parameter value of each parameter, and use it as the mapping function. In the real-time working circuit prediction of the stimulator, the working current of the stimulator is calculated based on the measured pulse frequency, pulse width, pulse amplitude, and the corresponding mapping function. This method of predicting the working current of the stimulator by software method does not require a separate hardware circuit, saves the space of the stimulator, and reduces the power consumption of the battery in the stimulator, which can improve the utilization rate of the battery power.

[0086] In one embodiment, according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameter one and variable parameter two under each parameter value of the current parameter, a sub-mapping function corresponding to each parameter value of the current parameter is determined, including: for each parameter value of the current parameter, according to variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameter one and variable parameter two under the current parameter value, a plurality of nonlinear expressions are determined through a nonlinear regression model; according to the plurality of nonlinear expressions, a sub-mapping function corresponding to the current parameter value is determined through least squares.

[0087] Wherein, taking the current parameter as pulse frequency as an example, variable parameter 1 and variable parameter 2 are pulse width and pulse amplitude respectively, pulse frequency has M parameter values, pulse width has N parameter values, and pulse amplitude has P parameter values. Wherein, M, N, and P are positive integers respectively.

[0088] Since, when any parameter of the pulse frequency, pulse width or pulse amplitude changes alone, the stimulator working current and the parameter present a certain linear relationship, when two or more parameters change at the same time, the stimulator working current and the adjusted parameter present a nonlinear relationship, therefore, a nonlinear regression model is used to fit the mapping function. In some embodiments, the nonlinear regression model used is:

[0089] I=Fi(Y,Z)=AiY+BiZ+CiYZ+Di.

[0090] The least square method is used to solve N*P nonlinear expressions to obtain the sub-mapping function of the pulse frequency under the current parameter value, thereby obtaining the sub-mapping functions corresponding to the M parameter values ​​of the pulse frequency.

[0091] For example, the least squares method is used to solve the minimum value of the loss function, thereby obtaining the sub-mapping function of the pulse frequency under the current parameter value. The loss function used is:

[0092]

[0093] Among them, F j (Y j ,Z j ) is the fitted value obtained by using the nonlinear regression model, I j is the sample value.

[0094] The loss function is treated as a multivariate function. To minimize the loss function, the method of partial derivative of multivariate function is used to calculate the minimum value of the function. Specifically, in Q(A i ,B i ,C i ,D i ), respectively for A i , B i , C i , D i Find the partial derivative to calculate the minimum of the function,

[0095]

[0096]

[0097]

[0098]

[0099] Finally, the values ​​of Ai, Bi, Ci, and Di at the minimum are obtained, and the expression of I = Fi (Y, Z) is determined, which is the sub-mapping function of the pulse frequency under the current parameter value. The same method is used to obtain M expressions of I = Fi (Y, Z) as the sub-mapping functions corresponding to the M parameter values ​​of the pulse frequency.

[0100] In this embodiment, a nonlinear regression model is used to determine multiple nonlinear expressions based on each parameter value of the current parameter, variable parameter one, variable parameter two, and the corresponding stimulation working currents. After solving with least squares, the sub-mapping function corresponding to the current parameter value is obtained. This method fits the sub-mapping function corresponding to each parameter value based on the nonlinear relationship between the pulse frequency, pulse width, pulse amplitude and the working currents of the stimulator, which is conducive to predicting the working current of the stimulator using software algorithms.

[0101] In one embodiment, the method for predicting the remaining power of the stimulator battery also includes: obtaining the real-time temperature of the current stimulation time period; determining the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient; and compensating the corresponding working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0102] The stimulator has a temperature sensor disposed inside. The real-time temperature refers to the temperature of the target object collected by the temperature sensor when the stimulator is implanted in the target object. The terminal obtains the real-time temperature of the current stimulation time period.

[0103] The terminal has a compensation coefficient table pre-set. The compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient. Look up the compensation coefficient table to determine the compensation coefficient corresponding to the real-time temperature.

[0104] The terminal compensates the working current of the corresponding stimulation time period according to the compensation coefficient of the current stimulation time period to obtain the compensated working current of the current stimulation time period. The compensation coefficient is used to compensate the working current, so that under different real-time temperatures, the corresponding compensated working current is used as the final working current to avoid the influence of the real-time temperature on the working current, thereby improving the accuracy of the predicted working current.

[0105] In this embodiment, the real-time temperature of the current stimulation time period is obtained, the compensation coefficient corresponding to the real-time temperature is determined in the compensation coefficient table, and the corresponding working current is compensated by the compensation coefficient, so as to obtain the compensated working current of the current stimulation time period. Since the working current of the stimulator is greatly affected by the real-time temperature, compensating the working current according to the compensation coefficient corresponding to different real-time temperatures is conducive to avoiding the influence of the real-time temperature on the working current, thereby improving the accuracy of the determined working current.

[0106] In one embodiment, the compensation coefficient corresponding to the real-time temperature is determined according to the compensation coefficient table, including: traversing the stored temperatures in the compensation coefficient table, and determining the difference between the real-time temperature of the current stimulation time period and each stored temperature; taking the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature; searching the compensation coefficient table, determining the stored compensation coefficient corresponding to the target temperature, and using it as the compensation coefficient corresponding to the real-time temperature.

[0107] The current stimulation time period refers to any stimulation time period in each stimulation time period. The terminal traverses the stored temperatures in the compensation coefficient table, determines the difference between the real-time temperature of the current stimulation time period and each stored temperature, and takes the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature. The target temperature is the stored temperature in the compensation coefficient table that is closest to the real-time temperature.

[0108] The terminal searches the compensation coefficient table, determines the stored compensation coefficient corresponding to the target temperature, and uses it as the compensation coefficient corresponding to the real-time temperature.

[0109] In this embodiment, the compensation coefficient table is preset in the stimulator or the terminal before the stimulator leaves the factory. Since the stored temperature in the compensation coefficient table is a preset number of temperature values ​​selected in the experiment, there may be a situation where the stored temperature in the compensation coefficient table does not include the real-time temperature. The terminal determines the target temperature closest to the real-time temperature, and uses the compensation coefficient corresponding to the target temperature as the compensation coefficient corresponding to the real-time temperature, which is conducive to determining the compensation coefficient corresponding to the real-time temperature when the real-time temperature is not included in the compensation coefficient table.

[0110] In one embodiment, the steps for determining the compensation coefficient table include: obtaining detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; determining a reference current from the multiple detection currents; taking the quotient of the multiple detection currents and the reference current as the temperature compensation coefficient; and determining the compensation coefficient table according to each preset temperature and the corresponding temperature compensation coefficient.

[0111] Wherein, the preset temperature is a temperature value selected within the common operating temperature range of the stimulator. Exemplarily, the common operating temperature range of the stimulator is 15 degrees Celsius to 45 degrees Celsius. The preset temperature can be within the common operating temperature range, with every 5 degrees Celsius as a preset temperature, and 7 preset temperatures can be obtained, namely 15 degrees Celsius, 20 degrees Celsius, 25 degrees Celsius, 30 degrees Celsius, 35 degrees Celsius, 40 degrees Celsius and 45 degrees Celsius. The method for selecting the preset temperature is not specifically limited.

[0112] The detection current is the working current of the stimulator actually detected by the current detection device at a preset temperature. The terminal obtains the detection current at multiple preset temperatures.

[0113] The terminal determines a reference current from a plurality of detection currents. For example, the reference current may be an intermediate value among the plurality of detection currents, or a minimum value among the plurality of detection currents. For example, the detection current at 35 degrees Celsius is used as the reference current.

[0114] The terminal calculates the quotients of the multiple detection currents and the reference currents respectively, and the quotients corresponding to the multiple detection currents are used as the temperature compensation coefficients corresponding to the multiple detection currents. According to the temperature compensation coefficients corresponding to the preset temperatures and the detection currents, each preset temperature corresponds to a temperature compensation coefficient at the corresponding detection temperature, thereby obtaining a compensation coefficient table.

[0115] In this embodiment, by obtaining the detection currents at multiple preset temperatures, a reference current is determined from the multiple detection currents, and the quotients of the multiple detection currents and the reference current are used as temperature compensation coefficients to determine the compensation coefficient table. Before the stimulator leaves the factory, a compensation coefficient table is established based on the working current detected at the actual temperature, which is beneficial for compensating the predicted working current at the actual temperature after the stimulator leaves the factory, thereby improving the accuracy of the predicted working current.

[0116] In one embodiment, the remaining battery power is determined based on the battery capacity, the working current of each stimulation time period, and the continuous working time of each stimulation time period, including: obtaining the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the current moment; determining the power consumption of each stimulation time period based on the working current and the continuous working time of each stimulation time period; taking the sum of the power consumption of each stimulation time period as the stimulation power consumption; taking the product of the standby time and the standby current as the standby power consumption; determining the remaining battery power based on the standby power consumption, the stimulation power consumption and the battery capacity.

[0117] Among them, the standby current refers to the current consumed when the switching power supply of the stimulator is turned off, and the switching power supply is in standby mode. The standby time refers to the duration of the stimulator in standby mode from the time the stimulator leaves the factory to the current moment. The terminal obtains the standby time and standby current of the stimulator.

[0118] The terminal uses the product of the standby time and the standby current as the standby power consumption. The standby power consumption is used to characterize the battery power consumed when the stimulator is in standby mode from the time the stimulator leaves the factory to the current moment.

[0119] The working current of the current stimulation time period is multiplied by the continuous working time of the output stimulation signal of the current stimulation time period, and the product is used as the power consumption of the current stimulation time period. The power consumption of the current stimulation time period is used to represent the battery power consumed by the output stimulation signal in the current stimulation time period.

[0120] The terminal uses the sum of the power consumption in each stimulation time period as the stimulation power consumption. The stimulation power consumption is used to represent the battery power consumed by the stimulator outputting the stimulation signal.

[0121] The terminal regards the standby power consumption and the stimulation power consumption as the total power consumption, and regards the difference between the battery capacity and the total power consumption as the remaining battery power.

[0122] In this embodiment, the product of the standby time and the standby current of the stimulator is used as the standby power consumption, and the sum of the power consumption in each stimulation time period is used as the stimulation power consumption, thereby determining the remaining battery power according to the standby power consumption, the stimulation power consumption and the battery capacity. This method of using a software algorithm to obtain the remaining battery power avoids the battery power consumption caused by the introduction of a hardware detection circuit, thereby improving the utilization rate of the battery power.

[0123] In one embodiment, the method for predicting the remaining battery power of a stimulator further includes: displaying the remaining battery power; or transmitting the remaining battery power to a remote device, and displaying the remaining battery power via the remote device.

[0124] The terminal includes a display unit, the remaining battery power is sent to the display unit, and the remaining battery power is displayed on the display unit.

[0125] In some embodiments, the remaining battery power may also be transmitted to a remote device, and the remaining battery power may be displayed via the remote device.

[0126] In this embodiment, the remaining battery power is directly displayed by the terminal or transmitted to a remote device for display, which is conducive to intuitively observing the remaining battery power of the TV through various channels, and is conducive to timely replacement of low-power batteries or timely charging of batteries.

[0127] In order to explain in detail the prediction method and effect of the remaining battery power of the stimulator in this solution, a most detailed embodiment is described below:

[0128] Taking the stimulator as an implantable neurostimulator as an example, the stimulator has a built-in battery and a temperature sensor, and the battery capacity is a full charge or a preset charge. The temperature sensor is used to collect temperature data collected when the stimulator is implanted in the target object. The prediction method of the remaining battery power of the stimulator is applied to the prediction system of the remaining battery power of the stimulator, and the system includes a stimulator, a terminal and a programmer. The programmer wirelessly communicates with the stimulator based on magnetic coupling. The programmer is used to adjust the pulse frequency, pulse width and pulse amplitude. The pulse frequency, pulse width and pulse amplitude have M, N and P gear values ​​respectively.

[0129] Before the stimulator leaves the factory, the mapping relationships under M preset pulse frequencies, the mapping relationships under N preset pulse widths, the mapping relationships under P preset pulse amplitudes, and the compensation coefficient table are determined.

[0130] like Figure 4 The figure shows a flow chart of establishing a mapping relationship. The preset pulse frequency, the preset pulse width and the preset pulse amplitude are fixed, and the working current of the stimulator is detected, so as to fit the mapping function of the working current of the stimulator and the other two variables.

[0131] The establishment method of the sub-mapping relationship corresponding to M parameter values ​​of the pulse frequency is taken as an example for explanation. The sub-mapping relationship corresponding to N parameter values ​​of the pulse width and the sub-mapping relationship under P parameter values ​​of the pulse amplitude adopt similar methods.

[0132] For the current parameter value among the M parameter values ​​in the pulse frequency, the pulse frequency, pulse width and pulse amplitude of the stimulation signal output by the stimulator are adjusted to the current parameter value, N parameter values ​​of the pulse width and P parameter values ​​of the pulse amplitude, respectively, and the corresponding N*P stimulator working current values ​​are detected by the current detection device. The N parameter values ​​of the pulse width, the P parameter values ​​of the pulse amplitude and the N*P stimulator working current values ​​are taken as sample points and brought into the nonlinear regression model to obtain N*P nonlinear expressions. Accordingly, for the M parameter values ​​of the pulse frequency, M*N*P nonlinear expressions will be obtained.

[0133] The nonlinear regression model used is:

[0134] I=Fi(Y,Z)=AiY+BiZ+CiYZ+Di.

[0135] The least square method is used to solve N*P nonlinear expressions to obtain the sub-mapping function of the pulse frequency under the current parameter value, thereby obtaining the sub-mapping function corresponding to each parameter value of the pulse frequency.

[0136] For example, the least squares method is used to solve the minimum value of the loss function, thereby obtaining the sub-mapping function of the pulse frequency under the current parameter value. The loss function used is:

[0137]

[0138] Among them, F j (Y j ,Z j ) is the fitted value obtained by using the nonlinear regression model, I j is the sample value.

[0139] The loss function is treated as a multivariate function. To minimize the loss function, the method of partial derivative of multivariate function is used to calculate the minimum value of the function. Specifically, in Q(A i ,B i ,C i ,D i ), respectively for A i , B i , C i , D i Find the partial derivative to calculate the minimum of the function,

[0140]

[0141]

[0142]

[0143]

[0144] Finally, the values ​​of Ai, Bi, Ci, and Di at the minimum are obtained, and the expression of I = Fi (Y, Z) is determined, which is the sub-mapping function of the pulse frequency under the current parameter value. The same method is used to obtain M expressions of I = Fi (Y, Z) as the sub-mapping functions corresponding to the M parameter values ​​of the pulse frequency.

[0145] The above process is repeated until sub-mapping functions corresponding to N parameter values ​​of pulse width and sub-mapping functions corresponding to P parameter values ​​of pulse amplitude are obtained, and all obtained sub-mapping functions are used as mapping functions.

[0146] The method for determining the compensation coefficient table is: selecting multiple preset temperatures within the common operating temperature range of the stimulator. Exemplarily, the common operating temperature range of the stimulator is 15 degrees Celsius to 45 degrees Celsius. The preset temperature can be within the common operating temperature range, and every 5 degrees Celsius is used as a preset temperature, and 7 preset temperatures can be obtained, namely 15 degrees Celsius, 20 degrees Celsius, 25 degrees Celsius, 30 degrees Celsius, 35 degrees Celsius, 40 degrees Celsius and 45 degrees Celsius. The method for selecting the preset temperature is not specifically limited. The terminal obtains the detection current at multiple preset temperatures, and determines the reference current from the multiple detection currents. For example, the reference current can be the middle value of multiple detection currents. Or the minimum value of multiple detection currents. For example, the detection current at 35 degrees Celsius is used as the reference current. Multiple detection currents are respectively divided by the reference current, and the quotient values ​​corresponding to the multiple detection currents are respectively used as the temperature compensation coefficients corresponding to the multiple detection currents. According to the temperature compensation coefficients corresponding to each preset temperature and each detection current, each preset temperature corresponds to a temperature compensation coefficient at a corresponding detection temperature, thereby obtaining a compensation coefficient table.

[0147] After the stimulator leaves the factory, the battery power consumption mainly comes from the stimulator output stimulation signal and the stimulator standby consumption, such as Figure 5The figure shows the overall flow chart of the method for predicting the remaining battery power of the stimulator. The terminal obtains the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period. According to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function, the working current of each stimulation time period is determined. Specifically, taking the current stimulation time period as an example, the sub-mapping function corresponding to the measured pulse frequency is determined from the sub-mapping function corresponding to each parameter value of the pulse frequency, and the measured pulse width and the measured pulse amplitude are brought into the sub-mapping function corresponding to the measured pulse frequency to obtain the working current value corresponding to the measured pulse frequency. Similarly, the sub-mapping function corresponding to the measured pulse width is determined from the sub-mapping function corresponding to each parameter of the pulse width, and the working current value corresponding to the measured pulse width is obtained. The sub-mapping function corresponding to the measured pulse amplitude is determined from the sub-mapping function corresponding to each parameter of the pulse amplitude, and the working current value corresponding to the measured pulse amplitude is obtained.

[0148] The average value of the working current corresponding to the measured pulse frequency, the working current corresponding to the measured pulse width, and the working current corresponding to the measured pulse amplitude is averaged as the working current of the current stimulation time period. Referring to the same method, the working current of each stimulation time period is obtained.

[0149] In addition, obtain the real-time temperature of the current stimulation time period in each stimulation time period. Traverse the stored temperatures in the compensation coefficient table, determine the difference between the real-time temperature of the current stimulation time period and each stored temperature, use the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature, search the compensation coefficient table, determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature. The compensation coefficient table is used to characterize the correspondence between the stored temperatures and the stored compensation coefficients. Compensate the corresponding predicted working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0150] Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the current moment. Determine the power consumption of each stimulation time period based on the compensated working current and continuous working time of each stimulation time period, take the sum of the power consumption of each stimulation time period as the stimulation power consumption, take the product of the standby time and the standby current as the standby power consumption, and determine the remaining battery power based on the standby power consumption, stimulation power consumption and battery capacity.

[0151] In some embodiments, the terminal includes a display unit, the remaining battery power is sent to the display unit, and the remaining battery power is displayed on the display unit. In some embodiments, the remaining battery power can also be transmitted to a remote device, and the remaining battery power is displayed by the remote device.

[0152] The above-mentioned method for predicting the remaining battery power of the stimulator is to determine the working current of each stimulation time period by combining the measured pulse frequency, measured pulse width, and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period with a mapping function, and to determine the remaining battery power according to the battery capacity, the working current of each stimulation time period, and the continuous working time. In the above scheme, the working current is determined according to the measured pulse frequency, measured pulse width, and measured pulse amplitude of the stimulation signal output from each stimulation time period of the stimulator in combination with a mapping function, and does not require a separate hardware circuit. The remaining battery power is determined based on the working current of each stimulation time period, the continuous working time of the stimulation signal, and the battery capacity, which saves the space of the stimulator while reducing the power consumption of the battery in the stimulator, and can improve the utilization rate of the battery power.

[0153] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0154] Based on the same inventive concept, the embodiment of the present application also provides a device for predicting the remaining power of a stimulator battery for implementing the above-mentioned method for predicting the remaining power of a stimulator battery. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more devices for predicting the remaining power of a stimulator battery provided below can refer to the limitations of the method for predicting the remaining power of a stimulator battery above, and will not be repeated here.

[0155] In one embodiment, Figure 6 As shown, a device 100 for predicting the remaining power of a stimulator battery is provided, comprising: an acquisition module 120, a first determination module 140 and a second determination module 160, wherein:

[0156] An acquisition module 120 is used to acquire the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period;

[0157] A first determination module 140 is used to determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and a mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator; the pulse parameters include pulse frequency, pulse width and pulse amplitude;

[0158] The second determination module 160 is used to determine the remaining battery power according to the battery capacity, the working current of each stimulation time period, and the continuous working time of each stimulation time period.

[0159] The above-mentioned prediction device for the remaining battery power of the stimulator obtains the duration, pulse frequency, pulse width and pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period, and obtains the battery capacity of the stimulator when it leaves the factory, and determines the working current of each stimulation time period according to the measured pulse frequency, measured pulse width and measured pulse amplitude of each stimulation time period, and determines the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working duration. In the above scheme, the working current is determined according to the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period, combined with the mapping function value, and does not require a separate hardware circuit. The remaining battery power is determined based on the working current of each stimulation time period, the continuous working duration of the stimulation signal, and the battery capacity, which saves the space of the stimulator while reducing the power consumption of the battery in the stimulator, and can improve the utilization rate of the battery power.

[0160] In one of the embodiments, in terms of establishing the mapping function, the first determination module 140 is also used to: obtain parameter values ​​corresponding to the pulse frequency, pulse width and pulse amplitude respectively; select one of the pulse frequency, pulse width and pulse amplitude as the current parameter, and the remaining two as variable parameter one and variable parameter two respectively; determine the sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameter two under each parameter value of the current parameter; re-select the current parameter from the parameters that have not been selected, and repeat the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained. A mapping function is used, and all the obtained sub-mapping functions are used as mapping functions; accordingly, in determining the working current of each stimulation time period according to the measured pulse frequency, the measured pulse width, the measured pulse amplitude of each stimulation time period, and the mapping function, the first determination module 140 is also used for: for the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value; based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value, determining the working current value corresponding to each current parameter value; accumulating and averaging all the working current values ​​to obtain the average value, which is used as the working current of the current stimulation time period.

[0161] In one of the embodiments, the sub-mapping function corresponding to each parameter value of the current parameter is determined according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameter one and variable parameter two under each parameter value of the current parameter. The first determination module 140 is also used to: for each parameter value of the current parameter, determine multiple nonlinear expressions through a nonlinear regression model according to variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameter one and variable parameter two under the current parameter value; and determine the sub-mapping function corresponding to the current parameter value through least squares based on the multiple nonlinear expressions.

[0162] In one embodiment, the stimulator battery remaining power prediction device 100 also includes a compensation module, which is further used to: obtain the real-time temperature of the current stimulation time period; determine the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient; compensate the corresponding working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0163] In one of the embodiments, the compensation coefficient corresponding to the real-time temperature is determined according to the compensation coefficient table, and the compensation module is also used to: traverse the stored temperatures in the compensation coefficient table to determine the differences between the real-time temperature of the current stimulation time period and each stored temperature; use the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature; search the compensation coefficient table to determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature.

[0164] In one of the embodiments, in terms of determining the compensation coefficient table, the compensation module is also used to: obtain detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; determine a reference current from the multiple detection currents; use the quotient of the multiple detection currents and the reference current as the temperature compensation coefficient; determine the compensation coefficient table according to each preset temperature and the corresponding temperature compensation coefficient.

[0165] In one of the embodiments, the remaining battery power is determined based on the battery capacity, the working current of each stimulation time period, and the continuous working time of each stimulation time period. The second determination module 160 is also used to: obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the current moment; determine the power consumption of each stimulation time period based on the working current and the continuous working time of each stimulation time period; take the sum of the power consumption of each stimulation time period as the stimulation power consumption; take the product of the standby time and the standby current as the standby power consumption; determine the remaining battery power based on the standby power consumption, the stimulation power consumption and the battery capacity.

[0166] In one embodiment, the stimulator battery remaining power prediction device 100 further includes a display module, and the display module is further used to: display the battery remaining power; or transmit the battery remaining power to a remote device and display the battery remaining power through the remote device.

[0167] Each module in the above-mentioned stimulator battery remaining power prediction device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.

[0168] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for predicting the remaining power of a stimulator battery is implemented.

[0169] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0170] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0171] Obtain the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude; determine the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period.

[0172] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0173] Obtain parameter values ​​corresponding to pulse frequency, pulse width and pulse amplitude respectively; select one of pulse frequency, pulse width and pulse amplitude as the current parameter, and use the remaining two as variable parameter one and variable parameter two respectively; determine the sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameter two under each parameter value of the current parameter; reselect the current parameter from the parameters that have not been selected, and repeat the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are sub-mapping function as a mapping function; accordingly, according to the measured pulse frequency, the measured pulse width, the measured pulse amplitude of each stimulation time period and the mapping function, the working current of each stimulation time period is determined, including: for the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value; based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value, determining the working current value corresponding to each current parameter value; accumulating and averaging all the working current values ​​to obtain the average value as the working current of the current stimulation time period.

[0174] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0175] For each parameter value of the current parameter, multiple nonlinear expressions are determined through a nonlinear regression model based on variable parameter one, variable parameter two, and the working current values ​​of the stimulator corresponding to different variable parameters one and variable parameter two under the current parameter value; based on the multiple nonlinear expressions, the sub-mapping function corresponding to the current parameter value is determined through least squares.

[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0177] Obtain the real-time temperature of the current stimulation time period; determine the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient; compensate the corresponding working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0178] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0179] Traverse the stored temperatures in the compensation coefficient table to determine the difference between the real-time temperature of the current stimulation time period and each stored temperature; use the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature; search the compensation coefficient table to determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature.

[0180] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0181] Acquire detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; determine the reference current from the multiple detection currents; use the quotient of the multiple detection currents and the reference current as the temperature compensation coefficient; determine the compensation coefficient table according to each preset temperature and the corresponding temperature compensation coefficient.

[0182] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0183] Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the present moment; determine the power consumption of each stimulation time period according to the working current and continuous working time of each stimulation time period; take the sum of the power consumption of each stimulation time period as the stimulation power consumption; take the product of the standby time and the standby current as the standby power consumption; determine the remaining battery power according to the standby power consumption, stimulation power consumption and battery capacity.

[0184] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0185] The remaining battery power is displayed; or the remaining battery power is transmitted to a remote device and the remaining battery power is displayed via the remote device.

[0186] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0187] Obtain the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude; determine the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period.

[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0189] Obtain parameter values ​​corresponding to pulse frequency, pulse width and pulse amplitude respectively; select one of pulse frequency, pulse width and pulse amplitude as the current parameter, and use the remaining two as variable parameter one and variable parameter two respectively; determine the sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameter two under each parameter value of the current parameter; reselect the current parameter from the parameters that have not been selected, and repeat the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are sub-mapping function as a mapping function; accordingly, according to the measured pulse frequency, the measured pulse width, the measured pulse amplitude of each stimulation time period and the mapping function, the working current of each stimulation time period is determined, including: for the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value; based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value, determining the working current value corresponding to each current parameter value; accumulating and averaging all the working current values ​​to obtain the average value as the working current of the current stimulation time period.

[0190] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0191] For each parameter value of the current parameter, multiple nonlinear expressions are determined through a nonlinear regression model based on variable parameter one, variable parameter two, and the working current values ​​of the stimulator corresponding to different variable parameters one and variable parameter two under the current parameter value; based on the multiple nonlinear expressions, the sub-mapping function corresponding to the current parameter value is determined through least squares.

[0192] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0193] Obtain the real-time temperature of the current stimulation time period; determine the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient; compensate the corresponding working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0195] Traverse the stored temperatures in the compensation coefficient table to determine the difference between the real-time temperature of the current stimulation time period and each stored temperature; use the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature; search the compensation coefficient table to determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature.

[0196] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0197] Acquire detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; determine the reference current from the multiple detection currents; use the quotient of the multiple detection currents and the reference current as the temperature compensation coefficient; determine the compensation coefficient table according to each preset temperature and the corresponding temperature compensation coefficient.

[0198] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0199] Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the present moment; determine the power consumption of each stimulation time period according to the working current and continuous working time of each stimulation time period; take the sum of the power consumption of each stimulation time period as the stimulation power consumption; take the product of the standby time and the standby current as the standby power consumption; determine the remaining battery power according to the standby power consumption, stimulation power consumption and battery capacity.

[0200] In one embodiment, the method for predicting the remaining battery power of the stimulator further includes:

[0201] The remaining battery power is displayed; or the remaining battery power is transmitted to a remote device and the remaining battery power is displayed via the remote device.

[0202] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0203] Obtain the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and the mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude; determine the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period.

[0204] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0205] Obtain parameter values ​​corresponding to pulse frequency, pulse width and pulse amplitude respectively; select one of pulse frequency, pulse width and pulse amplitude as the current parameter, and use the remaining two as variable parameter one and variable parameter two respectively; determine the sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, variable parameter one, variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameter two under each parameter value of the current parameter; reselect the current parameter from the parameters that have not been selected, and repeat the above process until the sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are sub-mapping function as a mapping function; accordingly, according to the measured pulse frequency, the measured pulse width, the measured pulse amplitude of each stimulation time period and the mapping function, the working current of each stimulation time period is determined, including: for the current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting the current sub-mapping function of each current parameter value; based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value, determining the working current value corresponding to each current parameter value; accumulating and averaging all the working current values ​​to obtain the average value as the working current of the current stimulation time period.

[0206] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0207] For each parameter value of the current parameter, multiple nonlinear expressions are determined through a nonlinear regression model based on variable parameter one, variable parameter two, and the working current values ​​of the stimulator corresponding to different variable parameters one and variable parameter two under the current parameter value; based on the multiple nonlinear expressions, the sub-mapping function corresponding to the current parameter value is determined through least squares.

[0208] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0209] Obtain the real-time temperature of the current stimulation time period; determine the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the correspondence between the stored temperature and the stored compensation coefficient; compensate the corresponding working current according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

[0210] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0211] Traverse the stored temperatures in the compensation coefficient table to determine the difference between the real-time temperature of the current stimulation time period and each stored temperature; use the stored temperature corresponding to the minimum value of the absolute value of each difference as the target temperature; search the compensation coefficient table to determine the stored compensation coefficient corresponding to the target temperature, and use it as the compensation coefficient corresponding to the real-time temperature.

[0212] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0213] Acquire detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; determine the reference current from the multiple detection currents; use the quotient of the multiple detection currents and the reference current as the temperature compensation coefficient; determine the compensation coefficient table according to each preset temperature and the corresponding temperature compensation coefficient.

[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0215] Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the present moment; determine the power consumption of each stimulation time period according to the working current and continuous working time of each stimulation time period; take the sum of the power consumption of each stimulation time period as the stimulation power consumption; take the product of the standby time and the standby current as the standby power consumption; determine the remaining battery power according to the standby power consumption, stimulation power consumption and battery capacity.

[0216] In one embodiment, the method for predicting the remaining battery power of the stimulator further includes:

[0217] The remaining battery power is displayed; or the remaining battery power is transmitted to a remote device and the remaining battery power is displayed via the remote device.

[0218] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0219] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0220] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0221] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for predicting the remaining power of a stimulator battery, characterized in that: The method comprises: Obtaining the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; Determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and a mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator, and the pulse parameters include pulse frequency, pulse width and pulse amplitude; The remaining battery power is determined based on the battery capacity, the operating current in each stimulation time period, and the continuous working time in each stimulation time period.

2. The method according to claim 1, characterized in that The establishment of the mapping function includes: Respectively obtaining parameter values ​​corresponding to the pulse frequency, the pulse width and the pulse amplitude; Select one of the pulse frequency, the pulse width and the pulse amplitude as the current parameter, and the remaining two as variable parameter one and variable parameter two respectively; Determine a sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, the variable parameter one, the variable parameter two, and each working current value of the stimulator corresponding to different variable parameters one and variable parameters two under each parameter value of the current parameter; Reselect the current parameter from the parameters that have not been selected, and repeat the above process until a sub-mapping function corresponding to each parameter value of each parameter is obtained, and all the obtained sub-mapping functions are used as mapping functions; Accordingly, the method of determining the working current of each stimulation time period according to the measured pulse frequency, the measured pulse width, the measured pulse amplitude and the mapping function of each stimulation time period includes: For a current stimulation time period, based on the current parameter value of each parameter in the current stimulation time period, selecting a current sub-mapping function for each current parameter value; Determine the working current value corresponding to each current parameter value based on the current parameter value of each parameter in the current stimulation time period and the current sub-mapping function of each current parameter value; The average value obtained by accumulating and averaging all the working current values ​​is used as the working current in the current stimulation time period.

3. The method according to claim 2, characterized in that The method of determining a sub-mapping function corresponding to each parameter value of the current parameter according to each parameter value of the current parameter, the variable parameter 1, the variable parameter 2, and each working current value of the stimulator corresponding to different variable parameters 1 and variable parameters 2 under each parameter value of the current parameter comprises: For each parameter value of the current parameter, a plurality of nonlinear expressions are determined through a nonlinear regression model according to the variable parameter 1, the variable parameter 2, and the working current values ​​of the stimulator corresponding to different variable parameters 1 and variable parameters 2 under the current parameter value; According to multiple nonlinear expressions, a sub-mapping function corresponding to the current parameter value is determined by least squares.

4. The method according to claim 1, characterized in that: The method further comprises: Get the real-time temperature of the current stimulation period; Determine the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table; the compensation coefficient table is used to characterize the corresponding relationship between the stored temperature and the stored compensation coefficient; The corresponding working current is compensated according to the compensation coefficient to obtain the compensated working current of the current stimulation time period.

5. The method according to claim 4, characterized in that Determining the compensation coefficient corresponding to the real-time temperature according to the compensation coefficient table includes: Traversing the stored temperatures in the compensation coefficient table, determining the difference between the real-time temperature of the current stimulation time period and each stored temperature; taking the stored temperature corresponding to the minimum value of the absolute values ​​of each difference as the target temperature; The compensation coefficient table is searched to determine the stored compensation coefficient corresponding to the target temperature and the stored compensation coefficient is used as the compensation coefficient corresponding to the real-time temperature.

6. The method according to any one of claims 4 to 5, characterized in that: The step of determining the compensation coefficient table includes: Acquire detection currents at multiple preset temperatures; the detection current is the working current of the stimulator obtained by detection; Determine a reference current from a plurality of detection currents; taking the quotient of each of the plurality of detection currents and the reference current as a temperature compensation coefficient; A compensation coefficient table is determined based on each preset temperature and the corresponding temperature compensation coefficient.

7. The method according to claim 1, characterized in that Determining the remaining battery power according to the battery capacity, the working current in each stimulation time period, and the continuous working time in each stimulation time period includes: Obtain the standby time and standby current of the stimulator from the time the stimulator leaves the factory to the current moment; Determine the power consumption of each stimulation time period according to the working current and continuous working duration of each stimulation time period; The sum of the power consumption in each stimulation time period is taken as the stimulation power consumption; The product of the standby time and the standby current is used as the standby power consumption; The remaining battery power is determined according to the standby power consumption, the stimulation power consumption and the battery capacity.

8. The method according to claim 7, characterized in that The method further comprises: The remaining battery power is displayed; or the remaining battery power is transmitted to a remote device, and the remaining battery power is displayed via the remote device.

9. A device for predicting the remaining power of a stimulator battery, characterized in that: The device comprises: An acquisition module, used for acquiring the measured pulse frequency, measured pulse width and measured pulse amplitude of the stimulation signal output by the stimulator in each stimulation time period; A first determination module is used to determine the working current of each stimulation time period according to the measured pulse frequency, measured pulse width, measured pulse amplitude of each stimulation time period and a mapping function; the mapping function is established based on the pulse parameters of the stimulation signal used by the stimulator and the working current of the stimulator; the pulse parameters include pulse frequency, pulse width and pulse amplitude; The second determination module is used to determine the remaining battery power according to the battery capacity, the working current of each stimulation time period and the continuous working time of each stimulation time period.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.