# US 2021/0289043 A1 · Efficient context monitoring

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0289043 A1
- Document ID: US20210289043A1
- Status: Published application
- Kind: A1
- Application number: 17/195,847
- Filed: 2021-03-09
- Published: 2021-09-16
- Earliest claimed: 2015-06-05
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Alexander Barraclough Brown; Umesh S. Vaishampayan
- Web page: https://patentgrep.com/patent/US20210289043A1

## CPC

- H04L 67/63: Routing a service request depending on the request content or context
- G06F 8/61: Installation
- G06F 9/445: Program loading or initiating (bootstrapping G06F9/4401; security arrangements for program loading or initiating G06F21/57)
- G06F 9/461: {Saving or restoring of program or task context}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/30: Monitoring
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- H04L 67/14: Session management (for real-time applications in data packet communications networks H04L65/1066)
- H04L 67/55: Push-based network services
- H04W 24/02: Arrangements for optimising operational condition
- H04W 52/0264: {by selectively disabling software applications}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- Y02D 30/70: in wireless communication networks
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Disclosed are systems, methods, and non-transitory computer-readable storage media for efficiently monitoring the operating context of a computing device. In some implementations, the context daemon and/or the context client can be terminated to conserve system resources. For example, if the context daemon and/or the context client are idle, they can be shutdown to conserve battery power or free other system resources (e.g., memory). When an event occurs (e.g., a change in current context) that requires the context daemon and/or the context client to be running, the context daemon and/or the context client can be restarted to handle the event. Thus, system resources can be conserved while still providing relevant context information collection and callback notification features.

## Claims

### Claim 1

A method comprising:
receiving, by a context demon executing on a computing device, values corresponding to a first context item monitored by a context monitor;
generating, by the context demon, a historical event stream corresponding to the first context item based on the received values;
determining, by the context daemon, a probability of a particular value of the first context item based on the historical event stream, the probability being selected from a group comprising: a short-term probability and a long-term probability; and
predicting, by the context daemon, a future occurrence of the particular value of the first context item based on the probability.

### Claim 2 (depends on 1)

The method as recited in claim 1, further comprising, prior to receiving the values corresponding to the first context item:
receiving, by the context daemon from a context client process, a context information request corresponding to the first context item;
determining, by the context daemon, that the first context item is not currently monitored by any context monitor; and
initializing, by the context daemon, the context monitor corresponding to the first context item.

### Claim 3 (depends on 2)

The method as recited in claim 2, wherein initializing the context monitor comprises dynamically loading a software package corresponding to the context monitor into the context daemon.

### Claim 4 (depends on 2)

The method as recited in claim 2, wherein initializing the context monitor comprises invoking a new context monitor process separate from the context daemon, the new context monitor process corresponding to the context monitor.

### Claim 5 (depends on 1)

The method as recited in claim 1, further comprising receiving, by the context demon, a plurality of values corresponding to more than one context item monitored by a plurality of context monitors.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein the context daemon predicts the future occurrence of the particular value of the first context item based on both the short-term probability and the long-term probability.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein the received values for the first context item describe a current state of one or more components selected from a group comprising: hardware components of the computing device and software components of the computing device.

### Claim 8 (depends on 1)

The method as recited in claim 1, wherein the context monitor generates historical event stream objects that identify a start time, a duration, and a context item value that describes an event in the historical event stream.

### Claim 9

A non-transitory computer-readable medium comprising instructions that, when executed by a computing device, cause a context daemon of the computing device to:
receive values corresponding to a first context item monitored by a context monitor;
generate a historical event stream corresponding to the first context item based on the received values;
determine a probability of a particular value of the first context item based on the historical event stream, the probability being selected from a group comprising: a short-term probability and a long-term probability, and
predict a future occurrence of the particular value of the first context item based on the probability.

### Claim 10 (depends on 9)

The non-transitory computer-readable medium as recited in claim 9, further comprising instructions, which when executed, cause the context daemon to, prior to receiving the values corresponding to the first context item:
receive, from a context client process, a context information request corresponding to the first context item;
determine that the first context item is not currently monitored by any context monitor; and
initialize the context monitor corresponding to the first context item.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium as recited in claim 10, wherein initializing the context monitor comprises dynamically loading a software package corresponding to the context monitor into the context daemon.

### Claim 12 (depends on 10)

The non-transitory computer-readable medium as recited in claim 10, wherein initializing the context monitor comprises invoking a new context monitor process separate from the context daemon, the new context monitor process corresponding to the context monitor.

### Claim 13 (depends on 9)

The non-transitory computer-readable medium as recited in claim 9, further comprising instructions, which when executed, cause the context daemon to receive a plurality of values corresponding to more than one context item monitored by a plurality of context monitors.

### Claim 14 (depends on 9)

The non-transitory computer-readable medium as recited in claim 9, wherein the context daemon predicts the future occurrence of the particular value of the first context item based on both the short-term probability and the long-term probability.

### Claim 15 (depends on 9)

The non-transitory computer-readable medium as recited in claim 9, wherein the received values for the first context item describe a current state of one or more components selected from a group comprising: hardware components of the computing device and software components of the computing device.

### Claim 16 (depends on 9)

The non-transitory computer-readable medium as recited in claim 9, wherein the context monitor generates historical event stream objects that identify a start time, a duration, and a context item value that describes an event in the historical event stream.

### Claim 17

A computing device comprising:
one or more hardware processors; and
a non-transitory computer-readable medium comprising instructions that, when executed by the one or more hardware processors on the computing device, cause a context daemon to:
receive values corresponding to a first context item monitored by a context monitor;
generate a historical event stream corresponding to the first context item based on the received values;
determine a probability of a particular value of the first context item based on the historical event stream, the probability being selected from a group comprising: a short-term probability and a long-term probability; and
predict a future occurrence of the particular value of the first context item based on the probability.

### Claim 18 (depends on 17)

The computing device as recited in claim 17, wherein the non-transitory computer-readable medium further comprises instructions, which when executed, cause the context daemon to, prior to receiving the values corresponding to the first context item:
receive, from a context client process, a context information request corresponding to the first context item;
determine that the first context item is not currently monitored by any context monitor; and
initialize the context monitor corresponding to the first context item.

### Claim 19 (depends on 17)

The computing device as recited in claim 17, wherein the context daemon predicts the future occurrence of the particular value of the first context item based on both the short-term probability and the long-term probability, and wherein the context monitor generates historical event stream objects that identify a start time, a duration, and a context item value that describes an event in the historical event stream.

### Claim 20 (depends on 17)

The computing device as recited in claim 17, wherein the received values for the first context item describe a current state of one or more components selected from a group comprising: hardware components of the computing device and software components of the computing device.
