CN118199779A - Time setting method of implantable device and related device - Google Patents

Time setting method of implantable device and related device Download PDF

Info

Publication number
CN118199779A
CN118199779A CN202410290607.1A CN202410290607A CN118199779A CN 118199779 A CN118199779 A CN 118199779A CN 202410290607 A CN202410290607 A CN 202410290607A CN 118199779 A CN118199779 A CN 118199779A
Authority
CN
China
Prior art keywords
time
implantable device
implantable
equipment
program control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410290607.1A
Other languages
Chinese (zh)
Inventor
陈晶华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingyu Medical Technology Suzhou Co ltd
Original Assignee
Jingyu Medical Technology Suzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingyu Medical Technology Suzhou Co ltd filed Critical Jingyu Medical Technology Suzhou Co ltd
Priority to CN202410290607.1A priority Critical patent/CN118199779A/en
Publication of CN118199779A publication Critical patent/CN118199779A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/3605Implantable neurostimulators for stimulating central or peripheral nerve system
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N1/00Electrotherapy; Circuits therefor
    • A61N1/18Applying electric currents by contact electrodes
    • A61N1/32Applying electric currents by contact electrodes alternating or intermittent currents
    • A61N1/36Applying electric currents by contact electrodes alternating or intermittent currents for stimulation
    • A61N1/372Arrangements in connection with the implantation of stimulators
    • A61N1/37211Means for communicating with stimulators
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G7/00Synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Public Health (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Veterinary Medicine (AREA)
  • General Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Neurology (AREA)
  • Neurosurgery (AREA)
  • Electrotherapy Devices (AREA)

Abstract

The application provides a time setting method of implantable equipment and a related device, belonging to the technical field of medical equipment, wherein the implantable equipment comprises an implantable neurostimulator, and the method comprises the following steps: acquiring time parameters of the implantable device; comparing the time parameter of the program control equipment with the time parameter of the corresponding implantable equipment to obtain a first difference value; comparing the first difference value with a preset difference value threshold; if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device; the method helps to find time synchronization deviation in time, reduces potential safety hazards caused by inaccurate time, ensures the accuracy of time of the implanted equipment, ensures normal operation and accurate data recording, and improves safety and reliability; and meanwhile, frequent time update operation can be avoided, and energy consumption is reduced.

Description

Time setting method of implantable device and related device
Technical Field
The application relates to the technical field of medical equipment, in particular to a time setting method of implantable equipment and a related device.
Background
With technological development and social progress, patients are desirous of improving the quality of life through various therapeutic means, and medical devices, particularly implantable devices, have a very wide application prospect. Because different program sets of the implantable device can enable the patient to obtain better states in different scenes, the requirement of time accuracy of the implantable device is very high in order to meet the requirement of timing switching.
In general, the accuracy of time is guaranteed by the hardware-based crystal oscillator and the related matching capacitor, the guaranteed accuracy is limited, the internal time of the implantable device is mainly determined by the hardware, and after long-term use or due to factors such as time zone change caused by the enlargement of the active area of a patient, certain deviation occurs between the internal time and the external environment time of the implantable device, so that the accuracy of the operation of the implantable device is poor due to the deviation of the time when the implantable device works, and the use effect of the patient is possibly affected.
Based on the above, the present application provides a method for time setting of implants and a medical system, which solve the above-mentioned problems in the prior art.
Disclosure of Invention
The application aims to provide a time synchronization method and a related device of an implantable device, which are used for helping to find time synchronization deviation in time, reducing potential safety hazards caused by inaccurate time, ensuring the accuracy of the time of the implantable device, ensuring the normal operation and accurate data recording of the implantable device, and improving the safety and reliability; and meanwhile, frequent time update operation can be avoided, and energy consumption is reduced.
The application adopts the following technical scheme:
In a first aspect, the present application proposes a method of time-setting of an implantable device coupled to a programmed device external to the body, the method comprising:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device.
Further, the time setting method of the implantable device, the time parameter of the program control device is obtained by the following way; comprising the following steps:
Under the condition that the program control equipment is in communication connection with the corresponding implanted equipment, the program control equipment judges whether the program control equipment is connected with an external network environment or not;
If yes, the external network time is obtained.
Optionally, the time setting method of the implantable device includes that the program control device obtains the time of the time server, and takes the time of the time server as the time parameter of the program control device.
Optionally, the time setting method of the implantable device includes that the program control device takes the time of the network device connected with the implantable device as the time parameter of the program control device; the network device includes one of: router, gateway, mobile terminal.
Optionally, the time setting method of the implantable device, the program control device uses the time of the network device connected with the implantable device as the time parameter of the program control device, and the method comprises the following steps:
the program control equipment acquires the time of a plurality of equipment; and integrating the time of the plurality of devices; and taking the integrated time as a time parameter of the program control equipment.
Preferably, the time synchronization method of the implantable device performs an integration process on the time of the plurality of devices, including:
the program control equipment acquires the time of the time server and the time of a plurality of network equipment;
and comparing the time of the time server with the time of the plurality of network devices, deleting the time corresponding to the abnormal value, and carrying out average processing on the rest time to obtain average time as the time parameter of the program control device.
Preferably, the method for setting time of the implantable device, the method for determining the outlier includes:
obtaining a deviation value Z i of each time point;
Zi=(Ti-Ta)/D
Wherein T i is the time of the ith device, T a is the time of the time server, and the average of the times of the plurality of network devices; d is the standard deviation of the time server time and the time of the plurality of network devices;
If Abs (Z i) exceeds the preset deviation value, the time of the corresponding equipment is an abnormal value; wherein Abs (Z i) is the absolute value of Z i;
If all Abs (Z i) are smaller than the preset deviation value, the time of the Max (Abs (Z i)) corresponding to the device is an abnormal value, or the time of the device is not abnormal; wherein Max (Abs (Z i)) is the maximum value among the absolute values of Z i.
Optionally, in the time setting method of the implantable device, the program control device obtains the time and the connection stability of the device connected with the implantable device, and takes the time of the device with high connection stability as the time parameter of the program control device.
Preferably, the time parameter includes at least time and time zone; taking the time zone corresponding to the time of the program control equipment as a first time zone and taking the time zone corresponding to the time of the implanted equipment as a second time zone; the method further comprises the steps of:
Judging whether the first time zone is consistent with the second time zone;
if yes, comparing the time of the program control equipment with the time of the corresponding implanted equipment to obtain a first difference value; judging whether to update the time parameter of the implantable device according to the first difference value;
If not, updating the time parameter obtained by the program control equipment into the implanted equipment.
Preferably, the method for setting time of the implantable device further comprises:
And the program control equipment acquires the update authority, and sends an update time instruction to the implanted equipment based on the update authority so as to update the time parameters of the implanted equipment.
Preferably, the method for setting time of the implantable device further comprises:
setting an update time interval;
the program control equipment judges whether the update time interval is reached from the last update time;
if yes, the time update judgment and operation are executed.
Preferably, the time setting method of the implantable device updates the time parameter of the implantable device if the first difference value is greater than a preset difference threshold value, and further includes:
acquiring the current working state of the implantable device, wherein the working state at least comprises a standby state, a stimulation state and a communication state;
And when the current working state of the implantable device is a standby state or a communication state, updating the time parameter of the implantable device.
Preferably, the time setting method of the implantable device updates a time parameter of the implantable device when the current working state of the implantable device is a standby state or a communication state, including:
When the current working state of the implantable device is a standby state or a communication state, acquiring the time length of the implantable device reaching the next stimulation state;
when the duration exceeds the preset duration, updating the time parameter of the implantable device;
And when the duration does not exceed the preset duration, waiting for the next stimulation state to finish and updating the time parameter of the implantable device.
In another aspect, the present application provides a time setting apparatus for an implantable device coupled to a programmed device outside of a body, the apparatus comprising:
The time parameter acquisition module is used for acquiring the time parameter of the implantable device;
The first difference value acquisition module is used for comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and the reminding module is used for updating the time parameter of the implantable device if the first difference value is larger than a preset difference value threshold value.
In a third aspect, the present application proposes a programming device comprising a memory and at least one processor, the memory storing a computer program, the at least one processor implementing the following steps when executing the computer program:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device.
In a fourth aspect, the present application proposes a medical system comprising:
An implantable device implanted within a patient;
A time setting device for setting time of the implantable device by the method of any one of the above;
and the program control equipment is used for performing program control on the implantable equipment.
In a fifth aspect, the present application provides an electronic device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the processor executes the computer program.
In some alternative embodiments, the electronic device is further provided with a display screen.
In a sixth aspect, the present application provides a computer readable storage medium storing a computer program which when executed by a processor performs the steps of any of the methods described above.
In a seventh aspect, the present application provides a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the method of any of the preceding claims, or the function of the charging reminder of an implantable device.
The beneficial effects of the invention at least comprise the following aspects: by periodically comparing the time parameters of the program control device and the implantable device, the real-time monitoring of the time synchronization state of the implantable device can be realized. Once the time difference is found to exceed the preset threshold, a time update prompt can be sent out in time, and the accuracy of the time of the implantable device is ensured. Setting the preset difference threshold may help to improve accuracy of time synchronization. The reminding can be triggered only when the time difference exceeds the set threshold, so that frequent time update caused by small difference is avoided, and meanwhile, the trust degree of users on the time synchronization state is improved. By sending the time update prompt of the implantable device, a user can know the time state of the implantable device in time and take corresponding measures. The reminding mode can be presented in different forms, such as sound, vibration and the like, so that the user experience and convenience are improved. The proper preset difference threshold is set, so that time synchronization deviation can be found in time, and potential safety hazards caused by inaccurate time are reduced. The time of the implanted device is updated in time, so that the normal operation and accurate data recording of the implanted device can be ensured, and the safety and reliability are improved. The program control equipment can acquire the update authority, and the time update of the implantable equipment is realized by sending an update time instruction, so that the time accuracy is ensured. The updating time interval threshold is set, so that frequent time updating operation can be avoided, and energy consumption is reduced. By the method, the implantable device can realize accurate time synchronization, improve the functionality and reliability of the device, and reduce the operation burden of a user.
Drawings
The application will be further described with reference to the drawings and examples.
Fig. 1 is a schematic diagram of a time synchronization method of an implantable device according to an embodiment of the present application;
Fig. 2 is a schematic diagram of a time setting device of an implantable device according to an embodiment of the present application;
fig. 3 is a flowchart of a time synchronization method of an implantable device according to an embodiment of the present application.
Detailed Description
The present application will be further described with reference to the accompanying drawings and detailed description, wherein it is to be understood that, on the premise of no conflict, the following embodiments or technical features may be arbitrarily combined to form new embodiments.
In the following, a brief description of one of the areas of application of an embodiment of the present application (i.e., an implantable device) will be presented. An implantable neurostimulation system (an implantable medical system) mainly includes a stimulator implanted in a patient and a programmable device disposed outside the patient. The existing nerve regulation and control technology mainly comprises the steps of implanting electrodes into specific structures (namely targets) in a body through stereotactic operation, and sending electric pulses to the targets through the electrodes by a stimulator implanted into the body of a patient, so as to regulate and control the electric activities and functions of the corresponding nerve structures and networks, thereby improving symptoms and relieving pains. The stimulator may be any one of an implantable nerve electrical stimulation device, an implantable cardiac electrical stimulation system (also called a cardiac pacemaker), an implantable drug infusion device (Implantable Drug DELIVERY SYSTEM, abbreviated as IDDS), and a lead switching device. Examples of the implantable nerve electrical stimulation device include a deep brain electrical stimulation system (Deep Brain Stimulation, abbreviated DBS), an implantable cortex stimulation system (Cortical Nerve Stimulation, abbreviated CNS), an implantable spinal cord electrical stimulation system (Spinal Cord Stimulation, abbreviated SCS), an implantable sacral nerve electrical stimulation system (SACRAL NERVE Stimulation, abbreviated SNS), an implantable vagal nerve electrical stimulation system (Vagus Nerve Stimulation, abbreviated VNS), and the like.
In some embodiments, the stimulator may include a pulse generator (Implantable Pulse Generator, IPG), an electrode lead, and an extension lead disposed between the pulse generator and the electrode lead through which data interaction of the pulse generator and the electrode lead is accomplished, the pulse generator disposed within the patient. In response to a programming instruction sent by the programming device, controllable electrical stimulation energy is provided to the internal tissue by means of the sealed battery and the circuit, and one or two controllable specific electrical stimulations are delivered to specific areas of the internal tissue through the implanted extension leads and electrode leads. The extension lead is matched with the pulse generator to be used as a transmission medium of the electric stimulation signal, and the electric stimulation signal generated by the pulse generator is transmitted to the electrode lead. The electrode leads deliver electrical stimulation to specific areas of tissue in the body through electrode contacts thereon. The stimulator is provided with one or more electrode leads on one side or two sides, and a plurality of electrode contacts are arranged on the electrode leads.
In other embodiments, the stimulator may include only the pulse generator and the electrode leads. The pulse generator can be embedded on the skull of the patient, the electrode lead is implanted in the skull of the patient, and the pulse generator is directly connected with the electrode lead without extending the lead.
The electrode lead may be a neural stimulation electrode that delivers electrical stimulation to a specific region of tissue in the body through a plurality of electrode contacts. The stimulator is provided with one or more electrode wires on one side or two sides, a plurality of electrode contacts are arranged on the electrode wires, and the electrode contacts can be uniformly arranged or non-uniformly arranged on the circumferential direction of the electrode wires. As an example, the electrode contacts may be arranged in an array of 4 rows and 3 columns (12 electrode contacts in total) in the circumferential direction of the electrode wire. The electrode contacts may include stimulation contacts and/or harvesting contacts. The electrode contact may take the shape of a sheet, ring, dot, or the like, for example.
In some possible ways, the stimulated in vivo tissue may be brain tissue of a patient and the stimulated site may be a specific site of brain tissue. When the type of disease in the patient is different, the location to be stimulated will generally be different, as will the number of stimulation contacts (single or multiple sources) used, the application of one or more (single or multiple channels) specific electrical stimulation signals, and the stimulation parameter data. It is believed that when the stimulus contacts used are multi-source, multi-path (multi-channel), a larger amount of data is generated than with single source, single path.
The embodiment of the application is not limited to the applicable disease types, and can 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 the types of diseases that DBS may be used to treat or manage include, but are not limited to: spasticity (e.g., epilepsy), pain, migraine, psychotic disorders (e.g., major depressive disorder (mdd)), bipolar disorder, anxiety disorder, post-traumatic stress disorder, depression disorder, obsessive Compulsive Disorder (OCD), behavioral disorders, mood disorders, memory disorders, mental state disorders, movement disorders (e.g., essential tremor or parkinson's disease), huntington's disease, alzheimer's disease, drug addiction, autism, or other neurological or psychiatric disorders and impairments.
The stimulation parameters may include: frequency (e.g., in Hz, the number of electrical stimulation pulse signals per unit time 1 s), pulse width (duration of each pulse in mus), amplitude (typically expressed in terms of voltage, i.e., intensity of each pulse in V), timing (e.g., continuous or triggered), stimulation mode (including one or more of current mode, voltage mode, timed stimulation mode, and cyclic stimulation mode), physician upper and lower limits (physician adjustable range), and patient upper and lower limits (patient autonomously adjustable range).
In one specific application scenario, the various stimulation parameters of the stimulator may be adjusted in either current mode or voltage mode.
Referring to fig. 1, some embodiments of the present application provide a method of synchronizing an implantable device coupled with an extracorporeal programmed device, the method comprising:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
Comparing the first difference value with a preset difference value threshold; the preset difference threshold may be 5s-10min, alternatively may be 10s,30s,1min,10min, etc., and specific numerical values are not limited;
and if the first difference value is larger than the preset difference value threshold value, updating the time parameter of the implantable device.
The working principle of the technical scheme is as follows: first, a current time parameter is obtained from an implantable device. The implantable device may have its own internal clock or timer for recording time. And comparing the time parameter of the program control device with the time parameter of the implantable device. A difference between the time parameter of the programming device and the time parameter of the implanted device, i.e. the first difference, is calculated. This may be achieved by simply subtracting the two time parameters, or the time zone may be determined first and then the first difference may be determined. And comparing the first difference value with a preset difference value threshold. The preset difference threshold is a set threshold for determining whether a time update reminder is needed. And if the first difference value is larger than a preset difference value threshold value, sending an implantable device time update prompt. This may be accomplished by sending specific instructions or messages to the implantable device. The alert may be presented to the user in sound, vibration, or other suitable manner.
The threshold value of the difference value may be set by, for example, 5s-10min, alternatively, 10s,30s,1min,10min, etc., and the specific numerical value is not limited;
Device characteristics: different types of implantable devices may have different requirements for time synchronization. For example, some neurostimulators may require more time accuracy, while other types of implantable devices may require relatively less time synchronization.
User requirements: the time synchronization requirements may be determined based on the end user's use and desires of the implantable device. For example, for medical applications requiring precise control, more stringent time synchronization requirements may be required.
Safety considerations: safety factors also need to be considered when setting the threshold. For example, if a large deviation in time synchronization occurs, which may pose a health risk or safety hazard to the user, it is necessary to set the threshold within a range where the deviation can be found and corrected in time.
Based on the above considerations, a suitable preset difference threshold may be determined by means of experimental tests, professional standard references, clinical requirement assessment, etc., in combination with the technical characteristics of the implantable device itself and the user requirements. In practical applications, adjustments and optimizations may also be made based on feedback and actual performance.
Further, when the first difference is not greater than the preset difference threshold, that is, the first difference is less than or equal to the preset difference threshold, the time parameter of the implantable device is not updated, in actual operation, the program control device completes calculation and comparison of the time parameter difference in the process of communicating with the implantable device, and when the program control device does not need to update, the communication connection is automatically disconnected, the disconnection relationship is maintained, and no direct perception is available to the patient or the implantable device.
The technical scheme has the effects that: by comparing the time parameters of the program control equipment and the implantable equipment, the real-time monitoring of the time synchronization state of the implantable equipment can be realized. Once the time difference is found to exceed the preset threshold, a time update prompt can be sent out in time, and the accuracy of the time of the implantable device is ensured. Setting the preset difference threshold may help to improve accuracy of time synchronization. The reminding can be triggered only when the time difference exceeds the set threshold, so that frequent time update caused by small difference is avoided, and meanwhile, the trust degree of users on the time synchronization state is improved. By sending the time update prompt of the implantable device, a user can know the time state of the implantable device in time and take corresponding measures. The reminding mode can be presented in different forms, such as sound, vibration and the like, so that user experience and convenience are improved; the proper preset difference threshold is set, so that time synchronization deviation can be found in time, and potential safety hazards caused by inaccurate time are reduced; the time of the implanted device is updated in time, so that the normal operation and accurate data recording of the implanted device can be ensured, and the safety and reliability are improved.
In general, the time synchronization method of the implantable device can effectively monitor and maintain the time synchronization state of the implantable device, improve the accuracy, the user friendliness and the safety, and provide better use experience and guarantee for users.
According to some embodiments of the present application, the time parameter of the program-controlled device is obtained by:
Under the condition that the program control equipment is in communication connection with the corresponding implanted equipment, the program control equipment judges whether the program control equipment is connected with an external network environment or not;
If yes, the external network time is obtained.
The working principle of the technical scheme is as follows: under the condition that the program control equipment is in communication connection with the implantable device, the program control equipment can firstly judge whether the program control equipment is connected with an external network environment or not so as to determine whether the latest time can be obtained or not; once the programming device confirms itself has been in communication with the external network environment, it may request access to external network time from an external time server via a network protocol (e.g., a time communication protocol). The external server returns the current accurate time parameter to the program control device, and the program control device takes the time parameter as external network time.
After the external network time is acquired, the program control equipment can use the time parameter as the time reference of the program control equipment and is used for comparing the time parameter of the implantable equipment, so that the function of time synchronization is realized. The program control equipment can update and synchronize the external network time periodically as required, and the accuracy and consistency of the time are ensured.
In general, the embodiment realizes the acquisition and synchronization of the time parameters of the program control equipment by judging the communication state of the program control equipment and the external network environment and acquiring the external network time under the communication condition, thereby ensuring the accuracy and reliability of the time.
In some embodiments, the programming device obtains the time of the time server and takes the time of the time server as the time of the programming device.
In other embodiments, the programming device uses the time of the network device to which it is connected as a time parameter for the programming device; the network equipment comprises any one of a router, a gateway and a mobile terminal. The time server may be NTP (Network Tim e Protocol) server, PTP (Precision Time Protocol) server, GPS (Global Positioning System) server, or the like.
In still other embodiments, the program control device uses the time of the network device connected with the program control device as the time parameter of the program control device, and the method includes: the program control equipment acquires the time of a plurality of equipment and integrates the time of the equipment; taking the integrated time as a time parameter of program control equipment; here the devices may include time servers and network devices.
In some embodiments, the integrating the time of the plurality of devices includes: the program control equipment acquires the time of a time server and the time of a plurality of network equipment; the network equipment comprises a router, a gateway and a mobile terminal;
and comparing the time of the time server with the time of the plurality of network devices, deleting the time corresponding to the abnormal value, and carrying out average processing on the rest time to obtain average time as the time parameter of the program control device.
In some embodiments, the method for determining an outlier includes:
obtaining a deviation value Z i of each time point;
Zi=(Ti-Ta)/D
Wherein T i is the time of the ith device, where the device refers to a time server and a plurality of network devices; t a is the average value of the time server and the time of the plurality of network devices; d is the standard deviation of the time server and the time of the plurality of network devices;
If Abs (Z i) exceeds the preset deviation value, the time of the corresponding equipment is an abnormal value; wherein Abs (Z i) is the absolute value of Z i;
If all Abs (Z i) are smaller than the preset deviation value, the time of the Max (Abs (Z i)) corresponding to the device is an abnormal value, or the time of the device is not abnormal; wherein Max (Abs (Z i)) is the maximum value among the absolute values of Z i.
It can be understood that, in the present specification, the abnormal value is determined by the distance between the time of different devices and the average time, so that the abnormal value can be rapidly screened out, and the accuracy of obtaining the time of the devices is ensured, where the preset deviation value can be set according to the actual situation, for example, can be 3, 4, 5, 10, etc., and the specific value is not limited.
The working principle of the technical scheme is as follows:
The program control equipment establishes connection with the time server and sends a time request to acquire the latest time of the time server. The time server is a server specially used for providing accurate time, and the program control device can directly obtain the time parameter from the time server as the latest time of the program control device.
The program control equipment is connected with specific network equipment (such as a router, a gateway and a mobile terminal) and acquires the time of the network equipment; the program control device can acquire its time parameter as its own latest time by communicating with the network device.
The program control device obtains time parameters of a plurality of devices (including a time server and other network devices) and performs integration processing. Including comparing the times of different devices, removing outliers, calculating average times, etc. By integrating the times of multiple devices, the programmed device can get a more accurate latest time.
The outlier determination method comprises the following steps: in some embodiments, the programmed device uses a method of determining outliers for the acquired time parameters of the plurality of devices. The method determines outliers by calculating the deviation value for each time point and comparing with the mean and standard deviation. If the deviation exceeds a set threshold (e.g., 3 standard deviations), the corresponding time is considered an outlier. And if all the deviation values are smaller than the threshold value, regarding the time corresponding to the deviation value with the largest absolute value as the abnormal value.
In general, these embodiments obtain the time server time and the time of other network devices in different ways, and compare, integrate, and process the time parameters to obtain the latest time of the program-controlled device. The method for determining the abnormal value can help to exclude abnormal data and improve the accuracy and reliability of time.
The technical scheme has the effects that: these various embodiments can help the programming device to obtain more accurate and reliable latest time, thereby improving the stability and accuracy of the system.
The time server is specially used for providing time service, has high reliability and accuracy, and the program control equipment can avoid the problem of time error caused by interference of other factors by directly acquiring the time of the time server.
The program control equipment can make the final time result more accurate and stable by means of the time parameters of a plurality of equipment; meanwhile, by deleting the abnormal value, the accuracy of the time data can be further improved.
The determination method using the outlier can help to exclude the outlier data and improve the accuracy and reliability of time. According to the method, data with larger deviation can be automatically removed according to a statistical principle, so that errors are reduced, and the accuracy of time data is improved.
In general, these embodiments may help the programming device to obtain more accurate and reliable up-to-date times, thereby improving system stability and accuracy. The method in different embodiments can be selected according to specific application scenarios and requirements to achieve the best effect.
In some embodiments, the program control device obtains the time and the connection stability of the device connected with the program control device, and takes the time of the device with high connection stability as the time parameter of the program control device; the connection stability can be represented by indexes such as bandwidth utilization rate, packet loss rate, delay rate and the like;
In some embodiments, the connection stability is:
Si=1-(1-Bi)×(w1×Li+w2×Yi)
Wherein, S i is the connection stability of the ith device, B i is the current broadband utilization of the ith device, L i is the current packet loss rate of the ith device, Y i is the current delay rate of the ith device, and w1 and w2 are weights. The time server is used as one device, and the network device comprises a router, a gateway, a mobile terminal and the like, wherein each router, each gateway and each mobile terminal are respectively used as one device.
The working principle of the technical scheme is as follows: and (3) by carrying out stability evaluation on the connected equipment, selecting the time of the equipment with high stability as the latest time of the program control equipment. The method comprises the following steps:
stability assessment: the program control device can evaluate the stability of the device connected with the program control device, and evaluation indexes comprise bandwidth utilization rate, packet loss rate, delay rate and the like.
Calculating a stability value: and calculating the stability value of each connecting device according to indexes such as the bandwidth utilization rate, the packet loss rate, the delay rate and the like, wherein the weights w1 and w2 can be adjusted according to specific requirements, and w1+w2=1.
Selecting the most stable equipment: and comparing the stability values of all the connected devices, selecting the device with the highest stability value, and taking the time of the device as the latest time of the program control device.
In this way, the programming device can utilize the time parameters of multiple connected devices to select the time of the most stable device through stability assessment, thereby obtaining a more accurate and reliable latest time. Meanwhile, the method can improve the stability and the precision of the program control system under the condition that the network environment is complex and unstable.
The technical scheme has the effects that: by acquiring the time for connecting the equipment and selecting the time of the equipment with high stability as the latest time of the program control equipment, the time accuracy of the program control equipment can be improved. Devices with high stability typically have lower packet loss rates and delay rates and can provide more reliable and accurate time data. The time of the equipment with high stability is selected as the latest time of the program control equipment, so that the influence of unstable factors in the system on the time can be reduced. Devices with high stability generally have lower bandwidth utilization, packet loss rate, and delay rate, and can provide more stable time data, thereby improving the overall stability of the system. By taking the indexes such as the bandwidth utilization rate, the packet loss rate, the delay rate and the like into consideration and calculating by using weights, the stability of the connection equipment can be comprehensively evaluated. Therefore, errors and fluctuation of time data can be effectively reduced, and accuracy and stability of a final time result are improved. The time of the equipment with high stability is selected from a plurality of connected equipment to serve as the latest time of the program control equipment, so that the fault tolerance of the system is improved. Even if a certain connecting device is problematic or unstable, the system can still provide reliable time data by means of other connecting devices, so that the normal operation of the system is ensured.
In summary, by acquiring the time of connecting the devices and considering the stability index, and selecting the time of the device with high stability as the latest time of the program control device, the time accuracy, the system stability and the fault tolerance can be improved, and the errors and the fluctuations can be reduced, thereby improving the performance and the reliability of the whole system.
In some embodiments, the time parameters include at least time and time zone; taking the time zone corresponding to the time of the program control equipment as a first time zone and taking the time zone corresponding to the time of the implanted equipment as a second time zone; the method further comprises the steps of:
Judging whether the first time zone is consistent with the second time zone;
If yes, comparing the time of the program control equipment with the time of the corresponding implantable equipment to obtain a first difference value, and judging whether to update the time parameter of the implantable equipment according to the first difference value;
If not, updating the time parameter obtained by the program control equipment into the implanted equipment.
The working principle of the technical scheme is as follows: before time is obtained, the programmed device can determine the time zone in which it is currently located, and obtain the time zone of the implanted device (determined by the time information stored inside the implanted device), and compare whether the two time zones are consistent:
When the time zones are consistent, a first difference value of the time can be determined through the difference of the time zones, and whether the time parameter of the implantable device is updated or not is judged according to the first difference value;
And when the time zones are inconsistent, updating the time parameters obtained by the program control equipment into the implantable equipment.
The technical scheme has the effects that: by determining the time zone in which the current time zone is located and the time zone of the implantable device and comparing whether the two are consistent, accuracy of time calibration can be ensured. If the time zones are consistent, the time calibration value can be accurately determined by comparing the time of the programming device with the time of the implantable device to calculate the time difference.
When the time zones are consistent, the latest time obtained by the program control equipment can be accurately synchronized into the implantable equipment by calculating the time difference and comparing and updating, so that the time consistency between the implantable equipment and the program control equipment is improved, and the treatment time and the treatment effect of a patient are ensured. For the condition that the time zones are consistent, the time difference is directly calculated, and the time of the implantable device is updated, so that a complex time zone conversion process is avoided, and the time calibration flow is simplified. Thus, for users who frequently go out and go across time zones, errors and inconsistencies caused by time zone conversion can be avoided, and time errors and inconsistencies can be reduced by ensuring that time zones are consistent or directly updating time. If the time zones of different devices are inconsistent, the latest time of the program control device is directly updated to the implanted device, so that errors and inconsistencies caused by time zone conversion can be avoided.
By determining the time zones and comparing whether the time zones are consistent, the time calibration scheme can be implemented to improve the accuracy of time calibration and the time consistency of the system, simplify the time calibration process and reduce time errors and inconsistencies. The user experience is improved, and the situation that the health condition is influenced due to the fact that the use risks caused by time inconsistency caused by time zone crossing are avoided, for example, because the time inconsistency is not stimulated in time.
In some embodiments, the method of pairing an implantable device further comprises:
The program control equipment acquires update permission, and sends an update time instruction to the implanted equipment based on the update permission so as to enable the implanted equipment to update time parameters; the update authority comprises automatic update authority and/or update authority acquired by the terminal; when the update is needed, the display interface of the program control device can pop up the option of the update time or whether the voice prompt can be updated or not so as to enable the user to select whether the update is needed, and when the user selects the update, the permission verification option can be continuously popped up, for example, the permission verification option can be a preset password or an update request sent to a doctor end, so that the doctor agrees to conduct the time update.
In view of the fact that the implantable device is an in-vivo implant, the implantable device has the characteristics of high risk and high standard, any adjustment needs very high authority to avoid random modification of internal information, and therefore steps of doctor end or authority verification can be added to improve safety of the implantable device.
The working principle and the effect of the technical scheme are as follows: the programming device needs to acquire the update rights in order to send an update time instruction to the implanted device. This may be achieved by obtaining an automatic update right or an update right obtained from the terminal. The programming device updates the time of the implantable device by sending an update time command. The update time command is received and executed by the implantable device, setting the new time to the current time of the implantable device. When it is determined that the update time is needed, the program control device can pop up the update time option to allow the user to select whether to update. If the user selects the update, the pop-up rights verification option may continue. The rights include a preset password or an update request sent to the doctor to ensure that only the person with the rights can perform the time update.
Since the implantable device is an in vivo implant, it has the characteristics of high risk and high standard, and any adjustment requires high rights. By adding the step of doctor end or authority verification, the safety of the implantable device can be improved, and only authorized personnel can update the implantable device in time. By setting the update authority and the authority verification step, unauthorized persons can be prevented from arbitrarily changing the time or other internal information of the implantable device. This helps maintain stability and reliability of the implantable device.
In summary, by acquiring the update authority, transmitting the update time instruction, and performing the authority verification, it is possible to ensure that the time update of the implantable device has high security, and to prevent unauthorized persons from arbitrarily changing the internal information. Thus, the credibility and stability of the implantable device can be improved, and the normal operation and accurate time synchronization of the implantable device are ensured.
In some embodiments, the method of pairing an implantable device further comprises:
setting an update time interval;
the program control equipment judges whether the update time interval is reached from the last update time;
if yes, the time update judgment and operation are executed.
The working principle of the technical scheme is as follows: the implantable device does not need to be updated too frequently, which is detrimental to the operation of the implantable device, so that the minimum update interval can be set, i.e.: when the program control equipment judges that the time from the last update reaches the update time interval, the judgment and operation of the time parameter update are carried out; thereby avoiding too frequent time updates to the implanted device.
Wherein the time interval may be set by a knowledge base comprising:
The technical requirements of equipment are as follows: the appropriate time interval is determined according to the specifications and design requirements of the implantable device. Different types of implantable devices may have different requirements for the frequency of time updates, e.g. a cardiac pacemaker may require more frequent time updates, while other types of implantable devices may require longer time intervals.
Energy consumption and efficiency: frequent time updates may increase the energy consumption of the implantable device, affecting its battery life and efficiency of use. Thus, setting a reasonable time interval threshold may balance the energy management and operating efficiency of the device.
Expert advice: the final time interval threshold settings should also be recommended and guided by medical professionals who can determine the most appropriate time interval based on the specifics of the implantable device and the patient's condition.
In summary, the setting of the update time interval threshold should be determined reasonably under the guidance of medical specialists by comprehensively considering factors such as equipment technical requirements, biocompatibility, energy consumption, efficiency and the like. Thus, the implantable device can be ensured to update time in a safe, effective and efficient state, thereby providing better medical service.
The technical scheme has the effects that:
optimizing the working efficiency of the implantable device: setting the update interval threshold may avoid frequent time updates by the implanted device, thereby optimizing its operating efficiency. Too frequent time updating may affect the normal operation and endurance of the device, so that the implantable device can perform time updating at a proper time point by setting the updating time interval threshold value, thereby improving the working efficiency of the implantable device.
Increasing the stability and reliability of the device: avoiding too frequent time updates to the implantable device can reduce system interference and risk, improving device stability and reliability. By setting the update time interval threshold, it is possible to ensure that the implantable device is updated in time at a proper timing, avoiding unnecessary operations, and thus reducing the risk of the implantable device.
In general, by setting an update time interval threshold and determining whether a time update operation needs to be performed according to the threshold, the working efficiency of the implantable device can be optimized, the stability and reliability of the device can be increased, and the normal operation and accurate time synchronization of the device can be ensured. Thus, the performance and the service life of the implantable device can be improved, and better medical services can be provided for patients.
In some embodiments, the update time interval is dynamic, and the program control device can monitor the network delay condition and the device load condition according to the current network environment and the device load condition and adjust the update time interval according to the delay degree and the device load condition; when the network delay is large or the equipment load is high, the updating time interval can be shortened;
Because the implantable device may be affected by various factors such as environment and user behavior during operation, the load condition of the implantable device may be changed; for example, in the case of exercise, elevated body temperature, increased heart rate, etc., higher loads may occur with the implantable device. In this case, if the frequency of the time update is too low, accumulation of time errors is liable to be caused, thereby affecting the accuracy; otherwise, if the update frequency is too high, the system overhead is increased, and the efficiency is reduced. Therefore, the dynamic adjustment of the update time interval can be better suitable for the load condition of the implantable device, and the accuracy and the efficiency of time synchronization are improved.
Wherein, U is the latest update time interval, U 0 is the preset update time interval, Z S is the real-time load of the implantable device, Z a is the preset load of the implantable device, C S is the current network delay time, C a is the preset network delay time, and w3 and w4 are weight coefficients.
In some embodiments, the update time interval is dynamic, and the programming device may record historical update times for the implantable device and perform statistical analysis based on the data. By analyzing the distribution, fluctuation, etc. of the update times, the appropriate time interval can be determined more accurately.
In other embodiments, the update time interval is dynamic, incorporating a machine learning algorithm, the programming device is capable of automatically learning and predicting an optimal time update strategy based on the usage patterns and behavior habits of the implanted device. Therefore, the time updating frequency can be flexibly adjusted according to actual conditions, and the performance and efficiency of the system are improved.
In some embodiments, the time synchronization method of the implantable device updates the time parameter of the implantable device if the first difference is greater than a preset difference threshold, and further includes:
acquiring the current working state of the implantable device, wherein the working state at least comprises a standby state, a stimulation state and a communication state;
And when the current working state of the implantable device is a standby state or a communication state, updating the time parameter of the implantable device.
In some embodiments, when the current operating state of the implantable device is a standby state or a communication state, updating the time parameter of the implantable device includes:
When the current working state of the implantable device is a standby state or a communication state, acquiring the time length of the implantable device reaching the next stimulation state;
when the duration exceeds the preset duration, updating the time parameter of the implantable device; wherein the preset time period can be 10 minutes, half an hour, one hour, etc.; specific numerical values are not limited.
The principle and effect of the technical scheme are as follows: before determining to update time, the program control device will firstly judge the current working state of the implantable device, wherein the working state comprises a standby state, a stimulation state and a communication state, and the standby state refers to normal operation of the implantable device but does not execute a stimulation task; the stimulation state refers to the implantable device being performing a stimulation task; the communication state refers to that the implantable device and the program control device are in data exchange or receive instructions.
If the implantable device is currently in a standby state or a communication state, this means that the implantable device is not currently performing critical tasks, such as stimulating operations. In these states, it is safe to update the implantable device with time without affecting the function it is performing.
The programming device also calculates the time (duration) from the current time to the next time the implantable device performs the stimulation task when the implantable device is in a standby state. If this period exceeds the preset period, this means that none of the implantable devices will perform the stimulating task for a period of time in the future. In such a scenario, it is also safe to make a time update to the implanted device, since the update does not interrupt the task it is about to perform. This arrangement allows for the user to begin stimulating without updating the time, which would result in a change in the stimulation plan, so that stimulation is performed first, and the time is updated after stimulation is completed, so as to avoid disturbing the patient's stimulation rhythm, thereby improving the reliability and efficiency of the treatment. The preset duration may be fixed, such as 10 minutes, half an hour, one hour, etc., or may be configurable, allowing the user or physician to adjust to specific needs. For example, in some cases, a longer preset duration may be selected to ensure a more stable time update process; in other cases, a shorter preset duration may be selected in order to enhance the user experience.
In summary, by comparing the time difference between the program control device and the implantable device, it is determined whether to perform the time update in combination with the current operating state and the future operating schedule of the implantable device. The time synchronization accuracy is guaranteed, interference is avoided when the equipment executes the key task, the stimulation rhythm of a patient is disturbed, and therefore the stability and reliability of the whole system are improved.
Referring to fig. 2, an embodiment of the present application provides a time synchronization apparatus of an implantable device including an implantable neurostimulator, the apparatus comprising:
The time parameter acquisition module is used for acquiring the time parameter of the implantable device;
The first difference value acquisition module is used for comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and the reminding module is used for updating the time parameter of the implantable device if the first difference value is larger than a preset difference value threshold value.
The threshold value of the preset difference value can be 5s-10min, alternatively can be 10s,30s,1min,10min and the like, and specific numerical values are not limited;
In some embodiments, the time parameter of the programming device is obtained by:
Under the condition that the program control equipment is in communication connection with the corresponding implanted equipment, the program control equipment judges whether the program control equipment is connected with an external network environment or not;
If yes, the external network time is obtained.
In some embodiments, the programming device obtains the time of the time server and takes the time of the time server as a time parameter of the programming device.
In other embodiments, the programming device uses the time of the network device to which it is connected as a time parameter for the programming device; the network device includes one of: router, gateway, mobile terminal. In still other embodiments, the program control device uses the time of the network device connected with the program control device as the time parameter of the program control device, and the method includes:
The program control equipment acquires the time of a plurality of equipment and integrates the time of the equipment; the devices may include time servers and network devices;
And taking the integrated time as a time parameter of the program control equipment.
In some embodiments, the integrating the time of the plurality of devices includes: :
the program control equipment acquires the time of the time server and the time of a plurality of network equipment;
and comparing the time of the time server with the time of the plurality of network devices, deleting the time corresponding to the abnormal value, and carrying out average processing on the rest time to obtain average time as the time parameter of the program control device.
In some embodiments, the method for determining an outlier includes:
obtaining a deviation value Z i of each time point;
Zi=(Ti-Ta)/D
Wherein T i is the time of the ith device, T a is the time of the time server, and the average of the times of the plurality of network devices; d is the standard deviation of the time server time and the time of the plurality of network devices;
If Abs (Z i) exceeds the preset deviation value, the time of the corresponding equipment is an abnormal value; wherein Abs (Z i) is the absolute value of Z i;
If all Abs (Z i) are smaller than the preset deviation value, the time of the Max (Abs (Z i)) corresponding to the device is an abnormal value, or the time of the device is not abnormal; wherein Max (Abs (Z i)) is the maximum value among the absolute values of Z i.
In some embodiments, the program control device obtains the time and the connection stability of the device connected with the program control device, and takes the time of the device with high connection stability as the time parameter of the program control device; the connection stability can be represented by indexes such as bandwidth utilization rate, packet loss rate, delay rate and the like;
In some embodiments, the connection stability is:
Si=1-(1-Bi)×(w1×Li+w2×Yi)
Wherein, S i is the stability of the ith device, B i is the current broadband utilization of the ith device, L i is the current packet loss rate of the ith device, Y i is the current delay rate of the ith device, and w1 and w2 are weights. The time server is used as one device, and the network device comprises a router, a gateway, a mobile terminal and the like, wherein each router, each gateway and each mobile terminal are respectively used as one device.
In some embodiments, the time parameters include at least time and time zone; the time setting device of the implantable device also comprises a time zone judging module which takes the time zone corresponding to the time of the program control device as a first time zone,
And taking the time zone corresponding to the time of the implantable device as a second time zone; the method further comprises the steps of:
Judging whether the first time zone is consistent with the second time zone;
If yes, comparing the time of the program control equipment with the time of the corresponding implantable equipment to obtain a first difference value, and judging whether to update the time parameter of the implantable equipment according to the first difference value;
If not, updating the time parameter obtained by the program control equipment into the implanted equipment.
In some embodiments, the time synchronization apparatus of the implantable device further includes a rights acquisition module:
the permission acquisition module is used for acquiring the update permission by the program control equipment, and sending an update time instruction to the implanted equipment based on the update permission so as to update the time parameter by the implanted equipment.
The update authority comprises an automatic update authority and an update authority acquired by the terminal; when it is determined that the update is needed, the program control device may pop up an update time option for the user to select whether to update, and when the user selects to update, may continue to pop up an authority verification option, for example, may be a preset password, or an update request sent to the doctor end, so that the doctor agrees to perform time update.
In view of the fact that the implantable device is an in-vivo implant, the implantable device has the characteristics of high risk and high standard, any adjustment needs very high authority to avoid random modification of internal information, and therefore steps of doctor end or authority verification can be added to improve safety of the implantable device.
In some embodiments, the time tick apparatus of the implantable device further comprises an execution determination module comprising:
the time interval setting module is used for setting an updating time interval;
the judging module is used for judging whether the update time from the last time reaches the update time interval or not by the program control equipment;
and the execution module is used for executing the judgment and operation of the time update if yes.
In some embodiments, the update time interval is dynamic, and the program control device can monitor the network delay condition and the device load condition according to the current network environment and the device load condition and adjust the update time interval according to the delay degree and the device load condition; when the network delay is large or the equipment load is high, the updating time interval can be shortened;
Because the implantable device may be affected by a variety of factors such as environment, user behavior, etc. during operation, resulting in a change in its load conditions. For example, in the case of exercise, elevated body temperature, increased heart rate, etc., higher loads may occur with the implantable device. In this case, if the frequency of the time update is too low, accumulation of time errors is liable to be caused, thereby affecting the accuracy; otherwise, if the update frequency is too high, the system overhead is increased, and the efficiency is reduced. Therefore, the dynamic adjustment of the update time interval can be better suitable for the load condition of the implantable device, and the accuracy and the efficiency of time synchronization are improved.
Wherein, U is the latest update time interval, U 0 is the preset update time interval, Z S is the real-time load of the implantable device, Z a is the preset load of the implantable device, C S is the current network delay time, C a is the preset network delay time, and w3 and w4 are weight coefficients.
In some embodiments, the update time interval is dynamic, and the programming device may record historical update times for the implantable device and perform statistical analysis based on the data. By analyzing the distribution, fluctuation, etc. of the update times, the appropriate time interval can be determined more accurately.
In other embodiments, the update time interval is dynamic, incorporating a machine learning algorithm, the programming device is capable of automatically learning and predicting an optimal time update strategy based on the usage patterns and behavior habits of the implanted device. Therefore, the time updating frequency can be flexibly adjusted according to actual conditions, and the performance and efficiency of the system are improved.
In some embodiments, the reminder module further comprises:
The system comprises a state acquisition unit, a control unit and a control unit, wherein the state acquisition unit is used for acquiring the current working state of the implantable device, and the working state at least comprises a standby state, a stimulation state and a communication state;
and the state judging unit is used for updating the time parameter of the implantable device when the current working state of the implantable device is a standby state or a communication state.
In some embodiments, the state determination unit includes:
A stimulation duration obtaining subunit, configured to obtain a duration of the implantable device reaching a next stimulation state when a current working state of the implantable device is a standby state or a communication state;
the first judging subunit is used for updating the time parameter of the implantable device when the time length exceeds the preset time length;
The second judging subunit is used for waiting for updating the time parameter of the implantable device after the next stimulation state is ended when the duration does not exceed the preset duration;
Wherein, the preset time period can be 10 minutes, half an hour, one hour and the like; specific numerical values are not limited.
The working principle and effect of the above technical solution are the same as those of the corresponding method in the embodiment, and are not described herein.
The application also provides a program-controlled device comprising a memory and at least one processor, the memory storing a computer program, the at least one processor implementing the following steps when executing the computer program:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device; alternatively, 10s,30s,1min,10min, etc., specific values are not limited;
in some embodiments, the at least one processor of the programming device, when executing the computer program, obtains the time parameter of the programming device by:
Under the condition that the program control equipment is in communication connection with the corresponding implanted equipment, the program control equipment judges whether the program control equipment is connected with an external network environment or not;
If yes, the external network time is obtained.
In some embodiments, the at least one processor of the programming device, when executing the computer program, performs the steps of:
the program control equipment acquires the time of the time server and takes the time of the time server as a time parameter of the program control equipment.
In some embodiments, the at least one processor of the programming device, when executing the computer program, performs the steps of:
the program control equipment takes the time of the network equipment connected with the program control equipment as the time parameter of the program control equipment; the network device includes one of: router, gateway, mobile terminal.
In some embodiments, when the at least one processor of the programming device executes the computer program, the programming device is enabled to take a time of a network device connected thereto as a time parameter of the programming device by:
The program control equipment acquires the time of a plurality of equipment and integrates the time of the equipment; the devices may include time servers and network devices;
And taking the integrated time as a time parameter of the program control equipment.
In some embodiments, when the at least one processor of the programmed device executes the computer program, the integrating the time of the plurality of devices by:
the program control equipment acquires the time of the time server and the time of a plurality of network equipment;
and comparing the time of the time server with the time of the plurality of network devices, deleting the time corresponding to the abnormal value, and carrying out average processing on the rest time to obtain average time as the time parameter of the program control device.
In some embodiments, the method for determining the outlier is implemented by the at least one processor of the programmed device when executing the computer program, comprising:
obtaining a deviation value Z i of each time point;
Zi=(Ti-Ta)/D
Wherein T i is the time of the i-th device; t a is the average value of the time server and the time of the plurality of network devices; d is the standard deviation of the time server time and the time of the plurality of network devices;
If Abs (Z i) is more than or equal to 3, the corresponding time is an abnormal value; wherein Abs (Z i) is the absolute value of Z i;
If all Abs (Z i) are smaller than 3, the time corresponding to Max (Abs (Z i)) is an outlier; wherein Max (Abs (Z i)) is the maximum value among the absolute values of Z i.
In some embodiments, the at least one processor of the programming device, when executing the computer program, performs the steps of:
the program control equipment acquires the time and the connection stability of the equipment connected with the program control equipment, and takes the time of the equipment with high connection stability as the time parameter of the program control equipment; the connection stability can be represented by indexes such as bandwidth utilization, packet loss rate, delay rate and the like.
In some embodiments, the connection stability is:
Si=1-(1-Bi)×(w1×Li+w2×Yi)
Wherein, S i is the connection stability of the ith device, B i is the current broadband utilization of the ith device, L i is the current packet loss rate of the ith device, Y i is the current delay rate of the ith device, and w1 and w2 are weights. The time server is used as one device, and the network device comprises a router, a gateway, a mobile terminal and the like, wherein each router, each gateway and each mobile terminal are respectively used as one device.
In some embodiments, the time parameter includes at least a time and a time zone when the computer program is executed by the at least one processor of the programmed device; taking the time zone corresponding to the time of the program control equipment as a first time zone and taking the time zone corresponding to the time of the implanted equipment as a second time zone; the at least one processor, when executing the computer program, performs the steps of:
Judging whether the first time zone is consistent with the second time zone;
If yes, comparing the time of the program control equipment with the time of the corresponding implantable equipment to obtain a first difference value, and judging whether to update the time parameter of the implantable equipment according to the first difference value;
If not, updating the time parameter obtained by the program control equipment into the implanted equipment.
In some embodiments, the at least one processor of the programming apparatus when executing the computer program further performs the steps of:
and the program control equipment acquires the update authority, and sends an update time instruction to the implanted equipment based on the update authority so as to update the time parameter of the implanted equipment.
In some embodiments, the at least one processor of the programming apparatus when executing the computer program further performs the steps of: setting an update time interval;
the program control equipment judges whether the update time interval is reached from the last update time;
if yes, the time update judgment and operation are executed.
In some embodiments, the update time interval is dynamic, and the program control device can monitor the network delay condition and the device load condition according to the current network environment and the device load condition and adjust the update time interval according to the delay degree and the device load condition; when the network delay is large or the equipment load is high, the updating time interval can be shortened;
Because the implantable device may be affected by a variety of factors such as environment, user behavior, etc. during operation, resulting in a change in its load conditions. For example, in the case of exercise, elevated body temperature, increased heart rate, etc., higher loads may occur with the implantable device. In this case, if the frequency of the time update is too low, accumulation of time errors is liable to be caused, thereby affecting the accuracy; otherwise, if the update frequency is too high, the system overhead is increased, and the efficiency is reduced. Therefore, the dynamic adjustment of the update time interval can be better suitable for the load condition of the implantable device, and the accuracy and the efficiency of time synchronization are improved.
Wherein, U is the latest update time interval, U 0 is the preset update time interval, Z S is the real-time load of the implantable device, Z a is the preset load of the implantable device, C S is the current network delay time, C a is the preset network delay time, and w3 and w4 are weight coefficients.
In some embodiments, the update time interval is dynamic, and the programming device may record historical update times for the implantable device and perform statistical analysis based on the data. By analyzing the distribution, fluctuation, etc. of the update times, the appropriate time interval can be determined more accurately.
In other embodiments, the update time interval is dynamic, incorporating a machine learning algorithm, the programming device is capable of automatically learning and predicting an optimal time update strategy based on the usage patterns and behavior habits of the implanted device. Therefore, the time updating frequency can be flexibly adjusted according to actual conditions, and the performance and efficiency of the system are improved.
In some embodiments, when the at least one processor of the programmable device executes the computer program, updating the time parameter of the implantable device if the first difference is greater than a preset difference threshold is further accomplished by:
acquiring the current working state of the implantable device, wherein the working state at least comprises a standby state, a stimulation state and a communication state;
And when the current working state of the implantable device is a standby state or a communication state, updating the time parameter of the implantable device.
In some embodiments, when the at least one processor of the programmable device executes the computer program, updating the time parameter of the implantable device when the current operating state of the implantable device is a standby state or a communication state is further achieved by:
When the current working state of the implantable device is a standby state or a communication state, acquiring the time length of the implantable device reaching the next stimulation state;
when the duration exceeds the preset duration, updating the time parameter of the implantable device;
And when the duration does not exceed the preset duration, waiting for the next stimulation state to finish and updating the time parameter of the implantable device.
The working principle and effect of the above technical solution are the same as those of the corresponding method in the embodiment, and are not described herein.
The present application also provides a medical system comprising:
An implantable device implanted within a patient;
The time setting device is used for setting time of the implantable equipment through the time setting method of the implantable equipment;
The program control equipment is used for performing program control on the implantable equipment; the programming device may be a patient programming device or a doctor programming device.
It can be understood that the time setting device can be disposed in the implantable device, that is, the time of the implantable device can be updated as a function module of the implantable device, specifically, when the implantable device communicates with the program control device, the time of the program control device can be obtained, and then the time setting processing is performed based on the comparison of time, and the processing process is consistent with the above, which is not further described herein.
On the other hand, the time setting device can also be arranged in the program control equipment, namely can be used as a functional module of the program control equipment, and the program control equipment dominates the updating of the time of the implantable equipment.
The application also provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the time setting method of any of the above implantable devices when executing the computer program.
The application also provides a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the time tick method of an implantable device as described in any of the preceding claims.
In some alternative embodiments, the electronic device is further provided with a display screen.
The embodiment of the application also provides a computer readable storage medium, which is used for storing a computer program, the computer program is executed to implement the steps of the time setting method of the implantable device according to any one of the embodiments of the application, the specific implementation manner of the method is consistent with the implementation manner and the achieved technical effect of the embodiment of the time setting method of the implantable device, and some of the details are not repeated.
In the context of this patent, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the C programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on an associated device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The present application has been described in terms of its purpose, performance, advancement, and novelty, and the like, and is thus adapted to the functional enhancement and use requirements highlighted by the patent statutes, but the description and drawings are not limited to the preferred embodiments of the present application, and therefore, all equivalents and modifications that are included in the construction, apparatus, features, etc. of the present application shall fall within the scope of the present application.
While embodiments of the present application have been shown and described, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that changes, modifications, substitutions and alterations may be made therein by those of ordinary skill in the art without departing from the spirit and scope of the application, all such changes being within the scope of the appended claims. The present application has been described in terms of its purpose, performance, advancement, and novelty, and the like, and is thus adapted to the functional enhancement and use requirements highlighted by the patent statutes, but the description and drawings are not limited to the preferred embodiments of the present application, and therefore, all equivalents and modifications that are included in the construction, apparatus, features, etc. of the present application shall fall within the scope of the present application.

Claims (19)

1. A method of synchronizing an implantable device coupled to a programming device external to a body, the method comprising:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device.
2. The method of time synchronization of an implantable device according to claim 1, wherein the time parameter of the programmable device is obtained by:
Under the condition that the program control equipment is in communication connection with the corresponding implanted equipment, the program control equipment judges whether the program control equipment is connected with an external network environment or not;
If yes, the external network time is obtained.
3. The time setting method of an implantable device according to claim 2, wherein the programmable device obtains a time of a time server and takes the time of the time server as a time parameter of the programmable device.
4. The method of time synchronization of an implantable device according to claim 2, wherein the programmable device uses a time of a network device connected thereto as a time parameter of the programmable device; the network device includes one of: router, gateway, mobile terminal.
5. The time synchronization method of an implantable device according to claim 4, wherein the programmable device uses a time of a network device connected thereto as a time parameter of the programmable device, and the time synchronization method comprises:
the program control equipment acquires the time of a plurality of equipment and integrates the time of the equipment;
And taking the integrated time as a time parameter of the program control equipment.
6. The method of time synchronization of an implantable device according to claim 5, wherein the integrating the time of the plurality of devices comprises:
the program control equipment acquires the time of the time server and the time of a plurality of network equipment;
and comparing the time of the time server with the time of the plurality of network devices, deleting the time corresponding to the abnormal value, and carrying out average processing on the rest time to obtain average time as the time parameter of the program control device.
7. The time synchronization method of an implantable device according to claim 6, wherein the determination method of the outlier includes:
the deviation value Z i at each time point was obtained:
Zi=(Ti-Ta)/D
Wherein T i is the time of the i-th device; t a is the average value of the time server and the time of the plurality of network devices; d is the standard deviation of the time server time and the time of the plurality of network devices;
If Abs (Z i) exceeds the preset deviation value, the time of the corresponding equipment is an abnormal value; wherein Abs (Z i) is the absolute value of Z i;
If all Abs (Z i) are smaller than the preset deviation value, the time of the Max (Abs (Z i)) corresponding to the device is an abnormal value, or the time of the device is not abnormal; wherein Max (Abs (Z i)) is the maximum value among the absolute values of Z i.
8. The time setting method of an implantable device according to claim 2, wherein the programmable device acquires the time and connection stability of the device connected to the programmable device, and uses the time of the device with high connection stability as the time parameter of the programmable device.
9. The method of time setting for an implantable device according to claim 1, wherein the time parameter comprises at least time and time zone; taking the time zone corresponding to the time of the program control equipment as a first time zone and taking the time zone corresponding to the time of the implanted equipment as a second time zone; the method further comprises the steps of:
Judging whether the first time zone is consistent with the second time zone;
If yes, comparing the time of the program control equipment with the time of the corresponding implantable equipment to obtain a first difference value, and judging whether to update the time parameter of the implantable equipment according to the first difference value;
If not, updating the time parameter obtained by the program control equipment into the implanted equipment.
10. The method of time synchronization of an implantable device of claim 1, wherein the method further comprises:
and the program control equipment acquires the update authority, and sends an update time instruction to the implanted equipment based on the update authority so as to update the time parameter of the implanted equipment.
11. The method of time synchronization of an implantable device of claim 1, wherein the method further comprises:
setting an update time interval;
the program control equipment judges whether the update time interval is reached from the last update time;
if yes, the time update judgment and operation are executed.
12. The method of time synchronization of an implantable device of claim 1, wherein if the first difference is greater than a preset difference threshold, updating a time parameter of the implantable device further comprises:
acquiring the current working state of the implantable device, wherein the working state at least comprises a standby state, a stimulation state and a communication state;
And when the current working state of the implantable device is a standby state or a communication state, updating the time parameter of the implantable device.
13. The method of claim 12, wherein updating the time parameter of the implantable device when the current operating state of the implantable device is a standby state or a communication state comprises:
When the current working state of the implantable device is a standby state or a communication state, acquiring the time length of the implantable device reaching the next stimulation state;
when the duration exceeds the preset duration, updating the time parameter of the implantable device;
And when the duration does not exceed the preset duration, waiting for the next stimulation state to finish and updating the time parameter of the implantable device.
14. A time synchronization apparatus for an implantable device, the implantable device coupled to a programmed device external to the body, the apparatus comprising:
The time parameter acquisition module is used for acquiring the time parameter of the implantable device;
The first difference value acquisition module is used for comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and the reminding module is used for updating the time parameter of the implantable device if the first difference value is larger than a preset difference value threshold value.
15. A program-controlled device, characterized in that the program-controlled device comprises a memory and at least one processor, the memory storing a computer program, the at least one processor implementing the following steps when executing the computer program:
Acquiring time parameters of the implantable device;
comparing the time parameter of the program control equipment with the time parameter of the implantable equipment to obtain a first difference value;
and if the first difference value is larger than a preset difference value threshold value, updating the time parameter of the implantable device.
16. A medical system, the medical system comprising:
An implantable device implanted within a patient;
Time-setting means for effecting time-setting of an implantable device by the method of any one of claims 1-13;
and the program control equipment is used for performing program control on the implantable equipment.
17. An electronic device comprising a memory storing a computer program and a processor implementing the steps of the method of any of claims 1-13 when the computer program is executed by the processor.
18. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the steps of the method of any of claims 1-13.
19. A computer program product comprising computer program/instructions which, when executed by a processor, carry out the steps of the method according to any one of claims 1 to 13 or the functions of the apparatus according to claim 14.
CN202410290607.1A 2024-03-14 2024-03-14 Time setting method of implantable device and related device Pending CN118199779A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410290607.1A CN118199779A (en) 2024-03-14 2024-03-14 Time setting method of implantable device and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410290607.1A CN118199779A (en) 2024-03-14 2024-03-14 Time setting method of implantable device and related device

Publications (1)

Publication Number Publication Date
CN118199779A true CN118199779A (en) 2024-06-14

Family

ID=91405214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410290607.1A Pending CN118199779A (en) 2024-03-14 2024-03-14 Time setting method of implantable device and related device

Country Status (1)

Country Link
CN (1) CN118199779A (en)

Similar Documents

Publication Publication Date Title
US11890475B2 (en) Notification indicative of a change in efficacy of therapy
US20100222847A1 (en) Transmission of power source usage information over a network
CN111356402B (en) Customizable titration for implantable neurostimulators
EP4223361B1 (en) Determination and use of a wellness factor in an implantable medical device system using qualitative and quantitative measurements
US20100030303A1 (en) Monitoring ambient noise on communication channels used to communicate with medical devices
CN113423458A (en) Fitting algorithm for determining optimal stimulation parameters in spinal cord stimulation system
WO2023061233A1 (en) Charging control method for external charger, and related apparatus
CN117065217A (en) Potential signal acquisition device, potential signal acquisition method, medical system, and readable storage medium
CN114845768A (en) Neural stimulation device providing sub-sensory stimulation
US20220230743A1 (en) Medical device management using risk control measures
US20220230742A1 (en) Medical device management
CN116936060A (en) Fault detection method and related device for medical system
CN118199779A (en) Time setting method of implantable device and related device
CN113412135A (en) Altering stimulation parameters to prevent tissue habituation in spinal cord stimulation systems
CN114255860A (en) Remote diagnosis and treatment system and method based on implanted equipment
US11904170B2 (en) Patient-learned control of medical device
JP7278360B2 (en) Precise delivery of electrical stimulation
CN117895624A (en) Charging reminding method and related device for implantation equipment
US20240157148A1 (en) Patient-learned control of medical device
US20240261577A1 (en) Medical device programming
US20230372712A1 (en) Self-fitting of prosthesis
CN116721752A (en) Electrode lead configuration device, program control equipment, medical system and related products
EP4285609A1 (en) Adaptive loudness scaling
CN117914020A (en) Wireless charging authentication method, device, in-vitro charging system and storage medium
CN117043873A (en) Treatment system using implants and/or body worn medical devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination