Search

CN-113539463-B - Method and apparatus for managing processing activity patterns

CN113539463BCN 113539463 BCN113539463 BCN 113539463BCN-113539463-B

Abstract

Methods, apparatus, and program products are provided and include a memory storing a baseline task processing (TH) pattern and a TH circuit including one or more processors. The TH circuit is configured to perform tasks associated with collecting one or more of the one or more CA signals or the environmental event signals. The TH circuit analyzes one or more CA signals or environmental event signals, delivers therapy, detects a communication request, or maintains a communication session with an external device. The IMD monitors the TH characteristic in conjunction with performing the task, compares the TH characteristic to a baseline TH pattern, and performs corrective action in response to the comparison of the TH characteristic and the baseline TH pattern.

Inventors

  • H.WANG
  • X .pei

Assignees

  • 先导者股份有限公司

Dates

Publication Date
20260512
Application Date
20210406
Priority Date
20200421

Claims (18)

  1. 1. An implantable medical device, comprising: a memory storing a baseline task processing pattern, wherein the baseline task processing pattern refers to a pattern of one or more task processing characteristics associated with one or more completed tasks over a period of time, and Task processing circuitry comprising one or more processors, the task processing circuitry configured to: performing one or more tasks associated with one or more of collecting one or more heart beat signals or environmental event signals, analyzing one or more heart beat signals or environmental event signals, delivering therapy, detecting a communication request, or maintaining a communication session with an external device; in connection with executing the one or more tasks, monitoring task processing characteristics to obtain at least one of a processing activity pattern or task execution time; comparing the task processing characteristics to the baseline task processing pattern, and Responsive to a comparison of the task processing characteristics and the baseline task processing pattern, corrective action is implemented.
  2. 2. The implantable medical device of claim 1, wherein the corrective action is implemented in response to the comparison indicating that the task processing characteristic has deviated from the baseline task processing mode by more than a predetermined margin.
  3. 3. The implantable medical device of claim 1, wherein the task processing characteristics represent at least one of a central processing unit task processing time characteristic, a central processing unit continuous active duration, a central processing unit continuous sleep duration, a central processing unit duty cycle for a selected period of time, a task's queue wait time, a critical task's execution time, a task group's queue wait time, or a task group's execution time.
  4. 4. The implantable medical device of claim 3, wherein the task processing characteristics represent central processing unit task processing time characteristics for at least one of: i) Time to complete a type of sensed event analysis; ii) time to complete a type of external input processing; iii) Time to transmit outgoing data packets; iv) the time at which the measurement was performed; v) collecting and updating a diagnostic time based on the cardiac signal; vi) time to complete housekeeping task, and Vii) analyzing the time of the incoming data packet.
  5. 5. The implantable medical device of claim 1, wherein the monitoring operation includes identifying a duty cycle of a central processing unit as part of the task processing characteristics, and the comparing operation includes determining whether the duty cycle of the central processing unit indicates that the central processing unit is continuously active for at least a predetermined amount of time.
  6. 6. The implantable medical device of claim 1, wherein the task processing characteristics are indicative of the central processing unit task execution time, and wherein the operation of monitoring includes maintaining at least one of a histogram of latency in which tasks remain in a queue or a histogram of execution time of a selected critical task, the corrective action being implemented based on the histogram.
  7. 7. The implantable medical device of claim 1, wherein the performed operations include at least one of terminating an ongoing task or process, restarting a task or process, or restarting some or all of a process performed by the implantable medical device.
  8. 8. A method of managing central processing unit behavior of an implantable medical device, the method comprising: Storing a baseline task processing pattern, wherein the baseline task processing pattern refers to a pattern of one or more task processing characteristics associated with one or more completed tasks over a period of time; Performing one or more tasks associated with one or more of collecting one or more heart beat signals or environmental event signals, analyzing the one or more heart beat signals or environmental event signals, delivering therapy, detecting a communication request, maintaining a communication session with an external device; in connection with executing the one or more tasks, monitoring task processing characteristics to obtain at least one of a processing activity pattern or task execution time; comparing the task processing characteristics to the baseline task processing pattern, and Responsive to a comparison of the task processing characteristics and the baseline task processing pattern, corrective action is implemented.
  9. 9. The method of claim 8, wherein the corrective action is implemented in response to the comparison indicating that the task processing characteristic has deviated from the baseline task processing mode by more than a predetermined margin.
  10. 10. The method of claim 8, wherein the task processing characteristics represent at least one of a central processing unit task processing time characteristic, a central processing unit continuous active duration, a central processing unit continuous sleep duration, a central processing unit duty cycle for a selected time period, a task's queue wait time, a critical task's execution time, a task group's queue wait time, or a task group's execution time.
  11. 11. The method of claim 10, wherein the task processing characteristics represent central processing unit task processing time characteristics for at least one of: i) Time to complete a type of sensed event analysis; ii) time to complete a type of external input processing; iii) Time to transmit outgoing data packets; iv) the time at which the measurement was performed; v) collecting and updating a diagnostic time based on the cardiac signal; vi) time to complete housekeeping task, and Vii) analyzing the time of the incoming data packet.
  12. 12. The method of claim 8, wherein the monitoring operation includes identifying a duty cycle of a central processing unit as the task processing characteristic that indicates a processing activity pattern of the central processing unit, and the comparing operation includes determining whether the duty cycle of the central processing unit indicates that the central processing unit is continuously active for at least a predetermined amount of time.
  13. 13. The method of claim 8, wherein the task processing characteristics are indicative of the central processing unit task execution time, and wherein the operation of monitoring includes maintaining at least one of a histogram of latency in which tasks remain in a queue or a histogram of execution time of a selected critical task, the corrective action being implemented based on the histogram.
  14. 14. The method of claim 8, wherein the performed operations include at least one of terminating an ongoing task or process, restarting a task or process, or restarting some or all of a process performed by an implantable medical device.
  15. 15. A computer program product comprising a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium comprising computer-executable code for: Performing one or more tasks associated with one or more of collecting cardiac activity signals, analyzing cardiac activity signals, delivering therapy, detecting a communication request, maintaining a communication session with an external device; in connection with executing the one or more tasks, monitoring task processing characteristics to obtain at least one of a processing activity pattern or task execution time; comparing the task processing characteristics to a baseline task processing pattern, wherein the baseline task processing pattern refers to a pattern of one or more task processing characteristics associated with one or more completed tasks over a period of time, and Responsive to a comparison of the task processing characteristics and the baseline task processing pattern, corrective action is implemented.
  16. 16. A computer program product as defined in claim 15, wherein the corrective action is implemented in response to the comparison indicating that the task processing characteristic has deviated from the baseline task processing mode by more than a predetermined margin.
  17. 17. The computer program product of claim 15, wherein the task processing characteristics represent at least one of a central processing unit task processing time characteristic, a central processing unit continuous active duration, a central processing unit continuous sleep duration, a central processing unit duty cycle for a selected time period, a task's queue wait time, a critical task's execution time, a task group's queue wait time, or a task group's execution time.
  18. 18. The computer program product of claim 15, wherein the task processing characteristics represent central processing unit task processing time characteristics for at least one of: i) Time to complete a type of sensed event analysis; ii) time to complete a type of external input processing; iii) Time to transmit outgoing data packets; iv) the time at which the measurement was performed; v) collecting and updating a diagnostic time based on the cardiac signal; vi) time to complete housekeeping task, and Vii) analyzing the time of the incoming data packet.

Description

Method and apparatus for managing processing activity patterns Technical Field Embodiments of the present disclosure generally relate to methods and devices for managing a treatment activity pattern of an implantable medical device. Background Modern Implantable Medical Devices (IMDs), such as implantable cardioverter-defibrillators (ICDs), are complex battery-powered systems having many components. IMDs must accomplish a number of complex tasks that may occur at any time. Such tasks typically need to be completed within a limited time delay. Examples of tasks that need to be completed within a limited time delay include performing sensing, performing pacing, recording and analyzing rhythms (rhythm), diagnosing episodes and providing life-saving therapy based on diagnosis, performing self-test operations, handling long-range and short-range communications, and the like. Accordingly, IMDs require a Central Processing Unit (CPU) capable of handling these tasks. To optimize task processing for real-time performance, IMD tasks are typically interrupt-based. For example, more time critical tasks are processed in the interrupt context, while less time critical tasks are queued as events to be performed outside the interrupt context when there are no more pending interrupts to process. Task processing within the interrupt context and task processing outside the interrupt context are generally referred to as foreground processing and background processing, respectively. The CPU of the IMD consumes energy based on the amount of foreground and background processing tasks that need to be performed, affecting the battery life of the IMD. Preferably, the battery lasts for several years. To save energy, the CPU will enter a "sleep mode" after completing the queued tasks. The ratio of CPU run time (e.g., time to complete all queued tasks) to total time (e.g., CPU run time+CPU sleep time) represents the duty cycle (duty cycle) of the CPU. In IMD designs, it is desirable to keep the average duty cycle of the CPU as low as possible (e.g., 10% or less). Unexpected and/or undesirable increases in duty cycle and/or task processing time consume additional energy, resulting in premature battery depletion. In addition, IMDs employ detection functions specific to known failure modes experienced by firmware, hardware, and network security. However, there is always an opportunity for IMDs to experience unexpected or new failure modes that would otherwise be missed by conventional failure mode detection control. During unexpected or new failure modes, the CPU is prone to operate at abnormally high duty cycles and/or with increased task processing time due to unexpected code defects, hardware component failures, network security attacks, and the like. There remains a need for methods and apparatus for detecting and managing undesirable increases in the operating ratio and task handling characteristics of IMDs to mitigate potential malfunctions and/or failures and/or premature battery wear of firmware, hardware, or network security. Disclosure of Invention According to embodiments herein, an Implantable Medical Device (IMD) is provided. The IMD includes a memory to store a baseline task processing (TH) pattern and a TH circuit including one or more processors. The TH circuit is configured to perform tasks associated with collecting one or more of the one or more CA signals or the environmental event signals. The TH circuit analyzes one or more CA signals or environmental event signals, delivers therapy, detects a communication request, or maintains a communication session with an external device. The IMD monitors the TH characteristic in connection with performing the task, compares the TH characteristic to a baseline TH mode, and performs a corrective action in response to the comparison of the TH characteristic to the baseline TH mode. Alternatively, corrective action may be implemented in response to the comparison indicating that the TH characteristic has deviated from the baseline TH mode by more than a predetermined margin. The TH characteristic may represent at least one of a CPU TH time characteristic, a CPU continuous active duration, a CPU continuous sleep duration, a duty cycle measurement for a selected time period, a queue wait time for a task, an execution time for a critical task, a queue wait time for a task group, or an execution time for a task group. Alternatively, the TH characteristic may represent a CPU TH time characteristic for at least one of i) a time to complete analysis of a type of sensed event, ii) a time to complete a type of external input processing, iii) a time to prepare and deliver therapy, iv) a time to perform measurements, v) a time to collect and update diagnostics based on CA signals, vi) a time to complete housekeeping tasks, vii) a time to analyze incoming data packets, and viii) a time to send outgoing data packets. Alternatively, the operation of monitoring may include identifying the duty cy