# US 2021/0173555 A1 · Methods and systems for predicting keystrokes using a unified neural network

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

- Number: US 2021/0173555 A1
- Document ID: US20210173555A1
- Status: Published application
- Kind: A1
- Application number: 17/111,038
- Filed: 2020-12-03
- Published: 2021-06-10
- Earliest claimed: 2019-12-04
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Barath Raj KANDUR RAJA; Ankur AGARWAL; Bharath C; Harshavardhana; Ishan VAID; Kranti CHALAMALASETTI; Mritunjai CHANDRA; Vibhav AGARWAL
- Web page: https://patentgrep.com/patent/US20210173555A1

## CPC

- G06F 3/0236: {using selection techniques to select from displayed items}
- G06F 3/04886: by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
- G06F 3/0237: {using prediction or retrieval techniques}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06F 40/274: Converting codes to words; Guess-ahead of partial word inputs
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems for predicting keystrokes using a neural network analyzing cumulative effects of a plurality of factors impacting the typing behavior of a user. The factors may include typing pattern, previous keystrokes, specifics of keyboard used for typing, and contextual parameters pertaining to a device displaying the keyboard and the user. A plurality of features may be extracted and fused to obtain a plurality of feature vectors. The plurality of feature vectors can be optimized and processed by the neural network to identify known features and learn unknown features that are impacting the typing behavior. Thereby, the neural network predicts keystrokes using the known and unknown features.

## Claims

### Claim 1

A method of predicting keystrokes, the method comprising:
obtaining, by a device, aggregated data representing a cumulative impact of a plurality of factors affecting a typing behavior of a user, based on receiving a keystroke from the user;
extracting, by the device, a plurality of features from the aggregated data;
determining, by the device, a plurality of feature vectors from the plurality of features; and
predicting, by a unified neural network in the device, a predicted key, based on a probability of the user intending to press the predicted key determined from the plurality of feature vectors.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of factors affecting the typing behavior of the user comprises at least one of:
characteristics of the device, the characteristics of the device comprising at least one of type of a display of the device, a bezel size of a bezel of the device, and presence of an edge display of the device;
contextual parameters pertaining to the device, the contextual parameters pertaining to the device comprising at least one of an orientation of the device, a speed of movement of the device, a tilt angle of the device, and a touch pressure of the user on the device;
contextual parameters pertaining to the user, the contextual parameters pertaining to the user comprising at least one of number of fingers of the user used for typing, a type of finger of the user used for typing, a size of a finger of the user used for typing, a typing speed of the user, and a movement of the device while typing;
specifics of a keyboard displayed on the device comprising, the specifics of the keyboard comprising at least one of a key size of keys of the keyboard, a size of a keyboard layout of the keyboard, a key position of the keys of the keyboard, a keypad type of the keyboard, a sub-keypad type of the keyboard, and keystroke details comprising at least one of characters typed previously by the user and words typed previously by the user; and
touch information comprising at least one of an inter-key timestamp, an intra-key timestamp, and a touch position.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of features are extracted by categorizing the aggregated data into at least one category comprising temporal information, spatial information, syntactic information, syntactic information and touch information.

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of feature vectors are determined by at least one of normalizing the plurality of features and encoding the plurality of features,
wherein an extracted feature is normalized by a factor unique to the extracted feature, and
wherein the extracted feature is encoded if the extracted feature is non-numerical.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
determining probabilities of the user intending to press a plurality of keys, including the predicted key,
wherein the probability of the user intending to press the predicted key is highest among the probabilities of the user intending to press the plurality of keys.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
displaying, by the device, the predicted key.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
predicting, based on at least one of the plurality of feature vectors, at least one of: at least one character, based on at least one of previously typed characters and at least one previously typed word.

### Claim 8

A method of predicting keystrokes, the method comprising:
receiving, by a device, a keystroke from a user;
generating, by the device, a keystroke log, wherein the keystroke is stored in the keystroke log;
training an unified neural network based on data stored in the keystroke log to enable the unified neural network to learn known features and unknown features; and
predicting, by the unified neural network in the device, a predicted keystroke based on the known features and the unknown features.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
receiving by the device, contextual parameters; and
training a unified neural network based on the contextual parameters to enable the unified neural network to learn known features and the unknown features.

### Claim 10 (depends on 9)

The method of claim 9, wherein the contextual parameters comprises at least one of sensor values, device parameters, user parameters, user activities.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
fusing features obtained from the keystroke log and the contextual parameters to construct feature vectors; and
training, the unified neural network based on the feature vectors.

### Claim 12 (depends on 11)

The method of claim 11, wherein the unified neural network in the device can determine whether the features are known or unknown based on values of the feature vectors.

### Claim 13

A device for predicting keystrokes comprising:
a memory storing computer-readable instructions; and
a processor, the processor when executing the computer-readable instructions configured to:
obtain aggregated data representing a cumulative impact of a plurality of factors affecting a typing behavior of a user, on receiving a keystroke from the user;
extract a plurality of features from the aggregated data;
determine a plurality of feature vectors from the plurality of features; and
predict, by a unified neural network in the device, a predicted key, based on a probability of the user intending to press the predicted key determined from the plurality of feature vectors.

### Claim 14 (depends on 13)

The device of claim 13, wherein the plurality of factors affecting the typing behavior of the user comprises at least one of:
characteristics of the device, the characteristics of the device comprising at least one of a type of display of the device, a bezel size of a bezel of the device, and presence of an edge display of the device;
contextual parameters pertaining to the device, the contextual parameters pertaining to the device comprising at least one of an orientation of the device, a speed of movement of the device, a device tilt angle of the device, and a touch pressure of the user on the device;
contextual parameters pertaining to the user, the contextual parameters pertaining to the user comprising at least one of number of fingers of the user used for typing, type of finger of the user used for typing, a size of a finger of the user used for typing, a typing speed of the user, and movement of the device while typing;
specifics of a keyboard displayed on the device, the specifics of the keyboard comprising at least one of a key size of keys of the keyboard, a size of a keyboard layout of the keyboard, a key position of the keys of the keyboard, a keypad type of the keyboard, a sub-keypad type of the keyboard, and keystroke details comprising at least one of characters typed previously by the user and words typed previously by the user; and
touch information comprising at least one of an inter-key timestamp, an intra-key timestamp, and a touch position.

### Claim 15 (depends on 13)

The device of claim 13, wherein the plurality of features are extracted by categorizing the aggregated data into at least one category comprising temporal information, spatial information, syntactic information, syntactic information and touch information.

### Claim 16 (depends on 13)

The device of claim 13, wherein the plurality of feature vectors are determined by at least one of normalizing the plurality of features and encoding the plurality of features,
wherein an extracted feature is normalized by a factor unique to the extracted feature, and
wherein the extracted feature is encoded if the extracted feature is non-numerical.

### Claim 17 (depends on 13)

The device of claim 13, wherein the processor, when executing the computer-readable instructions, is further configured to determine probabilities of the user intending to press a plurality of keys, including the predicted key, and
wherein the probability of the user intending to press the predicted key is highest among the probabilities of the user intending to press the plurality of keys.

### Claim 18 (depends on 13)

The device of claim 13, further comprising a display,
wherein the processor, when executing the computer-readable instructions, is further configured to display the predicted key on the display.

### Claim 19 (depends on 13)

The device of claim 13, wherein the processor, when executing the computer-readable instructions, is further configured to predict, based on at least one of the plurality of feature vectors, at least one of: at least one character, based on at least one of previously typed characters and at least one previously typed word.
