# US 12,216,854 B2 · Online tuning of a touch device processing algorithm

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

- Number: US 12,216,854 B2
- Document ID: US12216854B2
- Status: Granted
- Kind: B2
- Application number: 18/180,714
- Filed: 2023-03-08
- Published: 2024-09-12
- Granted: 2025-02-04
- Earliest claimed: 2023-03-08
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Gilad Pundak; Hanan Grinberg
- Web page: https://patentgrep.com/patent/US12216854B2

## CPC

- G06F 3/04162: {for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware}
- G06F 3/03545: {Pens or stylus}
- G06F 3/0418: {for error correction or compensation, e.g. based on parallax, calibration or alignment}
- G06F 3/046: by electromagnetic means
- G06F 3/0442: {using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser}
- G06F 3/0446: {using a grid-like structure of electrodes in at least two directions, e.g. using row and column electrodes}
- G06F 2203/04101: 2.5D-digitiser, i.e. digitiser detecting the X/Y position of the input means, finger or stylus, also when it does not touch, but is proximate to the digitiser's interaction surface and also measures the distance of the input means within a short range in the Z direction, possibly with a separate measurement setup
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and instrumentalities are described herein related to online tuning of pen characterizations. Online tuning may be performed during use of a pen with a touch device. A digitizer may detect signals associated with the pen and noise. A touch controller may execute a signal characterization model that characterizes the detected signals and an online tuner that processes the detected signals to perform online tuning of the signal characterization model. Online testing may validate an online-tuned signal characterization model for online use. Tuning may be based on signal statistics, such as mean or average signal gradients in the detected signals. Signal characterization models may include positioning, signal locating, noise reduction, communication decoding, etc.

## Claims

### Claim 1

A system in a touch device configured to communicate with a pen, the system comprising:
an antenna array configured to detect signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device; and
a processing circuit, electrically coupled to the antenna array, configured to execute a processing algorithm to process the detected signals;
the processing circuit further configured to execute an online tuning algorithm to perform online tuning of the processing algorithm based on the detected signals by online tuning at least one parameter of the processing algorithm to create an online-tuned processing algorithm, the processing circuit configured to:
calculate an online tuned parameter for the processing algorithm based on at least one signal of the detected signals,
validate the online tuned parameter according to an online test, and
in response to a validation of the online tuned parameter, process further signals detected by the antenna array based at least on the online-tuned processing algorithm that implements the online tuned parameter.

### Claim 2 (depends on 1)

The system of claim 1, wherein the processing circuit is configured to:
perform conditional processing of the detected signals based on at least one online tuning condition being met; and
perform the online tuning of the at least one parameter based on the conditional processing of the detected signals.

### Claim 3 (depends on 1)

The system of claim 1, wherein the processing algorithm comprises at least one of:
a positioning algorithm for determining a center of mass of the pen;
a signal locating algorithm for determining signal boundaries for a signal associated with the pen;
a noise reduction algorithm for determining a noise boundary; or
a communication algorithm for determining signal decoding parameters for a communication signal associated with the pen.

### Claim 4 (depends on 1)

The system of claim 1, the processing circuit further configured to:
execute the online test while the pen is in proximity to the touch device;
validate the online-tuned processing algorithm responsive to passing the online test; and
replace the processing algorithm with the validated online-tuned processing algorithm.

### Claim 5

A system in a touch device configured to communicate with a pen, the system comprising:
an antenna array configured to detect signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device; and
a processing circuit, electrically coupled to the antenna array, configured to execute a processing algorithm to process the detected signals;
the processing circuit configured to execute an online tuning algorithm to perform online tuning of the processing algorithm based on the detected signals by online tuning at least one parameter of the processing algorithm to create an online-tuned processing algorithm;
wherein the processing circuit is configured to:
perform conditional processing of the detected signals based on at least one online tuning condition being met, and
perform the online tuning of the at least one parameter based on the conditional processing of the detected signals; and
wherein to perform the conditional processing, the processing circuit is configured to:
estimate a distance of the pen from the touch device based on the detected signals,
aggregate signal statistics for the detected signals responsive to the estimated distance meeting predetermined tolerances, and
tune the at least one parameter based on the aggregated signal statistics by generating at least one tuned parameter.

### Claim 6 (depends on 5)

The system of claim 5, wherein the signal statistics comprise at least one: an average signal gradient between antennas or a mean signal gradient between antennas.

### Claim 7 (depends on 5)

The system of claim 5, wherein the at least one parameter comprises at least one decision boundary threshold the processing algorithm uses to identify a boundary for at least one of noise signal or pen signal or to distinguish between noise signal and pen signal.

### Claim 8

A method implemented in a touch device comprising an antenna array configured to communicate with a pen, the method comprising:
detecting signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device;
processing the detected signals using a processing algorithm; and
performing online tuning of the processing algorithm based on the detected signals by online tuning at least one parameter for the processing algorithm, said performing comprising:
calculating an online tuned parameter for the processing algorithm based on at least one signal of the detected signals,
validating the online tuned parameter according to an online test, and
in response to the validating the online tuned parameter, process further signals detected by the antenna array based at least on the online-tuned processing algorithm that implements the online tuned parameter.

### Claim 9 (depends on 8)

The method of claim 8, wherein performing the online tuning comprises:
performing conditional processing of the detected signals based on at least one online tuning condition being met; and
performing the online tuning of the at least one parameter based on the conditional processing of the detected signals.

### Claim 10 (depends on 8)

The method of claim 8, wherein the processing algorithm comprises at least one of:
a positioning algorithm for determining a center of mass of the pen;
a signal locating algorithm for determining signal boundaries for a signal associated with the pen;
a noise reduction algorithm for determining a noise boundary; or
a communication algorithm for determining signal decoding parameters for a communication signal associated with the pen.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
performing the online test while the pen is in proximity to the touch device;
validating the online-tuned processing algorithm responsive to passing the online test; and
replacing the processing algorithm with the validated online-tuned processing algorithm.

### Claim 12

A method implemented in a touch device comprising an antenna array configured to communicate with a pen, the method comprising:
detecting signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device;
processing the detected signals using a processing algorithm; and
performing online tuning of the processing algorithm based on the detected signals by tuning at least one parameter for the processing algorithm;
wherein performing the online tuning comprises:
performing conditional processing of the detected signals based on at least one online tuning condition being met, and
performing the online tuning of the at least one parameter based on the conditional processing of the detected signals; and
wherein the conditional processing comprises:
estimating a distance of the pen from the touch device based on the detected signals,
aggregating signal statistics for the detected signals responsive to the estimated distance meeting predetermined tolerances, and
tuning the at least one parameter based on the aggregated signal statistics by generating at least one tuned parameter.

### Claim 13 (depends on 12)

The method of claim 12, wherein the signal statistics comprise at least one of: an average signal gradient between antennas or a mean signal gradient between antennas.

### Claim 14 (depends on 13)

The method of claim 13, wherein the at least one parameter comprises at least one decision boundary threshold that the processing algorithm uses to identify a boundary for at least one of noise signal or pen signal or to distinguish between noise signal and pen signal.

### Claim 15

A computer-readable storage medium having program instructions recorded thereon that, when executed by a processing circuit of a touch device that comprises an antenna array configured to communicate with a pen, implement a method comprising:
detecting signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device;
processing the detected signals using a processing algorithm; and
performing online tuning of the processing algorithm based on the detected signals by tuning at least one parameter for the processing algorithm, said performing comprising:
calculating an online tuned parameter for the processing algorithm based on at least one signal of the detected signals,
validating the online tuned parameter according to an online test, and
in response to the validating the online tuned parameter, process further signals detected by the antenna array based at least on the online-tuned processing algorithm that implements the online tuned parameter.

### Claim 16 (depends on 15)

The computer-readable storage medium of claim 15, wherein performing the online tuning comprises:
performing conditional processing of the detected signals based on at least one online tuning condition being met; and
performing the online tuning of the at least one parameter based on the conditional processing of the detected signals.

### Claim 17 (depends on 15)

The computer-readable storage medium of claim 15, wherein the processing algorithm comprises at least one of:
a positioning algorithm for determining a center of mass of the pen;
a signal locating algorithm for determining signal boundaries for a signal associated with the pen;
a noise reduction algorithm for determining a noise boundary; or
a communication algorithm for determining signal decoding parameters for a communication signal associated with the pen.

### Claim 18 (depends on 15)

The computer-readable storage medium of claim 15, wherein the method further comprises:
performing the online test while the pen is in proximity to the touch device;
validating the online-tuned processing algorithm responsive to passing the online test; and
replacing the processing algorithm with the validated online-tuned processing algorithm.

### Claim 19

A computer-readable storage medium having program instructions recorded thereon that, when executed by a processing circuit of a touch device that comprises an antenna array configured to communicate with a pen, implement a method comprising:
detecting signals in an array grid of sensing elements in the antenna array while the pen is proximate to the touch device;
processing the detected signals using a processing algorithm; and
performing online tuning of the processing algorithm based on the detected signals by online tuning at least one parameter for the processing algorithm;
wherein performing the online tuning comprises:
performing conditional processing of the detected signals based on at least one online tuning condition being met, and
performing the online tuning of the at least one parameter based on the conditional processing of the detected signals; and
wherein the conditional processing comprises:
estimating a distance of the pen from the touch device based on the detected signals,
aggregating signal statistics for the detected signals responsive to the estimated distance meeting predetermined tolerances, and
tuning the at least one parameter based on the aggregated signal statistics by generating at least one tuned parameter.

### Claim 20 (depends on 19)

The computer-readable storage medium of claim 19, wherein the signal statistics comprise at least one of: an average signal gradient between antennas or a mean signal gradient between antennas.
