System and Method for Ensuring a Consistent Connection of Electrodes to a Replacement Implantable Medical Device

20210353948 · 2021-11-18

    Inventors

    Cpc classification

    International classification

    Abstract

    Implantable medical devices (IMD) such as those used in Deep Brain Stimulation application are commonly replaced when the device's useful life expires. At the time of replacement, the electrodes that were connected to the initial IMD are typically reused with the replacement IMD. It is desirable for the replacement IMD to utilize the stimulation parameters that were being utilized to provide stimulation in the initial IMD, but it is important that the electrodes be connected to the replacement IMD in a similar manner as they were connected to the initial IMD if stimulation parameters are reused. A connected electrode profile that includes measurements of electrical parameters associated with the electrodes can be generated in the initial IMD and the replacement IMD, and the profiles can be compared to determine whether the electrodes are connected in a similar manner in the replacement IMD as they were in the initial IMD.

    Claims

    1. A system, comprising: an external device configured to communicate with a first implantable medical device and a second implantable medical device; and control circuitry in the external device configured to: receive a first profile indicative of how a plurality of electrodes were connected to the first implantable medical device; receive a second profile indicative of how the plurality of electrodes are connected to the second implantable medical device; compare the first and second profiles; and based on the comparison, determine whether or not the plurality of electrodes are connected to the second implantable medical device in a same manner as the plurality of electrodes were connected to the first implantable medical device.

    2. The system of claim 1, wherein the external device is configured to wirelessly receive the first profile from the first implantable medical device, and to wirelessly receive the second profile from the second implantable medical device.

    3. The system of claim 1, wherein the first and second profiles comprise measurements of electrical parameters associated with the plurality of electrodes.

    4. The system of claim 3, wherein the electrical parameters in the first profile comprise a measure of impedance between one or more of the plurality of electrodes and a case of the first implantable medical device, and wherein the electrical parameters in the second profile comprise a measure of impedance between one or more of the plurality of electrodes and a case of the second implantable medical device.

    5. The system of claim 3, wherein the electrical parameters comprise a measure of impedance between one or more pairs of the plurality of electrodes, or an electric potential that is induced at one or more of the plurality of electrodes when a current is passed through one or more of the plurality of electrodes.

    6. The system of claim 1, wherein the control circuitry is further configured to enable the second implantable medical device to provide stimulation when the control circuitry determines that the plurality of electrodes are connected to the second implantable medical device in the same manner as the plurality of electrodes were connected to the first implantable medical device.

    7. The system of claim 6, wherein the control circuitry is further configured to communicate stimulation parameters used by the first implantable medical device to the second implantable medical device.

    8. The system of claim 1, wherein the control circuitry is further configured, if the plurality of electrodes are not connected to the second implantable medical device in a same manner as the plurality of electrodes were connected to the first implantable medical device, to identify a mismatch between the connection of the plurality of electrodes to the second implantable medical device and the connection of the plurality of electrodes to the first implantable medical device, wherein the external device is configured to present the identified mismatch to a user.

    9. The system of claim 8, wherein the control circuitry is further configured to adjust stimulation parameters used by the second implantable medical device based on the identified mismatch.

    10. The system of claim 1, wherein the plurality of electrodes are positioned on one or more electrode leads, wherein each of the plurality of electrode leads comprises one or more lead connectors that are each insertable into ports in the first and second implantable medical device.

    11. A method for analyzing the connection of a plurality of electrodes to implantable medical devices, the method comprising: receiving at an external device a first profile indicative of how the plurality of electrodes were connected to a first implantable medical device; receive at the external device a second profile indicative of how the plurality of electrodes are connected to a second implantable medical device; comparing the first and second profiles at the external device; and based on the comparison, determining at the external device whether or not the plurality of electrodes are connected to the second implantable medical device in a same manner as the plurality of electrodes were connected to the first implantable medical device.

    12. The method of claim 11, wherein the external device wirelessly receives the first profile from the first implantable medical device, and wirelessly receives the second profile from the second implantable medical device.

    13. The method of claim 11, wherein the first and second profiles comprise measurements of electrical parameters associated with the plurality of electrodes.

    14. The method of claim 13, wherein the electrical parameters in the first profile comprise a measure of impedance between one or more of the plurality of electrodes and a case of the first implantable medical device, and wherein the electrical parameters in the second profile comprise a measure of impedance between one or more of the plurality of electrodes and a case of the second implantable medical device.

    15. The method of claim 13, wherein the electrical parameters comprise a measure of impedance between one or more pairs of the plurality of electrodes.

    16. The method of claim 13, wherein the electrical parameters comprise an electric potential that is induced at one or more of the plurality of electrodes when a current is passed through one or more of the plurality of electrodes.

    17. The method of claim 11, further comprising the external device enabling the second implantable medical device to provide stimulation when the plurality of electrodes are connected to the second implantable medical device in the same manner as the plurality of electrodes were connected to the first implantable medical device.

    18. The method of claim 17, further comprising communicating from the external device stimulation parameters used by the first implantable medical device to the second implantable medical device.

    19. The method of claim 11, further comprising, if the plurality of electrodes are not connected to the second implantable medical device in a same manner as the plurality of electrodes were connected to the first implantable medical device, identifying in the external device a mismatch between the connection of the plurality of electrodes to the second implantable medical device and the connection of the plurality of electrodes to the first implantable medical device, and presenting the identified mismatch to a user via the external device.

    20. The method of claim 19, further comprising adjusting stimulation parameters used by the second implantable medical device based on the identified mismatch.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0033] FIG. 1 shows an implantable pulse generator (IPG) with different electrode leads.

    [0034] FIG. 2 shows a cross section of the IPG of FIG. 1 as implanted in a patient, as well as external devices that support the IPG, including an external charger and external controller.

    [0035] FIG. 3 shows implantation of the IPG in a patient in a Deep Brain Stimulation (DBS) application.

    [0036] FIG. 4 shows components of a clinician's programmer system, including components for communicating with an IPG.

    [0037] FIG. 5 shows an example of Digital-to-Analog Converter circuitry for generating electrical stimulation at selected electrodes connected to an IPG in accordance with an aspect of the disclosure.

    [0038] FIG. 6 shows an example of the physical connection between electrode nodes in an IPG's current generation circuitry and corresponding electrodes in accordance with an aspect of the disclosure.

    [0039] FIG. 7 shows an example of the replacement of an IPG with a new IPG and the reconnection of previously-implanted electrode leads in accordance with an aspect of the disclosure.

    [0040] FIGS. 8-10 show examples of the electrode leads shown in FIG. 7 being connected to a replacement IPG in a manner that is not consistent with their connection to the IPG shown in FIG. 7 in accordance with an aspect of the disclosure.

    [0041] FIGS. 11A-11C show the configuration of an IPG's current generation circuitry in order to measure monopolar impedance, bipolar impedance, and induced field potential, which may be used in generating connected electrode profiles in accordance with an aspect of the disclosure.

    [0042] FIG. 12 shows an example of the measurements of electrical properties that may be included in a connected electrode profile in accordance with an aspect of the disclosure.

    [0043] FIG. 13 is a flowchart that shows a process for evaluating the connection of electrodes in a replacement IPG in the context of the use of stimulation parameters from a previously-implanted IPG in accordance with an aspect of the disclosure.

    [0044] FIG. 14 shows a representative computing environment on which software that provides a process for evaluating the connection of electrodes in a replacement IPG may be executed in accordance with an aspect of the disclosure.

    DETAILED DESCRIPTION

    [0045] Current generation circuitry 70 in the IPG 10 includes one or more Digital-to-Analog Converters (DACs) 72 for receiving the stimulation parameters and for forming the prescribed pulses at the selected electrodes. FIG. 5 shows a simple example of DAC circuitry 72 as used to provide a current pulse between selected electrodes E1 and E2, through a patient's tissue, R. DAC circuitry 72 as shown comprises two portions, denoted as PDAC 72p and NDAC 72n. These portions of DAC circuitry 72 are so named due to the polarity of the transistors used to build them and the polarity of the current they provide. Thus, PDAC 72p is formed from P-channel transistors and is used to source a current +I to the patient's tissue R via a selected electrode E1 operating as an anode. NDAC 72n is formed of N-channel transistors and is used to sink current −I from the patient's tissue via a selected electrode E2 operating as a cathode. It is important that current sourced to the tissue at any given time equal that sunk from the tissue to prevent charge from building in the tissue, although more than one anode electrode and more than one cathode electrode may be operable at a given time.

    [0046] PDAC 72p and NDAC 72n receive digital control signals, denoted <Pstim> and <Nstim> respectively, to generate the prescribed pulses with the prescribed timing in accordance with the stimulation parameters. In the example shown, PDAC 72p and NDAC 72n comprise current sources, and in particular include current-mirrored transistors for mirroring (amplifying) a reference current Iref to produce pulses with an amplitude (A). PDAC 72p and NDAC 72n could however also comprise constant voltage sources. Control signals <Pstim> and <Nstim> also prescribe the timing of the pulses, including their duration (D) and frequency (f). The PDAC 72p and NDAC 72n along with the intervening tissue R complete a circuit between a power supply +V and ground. The compliance voltage +V is adjustable to an optimal level to ensure that current pulses of a prescribed amplitude can be produced without unnecessarily wasting IPG power.

    [0047] The DAC circuitry 72 (PDAC 72p and NDAC 72n) may be dedicated at each of the electrodes, and thus may be activated only when its associated electrode is to be selected as an anode or cathode. See, e.g., U.S. Pat. No. 6,181,969. Alternatively, one or more DACs (or one or more current sources within a DAC) may be distributed to a selected electrode by a switch matrix (not shown), in which case optional control signals <Psel> and <Nsel> would be used to control the switch matrix and establish the connection between the selected electrode and the PDAC 72p or NDAC 72n. See, e.g., U.S. Pat. No. 8,606,362. DAC circuitry 72 may also use a combination of these dedicated and distributed approaches. See, e.g., U.S. Pat. No. 8,620,436.

    [0048] As shown, the current I is routed from the PDAC 72p to electrode node E1′ (a node in the IPG 10's current generation circuitry 70 that is coupled to electrode E1 and is differentiated from electrode E1 by the prime designator). From electrode node E1′, the current I flows through a blocking capacitor C1 to the electrode E1. The NDAC 72n pulls the current I through the patient's tissue R from electrode E2 through the blocking capacitor C2 and to the electrode node E2′.

    [0049] FIG. 6 illustrates an example of the physical connection of the electrode nodes 74 in the IPG 10's current generation circuitry 70 with the lead-based electrodes 16. In the illustrated example, the IPG 10 supports 32 lead-based electrodes 16 although the number of electrodes can vary. Each electrode node 74 is coupled to a corresponding contact 76 in one of the IPG 10's connector blocks 22 through a blocking capacitor 78. For example, electrode node E1′ is coupled to contact E1″ in the connector block labeled as port A through blocking capacitor C1. Each electrode 16 is coupled to a contact in its lead connector 20, which lead connector contact is coupled to a corresponding contact 76 in the connector block 22 in which the lead connector 20 is inserted.

    [0050] In the example shown, three different leads are coupled to the IPG 10: a 16-electrode lead 18-1 and two eight-electrode leads 18-2 and 18-3. Lead 18-1's lead connectors 20-1-1 and 20-1-2 are inserted into the connector blocks 22 associated with ports A and B, respectively, lead 18-2's lead connector 20-2 is inserted into the connector block 22 associated with port C, and lead 18-3's lead connector 20-3 is inserted into the connector block 22 associated with port D. Thus, lead 18-1's electrodes are coupled to electrode nodes E1′-E16′, lead 18-2's electrodes are coupled to electrode nodes E17′-E24′, and lead 18-3's electrodes are coupled to electrode nodes E25′-E32′. Accordingly, stimulation supplied to electrode nodes E1′-E32′ in accordance with the defined stimulation parameters is routed to corresponding electrodes E1-E32. The illustrated electrode arrangement is provided as an example, and, as noted above, the number of electrodes and the configuration of the current generation circuitry 70 and connector blocks 22 is application-specific and can vary between different IPGs 10.

    [0051] A typical IPG 10 used in a DBS application may have a two to three year replacement interval. Given the seriousness of the procedure for lead implantation in the brain, when the IPG 10 is replaced, the initial leads 18 are typically reused with the replacement IPG 10′. As illustrated in FIG. 7, this process typically involves removing the lead connectors 20 from the connector blocks 22 in the IPG 10 and inserting the lead connectors 20 in the connector blocks 22 in the replacement IPG 10′. If the replacement IPG 10′ does not support the lead connectors 20 of the implanted leads 18 (e.g., the replacement IPG 10′ is a newer generation device with a different type of connector block 22 or is manufactured by a different manufacturer than the IPG 10), an adapter may be utilized to convert the lead connectors 20 to the type of lead connector that is supported by the replacement IPG 10′. The IPG 10 and the replacement IPG 10′ may also be referred to as the initial or prior IPG 10 and the current IPG 10′, respectively. In addition, both the IPG 10 and the replacement IPG 10′ may be referred to as either an implanted (or previously implanted) or an implantable medical device.

    [0052] It is desirable to transfer the stimulation parameters that define the therapy that was being provided by the IPG 10 to the replacement IPG 10′ at the time of replacement such that consistent therapy can be provided. The stimulation parameters are stored in a memory in the IPG 10 and can be transferred to an external device such as the CP computer 202 via communication link 92 and relayed to the replacement IPG 10′ via the communication link 92′. The stimulation parameters may alternatively be communicated directly from the IPG 10 to the replacement IPG 10′ via the IPG-to-IPG communication link 93. In another embodiment, the stimulation parameters may be stored in a patient profile on an external device such as the CP computer 202 and may be communicated directly to the replacement IPG 10′ via the communication link 92′. Communications on links 92, 92′, and 93 can occur via magnetic inductive coupling or short-range RF telemetry as described above.

    [0053] Using the stimulation parameters received from the IPG 10, the replacement IPG 10′ can provide the same therapy that was being provided by the IPG 10. It is obviously important, though, that stimulation be directed to the same electrodes that were used by the IPG 10. In this regard, it is important to understand how the electrodes 16 are connected to the current generation circuitry in the replacement IPG 10′.

    [0054] FIG. 8 illustrates an example replacement IPG 10′ that has the same electrode node 74 to contact 76 configuration as the IPG 10 shown in FIG. 6. However, at the time the replacement IPG 10′ is implanted, the lead connectors 20-2 and 20-3 are swapped as compared to their previous connection to IPG 10. Specifically, connector 20-2 is inserted in port D (as opposed to port C) and connector 20-3 is inserted in port C (as opposed to port D). As a result, if the transferred stimulation parameters are utilized in IPG 10′, stimulation that is intended for electrodes E17-E24 is routed to electrodes E25-E32 and stimulation intended for electrodes E25-E32 is routed to electrodes E17-E24. These electrodes, which are positioned on different leads 18, may be positioned in very different locations in the brain. As a result, the stimulation parameters that provided effective stimulation in IPG 10 may be entirely ineffective given the inconsistent connection of the leads 18 to IPG 10′ or, even worse, may cause dangerous side effects. While inconsistent lead connector insertion in a replacement IPG 10′ can occur as a result of user error even when the replacement IPG 10′ matches the replaced IPG 10, the problem is exacerbated when the replacement IPG 10′ is of a different type than the replaced IPG 10.

    [0055] FIG. 9 illustrates an example replacement IPG 10′ in which the lead ports 8 are differently labeled than in the IPG 10. Specifically, the lead ports 8 in the replacement IPG 10′ are labeled 1-4 as opposed to the A-D labels in the IPG 10. Moreover, the layout of the ports 8 in the IPG 10′ doesn't match that of the IPG 10 (i.e., port 3 is in the position of port B and port 2 is in the position of port C). Consequently, the lead connectors 20-1-2 and 20-2 are swapped as compared to the correct connection. As a result, if the transferred stimulation parameters are utilized in IPG 10′, stimulation that is intended for electrodes E9-E16 is routed to electrodes E17-E24 and stimulation intended for electrodes E17-E24 is routed to electrodes E9-E16. As described above, this can have undesirable consequences.

    [0056] FIG. 10 illustrates an example replacement IPG 10′ having two 16-contact connector blocks 22′ as opposed to four eight-contact connector blocks 22. Due to the different connector block arrangement, adapters 19 are used to convert the lead connectors 20 to the lead connectors 20′ that are compliant with the connector blocks 22′. Due to the internal wiring in the adapters 19, the lead connectors 20 in each adapter are swapped as compared to the correct connection. As a result, if the transferred stimulation parameters are utilized in IPG 10′, stimulation that is intended for electrodes E1-E8 is routed to electrodes E9-E16 and stimulation intended for electrodes E9-E16 is routed to electrodes E1-E8. Similarly, stimulation that is intended for electrodes E17-E24 is routed to electrodes E25-E32 and stimulation intended for electrodes E25-E32 is routed to electrodes E17-E24. Again, this can have undesirable consequences.

    [0057] As can be seen from these examples, when stimulation parameters from an IPG 10 are used to mimic the stimulation in a replacement IPG 10′, it is important to verify that the connection of the leads 18 to the IPG 10′ is consistent with the stimulation parameters, or, alternatively, to alter the stimulation parameters based on the connection of the leads 18 to the replacement IPG 10′. The inventors have determined that various electrical parameters can be measured at the electrode nodes 74 in the IPG 10 to create an initial connected electrode profile of the connected electrodes. Corresponding measurements can be taken in the replacement IPG 10′ to create a replacement connected electrode profile of its connected electrodes. The initial connected electrode profile and the replacement connected electrode profile can then be compared to determine whether the electrodes 16 have been connected to the replacement IPG 10′ in a manner that is consistent with their connection to the IPG 10.

    [0058] FIGS. 11A-11C illustrate DAC circuitry as configured to make different types of measurements that can be included in the connected electrode profiles. The DAC circuitry in these illustrations can be implemented in the same or similar manner in both the initial IPG 10 and the replacement IPG 10′ and therefore reference to the IPG 10 applies equally to the IPG 10′. FIG. 11A shows the DAC circuitry 72 as configured to provide a current pulse between selected electrode E1 and the IPG 10's case 12, which can be configured as an electrode. Measurement circuitry in the IPG 10 is configured to measure the voltage between selected nodes. In FIG. 11A, the measurement circuitry is configured such that the voltage V1′ between electrode nodes E1′ and EC′ is measured. U.S. Pat. No. 9,061,140, which is incorporated herein by reference in its entirety, describes measurement circuitry and a corresponding measurement technique that can be utilized to remove the voltage across the blocking capacitors (C1 and CC) from the V1′ measurement, thus providing the voltage V1 between electrodes E1 and EC. Using the measured voltage V1 and the known current I, the impedance R1 between electrodes E1 and EC can be calculated as R1=V1/I. While the impedance can be converted to units of resistance, a common current can be utilized for all measurements, and the measure of impedance of different electrodes can be specified in terms of the measured voltage drop. This type of measurement of the impedance between a lead-based electrode 16 and the IPG 10's case can be described as monopolar impedance, and such monopolar impedance measurements can be obtained for each of the lead-based electrodes 16 (preferably using a common stimulation current or voltage for all measurements). The monopolar impedance measurement for a particular electrode is generally a function of the properties of the electrode (e.g., the electrode's physical size, etc.) and the electrical properties of the tissue between the electrode and the IPG's case. Because these properties vary from electrode to electrode, monopolar impedance measurements can form a portion of the connected electrode profiles that enable the different electrodes to be distinguished from each other.

    [0059] FIG. 11B shows DAC circuitry 72 as configured to provide a current pulse between selected electrodes E1 and E2, through the patient's tissue, R. This arrangement is substantially similar to the arrangement shown in FIG. 11A except a lead-based electrode 16 is selected to operate as the cathode rather than the IPG 10's case 12. The impedance measurement can be obtained in the same manner as described above by selecting the active anode and cathode electrode nodes in the measurement circuitry. In the specific example illustrated in FIG. 11B, the impedance R1,2 is measured between electrodes E1 and E2. As with monopolar impedance measurements, while the impedance can be converted to units of resistance, a common current can be utilized for all measurements, and the measure of impedance between different electrodes can be specified in terms of the measured voltage drop. Such bipolar impedance measurements can be collected for each pair of electrodes (preferably using a common current or voltage amplitude for each). In one embodiment, the impedance between a pair of electrodes can be assumed to be equal regardless of the polarity of the electrodes (i.e., regardless of which electrode acts as the cathode and which acts as the anode), thus reducing the number of impedance measurements by one-half. Alternatively, the bipolar impedance measurements can be collected for both polarity arrangements for each electrode pair. The bipolar impedance measurement for a particular electrode pair is generally a function of the properties of the electrodes (e.g., the electrodes' physical size, etc.), the electrical properties of the tissue between the electrodes, and the distance between the electrodes (which has much more bearing on the bipolar impedance measurement than the distance between any electrode and the IPG 10's case in the monopolar impedance measurements). Because these properties vary for different electrode pairs, bipolar impedance measurements can form another portion of the connected electrode profiles that enable the different electrodes to be distinguished from each other.

    [0060] FIG. 11C shows DAC circuitry 72 as configured to provide a current pulse between electrode E1 and the IPG 10's case 12 (EC) in the same manner as described above with respect to FIG. 11A. However, in FIG. 11C, the measurement circuitry is configured to measure the voltage at other electrodes (e.g., electrode E4 in the configuration illustrated in FIG. 11C) including those that are not used for stimulation. During a stimulation pulse (between E1 and EC in the configuration illustrated in FIG. 11C), an electric field 150 is generated in the patient's tissue, R. The field 150 is strongest nearest to the stimulating electrode, and its strength decreases with increasing distance from the stimulating electrode. As a result, the measurement of a voltage between an electrode (e.g., electrode E4) and a reference voltage (e.g., a ground reference) provides an indication of the distance between the stimulating electrode and the electrode at which the measurement was taken. In FIG. 11C, the voltage at electrode E4 couples through the capacitor C4, and the induced voltage measurement V1,4 is measured between the electrode node E4′ and a ground reference node. Induced voltage measurements can be obtained for each of the electrodes (e.g., at each of the electrodes when stimulation is between electrode E1 and the case 12, at each of the electrodes when stimulation is between electrode E2 and the case 12, and so on). While it is not strictly necessary, in a preferred embodiment, the IPG 10's case 12 is selected as one of the stimulating electrodes and the selected amplitude of stimulation is held constant for the collection of all of the induced field potential measurements. Selection of the case 12 as one of the stimulating electrodes provides a cleaner induced field potential data set as its distance from the lead-based electrodes 16 avoids any interference that may otherwise be present were two lead-based electrodes 16 used as stimulating electrodes. The induced field potential measurements can be obtained at any point during the stimulation pulse. Because the voltage that is induced at an electrode differs as a result of its relationship to the stimulating electrode, such induced field potential measurements can form yet another portion of the connected electrode profiles that enable the different electrodes to be distinguished from each other.

    [0061] FIG. 12 illustrates an example of a connected electrode profile. In the illustrated example, the connected electrode profile includes monopolar impedance, bipolar impedance, and induced field potential measurements for the electrodes connected to an IPG 10. The monopolar impedance data is illustrated as a 1×n matrix of Rx measurements where n is the number of electrodes (32 in the example shown) and Rx is the measured monopolar impedance for electrode x. The bipolar impedance data is illustrated as a n×n matrix with Rx,y measurements in the upper-right triangle of the matrix where Rx,y is the measured bipolar impedance between electrode x acting as an anode and electrode y acting as a cathode. The measurements on the matrix diagonal are listed as ‘0’ because they correspond to the intersection of a single electrode operating as an anode and a cathode. The measurements in the lower-left triangle are not recorded in the illustrated bipolar impedance measurements because they correspond to a measurement in the upper-right triangle but with the same pair of electrodes operating at different polarities. While this approach reduces the number of measurements that must be taken and the amount of data to be stored as part of the profile, in another embodiment, bipolar impedance measurements could be recorded for both polarities for each pair of electrodes. The induced field potential data is illustrated as a n×n matrix of Vx,y measurements where Vx,y is the voltage induced at electrode y when electrode x acts as a stimulating electrode. The measurements on the matrix diagonal are not recorded because they correspond to the voltage at a particular electrode when the electrode itself operates as the stimulating electrode, although these measurements could be recorded in another embodiment. Unlike the bipolar impedance data, the induced field potential data includes two measurements for each pair of electrodes (i.e., measurements are recorded for both the field induced at electrode a when electrode b is stimulated and the field induced at electrode b when electrode a is stimulated), but in another embodiment a single measurement could be taken for each pair of electrodes. While the illustrated example of the connected electrode profile includes monopolar impedance, bipolar impedance, and induced field potential measurements, the connected electrode profile can include more or less data than what is shown. For example, the connected electrode profile could include measurements of additional electrical parameters or it could include some subset of the measurements illustrated in FIG. 12.

    [0062] In one embodiment, the measurements comprising the connected electrode profile may be routinely collected by the IPG 10 while the IPG 10 is implanted in the patient. For example, the electrical parameters of the electrodes that make up the connected electrode profile may be measured every hour, every eight hours, every day, every five days, or at any selected measurement interval. When the parameters are measured, the collected electrode profile is updated. For example, in one embodiment, the profile may comprise the most recent measurements of the electrical parameters. In another embodiment, the profile may comprise an average of a specified number of the most recent measurements (e.g., the five most recent measurements, the ten most recent measurements, the measurements taken within the last 30 days, etc.). When the connected electrode profile comprises an average of recent measurements, a statistical analysis may be utilized to determine which measurements should be included in the average. For example, a set of measurements that appears to contain a large number of statistical anomalies may not be included in the average that makes up the profile. Regardless of the manner in which the connected electrode profile is updated, it is stored within a memory in the IPG 10. While the electrical parameters that make up the connected electrode profile may change gradually over time such as during the formation of scar tissue around the leads 18, the electrical parameters are generally stable during any brief period and thus provide a way to distinguish the different electrodes from each other. It is important to note that the electrode identifiers in the profiles correspond to electrode node identifiers, which electrode node identifiers correspond to the stimulation parameters. For example, measurements labeled as E1 in the profiles correspond to measurements for the electrode that is connected to electrode node E1′, which electrode node E1′ receives stimulation directed to electrode E1 in the stimulation parameters.

    [0063] FIG. 13 is a flowchart that shows a process 300 for evaluating the connection of electrodes in a replacement IPG 10′ in the context of the use of stimulation parameters from an initial IPG 10. The process 300 is performed on an external device such as the CP computer 202, and it may be incorporated into CP software 96. Initially, the initial connected electrode profile is received from the initial IPG 10 (302). As described above, the initial connected electrode profile may be stored in a memory in the IPG 10. The initial connected electrode profile may be received in response to a request that is sent from the CP computer 202 to the IPG 10 (e.g., via communication link 92). Such a request may be generated as part of a process that is performed prior to, or immediately after, explantation of the IPG 10. The replacement connected electrode profile is then received from the replacement IPG 10′ (304) after the leads 18 are connected to the replacement IPG 10′. In one embodiment, the measurements that comprise the replacement connected electrode profile may be made by the replacement IPG 10′ as part of its initialization process (i.e., without a request from the external device). In another embodiment, the measurements that comprise the replacement connected electrode profile may be made in response to a request that is sent from the CP computer 202 to the IPG 10′ (e.g., via communication link 92′). Such a request may specify the information that should be included in the replacement connected electrode profile, which may be determined based on the information in the initial connected electrode profile. For example, if the initial connected electrode profile includes measurements for a first electrical parameter but omits measurements for a second electrical parameter, the request can specify that measurements should be provided for the first electrical parameter but not the second electrical parameter. While the initial connected electrode profile may include an average of measurements that are taken over a period of time as described above, the replacement connected electrode profile will typically comprise a single set of measurements or an average of a relatively limited number of sets of measurements.

    [0064] The initial and replacement connected electrode profiles are then compared to evaluate their agreement (306). The profiles may be compared by computing one or more measures of their correlation. For example, corresponding portions of the profiles (e.g., portions corresponding to the same groups of electrode nodes) may be analyzed using a function such as the Pearson Correlation function. For example, the Pearson coefficient may be calculated for the induced field potential measurements associated with corresponding electrode nodes or groups of electrode nodes in the profiles. Because agreement between the profiles may be evaluated for various subgroups of the profiles, the measure(s) of agreement may be expressed as a matrix. For example, the calculated measure(s) of agreement between the profiles may be a matrix of Pearson coefficient values. While Pearson correlation coefficient values are described, other statistical measures of agreement may also be employed as will be understood. For example, the agreement values may be calculated as a matrix of raw comparisons of corresponding values between the profiles (e.g., the ratio of the difference between corresponding values to the value in the initial connected electrode profile). It will be understood that essentially any statistical measures that can be used to evaluate agreement between datasets can also be employed to evaluate the agreement between the profiles.

    [0065] Regardless of their specific form, the agreement measure(s) are evaluated to determine if the profiles indicate that the electrodes are connected to the replacement IPG 10′ in a similar manner in which they were connected to the IPG 10 (308). The electrodes are connected to the replacement IPG 10′ in a similar manner as they were connected to the IPG 10 if stimulation parameters used by the IPG 10 would result in stimulation being directed to the same electrodes in the IPG 10′ as it was in the IPG 10. In one embodiment, the measure(s) of agreement are compared to a threshold to determine whether the electrodes are connected in the similar manner. The threshold may be selectable by a user such as through the CP software 96. By way of example, Pearson coefficient values would be expected to be very near 1 if the electrodes are connected to the replacement IPG 10′ in a similar manner as the IPG 10. In one embodiment, the average and standard deviation of the agreement measures are evaluated to determine whether the electrodes are connected to the replacement IPG 10′ in a similar manner in which they were connected to the IPG 10. For example, the electrodes may be determined to be connected to the replacement IPG 10′ in a similar manner in which they were connected to the IPG 10 if the average of multiple agreement values exceeds an agreement threshold and the standard deviation of the multiple agreement thresholds is less than a variation threshold. The agreement measure(s) may also be utilized to determine a confidence value that is indicative of the level of confidence that the electrodes are connected to the replacement IPG 10′ in a similar manner in which they were connected to the IPG 10.

    [0066] If it is determined that the electrodes are connected to the replacement IPG 10′ in a similar manner in which they were connected to the IPG 10 (the “Yes” prong of 308), stimulation is enabled for the IPG 10′ using the stimulation parameters from the IPG 10 (310). Stimulation may be enabled by providing the stimulation parameters from the IPG 10 to the replacement IPG 10′ (e.g., via communication link 92′). Stimulation may also be enabled by communicating an adjustment to a setting in the replacement IPG 10′ that prevents stimulation using stimulation parameters transferred from the IPG 10 until the process 300 is successfully performed. In addition to enabling stimulation, the process 300 may notify the user that the electrodes were determined to be connected to the IPG 10′ in a similar manner as they were connected to the IPG 10. For example, the process 300 may present the determination and the determined confidence value via the user interface 94.

    [0067] If it is determined that the electrodes are connected to the replacement IPG 10′ in a different manner than they were connected to the IPG 10 (the “No” prong of 308), the mismatch is identified (312). The mismatch between the connection of electrodes to the initial IPG 10 and the connection of electrodes to the IPG 10′ can be identified from the agreement values. For example, as illustrated above, mismatch typically occurs across groups of electrodes such as when the lead connectors 20 corresponding to those groups of electrodes are swapped. The agreement values will typically indicate disagreement within sections of the profiles corresponding to these groups of electrodes. The identification of the mismatch can utilize knowledge of the types of connected electrode leads, and, more specifically, knowledge of those lead types' lead connectors 20. This type of lead information is typically entered in the CP software 96 and it is useful in verifying electrode groups (e.g., groups that may have been swapped).

    [0068] An assumed mismatch can be verified by swapping the values in the replacement connected electrode profile based on the assumed mismatch and recalculating the agreement values. For example, if it is assumed that electrodes E1-E8 have been swapped with electrodes E9-E16, values corresponding to these groups of electrodes in the replacement connected electrode profile can be swapped and the agreement values can be recalculated based on the swapped values. If the recalculated agreement values satisfy the threshold, the assumed mismatch was correct. Once one or more mismatches are identified, they are presented to the user (e.g., via user interface 94) (314). In one embodiment, the presentation of the identified mismatch may include an instruction to swap the appropriate lead connectors 20. In another embodiment, the presentation of the mismatch may present the user with the option to allow the CP software to modify the stimulation parameters from the IPG 10 to match the connection of the electrodes to the IPG 10′. For example, if electrodes E1-E8 have been swapped with electrodes E9-E16, the stimulation parameters from the IPG 10 can be adjusted to redefine stimulation for E1 as stimulation for E9, and so on. In yet another embodiment, the user may be presented with the option to either reconnect the lead connectors 20 or to allow the CP software 96 to modify the stimulation parameters. If the user selects to allow the stimulation parameters to be modified to account for the mismatch (316), the parameters are updated and stimulation is enabled (310). If the user selects to physically swap the mismatched lead connectors (318), a new replacement electrode profile may be acquired from the replacement IPG 10′ (304) after the electrode leads are reconnected and the process 300 may be repeated to verify that the electrodes have been connected in the same way in which they were connected to the IPG 10.

    [0069] While process 300 has been described in terms of its performance on CP computer 202, it will be understood that the process 300 could also be performed on a different external device such as controller 40. In addition, the process 300 could also be modified such that it could be implemented on the replacement IPG 10′. For example, the replacement IPG 10′ could receive the initial connected electrode profile either directly from the IPG 10 or from an external device that had received the connected electrode profile, collect the measurements that comprise the replacement connected electrode profile, compare the replacement profile with the initial profile to determine whether the electrodes are connected in a similar manner as they were connected to the IPG 10, and either enable stimulation or identify a mismatch in the connection of electrodes to the IPG 10′. Just as with the CP computer 202, the IPG 10′ could present an indication of the mismatch (e.g., via communication to an external device) or update the stimulation parameters received from the IPG 10 in accordance with the identified mismatch.

    [0070] FIG. 14 illustrates the various components of an example CP computer 202 that may be configured to execute CP software 96 that incorporates the process 300. The CP computer 202 can include the processor 222, memory 224, storage 220, graphics hardware 226, communication interface 230, user interface adapter 232 and display adapter 234—all of which may be coupled via system bus or backplane 236. Memory 224 may include one or more different types of media (typically solid-state) used by the processor 222 and graphics hardware 226. For example, memory 224 may include memory cache, read-only memory (ROM), and/or random access memory (RAM). Storage 220 may store media, computer program instructions or software (e.g., CP software 96), preference information, device profile information, and any other suitable data. Storage 220 may include one or more non-transitory computer-readable storage mediums including, for example, magnetic disks (fixed, floppy, and removable) and tape, optical media such as CD-ROMs and digital video disks (DVDs), and semiconductor memory devices such as Electrically Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), and USB or thumb drive. Memory 224 and storage 220 may be used to tangibly retain computer program instructions or code organized into one or more modules and written in any desired computer programming language. Communication interface 230 (which may comprise, for example, the ports 206 or 208) may be used to connect the CP computer 202 to a network. Communications directed to the CP computer 202 may be passed through a protective firewall 238. Such communications may be interpreted via web interface 240 or voice communications interface 242. Illustrative networks include, but are not limited to: a local network such as a USB network; a business' local area network; or a wide area network such as the Internet. User interface adapter 232 may be used to connect a keyboard 244, microphone 246, pointer device 248, speaker 250 and other user interface devices such as a touch-pad and/or a touch screen (not shown). Display adapter 234 may be used to connect display 204 and printer 252.

    [0071] Processor 222 may include any programmable control device. Processor 222 may also be implemented as a custom designed circuit that may be embodied in hardware devices such as application specific integrated circuits (ASICs) and field programmable gate arrays (FPGAs). The CP computer 202 may have resident thereon any desired operating system.

    [0072] While the CP system 200 has been described and illustrated as communicating directly with the IPG 10, the CP system 200 may additionally or alternatively be configured to communicate with different types of neurostimulators. For example, the CP system 200 may interface with an external trial stimulator that mimics the operation of the IPG 10 but that is positioned outside of the body to evaluate therapies during a trial phase. As will be understood, the CP software 96 may be stored on a medium such as a CD or a USB drive, pre-loaded on a computing device such as the CP computer 202, or made available for download from a program repository via a network connection. Moreover, while process 300 has been described as being performed on an external device, certain portions of the process 300 may instead be performed by the IPG 10′ itself. In that regard, the IPG 10′ may similar components to those described with respect to CP computer 202, although various components will obviously be omitted or adapted for use in an implantable device.

    [0073] Although particular embodiments have been shown and described, it should be understood that the above discussion is not intended to limit the present disclosure to these embodiments. It will be obvious to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the present disclosure. Thus, the present disclosure is intended to cover alternatives, modifications, and equivalents that may fall within the spirit and scope of the claims.