Program control information anomaly detection method and device, medical system, equipment and medium
By receiving and comparing the before and after the change of the parameters of the electrical pulse stimulation equipment in deep brain electrical stimulation technology, and using vectorized distance values for abnormal detection, the problem of difficult to guarantee the accuracy and safety after the change of the electrical stimulation parameters in the prior art is solved, and automated abnormal detection and higher accuracy and safety are achieved.
Patent Information
- Application Number
- CN202510325946.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-24
AI Technical Summary
The prior art lacks automated abnormal detection methods for electrical pulse stimulation equipment parameter in deep brain electrical stimulation technology, resulting in problems that the accuracy and safety of the changed electrical stimulation parameters are difficult to guarantee.
When receiving the program control information change request of the electrical pulse stimulation device implanted into the brain of the target user, the first program control information before the parameter change and the second program control information after the parameter change are obtained, the parameter change attribute of the second program control information is determined based on the vectorized distance value between the two, and whether to send it to the electrical pulse stimulation device for electrical stimulation.
Automatic abnormal detection of electrical stimulation parameters after the electrical pulse stimulation equipment is realized, the accuracy and safety of program control information is improved, and the situations such as human negligence and error settings are prevented.
Smart Images

Figure CN120189634A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular, to a method, device, medical system, equipment and medium for detecting abnormal programmed control information. Background Art
[0002] Deep brain stimulation (DBS) is an invasive neuromodulation technique. This technique implants stimulating electrodes into specific neural structures of the human brain through stereotactic surgery, and implants an electrical pulse stimulation device into the human body to connect to the stimulating electrodes, and emits adjustable weak electrical pulses, so as to change the electrical activity and function of the brain nerve circuit and network, and achieve the purpose of controlling and improving the symptoms of patients. During the treatment of patients through deep brain stimulation technology, as the patient's disease progresses, it is necessary to change the electrical stimulation parameters in the electrical pulse stimulation device to improve the treatment effect.
[0003] Generally speaking, doctors can change and set the programmed control information (i.e., electrical stimulation parameters) of a certain patient according to their own experience combined with the preset threshold range of different stimulation parameter items. However, the above method highly depends on manual experience, and the set electrical stimulation parameters have the defects of strong subjectivity, large bias and low accuracy. Once the changed electrical stimulation parameters are not applicable to the patient due to manual operation errors, it will have a serious impact on the patient's life and health. At present, there is still a lack of a method for automatically detecting abnormal electrical stimulation parameters after the change of the electrical pulse stimulation device, and there are technical problems that it is difficult to ensure the accuracy and safety of the programmed control information of the changed electrical pulse stimulation device. Summary of the Invention
[0004] The present invention provides a method, device, medical system, equipment and medium for detecting abnormal programmed control information, so as to realize automatic detection of abnormal electrical stimulation parameters after the change of the electrical pulse stimulation device, and improve the accuracy and safety of the programmed control information of the electrical pulse stimulation device.
[0005] In a first aspect, an embodiment of the present invention provides a method for detecting abnormal programmed control information, the method includes:
[0006] When receiving a programmed control information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user, obtain the first programmed control information before the parameter change of the electrical pulse stimulation device and the second programmed control information after the parameter change;
[0007] Based on the vectorized distance value between the first programmed control information and the second programmed control information, determine the parameter change attribute of the second programmed control information;
[0008] Determine whether to send the second programming information to the electrical pulse stimulation device in the brain of the target user based on the parameter change attribute, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second programming information.
[0009] In a second aspect, an embodiment of the present invention further provides a device for detecting abnormal programming information, and the device includes:
[0010] A programming information acquisition module, configured to obtain the first programming information before the parameter change and the second programming information after the parameter change of the electrical pulse stimulation device when receiving a programming information change request corresponding to the electrical pulse stimulation device implanted in the brain of the target user;
[0011] A change attribute determination module, configured to determine the parameter change attribute of the second programming information based on the vectorized distance value between the first programming information and the second programming information;
[0012] A programming information sending module, configured to determine whether to send the second programming information to the electrical pulse stimulation device in the brain of the target user based on the parameter change attribute, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second programming information.
[0013] In a third aspect, an embodiment of the present invention further provides a medical system, and the medical system includes:
[0014] An implantable medical device, the implantable medical device at least includes an electrical pulse stimulation device implanted in the body of the target user and an electrode lead implanted in the brain of the target user, at least a plurality of electrode contacts are arranged at the implanted end of the electrode lead, and the electrical pulse stimulation device is connected to the electrode lead;
[0015] A processor, configured to obtain the first programming information before the parameter change and the second programming information after the parameter change of the electrical pulse stimulation device when receiving a programming information change request corresponding to the electrical pulse stimulation device implanted in the brain of the target user, perform abnormal detection processing of electrical stimulation parameters on the second programming information by executing the programming information abnormal detection method according to any embodiment of the present invention, and when the parameter change attribute of the second programming information is a normal parameter change attribute, send the second programming information to the electrical pulse stimulation device in the brain of the target user, and display the first programming information and / or the second programming information by using the display;
[0016] A display, configured to display the first programming information and / or the second programming information.
[0017] In a fourth aspect, an embodiment of the present invention further provides an electronic device, and the electronic device includes:
[0018] One or more processors;
[0019] A storage device for storing one or more programs, which when executed by the one or more processors cause the one or more processors to implement the program-controlled information anomaly detection method according to any one of the embodiments of the present invention.
[0020] In a fifth aspect, an embodiment of the present invention further provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the program-controlled information anomaly detection method according to any one of the embodiments of the present invention when executed by a computer processor.
[0021] In the technical solution of the embodiment of the present invention, when a program-controlled information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user is received, the first program-controlled information before the change of the electrical pulse stimulation device parameters and the second program-controlled information after the parameter change are obtained. Thus, based on the vectorized distance value between the first program-controlled information and the second program-controlled information, the parameter change attribute of the second program-controlled information is determined. Furthermore, based on the parameter change attribute, it is determined whether to send the second program-controlled information to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program-controlled information. In the technical solution of this embodiment, through the vectorized distance value between the first program-controlled information and the second program-controlled information before and after the parameter change, it is quantitatively evaluated whether the changed second program-controlled information has anomalies or errors, so as to prompt the operator to perform a second manual verification and confirmation, prevent situations such as human negligence and incorrect settings, and realize automatic anomaly detection of the changed electrical stimulation parameters of the electrical pulse stimulation device, improving the accuracy and safety of the program-controlled information of the electrical pulse stimulation device. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings introduced are only the drawings of a part of the embodiments to be described by the present invention, rather than all the drawings. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0023] Figure 1 Schematic diagram of an implantable medical device related to an embodiment of the present invention;
[0024] Figure 2 Schematic diagram of a stimulating electrode related to an embodiment of the present invention;
[0025] Figure 3 Flow chart of a program-controlled information anomaly detection method provided by an embodiment of the present invention;
[0026] Figure 4Schematic diagram of another method for detecting abnormal programmed control information provided by an embodiment of the present invention;
[0027] Figure 5 Schematic diagram of the structure of a device for detecting abnormal programmed control information provided by an embodiment of the present invention;
[0028] Figure 6 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;
[0029] Figure 7 Schematic diagram of the structure of a medical system provided by an embodiment of the present invention. Detailed implementation manners
[0030] Next, in combination with the accompanying drawings and specific implementation manners, the present application will be further described. It should be noted that, on the premise of no conflict, any combination of the following-described embodiments or technical features can form a new embodiment.
[0031] Next, a simple description will be given of one of the application fields (i.e., implantable devices) of the embodiments of the present application. An implantable nerve stimulation system (a type of implantable medical system) mainly includes a stimulator implanted in a patient's body and a programmed control device arranged outside the patient's body. The existing nerve regulation technology mainly implants electrodes at a specific position (i.e., the target point) in the body through stereotactic surgery, and the stimulator implanted in the patient's body sends electrical pulses to the target point through the electrodes to regulate the electrical activity and function of the corresponding nerve structures and networks, so as to improve symptoms and relieve pain. Among them, the stimulator can be any one of an implantable nerve electrical stimulation device, an implantable cardiac electrical stimulation system (also known as a cardiac pacemaker), an implantable drug infusion device (Implantable Drug Delivery System, abbreviated as IDDS), and a wire transfer device. The implantable nerve electrical stimulation device is, for example, a deep brain stimulation system (Deep Brain Stimulation, abbreviated as DBS), an implantable cortical nerve stimulation system (Cortical Nerve Stimulation, abbreviated as CNS), an implantable spinal cord stimulation system (Spinal Cord Stimulation, abbreviated as SCS), an implantable sacral nerve stimulation system (Sacral Nerve Stimulation, abbreviated as SNS), an implantable vagus nerve stimulation system (Vagus Nerve Stimulation, abbreviated as VNS), etc.
[0032] In some embodiments, the stimulator may include an implantable pulse generator (IPG), electrode leads, and an extension lead disposed between the implantable pulse generator and the electrode leads. Data interaction between the implantable pulse generator and the electrode leads is achieved through the extension lead, and the implantable pulse generator is disposed inside the patient. In response to the programming instructions sent by the programming device, it relies on a sealed battery and circuitry to provide controllable electrical stimulation energy to the internal tissues, and through the implanted extension lead and electrode leads, delivers one or two controllable specific electrical stimulations to a specific area of the internal tissues. The extension lead is used in cooperation with the implantable pulse generator as a transmission medium for electrical stimulation signals, and transmits the electrical stimulation signals generated by the implantable pulse generator to the electrode leads. The electrode leads deliver electrical stimulations to a specific area of the internal tissues through the electrode contacts thereon. The stimulator is provided with one or more electrode leads on one or both sides, and multiple electrode contacts are provided on the electrode leads.
[0033] In some other embodiments, the stimulator may only include an implantable pulse generator and electrode leads. Among them, the implantable pulse generator may be embedded on the patient's skull, and the electrode leads are implanted into the patient's intracranial cavity. At this time, the implantable pulse generator is directly connected to the electrode leads without an extension lead.
[0034] The electrode leads may be nerve stimulation electrodes, and the electrode leads deliver electrical stimulations to a specific area of the internal tissues through multiple electrode contacts. The stimulator is provided with one or more electrode leads on one or both sides, and multiple electrode contacts are provided on the electrode leads. The electrode contacts may be arranged uniformly or non-uniformly in the circumferential direction of the electrode leads. As an example, the electrode contacts may be arranged in an array of 4 rows and 3 columns (a total of 12 electrode contacts) in the circumferential direction of the electrode leads. The electrode contacts may serve as stimulation contacts and / or acquisition contacts. The electrode contacts may adopt shapes such as sheet-like, ring-like, and dot-like, for example.
[0035] In some possible ways, the internal tissues to be stimulated may be the patient's brain tissue, and the stimulated site may be a specific site of the brain tissue. When the patient's disease types are different, generally the stimulated sites are different, and the number of stimulation contacts (single-source or multi-source), the application of one or more (single-channel or multi-channel) specific electrical stimulation signals, and the stimulation parameter data are also different. It can be considered that when the stimulation contacts used are multi-source and multi-channel (multi-channel), a larger amount of data will be generated compared to single-source and single-channel.
[0036] The embodiments of the present application do not limit the applicable disease types, which may be the disease types applicable to deep brain stimulation (DBS), spinal cord stimulation (SCS), pelvic stimulation, gastric stimulation, peripheral nerve stimulation, and functional electrical stimulation. Among them, the disease types that DBS can be used to treat or manage include but are not limited to: spastic diseases (such as epilepsy), pain, migraine, mental diseases (such as major depressive disorder (MDD)), bipolar disorder, anxiety disorder, post-traumatic stress disorder, dysthymia, obsessive-compulsive disorder (OCD), behavioral disorders, mood disorders, memory disorders, psychological state disorders, movement disorders (such as essential tremor or Parkinson's disease), Huntington's disease, Alzheimer's disease, drug addiction, autism, or other neurological or psychiatric diseases and impairments.
[0037] The technical solution provided by the embodiments of the present invention is mainly applied to the field of implantable medical devices. For the schematic diagram of the implantable medical device involved in this embodiment, please refer to Figure 1 , such as Figure 1 shown. The implantable medical device mainly includes a programming device, an electrical pulse stimulation device, a stimulating electrode, and an electrode lead. The electrical pulse stimulation device is implanted into the patient's body (such as the chest cavity, skull, etc.). One end of the electrode lead is connected to the electrical pulse stimulation device subcutaneously, and the other end is configured with a stimulating electrode. For the schematic diagram of the stimulating electrode, please refer to Figure 2 , such as Figure 2 shown. The stimulating electrode includes at least one metal contact for outputting a stimulating source. These metal contacts can be circular rings or directional electrodes composed of multiple segmented electrode contacts. The stimulating electrode is partially implanted into the designated position of the patient's brain (such as the nucleus, nerve tissue, etc. associated with the disease). The doctor sends programming parameters to the electrical pulse stimulation device through the programming device, and the electrical pulse stimulation device delivers electrical stimulation to at least one metal contact in the stimulating electrode through the electrode lead, so that the at least one metal contact generates an electric field to treat the corresponding disease.
[0038] In the process of treating a patient through deep brain electrical stimulation technology, as the patient's disease progresses, it is necessary to change the programming information in the electrical pulse stimulation device to improve the treatment effect. At present, the electrical stimulation parameters determined by doctors based on their own experience combined with the preset threshold ranges of different stimulation parameter items are difficult to ensure accuracy and safety. The purpose of the embodiments of the present invention is to provide an effective way to automatically detect abnormalities in the electrical stimulation parameters after changing the electrical pulse stimulation device, so as to improve the accuracy and safety of the programming information of the electrical pulse stimulation device.
[0039] Figure 3The figure is a schematic flowchart of a method for detecting abnormal programmed information provided by an embodiment of the present invention. This embodiment is applicable to any situation where it is necessary to detect abnormal programmed information after the programmed information of an electrical pulse stimulation device is changed in deep brain stimulation applications. This method can be executed by a programmed information abnormality detection device, which can be implemented in the form of software and / or hardware. The hardware can be an electronic device, such as a mobile terminal, a PC, a server, a programmed device, etc.
[0040] As Figure 3 shown, the method for detecting abnormal programmed information includes:
[0041] S110. When a programmed information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user is received, obtain the first programmed information before the change of the electrical pulse stimulation device parameters and the second programmed information after the parameter change.
[0042] Among them, the target user is a user who is about to change the electrical stimulation parameters of the electrical pulse stimulation device implanted in his brain. One or more stimulation electrodes have been implanted in the brain of the target user. The programmed information change request refers to a request from a doctor or a patient to adjust the electrical stimulation parameters of the electrical pulse stimulation device (for example, an implantable pulse generator) according to the treatment needs. The first programmed information refers to the electrical stimulation parameters of the electrical pulse stimulation device before the change. For example, the first programmed information can be the electrical stimulation parameters currently used by the electrical pulse stimulation device. The first programmed information is the electrical stimulation parameters set in a historical period, and the first programmed information can be stored in a preset storage unit, and the first programmed information can be retrieved from the preset storage unit here. The second programmed information refers to the electrical stimulation parameters of the electrical pulse stimulation device after the change. For example, the second programmed information can be the electrical stimulation parameters that the electrical pulse stimulation device will use in the future.
[0043] In this embodiment, since a programmed process includes multiple programs, the programmed information of the electrical pulse stimulation device includes at least one set of electrical stimulation program parameters; each set of electrical stimulation program parameters includes: program code, program execution ratio, frequency, amplitude, pulse width, impedance value corresponding to the corresponding electrode (for example, Figure 2 the circular contact in can be called an electrode, and a certain segmented electrode contact can also be called an electrode) on the stimulation electrode connected to the electrical pulse stimulation device, at least one of the program stimulation mode and the voltage multiplication coefficient.
[0044] Among them, the program code is used to represent the unique identification code of the current program in a certain program control process. The program execution ratio refers to the time or resource ratio occupied by the current program in the entire program control process. For example, there are 3 electrical stimulation programs in the program control data of the electrical pulse stimulation device. The first electrical stimulation program needs to be executed 3 times, the second electrical stimulation program needs to be executed 4 times, and the third electrical stimulation program needs to be executed 2 times. Then the program execution ratio corresponding to the first electrical stimulation program is 3 / 9, the program execution ratio corresponding to the first electrical stimulation program is 4 / 9, and the program execution ratio corresponding to the first electrical stimulation program is 2 / 9.
[0045] It should be specifically noted that there can be multiple stimulation electrodes on the stimulation electrode connected to the electrical pulse stimulation device. However, for any one electrical stimulation program, one or several stimulation electrodes can output electrical stimulation signals, and the remaining stimulation electrodes do not output electrical stimulation signals. The stimulation parameters of these non-outputting stimulation electrodes can be defaulted to 0. The corresponding electrode refers to the stimulation electrode that can output electrical stimulation signals in a certain electrical stimulation program. The stimulation parameters of the corresponding electrode can include: frequency (for example, the number of electrical stimulation pulse signals within 1 second of the unit time, unit: Hz), amplitude (generally expressed by the voltage value, that is, the intensity of each pulse, unit: V), pulse width (the duration of each pulse, unit: μ), and impedance value (the degree of obstruction of the resistor in the circuit to the current, unit: ohm (Ω), used in the electrical pulse stimulation device to measure the electrical contact quality between the electrode and the surrounding tissue).
[0046] The program stimulation mode can include one or more of the conventional stimulation mode, timed stimulation mode, cyclic stimulation mode, voltage stimulation mode, and current stimulation mode. The voltage multiplication factor usually refers to the ratio of the output frequency to the input frequency in the circuit of the electrical pulse stimulation device, and is used to describe how the circuit improves the frequency to meet the treatment requirements.
[0047] Specifically, the program control information anomaly detection device that executes the program control information anomaly detection method provided in this embodiment can be configured in the program control device. Next, taking the program control device as the execution subject as an example, it will be described how to implement this program control information anomaly detection method. The program control device is pre-configured with a parameter adjustment interface for adjusting electrical stimulation parameters. Doctors can edit various parameter configuration items in the parameter adjustment interface. For example, they can edit by inputting a specified value or selecting a specified value. When the editing is completed, a preset control can be triggered, and at this time, the second program control information can be obtained, and a program control information change request can be generated. At this time, the program control device can receive the program control information change request, retrieve the first program control information from the preset storage unit, and obtain the second program control information.
[0048] Based on the above embodiments, on the basis of obtaining the first program control information and the second program control information, the first program control information and the second program control information can be preprocessed to provide a data basis for quantifying the first program control information and the second program control information and making the first program control information and the second program control information comparable. Specifically, the specific implementation methods for preprocessing the first program control information and the second program control information may include:
[0049] S1. Obtain at least one set of historical program control information of the target user in a historical period.
[0050] Among them, the historical period refers to the period before the current moment. The historical program control information refers to the electrical stimulation parameters of the electrical pulse stimulation device used by the target user in the historical period. Each set of historical program control information includes: at least one set of historical electrical stimulation program parameters; each set of historical electrical stimulation program parameters includes: historical program code, historical program execution ratio, historical frequency, historical amplitude, historical pulse width, historical impedance value corresponding to each electrode on the stimulation electrode connected to the electrical pulse stimulation device, historical program stimulation mode, and at least one of the historical voltage multiplication coefficient.
[0051] In this embodiment, if the target user has experienced one or more program control treatment processes in the historical period, the program control information in each treatment process can be saved. Based on this, at least one set of historical program control information corresponding to the target user can be obtained.
[0052] S2. Calculate the frequency average value and frequency variance based on the historical frequencies in at least one set of historical program control information; calculate the amplitude average value and amplitude variance based on the historical amplitudes; calculate the pulse width average value and pulse width variance based on the historical pulse widths; calculate the impedance average value and impedance variance based on the historical impedance values.
[0053] In this embodiment, each set of historical program control information includes historical frequency values, historical amplitudes, historical pulse widths, and historical impedance values corresponding to multiple historical programs. The average value operation and variance operation can be performed on all historical frequency values of one or more sets of historical program control information to obtain the frequency average value and frequency variance; the average value operation and variance operation can be performed on all historical amplitudes of one or more sets of historical program control information to obtain the amplitude average value and amplitude variance; the average value operation and variance operation can be performed on all historical pulse width values of one or more sets of historical program control information to obtain the pulse width average value and pulse width variance; the average value operation and variance operation can be performed on all historical impedance values of one or more sets of historical program control information to obtain the impedance average value and frequency variance.
[0054] S3. Determine the maximum voltage multiplication coefficient and the minimum voltage multiplication coefficient based on the historical voltage multiplication coefficients in at least one set of historical program control information.
[0055] In this embodiment, each set of historical programming information includes historical voltage multiplication coefficients corresponding to multiple historical programs. These historical voltage multiplication coefficients can be arranged in ascending or descending order of numerical value, so that the maximum value among the historical voltage multiplication coefficients can be determined as the maximum voltage multiplication coefficient, and the minimum value among the historical voltage multiplication coefficients can be determined as the minimum voltage multiplication coefficient.
[0056] S4. Based on the average frequency, frequency variance, average amplitude, amplitude variance, average pulse width, pulse width variance, average impedance, and impedance variance, standardize the frequencies, amplitudes, pulse widths, and impedance values in the first programming information and the second programming information respectively to obtain the standardized frequencies, amplitudes, pulse widths, and impedance values.
[0057] In this embodiment, for the first programming information, each first frequency value in the first programming information can be processed by Z-score transformation using the average frequency and frequency variance to obtain the standardized first frequency values; each first amplitude in the first programming information can be processed by Z-score transformation using the average amplitude and amplitude variance to obtain the standardized first amplitudes; each first pulse width value in the first programming information can be processed by Z-score transformation using the average pulse width and pulse width variance to obtain the standardized first pulse width values; each first impedance value in the first programming information can be processed by Z-score transformation using the average impedance and impedance variance to obtain the standardized first impedance values. Similarly, each second frequency value, each second amplitude, each second pulse width, and each second impedance value in the second programming information can be standardized, which will not be elaborated here.
[0058] Optionally, on the basis of obtaining the average impedance and impedance variance, impedance anomaly detection can also be performed on the impedance values in the second programming information by adopting the three-sigma principle based on the average impedance and impedance variance; if there are abnormal impedance values, these abnormal impedance values are removed.
[0059] Among them, the three-sigma principle is an important concept in statistics, which is used to describe the distribution law of data in a normal distribution.
[0060] In this embodiment, for the impedance values in the second programming information, it can be determined whether a certain impedance value is within the range of [average impedance - 3 times impedance variance, average impedance + 3 times impedance variance]; if so, it indicates that there are no abnormal impedance values; if not, it indicates that there are abnormal impedance values, and at this time, these abnormal impedance values need to be deleted from the second programming information.
[0061] S5. Based on the maximum value and the minimum value of the voltage multiplication factor, scale the voltage multiplication factors in the first program control information and the second program control information respectively to obtain the scaled voltage multiplication factors.
[0062] In this embodiment, for each first voltage multiplication factor in the first program control information, calculate the first difference between the first voltage multiplication factor and the minimum value of the voltage multiplication factor; the second difference between the maximum value of the voltage multiplication factor and the minimum value of the voltage multiplication factor; and use the ratio of the first difference to the second difference as the scaled voltage multiplication factor. Similarly, the normalization process can be performed on each second voltage multiplication factor in the second program control information, which will not be elaborated here.
[0063] S120. Based on the vectorization distance value between the first program control information and the second program control information, determine the parameter change attribute of the second program control information.
[0064] Among them, the vectorization distance value is used to represent the similarity degree between the first program control information and the second program control information. The smaller the vectorization distance value, the closer the first program control information and the second program control information are; the larger the vectorization distance value, the less similar the first program control information and the second program control information are. The parameter change attribute is used to represent whether there are abnormal electrical stimulation parameters in the second program control information, and the parameter change attribute includes a parameter change abnormal attribute and a parameter change normal attribute.
[0065] Specifically, the first program control information and the second program control information can be vectorized respectively through a label mapping method and a data integration method to obtain a first feature vector corresponding to the first program control information and a second feature vector corresponding to the second program control information; furthermore, the similarity between the first feature vector and the second feature vector can be calculated, and then the parameter change attribute of the second program control information can be determined through the similarity. For example, if the similarity is greater than or equal to a preset similarity threshold, it is determined that the parameter change attribute of the second electrical stimulation parameter is a parameter change abnormal attribute; if the similarity is less than the preset similarity threshold, it is determined that the parameter change attribute of the second electrical stimulation parameter is a parameter change normal attribute.
[0066] S130. Based on the parameter change attribute, determine whether to send the second program control information to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program control information.
[0067] In this embodiment, if the parameter change attribute of the second program control information is the normal parameter change attribute, the second program control information can be sent to the electrical pulse stimulation device in the brain of the target user. Thus, during the subsequent treatment of the target user, the electrical pulse stimulation device can perform electrical stimulation treatment on the target user using the various electrical stimulation parameters in the second program control information. If the parameter change attribute of the second program control information is the abnormal parameter change attribute, it indicates that there may be abnormal parameter items in the second program control information. In this case, the second program control information will not be sent to the electrical pulse stimulation device in the brain of the target user, but an abnormal prompt message of the program control information will be fed back, so that the doctor can perform a secondary manual check and confirmation in time to prevent situations such as human negligence and incorrect settings.
[0068] In the technical solution of the embodiment of the present invention, when a program control information change request corresponding to the electrical pulse stimulation device implanted in the brain of the target user is received, the first program control information before the parameter change of the electrical pulse stimulation device and the second program control information after the parameter change are obtained. Thus, based on the vectorized distance value between the first program control information and the second program control information, the parameter change attribute of the second program control information is determined. Furthermore, based on the parameter change attribute, it is determined whether to send the second program control information to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program control information. In the technical solution of this embodiment, through the vectorized distance value between the first program control information and the second program control information before and after the parameter change, it is quantitatively evaluated whether the changed second program control information has abnormalities or errors, so as to prompt the operator to perform a secondary manual check and confirmation to prevent situations such as human negligence and incorrect settings, realizing automatic abnormal detection of the changed electrical stimulation parameters of the electrical pulse stimulation device and improving the accuracy and safety of the program control information of the electrical pulse stimulation device.
[0069] Figure 4 It is a schematic diagram of a method for detecting abnormal program control information provided by an embodiment of the present invention. On the basis of the foregoing embodiment, S120 and S130 are further refined, and the specific implementation manner can refer to the technical solution of this embodiment. Among them, the same or corresponding technical terms as those in the above embodiment will not be described in detail here.
[0070] As Figure 4 shown, the method specifically includes the following steps:
[0071] S210. When a program control information change request corresponding to the electrical pulse stimulation device implanted in the brain of the target user is received, obtain the first program control information before the parameter change of the electrical pulse stimulation device and the second program control information after the parameter change.
[0072] S220. Perform vectorization processing on the first program control information to obtain a first feature vector.
[0073] Among them, the first feature vector refers to the vector representation obtained by vectorizing the first program control information.
[0074] In this embodiment, the first program control information can be vectorized by means of label mapping and data integration to obtain a first feature vector corresponding to the first program control information.
[0075] Specifically, the specific method for vectorizing the first program control information to obtain the first feature vector may include:
[0076] S2201. Obtain the user attribute information of the target user.
[0077] Among them, the user attribute information includes at least one of disease type information, gender information, and age information.
[0078] S2202. Perform label mapping processing on the disease type information based on the first label mapping relationship to obtain a disease type label value, perform label mapping processing on the gender information based on the second label mapping relationship to obtain a gender label value, and perform label mapping processing on the age information based on the third label mapping relationship to obtain an age label value.
[0079] In this embodiment, the first label mapping relationship between the disease type and the first label encoding, the second label mapping relationship between the gender information and the second label encoding, and the third label mapping relationship between the age information and the third label encoding can be preset. Exemplarily, encoding can be performed by means of label encoding. Label encoding is one of the most common encoding methods for categorical data, and the encoded values are labels between 0 and n_classes - 1. For example, the first label mapping relationship can be expressed as {disease type A - 0; disease type B - 1; disease type C - 2; disease type D - 3; disease type E - 4}; the second label mapping relationship can be expressed as {male - 0; female - 1}; for age information, the age can be divided into categories of teenagers, young people, middle-aged people, middle-aged and elderly people, and the elderly according to 0 - 18, 18 - 35, 35 - 50, 50 - 60, and above 60, and mapped to numerical values 0, 1, 2, 3, 4 respectively. Based on this, the third label mapping relationship can be expressed as {0 - 18 - 0; 19 - 35 - 1; 36 - 50 - 2; 51 - 60 - 3; above 61 - 4}.
[0080] Specifically, by performing label value mapping on the disease type information of the target user through the first label mapping relationship, the disease type label value can be determined; by performing label value mapping on the gender information of the target user through the first label mapping relationship, the gender label value can be determined; by performing label value mapping on the age information of the target user through the first label mapping relationship, the age label value can be determined.
[0081] S2203. Construct a user attribute feature vector based on the disease type tag value, gender tag value, and age tag value.
[0082] Among them, the user attribute feature vector refers to the vector representation obtained by vectorizing the user attribute information.
[0083] Specifically, by integrating the disease type tag value, gender tag value, and age tag value, a user attribute feature vector can be obtained. For example, if the user attribute information of the target user is: disease type A, female, and 62 years old, then the disease type tag value is 0, the gender tag value is 1, and the age tag value is 4. The constructed user attribute feature vector can be represented as {0, 1, 4}.
[0084] S2204. Perform label mapping processing on the program stimulation mode in each group of electrical stimulation program parameters of the first programming information based on the fourth label mapping relationship to obtain the first stimulation mode tag value corresponding to each program stimulation mode.
[0085] In this embodiment, the fourth label mapping relationship between the program stimulation mode and the fourth label encoding can be preset. For example, the fourth label mapping relationship can be expressed as {conventional stimulation mode - 0; timed stimulation mode - 1; cyclic stimulation mode - 2}. For the program stimulation mode in each group of electrical stimulation program parameters in the first programming information, label mapping processing can be performed according to the corresponding program stimulation mode and the fourth label mapping relationship to obtain the first stimulation mode tag value corresponding to each program stimulation mode in each group of electrical stimulation program parameters.
[0086] S2205. For the first programming information, construct the corresponding first program feature vector based on the program code, program execution ratio, frequency, amplitude, pulse width, impedance value corresponding to the corresponding electrode, and the first stimulation mode tag value in each group of electrical stimulation program parameters.
[0087] Among them, the first program feature vector refers to the vector representation obtained by vectorizing a certain group of electrical stimulation program parameters.
[0088] Exemplarily, the first program control information includes a total of 2 sets of electrical stimulation program parameters. The first set of electrical stimulation program parameters is as follows: the program code is 1, the program execution ratio is s1, the frequency corresponding to the first electrode is f11, the amplitude is a11, the pulse width is PW11, the impedance value is z11, the frequency corresponding to the second electrode is f12, the amplitude is a12, the pulse width is PW12, the impedance value is z12, the frequency corresponding to the third electrode is f13, the amplitude is a13, the pulse width is PW1, the impedance value is z1, and the first stimulation mode label value is 0. Then, the first program feature vector corresponding to the first set of electrical stimulation program parameters can be expressed as {1, s1, f11, a11, PW11, z11, f12, a12, PW12, z12, f13, a13, PW1, z1, 0}. The second set of electrical stimulation program parameters is as follows: the program code is 2, the program execution ratio is s2, the frequency corresponding to the first electrode is f21, the amplitude is a21, the pulse width is PW21, the impedance value is z21, the frequency corresponding to the second electrode is f22, the amplitude is a22, the pulse width is PW22, the impedance value is z22, the frequency corresponding to the third electrode is f23, the amplitude is a23, the pulse width is PW2, the impedance value is z2, and the second stimulation mode label value is 1. Then, the second program feature vector corresponding to the second set of electrical stimulation program parameters can be expressed as {2, s2, f22, a22, PW22, z22, f22, a22, PW22, z22, f23, a23, PW2, z2, 1}.
[0089] S2206. Sequentially splice the user attribute feature vector and each first program feature vector to obtain a first feature vector.
[0090] In this embodiment, based on the obtained user attribute feature vector and each first program feature vector, these feature vectors are sequentially spliced in a tiled manner to obtain a first feature vector.
[0091] Based on the above exemplification, the first feature vector can be expressed as: [{0, 1, 4}; {1, s1, f11, a11, PW11, z11, f12, a12, PW12, z12, f13, a13, PW1, z1, 0}; {2, s2, f22, a22, PW22, z22, f22, a22, PW22, z22, f23, a23, PW2, z2, 1}].
[0092] S230. Perform vectorization processing on the second program control information to obtain a second feature vector.
[0093] Among them, the second feature vector refers to the vector representation obtained by performing vectorization processing on the second program control information.
[0094] In this embodiment, the second programmed information can be vectorized by means of label mapping and data integration to obtain a second feature vector corresponding to the second programmed information.
[0095] In this embodiment, specifically, the specific method for vectorizing the second programmed information to obtain the second feature vector may include: constructing a user attribute feature vector based on the user attribute information of the target user in the period of the second programmed information; performing label mapping processing on the program stimulation mode in each group of electrostimulation program parameters of the second programmed information based on the fourth label mapping relationship to obtain a second stimulation mode label value corresponding to each program stimulation mode; for the second programmed information, constructing a corresponding second program feature vector based on the program code, program execution ratio, frequency, amplitude, pulse width, impedance value corresponding to the corresponding electrode, and the second stimulation mode label value in each group of electrostimulation program parameters; and sequentially splicing the user attribute feature vector and each second program feature vector to obtain the second feature vector.
[0096] S240. Determine the parameter change attribute of the second programmed information based on the vector distance value between the first feature vector and the second feature vector.
[0097] In this embodiment, the similarity between the first feature vector and the second feature vector can be calculated, and the similarity value can be used as the vector distance value, so as to determine the parameter change attribute of the second programmed information according to the vector distance value and the preset similarity threshold.
[0098] Specifically, the specific implementation method for determining the parameter change attribute of the second programmed information based on the vector distance value between the first feature vector and the second feature vector may include: calculating the similarity between the first feature vector and the second feature vector based on a preset similarity algorithm to obtain the vector distance value; and determining the parameter change attribute of the second programmed information based on the comparison between the vector distance value and the preset similarity threshold.
[0099] Among them, the preset similarity algorithms include cosine similarity, Euclidean distance, Pearson correlation coefficient, Manhattan distance, Hamming distance algorithm, etc. The preset similarity threshold is a preset similarity variance for determining whether two objects (i.e., the first programmed information and the second programmed information) are similar.
[0100] In this embodiment, the first feature vector and the second feature vector can be input into a preset similarity algorithm model for similarity calculation to obtain the vector distance value. Furthermore, according to the numerical size relationship between the vector distance value and the preset similarity threshold, the parameter change attribute of the second programmed information is determined. More specifically, if the similarity is greater than or equal to the preset similarity threshold, it is determined that the parameter change attribute of the second electrostimulation parameter is a parameter change abnormal attribute; if the similarity is less than the preset similarity threshold, it is determined that the parameter change attribute of the second electrostimulation parameter is a parameter change normal attribute.
[0101] S250. If the parameter change attribute of the second programmed control information is the normal parameter change attribute, the second programmed control information is sent to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second programmed control information.
[0102] In this embodiment, if the parameter change attribute of the second programmed control information is the normal parameter change attribute, the second programmed control information can be sent to the electrical pulse stimulation device in the brain of the target user.
[0103] In this embodiment, optionally, if the parameter change attribute of the second programmed control information is the abnormal parameter change attribute, determine the abnormal parameter items in the second programmed control information, and feedback a parameter abnormality prompt information including the abnormal parameter items.
[0104] Among them, the abnormal parameter item refers to a parameter detected with a huge difference from the corresponding parameter item in the first programmed control information. The abnormal parameter item can be any electrical stimulation parameter in the second programmed control information. The parameter abnormality prompt information refers to a warning or error message issued when it is detected that some electrical stimulation parameters may be abnormal. Such a prompt is designed to remind the operator to check and handle the problem in time to avoid sending the abnormal programmed control information to the electrical pulse stimulation device.
[0105] In this embodiment, if the parameter change attribute of the second programmed control information is the abnormal parameter change attribute, it indicates that there may be abnormal electrical stimulation parameters in the second programmed control information. If the abnormal electrical stimulation parameters are directly sent to the electrical pulse stimulation device and the electrical pulse stimulation device performs electrical stimulation treatment on the target user according to the second programmed control information, it will cause irreversible damage to the target user. Therefore, at this time, it is possible to further screen whether there are abnormal parameter items in the second programmed control information, and feedback the determined abnormal parameter items to the display page of the programmed control device in the form of parameter abnormality prompt information.
[0106] In the technical solution of the embodiment of the present invention, when determining the parameter change attribute, by vectorizing the first programmed control information to obtain a first feature vector, and vectorizing the second programmed control information to obtain a second feature vector. Furthermore, based on the vector distance value between the first feature vector and the second feature vector, determine the parameter change attribute of the second programmed control information. The technical solution of this embodiment facilitates quantitative analysis of the change of the electrical stimulation parameters in the programmed control information by vectorizing the combined electrical stimulation parameters of the first programmed control information and the second programmed control information respectively, so that the vector distance value before and after the change of the programmed control information can be calculated, and parameter abnormality reminder is performed by whether the vector distance value reaches a threshold, realizing quantitative control of the configuration of the electrical stimulation parameters of the programmed control information.
[0107] Figure 5The figure is a schematic structural diagram of a program-controlled information anomaly detection device provided by an embodiment of the present invention. The device includes: a program-controlled information acquisition module 310, a change attribute determination module 320, and a program-controlled information distribution module 330.
[0108] Among them, the program-controlled information acquisition module 310 is configured to, when receiving a program-controlled information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user, acquire a first program-controlled information before parameter change of the electrical pulse stimulation device and a second program-controlled information after parameter change;
[0109] The change attribute determination module 320 is configured to determine a parameter change attribute of the second program-controlled information based on a vectorized distance value between the first program-controlled information and the second program-controlled information;
[0110] The program-controlled information distribution module 330 is configured to determine whether to distribute the second program-controlled information to the electrical pulse stimulation device in the brain of the target user based on the parameter change attribute, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program-controlled information.
[0111] The technical solution of the embodiment of the present invention is that when receiving a program-controlled information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user, the first program-controlled information before parameter change of the electrical pulse stimulation device and the second program-controlled information after parameter change are acquired. Thus, based on the vectorized distance value between the first program-controlled information and the second program-controlled information, the parameter change attribute of the second program-controlled information is determined. Furthermore, based on the parameter change attribute, it is determined whether to distribute the second program-controlled information to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program-controlled information. The technical solution of this embodiment quantitatively evaluates whether there is an anomaly or error in the changed second program-controlled information through the vectorized distance value between the first program-controlled information and the second program-controlled information before and after parameter change, so as to prompt the operator to perform secondary manual verification and confirmation, prevent situations such as human negligence and incorrect settings, and realize automatic anomaly detection of the electrical stimulation parameters changed by the electrical pulse stimulation device, improving the accuracy and safety of the program-controlled information of the electrical pulse stimulation device.
[0112] On the basis of the above device, optionally, the program-controlled information of the electrical pulse stimulation device includes at least one set of electrical stimulation program parameters, and each set of the electrical stimulation program parameters includes: program code, program execution ratio, at least one of frequency, amplitude, pulse width, impedance value corresponding to a corresponding electrode on a stimulation electrode connected to the electrical pulse stimulation device, program stimulation mode, and voltage multiplication coefficient.
[0113] On the basis of the above device, optionally, the program-controlled information anomaly detection device further includes: a parameter preprocessing module; the parameter preprocessing module includes:
[0114] A historical parameter acquisition unit for acquiring at least one set of historical program control information of the target user in a historical period;
[0115] A moment parameter calculation unit for calculating a frequency average value and a frequency variance based on each historical frequency in the at least one set of historical program control information; calculating an amplitude average value and an amplitude variance based on each historical amplitude; calculating a pulse width average value and a pulse width variance based on each of the historical pulse widths; calculating an impedance average value and an impedance variance based on each of the historical impedance values;
[0116] A voltage multiplication coefficient determination unit for determining a maximum voltage multiplication coefficient and a minimum voltage multiplication coefficient based on each historical voltage multiplication coefficient in the at least one set of historical program control information;
[0117] A normalization processing unit for respectively performing normalization processing on the frequency, amplitude, pulse width, and impedance values in the first program control information and the second program control information based on the frequency average value and the frequency variance, the amplitude average value and the amplitude variance, the pulse width average value and the pulse width variance, and the impedance average value and the impedance variance, to obtain the normalized frequency, amplitude, pulse width, and impedance values;
[0118] A scaling processing unit for respectively performing scaling processing on the voltage multiplication coefficients in the first program control information and the second program control information based on the maximum voltage multiplication coefficient and the minimum voltage multiplication coefficient, to obtain the scaled voltage multiplication coefficients.
[0119] Based on the above device, optionally, the parameter preprocessing module is further configured to perform impedance anomaly detection on each of the impedance values in the second program control information based on the impedance average value and the impedance variance by using the three-sigma principle; if there are abnormal impedance values, then remove each of the abnormal impedance values.
[0120] Based on the above device, optionally, the change attribute determination module 320 includes:
[0121] A first vector determination unit for performing vectorization processing on the first program control information to obtain a first feature vector;
[0122] A second vector determination unit for performing vectorization processing on the second program control information to obtain a second feature vector;
[0123] A change attribute determination unit for determining the parameter change attribute of the second program control information based on the vector distance value between the first feature vector and the second feature vector.
[0124] Based on the above device, optionally, the first vector determination unit includes:
[0125] A user attribute acquisition subunit for acquiring user attribute information of the target user; wherein, the user attribute information includes at least one of disease type information, gender information, and age information;
[0126] An attribute label mapping subunit for performing label mapping processing on the disease type information based on a first label mapping relationship to obtain a disease type label value, performing label mapping processing on the gender information based on a second label mapping relationship to obtain a gender label value, and performing label mapping processing on the age information based on a third label mapping relationship to obtain an age label value;
[0127] An attribute vector determination subunit for constructing a user attribute feature vector based on the disease type label value, the gender label value, and the age label value;
[0128] A stimulation mode label mapping subunit for performing label mapping processing on the program stimulation mode in each group of electrical stimulation program parameters of the first programming information based on a fourth label mapping relationship to obtain a first stimulation mode label value corresponding to each of the program stimulation modes;
[0129] A vector construction subunit for constructing a corresponding first program feature vector for the first programming information based on the program code, the program execution ratio, the frequency, the amplitude, the pulse width, the impedance value, and the first stimulation mode label value corresponding to the corresponding electrode in each group of the electrical stimulation program parameters;
[0130] A vector splicing subunit for sequentially splicing the user attribute feature vector and each of the first program feature vectors to obtain a first feature vector.
[0131] Based on the above device, optionally, a change attribute determination unit includes:
[0132] A distance value determination subunit for calculating the similarity between the first feature vector and the second feature vector based on a preset similarity algorithm to obtain a vector distance value;
[0133] A change attribute determination subunit for determining the parameter change attribute of the second programming information based on a comparison between the vector distance value and a preset similarity threshold.
[0134] Based on the above device, optionally, a programming information sending module 330 is specifically configured to, if the parameter change attribute of the second programming information is a normal parameter change attribute, send the second programming information to an electrical pulse stimulation device in the brain of the target user.
[0135] Based on the above device, optionally, the program control information sending module 330 is further configured to determine the abnormal parameter items in the second program control information and feedback parameter abnormality prompt information including the abnormal parameter items if the parameter change attribute of the second program control information is a parameter change abnormal attribute.
[0136] The program control information abnormality detection device provided by the embodiments of the present invention can execute the program control information abnormality detection method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0137] It should be noted that the various units and modules included in the above system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the embodiments of the present invention.
[0138] Figure 6 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 6 The block diagram of an exemplary electronic device 40 suitable for implementing the embodiment mode of the embodiment of the present invention is shown. Figure 6 The shown electronic device 40 is only an example and should not bring any limitation to the functions and usage scope of the embodiments of the present invention.
[0139] As Figure 6 shown, the electronic device 40 is presented in the form of a general-purpose computing device. The components of the electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).
[0140] The bus 403 represents one or more of several types of bus structures, including a memory bus or a memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0141] The electronic device 40 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 40, including volatile and non-volatile media, removable and non-removable media.
[0142] System memory 402 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Electronic device 40 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 can be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 6 not shown, commonly referred to as a "hard disk drive"). Although Figure 6 not shown in, a disk drive for reading and writing on removable non-volatile disks (such as a "floppy disk"), and an optical disk drive for reading and writing on removable non-volatile optical disks (such as CD-ROM, DVD-ROM or other optical media) can be provided. In these cases, each drive can be connected to bus 403 through one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
[0143] A program / utility 408 having a set (at least one) of program modules 407 can be stored, for example, in memory 402. Such program modules 407 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. Program modules 407 generally execute the functions and / or methods in the embodiments described in the present invention.
[0144] Electronic device 40 can also communicate with one or more external devices 409 (such as a keyboard, pointing device, display, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 40, and / or communicate with any device that enables the electronic device 40 to communicate with one or more other computing devices (such as a network card, modem, etc.). Such communication can be carried out through an input / output (I / O) interface 411. Also, electronic device 40 can further communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 412. As shown in the figure, network adapter 412 communicates with other modules of electronic device 40 through bus 403. It should be understood that although Figure 6 not shown in, other hardware and / or software modules can be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0145] The processing unit 401 executes various functional applications and page processing by running the programs stored in the system memory 402, for example, implementing the program control information anomaly detection method provided by the embodiments of the present invention.
[0146] Embodiments of the present invention also provide a storage medium containing computer-executable instructions. The computer-executable instructions are used to execute a program control information anomaly detection method when executed by a computer processor. The method includes:
[0147] When receiving a program control information change request corresponding to an electrical pulse stimulation device implanted in the brain of a target user, obtain the first program control information before the parameter change of the electrical pulse stimulation device and the second program control information after the parameter change;
[0148] Based on the vectorized distance value between the first program control information and the second program control information, determine the parameter change attribute of the second program control information;
[0149] Based on the parameter change attribute, determine whether to send the second program control information to the electrical pulse stimulation device in the brain of the target user, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second program control information.
[0150] The computer storage medium of the embodiments of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or combined with an instruction execution system, apparatus, or device.
[0151] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0152] The program code contained on a computer-readable medium can be transmitted by any appropriate medium, including - but not limited to - wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0153] The computer program code for performing the operations of the embodiments of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages - such as Java, Smalltalk, C++ - and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or, alternatively, can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0154] Figure 7 A schematic structural diagram of a medical system provided for an embodiment of the present application. The system includes: an implantable medical device 510, a display 520, a processor 530, and; the implantable medical device 510, the display 520, and the processor 530 can communicate with each other interactively. A memory is provided in the processor, and the memory stores a computer program. The processor is configured to execute the computer program and, when executing the computer program, implement a method for detecting abnormal programmed information.
[0155] Among them, the implantable medical device 510 at least includes an electrical pulse stimulation device implanted into the body of a target user and an electrode lead implanted into the brain of the target user. The implanted end of the electrode lead is provided with at least a plurality of electrode contacts, and the electrical pulse stimulation device is connected to the electrode lead.
[0156] A processor 520, configured to, when receiving a request for changing the programmed control information corresponding to an electrical pulse stimulation device implanted in the brain of a target user, obtain a first programmed control information before the change of the parameters of the electrical pulse stimulation device and a second programmed control information after the change of the parameters, perform an abnormal detection process of the electrical stimulation parameters on the second programmed control information by using the programmed control information abnormal detection method according to any one of the embodiments of the present invention, and when the parameter change attribute of the second programmed control information is a normal parameter change attribute, send the second programmed control information to the electrical pulse stimulation device in the brain of the target user, and display the first programmed control information and / or the second programmed control information by using the display;
[0157] A display 530, configured to display the first programmed control information and / or the second programmed control information.
[0158] In the technical solution of the embodiment of the present application, a medical system includes an implantable medical device, a display, and a processor. When the medical system is specifically applied, the processor, when receiving a request for changing the programmed control information corresponding to an electrical pulse stimulation device implanted in the brain of a target user, obtains a first programmed control information before the change of the parameters of the electrical pulse stimulation device and a second programmed control information after the change of the parameters; determines the parameter change attribute of the second programmed control information based on the vectorized distance value between the first programmed control information and the second programmed control information; and determines whether to send the second programmed control information to the electrical pulse stimulation device in the brain of the target user based on the parameter change attribute, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second programmed control information. Thus, the electrical stimulation parameters can be displayed on the display. In the technical solution of this embodiment, whether there is an abnormality or error in the changed second programmed control information is quantitatively evaluated through the vectorized distance value between the first programmed control information and the second programmed control information before and after the parameter change, so that the operator can be prompted to perform a secondary manual verification and confirmation, preventing situations such as human negligence and incorrect settings, and realizing automatic abnormal detection of the electrical stimulation parameters changed by the electrical pulse stimulation device, improving the accuracy and safety of the programmed control information of the electrical pulse stimulation device.
[0159] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments here. Various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for detecting abnormality of program-controlled information, characterized in that: include: When receiving a program control information change request corresponding to the electric pulse stimulation device implanted in the target user's brain, obtaining first program control information before the parameter change of the electric pulse stimulation device and second program control information after the parameter change; determining a parameter change attribute of the second program-controlled information based on a vectorized distance value between the first program-controlled information and the second program-controlled information; Based on the parameter change attribute, determine whether to send the second programmed information to the electrical pulse stimulation device in the target user's brain, so that the electrical pulse stimulation device performs electrical stimulation on the target user based on the second programmed information.
2. The method according to claim 1, characterized in that The programming information of the electric pulse stimulation device includes: at least one group of electric stimulation program parameters, each group of the electric stimulation program parameters includes: program code, program execution ratio, frequency, amplitude, pulse width, impedance value corresponding to the corresponding electrodes on the stimulation electrodes connected to the electric pulse stimulation device, program stimulation mode and at least one of the voltage multiplication coefficient.
3. The method according to claim 2, characterized in that The method further includes: preprocessing the first program-controlled information and the second program-controlled information, including: Acquire at least one set of historical program control information of the target user in a historical period; Based on each historical frequency in the at least one set of historical program control information, calculate the frequency average and frequency variance; based on each historical amplitude, calculate the amplitude average and amplitude variance; based on each historical pulse width, calculate the pulse width average and pulse width variance; based on each historical impedance value, calculate the impedance average and impedance variance; Determine a maximum value and a minimum value of the multiplication factor based on each historical multiplication factor in the at least one set of historical program control information; Based on the frequency average value and frequency variance, the amplitude average value and amplitude variance, the pulse width average value and pulse width variance, and the impedance average value and impedance variance, respectively, the frequency, amplitude, pulse width, and impedance values in the first program-controlled information and the second program-controlled information are standardized to obtain the standardized frequency, amplitude, pulse width, and impedance values; Based on the maximum value of the pressure multiplication coefficient and the minimum value of the pressure multiplication coefficient, the pressure multiplication coefficients in the first program control information and the second program control information are scaled to obtain scaled pressure multiplication coefficients.
4. The method according to claim 3, characterized in that The method further comprises: Using the three sigma principle, based on the impedance average value and the impedance variance, performing impedance anomaly detection on each of the impedance values in the second program control information; If there are abnormal impedance values, each of the abnormal impedance values is removed.
5. The method according to claim 2, characterized in that: The determining, based on the vectorized distance value between the first program-controlled information and the second program-controlled information, the parameter change attribute of the second program-controlled information includes: Performing vectorization processing on the first program-controlled information to obtain a first feature vector; performing vectorization processing on the second program-controlled information to obtain a second feature vector; Based on the vector distance value between the first feature vector and the second feature vector, a parameter change attribute of the second program control information is determined.
6. The method according to claim 5, characterized in that The vectorization processing of the first program-controlled information to obtain a first feature vector includes: Acquire user attribute information of the target user; wherein the user attribute information includes: at least one of disease type information, gender information and age information; Performing label mapping processing on the disease type information based on the first label mapping relationship to obtain a disease type label value, performing label mapping processing on the gender information based on the second label mapping relationship to obtain a gender label value, and performing label mapping processing on the age information based on the third label mapping relationship to obtain an age label value; Constructing a user attribute feature vector based on the disease type label value, the gender label value, and the age label value; Based on the fourth label mapping relationship, label mapping processing is performed on the program stimulation mode in each group of electrical stimulation program parameters of the first program control information to obtain a first stimulation mode label value corresponding to each of the program stimulation modes; For the first program control information, based on the program code in each group of the electrical stimulation program parameters, the program execution ratio, the frequency, the amplitude, the pulse width, the impedance value corresponding to the corresponding electrode, and the first stimulation mode label value, a corresponding first program feature vector is constructed; The user attribute feature vector and each of the first program feature vectors are sequentially concatenated to obtain a first feature vector.
7. The method according to claim 5, characterized in that The determining the parameter change attribute of the second program-controlled information based on the vector distance value between the first feature vector and the second feature vector further includes: Calculate the similarity between the first feature vector and the second feature vector based on a preset similarity algorithm to obtain a vector distance value; Based on the comparison between the vector distance value and a preset similarity threshold, a parameter change attribute of the second program control information is determined.
8. The method according to claim 1, characterized in that The determining whether to send the second program-controlled information to the electrical pulse stimulation device of the target user's brain based on the parameter change attribute includes: If the parameter change attribute of the second program-controlled information is a normal parameter change attribute, the second program-controlled information is sent to the electrical pulse stimulation device in the brain of the target user.
9. The method according to claim 8, characterized in that The method further comprises: If the parameter change attribute of the second program control information is a parameter change abnormal attribute, an abnormal parameter item in the second program control information is determined, and parameter abnormality prompt information including the abnormal parameter item is fed back.
10. A program-controlled information anomaly detection device, characterized in that: The device includes: A program control information acquisition module, for, when receiving a program control information change request corresponding to the electric pulse stimulation device implanted in the target user's brain, acquiring first program control information before the parameters of the electric pulse stimulation device are changed and second program control information after the parameters are changed; a change attribute determination module, configured to determine a parameter change attribute of the second program control information based on a vectorized distance value between the first program control information and the second program control information; The program control information sending module is used to determine whether to send the second program control information to the electric pulse stimulation device in the brain of the target user based on the parameter change attribute, so that the electric pulse stimulation device can electrically stimulate the target user based on the second program control information.
11. A medical system, characterized in that: The medical system includes: An implantable medical device, the implantable medical device at least comprising an electric pulse stimulation device implanted in a target user's body and an electrode wire implanted in the target user's brain, the implanted end of the electrode wire being provided with at least a plurality of electrode contacts, the electric pulse stimulation device being connected to the electrode wire; A processor configured to, when receiving a programming information change request corresponding to the electric pulse stimulation device implanted in the target user's brain, obtain the first programming information before the parameter change of the electric pulse stimulation device and the second programming information after the parameter change, execute the programming information abnormality detection method described in any one of claims 1 to 9 to perform electrical stimulation parameter abnormality detection processing on the second programming information, and when the parameter change attribute of the second programming information is a normal parameter change attribute, send the second programming information to the electric pulse stimulation device in the target user's brain, and display the first programming information and / or the second programming information on a display; A display, used for displaying the first program-controlled information and / or the second program-controlled information.
12. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the program-controlled information anomaly detection method described in any one of claims 1-9.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the program-controlled information anomaly detection method according to any one of claims 1 to 9 when executed.
14. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the method for detecting abnormalities in program-controlled information according to any one of claims 1 to 9.